// ce-29.567-develop-mac 8e09f3d9b0fb854847cc975a164219a1e121ac57
// Copyright 2013-2015 Evernote Corp. All rights reserved.
// http://www.evernote.com

window.enLoadState = 'willLoad';
window['CE_VERSION_INFO'] = {
    'lastCommitDate': '2016-02-04 08:23:21 -0800',
    'major': 29,
    'build': 567,
    'channel': 'develop',
};

try {(function(){ 'use strict';var aa=this;
function ba(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var b=Object.prototype.toString.call(a);if("[object Window]"==b)return"object";if("[object Array]"==b||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==b||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
c&&"undefined"==typeof a.call)return"object";return c}function da(a){return"array"==ba(a)}function u(a){return"string"==typeof a}function ea(a){return"function"==ba(a)}function fa(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function ga(a,c){var b=a.split("."),e=aa;b[0]in e||!e.execScript||e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length||void 0===c?e[d]?e=e[d]:e=e[d]={}:e[d]=c}
function ha(a,c){function b(){}b.prototype=c.prototype;a.Kc=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.og=function(a,b,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return c.prototype[b].apply(a,g)}};window.CE_VERSION_INFO=window.CE_VERSION_INFO||{lastCommitDate:"",major:0,build:0,channel:"local",platform:"mac"};function ia(){var a=window.CE_VERSION_INFO;return["ce",a.major+"."+a.build,a.channel,a.platform].join("-")}function ja(){return window.CE_VERSION_INFO.lastCommitDate};var ka="style bgcolor title lang dir text".split(" "),la="address article aside body blockquote caption center col colgroup dd details dir div dl dt fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr li listing menu nav ol p plaintext pre section summary table tbody td tfoot th thead tr ul xmp".split(" "),ma="a abbr b bdi bdo cite code dfn em h1 h2 h3 h4 h5 h6 i kbd mark p pre q rp rt ruby s samp small span strong sub sup u var acronym listing strike xmp big blink font marquee nobr tt".split(" "),
na="hr area base br col colgroup embed img input link meta param wbr en-todo en-media".split(" "),oa="margin-left margin-right font-family font-size font-weight text-align color direction background-color font-style text-decoration vertical-alignment line-height".split(" "),pa=["0","0px","none","initial"],qa="colgroup table tbody tfoot thead tr".split(" "),ra=["script","style","plaintext","xmp"],sa=["embed","object","img"],ta=la.join(","),ua=["*","~","!","_","`"],wa="backcolor bold capitalize content copy createlink cut delete deleteline deletetable deletetablecol deletetablerow deleteword enml focus fontname fontsize forecolor forwarddelete forwarddeleteline forwarddeleteword highlight indent inserthorizontalrule inserthtml insertimage insertlinebreak insertorderedlist insertparagraph inserttable inserttablecol inserttablerow inserttext inserttodo inserttodolist insertunorderedlist italic justifycenter justifyfull justifyleft justifyright lowercase outdent paste pasteplain pasteraw pastesimple plaintext redo removeformat selectall simpletext strikethrough tab tablealign tablebordercolor tableborderwidth tablecellcolor tt underline undo unlink uppercase".split(" ");var xa=[];function ya(a){da(a)||(a=[a.toString()]);this.L=a}ya.prototype.log=function(a,c,b){if(800<=a)for(var e=0;e<xa.length;e++)xa[e](this.L,a,Array.prototype.slice.call(c),b)};ya.prototype.A=function(){};ya.prototype.info=function(a){this.log(800,arguments)};ya.prototype.warn=function(a){this.log(900,arguments)};ya.prototype.error=function(a){this.log(1E3,arguments)};ya.prototype.I=function(a){this.log(1200,arguments)};function za(){}za.prototype.A=function(){};za.prototype.info=function(){};
za.prototype.warn=function(){};za.prototype.error=function(){};var Ba=new ya("default"),Ca=Ba.info.bind(Ba),Da=Ba.warn.bind(Ba),Ea=Ba.error.bind(Ba);Ba.I.bind(Ba);window.evernoteClient&&xa.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);window.evernoteClient.log(b.join(" "))});xa.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);a=b.map(Fa).join(" ");1E3<=c?console.error(a):900<=c?console.warn(a):800<=c?console.info(a):console.log(a)});var x={};function Ga(){return!1}function y(){return!0}function Ha(){}x.jd=function(a,c){null==Ia[a]?(x.error("Unrecognized log level: <"+a+">. Logging as error."),x.error.apply(x.error,arguments)):Ia[a].apply(x,Array.prototype.slice.call(arguments,1))};x.log=function(){};x.info=Ca;x.warn=Da;x.error=Ea;x.time=Ha;x.timeEnd=Ha;x.trace=Ha;x.dump=function(a){var c=Array.prototype.slice.call(arguments).map(Fa);x.log.apply(x,c)};var Ia={info:x.info,warn:x.warn,error:x.error};
x.group=function(a){window.console&&window.console.groupCollapsed&&window.console.groupCollapsed(Array.prototype.slice.call(arguments).map(Fa).join(" "))};x.groupEnd=function(){window.console&&window.console.groupCollapsed&&window.console.groupEnd&&window.console.groupEnd()};var Ja={};x.Le=function(a,c){var b={t:window.performance&&window.performance.now?window.performance.now():(new Date).getTime(),$b:Array.prototype.slice.call(arguments,1).join(" ")||""};Ja[a]?Ja[a].push(b):Ja[a]=[b]};
x.vg=function(a,c){Ja[a]=[];x.Le.apply(this,arguments)};function Ka(a){a=a.toString();var c=a.indexOf(".");return 0>c?a:a.substring(0,c+4)}x.ug=function(a,c){x.Le.apply(this,arguments);for(var b=Ja[a],e=b[b.length-1].t-b[0].t,d=1;d<b.length;d++){var f=b[d].t-b[d-1].t;x.log("\u25fc "+a+"."+d+": "+Ka(f)+"ms ("+Math.round(100*f/e)+"% of "+Ka(e)+"ms full time)",b[d].$b?"<-":"",b[d].$b)}Ja[a]=[]};function La(a){var c=Ma(arguments);c.unshift("DEPRECATION WARNING:");x.warn.apply(null,c)}
function B(a,c){if(!a){var b="Assertion failed! "+Array.prototype.slice.call(arguments,1).join(" ");x.error(b);throw b;}}function Na(a){try{if(u(a))return Oa(a);var c=JSON.stringify(a,null,"  ")}catch(b){return a.toString()}return c}
function Pa(a){var c;return a instanceof Text?"<TextNode:"+Na(a.textContent)+">":a instanceof Element?"<Element:"+a.outerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+(a.id?"#"+a.id:"")+">":a instanceof DocumentFragment?(c=document.createElement("div"),c.appendChild(a.cloneNode(!0)),"<DocumentFragment:"+c.innerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+">"):a instanceof Range?(c=document.createElement("div"),c.appendChild(a.cloneContents()),"<Range:"+Pa(a.startContainer)+":"+a.startOffset+","+Pa(a.endContainer)+
":"+a.endOffset+" collapsed="+(a.collapsed?"true":"false")+" html="+Na(c.innerHTML)+">"):"<"+typeof a+":"+Na(a)+">"}function Fa(a){return u(a)?a:Pa(a)}var Qa=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;function Ra(a){return a instanceof RegExp?a.source:a.replace(Qa,"\\$&")}var Sa=/[^\x20-\x26\x28-\x5B\x5D-\x7E]/g,Ta={"\n":"\\n","'":"\\'",'"':'\\"',"\t":"\\t","\r":"\\r"};
function Oa(a){return"'"+a.replace(Sa,function(a){if(Ta[a])return Ta[a];a=a.charCodeAt(0).toString(16);var b=a.length;return 1===b?"\\x0"+a:2===b?"\\x"+a:3===b?"\\u0"+a:"\\u"+a})+"'"}var Ua=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g;function Va(a){Ua.lastIndex=0;return Ua.test(a)}var Wa=/[\u0000\u0001-\u0008\u000E-\u001F\u007F-\u009F\uFDD0-\uFDEF\u000B\uFFFE\uFFFF]|[\x01-\x10][\uFFFE-\uFFFF]/g;function Xa(a){return a.replace(Wa,"")}
var Ya={"&apos;":/&apos;/gi,"&quot;":/&quot;/gi,"&gt;":/&gt;/gi,"&lt;":/&lt;/gi,"&amp;":/&amp;/gi,"&":/&/g,"<":/</g,">":/>/g,'"':/"/g,"'":/'/g};function Za(a){return a.replace(Ya["&apos;"],"'").replace(Ya["&quot;"],'"').replace(Ya["&gt;"],">").replace(Ya["&lt;"],"<").replace(Ya["&amp;"],"&")}
function $a(a){var c;B(!!a&&ab(a),"obj has to be dict",a);var b={};null==c&&(c=!1);Object.keys(a).forEach(function(c){b[a[c]]=c});c||Object.keys(a).length===Object.keys(b).length||Da("inverting resulted in a different number of keys","original:",a,"inverted:",b);return b}function bb(a,c){var b;if(a&&c)if(null!=a.length){b=0;for(var e=a.length;b<e&&c.call(a,a[b],b)!==cb;b++);}else"object"===typeof a&&Object.keys(a).every(function(b){return c.call(a,b,a[b])===cb?!1:!0})}var cb={};
function db(a,c,b){if(c)for(var e in c)if(!b||void 0===a[e]){var d=c[e];void 0!==d&&(a[e]=d)}return a}function D(a,c,b){null==b&&(b=!0);if(null==a||""===a)a={};u(a)&&(a=JSON.parse(a)||{});B(ab(a),"Options of wrong type");if(c){B(ab(c),"Defaults of wrong type");var e,d=Object.keys(c);for(e in a)if(a.hasOwnProperty(e)&&!(0<=d.indexOf(e))&&b){var f=["Key",Na(e),"not supported! Seen in:",(a||{}).name||"",a];x.warn.apply(null,f)}for(e in c)"undefined"===typeof a[e]&&(a[e]=c[e])}return a||{}}
function eb(){var a=navigator.language||navigator.userLanguage||"en",a=a.split("-")[0];window.Evernote&&window.Evernote.getLanguage&&(a=window.Evernote.getLanguage());return a}function Ma(a,c){if(!c)return Array.prototype.slice.call(a,0);var b=a.length,e=[],d;if(c)for(d=b-1;0<=d;d--)e.push(a[d]);else for(d=0;d<b;d++)e.push(a[d]);return e}var fb=/^[\x00-\x20\s]*$/g;function gb(a){return u(a)?(fb.lastIndex=0,0===a.length||fb.test(a)):!1}
function hb(a){return!a||gb(a)||da(a)&&0===a.length||fa(a)&&0===Object.keys(a).length}var jb=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?(?:\?\S*)?$/gi;
function kb(a){jb.lastIndex=0;return u(a)&&jb.test(a)}function ab(a){return!!a&&"object"===ba(a)}function lb(a){var c=a.indexOf(">"),b=a.lastIndexOf("<");return 0>c||0>b?a:a.substring(c+1,b)}function mb(a){var c;if(u(a))c=document.createElement("div"),c.textContent=a;else if(a instanceof Node)c=a.ownerDocument.createElement("div"),c.appendChild(a.cloneNode(!0));else throw"Illegal argument type for en.toHTML";return lb(c.outerHTML)}function nb(){return window.ENUniqueCounter++}
function ob(a){var c=1+(window.ENUniqueCounterObject[a]||0);window.ENUniqueCounterObject[a]=c;return a+"-"+c}window.ENUniqueCounter=1;window.ENUniqueCounterObject={};function pb(a){x.error("Exception: "+a.toString())}function qb(){this.ia=[];this.$a=[]}qb.prototype.has=function(a){return-1!==this.ia.indexOf(a)};qb.prototype.get=function(a){a=this.ia.indexOf(a);return-1!==a?this.$a[a]:null};qb.prototype.set=function(a,c){var b=this.ia.indexOf(a);-1!==b?this.$a[b]=c:(this.ia.push(a),this.$a.push(c))};
qb.prototype.remove=function(a){a=this.ia.indexOf(a);-1!==a&&(this.ia.splice(a,1),this.$a.splice(a,1))};function rb(){this.A=Object.create(null)}rb.prototype.add=function(a){this.A[a]=!0};rb.prototype.remove=function(a){delete this.A[a]};rb.prototype.has=function(a){return!!this.A[a]};var sb=window.onerror;window.onerror=function(a,c,b){var e=!1;sb&&(e=sb(a,c,b));x.error("Uncaught error in JS:",a.toString(),c,b);return e};var E={"smiling face with open mouth":{icon:"\ud83d\ude03",keystrokes:[":)",":=)",":-)"],color:"yellow"},pensive:{icon:"\ud83d\ude14",keystrokes:[":(",":=(",":-("]},"grinning face":{icon:"\ud83d\ude00",keystrokes:[":D",":=D",":-D"]},"smiling face with sunglasses":{icon:"\ud83d\ude0e",keystrokes:["8=)","8-)","B=)","B-)"]},"winking face":{icon:"\ud83d\ude09",keystrokes:[";)",";=)",";-)"]},"face with open mouth":{icon:"\ud83d\ude2e",keystrokes:":o :=o :-o :O :=O :-O".split(" ")},"crying face":{icon:"\ud83d\ude22",
keystrokes:[";(",";=(",";-("]},"smiling face with open mouth and cold sweat":{icon:"\ud83d\ude05",keystrokes:["(:|",":sweat:"]},"neutral face":{icon:"\ud83d\ude10",keystrokes:[":|",":=|",":-|",":neutral:"]},"kissing face with closed eyes":{icon:"\ud83d\ude1a",keystrokes:[":*",":=*",":-*",":kiss:"]},"face with stuck-out tongue":{icon:"\ud83d\ude1b",keystrokes:":P :=P :-P :p :=p :-p".split(" ")},"smiling face with smiling eyes":{icon:"\ud83d\ude0a",keystrokes:[":$",":-$",":=$",":simple_smile:"]},"angry face":{icon:"\ud83d\ude21",
keystrokes:":@ :-@ :=@ x( x-( x=( X( (X=( :angry:".split(" ")},"smiling face with halo":{icon:"\ud83d\ude07",keystrokes:"O:) O:=) O:-) o:) o:=) o:-) :innocent: :angel:".split(" ")},"heavy black heart":{icon:"\u2764\ufe0f",keystrokes:["<3",":heart:"]},"sleepy face":{icon:"\ud83d\ude2a",keystrokes:["|-)","I-)","I=)",":snooze:"]},"smiling face with heart-shaped eyes":{icon:"\ud83d\ude0d",keystrokes:[":inlove:",":in_love:"]},"smiling face with horns":{icon:"\ud83d\ude08",keystrokes:[":devil:"]},ghost:{icon:"\ud83d\udc7b",
keystrokes:[":ghost:"]},"extraterrestrial alien":{icon:"\ud83d\udc7d",keystrokes:[":alien:"]},skull:{icon:"\ud83d\udc80",keystrokes:[":skull:"]},"face screaming in fear":{icon:"\ud83d\ude31",keystrokes:[":scream:"]},"slice of pizza":{icon:"\ud83c\udf55",keystrokes:[":pizza:"]},"purple heart":{icon:"\ud83d\udc9c",keystrokes:[":purple_heart:",":purpleheart:"]},"green heart":{icon:"\ud83d\udc9a",keystrokes:[":green_heart:",":greenheart:"]},"blue heart":{icon:"\ud83d\udc99",keystrokes:[":blue_heart:",
":blueheart:"]},"yellow heart":{icon:"\ud83d\udc9b",keystrokes:[":yellow_heart:",":yellowheart:"]},droplet:{icon:"\ud83d\udca7",keystrokes:[":droplet:"]}},tb={":(=|-)?\\)":E["smiling face with open mouth"],":(=|-)?\\(":E.pensive,":(=|-)?D":E["grinning face"],"(8|B)(=|-)\\)":E["smiling face with sunglasses"],";(=|-)?\\)":E["winking face"],":(=|-)?(o|O)":E["face with open mouth"],";(=|-)?\\(":E["crying face"],"\\(:\\|":E["smiling face with open mouth and cold sweat"],":sweat:":E["smiling face with open mouth and cold sweat"],
":(=|-)?\\|":E["neutral face"],":neutral:":E["neutral face"],":(=|-)?\\*":E["kissing face with closed eyes"],":kiss:":E["kissing face with closed eyes"],":(=|-)?(P|p)":E["face with stuck-out tongue"],":(-|=)?\\$":E["smiling face with smiling eyes"],":simple_smile:":E["smiling face with smiling eyes"],"\\(?(:|x|X)(=|-)?(@|\\()":E["angry face"],":angry:":E["angry face"],"(O|o):(=|-)?\\)":E["smiling face with halo"],":innocent:":E["smiling face with halo"],":angel:":E["smiling face with halo"],"<3":E["heavy black heart"],
":heart:":E["heavy black heart"],"(\\||I)(-|=)\\)":E["sleepy face"],":snooze:":E["sleepy face"],":in_?love:":E["smiling face with heart-shaped eyes"],":devil:":E["smiling face with horns"],":ghost:":E.ghost,":alien:":E["extraterrestrial alien"],":skull:":E.skull,":scream:":E["face screaming in fear"],":pizza:":E["slice of pizza"],":purple_?heart:":E["purple heart"],":green_?heart:":E["green heart"],":blue_?heart:":E["blue heart"],":yellow_?heart:":E["yellow heart"],":droplet:":E.droplet},ub=new qb;
Object.keys(tb).forEach(function(a){ub.set(a,tb[a])});function vb(){function a(a,b,c){a.H=D(b,{title:null,id:null,queryGroupName:c.Bf})}function c(a){B(u(a)&&a===a.toLowerCase(),"Command name has to be lower case only.");var c=a.lastIndexOf("."),f=[],g=null,k=a;-1===c?(c=b[a])&&(f=c.filter(function(a){return!0!==a.Lb})):(g=a.substring(0,c),k=a.substring(c+1),(c=b[k])&&(f=c.filter(function(a){return a.zb&&-1!==a.zb.indexOf(g)})));return{ja:f,sg:k,Bf:g,wg:a}}var b={};this.Zf=function(a){B(ab(a),"We require command to be an object:",a);var c=a.name;B(u(c)&&
1<c.length&&!!c.match(/[a-z]+/gi),"Invalid name for command:",Na(c));a.action&&B(!!a.enabled,'We require command to have "enabled" state:',a.name);B(!!(a.action||a.value||a.state),'We require command to have one of "action", "value" or "state":',a.name);B(!a.zb||da(a.zb),"We require command groups to be an Array:",a.name);var f=b[c];f||(f=[],b[c]=f);B(da(f),"Expected list for commands");f.push(a)};this.Te=function(a){if(a&&b)for(var c=Object.keys(b||{}),f=0;f<c.length;f++){var g=c[f],k=b[g];if(k)for(var p=
k.length-1;0<=p;p--){var h=k[p];h&&a(h)&&(k.splice(p,1),0>=k.length?delete b[g]:b[g]=k)}}else b={}};this.action=function(b,d,f){var g=null;try{var k=c(b),p=k.ja;if(0!=p.length)for(b=0;b<p.length;b++){var h=p[b];a(h,f,k);if(h.action&&h&&h.enabled&&h.enabled.call(h,d)){var l={name:h.name,value:d,command:h};wb("beforeExecCommand",l);var m=h.action.call(h,d),g=!(null===g&&!1===m);l.result=m;wb("execCommand",l)}}else x.warn("execCommand of unknown command:",b,"with value:",d)}catch(r){x.jd("complete"!==
document.readyState?"warn":"error","Exception in execCommand <$>:",r.toString()),pb(r)}return g};this.enabled=function(b,d,f){var g=null;try{var k=c(b),p=k.ja;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.enabled){a(h,f,k);var l=h.enabled.call(h,d);if(!0===l){g=!0;break}null===g&&!1===l&&(g=!1)}}else x.warn("queryCommandEnabled of unknown command:",b,d)}catch(m){x.jd("complete"!==document.readyState?"warn":"error","Exception in queryCommandEnabled <$>:",m.toString())}return g};this.state=function(b,
d,f){var g=null;try{var k=c(b),p=k.ja;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.state){a(h,f,k);if(!0===h.state.call(h,d)){g=!0;break}g=!1}}else x.warn("queryCommandState of unknown command:",b,d)}catch(l){x.jd("complete"!==document.readyState?"warn":"error","Exception in queryCommandState <$>:",l.toString()),pb(l)}return g};this.value=function(b,d,f){var g=null;try{var k=c(b),p=k.ja;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.value){a(h,f,k);var l=h.value.call(h,d);if(null!=l){if(!u(l))try{g=
JSON.stringify(l);break}catch(m){}g=l.toString();break}g=""}}else x.warn("queryCommandValue of unknown command:",b,d)}catch(m){x.jd("complete"!==document.readyState?"warn":"error","Exception in queryCommandValue <$>:",m.toString()),pb(m)}return g}}function xb(a){return!(!1===a||0===a||"0"===a||"false"===a.toString().toLocaleLowerCase())}
function yb(a){if(ab(a))return a;if(u(a)&&0<a.length){if(0===a.indexOf("{"))return JSON.parse(a)||{};La('Please use a JSON formatted string in the form { "value": "'+a.substring(0,100)+'"}');return{value:a}}return{}}function zb(a){var c="";try{var b=a;u(b)&&(b=JSON.parse(b)||{});if(da(b))return b;if(ab(b))return[b]}catch(e){c=e}x.warn("Problems parsing value",a,c.toString());return null};var Ab=new function(){var a=this;a.name="message";var c;a.F=function(){c={}};a.D=function(a,e){var d=c[a];if(null!=d)for(var f=0;f<d.length;f++)(0,d[f][1])(e,a)};a.N=function(b,e){if(null!=c[b]){var d=e(b);a.D(b,d)}};a.subscribe=function(a,e,d,f){var g=c[a];null==g&&(g=[],c[a]=g);f&&(e=e.bind(f));a=d||0;for(d=0;d<g.length;d++)if(a<g[d][0]){g.splice(d,0,[a,e]);return}g.push([a,e])};a.ha=function(b,c,d,f){function g(d){c.apply(f,arguments);a.unsubscribe(b,g)}a.subscribe(b,g,d)};a.J=function(){return null!=
c.beforeDelete};a.Y=function(a){a=c[a];return null!=a?a.length:0};a.unsubscribe=function(a,e){var d=c[a];if(null!=d){for(var f=d.length-1;0<=f;f--)d[f][1]===e&&d.splice(f,1);0===d.length&&delete c[a]}};a.U=function(){c={}}};Ab.F({});var Bb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Cb(a){a.preventDefault()}function Db(a){a.state=this.state;a.preventDefault=function(){a.srcEvent.preventDefault()};a.stopPropagation=function(){a.srcEvent.stopPropagation()};this.I(a);this.listener.call(this.target,a)}
function Eb(a,c){var b=Array.prototype.slice.call(a.targetTouches),e={};if(c&3&&1===b.length)return[b,b];var d=Array.prototype.slice.call(a.changedTouches);b.forEach(function(a){e[a.identifier]=!0});d.forEach(function(a){e[a.identifier]||(e[a.identifier]=!0,b.push(a))});return[b,d]}function Fb(a){var c=[];a.touches.forEach(function(a){c.push({clientX:Math.round(a.clientX),clientY:Math.round(a.clientY)})});return{timeStamp:Date.now(),touches:c,center:Gb(c),deltaX:a.deltaX,deltaY:a.deltaY}}
function Gb(a){var c=0,b=0,e=a.length;a.forEach(function(a){c+=a.clientX;b+=a.clientY});return{x:Math.round(c/e),y:Math.round(b/e)}}function Hb(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"];return 180*Math.atan2(c[b[1]]-a[b[1]],c[b[0]]-a[b[0]])/Math.PI}function Ib(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"],e=c[b[0]]-a[b[0]],b=c[b[1]]-a[b[1]];return Math.sqrt(e*e+b*b)}function Jb(a,c){return a===c?1:Math.abs(a)>=Math.abs(c)?0<a?2:4:0<c?8:16}
function Kb(a,c,b){B(!!a,"Missing target to work with");B("function"==typeof c,"Listener must be a function");this.listener=c;this.target=a;this.Xa={};this.state=1;this.L=!1;this.options=D(b||{},this.A,!1)}var Lb=0;Kb.prototype.A={};Kb.prototype.ec=function(){return 1};Kb.prototype.I=function(){};function Mb(a,c){B(!!c,"Payload is missing, check proper flow when tryEmit is being used.");a.options.Vd&&a.state&6&&!(a.state&8)?Nb(a,!0):a.options.Vd&&Nb(a,!1);a.state&30&&Db.call(a,c)}
function Nb(a,c){a.L&&!c&&0>=--Lb?document.body.removeEventListener("touchmove",Cb):!a.L&&c&&0<++Lb&&document.body.addEventListener("touchmove",Cb);a.L=c}function Ob(a,c,b){Kb.call(this,a,c,b);this.P=this.M=0}ha(Ob,Kb);Ob.prototype.A={type:"pan",gb:1,threshold:10,Vd:!0,direction:30};
Ob.prototype.ec=function(a){var c=this.state&6,b;if((b=a.touches.length===this.options.gb)&&!(b=this.state&2)&&(b=!(this.state&2))){b=a.direction;var e=a.distance;a.direction&this.options.direction||(this.options.direction&6?(e=a.deltaX,b=0===e?1:0>e?2:4):(e=a.deltaY,b=0===e?1:0>e?8:16),e=Math.abs(e));b=!!(e>this.options.threshold&&b&this.options.direction)}if(c&&(a.inputType&8||!b))return this.state|16;if(c||b)return a.inputType&4?this.state|8:this.state&2?this.state|4:(this.M=a.deltaX,this.P=a.deltaY,
2);this.P=this.M=0;return 32};Ob.prototype.I=function(a){a.deltaX-=this.M;a.deltaY-=this.P;2===this.state&&(a.isInitial=!0)};function Pb(a,c,b){Kb.call(this,a,c,b)}ha(Pb,Kb);Pb.prototype.A={type:"pinch",gb:2,threshold:0,Vd:!0};Pb.prototype.ec=function(a){var c=this.state&6,b=a.touches.length===this.options.gb&&(Math.abs(a.scale-1)>this.options.threshold||this.state&2);return c&&(a.inputType&8||!b)?this.state|16:c||b?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};
Pb.prototype.I=function(a){this.state&8&&(a.isFinal=!0)};function Qb(a,c,b){Kb.call(this,a,c,b)}ha(Qb,Pb);Qb.prototype.A={type:"rotate",gb:2,threshold:0};function Rb(a,c,b){Kb.call(this,a,c,b)}ha(Rb,Kb);Rb.prototype.A={type:"swipe",threshold:10,ng:.65,direction:30,gb:1};
Rb.prototype.ec=function(a){var c=this.options.direction,b=0;c&30?b=a.velocity:c&6?b=a.velocityX:c&24&&(b=a.velocityY);var e=this.state&6,c=a.touches.length===this.options.gb&&a.inputType&4&&a.distance>this.options.threshold&&c&a.direction&&Math.abs(b)>this.options.ng;return e&&(a.inputType&8||!c)?this.state|16:e||c?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};function Sb(a,c,b){Kb.call(this,a,c,b);this.Jb=null;this.Da=void 0;this.Kb=0}ha(Sb,Kb);
Sb.prototype.A={type:"tap",gb:1,Re:1,interval:300,time:250,threshold:5,offset:10,Ge:!1};
Sb.prototype.ec=function(a){var c=a.touches.length===this.options.gb&&a.distance<this.options.threshold&&a.deltaTime<this.options.time;clearTimeout(this.Jb);if(c){var b=this;if(4!=a.inputType)return b.Jb=setTimeout(function(){b.state=32;b.Da=void 0;b.Kb=0},b.options.interval),32;var c=!this.Da||a.timeStamp-this.Da.timeStamp<this.options.interval,e=!this.Da||Ib(this.Da.center,a.center)<this.options.offset;this.Da=a;this.Kb=c&&e?this.Kb+1:1;if(this.Kb===this.options.Re&&this.options.Ge)return 8;this.Kb===
this.options.Re&&(this.Jb=setTimeout(function(){b.state=8;Mb(b,b.Da)},this.options.interval))}return 32};Sb.prototype.I=function(a){a.count=this.Kb;this.Kb=0;this.Da=void 0};function Tb(a,c,b){Kb.call(this,a,c,b);this.Jb=null;this.Da=void 0}ha(Tb,Kb);Tb.prototype.A={type:"press",gb:1,time:450,threshold:5};
Tb.prototype.ec=function(a){var c=a.touches.length===this.options.gb&&a.distance<this.options.threshold;if(c&&a.inputType&1){var b=this;clearTimeout(this.Jb);this.Da=a;this.Jb=setTimeout(function(){b.state=8;Mb(b,b.Da)},this.options.time)}else c&&a.inputType&2?this.Da=a:(clearTimeout(this.Jb),this.Da=void 0);return 32};function F(a,c){return a&&a.classList?a.classList.contains(c):!!(a&&a.className&&(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")).test(a.className))}function G(a,c){a&&(a.classList?a.classList.add(c):F(a,c)||(a.className=((a.className||" ")+" "+c).trim()))}function Ub(a,c){a&&(a.classList?a.classList.remove(c):F(a,c)&&(a.className=a.className.replace(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")," ").trim()||""),0===a.className.length&&a.removeAttribute("class"))}
function Vb(a,c,b){a&&(null!=b?b?G(a,c):Ub(a,c):a.classList?(a.classList.toggle(c),0===a.className.length&&a.removeAttribute("class")):F(a,c)?Ub(a,c):G(a,c))}function H(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function Wb(a){return I(a)?Ma(a.childNodes):[]}function Xb(a,c){var b=Yb(a);if(b.parentNode!==c){for(;b.parentNode!==c;)b=b.parentNode;return Yb(b)===Yb(a)}return 0===J(b)}function Yb(a){return I(a)&&a.firstChild?Yb(a.firstChild):a}
function Zb(a){return I(a)&&a.lastChild?Zb(a.lastChild):a}function $b(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function ac(a,c){var b=a.parentNode;b&&b.replaceChild(c,a);return c}function bc(a){if(a){for(;a.firstChild;)a.parentNode.insertBefore(a.removeChild(a.firstChild),a);H(a)}}function cc(a,c){for(;a.firstChild;)c.appendChild(a.firstChild)}var dc;function ec(a){dc?dc.lastIndex=0:dc=new RegExp("<(("+na.join("|")+")[^\\s/>]*?)>(?![^]*?<\\/\\1>)","gi");return a.replace(dc,"<$1/>")}
function fc(a,c){var b=null;try{if(a&&0<a.length){var e=gc(c||document,"div");a=Xa(a).replace(/&nbsp;/gi,"\u00a0");hc(e)&&(x.log("Before XHTML",a),a=ec(a),x.log("Processed XHTML",a));ic(e,a);var d=e.ownerDocument.createRange();d.selectNodeContents(e);b=d.extractContents()}}catch(f){}return b}function jc(a,c){for(var b=c.ownerDocument.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);c.appendChild(b)}function kc(a,c){$b(c);jc(a,c)}
function lc(a,c){cc(a,c);a.appendChild(c);return c}function mc(a,c){B(I(a),"<$>");c=c.toLowerCase();if(K(a)===c||!a.parentNode)return a;for(var b=a.ownerDocument.createElement(c),e=0;e<a.attributes.length;e++)b.setAttributeNS(a.attributes[e].namespaceURI,a.attributes[e].name,a.attributes[e].value);B(I(a),"<$>");B(I(b),"<$>");B(!b.hasChildNodes(),"new node has to be empty <$>");a.parentNode.insertBefore(b,a);cc(a,b);H(a);return b}
function gc(a,c,b,e){a instanceof Document||(a=a.ownerDocument);c=a.createElement(c?c.toString().toLowerCase():"div");if(null!=b)for(var d in b)if(u(d)){var f=b[d];u(f)?c.setAttribute(d,f):x.warn("Provide a string as attribute value",d,f)}if(null!=e)if(u(e))c.innerHTML=e;else if(da(e))for(b=0;b<e.length;b++)(d=e[b])&&(u(d)?c.appendChild(a.createTextNode(d)):c.appendChild(d));else if(e instanceof Node)c.appendChild(e);else throw"Unsupported type for opt_inner";return c}
function ic(a,c){a&&(B(I(a),"Expected a HTML element"),a.insertAdjacentHTML?(a.hasChildNodes()&&$b(a),a.insertAdjacentHTML("afterbegin",c)):a.innerHTML=c)}function nc(a){return null!=a&&null!=a.nodeType?a.innerText:""}function M(a,c,b){return gc(document,a,c,b)}function oc(){return M("div",{},[M("br")])}
function pc(a,c){var b;if(a){if(a===c)return null;if(a.previousSibling)a=a.previousSibling;else return(b=a.parentNode)&&b!==c&&1==b.nodeType?b:null}else a=c||document.ownerDocument.documentElement;for(;b=a.lastChild;)a=b;return a}function qc(a,c){if(!a){if(!c)return null;a=c}var b=a.firstChild;if(b)return b;for(;a&&a!==c;){if(b=a.nextSibling)return b;a=a.parentNode}return null}
function hc(a){return(a=(a?a.ownerDocument||a:document).documentElement)&&a.nodeName?a.nodeName!==a.nodeName.toUpperCase():!1}function rc(a){return!(!a||3!==a.nodeType)}function I(a){return!(!a||!a.nodeType||1!==a.nodeType)}function sc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&8):!1}function tc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&16):!1}function uc(a){return!(!a||!a.isEqualNode(document.documentElement)&&!sc(a,document.documentElement))}
function vc(a){try{if(a&&(I(a)||(a=a.parentNode),a))return window.getComputedStyle(a)}catch(c){}return null}function wc(a,c,b){if(null==a)return null;null==c&&(c=!1);null==b&&(b=1);var e;c||null!=e?c=e=0:(e=document.body.scrollLeft,c=document.body.scrollTop);return{left:a.left*b+e,right:a.right*b+e,top:a.top*b+c,bottom:a.bottom*b+c,width:a.width*b,height:a.height*b}}
function xc(a){var c;if(null==a)return null;null==c&&(c=!1);if(null==a.nodeType||!uc(a)||!a.getClientRects)return null;var b=a.getClientRects();0===b.length&&(b=a.ownerDocument.createRange(),b.selectNode(a),b=b.getClientRects());return 1<=b.length?wc(b[0],c,yc(a)):null}function zc(a){return(a=vc(a))&&a.display?"block"===a.display.toLowerCase():!1}function Ac(a){return!(!a||(-1===la.indexOf(K(a))||F(a,"en-container"))&&9!==a.nodeType&&11!==a.nodeType)}
function Bc(a,c){var b=a;this.A=function(){a:{var a,d;if(b){if(b.firstChild){b=b.firstChild;break a}if(b!=c){if(a=b.nextSibling){b=a;break a}for(d=b.parentNode;d&&d!=c;d=d.parentNode)if(a=d.nextSibling){b=a;break a}}}b=void 0}return b}}function Cc(a){return!(!a||Ac(a))}function Dc(a,c){return null!=a&&null!=c&&!!(a.compareDocumentPosition(c)&4)}function K(a){return a&&a.tagName?a.tagName.toLowerCase()||void 0||"":""}function Ec(a,c){return a&&a.getAttribute?a.getAttribute(c)||void 0||"":""}
function J(a){for(var c=0;a=a.previousSibling;)c++;return c}function O(a){if(!a)return 0;switch(a.nodeType){case 7:case 10:return 0;case 3:case 8:return a.length;default:return a.childNodes.length}}function P(a,c,b){b||(b=document.body);return a===b?null:Q(a,c)?a:(a=a&&a.parentNode)?P(a,c,b):null}function Fc(a,c){return P(a.parentNode,Ac,c)}function Q(a,c){return a&&c?c instanceof Function?c(a):I(a)&&u(c)?a.webkitMatchesSelector(c):!1:!1}function R(a,c){return c?K(a)===c:I(a)}
function S(a){return"br"===K(a)}function Gc(a,c){return!0===c?!!P(a,Gc):I(a)?"true"===a.contentEditable:!1}function Hc(a,c,b){I(a)&&(!0===b?a.contentEditable=c?"true":"false":(a.contentEditable=c?"true":"inherit",c||a.removeAttribute("contenteditable")))}var Ic={};function Jc(a){var c=Ic[a];c?c.lastIndex=0:(c=new RegExp("(^|;)\\s*("+Ra(a)+")\\s*\\:\\s*(.*?)($|;)+","gi"),Jc[a]=c);return c}function Kc(a){return a&&a.getAttribute?a.A?a.I:a.getAttribute("style"):""}
function Lc(a){a&&a.getAttribute&&!a.A&&(a.A=!0,a.I=a.getAttribute?a.getAttribute("style"):"")}function Mc(a){if(a&&a.A){var c=a.I;"undefined"!==typeof c&&a.getAttribute("style")!==c&&(null===c||0===c.trim().length?a.removeAttribute("style"):a.setAttribute("style",c));delete a.I;delete a.A}}function Nc(a){a&&a.hasAttribute&&a.hasAttribute("style")&&(a.getAttribute("style").trim().length||a.removeAttribute("style"))}
function Oc(a,c){var b=Kc(a);if(null==b)return null;b=Jc(c).exec(b);return null===b?null:b[3].trim()}function Pc(a,c){var b=Kc(a);if(null==b)return"";b=b.replace(Jc(c),"$1").trim();if(a.A)return a.I=b;0<b.length?a.setAttribute("style",b):a.removeAttribute("style");return b||""}function T(a,c,b){var e=Pc(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),e=e+c+":"+b+";",a.A?a.I=e:a.setAttribute("style",e))}
function Qc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return null;b=Jc(c).exec(b);return null===b?null:b[3].trim()}function Rc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return"";b=b.replace(Jc(c),"$1").trim();0<b.length?a.setAttribute("en-app-data",b):a.removeAttribute("en-app-data");return b||""}function Sc(a,c,b){var e=Rc(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),a.setAttribute("en-app-data",e+c+":"+b+";"))}
function Tc(a,c){I(a)&&a.style?(a.style.display=c?"":"none",Nc(a)):x.warn("Failed to set visibility on non HTML element",a)}function Uc(){var a;a="span";B(u("-evernote-sentoj-emoticon")||!0);return a+'[style*="-evernote-sentoj-emoticon"]'}function Vc(a){a=U(Uc(),a,!0);return a=a.filter(function(a){return"true"===Oc(a,"-evernote-sentoj-emoticon")})}function Wc(a){for(var c=[];a&&a.parentNode;)c.unshift(a.parentNode),a=a.parentNode;return c}
function U(a,c,b){c||(c=document);try{return Ma(c.querySelectorAll(a),b)}catch(e){throw 0===e.toString().indexOf("Uncaught error in JS: SyntaxError: DOM Exception 12")&&x.error("Wrong syntax in selector:",a),e;}}function W(a,c){return U(a,c,!0)}function Xc(a,c,b){for(;a&&(a=qc(a,b));)if(Q(a,c))return a;return null}function Yc(a,c,b){for(;a&&(a=pc(a,b));)if(Q(a,c))return a;return null}var Zc=/^[\t\n\r ]+$/;function $c(a){Zc.lastIndex=0;return rc(a)&&(""===a.data||Zc.test(a.data))}
function ad(a,c){var b=M("div",{style:"position: absolute; width: 1px; height: 1px; top: -9999px; left: -9999px;"});b.appendChild(a);document.body.appendChild(b);c(a);H(a);H(b)}function bd(a,c,b){b=b||document.body;var e;if(!sc(a,b)){do if(I(a)&&a.hasAttribute("style")&&(e=a.style[c],null!=e))break;while((a=a.parentNode)&&b===a)}return e||""}
function cd(a,c){var b;b=b||document.body;c=c||0;a=a||0;if(0===c)b.scrollTop=a;else{var e=b.scrollTop,d=a-e,f=0,g=function(){f+=20;var a;a=f;a/=c/2;1>a?a=d/2*a*a+e:(a--,a=-d/2*(a*(a-2)-1)+e);b.scrollTop=a;f<c&&window.setTimeout(g,20)};g()}}function dd(a,c){if(!I(a))return!1;var b=a.getBoundingClientRect();return ed(b.top,b.bottom,c)}function ed(a,c,b){var e=window.scrollY,d=e+window.innerHeight;null==b&&(b=55);a+=e;c+=e;return Math.max(0,Math.round((Math.min(d,c)-Math.max(e,a))/(c-a)*100))>=b}
var gd=new qb;function hd(a,c){var b=gd.get(a);b||(b={},gd.set(a,b));c&&!b.id&&(b.id=nb().toString());return b}function id(a,c){var b=a.id||hd(a,!0).id;return c+"@"+b}function jd(a){return null==a?a:0<a.children.length?a.children[a.children.length-1]:null}function kd(){var a=document.querySelector("#en-tools");a||(a=M("div",{"class":"en-tools",id:"en-tools"}),document.body.appendChild(a));return a}
function yc(a){var c=1;if(a){var b=document.querySelector("#en-note"),e=b?b.parentNode:null;if(b&&e){for(var d=!1;a;){if(a===b){d=!0;break}a=a.parentNode}d&&void 0!==e.style&&void 0!==e.style.zoom&&""!==e.style.zoom&&(c=parseFloat(e.style.zoom))}}return c};function ld(a,c,b,e){try{var d=document.createRange();null!=a&&(d.setStart(a||null,c||0),null!=b?d.setEnd(b||null,e||0):d.setEnd(a||null,c||0));return d}catch(f){}return null}function md(a,c){if(null!=a&&(!c||nd(a,c))){var b=window.getSelection();null!=b&&(b.setBaseAndExtent?b.setBaseAndExtent(a.startContainer,a.startOffset,a.endContainer,a.endOffset||0):(b.removeAllRanges(),b.addRange(a)))}}
function X(a){var c=window.getSelection();if(1>c.rangeCount)return null;c=c.getRangeAt(0);return a&&c&&!nd(c,a)?null:c?c.cloneRange():null}function od(a){var c=document.createRange();c.selectNode(a);md(c)}function pd(){window.getSelection().removeAllRanges()}function nd(a,c){return(a.startContainer===c||sc(a.startContainer,c))&&(a.endContainer===c||sc(a.endContainer,c))}function qd(a,c,b){if(!a)return null;var e;return(e=P(rd(a),c,b))?e:a.collapsed?null:P(sd(a),c,b)}
function rd(a){return a?rc(a.startContainer)?a.startContainer:a.startContainer.childNodes[a.startOffset]||a.startContainer:null}function sd(a){return a?rc(a.endContainer)?a.endContainer:a.endContainer.childNodes[a.endOffset]||a.endContainer.lastChild||a.endContainer:null}function td(a,c){return null==a||null==c?!1:a.startContainer===c.startContainer&&a.startOffset===c.startOffset&&a.endContainer===c.endContainer&&a.endOffset===c.endOffset?!0:!1}
function ud(a){return a?{startContainer:a.startContainer,startOffset:a.startOffset,endContainer:a.endContainer,endOffset:a.endOffset,collapsed:a.collapsed}:null}function vd(a){if(!a)return null;try{var c=ld(a.startContainer,a.startOffset,a.endContainer,a.endOffset)}catch(b){c=null}return c}function wd(a,c){if(!a||a.collapsed)return[];for(var b=[],e=a.commonAncestorContainer,d=a.startContainer;d&&a.intersectsNode(d);d=qc(d,e))c&&!Q(d,c)||b.push(d);return b}
function xd(a){a=a.getClientRects();return 0<a.length?a[0]:null}
function yd(a){if(null==a)return null;var c=xd(a);if(null==c||a.collapsed){if(!uc(a.startContainer))return null;var b=a.cloneRange();rc(b.startContainer)&&(0<b.startOffset&&b.setStart(b.startContainer,b.startOffset-1),c=xd(b),!c&&b.startOffset<O(b.startContainer)-1&&(b=a.cloneRange(),b.setEnd(b.startContainer,b.startOffset+1),c=xd(b)));if(!c)for(a=rd(a);a&&a!==document.body;){if(a.getClientRects&&(b=a.getClientRects(),0<b.length)){c=b[0];break}a=a.parentNode}if(!c)return null}return wc(c)}
function zd(a){if(null!=a){var c=document.body.scrollTop,b=window.innerHeight,e;e=c+b;var d;if(d=(d=Ad.env)&&null!=d.editorInset?d.editorInset:{top:0,bottom:0,left:0,right:0})0!==d.top&&(c+=d.top),0!==d.bottom&&(e-=d.bottom);a=null==a.nodeType?yd(a):xc(a);if(null!=a){var f=Math.min(24,b/12),g=f/2,k=null;a.bottom+g>e?k=Math.max(0,a.bottom-b+f):a.top-g<c&&(k=Math.max(0,a.top-f));null!=k&&(k!==d.top||0===d.top&&0===k)&&(document.body.scrollTop=k)}}}
function Bd(a,c,b){if(c&&(c=P(a,c,b),null!==c))return c;for(;rc(a);)a=a.parentNode;return a}function Cd(a,c,b){var e=rd(a);a=sd(a);e=Bd(e,c,b);a=Bd(a,c,b);if(e===a)return[e,a];c=Wc(e);b=Wc(a);if(c[0]!==b[0])return[e,a];for(var d=0;d<c.length&&d<b.length&&c[d]===b[d];d++);e=[e,a];d<c.length&&(e[0]=c[d]);d<b.length&&(e[1]=b[d]);return e}
Range.prototype.intersectsNode||(x.warn("Range.intersectsNode has been added by polyfill!"),Range.prototype.intersectsNode=function(a){var c=a.ownerDocument.createRange();try{c.selectNode(a)}catch(b){c.selectNodeContents(a)}return-1===this.compareBoundaryPoints(Range.END_TO_START,c)&&1===this.compareBoundaryPoints(Range.START_TO_END,c)});function Dd(a,c,b){b||(b=a);b=new Bc(a,b);do if(!c(a))return!1;while(a=b.A());return!0}function Ed(a){return!(!a||!a.nodeType||3===a.nodeType||-1==="img embed object input param hr".split(" ").indexOf(K(a))&&!F(a,"en-media")&&!F(a,"en-module"))}function Fd(a){var c=0;return Dd(a,function(a){return!(rc(a)&&!$c(a)||S(a)&&1<++c||Ed(a))})}
function Gd(a){var c=0;return Dd(a,function(a){var e=!(a&&a.nodeType&&3!==a.nodeType&&"li"===K(a)),d=!Ed(a);S(a)&&(c+=1);var f=!(1<c);a=/^[ \t\n\r]*$/g.test(a.textContent||"");return e&&d&&f&&a})}function Hd(a){return Dd(a.firstChild,function(a){return!(a&&!gb(a.textContent))&&!Ed(a)},a)};function Id(a){a.preventDefault();a.stopPropagation();return!1}var Jd={};function Kd(){var a;a="onmouseenter";if(null!=Jd[a])return Jd[a];var c=M({select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"}[a]||"div"),b=a in c;b||(c.setAttribute(a,"return;"),b="function"===typeof c[a]);return Jd[a]=b};var Ld={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};
function Md(a){var c={};a=String(a);var b="#"==a.charAt(0)?a:"#"+a;if(Nd(b))return c.Yb=Od(b),c.type="hex",c;a:{var e=a.match(Pd);if(e){var b=Number(e[1]),d=Number(e[2]),e=Number(e[3]);if(0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e];break a}}b=[]}if(b.length){a=b[0];d=b[1];b=b[2];a=Number(a);d=Number(d);b=Number(b);if(isNaN(a)||0>a||255<a||isNaN(d)||0>d||255<d||isNaN(b)||0>b||255<b)throw Error('"('+a+","+d+","+b+'") is not a valid RGB color');c.Yb="#"+Qd(a.toString(16))+Qd(d.toString(16))+
Qd(b.toString(16));c.type="rgb";return c}if(Ld&&(b=Ld[a.toLowerCase()]))return c.Yb=b,c.type="named",c;throw Error(a+" is not a valid color string");}var Rd=/#(.)(.)(.)/;function Od(a){if(!Nd(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Rd,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Sd=/^#(?:[0-9a-f]{3}){1,2}$/i;function Nd(a){Sd.lastIndex=0;return Sd.test(a)}var Pd=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;
function Qd(a){return 1==a.length?"0"+a:a}function Td(a){if("currentcolor"===a.toLowerCase())return null;try{var c=Md(a),b;if(c.Yb){var e=c.Yb,e=Od(e);b="rgb("+[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)].join(", ")+")"}else b=null;return b}catch(d){return null}}function Ud(a){try{var c=Md(a);if(c.Yb)return c.Yb}catch(b){}return null};function Vd(a,c,b){if("undefined"===typeof b||0===+b)return Math[a](c);c=+c;b=+b;if(isNaN(c)||"number"!==typeof b||0!==b%1)return NaN;c=c.toString().split("e");c=Math[a](+(c[0]+"e"+(c[1]?+c[1]-b:-b)));c=c.toString().split("e");return+(c[0]+"e"+(c[1]?+c[1]+b:b))}Math.Wa||(Math.Wa=function(a,c){return Vd("round",a,c||0)});Math.xf||(Math.xf=function(a,c){return Vd("floor",a,c||0)});Math.qf||(Math.qf=function(a,c){return Vd("ceil",a,c||0)});var Wd=/^(\-?\d*\.?\d*)(px|em|\%|pt)?$/,Xd=0,Yd=0;
function Zd(a){var c=null;if("number"===typeof a)c={Nb:"px",value:a,Db:a.toString(),kd:a||null};else{Wd.lastIndex=0;var b=Wd.exec(a);b&&(c={Nb:b[2]||"px",value:parseFloat(b[1]),Db:b[1],kd:a||null})}return c}
function $d(a){a=a||document.body;a=vc(a);Xd=Zd(a.fontSize).value;B(!!Xd,"Did not find base font size",Xd,a.fontSize);a=M("div",{style:"height: 100pt; left: -100%; position: absolute; top: -100%; width: 100pt; "});document.body.appendChild(a);Yd=a.offsetHeight/100;B(!!Yd,"Did not find pt ratio",Yd);H(a)}
function ae(a,c,b){var e=a||null;if(u(a)){var d=Zd(a);d?(a=d.value,b=d.Nb):a=null}c||(c="px");if(!a)return{Nb:c,value:0,Db:"0",kd:e,xc:b};b||(b="px");if(b===c)return a=Math.Wa(a),{Nb:c,value:a,Db:a+c,kd:e,xc:b};"px"===b&&"px"===c||B(0<Xd,"en.unit.init needs to get called first!");"px"===b?"em"===c?a=Math.Wa(a/Xd):"%"===c?a=Math.Wa(100*a/Xd):"pt"===c&&(a=Math.Wa(a/Yd)):"pt"===b?"em"===c?a=Math.Wa(a*Yd/Xd):"%"===c?a=Math.Wa(100*a*Yd/Xd):"px"===c&&(a=Math.Wa(a*Yd)):"%"===b?"em"===c?a=Math.Wa(a/100):
"pt"===c?a=Math.Wa(a*Xd/(100*Yd)):"px"===c&&(a=Math.Wa(a*Xd/100)):B(!1,"Not implemented yet",b,"=>",c);return{Nb:c,value:a,Db:a+c,kd:e,xc:b}}function be(a){return ae(a).value||0};function ce(a,c){null==a&&(a=document.body);for(var b=a,e=c.length-1;0<=e&&null!=b;e--){var d=c[e];d>O(b)&&(d=O(b)-1);b=b.childNodes[d]}return b||null}function de(a,c){var b=[];null==c&&(c=document.body);for(;a&&a.parentNode&&a!==c;){for(var e=0,d=a.parentNode.childNodes,f=0;f<d.length;f++)if(d[f]===a){e=f;break}b.push(e);a=a.parentNode}return b}
function ee(a,c,b){for(var e=[];1==c.nodeType;){var d=c.childNodes[b];if(!d&&!c.lastChild)break;d?(c=d,b=0):(c=c.lastChild,b=O(c))}c=b={node:c,offset:b};if(3==c.node.nodeType)for(b=c.node.previousSibling;b&&3==b.nodeType;b=b.previousSibling)c.offset+=O(b);else b=c.node.previousSibling;d=c.node.parentNode;c.node=b?b.nextSibling:d.firstChild;b=c;for(c=b.node;c&&c.parentNode&&c!==a;){for(var f=d=0,g=c.parentNode.childNodes,k=0;k<g.length;k++){var p=g[k];3!==p.nodeType&&0<f&&(++d,f=0);if(p===c)break;
3===p.nodeType?f+=O(p):++d}e.push(d);c=c.parentNode}return{path:e,offset:b.offset}}function fe(a,c,b){null==a&&(a=document.body);var e="";c&&(b?(b=ee(a,c.startContainer,c.startOffset),a=ee(a,c.endContainer,c.endOffset),e={startPath:b.path,startOffset:b.offset,endPath:a.path,endOffset:a.offset,collapsed:c.collapsed}):e={startPath:de(c.startContainer,a),startOffset:c.startOffset,endPath:de(c.endContainer,a),endOffset:c.endOffset,collapsed:c.collapsed});return JSON.stringify(e)}
function ge(a,c){null==a&&(a=document.body);if(!c)return null;var b=JSON.parse(c),e;if(b&&b instanceof Object)a:{var d=a;null==d&&(d=document.body);if(void 0===d||!b)throw"All arguments required";try{var f=ce(d,b.startPath),g=ce(d,b.endPath);if(!f||!g){e=null;break a}var k=ld(f,b.startOffset,g,b.endOffset);b.collapsed&&k.collapse(!0);e=k;break a}catch(p){x.error("Exception <$>",p.toString())}e=null}else e=null;return e}
function he(a,c){null==a&&(a=document.body);var b=X(a);return b?fe(a,b,c):null}function ie(a,c){null==a&&(a=document.body);he(a);if(c){var b=ge(a,c);b&&md(b)}};function je(){var a=this;a.name="observer";var c=null,b={};a.Ud=function(a,c,f){var g=nb().toString();b[g]={name:g,Wd:a,F:c,S:f||Ga,Ob:new qb}};a.D=function(){var a,d,f,g=Object.keys(b);for(a=0;a<g.length;a++){var k=b[g[a]],p=U(k.Wd,c);for(d=0;d<p.length;d++){var h=p[d];k.Ob.has(h)||(f=k.F(h),k.Ob.set(h,f))}h=k.Ob;for(d=h.ia.length-1;0<=d;d--){var l=h.ia[d];-1===p.indexOf(l)&&(f=h.$a[d],k.S(l,f),f=h,l=d,f.ia.splice(l,1),f.$a.splice(l,1))}}};a.F=function(b){c=D(b,{root:null}).root||a.G("context").root;
a.B.I("execCommand",a.D.bind(a));a.B.listener(document,"input",a.D.bind(a));a.B.ba(c,"contentReady",a.D.bind(a),-1)};a.S=function(){c=null}};function ke(a){function c(a,b,c){this.Ve=a;this.uf=b;this.title=c||null}B(this instanceof ke,"Use `new` to instantiate this class");var b=[],e=[],d=a&&a.maxLength||0;this.La=function(a,g,k){if(a)if(g){if(a=new c(a,g,k),e=[],a.Ve(),b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";else throw"UndoRedo.do missing required parameter 'up'.";};this.register=function(a,g,k){if(a)if(g){if(a=new c(a,g,k),e=[],b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";
else throw"UndoRedo.do missing required parameter 'up'.";};this.N=function(){return 0<b.length};this.J=function(){return 0<e.length};this.M=function(){return b&&0!==b.length?b[b.length-1].title:null};this.I=function(){return e&&0!==e.length?e[e.length-1].title:null};this.L=function(){var a=b.pop();return a?(a.uf(),e.push(a),!0):!1};this.A=function(){var a=e.pop();return a?(a.Ve(),b.push(a),!0):!1};this.clear=function(){b=[];e=[]}};function le(){function a(a,b,c){c=c||M("div");c.setAttribute("data-en-overlay-id",a);c.setAttribute("data-en-layout-algorithm",b);Oc(c,"z-index")||T(c,"z-index","900");T(c,"position","absolute");k.appendChild(c);return c}function c(a,b){e.Ka(b).forEach(function(a){e.detach(a)});null!=g[b]&&delete g[b];gd.remove(a)}function b(){for(var a,b,m=Object.keys(f),r=0;r<m.length;r++){var e=f[m[r]],g=U(e.Wd,d);for(a=0;a<g.length;a++){var k=g[a];e.Ob.has(k)||(b={id:hd(k,!0).id},e.Ob.set(k,b),e.F(k,b))}var k=
[],p=e.Ob;for(a=p.ia.length-1;0<=a;a--){var A=p.ia[a];if(-1===g.indexOf(A)){b=p.$a[a];e.S(A,b);var z=p,t=a;z.ia.splice(t,1);z.$a.splice(t,1);k.push([A,b.id])}}for(a=k.length-1;0<=a;a--)c.apply(this,k[a])}}var e=this;e.name="layer";var d=null,f={},g={},k=null,p=!1;e.D={};e.D.cover=function(a,b){var c=xc(a);b.style.top=c.top+"px";b.style.left=c.left+"px";b.style.width=c.width+"px";b.style.height=c.height+"px"};e.D.anchor=function(a,b){var c=xc(a);b.style.top=c.top+"px";b.style.left=c.left+"px"};e.D.bottomRightCorner=
function(a,b){var c=xc(a),f=document.documentElement.clientWidth-c.right;b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.right=f+"px"};e.D.bottomLeftCorner=function(a,b){var c=xc(a);b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.left=c.left+"px"};e.D.bottomRightResizeHandle=function(a,b){var c=xc(a),f=document.documentElement.clientWidth-c.right-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.right=f+"px"};e.D.bottomLeftResizeHandle=
function(a,b){var c=xc(a),f=c.left-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.left=f+"px"};e.D.rightEdge=function(a,b){var c=Math.floor(xc(b).width/2),f=xc(a),c=document.documentElement.clientWidth-f.right-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+"px";b.style.right=c+"px";b.style.bottom=d+"px"};e.D.leftEdge=function(a,b){var c=Math.floor(xc(b).width/2),f=xc(a),c=f.left-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+
"px";b.style.left=c+"px";b.style.bottom=d+"px"};e.D.tableColumnEdge=function(a,b){e.D.rightEdge(a,b);var c=P(a,"table"),c=document.documentElement.clientHeight-xc(c).bottom;b.style.bottom=c+"px"};e.Ud=function(a,b,c){var d=nb().toString();f[d]={name:d,Wd:a,F:b,S:c||Ga,Ob:new qb}};e.ee=function(){return k};e.J=function(a){return a.getAttribute("data-en-layout-algorithm")};e.Ka=function(a){var b="";if(null==a)b="[data-en-overlay-id]";else if("string"===typeof a)b='[data-en-overlay-id="'+a+'"]';else if(a instanceof
Element){a=hd(a).id;if(null==a)return[];b='[data-en-overlay-id="'+a+'"]'}else return[];return U(b,k)};e.getParent=function(a){return(a=g[a])&&a.node||null};e.We=function(a){if(a){var b=a.getAttribute("data-en-overlay-id");if(null!=b){var m=e.getParent(b);if(null==m)e.detach(a);else if(uc(m)){if(b=e.J(a),null!=b&&"undefined"!==typeof e.D[b])e.D[b](m,a)}else c(m,b)}}};e.Na=function(a){!0===a&&(p=!0);p&&b();a=e.Ka();for(var c=0;c<a.length;c++)e.We(a[c])};e.Fb=function(b,c){var m;c=c||"cover";B("undefined"!==
typeof e.D[c],"Invalid layout algorithm:",c);B(I(b),"Expected a node!");var f=hd(b,!0).id;B(!!f&&u(f),"Expected an ID");f in g?++g[f].md:g[f]={node:b,md:1};m=a(f,c,m);e.D[c](b,m);return m};e.U=function(b,c,f){f=f||"cover";B("undefined"!==typeof e.D[f],"Invalid layout algorithm:",f);B(I(b),"Expected a node!");var d=hd(b,!0).id;B(!!d&&u(d),"Expected an ID");d in g?++g[d].md:g[d]={node:b,md:1};for(var k=0;k<c.length;k++)c[k]=a(d,f,c[k]),e.D[f](b,c[k]);return c};e.N=function(a){k.appendChild(a);return a};
e.detach=function(a){var b=a.getAttribute("data-en-overlay-id"),c=g[b];c&&0>=--c.md&&delete g[b];H(a);return b};e.Yc=function(a,b,c,f,d){var k=!0;null==k&&(k=!1);var g=!1,p,A,z,t,C=M("div",{style:"position: fixed;top: 0px;left: 0px;right: 0px;bottom: 0px;z-index: 999;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none;"+(null==d?"":d)});e.B.listener(a,"mousedown",function(a){g=!0;p=a.pageX;A=a.pageY;z=a.pageX;t=a.pageY;!0===k&&e.ee().appendChild(C);
null!=b&&b()});e.B.listener(window,"mousemove",function(a){if(!1!==g){z=a.pageX;t=a.pageY;a=z-p;var b=t-A;null!=c&&c(a,b)}});e.B.listener(window,"mouseup",function(a){if(!1!==g){g=!1;z=a.pageX;t=a.pageY;a=z-p;var b=t-A;!0===k&&H(C);null!=f&&f(a,b)}})};e.F=function(a){d=D(a,{root:null}).root||e.G("context").root;k=kd();B(I(d));B(I(k));e.B.I("windowResize",e.Na.bind(e,!1),-2E3);e.B.I("execCommand",e.Na.bind(e,!0),-2E3);e.B.listener(document,"input",e.Na.bind(e,!0));e.Na(!0)};e.S=function(){e.Ka().forEach(function(a){e.detach(a)});
d=null}};function me(a){return Q(a,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")?!0:!1};function ne(){function a(a){c(a.target)}function c(a){bb(h.Ka(a),function(a){F(a,"img-resizer-handle")&&h.detach(a)})}function b(a){e(a.target)}function e(a){if(me(a))if(1!==w.length)U(".img-resizer-handle",h.ee()).forEach(function(a){a=h.getParent(a);c(a)});else{var b=!1;bb(h.Ka(a),function(a){if(F(a,"img-resizer-handle"))return b=!0,cb});if(!0!==b){var f=l.Ye(a),e=f===a.naturalWidth;if(!(142>=f)){var r=d(a),k="right"===d(a)?"bottomLeftResizeHandle":"bottomRightResizeHandle",g=h.Fb(a,k);T(g,"z-index",
"901");G(g,"img-resizer-handle");G(g,k);var p;"bottomRightResizeHandle"===k?p="cursor: nwse-resize;":"bottomLeftResizeHandle"===k&&(p="cursor: nesw-resize;");var va=function(){T(a,"height","auto");var b=xc(a);Pc(a,"width");a.setAttribute("width",b.width)},ca=xc(a);h.Yc(g,function(){null!=v&&x.warn("Multiple images being resized at once! <$>");v=a;va()},function(b){var c,d=xc(m).width;"right"===r?c=ca.width-b:c="center"===r?ca.width+2*b:ca.width+b;142>=c?a.setAttribute("width","142"):c>=d||c>=f?(a.removeAttribute("width"),
!1===e&&(l.fe(a),va())):a.setAttribute("width",""+c);h.Na()},function(){v=null;ca=xc(a);Y(m,"setDirty",{Cc:!0});od(a)},p)}}}}function d(a){a=(a=vc(a))?a.textAlign:null;return"center"===a?"center":"right"===a?"right":"justify"===a?"full":"left"}function f(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&(r=!1,od(a.target))}function g(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&od(a.target)}function k(a){!1!==
!!a.getAttribute("data-en-img-selected")&&(a.removeAttribute("data-en-img-selected"),bb(h.Ka(a),function(a){F(a,"img-selected-overlay")&&h.detach(a)}))}var p=this,h=null,l=null,m=null,r=!0;p.name="ui-img-resize";var v,w=[];p.F=function(){m=p.G("context").root;G(m,"en-ui-img-on");h=p.G("layer");l=p.G("img-dpi");p.B.ba(m,"imageSelected",b);p.B.ba(m,"imageUnselected",a);p.B.listener(m,"click",g);p.B.listener(m,"contextmenu",f);p.B.ba(m,"selectionChanged",function(){if(0!==m.getElementsByTagName("img").length){var a=
U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",m);w=[];if(0!==a.length){var b=window.getSelection();b.isCollapsed||bb(a,function(a){b.containsNode(a,!1)&&-1===w.indexOf(a)&&w.push(a)});!1===r?r=!0:bb(a,function(a){if(!b.isCollapsed&&b.containsNode(a,!1)){if(!a.getAttribute("data-en-img-selected")&&me(a)){a.setAttribute("data-en-img-selected","true");var c=h.Fb(a);G(c,"img-selected-overlay");var f=M("div",{"class":"img-selected-overlay-top-left-corner"}),l=M("div",
{"class":"img-selected-overlay-top-right-corner"}),d=M("div",{"class":"img-selected-overlay-bottom-left-corner"}),e=M("div",{"class":"img-selected-overlay-bottom-right-corner"}),r=M("div",{"class":"img-selected-overlay-right-edge"}),g=M("div",{"class":"img-selected-overlay-left-edge"});c.appendChild(f);c.appendChild(l);c.appendChild(d);c.appendChild(e);c.appendChild(r);c.appendChild(g)}Y(m,"imageSelected",{target:a})}else v!==a&&(k(a),Y(m,"imageUnselected",{target:a}))})}}})};p.S=function(){Ub(m,
"en-ui-img-on");U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",m).forEach(function(a){k(a);c(a)});l=h=m=null}};function oe(a,c){var b=a.tagName?a.tagName:"x"+a.nodeType;c[b]||(c[b]=0);c[b]++;return b+c[b]}
function pe(a,c,b,e,d,f){for(var g=[],k=[],p={},h={},l=0,m=c.length;l<m;l++){var r=c[d?c.length-l-1:l],v=e.childNodes[+(d?e.childNodes.length-b[l]-1:b[l])],w=r.id?r.id:oe(r,h);if(!p[w]){var n=a[w];n?(n!==v&&(v=d?e.childNodes.length-n.rc-1:n.rc,g.push({action:"moveChildElement",element:n,baseIndex:f+">"+v,sourceIndex:f+">"+l}),b.splice(l,0,b.splice(v,1)[0])),r.isEqualNode(n)||k.push([r,n])):(r=r.cloneNode(!0),v=d?c.length-l-1:l,g.push({action:"insertChildElement",element:r,baseIndex:f+">"+v,sourceIndex:f+
">"+v}));p[w]=!0}}l=0;for(m=e.childNodes.length;l<m;l++)a=e.childNodes[l],p[a.ue]||g.push({action:"removeChildElement",element:a,baseIndex:f+">"+a.rc,sourceIndex:null});return{compare:k,diff:g}}function qe(a,c){return 0===a.baseIndex.indexOf(c.baseIndex)&&a.baseIndex!==c.baseIndex}
function re(a,c){if(!c||!a.childNodes||0===a.childNodes.length)return null;for(var b={},e=c.split(">"),d=!0,f="",g=1,k=e.length;g<k;g++){var p=parseInt(e[g],10);if(a.childNodes&&a.childNodes.length>p)a=a.childNodes[p];else{f=e.slice(0,g-1).join(">");d=!1;break}}b.lastParent=d?a.parentNode:a;b.lastParentIndex=d?c.slice(0,c.lastIndexOf(">")):f;b.node=d?a:null;b.found=d;return b}
function se(a,c,b){var e=[];if(a.isEqualNode(c))return e;null==b&&(b="0");if(3===a.nodeType&&3===c.nodeType)return c.nodeValue!==a.nodeValue&&e.push({action:"replaceText",element:c,baseIndex:b,sourceIndex:b,_deleted:c.nodeValue,_inserted:a.nodeValue}),e;if(a.attributes&&c.attributes){for(var d=a.attributes,f,g,k=0,p=d.length;k<p;k++){f=d[k].nodeValue;g=d[k].nodeName;var h=c.getAttribute(g);h!==f&&(null===h?e.push({action:"setAttribute",name:g,element:c,baseIndex:b,sourceIndex:b,_inserted:f}):e.push({action:"setAttribute",
name:g,element:c,baseIndex:b,sourceIndex:b,_deleted:h,_inserted:f}))}d=c.attributes;k=0;for(p=d.length;k<p;k++)g=d[k].nodeName,null===a.getAttribute(g)&&e.push({action:"removeAttribute",name:g,baseIndex:b,sourceIndex:b,_deleted:c.getAttribute(g)})}d=[];if(a.childNodes&&c.childNodes){k=c.childNodes;p={};d={};g=[];for(var h=0,l=k.length;h<l;h++){f=k[h];var m=f.id?f.id:oe(f,d);p[m]=f;f.rc=h;f.ue=m;g.push(h)}p={map:p,indices:g};a=a.childNodes;k=p.map;d=p.indices;p=pe(k,a,d.slice(0),c,!1,b);1<p.diff.length&&
(c=pe(k,a,d.slice(0),c,!0,b),c.diff.length<p.diff.length&&(p=c));e=e.concat(p.diff);d=p.compare}if(0<d.length)for(k=0,p=d.length;k<p;k++)c=d[k][1],a=se(d[k][0],c,b+">"+c.rc),0<a.length&&(e=e.concat(a)),delete c.rc,delete c.ue;return e}
function te(a,c){if(a.sourceIndex===c.sourceIndex)return 0;if(!a.sourceIndex&&c.sourceIndex)return-1;if(a.sourceIndex&&!c.sourceIndex)return 1;for(var b=a.sourceIndex.split(">"),e=c.sourceIndex.split(">"),d=0;d<b.length&&d<e.length;){var f=parseInt(b[d],10),g=parseInt(e[d],10);if(f===g)d++;else return isNaN(f)||isNaN(g)?isNaN(f)?1:-1:f>g?1:-1}return 0}
function ue(a,c,b){for(var e=[],d=[],f=[],g=[],k=0,p=a.length;k<p;k++){var h=a[k],l=h.action,m=h.baseIndex,r=h.sourceIndex,v=h._baseReference,w=h._sourceReference;if(h._conflict)h._baseReference=re(c,m),r&&m!==r&&(h._sourceReference=re(c,r)),g.push(h);else{var n=v;if(null==n&&(n=re(c,m),null==n)){e.push(h);continue}v=n.node;n.found?null!==v&&("moveChildElement"===l||"insertChildElement"===l?(n=v,r!==m&&(m=w,null==m&&(m=re(c,r)),n=null!==m?m.node:null),"moveChildElement"===l?d.push([v.parentNode,v,
n,h]):b?(r=document.createElement("ins"),r.appendChild(h.element),d.push([v.parentNode,r,n,h])):d.push([v.parentNode,h.element,n,h])):"removeChildElement"===l?(b&&(l=document.createElement("del"),l.appendChild(v.cloneNode(!0)),d.push([v.parentNode,l,null,h,!0])),f.push([v.parentNode,v])):"replaceText"===l?b?(m=v.parentNode,l=document.createElement("del"),l.appendChild(document.createTextNode(h._deleted)),r=document.createElement("ins"),r.appendChild(document.createTextNode(h._inserted)),d.push([m,
r,v,h]),d.push([m,l,v,h]),v.nodeValue=""):v.nodeValue=h._inserted:"setAttribute"===l?v.setAttribute(h.name,h._inserted):"removeAttribute"===l&&v.removeAttribute(h.name)):"insertChildElement"===l?(v=n.lastParent,b?(r=document.createElement("ins"),r.appendChild(h.element),d.push([v,r,null,h])):d.push([v,h.element,null,h])):e.push(h)}}d.sort(function(a,b){return te(a[3],b[3])});a=0;for(c=d.length;a<c;a++)r=d[a],b=r[0],k=r[1],p=r[2],h=r[3],r=r[4],null===p&&!r&&(r=h.sourceIndex)&&(h=parseInt(r.substr(r.lastIndexOf(">")+
1,r.length),10),b.childNodes&&b.childNodes.length>h&&(p=b.childNodes[h])),b.insertBefore(k,p);for(a=0;a<f.length;a++)h=f[a],h[0].removeChild(h[1]);for(f=[];0<g.length;)h=g.pop(),d={},d[h._owner]=h,h._conflictedWith&&(r=h._conflictedWith)&&(a=g.indexOf(r),-1<a&&(g.splice(a,1),d[r._owner]=r),delete h._conflictedWith,delete r._conflictedWith),f.push(d);return{unapplied:e,conflicts:f}};function ve(){var a=this;a.name="debug-overlay";var c=a.element=null;a.D=function(b,e){a.element.textContent=b;T(a.element,"background-color",e);c=a.B.timeout(function(){a.element.textContent="D";Pc(a.element,"background-color")},1E3,c)};a.F=function(){};a.S=function(){H(a.element)}};function we(a,c){c=c||{};c.version="1.0";window.evernoteClient&&window.evernoteClient.postNotification&&window.evernoteClient.postNotification(a,JSON.stringify(c))}function xe(a){we("setupDone",{module:a||"document"})}function ye(a,c){c=c||{};c.module=a||"";we("contentChanged",c)}function ze(a,c){c=c||{};c.module=a||"";we("focusChanged",c)}function Ae(){we("contentLoaded",{module:"content"})}function Be(a){we("titleBlur",{module:a||"title"})}
function Ce(a,c,b){b=b||{};b.href=a;b.module=c||"";we("openLink",b)}function De(){we("contextVisible",{module:"context"})}function Ee(a){we("contextExpanded",{module:"context",expanded:!!a})};function Fe(){function a(a){we(a.target.dataset.name,{src:l.src,module:f.name});a.stopPropagation()}function c(){p&&(f.B.remove(m),m=null,f.B.remove(r),r=null,g.detach(p),p.removeChild(h),l=p=null)}function b(a){var b=l;!0===w&&(v=!0,c(),null==a||"click"===a?b.click():b.dispatchEvent(new Event(a)))}function e(a){p&&(n=f.B.timeout(function(){var b;!(b=a.target!==l)&&(b=a.target===l)&&(b=l.getBoundingClientRect(),b=!(a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom));b&&(v=!1,c())},100,n))}function d(a){Q(a.target,
"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&a.target!==l&&!a.target.getAttribute("data-en-img-selected")&&!v&&me(a.target)&&(p&&c(),l=a=a.target,p=g.Fb(a,"anchor"),T(p,"display","inline"),p.appendChild(h),r=f.B.listener(p,"click",b))}var f=this;f.name="ui-img-buttons";var g=null,k=null,p=null,h=null,l=null,m=null,r=null,v=!1,w=!0,n;f.F=function(b){function c(h,l){var m=b[h];null!=m&&m&&(m=M("div",{"class":"en-imagebar-"+h+" en-imagebar-button","data-name":h}),
f.B.listener(m,"click",a),l.appendChild(m))}k=f.G("context").root;g=f.G("layer");f.B.listener(k,"mouseover",d);f.B.listener(k,"mousemove",e);h=M("div",{"class":"en-imagebar"});c("annotate",h);c("preview",h);c("rotate",h);w=b.bubbleImageClicks};f.S=function(){c();h=g=k=null}};function Ge(){B(this instanceof Ge,"Use new to instantiate");var a=this;a.name="analytics";var c={bold:"bold",bulleted_list:"insertunorderedlist",change_font_size:"fontsize",underline:"underline",highlighter:"highlight",checkbox:"inserttodo",italic:"italic",change_font_color:"forecolor",horizontal_rule:"inserthorizontalrule",change_font_family:"fontname",numbered_list:"insertorderedlist",strikethrough:"strikethrough",table:"inserttable",center_align:"justifycenter",left_align:"justifyleft",subscript:"subscript",
justified_align:"justifyfull",right_align:"justifyright",superscript:"superscript"},b=$a(c);a.D=null;a.F=function(e){e=D(e,{labels:Object.keys(c)});a.D=new rb;e.labels.forEach(function(b){c[b]&&a.D.add(c[b])});a.B.I("execCommand",function(c){a.D.has(c.name)&&(c={category:"note",action:"note_editor_action",label:b[c.name]},console.log(JSON.stringify(c)),we("analytics",c))})}};var Ad={},He=null,Ie=null,Je=[];function Ke(a){Lc(a);-1===Je.indexOf(a)&&Je.push(a)}function Le(){for(var a=0;a<Je.length;a++)Mc(Je[a]);Je=[]}function Me(a){B(ab(a),"Expected to get an non empty object");Ad=a}function Ne(){var a=Ad.env;return a&&null!=a.selectionColor?a.selectionColor:"rgb(167, 203, 245)"}function wb(a,c){ea(c)?Ab.N(a,c):Ab.D(a,c)}function Y(a,c,b){wb(id(a,c),null!=b?b:{target:a})};var Oe={tap:Sb,press:Tb,pan:Ob,swipe:Rb,rotate:Qb,pinch:Pb},Pe=["touchstart","touchmove","touchend","touchcancel"],Qe=1;
function Re(){function a(){++l;for(var a=p.$a,b=a.length-1;0<=b;b--){var c=a[b];l===c.tf&&(c.ib(),c.Uf&&e.remove(c.Ha))}}function c(a,b){try{1===a?He.Te(function(a){return a.Ha===b}):2===a?b[0].removeEventListener(b[1],b[2],b[3]):4===a?window.clearTimeout(b):10===a?(p.remove(b[0]),h&&0===p.ia.length&&(window.clearInterval(h),h=null)):5===a?window.clearInterval(b):7===a?b():8===a?(Nb(b[4],!1),Pe.forEach(function(a){b[0].removeEventListener(a,b[2],b[3])})):9===a?Ab.unsubscribe(b[0],b[1]):x.error("Unhandled binding cleanup step!",
a,b)}catch(c){pb(c)}}function b(a,b){var c={Me:++Qe,type:a,value:b};return g[c.Me]=c}var e=this;B(this instanceof Re,"Use `new` to instantiate this class");var d=!1,f=null,g={};e.V=function(){B(!1,"Not public!");return Object.keys(g)};e.remove=function(a){null!=a&&(c(a.type,a.value),delete g[a.Me])};e.F=function(a){a=D(a,{name:null});f=a.name;p=new qb;B(0===Object.keys(g).length,"Binding are in an undefined state before setup",f);B(!1===d,"You need to call cleanup first!",f);d=!0};e.S=function(){B(d,
"You need to call setup first!");d=!1;for(var a=Object.keys(g).sort(function(a,b){a=+a;b=+b;return a>b?1:a<b?-1:0}),b=a.length-1;0<=b;b--){var l=g[a[b]];c(l.type,l.value)}h&&(window.clearInterval(h),h=null);p=null;g={};f=k=null};var k=null;e.Gc=function(a){k=a};e.A=function(a){B(d,"You need to call setup first!");a.Ha=nb().toString();k&&(a=db(a,k,!0));He.Zf(a);return b(1,a.Ha)};e.listener=function(a,c,h,f){B(null!=a,"target is required!");B(d,"You need to call setup first!");B(!f||ab(f),"option must be dictionary when used");
var l=!!f&&!0===f.qg,e=[a,c,h,l];if(Oe[c.toLocaleLowerCase()]){c=c.toLocaleLowerCase();var k=new Oe[c](a,h,f);e[2]=function(a){var b=Bb[a.type],c=Eb.call(k,a,b);if(c){a={inputType:b,srcEvent:a,touches:c[0],changedTouches:c[1],target:a.target,type:k.options.type};var c=a.touches.length,h=a.changedTouches.length;a.isInitial=!!(b&1&&0===c-h);a.isFinal=!!(b&12&&0===c-h);a.isInitial&&(k.Xa={});k.Xa.Be||(k.Xa.Be=Fb(a));1<a.touches.length&&!k.Xa.yd?k.Xa.yd=Fb(a):1===a.touches.length&&(k.Xa.yd=void 0);var c=
k.Xa.Be,h=(b=k.Xa.yd)?b.center:c.center,f=a.center=Gb(a.touches);a.timeStamp=Date.now();a.deltaTime=a.timeStamp-c.timeStamp;a.angle=Hb(h,f);a.distance=Ib(h,f);var c=k.Xa,h=a.center,f=c.Tf||{},l=c.Wf||{},m=c.Xf||{};if(1===a.inputType||4===m.inputType)l=c.Wf={x:m.deltaX||0,y:m.deltaY||0},f=c.Tf={x:h.x,y:h.y};a.deltaX=l.x+(h.x-f.x);a.deltaY=l.y+(h.y-f.y);a.offsetDirection=Jb(a.deltaX,a.deltaY);b?(c=b.touches,h=a.touches,c=Ib(h[0],h[1])/Ib(c[0],c[1])):c=1;a.scale=c;b?(b=b.touches,c=a.touches,b=Hb(c[1],
c[0])-Hb(b[1],b[0])):b=0;a.rotation=b;b=k.Xa;m=b.Kf||a;c=a.timeStamp-m.timeStamp;8!=a.inputType&&(25<c||null==m.velocity)?(f=m.deltaX-a.deltaX,m=m.deltaY-a.deltaY,l={x:f/c||0,y:m/c||0},c=l.x,h=l.y,l=Math.abs(l.x)>Math.abs(l.y)?l.x:l.y,f=Jb(f,m),b.Kf=a):(l=m.velocity,c=m.velocityX,h=m.velocityY,f=m.direction);a.velocity=l;a.velocityX=c;a.velocityY=h;a.direction=f;k.state&56&&(k.state=1);k.state=k.ec(a);Mb(k,a);k.Xa.Xf=a}};e.push(k);f=b(8,e);Pe.forEach(function(b){a.addEventListener(b,e[2],l)})}else f=
b(2,e),a.addEventListener(c,h,l);return f};e.selection=function(a,b){function c(a,h){b.stopPropagation&&a.stopPropagation();!h&&0<a.touches.length||(e.remove(g),function(a){g=e.timeout(function(){f(!1);a&&b.wd()},10,g)}(!h&&l&&b.wd),l=!1,k=null)}function h(a){for(var b=0,c=0,f=a.length,l=0;l<f;l++)var m=a[l],b=b+m.clientX,c=c+m.clientY;return{x:Math.round(b/f),y:Math.round(c/f)}}function f(c){c?(G(a,"en-mobile-selected"),b.sd&&G(a,b.sd)):(Ub(a,"en-mobile-selected"),b.sd&&Ub(a,b.sd))}B(null==b||ab(b),
"en.bindingSelectionOpt is not the right object or undefined");var l=!1,d=!1,k=null,g;e.listener(a,"touchstart",function(a){d=b.enabled&&!b.enabled();d||(b.stopPropagation&&a.stopPropagation(),k=h(a.touches),l||(g=e.timeout(function(){l=!0;f(!0)},100,g)))});e.listener(a,"touchmove",function(a){if(!d){b.stopPropagation&&a.stopPropagation();var f;if(f=k){var l=h(a.touches);f=l.x-k.x;l=l.y-k.y;f=5<Math.sqrt(f*f+l*l)}f&&c(a,!0)}});e.listener(a,"touchend",c);e.listener(a,"touchcancel",c);e.listener(a,
"tap",function(a){d||(b.stopPropagation&&a.stopPropagation(),l||e.timeout(function(){f(!0);g=e.timeout(function(){f(!1);b.wd&&b.wd()},50,g)},0,g))},{Ge:!0})};e.I=function(a,c,h){Ab.subscribe(a,c,h);return b(9,[a,c])};e.ba=function(a,b,c,h){e.I(id(a,b),c,h)};e.timeout=function(a,c,h){B(d,"You need to call setup first!");h&&e.remove(h);var f=0,f=window.setTimeout(function(){a();for(var b=f,c=g.length-1;0<=c;c--)if(g[c][0]===b){g.splice(c,1);break}},c||0);return b(4,f)};var p=null,h=null,l=0;e.M=function(){l=
0};e.P=function(c,f){B(d,"You need to call setup first!");B(0<f,"Delay needs to be a number >0");var l=nb().toString(),k=b(10,l);p.set(l,{ib:c,Uf:!1,tf:f,Ha:k,id:l});h||(e.M(),h=window.setInterval(a,1E3))};e.L=function(a){b(7,a)}};function Se(a){var c=this;c.context=a||{};c.I=null;var b=[],e={};c.load=function(a){try{if(!a)return!1;a.fa=!1;B(!(0<=b.indexOf(a)),"Plugin has already been loaded:",a.name);B(!e[a.name],"There is another plugin with the same name!",a.name);b.push(a);a.name&&0<a.name.length&&(e[a.name]=a);a.B=new Re;return!0}catch(c){x.error("Exception in PluginManager.load <$>",c.toString()),pb(c)}};c.X=function(a){return e[a]||null};c.L=function(){return b.filter(function(a){return a.fa})};c.Xb=function(a){if(u(a))return e[a]||
null;for(var c=b.length-1;0<=c;c--){var g=b[c];if(a(g))return g}return null};c.A=function(a){B(null!=e[a],"The plugin",a,"is required here!");return e[a]};c.V=function(a){c.M=a};c.F=function(a,f){try{return B(!!a,"Expected a plugin"),B(!a.fa,"Plugin is already set up:",a.name),0<=b.indexOf(a)||c.load(a),a.B.F({name:a.name||"?"+nb()}),a.Bb=c,a.va=function(){a.Oa||(a.Oa=new Se(c.context),a.Oa.I=a);return a.Oa},a.Ua=c.Xb.bind(c),a.G=c.A.bind(c),c.M&&c.M(a),a.F&&a.F(f||{},c.context),a.fa=!0,a}catch(e){x.error("Exception in PluginManager.setup <$>",
e.toString()),pb(e)}};c.D=function(a){for(var f=0;f<b.length;f++)c.F(b[f],a)};c.W=function(a){for(var b=c.I;null!=b;){if(u(a)){if(b.name===a)return b}else if(a(b))return b;b=b.Bb.I}return null};c.S=function(a){try{B(!!a,"Expected a plugin"),B(a.fa,"Plugin is not yet set up:",a.name),B(0<=b.indexOf(a),"Plugin has not been loaded before:",a.name),a.fa=!1,a.Oa&&(a.Oa.I=null,a.Oa.P(),a.Oa=null),a.B.S(),a.S&&a.S(),delete a.va,delete a.Ua,delete a.G,a.Bb=null}catch(c){x.error("Exception in PluginManager.cleanup <$>",
c.toString()),pb(c)}};c.P=function(){for(var a=b.length-1;0<=a;a--){var f=b[a];!0===f.fa&&(c.S(f),c.B=null)}b=[];e={}}};function Te(){var a=this;a.name="mutation-observer";a.F=function(c){function b(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],c={type:c.type,target:c.target,addedNodes:Ma(c.addedNodes),removedNodes:Ma(c.removedNodes),oldValue:c.oldValue,nextSibling:c.nextSibling,attributeName:c.attributeName,value:"characterData"===c.type?c.target.data:c.target.getAttribute(c.attributeName)};c.target===e&&"class"===c.attributeName||d.push(c)}}var e=D(c,{element:null}).element;B(I(e),"Element!");var d,f=null;a.B.L(function(){f&&
a.D()});a.Y=function(){B(null==f,"Observer already running");d=[];var a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(a){var c=new (window.MutationObserverInit||window.WebKitMutationObserverInit||window.MozMutationObserverInit||Object);c.subtree=!0;c.childList=!0;c.attributes=!0;c.characterData=!0;c.attributeOldValue=!0;c.characterDataOldValue=!0;f=new a(b);null==f.takeRecords?f=null:f.observe(e,c)}};a.N=function(){return!!f};a.J=function(){B(null!=f,"Observer not running");
var a=f.takeRecords();b(a);return d};a.D=function(){a.J();f.disconnect();f=null;return d};a.ha=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)x.log("  ",b,"add node",K(c.addedNodes[h])||Na(c.addedNodes[h].textContent),c.addedNodes[h].outerHTML);if(c.removedNodes.length)for(h=0;h<c.removedNodes.length;h++)x.log("  ",b,"remove node",K(c.removedNodes[h])||Na(c.removedNodes[h].textContent),c.removedNodes[h].outerHTML)}else"attributes"===
c.type?null===c.oldValue?x.log("  ",b,"remove attribute",K(c.target),c.attributeName,c.target.outerHTML):x.log("  ",b,"set attribute",K(c.target),c.attributeName,c.target.outerHTML):"characterData"===c.type?x.log("  ",b,"change text",Na(c.oldValue),"to",Na(c.value)):x.error("!!! unknown mutation",c.type)}};a.U=function(a){for(var b=a.length-1;0<=b;b--){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)c.target.removeChild(c.addedNodes[h]);if(c.removedNodes.length)for(h=
0;h<c.removedNodes.length;h++)c.target.insertBefore(c.removedNodes[h],c.nextSibling)}else"attributes"===c.type?null===c.oldValue?c.target.removeAttribute(c.attributeName):c.target.setAttribute(c.attributeName,c.oldValue):"characterData"===c.type?c.target.data=c.oldValue:x.error("!!! unknown mutation",c.type)}}}};function Ue(){B(this instanceof Ue,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=/\s*(id|data\-en\-[a-z0-9\-]+)=".*?"/gi;a.F=function(b){function e(a){return function(){kc(a.node.cloneNode(!0),k);try{ie(k,a.selection)}catch(b){}g.fc&&g.fc(a.sc);h=a}}function d(a){!0!==a&&h||(h=f())}function f(){var b={node:k.cloneNode(!0),selection:he(k)};if(a.Ua){var c=a.Ua("crypt");c&&c.qe(b.node)}g.ab&&(b.sc=g.ab());return b}var g=D(b,{element:null,vc:"Typing",ab:null,fc:null},!0),k=g.element;
B(!!k&&I(k),'"element" option must be an HTMLElement');var p=new ke,h=null;a.D=function(){if(!h||!k)return!1;h.node.className=k.className;h.node.id=k.id;if(!k.isEqualNode(h.node)){var a=h.Bd;null==a&&(a=h.node.innerHTML.replace(c,""),h.Bd=a);var b=k.innerHTML,b=b.replace(c,"");if(a!==b)return!0}return g.ab?g.ab()!==h.sc:!1};a.flush=function(b){if(a.D()){Y(k,"beforeGetContent");var c=f();p.register(e(c),e(h),b||g.vc);return h=c}d(!0);return h};var l=!1;a.B.listener(k,"mousedown",function(){l=!0});
this.B.ba(k,"selectionChanged",function(b){b.ma&&(!0===l&&a.flush(),d());l=!1});a.La=function(b,c){Y(k,"beforeGetContent");var l=a.flush()||f();b();var m=f();p.register(e(m),e(l),c);h=m};a.clear=function(){p.clear();h=null;window.TEST&&d()};var m=a.Bb.I;a.N=function(){return p.N()||a.D()};a.J=function(){return p.J()&&!a.D()};a.B.A({name:"undo",action:function(){a.flush();a.N()&&p.L()&&Y(k,"setDirty");return!0},state:function(){return a.N()},value:function(){return a.D()?g.vc:p.M()},enabled:function(){return!(!(this.H&&
this.H.queryGroupName||m.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){a.J()&&p.A()&&Y(k,"setDirty");return!0},state:function(){return a.J()},value:function(){return p.I()},enabled:function(){return!(!(this.H&&this.H.queryGroupName||m.hasFocus())||!a.J())}})}};function Ve(){B(this instanceof Ve,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=[],b=[];a.F=function(e){function d(a){return function(){l.U(a.Bc);try{ie(p,a.selection)}catch(b){}k.fc&&k.fc(a.sc)}}function f(a){return!0!==a&&h?!1:(h=g(),l.Y(),!0)}function g(){var a={Bc:[],selection:he(p)};k.ab&&(a.sc=k.ab());return a}var k=D(e,{element:null,vc:"Typing",ab:null,fc:null},!0),p=k.element;B(!!p&&I(p),'"element" option must be an HTMLElement');var h=null,l=new Te;a.va().F(l,{element:p});
a.D=function(){return h&&p?0<l.J().length?!0:k.ab?k.ab()!==h.sc:!1:!1};a.flush=function(m){if(a.D()&&h){Y(p,"beforeGetContent");h.Bc=l.D();var e=d(h);m=m||k.vc;b=[];c.push({ib:e,title:m});h=null}f()||(h=g());return h};var m=!1;a.B.listener(p,"mousedown",function(){m=!0});this.B.ba(p,"selectionChanged",function(b){b.ma&&(1==m&&a.flush(),f());m=!1});a.La=function(m,e){a.flush();h=g();m();h.Bc=l.D();var k=d(h);b=[];c.push({ib:k,title:e});f(!0)};a.clear=function(){l.N()&&(l.D(),h=null);c=[];b=[];window.TEST&&
f()};var r=a.Bb.I;a.N=function(){return 0<c.length||a.D()};a.J=function(){return 0<b.length&&!a.D()};a.B.A({name:"undo",action:function(){a.flush();var m=c.pop();return m?(h=g(),m.ib(),h.Bc=l.D(),b.push({ib:d(h),title:m.title}),f(!0),Y(p,"setDirty"),!0):!1},state:function(){return a.N()},value:function(){return a.D()?k.vc:c&&0!==c.length?c[c.length-1].title:null},enabled:function(){return!(!(this.H&&this.H.queryGroupName||r.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){var m=b.pop();
return m?(a.flush(),h=g(),m.ib(),h.Bc=l.D(),c.push({ib:d(h),title:m.title}),f(!0),Y(p,"setDirty"),!0):!1},state:function(){return a.J()},value:function(){return b&&0!==b.length?b[b.length-1].title:null},enabled:function(){return!(!(this.H&&this.H.queryGroupName||r.hasFocus())||!a.J())}})}};function We(){var a=this;a.name="textinput";var c=null;a.F=function(b){function e(b){f.A(b.type);var h={event:b,element:c,ma:X(c),Cb:p};Y(c,"anyInput",h);p&&(m=null,k=!1,h.Cb={xa:h.Cb.xa,offset:h.Cb.offset},g=!0,a.B.timeout(function(){h.ma=X(c);h.ma&&(h.ma.collapsed||h.ma.collapse(!1),Y(c,"input",h));g=!1}),p=null)}function d(a){f.A(a.type,"*beforeInput*",h,k);if(!1===h&&!1===k){var b=X(c);p={xa:b.startContainer,offset:b.startOffset};Y(c,"beforeInput",{event:a,ma:b,Cb:p,element:c});k=!0}return!0}
c=D(b,{element:null}).element;var f=new za,g=!1,k=!1,p=null,h=!1,l=null,m=null,r=null;a.hf=function(){return h};a.Xe=function(){return h&&l?vd(l):null};a.Jf=function(a){h&&(l=ud(a))};a.B.listener(c,"compositionstart",function(a){f.A(a.type,a);m=a.data;var b=d(a);Y(c,"compositionStart",{event:a,element:c,data:m});h=!0;return b});a.B.listener(c,"compositionupdate",function(a){r=a.data;var b=X(c);l=b?ud(b):null;rc(l.startContainer)&&(l.endOffset=l.startOffset+r.length);Y(c,"compositionUpdate",function(){f.A(a.type,
a,b,r);return{event:a,element:c,data:r,rf:m,ma:b}})});a.B.listener(c,"compositionend",function(a){f.A(a.type,h,k);Y(c,"compositionEnd",function(){return{event:a,element:c,data:a.data,rf:m}});h=!1;l=null});a.B.listener(c,"webkitBeforeTextInserted",d);a.B.listener(c,"beforeInput",d);a.B.listener(c,"textInput",function(a){d(a)});a.B.listener(c,"textinput",d);a.B.listener(c,"input",function(a){e(a)});a.B.ba(c,"selectionChanged",function(){f.A("selectionChanged",h);!1===h&&!0===g&&(p=null,k=!1)},1E3)}}
;function Xe(){function a(a){a=yb(a);var d=!1,h=a.visible;null!=h&&(Tc(e,!!h),d=!0);h=a.active;null!=h&&(G(e,h?"en-shared-on":"en-shared-off"),Ub(e,h?"en-shared-off":"en-shared-on"),d=!0);h=a.business;null!=h&&(Tc(f,!!h),d=!0);var l=a.value;u(l)&&(g?(c(l),g=!1):b.B.timeout(function(){c(l)},1E3),d=!0);return d}function c(a){d.innerHTML=a;W("a",d).forEach(function(a){var c=a.getAttribute("href");a.removeAttribute("href");G(a,"en-shared-link");a=mc(a,"span");b.B.listener(a,"click",function(){var l=xc(a);
Ce(c,b.name,{left:l.left,top:l.top,width:l.width,height:l.height});return!1})})}var b=this;this.name="shared";B(this instanceof Xe,"Use `new` to instantiate this class");var e=null,d=null,f=null,g=!0;this.F=function(b){var c=document.querySelector(".en-note-container");d=M("div",{"class":"en-shared-message"});f=M("div",{"class":"en-shared-business",style:"display:none;"});e=M("div",{"class":"en-shared en-shared-off",id:"en-shared",style:"display:none;"},[f,d]);c.insertBefore(e,c.firstChild);a(b);
this.B.A({name:"shared",action:a,enabled:y})};this.S=function(){f=d=null;H(e);e=null}};function Ye(){function a(a){if(!(null==a||u(a)&&""===a||fa(a)&&0===Object.keys(a).length)){var l=yb(a);a=l.visible;var v=l.expanded,n=l.hideIndicatorLabelWhenExpanded,q=l.hideIndicatorLabelWhenCollapsed,N=l.chatButtonLabel||"Chat",w=l.shareButtonLabel||"Share",ca=l.items,V=l.contextSectionLabel,Aa=l.firstLaunchInfo;null!=a&&Tc(r,!!a);if(ca&&!(0>=ca.length)){$b(r);var ib=M("div",{"class":"en-context-label"});ib.textContent=V||"Context";r.appendChild(ib);V=M("div",{"class":v?"en-context-hide-label":
"en-context-show-label"});r.appendChild(V);c(Aa);Aa=M("div",{"class":"en-context-card-holder"});r.appendChild(Aa);for(ib=0;ib<ca.length;ib++)Aa.appendChild(p(ca[ib],w,N));T(r,"max-height",139*m.maxRows+32+"px");v?f(V,n):g(V,q);d(V,n,q);b();h.B.timeout(b,250);k(!0);!0===a&&!0===v&&0<ca.length&&h.B.timeout(function(){e(l)},1500)}}}function c(a){if(null!=a&&null!=a.headline&&null!=a.subHeadline&&null!=a.learnMoreLinkLabel&&null!=a.dismissButtonLabel){La("The FLE functionality has been merged into the context-info command. Please switch to that API.");
var b=a.headline,c=a.subHeadline,l=a.learnMoreLinkLabel;a=a.dismissButtonLabel;var f=M("div",{"class":"en-context-fle-container"});r.appendChild(f);var m=M("div",{"class":"en-context-fle-header"});m.textContent=b;f.appendChild(m);b=M("div",{"class":"en-context-fle-body"});f.appendChild(b);m=M("span",{"class":"en-context-fle-subheader"});m.textContent=c+" ";b.appendChild(m);c=M("span",{"class":"en-context-fle-learn-more"});c.textContent=l;b.appendChild(c);h.B.listener(c,"click",function(a){Ce("learnMore",
h.name,{kind:"firstLaunch",sharing:!1});Id(a)});l=M("div",{"class":"en-context-fle-dismiss-button"});l.textContent=a;f.appendChild(l);h.B.listener(l,"click",function(a){Ce("dismiss",h.name,{kind:"firstLaunch",sharing:!1});H(f);a.stopPropagation()})}}function b(){var a;var b=document.querySelector(".en-context-card-holder");a=document.querySelectorAll(".en-context-item").length||0;var c=document.querySelector(".en-context-item");if(null==b||null==c)a=null;else{var b=Math.round(xc(b).width),h=vc(c),
l=Math.round(c.offsetWidth+(parseInt(h["margin-left"],10)+parseInt(h["margin-right"],10)));a={tc:b,Rf:a,nf:l,rg:Math.round(c.offsetHeight+(parseInt(h["margin-top"],10)+parseInt(h["margin-bottom"],10))),of:Math.floor(b/l)}}c=document.querySelector(".en-context-card-holder");null!=a&&null!=c&&(b=Math.min(a.Rf,a.of),0>=b?T(c,"left","0px"):T(c,"left",(a.tc-a.nf*b)/2+"px"))}function e(a){if(!0!==n&&!1!==m.showPopup&&null==v&&null!=r&&null!=a&&null!=a.items&&0!==a.items.length){var b=a.items,c=a.toastNotificationHeaderLabel||
"FIX HEADER";a=a.toastNotificationFooterLabel||"FIX FOOTER";var l=Za(b[0].title||"Untitled"),f=M("div",{"class":"en-context-popup-header"});f.textContent=c;c="en-context-popup-body";null!=b[0].kind&&(c+=" "+b[0].kind);b=M("div",{"class":c});b.textContent=l;l=M("div",{"class":"en-context-popup-footer"});l.textContent=a;l.appendChild(M("div",{"class":"en-context-popup-down-arrow"}));v=M("div",{"class":"en-context-popup"},[M("div",{"class":"en-context-popup-wrapper"},[f,b,l])]);r.parentNode.insertBefore(v,
r.nextSibling);h.B.timeout(function(){G(v,"en-context-popup-visible")},1);h.B.listener(v,"mousedown",function(){h.B.remove(w)});h.B.listener(v,"mouseup",function(){var a=xc(r);cd(a.top-15,240);Ub(v,"en-context-popup-visible");T(v,"pointer-events","none")});w=h.B.timeout(function(){Ub(v,"en-context-popup-visible");T(v,"pointer-events","none");h.B.timeout(function(){Tc(v,!1)},250)},5500,w)}}function d(a,b,c){h.B.listener(a,"click",function(){a.textContent===b?(g(a,c),Ee(!1)):a.textContent===c&&(f(a,
b),Ee(!0));k(!0)})}function f(a,b){var c=U(".en-context-card-holder",r),h=U(".en-context-fle-container",r);1!==c.length?x.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,Ub(a,"en-context-show-label"),G(a,"en-context-hide-label"),Tc(c,!0),null!=h&&1===h.length&&Tc(h[0],!0))}function g(a,b){var c=U(".en-context-card-holder",r),h=U(".en-context-fle-container",r);1!==c.length?x.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,Ub(a,"en-context-hide-label"),G(a,"en-context-show-label"),
Tc(c,!1),null!=h&&1===h.length&&Tc(h[0],!1))}function k(a){function b(){var a=r.querySelector(".en-context-item");null!=a&&dd(a,100)&&!1===n&&(n=!0,De())}null==a&&(a=!1);a?b():q=h.B.timeout(b,100,q)}function p(a,b,c){var f=a.link||"#",m=a.kind||"undefined",e=document.createTextNode(Za(a.text||"")),d=a.thumbnail||"",k=""!==d,g=Za(a.title||"Untitled"),r=a.sourceName||"",p=a.sourceId||"",v=a.date||"",n=a.author||"";a=a.canShare;var q=M("div",{"class":k?"en-context-item-title":"en-context-item-title en-context-wide",
href:f,name:m});q.textContent=g;g=M("span",{"class":"en-context-author"});""!==n&&(g.textContent=n);var w=M("span",{"class":"en-context-separator"});w.textContent="|";var fd=M("span",{"class":"note"===m?"en-context-note-date":"en-context-news-date"});""!==v&&(fd.textContent=v);f=[];"news"===m?""!==v?(f.push(fd),""!==n&&(f.push(w),f.push(g))):""!==n&&f.push(g):(""!==v&&f.push(fd),f.push(e));e="en-context-item-body";k||(e+=" en-context-wide");"news"===m?e+=" en-context-item-body-one":"note"===m&&"evernote.business"===
p?e+=" en-context-item-body-two":"people"===m&&(e+=" en-context-body-italics");v=M("div",{"class":e},f);e=M("div",{"class":"en-context-graphic-clipper"});f="en-context-graphic";a&&(f+=" en-context-graphic-blur");d=M("img",{"class":f,alt:"graphic",src:d});f="en-context-graphic-hover";k||(f+=" en-context-graphic-hover-solid");b=M("div",{"class":f},[M("div",{"class":"en-context-workchat"}),M("div",{"class":"en-context-share-text"},["people"===m?c:b])]);k&&e.appendChild(d);a&&(e.appendChild(b),h.B.listener(e,
"click",function(a){Ce(q.getAttribute("href"),h.name,{kind:q.getAttribute("name"),sharing:!0});a.stopPropagation()}));k=p;"dowjones.wsj"===k&&(k="wsj");"profile.linkedin"===k&&(k="linkedin");if("profile.evernote.business"===k||"evernote.business"===k)k="evernote-business";"profile.factiva"===k&&(k="factiva");"nikkei.bp.business"===k&&(k="nikkeibp");"nikkei.bp.itpro"===k&&(k="itpro");"nikkei.bp.kenplatz"===k&&(k="kenplatz");"nikkei.bp.tech"===k&&(k="techon");c="";if("profile.evernote.business"===p||
"evernote.business"===p)c="en-context-source-text-blue";b=M("div",{"class":"en-context-source-img "+k});c=M("div",{"class":"en-context-source-text "+c});c.textContent="dowjones.wsj"===p?"":"evernote.business"===p?n:r;r=M("div",{"class":"en-context-source"});-1!==l.indexOf(k)&&r.appendChild(b);r.appendChild(c);n=[q,v];n.push(e);("news"===m||"people"===m||"company"===m||"note"===m&&"evernote.business"===p)&&n.push(r);m=M("div",{"class":"en-context-item"},n);h.B.listener(m,"click",function(a){Ce(q.getAttribute("href"),
h.name,{kind:q.getAttribute("name"),sharing:!1});a.preventDefault()});return m}var h=this;this.name="context";B(this instanceof Ye,"Use new for this");var l="factiva fastcompany inc lifehacker linkedin pandodaily techcrunch theverge evernote-business wsj forbes nikkei nikkeibp techon itpro kenplatz".split(" "),m,r=null,v=null,w,n=!1,q;this.F=function(c){var l=document.querySelector(".en-note-container");r=M("div",{"class":"en-context",id:"en-context",style:"display:none;"});null!=l?(l.parentNode.insertBefore(r,
l.nextSibling),h.B.listener(window,"scroll",k),h.B.listener(window,"resize",k),k(!0),h.B.listener(window,"resize",b),m=D(c,{showPopup:!0,maxRows:9999},!1),this.B.A({name:"context",action:a,enabled:y})):x.error("Couldnt find note container! Bailing.")};this.S=function(){H(r);H(v);w=0;r=null;n=!1}};function Ze(){function a(a){if(!(null==a||u(a)&&""===a||fa(a)&&0===Object.keys(a).length)){La("The FLE functionality has been merged into the context-info command. Please switch to that API.");var h=yb(a),r=h.expanded;null==r&&(r=!1);var p=h.headline||"Get more Context with Premium",w=h.subHeadline||"Go Premium to view notes, articles, and people related to what you're working on.";a=h.goPremiumLabel||"Go Premium";var n=h.hideIndicatorLabelWhenExpanded||"Hide",h=h.hideIndicatorLabelWhenCollapsed||
"Show";$b(g);Tc(g,!0);k=M("div",{"class":"en-context-upsell-body"});g.appendChild(k);var q=M("div",{"class":r?"en-context-upsell-hide-label":"en-context-upsell-show-label"});g.appendChild(q);r?b(q,n):e(q,h);c(q,n,h);r=M("div",{"class":"en-context-upsell-headline"});r.textContent=p;k.appendChild(r);p=M("div",{"class":"en-context-upsell-subheadline"});p.textContent=w;k.appendChild(p);w=M("div",{"class":"en-context-upsell-go-premium"});w.textContent=a;k.appendChild(w);f.B.listener(w,"click",function(a){Ce("http://evernote.com",
"context",{kind:"upsell",sharing:!0});Id(a)});d(!0)}}function c(a,c,h){f.B.listener(a,"click",function(){a.textContent===c?(e(a,h),Ee(!1)):a.textContent===h&&(b(a,c),Ee(!0));d(!0)})}function b(a,b){null!=k&&(a.textContent=b,Ub(a,"en-context-upsell-show-label"),G(a,"en-context-upsell-hide-label"),Tc(k,!0))}function e(a,b){null!=k&&(a.textContent=b,Ub(a,"en-context-upsell-hide-label"),G(a,"en-context-upsell-show-label"),Tc(k,!1))}function d(a){function b(){dd(g,75)&&!1===p&&(p=!0,De())}null==a&&(a=
!1);a?b():h=f.B.timeout(b,100,h)}var f=this;this.name="context-upsell";B(this instanceof Ze,'Use "new" to create the Context Upsell Plugin');var g=null,k=null,p=!1,h;this.F=function(b){var c=document.querySelector(".en-note-container");g=M("div",{"class":"en-context-upsell",id:"en-context-upsell",style:"display:none;"});null!=c?(c.parentNode.insertBefore(g,c.nextSibling),f.B.listener(window,"scroll",d),f.B.listener(window,"resize",d),d(!0),a(b),this.B.A({name:"context-upsell",action:a,enabled:y})):
x.error("Couldnt find note container! Bailing.")};this.S=function(){H(g);k=g=null;p=!1}};function $e(){function a(a){if(!(null==a||u(a)&&""===a||fa(a)&&0===Object.keys(a).length)){var l=yb(a),m=l.showLogo||!1,d=l.headline||"HEADLINE",k=l.infoSections||[];a=l.buttonLabel||"BUTTONLABEL";var p=l.hideOnButtonClick||!1;$b(f);Tc(f,!0);l=M("div",{"class":"en-context-info-logo"});m&&f.appendChild(l);m=M("div",{"class":"en-context-info-headline"});m.textContent=d;f.appendChild(m);g=M("div",{id:"en-context-info-body"});f.appendChild(g);if(3===k.length){for(d=0;d<k.length;d++)g.appendChild(c(k[d])),
g.appendChild(document.createTextNode(" "));k=M("div",{"class":"en-context-info-stretcher"});g.appendChild(k)}k=M("div",{"class":"en-context-info-button"});k.textContent=a;f.appendChild(k);e.B.listener(k,"click",function(a){Ce("http://evernote.com","context",{kind:"info",sharing:!0});p&&Tc(f,!1);Id(a)});b(!0)}}function c(a){null!=a&&u(a.type)&&u(a.title)&&u(a.text)||x.error("Incomplete section info for context-info!");for(var b=!1,c=0;c<d.length;c++)a.type===d[c]&&(b=!0);!1===b&&x.error("Invalid type given for context-info: ",
a.type);b=M("div",{"class":"en-context-info-section"});c=M("div",{"class":"en-context-info-section-image "+a.type});b.appendChild(c);c=M("div",{"class":"en-context-info-section-title"});c.textContent=a.title;b.appendChild(c);c=M("div",{"class":"en-context-info-section-text"});c.textContent=a.text;b.appendChild(c);return b}function b(a){function b(){dd(f,75)&&!1===k&&(k=!0,De())}null==a&&(a=!1);a?b():p=e.B.timeout(b,100,p)}var e=this;this.name="context-info";B(this instanceof $e,'Use "new" to create the Context Info Plugin');
var d=["note","article","person"],f=null,g=null,k=!1,p;this.F=function(c){var l=document.querySelector(".en-note-container");f=M("div",{"class":"en-context-info",style:"display:none;"});null!=l?(l.parentNode.insertBefore(f,l.nextSibling),e.B.listener(window,"scroll",b),e.B.listener(window,"resize",b),b(!0),a(c),this.B.A({name:"context-info",action:a,enabled:y})):x.error("Couldnt find note container! Bailing.")};this.S=function(){H(f);g=f=null;k=!1}};function af(){function a(a,b){var h=a.start,f=a.end;if(0>h||h>=f)return null;var l=c(b,h);if(!l||!l.wc)return null;var m=l;return h<f-1&&(m=c(b,f-1),!m||!m.wc)?null:ld(l.xa,l.offset,m.xa,m.offset+1)}function c(a,b){if(a.nodeType==Node.TEXT_NODE)return{xa:a,offset:b,length:a.nodeValue.length,wc:b<a.nodeValue.length};if(a.nodeType==Node.ELEMENT_NODE){for(var h=b,f=0,l=a.firstChild;null!=l;l=l.nextSibling){var m=c(l,b);if(!m||m.wc)return m;if(0<m.length&&(b-=m.length,f+=m.length,0>b))return null}if(Ac(a)||
R(a,"img")||S(a))if(--b,f+=1,0>b)return null;return{xa:a,offset:h,length:f,wc:!1}}return{xa:a,offset:b,length:0,wc:!1}}function b(a){if(a.nodeType==Node.TEXT_NODE)return a.nodeValue;if(a.nodeType==Node.ELEMENT_NODE){for(var c="",h=a.firstChild;null!=h;h=h.nextSibling)c+=b(h);if(Ac(a)||R(a,"img")||S(a))c+="\n";return c}return""}function e(){Aa&&(H(Aa),Aa=null)}function d(){e();if(ca&&w&&0<w.length){Aa=M("div");for(var a=0,b=w.length;a<b;a++)for(var c=w[a],h=0,f=c.length;h<f;h++){var l=c[h],l=gc(Aa,
"div",{"class":"en-find-result",style:"position:absolute;top:"+l.top+"px;left:"+l.left+"px;width:"+l.width+"px;height:"+l.height+"px"});q===a&&G(l,"en-find-result-active");Aa.appendChild(l)}kd().appendChild(Aa)}}function f(){null!=z&&z.length&&(z.forEach(r.B.remove),z=[])}function g(a){f();z=[r.B.I("beforeWindowResize",function(){e()}),r.B.I("windowResize",function(){a();d()}),r.B.I("selectionChange",function(){var a=X();a&&U(C).some(function(b){return a?nd(a,b):!1})&&(ca=!1,f(),e())})];d()}function k(a){var b=
D(yb(a),{highlight:N,excludeMatches:L,limit:t,resourceMatches:null,noteSearchMatching:va,value:null});a=n;b.value&&(a=h(b.value,b.resourceMatches,b.noteSearchMatching,+b.limit),ca="all"===b.highlight,f(),ca&&g(function(){h(b.value,b.resourceMatches,b.noteSearchMatching,+b.limit)}));if(b.excludeMatches){var c={},l;for(l in a)"items"!==l&&(c[l]=a[l]);a=c}return JSON.stringify(a)}function p(a){a=yb(a).value;if("next"===a)l(q+1);else if("prev"===a)l(q-1);else if("first"===a)l(0);else if("last"===a)l(-1);
else if("clear"===a)wb("findClear"),n=w=v=null,q=-1,A=null;else{a=parseInt(a,10);if(isNaN(a))return!1;l(a)}return!0}function h(c,h,f,l){q=-1;var e=l=l||t,d=!1,k=m(h);l-=k.length;if(u(c)&&0<(c=c.trim()).length&&0<l){var g=-1,p=-1,z=null,Aa=null;h=null;h=f?r.J(c):r.D(c);null!=h&&(z=h.Ne,Aa=h.Ee,U(C).forEach(function(c){for(var h=b(c),f,m=!1;(f=z.exec(h))&&0<f.length;){var e=Aa(f,z),r={string:h.slice(e.start,e.end),length:e.end-e.start,from:e.start,to:e.end};z.lastIndex=e.end;var v=a(e,c);if(v)if(e=
v.getClientRects(),null===e||0===e.length)e=null;else{for(var v=yc(v.startContainer),n=null,N=[],t=0;t<e.length;t++){var q={},V=e[t];if(!(0===V.width||0===V.height||n&&V.left>=n.left&&V.top>=n.top&&V.right<=n.right&&V.bottom<=n.bottom))if(n=V,V=wc(V,!1,v),q.top=V.top-0,q.bottom=V.bottom-0,q.left=V.left,q.right=V.right,q.width=V.right-V.left,q.height=V.bottom-V.top,V=N.length-1,-1<V&&N[V].left<=q.right&&q.left<=N[V].right&&N[V].top<=q.bottom&&q.top<=N[V].bottom){var w={};w.top=Math.max(N[V].top,q.top);
w.bottom=Math.min(N[V].bottom,q.bottom);w.left=N[V].left;w.right=q.right;w.width=w.right-w.left;w.height=w.bottom-w.top;N[V]=w}else N.push(q)}e=N}else e=null;if(e){for(v=0;v<e.length;v++)n=e[v],n.top&&(n.string=r.string,n.length=r.length,n.from=r.from,n.to=r.to);if(0>=l--){d=!0;break}r=e[0];A&&ca&&A.from===r.from&&(0===r.string.indexOf(A.string)||0===A.string.indexOf(r.string))&&(p=k.length);m||(v=document.body.scrollTop,ed(r.top-v,r.bottom-v)&&(m=!0,g=k.length));k.push(e)}}}));w=k;ca&&c===v||(v=
c,q=0,-1<g&&(q=g),-1<p&&(q=p),A=0<k.length?k[q]:null)}return n=c={limit:e,hasMore:d,count:k.length,items:k,index:q}}function l(a){w&&0<w.length&&(a>=w.length?a-=w.length:0>a&&(a+=w.length),q=a=Math.max(0,Math.min(w.length-1,a)),A=w[a],n.index=q,d())}function m(a){if(null==a||0===a.length)return[];var b=[],c={};r.G("rte").Oa.A("resource").Qd().forEach(function(a){c[a.info.hash]=a});a.forEach(function(a){var h=a.hash,f=c[h],l=a.reco,m=a.outline;if(f){var e=f.reference;if(l&&!0!==m&&!0!==f.Ac||m&&!0===
f.Ac)x.error('Invalid "find" resourceMatch',a,'for "'+h+'" resource.');else if(!0!==f.Ac&&!0===m)b.push([{reference:e,outline:!0}]);else if(!0===f.Ac&&l){var d=parseInt(l.width,10),k=parseInt(l.height,10),m=l.items||[];if(0===m.length||isNaN(k)||isNaN(d))x.error('Invalid "find" resourceMatch',a,"reco data",l,'for "'+h+'" resource.');else{var g=[],r=xc(f.yb());r.reference=e;m.forEach(function(a){var b=JSON.parse(JSON.stringify(r));b.xn=a.x/d;b.yn=a.y/k;b.wn=a.w/d;b.hn=a.h/k;g.push(b)});b.push(g)}}}});
return b}B(this instanceof af,"Use `new` to instantiate this class");var r=this;r.name="find";var v,w,n,q,A,z,t,C,L,N,va,ca,V={a:"a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250",b:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253",c:"c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184",d:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a",
e:"e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd",f:"f\u24d5\uff46\u1e1f\u0192\ua77c",g:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f",h:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265",i:"i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131",
j:"j\u24d9\uff4a\u0135\u01f0\u0249",k:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3",l:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747",m:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f",n:"n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5",o:"o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275",
p:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755",q:"q\u24e0\uff51\u024b\ua757\ua759",r:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783",s:"s\u24e2\uff53\u00df\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b",t:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787",u:"u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289",
v:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c",w:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73",x:"x\u24e7\uff58\u1e8b\u1e8d",y:"y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff",z:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"};r.F=function(a){a=D(a,{limit:100,excludeMatches:!1,highlight:"none",selector:"#en-note",noteSearchMatching:!1});t=0<+a.limit?+a.limit:100;C=u(a.selector)?a.selector:"#en-note";
L=a.excludeMatches;N=a.highlight;va=a.noteSearchMatching;a={};for(var b in V){var c=V[b];a[b]="["+b+c+"]";for(var h=0;h<c.length;h++){var f=c[h];a[f]||(a[f]=a[b])}}V=a;n=w=v=null;q=-1;A=null;z=[];r.B.A({name:"find",action:p,value:k,enabled:y})};var Aa,ib=/(?=[A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19])[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]/,
wf=/^(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])/,
xf=/(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])$/,
yf=/[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]/,
zf=/^(a|an|and|are|as|at|be|but|by|for|if|in|into|is|it|no|not|of|on|or|such|that|the|their|then|there|these|they|this|to|was|will|with)$/i;r.D=function(a){a=[a].map(Ra).join("|");return{Ne:new RegExp(a,"gi"),Ee:function(a,b){return{start:a.index,end:b.lastIndex}}}};r.J=function(a){a=a.trim();var b=/\*$/.test(a);b&&(a=a.substring(0,a.length-1));if(0>=a.length||zf.test(a))return null;for(var c=a,h=1,f=[],l=!1,m=!1,e=0;e<c.length;e++){var d=c[e];ib.test(d)?(m&&f.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
f.push(d),l=!1,m=!0):(yf.test(d)?(l||f.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]+"),
l=!0):(m&&f.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
(l=V[d.toLowerCase()])?f.push(l):f.push(d),l=!1),m=!1)}c=f.join("");c=c.replace(/\s/g,"\\s");c="("+c+")";wf.test(a)||(c="(^|(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]))"+
c,h++);b||xf.test(a)||(c+="(?:(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])|$)");
return{Ne:new RegExp(c,"gi"),Ee:function(a){for(var b=a.index,c=b,f=1;f<=h;f++)b=c,c=b+a[f].length;return{start:b,end:c}}}}};function bf(){function a(a,b){B(!0===a.hb,"Only commands supported due to optimizations");a.hb=a.hb||!0;a.shiftKey=!!a.shiftKey;a.which=a.charCode||a.key.charCodeAt(0);a.ib=b;h.push(a)}function c(a){var b=l[a.keyCode];if(!b)return!0;wb("editingKeyEventOccurred",a);return b(a)?Id(a):!0}function b(a){a=g(a);return 2===a?Z.execCommand("deleteword"):4===a?Z.execCommand("deleteline"):Z.execCommand("delete")}function e(a){a=g(a);return 2===a?Z.execCommand("forwarddeleteword"):4===a?Z.execCommand("forwarddeleteline"):
Z.execCommand("forwarddelete")}function d(a){var b=!1;a=g(a);0===a?b=Z.execCommand("insertparagraph"):1===a?b=Z.execCommand("insertlinebreak"):2===a?b=Z.execCommand("inserttodo","toggle"):4!==a&&6!==a&&(b=!0);return b}function f(a){var b=!1;a=g(a);0===a?b=Z.execCommand("tab",""):1===a&&(b=Z.execCommand("tab","true"));return b}function g(a){return(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0)}function k(a){if(a.ctrlKey||a.metaKey)for(var b=h.length-1;0<=b;b--){var c=h[b];if((null==
a.which?a.keyCode:a.which)===c.which&&a.shiftKey===c.shiftKey)return c.ib.call(null),Id(a)}return!0}var p=this;B(this instanceof bf,"Use `new` to instantiate this class");p.name="keyboard";var h=[],l={};p.F=function(m){m=D(m,{shortcuts:!0,editing:!0,custom:null,root:null});var g=m.root||document.body;m.shortcuts&&(a({key:"z",hb:!0},Z.execCommand.bind(Z,"undo")),a({key:"z",hb:!0,shiftKey:!0},Z.execCommand.bind(Z,"redo")),a({key:"y",hb:!0},Z.execCommand.bind(Z,"redo")),a({key:"b",hb:!0},Z.execCommand.bind(Z,
"bold")),a({key:"i",hb:!0},Z.execCommand.bind(Z,"italic")),a({key:"u",hb:!0},Z.execCommand.bind(Z,"underline")));m.editing&&(l[9]=f,l[13]=d,l[46]=e,l[8]=b,p.B.listener(g,"keydown",c));if(m.custom){var v=m.custom;B(da(m.custom),"Expected an Array for custom keyboard definitions");for(m=0;m<v.length;m++){var w=v[m],n=w.key,w=w.fn;B(u(n)&&ea(w),'Expected "key" and "fn"');a({key:n,hb:!0,shiftKey:n.toUpperCase()===n},w)}}0<h.length&&p.B.listener(g,"keypress",k)};p.S=function(){h=[]}};function cf(){var a=this;a.name="context";a.F=function(c){function b(){p=!1;var b=a.C();h&&b&&td(b,h)||(g={},k={},h=b&&b.cloneRange?b.cloneRange():null)}var e=c.root;B(I(e),"We expect a valid root element",e);a.root=e;a.H=c.H||{};var d=c.ma||X(a.root)||null,f=!1;a.ja={};a.R=function(b){return a.ja[b]||{}};var g={},k={},p=!1,h=null;a.Vf=function(){var b;null==b&&(b=a.C());h=b};a.N=function(){return p};a.Tc=function(a){b();return g[a]};a.oe=function(a,c){b();g[a]=c;p=!0};a.re=function(a){b();delete g[a];
p=!(!Object.keys(g).length&&!Object.keys(k).length)};a.Uc=function(a){b();return k[a]};a.pe=function(a,c){b();k[a]=c;p=!0};a.Sf=function(a){b();delete k[a];p=!0};a.cf=function(){a.gc("getActiveRangeStartContainerComputedStyle",function(){var b=a.C();return b&&b.startContainer?vc(b.startContainer):null})};var l={};a.C=function(){return d};a.Pa=function(b){td(d,b)||(d=b||null,f=!0,a.D())};a.ed=function(b,c){d.setStart(b,c);f=!0;a.D()};a.dd=function(b,c){d.setEnd(b,c);f=!0;a.D()};a.la=function(){a.Pa(X(e)||
null);f=!1};a.wf=function(){a.ta()};a.Gf=function(){function b(a,c){for(var h=c,f=a,l=!0;l;)if(l=f.previousSibling&&rc(f.previousSibling))h+=O(f.previousSibling),f=f.previousSibling;return h}var c=a.C(),h=b(c.startContainer,c.startOffset),f=b(c.endContainer,c.endOffset);c.startContainer.parentNode.normalize();c.startContainer!==c.endContainer&&c.endContainer.parentNode.normalize();a.ed(c.startContainer,h);a.dd(c.endContainer,f)};a.zf=function(b){if(rc(b)){for(var c=O(b),h=b,f=!0;f;)if(f=h.previousSibling&&
rc(h.previousSibling))c+=O(h.previousSibling),h=h.previousSibling;b.parentNode.normalize();a.A(h,c);a.ta()}else a.A(b.parentNode,J(b)+1)};a.ta=function(b,c){if(f||b){if(!0===c){var h=d,l=window.getSelection();null!=l&&(l.removeAllRanges(),null!=h&&l.addRange(h))}else md(d,e);a.la();a.D()}};a.gd=function(b){d||(d=e.ownerDocument.createRange());d.selectNode(b);f=!0;a.D()};a.A=function(b,c,h,l){d||(d=e.ownerDocument.createRange());d.setStart(b,c);h?d.setEnd(h,l||0):d.setEnd(b,c);f=!0;a.D()};a.M=function(b,
c,h){c&&-1===h&&(h=c.childNodes.length);var f=b.parentNode,l=J(b);B(!!d,"Global range expected");for(var m=[[d.startContainer,d.startOffset],[d.endContainer,d.endOffset]],e=m.length,k=0;k<e;k++){var g=m[k];g[0]===c&&g[1]>h&&g[1]++;g[0]!==f||g[1]!==l&&g[1]!==l+1||(c?(g[0]=c,g[1]+=h-l):g[1]>l&&0<g[1]&&--g[1]);g[0]===f&&g[1]>l+1&&g[1]--;!c&&sc(g[0],b)&&(g[0]=b.parentNode,g[1]=J(b))}c?c.childNodes.length===h?c.appendChild(b):c.insertBefore(b,c.childNodes[+h]):H(b);a.A(m[0][0],m[0][1],m[1][0],m[1][1]);
a.D()};a.le=function(b,c,h){B(b!==c,"Do not move into itself");for(var f;f=b.firstChild;)a.M(f,c,0>h?-1:h++)};a.insertBefore=function(b,c,h){a.M(b,c,h?J(h):-1)};a.Eb=function(b,c){a.M(b,c,-1)};a.removeNode=function(b){a.M(b)};a.ne=function(b){for(;b.firstChild;)a.removeNode(b.firstChild);a.D()};a.oa=function(b,c){if(b&&b.tagName.toLowerCase()===c.toLocaleLowerCase())return b;var h=b.parentNode;if(!h)return b;for(var f=M(c),l=0;l<b.attributes.length;l++)f.setAttributeNS(b.attributes[l].namespaceURI,
b.attributes[l].name,b.attributes[l].value);a.M(f,h,J(b));a.le(b,f,0);a.removeNode(b);return f};a.hasFocus=function(){var a=X(e);if(a){if(qd(a,"div.en-module",e))return!1;if((a=rd(a))&&!0===!(!P(a,Gc)&&!Gc(document.body)))return!0}return!1};var m=!1;a.Oe=function(a){m=!0===a;wb("noteReadOnlyStateChanged",{readOnly:m})};a.kb=function(){return m};a.D=function(){l={}};a.U=function(a,b){l[a]=b};a.J=function(a){return l[a]};a.gc=function(a,b){var c=l[a];null==c&&(c=b(a),l[a]=c);return c};a.dump=function(){var b;
if(b=a.C()){var c=fe(e,b);b=e.cloneNode(!0);if(c=ge(b,c)){if(c.startContainer.nodeType==Node.TEXT_NODE||c.startContainer.nodeType==Node.COMMENT_NODE)c.collapsed?c.startContainer.insertData(c.startOffset,"[]"):c.startContainer.insertData(c.startOffset,"[");else{var h=c.collapsed?"{}":"{";c.startOffset!=c.startContainer.childNodes.length&&c.startContainer.childNodes[c.startOffset].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset].insertData(0,h):0!=c.startOffset&&c.startContainer.childNodes[c.startOffset-
1].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset-1].appendData(h):c.startContainer.insertBefore(document.createTextNode(h),c.startContainer.childNodes.length==c.startOffset?null:c.startContainer.childNodes[c.startOffset])}c.collapsed||(c.endContainer.nodeType==Node.TEXT_NODE||c.endContainer.nodeType==Node.COMMENT_NODE?c.endContainer.insertData(c.endOffset,"]"):c.endOffset!=c.endContainer.childNodes.length&&c.endContainer.childNodes[c.endOffset].nodeType==Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset].insertData(0,
"}"):0!=c.endOffset&&c.endContainer.childNodes[c.endOffset-1].nodeType==Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset-1].appendData("}"):c.endContainer.insertBefore(document.createTextNode("}"),c.endContainer.childNodes.length==c.endOffset?null:c.endContainer.childNodes[c.endOffset]))}b=b.innerHTML}else b=e.innerHTML;return b}};a.S=function(){a.root=null}};function df(){var a=this,c=this;c.name="block";c.F=function(){var b=c.G("context"),e=c.G("query"),d=c.G("format"),f=b.root;a.Va=function(a){if((a=e.ea(a))&&(e.K(a)||e.Ea(a)))if(e.lc(a)){var c=a.getElementsByTagName("object");if(0<c.length){var h=!1,c=c[c.length-1];Xc(c.lastChild||c,function(a){return h=S(a)||e.Z(a)},a);h||b.Eb(M("br"),a)}}else b.ne(a),e.rb(a)?b.Eb(oc(),a):b.Eb(M("br"),a)};a.ka=function(c){if(e.K(c))if(e.bb(c).every(function(a){return!e.W(c,a)||!e.X(c,a)})){var f=K(c);"dd"===f||"dt"===
f?d.Ga([c],function(a){return R(a,"dl")&&!a.attributes.length},function(){return M("dl")}):e.X("p",e.cb(c))&&e.Sb(c)&&("div"!==f&&(c=b.oa(c,"div"),a.ka(c)),Ma(c.childNodes).filter(e.Sb).forEach(function(b){var c=d.da([b]);a.ca([b]);d.aa(c)}))}else if(!e.X(c,c.parentNode)){for(f=d.da([c]);!e.X(c,c.parentNode);)a.ca([c]);d.aa(f)}};a.eb=function(a){if(R(a,"li")&&e.K(a)&&e.K(a.parentNode)){for(var c=function(a){return Q(a,"ol,ul")},h=!1,f=null;Ma(a.childNodes).some(c);){var m=a.lastChild;c(m)||!f&&$c(m)?
(f=null,b.M(m,a.parentNode,1+J(a)),h=!0):e.$(m)?b.removeNode(m):(f||(f=M("li"),a.parentNode.insertBefore(f,a.nextSibling)),b.M(m,f,0),h=!0)}h&&e.qa(a,0)&&b.removeNode(a)}};a.J=function(){if(!b.C()||0===f.getElementsByTagName("li").length)return null;var a=e.na(b.C()),a=e.wa(a,function(a){return e.K(a)&&!e.tb(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||e.X(a,"li"))});return a.length?a:null};a.Ca=function(){var b=a.J();if(!b)return"none";for(var c=[],h=!0,f=!1,m=[],d=b.length;d--;){var g=b[d],w=!1,
n=!1;if(I(g)){var q=e.Ib(g);null!==q&&(0>c.indexOf(q)&&c.push(q),w=!0);var A=e.gf(g);A&&0<A.length&&(n=!0,null!==q&&(-1<A.indexOf(q)&&A.splice(A.indexOf(q),1),0<A.length&&(w=!1)))}g=g.parentNode;0>m.indexOf(g)&&(m.push(g),q=e.Ib(g),null!==q&&(0>c.indexOf(q)&&c.push(q),w=!0),R(g.parentNode,"li")&&(g=e.Ib(g.parentNode),null!==g&&(0>c.indexOf(g)&&c.push(g),w=!0)));h=h&&w;f=f||w||n;if(!h&&f)return"mixed"}return 0===c.length?"none":!h||1!==c.length&&1!==b.length?"mixed":c[0]};a.Rc=function(a){Ac(a)||(a=
Fc(a,f));if(!a||1!==a.nodeType)return"left";var b=vc(a).textAlign.replace(/^-(moz|webkit)-/,"").replace(/^auto$/,"start");return"start"===b?"ltr"===e.Ed(a)?"left":"right":"end"===b?"ltr"===e.Ed(a)?"right":"left":-1!==["center","justify","left","right"].indexOf(b)?b:"left"};a.bf=function(c){null==c&&(c={});var f="blockMerging"in c?Boolean(c.pg):!0,h="stripWrappers"in c?Boolean(c.Jc):!0,l="direction"in c?c.direction:"forward";if(b.C()){a.Gb(b.C().startContainer,b.C().startOffset,!1);a.Gb(b.C().endContainer,
b.C().endOffset,!1);c=e.zc(b.C().startContainer,b.C().startOffset);var m=c[0],g=c[1];c=e.yc(b.C().endContainer,b.C().endOffset);var v=c[0],w=c[1];if("after"!==e.Pb(v,w,m,g))b.C().collapse("forward"===l);else{3===m.nodeType&&0==g&&(g=J(m),m=m.parentNode);3===v.nodeType&&w==O(v)&&(w=1+J(v),v=v.parentNode);b.A(m,g,v,w);for(var n=b.C().startContainer;e.W(n,n.parentNode)&&e.T(n);)n=n.parentNode;if(!e.I(n)&&!e.Ea(n)||!e.X("span",n)||Q(n,"td,th"))n=null;for(var q=b.C().endContainer;e.W(q,q.parentNode)&&
e.T(q);)q=q.parentNode;if(!e.I(q)&&!e.Ea(q)||!e.X("span",q)||Q(q,"td,th"))q=null;c=d.Sd();if(m==v&&e.K(m)&&3===m.nodeType)m.deleteData(g,w-g),a.Gb(m,g,!1),b.C().collapse("forward"===l);else{e.K(m)&&3===m.nodeType&&m.deleteData(g,O(m)-g);for(var A=e.wa(b.C(),function(a){return e.K(a)&&!Q(a,"thead,tbody,tfoot,tr,th,td")}),z=0;z<A.length;z++){var t=A[z];if(g=t.parentNode)if(g.removeChild(t),a.Va(g),h||!sc(m,g)&&g!=m)for(;e.K(g)&&e.T(g)&&0==O(g);)t=g.parentNode,t.removeChild(g),g=t}e.K(v)&&3===v.nodeType&&
v.deleteData(0,w);a.Gb(b.C().startContainer,b.C().startOffset,!1);a.Gb(b.C().endContainer,b.C().endOffset,!1);if(f&&n&&q&&e.W(n,q)&&n!=q){1===n.children.length&&e.Jd(n.firstChild)&&n.removeChild(n.firstChild);if(sc(q,n)){for(f=q;f.parentNode!=n;)f=f.parentNode;b.A(n,J(f));if(!q.hasChildNodes()){for(;e.K(q)&&1==q.parentNode.childNodes.length&&q.parentNode!=n;)g=q,g.removeChild(q),q=g;e.K(q)&&!e.T(q)&&e.T(q.previousSibling)&&e.T(q.nextSibling)&&q.parentNode.insertBefore(M("br"),q.nextSibling);e.K(q)&&
q.parentNode.removeChild(q);d.qb(c);return}if(!e.T(q.firstChild)){d.qb(c);return}h=[];for(h.push(q.firstChild);!S(h[h.length-1])&&e.T(h[h.length-1].nextSibling);)h.push(h[h.length-1].nextSibling);for(f=d.da(h);sc(n,h[0])&&h[0].parentNode!=n;)a.ca(h);e.K(h[0].previousSibling)&&S(h[0].previousSibling)&&h[0].parentNode.removeChild(h[0].previousSibling)}else if(sc(n,q)){b.A(n,O(n));for(f=n;f.parentNode!=q;)f=f.parentNode;e.T(f.nextSibling)&&S(n.lastChild)&&n.removeChild(n.lastChild);h=[];f.nextSibling&&
!e.I(f.nextSibling)&&h.push(f.nextSibling);h.length&&!S(h[h.length-1])&&h[h.length-1].nextSibling&&!e.I(h[h.length-1].nextSibling)&&h.push(h[h.length-1].nextSibling);f=d.da(h);h.forEach(function(a){b.M(a,n,-1)})}else{b.A(n,O(n));e.T(q.firstChild)&&S(n.lastChild)&&n.removeChild(n.lastChild);for(f=d.da(Ma(q.childNodes));q.hasChildNodes();)b.M(q.firstChild,n,-1);for(;!(q.hasChildNodes()||0<=["td"].indexOf(q.tagName.toLowerCase()));)g=q.parentNode,g.removeChild(q),q=g}for(var C=n;e.ef(C).some(function(a){return e.W(C,
a)&&(R(a,"ol")&&R(a.nextSibling,"ol")||R(a,"ul")&&R(a.nextSibling,"ul"))&&e.W(C,a.nextSibling)});){for(;!(R(C,"ol")&&R(C.nextSibling,"ol")&&e.W(C,C.nextSibling)||R(C,"ul")&&R(C.nextSibling,"ul")&&e.W(C,C.nextSibling));)C=C.parentNode;for(;C.nextSibling.hasChildNodes();)b.M(C.nextSibling.firstChild,C,-1);C.parentNode.removeChild(C.nextSibling)}d.aa(f);a.Va(n);d.Zd(n)}else b.C().collapse("forward"===l)}d.qb(c)}}};a.ca=function(a){var c=a[0].parentNode;if(e.K(c)&&c.parentNode){-1!==a.indexOf(c.firstChild)&&
d.be(c);var h=-1!==a.indexOf(c.firstChild)&&e.ic(c),f=-1!==a.indexOf(c.lastChild)&&e.Ub(c);if(-1===a.indexOf(c.firstChild)&&-1!==a.indexOf(c.lastChild)){for(var m=a.length-1;0<=m;m--)b.M(a[m],c.parentNode,1+J(c));f&&!e.Ub(a[a.length-1])&&a[a.length-1].parentNode.insertBefore(M("br"),a[a.length-1].nextSibling);d.Zd(c)}else{if(-1===a.indexOf(c.firstChild))for(m=c.cloneNode(!1),c.removeAttribute("id"),c.parentNode.insertBefore(m,c);a[0].previousSibling;)b.M(c.firstChild,m,m.childNodes.length);for(m=
0;m<a.length;m++)b.M(a[m],c.parentNode,J(c));h&&!e.ic(a[0])&&a[0].parentNode.insertBefore(M("br"),a[0]);e.T(a[a.length-1])&&!S(a[a.length-1])&&S(c.firstChild)&&!e.T(c)&&c.removeChild(c.firstChild);e.qa(c,0)?(a=a[a.length-1],H(c),f&&!e.Ub(a)&&a.parentNode.insertBefore(M("br"),a.nextSibling)):d.be(c)}}};a.pc=function(c){e.lc(c)?a.ca(Ma(c.childNodes)):b.removeNode(c)};a.D=function(a,b,c){if(0==a)return"";if(1==a&&!b&&!c)return" ";if(1==a)return"\u00a0";var f="",m;for(m=b?"\u00a0 ":" \u00a0";3<a;)f+=
m,a-=2;return 3==a?f+(b||c?b&&!c?"\u00a0\u00a0 ":!b&&c?" \u00a0\u00a0":b&&c?"\u00a0 \u00a0":"impossible":" \u00a0 "):f+(b||c?b&&!c?"\u00a0 ":!b&&c?" \u00a0":b&&c?"\u00a0\u00a0":"impossible":"\u00a0 ")};a.Gb=function(b,c,h){null==h&&(h=!0);if(e.K(b)||e.Ea(b)){for(;;)if(0<=c-1&&e.W(b,b.childNodes[c-1]))b=b.childNodes[c-1],c=O(b);else if(0==c&&!e.ic(b)&&e.W(b,b.parentNode))c=J(b),b=b.parentNode;else if(3===b.nodeType&&-1==["pre","pre-f.wrap"].indexOf(vc(b.parentNode).whiteSpace)&&0!=c&&/[ \xa0]/.test(b.data[c-
1]))c--;else break;for(var f=b,m=c,d=0,g=0==c&&e.ic(b);;)if(m<f.childNodes.length&&e.W(f,f.childNodes[m]))f=f.childNodes[m],m=0;else if(m==O(f)&&!e.Ub(f)&&e.W(f,f.parentNode))m=1+J(f),f=f.parentNode;else if(3===f.nodeType&&-1==["pre","pre-f.wrap"].indexOf(vc(f.parentNode).whiteSpace)&&m!=O(f)&&/[ \xa0]/.test(f.data[m]))h&&g&&" "==f.data[m]?f.deleteData(m,1):(g=" "==f.data[m],m++,d++);else break;h&&b===f&&rc(b)&&c===m&&(g=(g=b.textContent.match(/^\s+/))?g[0]:"",g=g.length,g>=c&&(b.deleteData(0,g),
c=m=0));if(h)for(;"before"==e.Pb(b,c,f,m);)if(0<=m-1&&m-1<f.childNodes.length&&e.W(f,f.childNodes[m-1]))f=f.childNodes[m-1],m=O(f);else if(0==m&&e.W(f,f.parentNode))m=J(f),f=f.parentNode;else if(3===f.nodeType&&-1==["pre","pre-f.wrap"].indexOf(vc(f.parentNode).whiteSpace)&&m==O(f)&&" "==f.data[f.data.length-1]&&e.Ub(f))m--,d--,f.deleteData(m,1);else break;for(h=a.D(d,0==c&&e.ic(b),m==O(f)&&e.Ub(f));"before"==e.Pb(b,c,f,m);)c<b.childNodes.length?(b=b.childNodes[c],c=0):3!=b.nodeType||c==O(b)?(c=1+
J(b),b=b.parentNode):(d=h[0],h=h.slice(1),d!=b.data[c]&&(b.insertData(c,d),b.deleteData(c+1,1)),c++)}};a.Fd=function(a){T(a,"margin-left",e.kc(a)+40+"px")};a.mc=function(){return b.gc("isSelectionAtList",function(){return!(!b.C()||!P(b.C().startContainer,"ul,ol",d.Hb()))})};a.je=function(){return b.gc("isSelectionAtTable",function(){return!(!b.C()||!P(b.C().startContainer,"table",d.Hb()))})};a.Vc=function(){return a.je()||a.mc()};var g=".en-crypt-revealed",g=g+",.en-crypto-revealed";a.Fa=function(){return b.gc("isSelectionAtCryptUnveiled",
function(){var a=b.C();return!!(qd(a,g,f)||0<wd(a,g).length)})};a.N=function(){return b.gc("isSelectionAtModule",function(){return!!qd(b.C(),"div.en-module",f)})}}};function ef(){var a=this,c=this;c.name="query";c.F=function(){var b=c.G("context").root;a.nextNode=function(b){return b.hasChildNodes()?b.firstChild:a.sa(b)};a.previousNode=function(a){if(a.previousSibling){for(a=a.previousSibling;a.hasChildNodes();)a=a.lastChild;return a}return a.parentNode&&1===a.parentNode.nodeType?a.parentNode:null};a.sa=function(a){for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};a.bb=function(a){for(var b=[];a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;
return b};a.ef=function(b){return a.bb(b).concat(b)};a.jc=function(b){for(var c=[],e=a.sa(b);(b=a.nextNode(b))&&b!=e;)c.push(b);return c};a.Ed=function(b){return"ltr"==b.dir?"ltr":"rtl"==b.dir?"rtl":R(b.parentNode)?a.Ed(b.parentNode):"ltr"};a.Pb=function(b,c,e,d){if(b==e){if(c==d)return"equal";if(c<d)return"before";if(c>d)return"after"}if(e.compareDocumentPosition(b)&4){d=a.Pb(e,d,b,c);if("before"==d)return"after";if("after"==d)return"before"}if(e.compareDocumentPosition(b)&8){for(;e.parentNode!=
b;)e=e.parentNode;if(J(e)<c)return"after"}return"before"};a.N=function(a){for(;null!=a.parentNode;)a=a.parentNode;return a};a.Nc=function(b,c){var e=a.Pb(b,0,c.startContainer,c.startOffset),d=a.Pb(b,O(b),c.endContainer,c.endOffset);return a.N(b)==a.N(c.startContainer)&&"after"==e&&"before"==d};a.wa=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var e=b.startContainer;e.hasChildNodes()&&b.startOffset<e.childNodes.length?e=e.childNodes[b.startOffset]:e=b.startOffset==O(e)?a.sa(e):a.nextNode(e);
var d=b.endContainer;d.hasChildNodes()&&b.endOffset<d.childNodes.length?d=d.childNodes[b.endOffset]:d=a.sa(d);for(var h=[];Dc(e,d);)a.Nc(e,b)&&c(e)?(h.push(e),e=a.sa(e)):e=a.nextNode(e);return h};a.ob=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var e=b.startContainer;e.hasChildNodes()&&b.startOffset<e.childNodes.length?e=e.childNodes[b.startOffset]:e=b.startOffset==O(e)?a.sa(e):a.nextNode(e);var d=b.endContainer;d.hasChildNodes()&&b.endOffset<d.childNodes.length?d=d.childNodes[b.endOffset]:
d=a.sa(d);for(var h=[];Dc(e,d);)a.Nc(e,b)&&c(e)&&h.push(e),e=a.nextNode(e);return h};a.Sb=function(a){return Q(a,ta)};a.I=function(a){return!(!a||a!==b&&(!Ac(a)||F(a,"en-container")))};a.T=function(b){return!(!b||a.I(b))};a.qa=function(b,c){var e=0;null==c&&(c=1);var d=a.jc(b);0===d.length&&(d=[b]);for(var h=d.length-1;0<=h;h--){var l=d[h];if(rc(l)&&!$c(l)||S(l)&&++e>=c+1||Ed(l))return!1}return!0};a.K=function(b){return!(!b||!a.vb(b)||1!==b.nodeType&&1!==b.parentNode.nodeType)};a.ge=function(b){for(var c=
0;c<b.childNodes.length;c++)if(a.K(b.childNodes[c])||a.ge(b.childNodes[c]))return!0;return!1};a.Qb=function(b){if(!S(b))return!1;var c=a.cb(b),e=a.ea(b),d=!1,h=!1;Xc(b,function(b){if(a.I(b)||e!==a.ea(b))return!0;if(S(b))return h=!0;d=d||a.J(b);return!1},c);return!d&&!h};a.J=function(a){return 3===a.nodeType&&!$c(a)||Ed(a)};a.sb=function(b){if(!S(b))return!1;for(var c=b,e=a.cb(b);(c=c.parentNode)&&!(1<c.childNodes.length||c===e);){if("li"===K(c))return!1;if(a.I(c))break}var c=b,d=a.ea(b),h=!1,l=!1;
Yc(c,function(b){if(a.I(b)||d!==a.ea(b))return!0;if(S(b))return l=!0;h=h||a.J(b);return!1},e);var m=!1,r=!1;Xc(c,function(b){if(a.I(b)||d!==a.ea(b))return!0;if(S(b))return r=!0;m=m||a.J(b);return!1},e);return r||m||l||h?r||m?!1:h&&!m?!0:l?!1:!0:"li"===K(d)};a.Kd=function(b){if(!$c(b))return!1;if(""===b.data)return!0;var c=b.parentNode;if(!c)return!0;for(;!a.I(c)&&c.parentNode;)c=c.parentNode;for(var e=b;e!=c;){e=a.previousNode(e);if(a.I(e)||S(e))return!0;if(3==e.nodeType&&!$c(e)||Ed(e))break}e=b;
for(b=a.sa(c);e!=b;){e=a.nextNode(e);if(a.I(e)||S(e))return!0;if(e&&3==e.nodeType&&!$c(e)||Ed(e))break}return!1};a.ke=function(b){if(!b)return!1;if(a.I(b)||3===b.nodeType&&!a.Kd(b)||Ed(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.ke(b.childNodes[c]))return!0;return!1};a.Z=function(b){if(!b)return!1;if(a.I(b)||Ed(b)||3===b.nodeType&&!a.Kd(b)||S(b)&&!a.sb(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.Z(b.childNodes[c]))return!0;return!1};a.lc=function(b){return Wb(b).some(function(b){return a.Z(b)})};
a.$=function(b){return!!b&&!a.Z(b)};a.Jd=function(b){if(a.Qb(b)&&!a.sb(b))return!0;if(!a.T(b)||1!=b.nodeType)return!1;for(var c=!1,e=0;e<b.childNodes.length;e++){if(!a.$(b.childNodes[e])&&!a.Jd(b.childNodes[e]))return!1;a.Jd(b.childNodes[e])&&(c=!0)}return c};a.Za=function(a){return-1!==ma.indexOf(K(a))};var e="body caption col colgroup frame frameset head html tbody td tfoot th thead tr".split(" "),d=[[["a"],["a"]],[["dd","dt"],["dd","dt"]],["h1 h2 h3 h4 h5 h6".split(" "),"h1 h2 h3 h4 h5 h6".split(" ")],
[["li"],["li"]],[["nobr"],["nobr"]],[ma,la],[["td","th"],"caption col colgroup tbody td tfoot th thead tr".split(" ")]];a.X=function(b,c){if((-1!==qa.indexOf(c)||-1!==qa.indexOf(K(c)))&&"object"===typeof b&&3===b.nodeType&&!/^[ \t\n\f\r]*$/.test(b.data)||!(-1===ra.indexOf(c)&&-1===ra.indexOf(K(c))||"object"===typeof b&&3===b.nodeType)||"object"===typeof b&&(9===b.nodeType||11===b.nodeType||10===b.nodeType))return!1;R(b)&&(b=K(b));if(!u(b))return!0;if(R(c)){for(var k=c;k;){if("a"===b&&R(k,"a")||-1!==
la.indexOf(b)&&a.Za(k)||/^h[1-6]$/.test(b)&&R(k)&&/^h[1-6]$/.test(K(k)))return!1;k=k.parentNode}c=K(c)}if("object"===typeof c&&(1===c.nodeType||11===c.nodeType))return!0;if(!u(c))return!1;switch(c){case "colgroup":return"col"===b;case "table":return-1!=="caption col colgroup tbody td tfoot th thead tr".split(" ").indexOf(b);case "tbody":case "thead":case "tfoot":return-1!==["td","th","tr"].indexOf(b);case "tr":return-1!==["td","th"].indexOf(b);case "dl":return-1!==["dt","dd"].indexOf(b);case "dir":case "ol":case "ul":return-1!==
["dir","li","ol","ul"].indexOf(b);case "hgroup":return/^h[1-6]$/.test(b)}if(-1!==e.indexOf(b)||-1!==["dd","dt"].indexOf(b)&&"dl"!==c||"li"===b&&"ol"!==c&&"ul"!==c)return!1;for(k=0;k<d.length;k++)if(-1!==d[k][0].indexOf(c)&&-1!==d[k][1].indexOf(b))return!1;return!0};a.ra=function(b){return a.K(b)&&a.Z(b)&&(3===b.nodeType||Ed(b)||S(b))};a.tb=function(a){if(!R(a))return!1;var b=K(a);return"blockquote"===b?!0:"div"!==b?!1:"0px"!==vc(a)["margin-left"]?!0:!1};a.nc=function(b){if(!a.tb(b))return!1;for(var c=
0;c<b.attributes.length;c++)if(-1===["style","dir"].indexOf(b.attributes[c].name))return!1;for(c=0;c<b.style.length;c++)if(!/^(-[a-z]+-)?(margin|border|padding)/.test(b.style[c]))return!1;return!0};a.Vb=function(a){return Q(a,"address,div,h1,h2,h3,h4,h5,h6,listing,p,pre,xmp")};a.Nd=function(b){return a.Vb(b)||Q(b,"li,dt,dd")};a.ea=function(b){for(;b&&!a.I(b);)b=b.parentNode;return b};a.Y=function(b,c){var e=!1;b?0===c?e=a.I(b)||a.Ma(b)||!b.parentNode:0<=c-1&&c-1<b.childNodes.length&&(e=a.Z(b.childNodes[c-
1])&&a.I(b.childNodes[c-1])||S(b.childNodes[c-1])):e=!0;return e};a.U=function(b,c){var e=!1;b?c===O(b)?e=!b.parentNode||a.I(b)||a.Ma(b):c<b.childNodes.length&&(e=a.Z(b.childNodes[c])&&a.I(b.childNodes[c])):e=!0;return e};a.D=function(b,c){return a.Y(b,c)||a.U(b,c)};a.na=function(b){var c=b.startContainer,e=b.startOffset,d=b.endContainer;b=b.endOffset;var h=a.bb(c).concat(c).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(e=J(h[0]),c=h[0].parentNode);if(!a.Y(c,e)){do 0<=e-1&&(Ed(c.childNodes[e-
1])||a.Ma(c.childNodes[e-1]))?e--:0<=e-1&&I(c.childNodes[e-1])&&c.childNodes[e-1].hasChildNodes()?(c=c.childNodes[e-1],e=O(c)):0==e?(e=J(c),c=c.parentNode):e--,rc(c)&&(e=J(c),c=c.parentNode);while(!a.D(c,e))}for(;0==e&&c.parentNode&&a.K(c)&&!a.Ma(c);)e=J(c),c=c.parentNode;h=a.bb(d).concat(d).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(b=1+J(h[0]),d=h[0].parentNode);if(!a.U(d,b)){do{if(b<O(d)&&(Ed(d.childNodes[b])||a.Ma(d.childNodes[b])))b++;else if(b<O(d)&&I(d)&&d.hasChildNodes())d=
d.childNodes[b],b=0;else if(b>=O(d)){if(a.Ma(d))break;b=1+J(d);d=d.parentNode}else b++;rc(d)&&(b=1+J(d),d=d.parentNode)}while(!a.D(d,b))}for(;b==O(d)&&d.parentNode&&a.K(d)&&!a.Ma(d);)b=1+J(d),d=d.parentNode;return ld(c,e,d,b)};a.ic=function(b){for(var c=0;!a.D(b,c);){if(0<=c-1&&c-1<b.childNodes.length&&a.Z(b.childNodes[c-1]))return!1;0!=c&&b.hasChildNodes()?(b=b.childNodes[c-1],c=O(b)):(c=J(b),b=b.parentNode)}return!0};a.Ub=function(b){for(var c=O(b);!a.D(b,c);){if(c<b.childNodes.length&&a.Z(b.childNodes[c]))return!1;
c!=O(b)&&b.hasChildNodes()?(b=b.childNodes[c],c=0):(c=1+J(b),b=b.parentNode)}return!0};a.kc=function(a){return a&&a.style?be(a.style.marginLeft):0};a.Xc=function(b,c){if(!b||a.Ea(b)||!I(b)||R(b,"table"))return!0;var e=b.style;if(e)for(var d=0;d<e.length;d++){var h=null,l=null,h=e[d],l=e.getPropertyValue(h);if(-1===pa.indexOf(l)&&l&&-1===oa.indexOf(h))return!1}return c?a.Xc(b.parentNode):!0};a.pf=function(b){return!!P(b,"li,ol,ul,dl,dd,dt",a.cb(b))};a.Ib=function(a){var b=K(a);return"ul"===b&&F(a,
"en-todo-list")?"tl":"ol"===b||"ul"===b?b:null};a.gf=function(b){var c=[];b=b.querySelectorAll("ol,ul");for(var e=b.length;e--;){var d=a.Ib(b[e]);null!==d&&0>c.indexOf(d)&&c.push(d)}return c};a.ie=function(b,c){return a.Ib(b)===c};a.ha=function(b,c){return 0===O(b)?null:c===O(b)&&b.parentNode&&a.T(b)?[b.parentNode,1+J(b)]:0<=c&&c<b.childNodes.length&&0!==O(b.childNodes[c])&&a.T(b.childNodes[c])?[b.childNodes[c],0]:null};a.Ja=function(b,c){return 0==O(b)?null:0==c&&b.parentNode&&a.T(b)?[b.parentNode,
J(b)]:0<=c-1&&c-1<b.childNodes.length&&0!=O(b.childNodes[c-1])&&a.T(b.childNodes[c-1])?[b.childNodes[c-1],O(b.childNodes[c-1])]:null};a.yc=function(b,c){for(var e;e=a.Ja(b,c);)b=e[0],c=e[1];return[b,c]};a.zc=function(b,c){for(var e;e=a.ha(b,c);)b=e[0],c=e[1];return[b,c]};a.Ma=function(b){return!!(b&&I(b)&&(F(b,"en-container")||R(b,"td")||a.I(b)&&!a.Xc(b,!1)))};a.rb=function(c){return b===c?!0:!!(c&&sc(c,b)&&a.Ma(c))};a.Ea=function(a){return b===a};a.cb=function(c){return sc(c,b)||a.Ea(c)?b:null};
a.vb=function(a){return sc(a,b)};a.W=function(b,c){return!(!a.cb(b)||a.cb(b)!=a.cb(c))}}};function ff(a){var c=U("*[id]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder),*[class]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder)",a);a=U(".en-resource *",a);for(var b=a.length;b--;)c.splice(c.indexOf(a[b]),1);for(b=c.length-1;0<=b;b--){var e=c[b];-1===sa.indexOf(K(e))&&"en-editor-last-insertion-point"!==e.id&&e.removeAttribute("id");e.removeAttribute("class");e.attributes&&0<e.attributes.length&&Ma(e.attributes).forEach(function(a){0===
a.name.indexOf("data-")&&e.removeAttribute(a.name)})}}function gf(a){W("span",a).forEach(function(a){a.hasAttributes()||bc(a)})}
function hf(a){var c=a.ownerDocument.createNodeIterator(a,136,null,!1),b;for(a=[];b=c.nextNode();)a.push(b);for(c=a.length-1;0<=c;c--)if(b=a[c],8===b.nodeType)if(0==b.data.indexOf("[CDATA[")){var e=b.nextSibling;b=ac(b,document.createTextNode(b.data.substr(7)));b.data.lastIndexOf("]]")!=b.data.length-2&&e&&3==e.nodeType?(e.data=e.data.replace(/^(.*?)\]\]\>(.*?)$/gi,"$1$2"),b.data+=">"):b.data=b.data.replace(/^(.*?)\]\](.*?)$/gi,"$1$2")}else b.parentNode.removeChild(b);else ac(b,document.createTextNode(b.data))}
function jf(a){a=a.querySelectorAll("*[style*='line-height']");for(var c=a.length-1;0<=c;c--){var b=a[c];b.style.lineHeight&&Pc(b,"line-height")}}var kf=["javascript"];function lf(a){var c=a;try{c=decodeURIComponent(c)||c}catch(b){x.warn("Could't decode invalid URI:",a),c="#"}c=c.replace(/[\x00-\x20]+/,"");c=c.replace(/<\!\-\-.*?\-\-\>/g,"");return(c=c.match(/^([a-zA-Z]+)\:/))?0<=kf.indexOf(c[1].toLowerCase())?"#":a.trim()||"#":a||"#"}
function mf(a){W("span[style*='-evernote-last-insertion-point']",a).forEach(function(a){bc(a)})}function nf(){return M("span",{style:"-evernote-last-insertion-point:true;",id:"en-editor-last-insertion-point"})}
function of(a){for(var c=ka.concat("id","contenteditable"),b=Ma(a.attributes||[]).map(function(a){return a.name.toLowerCase()}),e=0;e<b.length;e++){var d=b[e];-1===c.indexOf(d)&&a.removeAttribute(d)}Lc(a);Pc(a,"height");Pc(a,"width");Pc(a,"max-height");Pc(a,"max-width");Pc(a,"min-height");Pc(a,"min-width");Mc(a)}
function pf(a,c){for(var b='<div id="en-note"',e=0;e<ka.length;e++){var d=ka[e].toLowerCase();if(a.hasAttribute(d)){var f=a.getAttribute(d);if("lang"!==d||""!==f)b+=" "+d+'="'+f.replace(Ya["&"],"&amp;").replace(Ya["<"],"&lt;").replace(Ya[">"],"&gt;").replace(Ya['"'],"&quot;").replace(Ya["'"],"&apos;")+'"'}}return b+">"+c+"</div>"};function qf(){var a=this,c=this;c.name="format";c.F=function(){var b=c.G("context"),e=c.G("query"),d=b.root,f={};f.createlink=f.unlink=function(a){for(;a&&(!R(a)||"a"!==K(a)||!a.hasAttribute("href"));)a=a.parentNode;return a?a.getAttribute("href"):null};f.backcolor=function(a){for(;a&&a!==d&&e.T(a);){if(a.style){var b=a.style.backgroundColor;if(b&&"rgba(0, 0, 0, 0)"!==b&&""!==b&&"transparent"!==b)return vc(a).backgroundColor}a=a.parentNode}return null};f.highlight=function(a){for(;a&&a!==d&&e.T(a);){if(a.style&&
("rgb(255, 250, 165)"===a.style.backgroundColor||"true"===Oc(a,"-evernote-highlight")||"true"===Oc(a,"-evernote-highlighted")))return"rgb(255, 250, 165)";a=a.parentNode}return null};f.subscript=f.superscript=function(a){for(var b=!1,c=!1;e.T(a);)R(a,"sub")?b=!0:R(a,"sup")&&(c=!0),a=a.parentNode;return b&&c?"mixed":b?"subscript":c?"superscript":null};f.strikethrough=function(a){return P(a,function(a){var b=K(a);return"s"===b||"strike"===b||"del"===b?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("line-through"):
!1},b.root)?"line-through":null};f.underline=function(a){return P(a,function(a){return"u"===K(a)?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("underline"):!1},b.root)?"underline":null};f.tt=function(a){return P(a,"tt",b.root)?"tt":null};a.be=function(a){var b=a.previousSibling;if(b){for(;b.hasChildNodes();)b=b.lastChild;for(;e.$(b)&&!e.sb(b)&&b!==a.parentNode;)b=e.previousNode(b);e.K(b)&&e.sb(b)&&b.parentNode.removeChild(b)}};a.Zd=function(a){for(var b=a;b.hasChildNodes();)b=b.lastChild;
for(;e.$(b)&&!e.sb(b)&&b!==a;)b=e.previousNode(b);if(e.K(b)&&e.sb(b)){for(;e.K(b.parentNode)&&e.$(b.parentNode);)b=b.parentNode;b.parentNode.removeChild(b)}};a.vb=function(b){a.be(b);a.Zd(b)};a.Ga=function(c,l,d){"undefined"===typeof l&&(l=function(){return!1});"undefined"===typeof d&&(d=function(){return null});if(c.every(e.$)&&!c.some(function(a){return S(a)})||!c[0].parentNode)return null;for(e.T(c[c.length-1])&&!S(c[c.length-1])&&S(c[c.length-1].nextSibling)&&c.push(c[c.length-1].nextSibling);e.$(c[0].previousSibling);)c.unshift(c[0].previousSibling);
for(;e.$(c[c.length-1].nextSibling);)c.push(c[c.length-1].nextSibling);d=e.K(c[0].previousSibling)&&l(c[0].previousSibling)?c[0].previousSibling:e.K(c[c.length-1].nextSibling)&&l(c[c.length-1].nextSibling)?c[c.length-1].nextSibling:d();if(!d)return null;if(!d.parentNode){c[0].parentNode.insertBefore(d,c[0]);var f=b.C();f.startContainer===d.parentNode&&f.startOffset===J(d)&&b.ed(f.startContainer,f.startOffset+1);f.endContainer===d.parentNode&&f.endOffset===J(d)&&b.dd(f.endContainer,f.endOffset+1)}f=
c[0].parentNode;if(Dc(d,c[0])){!e.T(d)&&e.T([].filter.call(d.childNodes,e.Z).slice(-1)[0])&&e.T(c.filter(e.Z)[0])&&!S(d.lastChild)&&d.appendChild(M("br"));for(var g=0;g<c.length;g++)b.M(c[g],d,-1)}else for(!e.T(d)&&e.T([].filter.call(d.childNodes,e.Z)[0])&&e.T(c.filter(e.Z).slice(-1)[0])&&!S(c[c.length-1])&&d.insertBefore(M("br"),d.firstChild),g=c.length-1;0<=g;g--)b.M(c[g],d,0);e.K(f)&&!f.hasChildNodes()&&f.parentNode.removeChild(f);if(e.K(d.nextSibling)&&l(d.nextSibling)){for(!e.T(d)&&e.T(d.lastChild)&&
e.T(d.nextSibling.firstChild)&&!S(d.lastChild)&&d.appendChild(M("br"));d.nextSibling.hasChildNodes();)b.M(d.nextSibling.firstChild,d,-1);b.removeNode(d.nextSibling)}a.vb(d);return d};a.U=function(b,c){return null==c||c.collapsed?!1:e.Nc(b,c)||b===c.startContainer&&3===b.nodeType&&O(b)!==c.startOffset||b===c.endContainer&&3===b.nodeType&&0!==c.endOffset||!(!b.hasChildNodes()||![].every.call(b.childNodes,function(b){return a.U(b,c)})||sc(c.startContainer,b)&&3===c.startContainer.nodeType&&0!==c.startOffset||
sc(c.endContainer,b)&&3===c.endContainer.nodeType&&c.endOffset!==O(c.endContainer))?!0:!1};a.pb=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return null;for(var d=b.startContainer;a.U(d.parentNode,b);)d=d.parentNode;for(var f=e.sa(b.endContainer);!f&&d||f&&Dc(d,f);){if(a.U(d,b)&&c(d))return d;d=e.nextNode(d)}return null};a.pa=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return[];for(var d=b.startContainer;a.U(d.parentNode,
b);)d=d.parentNode;for(var f=e.sa(b.endContainer),g=[];!f&&d||f&&Dc(d,f);)a.U(d,b)&&c(d)&&g.push(d),d=e.nextNode(d);return g};a.ha=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();if(-1!=="B EM I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)&&(0===a.attributes.length||1===a.attributes.length&&a.hasAttribute("style")))return!0;if("FONT"===b||"A"===b){var c=a.attributes.length;a.hasAttribute("style")&&c--;"FONT"===b&&(a.hasAttribute("color")&&c--,a.hasAttribute("face")&&c--,a.hasAttribute("size")&&
c--);"A"===b&&a.hasAttribute("href")&&c--;if(0===c)return!0}return!1};a.Y=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();return-1==="A B EM FONT I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)?!1:0===a.attributes.length?!0:1<a.attributes.length?!1:a.hasAttribute("style")&&0===a.style.length||"A"===b&&a.hasAttribute("href")||"FONT"===b&&(a.hasAttribute("color")||a.hasAttribute("face")||a.hasAttribute("size"))||("B"===b||"STRONG"===b)&&a.hasAttribute("style")&&1===a.style.length&&
""!==a.style.fontWeight||("I"===b||"EM"===b)&&a.hasAttribute("style")&&1===a.style.length&&""!==a.style.fontStyle||("A"===b||"FONT"===b||"SPAN"===b)&&a.hasAttribute("style")&&1===a.style.length&&""===a.style.textDecoration||-1!=="A FONT S SPAN STRIKE U".split(" ").indexOf(b)&&a.hasAttribute("style")&&(1===a.style.length||4===a.style.length&&"MozTextBlink"in a.style&&"MozTextDecorationColor"in a.style&&"MozTextDecorationLine"in a.style&&"MozTextDecorationStyle"in a.style)&&("line-through"===a.style.textDecoration||
"underline"===a.style.textDecoration||"overline"===a.style.textDecoration||"none"===a.style.textDecoration)?!0:!1};a.D=function(a,c,e){if(null===c&&null===e)return!0;if(u(c)&&u(e)){if("fontsize"===a)return(a=c===e)||(c=Math.round(be(c)),e=Math.round(be(e)),a=!(null==c||null==e||c!==e)),a;if(c===e&&!b.R(a).xb||b.R(a).xb&&b.R(a).xb(c,e))return!0}return!1};a.P=function(c,e){if(1!==c.nodeType&&(!c.parentNode||1!==c.parentNode.nodeType))return null;if(1!==c.nodeType)return a.P(c.parentNode,e);var m=f[e];
if(m)return m(c);B(!!b.R(e).Aa,"Bug: no relevantCssProperty for "+e+" in f.getEffectiveCommandValue");m=b.R(e).Aa;if(!m)return"";if(!uc(c))return x.warn("We are not on rendered DOM for fontSize retrieval",c),bd(c,m,d);if(c.style&&null!==c.style[m]&&""!==c.style[m])return c.style[m];m=vc(c)[m];"fontname"===e&&"-webkit-standard"===m&&(m=(m=Ad.env)&&null!=m.defaultNoteFont?m.defaultNoteFont:"Default");return m};a.J=function(a,c){if(("backcolor"===c||"highlight"===c)&&Ac(a))return null;var e=K(a);if("createlink"===
c||"unlink"===c)return"a"===e&&a.hasAttribute("href")?a.getAttribute("href"):null;if("subscript"===c||"superscript"===c)return"sup"===e?"superscript":"sub"===e?"subscript":null;if("strikethrough"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("line-through")?"line-through":null;if("strikethrough"===c&&("s"===e||"strike"===e||"del"===e))return"line-through";if("underline"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("underline")?"underline":
null;if("underline"===c&&"u"===e)return"underline";if("highlight"===c&&"mark"===e)return"rgb(255, 250, 165)";if("tt"===e)return"tt";var f=b.R(c),g=f.Aa;if(null===g)return null;var k=a.style[g];if(""!==k)return(e=f.ya)&&e.length?("highlight"===c&&(k=Td(k)),-1!==e.indexOf(k)?k:null):k;if("font"===e){if("color"===g&&a.hasAttribute("color"))return a.color;if("fontFamily"===g&&a.hasAttribute("face"))return a.face;if("fontSize"===g&&a.hasAttribute("size"))return uc(a)?vc(a).fontSize.toString():(x.warn("We are not on rendered DOM for fontSize retieval",
a),bd(a,"fontSize",d))}return"fontWeight"!==g||"b"!==e&&"strong"!==e?"fontStyle"!==g||"i"!==e&&"em"!==e?null:"italic":"bold"};a.Za=function(c,e,d){for(var f=c;a.ha(f)&&1===f.childNodes.length&&a.ha(f.firstChild)&&(!a.Y(f)||!a.D(e,a.J(f,e),d));)f=f.firstChild;if(f!==c&&a.Y(f)&&a.D(e,a.J(f,e),d)&&a.D(e,a.P(f,e),d)){for(;f.hasChildNodes();)b.M(f.firstChild,f.parentNode,J(f));c.parentNode.insertBefore(f,c.nextSibling);b.M(c,f,-1)}};a.da=function(b){var c=[];b.forEach(function(b){"subscript forecolor highlight backcolor fontname fontsize bold italic strikethrough underline tt".split(" ").forEach(function(e){var d=
b;1!==d.nodeType&&(d=d.parentNode);for(;d&&1===d.nodeType&&null===a.J(d,e);)d=d.parentNode;d&&1===d.nodeType?c.push([b,e,a.J(d,e)]):c.push([b,e,null])})});return c};a.aa=function(b){b.forEach(function(b){var c=b[0],e=b[1];b=b[2];var d=c;d&&1===d.nodeType||(d=d.parentNode);for(;d&&1===d.nodeType&&null===a.J(d,e);)d=d.parentNode;null===b&&d&&1===d.nodeType?a.Ja(c,e,null):(d&&1===d.nodeType&&!a.D(e,a.J(d,e),b)||(!d||1!==d.nodeType)&&null!==b)&&a.N(c,e,b)})};a.Dd=function(c,d){if(e.K(c)&&null!==a.J(c,
d))if(a.Y(c)){for(var f=Array.prototype.slice.call(c.childNodes),g=0;g<f.length;g++)b.M(f[g],c.parentNode,J(c));c.parentNode.removeChild(c)}else"strikethrough"===d&&-1!==c.style.textDecoration.indexOf("line-through")&&("line-through"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=c.style.textDecoration.replace("line-through","")),"underline"===d&&-1!==c.style.textDecoration.indexOf("underline")&&("underline"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=
c.style.textDecoration.replace("underline","")),null!==b.R(d).Aa&&(c.style[b.R(d).Aa]=""),R(c,"font")&&("forecolor"===d&&c.removeAttribute("color"),"fontname"===d&&c.removeAttribute("face"),"fontsize"===d&&c.removeAttribute("size")),!R(c,"a")||"createlink"!==d&&"unlink"!==d||c.removeAttribute("href"),""===c.getAttribute("style")&&c.removeAttribute("style"),null===a.J(c,d)||b.oa(c,"span")};a.Ja=function(b,c,d){if(b.parentNode&&1===b.parentNode.nodeType&&!a.D(c,a.P(b,c),d)){for(var f=b.parentNode,g=
[];e.K(f)&&1===f.nodeType&&!a.D(c,a.P(f,c),d);)g.push(f),f=f.parentNode;if(g.length){var k=a.J(g[g.length-1],c);if(null!==k||k===d)if(null===d||a.D(c,a.P(g[g.length-1].parentNode,c),d))for(;g.length;)for(f=g.pop(),null!==a.J(f,c)&&(k=a.J(f,c)),d=Array.prototype.slice.call(f.childNodes),null!==a.J(f,c)&&a.Dd(f,c),f=0;f<d.length;f++){var p=d[f];p!==b&&(1!==p.nodeType||null===a.J(p,c)||a.D(c,k,a.J(p,c)))&&p!==g[g.length-1]&&a.N(p,c,k)}}}};a.N=function(c,d,f){if(c.parentNode&&null!==f&&(e.X(c,"span")&&
(a.Za(c.previousSibling,d,f),a.Za(c.nextSibling,d,f),a.Ga([c],function(b){return a.Y(b)&&a.D(d,a.J(b,d),f)&&a.D(d,a.P(b,d),f)},function(){return null})),!e.$(c)&&!a.D(d,a.P(c,d),f)&&c.parentNode))if(!e.X(c,"span")){for(var g=[],k=0;k<c.childNodes.length;k++){if(1===c.childNodes[k].nodeType){var p=a.J(c.childNodes[k],d);if(null!==p&&!a.D(d,f,p))continue}g.push(c.childNodes[k])}for(k=0;k<g.length;k++)a.N(g[k],d,f)}else if(!a.D(d,a.P(c,d),f)){g=null;if("bold"!==d||"bold"!==f&&"700"!==f)if("italic"===
d&&"italic"===f)g=M("i");else if("strikethrough"===d&&"line-through"===f)g=M("s");else if("underline"===d&&"underline"===f)g=M("u");else if("tt"===d&&"tt"===f)g=M("tt");else if("createlink"===d||"unlink"===d)for(g=M("a"),g.setAttribute("href",f),k=c.parentNode;k;)R(k,"a")&&(k=b.oa(k,"span")),k=k.parentNode;else"subscript"!==d&&"superscript"!==d||"subscript"!==f?"subscript"!==d&&"superscript"!==d||"superscript"!==f||(g=M("sup")):g=M("sub");else g=M("b");g||(g=M("span"));c.parentNode.insertBefore(g,
c);k=b.R(d).Aa;null===k||g.style[k]===f||a.D(d,a.P(g,d),f)||(g.style[k]=f,"highlight"===d&&T(g,"-evernote-highlight","true"));"forecolor"===d&&Ud(f)&&g.style.color!==f&&(g.style.color=f);"fontname"===d&&null!=f&&g.style.fontFamily!==f&&(g.style.fontFamily=f);"fontsize"===d&&null!=f&&g.style.fontSize!==f&&(g.style.fontSize=f);"strikethrough"===d&&"line-through"===f&&"line-through"!==a.P(g,"strikethrough")&&(g.style.textDecoration="line-through");"underline"===d&&"underline"===f&&"underline"!==a.P(g,
"underline")&&(g.style.textDecoration="underline");b.M(c,g,g.childNodes.length);if(1===c.nodeType&&!a.D(d,a.P(c,d),f)){b.M(c,g.parentNode,J(g));g.parentNode.removeChild(g);g=[];for(k=0;k<c.childNodes.length;k++){if(1===c.childNodes[k].nodeType&&(p=a.J(c.childNodes[k],d),null!==p&&!a.D(d,f,p)))continue;g.push(c.childNodes[k])}for(k=0;k<g.length;k++)a.N(g[k],d,f)}}};a.nd=function(c,d,f){var g=!1,k=!1,p=a.G("textinput");null==f&&((f=p.Xe())?k=!0:(f=b.C(),g=!0));if(null===a.pb(f,e.ra))b.Vf(),b.R(c).ya&&
b.oe(c,-1!==b.R(c).ya.indexOf(d)),"subscript"===c&&b.re("superscript"),"superscript"===c&&b.re("subscript"),null===d?b.Sf(c):("createlink"===c||b.R(c).value)&&b.pe(c,d);else{if(e.K(f.startContainer)&&3===f.startContainer.nodeType&&0!==f.startOffset&&f.startOffset!==O(f.startContainer)){var n;if(f.startContainer===f.endContainer){var q=f.endOffset-f.startOffset;n=f.startContainer.splitText(f.startOffset);f.setEnd(n,q)}else n=f.startContainer.splitText(f.startOffset);f.setStart(n,0)}e.K(f.endContainer)&&
3===f.endContainer.nodeType&&0!==f.endOffset&&f.endOffset!==O(f.endContainer)&&(n=[f.startContainer,f.startOffset],q=[f.endContainer,f.endOffset],f.endContainer.splitText(f.endOffset),f.setStart(n[0],n[1]),f.setEnd(q[0],q[1]));g?b.Pa(f):k&&p.Jf(f);a.pa(f,function(a){return e.K(a)&&1===a.nodeType}).forEach(function(b){a.Dd(b,c)});a.pa(f,e.K).forEach(function(b){a.Ja(b,c,d);e.X(b,"span")&&a.N(b,c,d)})}};var g="bold italic strikethrough subscript superscript underline highlight tt".split(" "),k=["fontname",
"fontsize","forecolor"],p=["object"];a.bd=function(){var a=[];void 0!==b.Uc("createlink")&&a.push(["createlink",b.Uc("createlink")]);g.forEach(function(c){void 0!==b.Tc(c)&&a.push([c,b.Tc(c)])});k.forEach(function(c){void 0!==b.Uc(c)&&a.push([c,b.Uc(c)])});return a};a.Sd=function(c){var d=[],f=a.pb(b.C(),e.ra);!f&&c&&(c=b.C())&&(f=rd(c));if(!f)return d;d.push(["createlink",a.P(f,"createlink")]);g.forEach(function(c){var e=a.P(f,c);-1!==b.R(c).ya.indexOf(e)?d.push([c,!0]):d.push([c,!1])});if(-1!==
p.indexOf(K(f)))return d;k.forEach(function(c){"fontsize"===c?d.push([c,a.P(f,"fontsize")]):d.push([c,b.R(c).value()])});return d};a.qb=function(c){var d,f,g,k=a.pb(b.C(),e.ra);if(null!==k)for(d=0;d<c.length;d++)f=c[d][0],g=c[d][1],"boolean"===typeof g&&b.R(f).state()!==g?b.R(f).action(g):u(g)&&!a.D(f,a.P(k,f),g)&&b.R(f).action(g),k=a.pb(b.C(),e.ra)||k;else for(d=0;d<c.length;d++)f=c[d][0],g=c[d][1],"boolean"===typeof g&&b.oe(f,g),u(g)&&b.pe(f,g)};a.sf=function(c){var d=a.Sd(!0);c();b.ta();a.qb(d)};
a.Hb=function(){return e.cb(rd(b.C()))}}};function rf(){var a=this;a.name="normalize";var c=/\n\r|\r\n|\r|\n/gi,b=/\s/gi;a.F=function(){function e(a,b,c){if(0>a||0>b){var d=c.style.marginLeft?c.style.marginLeft:"0",e=c.style.marginTop?c.style.marginTop:"0";a=c.style.left?c.style.left:"0";b=c.style.top?c.style.top:"0";if(0===d.indexOf("-")||0===e.indexOf("-"))(e=Zd(e))&&0>c.offsetTop&&0>e.value&&(Ke(c),T(c,"margin-top",e.value-c.offsetTop+"px")),(d=Zd(d))&&0>c.offsetLeft&&0>d.value&&(Ke(c),T(c,"margin-left",d.value-c.offsetLeft+"px"));if(0===
b.indexOf("-")||0===a.indexOf("-"))b=Zd(b).value,a=Zd(a).value,0>c.offsetTop&&0>b&&(Ke(c),T(c,"top",b-c.offsetTop+"px")),0>c.offsetLeft&&0>a&&(Ke(c),T(c,"left",a-c.offsetLeft+"px"))}}function d(a){var b=vc(a)||{},b={fontWeight:b.fontWeight,yf:b.fontFamily,fontSize:be(b.fontSize),marginTop:be(b.marginTop),marginBottom:be(b.marginBottom)},c=vc(a.parentNode)||{};a=z.oa(a,"div");b.fontWeight&&"normal"!==b.fontWeight&&400!=b.fontWeight&&(a.style.fontWeight=b.fontWeight);b.fontFamily&&b.yf!==c.fontName&&
(a.style.fontFamily=b.fontFamily);b.fontSize&&b.fontSize!==be(c.fontSize)&&(a.style.fontSize=b.fontSize.toString()+"px");0<=1*b.marginTop-be(c.fontSize)&&(t.pf(a)?(a.appendChild(M("br")),a.appendChild(M("br"))):(b=oc(),z.M(b,a.parentNode,J(a)),Lc(b),h(b),Mc(b)));return a}function f(a){if(!a)return a;Ac(a)&&(a=z.oa(a,"div"));Ke(a);Pc(a,"white-space");Pc(a,"word-wrap");Pc(a,"word-break");for(var d=Wb(a),e,h,l=z.C(),m=0;m<d.length;m++){var k=d[m];if(rc(k)){for(var p=k.textContent.split(c),A=M("div"),
r=0;r<p.length;r++){var n=p[r].replace(b,"\u00a0").replace(va,"\u00a0 ");n&&A.appendChild(document.createTextNode(n));r<p.length-1&&A.appendChild(M("br"))}if(l.startContainer===k||sc(k,l.startContainer))e=g(A,l.startOffset);if(l.endContainer===k||sc(k,l.endContainer))h=g(A,l.endOffset);ac(k,A);bc(A)}else f(k)}e&&null!==e[0]&&z.ed(e[0],e[1]);h&&null!==h[0]&&z.dd(h[0],h[1]);return a}function g(a,b){for(var c=0,d=null,e=0,f=0;f<a.childNodes.length;f++){var h=a.childNodes[f],l=h.length||1;if(c<b)c+=l,
e=l-(c-b),d=h;else{c==b&&(e=0,d=h);break}}return[d,e]}function k(){if(!n(N,!0)&&t.qa(N)){$b(N);var a=oc();N.appendChild(a);z.A(a,0)}}function p(a){if(I(a)&&(a=a.getElementsByTagName("*")))for(var b=a.length-1;0<=b;b--){var c=a[b];c.hasChildNodes()||Ac(c)||Ed(c)||S(c)||z.removeNode(c)}}function h(a){(a=v(a))&&A(a,"div>div,div>table,div>ol,div>ul").forEach(function(a){var b=a.parentNode;if(b&&!t.rb(b)&&!t.rb(a)){if(R(a,"div")){["text-align"].forEach(function(c){if(!a.style[c]){var d=b.style[c];d&&(a.style[c]=
d)}});var c=t.kc(b)+t.kc(a);0<c?T(a,"margin-left",c+"px"):Pc(a,"margin-left")}var c=[a],d=C.da(c);L.ca(c);C.aa(d);l(t.ea(a))}})}function l(a){var b=a&&a.nextSibling;b&&!n(b)&&z.removeNode(b);(a=a&&a.previousSibling)&&!n(a)&&z.removeNode(a)}function m(a){if(Q(a,"ul,ol")&&t.K(a)&&t.Xc(a,!0))for(var b=null,c=a.childNodes.length-1;0<=c;c--){var d=a.childNodes[c];Q(d,"li,ol,ul")?b=null:Ac(d)?z.oa(d,"li"):$c(d)?z.removeNode(d):(b||(b=M("li"),z.insertBefore(b,d.parentNode,d.nextSibling)),z.M(d,b,0))}}function r(a){B(!!a,
"expected node");if("hr"===K(a)){var b=M("div");b.appendChild(a);return b}b=ld(a,0);b=t.na(b);if(b.collapsed)return null;for(;t.I(a=b.startContainer.childNodes[b.startOffset]);)b.setStart(a,0);a=t.wa(b);if(0>=a.length)return sd(b);for(var b=a[0].parentNode,c=(t.I(b)||t.Ma(b))&&a[0]===b.firstChild&&a[a.length-1]===b.lastChild;a.length&&$c(a[0]);)z.removeNode(a.shift());var d=t.rb(b);if(c){if(!d)return b;if(0>=a.length||!Wb(b).some(function(a){return n(a)}))return L.Va(b),b}a.length&&(c=C.da(a),b=C.Ga(a,
function(){return!1},function(){return M("div")}),C.aa(c),L.ka(b));return b}function v(a){for(var b;a&&!Q(a,"div.en-module,object")&&(b=a.firstChild);)a=b;return a}function w(a){var b=P(a,"div.en-module,object",N);return b&&b!==a?!0:!1}function n(a,b){if(!a)return!1;if(3===a.nodeType&&!t.Kd(a)||Ed(a)||Q(a,"table,tr,td,th,li")||S(a)&&(b?!t.Qb(a):!t.sb(a)))return!0;for(var c=0;c<a.childNodes.length;c++)if(n(a.childNodes[c],b))return!0;return!1}function q(a,b){for(var c=[];a&&a!==N;)-1!==b.indexOf(K(a))&&
c.unshift(a),a=a.parentNode;return c}function A(a,b){for(var c=[];a&&a!==N;)Q(a,b)&&c.unshift(a),a=a.parentNode;return c}var z=a.G("context"),t=a.G("query"),C=a.G("format"),L=a.G("block"),N=z.root,va=/\u00a0\u00a0/gi,ca={dl:function(a){if(a){for(var b=a.getElementsByTagName("dt"),c=b.length;c--;)d(b[c]);b=a.getElementsByTagName("dd");for(c=b.length;c--;)L.Fd(d(b[c]));return d(a)}return a}};ca.h1=ca.h2=ca.h3=ca.h4=ca.h5=ca.h6=ca.p=d;ca.center=function(a){a=d(a);T(a,"text-align","center")};ca.blockquote=
function(a){a=d(a);a.style.marginLeft="";L.Fd(a);Wb(a).forEach(h);return a};ca.th=function(a){a=z.oa(a,"td");var b=document.createRange();b.selectNodeContents(a);C.nd("bold","bold",b);return a};ca.ol=ca.ul=function(a,b){b||(W("li div",a).forEach(function(a){t.rb(a)||L.pc(a)}),W("li",a).forEach(L.eb),W('li[style*="list-style:"]',a).forEach(function(a){if("none"===Oc(a,"list-style")){for(;$c(a.previousSibling);)z.removeNode(a.previousSibling);Q(a.previousSibling,"li")?(z.le(a,a.previousSibling,-1),
z.removeNode(a)):a.removeAttribute("style")}}));m(a);return a};ca.pre=function(a){return f(a)};var V=Object.keys(ca);a.D=function(a){if(!a||w(a))return null;a=v(a);var b=!1,c=!1;q(a,V).forEach(function(a){var d=K(a),e=ca[d];e&&(e(a,b,c),"pre"===d?c=!0:-1!==["ul","ol"].indexOf(d)&&(b=!0))});A(a,"*[style]").forEach(function(a){var b=Oc(a,"white-space");if("pre"===b||"pre-wrap"===b)a=f(a),c=!0;for(var b=["line-height","max-width","min-width"],d=b.length;d--;){var h=b[d];Oc(a,h)&&(Ke(a),Pc(a,h))}if(0>
a.offsetTop||0>a.offsetLeft||a.style&&a.style.position)if(b=Oc(a,"position"),"fixed"!==b||a.offsetParent&&a.offsetParent!==N||(Ke(a),T(a,"position","relative")),"absolute"===b&&a.offsetParent===N&&(a.offsetParent.offsetHeight<a.offsetTop+a.offsetHeight&&a.style.top&&(Ke(a),T(a,"position","relative"),Pc(a,"top")),a.offsetParent.offsetWidth<a.offsetLeft+a.offsetWidth&&a.style.left&&(Ke(a),T(a,"position","relative"),Pc(a,"left"))),0>a.offsetTop||0>a.offsetLeft){b=a.offsetParent;d=a.offsetTop;for(h=a.offsetLeft;null!==
b&&b!==N;){b.offsetLeft&&(h+=b.offsetLeft);b.offsetTop&&(d+=b.offsetTop);var l=Oc(b,"position");"absolute"!==l&&"fixed"!==l||b.offsetParent!==N||(Ke(b),0>b.offsetLeft||0>b.offsetTop?e(b.offsetTop,b.offsetLeft,b):T(b,"position","relative"));b=b.offsetParent}e(d,h,a)}});b||c||(a=v(a),a=r(a));a=v(a);Ke(a);h(a);if(a=t.ea(a))p(a),l(a);Le();return a};a.ub=function(){a.D(rd(z.C()));k()};a.me=function(){a.D(sd(z.C()));k()};a.Pd=function(){z.C().collapsed||a.me();a.ub()};a.Hf=function(){for(var b=rd(z.C()),
c,d=2;b&&0<d;)$c(b)?c=pc(b,N):t.T(b)?(--d,c=a.D(b),c=Yc(c,function(a){return t.T(a)&&t.ea(c)!==t.ea(a)},N)):c=pc(b,N),b=c;k()};a.bc=function(b,c){z.C()||z.A(N,0);var d=0;c||(c=y);var e=C.Hb();W("td:empty,th:empty",e).forEach(function(a){z.Eb(oc(),a)});W("li:empty",e).forEach(function(a){z.Eb(M("br"),a)});W("hr",e).forEach(function(a){a.parentNode!==e&&L.ca([a])});for(var f=b||e.firstChild,h=[],l;f&&c(f)&&1111>d++;)if(f=v(f),-1!==h.indexOf(f))f=qc(f,e);else{h.push(f);if($c(f)&&1<O(f.parentNode))l=
qc(f,e),z.removeNode(f);else if(t.T(f)||Q(f,"td,li,div")){var g=f.nextSibling;(l=a.D(f))||(l=g);l=Xc(l,function(a){return t.T(a)&&!w(a)&&t.ea(l)!==t.ea(a)},e)}else l=qc(f,e);f=l}k();0>=d&&x.error("Normalization reached safety limit, this probably indicates that the current document failed to get normalized and may behave unexpectedly.")};a.Tb=function(){z.C().collapsed?a.ub():a.bc(rd(z.C()),function(a){var b=z.C(),c;if(c=b)b=sd(b),c=!(null!=a&&null!=b&&a.compareDocumentPosition(b)&2);return c})}}}
;function sf(){var a=this;a.name="editor";a.F=function(){function c(a,c){var d=!1,e;0==g&&null!=a?b.Pa(a):0==g&&(b.la(),d=!0);g++;try{e=c()}catch(f){pb(f)}g--;d&&b.ta();return e}var b=a.G("context"),e=a.G("query"),d=a.G("format");a.G("block");var f=b.ja;$d(b.root);var g=0;a.execCommand=function(b,d,e,l){if(1===arguments.length||4<=arguments.length&&null==d)d=!1;if(2>=arguments.length||4<=arguments.length&&null==e)e="";return c(l,function(b,c,d){return function(){if(!(b in f&&a.queryCommandEnabled(b,
d)))return!1;var c=f[b],e=c.action(""===d?null:d);c.jb&&a.G("spellcheck").jb(b);if(!0!==e&&!1!==e)throw"execCommand() didn't return true or false: "+e;return!1!==e}}(b,d,e))};a.queryCommandEnabled=function(a,d,e){return c(e,function(a,c){return function(){return a in f?b.R(a).enabled?b.R(a).enabled(c):b.hasFocus():!1}}(a,d))};a.queryCommandIndeterm=function(a,d){return c(d,function(a){return function(){return b.R(a).Ta?f[a].Ta():!1}}(a))};a.queryCommandState=function(a,d){return c(d,function(a){return function(){var c=
b.R(a);return c.state?null!=b.Tc(a)?b.Tc(a):c.state():!1}}(a))};a.queryCommandSupported=function(a){return a in f};a.queryCommandValue=function(a,d,e){return c(e,function(){return b.R(a).value?f[a].value(d):""})};b.qc=function(){Object.keys(f).forEach(function(a){b.R(a).Aa||(f[a].Aa=null);b.R(a).ya&&!b.R(a).Ta&&(f[a].Ta=function(){if(!b.C())return!1;var c=d.pa(b.C(),e.ra).map(function(b){return d.P(b,a)}),h=c.filter(function(b){return-1!=f[a].ya.indexOf(b)});return 1<=h.length&&1<=c.length-h.length});
b.R(a).ya&&(f[a].state=function(){var c=b.C();if(!c)return!1;b.cf();return-1!==f[a].ya.indexOf(d.P(c.startContainer,a))});b.R(a).Qe&&(f[a].Ta=function(){if(!b.C())return!1;for(var c=d.pa(b.C(),e.ra).map(function(b){return d.P(b,a)}),f=1;f<c.length;f++)if(c[f]!==c[f-1])return!0;return!1},f[a].value=function(){if(!b.C())return"";var c=d.pb(b.C(),e.ra);null==c&&(c=b.C().startContainer);c=d.P(c,a);return null===c?"":c});var c=b.R(a).ga,h=f[a].action;f[a].action=function(a){if(c)var e=d.bd();a=h(a);c&&
(b.ta(),b.C().collapsed&&d.qb(e));return a}})};a.Af=function(){return f}}};function tf(){function a(){n.B.timeout(function(){var a=-C;C=k(t);a+=C;0!==a&&bb(t.querySelectorAll("table"),function(a){r(a)})})}function c(a){v(a.target);r(a.target);e(a)}function b(a){e(a)}function e(a){w(a.target);f(a.target)}function d(a,b){var c=[],d=-1,e=P(a,"table"),f=P(a,"tr");null==b&&(b=0);if(null==e||null==f)return x.warn("Couldn't find tr or table for a td! <$>"),[];for(var f=f.querySelectorAll("td"),h=0;h<f.length;h++)f[h]===a&&(d=h);if(-1===d)return x.warn("Couldn't find td within its tr! <%>"),
[];d+=b;if(0>d||d>f.length-1)return[];bb(e.querySelectorAll("tr"),function(a){a=a.querySelectorAll("td");null!=a[d]&&c.push(a[d])});return c}function f(a){if(!1!==p(a)&&!1!==g(a)){var b=A.Qc(a);"right"===b?m(a):("center"===b&&m(a),l(a));h(a)}}function g(a){function b(a){r(a);H(a.querySelector("colgroup"));var c=a.querySelector("tbody");jc(c,a);H(c)}function c(a){r(a);H(a.querySelector("col"))}var d=!1,e=!1;(function(){var b=a.querySelector("col");null!=b&&null!=b.parentElement&&"table"===K(b.parentElement)&&
(d=!0)})();(function(){var b=a.querySelector("tbody");null!=b&&null!=b.parentElement&&"table"===K(b.parentElement)&&(e=!0)})();if(d&&!e)c(a);else if(e)b(a);else{var f=Ma(a.querySelectorAll("colgroup")),h=f[0]||null,g;if(0===f.length)return!0;g=W("col",h);for(var l=0;l<f.length;l++)if(null!=g[l].getAttribute("style"))return!1;for(l=0;l<g.length;l++)if(null!=g[l].getAttribute("style"))return!1;r(a);H(h)}return!0}function k(a){if(null==a)return null;a=vc(a);if(null==a)return null;a=a.getPropertyValue("width");
return null!=a?parseInt(a,10):null}function p(a){if(P(a.parentElement,"table")||null!=a.querySelector("table"))return!1;var b=!1;bb(q.Ka(a),function(a){F(a,"table-edge")&&(b=!0)});return b?!1:!0}function h(a){var b=a.querySelector("tr").querySelectorAll("td");bb(b,function(c){if(c!==b[b.length-1]){var e=q.Fb(c,"tableColumnEdge");G(e,"table-edge");var f=M("div",{"class":"line"});e.appendChild(f);var h,g,l,m,k,p,A=d(c),n=d(c,1),w=xc(e).width;q.Yc(e,function(){v(a);var b=xc(A[0]),c=xc(n[0]);h=b.width;
g=c.width;l=window.innerWidth-b.left-35;m=window.innerWidth-c.right+35;k=xc(a).width;p=parseInt(Oc(e,"right"),10);G(e,"no-hide-element")},function(a){a=p-a;a>l-w&&(a=l-w);a<m&&(a=m);e.style.right=a+"px"},function(b){b<-h+35&&(b=-h+35);b>g-35&&(b=g-35);var c=(h+b)/k*100,d=(g-b)/k*100;z.La(function(){A[0].style.width=c+"%";n[0].style.width=d+"%";Ub(e,"no-hide-element");q.We(e);r(a)});Y(t,"setDirty",{Cc:!0});q.Na()},"cursor: col-resize;")}})}function l(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,
f=A.Qc(a),h=q.Fb(a,"rightEdge");G(h,"table-edge");h.appendChild(M("div",{"class":"line"}));var g=xc(h).width,l;q.Yc(h,function(){v(a);var e=xc(a);b=e.width;c=window.innerWidth-e.left;l=parseInt(Oc(h,"right"),10);d=xc(a.parentNode).width;G(h,"no-hide-element")},function(a){if("center"===f){a=l-a;var d=c-(g+e+b)/2;a>d&&(a=d)}else a=l-a,a>c-g-e&&(a=c-g-e);0>a&&(a=0);h.style.right=a+"px"},function(c){var g;b="center"===f?b+2*c:b+c;b<e&&(b=e);g=b/d*100;100<g&&(g=100);Ub(h,"no-hide-element");z.La(function(){a.style.width=
g+"%";r(a)});Y(t,"setDirty",{Cc:!0});q.Na()},"cursor: col-resize;")}function m(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,f=A.Qc(a),h=q.Fb(a,"leftEdge");G(h,"table-edge");h.appendChild(M("div",{"class":"line"}));var g=xc(h).width,l;q.Yc(h,function(){v(a);var e=xc(a);b=e.width;c=e.right;l=parseInt(Oc(h,"left"),10);d=xc(a.parentNode).width;G(h,"no-hide-element")},function(a){if("center"===f){a=l+a;var d=c-(b+e+g)/2;a>d&&(a=d)}else a=l+a,a>c-g-e&&(a=c-g-e);0>a&&(a=0);h.style.left=
a+"px"},function(c){var g;b="center"===f?b-2*c:b-c;b<e&&(b=e);g=b/d*100;100<g&&(g=100);Ub(h,"no-hide-element");z.La(function(){a.style.width=g+"%";r(a)});Y(t,"setDirty",{Cc:!0});q.Na()},"cursor: col-resize;")}function r(a){var b=xc(a).width,c=35/b*100,d=[],e=0,f=0,h=a.querySelector("tr");if(null!=h&&(h=h.querySelectorAll("td"),0!==h.length)){b<35*h.length&&(b=35*h.length);var g=k(a.parentNode),g=Math.max(0,Math.min(100,b/g*100)),l=Oc(a,"width"),m=null;null!=l&&(m=Zd(l||""));m&&m.Nb&&"%"===m.Nb?T(a,
"width",g+"%"):T(a,"width",b+"px");var p=[];bb(h,function(a){a=xc(a).width;p.push(a/b*100+"%")});bb(h,function(a){var b=xc(a).width,h=p.shift();null==h&&(x.error("Length of first row magically changed <$>"),h="0%");T(a,"width",h);35>=b?(T(a,"width",c+"%"),f++):d.push(a);e+=parseInt(Oc(a,"width"),10)});if(0!==d.length&&0!==f){a=f*c;var A=e-a,r=100-a;bb(d,function(a){var b=parseInt(Oc(a,"width"),10),b=b/A*r;T(a,"width",b+"%")})}}}function v(a){T(a,"table-layout","fixed")}function w(a){bb(q.Ka(a),function(a){F(a,
"table-edge")&&q.detach(a)});bb(a.querySelectorAll("td"),function(a){bb(q.Ka(a),function(a){F(a,"table-edge")&&q.detach(a)})})}var n=this,q=null,A=null,z=null,t=null;n.name="ui-table";var C=null;n.F=function(){t=n.G("context").root;G(t,"en-ui-table-on");q=n.G("layer");A=n.G("table");z=n.G("undo");q.Ud("table",function(a,b){function c(b){f(a);b.stopPropagation();return!1}Kd()?b.Ha=n.B.listener(a,"mouseenter",c):b.Ha=n.B.listener(a,"mouseover",c)},function(a,b){b.Ha&&n.B.remove(b.Ha)});n.B.ba(t,"TABLE_ALIGN",
e);n.B.ba(t,"TABLE_INSERT_ROW",b);n.B.ba(t,"TABLE_DELETE_ROW",e);n.B.ba(t,"TABLE_INSERT_COLUMN",b);n.B.ba(t,"TABLE_DELETE_COLUMN",c);C=k(t);n.B.I("windowResize",a)};n.S=function(){Ub(t,"en-ui-table-on");bb(t.querySelectorAll("table"),function(a){w(a)});t=null}};function uf(){var a=this;a.name="copy";a.F=function(){function c(){var a=X(m);return!(!a||a.collapsed)}function b(){Y(m,"beforeGetContent");x.warn("The copy/cut action will only work if a ClipboardEvent is passed. Limited to WEB right now and highly experimental!")}function e(a){a=D(a,{fullhtml:!1,html:!0,fullraw:!1,raw:!0,resources:!0,plain:!0});Y(m,"beforeGetContent");var b=X(m);return(a=d(m,b,a))?JSON.stringify(a):""}function d(b,c,d){d=D(d,{plain:!0,html:!1,fullhtml:!1,fullraw:!1,raw:!1,resources:!1});
if(!c||c.collapsed)return null;var e=Ie.Xb("rte").va(),l=e.Xb("query"),m=e.Xb("table"),k=l.yc(c.startContainer,c.startOffset),t=P(c.startContainer,"td.en-selected",b),C=0;null!==t&&(k=l.yc(t,0),t=m.Fc(t),0<t.column&&(C=t.column));c.setStart(k[0],k[1]);t=P(c.endContainer,"td.en-selected",b);k=0;if(null!==t){var L=l.zc(t,O(t));c.setEnd(L[0],L[1]);t=m.Fc(t);(m=m.Ad(t.table))&&m.columns>t.column&&(k=m.columns-t.column-1)}t=c.cloneContents();m=document.createElement("body");m.appendChild(t);(t=a.Ua("crypt"))&&
t.qe(m);for(t=c.commonAncestorContainer;t&&l.K(t)&&l.T(t);)I(t)&&lc(m,t.cloneNode(!1)),t=t.parentNode;if(Wb(m).some(function(a){return Q(a,"li,tr,td")})&&(b=P(c.startContainer,"table,ul,ol",b)))for(b=b.cloneNode(!1),m.insertBefore(b,m.firstChild);;)if((l=m.children[1])&&Q(l,"li,ol,ul,tr,td"))b.appendChild(l);else break;if(0<C||0<k){L=U("tr",m);if(0<C&&0<L.length){var N=L[0];for(b=0;b<C;b++)l=N.firstChild.cloneNode(!1),t=M("div",{},[M("br")]),l.appendChild(t),N.insertBefore(l,N.firstChild)}if(0<k&&
0<L.length)for(C=L[L.length-1],b=0;b<k;b++)l=C.lastChild.cloneNode(!1),t=M("div",{},[M("br")]),l.appendChild(t),C.appendChild(l)}var va={};d.plain&&ad(m.cloneNode(!0),function(b){var c=a.Ua("simpletext");c?(b=c.hc(b))&&ad(b,function(a){va.plain=f(Xa(nc(a)))}):va.plain=f(Xa(nc(b)))});d.resources&&(e=e.Xb("resource"),va.resources=e?e.Qd(m):g(m)||[]);if(d.raw||d.fullraw)e=m.cloneNode(!0),ff(e),e=Xa(lb(e.outerHTML)),d.raw&&(va.raw=e),d.fullraw&&(va.fullraw=hc(m)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
e+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+e+"</body></html>");if(d.html||d.fullhtml)a.G("transform").Pc(m,3),e=vc(c.startContainer),c=c.startContainer===c.endContainer?e:vc(c.endContainer),p(m),ff(m),h(m,e,c),c=Xa(lb(m.outerHTML)),d.html&&(va.html=c),d.fullhtml&&(va.fullhtml=hc(m)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
c+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+c+"</body></html>");return va}function f(a){return a?a.replace(/\u00A0/g," "):""}function g(a){if(!a)return null;try{var b=[],c=a.querySelectorAll("embed[id],img[id]");for(a=0;a<c.length;a++){var d=c[a],e=(d.getAttribute("id")||"").split(":");if(3<=e.length&&"en-media"===e[0]){var f=e[2];f&&(d.setAttribute("src","?hash="+f),-1===b.indexOf(f)&&b.push(f))}}return b}catch(h){x.error("Exception in collectResourcesAction <$>",
h.toString())}return null}function k(a){a=(a||"").split(":");return 3<=a.length&&"en-media"===a[0]?a[2]:null}function p(a){W("embed[src][id]",a).forEach(function(b){var c=k(b.id);c&&(c=gc(a,"object",{type:"application/x-apple-msg-attachment",data:"cid:"+c}),ac(b,c))});W("img[src]",a).forEach(function(a){var b=k(a.id);b&&(a.setAttribute("src","cid:"+b),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"))})}function h(a,b,c){var d={},e={},f={},h={},l=["font-family",
"font-size"];a instanceof Element&&(d=vc(a));d&&d["font-family"]||(d=vc(document.body));if(d)for(var g=0;g<l.length;g++){var m=l[g];e[m]=d[m]}if(b)for(g=0;g<l.length;g++)m=l[g],f[m]=b[m];if(c)for(g=0;g<l.length;g++)m=l[g],h[m]=c[m];b=Wb(a);for(c=b.length-1;0<=c;c--){d=b[c];if(3===d.nodeType){if(0===d.textContent.length)continue;l=M("span");a.insertBefore(l,d);l.appendChild(d);d=l}for(g in e)l=e[g],m=Oc(d,g),0===c&&f[g]?l=f[g]:c===b.length-1&&h[g]&&(l=h[g]),null===m&&void 0!==l&&T(d,g,l)}}var l=a.G("context"),
m=l.root;a.df=d;a.B.A({name:"copy",action:function(){b();return!0},value:function(a){if(c())return a=yb(a),e(a)},enabled:function(){return c()}});a.B.A({name:"cut",action:function(){a.G("undo").La(function(){b();a.G("edit").V()});return!0},value:function(){var b=null;c()&&a.G("undo").La(function(){b=e();null!=b&&a.G("edit").V()});return b},enabled:function(){return l.hasFocus()&&c()}})}};function vf(){var a=this;a.name="paste";a.F=function(){function c(a,b,c){var d;c=db(c||{},{keyCode:13,charCode:0},!0);if(a.fireEvent){d=document.createEventObject();db(d,c);try{return!!a.fireEvent("on"+b,d,!1)}catch(e){}return!1}if(document.createEvent)try{d=document.createEvent("KeyEvents"),d.initKeyEvent(b,!0,!0,window,!1,!1,!1,!1,c.keyCode,c.charCode)}catch(e){d=document.createEvent("Events"),d.initEvent(b,!0,!0),d.keyCode=c.keyCode,d.charCode=c.charCode}else d=document.createEvent("UIEvents"),
d.initUIEvent&&d.initUIEvent(b,!0,!0,window,1),d.keyCode=c.keyCode,d.charCode=c.charCode;return!!a.dispatchEvent(d)}function b(a){[].filter.call(a.childNodes,function(a){return f.K(a)&&!f.ke(a)&&(!S(a)||f.Qb(a))&&J(a)>=d.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}function e(a){var b=d.C();b||(b=ld(),b.selectNodeContents(h),b.collapse(!1),d.Pa(b),d.ta());a||p.V();return d.C()}var d=a.G("context"),f=a.G("query");a.G("format");var g=a.G("block"),k=a.G("normalize"),p=a.G("edit"),
h=d.root,l=d.ja;a.D=function(a){function b(a){[].filter.call(a.childNodes,function(a){return f.K(a)&&f.Qb(a)&&J(a)>=d.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}if(!p.V({Jc:!1}))return!1;if(!d.C())return x.warn("insertPlainText did fail due to missing content"),!1;var c;u(a)&&(c=a);var e;a instanceof DocumentFragment?e=a:a instanceof Node&&(e=document.createDocumentFragment(),e.appendChild(a));e&&ad(document.createElement("body"),function(a){a.appendChild(e);c=nc(a).replace(/\u00A0/g,
" ")});f.I(d.C().startContainer)?b(d.C().startContainer):f.I(d.C().startContainer.parentNode)&&b(d.C().startContainer.parentNode);a=c.split(/\n/gi);for(var h=d.R("insertparagraph").action,g=0;g<a.length;g++){var l=a[g];0<g&&h&&h();if(l&&l.length){var k=d.C(),t=k.startContainer,k=k.startOffset;0<=k-1&&k-1<t.childNodes.length&&3===t.childNodes[k-1].nodeType&&(t=t.childNodes[k-1],k=O(t));0<=k&&k<t.childNodes.length&&3===t.childNodes[k].nodeType&&(t=t.childNodes[k],k=0);f.I(t)&&f.qa(t)&&(k=f.zc(t,k),
t=k[0],k=k[1]);d.A(t,k);l.trim()&&(0===l.indexOf(" ")&&(l=l.replace(/^\s/gi,"\u00a0")),3===t.nodeType?(t.insertData(k,l),d.A(t,k+l.length)):(1===t.childNodes.length&&f.Qb(t.firstChild)&&t.removeChild(t.firstChild),t=document.createTextNode(l),d.C().insertNode(t),d.A(t,l.length)))}}d.C().collapse(!1);return!0};a.insertNode=function(c,l,p,w){if(!c)return x.warn("insertNode failed due to missing content"),!1;var n=e(),q;l&&(q=document.createTextNode("\u00a0"),n.insertNode(q),n.selectNode(q),d.R("removeformat").action(),
d.A(q,1));var A;u(c)?A=fc(c,h):c instanceof DocumentFragment?A=c:c instanceof Node&&(A=document.createDocumentFragment(),A.appendChild(c));p&&(a.G("transform").mb(A,3,w?{info:{source:w}}:void 0),k.ub());if(0<wd(n,"table").length||P(n.startContainer,"table")||P(n.endContainer,"table"))if(p=U("table",A),0<p.length)for(w=a.G("simpletext"),c=0;c<p.length;c++){var z=p[c],t=z.nextSibling,C=z.parentNode,L=w.hc(z);sc(z,C)&&C.removeChild(z);t?C.insertBefore(t,L):C.appendChild(L)}n.collapse(!1);d.Pa(n);d.ta();
if(null==A.childNodes||0===A.childNodes.length)return x.warn("insertNode failed to empty content argument"),!1;f.I(d.C().startContainer)?b(d.C().startContainer):l&&f.I(d.C().startContainer.parentNode)&&b(d.C().startContainer.parentNode);l=A;n=d.C();c=n.startContainer;A={};if(P(c,"li")&&Q(l.firstChild,"ol,ul,li")){n={vd:[],lastChild:null};A=P(d.C().startContainer,"li");f.qa(A)&&$b(A);A=W("ol,ul",l);for(c=0;c<A.length;c++)if(p=A[c],null!=p){w=!0;for(z=p.parentNode;z;){if(-1!==["ol","ul"].indexOf(K(z))){w=
!1;break}z=z.parentNode}w&&bc(p)}A=!1;1<O(l)&&Q(l.lastChild.previousSibling,"li")&&f.qa(l.lastChild)&&Q(l.lastChild,"li")&&(A=!0);c=l.querySelector("li");Q(c.parentNode,"ol,ul")||bc(c);n.lastChild=l.lastChild;n.lg=A;n.vd=f.jc(l);d.C().insertNode(l);A=n}else(c=P(c,"a"))&&l.querySelector(".en-todo")&&(n.selectNode(c),n.collapse(0===n.startOffset)),A.lastChild=l.lastChild,A.vd=f.jc(l),n.insertNode(l);n=A;A=n.vd;l=n.lastChild;d.A(l.parentNode,J(l)+1);g.Va(d.C().startContainer);g.Va(l);for(c=0;c<A.length;c++)g.ka(A[c]);
q&&1===q.length&&d.removeNode(q);d.ta();k.ub();n.lg&&l&&l.previousSibling&&(q=l.previousSibling,H(l),l=q);l&&l.parentNode&&d.zf(l);return!0};l.inserthtml={O:!0,ga:!0,action:function(b){if(null!=b){var c=null;u(b)?(e(),c=fc(b,h)):c=b;null!=c&&(a.G("transform").mb(c,3),k.ub(),a.insertNode(c,!1,!1))}return!0},value:function(){var a=d.C();if(!a||a.collapsed)return"";var b=f.yc(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return mb(a)}};l.inserttext={O:!0,action:function(b){return a.D(b)}};
a.oc=function(c,l){l=D(l,{value:"",selection:"",source:"",resources:[]},!1);l=D(yb(c),l,!0);var g=l.mode,k=l.type,n=Xa(l.value),q=l.selection,A=l.source,z=l.resources||[];z&&0<z.length&&a.G("resource").hd(z);q&&(ie(d.root,q),d.la());if(u(n)){if("raw"!==g&&kb(n.trim()))return g=M("a",{href:n.trim()}),"html"===k?g.innerHTML=n:g.innerText=n,a.insertNode(g,!0,!1,A);if("pre"===g)for(var q=/\u00a0\u00a0/gi,n=n.replace(/\t/gi,"    "),z=/ {2,}/gi,t;t=z.exec(n);)var C=t[0].replace(/\s/gi,"\u00a0").replace(q,
"\u00a0 "),n=n.substring(0,t.index)+C+n.substring(t.index+t[0].length);if("plain"===k)return a.D(n);e(!0);q=fc(n,h);if(!q)return!0;if("raw"===g)return a.insertNode(n,!0,!1,A);if("html"===k&&"rich"===g&&(n=d.C(),null!=n&&p.vf(n.startContainer)))return k=a.G("simpletext"),k=k.hc(q),n.startContainer.parentNode.insertBefore(k,n.startContainer),n.deleteContents(),f.I(n.startContainer)&&b(n.startContainer),n=k.ownerDocument.createRange(),n.selectNodeContents(k),n.collapse(!1),d.Pa(n),d.ta(),!0;if("html"===
k&&("plain"===g||"pre"===g||"simple"===g)){k=a.G("simpletext");if(k="simple"===g?k.af(q):k.hc(q))n=k.ownerDocument.createRange(),n.selectNodeContents(k),q=n.cloneContents();if("plain"===g||"pre"===g)return a.D(q)}return a.insertNode(q,!0,"rich"===g||"simple"===g,A)}return!0};l.paste={O:!0,action:function(b){return a.oc(b,{type:"html",mode:"rich"})}};l.pasteraw={O:!0,action:function(b){La('Please use execCommand("paste", { type: "html", mode: "raw", "value": ... })');return a.oc(b,{type:"html",mode:"raw"})}};
l.pasteplain={O:!0,action:function(b){La('Please use execCommand("paste", { type: "plain", mode: "pre", "value": ... })');return a.oc(b,{type:"plain",mode:"pre"})}};l.pastesimple={O:!0,action:function(b){La('Please use execCommand("paste", { type: "html", mode: "simple", "value": ... })');return a.oc(b,{type:"html",mode:"simple"})}};a.B.A({name:"type",action:function(b){for(var d=0;d<b.length;d++){var e=b.charCodeAt(d);if(c(h,"keydown",{keyCode:e})&&c(h,"keypress",{keyCode:e})&&c(h,"textInput",{keyCode:e})){try{document.execCommand("inserttext",
!1,b[d])}catch(f){x.log("Using fallback for native inserttext command"),a.D(b[d]),c(h,"input",{})}c(h,"keyup",{keyCode:e})}}return!0},enabled:y});a.B.A({name:"event",action:function(a){var b=yb(a);a=new document.defaultView.CustomEvent(b.type,b);a.data=b.data;if(null!=b.html&&(h.innerHTML=b.html,null!=b.selection)){var c=X(h),b=ge(h,b.selection);c&&b&&!td(c,b)&&md(b)}h.dispatchEvent(a);return!0},enabled:y});a.B.A({name:"selection",action:function(a){ie(h,a);return!0},enabled:y})};a.S=function(){a.J=
null}};function Af(){function a(a,b){var c=a.toString();(null!=b?b:1)&&(c=c.trim());return d.Y()?c:c.substr(0,d.H.maxLength)}function c(a){try{document.execCommand("inserttext",!1,a.toString())}catch(b){x.error("InsertText did fail with",a),X(f).insertNode(document.createTextNode(a))}}function b(a){B(null!=a&&u(a),"textfield: provide a non-null string to attempt insert into textfield");a=a.replace(/\s+/gi," ");if(d.Y())return d.D.La(function(){c(a)}),!0;var b=d.tc(!0);b<a.length&&e();var f=a.substr(0,Math.max(0,
b));return 0<f.length?(d.D.La(function(){c(f)}),!0):!1}function e(){!0===d.H.ce&&we("warning",{module:d.H.name})}B(this instanceof Af,"Use `new` to instantiate this class");var d=this,f=null,g=!1;d.name="textfield-"+nb();d.H=null;d.D=null;d.vb=null;d.F=function(g){d.H=D(g,{element:null,Je:!1,maxLength:0,placeholder:null,Od:!1,Se:!0,ze:!0,active:!0,we:["textfield"],Wb:null,cd:null,Ae:null,name:null,fontsize:null,ce:!1});f=d.H.element;B(!!f&&I(f),'"element" option must be an HTMLElement');!0===d.H.ce&&
B(null!=d.H.name,'"name" is required for warnings to be enabled');d.B.Gc({zb:d.H.we});d.Za(d.H.placeholder);d.rd(d.H.fontsize);d.setActive(d.H.active);B(!(d.H.Je&&d.H.maxLength),"Max length not supported for multi line fields");d.B.listener(f,"input",function(){if(!(d.Y()||0<=d.tc())){f.normalize();f.focus();var b=f.firstChild;if(null!=b){b.textContent=a(f.textContent,!1);var c=X(b);null!=c&&md(ld(b,Math.min(0!==c.endOffset?c.endOffset:d.H.maxLength,d.H.maxLength)))}}d.H.Wb&&d.U(!0)});d.B.listener(f,
"textInput",function(a){return d.Y()||0!==d.tc(!0)?!0:(e(),Id(a))});d.H.cd&&d.H.name&&(d.B.listener(f,"blur",function(){ze(d.H.name,{focus:d.hasFocus()})}),d.B.listener(f,"focus",function(){d.focus()}));d.H.Wb&&d.B.listener(f,"blur",function(){d.Rb()&&wb(d.H.Wb,{target:f,value:d.J(!1),blur:!0})});d.H.Ae&&d.B.listener(f,"paste",function(a){if(a&&a.clipboardData){var c=a.clipboardData.getData("text/plain");b(c);return Id(a)}});if(d.H.ze){var p=function(a,c){c=D(yb(a),c,!0);var d=c.value;"html"===c.type&&
(d=fc(d,f).textContent);return b(d)};d.B.A({name:"paste",action:function(a){if(d.hasFocus())return p(a,{type:"html",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});d.B.A({name:"pasteplain",action:function(a){if(d.hasFocus())return La('Please use execCommand("textfield.paste", { type: "plain", mode: "plain", "value": ... })'),p(a,{type:"plain",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});var h=function(){var a=X(f);return!(!a||a.collapsed)};d.B.A({name:"copy",
value:function(){if(!h())return null;var a=X(f);return{plain:Xa(a.toString())}},enabled:h});d.B.A({name:"inserttext",action:function(a){if(d.hasFocus())return d.D.La(function(){c(a)}),!0},enabled:function(){return d.hasFocus()}});d.B.A({name:"delete",action:function(a){return"selection"===a?(document.execCommand("delete"),!0):!1},enabled:function(a){return"selection"===a?d.hasFocus():!1}});d.B.A({name:"placeholder",action:function(a){d.Za(a||null)},enabled:function(){return!(!this.H||!this.H.queryGroupName)}})}d.H.Se&&
(d.D=new Ue,d.va().F(d.D,{element:f}));d.B.A({name:"content",action:function(b){!d.H.Od||b&&a(b)!==d.N()||(b="");d.Ja(b);return!0},value:function(a){g=D(yb(a),{resetChangesState:!0});g.resetChangesState&&d.U(!1);return d.J()||(d.H.Od?d.N():"")},enabled:y,Lb:!0});d.B.A({name:"active",action:function(a){d.setActive(xb(a))},state:function(){return d.ha()},enabled:y,Lb:!0});d.B.A({name:"focus",action:function(a){D(yb(a),{clear:!1}).clear?pd():d.focus();return!0},state:function(){return d.hasFocus()},
enabled:y,Lb:!0});d.B.A({name:"changes",action:function(a){a=xb(a);d.U(a);return!0},state:function(){return d.Rb()},enabled:y,Lb:!0});d.B.A({name:"selectall",action:function(){d.Vb();return!0},enabled:function(){return d.hasFocus()}})};d.S=function(){d.setActive(!1);d.vb=null;d.H=null;f.removeAttribute("data-en-placeholder");f=null};d.J=function(b){b&&d.U(!1);if(d.H.multiline)return nc(f);f.normalize();b=f.firstChild;return null!=b?a(b.textContent):""};d.Ja=function(b){f.textContent=a(b);d.U(!1)};
d.hasFocus=function(){if(!d.ha())return!1;var a=X(f);return a&&(a=rd(a))?!!P(a,Gc):!1};d.focus=function(){f.focus();md(ld(f,O(f)));d.H.cd&&d.H.name&&ze(d.H.name,{focus:d.hasFocus()})};d.Vb=function(){f.focus();window.getSelection().selectAllChildren(f);d.H.cd&&d.H.name&&ze(d.H.name,{focus:d.hasFocus()})};d.N=function(){return f.getAttribute("data-en-placeholder")||""};d.Za=function(b){null!=b?f.setAttribute("data-en-placeholder",a(b)):f.removeAttribute("data-en-placeholder")};d.setActive=function(a){a!==
d.ha()&&(null==X(f)&&pd(),Hc(f,a))};d.ha=function(){return Gc(f)};d.U=function(a){g=!!a;!1===g&&d.D.flush();!0===d.Rb()&&d.H.Wb&&wb(d.H.Wb,{target:f,value:d.J(!1)});Vb(f,"en-note-is-empty",Fd(f))};d.Rb=function(){return g&&d.ha()};d.rd=function(a){(a=ae(a,"px","px"))&&0<a.value&&T(f,"font-size",a.Db)};d.Y=function(){return 0>=d.H.maxLength};d.tc=function(a){var b=d.H.maxLength-f.textContent.length,c=X(f),c=null!=c?c.endOffset-c.startOffset:0;a&&(b+=c);return Math.max(0,b)}};function Bf(){function a(){La("Please use title.focus");return g.hasFocus()}function c(a){if("placeholder"===a)return g.N();if("focus"===a)return La("Please use title.focus"),g.hasFocus();La("Please use title.content");return g.J()||g.N()}function b(a){a=yb(a);var b=!1,c=a.active;null!=c&&(La("Please use title.active"),g.setActive(c),b=!0);c=a.value;null!=c&&(La("Please use title.content"),e(c),b=!0);!0===a.focus&&(La("Please use title.focus"),g.focus(),b=!0);return b}function e(a){a&&a!==g.N()?g.J()!==
a&&g.Ja(a):g.Ja("");k=g.J()||g.N();g.U(!1)}B(this instanceof Bf,"Use `new` to instantiate this class");var d=this;this.name="title";var f=document.querySelector("#en-title");B(I(f),"Node for title required");var g=null,k=null;d.F=function(p){p=D(p,{active:!0,value:"",placeholder:"Untitled",placeholderAsDefaultValue:!0,fontsize:null});d.B.Gc({zb:["title"]});g=new Af;d.va().F(g,{element:f,Je:!1,maxLength:255,placeholder:p.placeholder,Od:p.placeholderAsDefaultValue,Se:!0,ze:!0,active:p.active,Wb:"titlechanged",
we:["title"],cd:!0,Ae:p.pasteEvent,name:d.name,fontsize:p.fontsize,ce:!0});d.B.L(function(){g=null});k=p.value;e(k);d.B.listener(f,"keydown",function(a){var b=!1,c=(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0);9===a.keyCode?0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c&&(Be(d.name),b=!0):13===a.keyCode&&(0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c?(Be(d.name),b=!0):4!==c&&6!==c&&(b=!0));return b?Id(a):!0});d.B.A({name:"title",action:b,
value:c,state:a,enabled:y})}};function Cf(){var a=this;a.name="crypt";a.F=function(){function c(a){if(a){var b=a.id;a=a.rev;if(b&&a)return k(b,a)}return(b=f())?g(b):null}function b(){var b=X(v);if(!b||b.collapsed)return x.error("No selection"),!1;b=a.G("copy").df(v,b,{html:!0});if(!b&&!b.html)return x.error("Failed to extract content",b),!1;b=b.html;if(0< !b.length)return x.error("Extracted content is empty",b),!1;var c=k();c.plainText=b;c.length="128";c.cipher="AES";c.hint="";var e=d(c);if(!a.G("edit").V())return!1;b=l.C();b.insertNode(e);
b=ld();b.selectNode(e);b.collapse(!1);md(b);x.log("pre post");a.B.timeout(function(){x.log("in post");we("encrypt",c);x.log("post post")},0);return!0}function e(b,c,d){var e=b.plainText;if(null!=e){var f=document.getElementById(b.id);if(f&&!F(f,"en-crypt-revealed")&&(l.gd(f),l.C())){for(;f&&!m.I(f.parentNode)&&!m.rb(f.parentNode);)r.ca([f]);!0===c?a.G("paste").oc({value:e,type:"html",mode:"rich"}):(c={"class":"en-crypt en-crypt-revealed en-container",id:b.id},c["data-en-crypt-rev"]=b.rev,b=M("div",
c),ic(b,e),!0===d&&Hc(b,!1,!0),a.G("transform").mb(b,3),a.G("edit").he(b),l.A(b,O(b)))}}}function d(a){var b={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","class":"en-crypt en-crypt-placeholder en-object-placeholder",id:a.id};b["data-en-crypt-rev"]=a.rev;return M("img",b)}function f(){var a=X(v);if(!a)return null;var b=qd(a,".en-crypt",v);return b?b:(a=wd(a,".en-crypt"))&&a.length?a[0]:null}function g(a){var b=a.id;a=a.getAttribute("data-en-crypt-rev");return b&&
a?k(b,a):null}function k(b,c){b=b||ob(a.name);var d=q[b];null==d&&(d={},q[b]=d);c=c||ob(b);var e=d[c];null==e&&(e={id:b,rev:c},d[c]=e);return e}var p=!1!==Ad.rte.cryptLegacy,h=!0===Ad.rte.cryptReadOnly,l=a.G("context"),m=a.G("query"),r=a.G("block"),v=l.root,w=l.ja;a.B.listener(v,"click",function(a){a=a.target;F(a,"en-crypt-placeholder")&&(a=k(a.id,a.getAttribute("data-en-crypt-rev")),we("decrypt",a))});if(p){var n=function(){var a=l.C();if(!a||a.collapsed)return"";var b=m.yc(a.startContainer,a.startOffset);
a.setStart(b[0],b[1]);a=a.cloneContents();return mb(a)};w.insertcrypto={ga:!0,action:function(b){if(!l.C())return x.error("insertCryptoAction: No range",b),!1;a.G("edit").V()&&a.G("paste").insertNode(b,!1,!0);return!0},value:n};w.revealcrypto={ga:!0,Ab:!0,action:function(b){var c=l.C();if(!c)return!1;c=m.ob(c,I);if(!c&&0>=c.length)return!1;for(c=c[0];c&&!m.I(c.parentNode)&&!m.rb(c.parentNode);)r.ca([c]);b=fc(b);if(!b)return!1;b=b.firstChild;a.G("transform").mb(b,3);a.G("edit").he(b);l.root.focus();
l.A(b,O(b));return!0},value:n}}var q={};a.ff=function(){if(h)return[];var a=[],b,c;for(b in q)for(c in q[b]){var d=q[b][c];null!=d.plainText&&null==d.cipherText&&a.push(d)}return a};a.se=function(a){k(a.id,a.rev).cipherText=a.cipherText};a.B.ba(v,"beforeGetContent",function(){if(!h)for(var a=Ma(v.getElementsByClassName("en-crypt-revealed")),b=a.length-1;0<=b;b--){var c=a[b],d=g(c);if(d){var e=c.innerHTML;if(d.plainText!==e){var f=k(d.id);c.setAttribute("data-en-crypt-rev",f.rev);db(f,d,!0);f.plainText=
e;delete f.cipherText;delete d.plainText}}}});a.B.A({name:"crypt",action:function(f){var g,m;l.la();if(hb(f))return b();g=yb(f);if(f=g.encrypt)a.se(f);else if(f=g.decrypt)g=f.id,m=f.rev,g=k(g,m),g.plainText=f.plainText,e(g,g.revert,h);else if(f=g.revert){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,!0):(g.revert=!0,we("decrypt",g))}else if(f=g.open){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,!1,h):we("decrypt",g)}else if(f=
g.close){g=c(f);if(!g)return!1;a.G("undo").flush();(f=document.getElementById(g.id))&&!F(f,"en-crypt-placeholder")&&(g=d(g),ac(f,g),l.gd(g),l.C().collapse(!1))}else return x.error("Invalid crypt value",g),!1;l.ta();return!0},state:function(a){var b=f();return b?"open"===a?F(b,"en-crypt-revealed"):"closed"===a?F(b,"en-crypt-placeholder")||!F(b,"en-crypt-revealed"):!0:!1},value:function(a){if("selected"===a){if(a=f()){var b=g(a);b.open=F(a,"en-crypt-revealed");return b}return""}return{count:{},items:{}}},
enabled:function(a){if(!hb(a))return!0;a=X(v);return!(!a||a.collapsed||qd(a,".en-crypt",v)||!(0>=wd(a,".en-crypt").length))}});a.qe=function(a){p||W(".en-crypt-revealed",a).forEach(function(a){var b=g(a);b&&(b=d(b),ac(a,b))})};a.Ba=function(a,b){1===b?W("en-crypt",a).forEach(function(a){var b;p?(b="en-crypt:"+a.textContent.trim()+":"+a.getAttribute("cipher")+":"+a.getAttribute("length")+":"+a.getAttribute("hint"),b=M("embed",{type:"evernote/x-crypto",align:"absmiddle",id:b})):(b=k(),b.cipherText=
a.textContent,b.length=a.getAttribute("length"),b.cipher=a.getAttribute("cipher"),b.hint=a.getAttribute("hint"),b=d(b));ac(a,b)}):2===b&&(p||W('embed[type="evernote/x-crypto"]',a).forEach(function(a){var b=a.getAttribute("id").split(":"),c=k();c.cipherText=b[1];c.cipher=b[2];c.length=b[3];c.hint=b.slice(4).join(":");b=d(c);ac(a,b)}))};a.Ia=function(a,b,c){if(1===b)if(p){var d=c.crypto||{};B(d,"Expected a crypto info on Mac here",d);U("div.en-crypt-revealed,div.en-crypto-revealed",a).forEach(function(b){var c=
b.getAttribute("id");d[c]?(c=d[c].split(":"),c=gc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]),ac(b,c)):x.error("Found revealed crypto but not replacement. Key:",c)});W('embed[type="evernote/x-crypto"]',a).forEach(function(b){var c=b.getAttribute("id").split(":"),c=gc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]);ac(b,c)})}else W(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=gc(a,"en-crypt",{cipher:c.cipher,length:c.length,
hint:c.hint},[c.cipherText]),ac(b,c)):H(b)});else 2===b?p||W(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=gc(a,"embed",{type:"evernote/x-crypto",id:"en-crypt:"+c.cipherText+":"+c.cipher+":"+c.length+":"+c.hint}),ac(b,c)):H(b)}):3!==b&&x.error("Other transformers EN-CRYPT!!!")}}};function Df(){var a=this;a.name="edit";a.F=function(){function c(a){function b(a){return Q(a,"ol,ul")}for(var c=null;Ma(a.childNodes).some(b);){var d=a.lastChild;b(d)||!c&&$c(d)?(c=null,a.parentNode.insertBefore(d,a.nextSibling)):(c||(c=M("li"),a.parentNode.insertBefore(c,a.nextSibling)),c.appendChild(d))}}function b(b){if(null!=b){var c=M("div",{style:'-en-codeblock: true; box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;'}),
d=!1;if(b.collapsed)c.appendChild(oc()),d=!0;else{var e=a.G("simpletext");b=b.cloneContents();e=e.hc(b);c.appendChild(e)}n.R("insertparagraph").action();e=q.ea(n.C().startContainer);e.parentNode.insertBefore(c,e);z.ka(c);d&&n.A(c,0)}}function e(){function a(b){for(;b;){if(0<=d.indexOf(b))return!0;b=b.parentNode}return!1}var c=A.G("textinput").Xe();c||(c=n.C());var d=Ma(document.querySelectorAll('div[style*="-en-codeblock:"]')),e=null;d&&0<d.length&&(c.collapsed?e=a(c.startContainer)?[c.startContainer]:
null:e=A.pa(c,a));e&&0<e.length?e.forEach(function(a){for(;a;){var b=d.indexOf(a);if(0<=b){d[b].removeAttribute("style");break}a=a.parentNode}}):b(c)}function d(b){if(!b||!a.V({Jc:!1}))return!1;var c=n.C();if(!q.K(n.C().startContainer)&&!q.Ea(n.C().startContainer))return!0;q.I(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);n.A(b.parentNode,1+J(b));return!0}function f(a){if(h())return!1;
window.getSelection().isCollapsed&&(window.getSelection().modify("extend",a?"backward":"forward","lineboundary"),n.la());return n.R(a?"delete":"forwarddelete").action()}function g(a){if(h())return!1;if(!window.getSelection().isCollapsed)return n.R("delete").action();var b=P(n.C().startContainer,"li");z.mc()&&null!=b&&q.qa(b)||(window.getSelection().modify("extend",a?"backward":"forward","word"),n.la());return n.R(a?"delete":"forwarddelete").action()}function k(){var b=n.C();if(b.collapsed){t.Hf();
var c=A.Hb();if(1!==O(c)||!R(c.firstChild,"div")||1!==O(c.firstChild)||!R(c.firstChild.firstChild,"br")){z.Gb(b.startContainer,b.startOffset);var d=b.startContainer,c=b.startOffset;if(!p(b)){for(;;)if(0===c&&q.K(d.previousSibling)&&q.$(d.previousSibling))d.parentNode.removeChild(d.previousSibling);else if(0<=c-1&&c-1<d.childNodes.length&&q.K(d.childNodes[c-1])&&q.$(d.childNodes[c-1]))d.removeChild(d.childNodes[c-1]),c--;else if(0===c&&q.T(d)||q.$(d))c=J(d),d=d.parentNode;else{if(0<=c-1&&c-1<d.childNodes.length&&
q.K(d.childNodes[c-1])&&R(d.childNodes[c-1],"a")){z.pc(d.childNodes[c-1]);return}if(0<=c-1&&c-1<d.childNodes.length&&!q.I(d.childNodes[c-1])&&!S(d.childNodes[c-1])&&!Ed(d.childNodes[c-1]))d=d.childNodes[c-1],c=O(d);else break}if(0<c&&3===d.nodeType)b=1,1<c&&Va(d.textContent.substring(c-2,c))&&(b=2),n.A(d,c-b,d,c),a.V();else if(q.K(d)&&0<=c-1&&c-1<d.childNodes.length&&(Q(d.childNodes[c-1],"br,hr")||Ed(d.childNodes[c-1])))n.A(d,c-1,d,c),a.V();else if(!q.T(d)){if(Q(d,"li,dt,dd")&&0===c){if(C){if(d.parentNode.firstChild!==
d&&"true"!==d.getAttribute("data-en-list-collapse")){d.setAttribute("data-en-list-collapse","true");return}d.getAttribute("data-en-list-collapse")&&d.removeAttribute("data-en-list-collapse")}if(d.parentNode.firstChild===d){c=[];for(b=d.parentNode;b;b=b.parentNode)R(b,"li")&&c.unshift(b);for(b=0;b<c.length;b++)z.eb(c[b]);c=A.da([d]);z.ca([d]);A.aa(c);Q(d,"dd,dt")&&q.bb(d).every(function(a){return!q.W(d,a)||!q.X(d,a)})&&(d=n.oa(d,"div"));z.ka(d);return}}for(var b=d,e=c;;)if(0==e)e=J(b),b=b.parentNode;
else if(0<=e-1&&e-1<b.childNodes.length&&q.K(b.childNodes[e-1])&&q.$(b.childNodes[e-1]))b.removeChild(b.childNodes[e-1]),e--;else break;if(0===c&&q.Xc(d,!0)&&q.bb(d).concat(d).filter(function(a){return q.K(a)&&q.W(a,d)&&q.tb(a)}).length)if(c=ld(d,0),c=q.na(c),c=q.wa(c,function(a){return q.K(a)&&!q.ge(a)}),c.filter(function(a){return 3!==a.nodeType}).length)for(b=0;b<c.length;b++)v(c[b]);else v(d);else if(!Q(d,"table,img,div.en_module,div.en_crypt"))if(0<=e-1&&e-1<b.childNodes.length&&Q(b.childNodes[e-
1],"table,img,div.en_module,div.en_crypt"))n.A(b,e-1,b,e);else if(0===c&&(R(b.childNodes[e-1],"hr")||S(b.childNodes[e-1])&&(S(b.childNodes[e-1].previousSibling)||!q.T(b.childNodes[e-1].previousSibling))))n.A(b,e-1,b,e),a.V()&&n.A(d,c);else if(Q(b.childNodes[e],"li,dt,dd")&&Q(b.childNodes[e].previousSibling,"li,dt,dd"))b=b.childNodes[e-1],e=O(b),d=b.nextSibling,n.A(b,e,d,0),a.V();else{for(;0<=e-1&&e-1<b.childNodes.length;){var f=b.childNodes[e-1];q.K(f)&&q.$(f)?(b.removeChild(f),e--):Q(f,"hr, div.en-container")?
e--:(b=f,e=O(b))}n.A(b,e,d,c);a.V({direction:"backward"})}}}}}else a.V()}function p(a){var b=a.startContainer,c=a.startOffset,d=P(b,"td");return a.collapsed&&d&&!P(b,"li")&&Fd(d)&&(a=Wb(d)[0],(b===a||tc(a,b))&&0===c)?!0:!1}function h(){return!!a.G("textinput").hf()}function l(a){t.Tb();for(var b=q.na(n.C()),b=q.ob(b,function(a){return 1===a.nodeType&&q.K(a)&&(a.hasAttribute("align")||""!=a.style.textAlign)}),c=0;c<b.length;c++){var d=b[c];d.removeAttribute("align");Pc(d,"text-align")}if("left"!=a)for(b=
q.na(n.C()),b=q.wa(b,function(a){return q.K(a)&&R(a,"div")});b.length;)b.shift().setAttribute("style","text-align: "+a)}function m(a){var b=a.toLowerCase(),c="tl"===b,d=c?"ul":b,e=n.C();if(e){t.Tb();var f=z.Ca()===b?"disable":"enable",h=function(a){return q.ie(a,b)},g=function(a){return!h(a)&&Q(a,"ol,ul")},l=[];(function(){for(var a=e.endContainer;a!==e.commonAncestorContainer;a=a.parentNode)R(a,"li")&&l.unshift(a);for(a=e.startContainer;a;a=a.parentNode)R(a,"li")&&l.unshift(a)})();l.forEach(z.eb);
a=q.na(e);"enable"===f&&q.ob(a,function(a){return q.K(a)&&g(a)}).forEach(function(a){if(q.K(a.previousSibling)&&h(a.previousSibling)||q.K(a.nextSibling)&&h(a.nextSibling)){a=[].slice.call(a.childNodes);var b=A.da(a);z.ca(a);A.Ga(a,function(a){return h(a)});A.aa(b)}else n.oa(a,d),Vb(a,"en-todo-list",c),T(a,"-evernote-list-type",c?"todo":null)});a=q.wa(a,function(a){return q.K(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||q.X(a,"li"))});if(1<a.length){var m=a[a.length-1];""===m.textContent&&(S(m)||1===
O(m)&&S(Yb(m)))&&(a=a.slice(0,a.length-1))}"enable"==f&&(a=a.filter(function(a){return!Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")}));if("disable"==f)for(;a.length;){var k=[];k.push(a.shift());if(h(k[0]))v(k[0]);else{for(;a.length&&a[0]==k[k.length-1].nextSibling&&!h(a[0]);)k.push(a.shift());f=A.da(k);z.ca(k);for(m=0;m<k.length;m++)z.ka(k[m]);A.aa(f);for(m=0;m<k.length;m++)Q(k[m].parentNode,"ol,ul")&&a.push(k.shift())}}else for(;a.length;){for(k=[];!k.length||a.length&&a[0]==k[k.length-1].nextSibling;)if(Q(a[0],
"p,div"))a[0].style.margin="",a[0].style.textAlign="",a[0].removeAttribute("align"),Nc(a[0]),k.push(n.oa(a[0],"li")),a.shift();else if(Q(a[0],"li,ol,ul"))k.push(a.shift());else{for(f=[];!f.length||a.length&&a[0]==f[f.length-1].nextSibling&&q.T(a[0])&&q.T(f[f.length-1])&&!S(f[f.length-1]);)f.push(a.shift());for(;f.length&&$c(f[f.length-1]);)f.pop();f.length&&k.push(A.Ga(f,void 0,function(){return M("li")}))}if(!h(k[0].parentNode)&&!k.every(function(a){return Q(a,"ol,ul")}))if(g(k[0].parentNode)){var k=
Ma(k[0].parentNode.childNodes),p=k[0].parentNode.getAttribute("type"),f=A.da(k);z.ca(k);A.Ga(k,function(a){return h(a)},function(){return r(b,p)});A.aa(f)}else f=A.Ga(k,function(a){return h(a)},function(){if(!(q.K(k[0].parentNode)&&q.nc(k[0].parentNode)&&q.K(k[0].parentNode.previousSibling)&&h(k[0].parentNode.previousSibling))){var a=k[0].parentNode.getAttribute("type");return r(b,a)}var c=k[0].parentNode.previousSibling;z.eb(c.lastChild);q.K(c.lastChild)&&h(c.lastChild)||(a=c.getAttribute("type"),
c.appendChild(r(b,a)));return c.lastChild}),z.ka(f)}}}function r(a,b){B(0<=["ul","ol","tl"].indexOf(a.toLowerCase()));if("tl"===a)return M("ul",{"class":"en-todo-list",style:"-evernote-list-type:todo"});var c=M(a);b&&c.setAttribute("type",b);return c}function v(a){if(q.K(a))if(R(a,"div")){var b=q.kc(a)-40;0<b?T(a,"margin-left",b+"px"):z.pc(a)}else if(q.nc(a))z.pc(a);else if(q.tb(a))a.removeAttribute("dir"),a.style.margin="",a.style.padding="",a.style.border="",""!=a.getAttribute("style")&&"border-width: initial; border-color: initial; "!=
a.getAttribute("style")||a.removeAttribute("style"),n.oa(a,"div");else{for(var b=a.parentNode,c=[];q.K(b)&&1==b.nodeType&&!q.nc(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(!q.K(b)||!q.nc(b))for(b=a.parentNode,c=[];q.K(b)&&1==b.nodeType&&!q.tb(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(Q(a,"ol,ul")&&(!q.K(b)||!q.tb(b))){a.removeAttribute("reversed");a.removeAttribute("start");a.removeAttribute("type");b=[].slice.call(a.childNodes);if(Q(a.parentNode,"ol,ul")||Ma(a.parentNode.childNodes).every(function(){return Q(a,
"ol,ul")||$c(a)}))c=A.da([].slice.call(a.childNodes)),z.pc(a),A.aa(c);for(c=0;c<b.length;c++)z.ka(b[c])}else if(q.K(b)&&q.tb(b)){c.push(b);for(var d=b;c.length;){var b=c.pop(),e=a.parentNode==b?a:c[c.length-1];q.T(e)&&!S(e)&&S(e.nextSibling)&&e.parentNode.removeChild(e.nextSibling);var f=[].slice.call(b.childNodes,1+J(e));w([].slice.call(b.childNodes,0,J(e)));w(f)}v(d)}}}function w(a){if(a.length){var b=a[0];if(Q(b.parentNode,"ol,ul")){var c=q.Ib(b.parentNode),d=b.parentNode.getAttribute("type");
A.Ga(a,function(a){return q.ie(a,c)},function(){return r(c,d)})}else{for(var b=!0,e=0;e<a.length;e++)F(a[e],"en-code")||P(a[e],".en-code")||(b=!1);for(;a.length;)e=a.shift(),R(e,"div")?b&&F(e,"en-code")?e.insertBefore(document.createTextNode("\u00a0\u00a0\u00a0\u00a0\u00a0"),e.firstChild):z.Fd(e):(e=A.Ga([e],function(a){return q.nc(a)?!0:!1},function(){return M("div",{style:"margin-left:40px;"})}),z.ka(e))}}}var n=a.G("context"),q=a.G("query"),A=a.G("format"),z=a.G("block"),t=a.G("normalize"),C=!0===
n.H.smartList,L=n.ja;a.V=function(b){if(!n.C())return!0;t.Pd();var c=0<wd(n.C(),"td").length;if(Ab.J()){var d={stop:!1,element:n.root,ma:n.C()};wb("beforeDelete",d);if(!0===d.stop)return!1}z.bf(b);c&&a.D();t.ub();uc(n.C().startContainer)||n.la();return!0};a.D=function(){for(var a=U("td",n.root),b=0;b<a.length;b++)if(0===O(a[b])){var c=M("div",{},[M("br")]);a[b].appendChild(c)}};L.deleteword={O:!0,jb:!0,ga:!0,action:function(){return g(!0)}};L.forwarddeleteword={O:!0,jb:!0,ga:!0,action:function(){return g(!1)}};
L.deleteline={O:!0,jb:!0,ga:!0,action:function(){return f(!0)}};L.forwarddeleteline={O:!0,jb:!0,ga:!0,action:function(){return f(!1)}};L["delete"]={O:!1,jb:!0,ga:!1,action:function(b){if(h())return!1;A.sf(function(){if("selection"===b)a.V();else if("word"===b)g(!0);else if("line"===b)f(!0);else if("number"==typeof b)for(var c=0;c<b;c++)k();else k()});return!0}};L.forwarddelete={O:!1,jb:!0,ga:!1,action:function(b){if(h())return!1;"selection"===b?a.V():"word"===b?g(!1):"line"===b?f(!1):n.C().collapsed?
(b=n.C(),p(b)||(window.getSelection().modify("extend","forward","character"),window.getSelection().collapseToEnd(),n.la(),td(b,n.C())||n.R("delete").action())):a.V();n.ta();return!0}};L.indent={O:!0,ga:!0,action:function(){t.Tb();for(var a=[],b=n.C().endContainer;b!=n.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=n.C().startContainer;b!=n.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=n.C().commonAncestorContainer;b;b=b.parentNode)R(b,"li")&&a.unshift(b);
for(b=0;b<a.length;b++)z.eb(a[b]);a=q.na(n.C());a=q.wa(a,function(a){return q.K(a)&&Q(a,"div,li")});b=a.filter(q.Z)[0];if(R(b,"li")&&Q(b.parentNode,"ol,ul")){for(b=b.previousSibling;q.$(b);)b=b.previousSibling;R(b,"li")&&z.eb(b)}for(;a.length;){b=[];for(b.push(a.shift());a.length&&a[0]==b[b.length-1].nextSibling;)b.push(a.shift());w(b)}return!0},enabled:function(){return n.hasFocus()&&!z.Fa()}};L.outdent={O:!0,ga:!0,action:function(){t.Tb();var a=A.Hb(),b=[];(function(){for(var a=n.C().endContainer;a!=
n.C().commonAncestorContainer;a=a.parentNode)R(a,"li")&&b.unshift(a);for(a=n.C().startContainer;a;a=a.parentNode)R(a,"li")&&b.unshift(a)})();b.forEach(z.eb);for(var c=q.na(n.C()),c=q.wa(c,function(a){return q.K(a)&&(!q.jc(a).some(q.K)||Q(a,"ol,ul")||R(a,"li")&&Q(a.parentNode,"ol,ul"))}),d=!0,e=0;e<c.length;e++)F(c[e],"en-code")||P(c[e],".en-code")||(d=!1);for(e=[];c.length;){for(;c.length&&R(Fc(c[0],a),"div");){var f=Fc(c.shift(),a);if(-1===e.indexOf(f))if(e.push(f),d&&F(f,"en-code"))f=Yb(f),rc(f)&&
(f.textContent=f.textContent.replace(/\s{0,5}/,""));else{var h=q.kc(f)-40;0<h?T(f,"margin-left",h+"px"):(Pc(f,"margin-left"),Pc(f,"margin"))}}for(;c.length&&(Q(c[0],"ol,ul")||!Q(c[0].parentNode,"ol,ul"));)v(c.shift());if(!c.length)break;f=[];for(f.push(c.shift());c.length&&c[0]==f[f.length-1].nextSibling&&!Q(c[0],"ol,ul");)f.push(c.shift());h=A.da(f);z.ca(f);f.forEach(z.ka);A.aa(h)}return!0},enabled:function(){return n.hasFocus()&&!z.Fa()}};L.inserthorizontalrule={O:!0,ga:!0,action:function(){if(z.Vc())return!1;
n.R("insertparagraph").action();var a=M("div",{},[M("hr")]),b=q.ea(n.C().startContainer);n.M(a,b.parentNode,J(b));return!0},enabled:function(){return n.hasFocus()&&!z.Vc()&&!z.Fa()}};a.he=d;L.insertimage={O:!0,ga:!0,action:function(a){if(""===a)return!1;a=M("img",{src:lf(a)});d(a);a.removeAttribute("width");a.removeAttribute("height");return!0}};L.insertlinebreak={ga:!0,action:function(){if(h())return!1;if(!z.mc())return n.R("insertparagraph").action();if(!a.V({Jc:!1}))return!1;if(!q.K(n.C().startContainer)&&
!q.Ea(n.C().startContainer)||1==n.C().startContainer.nodeType&&!q.X("br",n.C().startContainer)||1!=n.C().startContainer.nodeType&&!q.X("br",n.C().startContainer.parentNode))return!0;if(3==n.C().startContainer.nodeType&&0==n.C().startOffset){var b=n.C().startContainer.parentNode,c=J(n.C().startContainer);n.A(b,c)}3==n.C().startContainer.nodeType&&n.C().startOffset==O(n.C().startContainer)&&(b=n.C().startContainer.parentNode,c=1+J(n.C().startContainer),n.A(b,c));b=M("br");n.C().insertNode(b);n.A(b.parentNode,
1+J(b));q.Qb(b)&&(n.C().insertNode(M("br")),n.A(b.parentNode,1+J(b)));return!0}};L.insertparagraph={O:"before",ga:!0,action:function(){if(h())return!1;var b=a.Ua("todo");if(!a.V())return!1;var c=n.C().startContainer,d=n.C().startOffset;if(!q.K(c)&&!q.Ea(c))return!0;3===c.nodeType&&0!==d&&d!==O(c)&&c.splitText(d);3===c.nodeType&&d===O(c)&&(d=1+J(c),c=c.parentNode);3===c.nodeType&&(d=J(c),c=c.parentNode);n.A(c,d);for(var e=c;!q.Nd(e)&&q.K(e.parentNode)&&q.W(c,e.parentNode);)e=e.parentNode;if(q.K(e)&&
q.Nd(e)&&q.W(c,e.parentNode)&&Q(e,"p,div")){for(var f=e;!Q(f,"dd,dt,li")&&q.K(f.parentNode);)f=f.parentNode;Q(f,"dd,dt,li")&&(e=f)}if(!q.K(e)||!q.W(e,c)||!q.Nd(e)){f=q.na(n.C());f=q.wa(f,function(a){return q.X(a,"p")}).slice(0,1);if(!f.length){if(!q.X("div",n.C().startContainer))return!0;e=oc();n.C().insertNode(e);n.A(e,0);return!0}for(;f[f.length-1].nextSibling&&q.X(f[f.length-1].nextSibling,"p");)f.push(f[f.length-1].nextSibling);e=A.Ga(f,Ga,function(){return M("div")})}var f=!1,g=b?b.de(e):null;
if(b&&null!=g){if(b.lf(e))return $b(e),e.appendChild(M("br")),n.A(e,0),!0;f=!0}if(Q(e,"address,listing,pre"))return b=M("br"),n.C().insertNode(b),n.A(c,d+1),sc(q.nextNode(b),e)||(n.C().insertNode(M("br")),n.A(c,d+1)),!0;Q(e,"li,dt,dd")&&z.eb(e);if(Q(e,"li,dt,dd")&&q.qa(e))return z.ca([e]),q.lc(e)||(n.ne(e),e.appendChild(M("br"))),Q(e,"dd,dt")&&q.bb(e).every(function(a){return!q.W(e,a)||!q.X(e,a)})&&(e=n.oa(e,"div")),z.ka(e),!0;for(d=ld(n.C().startContainer,n.C().startOffset,e,O(e));0===d.startOffset&&
!q.Sb(d.startContainer);)d.setStart(d.startContainer.parentNode,J(d.startContainer));for(;d.startOffset===O(d.startContainer)&&!q.Sb(d.startContainer);)d.setStart(d.startContainer.parentNode,1+J(d.startContainer));var c=q.wa(d),g=!c.length||1===c.length&&S(c[0]),c=rd(n.C()),c=P(c,function(a){return 0>["a","tt"].indexOf(K(a))},A.Hb())||c,c=A.da([c]),l;Q(e,"h1,h2,h3,h4,h5,h6,tt")&&g?l="div":R(e,"dt")&&g?l="dd":R(e,"dd")&&g?l="dt":l=e.tagName.toLowerCase();var m=M(l);for(l=0;l<e.attributes.length;l++)m.setAttributeNS(e.attributes[l].namespaceURI,
e.attributes[l].name,e.attributes[l].value);m.removeAttribute("id");m.removeAttribute("class");C&&Ec(e,"data-en-list-collapse")&&m.removeAttribute("data-en-list-collapse");F(e,"en-code")&&G(m,"en-code");e.parentNode.insertBefore(m,e.nextSibling);var g=q.ob(d),d=d.extractContents(),k=q.jc(d);for(l=0;l<k.length;l++)1===k[l].nodeType&&-1===g.indexOf(k[l])&&k[l].removeAttribute("id");for(l=d.childNodes.length-1;0<=l;l--)g=d.childNodes[l],rc(g)?$c(g)&&H(g):!S(g)&&q.qa(g)&&H(g);Q(e,"li")&&1<d.childNodes.length&&
!q.qa(d)&&S(d.childNodes[0])&&H(d.childNodes[0]);for(m.appendChild(d);q.Sb(e.lastChild);)e=e.lastChild;for(;q.Sb(m.lastChild);)m=m.lastChild;q.lc(e)||(e.appendChild(M("br")),A.aa(c.map(function(a){a[0]=e;return a})));if(q.lc(m))m.children&&1===m.children.length&&S(m.children[0])&&A.aa(c.map(function(a){a[0]=m;return a}));else{if(f)return $b(m),b=b.Hd(m),n.A(b.parentNode,O(b)+1),A.aa(c.map(function(a){a[0]=m;return a})),!0;m.appendChild(M("br"));A.aa(c.map(function(a){a[0]=m;return a}))}l=0;f&&!b.de(m)&&
(B(3!==m.nodeType,"newContainer for checkbox insertion cannot be text"),b.Hd(m),l++);b=q.zc(m,l);m=b[0];l=b[1];n.A(m,l);return!0}};L.insertorderedlist={O:!0,ga:!0,action:function(){m("ol");return!0},Ta:function(){return"mixed"===z.Ca()},value:function(){return z.Ca()},state:function(){return"ol"===z.Ca()},enabled:function(){return n.hasFocus()&&!z.Fa()}};L.insertunorderedlist={O:!0,ga:!0,action:function(){m("ul");return!0},Ta:function(){return"mixed"===z.Ca()},value:function(){return z.Ca()},state:function(){return"ul"===
z.Ca()},enabled:function(){return n.hasFocus()&&!z.Fa()}};L.inserttodolist={O:!0,ga:!0,action:function(){m("tl");return!0},Ta:function(){return"mixed"===z.Ca()},value:function(){return z.Ca()},state:function(){return"tl"===z.Ca()},enabled:function(){return n.hasFocus()&&!z.Fa()}};[{name:"justifyfull",mode:"justify"},{name:"justifyleft",mode:"left"},{name:"justifycenter",mode:"center"},{name:"justifyright",mode:"right"}].forEach(function(a){L[a.name]={O:!0,ga:!0,action:function(){l(a.mode);return!0},
Ta:function(){if(!n.C())return!1;var b=q.ob(q.na(n.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});return b.some(function(b){return z.Rc(b)==a.mode})&&b.some(function(b){return z.Rc(b)!=a.mode})},state:function(){if(!n.C())return!1;var b=q.ob(q.na(n.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});return b.length&&b.every(function(b){return z.Rc(b)==a.mode})},value:function(){if(!n.C())return"";var a=q.ob(q.na(n.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});
return a.length?z.Rc(a[0]):"left"},enabled:function(){return n.hasFocus()&&!z.mc()&&!z.Fa()}}});L.selectall={action:function(){window.getSelection().selectAllChildren(n.root);return!0},enabled:y,Ab:!0};L.tab={O:!0,ga:!0,action:function(b){if(h())return!1;var c="true"===b||1===+b;if(z.mc()||!n.C().collapsed)return n.R(c?"outdent":"indent").action();if(z.je()){var d=a.Ua("table");d&&(b=d.L(),d=d.Sc(),c?(b=Yc(d,"td",b))&&n.A(b,0):(c=Xc(d,"td",b),c||(n.R("inserttablerow").action("after"),c=Xc(d,"td",
b)),n.A(c,0)))}else c||(n.R("inserthtml").action("\u00a0\u00a0\u00a0\u00a0\u00a0"),(b=X(n.root))&&b.endContainer&&b.endContainer.parentNode&&n.Gf());return!0},enabled:function(){return n.hasFocus()&&!z.Fa()}};a.vf=function(a){for(;a;){if(I(a)&&"true"===Oc(a,"-en-codeblock"))return!0;a=a.parentNode}return!1};L.codeblock={O:!0,za:!0,action:function(){e();return!0}};a.Ba=function(a){function b(a,c,d){for(var e=a.getElementsByTagName("o:p"),f=e.length;f--;)H(e[f]);f=a.parentNode;a.removeAttribute("style");
a=mc(a,"div");e=null;a.previousElementSibling&&(1===c&&Q(a.previousElementSibling,d)||1<c&&Q(a.previousElementSibling,"ul,ol"))?e=a.previousElementSibling:(e=gc(a,d),f.insertBefore(e,a));f=gc(e,"li");for(f.appendChild(a);1<c;){a=jd(e);if(Q(a,"ol,ul"))e=a;else if(Q(a,"li")&&Q(jd(a),"ol,ul"))e=jd(a);else{var h=gc(e,d);a?a.appendChild(h):e.appendChild(h);e=h}c--}e.appendChild(f)}U("p",a).forEach(function(a){1===O(a)&&"o:p"===K(a.firstChild)&&(H(a.firstChild),a.appendChild(gc(a,"br")),mc(a,"div"))});
U('div[style*="mso-line-break-override"]',a).forEach(function(a){var c=U('span[style*="mso-special-format"]',a);if(0<c.length){var d="ul";"bullet"!==Oc(c[0],"mso-special-format").toLowerCase()&&(d="ol");1===O(c[0].parentNode)?H(c[0].parentNode):H(c[0]);b(a,1,d)}});U('div[style*="mso-list"],p[style*="mso-list"]',a).forEach(function(a){var c=Oc(a,"mso-list").toLowerCase();if(0<=c.indexOf("level")&&(c=parseInt(c.substr(c.indexOf("level")+5,1),10),!isNaN(c))){var d="ul",e=U('span[style*="mso-list:"]',
a);if(0<e.length)for(var f=0;f<e.length;f++){var h=e[0];"ignore"===Oc(h,"mso-list").toLowerCase()&&(nc(h).match(/[0-9]+.*/g)&&(d="ol"),Q(h.parentNode,"span")&&1===O(h.parentNode)?H(h.parentNode):H(h))}b(a,c,d)}});W('div[style~="margin-left:"]>ul,div[style~="margin-left:"]>ol',a).forEach(function(b){var c=b.parentElement;if(Q(c,"div")){for(var d=Oc(c,"margin-left"),d=+d.replace(/(\d+)em/gi,"$1"),e=null;0<d;){var f=gc(a,b.tagName);e?e.appendChild(f):c.parentNode.insertBefore(f,c.nextSibling);e=f;d-=
2}e&&(cc(c,e),H(c))}});W('li[style*="list-style:"]',a).forEach(function(a){"none"===Oc(a,"list-style")&&bc(a)});W("li",a).forEach(c);W("ol,ul",a).forEach(function(b){var c=null;Ma(b.childNodes).forEach(function(b){-1!==["li","ol","ul"].indexOf(K(b))?c=null:$c(b)?H(b):Ac(b)?mc(b,"li"):(c||(c=gc(a,"li"),b.parentNode.insertBefore(c,b.nextSibling)),c.appendChild(b))})});W('ul[style*="-evernote-list-type"]',a).forEach(function(a){G(a,"en-todo-list");Wb(a).forEach(function(a){if(R(a,"li")){var b=!1,c=U(".en-todo",
a).shift();c&&(b=F(c,"en-todo-checked"),H(c));Ub(a,"en-todo-over");Vb(a,"en-todo-checked",b)}})})};a.Ia=function(a){W("ul.en-todo-list",a).forEach(function(b){Wb(b).forEach(function(b){if(R(b,"li")){var c=gc(a,"img",{"class":"en-todo"});Vb(c,"en-todo-checked",F(b,"en-todo-checked"));b.insertBefore(c,b.firstChild)}})});W("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(b){var c=b.previousSibling;R(c,"li")?c.appendChild(b):(c=gc(a,"li",{style:"display:inline;list-style:none;"}),b.parentNode.insertBefore(c,
b),c.appendChild(b))})}}};function Ef(){this.name="typebehind-email-"+nb();this.Sa=function(){return"email"};this.D=function(){return[/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/gi]};this.J=function(a,c,b){c=M("a");a.insertNode(c);B(null!=c,"new node is null");u(b)&&(c.setAttribute("href","mailto:"+b),c.textContent=b);return{node:c,Ya:!1}};this.F=function(a){B(!0===a,"typebehind.email only accepts true as opt")}};function Ff(){function a(a){var b=null;ub.$a.some(function(c){if(-1!==a.indexOf(c.icon)&&a.length===c.icon.length)return b=c,!0});return null==b?null:c(b)}function c(a){return M("object",{"class":"en-emoticon "+(b.color||b["default"]),contenteditable:"false"},[a.icon])}this.name="typebehind-emoticon-"+nb();var b={"default":"en-emoticon-yellow",yellow:"en-emoticon-yellow",orange:"en-emoticon-orange",pink:"en-emoticon-pink",purple:"en-emoticon-purple","dark-blue":"en-emoticon-dark-blue","light-blue":"en-emoticon-light-blue",
green:"en-emoticon-green",slate:"en-emoticon-slate",brown:"en-emoticon-brown",black:"en-emoticon-black"};this.Sa=function(){return"emoticon"};this.D=function(){return ub.ia.map(function(a){return new RegExp(a,"g")})};this.J=function(a,b){var f;f=ub.get(b.source);f=null==f?null:c(f);B(null!=f,"typebehind: emoji node failed to be created");a.insertNode(f);return{node:f,Ya:!1}};this.Ba=function(b){Vc(b).forEach(function(b){var c=a(b.textContent);null!=c&&ac(b,c)})};this.Ia=function(a){W("object.en-emoticon",
a).forEach(function(a){ac(a,M("span",{style:"-evernote-sentoj-emoticon:true"},a.textContent))})};this.F=function(a){B(!0===a,"typebehind.emoticon only accepts true as opt")}};function Gf(){this.name="typebehind-url-"+nb();this.Sa=function(){return"url"};this.D=function(){return[/(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?/gi]};
this.J=function(a,c,b){c=M("a");a.insertNode(c);B(null!=c,"new node is null");u(b)&&(c.setAttribute("href",b),c.textContent=b);return{node:c,Ya:!1}};this.F=function(a){B(!0===a,"typebehind.url only accepts true as opt")}};function Hf(a){var c=this;c.name="typebehind-list-"+nb();c.Sa=function(){return"list"};c.D=function(){return[/^\s*\*/gi,/^\s*[0-9]+\./gi]};c.Mb=function(){return!0};c.N=function(a){return null!=P(a.startContainer,"li")?!1:!0};c.Y=function(a){var b,c,g=0;b=0;for(c=a.length-1;b<a.length;b+=1,--c)g+=Math.pow(26,c)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(a[b])+1);return g};var b=[["M",1E3],["CM",900],["D",500],["CD",400],["C",100],["XC",90],["L",50],["XL",40],["X",10],["IX",9],["V",5],["IV",4],["I",1]];
c.ha=function(a){for(var c=0,f=0;f<b.length;++f)for(var g=b[f],k=g[1],g=RegExp("^"+g[0]);a.match(g);)c+=k,a=a.replace(g,"");return c};c.J=function(b,d,f){b=c.D();d==b[0].toString()?a.R("insertunorderedlist").action():d==b[1].toString()&&(a.R("insertorderedlist").action(),d=X(),d=P(d.startContainer,"ol"),f=f.substr(0,f.length-1),1<f?d.setAttribute("start",f):d.removeAttribute("start"));return{node:null,Ya:!0}};c.F=function(a){B(!0===a,"typebehind.list only accepts true as opt")}};function If(a,c){this.name="typebehind-inline-"+nb();var b=/(?:\s+|\xa0+|^)\`(\S(?:.*\S)?)(?:[\xa0\\t ]*$)/gi,e=[{rx:/\*\*(\S(?:.*\S)?)\*/gi,cmd:"bold",len:2,value:"bold"},{rx:/\*(?!\*)(\S(?:.*\S)?)\*/gi,cmd:"italic",len:1,value:"italic"},{rx:/(?:\s+|\xa0+|^)__(\S(?:.*\S)?)__(?:[\xa0\\t ]*$)/gi,cmd:"underline",len:2,value:"underline"},{rx:/~~(\S(?:.*\S)?)~~/gi,cmd:"strikethrough",len:2,value:"line-through"},{rx:/(?:\s+|\xa0+|^)\!{2}(\S(?:.*\S)?)\!{2}(?:[\xa0\\t ]*$)/gi,cmd:"highlight",len:2,value:"rgb(255, 250, 165)"},
{rx:/(?:\s+|\xa0+|^)\`(?!\`)(\S(?:.*\S)?)\`(?:[\xa0\\t ]*$)/gi,cmd:"tt",len:1,value:"tt"}];this.Sa=function(){return"inline"};this.D=function(){return[/(?!(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)\s+\1)(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)(\S(?:.*\S)?)\2/gi]};this.U=function(){return!0};this.J=function(d,f,g){var k=null,p=-1;f=null;for(var h=1,l=null,m=0;m<e.length;m++){f=e[m].cmd;var h=e[m].len,l=e[m].value,r=g.match(e[m].rx),k=null,p=-1;if(r&&0<r.length){k=r[0].trim();p=g.lastIndexOf(k);r=k[0];1<e[m].len&&(r+=r);
if(k.substr(k.length-r.length)!==r)return{node:null,Ya:!1};if("tt"!==f&&g.match(b))m=e.length-2;else{m=Ra(r);if(k.match(new RegExp("^"+m+"\\s*"+m+"$")))return{node:null,Ya:!1};break}}}if(null!=k){g=d.startContainer;for(m=0;Cc(g);){if(rc(g)){if(m+g.textContent.length>p)break;m+=g.textContent.length}g=qc(g)}g=Yb(g);k=d.endContainer;p-=m;d=d.endOffset-h;g.textContent=g.textContent.slice(0,p)+g.textContent.slice(p+h);g===k&&(d-=h);k.textContent=k.textContent.slice(0,d)+k.textContent.slice(d+h);h=c.Sd(!0);
d=ld(g,p,k,d);c.nd(f,l,d);md(ld(d.endContainer,d.endOffset,d.endContainer,d.endOffset));a.R(f).action();c.qb(h)}return{node:null,Ya:!1}};this.F=function(a){B(!0===a,"typebehind.inline only accepts true as opt")}};function Jf(){var a=this;a.name="typebehind-todo-"+nb();a.Sa=function(){return"todo"};a.D=function(){return[/\[[\sxX]?\]/gi]};a.J=function(c,b,e){b=a.Bb.I.G("todo").ac();0<e.toLowerCase().indexOf("x")&&G(b,"en-todo-checked");c.insertNode(b);B(null!=b,"new node is null");u(e)&&(b.textContent=e.replace(/^\[[\sxX]?\]/,""));return{node:b,Ya:!0}};a.F=function(a){B(!0===a,"typebehind.list only accepts true as opt")}};function Kf(){this.name="typebehind-horizontalrule-"+nb();this.Sa=function(){return"horizontalrule"};this.D=function(){return[/^\s*[\*\-\=]{3}[\s\*\-\=]*/gi]};this.N=function(a,c){return 13==c};this.Mb=function(){return!0};this.J=function(a){var c=M("hr");a.insertNode(c);return{node:c,Ya:!1}};this.F=function(a){B(!0===a,"typebehind.horizontalrule only accepts true as opt")}};function Lf(a,c){this.name="typebehind-code-"+nb();this.Sa=function(){return"code"};this.D=function(){return[/\`{3}/gi]};this.Mb=function(){return!1};this.N=function(a){var c=Ma(document.querySelectorAll('div[style*="-en-codeblock:"]'));if(c&&0<c.length)for(a=a.startContainer;a;){if(0<=c.indexOf(a))return!1;a=a.parentNode}return!0};this.J=function(){a.R("insertparagraph").action();var b=M("div",{style:'-en-codeblock: true; box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;'});
b.appendChild(oc());var e=c.ea(a.C().startContainer);e.parentNode.insertBefore(b,e);md(ld(b.firstChild,0));return{node:null,Ya:!0}};this.F=function(a){B(!0===a,"typebehind.code only accepts true as opt")}};function Mf(a){var c=this;c.name="typebehind-table-"+nb();c.Sa=function(){return"table"};c.D=function(){return[/^\s*(\[\s*\]){2,}([xX][0-9]+)?/gi]};c.Mb=function(){return!0};c.N=function(a){return null!=P(a.startContainer,"table,li")?!1:!0};c.J=function(b,e,d){c.D();b=d.split("][").length;d=d.match(/[0-9]+$/);e=1;d&&(e=parseInt(d[0],10));a.R("inserttable").action(b+","+e);a.ta();return{node:null,Ya:!1}};c.F=function(a){B(!0===a,"typebehind.table only accepts true as opt")}};function Nf(){var a=this;a.name="typebehind";a.F=function(c){function b(){var a=X(m);if(a&&a.collapsed){var b=a.endContainer,c=null;if(!(v.get("code")&&(F(a.startContainer,"en-code")||P(a.startContainer,".en-code"))||v.get("inline")&&rc(a.endContainer)&&"tt"===K(a.endContainer.parentNode))){var f=v.ia.slice();0<=f.indexOf("inline")&&f.splice(f.indexOf("inline"),1);if(32===n.currentlyProcessingCode)c=b.textContent.substring(0,a.endOffset);else if(9===n.currentlyProcessingCode)b=Yb(b),rc(b)&&(c=b.textContent,
a=ld(b,c.length,b,c.length));else if(13===n.currentlyProcessingCode)b=pc(b),b===a.endContainer.parentNode&&(b=pc(b)),rc(b)&&(c=b.textContent,a=ld(b,c.length,b,c.length));else{b=a.endContainer;for(f=pc(b);Cc(f)&&"tt"!==K(f)&&null==P(f,"tt",m);)b=f,f=pc(b);a=ld(b,0,a.endContainer,a.endOffset);c=a.toString();f=["inline"]}var h=!1;if(0<w.length)for(var g=0;g<w.length;g++){var k=w[g];if(0<=f.indexOf(k)){h=!0;break}}b=h&&Xb(b,m);if(null!=c)for(g=0;g<f.length;g++){var k=f[g],p=v.get(k);if(!(!p.fa||p.N&&
!p.N(a,n.currentlyProcessingCode)||p.Mb&&p.Mb()&&!b)){var r=p.U&&!0,k=p.D(),q=e(c,k,r);if(q.possible){l.La(function(){var b;b=p;var e=a,f=q.rx,h=c,g=r,l=e.endContainer;B(rc(l),"typebehind: node must be text");B(null!=f,"must be given a regex to work");g?b=b.J(e,f,h):(h=d(h,f,g),e=h.matchString,h=h.index,l.replaceData(h,e.length,""),l=ld(l,h,l,h),b=b.J(l,f,e));null!=b.node&&(f=b.node,32===n.currentlyProcessingCode?md(ld(f.nextSibling,1)):9===n.currentlyProcessingCode&&md(ld(f.nextSibling,5)));b.Ya&&
(f=X(),f.startContainer&&rc(f.startContainer)&&(f.startContainer.textContent=f.startContainer.textContent.replace(/(\xa0)+$/gi,""),null===b.node||Q(b.node,".en-todo")))&&(b=f.startContainer.parentNode,b.appendChild(M("br")),f=O(b),md(ld(b,f,b,f)))});break}}}}}}function e(a,b,c){if(null==a||!u(a)||null==b)return{possible:!1,rx:null};for(var e=0;e<b.length;e++)if(d(a,b[e],c))return{possible:!0,rx:b[e]};return{possible:!1,rx:null}}function d(a,b,c){if(null==a||null==b)return null;b=b.source;c||(b="(?:\\s+|\u00a0+|^)("+
b+")(?:[\u00a0\\t ]*$)");(c=a.match(new RegExp(b,"gi")))&&1<c.length&&x.warn("Should not be multiple matches here!");if(null==c||0>=c.length)return null;c=c[0].trim();return{matchString:c,index:a.lastIndexOf(c)}}function f(a){q.forEach(function(b){if(a.keyCode===b)return n.shouldProcess=!0,n.currentlyProcessingCode=b,!0})}var g=a.G("context"),k=a.G("query"),p=a.G("format"),h=D(c,{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1}),l=a.G("undo"),m=g.root,r=a.va(),
v=new qb;v.set("emoticon",new Ff);v.set("url",new Gf);v.set("email",new Ef);v.set("list",new Hf(g));v.set("inline",new If(g,p));v.set("todo",new Jf);v.set("horizontalrule",new Kf);v.set("code",new Lf(g,k));v.set("table",new Mf(g));var w=[];v.ia.forEach(function(a){var b=v.get(a),c=b.Sa(),d=h[c];null!=d&&!1!==d&&(r.F(b,h[c]),b.Mb&&b.Mb()&&w.push(a))});var n={shouldProcess:!1,currentlyProcessingCode:null},q=[9,13,32];for(c=0;c<ua.length;c++)q.push(ua[c].charCodeAt(0));a.B.listener(m,"keypress",f);a.B.I("editingKeyEventOccurred",
f);a.B.listener(m,"keyup",function(){n.shouldProcess&&(n.shouldProcess=!1,b())});a.Ba=function(a,b){v.ia.forEach(function(c){c=v.get(c);var d=h[c.Sa()];null!=d&&!1!==d&&null!=c.Ba&&c.Ba(a,b)})};a.Ia=function(a,b){v.ia.forEach(function(c){c=v.get(c);var d=h[c.Sa()];null!=d&&!1!==d&&null!=c.Ia&&c.Ia(a,b)})}}};function Of(){var a=this;a.name="enml";var c=/^<!DOCTYPE[^>]*>\n?/g,b=/ +xmlns="(http:\/\/www.w3.org\/1999\/xhtml)?"/g,e=/<en-todo([^>]*?)><\/en-todo>/g,d=/<en-media([^>]*?)><\/en-media>/g,f=/<en-(todo|media)([^>]*?)\/>/g;a.F=function(g){function k(b,c){var d=c?b.documentElement:b.body&&b.body.firstElementChild;null==d&&(d=b.querySelector("en-note"));if(null==d)return x.error("Was not able to extract corrrect node",b),!1;if("en-note"!==K(d))return x.error("Invalid ENML. Expected en-note root node.",
d),!1;ka.forEach(function(a){d.hasAttribute(a)?p.setAttribute(a,d.getAttribute(a)):p.removeAttribute(a)});var e=p.ownerDocument.importNode(d,!0);a.G("transform").mb(e,1);kc(e,p);Y(p,"setDirty",!1);return!0}var p=D(g,{root:null}).root||a.G("context").root,h=!1;a.Hc=function(a){a=a.replace(f,"<en-$1$2></en-$1>");var b=new DOMParser,c=null;h||(c=b.parseFromString(a,"text/html"));if(h||null==c)h=!0,c=document.implementation.createHTMLDocument(""),a=a.replace(/(\s*<\?xml.*?\?>\s*|\s*<!DOCTYPE[^>]*?>\s*)*/gi,
""),c.body.innerHTML=a;return null==c?(x.error("Was not able to parse",a),!1):k(c,!1)};a.D=function(b,c){var d=new XMLHttpRequest;null!=c&&(a.B.listener(d,"error",c.bind(null,!1,"Error loading "+b)),a.B.listener(d,"abort",c.bind(null,!1,"Cancelled loading "+b)));a.B.listener(d,"load",function(){var a=!1,b=this.responseXML;null!=b&&(a=k(b,!0));null!=c&&c(a)});d.open("GET",b);d.send()};a.fd=function(f){var h=D(f,{crypto:null,contentElement:p}),g=h.contentElement;f=document.implementation.createDocument("http://www.w3.org/1999/xhtml",
"en-note",document.implementation.createDocumentType("en-note","","http://xml.evernote.com/pub/enml2.dtd"));var k=f.documentElement;if(g.hasAttributes())for(var w=0;w<g.attributes.length;w++)-1!==ka.indexOf(g.attributes[w].name.toLowerCase())&&k.setAttribute(g.attributes[w].name.toLowerCase(),g.attributes[w].value);Y(p,"beforeGetContent");w=f.importNode(g,!0);null!=w&&cc(w,k);a.G("transform").Pc(k,1,h);a.Bb.L().forEach(function(a){"transform"!==a.name&&a.Ia&&a.Ia(k,1,h)});g=k.querySelectorAll("*[id],*[class],*[data-en-overlay-id]");
for(w=g.length-1;0<=w;w--){var n=g[w];n.removeAttribute("id");n.removeAttribute("class");n.removeAttribute("data");Ma(n.attributes).forEach(function(a){0===a.name.indexOf("data-")&&n.removeAttribute(a.name)})}f=(new XMLSerializer).serializeToString(f);return ec(Xa(f).replace(c,'<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">').replace(b,"").replace(e,"<en-todo$1 />").replace(d,"<en-media$1 />"))};a.B.A({name:"enml",action:function(b){var c=yb(b);if(c.url)a.D(c.url,function(a,b){a?
Ae():x.error("Loading from "+c.url+" did fail: "+b)});else{if(!a.Hc(b))return!1;(b=a.Ua("undo"))&&b.clear()}return!0},value:function(b){return a.fd(yb(b))},enabled:y})}};function Pf(){function a(){c.B.listener(b,"click",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b=a.target,c={};c.src=b.getAttribute("src")||"";c.name=b.getAttribute("name")||"";b=c||{};b.tagname="img";we("clicked",b);a.preventDefault()}});c.B.listener(b,"dblclick",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b={};b.src=a.target.getAttribute("src")||"";b.name=
a.target.getAttribute("name")||"";b=b||{};b.tagname="img";we("doubleClicked",b);a.preventDefault()}})}var c=this;c.name="img";var b;c.F=function(e){!0===e.imageClickEvents&&(b=c.G("context").root,a())}};function Qf(){function a(a){null!=a&&a!=={}&&(g=a);U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",f).forEach(function(a){!0===a.complete?c(a):e.B.listener(a,"load",function(){c(a)})})}function c(a){e.fe(a);var c=b(a),d=c.width,c=c.height;null==d&&null==c?a.style.height="auto":null!=d&&null!=c&&Math.round(a.naturalHeight/a.naturalWidth*10)===Math.round(c/d*10)&&(a.style.height="auto")}function b(a){var b;null!=a.getAttribute("width")?b=parseInt(a.getAttribute("width"),
10):(b=parseInt(a.style.width,10),isNaN(b)&&(b=null));null!=a.getAttribute("height")?a=parseInt(a.getAttribute("height"),10):(a=parseInt(a.style.height,10),isNaN(a)&&(a=null));return{width:b,height:a}}var e=this;e.name="img-dpi";var d,f,g=null;e.Ye=function(a){if(null==g)return a.naturalWidth;var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalWidth;b=g["images-dpi"][a.getAttribute("src")][0];a=a.naturalWidth;return 144===b?Math.round(a/(b/72)):a};e.D=function(a){if(null==g)return a.naturalHeight;
var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalHeight;b=g["images-dpi"][a.getAttribute("src")][1];a=a.naturalHeight;return 144===b?Math.round(a/(b/72)):a};e.fe=function(a){var c=a.naturalWidth,d=e.Ye(a),f=a.naturalHeight,g=e.D(a),r=b(a);null==r.height&&null==r.width&&(c!==d&&T(a,"width",d+"px"),f!==g&&T(a,"height",g+"px"))};e.F=function(b){d=e.G("context");f=d.root;a(b.images);e.B.A({name:"images",action:function(b){null==b||fa(b)&&0===Object.keys(b).length||""===b?b=null:b=
yb(b);a(b);return!0},enabled:y})}};function Rf(){function a(a){if(null==a)return null;b.lastIndex=0;return(a=b.exec(a))&&a[1]?a[1]:null}var c=this;c.name="inline";var b=/^[\'\"]?(.*?)[\'\"]?(,|$)/;c.F=function(){function b(a){var c="";u(a)&&(-1<a.indexOf("+")||-1<a.indexOf("-"))&&(c=a[0],a=a.slice(1));a=ae(a,"px","px");var h=null;if(a&&0<a.value){if(""===c)return h=a.Db,f("fontsize",h),!0;var g=d(a.xc);if(""!==g&&("+"===c?h=(parseInt(g,10)+a.value).toString()+a.xc:"-"===c&&(h=(parseInt(g,10)-a.value).toString()+a.xc),h))return b(h)}return!1}
function d(a,b){a||(a="px");if(!b){var c=g.C();if(!c)return"";var d=null;c.collapsed||(d=p.pb(c,k.ra));null===d&&(d=c.startContainer);b=p.P(d,"fontsize")}return(c=ae(b,a))&&c.value?c.value.toString():"0"}function f(a,b){p.nd(a,b)}var g=c.G("context"),k=c.G("query"),p=c.G("format"),h=c.G("block"),l=c.G("editor"),m=g.root,r=g.ja;c.G("textinput");var v=new za,w=null;c.B.ba(m,"beforeInput",function(a){g.la();w=p.bd();null!=w&&0===w.length&&(w=null);v.A("before input",w,a)},1E3);c.B.ba(m,"input",function(a){v.A("en.define.MESSAGE.TEXT_INPUT",
w,"info",a);a=ld(a.Cb.xa,a.Cb.offset,a.ma.endContainer,a.ma.endOffset);v.A("Changed range",Pa(a));a:{if(null!=w){var b=w;w=null;if(a&&!1===a.collapsed){g.Pa(a);v.A("Applied pending to range",Pa(b));p.qb(b);a=!0;break a}}a=!1}a&&(a=g.C(),a.collapse(!1),g.Pa(a),g.ta(!1,!1))},-1E3);r.bold={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("bold"):+a;f("bold",a?"bold":"normal");return!0},ya:["bold","600","700","800","900"],Aa:"fontWeight",xb:function(a,b){return a==b||"bold"==a&&"700"==b||
"700"==a&&"bold"==b||"normal"==a&&"400"==b||"400"==a&&"normal"==b}};r.italic={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("italic"):+a;f("italic",a?"italic":"normal");return!0},ya:["italic","oblique"],Aa:"fontStyle"};r.underline={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("underline"):+a;f("underline",a?"underline":null);return!0},ya:["underline"]};r.strikethrough={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("strikethrough"):+a;f("strikethrough",
a?"line-through":null);return!0},ya:["line-through"]};r.tt={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("tt"):+a;f("tt",a?"tt":null);return!0},ya:["tt"]};r.fontname={O:!0,za:!0,action:function(a){f("fontname",a);return!0},value:function(){var b=g.C();if(!b)return"";var c=null;b.collapsed||(c=p.pb(b,k.ra));null===c&&(c=b.startContainer);b=p.P(c,"fontname");return a(b)||""},Aa:"fontFamily",xb:function(b,c){return a(b)===a(c)}};r.fontsize={O:!0,za:!0,action:function(a){return b(a)},
Ta:function(){return 2<=p.pa(g.C(),k.ra).map(function(a){return p.P(a,"fontsize")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},value:function(a,b){return d(a,b)},Aa:"fontSize",xb:function(a,b){if(a===b)return!0;var c=a;0<a.indexOf("pt")?c=ae(a,"px").Db:0>a.indexOf("p")&&(c=a+"px");var d=b;0<b.indexOf("pt")?d=ae(b,"px").Db:0>b.indexOf("p")&&(d=b+"px");return c===d}};r.forecolor={O:!0,za:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&
!Ud(a)&&"transparent"!=a.toLowerCase())return!1;f("forecolor",a);wb("foreColorChanged",{color:a});return!0},Qe:!0,Aa:"color",xb:function(a,b){return Td(a)===Td(b)}};r.backcolor={O:!0,za:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!Ud(a)&&"transparent"!=a.toLowerCase())return!1;f("backcolor",a);return!0},Ta:function(){return 2<=p.pa(g.C(),function(a){return k.K(a)&&3===a.nodeType}).map(function(a){return p.P(a,"backcolor")}).filter(function(a,
b,c){return-1==c.slice(0,b).indexOf(a)}).length},Qe:!0,Aa:"backgroundColor",xb:function(a,b){return Td(a)===Td(b)}};r.highlight={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("highlight"):+a;f("highlight",a?"rgb(255, 250, 165)":null);return!0},ya:["rgb(255, 250, 165)","rgb(255, 204, 102)","rgb(246, 238, 150)"],Aa:"backgroundColor",xb:function(a,b){return Td(a)===Td(b)}};var n="abbr acronym b bdi bdo big blink cite code dfn em font i ins kbd mark nobr q s samp small span strike strong sub sup tt u var".split(" ");
r.removeformat={O:!0,za:!0,action:function(){function a(b){return k.K(b)&&-1<n.indexOf(K(b))}p.pa(g.C(),a).forEach(function(a){for(;a.hasChildNodes();)g.M(a.firstChild,a.parentNode,J(a));a.parentNode.removeChild(a)});if(k.K(g.C().startContainer)&&3==g.C().startContainer.nodeType&&0!=g.C().startOffset&&g.C().startOffset!=O(g.C().startContainer))if(g.C().startContainer==g.C().endContainer){var b=g.C().endOffset-g.C().startOffset,c=g.C().startContainer.splitText(g.C().startOffset);g.A(c,0,c,b)}else g.ed(g.C().startContainer.splitText(g.C().startOffset),
0);k.K(g.C().endContainer)&&3==g.C().endContainer.nodeType&&0!=g.C().endOffset&&g.C().endOffset!=O(g.C().endContainer)&&(c=[g.C().startContainer,g.C().startOffset],b=[g.C().endContainer,g.C().endOffset],g.dd(document.documentElement,0),b[0].splitText(b[1]),g.A(c[0],c[1],b[0],b[1]));p.pa(g.C(),k.K).forEach(function(b){for(;a(b.parentNode)&&k.W(b.parentNode,b);)h.ca([b])});"subscript superscript bold tt fontname fontsize forecolor highlight backcolor italic strikethrough underline".split(" ").forEach(function(a){f(a,
null)});return!0}};["superscript","subscript"].forEach(function(a){r[a]={O:!0,za:!0,action:function(b){b=null==b?!l.queryCommandState(a):+b;f(a,null);b&&f(a,a);return!0},Ta:function(){var b=p.pa(g.C(),k.ra);return b.some(function(b){return p.P(b,a)==a})&&b.some(function(b){return p.P(b,a)!=a})||b.some(function(b){return"mixed"==p.P(b,a)})},ya:[a]}});if(!0===Ad.rte.highlightMagic)try{var q=null;c.B.listener(g.root,"mousedown",function(){q=he(g.root)});c.B.listener(document,"mouseup",function(a){var b=
X(g.root);b&&!b.collapsed&&q!==he(g.root)&&(!a.metaKey||a.altKey||a.shiftKey||a.ctrlKey?a.metaKey&&a.altKey&&!a.shiftKey&&!a.ctrlKey&&Z.execCommand("strikethrough"):Z.execCommand("highlight"));q=null})}catch(A){x.error("Exception in <$>:",A.toString)}}};function Sf(){var a=this;a.name="io";a.F=function(){function c(a){a=!1!==a;!1===a&&(k=d.innerHTML);f===a||!0===a&&k===d.innerHTML||(f=a,!1===f&&e.flush())}var b=a.G("context"),e=a.G("undo"),d=b.root,b=!1!==Ad.rte.cryptLegacy,f=!1,g,k=null;a.Rb=function(){return f};a.B.ba(d,"setDirty",function(b){c(!1!==b);g=a.B.timeout(function(){f&&ye("content")},1E3,g)},1);b&&(a.J=function(b){var e=D(b,{html:!1,cleanup:!1,stripNS:!1,trim:!0,titleString:null,withInsertionPoint:!1,hiddenCryptoData:null,wrap:!1,resetChangesState:!1,
value:"",type:""});e.resetChangesState&&c(!1);if("enml"===(e.type||e.value||""))return a.G("enml").fd({crypto:e.hiddenCryptoData});var f=b=null,g=e.withInsertionPoint;Y(d,"beforeGetContent");var k=d,v=he(k);if(e.cleanup||g)k=d.cloneNode(!0);!1!==Ad.rte.cryptLegacy&&U("div.en-crypt-revealed,div.en-crypto-revealed",k).forEach(function(a){var b=a.id;0===b.indexOf("en-revealed-crypto:")?e.hiddenCryptoData&&e.hiddenCryptoData[b]?ac(a,M("embed",{type:"evernote/x-crypto",id:e.hiddenCryptoData[b]})):x.error("Found revealed crypto but not replacement. Key:",
b):x.error("Unsupported revealed crypto element with ID:",b)});e.cleanup&&f&&g&&(f.insertNode(nf()),g=!1);g&&v&&(f=ge(k,v))&&f.insertNode(nf());e.cleanup&&a.G("transform").Pc(k,2);e.stripNS?b=lb(k.outerHTML):b=k.innerHTML;e.trim&&(b=b.trim());b=Xa(b);e.html?b="<html><head><title></title></head><body>"+b+"</body></html>":e.wrap&&(b=pf(k,b));return b});a.D=function(b,c){c&&e.flush();var f=M("div",{},b),f=a.G("transform").mb(f,2,{Cd:!0});kc(f,d);c?e.flush():e.clear();Y(d,"setDirty",!1)};b?a.B.A({name:"content",
action:function(b){b=yb(b);null!=b.value&&(La("rte.content called with non-JSON string.","String used as new content."),b.content=b.value,delete b.value);b=D(b,{scrollToTop:!0,content:"",undoable:!1,type:"html",placeholder:null,resources:null});hb(b.resources)||a.G("resource").hd(b.resources);null!=b.placeholder&&d.setAttribute("data-en-placeholder",b.placeholder);"enml"===b.type?a.G("enml").Hc(b.content||""):a.D(b.content||"",!0===b.undoable);!0===b.scrollToTop&&cd(0,0);Ae();return!0},value:function(b){return a.J(yb(b))},
enabled:y}):a.B.A({name:"content",action:function(b){var c=yb(b);if(null==b)return x.error("To set content at least provide {value:}"),!1;c=D(c,{type:"enml",content:null,placeholder:null,scrollToTop:!0,resources:null,undoable:!1});hb(c.resources)||a.G("resource").hd(c.resources);null!=c.placeholder&&d.setAttribute("data-en-placeholder",c.placeholder);"enml"===c.type?a.G("enml").Hc(c.content||""):a.D(c.content||"",!0===c.undoable);!0===c.scrollToTop&&cd(0,0);Ae();return!0},value:function(b){b=yb(b);
b=D(b,{type:"enml",cryptInfo:null,withInsertionPoint:!1,resetChangesState:!1});var e=a.G("crypt"),f=b.cryptInfo;if(f&&f.length)for(var g=0;g<f.length;g++)e.se(f[g]);Y(d,"beforeGetContent");if((f=e.ff())&&0<f.length)return{success:!1,cryptInfo:f};if("enml"===b.type||"enex"===b.type)return e=a.G("enml").fd({}),"enex"===b.type&&(f=Z.queryCommandValue("title.content"),e='<?xml version="1.0" encoding="UTF-8"?>\r\n<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">\r\n<en-export application="Evernote" version="Common Editor Build '+
window.CE_VERSION_INFO.lastBuildNumber+'">\r\n<note><title>'+f+'</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">'+e+"]]\x3e</note></content>"),b.resetChangesState&&c(!1),{success:null!=e,value:e,type:b.type};f=he(d);g=d.cloneNode(!0);f&&b.withInsertionPoint&&(e=ge(g,f))&&e.insertNode(nf());a.G("transform").Pc(g,2);e="plain"===b.type?nc(g):hc()?lb(g.outerHTML):g.innerHTML;null!=e&&(e=e.trim(),e=Xa(e),"plain"!==
b.type&&(e=pf(g,e)),b.resetChangesState&&c(!1));return{success:null!=e,value:e,selectionPath:f,type:b.type?b.type:"html"}},enabled:y});a.B.A({name:"changes",action:function(a){c(xb(a));return!0},state:function(){return f},enabled:y,Lb:!0})}};function Tf(){var a=this;a.name="link";a.F=function(){function c(b){if(!b||!a.G("edit").V({Jc:!1}))return!1;var c=d.C();if(!f.K(d.C().startContainer)&&!f.Ea(d.C().startContainer))return!0;f.I(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);d.A(b.parentNode,1+J(b));return!0}function b(){if(!d.C()||!d.C().startContainer)return null;var a=window.getSelection().toString();
return kb(a)?a:null}function e(){if(!d.C()||!d.C().startContainer)return null;var a=P(d.C().startContainer,"a[href]",d.root);return a?a.href:null}var d=a.G("context"),f=a.G("query"),g=a.G("format"),k=d.ja;a.If=function(){return U("a[href]",d.root)};k.createlink={O:!0,action:function(a){if(!a)return!1;var b={};"{"===a[0]?b=D(a,{url:null,title:null}):(b.url=a,b.title=a);b.url=lf(b.url);if(d.C().collapsed)return a=M("a",{href:lf(b.url)}),a.textContent=b.title,c(a);g.pa(d.C()).forEach(function(a){f.bb(a).forEach(function(a){f.K(a)&&
R(a,"a")&&a.hasAttribute("href")&&a.setAttribute("href",b.url)})});g.nd("createlink",b.url);return!0},value:function(){return e()||b()||""},state:function(){return!!e()||!!b()}};k.unlink={O:!0,action:function(){var a,b=d.C(),c=[];for(a=b.startContainer;a;a=a.parentNode)R(a,"a")&&a.hasAttribute("href")&&c.unshift(a);for(a=b.startContainer;a!=f.sa(b.endContainer);a=f.nextNode(a))R(a,"a")&&a.hasAttribute("href")&&(f.Nc(a,b)||sc(b.endContainer,a)||a==b.endContainer)&&c.push(a);for(a=0;a<c.length;a++)g.Dd(c[a],
"unlink");return!0},value:function(){return e()||""},state:function(){return!!e()}};a.Ba=function(a){W("*[href]",a).forEach(function(a){var b=a.getAttribute("href"),c=lf(b);b!==c&&(x.info("Sanitized link:",c),a.setAttribute("href",c))});W("*[src]",a).forEach(function(a){var b=a.getAttribute("src"),c=lf(b);b!==c&&a.setAttribute("src",c)})};a.Ia=function(){}}};function Uf(){var a=this;a.name="misc";a.F=function(){var c=a.G("context"),b=a.G("normalize"),e=c.ja;e.normalize={Ab:!0,action:function(a){if(!a||"all"===a)return b.bc(),!0;if(!c.C())return x.warn("Command normalize called without selection. Value:",a),!1;if("start"===a)return b.ub(),!0;if("end"===a)return b.me(),!0;if("selection"===a)return b.Tb(),!0;if("edges"===a)return b.Pd(),!0;x.warn("Command normalize called with unknown value:",a);return!1},enabled:y};e.zoomscale={Ab:!0,action:function(a){var b=
parseFloat(a);if(0<b&&10>b){if(a=(a=document.querySelector("#en-note"))?a.parentNode:null)a.style.zoom=b;return!0}x.warn("Command zoomscale called with invalid value:",a);return!1},value:function(){var a=document.querySelector("#en-note");return(a=a?a.parentNode:null)&&void 0!==a.style&&void 0!==a.style.zoom&&""!==a.style.zoom?a.style.zoom:"1.0"},enabled:y}};a.Ba=function(a,b){if(1===b||2==b){var e=a.querySelector('*[title="CommonEditorBuild"]');null!=e&&(e.textContent=ia().toString(),e=a.querySelector('*[title="CommonEditorDate"]'),
null!=e&&(e.textContent=ja().toString()))}}};function Vf(){function a(a){this.Ha=ob(c.name);this.info={title:"Unknown",mime:"application/octet-stream",hash:"",filename:"",filesize:"",downloaded:"",progress:0,url:null,state:"unloaded",thumbnailURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",contextURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",defaultActionURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};this.L=!1;this.M(a);this.aa=
function(a){a.preventDefault()}}var c=this;c.name="resource";var b="img.en-media",b=b+",embed";a.prototype.ca=function(a){if(!this.A)if(1===a)this.A=this.V();else return x.warn("A resource has not been transformed to an original HTML element"),null;return this.A};a.prototype.da=function(){this.I||(this.I=this.W(),this.update());return this.I};a.prototype.V=function(){var a=db({},this.info.attrs||{}),b={type:this.info.mime,hash:this.info.hash};delete a.src;delete a["class"];delete a.id;delete a["en.define.DATA_EN_RESOURCE_REFERENCE"];
db(b,a,!0);return M("en-media",b)};a.prototype.W=function(){var a=this.info.mime,b=-1!==["image/jpeg","image/png","image/gif","image/tiff","image/svg+xml"].indexOf(a),c="application/pdf"===a,g="application/vnd.evernote.ink"===a,k={src:this.info.url,"class":"en-media"},p=db({},this.info.attrs||{});delete p.hash;delete p.type;var h="en-media:"+this.info.mime+":"+this.info.hash;b?k.id=h+":"+(p.width||"none")+":"+(p.height||"none"):(g?(k.type=a,k.border="1"):k.type=c?"evernote/x-pdf":"evernote/x-attachment",
k.id=h);db(k,p,!0);a=M(this.Ac?"img":"embed",k);a.setAttribute("data-en-resource-reference",this.Ha);Pc(a,"height");return a};a.prototype.yb=function(){return this.da()};a.prototype.M=function(a){a&&(B(ab(a)||ab(this.info),"Info param must be dictionary."),this.info=db(this.info,a),this.info.url||(this.info.url="?hash="+this.info.hash),this.info.mime=this.info.mime.toLowerCase(),this.Ac=-1!==this.info.mime.indexOf("image/"))};a.prototype.update=function(a){var b=this.info,c=!(!a||["hash","url","mime",
"width","height"].every(function(c){return!a.hasOwnProperty(c)||b[c]===a[c]}));this.M(a);this.A=null;if(!this.I)return c;this.D&&this.D.setAttribute("src",this.info.thumbnailURL);this.J&&(this.J.textContent=this.info.filename);this.$&&(this.$.textContent="loading"===this.info.state&&this.info.downloaded?this.info.downloaded+" / "+this.info.filesize:this.info.filesize);this.Z&&(this.Z.textContent=this.info.title);this.P&&this.P.setAttribute("src",this.info.contextURL);this.X&&this.X.setAttribute("src",
this.info.defaultActionURL);return c};a.prototype.toJSON=function(){return{hash:this.info.hash,url:this.info.url,mime:this.info.mime,rect:xc(this.yb()),reference:this.Ha,selected:this.L}};c.F=function(e){function d(a){var b=P(a.target,"a[href]");Ce(this.info.url,"resource",{hash:this.info.hash,mime:this.info.mime,reference:this.Ha,anchorHref:b?b.getAttribute("href"):void 0,action:"open"});a.preventDefault()}function f(a){var b={},c;for(c in w){var d=w[c],e=b[d.info[a]];e||(b[d.info[a]]=e=[]);e.push(d)}return b}
function g(a){q||(q=f("url"));return q[a]||[]}function k(a){n||(n=f("hash"));return n[a]||[]}function p(a){var b=I(a)?a.getAttribute("data-en-resource-reference"):a.reference,c=null;b&&(c=w[b]);c||(c=h(a));return c}function h(b){var c,e,f;if(b instanceof HTMLElement){"en-media"===K(b)?(c=b.getAttribute("hash"),e=b.getAttribute("type")):(f=b.getAttribute("id"),B(!!f,"ID for non image resources is mandatory!"),f=f.split(":"),e=f[1],c=f[2]);b.getAttribute("x-evernote-mime");f=v[c]||{};f.hash||(f.hash=
c);!f.mime&&e&&(f.mime=e);e={};if(b&&(b=b.attributes))for(c=b.length;c--;)e[b[c].name.toLowerCase()]=b[c].value;f.attrs=e}else ab(b)&&(f=b);B(f&&f.hash,"Info data or hash inside is missing to create a resource element.");b=new a(f);w[b.Ha]=b;b.aa=d;return b}var l=c.G("context"),m=l.root,r=l.ja,v=e.resources||{},w={},n=null,q=null;c.hd=function(a){q=n=null;if(da(a)){var b=a;a={};for(var c=0;c<b.length;c++){var d=b[c];a[d.id]=d}}B(ab(a),"Expected dict for resourceInfoDefaults",a);db(v,a)};c.Qd=function(a){var c=
window.getSelection();return U(b,a?a:m).map(function(a){var b=p(a);b.L=c&&!c.isCollapsed&&c.containsNode(a,!1);b.node=a;return b})};r.resources={O:!0,Ab:!0,action:function(a){if(a=zb(a)){var b=!1,d=!1,e=function(a){a&&(a=a.yb(),H(a))};a.forEach(function(a){var f;if("update"===a.action||"delete"===a.action)if(b=!0,a.reference){if(f=p(a))"delete"===a.action?(e(f),d=!0):f.update(a)&&(d=!0)}else a.originalURL?"update"===a.action?W("img:not(.en-media)",m).forEach(function(b){if(b.getAttribute("src")===
a.originalURL){var c=h(a);ac(b,c.yb())}}):g(a.originalURL).forEach(function(a){e(a)}):k(a.hash).forEach(function(b){"delete"===a.action?(e(b),d=!0):b.update(a)&&(d=!0)});else if("insert"===a.action){if(l.kb())return!1;l.hasFocus()||Z.execCommand("content.focus");var n=a.beforeRef||a.afterRef,r=null==a.afterRef?0:1;f=null;n&&(n=w[n])&&(f=n.yb());f?l.A(f.parentNode,J(f)+r):l.la();l.wf();r=c.G("paste");f=h(a);f=f.yb();r.insertNode(f);zd(f);b=d=!0}});d&&Y(m,"setDirty");b&&c.B.timeout(function(){c.G("layer").Na()})}return!0},
value:c.Qd,enabled:y};c.Ba=function(a,b){if(1===b)for(var c=a.getElementsByTagName("en-media"),d=c.length-1;0<=d;d--){var e=c[d],f=h(e);B(!!f,"Failed to create resource for",e);ac(e,f.yb())}else W('embed[id^="en-media:"],img[id^="en-media:"]',a).forEach(function(a){var b=h(a);ac(a,b.yb())})};c.Ia=function(a,c){1===c?W(b,a).forEach(function(a){var b=p(a);b&&(a=mc(a,"en-media"),a.removeAttribute("src"),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"),
a.setAttribute("type",b.info.mime),a.setAttribute("hash",b.info.hash))}):1===c?W(b,a).forEach(function(a){var b=p(a).ca(c);b?ac(a,b):H(a)}):W('embed[id^="en-media:"],img[id^="en-media:"],.en-object-placeholder',a).forEach(function(a){a.removeAttribute("class");a.removeAttribute("data-en-resource-reference")})}}};function Wf(){function a(a){r.call(this,a)}function c(a){r.call(this,a)}function b(a){r.call(this,a)}function e(a){r.call(this,a)}function d(a){r.call(this,a)}function f(a){r.call(this,a)}function g(a){r.call(this,a)}function k(a){r.call(this,a)}function p(a){a.He=!0;r.call(this,a)}function h(a){r.call(this,a)}function l(a){r.call(this,a)}function m(a){r.call(this,a)}function r(a){if(!(this instanceof r))return new r(a);this.A=a;this.F()}function v(a){var b=Oc(a.xe,"-evernote-context-name");b&&(T(a.Ke,
"-evernote-context-name",b),a.Ke.textContent=a.H.Zb[b+"-label"]||b)}function w(a,b){a.xe=n(a.xa,"context");a.Ke=n(a.Md,"context");var c=a.xe,d=Oc(c,"-evernote-context-name");G(c,"en-editable-context");var e;$b(c);c.appendChild(e=M("span"));e.textContent=a.H.Zb[d+"-label"]||d;for(var f=[],g=0;g<b.length;g++){var h=b[g],l=M("option",{value:h},[a.H.Zb[h+"-label"]||h]);h===d&&l.setAttribute("selected","selected");f.push(l)}var m=M("select",{"class":"en-editable-select-context",tabindex:"-1"},f);c.insertBefore(m,
null);t.B.listener(m,"change",function(){var b=m.value;T(c,"-evernote-context-name",b);e.textContent=a.H.Zb[b+"-label"]||b;if(a.H.Dc instanceof Object)try{var d=a.H.Dc[a.name];d&&d(a)}catch(f){x.error("Exception on onDidChangeActions (2)",f.toString())}a.H.xd=a.name;N=!0});c.parentElement.style.textDecoration="none"}function n(a,b){for(var c=Ma(a.querySelectorAll("*[style*='x-evernote:']")),d=0;d<c.length;d++){var e=c[d];if(Oc(e,"x-evernote")===b)return e}return null}function q(a){var b=a.node;G(b,
"en-editable");G(b,"en-editable-"+a.type);G(b,("en-"+a.H.uc+"-"+a.name).toLowerCase());b.setAttribute("title",(a.H.Zb[a.name+"-placeholder-title"]||"...")+"\u00a0\u00a0\u00a0");Hc(b,!0);z(a);a.H.Yd&&b.removeAttribute("style");var c=null;t.B.listener(b,"focus",function(){c=a.object.I();t.B.timeout(function(){window.getSelection().selectAllChildren(b)})});t.B.listener(b,"input",function(){N=!0});t.B.listener(b,"blur",function(){pd();z(a);var b=!1;if(a.H.Dc instanceof Object)try{var d=a.H.Dc[a.name];
d&&d(a)&&(b=!0)}catch(e){x.error("Exception on onDidChangeActions (1)",e.toString())}d=a.object.I();if(b||c!==d)a.H.xd=a.name,N=!0});t.B.listener(b,"keydown",function(c){var d=!1;13===c.keyCode?a.He||(b.blur(),d=!0):8===c.keyCode&&(document.execCommand("delete"),d=!0);return d?Id(c):!1})}function A(a,b){var c=nc(a).trim();gb(c)?c="\u00a0":b?(c=c.split("\n"),c=c.map(function(a){return gb(a)?"<div><br/></div>":"<div>"+mb(a)+"</div>"}),c=c.join("")):c=mb(c.replace(/\n/g," "));return c}function z(a){B(!!a,
"We need field info");B(!!a.node,"We need an element to work on");var b=a.node;b.innerHTML=A(b,a.He);gb(b.textContent)?G(b,"en-editable-placeholder"):Ub(b,"en-editable-placeholder");a.Bd=b.innerHTML}var t=this,C=null;B(this instanceof Wf,"Use `new` to instantiate this class");t.name="template";var L=!0,N=!1;r.prototype.F=function(){};r.prototype.I=function(){return this.A.node.innerHTML};r.prototype.Mc=function(a){var b=this.I();this.A.Ec.innerHTML=b;a&&this.A.H.xd===this.A.name&&this.A.Ec.insertBefore(nf(),
null)};ha(m,r);ha(l,r);l.prototype.I=function(){return A(this.A.node)};ha(h,r);h.prototype.F=function(){q(this.A)};h.prototype.I=function(){return A(this.A.node)};ha(p,h);p.prototype.I=function(){try{return A(this.A.node,!0)}catch(a){x.error("getHTML 'PlainTextArea.prototype.getHTML' failed ",a)}return null};ha(k,r);k.prototype.F=function(){this.A.node=n(this.A.xa,"value");this.A.Ec=n(this.A.Md,"value");B(!!this.A.node,"x-evernote:value element missing in phone field");q(this.A);w(this.A,"phone home work mobile main home-fax work-fax other".split(" "))};
k.prototype.I=function(){return A(this.A.node)};k.prototype.Mc=function(a){k.Kc.Mc.call(this,a);v(this.A)};ha(g,r);g.prototype.L=function(a,b){B(b instanceof Object);b.href=a;return M("a",b,[a])};g.prototype.J=function(){var a=this.A.node.textContent;return!a||gb(a)?"":a.trim()};g.prototype.F=function(){function a(){Ub(f,"en-editable-hidden");G(e,"en-editable-hidden");$b(g);var c=b.J();gb(c)?(Ub(e,"en-editable-hidden"),G(f,"en-editable-hidden")):g.appendChild(b.L(c,{tabindex:"-1"}));e.textContent=
c}var b=this;this.A.node=n(this.A.xa,"value");this.A.Ec=n(this.A.Md,"value");B(!!this.A.node,"x-evernote:value element missing in LinkField");var c=this.A.node,d=this.J();Pc(c,"text-decoration");$b(c);var e;c.appendChild(e=M("div"));e.textContent=d;this.A.node=e;q(this.A);var f,g;c.appendChild(f=M("div",{"class":"en-editable-preview"},[g=M("span")]));a();t.B.listener(f,"click",function(){e.focus()});t.B.listener(e,"focus",function(){Ub(e,"en-editable-hidden");G(f,"en-editable-hidden")});t.B.listener(e,
"blur",function(){a()});G(this.A.xa,"en-editable-container")};g.prototype.I=function(){var a=this.A.node.textContent;return gb(a)?"\u00a0":mb(this.L(a,{}))};ha(f,g);f.prototype.F=function(){f.Kc.F.call(this);w(this.A,["email","home","work","other"])};f.prototype.Mc=function(a){f.Kc.Mc.call(this,a);v(this.A)};f.prototype.L=function(a,b){a=a.trim().replace(/^mailto:/,"");B(b instanceof Object);b.href="mailto:"+a;return M("a",b,[a])};ha(d,g);d.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";
a=a.trim().replace(/^\@/,"");return gb(a)?"":a};d.prototype.L=function(a,b){B(b instanceof Object);b.href="http://twitter.com/"+encodeURIComponent(a);return M("a",b,["@"+a])};ha(e,g);ha(b,g);ha(c,g);c.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return gb(a)?"":a};c.prototype.L=function(a,b){B(b instanceof Object);return document.createTextNode("@"+a)};ha(a,g);a.prototype.L=function(a,b){a=a.trim();B(b instanceof Object);b.href="http://maps.google.com/?q="+
encodeURIComponent(a);return M("a",b,[a])};var va={title:l,field:h,textarea:p,phone:k,email:f,twitter:d,linkedin:e,facebook:b,weibo:c,address:a,"profile-image":m},ca=Object.keys(va);t.Y=function(){C===document.body?(t.nb=document.body.parentNode.cloneNode(!0),Ma(t.nb.getElementsByTagName("head")).forEach(function(a){H(a)})):t.nb=C.cloneNode(!0);var a=t.N(C),b=t.N(C===document.body?t.nb.getElementsByTagName("body")[0]:t.nb);t.Ra=[];for(var c=0;c<a.length;c++)try{var d=a[c];d.index=c;d.Ec=b[c].node;
d.H=this.H;d.xa=d.node;d.Md=d.Ec;d.object=new va[d.type](d);t.Ra.push(d)}catch(e){x.error("A field failed during setup",e.toString())}};t.U=function(a){a=D(a,{Zc:null,uc:null,Wc:null,Yd:!1,$d:null,ae:null,Ld:{},Dc:{},Zb:{},xd:null,root:null});t.H=a;C=a.root||document.getElementById("en-note");B(C&&I(C),"Root not valid!");of(C);B(null!==t.H.Zc,"Content Class is required");t.H.uc=t.H.uc||t.H.Zc.replace(/[^\w]+/gi,"-");G(C,"en-template-style-on");G(C,t.H.uc);t.Y();t.B.ba(C,"setDirty",function(a){var b=
!0;!1===a&&(b=!1);N=!!b});null!==t.H.ae&&t.J(t.H.ae);t.Ja=function(a){t.J(a.value)};t.B.I("titlechanged",t.Ja);if(t.H.Ld instanceof Object)for(var b=0;b<t.Ra.length;b++)try{var c=t.Ra[b],d=t.H.Ld[c.name];d&&d(c)}catch(e){x.error("Exception on onDidInitActions (3)",e.toString())}b=this.va();b.F(new cf,{root:C});b.F(new Of);b.F(new Vf);t.qc();b=a.html;a=a.enml;B(!(null!=b&&null!=a),"You can only provide one content type: html or enml");u(b)?t.D(b):u(a)&&B(!1,"ENML currently not supported for Templates")};
t.S=function(){Ub(C,"en-template-style-on");Ub(C,t.H.uc);t.Ra=[]};t.hasFocus=function(){var a=X(C);return a&&(a=rd(a))?P(a,Gc):!1};t.qc=function(){function a(b,c){c=D(yb(b),c,!0);var d=c.value;"html"===c.type&&(d=fc(d,C).textContent);try{document.execCommand("inserttext",!1,d.replace(/\s+/gi," "))}catch(e){}return!0}t.B.Gc({zb:["content","template"]});t.B.A({name:"focus",action:function(){t.focus();return!0},state:function(){return t.hasFocus()},value:function(){if(t.hasFocus())return t.name},enabled:y});
t.B.A({name:"paste",action:function(b){return a(b,{type:"html",mode:"plain",value:""})},enabled:y});t.B.A({name:"pasteplain",action:function(b){La('Please use execCommand("template.paste", { type: "plain", mode: "plain", "value": ... })');return a(b,{type:"plain",mode:"plain",value:""})},enabled:y});t.B.A({name:"copy",enabled:y,value:function(){var a=X(C);if(!a||a.collapsed)return"";var b={},a=a.cloneContents(),c=document.createElement("div");c.appendChild(a);ad(c,function(a){b.plain=nc(a)});return JSON.stringify(b)}});
t.B.A({name:"content",action:function(a){a=yb(a);null!=a.value&&(La("rte.content called with non-JSON string.","String used as new content."),a.content=a.value,delete a.value);a=D(a,{scrollToTop:!0,content:"",type:"html",resources:null});hb(a.resources)||t.G("resource").hd(a.resources);var b=a.content||"";"enml"===a.type?t.va().A("enml").Hc(b):t.D(b);t.Y();!0===a.scrollToTop&&cd(0,0);Ae();return!0},value:function(a){return t.ha(yb(a))},enabled:y});t.B.A({name:"changes",action:function(a){N=!!xb(a);
return!0},state:function(){return N},enabled:y,Lb:!0})};t.focus=function(a){for(a=+a||0;a<this.Ra.length;a++){var b=this.Ra[a];if(!b.Ie){b.node.focus();break}}};t.J=function(a){if(a&&0<a.length&&255>=a.length){for(var b,c=0;c<this.Ra.length;c++)if(!0===this.Ra[c].Ie){b=this.Ra[c];break}b&&b.node.textContent!==a&&(b.node.textContent=a,b.Bd=b.node.innerHTML)}};t.N=function(a){return Ma(a.querySelectorAll("*[style*='-evernote-editable:']")).map(function(a){var b=Oc(a,"-evernote-editable");if(0<=ca.indexOf(b)){var c=
Oc(a,"x-evernote"),d=this.H.$d&&this.H.$d===c;d&&(b="title");return d||null===this.H.Wc||this.H.Wc.some(function(a){return c===a})?{node:a,name:c,type:b,Ie:d}:void 0}x.error("Invalid -evernote-editable field mode!",b)},this).filter(function(a){return a&&a.node})};t.D=function(a){var b=M("div");b.innerHTML=a;kc(b,C)};t.ha=function(a){a=D(a,{html:!1,cleanup:!1,stripNS:!1,trim:!0,withInsertionPoint:!1,titleString:"",hiddenCryptoData:null,resetChangesState:!1,wrap:!1,type:""});x.log("template crypt legacy",
L);a.resetChangesState&&(N=!1);u(a.titleString)&&t.J(a.titleString);for(var b=0;b<this.Ra.length;b++){var c=this.Ra[b];try{c.object.Mc(a.withInsertionPoint)}catch(d){x.error("Unable to extract data from field",d.toString(),c)}}if("enml"===(a.type||a.value||""))return b=t.va().A("enml").fd({crypto:a.hiddenCryptoData,contentElement:t.nb.cloneNode(!0)}),L?b:{success:null!=b,value:b,type:"enml"};if(L)return b="html"===K(this.nb)||a.stripNS?t.nb.outerHTML:t.nb.innerHTML,a.stripNS&&(b=lb(b)),b=b.trim(),
a.html?b="<html><head><title></title></head><body>"+b+"</body></html>":a.wrap&&(b=pf(C,b)),Xa(b);a=t.nb;b=hc()?lb(a.outerHTML):a.innerHTML;null!=b&&(b=b.trim(),b=Xa(b),b=pf(a,b));return{success:null!=b,value:b,type:"html"}};t.F=function(a){var b=a.contentClass,c=a.title,d=a.localization;L=null==a.cryptLegacy?!0:a.cryptLegacy;if("evernote.food.meal.2"===b)t.U({root:a.root||null,Zc:b,Wc:["caption-text","meal-review"],Yd:!0,$d:"title",ae:c});else if("evernote.contact.1"===b){var e=function(a){return(a=
a.node.textContent)?a.replace(/\s+/g," ").trim():null},f=null,g=c;t.U({root:a.root||null,Zc:b,Wc:"contact-title contact-org note-body weibo twitter phone email address display-as".split(" "),Yd:!1,Zb:d||{"display-as-placeholder-title":"Add Name...","contact-title-placeholder-title":"Add Title...","contact-org-placeholder-title":"Add Company...","note-body-placeholder-title":"Add Notes...","linkedin-placeholder-title":"Add LinkedIn URL...","facebook-placeholder-title":"Add Facebook URL...","twitter-placeholder-title":"Add Twitter Name...",
"weibo-placeholder-title":"Add Weibo Name...","phone-placeholder-title":"Add Phone...","email-placeholder-title":"Add Email...","address-placeholder-title":"Add Address...","email-label":"Email","home-label":"Home","work-label":"Work","other-label":"Other","phone-label":"Phone","mobile-label":"Mobile","main-label":"Main","home-fax-label":"Home Fax","work-fax-label":"Work Fax","twitter-label":"Twitter","facebook-label":"Facebook","weibo-label":"Weibo","linkedin-label":"LinkedIn","address-label":"Address"},
Ld:{"display-as":function(a){f=e(a)}},Dc:{"display-as":function(a){g=He.value("title.content");var b=!1;a=e(a);if(f&&a&&g){var c=new RegExp("\\b"+Ra(f)+"\\b","g");if(c=g.replace(c,a))255<c.length&&(c=g),He.action("title.content",c),He.action("title.changes",!0),b=!0,f=a}return b}}})}}};function Xf(){function a(c,d,e){if(!(this instanceof a))return new a(c,d,e);b.call(this,c,d,e)}function c(a,d,e){if(!(this instanceof c))return new c(a,d,e);b.call(this,a,d,e)}function b(a,b,c){"undefined"===typeof c&&(c={});this.ua=c;B(null!=this.ua.Lc,"You have to provide tablePlugin config!");void 0!==c.cssBlockStyle?this.$=c.cssBlockStyle:this.$=this.Ca;this.async=!!c.async;if(!a)a=document.body;else if(a instanceof DocumentFragment||!uc(a))c=M("div"),c.appendChild(a),document.body.appendChild(c),
this.Va=a=c;this.V=a;this.cc=b;this.la()}function e(a,b,c,d){b=b.getAttribute(c);if(null==b){if(null==d)return;b=d}a.setAttribute(c,b)}function d(a){return a?!!P(a,function(a){return a&&a.style?"rgb(255, 250, 165)"===a.style.backgroundColor:!1}):!1}function f(a){return"td"===a||"th"===a}function g(a){a=K(a);return"ul"===a||"ol"===a}function k(a){a=K(a);return"p"===a||"div"===a}var p=this;this.name="simpletext";b.prototype.ka="div";b.prototype.Ca=null;b.prototype.bb=.8;b.prototype.U=150;b.prototype.Fa=
10;b.prototype.pb=2E3;b.prototype.eb="evernote://";b.prototype.cb="rgb(105, 170, 53)";b.prototype.la=function(){var a=this;this.sa=this.Ua=this.aa=this.J=this.L=this.block=null;this.D=M("div");this.pa=this.X=null;this.P=!1;this.Z=[];var b=vc(document.body);this.Gb=b&&b.fontSize?+b.fontSize.replace(/px/gi,"")*this.bb:16;if(this.async){this.ca=this.qa=this.Oa=0;this.da=!1;this.ub=this.Pa=(new Date).getTime();for(var b=document.createNodeIterator(this.V,-1,null,!0),c=0;b.nextNode();)++c;this.Eb=c}this.Hb=
document.createTreeWalker(this.V,-1,{acceptNode:function(b){for(var c=0;c<a.Z.length;c++)if(sc(b,a.Z[c]))return 2;return 1}},!0);this.Na()};b.prototype.Na=function(){var a=this;if(this.Ib)this.S();else{var b;try{for(;(b=this.Hb.nextNode())&&!(3===b.nodeType?this.tb(b):1===b.nodeType&&this.Ma(b),this.async&&(++this.Oa,(new Date).getTime()-this.Pa>this.U)););++this.qa}catch(c){b=null}if(b&&this.async){this.ca=Math.min(1,this.Oa/this.Eb);this.da||(b=((new Date).getTime()-this.ub)/this.ca,b+=(Math.ceil(this.qa/
this.ca)-this.qa)*this.Fa,b>=this.pb&&(this.da=!0));if(this.da&&this.ua.onprogress)this.ua.onprogress(this,this.ca);p.B.timeout(function(){a.Pa=(new Date).getTime();a.Na()},this.Fa)}else{this.Z=null;this.N(this.block);if(this.da&&this.ua.onprogress)this.ua.onprogress(this,1);this.ra()}}};b.prototype.ra=function(){this.cc?kc(this.D,this.cc):this.cc=this.D;this.S();if(this.ua.onready)this.ua.onready(this)};b.prototype.S=function(){this.Va&&document.body.removeChild(this.Va)};b.prototype.Fb=function(a){for(var b,
c=document.createNodeIterator(a,4,null,!0);(b=c.nextNode())&&!(b.textContent=b.textContent.replace(/^ /gi,""),0<b.textContent.length);)rc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"));c=document.createNodeIterator(a,4,null,!0);for(a=[];b=c.nextNode();)a.unshift(b);for(c=0;c<a.length&&!(b=a[c],b.textContent=b.textContent.replace(/\s+$/gi,""),0<b.textContent.length);c++)rc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"))};b.prototype.N=function(a){a&&(this.Fb(a),a.normalize())};
b.prototype.W=function(a){a=M(a?a:this.ka);this.$&&a.setAttribute("style",this.$);return a};b.prototype.Ga=function(){var a=this.W();a.appendChild(M("br"));this.D.appendChild(a);this.P=!1};b.prototype.M=function(a){var b=this.W();null!=a&&(u(a)?b=this.W(a):I(a)&&(b=a));this.D.hasChildNodes&&this.P&&(a=this.D.lastElementChild)&&a.textContent.length&&k(a)&&k(b)&&this.Ga();this.P=!1;this.D.appendChild(b);return b};b.prototype.A=function(){this.N(this.block);this.L=this.block=null};b.prototype.Ka=function(a){var b=
document.createRange();b.selectNodeContents(a);b=b.getBoundingClientRect();this.pa&&b&&!sc(a,this.L)&&Math.abs(b.top-this.pa.bottom)>=this.Gb&&(this.P=!0);b&&(this.pa=b)};b.prototype.rb=function(a){var b=P(a,"li");if(null==b)this.J=null;else{if(rc(a)){if(-1!==a.textContent.search(/^\s*$/i))return;a.textContent.replace(/\s+/gi," ")}if(this.X&&this.J===b)this.block=this.X,Cc(this.X.lastChild)&&Cc(a)||this.block.appendChild(M("br"));else{var c=0;a=null;for(var d=b;d&&d!==this.V;)g(d)&&(++c,a||(a=K(d))),
d=d.parentNode;var c=Math.max(0,c),e=null;for(this.block&&0<this.block.childNodes.length?d=this.block:d=this.D;;){d=d.lastElementChild;if(!d)break;if(g(d)&&(e=d,--c,1>c))break}if(0<c&&e)d=e.lastElementChild,e=this.M(a||"ol"),d.appendChild(e);else if(!e)null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=this.M(a||"ol"),b&&b.parentNode&&F(b.parentNode,"en-todo-list")&&(e.className="en-todo-list");else if(this.P||a&&a!==K(e))null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=this.M(a||
"ol");if(null===this.block&&0<c)for(--c;c--;)d=this.M(a||"ol"),e.appendChild(d),e=d;this.block=this.W("li");b&&F(b,"en-todo-checked")&&(this.block.className="en-todo-checked");e.appendChild(this.block);this.J=b;this.X=this.block}}};b.prototype.sb=function(a){var b=P(a,"table"),c=this.ua.Lc;if(null!=b&&null!=c&&I(b)&&"table"===K(b)){var d=c.Ad(b);-1!==d.rows&&(this.Ua!==b&&(this.Ua=b,this.sa=c.ye(d),this.M(this.sa),this.aa=null),b=c.Fc(a),null!=b.table&&(b=c=this.sa.querySelectorAll("tr")[b.row].querySelectorAll("td")[b.column],
null==c?x.warn("Something crazy happened with table simplify: <$>"):(1===c.childNodes.length&&"div"===K(c.childNodes[0])&&(b=c.childNodes[0],1===b.childNodes.length&&"br"===K(b.childNodes[0])&&$b(b)),this.aa&&"td"===K(this.aa.parentNode)&&this.aa.parentNode===c&&"td"!==K(b)&&rc(a)&&!Cc(a)&&!Cc(a.parentNode)&&(a=this.W(),P(b,"td").appendChild(a),b=a),this.block=this.aa=b)))}else x.warn("Couldn't simplify table. Look into this!")};b.prototype.I=function(a,b,c,d){c=!sc(a,this.L);if(d&&c)return null;
b||(b=a.cloneNode(!1));"br"!==K(a)&&this.Ka(a);c&&(I(this.L)&&(d=K(this.L),f(d)&&(this.P=!0)),this.A());for(c=a;c!==this.V&&(c=c.parentNode);){this.L=c;d=K(c);if("li"===d)break;if(f(d))break;if(zc(c))break}P(a,"table")&&this.sb(a);P(a,"li")&&this.rb(a);a=this.oa(a);this.block||(this.block=this.M());this.block.appendChild(this.wa(b,a));return b};b.prototype.tb=function(a){if(a){var b;if((b=vc(a.parentNode))&&/pre/gi.test(b.whiteSpace)){var c=a.textContent.split(/\n\r|\r\n|\r|\n/gi);if(c&&0<c.length&&
(b=c[0].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 "),a=this.I(a,document.createTextNode(b))))for(var d=1;d<c.length;d++){var e=a.parentNode;e.appendChild(M("br"));b=c[d].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 ");e.appendChild(document.createTextNode(b))}}else b=a.textContent.replace(/[\ \n\r\t]+/gi," "),c=!1,-1!==b.search(/^[\ \t\n]*$/i)&&(c=!0),this.I(a,document.createTextNode(b),!1,c)}else x.warn("Node missing",a)};b.prototype.Ma=function(a){if(a){var b=K(a);if("div"===b&&/^en-revealed-crypto:\d+$/.test(a.id))this.A(),
this.I(a,a.cloneNode(!0),!0),this.A(),this.Z.push(a);else if("embed"===b)b=Ec(a,"type").toLowerCase(),"evernote/x-crypto"!==b&&"evernote/x-todo"!==b&&"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.I(a);else if("script"===b||"style"===b)this.Z.push(a);else if("img"===b&&Q(a,".en-todo"))this.I(a);else if(Q(a,".en-media"))this.I(a);else if("img"===b&&a.src)this.A(),b=M("img"),e(b,a,"src"),e(b,a,"alt",""),e(b,a,"id"),this.I(a,b,!0),this.A();else if("hr"===b)this.A(),b={},"true"===Oc(a,"-evernote-encp-section-break")&&
(b={style:"display:none;-evernote-encp-section-break:true;"}),this.I(a,M("hr",b),!0),this.A();else{if("br"===b)if(this.A(),P(a,"table"))b=this.W(),b.appendChild(M("br")),this.I(a,b,!0);else{this.Ga();return}this.block&&a&&(zc(a)||!tc(this.L,a))&&this.A()}}else x.warn("Node missing",a)};b.prototype.oa=function(a){for(var b={wb:0,$b:0,e:0,ve:0,Fe:0,od:0,Td:0};a||a===this.V;){var c=K(a);"del"===c||"strike"===c||"s"===c?b.Td=1:"mark"===c?b.$b=1:"a"===c&&(c=a.href+"")&&c.length&&(b.wb=c,b.e=0===c.indexOf(this.eb));
if(c=vc(a)){var e=c.backgroundColor.toLowerCase();if("rgb(255, 204, 102)"===e||"rgb(255, 250, 165)"===e||"rgb(246, 238, 150)"===e||d(a))b.$b=1;var e=c.fontWeight.toLowerCase(),f=c.fontStyle.toLowerCase(),c=c.textDecoration.toLowerCase();if("bold"===e||"bolder"===e||"700"===e)b.ve=1;if("italic"===f||"oblique"===f)b.Fe=1;!b.wb&&0<=c.indexOf("underline")&&(b.od=1);0<=c.indexOf("line-through")&&(b.Td=1)}a=a.parentNode}b.wb&&b.od&&delete b.od;return b};b.prototype.wa=function(a,b){var c;b.wb&&(c=M("a"),
c.setAttribute("href",b.wb),b.e&&c.setAttribute("style","color:"+this.cb+";"),c.appendChild(a),a=c);b.ve&&(c=M("b"),c.appendChild(a),a=c);b.Fe&&(c=M("i"),c.appendChild(a),a=c);b.od&&(c=M("u"),c.appendChild(a),a=c);b.Td&&(c=M("s"),c.appendChild(a),a=c);b.$b&&(c=M("span",{style:"-evernote-highlight:true; background-color:rgb(255, 250, 165);"}),c.appendChild(a),a=c);return a};ha(c,b);ha(a,b);a.prototype.ka="div";a.prototype.Ca='font-family: Courier, "Courier New", monospace;';a.prototype.Ea=!1;a.prototype.ob=
"\u00a0 \u00a0 ";a.prototype.mb="- ";a.prototype.la=function(){this.na=[];a.Kc.la.call(this)};a.prototype.ra=function(){this.P=!0;for(var b=0;b<this.na.length;b++)this.block=this.M(),this.block.appendChild(this.na[b]);a.Kc.ra.call(this)};a.prototype.W=function(){var a=M(this.ka);this.$&&a.setAttribute("style",this.$);return a};a.prototype.I=function(a,b,c,d){c=!sc(a,this.L);if(d&&c)return null;b||(b=a.cloneNode(!1));this.Ka(a);c&&(I(this.L)&&(d=K(this.L),f(d)&&(this.P=!0)),this.A());for(c=a;c!==this.V&&
(c=c.parentNode);){this.L=c;d=K(c);if("li"===d)break;if(f(d))break;if(zc(c))break}d=P(a,"li");if(!this.block&&d)if(this.X&&this.J===d)this.block=this.X,this.block.appendChild(M("br"));else{c=0;for(var e=d;e&&e!==this.V;)g(e)&&++c,e=e.parentNode;c=Math.max(0,c);this.block=this.M();e=this.mb;for(P(d,"ul.en-todo-list")&&(e=F(d,"en-todo-checked")?"[x] ":"[ ] ");1<c;)e=this.ob+e,--c;this.block.appendChild(document.createTextNode(e));this.J=d;this.X=this.block}else this.J=null,this.block||(this.block=this.M());
a=this.oa(a);this.block.appendChild(this.wa(b,a));return b};a.prototype.Ma=function(a){var b;b=K(a);F(a,"en-todo")?(b=F(a,"en-todo-checked"),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"embed"===b?(b=Ec(a,"type").toLowerCase(),"evernote/x-todo"===b?(b="true"===(Ec(a,"todo-checked")+"").toLowerCase(),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.na.push(a.cloneNode(!0))):("script"!==b&&"style"!==b||this.Z.push(a),"img"!==b&&("hr"===
b?this.A():"br"===b?this.A():f(b)?(this.A(),this.P=!0):!this.block||!zc(a)&&tc(this.L,a)||this.A()))};a.prototype.oa=function(a){var b={};if(this.Ea)for(;a||a===this.V;)"a"===K(a)&&(b.wb=a.href),a=a.parentNode;return b};a.prototype.wa=function(a,b){if(this.Ea&&b.wb){var c=M("a");c.setAttribute("href",b.wb);c.appendChild(a);a=c}return a};this.F=function(){function b(a,c){var g=d.C(),h,k,v;if(g&&!g.collapsed){e.Pd();k=Cd(g,"td",f);k=k[0]===k[1]&&"td"===K(k[0])?Cd(g,"div",f):Cd(g,"table,ul,ol",f);h=
k[0];var C=k[1];v=C.nextSibling;k=C.parentNode;h===C?d.gd(h):d.A(h,0,C,C.childNodes.length);h=d.C().cloneContents()}if(h){var L=(new a(h,null,c)).cc.childNodes;h=L[0];var C=L[L.length-1],N=g.startContainer,g=g.endContainer;for(v&&rc(v)&&0===v.length&&(v=null);0<L.length;)null!==v?d.insertBefore(L[0],k,v):d.Eb(L[0],k);p.G("edit").V({Jc:!0});g!==k&&g!==f&&g!==N&&d.removeNode(g);N!==f&&N!==k&&d.removeNode(N);g=Zb(C);d.A(Yb(h),0,g,g.length)}else new a(f,f,c),d.A(f,0),d.ta();return!0}var d=p.G("context");
p.G("query");var e=p.G("normalize"),f=d.root,g=d.ja;g.simpletext={O:!0,action:function(a){null!=a&&La("simpletext called with an argument!");return b(c,{Lc:p.G("table")})},enabled:y};g.plaintext={O:!0,action:function(c){var e=null,f=null,f="",e=null;c=yb(c);null!=c.value&&(La("plaintext called with non-JSON string"),c={});c=D(c,{fontStyle:"fixed width"});"fixed width"===c.fontStyle?(e=M("tt",{style:"position: absolute;"}),document.body.appendChild(e),f=vc(e),f="font-family:"+f.fontFamily+"; font-size:"+
f.fontSize+"; font-weight:"+f.fontWeight,H(e)):"none"===c.fontStyle&&d.R("removeformat").action();e={cssBlockStyle:f,Lc:p.G("table")};return b(a,e)},enabled:y}};this.af=function(a){return(new c(a,null,{Lc:p.G("table")})).cc};this.hc=function(b){return(new a(b,null,{Lc:p.G("table"),cssBlockStyle:""})).cc}};function Yf(){this.name="spellcheck";this.root=null;this.F=function(){function a(a,b){var c;null!=a&&null!=b&&3===a.nodeType&&a===b.startContainer&&a===b.endContainer&&!0!==b.collapsed&&(c=a.data.substr(b.startOffset,b.endOffset-b.startOffset),a.replaceData(b.startOffset,c.length,c))}var c=this.G("context"),b=this.G("format");this.root=c.root;this.jb=function(){var e=b.bd(),d,f=X(),g=he(c.root);null!=f&&f.startContainer===f.endContainer&&3===f.startContainer.nodeType&&!1!==f.collapsed&&(f=f.startContainer,
d=window.getSelection(),d.modify("move","backward","word"),d.modify("extend","forward","word"),d=X(),a(f,d),ie(c.root,g),d=window.getSelection(),d.modify("move","forward","word"),d.modify("extend","backward","word"),d=X(),a(f,d),ie(c.root,g));c.la();b.qb(e)};return this};this.S=function(){this.root=this.jb=null}};function Zf(){var a=this;a.name="stats";a.F=function(){var c=a.G("context"),b=a.G("query"),e=c.root;a.getStats=function(c){var f={};c=D(c,{stats:["todo","firstLine","isEmpty","isDirty","link"]});c=c.stats;B(da(c));-1!==c.indexOf("todo")&&(f.todo=a.G("todo").Rd().length);if(-1!==c.indexOf("firstLine"))for(var g;g=qc(g,e);)if(g&&!gb(g.textContent)){f.firstLine=nc(b.ea(g)).substr(0,255).trim();break}-1!==c.indexOf("isEmpty")&&(f.isEmpty=Hd(e));-1!==c.indexOf("isDirty")&&(f.isDirty=a.G("io").Rb());-1!=
c.indexOf("link")&&(f.link=a.G("link").If().length);return f};a.B.A({name:"stats",O:!1,value:function(b){return a.getStats(yb(b))},enabled:y,Ab:!0})}};function $f(){this.name="table";this.F=function(){var a=this,c=a.G("context"),b=a.G("query"),e=a.G("block"),d=c.root,f=c.ja;a.L=function(){var a=c.C();if(!a)return null;var b=P(a.startContainer,"table",d),a=P(a.endContainer,"table",d);return!b||a&&a!==b?null:b};a.D=function(){return a.L()?P(c.C().startContainer,"tr",d):null};a.Sc=function(){return a.L()?P(c.C().startContainer,"td",d):null};a.J=function(){var b;if(null==b&&(b=a.L(),null==b))return[];var c=window.getSelection(),d=[],e=[],f=[];bb(b.querySelectorAll("td"),
function(a){c.containsNode(a,!1)?(e.push(a),f.push(a)):c.containsNode(a,!0)&&(d.push(a),f.push(a))});return f};a.Fc=function(a){var b={table:null,cell:null,row:-1,column:-1},c=P(a,"table"),d=P(a,"tr");a=P(a,"td,th");if(null==c||null==d||null==a)return b;for(var e=-1,f=-1,r=c.querySelectorAll("tr"),v=0;v<r.length;v++)r[v]===d&&(e=v);if(-1===e)return b;d=d.querySelectorAll("td,th");for(v=0;v<d.length;v++)d[v]===a&&(f=v);return-1===f?b:{table:c,cell:a,row:e,column:f}};a.N=function(a){var b=vc(a.querySelector("td")),
c=parseInt(b.borderWidth,10)||1,d=b.borderColor||"black";bb(Ma(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)});a.removeAttribute("border");T(a,"border-style","solid");T(a,"border-width",c+"px");T(a,"border-color",d);T(a,"border-collapse","collapse");bb(a.querySelectorAll("tr"),function(a){bb(Ma(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)})});bb(a.querySelectorAll("td"),function(a){bb(Ma(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)});T(a,"border-style","solid");T(a,"border-width",
c+"px");T(a,"border-color",d)})};a.Qc=function(a){var b=Oc(a,"float"),c=a.getAttribute("align"),d=a.style.marginLeft;a=a.style.marginRight;var e;null!=b?e=b:null!=c?e=c:"auto"===d&&"auto"===a?e="center":"auto"===d?e="right":"auto"===a&&(e="left");null==e&&(e="left");return e};a.Ad=function(a){if(null==a||!I(a)||"table"!==K(a)||null!=a.querySelector("table"))return{rows:-1,columns:-1};a=a.querySelectorAll("tr");return 0>=a.length?{rows:0,columns:0}:{rows:a.length,columns:a[0].querySelectorAll("td,th").length}};
a.ye=function(a){for(var b=+a.columns||2,c=+a.rows||2,d=a.borderColor||"rgb(211,211,211)",e=+a.borderWidth||1,f=M("table",{style:"-evernote-table:true;border-collapse:collapse;width:100%;table-layout:fixed;"}),r=Math.round(1E4/b)/100,v=0;v<c;v++){var w=M("tr");f.appendChild(w);for(var n=0;n<b;n++){var q=M("td",{style:"border-style:solid;border-width:"+e+"px;border-color:"+d+";padding:10px;margin:0px;width:"+r+"%;"},[oc()]);a.cellColor&&(q.style.backgroundColor=a.cellColor);w.appendChild(q)}}return f};
f.inserttable={O:!0,action:function(f){if(!c.C()||e.Vc())return!1;var k={};"{"===f[0]?k=D(f,{columns:2,rows:2,borderColor:"rgb(211,211,211)",borderWidth:1,cellColor:null,alignment:"left"}):(f=f.split(","),k.columns=+f[0].trim(),k.rows=+f[1].trim());c.R("insertparagraph").action();f=k.align||"left";var k=a.ye(k),p=b.ea(c.C().startContainer);p.parentNode.insertBefore(k,p);e.ka(k);c.A(k.querySelector("div"),0);c.R("tablealign").action(f);Y(d,"TABLE_ADDED",{target:k});return!0},state:function(){return!!a.L()},
enabled:function(){return c.hasFocus()&&!e.Vc()&&!e.Fa()}};f.inserttablerow={O:!0,action:function(b){var e=a.L();if(null==e)return!1;b="before"===b.toString().toLowerCase().trim();var f=P(c.C().startContainer,"tr",d),h=P(c.C().endContainer,"tr",d);if(!f&&!h)return!1;f=f.compareDocumentPosition(h)&(b?4:2)?f:h;if(!f)return!1;var h=f.cloneNode(!0),l=[];bb(h.querySelectorAll("td"),function(a){l.push(a);$b(a);a.appendChild(oc())});c.M(h,f.parentNode,J(f)+(b?0:1));Y(d,"TABLE_INSERT_ROW",{target:e});return!0},
state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.inserttablecol={O:!0,action:function(b){var e=a.L();if(!e)return!1;var f=c.C(),h="before"===b.toString().toLowerCase().trim();b=P(f.startContainer,"td",d);var l=P(f.endContainer,"td",d);if(!b&&!l)return!1;if("div"===K(f.endContainer)&&"td"===K(f.endContainer.parentNode)&&0===f.endOffset){var m=a.Fc(f.startContainer),r=a.Fc(f.endContainer),v=a.Ad(e);if(0<v.rows&&m.row===r.row&&m.column+1===r.column||m.row+1===r.row&&
m.column===v.columns-1&&0===r.column)l=b;null==P(f.endContainer,"td")&&(l=b)}else null==l&&(l=b);var f=null,w=b.compareDocumentPosition(l)&(h?4:2)?b:l;if(null==w)return!1;var n=[],q=w.cellIndex;bb(Ma(e.querySelectorAll("td")),function(a){if(a.cellIndex===q&&e===P(w,"table")){var b=a.cloneNode(!0);$b(b);b.appendChild(oc());n.push(b);var d=Oc(a,"width"),d=window.parseFloat(d)||0;0<d&&(T(b,"width",d/2+"%"),T(a,"width",d/2+"%"));c.M(b,a.parentNode,J(a)+(h?0:1))}});Y(d,"TABLE_INSERT_COLUMN",{target:e});
return!0},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.deletetablerow={O:!0,action:function(){var b=a.D();if(!b)return!1;var e=a.L();if(!e)return!1;var f=U("tr",e);if(1===f.length)return c.R("deletetable").action();f.indexOf(b)===f.length-1?(f=U("td",f[f.length-2]).pop(),c.A(f,O(f))):(f=U("td",f[f.indexOf(b)+1]).shift(),c.A(f,0));c.removeNode(b);Y(d,"TABLE_DELETE_ROW",{target:e});return!0},state:function(){return!!a.D()},enabled:function(){return c.hasFocus()&&
!!a.D()}};f.deletetablecol={O:!0,action:function(){var b=a.Sc();if(!b)return!1;var e=b.cellIndex,f=a.L();if(!f)return!1;var h=U("td",f);if(h.every(function(a){return a.cellIndex===e}))return c.R("deletetable").action();var l=h.filter(function(a){return a.cellIndex===e+1});l&&l.length||(l=h.filter(function(a){return a.cellIndex===e-1}));for(var m=U("tr",f),r=0,v=0;v<m.length;v++)for(var w=U("td",m[v]),n=0;n<w.length;n++)w[n]===b&&(r=v);c.A(l[r],0);for(v=h.length-1;0<=v;v--)b=h[v],b.cellIndex===e&&
c.removeNode(b);Y(d,"TABLE_DELETE_COLUMN",{target:f});return!0},state:function(){return!!a.Sc()},enabled:function(){return c.hasFocus()&&!!a.Sc()}};f.deletetable={O:!0,action:function(){var b=a.L();if(!b)return!1;c.A(b.parentNode,J(b),b.parentNode,J(b)+1);a.G("edit").V()&&Y(d,"TABLE_REMOVED",{target:b});return!0},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.tablebordercolor={O:!0,action:function(b){var c=b||"black";b=a.L();if(null==b)return!1;a.N(b);T(b,"border-color",
c);bb(b.querySelectorAll("td"),function(a){T(a,"border-color",c)});return!0},value:function(){var b=a.L();return null==b?"":(b=vc(b.querySelector("td")).borderColor)?""+b:""},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.tableborderwidth={O:!0,action:function(b){var c=parseInt(b,10);if(isNaN(c)||0>c)return x.warn("Invalid value given to tableborderwidth <$>",Na(c)),!1;b=a.L();if(null==b)return!1;a.N(b);T(b,"border-width",c+"px");bb(b.querySelectorAll("td"),function(a){T(a,
"border-width",c+"px")});Y(d,"TABLE_BORDER_WIDTH",{target:b,value:c});return!0},value:function(){var b=a.L();if(null==b)return"";b=vc(b.querySelector("td"));return(b=parseInt(b.borderWidth,10))?""+b:"0"},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.tablealign={O:!0,action:function(b){if("left"!==b&&"right"!==b&&"center"!==b)return x.warn("Invalid value given to tablealign <$>"),!1;var c=a.L();if(null==c)return!1;c.removeAttribute("align");Pc(c,"float");Pc(c,
"margin");Pc(c,"margin-right");Pc(c,"margin-left");"left"===b?T(c,"margin-left","0px"):"right"===b?(T(c,"margin-left","auto"),T(c,"margin-right","0px")):"center"===b&&(T(c,"margin-left","auto"),T(c,"margin-right","auto"));Y(d,"TABLE_ALIGN",{target:c,value:b});return!0},value:function(){var b=a.L();return null==b?"":a.Qc(b)},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};f.tablecellcolor={O:!0,action:function(b){b=b||"transparent";var c=a.J();if(0===c.length)return!1;
bb(c,function(a){Pc(a,"background");Pc(a,"background-image");Pc(a,"background-attachment");Pc(a,"background-position");Pc(a,"background-clip");Pc(a,"background-repeat");T(a,"background-color",b)});return!0},value:function(){var b=a.J();if(0===b.length)return"";b=b[0].style;return b.backgroundColor?(b=Td(b.backgroundColor),null!=b?b:""):""},state:function(){return!!a.L()},enabled:function(){return c.hasFocus()&&!!a.L()}};a.Ba=function(a,b,c){3===b&&("msexcel"===c.source&&W('table[border="0"]',a).forEach(function(a){a.setAttribute("border",
"1");Oc(a,"border")||T(a,"border","1px solid rgb(211,211,211)")}),U("table td:empty",a).forEach(function(a){0===O(a)&&(a.appendChild(M("br")),a.getAttribute(a,"style")||"0"===P(a,"table").getAttribute("cellpadding")&&a.previousElementSibling&&Oc(a.previousElementSibling,"padding")&&T(a,"padding",Oc(a.previousElementSibling,"padding")))}))}}};function ag(){var a=this;this.name="tableselection";this.F=function(){function c(a,b){var c=[],d=[],e=wd(a,"td");if(0<e.length)for(var f=0;f<e.length;f++){var g=e[f];b.containsNode(g,!1)?d.push(g):b.containsNode(g,!0)&&c.push(g)}return{td:d,ld:c}}function b(){for(var a=d.getElementsByClassName("en-selected");0<a.length;)Ub(a[0],"en-selected")}var e=this.G("context"),d=e.root,f=!1,g,k=ld();this.B.ba(d,"selectionChanged",function(){if(X(d)&&!f&&0!==d.getElementsByTagName("table").length){var a=window.getSelection(),
e=X();k=ld(e.startContainer,e.startOffset,e.endContainer,e.endOffset);b();e&&!e.collapsed&&(a=c(e,a),1>=a.ld.length&&0===a.td.length||(bb(d.querySelectorAll("table"),function(a){G(a,"en-selected")}),bb(a.ld,function(a){G(a,"en-selected")}),bb(a.td,function(a){G(a,"en-selected")})))}});this.B.listener(document,"contextmenu",function(d){f=!0;g=a.B.timeout(function(){f=!1},1E3,g);d=d.target;var l=window.getSelection(),m=X();b();td(m,k)||(l=c(m,l),2!==l.ld.length&&1!==l.ld.length||0!==l.td.length||P(m.startContainer,
"td")===P(m.endContainer,"td")||(m=document.createRange(),m.selectNodeContents(d),e.Pa(m),e.ta()));return!0});b();var p=M("style",{type:"text/css"});p.textContent="td.en-selected { background-color: "+Ne()+" !important;}";document.querySelector("head").appendChild(p)}};function bg(){var a=this;this.name="texttransform";this.F=function(){function c(a){null==a&&(a=document.body);b(a);f(a,function(a){var b="";a=a.split(/(\W+)/gi);for(var c=0;c<a.length;c++)var d=a[c],b=0<d.length?b+(d.charAt(0).toLocaleUpperCase()+d.slice(1).toLocaleLowerCase()):b+d;return b})}function b(a){var b=he(a,!0);a.normalize();ie(a,b)}function e(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleLowerCase()})}function d(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleUpperCase()})}
function f(a,b){var c;null==a&&(a=document.body);var d=X();if(d&&!(1>d.toString().length)){rc(d.endContainer)&&0<d.endOffset&&d.endOffset<d.endContainer.textContent.length&&(c=d.endContainer.splitText(d.endOffset),d.setEnd(c,0));rc(d.startContainer)&&0<d.startOffset&&(c=d.startContainer.splitText(d.startOffset),d.setStart(c,0));md(d);for(var e=c=null,f=window.getSelection(),d=document.createTreeWalker(a,4,{acceptNode:function(a){return f.containsNode(a,!1)?1:2}},!1);d.nextNode();)rc(d.currentNode)&&
(d.currentNode.textContent=b(d.currentNode.textContent),c||(c=d.currentNode),e=d.currentNode);d=document.createRange();d.setStartBefore(c);d.setEndAfter(e);md(d)}}var g=a.G("context"),k=g.root,g=g.ja;g.lowercase={O:!0,action:function(){e(k);return!0}};g.uppercase={O:!0,action:function(){d(k);return!0}};g.capitalize={O:!0,action:function(){c(k);return!0}}}};function cg(){var a=this;a.name="todo";var c;a.F=function(){function b(a,b){for(var c=0;c<a.length;c++){var d=a[c];b?G(d,"en-todo-checked"):Ub(d,"en-todo-checked")}}function e(a,b){Vb(a,"en-todo-checked");Y(c,"setDirty",{Cc:!0===b})}function d(a){var b=a.target;if(!g.kb()){var d=U("li.en-todo-over",c);(a=f(a))&&G(b,"en-todo-over");for(var e=0;e<d.length;e++){var h=d[e];a&&h.isEqualNode(b)||Ub(h,"en-todo-over")}}}function f(a){var b=a.target;return R(b,"li")&&F(b.parentNode,"en-todo-list")&&40>a.clientX-
b.getBoundingClientRect().left}var g=a.G("context"),k=a.G("query"),p=a.G("block"),h=a.G("normalize"),l=a.G("undo");c=g.root;var m=g.ja;(function(){var a=U(".en-preload");a&&0<a.length||(a=M("div",{style:"position:absolute; top: 0; left: 0; width: 0; height: 0;","class":"en-preload"}),document.body.appendChild(a))})();a.de=function(a){var b=null;Xc(a,function(a){return Q(a,".en-todo")?(b=a,!0):$c(a)||k.T(a)?!1:!0},a);return b};a.lf=function(b){if(!Q(b,"div,li"))return!1;var c=a.de(b);if(!c)return!1;
for(var d=b.childNodes.length-1;0<=d;d--){var e=b.childNodes[d];if(e!==c&&(rc(e)&&!$c(e)||!k.qa(e)))return!1}return!0};a.ac=function(){return M("img",{"class":"en-todo",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})};a.Hd=function(b){var c=a.ac(),d=k.zc(b,0);g.M(c,I(d[0])?d[0]:d[0].parentNode,0);p.Va(b);return c};a.Rd=function(){return U(".en-todo",c)};a.D=function(a){if(a&&a.parentNode){var b=a.parentNode,c=a.nextSibling;if(c&&rc(c)){var d=c.textContent,e=
d.trimLeft(d);d!==e&&(0==e.length?g.removeNode(c):c.textContent=e)}g.removeNode(a);p.Va(b)}};a.B.listener(c,"mousemove",d);a.B.listener(c,"mouseout",d);a.B.listener(c,"blur",d);var r=!1;a.B.ba(c,"selectionChanged",function(a){!0===r&&(a.lb?md(a.lb):pd(),r=!1)});a.B.listener(c,"click",function(a){r=!1;if((Q(a.target,".en-todo")||f(a))&&!g.kb())return l.flush(),e(a.target,!0),r=!0,Id(a)});m.controltodos={O:!0,action:function(d){var e=g.C();if(!e||!Gc(c))return!1;var f=a.Rd();e.collapsed||(f=wd(e,".en-todo"),
e=rd(e),(e=Yc(e,".en-todo",k.ea(e)||c))&&f.push(e));if(d&&"toggle"!=d)if("on"==d)b(f,!0);else if("off"==d)b(f,!1);else return!1;else for(d=f,f=0;f<d.length;f++)Vb(d[f],"en-todo-checked");return!0}};m.inserttodo={O:!0,action:function(b){var d=g.C();if(!d||!Gc(c))return!1;if("toggle"===b){b=rd(d);var f=P(b,"ul.en-todo-list > li",c);if(f||(f=Yc(b,".en-todo",k.ea(b)||c)))return e(f,!1),!0}if(d.collapsed)return b=a.ac(),a.G("paste").insertNode(b),p.Va(b),!0;h.Tb();if((b=a.Rd().filter(function(a){return d.intersectsNode(a)}).reverse())&&
0<b.length)return b.map(function(b){a.D(b)}),!0;(b=U("div,li",c).filter(function(a){return d.intersectsNode(a)}))&&0<b.length&&(b.map(function(b){gb(b.textContent)||a.Hd(b)}),d=g.C(),g.A(b[0],0,d.endContainer,d.endOffset));return!0},enabled:function(){return g.hasFocus()&&!p.Fa()}}};a.S=function(){U(".en-preload").forEach(H)};a.Ba=function(b,c){1===c?W("en-todo",b).forEach(function(b){var c=a.ac();Vb(c,"en-todo-checked","true"==b.getAttribute("checked"));ac(b,c)}):(W("input[type=checkbox]",b).forEach(function(b){var c=
a.ac();Vb(c,"en-todo-checked",b.checked);ac(b,c)}),W('span[data-en-input-type="checkbox"]',b).forEach(function(b){var c=a.ac(),e=b.getAttribute("data-en-checked");Vb(c,"en-todo-checked","true"===e);ac(b,c)}),W('embed[type="evernote/x-todo"]',b).forEach(function(a){var c=gc(b,"img",{"class":"en-todo"});"true"===a.getAttribute("todo-checked")&&G(c,"en-todo-checked");ac(a,c)}))};a.Ia=function(a,c){if(1===c)W(".en-todo",a).forEach(function(c){var d=gc(a,"en-todo");F(c,"en-todo-checked")&&d.setAttribute("checked",
"true");ac(c,d)});else{var d;3===c&&(d=function(c){var d=gc(a,"span",{"data-en-input-type":"checkbox"});F(c,"en-todo-checked")?(d.setAttribute("data-en-checked","true"),d.appendChild(document.createTextNode("\u2713"))):d.appendChild(document.createTextNode("\u2610"));ac(c,d)});d&&W(".en-todo",a).forEach(function(a){d(a)})}}};function dg(){var a=this;a.name="transform";a.mb=function(c,b,e){function d(c){var d=[];3===b&&(W("meta",c).forEach(function(a){d.push(a)}),W("title,script,style,link,base,meta",c).forEach(H));var e=f.info||{};0<d.length&&(e.meta=d);mf(c);1!==b&&ff(c);hf(c);jf(c);gf(c);a.Bb.L().forEach(function(d){d!==a&&d.Ba&&d.Ba(c,b,e)});return c}B(0<b,"You need to set mode for export!");var f=D(e,{info:{},Cd:3===b});if(c instanceof DocumentFragment)return f.Cd=!0,d(c);uc(c)?(e=c.ownerDocument.createRange(),e.selectNodeContents(c),
e=e.extractContents(),d(e),c.appendChild(e)):d(c);f.Cd||of(c);return c};a.Pc=function(c,b,e){B(0<b,"You need to set mode for export!");var d=D(e,{info:{}});Hc(c,!1);a.Bb.L().forEach(function(e){e!==a&&e.Ia&&e.Ia(c,b,d.info||{})});1===b&&ff(c)}};function eg(){var a=this;a.name="clearly";a.H=null;a.F=function(c){a.H=D(c);G(a.H.root,"en-clearly-style-on")};a.S=function(){Ub(a.H.root,"en-clearly-style-on")}};function fg(){this.name="hello";this.Ba=function(a,c){var b=a.querySelectorAll("span[style='x-evernote:hello-encounter']");if(!(null==b||1!==c&&2!==c||0>=b.length)){b&&1<b.length&&x.warn("Hello note with multiple span style markers?");for(var b=b[0],e=0;e<b.childNodes.length;e++){var d=b.childNodes[e],f=Oc(d,"margin-top");f&&0>parseInt(f,10)&&T(d,"margin-top","0px")}}}};var gg=function(){function a(a,c){this.Qa=a;this.ua=c;this.kf=c.baseURL+"/";this.$c={};this.Ic={}}var c=0;a.prototype.registerStringTable=function(a,c){B(!this.Ic[a],"Table is already defined",this.Qa,a);this.Ic[a]=c};a.prototype.installCSS=function(a){var e="module-css-"+c++;a=M("link",{rel:"stylesheet",type:"text/css",id:e,href:a});document.querySelector("head").appendChild(a);this.$c[e]=a;return e};a.prototype.removeCSS=function(a){B(this.$c[a],"Could not find CSS with ID: "+a)};a.prototype.$f=
function(a,c){B(u(a),"tableName must be a string.");B(fa(c),"stringMap must be a string map object.");B(!this.Ic[a],"This table already exists.");this.Ic[a]=c};a.prototype.localizedStringFromTable=function(a,c){B(a&&a.length&&c&&c.length,"Table and key must be valid strings.");return this.Ic[a][c]};a.prototype.localizedString=function(a,c){return this.localizedStringFromTable("default",a,c)};a.prototype.S=function(){Object.keys(this.$c).forEach(function(a){this.removeCSS(a)},this);this.$c={}};a.prototype.bundleURL=
function(a){return this.kf+a};return a}();var hg=function(){function a(a){this.Qa=a}a.prototype.ud=function(){return"Module '"+this.Qa+"': "};a.prototype.logAs=function(a,b){var e=Array.prototype.slice.call(arguments,1);null==this[a]?(this.error("Unrecognized log level: <"+a+">. Logging as error."),this.error.apply(this,e)):this[a].apply(this,e)};a.prototype.info=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this.ud());x.info.apply(null,a)};a.prototype.warn=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.ud());
x.warn.apply(null,b)};a.prototype.error=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.ud());x.error.apply(null,b)};return a}();function ig(){this.draggingPasteData=this.draggingElement=this.draggingLocationY=this.draggingLocationX=this.draggingType=this.draggingState=null}
var jg=function(){function a(a,b){this.L=b;this.I=[];this.A=[];this.B=a}a.prototype.$e=3;a.prototype.W=function(a){for(var b=0;b<this.I.length;b++){var e=this.I[b];if(e.element===a)return e}return null};a.prototype.Nf=function(a,b,e,d,f){function g(a,c){var f=new ig;f.draggingType=e;f.draggingLocationX=a;f.draggingLocationY=c;f.draggingElement=b;f.draggingPasteData=d;return f}if(this.W(b))B(!1,"The draggable element ",b," already registered.");else{var k=this,p=!1,h=0,l=null,m=!1,r=0,v=0,w=[],w=this.B.listener(b,
"mousedown",function(d){var e=d.pageX,n=d.pageY;p=!0;r=e;v=n;h=b.style.zIndex;b.style.zIndex=1E3;d=k.P(e,n);var q=k.M(d),e=g(e,n);e.draggingState=0;f(e);e.draggingState=0;q?(m=!q(e),l=d):k.L(a,e)}),n=this.B.listener(b,"mousemove",function(d){if(p){d.preventDefault();var e=d.pageX;d=d.pageY;var h=k.P(e,d),n=k.M(h),q=k.M(l),w=g(e,d);b.style.webkitTransform="translate("+(e-r)+"px, "+(d-v)+"px)";w.draggingState=1;f(w);m&&l?l=h:h?(l==h?(w.draggingState=1,n(w)):(w.draggingState=2,l?q&&q(w):k.L(a,w),w.draggingState=
0,m=!n(w)),l=h):(l?(q&&(w.draggingState=2,q(w)),w.draggingState=0):w.draggingState=1,k.L(a,w),l=null,m=!1)}}),q=this.B.listener(b,"mouseup",function(d){var e=d.pageX,n=d.pageY;p&&(d=k.P(e,n),d=k.M(d),e=g(e,n),n=!1,e.draggingState=3,n=!m&&d?!d(e):!k.L(a,e),e.draggingState=n?3:2,f(e),b.style.webkitTransform="",b.style.zIndex=h,l=null,p=!1)}),w=[w,n,q];this.I.push({element:b,Qa:a,mf:w})}};a.prototype.ag=function(a){for(var b=0;b<this.I.length;b++){var e=this.I[b];if(e.element===a){var d=this;e.mf.forEach(function(a){d.B.remove(a)});
this.I.splice(b,1);break}}};a.prototype.X=function(a,b,e){a=a.getBoundingClientRect();return b<a.left+document.body.scrollLeft||b>a.right+document.body.scrollLeft||e<a.top+document.body.scrollTop||e>a.bottom+document.body.scrollTop?!1:!0};a.prototype.P=function(a,b){for(var e=0;e<this.A.length;e++){var d=this.A[e];if(this.X(d.element,a,b))return d.element}return null};a.prototype.V=function(a){if(!a)return null;for(var b=0;b<this.A.length;b++){var e=this.A[b];if(e.element===a||sc(a,e.element))return e}return null};
a.prototype.M=function(a){return(a=this.V(a))?a.Ef:null};a.prototype.Of=function(a,b,e){this.V(b)?B(!1,"The drop handler for ",b," already registered."):this.A.push({element:b,Qa:a,Ef:e})};a.prototype.bg=function(a){for(var b=0;b<this.A.length;b++)if(this.A[b].element===a){this.A.splice(b,1);break}};return a}(),kg=function(){function a(a,b){this.Qa=a;this.J=b}a.prototype.DRAGGING_SOURCE_STATE_STARTED=0;a.prototype.DRAGGING_SOURCE_STATE_MOVED=1;a.prototype.DRAGGING_SOURCE_STATE_ENDED=2;a.prototype.DRAGGING_SOURCE_STATE_CANCELED=
3;a.prototype.DRAGGING_DESTINATION_STATE_ENTERED=0;a.prototype.DRAGGING_DESTINATION_STATE_MOVED=1;a.prototype.DRAGGING_DESTINATION_STATE_EXITED=2;a.prototype.DRAGGING_DESTINATION_STATE_RELEASED=3;a.prototype.makeElementDraggable=function(a,b,e,d){this.J.Nf(this.Qa,a,b,e,d)};a.prototype.removeDraggableElement=function(a){this.J.ag(a)};a.prototype.makeElementDropContainer=function(a,b){this.J.Of(this.Qa,a,b)};a.prototype.removeDropContainer=function(a){this.J.bg(a)};return a}();var lg=function(){function a(a){this.fb=a}a.prototype.getContentClass=function(a){return a.getAttribute("en-content-class")};a.prototype.setContentClass=function(a,b){a.setAttribute("en-content-class",b)};a.prototype.removeContentClass=function(a){a.removeAttribute("en-content-class")};a.prototype.getAppDataValue=function(a,b){return Qc(a,b)};a.prototype.setAppDataValue=function(a,b,e){Sc(a,b,e)};a.prototype.removeAppDataValue=function(a,b){Rc(a,b)};return a}();var mg=function(){function a(a){this.I=a;this.B=new Re}a.prototype.F=function(){this.B.F({name:this.I+"-gesture-recognizer"})};a.prototype.S=function(){this.B.S()};a.prototype.A=function(a,b,e){return this.B.listener(a,"tap",b,e)};a.prototype.tapGestureRecognizer=function(a,b,e){return this.A(a,b,e?{touchCount:e}:e)};a.prototype.pinchGestureRecognizer=function(a,b){return this.B.listener(a,"pinch",b,null)};a.prototype.rotationGestureRecognizer=function(a,b){return this.B.listener(a,"rotate",b,null)};
a.prototype.swipeGestureRecognizer=function(a,b){return this.B.listener(a,"swipe",b,null)};a.prototype.panGestureRecognizer=function(a,b){return this.B.listener(a,"pan",b,null)};a.prototype.longPressGestureRecognizer=function(a,b,e){return this.B.listener(a,"press",b,e?{time:e}:null)};a.prototype.removeGestureRecognizerReference=function(a){this.B.remove(a)};return a}();var ng=function(){function a(a){this.fb=a;this.dc=null}a.prototype.F=function(){lc(this.fb,document.createElement("div")).classList.add("en-module-content")};a.prototype.Gd=function(a,b){this.dc&&this.fb.removeChild(this.dc);Ub(this.fb,"en-module-unknown");G(this.fb,a);var e=M("div",{});ic(e,b);this.dc=M("div",{"class":"en-module-overlay"});this.dc.appendChild(e);this.fb.appendChild(this.dc)};a.prototype.Xd=function(){this.Gd("en-module-broken","Broken module")};a.prototype.jg=function(){var a=this.fb.getAttribute("data-en-module-title"),
a=a&&a.length?a:"Unknown module";this.Gd("en-module-unknown",a)};a.prototype.Pe=function(a){B(u(a),"Module title is required");this.Gd("en-module-loading",'Loading "'+a+'"')};a.Ue=function(a){var b=a.querySelector(".en-module-content");B(b,"Element is not wrapped");Ma(a.childNodes).forEach(function(e){e!=b&&a.removeChild(e)});bc(b)};a.Ce=function(a){a.style.cssText="border: 2px solid #CCC; background-color: #EEE; padding: 10px; color: #888;"};a.prototype.S=function(){var c=this.fb;Ub(c,"en-module-loading");
a.Ue(c);this.dc=this.fb=null;return c};return a}();var og=function(){function a(a,d,f){B(I(d),"Container required",d);this.I=d.cloneNode(!0);this.A=!1;this.module=null;this.element=d;this.elementID=f;this.scriptHandler=a;this.node=new b(this);this.gestureRecognizer=new c(f)}var c=mg,b=lg;a.prototype.F=function(){var a=this.scriptHandler.script;B(a,"ScriptHandler has no script?");B(!this.module,"Already setup?");this.gestureRecognizer.F();var b=null;try{b=a.createModule(this)}catch(c){x.error("Could not create new module.",this.scriptHandler.moduleName,
c),pb(c)}if(!b)return!1;["setupFromStore","setupWithInsertionData","saveENML"].forEach(function(a){B(ea(b[a]),"Expected a module method",a,b.moduleName,b)});this.module=b;return!0};a.prototype.fg=function(){var a=!1;if(!this.F())return a;try{a=this.module.setupFromStore()}catch(b){x.error("Could not setup module",this.scriptHandler.moduleName,b),pb(b)}return a};a.prototype.ig=function(a){var b=!1;if(!this.F())return b;try{b=this.module.setupWithInsertionData(a)}catch(c){x.error("Could not setup module",
this.scriptHandler.moduleName,c),pb(c)}return b};a.prototype.S=function(){this.gestureRecognizer.S();var a=this.module;if(a){if(a.cleanup)try{a.cleanup()}catch(b){x.error("Could not cleanup module.",this.scriptHandler.moduleName,b),pb(b)}var c=this.scriptHandler.script;if(c.removedModule)try{c.removedModule(a)}catch(b){x.error("Could not remove module.",b),pb(b)}this.module=null}};a.prototype.dg=function(){function a(){for(var e=b.I.cloneNode(!0);e.firstChild;)c.appendChild(e.firstChild)}var b=this,
c=document.createElement("div");if(this.A){var g=document.createDocumentFragment();try{b.module.saveENML(g,!0),c.appendChild(g)}catch(k){x.error("Could not serialize module. Using original content.",k),a(),pb(k)}}else a();g=this.node;g.setAppDataValue(c,"en-module-name",this.scriptHandler.moduleName);g.setAppDataValue(c,"en-module-title",this.scriptHandler.zd());g.setContentClass(c,"evernote.module");return c};a.prototype.removeModule=function(){this.element.parentElement.removeChild(this.element);
this.ad()};a.prototype.ad=function(){this.scriptHandler.cg(this);this.S()};a.prototype.markAsDirty=function(){this.A=!0};a.prototype.purgeContent=function(){for(var a=this.element;a.firstChild;)a.removeChild(a.firstChild)};a.prototype.genericPreview=function(){var a=document.createElement("div");this.node.setContentClass(a,"en-module-generic-preview");a.appendChild(document.createTextNode('Unknown module : "'+this.scriptHandler.zd()+'"'));a.style.cssText="text-align: center; padding: 20px";return a};
return a}();var pg=function(){function a(a,b){this.Qa=a;this.U=b;this.A={};b.Yf(this)}a.prototype.S=function(){this.U.mg(this)};a.prototype.sendMessage=function(a,b,e){this.U.sendMessage(this,a,b,e)};a.prototype.registerMessageHandler=function(a,b){this.A[a]=b};a.prototype.Df=function(a,b,e){var d=this.A[a];if(!d)return x.log("Unexpected message received",a),!1;1==d.length?(d(b),e({})):d(b,e);return!0};return a}();var qg=function(){function a(){this.A={};this.I={};this.L={}}var c=0;a.prototype.Yf=function(a){var c=a.Qa.toLowerCase();B(!this.A[c],c,"App channel is already registered");this.A[c]=a};a.prototype.mg=function(a){a=a.Qa.toLowerCase();B(!!this.A[a],a,"App channel is not registered");delete this.A[a]};a.prototype.sendMessage=function(a,e,d,f){a=a.Qa.toLowerCase();x.log("Module",a,"sendMessage",e,d);e={type:"message",moduleName:a,messageName:e,data:d?d:{}};f&&(d=""+c++,this.I[a+":"+d]=f?f:null,e.messageID=
d);we("modulePublished",e)};a.prototype.Cf=function(a){x.log("Module receives",a);B(ab(a),"Bad message payload",a);switch(a.type){case "message":this.M(a);break;case "reply":this.P(a)}};a.prototype.M=function(a){var c=this,d=a.moduleName,f=a.messageName,g=a.messageID,k=a.data;B(d&&f&&k,"Bad native message payload",a);if(a=this.A[d.toLowerCase()]){var p=function(){};if(g){var h=d+":"+g;this.L[h]=d;p=function(a){a={type:"reply",moduleName:d,messageName:f,messageID:g,data:a?a:{}};delete c.L[h];we("modulePublished",
a)}}a.Df(f,k,p)||p({})}else x.log("Module call failed - not loaded",d)};a.prototype.P=function(a){var c=a.moduleName,d=a.messageName,f=a.messageID,g=a.data;B(c&&d&&f&&g,"Bad native response payload",a);c=c+":"+f;(d=this.I[c])?(d(a.data),delete this.I[c]):x.log("Unexpected response received",a)};return a}();var rg=function(){function a(a,g,k,p,h){B(u(h.baseURL),"baseURL is required");B(da(h.urls),"Array of urls is required");B(u(h.title),"Module title is required");this.P=a;this.ua=h;this.A={};this.script=this.L=this.I=null;this.moduleName=g;this.bundle=new b(g,h);this.console=new e(g);this.dragAndDrop=new d(g,p);this.nativeChannel=new c(g,k)}a.te=0;a.qd=1;a.Oc=2;a.pd=3;var c=pg,b=gg,e=hg,d=kg;a.prototype.Mf=function(){function a(c){e.forEach(function(a){a=M("script",{type:"text/javascript",src:d+"/"+
a});a["data-en-module-name"]=b.moduleName;a.scriptHandler=b;c.appendChild(a)})}var b=this,c=this.ua.mode,d=this.ua.baseURL,e=this.ua.urls;B(da(e),"No script URLs provided");B(!this.I,"Scripts are already loaded?");this.I=e;switch(c){default:case "iframe":var c=M("script",{type:"text/javascript"},["var scriptHandler = frameElement.scriptHandler;"]),l=M("iframe",{style:"position:absolute;width:1px;height:1px;top:-999px;left:-999px;display:none;"});l["data-en-module-name"]=b.moduleName;l.scriptHandler=
b;document.body.appendChild(l);l.contentDocument.head.appendChild(c);a(l.contentDocument.head);break;case "script":a(document.head)}};a.prototype.registerModuleScript=function(b){B(this.state()==a.qd,"Modules can only be registered once!",this.moduleName,b);B(this.moduleName===b.moduleName,"Module names do not match");B(!this.script,"Module is already setup?");["createModule","setup"].forEach(function(a){B(ea(b[a]),'Expected a module method "'+a+'"',b.moduleName,b)});this.script=b;window.TEST&&(B(!!window.testHook_registerModuleScript,
"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleScript(this,b));try{b.setup(this)}catch(c){x.error("Could not setup script",this.moduleName,c),this.L=c,pb(c)}this.P.jf(this.moduleName)};a.prototype.registerModuleLocalization=function(a,b,c){B(this.moduleName===a,"Module names do not match");window.TEST&&(B(!!window.testHook_registerModuleLocalization,"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleLocalization(a,b,c));
this.bundle.$f(b,c)};a.prototype.state=function(){return this.L?a.pd:this.script?a.Oc:this.I?a.qd:a.te};a.prototype.isReady=function(){return this.state()==a.Oc};a.prototype.S=function(){try{this.script.cleanup()}catch(a){x.error("Could not cleanup script",this.moduleName,a),pb(a)}this.bundle.S();this.I=this.script=null};a.prototype.Ff=function(a){return!!this.A[a]};a.prototype.eg=function(a){var b=this.A[a];return b?b.dg():(x.error("Could not serialize module. (Module could not be loaded?)",this.moduleName,
a),null)};a.prototype.hg=function(a,b){var c=!1,d=new og(this,a,b);d&&(this.A[b]=d,(c=d.fg())||d.ad());return c};a.prototype.gg=function(a,b,c){var d=!1;if(a=new og(this,a,b))this.A[b]=a,(d=a.ig(c))||a.ad();return d};a.prototype.M=function(){var a=this;return Ma(document.getElementsByClassName("en-module")).filter(function(b){return b.getAttribute("data-en-module-name")==a.moduleName})};a.prototype.De=function(){var a=this.ua.localizedTitle;return a&&(B(u(a),"Title must be a string"),a.length)?a:
this.zd()};a.prototype.zd=function(){return this.ua.title};a.prototype.allModuleIDs=function(){return this.M().map(function(a){return a.getAttribute("id")})};a.prototype.moduleHandlerWithID=function(a){a=this.A[a];return a?a:(x.warn("Requested module handler doesn't exist. Probably it is not loaded yet."),null)};a.prototype.cg=function(a){delete this.A[a.elementID]};a.prototype.kg=function(a){var b=this.script.supportDropIntoEditorForType;return b?b(a):!1};return a}();function sg(){var a=this;a.name="module";a.F=function(c){function b(b,c,d){var e=ob("en-module"),g=M("div",{id:e,"class":"en-module",contentEditable:"false"});g.setAttribute("data-en-module-name",b);g.classList.add("en-module-newly-inserted");c&&(a.Y[e]=c);d.parentNode.insertBefore(g,d);k.ka(g);f.gd(g)}function e(b){B(b.ownerDocument==window.document,"Trying to setup loader for module of element that is not in DOM");var c=b.id;B(!a.N[c],"Loader is already setup?");b=new ng(b);b.F();return a.N[c]=
b}function d(b,c){var d=c.id;B(a.N[d].fb==c,"Bad loader configuration");if(b.state()==rg.pd)a.N[d].Xd();else{B(b.state()==rg.Oc,"Unexpected script state");var f=a.N[d];B(f,"This module did not go through the loader phase?");f=f.S();delete a.N[d];if(f.classList.contains("en-module-newly-inserted")){var g=a.Y[d];delete a.Y[d];if(b.gg(f,d,g)){Ub(f,"en-module-newly-inserted");return}}else if(b.hg(f,d))return;e(f).Xd()}}var f=a.G("context"),g=a.G("query"),k=a.G("block"),p=f.root;c=D(c,{Id:null});a.J=new jg(a.B,
function(c,d){var e=a.D[c];if(!e||!e.kg(d.draggingType))return!1;switch(d.draggingState){case a.J.$e:var e=d.draggingElement.style,f=e.display;e.display="none";var h=document.elementFromPoint(d.draggingLocationX,d.draggingLocationY);e.display=f;if(P(h,".en-module"))return!1;e=g.ea(h);f=document.getElementById("en-note");f===e&&(e=oc(),0>=d.draggingLocationY?f.insertBefore(e,f.children[0]):f.appendChild(e));b(c,{type:d.draggingType,data:d.draggingPasteData},e)}return!0});a.U=new qg;a.D={};a.N={};a.Y=
{};if(ab(c.Id)){var h=c.Id;Object.keys(h).forEach(function(b){var c=h[b];B(!a.D[b],"Script handler is already registered",b);a.D[b]=new rg(a,b,a.U,a.J,c)})}a.B.I("moduleScript",function(b){var c=b.moduleName;B(u(c)&&0<c.length,'Expected "moduleName" for module!',b);c=a.D[c];B(c,"Unexpected script registration",b);c.registerModuleScript(b)});a.B.I("moduleLocalization",function(b){var c=b.moduleName,d=b.tableName,e=b.stringMap;B(u(c),"moduleName must be a string.");var f=a.D[c];B(f,"Localization for unknown module",
b);f.registerModuleLocalization(c,d,e)});a.B.A({name:"module",action:function(a){a=zb(a);if(null==a)return!1;for(var c=0;c<a.length;c++){var d=a[c];if("insert"===d.action){var e=d.moduleName;u(e)?(f.R("insertparagraph").action(),d=g.ea(f.C().startContainer),b(e,null,d)):x.error("No name for insert provided",d)}}return!0},value:function(a){var b=[];a&&(b=U("div.en-module",p).filter(function(b){return b.getAttribute("data-en-module-name")===a}).map(function(a){return a.id}));return{result:b}},enabled:y});
a.B.A({name:"module-channel",value:function(b){a.U.Cf(b);return null},enabled:y});a.jf=function(b){var c=a.D[b];B(c,"Unknown module",b);U("div.en-module",p).forEach(function(a){a.getAttribute("data-en-module-name")==b&&d(c,a)})};a.G("observer").Ud("div.en-module",function(b){var c=b.getAttribute("data-en-module-name");if(b.getAttribute("data-en-module-name")){var f=e(b);if(c=a.D[c])switch(c.state()){case rg.pd:f.Xd();break;case rg.Oc:d(c,b);break;case rg.qd:f.Pe(c.De());break;case rg.te:f.Pe(c.De()),
c.Mf()}else f.jg()}else x.warn("Found module without a name.")},function(b){var c=b.getAttribute("data-en-module-name"),d=a.D[c];d?(b=d.tg(b.id))?b.ad():x.error("Could not find module handler.",b):x.error("Could not find script handler.",c)});a.Ba=function(a){U('div[en-content-class="evernote.module"]',a).forEach(function(a){var b="en-module-"+nb().toString(),c=Qc(a,"en-module-name"),d=Qc(a,"en-module-title");c?(a.removeAttribute("en-content-class"),a.removeAttribute("en-app-data"),a.removeAttribute("style"),
a.classList.add("en-module"),a.setAttribute("data-en-module-name",c),d?a.setAttribute("data-en-module-title",d):x.warn("Could not read module's title.",c),a.setAttribute("id",b),a.setAttribute("contentEditable","false")):(x.error("Stripped damaged module without a type"),a.parentElement.removeChild(a))})};a.Ia=function(b){U("div.en-module",b).forEach(function(b){var c=b.id,d=b.getAttribute("data-en-module-name"),e=b.getAttribute("data-en-module-title");if(b.classList.contains("en-module-newly-inserted"))b.parentNode.removeChild(b);
else{B(0!=d.length,"Malformed module found");var f=a.D[d];f&&f.Ff(c)?(c=f.eg(c))?(ng.Ce(c),b.parentNode.replaceChild(c,b)):(x.error("Could not serialize module. Discarding module content!",d),b.parentNode.removeChild(b)):(B(a.N[c],"Element must be either handled by application or in unloaded state."),ng.Ue(b),b.removeAttribute("class"),b.removeAttribute("data-en-module-name"),b.removeAttribute("id"),b.removeAttribute("contenteditable"),b.setAttribute("en-content-class","evernote.module"),Sc(b,"en-module-name",
d),e&&Sc(b,"en-module-title",e),ng.Ce(b))}})}}};function tg(){function a(){b.B.timeout(function(){zd(X())})}function c(){b.B.I("selectionChange",b.Ja.bind(b));if(b.H.smartHeight){var c=document.body,d=function(){var a=window.innerHeight-0-32;c.style.minHeight="";a>c.clientHeight&&(c.style.minHeight=a+"px")};d();b.B.I("windowResize",d,1E3)}b.H.smartScroll&&b.B.I("execCommand",function(b){-1!==wa.indexOf(b.name)&&a()});b.H.smartList&&G(b.root,"en-smart-list");b.H.smartPlaceholder&&(d=function(){Vb(b.root,"en-note-is-empty",Gd(b.root))},d(),b.B.ba(b.root,
"setDirty",d));b.H.smartDelete&&b.B.ba(b.root,"beforeInput",function(a){var c=a.ma;c&&!1===c.collapsed&&(b.D.flush(),Z.execCommand("delete"),a.ma=X(a.element),a.Cb.xa=a.ma.startContainer,a.Cb.offset=a.ma.startOffset)},0);b.B.ba(b.root,"anyInput",function(){Y(b.root,"setDirty",!0)})}var b=this;B(this instanceof tg,"Use `new` to instantiate this class");b.name="rte";b.F=function(a){b.H=D(a,{active:!0,highlightMagic:!1,skipMarkupTransform:!1,placeholder:"",trackStateChanges:null,trackValueChanges:null,
trackEnabledChanges:null,tableResizing:!1,imageResizing:!1,tableSelection:!1,typebehind:{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1},mutationObserver:!1,undoOnIdle:6,cryptLegacy:!0,resources:null,smartScroll:!1,smartHeight:!1,smartDelete:!1,smartPlaceholder:!0,smartList:!1,imageConfig:{},selector:null,html:null,enml:null,modules:null,clearly:null,root:null});b.H.imageConfig=D(b.H.imageConfig,{annotate:!1,imageClickEvents:!1,images:null,preview:!1,resize:!1,
rotate:!1});var d=b.H.imageConfig;d.bubbleImageClicks=d.resize;u(b.H.selector)?b.root=document.querySelector(b.H.selector):b.root=b.H.root||document.getElementById("en-note")||document.body;B(b.root&&I(b.root),"Root not valid!");B(I(b.root),"RTE root node required to be an HTML element! <$>");var f=b.va();b.B.Gc({zb:["rte","content"]});f.V(function(a){a.B.Gc({zb:["rte","content"]})});b.vb=null;b.Lf=!!(b.H.trackStateChanges||b.H.trackValueChanges||b.H.trackEnabledChanges);var g=new cf;f.F(g,{root:b.root,
H:b.H});g.Oe(!b.H.active);f.F(new ef);var k=new qf;f.F(k);f.F(new df);f.F(new rf);b.D=!0===b.H.mutationObserver?new Ve:new Ue;f.F(b.D,{element:b.root,ab:function(){g.la();return JSON.stringify(k.bd())},fc:function(a){g.la();k.qb(JSON.parse(a))}});b.J=new sf;f.F(b.J);var p=b.H.tableResizing;b.H.imageResizing&&(d.resize=!0);var h=b.H.tableSelection;f.F(new je);b.ha=new le;f.load(b.ha);f.F(new We,{element:b.root});f.F(new Rf);f.F(new Df);f.F(new uf);f.F(new vf);f.F(new $f);f.F(new cg);f.F(new Cf);f.F(new Uf);
f.F(new Tf);f.F(new Zf);f.F(new bg);f.F(new Xf);f.F(new Yf);f.F(new fg);null!=b.H.modules&&f.F(new sg,{Id:a.modules});b.H.emoticons&&(La("Use typebehind: { emoticon: true } instead of adding","emoticons: true directly to the rte options."),b.H.typebehind.emoticon=!0);f.F(new Nf,b.H.typebehind);ab(b.H.resources)&&f.F(new Vf,{resources:b.H.resources});a=new dg;f.F(a);var l=new Sf,m=new Of;f.F(l);f.F(m);var r=b.H.html,v=b.H.enml;B(!(null!=r&&null!=v),"You can only provide one content type: html or enml");
u(r)?l.D(r):u(v)?m.Hc(v):(b.H.skipMarkupTransform||a.mb(b.root,2),Y(b.root,"setDirty",!1));d&&d.imageClickEvents&&f.F(new Pf,d);d&&f.F(new Qf,d);d&&d.resize&&(b.U=new ne,g.kb()||f.F(b.U,d));d&&(d.annotate||d.preview||d.rotate)&&(b.N=new Fe,g.kb()||f.F(b.N,d));h&&f.F(new ag);p&&(b.Y=new tf,g.kb()||f.F(b.Y));b.ha&&f.F(b.ha);null!=b.H.clearly&&f.F(new eg,{root:b.root});g.kb()||Hc(b.root,!0);g.qc();b.qc();b.B.ba(b.root,"setDirty",function(a){b.rd(a)});0<b.H.undoOnIdle&&b.B.P(function(){l.Rb()&&b.D.flush()},
b.H.undoOnIdle);b.Qf=function(){var a=g.hasFocus();a!==b.Za&&(wb("focusChanged",{focus:a}),ze("content",{focus:a}));if(b.Lf){var c=b.Pf(),d=JSON.stringify(c);d!==b.Vb&&(b.Vb=d,wb("styleChanged",c),c=c||{},c.module="content",we("styleChanged",c))}b.Za=a};c();b.H.placeholder&&b.root.setAttribute("data-en-placeholder",b.H.placeholder);b.D.clear();Y(b.root,"contentReady")};b.S=function(){b.Vb=null;pd();b.lb=null;b.Za=null;Hc(b.root,!1);b.ha=null;b.Y=null;b.H=null;b.root=null;b.J=null};b.Ja=function(){try{var a=
{lb:b.lb},c=X(b.root);null!=c&&(b.lb=ud(c));a.ma=c;Y(b.root,"selectionChanged",a);b.vb=b.B.timeout(b.Qf,50,b.vb)}catch(f){x.error("Exception in en.rte.didChangeSelection <$>:",f.toString())}};b.rd=function(c){c=c||{};b.H.smartScroll&&!c.Cc&&a();b.B.M();b.Ja()};b.Pf=function(){function a(b,e,f){if(b&&b.length){for(var h={},l=0;l<b.length;l++){var m=b[l];h[m]=f(m)}h&&(c[e]=h)}}var c={},f=He;a(b.H.trackStateChanges,"state",f.state);a(b.H.trackValueChanges,"value",f.value);a(b.H.trackEnabledChanges,"enabled",
f.enabled);return c};b.selection=function(a){var c=X(b.root);a&&(b.lb&&md(vd(b.lb)),b.root.focus(),c=X(b.root));return c};b.Ze=function(a,c){var f=!0;try{!0===a.focus&&b.selection(!0);var g=function(){f=!1!==c();!0!==a.Ab&&Y(b.root,"setDirty")};!0===a.O?b.D.La(g,a.H.title):("before"===a.O&&b.D.flush(),g(),"after"===a.O&&b.D.flush(a.H.title))}catch(k){pb(k)}return f||!1};b.hasFocus=function(){return b.va().A("context").hasFocus()};b.qc=function(){var a=b.J.Af();Object.keys(a).forEach(function(c){var f=
a[c];f.name=c;var g={name:c,O:f.O,Ab:f.Ab,za:f.za,action:function(a){a=b.J.execCommand.bind(b.J,c,!1,a);return b.Ze(g,a)},state:function(){return b.J.queryCommandState(c)},value:function(a){return b.J.queryCommandValue(c,a)},enabled:function(a){return!!b.J.queryCommandEnabled(c,a)}};b.B.A(g)});b.B.A({name:"diff",value:function(a){var c=yb(a);a=fc(c.base);var e=fc(c.theirs),k=fc(c.mine),p=b.Oa.Xb("normalize");p&&(p.bc(a),p.bc(e),p.bc(k));for(var h,c=c.showChanges,l=se(e,a),m=se(k,a),k=[],e=[],l=l.slice(0),
m=m.slice(0),r=0,v=l.length;r<v;r++){for(var w=l[r],n=0,q=m.length;n<q;n++){h=m[n];var A=!1;if(w.baseIndex===h.baseIndex){var A=w,z=h;if(A.baseIndex===z.baseIndex&&A.sourceIndex===z.sourceIndex&&A.action===z.action&&A.name===z.name&&A._deleted===z._deleted&&A._inserted===z._inserted&&(null==A.element&&null==z.element||R(A.element)&&R(z.element)&&A.element.isEqualNode(z.element))){e.push(h);break}else A=!0}else A="removeChildElement"===w.action,z="removeChildElement"===h.action,A=qe(w,h)&&z&&!A||qe(h,
w)&&!z&&A;if(A){w._conflict=!0;w._owner="theirs";w._conflictedWith=h;h._conflict=!0;h._owner="mine";h._conflictedWith=w;k.push(w);k.push(h);break}h=null}h?m.splice(n,1):e.push(w)}0<m.length&&(e=e.concat(m));0<k.length&&(e=e.concat(k));e.sort(te);h=ue(e,a,c);p&&p.bc(a);return{conflicts:h.conflicts.length,result:h,html:mb(a)}},enabled:y});b.B.A({name:"focus",action:function(a){a=D(yb(a),{pos:"top",force:!1,scroll:!1,animate:!1,value:null,clear:!1});if(!X(b.root)||a.force)if(a.clear)pd();else if(b.root.focus(),
b.lb&&!a.force)md(vd(b.lb));else if("bottom"===a.pos){var c=document.createRange();c.selectNodeContents(b.root);c.collapse(!1);md(c)}else md(ld(b.root,0));a.scroll&&0!=O(b.root)&&zd(X());return!0},state:function(){return b.va().A("context").hasFocus()},value:function(a){var c=b.va().A("context").hasFocus();if(c&&a&&"position"===a.type)return a=X(),null==a?a=null:(c=xd(a),a=null==c?null:wc(c,!1,yc(a.startContainer))),a;if(c)return b.name},Lb:!0,enabled:y});b.B.A({name:"active",action:function(a){a=
xb(a);var c=b.va(),e=c.A("context"),k=!e.kb();k!==a&&window.getSelection().containsNode(b.root,!0)&&pd();e.Oe(!a);k&&!a&&(Hc(b.root,!1),b.N&&b.N.fa&&c.S(b.N),b.U&&b.U.fa&&c.S(b.U),b.Y&&c.S(b.Y));!k&&a&&(pd(),Hc(b.root,!0),b.N&&!b.N.fa&&c.F(b.N,b.H.imageConfig),b.U&&!b.U.fa&&c.F(b.U,b.H.imageConfig),b.Y&&c.F(b.Y));return!0},state:function(){return!b.va().A("context").kb()},enabled:y})}};var Z={},ug=null,vg=null;Z.fa=!1;
Z.F=function(a){!0===Z.fa&&Z.S();var c;try{a=D(a);He=new vb;Me(a);Ie=ug=new Se({A:He,H:a,uid:(new Date).getTime()});vg=new Re;vg.F({name:"document"});var b,e;a.template?(b=new Wf,e=a.template):a.rte&&(b=new tg,e=a.rte);b?(ug.F(b,e),vg.A({name:"bounds",enabled:y,value:function(){var a=xc(b.root),c={left:a.left,right:a.right,top:a.top,bottom:a.bottom,width:a.width,height:a.height};c.y=document.body.scrollHeight-a.bottom;c.x=a.left;return JSON.stringify(c)}}),ug.F(new ve,{root:b.root})):x.error('Settings for "rte" or "template" are obligatory!');
null!=a.title&&(ug.F(new Bf,a.title),vg.I("titlechanged",function(a){ye("title",{blur:!0===a.blur})}));null!=a.shared&&ug.F(new Xe,a.shared);null!=a.context&&ug.F(new Ye,a.context);null!=a["context-upsell"]&&ug.F(new Ze,a["context-upsell"]);null!=a["context-info"]&&ug.F(new $e,a["context-info"]);null!=a.find&&ug.F(new af,a.find);null!=a.keyboard&&ug.F(new bf,a.keyboard);a.analytics&&ug.F(new Ge,a.analytics);vg.A({name:"note",action:function(a){var b=Ad;a=yb(a);if(!ab(a)||!ab(b))return!1;b.note||(b.note=
{});db(b.note,a);wb("noteInfoChanged",b.note);return!0},value:function(a){var b=Ad;if(!ab(b))return null;b=b.note;return ab(b)?u(a)?b[a]:b:{}},enabled:y});vg.A({name:"env",action:function(a){var b=Ad;if(!ab(a)||!ab(b))return!1;b.env||(b.env={});db(b.env,a);return!0},value:function(a){var b=Ad;if(!ab(b))return null;b=b.env;return ab(b)?u(a)?b[a]:b:{}},enabled:y});document.body.setAttribute("data-en-lang",eb());var d;vg.listener(window,"resize",function(a){d||wb("beforeWindowResize",{event:a});d=vg.timeout(function(){d=
null;wb("windowResize",{event:a})},1E3/60*4,d)});vg.listener(document,"selectionchange",function(a){wb("selectionChange",{event:a})});Z.fa=!0;vg.timeout(xe);c=!0}catch(f){c=!1,pb(f)}return c};Z.S=function(){if(!0!==Z.fa)x.error("Someone tried to call cleanup before setup!");else if(window.TEST){try{He.Te(),ug.P(),ug=null,vg.S(),Ie=He=null,Ab.U(),Ad={}}catch(a){pb(a)}Z.fa=!1}};
Z.execCommand=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.action(a,c,b)}catch(d){pb(d)}return e||!1};Z.queryCommandState=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.state(a,c,b)}catch(d){pb(d)}return e||!1};
Z.queryCommandValue=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.value(a,c,b)}catch(d){pb(d)}return e||""};Z.queryCommandEnabled=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.enabled(a,c,b)}catch(d){pb(d)}return e||!1};ga("EN.setup",Z.F);ga("EN.cleanup",Z.S);ga("EN.execCommand",Z.execCommand);ga("EN.queryCommandState",Z.queryCommandState);ga("EN.queryCommandValue",Z.queryCommandValue);ga("EN.queryCommandEnabled",Z.queryCommandEnabled);ga("EN.registerModuleScript",function(a){wb("moduleScript",a)});ga("EN.registerModuleLocalization",function(a,c,b){wb("moduleLocalization",{moduleName:a,tableName:c,stringMap:b})});ga("EN.getVersion",ia);ga("EN.getLastCommitDate",ja);ga("EN.isCompiled",function(){return!0});var wg,xg;
(function(){function a(){bb(g.querySelectorAll("img.en-todo"),function(a){var b=M("div");G(b,"en-print");G(b,"checkbox");F(a,"en-todo-checked")&&G(b,"checked");ac(a,b)})}function c(a){bb(g.querySelectorAll("embed"),function(b){var c=M("div");G(c,"en-print");switch(b.getAttribute("type")){case "evernote/x-pdf":G(c,"pdf");c.textContent=a.pdf_file;break;case "evernote/x-attachment":var d=b.getAttribute("id");null!=d&&d.match(/.*en-media:audio.*/)?(G(c,"audio"),c.textContent=a.audio_file):(G(c,"generic-attachment"),
c.textContent=a.generic_file);break;default:x.warn("Found <embed> with unknown type! "+b),G(c,"generic-attachment"),c.textContent=a.generic_file}ac(b,c)})}function b(){var a=e();null!=a&&null!=g||x.error("Couldnt find note body or print container!");g.innerHTML=g.innerHTML+a.innerHTML;bb(g.childNodes,function(a){G(a,"en-print")})}function e(){var a=document.querySelector("#en-note");return null==a?(x.warn("Could not find note!"),null):a}function d(){var a=M("br");G(a,"en-print");g.appendChild(a)}
function f(a,b){for(var c=M("table"),d,e,f=0;4>f;f++){d=M("tr");c.appendChild(d);for(var v=0;2>v;v++)e=M("td"),d.appendChild(e)}c.setAttribute("id","header-table");G(c,"en-print");g.appendChild(c);var w=c.querySelectorAll("td");bb([[0,b.author,"author"],[1,b.notebook,"notebook"],[2,b.created,"created"],[3,b.tags,"tags"],[4,b.updated,"updated"],[5,b.url,"url"],[6,b.deleted,"deleted"],[7,b.location,"location"]],function(b){if(null!=a[b[2]]){w[b[0]].innerHTML="";var c=M("span");G(c,"header-table-label");
c.textContent=b[1];var d=M("span");G(d,"header-table-text");d.textContent=" "+a[b[2]];w[b[0]].appendChild(c);w[b[0]].appendChild(d)}})}var g=null;wg=function(e,p){null!=g&&(x.warn("Multiple unnecessary calls to setup print."),xg());for(var h=0;h<document.body.childNodes.length;h++)I(document.body.childNodes[h])&&Tc(document.body.childNodes[h],!1);g=M("div");g.setAttribute("id","print-container");G(g,"en-print");h=document.querySelector("#container");h.parentNode.insertBefore(g,h);var l=D(p,{title:null,
notebook:null,created:null,updated:null,deleted:null,author:null,location:null,tags:null,url:null}),h=D(e,{notebook:"Notebook:",created:"Created:",updated:"Updated:",deleted:"Deleted:",author:"Author:",location:"Location:",tags:"Tags:",url:"Source:",pdf_file:"PDF File",audio_file:"Audio File",generic_file:"Generic File"});null!=p&&""!==p&&(f(l,h),l=M("hr"),g.appendChild(l),d());l=document.querySelector("#en-title");if(null!=l&&null!=l.textContent){var l=l.textContent,m=M("div");m.setAttribute("id",
"header-title");G(m,"en-print");m.textContent=l;g.appendChild(m);d()}b();c(h);a();we("printReady",{module:"print"})};xg=function(){null==g?x.warn("Print module teardown called while it was off!"):(H(g),g=null)}})();ga("EN.enablePrint",wg);ga("EN.disablePrint",xg); }).call(window); window.enLoadState = 'didLoad'; }
catch(ex) { window.enLoadState = "Exception: " + ex.toString() + '\n' + ex.stack + ''; }

