// ce-1.0.29.896-develop-mac f323b399c5fc0c825a76dd94ea2efe14a5bcac73
// Copyright 2013-2015 Evernote Corp. All rights reserved.
// http://www.evernote.com

window.enLoadState = 'willLoad';
window['CE_VERSION_INFO'] = {
    'lastCommitDate': '2016-07-29 10:17:20 -0700',
    'versionNumber': '1.0.29.896',
    '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 ca(a){return"array"==ba(a)}function v(a){return"string"==typeof a}function da(a){return"function"==ba(a)}function ea(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function fa(a,c){var b=a.split("."),d=aa;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)b.length||void 0===c?d[e]?d=d[e]:d=d[e]={}:d[e]=c}
function ga(a,c){function b(){}b.prototype=c.prototype;a.$c=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.rh=function(a,b,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return c.prototype[b].apply(a,g)}};window.CE_VERSION_INFO=window.CE_VERSION_INFO||{lastCommitDate:"",versionNumber:"1.0.0.0",channel:"local"};window.CE_VERSION_INFO.platform=window.CE_VERSION_INFO.platform||"mac";function ia(){var a=window.CE_VERSION_INFO;return["ce",a.versionNumber,a.channel,a.platform].join("-")}function ja(){return window.CE_VERSION_INFO.lastCommitDate};var ka="style bgcolor title lang dir text".split(" "),la={NONE:"en_rl_none",oh:"en_rl_minimal",qh:"en_rl_text",ph:"en_rl_small"},ma="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(" "),na="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(" "),
oa="hr area base br col colgroup embed img input link meta param wbr en-todo en-media".split(" "),pa="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(" "),qa=["0","0px","none","initial"],sa="colgroup table tbody tfoot thead tr".split(" "),ta=["script","style","plaintext","xmp"],ua=["embed","object","img"],va={p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,pre:!0,hr:!0,br:!0,li:!0,div:!0,
table:!0,tr:!0,head:!0,body:!0},wa=ma.join(","),ya=["*","~","!","_","`"],za="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 Aa=[];function Ba(a){ca(a)||(a=[a.toString()]);this.K=a}Ba.prototype.log=function(a,c,b){if(800<=a)for(var d=0;d<Aa.length;d++)Aa[d](this.K,a,Array.prototype.slice.call(c),b)};Ba.prototype.A=function(){};Ba.prototype.info=function(a){this.log(800,arguments)};Ba.prototype.warn=function(a){this.log(900,arguments)};Ba.prototype.error=function(a){this.log(1E3,arguments)};Ba.prototype.I=function(a){this.log(1200,arguments)};function Ca(){}Ca.prototype.A=function(){};Ca.prototype.info=function(){};
Ca.prototype.warn=function(){};Ca.prototype.error=function(){};var Da=new Ba("default"),Ea=Da.info.bind(Da),Fa=Da.warn.bind(Da),Ga=Da.error.bind(Da);Da.I.bind(Da);window.evernoteClient&&Aa.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);window.evernoteClient.log(b.join(" "))});Aa.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);a=b.map(Ha).join(" ");1E3<=c?console.error(a):900<=c?console.warn(a):800<=c?console.info(a):console.log(a)});var w={};function Ia(){return!1}function y(){return!0}function Ja(){}w.Bd=function(a,c){null==Ka[a]?(w.error("Unrecognized log level: <"+a+">. Logging as error."),w.error.apply(w.error,arguments)):Ka[a].apply(w,Array.prototype.slice.call(arguments,1))};w.log=function(){};w.info=Ea;w.warn=Fa;w.error=Ga;w.time=Ja;w.timeEnd=Ja;w.trace=Ja;w.dump=function(a){var c=Array.prototype.slice.call(arguments).map(Ha);w.log.apply(w,c)};var Ka={info:w.info,warn:w.warn,error:w.error};
w.group=function(a){window.console&&window.console.groupCollapsed&&window.console.groupCollapsed(Array.prototype.slice.call(arguments).map(Ha).join(" "))};w.groupEnd=function(){window.console&&window.console.groupCollapsed&&window.console.groupEnd&&window.console.groupEnd()};var La={};w.Bf=function(a,c){var b={t:window.performance&&window.performance.now?window.performance.now():(new Date).getTime(),kc:Array.prototype.slice.call(arguments,1).join(" ")||""};La[a]?La[a].push(b):La[a]=[b]};
w.zh=function(a,c){La[a]=[];w.Bf.apply(this,arguments)};function Ma(a){a=a.toString();var c=a.indexOf(".");return 0>c?a:a.substring(0,c+4)}w.yh=function(a,c){w.Bf.apply(this,arguments);for(var b=La[a],d=b[b.length-1].t-b[0].t,e=1;e<b.length;e++){var f=b[e].t-b[e-1].t;w.log("\u25fc "+a+"."+e+": "+Ma(f)+"ms ("+Math.round(100*f/d)+"% of "+Ma(d)+"ms full time)",b[e].kc?"<-":"",b[e].kc)}La[a]=[]};function Na(a){var c=Oa(arguments);c.unshift("DEPRECATION WARNING:");w.warn.apply(null,c)}
function C(a,c){if(!a){var b="Assertion failed! "+Array.prototype.slice.call(arguments,1).join(" ");w.error(b);throw b;}}function Pa(a){try{if(v(a))return Qa(a);var c=JSON.stringify(a,null,"  ")}catch(b){return a.toString()}return c}
function Sa(a){var c;return a instanceof Text?"<TextNode:"+Pa(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:"+Sa(a.startContainer)+":"+a.startOffset+","+Sa(a.endContainer)+
":"+a.endOffset+" collapsed="+(a.collapsed?"true":"false")+" html="+Pa(c.innerHTML)+">"):"<"+typeof a+":"+Pa(a)+">"}function Ha(a){return v(a)?a:Sa(a)}var Ta=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;function Ua(a){return a instanceof RegExp?a.source:a.replace(Ta,"\\$&")}var Va=/[^\x20-\x26\x28-\x5B\x5D-\x7E]/g,Wa={"\n":"\\n","'":"\\'",'"':'\\"',"\t":"\\t","\r":"\\r"};
function Qa(a){return"'"+a.replace(Va,function(a){if(Wa[a])return Wa[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 Xa=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g;function Ya(a){Xa.lastIndex=0;return Xa.test(a)}var Za=/[\u0000\u0001-\u0008\u000E-\u001F\u007F-\u009F\uFDD0-\uFDEF\u000B\uFFFE\uFFFF]|[\x01-\x10][\uFFFE-\uFFFF]/g;function $a(a){return a.replace(Za,"")}
var ab={"&apos;":/&apos;/gi,"&quot;":/&quot;/gi,"&gt;":/&gt;/gi,"&lt;":/&lt;/gi,"&amp;":/&amp;/gi,"&":/&/g,"<":/</g,">":/>/g,'"':/"/g,"'":/'/g};function bb(a){return a.replace(ab["&apos;"],"'").replace(ab["&quot;"],'"').replace(ab["&gt;"],">").replace(ab["&lt;"],"<").replace(ab["&amp;"],"&")}function cb(a){return a.replace(ab["&"],"&amp;").replace(ab["<"],"&lt;").replace(ab[">"],"&gt;").replace(ab['"'],"&quot;").replace(ab["'"],"&apos;")}
function db(a){var c;C(!!a&&eb(a),"obj has to be dict",a);var b={};null==c&&(c=!1);Object.keys(a).forEach(function(d){b[a[d]]=d});c||Object.keys(a).length===Object.keys(b).length||Fa("inverting resulted in a different number of keys","original:",a,"inverted:",b);return b}function fb(a,c){var b;if(a&&c)if(null!=a.length){b=0;for(var d=a.length;b<d&&c.call(a,a[b],b)!==gb;b++);}else"object"===typeof a&&Object.keys(a).every(function(b){return c.call(a,b,a[b])===gb?!1:!0})}var gb={};
function hb(a,c,b){if(c)for(var d in c)if(!b||void 0===a[d]){var e=c[d];void 0!==e&&(a[d]=e)}return a}function D(a,c,b){null==b&&(b=!0);if(null==a||""===a)a={};v(a)&&(a=JSON.parse(a)||{});C(eb(a),"Options of wrong type");if(c){C(eb(c),"Defaults of wrong type");var d,e=Object.keys(c);for(d in a)if(a.hasOwnProperty(d)&&!(0<=e.indexOf(d))&&b){var f=["Key",Pa(d),"not supported! Seen in:",(a||{}).name||"",a];w.warn.apply(null,f)}for(d in c)"undefined"===typeof a[d]&&(a[d]=c[d])}return a||{}}
function ib(){var a=navigator.language||navigator.userLanguage||"en",a=a.split("-")[0];window.Evernote&&window.Evernote.getLanguage&&(a=window.Evernote.getLanguage());return a}function Oa(a,c){if(!c)return Array.prototype.slice.call(a,0);var b=a.length,d=[],e;if(c)for(e=b-1;0<=e;e--)d.push(a[e]);else for(e=0;e<b;e++)d.push(a[e]);return d}var kb=/^[\x00-\x20\s]*$/g;function lb(a){return v(a)?(kb.lastIndex=0,0===a.length||kb.test(a)):!1}
function mb(a){return!a||lb(a)||ca(a)&&0===a.length||ea(a)&&0===Object.keys(a).length}var nb=/^(?:(?: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 ob(a){nb.lastIndex=0;return v(a)&&nb.test(a)}function eb(a){return!!a&&"object"===ba(a)}function pb(a){var c=a.indexOf(">"),b=a.lastIndexOf("<");return 0>c||0>b?a:a.substring(c+1,b)}function qb(a){var c;if(v(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 pb(c.outerHTML)}function rb(){return window.ENUniqueCounter++}
function sb(a){var c=1+(window.ENUniqueCounterObject[a]||0);window.ENUniqueCounterObject[a]=c;return a+"-"+c}window.ENUniqueCounter=1;window.ENUniqueCounterObject={};function tb(a){w.error("Exception: "+a.toString())}function ub(){this.Ba=[];this.pb=[]}ub.prototype.has=function(a){return-1!==this.Ba.indexOf(a)};ub.prototype.get=function(a){a=this.Ba.indexOf(a);return-1!==a?this.pb[a]:null};ub.prototype.set=function(a,c){var b=this.Ba.indexOf(a);-1!==b?this.pb[b]=c:(this.Ba.push(a),this.pb.push(c))};
ub.prototype.remove=function(a){a=this.Ba.indexOf(a);-1!==a&&(this.Ba.splice(a,1),this.pb.splice(a,1))};function vb(){this.A=Object.create(null)}vb.prototype.add=function(a){this.A[a]=!0};vb.prototype.remove=function(a){delete this.A[a]};vb.prototype.has=function(a){return!!this.A[a]};var wb=window.onerror;window.onerror=function(a,c,b){var d=!1;wb&&(d=wb(a,c,b));w.error("Uncaught error in JS:",a.toString(),c,b);return d};var xb={"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:"]}},yb={":(=|-)?\\)":xb["smiling face with open mouth"],":(=|-)?\\(":xb.pensive,":(=|-)?D":xb["grinning face"],"(8|B)(=|-)\\)":xb["smiling face with sunglasses"],";(=|-)?\\)":xb["winking face"],":(=|-)?(o|O)":xb["face with open mouth"],";(=|-)?\\(":xb["crying face"],"\\(:\\|":xb["smiling face with open mouth and cold sweat"],":sweat:":xb["smiling face with open mouth and cold sweat"],
":(=|-)?\\|":xb["neutral face"],":neutral:":xb["neutral face"],":(=|-)?\\*":xb["kissing face with closed eyes"],":kiss:":xb["kissing face with closed eyes"],":(=|-)?(P|p)":xb["face with stuck-out tongue"],":(-|=)?\\$":xb["smiling face with smiling eyes"],":simple_smile:":xb["smiling face with smiling eyes"],"\\(?(:|x|X)(=|-)?(@|\\()":xb["angry face"],":angry:":xb["angry face"],"(O|o):(=|-)?\\)":xb["smiling face with halo"],":innocent:":xb["smiling face with halo"],":angel:":xb["smiling face with halo"],
"<3":xb["heavy black heart"],":heart:":xb["heavy black heart"],"(\\||I)(-|=)\\)":xb["sleepy face"],":snooze:":xb["sleepy face"],":in_?love:":xb["smiling face with heart-shaped eyes"],":devil:":xb["smiling face with horns"],":ghost:":xb.ghost,":alien:":xb["extraterrestrial alien"],":skull:":xb.skull,":scream:":xb["face screaming in fear"],":pizza:":xb["slice of pizza"],":purple_?heart:":xb["purple heart"],":green_?heart:":xb["green heart"],":blue_?heart:":xb["blue heart"],":yellow_?heart:":xb["yellow heart"],
":droplet:":xb.droplet},zb=new ub;Object.keys(yb).forEach(function(a){zb.set(a,yb[a])});function Ab(){function a(a,b,c){a.G=D(b,{title:null,id:null,queryGroupName:c.rg})}function c(a){C(v(a)&&a===a.toLowerCase(),"Command name has to be lower case only.");var c=a.lastIndexOf("."),f=[],g=null,h=a;-1===c?(c=b[a])&&(f=c.filter(function(a){return!0!==a.Wb})):(g=a.substring(0,c),h=a.substring(c+1),(c=b[h])&&(f=c.filter(function(a){return a.Ya&&-1!==a.Ya.indexOf(g)})));return{Da:f,vh:h,rg:g,Ah:a}}var b={};this.Vg=function(a){C(eb(a),"We require command to be an object:",a);var c=a.name;C(v(c)&&
1<c.length&&!!c.match(/[a-z]+/gi),"Invalid name for command:",Pa(c));a.action&&C(!!a.enabled,'We require command to have "enabled" state:',a.name);C(!!(a.action||a.value||a.state),'We require command to have one of "action", "value" or "state":',a.name);C(!a.Ya||ca(a.Ya),"We require command groups to be an Array:",a.name);var f=b[c];f||(f=[],b[c]=f);C(ca(f),"Expected list for commands");f.push(a)};this.Jf=function(a){if(a&&b)for(var c=Object.keys(b||{}),f=0;f<c.length;f++){var g=c[f],h=b[g];if(h)for(var m=
h.length-1;0<=m;m--){var k=h[m];k&&a(k)&&(h.splice(m,1),0>=h.length?delete b[g]:b[g]=h)}}else b={}};this.action=function(b,e,f){var g=null;try{var h=c(b),m=h.Da;if(0!=m.length)for(b=0;b<m.length;b++){var k=m[b];a(k,f,h);if(k.action&&k&&k.enabled&&k.enabled.call(k,e)){var l={name:k.name,value:e,command:k};Bb("beforeExecCommand",l);var n=k.action.call(k,e),g=!(null===g&&!1===n);l.result=n;Bb("execCommand",l)}}else w.warn("execCommand of unknown command:",b,"with value:",e)}catch(t){w.Bd("complete"!==
document.readyState?"warn":"error","Exception in execCommand <$>:",t.toString()),tb(t)}return g};this.enabled=function(b,e,f){var g=null;try{var h=c(b),m=h.Da;if(m)for(b=0;b<m.length;b++){var k=m[b];if(k.enabled){a(k,f,h);var l=k.enabled.call(k,e);if(!0===l){g=!0;break}null===g&&!1===l&&(g=!1)}}else w.warn("queryCommandEnabled of unknown command:",b,e)}catch(n){w.Bd("complete"!==document.readyState?"warn":"error","Exception in queryCommandEnabled <$>:",n.toString())}return g};this.state=function(b,
e,f){var g=null;try{var h=c(b),m=h.Da;if(m)for(b=0;b<m.length;b++){var k=m[b];if(k.state){a(k,f,h);if(!0===k.state.call(k,e)){g=!0;break}g=!1}}else w.warn("queryCommandState of unknown command:",b,e)}catch(l){w.Bd("complete"!==document.readyState?"warn":"error","Exception in queryCommandState <$>:",l.toString()),tb(l)}return g};this.value=function(b,e,f){var g=null;try{var h=c(b),m=h.Da;if(m)for(b=0;b<m.length;b++){var k=m[b];if(k.value){a(k,f,h);var l=k.value.call(k,e);if(null!=l){if(!v(l))try{g=
JSON.stringify(l);break}catch(n){}g=l.toString();break}g=""}}else w.warn("queryCommandValue of unknown command:",b,e)}catch(n){w.Bd("complete"!==document.readyState?"warn":"error","Exception in queryCommandValue <$>:",n.toString()),tb(n)}return g}}function Cb(a){return!(!1===a||0===a||"0"===a||"false"===a.toString().toLocaleLowerCase())}
function Db(a){if(eb(a))return a;if(v(a)&&0<a.length){if(0===a.indexOf("{"))try{return JSON.parse(a)||{}}catch(c){}else Na('Please use a JSON formatted string in the form { "value": "'+a.substring(0,100)+'"}');return{value:a}}return{}}function Eb(a){var c="";try{var b=a;v(b)&&(b=JSON.parse(b)||{});if(ca(b))return b;if(eb(b))return[b]}catch(d){c=d}w.warn("Problems parsing value",a,c.toString());return null};var Fb=new function(){var a=this;a.name="message";var c;a.F=function(){c={}};a.D=function(a,d){var e=c[a];if(null!=e)for(var f=0;f<e.length;f++)(0,e[f][1])(d,a)};a.N=function(b,d){if(null!=c[b]){var e=d(b);a.D(b,e)}};a.subscribe=function(a,d,e,f){var g=c[a];null==g&&(g=[],c[a]=g);f&&(d=d.bind(f));a=e||0;for(e=0;e<g.length;e++)if(a<g[e][0]){g.splice(e,0,[a,d]);return}g.push([a,d])};a.fa=function(b,c,e,f){function g(h){c.apply(f,arguments);a.unsubscribe(b,g)}a.subscribe(b,g,e)};a.J=function(){return null!=
c.beforeDelete};a.Y=function(a){a=c[a];return null!=a?a.length:0};a.unsubscribe=function(a,d){var e=c[a];if(null!=e){for(var f=e.length-1;0<=f;f--)e[f][1]===d&&e.splice(f,1);0===e.length&&delete c[a]}};a.R=function(){c={}}};Fb.F({});var Gb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Hb(a){a.preventDefault()}function Ib(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 Jb(a,c){var b=Array.prototype.slice.call(a.targetTouches),d={};if(c&3&&1===b.length)return[b,b];var e=Array.prototype.slice.call(a.changedTouches);b.forEach(function(a){d[a.identifier]=!0});e.forEach(function(a){d[a.identifier]||(d[a.identifier]=!0,b.push(a))});return[b,e]}function Kb(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:Lb(c),deltaX:a.deltaX,deltaY:a.deltaY}}
function Lb(a){var c=0,b=0,d=a.length;a.forEach(function(a){c+=a.clientX;b+=a.clientY});return{x:Math.round(c/d),y:Math.round(b/d)}}function Mb(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 Nb(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"],d=c[b[0]]-a[b[0]],b=c[b[1]]-a[b[1]];return Math.sqrt(d*d+b*b)}function Ob(a,c){return a===c?1:Math.abs(a)>=Math.abs(c)?0<a?2:4:0<c?8:16}
function Pb(a,c,b){C(!!a,"Missing target to work with");C("function"==typeof c,"Listener must be a function");this.listener=c;this.target=a;this.nb={};this.state=1;this.K=!1;this.options=D(b||{},this.A,!1)}var Qb=0;Pb.prototype.A={};Pb.prototype.pc=function(){return 1};Pb.prototype.I=function(){};function Rb(a,c){C(!!c,"Payload is missing, check proper flow when tryEmit is being used.");a.options.we&&a.state&6&&!(a.state&8)?Sb(a,!0):a.options.we&&Sb(a,!1);a.state&30&&Ib.call(a,c)}
function Sb(a,c){a.K&&!c&&0>=--Qb?document.body.removeEventListener("touchmove",Hb):!a.K&&c&&0<++Qb&&document.body.addEventListener("touchmove",Hb);a.K=c}function Tb(a,c,b){Pb.call(this,a,c,b);this.O=this.M=0}ga(Tb,Pb);Tb.prototype.A={type:"pan",ub:1,threshold:10,we:!0,direction:30};
Tb.prototype.pc=function(a){var c=this.state&6,b;if((b=a.touches.length===this.options.ub)&&!(b=this.state&2)&&(b=!(this.state&2))){b=a.direction;var d=a.distance;a.direction&this.options.direction||(this.options.direction&6?(d=a.deltaX,b=0===d?1:0>d?2:4):(d=a.deltaY,b=0===d?1:0>d?8:16),d=Math.abs(d));b=!!(d>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.O=a.deltaY,
2);this.O=this.M=0;return 32};Tb.prototype.I=function(a){a.deltaX-=this.M;a.deltaY-=this.O;2===this.state&&(a.isInitial=!0)};function Ub(a,c,b){Pb.call(this,a,c,b)}ga(Ub,Pb);Ub.prototype.A={type:"pinch",ub:2,threshold:0,we:!0};Ub.prototype.pc=function(a){var c=this.state&6,b=a.touches.length===this.options.ub&&(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};
Ub.prototype.I=function(a){this.state&8&&(a.isFinal=!0)};function Vb(a,c,b){Pb.call(this,a,c,b)}ga(Vb,Ub);Vb.prototype.A={type:"rotate",ub:2,threshold:0};function Wb(a,c,b){Pb.call(this,a,c,b)}ga(Wb,Pb);Wb.prototype.A={type:"swipe",threshold:10,nh:.65,direction:30,ub:1};
Wb.prototype.pc=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 d=this.state&6,c=a.touches.length===this.options.ub&&a.inputType&4&&a.distance>this.options.threshold&&c&a.direction&&Math.abs(b)>this.options.nh;return d&&(a.inputType&8||!c)?this.state|16:d||c?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};function Xb(a,c,b){Pb.call(this,a,c,b);this.Ub=null;this.Wa=void 0;this.Vb=0}ga(Xb,Pb);
Xb.prototype.A={type:"tap",ub:1,Ae:1,interval:300,time:250,threshold:5,offset:10,wf:!1};
Xb.prototype.pc=function(a){var c=a.touches.length===this.options.ub&&a.distance<this.options.threshold&&a.deltaTime<this.options.time;clearTimeout(this.Ub);if(c){var b=this;if(4!=a.inputType)return b.Ub=setTimeout(function(){b.state=32;b.Wa=void 0;b.Vb=0},b.options.interval),32;var c=!this.Wa||a.timeStamp-this.Wa.timeStamp<this.options.interval,d=!this.Wa||Nb(this.Wa.center,a.center)<this.options.offset;this.Wa=a;this.Vb=c&&d?this.Vb+1:1;if(this.Vb===this.options.Ae&&this.options.wf)return 8;this.Vb===
this.options.Ae&&(this.Ub=setTimeout(function(){b.state=8;Rb(b,b.Wa)},this.options.interval))}return 32};Xb.prototype.I=function(a){a.count=this.Vb;this.Vb=0;this.Wa=void 0};function Yb(a,c,b){Pb.call(this,a,c,b);this.Ub=null;this.Wa=void 0}ga(Yb,Pb);Yb.prototype.A={type:"press",ub:1,time:450,threshold:5};
Yb.prototype.pc=function(a){var c=a.touches.length===this.options.ub&&a.distance<this.options.threshold;if(c&&a.inputType&1){var b=this;clearTimeout(this.Ub);this.Wa=a;this.Ub=setTimeout(function(){b.state=8;Rb(b,b.Wa)},this.options.time)}else c&&a.inputType&2?this.Wa=a:(clearTimeout(this.Ub),this.Wa=void 0);return 32};function E(a,c){return a&&a.classList?a.classList.contains(c):!!(a&&a.className&&(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")).test(a.className))}function F(a,c){a&&(a.classList?a.classList.add(c):E(a,c)||(a.className=((a.className||" ")+" "+c).trim()))}function G(a,c){a&&(a.classList?a.classList.remove(c):E(a,c)&&(a.className=a.className.replace(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")," ").trim()||""),0===a.className.length&&a.removeAttribute("class"))}
function Zb(a,c,b){a&&(null!=b?b?F(a,c):G(a,c):a.classList?(a.classList.toggle(c),0===a.className.length&&a.removeAttribute("class")):E(a,c)?G(a,c):F(a,c))}function H(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function $b(a){return I(a)?Oa(a.childNodes):[]}function ac(a,c){var b=bc(a);if(b.parentNode!==c){for(;b.parentNode!==c;)b=b.parentNode;return bc(b)===bc(a)}return 0===J(b)}function bc(a){return I(a)&&a.firstChild?bc(a.firstChild):a}
function cc(a){return I(a)&&a.lastChild?cc(a.lastChild):a}function dc(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function ec(a,c){var b=a.parentNode;b&&b.replaceChild(c,a);return c}function fc(a){if(a){for(;a.firstChild;)a.parentNode.insertBefore(a.removeChild(a.firstChild),a);H(a)}}function gc(a,c){for(;a.firstChild;)c.appendChild(a.firstChild)}var hc;function ic(a){hc?hc.lastIndex=0:hc=new RegExp("<(("+oa.join("|")+")[^\\s/>]*?)>(?![^]*?<\\/\\1>)","gi");return a.replace(hc,"<$1/>")}
function jc(a,c){var b=null;try{if(a&&0<a.length){var d=kc(c||document,"div");a=$a(a).replace(/&nbsp;/gi,"\u00a0");lc(d)&&(w.log("Before XHTML",a),a=ic(a),w.log("Processed XHTML",a));mc(d,a);var e=d.ownerDocument.createRange();e.selectNodeContents(d);b=e.extractContents()}}catch(f){}return b}function nc(a,c){for(var b=c.ownerDocument.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);c.appendChild(b)}function oc(a,c){dc(c);nc(a,c)}
function pc(a,c){gc(a,c);a.appendChild(c);return c}function qc(a,c){c.parentNode.insertBefore(a,c.nextSibling)}function rc(a){var c={};if(a&&(a=a.attributes))for(var b=a.length;b--;)c[a[b].name.toLowerCase()]=a[b].value;return c}
function sc(a,c){C(I(a),"<$>");c=c.toLowerCase();if(K(a)===c||!a.parentNode)return a;for(var b=a.ownerDocument.createElement(c),d=0;d<a.attributes.length;d++)b.setAttributeNS(a.attributes[d].namespaceURI,a.attributes[d].name,a.attributes[d].value);C(I(a),"<$>");C(I(b),"<$>");C(!b.hasChildNodes(),"new node has to be empty <$>");a.parentNode.insertBefore(b,a);gc(a,b);H(a);return b}
function kc(a,c,b,d){a instanceof Document||(a=a.ownerDocument);c=a.createElement(c?c.toString().toLowerCase():"div");if(null!=b)for(var e in b)if(v(e)){var f=b[e];v(f)?c.setAttribute(e,f):w.warn("Provide a string as attribute value",e,f)}if(null!=d)if(v(d))c.innerHTML=d;else if(ca(d))for(b=0;b<d.length;b++)(e=d[b])&&(v(e)?c.appendChild(a.createTextNode(e)):c.appendChild(e));else if(d instanceof Node)c.appendChild(d);else throw"Unsupported type for opt_inner";return c}
function mc(a,c){a&&(C(I(a),"Expected a HTML element"),a.insertAdjacentHTML?(a.hasChildNodes()&&dc(a),a.insertAdjacentHTML("afterbegin",c)):a.innerHTML=c)}function tc(a){return null!=a&&null!=a.nodeType?a.innerText:""}function M(a,c,b){return kc(document,a,c,b)}function uc(){return M("div",{},[M("br")])}
function vc(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 wc(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 lc(a){return(a=(a?a.ownerDocument||a:document).documentElement)&&a.nodeName?a.nodeName!==a.nodeName.toUpperCase():!1}function xc(a){return!(!a||3!==a.nodeType)}function I(a){return!(!a||!a.nodeType||1!==a.nodeType)}function yc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&8):!1}function zc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&16):!1}
function Ac(a){for(var c=/[^\s]+/i,b=a.previousSibling;b&&(!b.nodeName||!va[b.nodeName.toLowerCase()]);){if(c.test(b.textContent)||E(b,"en-todo"))return!0;b=b.previousSibling}for(b=a.nextSibling;b&&(!b.nodeName||!va[b.nodeName.toLowerCase()]);){if(c.test(b.textContent))return!0;b=b.nextSibling}a=a.parentNode;return!a||a.nodeName&&va[a.nodeName.toLowerCase()]?!1:Ac(a)}function Bc(a){return!(!a||!a.isEqualNode(document.documentElement)&&!yc(a,document.documentElement))}
function Cc(a){try{if(a&&(I(a)||(a=a.parentNode),a))return window.getComputedStyle(a)}catch(c){}return null}function Dc(a,c){var b,d;if(null==a)return null;c=D(c,{absolute:!1,Hb:1,yg:!1});c.absolute||null!=b?d=b=0:(b=document.body.scrollLeft,d=document.body.scrollTop);return{left:a.left*c.Hb+b,right:a.right*c.Hb+b,top:a.top*c.Hb+d,bottom:a.bottom*c.Hb+d,width:a.width*c.Hb,height:a.height*c.Hb}}
function N(a,c){if(null==a)return null;null==c&&(c=!1);if(null==a.nodeType||!Bc(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?Dc(b[0],{absolute:c,Hb:Ec(a)}):null}function Fc(a){return(a=Cc(a))&&a.display?"block"===a.display.toLowerCase():!1}function Gc(a){return!(!a||(-1===ma.indexOf(K(a))||E(a,"en-container"))&&9!==a.nodeType&&11!==a.nodeType)}
function Hc(a,c){var b=a;this.A=function(){a:{var a,e;if(b){if(b.firstChild){b=b.firstChild;break a}if(b!=c){if(a=b.nextSibling){b=a;break a}for(e=b.parentNode;e&&e!=c;e=e.parentNode)if(a=e.nextSibling){b=a;break a}}}b=void 0}return b}}function Ic(a){return!(!a||Gc(a))}function Jc(a,c){return null!=a&&null!=c&&!!(a.compareDocumentPosition(c)&4)}function K(a){return a&&a.tagName?a.tagName.toLowerCase()||void 0||"":""}function Kc(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 Lc(a,c){return P(a.parentNode,Gc,c)}function Q(a,c){return a&&c?c instanceof Function?c(a):I(a)&&v(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 Mc(a,c){return!0===c?!!P(a,Mc):I(a)?"true"===a.contentEditable:!1}function Nc(a,c,b){I(a)&&(!0===b?a.contentEditable=c?"true":"false":(a.contentEditable=c?"true":"inherit",c||a.removeAttribute("contenteditable")))}var Oc={};function Pc(a){var c=Oc[a];c?c.lastIndex=0:(c=new RegExp("(^|;)\\s*("+Ua(a)+")\\s*\\:\\s*(.*?)($|;)+","gi"),Pc[a]=c);return c}function Qc(a){return a&&a.getAttribute?a.A?a.I:a.getAttribute("style"):""}
function Rc(a){a&&a.getAttribute&&!a.A&&(a.A=!0,a.I=a.getAttribute?a.getAttribute("style"):"")}function Sc(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 Tc(a){a&&a.hasAttribute&&a.hasAttribute("style")&&(a.getAttribute("style").trim().length||a.removeAttribute("style"))}
function Uc(a,c){var b=Qc(a);if(null==b)return null;b=Pc(c).exec(b);return null===b?null:b[3].trim()}function Vc(a,c){var b=Qc(a);if(null==b)return"";b=b.replace(Pc(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 d=Vc(a,c);null!=b&&(d=d.trim(),d.length&&";"!==d[d.length-1]&&(d+=";"),d=d+c+":"+b+";",a.A?a.I=d:a.setAttribute("style",d))}
function Wc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return null;b=Pc(c).exec(b);return null===b?null:b[3].trim()}function Xc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return"";b=b.replace(Pc(c),"$1").trim();0<b.length?a.setAttribute("en-app-data",b):a.removeAttribute("en-app-data");return b||""}function Yc(a,c,b){var d=Xc(a,c);null!=b&&(d=d.trim(),d.length&&";"!==d[d.length-1]&&(d+=";"),a.setAttribute("en-app-data",d+c+":"+b+";"))}
function Zc(a,c){I(a)&&a.style?(a.style.display=c?"":"none",Tc(a)):w.warn("Failed to set visibility on non HTML element",a)}function $c(){var a;a="span";C(v("-evernote-sentoj-emoticon")||!0);return a+'[style*="-evernote-sentoj-emoticon"]'}function ad(a){a=U($c(),a,!0);return a=a.filter(function(a){return"true"===Uc(a,"-evernote-sentoj-emoticon")})}function bd(a){for(var c=[];a&&a.parentNode;)c.unshift(a.parentNode),a=a.parentNode;return c}
function U(a,c,b){if(""===a)return[];c||(c=document);try{return Oa(c.querySelectorAll(a),b)}catch(d){throw 0===d.toString().indexOf("Uncaught error in JS: SyntaxError: DOM Exception 12")&&w.error("Wrong syntax in selector:",a),d;}}function V(a,c){return U(a,c,!0)}function cd(a,c,b){for(;a&&(a=wc(a,b));)if(Q(a,c))return a;return null}function dd(a,c,b){for(;a&&(a=vc(a,b));)if(Q(a,c))return a;return null}var ed=/^[\t\n\r ]+$/;
function fd(a){ed.lastIndex=0;return xc(a)&&(""===a.data||ed.test(a.data))}function gd(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 hd(a,c,b){b=b||document.body;var d;if(!yc(a,b)){do if(I(a)&&a.hasAttribute("style")&&(d=a.style[c],null!=d))break;while((a=a.parentNode)&&b===a)}return d||""}
function id(a,c){var b;b=b||document.body;c=c||0;a=a||0;if(0===c)b.scrollTop=a;else{var d=b.scrollTop,e=a-d,f=0,g=function(){f+=20;var a;a=f;a/=c/2;1>a?a=e/2*a*a+d:(a--,a=-e/2*(a*(a-2)-1)+d);b.scrollTop=a;f<c&&window.setTimeout(g,20)};g()}}function jd(a,c){if(!I(a))return!1;var b=a.getBoundingClientRect();return kd(b.top,b.bottom,c)}function kd(a,c,b){var d=window.scrollY,e=d+window.innerHeight;null==b&&(b=55);a+=d;c+=d;return Math.max(0,Math.round((Math.min(e,c)-Math.max(d,a))/(c-a)*100))>=b}
var ld=new ub;function md(a,c){var b=ld.get(a);b||(b={},ld.set(a,b));c&&!b.id&&(b.id=rb().toString());return b}function nd(a,c){var b=a.id||md(a,!0).id;return c+"@"+b}function pd(a){return null==a?a:0<a.children.length?a.children[a.children.length-1]:null}function qd(){var a=document.querySelector("#en-tools");a||(a=M("div",{"class":"en-tools",id:"en-tools"}),document.body.appendChild(a));return a}
function Ec(a){var c=1;if(a){var b=document.querySelector("#en-note");if(b){for(var d=!1;a;){if(a===b){d=!0;break}a=a.parentNode}d&&void 0!==b.style&&void 0!==b.style.zoom&&""!==b.style.zoom&&(c=parseFloat(b.style.zoom),null!=c&&isFinite(c)||(c=1))}}return c};function rd(a,c,b,d){try{var e=document.createRange();null!=a&&(e.setStart(a||null,c||0),null!=b?e.setEnd(b||null,d||0):e.setEnd(a||null,c||0));return e}catch(f){}return null}function sd(a,c){if(null!=a&&(!c||td(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 W(a){var c=window.getSelection();if(1>c.rangeCount)return null;c=c.getRangeAt(0);return a&&c&&!td(c,a)?null:c?c.cloneRange():null}function ud(a){var c=document.createRange();c.selectNode(a);sd(c)}function vd(){window.getSelection().removeAllRanges()}function td(a,c){return a&&c?(a.startContainer===c||yc(a.startContainer,c))&&(a.endContainer===c||yc(a.endContainer,c)):!1}function wd(a,c,b){if(!a)return null;var d;return(d=P(xd(a),c,b))?d:a.collapsed?null:P(yd(a),c,b)}
function xd(a){return a?xc(a.startContainer)?a.startContainer:a.startContainer.childNodes[a.startOffset]||a.startContainer:null}function yd(a){return a?xc(a.endContainer)?a.endContainer:a.endContainer.childNodes[a.endOffset]||a.endContainer.lastChild||a.endContainer:null}function zd(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 Ad(a){return a?{startContainer:a.startContainer,startOffset:a.startOffset,endContainer:a.endContainer,endOffset:a.endOffset,collapsed:a.collapsed}:null}function Bd(a){if(!a)return null;try{var c=rd(a.startContainer,a.startOffset,a.endContainer,a.endOffset)}catch(b){c=null}return c}function Cd(a,c){if(!a||a.collapsed)return[];for(var b=[],d=a.commonAncestorContainer,e=a.startContainer;e&&a.intersectsNode(e);e=wc(e,d))c&&!Q(e,c)||b.push(e);return b}
function Dd(a){a=a.getClientRects();return 0<a.length?a[0]:null}
function Ed(a){if(null==a)return null;var c=Dd(a);if(null==c||a.collapsed){if(!Bc(a.startContainer))return null;var b=a.cloneRange();xc(b.startContainer)&&(0<b.startOffset&&b.setStart(b.startContainer,b.startOffset-1),c=Dd(b),!c&&b.startOffset<O(b.startContainer)-1&&(b=a.cloneRange(),b.setEnd(b.startContainer,b.startOffset+1),c=Dd(b)));if(!c)for(a=xd(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 Dc(c,{yg:!0})}
function Fd(a){if(null==a)return null;var c=Dd(a);return null==c?null:Dc(c,{Hb:Ec(a.startContainer)})}
function Gd(a){if(null!=a){var c=document.body.scrollTop,b=window.innerHeight,d=0,d=c+b,e;if(e=(e=Hd.env)&&null!=e.editorInset?e.editorInset:{top:0,bottom:0,left:0,right:0})0!==e.top&&(c+=e.top),0!==e.bottom&&(d-=e.bottom);a=null==a.nodeType?Ed(a):N(a);if(null!=a){var f=Math.min(24,b/12),g=f/2,h=null;a.bottom+g>d?h=Math.max(0,a.bottom-b+f):a.top-g<c&&(h=Math.max(0,a.top-f));null!=h&&(h!==e.top||0===e.top&&0===h)&&(document.body.scrollTop=h)}}}
function Id(a,c,b){if(c&&(c=P(a,c,b),null!==c))return c;for(;xc(a);)a=a.parentNode;return a}function Jd(a,c,b){var d=xd(a);a=yd(a);d=Id(d,c,b);a=Id(a,c,b);if(d===a)return[d,a];c=bd(d);b=bd(a);if(c[0]!==b[0])return[d,a];for(var e=0;e<c.length&&e<b.length&&c[e]===b[e];e++);d=[d,a];e<c.length&&(d[0]=c[e]);e<b.length&&(d[1]=b[e]);return d}
Range.prototype.intersectsNode||(w.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 Kd(a,c,b){b||(b=a);b=new Hc(a,b);do if(!c(a))return!1;while(a=b.A());return!0}function Ld(a){return!(!a||!a.nodeType||3===a.nodeType||-1==="img embed object input param hr".split(" ").indexOf(K(a))&&!E(a,"en-media")&&!E(a,"en-module"))}function Md(a){var c=0;return Kd(a,function(a){return!(xc(a)&&!fd(a)||S(a)&&1<++c||Ld(a))})}
function Nd(a){var c=0;return Kd(a,function(a){var d=!(a&&a.nodeType&&3!==a.nodeType&&"li"===K(a)),e=!Ld(a);S(a)&&(c+=1);var f=!(1<c);a=/^[ \t\n\r]*$/g.test(a.textContent||"");return d&&e&&f&&a})}function Od(a){return Kd(a.firstChild,function(a){return!(a&&!lb(a.textContent))&&!Ld(a)},a)};function Pd(a){a.preventDefault();a.stopPropagation();return!1}var Qd={};function Rd(){var a;a="onmouseenter";if(null!=Qd[a])return Qd[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 Qd[a]=b};var Sd={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 Td(a){var c={};a=String(a);var b="#"==a.charAt(0)?a:"#"+a;if(Ud(b))return c.hc=Vd(b),c.type="hex",c;a:{var d=a.match(Wd);if(d){var b=Number(d[1]),e=Number(d[2]),d=Number(d[3]);if(0<=b&&255>=b&&0<=e&&255>=e&&0<=d&&255>=d){b=[b,e,d];break a}}b=[]}if(b.length){a=b[0];e=b[1];b=b[2];a=Number(a);e=Number(e);b=Number(b);if(isNaN(a)||0>a||255<a||isNaN(e)||0>e||255<e||isNaN(b)||0>b||255<b)throw Error('"('+a+","+e+","+b+'") is not a valid RGB color');c.hc="#"+Xd(a.toString(16))+Xd(e.toString(16))+
Xd(b.toString(16));c.type="rgb";return c}if(Sd&&(b=Sd[a.toLowerCase()]))return c.hc=b,c.type="named",c;throw Error(a+" is not a valid color string");}var Yd=/#(.)(.)(.)/;function Vd(a){if(!Ud(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Yd,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Zd=/^#(?:[0-9a-f]{3}){1,2}$/i;function Ud(a){Zd.lastIndex=0;return Zd.test(a)}var Wd=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;
function Xd(a){return 1==a.length?"0"+a:a}function $d(a){if("currentcolor"===a.toLowerCase())return null;try{var c=Td(a),b;if(c.hc){var d=c.hc,d=Vd(d);b="rgb("+[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)].join(", ")+")"}else b=null;return b}catch(e){return null}}function ae(a){try{var c=Td(a);if(c.hc)return c.hc}catch(b){}return null};function be(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.mb||(Math.mb=function(a,c){return be("round",a,c||0)});Math.mg||(Math.mg=function(a,c){return be("floor",a,c||0)});Math.dg||(Math.dg=function(a,c){return be("ceil",a,c||0)});var ce=/^(\-?\d*\.?\d*)(px|em|\%|pt)?$/,de=0,ee=0;
function fe(a){var c=null;if("number"===typeof a)c={cc:"px",value:a,Ob:a.toString(),Cd:a||null};else{ce.lastIndex=0;var b=ce.exec(a);b&&(c={cc:b[2]||"px",value:parseFloat(b[1]),Ob:b[1],Cd:a||null})}return c}
function ge(a){a=a||document.body;a=Cc(a);de=fe(a.fontSize).value;C(!!de,"Did not find base font size",de,a.fontSize);a=M("div",{style:"height: 100pt; left: -100%; position: absolute; top: -100%; width: 100pt; "});document.body.appendChild(a);ee=a.offsetHeight/100;C(!!ee,"Did not find pt ratio",ee);H(a)}
function he(a,c,b){var d=a||null;if(v(a)){var e=fe(a);e?(a=e.value,b=e.cc):a=null}c||(c="px");if(!a)return{cc:c,value:0,Ob:"0",Cd:d,Nc:b};b||(b="px");if(b===c)return a=Math.mb(a),{cc:c,value:a,Ob:a+c,Cd:d,Nc:b};"px"===b&&"px"===c||C(0<de,"en.unit.init needs to get called first!");"px"===b?"em"===c?a=Math.mb(a/de):"%"===c?a=Math.mb(100*a/de):"pt"===c&&(a=Math.mb(a/ee)):"pt"===b?"em"===c?a=Math.mb(a*ee/de):"%"===c?a=Math.mb(100*a*ee/de):"px"===c&&(a=Math.mb(a*ee)):"%"===b?"em"===c?a=Math.mb(a/100):
"pt"===c?a=Math.mb(a*de/(100*ee)):"px"===c&&(a=Math.mb(a*de/100)):C(!1,"Not implemented yet",b,"=>",c);return{cc:c,value:a,Ob:a+c,Cd:d,Nc:b}}function ie(a){return he(a).value||0};function je(a,c){null==a&&(a=document.body);for(var b=a,d=c.length-1;0<=d&&null!=b;d--){var e=c[d];e>O(b)&&(e=O(b)-1);b=b.childNodes[e]}return b||null}function ke(a,c){var b=[];null==c&&(c=document.body);for(;a&&a.parentNode&&a!==c;){for(var d=0,e=a.parentNode.childNodes,f=0;f<e.length;f++)if(e[f]===a){d=f;break}b.push(d);a=a.parentNode}return b}
function le(a,c,b){for(var d=[];1==c.nodeType;){var e=c.childNodes[b];if(!e&&!c.lastChild)break;e?(c=e,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;e=c.node.parentNode;c.node=b?b.nextSibling:e.firstChild;b=c;for(c=b.node;c&&c.parentNode&&c!==a;){for(var f=e=0,g=c.parentNode.childNodes,h=0;h<g.length;h++){var m=g[h];3!==m.nodeType&&0<f&&(++e,f=0);if(m===c)break;
3===m.nodeType?f+=O(m):++e}d.push(e);c=c.parentNode}return{path:d,offset:b.offset}}function me(a,c,b){null==a&&(a=document.body);var d="";c&&(b?(b=le(a,c.startContainer,c.startOffset),a=le(a,c.endContainer,c.endOffset),d={startPath:b.path,startOffset:b.offset,endPath:a.path,endOffset:a.offset,collapsed:c.collapsed}):d={startPath:ke(c.startContainer,a),startOffset:c.startOffset,endPath:ke(c.endContainer,a),endOffset:c.endOffset,collapsed:c.collapsed});return JSON.stringify(d)}
function ne(a,c){null==a&&(a=document.body);if(!c)return null;var b=JSON.parse(c),d;if(b&&b instanceof Object)a:{var e=a;null==e&&(e=document.body);if(void 0===e||!b)throw"All arguments required";try{var f=je(e,b.startPath),g=je(e,b.endPath);if(!f||!g){d=null;break a}var h=rd(f,b.startOffset,g,b.endOffset);b.collapsed&&h.collapse(!0);d=h;break a}catch(m){w.error("Exception <$>",m.toString())}d=null}else d=null;return d}
function oe(a,c){null==a&&(a=document.body);var b=W(a);return b?me(a,b,c):null}function pe(a,c){null==a&&(a=document.body);oe(a);if(c){var b=ne(a,c);b&&sd(b)}};var qe;
qe=function(a,c){function b(){this.A=[];this.add=function(a){this.A.push(a)};var a,b;this.call=function(){a=0;for(b=this.A.length;a<b;a++)this.A[a].call()}}this.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(a){return window.setTimeout(a,20)};this.getComputedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:window.getComputedStyle?window.getComputedStyle(a,null).getPropertyValue(b):a.style[b]};this.A=function(a,
c){function d(a,b){a.attachEvent?a.attachEvent("onscroll",b):a.addEventListener("scroll",b)}function k(){if((z=a.offsetWidth)!=q||(x=a.offsetHeight)!=A)p=!0,q=z,A=x;n()}function l(){a.ac&&(p&&(a.ac.call(),p=!1),requestAnimationFrame(l))}function n(){e.style.width="100000px";e.style.height="100000px";f.scrollLeft=1E5;f.scrollTop=1E5;u.scrollLeft=1E5;u.scrollTop=1E5}if(!a.ac)a.ac=new b,a.ac.add(c);else if(a.ac){a.ac.add(c);return}a.lb=document.createElement("div");a.lb.className="resize-sensor";a.lb.style.cssText=
"position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";a.lb.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
a.appendChild(a.lb);"static"==getComputedStyle(a,"position")&&(a.style.position="relative");var f=a.lb.childNodes[0],e=f.childNodes[0],u=a.lb.childNodes[1];n();var p=!1;requestAnimationFrame(l);var q,A,z,x;d(f,k);d(u,k)};var d=Object.prototype.toString.call(a),e="[object Array]"===d||"[object NodeList]"===d||"[object HTMLCollection]"===d;if(e)for(var d=0,f=a.length;d<f;d++)this.A(a[d],c);else this.A(a,c);this.detach=function(){if(e)for(var b=0,c=a.length;b<c;b++)qe.detach(a[b]);else qe.detach(a)}};
qe.detach=function(a){a.lb&&(a.removeChild(a.lb),delete a.lb,delete a.ac)};var re={ar:{"Not available offline":"\u0644\u0627 \u064a\u062a\u0648\u0641\u0631 \u062f\u0648\u0646 \u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a","Not available":"\u063a\u064a\u0631 \u0645\u062a\u0627\u062d","Tap to request access":"\u0627\u0636\u063a\u0637 \u0644\u0637\u0644\u0628 \u0627\u0644\u0648\u0635\u0648\u0644","Click to request access":"\u0627\u0636\u063a\u0637 \u0644\u0637\u0644\u0628 \u0627\u0644\u0648\u0635\u0648\u0644",Open:"\u0641\u062a\u062d",
"Google Drive":"\u062c\u0648\u062c\u0644 \u062f\u0631\u0627\u064a\u0641","Google Docs":"\u0645\u0633\u062a\u0646\u062f\u0627\u062a \u062c\u0648\u062c\u0644","Google Sheets":"\u0623\u0648\u0631\u0627\u0642 \u062c\u0648\u062c\u0644","Google Slides":"\u0634\u0631\u0627\u0626\u062d \u062c\u0648\u062c\u0644",PDF:"PDF","Word Document":"\u0645\u0633\u062a\u0646\u062f Word","Excel Spreadsheet":"\u062c\u062f\u0648\u0644 \u0628\u064a\u0627\u0646\u0627\u062a Excel",Modified:"\u062a\u0645 \u062a\u0639\u062f\u064a\u0644\u0647",
Connect:"\u0627\u062a\u0635\u0627\u0644","Title not available":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d","Open containing folder":"\u0641\u062a\u062d \u0627\u0644\u0645\u062c\u0644\u062f \u0627\u0644\u0631\u0626\u064a\u0633\u064a","Not logged in":"\u063a\u064a\u0631 \u0645\u0633\u062c\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",Refresh:"\u062a\u062d\u062f\u064a\u062b"},cs:{"Not available offline":"Offline nen\u00ed dostupn\u00fd","Not available":"Nen\u00ed k dispozici",
"Tap to request access":"Klepnut\u00edm vy\u017e\u00e1dejte p\u0159\u00edstup","Click to request access":"Kliknut\u00edm vy\u017e\u00e1dejte p\u0159\u00edstup",Open:"Otev\u0159\u00edt","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Dokument aplikace Word","Excel Spreadsheet":"Tabulka v aplikaci Excel",Modified:"Zm\u011bn\u011bno",Connect:"P\u0159ipojit","Title not available":"N\u00e1zev nen\u00ed k dispozici",
"Open containing folder":"Otev\u0159\u00edt slo\u017eku se soubory","Not logged in":"Not logged in",Refresh:"Aktualizovat"},da:{"Not available offline":"Ikke tilg\u00e6ngelig offline","Not available":"Ikke tilg\u00e6ngelig","Tap to request access":"Tryk for at anmode om adgang","Click to request access":"Klik for at anmode om adgang",Open:"\u00c5bn","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word-dokument",
"Excel Spreadsheet":"Excel-regneark",Modified:"\u00c6ndret",Connect:"Opret forbindelse","Title not available":"Titel ikke tilg\u00e6ngelig","Open containing folder":"\u00c5bn indeholdende mappe","Not logged in":"Du er ikke logget p\u00e5",Refresh:"Genindl\u00e6s"},de:{"Not available offline":"Nicht offline verf\u00fcgbar","Not available":"Nicht verf\u00fcgbar","Tap to request access":"Zur Anforderung von Zugriff tippen","Click to request access":"Zur Anforderung von Zugriff klicken",Open:"\u00d6ffnen",
"Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Tabellen","Google Slides":"Google Pr\u00e4sentationen",PDF:"PDF","Word Document":"Word-Dokument","Excel Spreadsheet":"Excel-Tabellenblatt",Modified:"Ge\u00e4ndert",Connect:"Verbinden","Title not available":"Titel nicht verf\u00fcgbar","Open containing folder":"\u00dcbergeordneten Ordner \u00f6ffnen","Not logged in":"Nicht angemeldet",Refresh:"Aktualisieren"},en:{"Not available offline":"Not available offline","Not available":"Not available",
"Tap to request access":"Tap to request access","Click to request access":"Click to request access",Open:"Open","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word Document","Excel Spreadsheet":"Excel Spreadsheet",Modified:"Modified",Connect:"Connect","Title not available":"Title not available","Open containing folder":"Open containing folder","Not logged in":"Not logged in",Refresh:"Refresh"},es:{"Not available offline":"No disponible sin conexi\u00f3n",
"Not available":"No disponible","Tap to request access":"Pulsa para solicitar acceso","Click to request access":"Haz clic para solicitar acceso",Open:"Abrir","Google Drive":"Google Drive","Google Docs":"Documentos de Google","Google Sheets":"Hojas de c\u00e1lculo de Google","Google Slides":"Presentaciones de Google",PDF:"PDF","Word Document":"Documento Word","Excel Spreadsheet":"Hoja de c\u00e1lculo Excel",Modified:"Modificado",Connect:"Conectar","Title not available":"T\u00edtulo no disponible",
"Open containing folder":"Abrir carpeta archivadora de contenidos","Not logged in":"No se ha iniciado sesi\u00f3n",Refresh:"Refrescar"},fi:{"Not available offline":"Ei k\u00e4ytett\u00e4viss\u00e4 offline","Not available":"Ei k\u00e4ytett\u00e4viss\u00e4","Tap to request access":"Pyyd\u00e4 k\u00e4ytt\u00f6oikeus napauttamalla","Click to request access":"Napsauta pyyt\u00e4\u00e4ksesi k\u00e4ytt\u00f6oikeuksia",Open:"Avaa","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets",
"Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word-asiakirja","Excel Spreadsheet":"Excel-laskentataulukko",Modified:"Muokattu",Connect:"Yhdist\u00e4","Title not available":"Otsikko ei saatavilla","Open containing folder":"Avaa tallennuskansio","Not logged in":"Et ole kirjautunut sis\u00e4\u00e4n",Refresh:"P\u00e4ivit\u00e4"},fr:{"Not available offline":"Non disponible hors-ligne","Not available":"Indisponible","Tap to request access":"Appuyez pour demander l'acc\u00e8s","Click to request access":"Cliquez pour demander l'acc\u00e8s",
Open:"Ouvrir","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Document Word","Excel Spreadsheet":"Feuille de calcul Excel",Modified:"Modifi\u00e9",Connect:"Connecter","Title not available":"Titre non disponible","Open containing folder":"Ouvrir le dossier conteneur","Not logged in":"Non connect\u00e9",Refresh:"Actualiser"},id:{"Not available offline":"Tidak tersedia offline","Not available":"Tidak tersedia",
"Tap to request access":"Tekan untuk meminta akses","Click to request access":"Klik untuk meminta akses",Open:"Buka","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Dokumen Word","Excel Spreadsheet":"Lembar Lajur Excel",Modified:"Diubah",Connect:"Sambungkan","Title not available":"Judul tidak tersedia","Open containing folder":"Buka map yang menampung","Not logged in":"Belum masuk",Refresh:"Segarkan"},
it:{"Not available offline":"Non disponibile offline","Not available":"Non disponibile","Tap to request access":"Tocca per richiedere accesso","Click to request access":"Clicca per richiedere accesso",Open:"Apri","Google Drive":"Google Drive","Google Docs":"Documenti Google","Google Sheets":"Fogli Google","Google Slides":"Presentazioni Google",PDF:"PDF","Word Document":"Documento di Word","Excel Spreadsheet":"Foglio di lavoro di Excel",Modified:"Modificato",Connect:"Connettiti","Title not available":"Titolo non disponibile",
"Open containing folder":"Apri cartella contenente","Not logged in":"Accesso non eseguito",Refresh:"Aggiorna"},ja:{"Not available offline":"\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093","Not available":"\u5229\u7528\u3067\u304d\u307e\u305b\u3093","Tap to request access":"\u30bf\u30c3\u30d7\u3067\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u30ea\u30af\u30a8\u30b9\u30c8","Click to request access":"\u30af\u30ea\u30c3\u30af\u3067\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u30ea\u30af\u30a8\u30b9\u30c8",
Open:"\u958b\u304f","Google Drive":"Google \u30c9\u30e9\u30a4\u30d6","Google Docs":"Google \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8","Google Sheets":"Google \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8","Google Slides":"Google \u30b9\u30e9\u30a4\u30c9",PDF:"PDF","Word Document":"Word \u6587\u66f8","Excel Spreadsheet":"Excel \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8",Modified:"\u5909\u66f4",Connect:"\u63a5\u7d9a","Title not available":"\u30bf\u30a4\u30c8\u30eb\u3092\u8868\u793a\u3067\u304d\u307e\u305b\u3093",
"Open containing folder":"\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304f","Not logged in":"\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u305b\u3093",Refresh:"\u66f4\u65b0"},ko:{"Not available offline":"\uc624\ud504\ub77c\uc778\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc74c","Not available":"\uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","Tap to request access":"\ub20c\ub7ec\uc11c \uc561\uc138\uc2a4 \uc694\uccad","Click to request access":"\ud074\ub9ad\ud558\uc5ec \uc561\uc138\uc2a4 \uc694\uccad",
Open:"\uc5f4\uae30","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google \ud504\ub808\uc820\ud14c\uc774\uc158",PDF:"PDF","Word Document":"Word \ubb38\uc11c","Excel Spreadsheet":"Excel \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8",Modified:"\uc218\uc815",Connect:"\uc5f0\uacb0","Title not available":"\uc81c\ubaa9 \uc54c \uc218 \uc5c6\uc74c","Open containing folder":"\ud3ec\ud568 \ud3f4\ub354 \uc5f4\uae30","Not logged in":"\ub85c\uadf8\uc778\ud558\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4",
Refresh:"\uc0c8\ub85c \uace0\uce68"},ms:{"Not available offline":"Tidak tersedia di luar talian","Not available":"Tidak tersedia","Tap to request access":"Ketik untuk meminta akses","Click to request access":"Klik untuk meminta akses",Open:"Buka","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Dokumen Word","Excel Spreadsheet":"Hamparan Excel",Modified:"Diubah suai",Connect:"Sambung","Title not available":"Tajuk tidak tersedia",
"Open containing folder":"Buka folder yang mengandungi","Not logged in":"Tidak log masuk",Refresh:"Muat semula"},nl:{"Not available offline":"Niet offline beschikbaar","Not available":"Niet beschikbaar","Tap to request access":"Tik om toegang aan te vragen","Click to request access":"Klik om toegang aan te vragen",Open:"Open","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word-document","Excel Spreadsheet":"Excel-spreadsheet",
Modified:"Aangepast",Connect:"Koppel","Title not available":"Titel niet beschikbaar","Open containing folder":"Open bijbehorende map","Not logged in":"Niet ingelogd",Refresh:"Vernieuwen"},no:{"Not available offline":"Ikke tilgjengelig offline","Not available":"Ikke tilgjengelig","Tap to request access":"Trykk for \u00e5 be om tilgang","Click to request access":"Klikk for \u00e5 be om tilgang",Open:"\u00c5pne","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets",
"Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word-dokument","Excel Spreadsheet":"Excel regneark",Modified:"Modifisert",Connect:"Koble til","Title not available":"Tittel ikke tilgjengelig","Open containing folder":"\u00c5pne mappe med innhold","Not logged in":"Ikke logget inn",Refresh:"Oppdater"},pl:{"Not available offline":"Niedost\u0119pne w trybie offline","Not available":"Niedost\u0119pne","Tap to request access":"Dotknij, aby za\u017c\u0105da\u0107 dost\u0119pu","Click to request access":"Kliknij, aby poprosi\u0107 o dost\u0119p",
Open:"Otw\u00f3rz","Google Drive":"Dysk Google","Google Docs":"Dokumenty Google","Google Sheets":"Arkusze Google","Google Slides":"Prezentacje Google",PDF:"PDF","Word Document":"Dokument Word","Excel Spreadsheet":"Arkusz Excel",Modified:"Edytowany",Connect:"Po\u0142\u0105cz","Title not available":"Nazwa jest niedost\u0119pna","Open containing folder":"Otw\u00f3rz folder zawieraj\u0105cy","Not logged in":"Nie zalogowano",Refresh:"Od\u015bwie\u017c"},pt_BR:{"Not available offline":"N\u00e3o dispon\u00edvel offline",
"Not available":"N\u00e3o est\u00e1 dispon\u00edvel","Tap to request access":"Toque para solicitar acesso","Click to request access":"Clique para solicitar acesso",Open:"Abrir","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Planilhas do Google","Google Slides":"Apresenta\u00e7\u00f5es do Google",PDF:"PDF","Word Document":"Documento do Word","Excel Spreadsheet":"Planilha do Excel",Modified:"Modificado em",Connect:"Conectar","Title not available":"T\u00edtulo n\u00e3o dispon\u00edvel",
"Open containing folder":"Abrir pasta de destino","Not logged in":"N\u00e3o conectado",Refresh:"Atualizar"},pt:{"Not available offline":"N\u00e3o dispon\u00edvel offline","Not available":"Indispon\u00edvel","Tap to request access":"Toque para solicitar acesso","Click to request access":"Clique para solicitar acesso",Open:"Abrir","Google Drive":"Google Drive","Google Docs":"Documentos do Google","Google Sheets":"Folhas de c\u00e1lculo do Google","Google Slides":"Apresenta\u00e7\u00f5es do Google",
PDF:"PDF","Word Document":"Documento do Word","Excel Spreadsheet":"Tabela do Excel",Modified:"Modificado em",Connect:"Ligar","Title not available":"T\u00edtulo indispon\u00edvel","Open containing folder":"Abrir pasta de destino","Not logged in":"N\u00e3o tem nenhuma sess\u00e3o iniciada",Refresh:"Atualizar"},ru:{"Not available offline":"\u041d\u0435\u0442 \u043e\u0444\u043b\u0430\u0439\u043d-\u0434\u043e\u0441\u0442\u0443\u043f\u0430","Not available":"\u041d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d",
"Tap to request access":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430","Click to request access":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430",Open:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",
PDF:"PDF","Word Document":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 Word","Excel Spreadsheet":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 Excel",Modified:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d",Connect:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c","Title not available":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e","Open containing folder":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043f\u043a\u0443",
"Not logged in":"\u0412\u044b \u043d\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u044b",Refresh:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c"},sv:{"Not available offline":"Ej tillg\u00e4nglig offline","Not available":"Ej tillg\u00e4ngligt","Tap to request access":"Tryck f\u00f6r att beg\u00e4ra \u00e5tkomst","Click to request access":"Klicka f\u00f6r att beg\u00e4ra \u00e5tkomst",Open:"\u00d6ppna","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets",
"Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word-dokument","Excel Spreadsheet":"Excel-kalkylblad",Modified:"\u00c4ndrad",Connect:"Anslut","Title not available":"Titeln finns inte","Open containing folder":"\u00d6ppna objektets mapp","Not logged in":"Inte inloggad",Refresh:"Uppdatera"},th:{"Not available offline":"\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e2d\u0e19\u0e2d\u0e2d\u0e1f\u0e44\u0e25\u0e19\u0e4c\u0e44\u0e14\u0e49","Not available":"\u0e44\u0e21\u0e48\u0e21\u0e35",
"Tap to request access":"\u0e41\u0e15\u0e30\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07","Click to request access":"\u0e04\u0e25\u0e34\u0e4a\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07",Open:"\u0e40\u0e1b\u0e34\u0e14","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"\u0e40\u0e2d\u0e01\u0e2a\u0e32\u0e23 Word","Excel Spreadsheet":"\u0e2a\u0e40\u0e1b\u0e23\u0e14\u0e0a\u0e35\u0e17 Excel",
Modified:"\u0e1b\u0e23\u0e31\u0e1a\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e25\u0e49\u0e27",Connect:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d","Title not available":"\u0e44\u0e21\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d","Open containing folder":"\u0e40\u0e1b\u0e34\u0e14\u0e41\u0e1f\u0e49\u0e21\u0e40\u0e2d\u0e01\u0e2a\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e01\u0e47\u0e1a","Not logged in":"\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a",
Refresh:"\u0e23\u0e35\u0e40\u0e1f\u0e23\u0e0a"},tr:{"Not available offline":"\u00c7evrimd\u0131\u015f\u0131 kullan\u0131lamaz","Not available":"Eri\u015fim sa\u011flanam\u0131yor","Tap to request access":"Eri\u015fim talebi i\u00e7in t\u0131klay\u0131n","Click to request access":"Eri\u015fim talebi i\u00e7in t\u0131klay\u0131n",Open:"A\u00e7","Google Drive":"Google Drive","Google Docs":"Google Dok\u00fcmanlar","Google Sheets":"Google E-Tablolar","Google Slides":"Google Slaytlar",PDF:"PDF","Word Document":"Word Belgesi",
"Excel Spreadsheet":"Excel Tablosu",Modified:"De\u011fi\u015ftirildi",Connect:"Ba\u011flan","Title not available":"Ba\u015fl\u0131\u011fa eri\u015filemiyor","Open containing folder":"Bulundu\u011fu klas\u00f6r\u00fc a\u00e7","Not logged in":"Oturum a\u00e7\u0131lmad\u0131",Refresh:"Yenile"},uk:{"Not available offline":"\u041d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0432 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456",
"Not available":"\u041d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439","Tap to request access":"\u0422\u043e\u0440\u043a\u043d\u0456\u0442\u044c\u0441\u044f, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f","Click to request access":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f",Open:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438",
"Google Drive":"\u0414\u0438\u0441\u043a Google","Google Docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438 Google","Google Sheets":"\u0422\u0430\u0431\u043b\u0438\u0446\u044f Google","Google Slides":"\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0456\u044f Google",PDF:"PDF","Word Document":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 Word","Excel Spreadsheet":"\u0422\u0430\u0431\u043b\u0438\u0446\u044f Excel",Modified:"\u0417\u043c\u0456\u043d\u0435\u043d\u0438\u0439",Connect:"\u041f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438\u0441\u044f",
"Title not available":"\u041d\u0430\u0437\u0432\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430","Open containing folder":"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u043f\u0430\u043f\u043a\u0443","Not logged in":"Not logged in",Refresh:"\u041e\u043d\u043e\u0432\u0438\u0442\u0438"},vi:{"Not available offline":"Kh\u00f4ng kh\u1ea3 d\u1ee5ng \u1edf ch\u1ebf \u0111\u1ed9 ngo\u1ea1i tuy\u1ebfn","Not available":"Kh\u00f4ng kh\u1ea3 d\u1ee5ng","Tap to request access":"Nh\u1ea5p \u0111\u1ec3 y\u00eau c\u1ea7u quy\u1ec1n truy c\u1eadp",
"Click to request access":"Nh\u1ea5p \u0111\u1ec3 y\u00eau c\u1ea7u quy\u1ec1n truy c\u1eadp",Open:"M\u1edf","Google Drive":"Google Drive","Google Docs":"Google Docs","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"T\u00e0i li\u1ec7u Word","Excel Spreadsheet":"B\u1ea3ng t\u00ednh Excel",Modified:"\u0110\u00e3 s\u1eeda \u0111\u1ed5i",Connect:"K\u1ebft n\u1ed1i","Title not available":"Ti\u00eau \u0111\u1ec1 kh\u00f4ng kh\u1ea3 d\u1ee5ng","Open containing folder":"M\u1edf th\u01b0 m\u1ee5c ch\u1ee9a",
"Not logged in":"Ch\u01b0a \u0111\u0103ng nh\u1eadp",Refresh:"L\u00e0m m\u1edbi"},zh_CN:{"Not available offline":"\u672a\u79bb\u7ebf\u7684\u7b14\u8bb0\u672c","Not available":"\u4e0d\u53ef\u7528","Tap to request access":"\u70b9\u51fb\u7533\u8bf7\u6743\u9650","Click to request access":"\u70b9\u51fb\u7533\u8bf7\u6743\u9650",Open:"\u6253\u5f00","Google Drive":"Google Drive","Google Docs":"Google\u6587\u6863","Google Sheets":"Google Sheets","Google Slides":"Google Slides",PDF:"PDF","Word Document":"Word\u6587\u6863",
"Excel Spreadsheet":"Excel\u6570\u636e\u8868\u683c",Modified:"\u5df2\u4fee\u6539",Connect:"\u8fde\u63a5","Title not available":"\u6807\u9898\u4e0d\u53ef\u7528","Open containing folder":"\u6253\u5f00\u5305\u542b\u7684\u6587\u4ef6\u5939","Not logged in":"\u672a\u767b\u5f55",Refresh:"\u5237\u65b0"},zh_TW:{"Not available offline":"\u4e0d\u53ef\u96e2\u7dda\u5b58\u53d6","Not available":"\u4e0d\u9069\u7528","Tap to request access":"\u9ede\u64ca\u4ee5\u8acb\u6c42\u5b58\u53d6","Click to request access":"\u9ede\u64ca\u4ee5\u8acb\u6c42\u5b58\u53d6",
Open:"\u958b\u555f","Google Drive":"Google \u96f2\u7aef\u786c\u789f","Google Docs":"Google \u6587\u4ef6","Google Sheets":"Google \u8a66\u7b97\u8868","Google Slides":"Google \u7c21\u5831",PDF:"PDF","Word Document":"Word \u6587\u4ef6","Excel Spreadsheet":"Excel \u8a66\u7b97\u8868",Modified:"\u5df2\u4fee\u6539",Connect:"\u9023\u7d50","Title not available":"\u7121\u6a19\u984c","Open containing folder":"\u958b\u555f\u6240\u5c6c\u8cc7\u6599\u593e","Not logged in":"\u5c1a\u672a\u767b\u5165",Refresh:"\u91cd\u65b0\u6574\u7406"},
en_XA:{"Not available offline":"[Not available offline xxxxxxxxx]","Not available":"[Not available xxxxxxxx]","Tap to request access":"[Tap to request access xxxxxxxxx]","Click to request access":"[Click to request access xxxxxxxxxx]",Open:"[Open xxx]","Google Drive":"[Google Drive xxxxxxx]","Google Docs":"[Google Docs xxxxxx]","Google Sheets":"[Google Sheets xxxxxxxx]","Google Slides":"[Google Slides xxxxxxxx]",PDF:"[PDF xx]","Word Document":"[Word Document xxxxxxxx]","Excel Spreadsheet":"[Excel Spreadsheet xxxxxxxxxx]",
Modified:"[Modified xxxxxxx]",Connect:"[Connect xxxxxx]","Title not available":"[Title not available xxxxxxxxxx x]","Open containing folder":"[Open containing folder xxxxxxxxxx]","Not logged in":"[Not logged in xxxxxxxx]",Refresh:"[Refresh xxxxxx]"}};function se(){var a=this;a.name="observer";var c=null,b={};a.xd=function(a,c,f){var g=rb().toString();b[g]={name:g,xe:a,F:c,V:f||Ia,cd:new ub}};a.D=function(){var a,e,f,g=Object.keys(b);for(a=0;a<g.length;a++){var h=b[g[a]],m=U(h.xe,c);for(e=0;e<m.length;e++){var k=m[e];h.cd.has(k)||(f=h.F(k),h.cd.set(k,f))}k=h.cd;for(e=k.Ba.length-1;0<=e;e--){var l=k.Ba[e];-1===m.indexOf(l)&&(f=k.pb[e],h.V(l,f),f=k,l=e,f.Ba.splice(l,1),f.pb.splice(l,1))}}};a.F=function(b){c=D(b,{root:null}).root||a.H("context").root;
a.B.I("execCommand",a.D.bind(a));a.B.listener(document,"input",a.D.bind(a));a.B.ha(c,"contentReady",a.D.bind(a),-1)};a.V=function(){c=null}};function te(a){function c(a,b,c){this.Lf=a;this.jg=b;this.title=c||null}C(this instanceof te,"Use `new` to instantiate this class");var b=[],d=[],e=a&&a.maxLength||0;this.Xa=function(a,g,h){if(a)if(g){if(a=new c(a,g,h),d=[],a.Lf(),b.push(a),1<e)for(;b.length>e;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";else throw"UndoRedo.do missing required parameter 'up'.";};this.register=function(a,g,h){if(a)if(g){if(a=new c(a,g,h),d=[],b.push(a),1<e)for(;b.length>e;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";
else throw"UndoRedo.do missing required parameter 'up'.";};this.A=function(){b&&0!==b.length&&b.pop()};this.N=function(){return 0<b.length};this.J=function(){return 0<d.length};this.O=function(){return b&&0!==b.length?b[b.length-1].title:null};this.K=function(){return d&&0!==d.length?d[d.length-1].title:null};this.M=function(){var a=b.pop();return a?(a.jg(),d.push(a),!0):!1};this.I=function(){var a=d.pop();return a?(a.Lf(),b.push(a),!0):!1};this.clear=function(){b=[];d=[]}};function ue(){function a(a,b,c){c=c||M("div");c.setAttribute("data-en-overlay-id",a);c.setAttribute("data-en-layout-algorithm",b);Uc(c,"z-index")||T(c,"z-index","900");T(c,"position","absolute");h.appendChild(c);return c}function c(a,b){d.Ga(b).forEach(function(a){d.detach(a)});null!=g[b]&&delete g[b];ld.remove(a)}function b(){for(var a,b,d=Object.keys(f),h=0;h<d.length;h++){var m=f[d[h]],g=U(m.xe,e),p=m.cd,q=[];for(a=p.Ba.length-1;0<=a;a--){var A=p.Ba[a];if(-1===g.indexOf(A)){b=p.pb[a];m.V(A,b);
var z=p,x=a;z.Ba.splice(x,1);z.pb.splice(x,1);q.push([A,b.id])}}for(a=q.length-1;0<=a;a--)c.apply(this,q[a]);for(a=0;a<g.length;a++)q=g[a],p.has(q)||(b={id:md(q,!0).id},p.set(q,b),m.F(q,b))}}var d=this;d.name="layer";var e=null,f={},g={},h=null,m=!1;d.D={};d.D.cover=function(a,b){var c=N(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"};d.D.anchor=function(a,b){var c=N(a);b.style.top=c.top+"px";b.style.left=c.left+"px"};d.D.bottomRightCorner=
function(a,b){var c=N(a),d=document.documentElement.clientWidth-c.right;b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.right=d+"px"};d.D.bottomLeftCorner=function(a,b){var c=N(a);b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.left=c.left+"px"};d.D.bottomRightResizeHandle=function(a,b){var c=N(a),d=document.documentElement.clientWidth-c.right-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.right=d+"px"};d.D.bottomLeftResizeHandle=
function(a,b){var c=N(a),d=c.left-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.left=d+"px"};d.D.rightEdge=function(a,b){var c=Math.floor(N(b).width/2),d=N(a),c=document.documentElement.clientWidth-d.right-c,f=document.documentElement.clientHeight-d.bottom;b.style.top=d.top+"px";b.style.right=c+"px";b.style.bottom=f+"px"};d.D.leftEdge=function(a,b){var c=Math.floor(N(b).width/2),d=N(a),c=d.left-c,f=document.documentElement.clientHeight-d.bottom;b.style.top=d.top+"px";
b.style.left=c+"px";b.style.bottom=f+"px"};d.D.tableColumnEdge=function(a,b){d.D.rightEdge(a,b);var c=P(a,"table"),c=document.documentElement.clientHeight-N(c).bottom;b.style.bottom=c+"px"};d.xd=function(a,b,c){var d=rb().toString();f[d]={name:d,xe:a,F:b,V:c||Ia,cd:new ub}};d.Le=function(){return h};d.J=function(a){return a.getAttribute("data-en-layout-algorithm")};d.Ga=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=md(a).id;if(null==a)return[];b='[data-en-overlay-id="'+a+'"]'}else return[];return U(b,h)};d.getParent=function(a){return(a=g[a])&&a.node||null};d.Mf=function(a){if(a){var b=a.getAttribute("data-en-overlay-id");if(null!=b){var n=d.getParent(b);if(null==n)d.detach(a);else if(Bc(n)){if(b=d.J(a),null!=b&&"undefined"!==typeof d.D[b])d.D[b](n,a)}else c(n,b)}}};d.wa=function(a){!0===a&&(m=!0);m&&b();a=d.Ga();for(var c=0;c<a.length;c++)d.Mf(a[c])};d.Za=function(b,c,n){c=c||"cover";C("undefined"!==
typeof d.D[c],"Invalid layout algorithm:",c);C(I(b),"Expected a node!");var f=md(b,!0).id;C(!!f&&v(f),"Expected an ID");f in g?++g[f].Fd:g[f]={node:b,Fd:1};n=a(f,c,n);d.D[c](b,n);return n};d.R=function(b,c,f){f=f||"cover";C("undefined"!==typeof d.D[f],"Invalid layout algorithm:",f);C(I(b),"Expected a node!");var e=md(b,!0).id;C(!!e&&v(e),"Expected an ID");e in g?++g[e].Fd:g[e]={node:b,Fd:1};for(var h=0;h<c.length;h++)c[h]=a(e,f,c[h]),d.D[f](b,c[h]);return c};d.N=function(a){null==a&&(a=M("div"));
h.appendChild(a);return a};d.detach=function(a){var b=a.getAttribute("data-en-overlay-id"),c=g[b];c&&0>=--c.Fd&&delete g[b];H(a);return b};d.ud=function(a,b,c,f,e){var h=!0;null==h&&(h=!1);var m=!1,g,A,z,x,B=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==e?"":e)});d.B.listener(a,"mousedown",function(a){m=!0;g=a.pageX;A=a.pageY;z=a.pageX;x=a.pageY;
!0===h&&d.Le().appendChild(B);null!=b&&b()});d.B.listener(window,"mousemove",function(a){if(!1!==m){z=a.pageX;x=a.pageY;a=z-g;var b=x-A;null!=c&&c(a,b)}});d.B.listener(window,"mouseup",function(a){if(!1!==m){m=!1;z=a.pageX;x=a.pageY;a=z-g;var b=x-A;!0===h&&H(B);null!=f&&f(a,b)}})};d.F=function(a){e=D(a,{root:null}).root||d.H("context").root;h=qd();C(I(e));C(I(h));d.B.I("windowResize",d.wa.bind(d,!1),-2E3);d.B.I("execCommand",d.wa.bind(d,!0),-2E3);d.B.listener(document,"input",d.wa.bind(d,!0));d.wa(!0)};
d.V=function(){d.Ga().forEach(function(a){d.detach(a)});e=null}};function ve(a){return Q(a,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)")?!0:!1};function we(){function a(a){c(a.target)}function c(a){fb(k.Ga(a),function(a){E(a,"img-resizer-handle")&&k.detach(a)})}function b(a){d(a.target)}function d(a){if(ve(a))if(1!==u.length)U(".img-resizer-handle",k.Le()).forEach(function(a){a=k.getParent(a);c(a)});else{var b=!1;fb(k.Ga(a),function(a){if(E(a,"img-resizer-handle"))return b=!0,gb});if(!0!==b){var d=l.Ke(a),f=d===a.naturalWidth;if(!(142>=d)){var h=e(a),m="right"===e(a)?"bottomLeftResizeHandle":"bottomRightResizeHandle",g=k.Za(a,m);T(g,"z-index",
"901");F(g,"img-resizer-handle");F(g,m);var t;"bottomRightResizeHandle"===m?t="cursor: nwse-resize;":"bottomLeftResizeHandle"===m&&(t="cursor: nesw-resize;");var xa=function(){T(a,"height","auto");var b=N(a),c=Ec(a);Vc(a,"width");a.setAttribute("width",b.width/c)},ha=N(a);k.ud(g,function(){null!=r&&w.warn("Multiple images being resized at once! <$>");r=a;xa()},function(b){var c,e=N(n).width;"right"===h?c=ha.width-b:c="center"===h?ha.width+2*b:ha.width+b;b=c/Ec(a);142>=b?a.setAttribute("width","142"):
c>=e||b>=d?(a.removeAttribute("width"),!1===f&&(l.Me(a),xa())):a.setAttribute("width",""+b);k.wa()},function(){r=null;ha=N(a);Y(n,"setDirty",{Sc:!0});ud(a)},t)}}}}function e(a){a=(a=Cc(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-richlink-placeholder):not(.en-object-placeholder)")&&(t=!1,ud(a.target))}function g(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)")&&
ud(a.target)}function h(a){!1!==!!a.getAttribute("data-en-img-selected")&&(a.removeAttribute("data-en-img-selected"),fb(k.Ga(a),function(a){E(a,"img-selected-overlay")&&k.detach(a)}))}var m=this,k=null,l=null,n=null,t=!0;m.name="ui-img-resize";var r,u=[];m.F=function(){n=m.H("context").root;F(n,"en-ui-img-on");k=m.H("layer");l=m.H("img-dpi");m.B.ha(n,"imageSelected",b);m.B.ha(n,"imageUnselected",a);m.B.listener(n,"click",g);m.B.listener(n,"contextmenu",f);m.B.ha(n,"selectionChanged",function(){if(0!==
n.getElementsByTagName("img").length){var a=U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)",n);u=[];if(0!==a.length){var b=window.getSelection();b.isCollapsed||fb(a,function(a){b.containsNode(a,!1)&&-1===u.indexOf(a)&&u.push(a)});!1===t?t=!0:fb(a,function(a){if(!b.isCollapsed&&b.containsNode(a,!1)){if(!a.getAttribute("data-en-img-selected")&&ve(a)){a.setAttribute("data-en-img-selected","true");var c=k.Za(a);F(c,"img-selected-overlay");
var d=M("div",{"class":"img-selected-overlay-top-left-corner"}),l=M("div",{"class":"img-selected-overlay-top-right-corner"}),f=M("div",{"class":"img-selected-overlay-bottom-left-corner"}),e=M("div",{"class":"img-selected-overlay-bottom-right-corner"}),m=M("div",{"class":"img-selected-overlay-right-edge"}),g=M("div",{"class":"img-selected-overlay-left-edge"});c.appendChild(d);c.appendChild(l);c.appendChild(f);c.appendChild(e);c.appendChild(m);c.appendChild(g)}Y(n,"imageSelected",{target:a})}else r!==
a&&(h(a),Y(n,"imageUnselected",{target:a}))})}}})};m.V=function(){G(n,"en-ui-img-on");U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)",n).forEach(function(a){h(a);c(a)});l=k=n=null}};function xe(){function a(){if(null!=b)return b;var a=document.querySelector(".accentuate-container");return null!=a?b=a:null}C(this instanceof xe,"Use `new` to instantiate this class");var c=this;c.name="accentuate";var b,d=0,e={boxes:[[]],selectedBoxIndex:-1,clearFirst:!1,clearOnClickSelector:"#en-title,#en-note"};c.F=function(a){a=D(a,e);c.B.I("beforeWindowResize",function(){c.clear()});c.B.I("selectionChange",function(){var b=W(),d=a.clearOnClickSelector;b&&U(d).some(function(a){return b?td(b,
a):!1})&&c.clear()});c.Lc(a);c.B.A({name:"accentuate",action:c.Lc,enabled:y})};c.Lc=function(f){f=D(f,e);var g=f.boxes,h=f.selectedBoxIndex;!0===f.clearFirst&&c.clear();null==a()&&(b=M("div",{"class":"accentuate-container"}),qd().appendChild(b));f=0;for(var m=g.length;f<m;f++)for(var k=g[f],l=0,n=k.length;l<n;l++){var t=k[l],t=kc(a(),"div",{id:"en-find-result"+d,"class":"en-find-result",style:"position:absolute;top:"+t.top+"px;left:"+t.left+"px;width:"+t.width+"px;height:"+t.height+"px"});d+=1;a().appendChild(t)}g=
U("#en-find-result"+h,a());0<g.length&&(h=U(".en-find-result-active",t),fb(h,function(a){G(a,"en-find-result-active")}),fb(g,function(a){F(a,"en-find-result-active")}));return!0};c.clear=function(){null!=a()&&(d=0,H(a()),b=null)}};function ye(a,c){var b=a.tagName?a.tagName:"x"+a.nodeType;c[b]||(c[b]=0);c[b]++;return b+c[b]}
function ze(a,c,b,d,e,f){for(var g=[],h=[],m={},k={},l=0,n=c.length;l<n;l++){var t=c[e?c.length-l-1:l],r=d.childNodes[+(e?d.childNodes.length-b[l]-1:b[l])],u=t.id?t.id:ye(t,k);if(!m[u]){var p=a[u];p?(p!==r&&(r=e?d.childNodes.length-p.Gc-1:p.Gc,g.push({action:"moveChildElement",element:p,baseIndex:f+">"+r,sourceIndex:f+">"+l}),b.splice(l,0,b.splice(r,1)[0])),t.isEqualNode(p)||h.push([t,p])):(t=t.cloneNode(!0),r=e?c.length-l-1:l,g.push({action:"insertChildElement",element:t,baseIndex:f+">"+r,sourceIndex:f+
">"+r}));m[u]=!0}}l=0;for(n=d.childNodes.length;l<n;l++)a=d.childNodes[l],m[a.cf]||g.push({action:"removeChildElement",element:a,baseIndex:f+">"+a.Gc,sourceIndex:null});return{compare:h,diff:g}}function Ae(a,c){return 0===a.baseIndex.indexOf(c.baseIndex)&&a.baseIndex!==c.baseIndex}
function Be(a,c){if(!c||!a.childNodes||0===a.childNodes.length)return null;for(var b={},d=c.split(">"),e=!0,f="",g=1,h=d.length;g<h;g++){var m=parseInt(d[g],10);if(a.childNodes&&a.childNodes.length>m)a=a.childNodes[m];else{f=d.slice(0,g-1).join(">");e=!1;break}}b.lastParent=e?a.parentNode:a;b.lastParentIndex=e?c.slice(0,c.lastIndexOf(">")):f;b.node=e?a:null;b.found=e;return b}
function Ce(a,c,b){var d=[];if(a.isEqualNode(c))return d;null==b&&(b="0");if(3===a.nodeType&&3===c.nodeType)return c.nodeValue!==a.nodeValue&&d.push({action:"replaceText",element:c,baseIndex:b,sourceIndex:b,_deleted:c.nodeValue,_inserted:a.nodeValue}),d;if(a.attributes&&c.attributes){for(var e=a.attributes,f,g,h=0,m=e.length;h<m;h++){f=e[h].nodeValue;g=e[h].nodeName;var k=c.getAttribute(g);k!==f&&(null===k?d.push({action:"setAttribute",name:g,element:c,baseIndex:b,sourceIndex:b,_inserted:f}):d.push({action:"setAttribute",
name:g,element:c,baseIndex:b,sourceIndex:b,_deleted:k,_inserted:f}))}e=c.attributes;h=0;for(m=e.length;h<m;h++)g=e[h].nodeName,null===a.getAttribute(g)&&d.push({action:"removeAttribute",name:g,baseIndex:b,sourceIndex:b,_deleted:c.getAttribute(g)})}e=[];if(a.childNodes&&c.childNodes){h=c.childNodes;m={};e={};g=[];for(var k=0,l=h.length;k<l;k++){f=h[k];var n=f.id?f.id:ye(f,e);m[n]=f;f.Gc=k;f.cf=n;g.push(k)}m={map:m,indices:g};a=a.childNodes;h=m.map;e=m.indices;m=ze(h,a,e.slice(0),c,!1,b);1<m.diff.length&&
(c=ze(h,a,e.slice(0),c,!0,b),c.diff.length<m.diff.length&&(m=c));d=d.concat(m.diff);e=m.compare}if(0<e.length)for(h=0,m=e.length;h<m;h++)c=e[h][1],a=Ce(e[h][0],c,b+">"+c.Gc),0<a.length&&(d=d.concat(a)),delete c.Gc,delete c.cf;return d}
function De(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(">"),d=c.sourceIndex.split(">"),e=0;e<b.length&&e<d.length;){var f=parseInt(b[e],10),g=parseInt(d[e],10);if(f===g)e++;else return isNaN(f)||isNaN(g)?isNaN(f)?1:-1:f>g?1:-1}return 0}
function Ee(a,c,b){for(var d=[],e=[],f=[],g=[],h=0,m=a.length;h<m;h++){var k=a[h],l=k.action,n=k.baseIndex,t=k.sourceIndex,r=k._baseReference,u=k._sourceReference;if(k._conflict)k._baseReference=Be(c,n),t&&n!==t&&(k._sourceReference=Be(c,t)),g.push(k);else{var p=r;if(null==p&&(p=Be(c,n),null==p)){d.push(k);continue}r=p.node;p.found?null!==r&&("moveChildElement"===l||"insertChildElement"===l?(p=r,t!==n&&(n=u,null==n&&(n=Be(c,t)),p=null!==n?n.node:null),"moveChildElement"===l?e.push([r.parentNode,r,
p,k]):b?(t=document.createElement("ins"),t.appendChild(k.element),e.push([r.parentNode,t,p,k])):e.push([r.parentNode,k.element,p,k])):"removeChildElement"===l?(b&&(l=document.createElement("del"),l.appendChild(r.cloneNode(!0)),e.push([r.parentNode,l,null,k,!0])),f.push([r.parentNode,r])):"replaceText"===l?b?(n=r.parentNode,l=document.createElement("del"),l.appendChild(document.createTextNode(k._deleted)),t=document.createElement("ins"),t.appendChild(document.createTextNode(k._inserted)),e.push([n,
t,r,k]),e.push([n,l,r,k]),r.nodeValue=""):r.nodeValue=k._inserted:"setAttribute"===l?r.setAttribute(k.name,k._inserted):"removeAttribute"===l&&r.removeAttribute(k.name)):"insertChildElement"===l?(r=p.lastParent,b?(t=document.createElement("ins"),t.appendChild(k.element),e.push([r,t,null,k])):e.push([r,k.element,null,k])):d.push(k)}}e.sort(function(a,b){return De(a[3],b[3])});a=0;for(c=e.length;a<c;a++)t=e[a],b=t[0],h=t[1],m=t[2],k=t[3],t=t[4],null===m&&!t&&(t=k.sourceIndex)&&(k=parseInt(t.substr(t.lastIndexOf(">")+
1,t.length),10),b.childNodes&&b.childNodes.length>k&&(m=b.childNodes[k])),b.insertBefore(h,m);for(a=0;a<f.length;a++)k=f[a],k[0].removeChild(k[1]);for(f=[];0<g.length;)k=g.pop(),e={},e[k._owner]=k,k._conflictedWith&&(t=k._conflictedWith)&&(a=g.indexOf(t),-1<a&&(g.splice(a,1),e[t._owner]=t),delete k._conflictedWith,delete t._conflictedWith),f.push(e);return{unapplied:d,conflicts:f}};function Fe(){var a=this;a.name="debug-overlay";var c=a.element=null;a.D=function(b,d){a.element.textContent=b;T(a.element,"background-color",d);c=a.B.timeout(function(){a.element.textContent="D";Vc(a.element,"background-color")},1E3,c)};a.F=function(){};a.V=function(){H(a.element)}};function Ge(a,c){c=c||{};c.version="1.0";window.evernoteClient&&window.evernoteClient.postNotification&&window.evernoteClient.postNotification(a,JSON.stringify(c))}function He(a){Ge("setupDone",{module:a||"document"})}function Ie(a,c){c=c||{};c.module=a||"";Ge("contentChanged",c)}function Je(a,c){c=c||{};c.module=a||"";Ge("focusChanged",c)}function Ke(){Ge("contentLoaded",{module:"content"})}function Le(a){Ge("titleBlur",{module:a||"title"})}
function Me(a,c,b){b=b||{};b.href=a;b.module=c||"";Ge("openLink",b)}function Ne(a,c,b,d){b=b||{};b.href=a;b.module=c||"";b.ceOptions=d||"";Ge("showOptions",b)}function Oe(){Ge("contextVisible",{module:"context"})}function Pe(a){Ge("contextExpanded",{module:"context",expanded:!!a})}function Qe(a){null==a.hint&&(a.hint="");Ge("decrypt",a)}function Re(a,c){c=c||{};c.module=a;Ge("linkInsertResult",c)};function Se(){function a(a){Ge(a.target.dataset.name,{src:l.src,module:f.name});a.stopPropagation()}function c(){m&&(f.B.remove(n),n=null,f.B.remove(t),t=null,g.detach(m),m.removeChild(k),l=m=null)}function b(a){var b=l;!0===u&&(r=!0,c(),null==a||"click"===a?b.click():b.dispatchEvent(new Event(a)))}function d(a){m&&(p=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&&(r=!1,c())},100,p))}function e(a){Q(a.target,
"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)")&&a.target!==l&&!a.target.getAttribute("data-en-img-selected")&&!r&&ve(a.target)&&(m&&c(),l=a=a.target,m=g.Za(a,"anchor"),T(m,"display","inline"),m.appendChild(k),t=f.B.listener(m,"click",b))}var f=this;f.name="ui-img-buttons";var g=null,h=null,m=null,k=null,l=null,n=null,t=null,r=!1,u=!0,p;f.F=function(b){function c(d,k){var l=b[d];null!=l&&l&&(l=M("div",{"class":"en-imagebar-"+d+" en-imagebar-button",
"data-name":d}),f.B.listener(l,"click",a),k.appendChild(l))}h=f.H("context").root;g=f.H("layer");f.B.listener(h,"mouseover",e);f.B.listener(h,"mousemove",d);k=M("div",{"class":"en-imagebar"});c("annotate",k);c("preview",k);c("rotate",k);u=b.bubbleImageClicks};f.V=function(){c();k=g=h=null}};function Te(){C(this instanceof Te,"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=db(c);a.D=null;a.F=function(d){d=D(d,{labels:Object.keys(c)});a.D=new vb;d.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)),Ge("analytics",c))})}};var Hd={},Ue=null,Ve=null,We=null,Xe=[];function Ye(a){Rc(a);-1===Xe.indexOf(a)&&Xe.push(a)}function Ze(){for(var a=0;a<Xe.length;a++)Sc(Xe[a]);Xe=[]}function $e(a){C(eb(a),"Expected to get an non empty object");Hd=a}function af(){var a=Hd.env;return a&&null!=a.selectionColor?a.selectionColor:"rgb(167, 203, 245)"}function Bb(a,c){da(c)?Fb.N(a,c):Fb.D(a,c)}function Y(a,c,b){Bb(nd(a,c),null!=b?b:{target:a})};var bf={tap:Xb,press:Yb,pan:Tb,swipe:Wb,rotate:Vb,pinch:Ub},cf=["touchstart","touchmove","touchend","touchcancel"],df=1;
function ef(){function a(){++l;for(var a=m.pb,b=a.length-1;0<=b;b--){var c=a[b];l===c.ig&&(c.wb(),c.Lg&&d.remove(c.za))}}function c(a,b){try{1===a?Ve.Jf(function(a){return a.za===b}):2===a?b[0].removeEventListener(b[1],b[2],b[3]):4===a?window.clearTimeout(b):10===a?(m.remove(b[0]),k&&0===m.Ba.length&&(window.clearInterval(k),k=null)):5===a?window.clearInterval(b):7===a?b():8===a?(Sb(b[4],!1),cf.forEach(function(a){b[0].removeEventListener(a,b[2],b[3])})):9===a?Fb.unsubscribe(b[0],b[1]):w.error("Unhandled binding cleanup step!",
a,b)}catch(c){tb(c)}}function b(a,b){var c={Cf:++df,type:a,value:b};return g[c.Cf]=c}var d=this;C(this instanceof ef,"Use `new` to instantiate this class");var e=!1,f=null,g={};d.S=function(){C(!1,"Not public!");return Object.keys(g)};d.remove=function(a){null!=a&&(c(a.type,a.value),delete g[a.Cf])};d.F=function(a){a=D(a,{name:null});f=a.name;m=new ub;C(0===Object.keys(g).length,"Binding are in an undefined state before setup",f);C(!1===e,"You need to call cleanup first!",f);e=!0};d.V=function(){C(e,
"You need to call setup first!");e=!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 d=g[a[b]];c(d.type,d.value)}k&&(window.clearInterval(k),k=null);m=null;g={};f=h=null};var h=null;d.Wc=function(a){h=a};d.A=function(a){C(e,"You need to call setup first!");a.za=rb().toString();h&&(a=hb(a,h,!0));Ve.Vg(a);return b(1,a.za)};d.listener=function(a,c,d,k){C(null!=a,"target is required!");C(e,"You need to call setup first!");C(!k||eb(k),"option must be dictionary when used");
var l=!!k&&!0===k.$f,f=[a,c,d,l];if(bf[c.toLocaleLowerCase()]){c=c.toLocaleLowerCase();var h=new bf[c](a,d,k);f[2]=function(a){var b=Gb[a.type],c=Jb.call(h,a,b);if(c){a={inputType:b,srcEvent:a,touches:c[0],changedTouches:c[1],target:a.target,type:h.options.type};var c=a.touches.length,d=a.changedTouches.length;a.isInitial=!!(b&1&&0===c-d);a.isFinal=!!(b&12&&0===c-d);a.isInitial&&(h.nb={});h.nb.pf||(h.nb.pf=Kb(a));1<a.touches.length&&!h.nb.Zd?h.nb.Zd=Kb(a):1===a.touches.length&&(h.nb.Zd=void 0);var c=
h.nb.pf,d=(b=h.nb.Zd)?b.center:c.center,k=a.center=Lb(a.touches);a.timeStamp=Date.now();a.deltaTime=a.timeStamp-c.timeStamp;a.angle=Mb(d,k);a.distance=Nb(d,k);var c=h.nb,d=a.center,k=c.Kg||{},l=c.Ng||{},f=c.Og||{};if(1===a.inputType||4===f.inputType)l=c.Ng={x:f.deltaX||0,y:f.deltaY||0},k=c.Kg={x:d.x,y:d.y};a.deltaX=l.x+(d.x-k.x);a.deltaY=l.y+(d.y-k.y);a.offsetDirection=Ob(a.deltaX,a.deltaY);b?(c=b.touches,d=a.touches,c=Nb(d[0],d[1])/Nb(c[0],c[1])):c=1;a.scale=c;b?(b=b.touches,c=a.touches,b=Mb(c[1],
c[0])-Mb(b[1],b[0])):b=0;a.rotation=b;b=h.nb;f=b.Bg||a;c=a.timeStamp-f.timeStamp;8!=a.inputType&&(25<c||null==f.velocity)?(k=f.deltaX-a.deltaX,f=f.deltaY-a.deltaY,l={x:k/c||0,y:f/c||0},c=l.x,d=l.y,l=Math.abs(l.x)>Math.abs(l.y)?l.x:l.y,k=Ob(k,f),b.Bg=a):(l=f.velocity,c=f.velocityX,d=f.velocityY,k=f.direction);a.velocity=l;a.velocityX=c;a.velocityY=d;a.direction=k;h.state&56&&(h.state=1);h.state=h.pc(a);Rb(h,a);h.nb.Og=a}};f.push(h);k=b(8,f);cf.forEach(function(b){a.addEventListener(b,f[2],l)})}else k=
b(2,f),a.addEventListener(c,d,l);return k};d.selection=function(a,b){function c(a,k){b.stopPropagation&&a.stopPropagation();!k&&0<a.touches.length||(d.remove(m),function(a){m=d.timeout(function(){l(!1);a&&b.Vd()},10,m)}(!k&&f&&b.Vd),f=!1,e=null)}function k(a){for(var b=0,c=0,d=a.length,l=0;l<d;l++)var f=a[l],b=b+f.clientX,c=c+f.clientY;return{x:Math.round(b/d),y:Math.round(c/d)}}function l(c){c?(F(a,"en-mobile-selected"),b.Rd&&F(a,b.Rd)):(G(a,"en-mobile-selected"),b.Rd&&G(a,b.Rd))}C(null==b||eb(b),
"en.bindingSelectionOpt is not the right object or undefined");var f=!1,h=!1,e=null,m;d.listener(a,"touchstart",function(a){h=b.enabled&&!b.enabled();h||(b.stopPropagation&&a.stopPropagation(),e=k(a.touches),f||(m=d.timeout(function(){f=!0;l(!0)},100,m)))});d.listener(a,"touchmove",function(a){if(!h){b.stopPropagation&&a.stopPropagation();var d;if(d=e){var l=k(a.touches);d=l.x-e.x;l=l.y-e.y;d=5<Math.sqrt(d*d+l*l)}d&&c(a,!0)}});d.listener(a,"touchend",c);d.listener(a,"touchcancel",c);d.listener(a,
"tap",function(a){h||(b.stopPropagation&&a.stopPropagation(),f||d.timeout(function(){l(!0);m=d.timeout(function(){l(!1);b.Vd&&b.Vd()},50,m)},0,m))},{wf:!0})};d.I=function(a,c,d){Fb.subscribe(a,c,d);b(9,[a,c])};d.W=function(a,c,k){var l=c,f=null;c=function(){f&&d.remove(f);return l.apply(this,arguments)};f=b(9,[a,c]);Fb.subscribe(a,c,k);return f};d.ha=function(a,b,c,k){d.I(nd(a,b),c,k)};d.timeout=function(a,c,k){C(e,"You need to call setup first!");k&&d.remove(k);var l=0,l=window.setTimeout(function(){a();
for(var b=l,c=g.length-1;0<=c;c--)if(g[c][0]===b){g.splice(c,1);break}},c||0);return b(4,l)};var m=null,k=null,l=0;d.M=function(){l=0};d.O=function(c,l){C(e,"You need to call setup first!");C(0<l,"Delay needs to be a number >0");var f=rb().toString(),h=b(10,f);m.set(f,{wb:c,Lg:!1,ig:l,za:h,id:f});k||(d.M(),k=window.setInterval(a,1E3))};d.K=function(a){b(7,a)}};function ff(a){var c=this;c.context=a||{};c.I=null;var b=[],d={};c.load=function(a){try{if(!a)return!1;a.sa=!1;C(!(0<=b.indexOf(a)),"Plugin has already been loaded:",a.name);C(!d[a.name],"There is another plugin with the same name!",a.name);b.push(a);a.name&&0<a.name.length&&(d[a.name]=a);a.B=new ef;return!0}catch(c){w.error("Exception in PluginManager.load <$>",c.toString()),tb(c)}};c.O=function(){return d.richlinks||null};c.K=function(){return b.filter(function(a){return a.sa})};c.Mb=function(a){if(v(a))return d[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){C(null!=d[a],"The plugin",a,"is required here!");return d[a]};c.W=function(a){c.M=a};c.F=function(a,d){try{return C(!!a,"Expected a plugin"),C(!a.sa,"Plugin is already set up:",a.name),0<=b.indexOf(a)||c.load(a),a.B.F({name:a.name||"?"+rb()}),a.kb=c,a.qa=function(){a.Qa||(a.Qa=new ff(c.context),a.Qa.I=a);return a.Qa},a.ia=c.Mb.bind(c),a.H=c.A.bind(c),c.M&&c.M(a),a.F&&a.F(d||{},c.context),a.sa=!0,a}catch(g){w.error("Exception in PluginManager.setup <$>",
g.toString()),tb(g)}};c.J=function(a){for(var d=0;d<b.length;d++)c.F(b[d],a)};c.D=function(a){for(var b=c.I;null!=b;){if(v(a)){if(b.name===a)return b}else if(a(b))return b;b=b.kb.I}return null};c.V=function(a){try{C(!!a,"Expected a plugin"),C(a.sa,"Plugin is not yet set up:",a.name),C(0<=b.indexOf(a),"Plugin has not been loaded before:",a.name),a.sa=!1,a.Qa&&(a.Qa.I=null,a.Qa.S(),a.Qa=null),a.B.V(),a.V&&a.V(),delete a.qa,delete a.ia,delete a.H,a.kb=null}catch(c){w.error("Exception in PluginManager.cleanup <$>",
c.toString()),tb(c)}};c.S=function(){for(var a=b.length-1;0<=a;a--){var f=b[a];!0===f.sa&&(c.V(f),c.B=null)}b=[];d={}}};function gf(){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:Oa(c.addedNodes),removedNodes:Oa(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===d&&"class"===c.attributeName||e.push(c)}}var d=D(c,{element:null}).element;C(I(d),"Element!");var e,f=null;a.B.K(function(){f&&
a.D()});a.Y=function(){C(null==f,"Observer already running");e=[];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(d,c)}};a.N=function(){return!!f};a.J=function(){C(null!=f,"Observer not running");
var a=f.takeRecords();b(a);return e};a.D=function(){a.J();f.disconnect();f=null;return e};a.fa=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 d=0;d<c.addedNodes.length;d++)w.log("  ",b,"add node",K(c.addedNodes[d])||Pa(c.addedNodes[d].textContent),c.addedNodes[d].outerHTML);if(c.removedNodes.length)for(d=0;d<c.removedNodes.length;d++)w.log("  ",b,"remove node",K(c.removedNodes[d])||Pa(c.removedNodes[d].textContent),c.removedNodes[d].outerHTML)}else"attributes"===
c.type?null===c.oldValue?w.log("  ",b,"remove attribute",K(c.target),c.attributeName,c.target.outerHTML):w.log("  ",b,"set attribute",K(c.target),c.attributeName,c.target.outerHTML):"characterData"===c.type?w.log("  ",b,"change text",Pa(c.oldValue),"to",Pa(c.value)):w.error("!!! unknown mutation",c.type)}};a.R=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 d=0;d<c.addedNodes.length;d++)c.target.removeChild(c.addedNodes[d]);if(c.removedNodes.length)for(d=
0;d<c.removedNodes.length;d++)c.target.insertBefore(c.removedNodes[d],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:w.error("!!! unknown mutation",c.type)}}}};function hf(){C(this instanceof hf,"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 d(a){return function(){console.time("restore-dom-snapshot");oc(a.node.cloneNode(!0),h);try{pe(h,a.selection)}catch(b){}g.qc&&g.qc(a.Hc);k=a;console.timeEnd("restore-dom-snapshot")}}function e(a){!0!==a&&k||(k=f())}function f(){console.time("get-dom-snapshot");var b={node:M("div",null,h.outerHTML).firstChild,selection:oe(h)};if(a.ia){var c=
a.ia("crypt");c&&c.Ze(b.node)}g.qb&&(b.Hc=g.qb());console.timeEnd("get-dom-snapshot");return b}var g=D(b,{element:null,Kc:"Typing",qb:null,qc:null},!0),h=g.element;C(!!h&&I(h),'"element" option must be an HTMLElement');var m=new te,k=null;a.D=function(){if(!k||!h)return!1;k.node.className=h.className;k.node.id=h.id;if(!h.isEqualNode(k.node)){var a=k.Xb;null==a&&(a=k.node.innerHTML.replace(c,""),k.Xb=a);var b=h.innerHTML,b=b.replace(c,"");if(a!==b)return!0}return g.qb?g.qb()!==k.Hc:!1};a.flush=function(b){if(a.D()){Y(h,
"beforeGetContent");var c=f();m.register(d(c),d(k),b||g.Kc);return k=c}e(!0);return k};var l=!1;a.B.listener(h,"mousedown",function(){l=!0});this.B.ha(h,"selectionChanged",function(b){b.Ia&&(!0===l&&a.flush(),e());l=!1});a.Xa=function(b,c){Y(h,"beforeGetContent");var l=a.flush()||f();b();var n=f();m.register(d(n),d(l),c);k=n};a.eg=function(){m.A()};a.clear=function(){m.clear();k=null;window.TEST&&e()};var n=a.kb.I;a.N=function(){return m.N()||a.D()};a.J=function(){return m.J()&&!a.D()};a.B.A({name:"undo",
action:function(){a.flush();a.N()&&m.M()&&Y(h,"setDirty");return!0},state:function(){return a.N()},value:function(){return a.D()?g.Kc:m.O()},enabled:function(){return!(!(this.G&&this.G.queryGroupName||n.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){a.J()&&m.I()&&Y(h,"setDirty");return!0},state:function(){return a.J()},value:function(){return m.K()},enabled:function(){return!(!(this.G&&this.G.queryGroupName||n.hasFocus())||!a.J())}})}};function jf(){C(this instanceof jf,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=[],b=[];a.F=function(d){function e(a){return function(){l.R(a.Rc);try{pe(m,a.selection)}catch(b){}h.qc&&h.qc(a.Hc)}}function f(a){return!0!==a&&k?!1:(k=g(),l.Y(),!0)}function g(){var a={Rc:[],selection:oe(m)};h.qb&&(a.Hc=h.qb());return a}var h=D(d,{element:null,Kc:"Typing",qb:null,qc:null},!0),m=h.element;C(!!m&&I(m),'"element" option must be an HTMLElement');var k=null,l=new gf;a.qa().F(l,{element:m});
a.D=function(){return k&&m?0<l.J().length?!0:h.qb?h.qb()!==k.Hc:!1:!1};a.flush=function(d){if(a.D()&&k){Y(m,"beforeGetContent");k.Rc=l.D();var n=e(k);d=d||h.Kc;b=[];c.push({wb:n,title:d});k=null}f()||(k=g());return k};var n=!1;a.B.listener(m,"mousedown",function(){n=!0});this.B.ha(m,"selectionChanged",function(b){b.Ia&&(1==n&&a.flush(),f());n=!1});a.Xa=function(d,h){a.flush();k=g();d();k.Rc=l.D();var n=e(k);b=[];c.push({wb:n,title:h});f(!0)};a.clear=function(){l.N()&&(l.D(),k=null);c=[];b=[];window.TEST&&
f()};var t=a.kb.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 d=c.pop();return d?(k=g(),d.wb(),k.Rc=l.D(),b.push({wb:e(k),title:d.title}),f(!0),Y(m,"setDirty"),!0):!1},state:function(){return a.N()},value:function(){return a.D()?h.Kc:c&&0!==c.length?c[c.length-1].title:null},enabled:function(){return!(!(this.G&&this.G.queryGroupName||t.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){var d=b.pop();
return d?(a.flush(),k=g(),d.wb(),k.Rc=l.D(),c.push({wb:e(k),title:d.title}),f(!0),Y(m,"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.G&&this.G.queryGroupName||t.hasFocus())||!a.J())}})}};function kf(){var a=this;a.name="textinput";var c=null;a.F=function(b){function d(b){f.A(b.type);var d={event:b,element:c,Ia:W(c),Nb:m};Y(c,"anyInput",d);m&&(t=null,h=n=!1,d.Nb={Pa:d.Nb.Pa,offset:d.Nb.offset},g=!0,a.B.timeout(function(){d.Ia=W(c);d.Ia&&(d.Ia.collapsed||d.Ia.collapse(!1),Y(c,"input",d));g=!1}),m=null)}function e(a){f.A(a.type,"*beforeInput*",k,h);if(!1===k&&!1===h){var b=W(c);m={Pa:b.startContainer,offset:b.startOffset};Y(c,"beforeInput",{event:a,Ia:b,Nb:m,element:c,fg:n});h=!0;n=
!1}return!0}c=D(b,{element:null}).element;var f=new Ca,g=!1,h=!1,m=null,k=!1,l=null,n=!1,t=null,r=null;a.Pe=function(){return k};a.Nf=function(){return k&&l?Bd(l):null};a.Hg=function(a){k&&(l=Ad(a))};a.B.listener(c,"compositionstart",function(a){f.A(a.type,a);t=a.data;var b=e(a);Y(c,"compositionStart",{event:a,element:c,data:t});k=!0;return b});a.B.listener(c,"compositionupdate",function(a){r=a.data;var b=W(c);l=b?Ad(b):null;xc(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,gg:t,Ia:b}})});a.B.listener(c,"compositionend",function(a){n=!0;f.A(a.type,k,h);Y(c,"compositionEnd",function(){return{event:a,element:c,data:a.data,gg:t}});k=!1;l=null});a.B.listener(c,"webkitBeforeTextInserted",e);a.B.listener(c,"beforeInput",e);a.B.listener(c,"textInput",function(a){e(a)});a.B.listener(c,"textinput",e);a.B.listener(c,"input",function(a){d(a)});a.B.ha(c,"selectionChanged",function(){f.A("selectionChanged",k);!1===k&&!0===
g&&(m=null,h=!1)},1E3)}};function lf(){function a(a){a=Db(a);var e=!1,k=a.visible;null!=k&&(Zc(d,!!k),e=!0);k=a.active;null!=k&&(F(d,k?"en-shared-on":"en-shared-off"),G(d,k?"en-shared-off":"en-shared-on"),e=!0);k=a.business;null!=k&&(Zc(f,!!k),e=!0);var l=a.value;v(l)&&(g?(c(l),g=!1):b.B.timeout(function(){c(l)},1E3),e=!0);return e}function c(a){e.innerHTML=a;V("a",e).forEach(function(a){var c=a.getAttribute("href");a.removeAttribute("href");F(a,"en-shared-link");a=sc(a,"span");b.B.listener(a,"click",function(){var d=N(a);
Me(c,b.name,{left:d.left,top:d.top,width:d.width,height:d.height});return!1})})}var b=this;this.name="shared";C(this instanceof lf,"Use `new` to instantiate this class");var d=null,e=null,f=null,g=!0;this.F=function(b){var c=document.querySelector(".en-note-container");e=M("div",{"class":"en-shared-message"});f=M("div",{"class":"en-shared-business",style:"display:none;"});d=M("div",{"class":"en-shared en-shared-off",id:"en-shared",style:"display:none;"},[f,e]);c.insertBefore(d,c.firstChild);a(b);
this.B.A({name:"shared",action:a,enabled:y})};this.V=function(){f=e=null;H(d);d=null}};function mf(){function a(a){if(!(null==a||v(a)&&""===a||ea(a)&&0===Object.keys(a).length)){var l=Db(a);a=l.visible;var r=l.expanded,p=l.hideIndicatorLabelWhenExpanded,u=l.hideIndicatorLabelWhenCollapsed,X=l.chatButtonLabel||"Chat",q=l.shareButtonLabel||"Share",ha=l.items,ra=l.contextSectionLabel,Ra=l.firstLaunchInfo;null!=a&&Zc(t,!!a);if(ha&&!(0>=ha.length)){dc(t);var jb=M("div",{"class":"en-context-label"});jb.textContent=ra||"Context";t.appendChild(jb);ra=M("div",{"class":r?"en-context-hide-label":
"en-context-show-label"});t.appendChild(ra);c(Ra);Ra=M("div",{"class":"en-context-card-holder"});t.appendChild(Ra);for(jb=0;jb<ha.length;jb++)Ra.appendChild(m(ha[jb],q,X));T(t,"max-height",139*n.maxRows+32+"px");r?f(ra,p):g(ra,u);e(ra,p,u);b();k.B.timeout(b,250);h(!0);!0===a&&!0===r&&0<ha.length&&k.B.timeout(function(){d(l)},1500)}}}function c(a){if(null!=a&&null!=a.headline&&null!=a.subHeadline&&null!=a.learnMoreLinkLabel&&null!=a.dismissButtonLabel){Na("The FLE functionality has been merged into the context-info command. Please switch to that API.");
var b=a.headline,c=a.subHeadline,d=a.learnMoreLinkLabel;a=a.dismissButtonLabel;var l=M("div",{"class":"en-context-fle-container"});t.appendChild(l);var f=M("div",{"class":"en-context-fle-header"});f.textContent=b;l.appendChild(f);b=M("div",{"class":"en-context-fle-body"});l.appendChild(b);f=M("span",{"class":"en-context-fle-subheader"});f.textContent=c+" ";b.appendChild(f);c=M("span",{"class":"en-context-fle-learn-more"});c.textContent=d;b.appendChild(c);k.B.listener(c,"click",function(a){Me("learnMore",
k.name,{kind:"firstLaunch",sharing:!1});Pd(a)});d=M("div",{"class":"en-context-fle-dismiss-button"});d.textContent=a;l.appendChild(d);k.B.listener(d,"click",function(a){Me("dismiss",k.name,{kind:"firstLaunch",sharing:!1});H(l);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(N(b).width),d=Cc(c),
l=Math.round(c.offsetWidth+(parseInt(d["margin-left"],10)+parseInt(d["margin-right"],10)));a={Ic:b,Ig:a,ag:l,uh:Math.round(c.offsetHeight+(parseInt(d["margin-top"],10)+parseInt(d["margin-bottom"],10))),bg:Math.floor(b/l)}}c=document.querySelector(".en-context-card-holder");null!=a&&null!=c&&(b=Math.min(a.Ig,a.bg),0>=b?T(c,"left","0px"):T(c,"left",(a.Ic-a.ag*b)/2+"px"))}function d(a){if(!0!==p&&!1!==n.showPopup&&null==r&&null!=t&&null!=a&&null!=a.items&&0!==a.items.length){var b=a.items,c=a.toastNotificationHeaderLabel||
"FIX HEADER";a=a.toastNotificationFooterLabel||"FIX FOOTER";var d=bb(b[0].title||"Untitled"),l=M("div",{"class":"en-context-popup-header"});l.textContent=c;c="en-context-popup-body";null!=b[0].kind&&(c+=" "+b[0].kind);b=M("div",{"class":c});b.textContent=d;d=M("div",{"class":"en-context-popup-footer"});d.textContent=a;d.appendChild(M("div",{"class":"en-context-popup-down-arrow"}));r=M("div",{"class":"en-context-popup"},[M("div",{"class":"en-context-popup-wrapper"},[l,b,d])]);qc(r,t);k.B.timeout(function(){F(r,
"en-context-popup-visible")},1);k.B.listener(r,"mousedown",function(){k.B.remove(u)});k.B.listener(r,"mouseup",function(){var a=N(t);id(a.top-15,240);G(r,"en-context-popup-visible");T(r,"pointer-events","none")});u=k.B.timeout(function(){G(r,"en-context-popup-visible");T(r,"pointer-events","none");k.B.timeout(function(){Zc(r,!1)},250)},5500,u)}}function e(a,b,c){k.B.listener(a,"click",function(){a.textContent===b?(g(a,c),Pe(!1)):a.textContent===c&&(f(a,b),Pe(!0));h(!0)})}function f(a,b){var c=U(".en-context-card-holder",
t),d=U(".en-context-fle-container",t);1!==c.length?w.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,G(a,"en-context-show-label"),F(a,"en-context-hide-label"),Zc(c,!0),null!=d&&1===d.length&&Zc(d[0],!0))}function g(a,b){var c=U(".en-context-card-holder",t),d=U(".en-context-fle-container",t);1!==c.length?w.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,G(a,"en-context-hide-label"),F(a,"en-context-show-label"),Zc(c,!1),null!=d&&1===d.length&&Zc(d[0],!1))}function h(a){function b(){var a=
t.querySelector(".en-context-item");null!=a&&jd(a,100)&&!1===p&&(p=!0,Oe())}null==a&&(a=!1);a?b():q=k.B.timeout(b,100,q)}function m(a,b,c){var d=a.link||"#",f=a.kind||"undefined",n=document.createTextNode(bb(a.text||"")),h=a.thumbnail||"",e=""!==h,m=bb(a.title||"Untitled"),g=a.sourceName||"",r=a.sourceId||"",t=a.date||"",p=a.author||"";a=a.canShare;var u=M("div",{"class":e?"en-context-item-title":"en-context-item-title en-context-wide",href:d,name:f});u.textContent=m;m=M("span",{"class":"en-context-author"});
""!==p&&(m.textContent=p);var q=M("span",{"class":"en-context-separator"});q.textContent="|";var od=M("span",{"class":"note"===f?"en-context-note-date":"en-context-news-date"});""!==t&&(od.textContent=t);d=[];"news"===f?""!==t?(d.push(od),""!==p&&(d.push(q),d.push(m))):""!==p&&d.push(m):(""!==t&&d.push(od),d.push(n));n="en-context-item-body";e||(n+=" en-context-wide");"news"===f?n+=" en-context-item-body-one":"note"===f&&"evernote.business"===r?n+=" en-context-item-body-two":"people"===f&&(n+=" en-context-body-italics");
t=M("div",{"class":n},d);n=M("div",{"class":"en-context-graphic-clipper"});d="en-context-graphic";a&&(d+=" en-context-graphic-blur");h=M("img",{"class":d,alt:"graphic",src:h});d="en-context-graphic-hover";e||(d+=" en-context-graphic-hover-solid");b=M("div",{"class":d},[M("div",{"class":"en-context-workchat"}),M("div",{"class":"en-context-share-text"},["people"===f?c:b])]);e&&n.appendChild(h);a&&(n.appendChild(b),k.B.listener(n,"click",function(a){Me(u.getAttribute("href"),k.name,{kind:u.getAttribute("name"),
sharing:!0});a.stopPropagation()}));e=r;"dowjones.wsj"===e&&(e="wsj");"profile.linkedin"===e&&(e="linkedin");if("profile.evernote.business"===e||"evernote.business"===e)e="evernote-business";"profile.factiva"===e&&(e="factiva");"nikkei.bp.business"===e&&(e="nikkeibp");"nikkei.bp.itpro"===e&&(e="itpro");"nikkei.bp.kenplatz"===e&&(e="kenplatz");"nikkei.bp.tech"===e&&(e="techon");c="";if("profile.evernote.business"===r||"evernote.business"===r)c="en-context-source-text-blue";b=M("div",{"class":"en-context-source-img "+
e});c=M("div",{"class":"en-context-source-text "+c});c.textContent="dowjones.wsj"===r?"":"evernote.business"===r?p:g;g=M("div",{"class":"en-context-source"});-1!==l.indexOf(e)&&g.appendChild(b);g.appendChild(c);p=[u,t];p.push(n);("news"===f||"people"===f||"company"===f||"note"===f&&"evernote.business"===r)&&p.push(g);f=M("div",{"class":"en-context-item"},p);k.B.listener(f,"click",function(a){Me(u.getAttribute("href"),k.name,{kind:u.getAttribute("name"),sharing:!1});a.preventDefault()});return f}var k=
this;this.name="context";C(this instanceof mf,"Use new for this");var l="factiva fastcompany inc lifehacker linkedin pandodaily techcrunch theverge evernote-business wsj forbes nikkei nikkeibp techon itpro kenplatz".split(" "),n,t=null,r=null,u,p=!1,q;this.F=function(c){var d=document.querySelector(".en-note-container");t=M("div",{"class":"en-context",id:"en-context",style:"display:none;"});null!=d?(qc(t,d),k.B.listener(window,"scroll",h),k.B.listener(window,"resize",h),h(!0),k.B.listener(window,
"resize",b),n=D(c,{showPopup:!0,maxRows:9999},!1),this.B.A({name:"context",action:a,enabled:y})):w.error("Couldnt find note container! Bailing.")};this.V=function(){H(t);H(r);u=0;t=null;p=!1}};function nf(){function a(a){if(!(null==a||v(a)&&""===a||ea(a)&&0===Object.keys(a).length)){Na("The FLE functionality has been merged into the context-info command. Please switch to that API.");var k=Db(a),m=k.expanded;null==m&&(m=!1);var r=k.headline||"Get more Context with Premium",u=k.subHeadline||"Go Premium to view notes, articles, and people related to what you're working on.";a=k.goPremiumLabel||"Go Premium";var p=k.hideIndicatorLabelWhenExpanded||"Hide",k=k.hideIndicatorLabelWhenCollapsed||
"Show";dc(g);Zc(g,!0);h=M("div",{"class":"en-context-upsell-body"});g.appendChild(h);var q=M("div",{"class":m?"en-context-upsell-hide-label":"en-context-upsell-show-label"});g.appendChild(q);m?b(q,p):d(q,k);c(q,p,k);m=M("div",{"class":"en-context-upsell-headline"});m.textContent=r;h.appendChild(m);r=M("div",{"class":"en-context-upsell-subheadline"});r.textContent=u;h.appendChild(r);u=M("div",{"class":"en-context-upsell-go-premium"});u.textContent=a;h.appendChild(u);f.B.listener(u,"click",function(a){Me("http://evernote.com",
"context",{kind:"upsell",sharing:!0});Pd(a)});e(!0)}}function c(a,c,k){f.B.listener(a,"click",function(){a.textContent===c?(d(a,k),Pe(!1)):a.textContent===k&&(b(a,c),Pe(!0));e(!0)})}function b(a,b){null!=h&&(a.textContent=b,G(a,"en-context-upsell-show-label"),F(a,"en-context-upsell-hide-label"),Zc(h,!0))}function d(a,b){null!=h&&(a.textContent=b,G(a,"en-context-upsell-hide-label"),F(a,"en-context-upsell-show-label"),Zc(h,!1))}function e(a){function b(){jd(g,75)&&!1===m&&(m=!0,Oe())}null==a&&(a=!1);
a?b():k=f.B.timeout(b,100,k)}var f=this;this.name="context-upsell";C(this instanceof nf,'Use "new" to create the Context Upsell Plugin');var g=null,h=null,m=!1,k;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?(qc(g,c),f.B.listener(window,"scroll",e),f.B.listener(window,"resize",e),e(!0),a(b),this.B.A({name:"context-upsell",action:a,enabled:y})):w.error("Couldnt find note container! Bailing.")};
this.V=function(){H(g);h=g=null;m=!1}};function of(){function a(a){if(!(null==a||v(a)&&""===a||ea(a)&&0===Object.keys(a).length)){var l=Db(a),h=l.showLogo||!1,e=l.headline||"HEADLINE",m=l.infoSections||[];a=l.buttonLabel||"BUTTONLABEL";var u=l.hideOnButtonClick||!1;dc(f);Zc(f,!0);l=M("div",{"class":"en-context-info-logo"});h&&f.appendChild(l);h=M("div",{"class":"en-context-info-headline"});h.textContent=e;f.appendChild(h);g=M("div",{id:"en-context-info-body"});f.appendChild(g);if(3===m.length){for(e=0;e<m.length;e++)g.appendChild(c(m[e])),
g.appendChild(document.createTextNode(" "));m=M("div",{"class":"en-context-info-stretcher"});g.appendChild(m)}m=M("div",{"class":"en-context-info-button"});m.textContent=a;f.appendChild(m);d.B.listener(m,"click",function(a){Me("http://evernote.com","context",{kind:"info",sharing:!0});u&&Zc(f,!1);Pd(a)});b(!0)}}function c(a){null!=a&&v(a.type)&&v(a.title)&&v(a.text)||w.error("Incomplete section info for context-info!");for(var b=!1,c=0;c<e.length;c++)a.type===e[c]&&(b=!0);!1===b&&w.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(){jd(f,75)&&!1===h&&(h=!0,Oe())}null==a&&(a=!1);a?b():m=d.B.timeout(b,100,m)}var d=this;this.name="context-info";C(this instanceof of,'Use "new" to create the Context Info Plugin');
var e=["note","article","person"],f=null,g=null,h=!1,m;this.F=function(c){var l=document.querySelector(".en-note-container");f=M("div",{"class":"en-context-info",style:"display:none;"});null!=l?(qc(f,l),d.B.listener(window,"scroll",b),d.B.listener(window,"resize",b),b(!0),a(c),this.B.A({name:"context-info",action:a,enabled:y})):w.error("Couldnt find note container! Bailing.")};this.V=function(){H(f);g=f=null;h=!1}};function pf(){function a(a,b){var d=a.start,k=a.end;if(0>d||d>=k)return null;var l=c(b,d);if(!l||!l.Mc)return null;var f=l;return d<k-1&&(f=c(b,k-1),!f||!f.Mc)?null:rd(l.Pa,l.offset,f.Pa,f.offset+1)}function c(a,b){if(a.nodeType==Node.TEXT_NODE)return{Pa:a,offset:b,length:a.nodeValue.length,Mc:b<a.nodeValue.length};if(a.nodeType==Node.ELEMENT_NODE){for(var d=b,l=0,k=a.firstChild;null!=k;k=k.nextSibling){var f=c(k,b);if(!f||f.Mc)return f;if(0<f.length&&(b-=f.length,l+=f.length,0>b))return null}if(Gc(a)||
R(a,"img")||S(a))if(--b,l+=1,0>b)return null;return{Pa:a,offset:d,length:l,Mc:!1}}return{Pa:a,offset:b,length:0,Mc:!1}}function b(a){if(a.nodeType==Node.TEXT_NODE)return a.nodeValue;if(a.nodeType==Node.ELEMENT_NODE){for(var c="",d=a.firstChild;null!=d;d=d.nextSibling)c+=b(d);if(Gc(a)||R(a,"img")||S(a))c+="\n";return c}return""}function d(a){p=D(Db(a),{highlight:x,excludeMatches:z,limit:q,resourceMatches:null,noteSearchMatching:B,value:null});a=t;p.value&&(a=f(p.value,p.resourceMatches,p.noteSearchMatching,
+p.limit),L="all"===p.highlight);if(p.excludeMatches){var b={},c;for(c in a)"items"!==c&&(b[c]=a[c]);a=b}"all"===p.highlight&&null!=n&&k.Lc({boxes:n,selectedBoxIndex:r,clearFirst:!0});return JSON.stringify(a)}function e(a){a=Db(a).value;if("next"===a)g(r+1);else if("prev"===a)g(r-1);else if("first"===a)g(0);else if("last"===a)g(-1);else if("clear"===a)Bb("findClear"),"all"===p.highlight&&k.clear(),t=n=l=null,r=-1,u=null;else{a=parseInt(a,10);if(isNaN(a))return!1;g(a)}"all"===p.highlight&&null!=n&&
k.Lc({boxes:n,selectedBoxIndex:r,clearFirst:!0});return!0}function f(c,d,k,f){r=-1;var e=f=f||q,g=!1,p=h(d);f-=p.length;if(v(c)&&0<(c=c.trim()).length&&0<f){var z=-1,X=-1,Ra=null,x=null;d=null;d=k?m.J(c):m.D(c);null!=d&&(Ra=d.Df,x=d.sf,U(A).forEach(function(c){for(var d=b(c),l,k=!1;(l=Ra.exec(d))&&0<l.length;){var h=x(l,Ra),n={string:d.slice(h.start,h.end),length:h.end-h.start,from:h.start,to:h.end};Ra.lastIndex=h.end;var e=a(h,c);if(e)if(h=e.getClientRects(),null==h||0===h.length)h=null;else{for(var e=
Ec(e.startContainer),m=null,r=[],t=0;t<h.length;t++){var A={},q=h[t];if(!(1>=q.width||1>=q.height||m&&q.left>=m.left&&q.top>=m.top&&q.right<=m.right&&q.bottom<=m.bottom))if(m=q,q=Dc(q,{Hb:e}),A.top=q.top,A.bottom=q.bottom,A.left=q.left,A.right=q.right,A.width=q.right-q.left,A.height=q.bottom-q.top,q=r.length-1,-1<q&&r[q].left<=A.right&&A.left<=r[q].right&&r[q].top<=A.bottom&&A.top<=r[q].bottom){var ra={};ra.top=Math.max(r[q].top,A.top);ra.bottom=Math.min(r[q].bottom,A.bottom);ra.left=r[q].left;ra.right=
A.right;ra.width=ra.right-ra.left;ra.height=ra.bottom-ra.top;r[q]=ra}else r.push(A)}h=r}else h=null;if(h){for(e=0;e<h.length;e++)m=h[e],m.top&&(m.string=n.string,m.length=n.length,m.from=n.from,m.to=n.to);if(0>=f--){g=!0;break}n=h[0];u&&L&&u.from===n.from&&(0===n.string.indexOf(u.string)||0===u.string.indexOf(n.string))&&(X=p.length);k||(e=document.body.scrollTop,kd(n.top-e,n.bottom-e)&&(k=!0,z=p.length));p.push(h)}}}));n=p;L&&c===l||(l=c,r=0,-1<z&&(r=z),-1<X&&(r=X),u=0<p.length?p[r]:null)}return t=
c={limit:e,hasMore:g,count:p.length,items:p,index:r}}function g(a){n&&0<n.length&&(a>=n.length?a-=n.length:0>a&&(a+=n.length),r=a=Math.max(0,Math.min(n.length-1,a)),u=n[a],t.index=r)}function h(a){if(null==a||0===a.length)return[];var b=[],c={};m.H("rte").Qa.A("resource").qe().forEach(function(a){c[a.info&&a.info.hash?a.info.hash:a.hash]=a});a.forEach(function(a){var d=a.hash,l=c[d],k=a.reco,f=a.outline;if(l)if(!0!==l.ic||!0===f)f=N(l.pa()),b.push([f]);else if(!0===l.ic&&k){var h=+k.width,n=+k.height,
f=k.items||[];if(0===f.length||isNaN(n)||isNaN(h))w.error('Invalid "find" resourceMatch',a,"reco data",k,'for "'+d+'" resource.');else{a=[];l=l.rect;h=l.width/h;n=l.height/n;for(d=0;d<f.length;d++){var k=f[d],e={};e.top=Math.round(+k.y*n-3+l.top);e.left=Math.round(+k.x*h-3+l.left);e.width=Math.round(+k.w*h+6);e.height=Math.round(+k.h*n+6);a.push(e)}b.push(a)}}});return b}C(this instanceof pf,"Use `new` to instantiate this class");var m=this;m.name="find";var k,l,n,t,r,u,p,q,A,z,x,B,L,X={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"};m.F=function(a){p=a=D(a,{limit:100,excludeMatches:!1,highlight:"none",selector:"#en-note",noteSearchMatching:!1});q=0<+a.limit?+a.limit:100;A=v(a.selector)?a.selector:"#en-note";z=a.excludeMatches;x=a.highlight;B=a.noteSearchMatching;k=m.kb.A("accentuate");a={};for(var b in X){var c=X[b];a[b]="["+b+c+"]";for(var h=0;h<c.length;h++){var g=c[h];a[g]||(a[g]=a[b])}}X=a;t=n=l=null;r=-1;u=null;m.B.I("windowResize",function(){"all"===
p.highlight&&(f(p.value,p.resourceMatches,p.noteSearchMatching,+p.limit),null!=n&&k.Lc({boxes:n,selectedBoxIndex:r,clearFirst:!0}))});m.B.I("selectionChange",function(){if("all"===p.highlight){var a=W();a&&U(A).some(function(b){return a?td(a,b):!1})&&(L=!1,k.clear())}});m.B.A({name:"find",action:e,value:d,enabled:y})};var xa=/(?=[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]/,
ha=/^(?:[^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])/,
ra=/(?:[^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])$/,
Ra=/[^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]/,
jb=/^(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;m.D=function(a){a=[a].map(Ua).join("|");return{Df:new RegExp(a,"gi"),sf:function(a,b){return{start:a.index,end:b.lastIndex}}}};m.J=function(a){a=a.trim();var b=/\*$/.test(a);b&&(a=a.substring(0,a.length-1));if(0>=a.length||jb.test(a))return null;for(var c=a,d=1,l=[],k=!1,f=!1,h=0;h<c.length;h++){var n=c[h];xa.test(n)?(f&&l.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.push(n),k=!1,f=!0):(Ra.test(n)?(k||l.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]+"),
k=!0):(f&&l.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]*"),
(k=X[n.toLowerCase()])?l.push(k):l.push(n),k=!1),f=!1)}c=l.join("");c=c.replace(/\s/g,"\\s");c="("+c+")";ha.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,d++);b||ra.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{Df:new RegExp(c,"gi"),sf:function(a){for(var b=a.index,c=b,l=1;l<=d;l++)b=c,c=b+a[l].length;return{start:b,end:c}}}}};function qf(){function a(a,b){C(!0===a.vb,"Only commands supported due to optimizations");a.vb=a.vb||!0;a.shiftKey=!!a.shiftKey;a.which=a.charCode||a.key.charCodeAt(0);a.wb=b;k.push(a)}function c(a){var b=l[a.keyCode];if(!b)return!0;Bb("editingKeyEventOccurred",a);return b(a)?Pd(a):!0}function b(a){a=g(a);return 2===a?Z.execCommand("deleteword"):4===a?Z.execCommand("deleteline"):8===a&&/Windows/.test(navigator.userAgent)?Z.execCommand("deleteword"):Z.execCommand("delete")}function d(a){a=g(a);return 2===
a?Z.execCommand("forwarddeleteword"):4===a?Z.execCommand("forwarddeleteline"):8===a&&/Windows/.test(navigator.userAgent)?Z.execCommand("forwarddeleteword"):Z.execCommand("forwarddelete")}function e(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 h(a){if(a.ctrlKey||a.metaKey)for(var b=k.length-1;0<=b;b--){var c=k[b];if((null==a.which?a.keyCode:a.which)===c.which&&a.shiftKey===c.shiftKey)return c.wb.call(null),Pd(a)}return!0}var m=this;C(this instanceof qf,"Use `new` to instantiate this class");m.name="keyboard";var k=[],l={};m.F=function(n){n=D(n,{shortcuts:!0,editing:!0,custom:null,root:null});var g=n.root||document.body;n.shortcuts&&(a({key:"z",vb:!0},Z.execCommand.bind(Z,"undo")),
a({key:"z",vb:!0,shiftKey:!0},Z.execCommand.bind(Z,"redo")),a({key:"y",vb:!0},Z.execCommand.bind(Z,"redo")),a({key:"b",vb:!0},Z.execCommand.bind(Z,"bold")),a({key:"i",vb:!0},Z.execCommand.bind(Z,"italic")),a({key:"u",vb:!0},Z.execCommand.bind(Z,"underline")));n.editing&&(l[9]=f,l[13]=e,l[46]=d,l[8]=b,m.B.listener(g,"keydown",c));if(n.custom){var r=n.custom;C(ca(n.custom),"Expected an Array for custom keyboard definitions");for(n=0;n<r.length;n++){var u=r[n],p=u.key,u=u.fn;C(v(p)&&da(u),'Expected "key" and "fn"');
a({key:p,vb:!0,shiftKey:p.toUpperCase()===p},u)}}0<k.length&&m.B.listener(g,"keypress",h)};m.V=function(){k=[]}};function rf(){var a=this;a.name="context";a.F=function(c){function b(){m=!1;var b=a.C();k&&b&&zd(b,k)||(g={},h={},k=b&&b.cloneRange?b.cloneRange():null)}var d=c.root;C(I(d),"We expect a valid root element",d);a.root=d;a.G=c.G||{};var e=c.Ia||W(a.root)||null,f=!1;a.Da={};a.U=function(b){return a.Da[b]||{}};var g={},h={},m=!1,k=null;a.Sg=function(){var b;null==b&&(b=a.C());k=b};a.N=function(){return m};a.dd=function(a){b();return g[a]};a.We=function(a,c){b();g[a]=c;m=!0};a.$e=function(a){b();delete g[a];
m=!(!Object.keys(g).length&&!Object.keys(h).length)};a.kd=function(a){b();return h[a]};a.Xe=function(a,c){b();h[a]=c;m=!0};a.Rg=function(a){b();delete h[a];m=!0};a.Tf=function(){a.sc("getActiveRangeStartContainerComputedStyle",function(){var b=a.C();return b&&b.startContainer?Cc(b.startContainer):null})};var l={};a.C=function(){return e};a.Ea=function(b){zd(e,b)||(e=b||null,f=!0,a.D())};a.Ec=function(b,c){e.setStart(b,c);f=!0;a.D()};a.eh=function(b){e.setStartAfter(b);f=!0;a.D()};a.Dc=function(b,
c){e.setEnd(b,c);f=!0;a.D()};a.dh=function(b){e.setEndAfter(b);f=!0;a.D()};a.Va=function(){a.Ea(W(d)||null);f=!1};a.xg=function(){a.ya()};a.Ag=function(){function b(a,c){for(var d=c,l=a,k=!0;k;)if(k=l.previousSibling&&xc(l.previousSibling))d+=O(l.previousSibling),l=l.previousSibling;return d}var c=a.C(),d=b(c.startContainer,c.startOffset),l=b(c.endContainer,c.endOffset);c.startContainer.parentNode.normalize();c.startContainer!==c.endContainer&&c.endContainer.parentNode.normalize();a.Ec(c.startContainer,
d);a.Dc(c.endContainer,l)};a.zg=function(b){if(xc(b)){for(var c=O(b),d=b,l=!0;l;)if(l=d.previousSibling&&xc(d.previousSibling))c+=O(d.previousSibling),d=d.previousSibling;b.parentNode.normalize();a.T(d,c);a.ya()}else a.T(b.parentNode,J(b)+1)};a.ya=function(b,c){if(f||b){if(!0===c){var l=e,k=window.getSelection();null!=k&&(k.removeAllRanges(),null!=l&&k.addRange(l))}else sd(e,d);a.Va();a.D()}};a.yd=function(b){e||(e=d.ownerDocument.createRange());e.selectNode(b);f=!0;a.D()};a.T=function(b,c,l,k){e||
(e=d.ownerDocument.createRange());e.setStart(b,c);l?e.setEnd(l,k||0):e.setEnd(b,c);f=!0;a.D()};a.K=function(b,c,d){c&&-1===d&&(d=c.childNodes.length);var l=b.parentNode,k=J(b);C(!!e,"Global range expected");for(var f=[[e.startContainer,e.startOffset],[e.endContainer,e.endOffset]],h=f.length,n=0;n<h;n++){var m=f[n];m[0]===c&&m[1]>d&&m[1]++;m[0]!==l||m[1]!==k&&m[1]!==k+1||(c?(m[0]=c,m[1]+=d-k):m[1]>k&&0<m[1]&&--m[1]);m[0]===l&&m[1]>k+1&&m[1]--;!c&&yc(m[0],b)&&(m[0]=b.parentNode,m[1]=J(b))}c?c.childNodes.length===
d?c.appendChild(b):c.insertBefore(b,c.childNodes[+d]):H(b);a.T(f[0][0],f[0][1],f[1][0],f[1][1]);a.D()};a.Te=function(b,c,d){C(b!==c,"Do not move into itself");for(var l;l=b.firstChild;)a.K(l,c,0>d?-1:d++)};a.insertBefore=function(b,c,d){a.K(b,c,d?J(d):-1)};a.Pb=function(b,c){a.K(b,c,-1)};a.removeNode=function(b){a.K(b)};a.Ve=function(b){for(;b.firstChild;)a.removeNode(b.firstChild);a.D()};a.ma=function(b,c){if(b&&b.tagName.toLowerCase()===c.toLocaleLowerCase())return b;var d=b.parentNode;if(!d)return b;
for(var l=M(c),k=0;k<b.attributes.length;k++)l.setAttributeNS(b.attributes[k].namespaceURI,b.attributes[k].name,b.attributes[k].value);a.K(l,d,J(b));a.Te(b,l,0);a.removeNode(b);return l};a.hasFocus=function(){var a=W(d);if(a){if(wd(a,"div.en-module",d))return!1;if((a=xd(a))&&!0===!(!P(a,Mc)&&!Mc(document.body)))return!0}return!1};var n=!1;a.Ef=function(a){n=!0===a;Bb("noteReadOnlyStateChanged",{readOnly:n})};a.$a=function(){return n};var t=!1;a.bc=function(b){var c=t;t=!0===b;Nc(a.root,t);return c};
a.L=function(){return t};a.D=function(){l={}};a.R=function(a,b){l[a]=b};a.J=function(a){return l[a]};a.sc=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=me(d,b);b=d.cloneNode(!0);if(c=ne(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 l=c.collapsed?"{}":"{";c.startOffset!=c.startContainer.childNodes.length&&
c.startContainer.childNodes[c.startOffset].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset].insertData(0,l):0!=c.startOffset&&c.startContainer.childNodes[c.startOffset-1].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset-1].appendData(l):c.startContainer.insertBefore(document.createTextNode(l),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=d.innerHTML;return b}};a.V=function(){a.root=null}};function sf(){var a=this,c=this;c.name="block";c.F=function(){var b=c.H("context"),d=c.H("query"),e=c.H("format"),f=b.root;a.ib=function(a){if((a=d.na(a))&&(d.L(a)||d.Ka(a)))if(d.xc(a)){var c=a.getElementsByTagName("object");if(0<c.length){var k=!1,c=c[c.length-1];cd(c.lastChild||c,function(a){return k=S(a)||d.Z(a)},a);k||b.Pb(M("br"),a)}}else b.Ve(a),d.Db(a)?b.Pb(uc(),a):b.Pb(M("br"),a)};a.ea=function(c){if(d.L(c))if(d.jb(c).every(function(a){return!d.S(c,a)||!d.W(c,a)})){var f=K(c);"dd"===f||"dt"===
f?e.La([c],function(a){return R(a,"dl")&&!a.attributes.length},function(){return M("dl")}):d.W("p",d.rb(c))&&d.ec(c)&&("div"!==f&&(c=b.ma(c,"div"),a.ea(c)),Oa(c.childNodes).filter(d.ec).forEach(function(b){var c=e.ca([b]);a.ba([b]);e.aa(c)}))}else if(!d.W(c,c.parentNode)){for(f=e.ca([c]);!d.W(c,c.parentNode);)a.ba([c]);e.aa(f)}};a.sb=function(a){if(R(a,"li")&&d.L(a)&&d.L(a.parentNode)){for(var c=function(a){return Q(a,"ol,ul")},k=!1,l=null;Oa(a.childNodes).some(c);){var f=a.lastChild;c(f)||!l&&fd(f)?
(l=null,b.K(f,a.parentNode,1+J(a)),k=!0):d.$(f)?b.removeNode(f):(l||(l=M("li"),a.parentNode.insertBefore(l,a.nextSibling)),b.K(f,l,0),k=!0)}k&&d.ka(a,0)&&b.removeNode(a)}};a.J=function(){if(!b.C()||0===f.getElementsByTagName("li").length)return null;var a=d.ga(b.C()),a=d.Aa(a,function(a){return d.L(a)&&!d.Fb(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||d.W(a,"li"))});return a.length?a:null};a.Ha=function(){var b=a.J();if(!b)return"none";for(var c=[],k=!0,l=!1,f=[],e=b.length;e--;){var g=b[e],u=!1,
p=!1;if(I(g)){var q=d.Ib(g);null!==q&&(0>c.indexOf(q)&&c.push(q),u=!0);var A=d.Yf(g);A&&0<A.length&&(p=!0,null!==q&&(-1<A.indexOf(q)&&A.splice(A.indexOf(q),1),0<A.length&&(u=!1)))}g=g.parentNode;0>f.indexOf(g)&&(f.push(g),q=d.Ib(g),null!==q&&(0>c.indexOf(q)&&c.push(q),u=!0),R(g.parentNode,"li")&&(g=d.Ib(g.parentNode),null!==g&&(0>c.indexOf(g)&&c.push(g),u=!0)));k=k&&u;l=l||u||p;if(!k&&l)return"mixed"}return 0===c.length?"none":!k||1!==c.length&&1!==b.length?"mixed":c[0]};a.hd=function(a){Gc(a)||(a=
Lc(a,f));if(!a||1!==a.nodeType)return"left";var b=Cc(a).textAlign.replace(/^-(moz|webkit)-/,"").replace(/^auto$/,"start");return"start"===b?"ltr"===d.ie(a)?"left":"right":"end"===b?"ltr"===d.ie(a)?"right":"left":-1!==["center","justify","left","right"].indexOf(b)?b:"left"};a.Rf=function(c){null==c&&(c={});var f="blockMerging"in c?Boolean(c.sh):!0,k="stripWrappers"in c?Boolean(c.Zc):!0,l="direction"in c?c.direction:"forward";if(b.C()){a.Qb(b.C().startContainer,b.C().startOffset,!1);a.Qb(b.C().endContainer,
b.C().endOffset,!1);c=d.Qc(b.C().startContainer,b.C().startOffset);var n=c[0],g=c[1];c=d.Oc(b.C().endContainer,b.C().endOffset);var r=c[0],u=c[1];if("after"!==d.Jb(r,u,n,g))b.C().collapse("forward"===l);else{3===n.nodeType&&0==g&&(g=J(n),n=n.parentNode);3===r.nodeType&&u==O(r)&&(u=1+J(r),r=r.parentNode);b.T(n,g,r,u);for(var p=b.C().startContainer;d.S(p,p.parentNode)&&d.X(p);)p=p.parentNode;if(!d.A(p)&&!d.Ka(p)||!d.W("span",p)||Q(p,"td,th"))p=null;for(var q=b.C().endContainer;d.S(q,q.parentNode)&&
d.X(q);)q=q.parentNode;if(!d.A(q)&&!d.Ka(q)||!d.W("span",q)||Q(q,"td,th"))q=null;c=e.se();if(n==r&&d.L(n)&&3===n.nodeType)n.deleteData(g,u-g),a.Qb(n,g,!1),b.C().collapse("forward"===l);else{d.L(n)&&3===n.nodeType&&n.deleteData(g,O(n)-g);for(var A=d.Aa(b.C(),function(a){return d.L(a)&&!Q(a,"thead,tbody,tfoot,tr,th,td")}),z=0;z<A.length;z++){var x=A[z];if(g=x.parentNode)if(g.removeChild(x),a.ib(g),k||!yc(n,g)&&g!=n)for(;d.L(g)&&d.X(g)&&0==O(g);)x=g.parentNode,x.removeChild(g),g=x}d.L(r)&&3===r.nodeType&&
r.deleteData(0,u);a.Qb(b.C().startContainer,b.C().startOffset,!1);a.Qb(b.C().endContainer,b.C().endOffset,!1);if(f&&p&&q&&d.S(p,q)&&p!=q){1===p.children.length&&d.pe(p.firstChild)&&p.removeChild(p.firstChild);if(yc(q,p)){for(f=q;f.parentNode!=p;)f=f.parentNode;b.T(p,J(f));if(!q.hasChildNodes()){for(;d.L(q)&&1==q.parentNode.childNodes.length&&q.parentNode!=p;)g=q,g.removeChild(q),q=g;d.L(q)&&!d.X(q)&&d.X(q.previousSibling)&&d.X(q.nextSibling)&&q.parentNode.insertBefore(M("br"),q.nextSibling);d.L(q)&&
q.parentNode.removeChild(q);e.Cb(c);return}if(!d.X(q.firstChild)){e.Cb(c);return}k=[];for(k.push(q.firstChild);!S(k[k.length-1])&&d.X(k[k.length-1].nextSibling);)k.push(k[k.length-1].nextSibling);for(f=e.ca(k);yc(p,k[0])&&k[0].parentNode!=p;)a.ba(k);d.L(k[0].previousSibling)&&S(k[0].previousSibling)&&k[0].parentNode.removeChild(k[0].previousSibling)}else if(yc(p,q)){b.T(p,O(p));for(f=p;f.parentNode!=q;)f=f.parentNode;d.X(f.nextSibling)&&S(p.lastChild)&&p.removeChild(p.lastChild);k=[];f.nextSibling&&
!d.A(f.nextSibling)&&k.push(f.nextSibling);k.length&&!S(k[k.length-1])&&k[k.length-1].nextSibling&&!d.A(k[k.length-1].nextSibling)&&k.push(k[k.length-1].nextSibling);f=e.ca(k);k.forEach(function(a){b.K(a,p,-1)})}else{b.T(p,O(p));d.X(q.firstChild)&&S(p.lastChild)&&p.removeChild(p.lastChild);for(f=e.ca(Oa(q.childNodes));q.hasChildNodes();)b.K(q.firstChild,p,-1);for(;!(q.hasChildNodes()||0<=["td"].indexOf(q.tagName.toLowerCase()));)g=q.parentNode,g.removeChild(q),q=g}for(var B=p;d.Of(B).some(function(a){return d.S(B,
a)&&(R(a,"ol")&&R(a.nextSibling,"ol")||R(a,"ul")&&R(a.nextSibling,"ul"))&&d.S(B,a.nextSibling)});){for(;!(R(B,"ol")&&R(B.nextSibling,"ol")&&d.S(B,B.nextSibling)||R(B,"ul")&&R(B.nextSibling,"ul")&&d.S(B,B.nextSibling));)B=B.parentNode;for(;B.nextSibling.hasChildNodes();)b.K(B.nextSibling.firstChild,B,-1);B.parentNode.removeChild(B.nextSibling)}e.aa(f);a.ib(p);e.Ge(p)}else b.C().collapse("forward"===l)}e.Cb(c)}}};a.ba=function(a){var c=a[0].parentNode;if(d.L(c)&&c.parentNode){-1!==a.indexOf(c.firstChild)&&
e.Ie(c);var k=-1!==a.indexOf(c.firstChild)&&d.uc(c),l=-1!==a.indexOf(c.lastChild)&&d.fc(c);if(-1===a.indexOf(c.firstChild)&&-1!==a.indexOf(c.lastChild)){for(var f=a.length-1;0<=f;f--)b.K(a[f],c.parentNode,1+J(c));l&&!d.fc(a[a.length-1])&&a[a.length-1].parentNode.insertBefore(M("br"),a[a.length-1].nextSibling);e.Ge(c)}else{if(-1===a.indexOf(c.firstChild))for(f=c.cloneNode(!1),c.removeAttribute("id"),c.parentNode.insertBefore(f,c);a[0].previousSibling;)b.K(c.firstChild,f,f.childNodes.length);for(f=
0;f<a.length;f++)b.K(a[f],c.parentNode,J(c));k&&!d.uc(a[0])&&a[0].parentNode.insertBefore(M("br"),a[0]);d.X(a[a.length-1])&&!S(a[a.length-1])&&S(c.firstChild)&&!d.X(c)&&c.removeChild(c.firstChild);d.ka(c,0)?(a=a[a.length-1],H(c),l&&!d.fc(a)&&a.parentNode.insertBefore(M("br"),a.nextSibling)):e.Ie(c)}}};a.Cc=function(c){d.xc(c)?a.ba(Oa(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 d="",f;for(f=b?"\u00a0 ":" \u00a0";3<a;)d+=
f,a-=2;return 3==a?d+(b||c?b&&!c?"\u00a0\u00a0 ":!b&&c?" \u00a0\u00a0":b&&c?"\u00a0 \u00a0":"impossible":" \u00a0 "):d+(b||c?b&&!c?"\u00a0 ":!b&&c?" \u00a0":b&&c?"\u00a0\u00a0":"impossible":"\u00a0 ")};a.Qb=function(b,c,k){null==k&&(k=!0);if(d.L(b)||d.Ka(b)){for(;;)if(0<=c-1&&d.S(b,b.childNodes[c-1]))b=b.childNodes[c-1],c=O(b);else if(0==c&&!d.uc(b)&&d.S(b,b.parentNode))c=J(b),b=b.parentNode;else if(3===b.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Cc(b.parentNode).whiteSpace)&&0!=c&&/[ \xa0]/.test(b.data[c-
1]))c--;else break;for(var l=b,f=c,e=0,g=0==c&&d.uc(b);;)if(f<l.childNodes.length&&d.S(l,l.childNodes[f]))l=l.childNodes[f],f=0;else if(f==O(l)&&!d.fc(l)&&d.S(l,l.parentNode))f=1+J(l),l=l.parentNode;else if(3===l.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Cc(l.parentNode).whiteSpace)&&f!=O(l)&&/[ \xa0]/.test(l.data[f]))k&&g&&" "==l.data[f]?l.deleteData(f,1):(g=" "==l.data[f],f++,e++);else break;k&&b===l&&xc(b)&&c===f&&(g=(g=b.textContent.match(/^\s+/))?g[0]:"",g=g.length,g>=c&&(b.deleteData(0,g),
c=f=0));if(k)for(;"before"==d.Jb(b,c,l,f);)if(0<=f-1&&f-1<l.childNodes.length&&d.S(l,l.childNodes[f-1]))l=l.childNodes[f-1],f=O(l);else if(0==f&&d.S(l,l.parentNode))f=J(l),l=l.parentNode;else if(3===l.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Cc(l.parentNode).whiteSpace)&&f==O(l)&&" "==l.data[l.data.length-1]&&d.fc(l))f--,e--,l.deleteData(f,1);else break;for(k=a.D(e,0==c&&d.uc(b),f==O(l)&&d.fc(l));"before"==d.Jb(b,c,l,f);)c<b.childNodes.length?(b=b.childNodes[c],c=0):3!=b.nodeType||c==O(b)?(c=1+
J(b),b=b.parentNode):(e=k[0],k=k.slice(1),e!=b.data[c]&&(b.insertData(c,e),b.deleteData(c+1,1)),c++)}};a.je=function(a){T(a,"margin-left",d.wc(a)+40+"px")};a.yc=function(){return b.sc("isSelectionAtList",function(){return!(!b.C()||!P(b.C().startContainer,"ul,ol",e.Rb()))})};a.Re=function(){return b.sc("isSelectionAtTable",function(){return!(!b.C()||!P(b.C().startContainer,"table",e.Rb()))})};a.rd=function(){return a.Re()||a.yc()};var g=".en-crypt-revealed",g=g+",.en-crypto-revealed";a.Ca=function(){return b.sc("isSelectionAtCryptUnveiled",
function(){var a=b.C();return!!(wd(a,g,f)||0<Cd(a,g).length)})};a.N=function(){return b.sc("isSelectionAtModule",function(){return!!wd(b.C(),"div.en-module",f)})}}};function tf(){var a=this,c=this;c.name="query";c.F=function(){var b=c.H("context").root;a.nextNode=function(b){return b.hasChildNodes()?b.firstChild:a.xa(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.xa=function(a){for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};a.jb=function(a){for(var b=[];a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;
return b};a.Of=function(b){return a.jb(b).concat(b)};a.vc=function(b){for(var c=[],d=a.xa(b);(b=a.nextNode(b))&&b!=d;)c.push(b);return c};a.ie=function(b){return"ltr"==b.dir?"ltr":"rtl"==b.dir?"rtl":R(b.parentNode)?a.ie(b.parentNode):"ltr"};a.Jb=function(b,c,d,e){if(b==d){if(c==e)return"equal";if(c<e)return"before";if(c>e)return"after"}if(d.compareDocumentPosition(b)&4){e=a.Jb(d,e,b,c);if("before"==e)return"after";if("after"==e)return"before"}if(d.compareDocumentPosition(b)&8){for(;d.parentNode!=
b;)d=d.parentNode;if(J(d)<c)return"after"}return"before"};a.N=function(a){for(;null!=a.parentNode;)a=a.parentNode;return a};a.nd=function(b,c){var d=a.Jb(b,0,c.startContainer,c.startOffset),e=a.Jb(b,O(b),c.endContainer,c.endOffset);return a.N(b)==a.N(c.startContainer)&&"after"==d&&"before"==e};a.Aa=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var d=b.startContainer;d.hasChildNodes()&&b.startOffset<d.childNodes.length?d=d.childNodes[b.startOffset]:d=b.startOffset==O(d)?a.xa(d):a.nextNode(d);
var e=b.endContainer;e.hasChildNodes()&&b.endOffset<e.childNodes.length?e=e.childNodes[b.endOffset]:e=a.xa(e);for(var k=[];Jc(d,e);)a.nd(d,b)&&c(d)?(k.push(d),d=a.xa(d)):d=a.nextNode(d);return k};a.Ab=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var d=b.startContainer;d.hasChildNodes()&&b.startOffset<d.childNodes.length?d=d.childNodes[b.startOffset]:d=b.startOffset==O(d)?a.xa(d):a.nextNode(d);var e=b.endContainer;e.hasChildNodes()&&b.endOffset<e.childNodes.length?e=e.childNodes[b.endOffset]:
e=a.xa(e);for(var k=[];Jc(d,e);)a.nd(d,b)&&c(d)&&k.push(d),d=a.nextNode(d);return k};a.ec=function(a){return Q(a,wa)};a.A=function(a){return!(!a||a!==b&&(!Gc(a)||E(a,"en-container")))};a.X=function(b){return!(!b||a.A(b))};a.ka=function(b,c){var d=0;null==c&&(c=1);var e=a.vc(b);0===e.length&&(e=[b]);for(var k=e.length-1;0<=k;k--){var l=e[k];if(xc(l)&&!fd(l)||S(l)&&++d>=c+1||Ld(l))return!1}return!0};a.L=function(b){return!(!b||!a.ob(b)||1!==b.nodeType&&1!==b.parentNode.nodeType)};a.Ne=function(b){for(var c=
0;c<b.childNodes.length;c++)if(a.L(b.childNodes[c])||a.Ne(b.childNodes[c]))return!0;return!1};a.Sb=function(b){if(!S(b))return!1;var c=a.rb(b),d=a.na(b),e=!1,k=!1;cd(b,function(b){if(a.A(b)||d!==a.na(b))return!0;if(S(b))return k=!0;e=e||a.J(b);return!1},c);return!e&&!k};a.J=function(a){return 3===a.nodeType&&!fd(a)||Ld(a)};a.Eb=function(b){if(!S(b))return!1;for(var c=b,d=a.rb(b);(c=c.parentNode)&&!(1<c.childNodes.length||c===d);){if("li"===K(c))return!1;if(a.A(c))break}var c=b,e=a.na(b),k=!1,l=!1;
dd(c,function(b){if(a.A(b)||e!==a.na(b))return!0;if(S(b))return l=!0;k=k||a.J(b);return!1},d);var n=!1,t=!1;cd(c,function(b){if(a.A(b)||e!==a.na(b))return!0;if(S(b))return t=!0;n=n||a.J(b);return!1},d);return t||n||l||k?t||n?!1:k&&!n?!0:l?!1:!0:"li"===K(e)};a.re=function(b){if(!fd(b))return!1;if(""===b.data)return!0;var c=b.parentNode;if(!c)return!0;for(;!a.A(c)&&c.parentNode;)c=c.parentNode;for(var d=b;d!=c;){d=a.previousNode(d);if(a.A(d)||S(d))return!0;if(3==d.nodeType&&!fd(d)||Ld(d))break}d=b;
for(b=a.xa(c);d!=b;){d=a.nextNode(d);if(a.A(d)||S(d))return!0;if(d&&3==d.nodeType&&!fd(d)||Ld(d))break}return!1};a.Se=function(b){if(!b)return!1;if(a.A(b)||3===b.nodeType&&!a.re(b)||Ld(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.Se(b.childNodes[c]))return!0;return!1};a.Z=function(b){if(!b)return!1;if(a.A(b)||Ld(b)||3===b.nodeType&&!a.re(b)||S(b)&&!a.Eb(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.Z(b.childNodes[c]))return!0;return!1};a.xc=function(b){return $b(b).some(function(b){return a.Z(b)})};
a.$=function(b){return!!b&&!a.Z(b)};a.pe=function(b){if(a.Sb(b)&&!a.Eb(b))return!0;if(!a.X(b)||1!=b.nodeType)return!1;for(var c=!1,d=0;d<b.childNodes.length;d++){if(!a.$(b.childNodes[d])&&!a.pe(b.childNodes[d]))return!1;a.pe(b.childNodes[d])&&(c=!0)}return c};a.Oa=function(a){return-1!==na.indexOf(K(a))};var d="body caption col colgroup frame frameset head html tbody td tfoot th thead tr".split(" "),e=[[["a"],["a"]],[["dd","dt"],["dd","dt"]],["h1 h2 h3 h4 h5 h6".split(" "),"h1 h2 h3 h4 h5 h6".split(" ")],
[["li"],["li"]],[["nobr"],["nobr"]],[na,ma],[["td","th"],"caption col colgroup tbody td tfoot th thead tr".split(" ")]];a.W=function(b,c){if((-1!==sa.indexOf(c)||-1!==sa.indexOf(K(c)))&&"object"===typeof b&&3===b.nodeType&&!/^[ \t\n\f\r]*$/.test(b.data)||!(-1===ta.indexOf(c)&&-1===ta.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(!v(b))return!0;if(R(c)){for(var h=c;h;){if("a"===b&&R(h,"a")||-1!==
ma.indexOf(b)&&a.Oa(h)||/^h[1-6]$/.test(b)&&R(h)&&/^h[1-6]$/.test(K(h)))return!1;h=h.parentNode}c=K(c)}if("object"===typeof c&&(1===c.nodeType||11===c.nodeType))return!0;if(!v(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!==d.indexOf(b)||-1!==["dd","dt"].indexOf(b)&&"dl"!==c||"li"===b&&"ol"!==c&&"ul"!==c)return!1;for(h=0;h<e.length;h++)if(-1!==e[h][0].indexOf(c)&&-1!==e[h][1].indexOf(b))return!1;return!0};a.va=function(b){return a.L(b)&&a.Z(b)&&(3===b.nodeType||Ld(b)||S(b))};a.Fb=function(a){if(!R(a))return!1;var b=K(a);return"blockquote"===b?!0:"div"!==b?!1:"0px"!==Cc(a)["margin-left"]?!0:!1};a.zc=function(b){if(!a.Fb(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.Tb=function(a){return Q(a,"address,div,h1,h2,h3,h4,h5,h6,listing,p,pre,xmp")};a.ve=function(b){return a.Tb(b)||Q(b,"li,dt,dd")};a.na=function(b){for(;b&&!a.A(b);)b=b.parentNode;return b};a.Y=function(b,c){var d=!1;b?0===c?d=a.A(b)||a.Ma(b)||!b.parentNode:0<=c-1&&c-1<b.childNodes.length&&(d=a.Z(b.childNodes[c-
1])&&a.A(b.childNodes[c-1])||S(b.childNodes[c-1])):d=!0;return d};a.R=function(b,c){var d=!1;b?c===O(b)?d=!b.parentNode||a.A(b)||a.Ma(b):c<b.childNodes.length&&(d=a.Z(b.childNodes[c])&&a.A(b.childNodes[c])):d=!0;return d};a.D=function(b,c){return a.Y(b,c)||a.R(b,c)};a.ga=function(b){var c=b.startContainer,d=b.startOffset,e=b.endContainer;b=b.endOffset;var k=a.jb(c).concat(c).filter(function(a){return R(a,"li")}).slice(-1);k.length&&(d=J(k[0]),c=k[0].parentNode);if(!a.Y(c,d)){do 0<=d-1&&(Ld(c.childNodes[d-
1])||a.Ma(c.childNodes[d-1]))?d--:0<=d-1&&I(c.childNodes[d-1])&&c.childNodes[d-1].hasChildNodes()?(c=c.childNodes[d-1],d=O(c)):0==d?(d=J(c),c=c.parentNode):d--,xc(c)&&(d=J(c),c=c.parentNode);while(!a.D(c,d))}for(;0==d&&c.parentNode&&a.L(c)&&!a.Ma(c);)d=J(c),c=c.parentNode;k=a.jb(e).concat(e).filter(function(a){return R(a,"li")}).slice(-1);k.length&&(b=1+J(k[0]),e=k[0].parentNode);if(!a.R(e,b)){do{if(b<O(e)&&(Ld(e.childNodes[b])||a.Ma(e.childNodes[b])))b++;else if(b<O(e)&&I(e)&&e.hasChildNodes())e=
e.childNodes[b],b=0;else if(b>=O(e)){if(a.Ma(e))break;b=1+J(e);e=e.parentNode}else b++;xc(e)&&(b=1+J(e),e=e.parentNode)}while(!a.D(e,b))}for(;b==O(e)&&e.parentNode&&a.L(e)&&!a.Ma(e);)b=1+J(e),e=e.parentNode;return rd(c,d,e,b)};a.uc=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.fc=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.wc=function(a){return a&&a.style?ie(a.style.marginLeft):0};a.td=function(b,c){if(!b||a.Ka(b)||!I(b)||R(b,"table"))return!0;var d=b.style;if(d)for(var e=0;e<d.length;e++){var k=null,l=null,k=d[e],l=d.getPropertyValue(k);if(-1===qa.indexOf(l)&&l&&-1===pa.indexOf(k))return!1}return c?a.td(b.parentNode):!0};a.kg=function(b){return!!P(b,"li,ol,ul,dl,dd,dt",a.rb(b))};a.Ib=function(a){var b=K(a);return"ul"===b&&E(a,
"en-todo-list")?"tl":"ol"===b||"ul"===b?b:null};a.Yf=function(b){var c=[];b=b.querySelectorAll("ol,ul");for(var d=b.length;d--;){var e=a.Ib(b[d]);null!==e&&0>c.indexOf(e)&&c.push(e)}return c};a.Qe=function(b,c){return a.Ib(b)===c};a.fa=function(b,c){return 0===O(b)?null:c===O(b)&&b.parentNode&&a.X(b)?[b.parentNode,1+J(b)]:0<=c&&c<b.childNodes.length&&0!==O(b.childNodes[c])&&a.X(b.childNodes[c])?[b.childNodes[c],0]:null};a.ua=function(b,c){return 0==O(b)?null:0==c&&b.parentNode&&a.X(b)?[b.parentNode,
J(b)]:0<=c-1&&c-1<b.childNodes.length&&0!=O(b.childNodes[c-1])&&a.X(b.childNodes[c-1])?[b.childNodes[c-1],O(b.childNodes[c-1])]:null};a.Oc=function(b,c){for(var d;d=a.ua(b,c);)b=d[0],c=d[1];return[b,c]};a.Qc=function(b,c){for(var d;d=a.fa(b,c);)b=d[0],c=d[1];return[b,c]};a.Ma=function(b){return!!(b&&I(b)&&(E(b,"en-container")||R(b,"td")||a.A(b)&&!a.td(b,!1)))};a.Db=function(c){return b===c?!0:!!(c&&yc(c,b)&&a.Ma(c))};a.Ka=function(a){return b===a};a.rb=function(c){return yc(c,b)||a.Ka(c)?b:null};
a.ob=function(a){return yc(a,b)};a.S=function(b,c){return!(!a.rb(b)||a.rb(b)!=a.rb(c))}}};function uf(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 d=c[b];-1===ua.indexOf(K(d))&&"en-editor-last-insertion-point"!==d.id&&d.removeAttribute("id");d.removeAttribute("class");d.attributes&&0<d.attributes.length&&Oa(d.attributes).forEach(function(a){0===
a.name.indexOf("data-")&&d.removeAttribute(a.name)})}}function vf(a){V("span",a).forEach(function(a){a.hasAttributes()||fc(a)})}
function wf(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 d=b.nextSibling;b=ec(b,document.createTextNode(b.data.substr(7)));b.data.lastIndexOf("]]")!=b.data.length-2&&d&&3==d.nodeType?(d.data=d.data.replace(/^(.*?)\]\]\>(.*?)$/gi,"$1$2"),b.data+=">"):b.data=b.data.replace(/^(.*?)\]\](.*?)$/gi,"$1$2")}else b.parentNode.removeChild(b);else ec(b,document.createTextNode(b.data))}
function xf(a){a=a.querySelectorAll("*[style*='line-height']");for(var c=a.length-1;0<=c;c--){var b=a[c];b.style.lineHeight&&Vc(b,"line-height")}}var yf=["javascript"];function zf(a){var c=a;try{c=decodeURIComponent(c)||c}catch(b){w.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<=yf.indexOf(c[1].toLowerCase())?"#":a.trim()||"#":a||"#"}
function Af(a){V("span[style*='-evernote-last-insertion-point']",a).forEach(function(a){fc(a)})}function Bf(){return M("span",{style:"-evernote-last-insertion-point:true;",id:"en-editor-last-insertion-point"})}
function Cf(a){for(var c=ka.concat("id","contenteditable"),b=Oa(a.attributes||[]).map(function(a){return a.name.toLowerCase()}),d=0;d<b.length;d++){var e=b[d];-1===c.indexOf(e)&&a.removeAttribute(e)}Rc(a);Vc(a,"height");Vc(a,"width");Vc(a,"max-height");Vc(a,"max-width");Vc(a,"min-height");Vc(a,"min-width");Sc(a)}
function Df(a,c){for(var b='<div id="en-note"',d=0;d<ka.length;d++){var e=ka[d].toLowerCase();if(a.hasAttribute(e)){var f=a.getAttribute(e);if("lang"!==e||""!==f)b+=" "+e+'="'+cb(f)+'"'}}return b+">"+c+"</div>"};function Ef(){var a=this,c=this;c.name="format";c.F=function(){var b=c.H("context"),d=c.H("query"),e=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!==e&&d.X(a);){if(a.style){var b=a.style.backgroundColor;if(b&&"rgba(0, 0, 0, 0)"!==b&&""!==b&&"transparent"!==b)return Cc(a).backgroundColor}a=a.parentNode}return null};f.highlight=function(a){for(;a&&a!==e&&d.X(a);){if(a.style&&
("rgb(255, 250, 165)"===a.style.backgroundColor||"true"===Uc(a,"-evernote-highlight")||"true"===Uc(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;d.X(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.Ie=function(a){var b=a.previousSibling;if(b){for(;b.hasChildNodes();)b=b.lastChild;for(;d.$(b)&&!d.Eb(b)&&b!==a.parentNode;)b=d.previousNode(b);d.L(b)&&d.Eb(b)&&b.parentNode.removeChild(b)}};a.Ge=function(a){for(var b=a;b.hasChildNodes();)b=b.lastChild;
for(;d.$(b)&&!d.Eb(b)&&b!==a;)b=d.previousNode(b);if(d.L(b)&&d.Eb(b)){for(;d.L(b.parentNode)&&d.$(b.parentNode);)b=b.parentNode;b.parentNode.removeChild(b)}};a.ob=function(b){a.Ie(b);a.Ge(b)};a.La=function(c,l,e){"undefined"===typeof l&&(l=function(){return!1});"undefined"===typeof e&&(e=function(){return null});if(c.every(d.$)&&!c.some(function(a){return S(a)})||!c[0].parentNode)return null;for(d.X(c[c.length-1])&&!S(c[c.length-1])&&S(c[c.length-1].nextSibling)&&c.push(c[c.length-1].nextSibling);d.$(c[0].previousSibling);)c.unshift(c[0].previousSibling);
for(;d.$(c[c.length-1].nextSibling);)c.push(c[c.length-1].nextSibling);e=d.L(c[0].previousSibling)&&l(c[0].previousSibling)?c[0].previousSibling:d.L(c[c.length-1].nextSibling)&&l(c[c.length-1].nextSibling)?c[c.length-1].nextSibling:e();if(!e)return null;if(!e.parentNode){c[0].parentNode.insertBefore(e,c[0]);var f=b.C();f.startContainer===e.parentNode&&f.startOffset===J(e)&&b.Ec(f.startContainer,f.startOffset+1);f.endContainer===e.parentNode&&f.endOffset===J(e)&&b.Dc(f.endContainer,f.endOffset+1)}f=
c[0].parentNode;if(Jc(e,c[0])){!d.X(e)&&d.X([].filter.call(e.childNodes,d.Z).slice(-1)[0])&&d.X(c.filter(d.Z)[0])&&!S(e.lastChild)&&e.appendChild(M("br"));for(var h=0;h<c.length;h++)b.K(c[h],e,-1)}else for(!d.X(e)&&d.X([].filter.call(e.childNodes,d.Z)[0])&&d.X(c.filter(d.Z).slice(-1)[0])&&!S(c[c.length-1])&&e.insertBefore(M("br"),e.firstChild),h=c.length-1;0<=h;h--)b.K(c[h],e,0);d.L(f)&&!f.hasChildNodes()&&f.parentNode.removeChild(f);if(d.L(e.nextSibling)&&l(e.nextSibling)){for(!d.X(e)&&d.X(e.lastChild)&&
d.X(e.nextSibling.firstChild)&&!S(e.lastChild)&&e.appendChild(M("br"));e.nextSibling.hasChildNodes();)b.K(e.nextSibling.firstChild,e,-1);b.removeNode(e.nextSibling)}a.ob(e);return e};a.R=function(b,c){return null==c||c.collapsed?!1:d.nd(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.R(b,c)})||yc(c.startContainer,b)&&3===c.startContainer.nodeType&&0!==c.startOffset||
yc(c.endContainer,b)&&3===c.endContainer.nodeType&&c.endOffset!==O(c.endContainer))?!0:!1};a.Bb=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return null;for(var e=b.startContainer;a.R(e.parentNode,b);)e=e.parentNode;for(var f=d.xa(b.endContainer);!f&&e||f&&Jc(e,f);){if(a.R(e,b)&&c(e))return e;e=d.nextNode(e)}return null};a.oa=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return[];for(var e=b.startContainer;a.R(e.parentNode,
b);)e=e.parentNode;for(var f=d.xa(b.endContainer),h=[];!f&&e||f&&Jc(e,f);)a.R(e,b)&&c(e)&&h.push(e),e=d.nextNode(e);return h};a.fa=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,d){if(null===c&&null===d)return!0;if(v(c)&&v(d)){if("fontsize"===a)return(a=c===d)||(c=Math.round(ie(c)),d=Math.round(ie(d)),a=!(null==c||null==d||c!==d)),a;if(c===d&&!b.U(a).Lb||b.U(a).Lb&&b.U(a).Lb(c,d))return!0}return!1};a.M=function(c,d){if(1!==c.nodeType&&(!c.parentNode||1!==c.parentNode.nodeType))return null;if(1!==c.nodeType)return a.M(c.parentNode,d);var n=f[d];
if(n)return n(c);C(!!b.U(d).Ua,"Bug: no relevantCssProperty for "+d+" in f.getEffectiveCommandValue");n=b.U(d).Ua;if(!n)return"";if(!Bc(c))return w.warn("We are not on rendered DOM for fontSize retrieval",c),hd(c,n,e);if(c.style&&null!==c.style[n]&&""!==c.style[n])return c.style[n];n=Cc(c)[n];"fontname"===d&&"-webkit-standard"===n&&(n=(n=Hd.env)&&null!=n.defaultNoteFont?n.defaultNoteFont:"Default");return n};a.J=function(a,c){if(("backcolor"===c||"highlight"===c)&&Gc(a))return null;var d=K(a);if("createlink"===
c||"unlink"===c)return"a"===d&&a.hasAttribute("href")?a.getAttribute("href"):null;if("subscript"===c||"superscript"===c)return"sup"===d?"superscript":"sub"===d?"subscript":null;if("strikethrough"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("line-through")?"line-through":null;if("strikethrough"===c&&("s"===d||"strike"===d||"del"===d))return"line-through";if("underline"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("underline")?"underline":
null;if("underline"===c&&"u"===d)return"underline";if("highlight"===c&&"mark"===d)return"rgb(255, 250, 165)";if("tt"===d)return"tt";var f=b.U(c),h=f.Ua;if(null===h)return null;var g=a.style[h];if(""!==g)return(d=f.Ra)&&d.length?("highlight"===c&&(g=$d(g)),-1!==d.indexOf(g)?g:null):g;if("font"===d){if("color"===h&&a.hasAttribute("color"))return a.color;if("fontFamily"===h&&a.hasAttribute("face"))return a.face;if("fontSize"===h&&a.hasAttribute("size"))return Bc(a)?Cc(a).fontSize.toString():(w.warn("We are not on rendered DOM for fontSize retieval",
a),hd(a,"fontSize",e))}return"fontWeight"!==h||"b"!==d&&"strong"!==d?"fontStyle"!==h||"i"!==d&&"em"!==d?null:"italic":"bold"};a.Oa=function(c,d,e){for(var f=c;a.fa(f)&&1===f.childNodes.length&&a.fa(f.firstChild)&&(!a.Y(f)||!a.D(d,a.J(f,d),e));)f=f.firstChild;if(f!==c&&a.Y(f)&&a.D(d,a.J(f,d),e)&&a.D(d,a.M(f,d),e)){for(;f.hasChildNodes();)b.K(f.firstChild,f.parentNode,J(f));c.parentNode.insertBefore(f,c.nextSibling);b.K(c,f,-1)}};a.ca=function(b){var c=[];b.forEach(function(b){"subscript forecolor highlight backcolor fontname fontsize bold italic strikethrough underline tt".split(" ").forEach(function(d){var e=
b;1!==e.nodeType&&(e=e.parentNode);for(;e&&1===e.nodeType&&null===a.J(e,d);)e=e.parentNode;e&&1===e.nodeType?c.push([b,d,a.J(e,d)]):c.push([b,d,null])})});return c};a.aa=function(b){b.forEach(function(b){var c=b[0],d=b[1];b=b[2];var e=c;e&&1===e.nodeType||(e=e.parentNode);for(;e&&1===e.nodeType&&null===a.J(e,d);)e=e.parentNode;null===b&&e&&1===e.nodeType?a.ua(c,d,null):(e&&1===e.nodeType&&!a.D(d,a.J(e,d),b)||(!e||1!==e.nodeType)&&null!==b)&&a.N(c,d,b)})};a.fe=function(c,e){if(d.L(c)&&null!==a.J(c,
e))if(a.Y(c)){for(var f=Array.prototype.slice.call(c.childNodes),h=0;h<f.length;h++)b.K(f[h],c.parentNode,J(c));c.parentNode.removeChild(c)}else"strikethrough"===e&&-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"===e&&-1!==c.style.textDecoration.indexOf("underline")&&("underline"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=
c.style.textDecoration.replace("underline","")),null!==b.U(e).Ua&&(c.style[b.U(e).Ua]=""),R(c,"font")&&("forecolor"===e&&c.removeAttribute("color"),"fontname"===e&&c.removeAttribute("face"),"fontsize"===e&&c.removeAttribute("size")),!R(c,"a")||"createlink"!==e&&"unlink"!==e||c.removeAttribute("href"),""===c.getAttribute("style")&&c.removeAttribute("style"),null===a.J(c,e)||b.ma(c,"span")};a.ua=function(b,c,e){if(b.parentNode&&1===b.parentNode.nodeType&&!a.D(c,a.M(b,c),e)){for(var f=b.parentNode,h=
[];d.L(f)&&1===f.nodeType&&!a.D(c,a.M(f,c),e);)h.push(f),f=f.parentNode;if(h.length){var g=a.J(h[h.length-1],c);if(null!==g||g===e)if(null===e||a.D(c,a.M(h[h.length-1].parentNode,c),e))for(;h.length;)for(f=h.pop(),null!==a.J(f,c)&&(g=a.J(f,c)),e=Array.prototype.slice.call(f.childNodes),null!==a.J(f,c)&&a.fe(f,c),f=0;f<e.length;f++){var m=e[f];m!==b&&(1!==m.nodeType||null===a.J(m,c)||a.D(c,g,a.J(m,c)))&&m!==h[h.length-1]&&a.N(m,c,g)}}}};a.N=function(c,e,f){if(c.parentNode&&null!==f&&(d.W(c,"span")&&
(a.Oa(c.previousSibling,e,f),a.Oa(c.nextSibling,e,f),a.La([c],function(b){return a.Y(b)&&a.D(e,a.J(b,e),f)&&a.D(e,a.M(b,e),f)},function(){return null})),!d.$(c)&&!a.D(e,a.M(c,e),f)&&c.parentNode))if(!d.W(c,"span")){for(var h=[],g=0;g<c.childNodes.length;g++){if(1===c.childNodes[g].nodeType){var m=a.J(c.childNodes[g],e);if(null!==m&&!a.D(e,f,m))continue}h.push(c.childNodes[g])}for(g=0;g<h.length;g++)a.N(h[g],e,f)}else if(!a.D(e,a.M(c,e),f)){h=null;if("bold"!==e||"bold"!==f&&"700"!==f)if("italic"===
e&&"italic"===f)h=M("i");else if("strikethrough"===e&&"line-through"===f)h=M("s");else if("underline"===e&&"underline"===f)h=M("u");else if("tt"===e&&"tt"===f)h=M("tt");else if("createlink"===e||"unlink"===e)for(h=M("a"),h.setAttribute("href",f),g=c.parentNode;g;)R(g,"a")&&(g=b.ma(g,"span")),g=g.parentNode;else"subscript"!==e&&"superscript"!==e||"subscript"!==f?"subscript"!==e&&"superscript"!==e||"superscript"!==f||(h=M("sup")):h=M("sub");else h=M("b");h||(h=M("span"));c.parentNode.insertBefore(h,
c);g=b.U(e).Ua;null===g||h.style[g]===f||a.D(e,a.M(h,e),f)||(h.style[g]=f,"highlight"===e&&T(h,"-evernote-highlight","true"));"forecolor"===e&&ae(f)&&h.style.color!==f&&(h.style.color=f);"fontname"===e&&null!=f&&h.style.fontFamily!==f&&(h.style.fontFamily=f);"fontsize"===e&&null!=f&&h.style.fontSize!==f&&(h.style.fontSize=f);"strikethrough"===e&&"line-through"===f&&"line-through"!==a.M(h,"strikethrough")&&(h.style.textDecoration="line-through");"underline"===e&&"underline"===f&&"underline"!==a.M(h,
"underline")&&(h.style.textDecoration="underline");b.K(c,h,h.childNodes.length);if(1===c.nodeType&&!a.D(e,a.M(c,e),f)){b.K(c,h.parentNode,J(h));h.parentNode.removeChild(h);h=[];for(g=0;g<c.childNodes.length;g++){if(1===c.childNodes[g].nodeType&&(m=a.J(c.childNodes[g],e),null!==m&&!a.D(e,f,m)))continue;h.push(c.childNodes[g])}for(g=0;g<h.length;g++)a.N(h[g],e,f)}}};a.Gd=function(c,e,f){var h=!1,g=!1,m=a.H("textinput");null==f&&((f=m.Nf())?g=!0:(f=b.C(),h=!0));if(null===a.Bb(f,d.va))b.Sg(),b.U(c).Ra&&
b.We(c,-1!==b.U(c).Ra.indexOf(e)),"subscript"===c&&b.$e("superscript"),"superscript"===c&&b.$e("subscript"),null===e?b.Rg(c):("createlink"===c||b.U(c).value)&&b.Xe(c,e);else{if(d.L(f.startContainer)&&3===f.startContainer.nodeType&&0!==f.startOffset&&f.startOffset!==O(f.startContainer)){var p;if(f.startContainer===f.endContainer){var q=f.endOffset-f.startOffset;p=f.startContainer.splitText(f.startOffset);f.setEnd(p,q)}else p=f.startContainer.splitText(f.startOffset);f.setStart(p,0)}d.L(f.endContainer)&&
3===f.endContainer.nodeType&&0!==f.endOffset&&f.endOffset!==O(f.endContainer)&&(p=[f.startContainer,f.startOffset],q=[f.endContainer,f.endOffset],f.endContainer.splitText(f.endOffset),f.setStart(p[0],p[1]),f.setEnd(q[0],q[1]));h?b.Ea(f):g&&m.Hg(f);a.oa(f,function(a){return d.L(a)&&1===a.nodeType}).forEach(function(b){a.fe(b,c)});a.oa(f,d.L).forEach(function(b){a.ua(b,c,e);d.W(b,"span")&&a.N(b,c,e)})}};var g="bold italic strikethrough subscript superscript underline highlight tt".split(" "),h=["fontname",
"fontsize","forecolor"],m=["object"];a.wd=function(){var a=[];void 0!==b.kd("createlink")&&a.push(["createlink",b.kd("createlink")]);g.forEach(function(c){void 0!==b.dd(c)&&a.push([c,b.dd(c)])});h.forEach(function(c){void 0!==b.kd(c)&&a.push([c,b.kd(c)])});return a};a.se=function(c){var e=[],f=a.Bb(b.C(),d.va);!f&&c&&(c=b.C())&&(f=xd(c));if(!f)return e;e.push(["createlink",a.M(f,"createlink")]);g.forEach(function(c){var d=a.M(f,c);-1!==b.U(c).Ra.indexOf(d)?e.push([c,!0]):e.push([c,!1])});if(-1!==
m.indexOf(K(f)))return e;h.forEach(function(c){"fontsize"===c?e.push([c,a.M(f,"fontsize")]):e.push([c,b.U(c).value()])});return e};a.Cb=function(c){var e,f,h,g=a.Bb(b.C(),d.va);if(null!==g)for(e=0;e<c.length;e++)f=c[e][0],h=c[e][1],"boolean"===typeof h&&b.U(f).state()!==h?b.U(f).action(h):v(h)&&!a.D(f,a.M(g,f),h)&&b.U(f).action(h),g=a.Bb(b.C(),d.va)||g;else for(e=0;e<c.length;e++)f=c[e][0],h=c[e][1],"boolean"===typeof h&&b.We(f,h),v(h)&&b.Xe(f,h)};a.lg=function(c){var d=a.se(!0);c();b.ya();a.Cb(d)};
a.Rb=function(){return d.rb(xd(b.C()))}}};function Ff(){var a=this;a.name="normalize";var c=/\n\r|\r\n|\r|\n/gi,b=/\s/gi;a.F=function(){function d(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=fe(e))&&0>c.offsetTop&&0>e.value&&(Ye(c),T(c,"margin-top",e.value-c.offsetTop+"px")),(d=fe(d))&&0>c.offsetLeft&&0>d.value&&(Ye(c),T(c,"margin-left",d.value-c.offsetLeft+"px"));if(0===
b.indexOf("-")||0===a.indexOf("-"))b=fe(b).value,a=fe(a).value,0>c.offsetTop&&0>b&&(Ye(c),T(c,"top",b-c.offsetTop+"px")),0>c.offsetLeft&&0>a&&(Ye(c),T(c,"left",a-c.offsetLeft+"px"))}}function e(a){var b=Cc(a)||{},b={fontWeight:b.fontWeight,ng:b.fontFamily,fontSize:ie(b.fontSize),marginTop:ie(b.marginTop),marginBottom:ie(b.marginBottom)},c=Cc(a.parentNode)||{};a=z.ma(a,"div");b.fontWeight&&"normal"!==b.fontWeight&&400!=b.fontWeight&&(a.style.fontWeight=b.fontWeight);b.fontFamily&&b.ng!==c.fontName&&
(a.style.fontFamily=b.fontFamily);b.fontSize&&b.fontSize!==ie(c.fontSize)&&(a.style.fontSize=b.fontSize.toString()+"px");0<=1*b.marginTop-ie(c.fontSize)&&(x.kg(a)?(a.appendChild(M("br")),a.appendChild(M("br"))):(b=uc(),z.K(b,a.parentNode,J(a)),Rc(b),k(b),Sc(b)));return a}function f(a){if(!a)return a;Gc(a)&&(a=z.ma(a,"div"));Ye(a);Vc(a,"white-space");Vc(a,"word-wrap");Vc(a,"word-break");for(var d=$b(a),e,l,k=z.C(),h=0;h<d.length;h++){var n=d[h];if(xc(n)){for(var m=n.textContent.split(c),A=M("div"),
t=0;t<m.length;t++){var r=m[t].replace(b,"\u00a0").replace(xa,"\u00a0 ");r&&A.appendChild(document.createTextNode(r));t<m.length-1&&A.appendChild(M("br"))}if(k.startContainer===n||yc(n,k.startContainer))e=g(A,k.startOffset);if(k.endContainer===n||yc(n,k.endContainer))l=g(A,k.endOffset);ec(n,A);fc(A)}else f(n)}e&&null!==e[0]&&z.Ec(e[0],e[1]);l&&null!==l[0]&&z.Dc(l[0],l[1]);return a}function g(a,b){for(var c=0,d=null,e=0,f=0;f<a.childNodes.length;f++){var l=a.childNodes[f],k=l.length||1;if(c<b)c+=k,
e=k-(c-b),d=l;else{c==b&&(e=0,d=l);break}}return[d,e]}function h(){if(!p(X,!0)&&x.ka(X)){dc(X);var a=uc();X.appendChild(a);z.T(a,0);z.ya(!0)}}function m(a){if(I(a)&&(a=a.getElementsByTagName("*")))for(var b=a.length-1;0<=b;b--){var c=a[b];c.hasChildNodes()||Gc(c)||Ld(c)||S(c)||z.removeNode(c)}}function k(a){(a=r(a))&&A(a,"div>div,div>table,div>ol,div>ul").forEach(function(a){var b=a.parentNode;if(b&&!x.Db(b)&&!x.Db(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=x.wc(b)+x.wc(a);0<c?T(a,"margin-left",c+"px"):Vc(a,"margin-left")}var c=[a],d=B.ca(c);L.ba(c);B.aa(d);l(x.na(a))}})}function l(a){var b=a&&a.nextSibling;b&&!p(b)&&z.removeNode(b);(a=a&&a.previousSibling)&&!p(a)&&z.removeNode(a)}function n(a){if(Q(a,"ul,ol")&&x.L(a)&&x.td(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:Gc(d)?z.ma(d,"li"):fd(d)?z.removeNode(d):(b||(b=M("li"),z.insertBefore(b,d.parentNode,d.nextSibling)),
z.K(d,b,0))}}function t(a){C(!!a,"expected node");if("hr"===K(a)){var b=M("div");b.appendChild(a);return b}b=rd(a,0);b=x.ga(b);if(b.collapsed)return null;for(;x.A(a=b.startContainer.childNodes[b.startOffset]);)b.setStart(a,0);a=x.Aa(b);if(0>=a.length)return yd(b);for(var b=a[0].parentNode,c=(x.A(b)||x.Ma(b))&&a[0]===b.firstChild&&a[a.length-1]===b.lastChild;a.length&&fd(a[0]);)z.removeNode(a.shift());var d=x.Db(b);if(c){if(!d)return b;if(0>=a.length||!$b(b).some(function(a){return p(a)}))return L.ib(b),
b}a.length&&(c=B.ca(a),b=B.La(a,function(){return!1},function(){return M("div")}),B.aa(c),L.ea(b));return b}function r(a){for(var b;a&&!Q(a,"div.en-module,object")&&(b=a.firstChild);)a=b;return a}function u(a){var b=P(a,"div.en-module,object",X);return b&&b!==a?!0:!1}function p(a,b){if(!a)return!1;if(3===a.nodeType&&!x.re(a)||Ld(a)||Q(a,"table,tr,td,th,li")||S(a)&&(b?!x.Sb(a):!x.Eb(a)))return!0;for(var c=0;c<a.childNodes.length;c++)if(p(a.childNodes[c],b))return!0;return!1}function q(a,b){for(var c=
[];a&&a!==X;)-1!==b.indexOf(K(a))&&c.unshift(a),a=a.parentNode;return c}function A(a,b){for(var c=[];a&&a!==X;)Q(a,b)&&c.unshift(a),a=a.parentNode;return c}var z=a.H("context"),x=a.H("query"),B=a.H("format"),L=a.H("block"),X=z.root,xa=/\u00a0\u00a0/gi,ha={dl:function(a){if(a){for(var b=a.getElementsByTagName("dt"),c=b.length;c--;)e(b[c]);b=a.getElementsByTagName("dd");for(c=b.length;c--;)L.je(e(b[c]));return e(a)}return a}};ha.h1=ha.h2=ha.h3=ha.h4=ha.h5=ha.h6=ha.p=e;ha.center=function(a){a=e(a);T(a,
"text-align","center")};ha.blockquote=function(a){a=e(a);a.style.marginLeft="";L.je(a);$b(a).forEach(k);return a};ha.th=function(a){a=z.ma(a,"td");var b=document.createRange();b.selectNodeContents(a);B.Gd("bold","bold",b);return a};ha.ol=ha.ul=function(a,b){b||(V("li div",a).forEach(function(a){x.Db(a)||L.Cc(a)}),V("li",a).forEach(L.sb),V('li[style*="list-style:"]',a).forEach(function(a){if("none"===Uc(a,"list-style")){for(;fd(a.previousSibling);)z.removeNode(a.previousSibling);Q(a.previousSibling,
"li")?(z.Te(a,a.previousSibling,-1),z.removeNode(a)):a.removeAttribute("style")}}));n(a);return a};ha.pre=function(a){return f(a)};var ra=Object.keys(ha);a.D=function(a){if(!a||u(a))return null;a=r(a);var b=!1,c=!1;q(a,ra).forEach(function(a){var d=K(a),e=ha[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=Uc(a,"white-space");if("pre"===b||"pre-wrap"===b)a=f(a),c=!0;for(var b=["line-height","max-width","min-width"],e=b.length;e--;){var l=
b[e];Uc(a,l)&&(Ye(a),Vc(a,l))}if(0>a.offsetTop||0>a.offsetLeft||a.style&&a.style.position)if(b=Uc(a,"position"),"fixed"!==b||a.offsetParent&&a.offsetParent!==X||(Ye(a),T(a,"position","relative")),"absolute"===b&&a.offsetParent===X&&(a.offsetParent.offsetHeight<a.offsetTop+a.offsetHeight&&a.style.top&&(Ye(a),T(a,"position","relative"),Vc(a,"top")),a.offsetParent.offsetWidth<a.offsetLeft+a.offsetWidth&&a.style.left&&(Ye(a),T(a,"position","relative"),Vc(a,"left"))),0>a.offsetTop||0>a.offsetLeft){b=a.offsetParent;
e=a.offsetTop;for(l=a.offsetLeft;null!==b&&b!==X;){b.offsetLeft&&(l+=b.offsetLeft);b.offsetTop&&(e+=b.offsetTop);var k=Uc(b,"position");"absolute"!==k&&"fixed"!==k||b.offsetParent!==X||(Ye(b),0>b.offsetLeft||0>b.offsetTop?d(b.offsetTop,b.offsetLeft,b):T(b,"position","relative"));b=b.offsetParent}d(e,l,a)}});b||c||(a=r(a),a=t(a));a=r(a);Ye(a);k(a);if(a=x.na(a))m(a),l(a);Ze();return a};a.Gb=function(){a.D(xd(z.C()));h()};a.Ue=function(){a.D(yd(z.C()));h()};a.Be=function(){z.C().collapsed||a.Ue();a.Gb()};
a.Cg=function(){for(var b=xd(z.C()),c,d=2;b&&0<d;)fd(b)?c=vc(b,X):x.X(b)?(--d,c=a.D(b),c=dd(c,function(a){return x.X(a)&&x.na(c)!==x.na(a)},X)):c=vc(b,X),b=c;h()};a.mc=function(b,c){z.C()||z.T(X,0);var d=0;c||(c=y);var e=B.Rb();V("td:empty,th:empty",e).forEach(function(a){z.Pb(uc(),a)});V("li:empty",e).forEach(function(a){z.Pb(M("br"),a)});V("hr",e).forEach(function(a){a.parentNode!==e&&L.ba([a])});for(var f=b||e.firstChild,l=[],k;f&&c(f)&&1111>d++;)if(f=r(f),-1!==l.indexOf(f))f=wc(f,e);else{l.push(f);
if(fd(f)&&1<O(f.parentNode))k=wc(f,e),z.removeNode(f);else if(x.X(f)||Q(f,"td,li,div")){var n=f.nextSibling;(k=a.D(f))||(k=n);k=cd(k,function(a){return x.X(a)&&!u(a)&&x.na(k)!==x.na(a)},e)}else k=wc(f,e);f=k}h();0>=d&&w.error("Normalization reached safety limit, this probably indicates that the current document failed to get normalized and may behave unexpectedly.")};a.$b=function(){z.C().collapsed?a.Gb():a.mc(xd(z.C()),function(a){var b=z.C(),c;if(c=b)b=yd(b),c=!(null!=a&&null!=b&&a.compareDocumentPosition(b)&
2);return c})}}};function Gf(){var a=this;a.name="editor";a.F=function(){function c(a,c){var d=!1,e;0==g&&null!=a?b.Ea(a):0==g&&(b.Va(),d=!0);g++;try{e=c()}catch(f){tb(f)}g--;d&&b.ya();return e}var b=a.H("context"),d=a.H("query"),e=a.H("format");a.H("block");var f=b.Da;ge(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.xb&&a.H("spellcheck").xb(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.U(a).enabled?b.U(a).enabled(c):b.hasFocus():!1}}(a,d))};a.queryCommandIndeterm=function(a,d){return c(d,function(a){return function(){return b.U(a).hb?f[a].hb():!1}}(a))};a.queryCommandState=function(a,d){return c(d,function(a){return function(){var c=
b.U(a);return c.state?null!=b.dd(a)?b.dd(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.U(a).value?f[a].value(d):""})};b.Fc=function(){Object.keys(f).forEach(function(a){b.U(a).Ua||(f[a].Ua=null);b.U(a).Ra&&!b.U(a).hb&&(f[a].hb=function(){if(!b.C())return!1;var c=e.oa(b.C(),d.va).map(function(b){return e.M(b,a)}),k=c.filter(function(b){return-1!=f[a].Ra.indexOf(b)});return 1<=k.length&&1<=c.length-k.length});
b.U(a).Ra&&(f[a].state=function(){var c=b.C();if(!c)return!1;b.Tf();return-1!==f[a].Ra.indexOf(e.M(c.startContainer,a))});b.U(a).Gf&&(f[a].hb=function(){if(!b.C())return!1;for(var c=e.oa(b.C(),d.va).map(function(b){return e.M(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=e.Bb(b.C(),d.va);null==c&&(c=b.C().startContainer);c=e.M(c,a);return null===c?"":c});var c=b.U(a).ta,k=f[a].action;f[a].action=function(a){if(c)var d=e.wd();a=k(a);c&&
(b.ya(),b.C().collapsed&&e.Cb(d));return a}})};a.pg=function(){return f}}};function Hf(){function a(){p.B.timeout(function(){var a=-B;B=h(x);a+=B;0!==a&&fb(x.querySelectorAll("table"),function(a){t(a)})})}function c(a){r(a.target);t(a.target);d(a)}function b(a){d(a)}function d(a){u(a.target);f(a.target)}function e(a,b){var c=[],d=-1,e=P(a,"table"),f=P(a,"tr");null==b&&(b=0);if(null==e||null==f)return w.warn("Couldn't find tr or table for a td! <$>"),[];for(var f=f.querySelectorAll("td"),l=0;l<f.length;l++)f[l]===a&&(d=l);if(-1===d)return w.warn("Couldn't find td within its tr! <%>"),
[];d+=b;if(0>d||d>f.length-1)return[];fb(e.querySelectorAll("tr"),function(a){a=a.querySelectorAll("td");null!=a[d]&&c.push(a[d])});return c}function f(a){if(!1!==m(a)&&!1!==g(a)){var b=A.gd(a);"right"===b?n(a):("center"===b&&n(a),l(a));k(a)}}function g(a){function b(a){t(a);H(a.querySelector("colgroup"));var c=a.querySelector("tbody");nc(c,a);H(c)}function c(a){t(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=Oa(a.querySelectorAll("colgroup")),l=f[0]||null,k;if(0===f.length)return!0;k=V("col",l);for(var h=0;h<f.length;h++)if(null!=k[h].getAttribute("style"))return!1;for(h=0;h<k.length;h++)if(null!=k[h].getAttribute("style"))return!1;t(a);H(l)}return!0}function h(a){if(null==a)return null;a=Cc(a);if(null==a)return null;a=a.getPropertyValue("width");
return null!=a?parseInt(a,10):null}function m(a){if(P(a.parentElement,"table")||null!=a.querySelector("table"))return!1;var b=!1;fb(q.Ga(a),function(a){E(a,"table-edge")&&(b=!0)});return b?!1:!0}function k(a){var b=a.querySelector("tr").querySelectorAll("td");fb(b,function(c){if(c!==b[b.length-1]){var d=q.Za(c,"tableColumnEdge");F(d,"table-edge");var f=M("div",{"class":"line"});d.appendChild(f);var l,k,h,n,g,m,A=e(c),p=e(c,1),u=N(d).width;q.ud(d,function(){r(a);var b=N(A[0]),c=N(p[0]);l=b.width;k=
c.width;h=window.innerWidth-b.left-35;n=window.innerWidth-c.right+35;g=N(a).width;m=parseInt(Uc(d,"right"),10);F(d,"no-hide-element")},function(a){a=m-a;a>h-u&&(a=h-u);a<n&&(a=n);d.style.right=a+"px"},function(b){b<-l+35&&(b=-l+35);b>k-35&&(b=k-35);var c=(l+b)/g*100,e=(k-b)/g*100;z.Xa(function(){A[0].style.width=c+"%";p[0].style.width=e+"%";G(d,"no-hide-element");q.Mf(d);t(a)});Y(x,"setDirty",{Sc:!0});q.wa()},"cursor: col-resize;")}})}function l(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,
f=A.gd(a),l=q.Za(a,"rightEdge");F(l,"table-edge");l.appendChild(M("div",{"class":"line"}));var k=N(l).width,h;q.ud(l,function(){r(a);var e=N(a);b=e.width;c=window.innerWidth-e.left;h=parseInt(Uc(l,"right"),10);d=N(a.parentNode).width;F(l,"no-hide-element")},function(a){if("center"===f){a=h-a;var d=c-(k+e+b)/2;a>d&&(a=d)}else a=h-a,a>c-k-e&&(a=c-k-e);0>a&&(a=0);l.style.right=a+"px"},function(c){var k;b="center"===f?b+2*c:b+c;b<e&&(b=e);k=b/d*100;100<k&&(k=100);G(l,"no-hide-element");z.Xa(function(){a.style.width=
k+"%";t(a)});Y(x,"setDirty",{Sc:!0});q.wa()},"cursor: col-resize;")}function n(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,f=A.gd(a),l=q.Za(a,"leftEdge");F(l,"table-edge");l.appendChild(M("div",{"class":"line"}));var k=N(l).width,h;q.ud(l,function(){r(a);var e=N(a);b=e.width;c=e.right;h=parseInt(Uc(l,"left"),10);d=N(a.parentNode).width;F(l,"no-hide-element")},function(a){if("center"===f){a=h+a;var d=c-(b+e+k)/2;a>d&&(a=d)}else a=h+a,a>c-k-e&&(a=c-k-e);0>a&&(a=0);l.style.left=
a+"px"},function(c){var k;b="center"===f?b-2*c:b-c;b<e&&(b=e);k=b/d*100;100<k&&(k=100);G(l,"no-hide-element");z.Xa(function(){a.style.width=k+"%";t(a)});Y(x,"setDirty",{Sc:!0});q.wa()},"cursor: col-resize;")}function t(a){var b=N(a).width,c=35/b*100,d=[],e=0,f=0,l=a.querySelector("tr");if(null!=l&&(l=l.querySelectorAll("td"),0!==l.length)){b<35*l.length&&(b=35*l.length);var k=h(a.parentNode),k=Math.max(0,Math.min(100,b/k*100)),n=Uc(a,"width"),g=null;null!=n&&(g=fe(n||""));g&&g.cc&&"%"===g.cc?T(a,
"width",k+"%"):T(a,"width",b+"px");var m=[];fb(l,function(a){a=N(a).width;m.push(a/b*100+"%")});fb(l,function(a){var b=N(a).width,l=m.shift();null==l&&(w.error("Length of first row magically changed <$>"),l="0%");T(a,"width",l);35>=b?(T(a,"width",c+"%"),f++):d.push(a);e+=parseInt(Uc(a,"width"),10)});if(0!==d.length&&0!==f){a=f*c;var A=e-a,r=100-a;fb(d,function(a){var b=parseInt(Uc(a,"width"),10),b=b/A*r;T(a,"width",b+"%")})}}}function r(a){T(a,"table-layout","fixed")}function u(a){fb(q.Ga(a),function(a){E(a,
"table-edge")&&q.detach(a)});fb(a.querySelectorAll("td"),function(a){fb(q.Ga(a),function(a){E(a,"table-edge")&&q.detach(a)})})}var p=this,q=null,A=null,z=null,x=null;p.name="ui-table";var B=null;p.F=function(){x=p.H("context").root;F(x,"en-ui-table-on");q=p.H("layer");A=p.H("table");z=p.H("undo");q.xd("table",function(a,b){function c(b){f(a);b.stopPropagation();return!1}Rd()?b.za=p.B.listener(a,"mouseenter",c):b.za=p.B.listener(a,"mouseover",c)},function(a,b){b.za&&p.B.remove(b.za)});p.B.ha(x,"TABLE_ALIGN",
d);p.B.ha(x,"TABLE_INSERT_ROW",b);p.B.ha(x,"TABLE_DELETE_ROW",d);p.B.ha(x,"TABLE_INSERT_COLUMN",b);p.B.ha(x,"TABLE_DELETE_COLUMN",c);B=h(x);p.B.I("windowResize",a)};p.V=function(){G(x,"en-ui-table-on");fb(x.querySelectorAll("table"),function(a){u(a)});x=null}};function If(){var a=this;a.name="localizedtext";a.locale=null;a.Y="en";a.D=null;a.R={};a.N={};a.J={};a.F=function(c){a.G=D(c);a.locale=a.G.locale;a.locale||(a.locale="en");a.locale=a.locale.replace(/-/g,"_");Object.keys(re).forEach(function(b){a.fa(b,re[b])})};a.fa=function(c,b){a.R[c]=b;a.J[c]={}};a.ua=function(c){c&&(a.locale=c);null==a.locale&&(console.log("Language locale has not been configured. Defaulting to "+a.Y),a.locale=a.Y);a.locale=a.locale.replace(/-/g,"_");a.N[a.locale]||null!=a.D&&
a.D===a.R[a.locale]||(a.D=a.R[a.locale],null==a.D&&(console.log("There are no translations available for the "+a.locale+" locale"),a.N[a.locale]=!0,-1!=a.locale.indexOf("_")&&(a.locale=a.locale.substr(0,a.locale.indexOf("_")),a.D=a.R[a.locale],null==a.D&&(console.log("There are also no translations for the fallback locale "+a.locale),a.N[a.locale]=!0))),null!=a.D&&(console.log("Using text for "+a.locale),Object.keys(a.D).forEach(function(b){""==a.D[b]&&(a.D[b]=null)}),a.J[c]=a.J[c]||{}))};a.t=function(c,
b){var d;null==a.D&&a.ua(a.locale);a.N[a.locale]?d=c:null==a.D[c]?(null==a.J[a.locale]&&console.log("No missingStrings object defined for "+a.locale),null==a.J[a.locale][c]&&(console.log("The "+a.locale+' locale does not have a translation for "'+c+'"'),a.J[a.locale][c]=!0),d=c):d=a.D[c];b&&(d=a.replace(d,b));return d};a.replace=function(a,b){Object.keys(b).forEach(function(d){a=a.replace(new RegExp("{{"+d+"}}","g"),b[d])});return a}};function Jf(a,c,b){var d=Kf.unknown;if("string"===typeof c||"string"===typeof b){var e=null;c&&(c=c?c.toLowerCase():null,(e=Lf[c])||(-1<c.indexOf("image/")?e="image":-1<c.indexOf("audio/")?e="audio":-1<c.indexOf("video/")&&(e="video")));!e&&b&&(c=b.match(/^.+\.([0-9a-z]+)$/i))&&(e=Mf[c[1]]);e&&(e=Kf[e])&&(d=e)}e=JSON.parse(JSON.stringify(d));switch(a){case "en_rl_minimal":e.className=d.className;break;case "en_rl_small":e.className=d.className+" "+Nf[d.ra]}return e}
var Mf={pdf:"pdf",djvu:"pdf",wav:"audio",aiff:"audio",flac:"audio",ogg:"audio",ac3:"audio",mp3:"audio",avi:"video",mp4:"video",mpg:"video",mpeg:"video",vob:"video",pptx:"ppt",ppt:"ppt",sdd:"ppt",odp:"ppt",doc:"word",dot:"word",docx:"word",odt:"word",xls:"xls",xlsx:"xls",ods:"xls",csv:"xls",zip:"zip",zipx:"zip",gz:"zip",tgz:"zip",rar:"zip",iso:"zip",tar:"zip",mar:"zip",bz2:"zip",cab:"zip",arc:"zip",dmg:"zip",jar:"zip",war:"zip","7z":"zip",svg:"svg",svgz:"svg",ai:"svg",cdr:"svg",wmf:"svg",drw:"svg",
eps:"svg",emz:"svg",odg:"svg",pic:"svg",sda:"svg",swf:"svg",sketch:"svg",cad:"3d",skp:"3d",stl:"3d","123dx":"3d",anim:"3d","3d":"3d","3dr":"3d","3ds":"3d",dwg:"3d",dxf:"3d",pfb:"font",ttf:"font",otf:"font",pages:"pages",rtf:"pages",txt:"pages",numbers:"num",keynote:"key",key:"key",psd:"edit",ptg:"edit",skba:"edit",pxm:"edit",xcf:"edit"},Lf={"application/pdf":"pdf","application/mspowerpoint":"ppt","application/powerpoint":"ppt","application/vnd.ms-powerpoint":"ppt","application/x-mspowerpoint":"ppt",
"application/vnd.oasis.opendocument.presentation":"ppt","application/vnd.openxmlformats-officedocument.presentationml.slideshow":"ppt","application/msword":"word","application/vnd.oasis.opendocument.text":"word","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"word","application/excel":"xls","application/vnd.ms-excel":"xls","application/x-excel":"xls","text/csv":"xls","application/vnd.oasis.opendocument.spreadsheet":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xls",
"application/zip":"zip","application/x-compress":"zip","application/x-compressed":"zip","application/x-zip-compressed":"zip","multipart/x-zip":"zip","application/x-gzip":"zip","application/x-rar-compressed":"zip","application/x-gtar":"zip","application/vnd.ms-cab-compressed":"zip","application/x-apple-diskimage":"zip","application/x-7z-compressed":"zip","image/svg+xml":"svg","application/postscript":"svg","windows/metafile":"svg","application/drafting":"svg","image/pict":"svg","application/x-shockwave-flash":"svg",
"application/x-koan":"3d","application/sla":"3d","x-world/x-3dmf":"3d","application/acad":"3d","application/dxf":"3d","application/rtf":"pages","application/x-rtf":"pages","text/richtext":"pages","application/vnd.apple.pages":"pages","application/x-iwork-pages-sffpages":"pages","application/vnd.apple.numbers":"num","application/x-iwork-numbers-sffnumbers":"num","application/vnd.apple.keynote":"key","application/x-iwork-keynote-sffkey":"key","application/vnd.google-apps.document":"gdocs","application/vnd.google-apps.spreadsheet":"gsheets",
"application/vnd.google-apps.presentation":"gslides",unknown:"unknown"},Kf={image:{ra:"font",className:"en-attach-icon-image",la:"p"},audio:{ra:"font",className:"en-attach-icon-audio",la:"i"},video:{ra:"font",className:"en-attach-icon-video",la:"j"},pdf:{ra:"font",className:"en-attach-icon-pdf",la:"a"},ppt:{ra:"font",className:"en-attach-icon-ppt",la:"b"},word:{ra:"font",className:"en-attach-icon-word",la:"d"},xls:{ra:"font",className:"en-attach-icon-excel",la:"c"},zip:{ra:"font",className:"en-attach-icon-zip",
la:"k"},svg:{ra:"font",className:"en-attach-icon-vector",la:"m"},"3d":{ra:"font",className:"en-attach-icon-3d",la:"n"},font:{ra:"font",className:"en-attach-icon-font",la:"l"},pages:{ra:"font",className:"en-attach-icon-pages",la:"h"},num:{ra:"font",className:"en-attach-icon-numbers",la:"g"},key:{ra:"font",className:"en-attach-icon-keynote",la:"f"},edit:{ra:"font",className:"en-attach-icon-editing",la:"o"},generic:{ra:"font",className:"en-attach-icon-generic",la:"e"},unknown:{ra:"font",className:"en-attach-icon-unknown",
la:"e"},gdocs:{ra:"img",className:"en-attach-icon-gdocs"},gsheets:{ra:"img",className:"en-attach-icon-gsheets"},gslides:{ra:"img",className:"en-attach-icon-gslides"}},Nf={img:"en-attach-img-icon",font:"en-attach-font-icon"};
function Of(a,c){switch(c){case "application/vnd.google-apps.document":return a.t("Google Docs");case "application/vnd.google-apps.spreadsheet":return a.t("Google Sheets");case "application/vnd.google-apps.presentation":return a.t("Google Slides");case "application/pdf":return a.t("PDF");default:return null}};function Pf(){var a=this;a.name="auth";a.Ld=2001;a.Jd=2002;a.Kd=2003;a.Md=2004;a.R={};a.J=[];a.D=function(c){a.R[c]||(a.R[c]={Ed:[],te:!1,ff:!1,rc:null,Ad:0,errorCode:null,Wd:null});return a.R[c]};a.F=function(){a.B.A({name:"authtoken",P:!1,Sa:!0,action:function(c){if(!c)return!1;var b=c;"{"===c[0]&&(b=D(c,{service:null,token:null,lastRefreshed:0,errorCode:null,errorMessage:null}));var d=b.service;c=a.D(d);var e=c.errorCode;c.te=!1;c.rc=b.token;c.Ad=b.lastRefreshed;c.errorCode=b.errorCode;c.Wd=b.errorMessage;
c.ff=!1;c.errorCode?w.log("time for "+d+" auth response: "+(new Date-c.Hf)+" errorCode: "+c.errorCode+" lastRefreshed: "+c.Ad+" errorMessage: "+c.Wd):w.log("time for "+d+" auth response: "+(new Date-c.Hf)+" success! lastRefreshed: "+c.Ad);var f;c.errorCode&&(f={errorCode:c.errorCode,errorMessage:c.Wd});if(e&&!c.errorCode)for(f=0;f<a.J.length;f++)a.J[f](d);else{b=c.Ed.length;for(d=0;d<b;d++)c.Ed[d](f,c.rc);c.Ed=[]}return!0},enabled:y})};a.ne=function(c,b,d){w.log("performAuthAction");var e=a.D(c);
e.rc?(w.log("already has auth token"),b(null,e.rc)):(e.Ed.push(b),a.N(c,!1,d))};a.N=function(c,b,d){var e=a.D(c);if(d||!e.te)w.log("need to request auth"),e.Hf=new Date,w.log("getAuthToken"),e.te=!0,e.ff=d,e.rc=null,e.Ad=0,a.B.timeout(function(){if(window.localStorage&&window.localStorage.getItem(c)){var a=window.localStorage.getItem(c);Z.execCommand("authtoken",{service:c,token:"none"===a?null:a,errorCode:"none"===a?2001:null})}else a=a={refresh:b,askUserForPermission:d},a.serviceName=c,Ge("requestAuth",
a)})};a.Tg=function(c){a.D(c).rc=null;a.N(c,!0,!1)};a.ef=function(c){a.N(c,!0,!0)};a.og=function(c){a.J.push(c)}};function Qf(a,c,b){var d=this;d.name="google-drive";d.I=a;d.A=c;d.La=b;d.Nd="en-richlink-link-body";d.Id="google-drive-container";d.wa="google-drive-middle-text";d.O="gd-file-icon-div";d.$="gd-file-icon-img";d.J="gd-file_icon_font";d.Ka="en-attach-src";d.aa="google-drive-line1-text";d.va="google-drive-line2-text";d.N="google-drive-share-icon";d.ma="google-drive-thumbnail";d.oa="google-drive-thumbnail-container";d.ea="google-drive-thumbnail-failed";d.ba="more-options";d.xa="more-options-icon";d.K=
"en-richlink-disabled-state";d.ka="en-connect-to-drive-text";d.ia="en-richlink-load-progress-container";d.Z="en-richlink-load-progress-container-inner";d.ca="en-richlink-load-progress";d.ga="en-richlink-thumbnail-progress";d.S="google-drive-minimal-title";d.D="en-attach-icon-loading";d.M={};d.lastError={};d.Qa={};var e=/https:\/\/(docs|drive).google.com\/[^\s\"]+[\/\=]([^\s\/<#=%&@."?]{20,120})([^\"<>\s&]*)/gi,f=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})Z$/,g=/s\d+$/g;d.hf=function(a){e.lastIndex=
0;return a&&e.test(a)};d.B=new ef;d.B.F({name:d.name});d.B.A({name:"createdrivelink",Ya:[d.name],P:!1,Sa:!0,action:function(a){a.mimeType&&d.I.ne(d.name,function(b,c){b?w.log("auth error: "+b):d.Ma(a,c,function(a,b){w.log("error: "+a+" linkCreated: "+b);if(a)Re(d.name,{});else{var c=b.alternateLink?b.alternateLink:b.selfLink;Z.execCommand("createlink",c);Re(d.name,{title:b.title,url:c});Me(c,d.name,b)}})},!0)},enabled:y});d.be=function(a){switch(a){case "en_rl_minimal":return"inline";case "en_rl_small":return"float";
default:return"none"}};d.$d=function(a,b,c){if("en_rl_minimal"===a)return M("a",{"class":d.S+" "+d.D,href:b},cb(c));if("en_rl_small"===a){a=M("div",{"class":this.Nd});b=M("div",{"class":this.Id});a.appendChild(b);c=M("div",{"class":d.O+" file-icon"});b.appendChild(c);c.appendChild(M("img",{"class":d.$+" en-attach-img-icon",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}));c.appendChild(M("span",{"class":d.J+" file-font-icon-dimen"}));c=M("div",{"class":d.wa});
b.appendChild(c);var e=M("div",{"class":d.aa});c.appendChild(e);e=M("div",{"class":d.va});c.appendChild(e);c=M("div",{"class":d.ba,id:sb(d.name)});b.appendChild(c);c.appendChild(M("img",{"class":"more-options-icon ",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}));b.appendChild(M("div",{"class":d.Ka+" en-attach-src-google"}));c=M("div",{"class":d.oa,style:"visibility: hidden; display: none;"});e=M("img",{"class":d.ma,style:"visibility: hidden; display: none;"});
c.appendChild(e);c.appendChild(M("span",{"class":d.ea+" file-font-icon-dimen",style:"visibility: hidden; display: none; color: #f2f2f2"}));e=M("div",{"class":d.Z+" "+d.ga});c.appendChild(e);e.appendChild(M("div",{"class":d.ca}));a.appendChild(c);c=M("div",{"class":d.ia});b.appendChild(c);b=M("div",{"class":d.Z});c.appendChild(b);b.appendChild(M("div",{"class":d.ca}));return a}return null};d.Pc=function(a,b,c){w.log("called google drive getInfoForUrl");b&&w.log("cached data is "+((new Date).getTime()-
b.time)+" old");d.I.ne(d.name,function(b,e){b?d.handleError(a,b,c):d.Ca(a,e,c)},!1)};d.Ca=function(a,b,c){w.log("called google drive getInfoForUrlWithAuth");if(b){e.lastIndex=0;var f={mf:e.exec(a)[2]};if(f.mf){var n,g=new Date,r=new XMLHttpRequest;r.open("GET","https://www.googleapis.com/drive/v2/files/"+f.mf,!0);r.setRequestHeader("Authorization","Bearer "+b);r.onreadystatechange=function(){w.log("onreadystatechange responsecode: "+r.status);if(4==r.readyState)if(200==r.status){w.log("response in "+
(new Date-g));var b=JSON.parse(r.responseText);f.id=b.id;f.title=b.title;f.shared=b.shared;f.thumbnailLink=b.thumbnailLink;f.shared=b.shared;f.mimeType=b.mimeType;f.fileExtension=b.fileExtension;f.iconLink=b.iconLink;f.modifiedDate=b.modifiedDate;f.alternateLink=b.alternateLink;b.imageMediaMetadata&&(f.imageMediaMetadata={width:b.imageMediaMetadata.width,height:b.imageMediaMetadata.height,date:b.imageMediaMetadata.date},f.imageMediaMetadata.height=b.imageMediaMetadata.height);b.videoMediaMetadata&&
(f.videoMediaMetadata={width:b.videoMediaMetadata.width,height:b.videoMediaMetadata.height,durationMillis:b.videoMediaMetadata.durationMillis});f.explicitlyTrashed=b.explicitlyTrashed;f.labels=b.labels;b.parents&&0<b.parents.length&&(f.parentFolderLink=b.parents[0].parentLink);w.log("success");d.lastError[a]=null;c(a,n,f,!0)}else n={errorCode:r.status},d.handleError(a,n,c)};r.send(null)}else c(a,{message:"couldn't find drive ID"},f)}};d.handleError=function(a,b,c){w.log("google-drive handleError error: + "+
b);switch(b.errorCode){case 401:if(w.log("401 auth error!"),!d.lastError[a]||401!=d.lastError[a].errorCode){d.I.Tg(d.name);d.I.ne(d.name,function(b,e){b?d.handleError(a,b,c):d.Ca(a,e,c)},!1);d.lastError[a]=b;return}}d.lastError[a]=b;c(a,b,null,!0)};d.W=function(a,b,c,e,f){var g=a.getElementsByClassName(d.O)[0],r=a.getElementsByClassName(d.$)[0],u=a.getElementsByClassName(d.J)[0];if(c||e){if(c=Jf(b,c,e)){if("en_rl_minimal"===b){F(a,c.className);G(a,d.D);return}c.la?(u.setAttribute("class",d.J+" "+
c.className),u.innerHTML=c.la,u.style.visibility="visible",u.style.display="initial",r.style.visibility="hidden",r.style.display="none",g.setAttribute("class",d.O+" file-icon")):(g.setAttribute("class",d.O+" "+c.className),u.setAttribute("class",d.J),r.style.visibility="hidden",r.style.display="none",u.style.visibility="hidden",u.style.display="none")}f?(F(g,d.K),F(r,d.K)):(G(g,d.K),G(r,d.K))}else if(f=Jf(b,"unknown",null))"en_rl_minimal"===b?(F(a,f.className),G(a,d.D)):f.la&&(u.setAttribute("class",
d.J+" "+f.className),u.innerHTML=f.la,u.style.visibility="visible",u.style.display="initial",r.style.visibility="hidden",r.style.display="none",g.setAttribute("class",d.O+" file-icon"))};d.Yd=function(a,b,c,e,f,t){f?d.M[c]=f:f=d.M[c];d.lastError[c]=e;w.log("google-drive fillElementWithInfo error: + "+e+" info: "+f);var r=b.getElementsByClassName(d.ia)[0];r&&(r.style.visibility="hidden",r.style.display="none");r=!1;if(e)switch(e.errorCode){case d.I.Kd:case d.I.Md:case 0:r=!0}var u=b.getElementsByClassName(d.aa)[0],
p=b.getElementsByClassName(d.va)[0];if(f){var q=f.mimeType;q||(-1<c.indexOf("/document/")?q="application/vnd.google-apps.document":-1<c.indexOf("/spreadsheets/")?q="application/vnd.google-apps.spreadsheet":-1<c.indexOf("/presentation/")&&(q="application/vnd.google-apps.presentation"));if("en_rl_minimal"==a){f&&f.title&&(e=R(b,"a")?b:b.getElementsByClassName(d.S)[0],t=document.createElement("textarea"),t.innerHTML=f.title,e.textContent=t.value,d.W(e,a,q,f.title,r));return}u.innerHTML=f.title?d.Aa(f.title):
d.A.t("Title not available");var A;(c=Of(d.A,q))||(c=d.A.t("Google Drive"));if(e)switch(e.errorCode){case d.I.Ld:case d.I.Jd:case 401:A=c+'&#160;&#160;&#160;&#160;<span class="'+d.ka+'">'+d.A.t("Connect")+"</span>";break;case d.I.Kd:case 0:A=c+": "+d.A.t("Not available offline");break;case d.I.Md:A=c+": "+d.A.t("Not available");break;case 403:case 404:A=d.A.t("Click to request access");break;default:A=c+": "+d.A.t("Not available")}if(A)p.innerHTML=A;else{A=d.Za(f.modifiedDate);var z;A&&(z=A.toLocaleDateString());
A=c;z&&(A+=": "+d.A.t("Modified")+" "+z);p.innerHTML=A}d.W(b,a,q,f.title,r);if(f.thumbnailLink&&q&&(0===q.indexOf("image/")||0===q.indexOf("video/"))){var x=b.getElementsByClassName(d.ma)[0],B=b.getElementsByClassName(d.oa)[0],L=b.getElementsByClassName(d.ea)[0];z=B.parentElement.getBoundingClientRect().width;p=p=-1;B.style.visibility="visible";B.style.display="initial";x.style.display="block";(A=f.imageMediaMetadata)&&A.width&&A.height&&(p=A.height/A.width,w.log("image ratio: "+p));window.devicePixelRatio&&
(z=Math.round(z*window.devicePixelRatio));if(0>p||.62<p)p=.62;A=p=Math.round(p*z);window.devicePixelRatio&&(A/=Math.round(window.devicePixelRatio));B.style.height=A+"px";z=f.thumbnailLink.replace(g,"w"+z+(0<p?"-h"+p:"")+"-p-k-nu");(t||e)&&x.setAttribute("src",z);B.parentElement.style["padding-bottom"]=0;x.addEventListener("load",function(){var a=b.getElementsByClassName(d.ga)[0];a.style.visibility="hidden";a.style.display="none";B.style.height="auto";x.style.visibility="visible";x.style.display="block";
L.style.visibility="hidden";L.style.display="none"});x.addEventListener("error",function(){var c=b.getElementsByClassName(d.ga)[0];c.style.visibility="hidden";c.style.display="none";x.style.visibility="hidden";x.style.display="none";L.style.visibility="visible";L.style.display="block";c=Jf(a,q,f.title);L.setAttribute("class",d.ea+" "+d.J+" "+c.className);L.innerHTML=c.la})}}else{if("en_rl_minimal"==a){e=R(b,"a")?b:b.getElementsByClassName(d.S)[0];d.W(e,a,null,null,r);f&&f.title&&(r=document.createElement("textarea"),
r.innerHTML=f.title,e.textContent=r.value);return}u.innerHTML=d.A.t("Title not available");d.W(b,a,null,null,r);if(e)switch(e.errorCode){case d.I.Ld:case d.I.Jd:case 401:p.innerHTML=d.A.t("Google Drive")+'&#160;&#160;&#160;&#160;<span class="'+d.ka+'">'+d.A.t("Connect")+"</span>";break;case d.I.Kd:case 0:p.innerHTML=d.A.t("Google Drive")+": "+d.A.t("Not available offline");break;case 403:case 404:p.innerHTML=d.A.t("Click to request access");break;case d.I.Md:p.innerHTML=d.A.t("Google Drive")+": "+
d.A.t("Not available");break;default:p.innerHTML=d.A.t("Google Drive")+": "+d.A.t("Not available")}}r?F(u,d.K):G(u,d.K)};d.tf=function(b,c){var e=b.target?b.target.classList:null,f,g;if(e)for(var t=0;t<e.length;t++)if(e[t]===d.ba){f=b.target.id;break}else if(e[t]===d.xa){f=b.target.parentElement.id;break}else if(e[t]===d.ka){g=!0;break}f?d.Ha(c,f):g?a.ef(d.name):d.Ea(c);return!0};d.Ea=function(a){d.M[a]?Me(a,d.name,d.M[a]):Me(a,d.name,{})};d.Ha=function(a,b){w.log("openMoreOptions");var c=d.Ga(a,
b);Ne(a,d.name,d.M[a],c)};d.Ga=function(a,b){var c=document.getElementById(b).getBoundingClientRect(),c={elementId:b,boundingbox:N(document.getElementById(b)),elementRect:{left:c.left,top:c.top,right:c.right,bottom:c.bottom},optionsArray:[]},e=d.lastError[a]?d.lastError[a].errorCode:null;e!==d.I.Ld&&e!==d.I.Jd&&401!==e||c.optionsArray.push({id:"connect",text:d.A.t("Connect")});c.optionsArray.push({id:"open",text:d.A.t("Open")});return c};d.uf=function(b,c,e){if(c)switch(e){case "open":w.log("optionId "+
e+" selected");d.Ea(b);break;case "folder":d.M[b]&&d.M[b].parentFolderLink&&Me(d.M[b].parentFolderLink,d.name,{});break;case "connect":a.ef(d.name)}};d.Za=function(a){try{var b=f.exec(a);return new Date(+b[1],+b[2]-1,+b[3],+b[4],+b[5]-(new Date).getTimezoneOffset(),+b[6],+b[7])}catch(c){w.log("error parsing date: "+c)}};d.Ma=function(a,b,c){var d=a.convert?a.convert:!1,e=a.title,f=a.mimeType;a=a.content?a.content:"\n";if(f)switch(f){case "docs":case "application/vnd.google-apps.document":f="text/plain";
d=!0;break;case "sheets":case "application/vnd.google-apps.spreadsheet":f="text/csv",d=!0}else f="application/octet-stream";var g={mimeType:f};e&&(g.title=e);a=btoa(a);var e="\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(g)+"\r\n---------314159265358979323846\r\nContent-Type: "+f+"\r\nContent-Transfer-Encoding: base64\r\n\r\n"+a+"\r\n---------314159265358979323846--",u=new XMLHttpRequest;u.open("POST","https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart"+
(d?"&convert=true":""),!0);u.setRequestHeader("Authorization","Bearer "+b);u.setRequestHeader("Content-Type",'multipart/mixed; boundary="-------314159265358979323846"');u.onreadystatechange=function(){w.log("onreadystatechange responsecode: "+u.status);if(4==u.readyState)if(200==u.status){var a=JSON.parse(u.responseText);w.log("success");c(null,a)}else c({errorCode:u.status},null)};u.send(e)};d.Aa=function(a){var b=document.createElement("textarea");b.innerHTML=a;return b.value}};function Rf(a,c){var b={bf:0,qg:function(){this.bf++;return this.bf}};HTMLElement.prototype.Pg=function(a){var c=document.head||document.getElementsByTagName("head")[0],d=document.getElementById("pseudoStyles")||document.createElement("style");d.id="pseudoStyles";var h="pseudoStyle"+b.qg();this.className+=" "+h;d.innerHTML+=" ."+h+':before{position: absolute; top: -2px; left: -22px; width: 20px; height: 20px; min-width: 20px; background-size: contain; background-repeat: no-repeat; content: " ";background-image:'+
a+"}";c.appendChild(d)};var d=this;d.Ma=!0;d.name="public";d.A=a;d.La=c;d.Nd="en-richlink-link-body";d.Id="google-drive-container";d.wa="google-drive-middle-text";d.O="gd-file-icon-div";d.$="gd-file-icon-img";d.Ka="en-attach-src";d.aa="google-drive-line1-text";d.va="google-drive-line2-text";d.ma="google-drive-thumbnail";d.oa="google-drive-thumbnail-container";d.ea="google-drive-thumbnail-failed";d.ba="more-options";d.xa="more-options-icon";d.K="en-richlink-disabled-state";d.ia="en-richlink-load-progress-container";
d.Z="en-richlink-load-progress-container-inner";d.ca="en-richlink-load-progress";d.ga="en-richlink-thumbnail-progress";d.S="google-drive-minimal-title";d.D="en-attach-icon-loading";d.M={};d.lastError={};d.Qa={};d.hf=function(a){return 0===a.indexOf("http")};d.B=new ef;d.B.F({name:d.name});d.be=function(a){switch(a){case "en_rl_minimal":return"inline";case "en_rl_small":return"float";default:return"none"}};d.Ca=function(a,b){var c=a;b&&(b.publish_url?c=b.publish_url:b["og:url"]&&(c=b["og:url"]));if(0===
c.indexOf("//")){var d=/^(http:|https:)/.exec(a);if(d)d=d[0],c=d+c;else return a}return c};d.Ea=function(a,b){var c=0===a.indexOf("http")?"":"http://",h=/^(http:\/\/|https:\/\/)+([^\/?#]*)/.exec(a);h&&(h=h[0],c+=h+"/favicon.ico");b&&(b["apple-touch-icon"]?c=d.I(a,b["apple-touch-icon"]):b["shortcut icon"]?c=d.I(a,b["shortcut icon"]):b.icon&&(c=d.I(a,b.icon)));w.log(c);return c};d.I=function(a,b){var c=/^(http:|https:)+(\/\/)+([^\/?#]*)/.exec(a);return c&&0===b.indexOf("//")?c[1]+b:0===b.indexOf("/")?
c[0]+b:-1===b.indexOf("http")?c[0]+"/"+b:b};d.$d=function(a,b,c){if("en_rl_minimal"===a)return M("a",{"class":d.S+" "+d.D,href:b},cb(c));if("en_rl_small"===a){a=M("div",{"class":this.Nd});var h=M("div",{"class":this.Id});a.appendChild(h);c=M("div",{"class":d.O+" file-icon",style:"position: relative; width: 36px; min-width: 36px;"});h.appendChild(c);c.appendChild(M("img",{"class":d.$+" en-attach-img-icon",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",style:"position: absolute; top: 0; left: 0; bottom: 0; right: 0; overflow: auto; margin: auto;"}));
var m=M("div",{"class":d.wa,style:"padding-top: 10px;padding-bottom: 10px;"});h.appendChild(m);var k=M("div",{"class":d.aa,style:"overflow:hidden; font-size: 14px;line-height: 1.2em; max-height: 2.4em; white-space: normal;"});m.appendChild(k);k=M("a",{"class":"dont-break-out",style:"display: block; min-width: 0; padding-top: 2px;font-size: 12px; text-decoration: underline; line-height: 16px;color: #4A8DB8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis; vertical-align: middle; ",
href:b});k.textContent=cb(b);m.appendChild(k);b=M("div",{"class":d.ba,id:sb(d.name)});h.appendChild(b);b.appendChild(M("img",{"class":"more-options-icon ",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}));b=M("div",{"class":d.oa,style:"visibility: hidden; display: none;"});h=M("img",{"class":d.ma,style:"visibility: hidden; display: none;"});b.appendChild(h);b.appendChild(M("span",{"class":d.ea+" file-font-icon-dimen",style:"visibility: hidden; display: none; color: #f2f2f2"}));
h=M("div",{"class":d.Z+" "+d.ga});b.appendChild(h);h.appendChild(M("div",{"class":d.ca}));a.appendChild(b);b=M("div",{"class":d.Z});b.appendChild(M("div",{"class":d.ca}));c.appendChild(b);return a}return null};d.Pc=function(a,b,c){w.log("called public getInfoForUrl");b&&w.log("cached data is "+((new Date).getTime()-b.time)+" old");w.log("called generic getInfoForUrl for url: "+a);b&&(w.log("cached data is "+((new Date).getTime()-b.time)+" old"),b.info&&b.info.title&&(d.lastError[a]=null,c(a,null,
b.info,!1)));var h,m,k=new Date,l=new XMLHttpRequest;l.open("GET",d.La(a,!1),!0);l.onreadystatechange=function(){w.log("onreadystatechange responsecode: "+l.status);if(4==l.readyState)if(200==l.status){w.log("response in "+(new Date-k));var b=JSON.parse(l.responseText);h=b?b:{};h.url=a;h.title=b["og:title"]?b["og:title"]:b.title;h.thumbnailLink=b.thumbnailLink;h.mimeType="link";h.fileExtension="link";h.bestUrl=d.Ca(a,b);h.iconLink=d.Ea(h.bestUrl,b);w.log("success");d.lastError[a]=null;c(a,m,h,!0)}else m=
{errorCode:l.status},d.handleError(a,m,c)};l.send(null)};d.handleError=function(a,b,c){w.log("public handleError error: + "+b);d.lastError[a]=b;c(a,b,null,!0)};d.J=function(a){if(a=a.getElementsByClassName(d.Z)[0])a.style.visibility="hidden",a.style.display="none"};d.W=function(a,b,c,h,m,k){var l=a.getElementsByClassName(d.O)[0],n=a.getElementsByClassName(d.$)[0];if(c)if(h||m){if(c.iconLink){var t=M("img",{src:c.iconLink}),r=function(){"en_rl_minimal"===b?(G(a,d.D),F(a,d.S),a.Pg("URL("+c.iconLink+
")")):(l.setAttribute("class",d.O),n.style.backgroundImage="URL("+c.iconLink+")",G(n,"fav-icon-fail"),d.J(l));t.removeEventListener("load",r)},u=function(){"en_rl_minimal"===b?(G(a,d.D),G(a,d.S)):(l.setAttribute("class",d.O),F(n,"fav-icon-fail"),d.J(l));t.removeEventListener("error",u)};t.addEventListener("load",r);t.addEventListener("error",u)}k?(F(l,d.K),F(n,d.K)):(G(l,d.K),G(n,d.K))}else if(h=Jf(b,"unknown",null))"en_rl_minimal"===b?(F(a,h.className),G(a,d.D)):h.la&&(n.style.visibility="hidden",
n.style.display="none",l.setAttribute("class",d.O+" file-icon"))};d.Yd=function(a,b,c,h,m){m?d.M[c]=m:m=d.M[c];d.lastError[c]=h;w.log("google-drive fillElementWithInfo error: + "+h+" info: "+m);var k=b.getElementsByClassName(d.ia)[0];k&&(k.style.visibility="hidden",k.style.display="none");k=!1;if(h)switch(h.errorCode){case 0:k=!0}var l=b.getElementsByClassName(d.aa)[0];if(m){if("en_rl_minimal"==a){m&&m.title&&(b=R(b,"a")?b:b.getElementsByClassName(d.S)[0],h=document.createElement("textarea"),h.innerHTML=
m.title,b.textContent=h.value,d.W(b,a,m,c,m.title,k));return}l.innerHTML=m.title?d.Aa(m.title):d.A.t("Title not available");if(h)switch(h.errorCode){case 401:d.A.t("Not logged in");break;case 0:d.A.t("Not available offline");break;case 403:case 404:break;default:d.A.t("Not available")}d.W(b,a,m,c,m.title,k)}else{if("en_rl_minimal"==a){b=R(b,"a")?b:b.getElementsByClassName(d.S)[0];d.W(b,a,null,c,null,k);m&&m.title&&(a=document.createElement("textarea"),a.innerHTML=m.title,b.textContent=a.value);return}l.textContent=
d.A.t("Title not available");d.W(b,a,null,c,null,k);if(h)switch(h.errorCode){case 401:d.A.t("Not logged in");break;case 0:d.A.t("Not available offline");break;case 403:case 404:break;default:d.A.t("Not available")}}k?F(l,d.K):G(l,d.K)};d.ka=function(){return d.Ma?3===Math.floor(31*Math.random()+0):!1};d.tf=function(a,b){var c=a.target?a.target.classList:null,h;if(c)for(var m=0;m<c.length;m++)if(c[m]===d.ba){h=a.target.id;break}else if(c[m]===d.xa){h=a.target.parentElement.id;break}h?d.Ha(b,h):d.ka()?
Me("https://www.youtube.com/watch?v=dQw4w9WgXcQ",d.name,{}):Me(b,d.name,{});return!0};d.Ha=function(a,b){w.log("openMoreOptions");var c=d.Ga(a,b);Ne(a,d.name,d.M[a],c)};d.Ga=function(a,b){var c=document.getElementById(b).getBoundingClientRect(),c={elementId:b,boundingbox:N(document.getElementById(b)),elementRect:{left:c.left,top:c.top,right:c.right,bottom:c.bottom},optionsArray:[]};c.optionsArray.push({id:"open",text:d.A.t("Open")});c.optionsArray.push({id:"refresh",text:d.A.t("Refresh")});return c};
d.uf=function(a,b,c){if(b)switch(c){case "open":w.log("optionId "+c+" selected");d.ka()?Me("https://www.youtube.com/watch?v=dQw4w9WgXcQ",d.name,{}):Me(a,d.name,{});break;case "refresh":w.log("optionId "+c+" selected")}};d.Aa=function(a){var b=document.createElement("textarea");b.innerHTML=a;return b.value}};function Sf(){var a=this;a.name="copy";a.F=function(){function c(){var a=W(n);return!(!a||a.collapsed)}function b(){Y(n,"beforeGetContent");w.warn("The copy/cut action will only work if a ClipboardEvent is passed. Limited to WEB right now and highly experimental!")}function d(a){a=D(a,{fullhtml:!1,html:!0,fullraw:!1,raw:!0,resources:!0,plain:!0});Y(n,"beforeGetContent");var b=W(n);return(a=e(n,b,a))?a:null}function e(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=We.Mb("rte").qa(),l=e.Mb("query"),h=e.Mb("table"),n=l.Oc(c.startContainer,c.startOffset),x=P(c.startContainer,"td.en-selected",b),B=0;null!==x&&(n=l.Oc(x,0),x=h.Vc(x),0<x.column&&(B=x.column));c.setStart(n[0],n[1]);x=P(c.endContainer,"td.en-selected",b);n=0;if(null!==x){var L=l.Qc(x,O(x));c.setEnd(L[0],L[1]);x=h.Vc(x);(h=h.ce(x.table))&&h.columns>x.column&&(n=h.columns-x.column-1)}x=c.cloneContents();h=document.createElement("body");h.appendChild(x);(x=a.ia("crypt"))&&
x.Ze(h);for(x=c.commonAncestorContainer;x&&l.L(x)&&l.X(x);)I(x)&&pc(h,x.cloneNode(!1)),x=x.parentNode;if($b(h).some(function(a){return Q(a,"li,tr,td")})&&(b=P(c.startContainer,"table,ul,ol",b)))for(b=b.cloneNode(!1),h.insertBefore(b,h.firstChild);;)if((l=h.children[1])&&Q(l,"li,ol,ul,tr,td"))b.appendChild(l);else break;if(0<B||0<n){L=U("tr",h);if(0<B&&0<L.length){var X=L[0];for(b=0;b<B;b++)l=X.firstChild.cloneNode(!1),x=M("div",{},[M("br")]),l.appendChild(x),X.insertBefore(l,X.firstChild)}if(0<n&&
0<L.length)for(B=L[L.length-1],b=0;b<n;b++)l=B.lastChild.cloneNode(!1),x=M("div",{},[M("br")]),l.appendChild(x),B.appendChild(l)}var xa={};d.plain&&gd(h.cloneNode(!0),function(b){var c=a.ia("simpletext");c?(b=c.tc(b))&&gd(b,function(a){xa.plain=f($a(tc(a)))}):xa.plain=f($a(tc(b)))});d.resources&&(B=e.Mb("resource"),xa.resources=B?B.qe(h):g(h)||[]);if(d.raw||d.fullraw)B=h.cloneNode(!0),(e=e.Mb("richlinks"))&&e.Fa(B,3),uf(B),e=$a(pb(B.outerHTML)),d.raw&&(xa.raw=e),d.fullraw&&(xa.fullraw=lc(h)?'<?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.H("transform").fd(h,3),e=Cc(c.startContainer),c=c.startContainer===c.endContainer?e:Cc(c.endContainer),m(h),uf(h),k(h,e,c),c=$a(pb(h.outerHTML)),d.html&&(xa.html=c),d.fullhtml&&(xa.fullhtml=lc(h)?'<?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 xa}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(l){w.error("Exception in collectResourcesAction <$>",
l.toString())}return null}function h(a){a=(a||"").split(":");return 3<=a.length&&"en-media"===a[0]?a[2]:null}function m(a){V("embed[src][id]",a).forEach(function(b){var c=h(b.id);c&&(c=kc(a,"object",{type:"application/x-apple-msg-attachment",data:"cid:"+c}),ec(b,c))});V("img[src]",a).forEach(function(a){var b=h(a.id);b&&(a.setAttribute("src","cid:"+b),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"))})}function k(a,b,c){var d={},e={},f={},l={},k=["font-family",
"font-size"];a instanceof Element&&(d=Cc(a));d&&d["font-family"]||(d=Cc(document.body));if(d)for(var h=0;h<k.length;h++){var n=k[h];e[n]=d[n]}if(b)for(h=0;h<k.length;h++)n=k[h],f[n]=b[n];if(c)for(h=0;h<k.length;h++)n=k[h],l[n]=c[n];b=$b(a);for(c=b.length-1;0<=c;c--){d=b[c];if(3===d.nodeType){if(0===d.textContent.length)continue;k=M("span");a.insertBefore(k,d);k.appendChild(d);d=k}for(h in e)k=e[h],n=Uc(d,h),0===c&&f[h]?k=f[h]:c===b.length-1&&l[h]&&(k=l[h]),null===n&&void 0!==k&&T(d,h,k)}}var l=a.H("context"),
n=l.root;a.Uf=e;a.B.A({name:"copy",action:function(){b();return!0},value:function(a){if(c())return a=Db(a),d(a)},enabled:function(){return c()}});a.B.A({name:"cut",action:function(){a.H("undo").Xa(function(){b();a.H("edit").O()});return!0},value:function(){var b=null;c()&&a.H("undo").Xa(function(){b=d();null!=b&&a.H("edit").O()});return b},enabled:function(){return l.hasFocus()&&c()}})}};function Tf(){var a=this;a.name="paste";a.F=function(){function c(a){[].filter.call(a.childNodes,function(a){return e.L(a)&&!e.Se(a)&&(!S(a)||e.Sb(a))&&J(a)>=d.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}function b(a){var b=d.C();b||(b=rd(),b.selectNodeContents(m),b.collapse(!1),d.Ea(b),d.ya());a||h.O();return d.C()}var d=a.H("context"),e=a.H("query"),f=a.H("block"),g=a.H("normalize"),h=a.H("edit"),m=d.root,k=d.Da;a.md=function(a){function b(a){[].filter.call(a.childNodes,
function(a){return e.L(a)&&e.Sb(a)&&J(a)>=d.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}if(!h.O({Zc:!1}))return!1;if(!d.C())return w.warn("insertPlainText did fail due to missing content"),!1;var c;v(a)&&(c=a);var f;a instanceof DocumentFragment?f=a:a instanceof Node&&(f=document.createDocumentFragment(),f.appendChild(a));f&&gd(document.createElement("body"),function(a){a.appendChild(f);c=tc(a).replace(/\u00A0/g," ")});e.A(d.C().startContainer)?b(d.C().startContainer):e.A(d.C().startContainer.parentNode)&&
b(d.C().startContainer.parentNode);a=c.split(/\n/gi);for(var k=d.U("insertparagraph").action,g=0;g<a.length;g++){var m=a[g];0<g&&k&&k();if(m&&m.length){var A=d.C(),z=A.startContainer,A=A.startOffset;0<=A-1&&A-1<z.childNodes.length&&3===z.childNodes[A-1].nodeType&&(z=z.childNodes[A-1],A=O(z));0<=A&&A<z.childNodes.length&&3===z.childNodes[A].nodeType&&(z=z.childNodes[A],A=0);e.A(z)&&e.ka(z)&&(A=e.Qc(z,A),z=A[0],A=A[1]);d.T(z,A);m.trim()&&(0===m.indexOf(" ")&&(m=m.replace(/^\s/gi,"\u00a0")),3===z.nodeType?
(z.insertData(A,m),d.T(z,A+m.length)):(1===z.childNodes.length&&e.Sb(z.firstChild)&&z.removeChild(z.firstChild),z=document.createTextNode(m),d.C().insertNode(z),d.T(z,m.length)))}}d.C().collapse(!1);return!0};a.insertNode=function(l,k,h,r){if(!l)return w.warn("insertNode failed due to missing content"),!1;var u=b(),p;k&&(p=document.createTextNode("\u00a0"),u.insertNode(p),u.selectNode(p),d.U("removeformat").action(),d.T(p,1));var q;v(l)?q=jc(l,m):l instanceof DocumentFragment?q=l:l instanceof Node&&
(q=document.createDocumentFragment(),q.appendChild(l));h&&(a.H("transform").zb(q,3,r?{info:{source:r},Ee:!1}:{Ee:!1}),g.Gb());if(0<Cd(u,"table").length||P(u.startContainer,"table")||P(u.endContainer,"table"))if(h=U("table",q),0<h.length)for(r=a.H("simpletext"),l=0;l<h.length;l++){var A=h[l],z=A.nextSibling,x=A.parentNode,B=r.tc(A);yc(A,x)&&x.removeChild(A);z?x.insertBefore(z,B):x.appendChild(B)}u.collapse(!1);d.Ea(u);d.ya();if(null==q.childNodes||0===q.childNodes.length)return w.warn("insertNode failed to empty content argument"),
!1;e.A(d.C().startContainer)?c(d.C().startContainer):k&&e.A(d.C().startContainer.parentNode)&&c(d.C().startContainer.parentNode);k=[];for(l=0;l<q.childNodes.length;l++)k.push(q.childNodes[l]);l=d.C();h=l.startContainer;u={};if(P(h,"li")&&Q(q.firstChild,"ol,ul,li")){l={Ud:[],lastChild:null};u=P(d.C().startContainer,"li");e.ka(u)&&dc(u);u=V("ol,ul",q);for(h=0;h<u.length;h++)if(r=u[h],null!=r){A=!0;for(z=r.parentNode;z;){if(-1!==["ol","ul"].indexOf(K(z))){A=!1;break}z=z.parentNode}A&&fc(r)}u=!1;1<O(q)&&
Q(q.lastChild.previousSibling,"li")&&e.ka(q.lastChild)&&Q(q.lastChild,"li")&&(u=!0);h=q.querySelector("li");Q(h.parentNode,"ol,ul")||fc(h);l.lastChild=q.lastChild;l.lh=u;l.Ud=e.vc(q);d.C().insertNode(q);u=l}else(h=P(h,"a"))&&q.querySelector(".en-todo")&&(l.selectNode(h),l.collapse(0===l.startOffset)),u.lastChild=q.lastChild,u.Ud=e.vc(q),l.insertNode(q);h=u.Ud;q=u.lastChild;d.T(q.parentNode,J(q)+1);f.ib(d.C().startContainer);f.ib(q);for(l=0;l<h.length;l++)f.ea(h[l]);p&&1===p.length&&d.removeNode(p);
d.ya();g.Gb();u.lh&&q&&q.previousSibling&&(p=q.previousSibling,H(q),q=p);q&&q.parentNode&&d.zg(q);(p=a.kb.O())&&p.df(k);return!0};k.inserthtml={P:!0,ta:!0,action:function(c){if(null!=c){var d=null;v(c)?(b(),d=jc(c,m)):d=c;null!=d&&(a.H("transform").zb(d,3),g.Gb(),a.insertNode(d,!1,!1))}return!0},value:function(){var a=d.C();if(!a||a.collapsed)return"";var b=e.Oc(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return qb(a)}};k.inserttext={P:!0,action:function(b){return a.md(b)}};
a.Ac=function(f,k){k=D(k,{value:"",selection:"",source:"",resources:[]},!1);k=D(Db(f),k,!0);var g=k.mode,r=k.type,u=$a(k.value),p=k.selection,q=k.source,A=k.resources||[];A&&0<A.length&&a.H("resource").zd(A);p&&(pe(d.root,p),d.Va());if(v(u)){if("raw"!==g&&ob(u.trim()))return g=M("a",{href:u.trim()}),"html"===r?g.innerHTML=u:g.innerText=u,a.insertNode(g,!0,!1,q);if("pre"===g)for(var p=/\u00a0\u00a0/gi,u=u.replace(/\t/gi,"    "),A=/ {2,}/gi,z;z=A.exec(u);)var x=z[0].replace(/\s/gi,"\u00a0").replace(p,
"\u00a0 "),u=u.substring(0,z.index)+x+u.substring(z.index+z[0].length);if("plain"===r)return a.md(u);b(!0);p=jc(u,m);if(!p)return!0;if("raw"===g)return a.insertNode(u,!0,!1,q);if("html"===r&&"rich"===g&&(u=d.C(),null!=u&&h.wg(u.startContainer)))return r=a.H("simpletext"),r=r.tc(p),u.startContainer.parentNode.insertBefore(r,u.startContainer),u.deleteContents(),e.A(u.startContainer)&&c(u.startContainer),u=r.ownerDocument.createRange(),u.selectNodeContents(r),u.collapse(!1),d.Ea(u),d.ya(),!0;if("html"===
r&&("plain"===g||"pre"===g||"simple"===g)){r=a.H("simpletext");if(r="simple"===g?r.Qf(p):r.tc(p))u=r.ownerDocument.createRange(),u.selectNodeContents(r),p=u.cloneContents();if("plain"===g||"pre"===g)return a.md(p)}return a.insertNode(p,!0,"rich"===g||"simple"===g,q)}return!0};k.paste={P:!0,action:function(b){return a.Ac(b,{type:"html",mode:"rich"})}};k.pasteraw={P:!0,action:function(b){Na('Please use execCommand("paste", { type: "html", mode: "raw", "value": ... })');return a.Ac(b,{type:"html",mode:"raw"})}};
k.pasteplain={P:!0,action:function(b){Na('Please use execCommand("paste", { type: "plain", mode: "pre", "value": ... })');return a.Ac(b,{type:"plain",mode:"pre"})}};k.pastesimple={P:!0,action:function(b){Na('Please use execCommand("paste", { type: "html", mode: "simple", "value": ... })');return a.Ac(b,{type:"html",mode:"simple"})}}};a.V=function(){a.D=null}};function Uf(){function a(a,b){var c=a.toString();(null!=b?b:1)&&(c=c.trim());return e.Y()?c:c.substr(0,e.G.maxLength)}function c(a){try{document.execCommand("inserttext",!1,a.toString())}catch(b){w.error("InsertText did fail with",a),W(f).insertNode(document.createTextNode(a))}}function b(a){C(null!=a&&v(a),"textfield: provide a non-null string to attempt insert into textfield");a=a.replace(/\s+/gi," ");if(e.Y())return e.D.Xa(function(){c(a)}),!0;var b=e.Ic(!0);b<a.length&&d();var f=a.substr(0,Math.max(0,
b));return 0<f.length?(e.D.Xa(function(){c(f)}),!0):!1}function d(){!0===e.G.He&&Ge("warning",{module:e.G.name})}C(this instanceof Uf,"Use `new` to instantiate this class");var e=this,f=null,g=!1;e.name="textfield-"+rb();e.G=null;e.D=null;e.ob=null;e.F=function(h){e.G=D(h,{element:null,zf:!1,maxLength:0,placeholder:null,oe:!1,If:!0,nf:!0,active:!0,jf:["textfield"],gc:null,sd:null,of:null,name:null,fontsize:null,He:!1});f=e.G.element;C(!!f&&I(f),'"element" option must be an HTMLElement');!0===e.G.He&&
C(null!=e.G.name,'"name" is required for warnings to be enabled');e.B.Wc({Ya:e.G.jf});e.Oa(e.G.placeholder);e.Bc(e.G.fontsize);e.setActive(e.G.active);C(!(e.G.zf&&e.G.maxLength),"Max length not supported for multi line fields");e.B.listener(f,"input",function(){if(!(e.Y()||0<=e.Ic())){f.normalize();f.focus();var b=f.firstChild;if(null!=b){b.textContent=a(f.textContent,!1);var c=W(b);null!=c&&sd(rd(b,Math.min(0!==c.endOffset?c.endOffset:e.G.maxLength,e.G.maxLength)))}}e.G.gc&&e.R(!0)});e.B.listener(f,
"textInput",function(a){return e.Y()||0!==e.Ic(!0)?!0:(d(),Pd(a))});e.G.sd&&e.G.name&&(e.B.listener(f,"blur",function(){Je(e.G.name,{focus:e.hasFocus()})}),e.B.listener(f,"focus",function(){e.focus()}));e.G.gc&&e.B.listener(f,"blur",function(){e.dc()&&Bb(e.G.gc,{target:f,value:e.J(!1),blur:!0})});e.G.of&&e.B.listener(f,"paste",function(a){if(a&&a.clipboardData){var c=a.clipboardData.getData("text/plain");b(c);return Pd(a)}});if(e.G.nf){var g=function(a,c){c=D(Db(a),c,!0);var d=c.value;"html"===c.type&&
(d=jc(d,f).textContent);return b(d)};e.B.A({name:"paste",action:function(a){if(e.hasFocus())return g(a,{type:"html",mode:"plain",value:""})},enabled:function(){return e.hasFocus()}});e.B.A({name:"pasteplain",action:function(a){if(e.hasFocus())return Na('Please use execCommand("textfield.paste", { type: "plain", mode: "plain", "value": ... })'),g(a,{type:"plain",mode:"plain",value:""})},enabled:function(){return e.hasFocus()}});var k=function(){var a=W(f);return!(!a||a.collapsed)};e.B.A({name:"copy",
value:function(){if(!k())return null;var a=W(f);return{plain:$a(a.toString())}},enabled:k});e.B.A({name:"inserttext",action:function(a){if(e.hasFocus())return e.D.Xa(function(){c(a)}),!0},enabled:function(){return e.hasFocus()}});e.B.A({name:"delete",action:function(a){return"selection"===a?(document.execCommand("delete"),!0):!1},enabled:function(a){return"selection"===a?e.hasFocus():!1}});e.B.A({name:"placeholder",action:function(a){e.Oa(a||null)},enabled:function(){return!(!this.G||!this.G.queryGroupName)}})}e.G.If&&
(e.D=new hf,e.qa().F(e.D,{element:f}));e.B.A({name:"content",action:function(b){!e.G.oe||b&&a(b)!==e.N()||(b="");e.ua(b);return!0},value:function(a){h=D(Db(a),{resetChangesState:!0});h.resetChangesState&&e.R(!1);return e.J()||(e.G.oe?e.N():"")},enabled:y,Wb:!0});e.B.A({name:"active",action:function(a){e.setActive(Cb(a))},state:function(){return e.fa()},enabled:y,Wb:!0});e.B.A({name:"focus",action:function(a){D(Db(a),{clear:!1}).clear?vd():e.focus();return!0},state:function(){return e.hasFocus()},
enabled:y,Wb:!0});e.B.A({name:"changes",action:function(a){a=Cb(a);e.R(a);return!0},state:function(){return e.dc()},enabled:y,Wb:!0});e.B.A({name:"selectall",action:function(){e.Tb();return!0},enabled:function(){return e.hasFocus()}})};e.V=function(){e.setActive(!1);e.ob=null;e.G=null;f.removeAttribute("data-en-placeholder");f=null};e.J=function(b){b&&e.R(!1);if(e.G.multiline)return tc(f);f.normalize();b=f.firstChild;return null!=b?a(b.textContent):""};e.ua=function(b){f.textContent=a(b);e.R(!1)};
e.hasFocus=function(){if(!e.fa())return!1;var a=W(f);return a&&(a=xd(a))?!!P(a,Mc):!1};e.focus=function(){f.focus();sd(rd(f,O(f)));e.G.sd&&e.G.name&&Je(e.G.name,{focus:e.hasFocus()})};e.Tb=function(){f.focus();window.getSelection().selectAllChildren(f);e.G.sd&&e.G.name&&Je(e.G.name,{focus:e.hasFocus()})};e.N=function(){return f.getAttribute("data-en-placeholder")||""};e.Oa=function(b){null!=b?f.setAttribute("data-en-placeholder",a(b)):f.removeAttribute("data-en-placeholder")};e.setActive=function(a){a!==
e.fa()&&(null==W(f)&&vd(),Nc(f,a))};e.fa=function(){return Mc(f)};e.R=function(a){g=!!a;!1===g&&e.D.flush();!0===e.dc()&&e.G.gc&&Bb(e.G.gc,{target:f,value:e.J(!1)});Zb(f,"en-note-is-empty",Md(f))};e.dc=function(){return g&&e.fa()};e.Bc=function(a){(a=he(a,"px","px"))&&0<a.value&&T(f,"font-size",a.Ob)};e.Y=function(){return 0>=e.G.maxLength};e.Ic=function(a){var b=e.G.maxLength-f.textContent.length,c=W(f),c=null!=c?c.endOffset-c.startOffset:0;a&&(b+=c);return Math.max(0,b)}};function Vf(){function a(){Na("Please use title.focus");return g.hasFocus()}function c(a){if("placeholder"===a)return g.N();if("focus"===a)return Na("Please use title.focus"),g.hasFocus();Na("Please use title.content");return g.J()||g.N()}function b(a){a=Db(a);var b=!1,c=a.active;null!=c&&(Na("Please use title.active"),g.setActive(c),b=!0);c=a.value;null!=c&&(Na("Please use title.content"),d(c),b=!0);!0===a.focus&&(Na("Please use title.focus"),g.focus(),b=!0);return b}function d(a){a&&a!==g.N()?g.J()!==
a&&g.ua(a):g.ua("");h=g.J()||g.N();g.R(!1)}C(this instanceof Vf,"Use `new` to instantiate this class");var e=this;this.name="title";var f=document.querySelector("#en-title");C(I(f),"Node for title required");var g=null,h=null;e.F=function(m){m=D(m,{active:!0,value:"",placeholder:"Untitled",placeholderAsDefaultValue:!0,fontsize:null});e.B.Wc({Ya:["title"]});g=new Uf;e.qa().F(g,{element:f,zf:!1,maxLength:255,placeholder:m.placeholder,oe:m.placeholderAsDefaultValue,If:!0,nf:!0,active:m.active,gc:"titlechanged",
jf:["title"],sd:!0,of:m.pasteEvent,name:e.name,fontsize:m.fontsize,He:!0});e.B.K(function(){g=null});h=m.value;d(h);e.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&&(Le(e.name),b=!0):13===a.keyCode&&(0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c?(Le(e.name),b=!0):4!==c&&6!==c&&(b=!0));return b?Pd(a):!0});e.B.A({name:"title",action:b,
value:c,state:a,enabled:y})}};function Wf(){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 h(b,a)}return(b=f())?g(b):null}function b(){var b=W(r);if(!b||b.collapsed)return w.error("No selection"),!1;var c=a.H("copy").Uf(r,b,{html:!0});if(!c&&!c.html)return w.error("Failed to extract content",c),!1;c=c.html;if(0< !c.length)return w.error("Extracted content is empty",c),!1;var d=h();d.plainText=c;d.length="128";d.cipher="AES";d.hint="";d.boundingbox=Fd(b);c=e(d);if(!a.H("edit").O())return!1;
b=l.C();b.insertNode(c);b=rd();b.selectNode(c);b.collapse(!1);sd(b);w.log("pre post");a.B.timeout(function(){w.log("in post");Ge("encrypt",d);w.log("post post")},0);return!0}function d(b,c,d){var e=b.plainText;if(null!=e){var f=document.getElementById(b.id);if(f&&!E(f,"en-crypt-revealed")&&(l.yd(f),l.C())){for(;f&&!n.A(f.parentNode)&&!n.Db(f.parentNode);)t.ba([f]);!0===c?a.H("paste").Ac({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),mc(b,e),!0===d&&Nc(b,!1,!0),a.H("transform").zb(b,3),a.H("edit").Oe(b),l.T(b,O(b)))}}}function e(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=W(r);if(!a)return null;var b=wd(a,".en-crypt",r);return b?b:(a=Cd(a,".en-crypt"))&&a.length?a[0]:null}function g(a){var b=a.id,c=a.getAttribute("data-en-crypt-rev"),
d=null;b&&c&&(d=h(b,c),d.boundingbox=N(a,!0));return d}function h(b,c){b=b||sb(a.name);var d=q[b];null==d&&(d={},q[b]=d);c=c||sb(b);var e=d[c];null==e&&(e={id:b,rev:c},d[c]=e);return e}var m=!1!==Hd.rte.cryptLegacy,k=!0===Hd.rte.cryptReadOnly,l=a.H("context"),n=a.H("query"),t=a.H("block"),r=l.root,u=l.Da;a.B.listener(r,"click",function(a){a=a.target;E(a,"en-crypt-placeholder")&&Qe(g(a))});if(m){var p=function(){var a=l.C();if(!a||a.collapsed)return"";var b=n.Oc(a.startContainer,a.startOffset);a.setStart(b[0],
b[1]);a=a.cloneContents();return qb(a)};u.insertcrypto={ta:!0,action:function(b){if(!l.C())return w.error("insertCryptoAction: No range",b),!1;a.H("edit").O()&&a.H("paste").insertNode(b,!1,!0);return!0},value:p};u.revealcrypto={ta:!0,Sa:!0,action:function(b){var c=l.C();if(!c)return!1;c=n.Ab(c,I);if(!c&&0>=c.length)return!1;for(c=c[0];c&&!n.A(c.parentNode)&&!n.Db(c.parentNode);)t.ba([c]);b=jc(b);if(!b)return!1;b=b.firstChild;a.H("transform").zb(b,3);a.H("edit").Oe(b);l.root.focus();l.T(b,O(b));return!0},
value:p}}var q={};a.Vf=function(){if(k)return[];var a=[],b,c;for(b in q)if(q.hasOwnProperty(b))for(c in q[b])if(q[b].hasOwnProperty(c)){var d=q[b][c];null!=d.plainText&&null==d.cipherText&&a.push(d)}return a};a.af=function(a){h(a.id,a.rev).cipherText=a.cipherText};a.B.ha(r,"beforeGetContent",function(){if(!k)for(var a=Oa(r.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=h(d.id);c.setAttribute("data-en-crypt-rev",
f.rev);hb(f,d,!0);f.plainText=e;delete f.cipherText;delete d.plainText}}}});a.B.A({name:"crypt",action:function(f){var g,n;l.Va();if(mb(f))return b();g=Db(f);if(f=g.encrypt)a.af(f);else if(f=g.decrypt)g=f.id,n=f.rev,g=h(g,n),g.plainText=f.plainText,d(g,g.revert,k);else if(f=g.revert){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?d(g,!0):(g.revert=!0,Qe(g))}else if(f=g.open){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?d(g,!1,k):Qe(g)}else if(f=
g.close){g=c(f);if(!g)return!1;a.H("undo").flush();(f=document.getElementById(g.id))&&!E(f,"en-crypt-placeholder")&&(g=e(g),ec(f,g),l.yd(g),l.C().collapse(!1))}else return w.error("Invalid crypt value",g),!1;l.ya();return!0},state:function(a){var b=f();return b?"open"===a?E(b,"en-crypt-revealed"):"closed"===a?E(b,"en-crypt-placeholder")||!E(b,"en-crypt-revealed"):!0:!1},value:function(a){if("selected"===a){if(a=f()){var b=g(a);b.open=E(a,"en-crypt-revealed");return b}return""}return{count:{},items:{}}},
enabled:function(a){if(!mb(a))return!0;a=W(r);return!(!a||a.collapsed||wd(a,".en-crypt",r)||!(0>=Cd(a,".en-crypt").length))}});a.Ze=function(a){m||V(".en-crypt-revealed",a).forEach(function(a){var b=g(a);null!=b&&(b=e(b),ec(a,b))})};a.Ja=function(a,b){1===b?V("en-crypt",a).forEach(function(a){var b;m?(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=h(),b.cipherText=
a.textContent,b.length=a.getAttribute("length"),b.cipher=a.getAttribute("cipher"),b.hint=a.getAttribute("hint"),b=e(b));ec(a,b)}):2===b&&(m||V('embed[type="evernote/x-crypto"]',a).forEach(function(a){var b=a.getAttribute("id").split(":"),c=h();c.cipherText=b[1];c.cipher=b[2];c.length=b[3];c.hint=b.slice(4).join(":");b=e(c);ec(a,b)}))};a.Fa=function(a,b,c){if(1===b)if(m){var d=c.crypto||{};C(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=kc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]),ec(b,c)):w.error("Found revealed crypto but not replacement. Key:",c)});V('embed[type="evernote/x-crypto"]',a).forEach(function(b){var c=b.getAttribute("id").split(":"),c=kc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]);ec(b,c)})}else V(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=kc(a,"en-crypt",{cipher:c.cipher,length:c.length,
hint:c.hint},[c.cipherText]),ec(b,c)):H(b)});else 2===b?m||V(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=kc(a,"embed",{type:"evernote/x-crypto",id:"en-crypt:"+c.cipherText+":"+c.cipher+":"+c.length+":"+c.hint}),ec(b,c)):H(b)}):3===b||w.error("Other transformers EN-CRYPT!!!")}}};function Xf(){var a=this;a.name="debug";a.F=function(){function c(a,b,c){var g;c=hb(c||{},{keyCode:13,charCode:0},!0);if(a.fireEvent){g=document.createEventObject();hb(g,c);try{return!!a.fireEvent("on"+b,g,!1)}catch(h){}return!1}if(document.createEvent)try{g=document.createEvent("KeyEvents"),g.initKeyEvent(b,!0,!0,window,!1,!1,!1,!1,c.keyCode,c.charCode)}catch(h){g=document.createEvent("Events"),g.initEvent(b,!0,!0),g.keyCode=c.keyCode,g.charCode=c.charCode}else g=document.createEvent("UIEvents"),
g.initUIEvent&&g.initUIEvent(b,!0,!0,window,1),g.keyCode=c.keyCode,g.charCode=c.charCode;return!!a.dispatchEvent(g)}var b=a.H("context").root;a.B.A({name:"type",action:function(d){for(var e=0;e<d.length;e++){var f=d.charCodeAt(e);if(c(b,"keydown",{keyCode:f})&&c(b,"keypress",{keyCode:f})&&c(b,"textInput",{keyCode:f})){try{document.execCommand("inserttext",!1,d[e])}catch(g){w.log("Using fallback for native inserttext command"),a.H("paste").md(d[e]),c(b,"input",{})}c(b,"keyup",{keyCode:f})}}return!0},
enabled:y});a.B.A({name:"event",action:function(a){var c=Db(a);a=new document.defaultView.CustomEvent(c.type,c);a.data=c.data;if(null!=c.html&&(b.innerHTML=c.html,null!=c.selection)){var f=W(b),c=ne(b,c.selection);f&&c&&!zd(f,c)&&sd(c)}b.dispatchEvent(a);return!0},enabled:y});a.B.A({name:"selection",action:function(a){pe(b,a);return!0},enabled:y})}};function Yf(){var a=this;a.name="edit";a.F=function(){function c(a){function b(a){return Q(a,"ol,ul")}for(var c=null;Oa(a.childNodes).some(b);){var d=a.lastChild;b(d)||!c&&fd(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(uc()),d=!0;else{var e=a.H("simpletext");b=b.cloneContents();e=e.tc(b);c.appendChild(e)}p.U("insertparagraph").action();e=q.na(p.C().startContainer);e.parentNode.insertBefore(c,e);z.ea(c);d&&p.T(c,0)}}function d(){function a(b){for(;b;){if(0<=d.indexOf(b))return!0;b=b.parentNode}return!1}var c=A.H("textinput").Nf();c||(c=p.C());var d=Oa(document.querySelectorAll('div[style*="-en-codeblock:"]')),e=null;d&&0<d.length&&(c.collapsed?e=a(c.startContainer)?[c.startContainer]:
null:e=A.oa(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 e(b){if(!b||!a.O({Zc:!1}))return!1;var c=p.C();if(!q.L(p.C().startContainer)&&!q.Ka(p.C().startContainer))return!0;q.A(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);p.T(b.parentNode,1+J(b));return!0}function f(a){if(k())return!1;
window.getSelection().isCollapsed&&(window.getSelection().modify("extend",a?"backward":"forward","lineboundary"),p.Va());return p.U(a?"delete":"forwarddelete").action()}function g(a){if(k())return!1;if(!window.getSelection().isCollapsed)return p.U("delete").action();var b=P(p.C().startContainer,"li");z.yc()&&null!=b&&q.ka(b)||(window.getSelection().modify("extend",a?"backward":"forward","word"),p.Va());return p.U(a?"delete":"forwarddelete").action()}function h(){var b=p.C();if(b.collapsed){x.Cg();
var c=A.Rb();if(1!==O(c)||!R(c.firstChild,"div")||1!==O(c.firstChild)||!R(c.firstChild.firstChild,"br")){z.Qb(b.startContainer,b.startOffset);var d=b.startContainer,c=b.startOffset;if(!m(b)){for(;;)if(0===c&&q.L(d.previousSibling)&&q.$(d.previousSibling))d.parentNode.removeChild(d.previousSibling);else if(0<=c-1&&c-1<d.childNodes.length&&q.L(d.childNodes[c-1])&&q.$(d.childNodes[c-1]))d.removeChild(d.childNodes[c-1]),c--;else if(0===c&&q.X(d)||q.$(d))c=J(d),d=d.parentNode;else{if(0<=c-1&&c-1<d.childNodes.length&&
q.L(d.childNodes[c-1])&&R(d.childNodes[c-1],"a")){z.Cc(d.childNodes[c-1]);return}if(0<=c-1&&c-1<d.childNodes.length&&!q.A(d.childNodes[c-1])&&!S(d.childNodes[c-1])&&!Ld(d.childNodes[c-1]))d=d.childNodes[c-1],c=O(d);else break}if(0<c&&3===d.nodeType)b=1,1<c&&Ya(d.textContent.substring(c-2,c))&&(b=2),p.T(d,c-b,d,c),a.O();else if(q.L(d)&&0<=c-1&&c-1<d.childNodes.length&&(Q(d.childNodes[c-1],"br,hr")||Ld(d.childNodes[c-1])))p.T(d,c-1,d,c),a.O();else if(!q.X(d)){if(Q(d,"li,dt,dd")&&0===c){if(B){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.sb(c[b]);c=A.ca([d]);z.ba([d]);A.aa(c);Q(d,"dd,dt")&&q.jb(d).every(function(a){return!q.S(d,a)||!q.W(d,a)})&&(d=p.ma(d,"div"));z.ea(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.L(b.childNodes[e-1])&&q.$(b.childNodes[e-1]))b.removeChild(b.childNodes[e-1]),e--;else break;if(0===c&&q.td(d,!0)&&q.jb(d).concat(d).filter(function(a){return q.L(a)&&q.S(a,d)&&q.Fb(a)}).length)if(c=rd(d,0),c=q.ga(c),c=q.Aa(c,function(a){return q.L(a)&&!q.Ne(a)}),c.filter(function(a){return 3!==a.nodeType}).length)for(b=0;b<c.length;b++)r(c[b]);else r(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"))p.T(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.X(b.childNodes[e-1].previousSibling))))p.T(b,e-1,b,e),a.O()&&p.T(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,p.T(b,e,d,0),a.O();else{for(;0<=e-1&&e-1<b.childNodes.length;){var f=b.childNodes[e-1];q.L(f)&&q.$(f)?(b.removeChild(f),e--):Q(f,"hr, div.en-container")?
e--:(b=f,e=O(b))}p.T(b,e,d,c);a.O({direction:"backward"})}}}}}else a.O()}function m(a){var b=a.startContainer,c=a.startOffset,d=P(b,"td");return a.collapsed&&d&&!P(b,"li")&&Md(d)&&(a=$b(d)[0],(b===a||zc(a,b))&&0===c)?!0:!1}function k(){return!!a.H("textinput").Pe()}function l(a){x.$b();for(var b=q.ga(p.C()),b=q.Ab(b,function(a){return 1===a.nodeType&&q.L(a)&&(a.hasAttribute("align")||""!=a.style.textAlign)}),c=0;c<b.length;c++){var d=b[c];d.removeAttribute("align");Vc(d,"text-align")}if("left"!=a)for(b=
q.ga(p.C()),b=q.Aa(b,function(a){return q.L(a)&&R(a,"div")});b.length;)b.shift().setAttribute("style","text-align: "+a)}function n(a){var b=a.toLowerCase(),c="tl"===b,d=c?"ul":b,e=p.C();if(e){x.$b();var f=z.Ha()===b?"disable":"enable",k=function(a){return q.Qe(a,b)},l=function(a){return!k(a)&&Q(a,"ol,ul")},h=[];(function(){for(var a=e.endContainer;a!==e.commonAncestorContainer;a=a.parentNode)R(a,"li")&&h.unshift(a);for(a=e.startContainer;a;a=a.parentNode)R(a,"li")&&h.unshift(a)})();h.forEach(z.sb);
a=q.ga(e);"enable"===f&&q.Ab(a,function(a){return q.L(a)&&l(a)}).forEach(function(a){if(q.L(a.previousSibling)&&k(a.previousSibling)||q.L(a.nextSibling)&&k(a.nextSibling)){a=[].slice.call(a.childNodes);var b=A.ca(a);z.ba(a);A.La(a,function(a){return k(a)});A.aa(b)}else p.ma(a,d),Zb(a,"en-todo-list",c),T(a,"-evernote-list-type",c?"todo":null)});a=q.Aa(a,function(a){return q.L(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||q.W(a,"li"))});"enable"==f&&(a=a.filter(function(a){return!Q(a,"ol,ul")||Q(a.parentNode,
"ol,ul")}));if("disable"==f)for(;a.length;){var g=[];g.push(a.shift());if(k(g[0]))r(g[0]);else{for(;a.length&&a[0]==g[g.length-1].nextSibling&&!k(a[0]);)g.push(a.shift());f=A.ca(g);z.ba(g);for(var n=0;n<g.length;n++)z.ea(g[n]);A.aa(f);for(n=0;n<g.length;n++)Q(g[n].parentNode,"ol,ul")&&a.push(g.shift())}}else for(;a.length;){for(g=[];!g.length||a.length&&a[0]==g[g.length-1].nextSibling;)if(Q(a[0],"p,div"))a[0].style.margin="",a[0].style.textAlign="",a[0].removeAttribute("align"),Tc(a[0]),g.push(p.ma(a[0],
"li")),a.shift();else if(Q(a[0],"li,ol,ul"))g.push(a.shift());else{for(f=[];!f.length||a.length&&a[0]==f[f.length-1].nextSibling&&q.X(a[0])&&q.X(f[f.length-1])&&!S(f[f.length-1]);)f.push(a.shift());for(;f.length&&fd(f[f.length-1]);)f.pop();f.length&&g.push(A.La(f,void 0,function(){return M("li")}))}if(!k(g[0].parentNode)&&!g.every(function(a){return Q(a,"ol,ul")}))if(l(g[0].parentNode)){var g=Oa(g[0].parentNode.childNodes),m=g[0].parentNode.getAttribute("type"),f=A.ca(g);z.ba(g);A.La(g,function(a){return k(a)},
function(){return t(b,m)});A.aa(f)}else f=A.La(g,function(a){return k(a)},function(){if(!(q.L(g[0].parentNode)&&q.zc(g[0].parentNode)&&q.L(g[0].parentNode.previousSibling)&&k(g[0].parentNode.previousSibling))){var a=g[0].parentNode.getAttribute("type");return t(b,a)}var c=g[0].parentNode.previousSibling;z.sb(c.lastChild);q.L(c.lastChild)&&k(c.lastChild)||(a=c.getAttribute("type"),c.appendChild(t(b,a)));return c.lastChild}),z.ea(f)}}}function t(a,b){C(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 r(a){if(q.L(a))if(R(a,"div")){var b=q.wc(a)-40;0<b?T(a,"margin-left",b+"px"):z.Cc(a)}else if(q.zc(a))z.Cc(a);else if(q.Fb(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"),p.ma(a,"div");else{for(var b=
a.parentNode,c=[];q.L(b)&&1==b.nodeType&&!q.zc(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(!q.L(b)||!q.zc(b))for(b=a.parentNode,c=[];q.L(b)&&1==b.nodeType&&!q.Fb(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(Q(a,"ol,ul")&&(!q.L(b)||!q.Fb(b))){a.removeAttribute("reversed");a.removeAttribute("start");a.removeAttribute("type");b=[].slice.call(a.childNodes);if(Q(a.parentNode,"ol,ul")||Oa(a.parentNode.childNodes).every(function(){return Q(a,"ol,ul")||fd(a)}))c=A.ca([].slice.call(a.childNodes)),z.Cc(a),
A.aa(c);for(c=0;c<b.length;c++)z.ea(b[c])}else if(q.L(b)&&q.Fb(b)){c.push(b);for(var d=b;c.length;){var b=c.pop(),e=a.parentNode==b?a:c[c.length-1];q.X(e)&&!S(e)&&S(e.nextSibling)&&e.parentNode.removeChild(e.nextSibling);var f=[].slice.call(b.childNodes,1+J(e));u([].slice.call(b.childNodes,0,J(e)));u(f)}r(d)}}}function u(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.La(a,function(a){return q.Qe(a,c)},function(){return t(c,d)})}else{for(var b=
!0,e=0;e<a.length;e++)E(a[e],"en-code")||P(a[e],".en-code")||(b=!1);for(;a.length;)e=a.shift(),R(e,"div")?b&&E(e,"en-code")?e.insertBefore(document.createTextNode("\u00a0\u00a0\u00a0\u00a0\u00a0"),e.firstChild):z.je(e):(e=A.La([e],function(a){return q.zc(a)?!0:!1},function(){return M("div",{style:"margin-left:40px;"})}),z.ea(e))}}}var p=a.H("context"),q=a.H("query"),A=a.H("format"),z=a.H("block"),x=a.H("normalize"),B=!0===p.G.smartList,L=p.Da;a.O=function(b){if(!p.C())return!0;x.Be();var c=0<Cd(p.C(),
"td").length;if(Fb.J()){var d={stop:!1,element:p.root,Ia:p.C()};Bb("beforeDelete",d);if(!0===d.stop)return!1}z.Rf(b);c&&a.D();x.Gb();Bc(p.C().startContainer)||p.Va();return!0};a.D=function(){for(var a=U("td",p.root),b=0;b<a.length;b++)if(0===O(a[b])){var c=M("div",{},[M("br")]);a[b].appendChild(c)}};L.deleteword={P:!0,xb:!0,ta:!0,action:function(){return g(!0)}};L.forwarddeleteword={P:!0,xb:!0,ta:!0,action:function(){return g(!1)}};L.deleteline={P:!0,xb:!0,ta:!0,action:function(){return f(!0)}};L.forwarddeleteline=
{P:!0,xb:!0,ta:!0,action:function(){return f(!1)}};L["delete"]={P:!1,xb:!0,ta:!1,action:function(b){if(k())return!1;A.lg(function(){if("selection"===b)a.O();else if("word"===b)g(!0);else if("line"===b)f(!0);else if("number"==typeof b)for(var c=0;c<b;c++)h();else h()});return!0}};L.forwarddelete={P:!1,xb:!0,ta:!1,action:function(b){if(k())return!1;"selection"===b?a.O():"word"===b?g(!1):"line"===b?f(!1):p.C().collapsed?(b=p.C(),m(b)||(window.getSelection().modify("extend","forward","character"),window.getSelection().collapseToEnd(),
p.Va(),zd(b,p.C())||p.U("delete").action())):a.O();p.ya();return!0}};L.indent={P:!0,ta:!0,action:function(){x.$b();for(var a=[],b=p.C().endContainer;b!=p.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=p.C().startContainer;b!=p.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=p.C().commonAncestorContainer;b;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=0;b<a.length;b++)z.sb(a[b]);a=q.ga(p.C());a=q.Aa(a,function(a){return q.L(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.sb(b)}for(;a.length;){b=[];for(b.push(a.shift());a.length&&a[0]==b[b.length-1].nextSibling;)b.push(a.shift());u(b)}return!0},enabled:function(){return p.hasFocus()&&!z.Ca()}};L.outdent={P:!0,ta:!0,action:function(){x.$b();var a=A.Rb(),b=[];(function(){for(var a=p.C().endContainer;a!=p.C().commonAncestorContainer;a=a.parentNode)R(a,"li")&&b.unshift(a);for(a=p.C().startContainer;a;a=a.parentNode)R(a,
"li")&&b.unshift(a)})();b.forEach(z.sb);for(var c=q.ga(p.C()),c=q.Aa(c,function(a){return q.L(a)&&(!q.vc(a).some(q.L)||Q(a,"ol,ul")||R(a,"li")&&Q(a.parentNode,"ol,ul"))}),d=!0,e=0;e<c.length;e++)E(c[e],"en-code")||P(c[e],".en-code")||(d=!1);for(e=[];c.length;){for(;c.length&&R(Lc(c[0],a),"div");){var f=Lc(c.shift(),a);if(-1===e.indexOf(f))if(e.push(f),d&&E(f,"en-code"))f=bc(f),xc(f)&&(f.textContent=f.textContent.replace(/\s{0,5}/,""));else{var k=q.wc(f)-40;0<k?T(f,"margin-left",k+"px"):(Vc(f,"margin-left"),
Vc(f,"margin"))}}for(;c.length&&(Q(c[0],"ol,ul")||!Q(c[0].parentNode,"ol,ul"));)r(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());k=A.ca(f);z.ba(f);f.forEach(z.ea);A.aa(k)}return!0},enabled:function(){return p.hasFocus()&&!z.Ca()}};L.inserthorizontalrule={P:!0,ta:!0,action:function(){if(z.rd())return!1;p.U("insertparagraph").action();var a=M("div",{},[M("hr")]),b=q.na(p.C().startContainer);p.K(a,b.parentNode,J(b));
return!0},enabled:function(){return p.hasFocus()&&!z.rd()&&!z.Ca()}};a.Oe=e;L.insertimage={P:!0,ta:!0,action:function(a){if(""===a)return!1;a=M("img",{src:zf(a)});e(a);a.removeAttribute("width");a.removeAttribute("height");return!0}};L.insertlinebreak={ta:!0,action:function(){if(k())return!1;if(!z.yc())return p.U("insertparagraph").action();if(!a.O({Zc:!1}))return!1;if(!q.L(p.C().startContainer)&&!q.Ka(p.C().startContainer)||1==p.C().startContainer.nodeType&&!q.W("br",p.C().startContainer)||1!=p.C().startContainer.nodeType&&
!q.W("br",p.C().startContainer.parentNode))return!0;if(3==p.C().startContainer.nodeType&&0==p.C().startOffset){var b=p.C().startContainer.parentNode,c=J(p.C().startContainer);p.T(b,c)}3==p.C().startContainer.nodeType&&p.C().startOffset==O(p.C().startContainer)&&(b=p.C().startContainer.parentNode,c=1+J(p.C().startContainer),p.T(b,c));b=M("br");p.C().insertNode(b);p.T(b.parentNode,1+J(b));q.Sb(b)&&(p.C().insertNode(M("br")),p.T(b.parentNode,1+J(b)));return!0}};L.insertparagraph={P:"before",ta:!0,action:function(){if(k())return!1;
var b=a.ia("todo");if(!a.O())return!1;var c=p.C().startContainer,d=p.C().startOffset;if(!q.L(c)&&!q.Ka(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);p.T(c,d);for(var e=c;!q.ve(e)&&q.L(e.parentNode)&&q.S(c,e.parentNode);)e=e.parentNode;if(q.L(e)&&q.ve(e)&&q.S(c,e.parentNode)&&Q(e,"p,div")){for(var f=e;!Q(f,"dd,dt,li")&&q.L(f.parentNode);)f=f.parentNode;Q(f,"dd,dt,li")&&(e=f)}if(!q.L(e)||!q.S(e,
c)||!q.ve(e)){f=q.ga(p.C());f=q.Aa(f,function(a){return q.W(a,"p")}).slice(0,1);if(!f.length){if(!q.W("div",p.C().startContainer))return!0;e=uc();p.C().insertNode(e);p.T(e,0);return!0}for(;f[f.length-1].nextSibling&&q.W(f[f.length-1].nextSibling,"p");)f.push(f[f.length-1].nextSibling);e=A.La(f,Ia,function(){return M("div")})}var f=!1,l=b?b.Je(e):null;if(b&&null!=l){if(b.hg(e))return dc(e),e.appendChild(M("br")),p.T(e,0),!0;f=!0}if(Q(e,"address,listing,pre"))return b=M("br"),p.C().insertNode(b),p.T(c,
d+1),yc(q.nextNode(b),e)||(p.C().insertNode(M("br")),p.T(c,d+1)),!0;Q(e,"li,dt,dd")&&z.sb(e);if(Q(e,"li,dt,dd")&&q.ka(e))return z.ba([e]),q.xc(e)||(p.Ve(e),e.appendChild(M("br"))),Q(e,"dd,dt")&&q.jb(e).every(function(a){return!q.S(e,a)||!q.W(e,a)})&&(e=p.ma(e,"div")),z.ea(e),!0;for(d=rd(p.C().startContainer,p.C().startOffset,e,O(e));0===d.startOffset&&!q.ec(d.startContainer);)d.setStart(d.startContainer.parentNode,J(d.startContainer));for(;d.startOffset===O(d.startContainer)&&!q.ec(d.startContainer);)d.setStart(d.startContainer.parentNode,
1+J(d.startContainer));var c=q.Aa(d),l=!c.length||1===c.length&&S(c[0]),c=xd(p.C()),c=P(c,function(a){return 0>["a","tt"].indexOf(K(a))},A.Rb())||c,c=A.ca([c]),h;Q(e,"h1,h2,h3,h4,h5,h6,tt")&&l?h="div":R(e,"dt")&&l?h="dd":R(e,"dd")&&l?h="dt":h=e.tagName.toLowerCase();var g=M(h);for(h=0;h<e.attributes.length;h++)g.setAttributeNS(e.attributes[h].namespaceURI,e.attributes[h].name,e.attributes[h].value);g.removeAttribute("id");g.removeAttribute("class");B&&Kc(e,"data-en-list-collapse")&&g.removeAttribute("data-en-list-collapse");
E(e,"en-code")&&F(g,"en-code");e.parentNode.insertBefore(g,e.nextSibling);var l=q.Ab(d),d=d.extractContents(),n=q.vc(d);for(h=0;h<n.length;h++)1===n[h].nodeType&&-1===l.indexOf(n[h])&&n[h].removeAttribute("id");for(h=d.childNodes.length-1;0<=h;h--)l=d.childNodes[h],xc(l)?fd(l)&&H(l):!S(l)&&q.ka(l)&&H(l);Q(e,"li")&&1<d.childNodes.length&&!q.ka(d)&&S(d.childNodes[0])&&H(d.childNodes[0]);for(g.appendChild(d);q.ec(e.lastChild);)e=e.lastChild;for(;q.ec(g.lastChild);)g=g.lastChild;q.xc(e)||(e.appendChild(M("br")),
A.aa(c.map(function(a){a[0]=e;return a})));if(q.xc(g))g.children&&1===g.children.length&&S(g.children[0])&&A.aa(c.map(function(a){a[0]=g;return a}));else{if(f)return dc(g),b=b.me(g),p.T(b.parentNode,O(b)+1),A.aa(c.map(function(a){a[0]=g;return a})),!0;g.appendChild(M("br"));A.aa(c.map(function(a){a[0]=g;return a}))}h=0;f&&!b.Je(g)&&(C(3!==g.nodeType,"newContainer for checkbox insertion cannot be text"),b.me(g),h++);b=q.Qc(g,h);g=b[0];h=b[1];p.T(g,h);return!0}};L.insertorderedlist={P:!0,ta:!0,action:function(){n("ol");
return!0},hb:function(){return"mixed"===z.Ha()},value:function(){return z.Ha()},state:function(){return"ol"===z.Ha()},enabled:function(){return p.hasFocus()&&!z.Ca()}};L.insertunorderedlist={P:!0,ta:!0,action:function(){n("ul");return!0},hb:function(){return"mixed"===z.Ha()},value:function(){return z.Ha()},state:function(){return"ul"===z.Ha()},enabled:function(){return p.hasFocus()&&!z.Ca()}};L.inserttodolist={P:!0,ta:!0,action:function(){n("tl");return!0},hb:function(){return"mixed"===z.Ha()},value:function(){return z.Ha()},
state:function(){return"tl"===z.Ha()},enabled:function(){return p.hasFocus()&&!z.Ca()}};[{name:"justifyfull",mode:"justify"},{name:"justifyleft",mode:"left"},{name:"justifycenter",mode:"center"},{name:"justifyright",mode:"right"}].forEach(function(a){L[a.name]={P:!0,ta:!0,action:function(){l(a.mode);return!0},hb:function(){if(!p.C())return!1;var b=q.Ab(q.ga(p.C()),function(a){return q.L(a)&&q.Z(a)&&!a.hasChildNodes()});return b.some(function(b){return z.hd(b)==a.mode})&&b.some(function(b){return z.hd(b)!=
a.mode})},state:function(){if(!p.C())return!1;var b=q.Ab(q.ga(p.C()),function(a){return q.L(a)&&q.Z(a)&&!a.hasChildNodes()});return b.length&&b.every(function(b){return z.hd(b)==a.mode})},value:function(){if(!p.C())return"";var a=q.Ab(q.ga(p.C()),function(a){return q.L(a)&&q.Z(a)&&!a.hasChildNodes()});return a.length?z.hd(a[0]):"left"},enabled:function(){return p.hasFocus()&&!z.yc()&&!z.Ca()}}});L.selectall={action:function(){window.getSelection().selectAllChildren(p.root);return!0},enabled:y,Sa:!0};
L.tab={P:!0,ta:!0,action:function(b){if(k())return!1;var c="true"===b||1===+b;if(z.yc()||!p.C().collapsed)return p.U(c?"outdent":"indent").action();if(z.Re()){var d=a.ia("table");d&&(b=d.I(),d=d.jd(),c?(b=dd(d,"td",b))&&p.T(b,0):(c=cd(d,"td",b),c||(p.U("inserttablerow").action("after"),c=cd(d,"td",b)),p.T(c,0)))}else c||(p.U("inserthtml").action("\u00a0\u00a0\u00a0\u00a0\u00a0"),(b=W(p.root))&&b.endContainer&&b.endContainer.parentNode&&p.Ag());return!0},enabled:function(){return p.hasFocus()&&!z.Ca()}};
a.wg=function(a){for(;a;){if(I(a)&&"true"===Uc(a,"-en-codeblock"))return!0;a=a.parentNode}return!1};L.codeblock={P:!0,Ta:!0,action:function(){d();return!0}};a.Ja=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=sc(a,"div");e=null;a.previousElementSibling&&(1===c&&Q(a.previousElementSibling,d)||1<c&&Q(a.previousElementSibling,"ul,ol"))?e=a.previousElementSibling:(e=kc(a,d),f.insertBefore(e,a));f=kc(e,"li");for(f.appendChild(a);1<
c;){a=pd(e);if(Q(a,"ol,ul"))e=a;else if(Q(a,"li")&&Q(pd(a),"ol,ul"))e=pd(a);else{var k=kc(e,d);a?a.appendChild(k):e.appendChild(k);e=k}c--}e.appendChild(f)}U("p",a).forEach(function(a){1===O(a)&&"o:p"===K(a.firstChild)&&(H(a.firstChild),a.appendChild(kc(a,"br")),sc(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"!==Uc(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=Uc(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 k=e[0];"ignore"===Uc(k,"mso-list").toLowerCase()&&(tc(k).match(/[0-9]+.*/g)&&(d="ol"),Q(k.parentNode,"span")&&1===O(k.parentNode)?H(k.parentNode):H(k))}b(a,c,d)}});V('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=Uc(c,"margin-left"),d=+d.replace(/(\d+)em/gi,"$1"),e=null;0<d;){var f=kc(a,b.tagName);e?e.appendChild(f):c.parentNode.insertBefore(f,c.nextSibling);e=f;d-=2}e&&(gc(c,e),H(c))}});V('li[style*="list-style:"]',a).forEach(function(a){"none"===Uc(a,"list-style")&&fc(a)});V("li",a).forEach(c);V("ol,ul",a).forEach(function(b){var c=null;Oa(b.childNodes).forEach(function(b){-1!==["li","ol","ul"].indexOf(K(b))?c=null:fd(b)?H(b):Gc(b)?sc(b,
"li"):(c||(c=kc(a,"li"),b.parentNode.insertBefore(c,b.nextSibling)),c.appendChild(b))})});V('ul[style*="-evernote-list-type"]',a).forEach(function(a){F(a,"en-todo-list");$b(a).forEach(function(a){if(R(a,"li")){var b=!1,c=U(".en-todo",a).shift();c&&(b=E(c,"en-todo-checked"),H(c));G(a,"en-todo-over");Zb(a,"en-todo-checked",b)}})})};a.Fa=function(a){V("ul.en-todo-list",a).forEach(function(b){$b(b).forEach(function(b){if(R(b,"li")){var c=kc(a,"img",{"class":"en-todo"});Zb(c,"en-todo-checked",E(b,"en-todo-checked"));
b.insertBefore(c,b.firstChild)}})});V("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(b){var c=b.previousSibling;R(c,"li")?c.appendChild(b):(c=kc(a,"li",{style:"display:inline;list-style:none;"}),b.parentNode.insertBefore(c,b),c.appendChild(b))})}}};function Zf(){this.name="typebehind-email-"+rb();this.ab=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);C(null!=c,"new node is null");v(b)&&(c.setAttribute("href","mailto:"+b),c.textContent=b);return{node:c,fb:!1}};this.F=function(a){C(!0===a,"typebehind.email only accepts true as opt")}};function $f(){function a(a){var b=null;zb.pb.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-"+rb();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.ab=function(){return"emoticon"};this.D=function(){return zb.Ba.map(function(a){return new RegExp(a,"g")})};this.J=function(a,b){var f;f=zb.get(b.source);f=null==f?null:c(f);C(null!=f,"typebehind: emoji node failed to be created");a.insertNode(f);return{node:f,fb:!1}};this.Ja=function(b){ad(b).forEach(function(b){var c=a(b.textContent);null!=c&&ec(b,c)})};this.Fa=function(a){V("object.en-emoticon",
a).forEach(function(a){ec(a,M("span",{style:"-evernote-sentoj-emoticon:true"},a.textContent))})};this.F=function(a){C(!0===a,"typebehind.emoticon only accepts true as opt")}};function ag(){this.name="typebehind-url-"+rb();this.ab=function(){return"url"};this.D=function(){return[/(?:(?:https?|ftp):\/\/|www.)(?:\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);C(null!=c,"new node is null");v(b)&&(a=b,/^[a-z]+:\/\//i.test(b)||(a="http://"+b),c.setAttribute("href",a),c.textContent=b);return{node:c,fb:!1}};this.F=function(a){C(!0===a,"typebehind.url only accepts true as opt")}};function bg(a){var c=this;c.name="typebehind-list-"+rb();c.ab=function(){return"list"};c.D=function(){return[/^\s*\*/gi,/^\s*[0-9]+\./gi]};c.Zb=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.fa=function(a){for(var c=0,f=0;f<b.length;++f)for(var g=b[f],h=g[1],g=RegExp("^"+g[0]);a.match(g);)c+=h,a=a.replace(g,"");return c};c.J=function(b,e,f){b=c.D();e==b[0].toString()?a.U("insertunorderedlist").action():e==b[1].toString()&&(a.U("insertorderedlist").action(),e=W(),e=P(e.startContainer,"ol"),f=f.substr(0,f.length-1),1<f?e.setAttribute("start",f):e.removeAttribute("start"));return{node:null,fb:!0}};c.F=function(a){C(!0===a,"typebehind.list only accepts true as opt")}};function cg(a,c){this.name="typebehind-inline-"+rb();var b=/(?:\s+|\xa0+|^)\`(\S(?:.*\S)?)(?:[\xa0\\t ]*$)/gi,d=[{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.ab=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.R=function(){return!0};this.J=function(e,f,g){var h=null,m=-1;f=null;for(var k=1,l=null,n=0;n<d.length;n++){f=d[n].cmd;var k=d[n].len,l=d[n].value,t=g.match(d[n].rx),h=null,m=-1;if(t&&0<t.length){h=t[0].trim();m=g.lastIndexOf(h);t=h[0];1<d[n].len&&(t+=t);
if(h.substr(h.length-t.length)!==t)return{node:null,fb:!1};if("tt"!==f&&g.match(b))n=d.length-2;else{n=Ua(t);if(h.match(new RegExp("^"+n+"\\s*"+n+"$")))return{node:null,fb:!1};break}}}if(null!=h){g=e.startContainer;for(n=0;Ic(g);){if(xc(g)){if(n+g.textContent.length>m)break;n+=g.textContent.length}g=wc(g)}g=bc(g);h=e.endContainer;m-=n;e=e.endOffset-k;g.textContent=g.textContent.slice(0,m)+g.textContent.slice(m+k);g===h&&(e-=k);h.textContent=h.textContent.slice(0,e)+h.textContent.slice(e+k);k=c.se(!0);
e=rd(g,m,h,e);c.Gd(f,l,e);sd(rd(e.endContainer,e.endOffset,e.endContainer,e.endOffset));a.U(f).action();c.Cb(k)}return{node:null,fb:!1}};this.F=function(a){C(!0===a,"typebehind.inline only accepts true as opt")}};function dg(){var a=this;a.name="typebehind-todo-"+rb();a.ab=function(){return"todo"};a.D=function(){return[/\[[\sxX]?\]/gi]};a.J=function(c,b,d){b=a.kb.I.H("todo").lc();0<d.toLowerCase().indexOf("x")&&F(b,"en-todo-checked");c.insertNode(b);C(null!=b,"new node is null");v(d)&&(b.textContent=d.replace(/^\[[\sxX]?\]/,""));return{node:b,fb:!0}};a.F=function(a){C(!0===a,"typebehind.list only accepts true as opt")}};function eg(){this.name="typebehind-horizontalrule-"+rb();this.ab=function(){return"horizontalrule"};this.D=function(){return[/^\s*[\*\-\=]{3}[\s\*\-\=]*/gi]};this.N=function(a,c){return 13==c};this.Zb=function(){return!0};this.J=function(a){var c=M("hr");a.insertNode(c);return{node:c,fb:!1}};this.F=function(a){C(!0===a,"typebehind.horizontalrule only accepts true as opt")}};function fg(a,c){this.name="typebehind-code-"+rb();this.ab=function(){return"code"};this.D=function(){return[/\`{3}/gi]};this.Zb=function(){return!1};this.N=function(a){var c=Oa(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.U("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(uc());var d=c.na(a.C().startContainer);d.parentNode.insertBefore(b,d);sd(rd(b.firstChild,0));return{node:null,fb:!0}};this.F=function(a){C(!0===a,"typebehind.code only accepts true as opt")}};function gg(a){var c=this;c.name="typebehind-table-"+rb();c.ab=function(){return"table"};c.D=function(){return[/^\s*(\[\s*\]){2,}([xX][0-9]+)?/gi]};c.Zb=function(){return!0};c.N=function(a){return null!=P(a.startContainer,"table,li")?!1:!0};c.J=function(b,d,e){c.D();b=e.split("][").length;e=e.match(/[0-9]+$/);d=1;e&&(d=parseInt(e[0],10));a.U("inserttable").action(b+","+d);a.ya();return{node:null,fb:!1}};c.F=function(a){C(!0===a,"typebehind.table only accepts true as opt")}};function hg(a){function c(){var a=W();null!==a&&null!==a.startContainer&&(a=P(a.startContainer,".en-phone"),null!==a&&a.setAttribute("href","tel:"+a.textContent))}function b(a){var b=M("a",{"class":"en-phone","text-decoration":"underline"});b.textContent=a;b.setAttribute("href","tel:"+a);return b}function d(a,c){var e="string"===typeof a?new RegExp(a,"g"):a;$b(c).forEach(function(c){I(c)&&-1==="html,head,style,title,link,meta,script,object,iframe,".indexOf(c.nodeName.toLowerCase()+",")&&d(a,c);if(xc(c)&&
c.textContent.match(e)){for(var f,h=[];f=e.exec(c.textContent);)f[0].length?(f=rd(c,f.index,c,f.index+f[0].length),h.push(f)):e.lastIndex++;for(;0<h.length;)f=h.pop(),c=b(f.extractContents().textContent),f.insertNode(c)}})}var e=this;e.name="typebehind-phone-"+rb();var f=/(?:(?:(?:[\\+]|\b)[0-9]{2,3}[\ -]?)?((?:(?:(?:\([0-9\ ]+\))(?:[\ -]?[0-9]{2,7})+(?:[\ -][0-9]{2,7})*))|(?:(?:[0-9]{3,7})(?:(?:[\ -][0-9]{3,7})+|(?:[\ -][0-9]{2,7}){2,}))|(?:[\\+]?(\b(?:[0-9]{7,15})(?!(?:\.[\d]+)))))\b)/g;e.J=function(a,
c,d){c=b(d);a.insertNode(c);C(null!=c,"new node is null");return{node:c,fb:!1}};e.ab=function(){return"phone"};e.D=function(){return[]};e.Ja=function(a){d(f,a)};e.Fa=function(a){V("a.en-phone",a).forEach(function(a){for(;a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);H(a)})};e.F=function(b){C(!0===b,"typebehind.phone only accepts true as opt");e.B.ha(a.root,"anyInput",c)}};function ig(){var a=this;a.name="typebehind";a.F=function(c){function b(){var a=W(n);if(a&&a.collapsed){var b=a.endContainer,c=null;if(!(r.get("code")&&(E(a.startContainer,"en-code")||P(a.startContainer,".en-code"))||r.get("inline")&&xc(a.endContainer)&&"tt"===K(a.endContainer.parentNode)||"a"===K(b)||b&&"a"===K(b.parentNode))){var f=r.Ba.slice();0<=f.indexOf("inline")&&f.splice(f.indexOf("inline"),1);if(32===p.currentlyProcessingCode)c=b.textContent.substring(0,a.endOffset);else if(9===p.currentlyProcessingCode)b=
bc(b),xc(b)&&(c=b.textContent,a=rd(b,c.length,b,c.length));else if(13===p.currentlyProcessingCode){b=vc(b);b===a.endContainer.parentNode&&(b=vc(b));if("a"===K(b)||b&&"a"===K(b.parentNode))return;xc(b)&&(c=b.textContent,a=rd(b,c.length,b,c.length))}else{b=a.endContainer;for(f=vc(b);Ic(f)&&"tt"!==K(f)&&null==P(f,"tt",n);)b=f,f=vc(b);a=rd(b,0,a.endContainer,a.endOffset);c=a.toString();f=["inline"]}var k=!1;if(0<u.length)for(var h=0;h<u.length;h++){var g=u[h];if(0<=f.indexOf(g)){k=!0;break}}b=k&&ac(b,
n);if(null!=c)for(h=0;h<f.length;h++){var g=f[h],m=r.get(g);if(!(!m.sa||m.N&&!m.N(a,p.currentlyProcessingCode)||m.Zb&&m.Zb()&&!b)){var t=m.R&&!0,g=m.D(),q=d(c,g,t);if(q.possible){l.Xa(function(){var b;b=m;var d=a,f=q.rx,k=c,l=t,h=d.endContainer;C(xc(h),"typebehind: node must be text");C(null!=f,"must be given a regex to work");l?b=b.J(d,f,k):(k=e(k,f,l),d=k.matchString,k=k.index,h.replaceData(k,d.length,""),h=rd(h,k,h,k),b=b.J(h,f,d));null!=b.node&&(f=b.node,32===p.currentlyProcessingCode?sd(rd(f.nextSibling,
1)):9===p.currentlyProcessingCode&&sd(rd(f.nextSibling,5)));b.fb&&(f=W(),f.startContainer&&xc(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),sd(rd(b,f,b,f)))});break}}}}}}function d(a,b,c){if(null==a||!v(a)||null==b)return{possible:!1,rx:null};for(var d=0;d<b.length;d++)if(e(a,b[d],c))return{possible:!0,rx:b[d]};return{possible:!1,rx:null}}function e(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&&w.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 p.shouldProcess=!0,p.currentlyProcessingCode=b,!0})}var g=a.H("context"),h=a.H("query"),m=a.H("format"),k=D(c,{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,
todo:!1,horizontalrule:!1,code:!1,table:!1,phone:!1}),l=a.H("undo"),n=g.root,t=a.qa(),r=new ub;r.set("emoticon",new $f);r.set("url",new ag);r.set("email",new Zf);r.set("list",new bg(g));r.set("inline",new cg(g,m));r.set("todo",new dg);r.set("horizontalrule",new eg);r.set("code",new fg(g,h));r.set("table",new gg(g));r.set("phone",new hg(g));var u=[];r.Ba.forEach(function(a){var b=r.get(a),c=b.ab(),d=k[c];null!=d&&!1!==d&&(t.F(b,k[c]),b.Zb&&b.Zb()&&u.push(a))});var p={shouldProcess:!1,currentlyProcessingCode:null},
q=[9,13,32];for(c=0;c<ya.length;c++)q.push(ya[c].charCodeAt(0));a.B.listener(n,"keypress",f);a.B.I("editingKeyEventOccurred",f);a.B.listener(n,"keyup",function(){p.shouldProcess&&(p.shouldProcess=!1,b())});a.Ja=function(a,b){r.Ba.forEach(function(c){c=r.get(c);var d=k[c.ab()];null!=d&&!1!==d&&null!=c.Ja&&c.Ja(a,b)})};a.Fa=function(a,b){r.Ba.forEach(function(c){c=r.get(c);var d=k[c.ab()];null!=d&&!1!==d&&null!=c.Fa&&c.Fa(a,b)})}}};function jg(){var a=this;a.name="enml";var c=/^<!DOCTYPE[^>]*>\n?/g,b=/ +xmlns="(http:\/\/www.w3.org\/1999\/xhtml)?"/g,d=/<en-todo([^>]*?)><\/en-todo>/g,e=/<en-media([^>]*?)><\/en-media>/g,f=/<en-(todo|media)([^>]*?)\/>/g,g=/<(?!\/|area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)([^>]*?)\/>/g;a.F=function(h){function m(b,c){var d=c?b.documentElement:b.body&&b.body.firstElementChild;null==d&&(d=b.querySelector("en-note"));if(null==d)return w.error("Was not able to extract corrrect node",
b),!1;if("en-note"!==K(d))return w.error("Invalid ENML. Expected en-note root node.",d),!1;ka.forEach(function(a){d.hasAttribute(a)?k.setAttribute(a,d.getAttribute(a)):k.removeAttribute(a)});var e=k.ownerDocument.importNode(d,!0);a.H("transform").zb(e,1);oc(e,k);Y(k,"setDirty",!1);return!0}var k=D(h,{root:null}).root||a.H("context").root,l=!1;a.Xc=function(a){a=a.replace(f,"<en-$1$2></en-$1>");a=a.replace(g,"<$1$2></$1>");var b=new DOMParser,c=null;l||(c=b.parseFromString(a,"text/html"));if(l||null==
c)l=!0,c=document.implementation.createHTMLDocument(""),a=a.replace(/(\s*<\?xml.*?\?>\s*|\s*<!DOCTYPE[^>]*?>\s*)*/gi,""),c.body.innerHTML=a;return null==c?(w.error("Was not able to parse",a),!1):m(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=m(b,!0));null!=c&&c(a)});d.open("GET",b);d.send()};
a.vd=function(f){var l=D(f,{crypto:null,contentElement:k}),h=l.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 g=f.documentElement;if(h.hasAttributes())for(var m=0;m<h.attributes.length;m++)-1!==ka.indexOf(h.attributes[m].name.toLowerCase())&&g.setAttribute(h.attributes[m].name.toLowerCase(),h.attributes[m].value);Y(k,"beforeGetContent");m=f.importNode(h,
!0);null!=m&&gc(m,g);a.H("transform").fd(g,1,l);a.kb.K().forEach(function(a){"transform"!==a.name&&a.Fa&&a.Fa(g,1,l)});h=g.querySelectorAll("*[id],*[class],*[data-en-overlay-id]");for(m=h.length-1;0<=m;m--){var q=h[m];q.removeAttribute("id");q.removeAttribute("class");q.removeAttribute("data");Oa(q.attributes).forEach(function(a){0===a.name.indexOf("data-")&&q.removeAttribute(a.name)})}f=(new XMLSerializer).serializeToString(f);return ic($a(f).replace(c,'<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">').replace(b,
"").replace(d,"<en-todo$1 />").replace(e,"<en-media$1 />"))};a.B.A({name:"enml",action:function(b){var c=Db(b);if(c.url)a.D(c.url,function(a,b){a?Bb("contentInjected"):w.error("Loading from "+c.url+" did fail: "+b)});else{if(!a.Xc(b))return!1;(b=a.ia("undo"))&&b.clear()}return!0},value:function(b){return a.vd(Db(b))},enabled:y})}};function kg(){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-richlink-placeholder):not(.en-object-placeholder)")){var b=a.target,c={};c.src=b.getAttribute("src")||"";c.name=b.getAttribute("name")||"";b=c||{};b.tagname="img";Ge("clicked",b);a.metaKey||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-richlink-placeholder):not(.en-object-placeholder)")){var b=
{};b.src=a.target.getAttribute("src")||"";b.name=a.target.getAttribute("name")||"";b=b||{};b.tagname="img";Ge("doubleClicked",b);a.preventDefault()}})}var c=this;c.name="img";var b;c.F=function(d){!0===d.imageClickEvents&&(b=c.H("context").root,a())}};function lg(){function a(a){null!=a&&a!=={}&&(g=a);U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)",f).forEach(function(a){!0===a.complete?c(a):d.B.listener(a,"load",function(){c(a)})})}function c(a){d.Me(a);var c=b(a),e=c.width,c=c.height;null==e&&null==c?a.style.height="auto":null!=e&&null!=c&&Math.round(a.naturalHeight/a.naturalWidth*10)===Math.round(c/e*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 d=this;d.name="img-dpi";var e,f,g=null;d.Ke=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};d.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};d.Me=function(a){var c=a.naturalWidth,e=d.Ke(a),f=a.naturalHeight,g=d.D(a),t=b(a);null==t.height&&null==t.width&&(c!==e&&T(a,"width",e+"px"),f!==g&&T(a,"height",g+"px"))};d.F=function(b){e=d.H("context");f=e.root;a(b.images);d.B.A({name:"images",action:function(b){null==
b||ea(b)&&0===Object.keys(b).length||""===b?b=null:b=Db(b);a(b);return!0},enabled:y})}};function mg(){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="";v(a)&&(-1<a.indexOf("+")||-1<a.indexOf("-"))&&(c=a[0],a=a.slice(1));a=he(a,"px","px");var k=null;if(a&&0<a.value){if(""===c)return k=a.Ob,f("fontsize",k),!0;var l=e(a.Nc);if(""!==l&&("+"===c?k=(parseInt(l,10)+a.value).toString()+a.Nc:"-"===c&&(k=(parseInt(l,10)-a.value).toString()+a.Nc),k))return b(k)}return!1}
function e(a,b){a||(a="px");if(!b){var c=g.C();if(!c)return"";var d=null;c.collapsed||(d=m.Bb(c,h.va));null===d&&(d=c.startContainer);b=m.M(d,"fontsize")}return(c=he(b,a))&&c.value?c.value.toString():"0"}function f(a,b){m.Gd(a,b)}var g=c.H("context"),h=c.H("query"),m=c.H("format"),k=c.H("block"),l=c.H("editor"),n=g.root,t=g.Da;c.H("textinput");var r=new Ca,u=null;c.B.ha(n,"beforeInput",function(a){g.Va();u=m.wd();null!=u&&0===u.length&&(u=null);r.A("before input",u,a)},1E3);c.B.ha(n,"input",function(a){r.A("en.define.MESSAGE.TEXT_INPUT",
u,"info",a);a=rd(a.Nb.Pa,a.Nb.offset,a.Ia.endContainer,a.Ia.endOffset);r.A("Changed range",Sa(a));a:{var b=!c.H("textinput").Pe();if(null!=u&&b&&(b=u,u=null,a&&!1===a.collapsed)){g.Ea(a);r.A("Applied pending to range",Sa(b));m.Cb(b);a=!0;break a}a=!1}a&&(a=g.C(),a.collapse(!1),g.Ea(a),g.ya(!1,!1))},-1E3);t.bold={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("bold"):+a;f("bold",a?"bold":"normal");return!0},Ra:["bold","600","700","800","900"],Ua:"fontWeight",Lb:function(a,b){return a==
b||"bold"==a&&"700"==b||"700"==a&&"bold"==b||"normal"==a&&"400"==b||"400"==a&&"normal"==b}};t.italic={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("italic"):+a;f("italic",a?"italic":"normal");return!0},Ra:["italic","oblique"],Ua:"fontStyle"};t.underline={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("underline"):+a;f("underline",a?"underline":null);return!0},Ra:["underline"]};t.strikethrough={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("strikethrough"):
+a;f("strikethrough",a?"line-through":null);return!0},Ra:["line-through"]};t.tt={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("tt"):+a;f("tt",a?"tt":null);return!0},Ra:["tt"]};t.fontname={P:!0,Ta:!0,action:function(a){f("fontname",a);return!0},value:function(){var b=g.C();if(!b)return"";var c=null;b.collapsed||(c=m.Bb(b,h.va));null===c&&(c=b.startContainer);b=m.M(c,"fontname");return a(b)||""},Ua:"fontFamily",Lb:function(b,c){return a(b)===a(c)}};t.fontsize={P:!0,Ta:!0,action:function(a){return b(a)},
hb:function(){return 2<=m.oa(g.C(),h.va).map(function(a){return m.M(a,"fontsize")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},value:function(a,b){return e(a,b)},Ua:"fontSize",Lb:function(a,b){if(a===b)return!0;var c=a;0<a.indexOf("pt")?c=he(a,"px").Ob:0>a.indexOf("p")&&(c=a+"px");var d=b;0<b.indexOf("pt")?d=he(b,"px").Ob:0>b.indexOf("p")&&(d=b+"px");return c===d}};t.forecolor={P:!0,Ta:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&
!ae(a)&&"transparent"!=a.toLowerCase())return!1;f("forecolor",a);Bb("foreColorChanged",{color:a});return!0},Gf:!0,Ua:"color",Lb:function(a,b){return $d(a)===$d(b)}};t.backcolor={P:!0,Ta:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!ae(a)&&"transparent"!=a.toLowerCase())return!1;f("backcolor",a);return!0},hb:function(){return 2<=m.oa(g.C(),function(a){return h.L(a)&&3===a.nodeType}).map(function(a){return m.M(a,"backcolor")}).filter(function(a,
b,c){return-1==c.slice(0,b).indexOf(a)}).length},Gf:!0,Ua:"backgroundColor",Lb:function(a,b){return $d(a)===$d(b)}};t.highlight={P:!0,Ta:!0,action:function(a){a=null==a?!l.queryCommandState("highlight"):+a;f("highlight",a?"rgb(255, 250, 165)":null);return!0},Ra:["rgb(255, 250, 165)","rgb(255, 204, 102)","rgb(246, 238, 150)"],Ua:"backgroundColor",Lb:function(a,b){return $d(a)===$d(b)}};var p="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(" ");
t.removeformat={P:!0,Ta:!0,action:function(){function a(b){return h.L(b)&&-1<p.indexOf(K(b))}m.oa(g.C(),a).forEach(function(a){for(;a.hasChildNodes();)g.K(a.firstChild,a.parentNode,J(a));a.parentNode.removeChild(a)});if(h.L(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.T(c,0,c,b)}else g.Ec(g.C().startContainer.splitText(g.C().startOffset),
0);h.L(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.Dc(document.documentElement,0),b[0].splitText(b[1]),g.T(c[0],c[1],b[0],b[1]));m.oa(g.C(),h.L).forEach(function(b){for(;a(b.parentNode)&&h.S(b.parentNode,b);)k.ba([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){t[a]={P:!0,Ta:!0,action:function(b){b=null==b?!l.queryCommandState(a):+b;f(a,null);b&&f(a,a);return!0},hb:function(){var b=m.oa(g.C(),h.va);return b.some(function(b){return m.M(b,a)==a})&&b.some(function(b){return m.M(b,a)!=a})||b.some(function(b){return"mixed"==m.M(b,a)})},Ra:[a]}});if(!0===Hd.rte.highlightMagic)try{var q=null;c.B.listener(g.root,"mousedown",function(){q=oe(g.root)});c.B.listener(document,"mouseup",function(a){var b=
W(g.root);b&&!b.collapsed&&q!==oe(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){w.error("Exception in <$>:",A.toString)}}};function ng(){var a=this;a.name="io";a.F=function(){function c(a){a=!1!==a;!1===a&&(h=e.innerHTML);f===a||!0===a&&h===e.innerHTML||(f=a,!1===f&&d.flush())}var b=a.H("context"),d=a.H("undo"),e=b.root,b=!1!==Hd.rte.cryptLegacy,f=!1,g,h=null;a.dc=function(){return f};a.B.ha(e,"setDirty",function(b){c(!1!==b);g=a.B.timeout(function(){f&&Ie("content")},1E3,g)},1);b&&(a.J=function(b){var d=D(b,{html:!1,cleanup:!1,stripNS:!1,trim:!0,titleString:null,withInsertionPoint:!1,hiddenCryptoData:null,wrap:!1,resetChangesState:!1,
value:"",type:""});d.resetChangesState&&c(!1);if("enml"===(d.type||d.value||""))return a.H("enml").vd({crypto:d.hiddenCryptoData});var f=b=null,h=d.withInsertionPoint;Y(e,"beforeGetContent");var g=e,r=oe(g);if(d.cleanup||h)g=e.cloneNode(!0);!1!==Hd.rte.cryptLegacy&&U("div.en-crypt-revealed,div.en-crypto-revealed",g).forEach(function(a){var b=a.id;0===b.indexOf("en-revealed-crypto:")?d.hiddenCryptoData&&d.hiddenCryptoData[b]?ec(a,M("embed",{type:"evernote/x-crypto",id:d.hiddenCryptoData[b]})):w.error("Found revealed crypto but not replacement. Key:",
b):w.error("Unsupported revealed crypto element with ID:",b)});d.cleanup&&f&&h&&(f.insertNode(Bf()),h=!1);h&&r&&(f=ne(g,r))&&f.insertNode(Bf());d.cleanup&&a.H("transform").fd(g,2);d.stripNS?b=pb(g.outerHTML):b=g.innerHTML;d.trim&&(b=b.trim());b=$a(b);d.html?b="<html><head><title></title></head><body>"+b+"</body></html>":d.wrap&&(b=Df(g,b));return b});a.D=function(b,c){c&&d.flush();var f=M("div",{},b),f=a.H("transform").zb(f,2,{ee:!0});oc(f,e);c?d.flush():d.clear();Y(e,"setDirty",!1)};b?a.B.A({name:"content",
action:function(b){b=Db(b);null!=b.value&&(Na("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});mb(b.resources)||a.H("resource").zd(b.resources);null!=b.placeholder&&e.setAttribute("data-en-placeholder",b.placeholder);"enml"===b.type?a.H("enml").Xc(b.content||""):a.D(b.content||"",!0===b.undoable);!0===b.scrollToTop&&id(0,0);Bb("contentInjected");return!0},
value:function(b){return a.J(Db(b))},enabled:y}):a.B.A({name:"content",action:function(b){var c=Db(b);if(null==b)return w.error("To set content at least provide {value:}"),!1;c=D(c,{type:"enml",content:null,placeholder:null,scrollToTop:!0,resources:null,undoable:!1});mb(c.resources)||a.H("resource").zd(c.resources);null!=c.placeholder&&e.setAttribute("data-en-placeholder",c.placeholder);"enml"===c.type?a.H("enml").Xc(c.content||""):a.D(c.content||"",!0===c.undoable);!0===c.scrollToTop&&id(0,0);Bb("contentInjected");
return!0},value:function(b){b=Db(b);b=D(b,{type:"enml",cryptInfo:null,withInsertionPoint:!1,resetChangesState:!1});var d=a.H("crypt"),f=b.cryptInfo;if(f&&f.length)for(var h=0;h<f.length;h++)d.af(f[h]);Y(e,"beforeGetContent");if((f=d.Vf())&&0<f.length)return{success:!1,cryptInfo:f};if("enml"===b.type||"enex"===b.type)return d=a.H("enml").vd({}),"enex"===b.type&&(f=Z.queryCommandValue("title.content"),d='<?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">'+d+"]]\x3e</note></content>"),b.resetChangesState&&c(!1),{success:null!=d,value:d,type:b.type};f=oe(e);h=e.cloneNode(!0);f&&b.withInsertionPoint&&(d=ne(h,f))&&d.insertNode(Bf());a.H("transform").fd(h,2);d="plain"===b.type?tc(h):lc()?pb(h.outerHTML):h.innerHTML;null!=d&&(d=d.trim(),d=$a(d),"plain"!==
b.type&&(d=Df(h,d)),b.resetChangesState&&c(!1));return{success:null!=d,value:d,selectionPath:f,type:b.type?b.type:"html"}},enabled:y});a.B.A({name:"changes",action:function(a){c(Cb(a));return!0},state:function(){return f},enabled:y,Wb:!0})}};function og(){var a=this;a.name="link";a.F=function(){function c(b,c){if(!b||!a.H("edit").O({Zc:!1}))return!1;if(!g.L(c.startContainer)&&!g.Ka(c.startContainer))return!0;g.A(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);f.T(b.parentNode,1+J(b));var d=a.kb.O();d&&d.df([b]);return!0}function b(){var a=f.C();a||(a=rd(),a.selectNodeContents(m),a.collapse(!1),f.Ea(a),
f.ya());return f.C()}function d(){if(!f.C()||!f.C().startContainer)return null;var a=window.getSelection().toString();return ob(a)?a:null}function e(){if(!f.C()||!f.C().startContainer)return null;var a=P(f.C().startContainer,"a[href]",f.root);return a?a.href:null}var f=a.H("context"),g=a.H("query"),h=a.H("format");a.H("edit");var m=f.root,k=f.Da;a.Gg=function(){return U("a[href]",f.root)};k.createlink={P:!0,action:function(a){w.log("CREATE LINK CALLED!");if(!a)return!1;var d={};"{"===a[0]?d=D(a,{url:null,
title:null}):(d.url=a,d.title=a);d.url=zf(d.url);a=b();if(a.collapsed){var e=M("a",{href:zf(d.url)});e.textContent=d.title;return c(e,a)}h.oa(f.C()).forEach(function(a){g.jb(a).forEach(function(a){g.L(a)&&R(a,"a")&&a.hasAttribute("href")&&(a.setAttribute("href",d.url),d.title&&(a.textContent=d.title))})});h.Gd("createlink",d.url);return!0},value:function(){return e()||d()||""},state:function(){return!!e()||!!d()}};k.unlink={P:!0,action:function(){var a,b=f.C(),c=[];for(a=b.startContainer;a;a=a.parentNode)R(a,
"a")&&a.hasAttribute("href")&&c.unshift(a);for(a=b.startContainer;a!=g.xa(b.endContainer);a=g.nextNode(a))R(a,"a")&&a.hasAttribute("href")&&(g.nd(a,b)||yc(b.endContainer,a)||a==b.endContainer)&&c.push(a);for(a=0;a<c.length;a++)h.fe(c[a],"unlink");return!0},value:function(){return e()||""},state:function(){return!!e()}};a.Ja=function(a){V("*[href]",a).forEach(function(a){var b=a.getAttribute("href"),c=zf(b);b!==c&&(w.info("Sanitized link:",c),a.setAttribute("href",c))});V("*[src]",a).forEach(function(a){var b=
a.getAttribute("src"),c=zf(b);b!==c&&a.setAttribute("src",c)})};a.Fa=function(){}}};function pg(){var a=this;a.name="misc";a.F=function(){var c=a.H("context"),b=a.H("normalize"),d=c.Da;d.normalize={Sa:!0,action:function(a){if(!a||"all"===a)return b.mc(),!0;if(!c.C())return w.warn("Command normalize called without selection. Value:",a),!1;if("start"===a)return b.Gb(),!0;if("end"===a)return b.Ue(),!0;if("selection"===a)return b.$b(),!0;if("edges"===a)return b.Be(),!0;w.warn("Command normalize called with unknown value:",a);return!1},enabled:y};d.zoomscale={Sa:!0,action:function(a){var b=
parseFloat(a);if(0<b&&10>b){if(a=document.querySelector("#en-note"))a.style.zoom=b,fb(a.querySelectorAll("embed,object"),function(a){a.style.zoom=1/b});return!0}w.warn("Command zoomscale called with invalid value:",a);return!1},value:function(){return Ec(document.querySelector("#en-note"))},enabled:y}};a.Ja=function(a,b){if(1===b||2==b){var d=a.querySelector('*[title="CommonEditorBuild"]');null!=d&&(d.textContent=ia().toString(),d=a.querySelector('*[title="CommonEditorDate"]'),null!=d&&(d.textContent=
ja().toString()))}}};function qg(){function a(a){this.za=sb(c.name);this.info={title:"Unknown",mime:"application/octet-stream",hash:"",filename:"",filesize:"",downloaded:"",progress:0,overlayColor:"white",overlayOpacity:"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.K=!1;this.M(a);this.S=function(a){a.preventDefault()}}var c=this;c.name="resource";var b=null,d="img.en-media",d=d+",embed";a.prototype.D=function(a){return 1===a?this.W():this.Z()};a.prototype.I=function(){this.A||(this.A=this.$(),this.update());return this.A};a.prototype.Z=function(){var a=hb({},this.info.attrs||{}),b;a["data-en-resource-reference"]=this.info.reference;a.src=this.info.url;a.id=this.info.hash;this.ic?(b="img",a["class"]="en-media"):(b="object",a["class"]="en-attachment en-media");
return M(b,a)};a.prototype.W=function(){var a=hb({},this.info.attrs||{}),b={type:this.info.mime,hash:this.info.hash};delete a.src;delete a["class"];delete a.id;delete a["data-en-resource-reference"];hb(b,a,!0);return M("en-media",b)};a.prototype.$=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,d={src:this.info.url,"class":"en-media"},m=hb({},this.info.attrs||{});delete m.hash;delete m.type;var k="en-media:"+
this.info.mime+":"+this.info.hash;b?d.id=k+":"+(m.width||"none")+":"+(m.height||"none"):(this.O?(d.type=a,d.border="1"):d.type=c?"evernote/x-pdf":"evernote/x-attachment",d.id=k);hb(d,m,!0);a=M(this.ic?"img":"embed",d);a.setAttribute("data-en-resource-reference",this.za);Vc(a,"height");return a};a.prototype.pa=function(){return this.I()};a.prototype.M=function(a){a&&(C(eb(a)||eb(this.info),"Info param must be dictionary."),this.info=hb(this.info,a),this.info.url||(this.info.url="?hash="+this.info.hash),
this.info.mime=this.info.mime.toLowerCase(),this.ic=(this.O="application/vnd.evernote.ink"===this.info.mime)||-1!==this.info.mime.indexOf("image/"))};a.prototype.update=function(a){var b=this.info,d=c.H("layer"),h=!(!a||["hash","url","mime","width","height"].every(function(c){return!a.hasOwnProperty(c)||b[c]===a[c]}));this.M(a);if(!this.A)return h;for(var m=d.Ga(this.A),k=0;k<m.length;k++)Q(m[k],".en-resource-overlay")&&d.detach(m[k]);0<this.info.overlayOpacity&&1>=this.info.overlayOpacity&&(m=this.info.overlayColor||
"white",d=d.Za(this.A,"cover"),F(d,"en-resource-overlay"),this.ic?F(d,"image-resource"):F(d,"misc-resource"),T(d,"background",m),T(d,"opacity",this.info.overlayOpacity));this.ba&&this.ba.setAttribute("src",this.info.thumbnailURL);this.ca&&(this.ca.textContent=this.info.filename);this.ga&&(this.ga.textContent="loading"===this.info.state&&this.info.downloaded?this.info.downloaded+" / "+this.info.filesize:this.info.filesize);this.ea&&(this.ea.textContent=this.info.title);this.J&&this.J.setAttribute("src",
this.info.contextURL);this.aa&&this.aa.setAttribute("src",this.info.defaultActionURL);return h};a.prototype.ia=function(){return{hash:this.info.hash,url:this.info.url,mime:this.info.mime,rect:N(this.pa()),reference:this.za,selected:this.K}};c.F=function(e){function f(a){var b=P(a.target,"a[href]");Me(this.info.url,"resource",{hash:this.info.hash,mime:this.info.mime,reference:this.za,anchorHref:b?b.getAttribute("href"):void 0,action:"open",eventType:a.type||""});a.preventDefault()}function g(a){var b=
{},c;for(c in p){var d=p[c],e=b[d.info[a]];e||(b[d.info[a]]=e=[]);e.push(d)}return b}function h(a){A||(A=g("url"));return A[a]||[]}function m(a){q||(q=g("hash"));return q[a]||[]}function k(a){var b=I(a)?a.getAttribute("data-en-resource-reference"):a.reference,c=null;b&&(c=p[b]);c||(c=n(a));return c}function l(a){var b=c.H("paste");a=a.pa();b.insertNode(a);Gd(a)}function n(b){var c,d,e,k,l,h,g;b instanceof HTMLElement?("en-media"===K(b)?(c=b.getAttribute("hash"),d=b.getAttribute("type"),k=b.getAttribute("width"),
l=b.getAttribute("height"),g=b.getAttribute("filename")):(d=b.getAttribute("id"),C(!!d,"ID for non image resources is mandatory!"),c=d.split(":"),d=c[1],c=c[2],h=b.getAttribute("src")),b.getAttribute("x-evernote-mime"),e=u[c]||u[c.toLowerCase()]||u[c.toUpperCase()]||{},e.hash||(e.hash=c),!e.mime&&d&&(e.mime=d),"string"===typeof k&&(e.width=k),"string"===typeof l&&(e.height=l),"string"===typeof h&&(e.url=h),"string"===typeof g&&(e.filename=g),e.attrs=rc(b)):eb(b)&&(e=b);C(e&&e.hash,"Info data or hash inside is missing to create a resource element.");
b=new a(e);p[b.za]=b;b.S=f;return b}var t=c.H("context");b=t.root;var r=t.Da,u=e.resources||{},p={},q=null,A=null;c.zd=function(a){A=q=null;if(ca(a)){var b=a;a={};for(var c=0;c<b.length;c++){var d=b[c];a[d.id]=d}}C(eb(a),"Expected dict for resourceInfoDefaults",a);hb(u,a)};c.qe=function(a){var c=window.getSelection();return U(d,a?a:b).map(function(a){var b=k(a);b.K=c&&!c.isCollapsed&&c.containsNode(a,!1);return b.ia()})||[]};r.resources={P:!0,Sa:!0,action:function(a){if(a=Eb(a)){var d=!1,e=!1,f=function(a){a&&
(a=a.pa(),H(a))};a.forEach(function(a){var c;if("update"===a.action||"delete"===a.action)if(d=!0,a.reference){if(c=k(a))if("delete"===a.action)f(c),e=!0;else if(c.info.hash!==a.hash){var g=n(a);ec(c.pa(),g.pa());e=!0}else c.update(a)&&(e=!0)}else a.originalURL?"update"===a.action?V("img:not(.en-media)",b).forEach(function(b){if(b.getAttribute("src")===a.originalURL){var c=n(a);ec(b,c.pa())}}):h(a.originalURL).forEach(function(a){f(a)}):m(a.hash).forEach(function(b){"delete"===a.action?(f(b),e=!0):
b.update(a)&&(e=!0)});else if("insert"===a.action){if(t.$a())return!1;t.hasFocus()||Z.execCommand("content.focus");var r=a.beforeRef||a.afterRef;c=null==a.afterRef?0:1;g=null;r&&(r=p[r])&&(g=r.pa());g?t.T(g.parentNode,J(g)+c):t.Va();t.xg();l(n(a));d=e=!0}});e&&Y(b,"setDirty");d&&c.B.timeout(function(){c.H("layer").wa()})}return!0},value:function(){return c.qe(b)},enabled:y};c.Ja=function(a,b){var c;if(1===b)for(var d=a.getElementsByTagName("en-media"),e=d.length-1;0<=e;e--){var f=d[e];c=n(f);C(!!c,
"Failed to create resource for",f);ec(f,c.pa())}else V('embed[id^="en-media:"],img[id^="en-media:"]',a).forEach(function(a){c=n(a);ec(a,c.pa())})};c.Fa=function(a,b){1===b?V(d,a).forEach(function(a){var c=k(a);if(c&&(c=c.D(b))){c.removeAttribute("x-evernote-mime");ec(a,c);return}H(a)}):V('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 rg(){function a(a){t.call(this,a)}function c(a){t.call(this,a)}function b(a){t.call(this,a)}function d(a){t.call(this,a)}function e(a){t.call(this,a)}function f(a){t.call(this,a)}function g(a){t.call(this,a)}function h(a){t.call(this,a)}function m(a){a.xf=!0;t.call(this,a)}function k(a){t.call(this,a)}function l(a){t.call(this,a)}function n(a){t.call(this,a)}function t(a){if(!(this instanceof t))return new t(a);this.A=a;this.F()}function r(a){var b=Uc(a.kf,"-evernote-context-name");b&&(T(a.Af,
"-evernote-context-name",b),a.Af.textContent=a.G.jc[b+"-label"]||b)}function u(a,b){a.kf=p(a.Pa,"context");a.Af=p(a.le,"context");var c=a.kf,d=Uc(c,"-evernote-context-name");F(c,"en-editable-context");var e;dc(c);c.appendChild(e=M("span"));e.textContent=a.G.jc[d+"-label"]||d;for(var f=[],k=0;k<b.length;k++){var l=b[k],h=M("option",{value:l},[a.G.jc[l+"-label"]||l]);l===d&&h.setAttribute("selected","selected");f.push(h)}var g=M("select",{"class":"en-editable-select-context",tabindex:"-1"},f);c.insertBefore(g,
null);x.B.listener(g,"change",function(){var b=g.value;T(c,"-evernote-context-name",b);e.textContent=a.G.jc[b+"-label"]||b;if(a.G.Tc instanceof Object)try{var d=a.G.Tc[a.name];d&&d(a)}catch(f){w.error("Exception on onDidChangeActions (2)",f.toString())}a.G.Xd=a.name;X=!0});c.parentElement.style.textDecoration="none"}function p(a,b){for(var c=Oa(a.querySelectorAll("*[style*='x-evernote:']")),d=0;d<c.length;d++){var e=c[d];if(Uc(e,"x-evernote")===b)return e}return null}function q(a){var b=a.node;F(b,
"en-editable");F(b,"en-editable-"+a.type);F(b,("en-"+a.G.Jc+"-"+a.name).toLowerCase());b.setAttribute("title",(a.G.jc[a.name+"-placeholder-title"]||"...")+"\u00a0\u00a0\u00a0");Nc(b,!0);z(a);a.G.ze&&b.removeAttribute("style");var c=null;x.B.listener(b,"focus",function(){c=a.object.I();x.B.timeout(function(){window.getSelection().selectAllChildren(b)})});x.B.listener(b,"input",function(){X=!0});x.B.listener(b,"blur",function(){vd();z(a);var b=!1;if(a.G.Tc instanceof Object)try{var d=a.G.Tc[a.name];
d&&d(a)&&(b=!0)}catch(e){w.error("Exception on onDidChangeActions (1)",e.toString())}d=a.object.I();if(b||c!==d)a.G.Xd=a.name,X=!0});x.B.listener(b,"keydown",function(c){var d=!1;13===c.keyCode?a.xf||(b.blur(),d=!0):8===c.keyCode&&(document.execCommand("delete"),d=!0);return d?Pd(c):!1})}function A(a,b){var c=tc(a).trim();lb(c)?c="\u00a0":b?(c=c.split("\n"),c=c.map(function(a){return lb(a)?"<div><br/></div>":"<div>"+qb(a)+"</div>"}),c=c.join("")):c=qb(c.replace(/\n/g," "));return c}function z(a){C(!!a,
"We need field info");C(!!a.node,"We need an element to work on");var b=a.node;b.innerHTML=A(b,a.xf);lb(b.textContent)?F(b,"en-editable-placeholder"):G(b,"en-editable-placeholder");a.Xb=b.innerHTML}var x=this,B=null;C(this instanceof rg,"Use `new` to instantiate this class");x.name="template";var L=!0,X=!1;t.prototype.F=function(){};t.prototype.I=function(){return this.A.node.innerHTML};t.prototype.bd=function(a){var b=this.I();this.A.Uc.innerHTML=b;a&&this.A.G.Xd===this.A.name&&this.A.Uc.insertBefore(Bf(),
null)};ga(n,t);ga(l,t);l.prototype.I=function(){return A(this.A.node)};ga(k,t);k.prototype.F=function(){q(this.A)};k.prototype.I=function(){return A(this.A.node)};ga(m,k);m.prototype.I=function(){try{return A(this.A.node,!0)}catch(a){w.error("getHTML 'PlainTextArea.prototype.getHTML' failed ",a)}return null};ga(h,t);h.prototype.F=function(){this.A.node=p(this.A.Pa,"value");this.A.Uc=p(this.A.le,"value");C(!!this.A.node,"x-evernote:value element missing in phone field");q(this.A);u(this.A,"phone home work mobile main home-fax work-fax other".split(" "))};
h.prototype.I=function(){return A(this.A.node)};h.prototype.bd=function(a){h.$c.bd.call(this,a);r(this.A)};ga(g,t);g.prototype.K=function(a,b){C(b instanceof Object);b.href=a;return M("a",b,[a])};g.prototype.J=function(){var a=this.A.node.textContent;return!a||lb(a)?"":a.trim()};g.prototype.F=function(){function a(){G(f,"en-editable-hidden");F(e,"en-editable-hidden");dc(k);var c=b.J();lb(c)?(G(e,"en-editable-hidden"),F(f,"en-editable-hidden")):k.appendChild(b.K(c,{tabindex:"-1"}));e.textContent=c}
var b=this;this.A.node=p(this.A.Pa,"value");this.A.Uc=p(this.A.le,"value");C(!!this.A.node,"x-evernote:value element missing in LinkField");var c=this.A.node,d=this.J();Vc(c,"text-decoration");dc(c);var e;c.appendChild(e=M("div"));e.textContent=d;this.A.node=e;q(this.A);var f,k;c.appendChild(f=M("div",{"class":"en-editable-preview"},[k=M("span")]));a();x.B.listener(f,"click",function(){e.focus()});x.B.listener(e,"focus",function(){G(e,"en-editable-hidden");F(f,"en-editable-hidden")});x.B.listener(e,
"blur",function(){a()});F(this.A.Pa,"en-editable-container")};g.prototype.I=function(){var a=this.A.node.textContent;return lb(a)?"\u00a0":qb(this.K(a,{}))};ga(f,g);f.prototype.F=function(){f.$c.F.call(this);u(this.A,["email","home","work","other"])};f.prototype.bd=function(a){f.$c.bd.call(this,a);r(this.A)};f.prototype.K=function(a,b){a=a.trim().replace(/^mailto:/,"");C(b instanceof Object);b.href="mailto:"+a;return M("a",b,[a])};ga(e,g);e.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";
a=a.trim().replace(/^\@/,"");return lb(a)?"":a};e.prototype.K=function(a,b){C(b instanceof Object);b.href="http://twitter.com/"+encodeURIComponent(a);return M("a",b,["@"+a])};ga(d,g);ga(b,g);ga(c,g);c.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return lb(a)?"":a};c.prototype.K=function(a,b){C(b instanceof Object);return document.createTextNode("@"+a)};ga(a,g);a.prototype.K=function(a,b){a=a.trim();C(b instanceof Object);b.href="http://maps.google.com/?q="+
encodeURIComponent(a);return M("a",b,[a])};var xa={title:l,field:k,textarea:m,phone:h,email:f,twitter:e,linkedin:d,facebook:b,weibo:c,address:a,"profile-image":n},ha=Object.keys(xa);x.Y=function(){B===document.body?(x.yb=document.body.parentNode.cloneNode(!0),Oa(x.yb.getElementsByTagName("head")).forEach(function(a){H(a)})):x.yb=B.cloneNode(!0);var a=x.N(B),b=x.N(B===document.body?x.yb.getElementsByTagName("body")[0]:x.yb);x.gb=[];for(var c=0;c<a.length;c++)try{var d=a[c];d.index=c;d.Uc=b[c].node;
d.G=this.G;d.Pa=d.node;d.le=d.Uc;d.object=new xa[d.type](d);x.gb.push(d)}catch(e){w.error("A field failed during setup",e.toString())}};x.R=function(a){a=D(a,{Xb:null,od:null,Jc:null,ld:null,ze:!1,Ce:null,De:null,ke:{},Tc:{},jc:{},Xd:null,root:null});x.G=a;B=a.root||document.getElementById("en-note");C(B&&I(B),"Root not valid!");var b=a.Xb;a=a.enml;x.ua=!1;C(!(null!=b&&null!=a),"You can only provide one content type: html or enml");v(b)?(x.D(b),x.ua=!0):v(a)&&C(!1,"ENML currently not supported for Templates");
Cf(B);C(null!==x.G.od,"Content Class is required");x.G.Jc=x.G.Jc||x.G.od.replace(/[^\w]+/gi,"-");F(B,"en-template-style-on");F(B,x.G.Jc);x.Y();x.B.ha(B,"setDirty",function(a){var b=!0;!1===a&&(b=!1);X=!!b});null!==x.G.De&&x.J(x.G.De);x.Oa=function(a){x.J(a.value)};x.B.I("titlechanged",x.Oa);if(x.G.ke instanceof Object)for(b=0;b<x.gb.length;b++)try{var c=x.gb[b],d=x.G.ke[c.name];d&&d(c)}catch(e){w.error("Exception on onDidInitActions (3)",e.toString())}c=this.qa();c.F(new rf,{root:B});c.F(new jg);
c.F(new qg);x.Fc()};x.V=function(){G(B,"en-template-style-on");G(B,x.G.Jc);x.gb=[]};x.hasFocus=function(){var a=W(B);return a&&(a=xd(a))?P(a,Mc):!1};x.Fc=function(){function a(b,c){c=D(Db(b),c,!0);var d=c.value;"html"===c.type&&(d=jc(d,B).textContent);try{document.execCommand("inserttext",!1,d.replace(/\s+/gi," "))}catch(e){}return!0}x.B.Wc({Ya:["content","template"]});x.B.A({name:"focus",action:function(){x.focus();return!0},state:function(){return x.hasFocus()},value:function(){if(x.hasFocus())return x.name},
enabled:y});x.B.A({name:"paste",action:function(b){return a(b,{type:"html",mode:"plain",value:""})},enabled:y});x.B.A({name:"pasteplain",action:function(b){Na('Please use execCommand("template.paste", { type: "plain", mode: "plain", "value": ... })');return a(b,{type:"plain",mode:"plain",value:""})},enabled:y});x.B.A({name:"copy",enabled:y,value:function(){var a=W(B);if(!a||a.collapsed)return"";var b={},a=a.cloneContents(),c=document.createElement("div");c.appendChild(a);gd(c,function(a){b.plain=
tc(a)});return JSON.stringify(b)}});x.B.A({name:"content",action:function(a){a=Db(a);null!=a.value&&(Na("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});mb(a.resources)||x.H("resource").zd(a.resources);var b=a.content||"";"enml"===a.type?x.qa().A("enml").Xc(b):x.D(b);x.Y();!0===a.scrollToTop&&id(0,0);Bb("contentInjected");return!0},value:function(a){return x.fa(Db(a))},enabled:y});
x.B.A({name:"changes",action:function(a){X=!!Cb(a);return!0},state:function(){return X},enabled:y,Wb:!0})};x.focus=function(a){for(a=+a||0;a<this.gb.length;a++){var b=this.gb[a];if(!b.yf){b.node.focus();break}}};x.J=function(a){if(a&&0<a.length&&255>=a.length){for(var b,c=0;c<this.gb.length;c++)if(!0===this.gb[c].yf){b=this.gb[c];break}b&&b.node.textContent!==a&&(b.node.textContent=a,b.Xb=b.node.innerHTML)}};x.N=function(a){return Oa(a.querySelectorAll("*[style*='-evernote-editable:']")).map(function(a){var b=
Uc(a,"-evernote-editable");if(0<=ha.indexOf(b)){var c=Uc(a,"x-evernote"),d=this.G.Ce&&this.G.Ce===c;d&&(b="title");return d||null===this.G.ld||this.G.ld.some(function(a){return c===a})?{node:a,name:c,type:b,yf:d}:void 0}w.error("Invalid -evernote-editable field mode!",b)},this).filter(function(a){return a&&a.node})};x.D=function(a){var b=M("div");b.innerHTML=a;oc(b,B)};x.fa=function(a){a=D(a,{html:!1,cleanup:!1,stripNS:!1,trim:!0,withInsertionPoint:!1,titleString:"",hiddenCryptoData:null,resetChangesState:!1,
wrap:!1,type:""});w.log("template crypt legacy",L);a.resetChangesState&&(X=!1);v(a.titleString)&&x.J(a.titleString);for(var b=0;b<this.gb.length;b++){var c=this.gb[b];try{c.object.bd(a.withInsertionPoint)}catch(d){w.error("Unable to extract data from field",d.toString(),c)}}if("enml"===(a.type||a.value||""))return b=x.qa().A("enml").vd({crypto:a.hiddenCryptoData,contentElement:x.yb.cloneNode(!0)}),L?b:{success:null!=b,value:b,type:"enml"};if(L)return b="html"===K(this.yb)||a.stripNS?x.yb.outerHTML:
x.yb.innerHTML,a.stripNS&&(b=pb(b)),b=b.trim(),a.html?b="<html><head><title></title></head><body>"+b+"</body></html>":a.wrap&&(b=Df(B,b)),$a(b);a=x.yb;b=lc()?pb(a.outerHTML):a.innerHTML;null!=b&&(b=b.trim(),b=$a(b),b=Df(a,b));return{success:null!=b,value:b,type:"html"}};x.F=function(a){var b=a.contentClass,c=a.title,d=a.localization,e;L=null==a.cryptLegacy?!0:a.cryptLegacy;if("evernote.food.meal.2"===b)e=x.R({root:a.root||null,od:b,Xb:a.html,ld:["caption-text","meal-review"],ze:!0,Ce:"title",De:c});
else if("evernote.contact.1"===b){var f=function(a){return(a=a.node.textContent)?a.replace(/\s+/g," ").trim():null},k=null,l=c;e=x.R({root:a.root||null,od:b,Xb:a.html,ld:"contact-title contact-org note-body weibo twitter phone email address display-as".split(" "),ze:!1,jc: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"},ke:{"display-as":function(a){k=f(a)}},Tc:{"display-as":function(a){l=Ve.value("title.content");var b=!1;a=f(a);if(k&&a&&l){var c=new RegExp("\\b"+Ua(k)+"\\b","g");if(c=l.replace(c,a))255<c.length&&(c=l),Ve.action("title.content",c),Ve.action("title.changes",!0),b=!0,k=a}return b}}})}return e}};function sg(){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.Na=c;C(null!=this.Na.ad,"You have to provide tablePlugin config!");void 0!==c.cssBlockStyle?this.aa=c.cssBlockStyle:this.aa=this.Ga;this.async=!!c.async;if(!a)a=document.body;else if(a instanceof DocumentFragment||!Bc(a))c=M("div"),c.appendChild(a),document.body.appendChild(c),
this.jb=a=c;this.S=a;this.nc=b;this.ia()}function d(a,b,c,d){b=b.getAttribute(c);if(null==b){if(null==d)return;b=d}a.setAttribute(c,b)}function e(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 h(a){a=K(a);return"p"===a||"div"===a}var m=this;this.name="simpletext";b.prototype.ga="div";b.prototype.Ga=null;b.prototype.rb=.8;b.prototype.Db=150;b.prototype.Ka=
10;b.prototype.R=2E3;b.prototype.zb="evernote://";b.prototype.sb="rgb(105, 170, 53)";b.prototype.ia=function(){var a=this;this.xa=this.ib=this.ba=this.Z=this.K=this.block=null;this.J=M("div");this.ka=this.D=null;this.O=!1;this.$=[];var b=Cc(document.body);this.Ib=b&&b.fontSize?+b.fontSize.replace(/px/gi,"")*this.rb:16;if(this.async){this.ca=this.va=this.Qa=0;this.ea=!1;this.Pb=this.Za=(new Date).getTime();for(var b=document.createNodeIterator(this.S,-1,null,!0),c=0;b.nextNode();)++c;this.Qb=c}this.Jb=
document.createTreeWalker(this.S,-1,{acceptNode:function(b){for(var c=0;c<a.$.length;c++)if(yc(b,a.$[c]))return 2;return 1}},!0);this.Ma()};b.prototype.Ma=function(){var a=this;if(this.Sb)this.V();else{var b;try{for(;(b=this.Jb.nextNode())&&!(3===b.nodeType?this.Gb(b):1===b.nodeType&&this.La(b),this.async&&(++this.Qa,(new Date).getTime()-this.Za>this.Db)););++this.va}catch(c){b=null}if(b&&this.async){this.ca=Math.min(1,this.Qa/this.Qb);this.ea||(b=((new Date).getTime()-this.Pb)/this.ca,b+=(Math.ceil(this.va/
this.ca)-this.va)*this.Ka,b>=this.R&&(this.ea=!0));if(this.ea&&this.Na.onprogress)this.Na.onprogress(this,this.ca);m.B.timeout(function(){a.Za=(new Date).getTime();a.Ma()},this.Ka)}else{this.$=null;this.N(this.block);if(this.ea&&this.Na.onprogress)this.Na.onprogress(this,1);this.wa()}}};b.prototype.wa=function(){this.nc?oc(this.J,this.nc):this.nc=this.J;this.V();if(this.Na.onready)this.Na.onready(this)};b.prototype.V=function(){this.jb&&document.body.removeChild(this.jb)};b.prototype.Rb=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);)xc(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++)xc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"))};b.prototype.N=function(a){a&&(this.Rb(a),a.normalize())};
b.prototype.W=function(a){a=M(a?a:this.ga);this.aa&&a.setAttribute("style",this.aa);return a};b.prototype.Ca=function(){var a=this.W();a.appendChild(M("br"));this.J.appendChild(a);this.O=!1};b.prototype.M=function(a){var b=this.W();null!=a&&(v(a)?b=this.W(a):I(a)&&(b=a));this.J.hasChildNodes&&this.O&&(a=this.J.lastElementChild)&&a.textContent.length&&h(a)&&h(b)&&this.Ca();this.O=!1;this.J.appendChild(b);return b};b.prototype.A=function(){this.N(this.block);this.K=this.block=null};b.prototype.Ea=function(a){var b=
document.createRange();b.selectNodeContents(a);b=b.getBoundingClientRect();this.ka&&b&&!yc(a,this.K)&&Math.abs(b.top-this.ka.bottom)>=this.Ib&&(this.O=!0);b&&(this.ka=b)};b.prototype.Eb=function(a){var b=P(a,"li");if(null==b)this.Z=null;else{if(xc(a)){if(-1!==a.textContent.search(/^\s*$/i))return;a.textContent.replace(/\s+/gi," ")}if(this.D&&this.Z===b)this.block=this.D,Ic(this.D.lastChild)&&Ic(a)||this.block.appendChild(M("br"));else{var c=0;a=null;for(var d=b;d&&d!==this.S;)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.J;;){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&&E(b.parentNode,"en-todo-list")&&(e.className="en-todo-list");else if(this.O||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&&E(b,"en-todo-checked")&&(this.block.className="en-todo-checked");e.appendChild(this.block);this.Z=b;this.D=this.block}}};b.prototype.Fb=function(a){var b=P(a,"table"),c=this.Na.ad;if(null!=b&&null!=c&&I(b)&&"table"===K(b)){var d=c.ce(b);-1!==d.rows&&(this.ib!==b&&(this.ib=b,this.xa=c.lf(d),this.M(this.xa),this.ba=null),b=c.Vc(a),null!=b.table&&(b=c=this.xa.querySelectorAll("tr")[b.row].querySelectorAll("td")[b.column],
null==c?w.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])&&dc(b)),this.ba&&"td"===K(this.ba.parentNode)&&this.ba.parentNode===c&&"td"!==K(b)&&xc(a)&&!Ic(a)&&!Ic(a.parentNode)&&(a=this.W(),P(b,"td").appendChild(a),b=a),this.block=this.ba=b)))}else w.warn("Couldn't simplify table. Look into this!")};b.prototype.I=function(a,b,c,d){c=!yc(a,this.K);if(d&&c)return null;
b||(b=a.cloneNode(!1));"br"!==K(a)&&this.Ea(a);c&&(I(this.K)&&(d=K(this.K),f(d)&&(this.O=!0)),this.A());for(c=a;c!==this.S&&(c=c.parentNode);){this.K=c;d=K(c);if("li"===d)break;if(f(d))break;if(Fc(c))break}P(a,"table")&&this.Fb(a);P(a,"li")&&this.Eb(a);a=this.oa(a);this.block||(this.block=this.M());this.block.appendChild(this.Aa(b,a));return b};b.prototype.Gb=function(a){if(a){var b;if((b=Cc(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 w.warn("Node missing",a)};b.prototype.La=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.$.push(a);else if("embed"===b)b=Kc(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.$.push(a);else if("img"===b&&Q(a,".en-todo"))this.I(a);else if(Q(a,".en-media"))this.I(a);else if(Q(a,".en-richlink"))this.I(a);else if("img"===b&&a.src)this.A(),b=M("img"),d(b,a,"src"),d(b,a,"alt",""),d(b,a,"id"),this.I(a,b,!0),this.A();else if("hr"===
b)this.A(),b={},"true"===Uc(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.Ca();return}this.block&&a&&(Fc(a)||!zc(this.K,a))&&this.A()}}else w.warn("Node missing",a)};b.prototype.oa=function(a){for(var b={Kb:0,kc:0,e:0,gf:0,vf:0,Hd:0,ue:0};a||a===this.S;){var c=K(a);"del"===c||"strike"===c||"s"===c?b.ue=1:"mark"===c?
b.kc=1:"a"===c&&(c=a.href+"")&&c.length&&(b.Kb=c,b.e=0===c.indexOf(this.zb));if(c=Cc(a)){var d=c.backgroundColor.toLowerCase();if("rgb(255, 204, 102)"===d||"rgb(255, 250, 165)"===d||"rgb(246, 238, 150)"===d||e(a))b.kc=1;var d=c.fontWeight.toLowerCase(),f=c.fontStyle.toLowerCase(),c=c.textDecoration.toLowerCase();if("bold"===d||"bolder"===d||"700"===d)b.gf=1;if("italic"===f||"oblique"===f)b.vf=1;!b.Kb&&0<=c.indexOf("underline")&&(b.Hd=1);0<=c.indexOf("line-through")&&(b.ue=1)}a=a.parentNode}b.Kb&&
b.Hd&&delete b.Hd;return b};b.prototype.Aa=function(a,b){var c;b.Kb&&(c=M("a"),c.setAttribute("href",b.Kb),b.e&&c.setAttribute("style","color:"+this.sb+";"),c.appendChild(a),a=c);b.gf&&(c=M("b"),c.appendChild(a),a=c);b.vf&&(c=M("i"),c.appendChild(a),a=c);b.Hd&&(c=M("u"),c.appendChild(a),a=c);b.ue&&(c=M("s"),c.appendChild(a),a=c);b.kc&&(c=M("span",{style:"-evernote-highlight:true; background-color:rgb(255, 250, 165);"}),c.appendChild(a),a=c);return a};ga(c,b);ga(a,b);a.prototype.ga="div";a.prototype.Ga=
'font-family: Courier, "Courier New", monospace;';a.prototype.Ha=!1;a.prototype.Bb="\u00a0 \u00a0 ";a.prototype.Ab="- ";a.prototype.ia=function(){this.ma=[];a.$c.ia.call(this)};a.prototype.wa=function(){this.O=!0;for(var b=0;b<this.ma.length;b++)this.block=this.M(),this.block.appendChild(this.ma[b]);a.$c.wa.call(this)};a.prototype.W=function(){var a=M(this.ga);this.aa&&a.setAttribute("style",this.aa);return a};a.prototype.I=function(a,b,c,d){c=!yc(a,this.K);if(d&&c)return null;b||(b=a.cloneNode(!1));
this.Ea(a);c&&(I(this.K)&&(d=K(this.K),f(d)&&(this.O=!0)),this.A());for(c=a;c!==this.S&&(c=c.parentNode);){this.K=c;d=K(c);if("li"===d)break;if(f(d))break;if(Fc(c))break}d=P(a,"li");if(!this.block&&d)if(this.D&&this.Z===d)this.block=this.D,this.block.appendChild(M("br"));else{c=0;for(var e=d;e&&e!==this.S;)g(e)&&++c,e=e.parentNode;c=Math.max(0,c);this.block=this.M();e=this.Ab;for(P(d,"ul.en-todo-list")&&(e=E(d,"en-todo-checked")?"[x] ":"[ ] ");1<c;)e=this.Bb+e,--c;this.block.appendChild(document.createTextNode(e));
this.Z=d;this.D=this.block}else this.Z=null,this.block||(this.block=this.M());a=this.oa(a);this.block.appendChild(this.Aa(b,a));return b};a.prototype.La=function(a){var b;b=K(a);E(a,"en-todo")?(b=E(a,"en-todo-checked"),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"embed"===b?(b=Kc(a,"type").toLowerCase(),"evernote/x-todo"===b?(b="true"===(Kc(a,"todo-checked")+"").toLowerCase(),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.ma.push(a.cloneNode(!0))):
("script"!==b&&"style"!==b||this.$.push(a),"img"!==b&&("hr"===b?this.A():"br"===b?this.A():f(b)?(this.A(),this.O=!0):!this.block||!Fc(a)&&zc(this.K,a)||this.A()))};a.prototype.oa=function(a){var b={};if(this.Ha)for(;a||a===this.S;)"a"===K(a)&&(b.Kb=a.href),a=a.parentNode;return b};a.prototype.Aa=function(a,b){if(this.Ha&&b.Kb){var c=M("a");c.setAttribute("href",b.Kb);c.appendChild(a);a=c}return a};this.F=function(){function b(a,c){var h=d.C(),g,k,r;if(h&&!h.collapsed){e.Be();k=Jd(h,"td",f);k=k[0]===
k[1]&&"td"===K(k[0])?Jd(h,"div",f):Jd(h,"table,ul,ol",f);g=k[0];var B=k[1];r=B.nextSibling;k=B.parentNode;g===B?d.yd(g):d.T(g,0,B,B.childNodes.length);g=d.C().cloneContents()}if(g){var L=(new a(g,null,c)).nc.childNodes;g=L[0];var B=L[L.length-1],X=h.startContainer,h=h.endContainer;for(r&&xc(r)&&0===r.length&&(r=null);0<L.length;)null!==r?d.insertBefore(L[0],k,r):d.Pb(L[0],k);m.H("edit").O({Zc:!0});h!==k&&h!==f&&h!==X&&d.removeNode(h);X!==f&&X!==k&&d.removeNode(X);h=cc(B);d.T(bc(g),0,h,h.length)}else new a(f,
f,c),d.T(f,0),d.ya();return!0}var d=m.H("context");m.H("query");var e=m.H("normalize"),f=d.root,h=d.Da;h.simpletext={P:!0,action:function(a){null!=a&&Na("simpletext called with an argument!");return b(c,{ad:m.H("table")})},enabled:y};h.plaintext={P:!0,action:function(c){var e=null,f=null,f="",e=null;c=Db(c);null!=c.value&&(Na("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=Cc(e),f="font-family:"+f.fontFamily+"; font-size:"+f.fontSize+"; font-weight:"+f.fontWeight,H(e)):"none"===c.fontStyle&&d.U("removeformat").action();e={cssBlockStyle:f,ad:m.H("table")};return b(a,e)},enabled:y}};this.Qf=function(a){return(new c(a,null,{ad:m.H("table")})).nc};this.tc=function(b){return(new a(b,null,{ad:m.H("table"),cssBlockStyle:""})).nc}};function tg(){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.H("context"),b=this.H("format");this.root=c.root;this.xb=function(){var d=b.wd(),e,f=W(),g=oe(c.root);null!=f&&f.startContainer===f.endContainer&&3===f.startContainer.nodeType&&!1!==f.collapsed&&(f=f.startContainer,
e=window.getSelection(),e.modify("move","backward","word"),e.modify("extend","forward","word"),e=W(),a(f,e),pe(c.root,g),e=window.getSelection(),e.modify("move","forward","word"),e.modify("extend","backward","word"),e=W(),a(f,e),pe(c.root,g));c.Va();b.Cb(d)};return this};this.V=function(){this.root=this.xb=null}};function ug(){var a=this;a.name="stats";a.F=function(){var c=a.H("context"),b=a.H("query"),d=c.root;a.getStats=function(c){var f={};c=D(c,{stats:"todo firstLine isEmpty isDirty link isReadOnly isEditable hasFocus selection lastSelection".split(" ")});c=c.stats;C(ca(c));-1!==c.indexOf("todo")&&(f.todo=a.H("todo").Fe().length);if(-1!==c.indexOf("firstLine"))for(var g;g=wc(g,d);)if(g&&!lb(g.textContent)){f.firstLine=tc(b.na(g)).substr(0,255).trim();break}-1!==c.indexOf("isEmpty")&&(f.isEmpty=Od(d));
-1!==c.indexOf("isDirty")&&(f.isDirty=a.H("io").dc());-1!=c.indexOf("link")&&(f.link=a.H("link").Gg().length);-1!=c.indexOf("isReadOnly")&&(f.isReadOnly=a.H("context").$a());-1!=c.indexOf("isEditable")&&(f.isEditable=a.H("context").L());-1!=c.indexOf("hasFocus")&&(f.hasFocus=a.H("context").hasFocus());-1!=c.indexOf("selection")&&(f.selection=oe(document.body));g=Ue.bb;-1!=c.indexOf("lastSelection")&&g&&(f.lastSelection=me(document.body,Bd(g)));return f};a.B.A({name:"stats",P:!1,value:function(b){return a.getStats(Db(b))},
enabled:y,Sa:!0})}};function vg(){this.name="table";this.F=function(){function a(){var a=b.C(),d=P(a.startContainer,"td",f),e=P(a.endContainer,"td",f),g={Bh:null,wh:null},n=c.I();if(null==n||null==d&&null==e)return g;if("div"===K(a.endContainer)&&"td"===K(a.endContainer.parentNode)&&0===a.endOffset){var g=c.Vc(a.startContainer),t=c.Vc(a.endContainer),n=c.ce(n);if(0<n.rows&&g.row===t.row&&g.column+1===t.column||g.row+1===t.row&&g.column===n.columns-1&&0===t.column)e=d;null==P(a.endContainer,"td")&&(e=d)}else null==e&&
(e=d);return{startNode:d,endNode:e}}var c=this,b=c.H("context"),d=c.H("query"),e=c.H("block"),f=b.root,g=b.Da;c.I=function(){var a=b.C();if(!a)return null;var c=P(a.startContainer,"table",f),a=P(a.endContainer,"table",f);return!c||a&&a!==c?null:c};c.D=function(){return c.I()?P(b.C().startContainer,"tr",f):null};c.jd=function(){return c.I()?P(b.C().startContainer,"td",f):null};c.J=function(){var a;if(null==a&&(a=c.I(),null==a))return[];var b=window.getSelection(),d=[],e=[],f=[];fb(a.querySelectorAll("td"),
function(a){b.containsNode(a,!1)?(e.push(a),f.push(a)):b.containsNode(a,!0)&&(d.push(a),f.push(a))});return f};c.Vc=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,g=c.querySelectorAll("tr"),u=0;u<g.length;u++)g[u]===d&&(e=u);if(-1===e)return b;d=d.querySelectorAll("td,th");for(u=0;u<d.length;u++)d[u]===a&&(f=u);return-1===f?b:{table:c,cell:a,row:e,column:f}};c.N=function(a){var b=Cc(a.querySelector("td")),
c=parseInt(b.borderWidth,10)||1,d=b.borderColor||"black";fb(Oa(a.style),function(b){0<=b.indexOf("border")&&Vc(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");fb(a.querySelectorAll("tr"),function(a){fb(Oa(a.style),function(b){0<=b.indexOf("border")&&Vc(a,b)})});fb(a.querySelectorAll("td"),function(a){fb(Oa(a.style),function(b){0<=b.indexOf("border")&&Vc(a,b)});T(a,"border-style","solid");T(a,"border-width",
c+"px");T(a,"border-color",d)})};c.gd=function(a){var b=Uc(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};c.ce=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}};
c.lf=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;"}),g=Math.round(1E4/b)/100,u=0;u<c;u++){var p=M("tr");f.appendChild(p);for(var q=0;q<b;q++){var A=M("td",{style:"border-style:solid;border-width:"+e+"px;border-color:"+d+";padding:10px;margin:0px;width:"+g+"%;"},[uc()]);a.cellColor&&(A.style.backgroundColor=a.cellColor);p.appendChild(A)}}return f};
g.inserttable={P:!0,action:function(a){if(!b.C()||e.rd())return!1;var g={};"{"===a[0]?g=D(a,{columns:2,rows:2,borderColor:"rgb(211,211,211)",borderWidth:1,cellColor:null,alignment:"left"}):(a=a.split(","),g.columns=+a[0].trim(),g.rows=+a[1].trim());b.U("insertparagraph").action();a=g.align||"left";var g=c.lf(g),k=d.na(b.C().startContainer);k.parentNode.insertBefore(g,k);e.ea(g);b.T(g.querySelector("div"),0);b.U("tablealign").action(a);Y(f,"TABLE_ADDED",{target:g});return!0},state:function(){return!!c.I()},
enabled:function(){return b.hasFocus()&&!e.rd()&&!e.Ca()}};g.inserttablerow={P:!0,action:function(d){var e=c.I();if(null==e)return!1;d="before"===d.toString().toLowerCase().trim();var g=a(),l=P(g.startNode,"td",f),g=P(g.endNode,"td",f);if(!l&&!g)return!1;l=l.compareDocumentPosition(g)&(d?4:2)?l:g;if(!l)return!1;var l=P(l,"tr",f),g=l.cloneNode(!0),n=g.querySelector("td");fb(g.querySelectorAll("td"),function(a){dc(a);a.appendChild(uc())});b.K(g,e,J(l)+(d?0:1));null!=n&&(b.Ec(n,0),b.Dc(n,0));Y(f,"TABLE_INSERT_ROW",
{target:e});return!0},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};g.inserttablecol={P:!0,action:function(d){var e=c.I();if(!e)return!1;var g="before"===d.toString().toLowerCase().trim(),l=a();d=l.startNode;var l=l.endNode,n=d.compareDocumentPosition(l)&(g?4:2)?d:l;if(null==n)return!1;var t=n.cellIndex;fb(Oa(e.querySelectorAll("td")),function(a){if(a.cellIndex===t&&e===P(n,"table")){var c=a.cloneNode(!0);dc(c);c.appendChild(uc());var d=Uc(a,"width"),d=window.parseFloat(d)||
0;0<d&&(T(c,"width",d/2+"%"),T(a,"width",d/2+"%"));b.K(c,a.parentNode,J(a)+(g?0:1))}});Y(f,"TABLE_INSERT_COLUMN",{target:e});return!0},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};g.deletetablerow={P:!0,action:function(){var a=c.D();if(!a)return!1;var d=c.I();if(!d)return!1;var e=U("tr",d);if(1===e.length)return b.U("deletetable").action();e.indexOf(a)===e.length-1?(e=U("td",e[e.length-2]).pop(),b.T(e,O(e))):(e=U("td",e[e.indexOf(a)+1]).shift(),b.T(e,0));b.removeNode(a);
Y(f,"TABLE_DELETE_ROW",{target:d});return!0},state:function(){return!!c.D()},enabled:function(){return b.hasFocus()&&!!c.D()}};g.deletetablecol={P:!0,action:function(){var a=c.jd();if(!a)return!1;var d=a.cellIndex,e=c.I();if(!e)return!1;var g=U("td",e);if(g.every(function(a){return a.cellIndex===d}))return b.U("deletetable").action();var n=g.filter(function(a){return a.cellIndex===d+1});n&&n.length||(n=g.filter(function(a){return a.cellIndex===d-1}));for(var t=U("tr",e),r=0,u=0;u<t.length;u++)for(var p=
U("td",t[u]),q=0;q<p.length;q++)p[q]===a&&(r=u);b.T(n[r],0);for(u=g.length-1;0<=u;u--)a=g[u],a.cellIndex===d&&b.removeNode(a);Y(f,"TABLE_DELETE_COLUMN",{target:e});return!0},state:function(){return!!c.jd()},enabled:function(){return b.hasFocus()&&!!c.jd()}};g.deletetable={P:!0,action:function(){var a=c.I();if(!a)return!1;b.T(a.parentNode,J(a),a.parentNode,J(a)+1);c.H("edit").O()&&Y(f,"TABLE_REMOVED",{target:a});return!0},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};
g.tablebordercolor={P:!0,action:function(a){var b=a||"black";a=c.I();if(null==a)return!1;c.N(a);T(a,"border-color",b);fb(a.querySelectorAll("td"),function(a){T(a,"border-color",b)});return!0},value:function(){var a=c.I();return null==a?"":(a=Cc(a.querySelector("td")).borderColor)?""+a:""},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};g.tableborderwidth={P:!0,action:function(a){var b=parseInt(a,10);if(isNaN(b)||0>b)return w.warn("Invalid value given to tableborderwidth <$>",
Pa(b)),!1;a=c.I();if(null==a)return!1;c.N(a);T(a,"border-width",b+"px");fb(a.querySelectorAll("td"),function(a){T(a,"border-width",b+"px")});Y(f,"TABLE_BORDER_WIDTH",{target:a,value:b});return!0},value:function(){var a=c.I();if(null==a)return"";a=Cc(a.querySelector("td"));return(a=parseInt(a.borderWidth,10))?""+a:"0"},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};g.tablealign={P:!0,action:function(a){if("left"!==a&&"right"!==a&&"center"!==a)return w.warn("Invalid value given to tablealign <$>"),
!1;var b=c.I();if(null==b)return!1;b.removeAttribute("align");Vc(b,"float");Vc(b,"margin");Vc(b,"margin-right");Vc(b,"margin-left");"left"===a?T(b,"margin-left","0px"):"right"===a?(T(b,"margin-left","auto"),T(b,"margin-right","0px")):"center"===a&&(T(b,"margin-left","auto"),T(b,"margin-right","auto"));Y(f,"TABLE_ALIGN",{target:b,value:a});return!0},value:function(){var a=c.I();return null==a?"":c.gd(a)},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};g.tablecellcolor=
{P:!0,action:function(a){a=a||"transparent";var b=c.J();if(0===b.length)return!1;fb(b,function(b){Vc(b,"background");Vc(b,"background-image");Vc(b,"background-attachment");Vc(b,"background-position");Vc(b,"background-clip");Vc(b,"background-repeat");T(b,"background-color",a)});return!0},value:function(){var a=c.J();if(0===a.length)return"";a=a[0].style;return a.backgroundColor?(a=$d(a.backgroundColor),null!=a?a:""):""},state:function(){return!!c.I()},enabled:function(){return b.hasFocus()&&!!c.I()}};
c.Fa=function(a,b){1===b&&V("table",a).forEach(function(a){Uc(a,"width")||T(a,"width","100%")})};c.Ja=function(a,b,c){1===b?V("table",a).forEach(function(a){"100%"===Uc(a,"width")&&Vc(a,"width")}):3===b&&("msexcel"===c.source&&V('table[border="0"]',a).forEach(function(a){a.setAttribute("border","1");Uc(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&&Uc(a.previousElementSibling,"padding")&&T(a,"padding",Uc(a.previousElementSibling,"padding")))}))}}};function wg(){var a=this;this.name="tableselection";this.F=function(){function c(a,b){var c=[],d=[],e=Cd(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{Sd:d,Dd:c}}function b(){for(var a=e.getElementsByClassName("en-selected");0<a.length;)G(a[0],"en-selected")}var d=this.H("context"),e=d.root,f=!1,g,h=rd();this.B.ha(e,"selectionChanged",function(){if(W(e)&&!f&&0!==e.getElementsByTagName("table").length){var a=window.getSelection(),
d=W();h=rd(d.startContainer,d.startOffset,d.endContainer,d.endOffset);b();d&&!d.collapsed&&(a=c(d,a),1>=a.Dd.length&&0===a.Sd.length||(fb(e.querySelectorAll("table"),function(a){F(a,"en-selected")}),fb(a.Dd,function(a){F(a,"en-selected")}),fb(a.Sd,function(a){F(a,"en-selected")})))}});this.B.listener(document,"contextmenu",function(e){f=!0;g=a.B.timeout(function(){f=!1},1E3,g);e=e.target;var l=window.getSelection(),n=W();b();zd(n,h)||(l=c(n,l),2!==l.Dd.length&&1!==l.Dd.length||0!==l.Sd.length||P(n.startContainer,
"td")===P(n.endContainer,"td")||(n=document.createRange(),n.selectNodeContents(e),d.Ea(n),d.ya()));return!0});b();var m=M("style",{type:"text/css"});m.textContent="td.en-selected { background-color: "+af()+" !important;}";document.querySelector("head").appendChild(m)}};function xg(){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=oe(a,!0);a.normalize();pe(a,b)}function d(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleLowerCase()})}function e(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=W();if(d&&!(1>d.toString().length)){xc(d.endContainer)&&0<d.endOffset&&d.endOffset<d.endContainer.textContent.length&&(c=d.endContainer.splitText(d.endOffset),d.setEnd(c,0));xc(d.startContainer)&&0<d.startOffset&&(c=d.startContainer.splitText(d.startOffset),d.setStart(c,0));sd(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();)xc(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);sd(d)}}var g=a.H("context"),h=g.root,g=g.Da;g.lowercase={P:!0,action:function(){d(h);return!0}};g.uppercase={P:!0,action:function(){e(h);return!0}};g.capitalize={P:!0,action:function(){c(h);return!0}}}};function yg(){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?F(d,"en-todo-checked"):G(d,"en-todo-checked")}}function d(a,b){Zb(a,"en-todo-checked");Y(c,"setDirty",{Sc:!0===b})}function e(a){var b=a.target;if(!g.$a()){var d=U("li.en-todo-over",c);(a=f(a))&&F(b,"en-todo-over");for(var e=0;e<d.length;e++){var h=d[e];a&&h.isEqualNode(b)||G(h,"en-todo-over")}}}function f(a){var b=a.target;return R(b,"li")&&E(b.parentNode,"en-todo-list")&&40>a.clientX-
b.getBoundingClientRect().left}var g=a.H("context"),h=a.H("query"),m=a.H("block"),k=a.H("normalize"),l=a.H("undo");c=g.root;var n=g.Da;(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.Je=function(a){var b=null;cd(a,function(a){return Q(a,".en-todo")?(b=a,!0):fd(a)||h.X(a)?!1:!0},a);return b};a.hg=function(b){if(!Q(b,"div,li"))return!1;var c=a.Je(b);if(!c)return!1;
for(var d=b.childNodes.length-1;0<=d;d--){var e=b.childNodes[d];if(e!==c&&(xc(e)&&!fd(e)||!h.ka(e)))return!1}return!0};a.lc=function(){return M("img",{"class":"en-todo",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})};a.me=function(b){var c=a.lc(),d=h.Qc(b,0);g.K(c,I(d[0])?d[0]:d[0].parentNode,0);m.ib(b);return c};a.Fe=function(){return U(".en-todo",c)};a.D=function(a){if(a&&a.parentNode){var b=a.parentNode,c=a.nextSibling;if(c&&xc(c)){var d=c.textContent,e=
d.trimLeft(d);d!==e&&(0==e.length?g.removeNode(c):c.textContent=e)}g.removeNode(a);m.ib(b)}};a.B.listener(c,"mousemove",e);a.B.listener(c,"mouseout",e);a.B.listener(c,"blur",e);var t=!1;a.B.ha(c,"selectionChanged",function(a){!0===t&&(td(a.bb,c)&&sd(a.bb),t=!1)});a.B.listener(c,"click",function(a){t=!1;if((Q(a.target,".en-todo")||f(a))&&!g.$a())return l.flush(),d(a.target,!0),t=!0,Pd(a)});n.controltodos={P:!0,action:function(d){var e=g.C();if(!e||!g.L())return!1;var f=a.Fe();e.collapsed||(f=Cd(e,
".en-todo"),e=xd(e),(e=dd(e,".en-todo",h.na(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++)Zb(d[f],"en-todo-checked");return!0}};n.inserttodo={P:!0,action:function(b){var e=g.C();if(!e||!g.L())return!1;if("toggle"===b){b=xd(e);var f=P(b,"ul.en-todo-list > li",c);if(f||(f=dd(b,".en-todo",h.na(b)||c)))return d(f,!1),!0}if(e.collapsed)return b=a.lc(),a.H("paste").insertNode(b),m.ib(b),!0;k.$b();if((b=a.Fe().filter(function(a){return e.intersectsNode(a)}).reverse())&&
0<b.length)return b.map(function(b){a.D(b)}),!0;(b=U("div,li",c).filter(function(a){return e.intersectsNode(a)}))&&0<b.length&&(b.map(function(b){lb(b.textContent)||a.me(b)}),e=g.C(),g.T(b[0],0,e.endContainer,e.endOffset));return!0},enabled:function(){return g.hasFocus()&&!m.Ca()}}};a.V=function(){U(".en-preload").forEach(H)};a.Ja=function(b,c){1===c?V("en-todo",b).forEach(function(b){var c=a.lc();Zb(c,"en-todo-checked","true"==b.getAttribute("checked"));ec(b,c)}):(V("input[type=checkbox]",b).forEach(function(b){var c=
a.lc();Zb(c,"en-todo-checked",b.checked);ec(b,c)}),V('span[data-en-input-type="checkbox"]',b).forEach(function(b){var c=a.lc(),d=b.getAttribute("data-en-checked");Zb(c,"en-todo-checked","true"===d);ec(b,c)}),V('embed[type="evernote/x-todo"]',b).forEach(function(a){var c=kc(b,"img",{"class":"en-todo"});"true"===a.getAttribute("todo-checked")&&F(c,"en-todo-checked");ec(a,c)}))};a.Fa=function(a,c){if(1===c)V(".en-todo",a).forEach(function(c){var d=kc(a,"en-todo");E(c,"en-todo-checked")&&d.setAttribute("checked",
"true");ec(c,d)});else{var e;3===c&&(e=function(c){var d=kc(a,"span",{"data-en-input-type":"checkbox"});E(c,"en-todo-checked")?(d.setAttribute("data-en-checked","true"),d.appendChild(document.createTextNode("\u2713"))):d.appendChild(document.createTextNode("\u2610"));ec(c,d)});e&&V(".en-todo",a).forEach(function(a){e(a)})}}};function zg(){var a=this;a.name="transform";a.zb=function(c,b,d){function e(c){var d=[];3===b&&(V("meta",c).forEach(function(a){d.push(a)}),V("title,script,style,link,base,meta",c).forEach(H));var e=f.info||{};0<d.length&&(e.meta=d);Af(c);1!==b&&uf(c);wf(c);xf(c);vf(c);a.kb.K().forEach(function(d){d!==a&&d.Ja&&(f.Ee||"richlinks"!==d.name)&&d.Ja(c,b,e)});return c}C(0<b,"You need to set mode for export!");var f=D(d,{info:{},ee:3===b,Ee:!0});if(c instanceof DocumentFragment)return f.ee=!0,e(c);Bc(c)?
(d=c.ownerDocument.createRange(),d.selectNodeContents(c),d=d.extractContents(),e(d),c.appendChild(d)):e(c);f.ee||Cf(c);return c};a.fd=function(c,b,d){C(0<b,"You need to set mode for export!");var e=D(d,{info:{}},!1);Vc(c,"zoom");Nc(c,!1);a.kb.K().forEach(function(d){d!==a&&d.Fa&&d.Fa(c,b,e.info||{})});1===b&&uf(c)}};function Ag(){var a=this;a.name="clearly";a.G=null;a.F=function(c){a.G=D(c);F(a.G.root,"en-clearly-style-on")};a.V=function(){G(a.G.root,"en-clearly-style-on")}};function Bg(){this.name="hello";this.Ja=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&&w.warn("Hello note with multiple span style markers?");for(var b=b[0],d=0;d<b.childNodes.length;d++){var e=b.childNodes[d],f=Uc(e,"margin-top");f&&0>parseInt(f,10)&&T(e,"margin-top","0px")}}}};function Cg(){function a(a,d,e){this.za=sb(c.name);this.cb=a;this.fa=d;this.info={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.O=!1;this.Z(e);this.K=function(a){a.preventDefault()}}var c=this;c.name="richlinks";c.J={};a.prototype.I=
function(){if(this.A)return this.A;if(this.info&&"float"!==this.cb.be(this.info.displayType,this.info.url))return null;var a=this.cb.$d(this.info.displayType,this.info.url,this.info.linkText);C(a,"Link Handler "+this.cb.name+"didn't return an element from getElementForLink");var c;switch(this.info.displayType){case "en_rl_minimal":c="en-richlink-minimal";break;case "en_rl_small":c="en-richlink-small";break;default:c=""}this.A=M("div",{"class":"en-richlink "+c});this.A.appendChild(a);this.D(this.A);
this.A.setAttribute("data-en-richlink-reference",this.za);return this.A};a.prototype.$=function(){this.W||(this.W=this.J());return this.W};a.prototype.J=function(){var a=null;switch(this.cb.be(this.info.displayType,this.info.url)){case "inline":a=this.cb.$d(this.info.displayType,this.info.url,this.info.linkText);a.setAttribute("data-en-richlink-reference",this.za);F(a,"en-richlink");break;case "float":a=M("img",{"class":"en-richlink en-richlink-placeholder",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
hspace:"1"}),a.setAttribute("data-en-richlink-reference",this.za)}return a};a.prototype.pa=function(){return this.$()};a.prototype.M=function(a){function d(d,g,k,l){w.log("infoCallback json: "+k+" error: + "+g+" cacheResponse: "+a);if(!(g||a&&a.data&&a.data.info===k&&c.J[d]&&c.J[d].info===k)){var n={time:(new Date).getTime(),info:k};c.J[d]&&c.J[d].info===k||(c.J[d]=n);if(!(!f||a&&a.data&&a.data.info===k)){var t=c.name;n.href=d;n.module=t||"";Ge("saveInCache",n)}}e.info.newLink&&!g&&k&&k.title&&(n=
e.S,n.textContent&&n.textContent!==d||(t=document.createElement("textarea"),t.innerHTML=k.title,e.info.title=k.title,n.textContent=t.value));k||(l=!1,a&&a.data&&a.data.info?k=a.data.info:e.info.title&&(k={title:e.info.title}));(n=e.I())?e.cb.Yd(e.info.displayType,n,d,g,k,l):(n=(n=c.context.C())&&(e.pa()===n.endContainer||zc(e.pa(),n.endContainer)),e.cb.Yd(e.info.displayType,e.pa(),d,g,k,l),n&&(c.context.eh(e.pa()),c.context.dh(e.pa()),c.context.ya(!1,!0)))}w.log("loadInfo cacheResponse: "+a);var e=
this,f=!0===c.G.$g;if(c.J[e.info.url]&&c.J[e.info.url].info)d(e.info.url,null,c.J[e.info.url].info,!1),e.cb.Pc(e.info.url,c.J[e.info.url],d);else if(f)if(a)if(a.data)d(e.info.url,null,a.data.info,!1),e.cb.Pc(e.info.url,a.data,d);else{var g;e.info.title&&(g={info:{title:e.info.title}});e.cb.Pc(e.info.url,g,d)}else c.B.timeout(function(){var a=c.name,b={},b=b||{};b.href=e.info.url;b.module=a||"";Ge("getFromCache",b)});else e.cb.Pc(e.info.url,null,d)};a.prototype.D=function(a){var d=this;c.B.listener(a,
"click",function(a){"function"===typeof d.K&&"loading"!==d.info.state&&d.K.call(d,a)})};a.prototype.Z=function(a){a&&(C(eb(a)||eb(this.info),"Info param must be dictionary."),this.info=hb(this.info,a),this.ic=!1)};a.prototype.toJSON=function(){return{id:this.info.id,url:this.info.url,rect:N(this.pa()),reference:this.za,selected:this.O}};c.F=function(b){function d(a){P(a.target,"a[href]");this.cb.tf(a,this.info.url)||window.open(this.info.url,"_blank");a.preventDefault()}function e(a){var b=I(a)?a.getAttribute("data-en-richlink-reference"):
a.richlink,c=null;b&&(c=n[b]);c||(c=f(a,!1));return c}function f(b,e){var f,g,h;w.dump("createRichlink",b);if(!R(b,"a"))return w.log("input was not an anchor, can't create rich link"),null;f=b.getAttribute("href");g=b.textContent;var k=c.Oa(f);if(!k)return w.log("No linkhandler found for this url"),null;h=l[f]||{};h.url||(h.url=f);h.linkText=g;h.title||g===f||(h.title=g);var m;b.rev&&Object.keys(la).forEach(function(a){la[a]===b.rev&&(m=b.rev)});if(m)h.displayType=m;else if(e)h.displayType||(null!==
(f=P(b,"ul, ol, il, dl, td",null))?(w.log("Will minimally decorate link because found restricted parent: "+f),h.displayType="en_rl_minimal"):Ac(b)?(w.log("Will minimally decorate link because found text next to it."),h.displayType="en_rl_minimal"):h.displayType="en_rl_small"),b.rev=h.displayType;else return w.log("won't decorate since it's not yet a rich link"),null;if("en_rl_none"===h.displayType)return w.log("dispaly type is none, so do nothing"),null;if("en_rl_small"===h.displayType||"en_rl_minimal"===
h.displayType)w.log("Display type supported: "+h.displayType);else return w.log("Unsuported display type, so do nothing: "+h.displayType),null;h.attrs=rc(b);if(!h||!h.url)return w.log("Info data or url inside is missing to create a richlink element."),null;h.newLink=e;f=c.H("layer");h=new a(k,f,h);h.S=b;n[h.za]=h;h.K=d;return h}function g(a,b){return"https://tidy-access-109118.appspot.com/_ah/api/metadata/v1/hashmap_string_string/"+encodeURIComponent(a)+"/"+b}c.context=c.H("context");c.G=b;var h=
c.context.root;c.root=h;c.D=c.ia("undo");c.Tb=c.ia("io");var m=c.ia("auth"),k=c.ia("localizedtext");m.og(function(){c.Y()});this.Yb=[new Qf(m,k,g)];!0===b.Qg&&this.Yb.push(new Rf(k,g));c.B.A({name:"refresh",Ya:["richlinks"],P:!1,Sa:!0,action:function(){c.Y()},enabled:y});c.B.A({name:"convert",Ya:["richlinks"],P:!0,Sa:!1,action:function(){V("a:not(.en-richlink)",h).forEach(function(a){c.N(a,!0);Ie("content")})},enabled:y});c.B.A({name:"optionselected",Ya:["richlinks"],P:!1,Sa:!0,action:function(a){var b=
a;"{"===a[0]&&(b=D(a,{showEvent:null,selectedOptionId:null}));if(b.showEvent){a=c.Yb.length;for(var d=0;d<a;d++)if(c.Yb[d].name===b.showEvent.module){c.Yb[d].uf(b.showEvent.href,b.showEvent,b.selectedOptionId);break}}else w.log("richlinks.optionselected called without showEvent value")},enabled:y});c.B.A({name:"cacheddata",Ya:["richlinks"],P:!1,Sa:!0,action:function(a){w.log("richlinks.cacheddata");var b=a;"{"===a[0]&&(b=D(a,{cacheRequest:null,data:null}));if(b.cacheRequest){var c;a=b.cacheRequest.href;
var d={};for(c in n){var e=n[c],f=d[e.info.url];f||(d[e.info.url]=f=[]);f.push(e)}t=d;c=t[a]||[];a=c.length;for(d=0;d<a;d++)c[d].M(b)}else w.log("richlinks.cacheddata called without cacheRequest value")},enabled:y});var l=b.richlinks||{},n={},t=null;c.Y=function(){for(var a in n)n[a].M(null)};c.Od=function(a){t=null;if(ca(a)){var b=a;a={};for(var c=0;c<b.length;c++){var d=b[c];a[d.id]=d}}C(eb(a),"Expected dict for richlinkInfoDefaults",a);hb(l,a)};c.Bc=function(a){var b=window.getSelection();return U(".en-richlink",
a?a:h).map(function(a){var c=e(a);c.O=b&&!b.isCollapsed&&b.containsNode(a,!1);c.node=a;return c})};c.N=function(a,b){if(!R(a,"a"))return w.log("input was not an anchor, can't create rich link"),!1;if(!a.href)return w.log("Won't decorate link because href is null"),!1;if(0<a.childElementCount)return w.log("Won't decorate link because it has child elements"),!1;var d=f(a,b);if(!d)return w.log("Failed to create richlink for: "+a),!1;var g=d.pa();if(g){var h=c.H("layer");d.I()&&!c.ob&&(c.ob=!0,h.xd("img",
function(a){if(E(a,"en-richlink-placeholder")){var b=e(a),c=b.I();if(c&&!c.parentNode){h.Za(a,"anchor",c);b.lb||(b.lb=new qe(c,function(){w.log("resizeSensorCalled!");var a=b.pa(),d=c.offsetWidth+2;if(a.width!==d||a.height!==c.offsetHeight)a.style.cssText+=" width: "+d+"px !important; ",a.style.cssText+=" height: "+c.offsetHeight+"px !important; ",h.wa(!0)}));a=c.offsetWidth+2;var d=b.pa();if(d.width!==a||d.height!==c.offsetHeight)d.style.cssText+=" width: "+a+"px !important; ",d.style.cssText+=" height: "+
c.offsetHeight+"px !important; "}}},function(a){E(a,"en-richlink-placeholder")&&e(a)}));ec(a,g);if(b&&"en_rl_small"===d.info.displayType){var k=M("div",{});k.appendChild(M("br",{}));var l=g.parentNode?g.parentNode:c.root;I(l)&&pd(l)===g?qc(k,l):qc(k,g)}d.M(null);return!0}w.log("Failed to get live richlink element for: "+a)};c.Oa=function(a){for(var b=a.replace(/^(.*\/\/[^\/?#]*).*$/,"$1"),d=c.Yb.length,e=0;e<d;e++)if(c.Yb[e].hf(a,b))return c.Yb[e];return null};c.Ja=function(a,b){if(a.nodeType!==Node.ELEMENT_NODE&&
a.nodeType!==Node.DOCUMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return w.log("richlinks - not a transformable node type: "+a.nodeType),!1;if(!c.R(a)){var d=a.querySelectorAll("a:not(.en-richlink)");if(!d||0>=d.length)return!1}if(d=3===b){if(c.ua(a,d))return c.B.timeout(function(){Y(c.root,"setDirty");Ie("content")}),!0}else return c.ua(a,d);return!1};c.R=function(a){return R(a,"a")&&!E(a,"en-richlink")};c.ua=function(a,b){var d=!1;c.R(a)?(w.log("import node was an anchor"),d=c.N(a,b)):V("a:not(.en-richlink)",
a).forEach(function(a){d=c.N(a,b)||d});d&&c.H("layer").wa();return d};c.Fa=function(a,b){R(a)&&E(a,"en-richlink")?c.fa(a,b):V(".en-richlink",a).forEach(function(a){c.fa(a,b)})};c.fa=function(a,b){var c=e(a);if(c){var d=c.S;d?(d=d.cloneNode(!0),w.log("transformForExport - successfully replacing node"),3===b&&d.removeAttribute("rev"),ec(a,d),1===b&&c.info&&c.info.newLink&&"en_rl_small"===d.rev&&qc(document.createTextNode("\u00a0"),d)):H(a)}else w.log("transformForExport - couldn't find matching richlink")};
c.df=function(a){if(a&&0!==a.length){var b=a[a.length-1],d=b.parentNode,e=d.childNodes.length,f;I(d.parentNode)&&(f=d.parentNode.childNodes.length);var g=J(b)+1;setTimeout(function(){var b=!1;c.D.Xa(function(){for(var h=0;h<a.length;h++)b=c.Ja(a[h],3)||b;if(b)try{f&&f<d.parentNode.childNodes.length?(g=J(d)+1,d=d.parentNode):g+=d.childNodes.length-e,c.context.T(d,g),c.context.ya(!1,!0),Z.execCommand("rte.focus",null)}catch(k){w.log("failed to set selection")}},null);b||c.D.eg()},400)}}}};var Dg=function(){function a(a,c){this.eb=a;this.Na=c;this.Xf=c.baseURL+"/";this.pd={};this.Yc={}}var c=0;a.prototype.registerStringTable=function(a,c){C(!this.Yc[a],"Table is already defined",this.eb,a);this.Yc[a]=c};a.prototype.installCSS=function(a){var d="module-css-"+c++;a=M("link",{rel:"stylesheet",type:"text/css",id:d,href:a});document.querySelector("head").appendChild(a);this.pd[d]=a;return d};a.prototype.removeCSS=function(a){C(this.pd[a],"Could not find CSS with ID: "+a)};a.prototype.Wg=
function(a,c){C(v(a),"tableName must be a string.");C(ea(c),"stringMap must be a string map object.");C(!this.Yc[a],"This table already exists.");this.Yc[a]=c};a.prototype.localizedStringFromTable=function(a,c){C(a&&a.length&&c&&c.length,"Table and key must be valid strings.");return this.Yc[a][c]};a.prototype.localizedString=function(a,c){return this.localizedStringFromTable("default",a,c)};a.prototype.V=function(){Object.keys(this.pd).forEach(function(a){this.removeCSS(a)},this);this.pd={}};a.prototype.bundleURL=
function(a){return this.Xf+a};return a}();var Eg=function(){function a(a){this.eb=a}a.prototype.Td=function(){return"Module '"+this.eb+"': "};a.prototype.logAs=function(a,b){var d=Array.prototype.slice.call(arguments,1);null==this[a]?(this.error("Unrecognized log level: <"+a+">. Logging as error."),this.error.apply(this,d)):this[a].apply(this,d)};a.prototype.info=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this.Td());w.info.apply(null,a)};a.prototype.warn=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.Td());
w.warn.apply(null,b)};a.prototype.error=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.Td());w.error.apply(null,b)};return a}();function Fg(){this.draggingPasteData=this.draggingElement=this.draggingLocationY=this.draggingLocationX=this.draggingType=this.draggingState=null}
var Gg=function(){function a(a,b){this.K=b;this.I=[];this.A=[];this.B=a}a.prototype.Pf=3;a.prototype.W=function(a){for(var b=0;b<this.I.length;b++){var d=this.I[b];if(d.element===a)return d}return null};a.prototype.Eg=function(a,b,d,e,f){function g(a,c){var f=new Fg;f.draggingType=d;f.draggingLocationX=a;f.draggingLocationY=c;f.draggingElement=b;f.draggingPasteData=e;return f}if(this.W(b))C(!1,"The draggable element ",b," already registered.");else{var h=this,m=!1,k=0,l=null,n=!1,t=0,r=0,u=[],u=this.B.listener(b,
"mousedown",function(d){var e=d.pageX,p=d.pageY;m=!0;t=e;r=p;k=b.style.zIndex;b.style.zIndex=1E3;d=h.O(e,p);var q=h.M(d),e=g(e,p);e.draggingState=0;f(e);e.draggingState=0;q?(n=!q(e),l=d):h.K(a,e)}),p=this.B.listener(b,"mousemove",function(d){if(m){d.preventDefault();var e=d.pageX;d=d.pageY;var k=h.O(e,d),p=h.M(k),q=h.M(l),u=g(e,d);b.style.webkitTransform="translate("+(e-t)+"px, "+(d-r)+"px)";u.draggingState=1;f(u);n&&l?l=k:k?(l==k?(u.draggingState=1,p(u)):(u.draggingState=2,l?q&&q(u):h.K(a,u),u.draggingState=
0,n=!p(u)),l=k):(l?(q&&(u.draggingState=2,q(u)),u.draggingState=0):u.draggingState=1,h.K(a,u),l=null,n=!1)}}),q=this.B.listener(b,"mouseup",function(d){var e=d.pageX,p=d.pageY;m&&(d=h.O(e,p),d=h.M(d),e=g(e,p),p=!1,e.draggingState=3,p=!n&&d?!d(e):!h.K(a,e),e.draggingState=p?3:2,f(e),b.style.webkitTransform="",b.style.zIndex=k,l=null,m=!1)}),u=[u,p,q];this.I.push({element:b,eb:a,Zf:u})}};a.prototype.Xg=function(a){for(var b=0;b<this.I.length;b++){var d=this.I[b];if(d.element===a){var e=this;d.Zf.forEach(function(a){e.B.remove(a)});
this.I.splice(b,1);break}}};a.prototype.D=function(a,b,d){a=a.getBoundingClientRect();return b<a.left+document.body.scrollLeft||b>a.right+document.body.scrollLeft||d<a.top+document.body.scrollTop||d>a.bottom+document.body.scrollTop?!1:!0};a.prototype.O=function(a,b){for(var d=0;d<this.A.length;d++){var e=this.A[d];if(this.D(e.element,a,b))return e.element}return null};a.prototype.S=function(a){if(!a)return null;for(var b=0;b<this.A.length;b++){var d=this.A[b];if(d.element===a||yc(a,d.element))return d}return null};
a.prototype.M=function(a){return(a=this.S(a))?a.ug:null};a.prototype.Fg=function(a,b,d){this.S(b)?C(!1,"The drop handler for ",b," already registered."):this.A.push({element:b,eb:a,ug:d})};a.prototype.Yg=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}(),Hg=function(){function a(a,b){this.eb=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,d,e){this.J.Eg(this.eb,a,b,d,e)};a.prototype.removeDraggableElement=function(a){this.J.Xg(a)};a.prototype.makeElementDropContainer=function(a,b){this.J.Fg(this.eb,a,b)};a.prototype.removeDropContainer=function(a){this.J.Yg(a)};return a}();var Ig=function(){function a(a){this.tb=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 Wc(a,b)};a.prototype.setAppDataValue=function(a,b,d){Yc(a,b,d)};a.prototype.removeAppDataValue=function(a,b){Xc(a,b)};return a}();var Jg=function(){function a(a){this.I=a;this.B=new ef}a.prototype.F=function(){this.B.F({name:this.I+"-gesture-recognizer"})};a.prototype.V=function(){this.B.V()};a.prototype.A=function(a,b,d){return this.B.listener(a,"tap",b,d)};a.prototype.tapGestureRecognizer=function(a,b,d){return this.A(a,b,d?{touchCount:d}:d)};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,d){return this.B.listener(a,"press",b,d?{time:d}:null)};a.prototype.removeGestureRecognizerReference=function(a){this.B.remove(a)};return a}();var Kg=function(){function a(a){this.tb=a;this.oc=null}a.prototype.F=function(){pc(this.tb,document.createElement("div")).classList.add("en-module-content")};a.prototype.ge=function(a,b){this.oc&&this.tb.removeChild(this.oc);G(this.tb,"en-module-unknown");F(this.tb,a);var d=M("div",{});mc(d,b);this.oc=M("div",{"class":"en-module-overlay"});this.oc.appendChild(d);this.tb.appendChild(this.oc)};a.prototype.ye=function(){this.ge("en-module-broken","Broken module")};a.prototype.jh=function(){var a=this.tb.getAttribute("data-en-module-title"),
a=a&&a.length?a:"Unknown module";this.ge("en-module-unknown",a)};a.prototype.Ff=function(a){C(v(a),"Module title is required");this.ge("en-module-loading",'Loading "'+a+'"')};a.Kf=function(a){var b=a.querySelector(".en-module-content");C(b,"Element is not wrapped");Oa(a.childNodes).forEach(function(d){d!=b&&a.removeChild(d)});fc(b)};a.qf=function(a){a.style.cssText="border: 2px solid #CCC; background-color: #EEE; padding: 10px; color: #888;"};a.prototype.V=function(){var c=this.tb;G(c,"en-module-loading");
a.Kf(c);this.oc=this.tb=null;return c};return a}();var Lg=function(){function a(a,e,f){C(I(e),"Container required",e);this.I=e.cloneNode(!0);this.A=!1;this.module=null;this.element=e;this.elementID=f;this.scriptHandler=a;this.node=new b(this);this.gestureRecognizer=new c(f)}var c=Jg,b=Ig;a.prototype.F=function(){var a=this.scriptHandler.script;C(a,"ScriptHandler has no script?");C(!this.module,"Already setup?");this.gestureRecognizer.F();var b=null;try{b=a.createModule(this)}catch(c){w.error("Could not create new module.",this.scriptHandler.moduleName,
c),tb(c)}if(!b)return!1;["setupFromStore","setupWithInsertionData","saveENML"].forEach(function(a){C(da(b[a]),"Expected a module method",a,b.moduleName,b)});this.module=b;return!0};a.prototype.fh=function(){var a=!1;if(!this.F())return a;try{a=this.module.setupFromStore()}catch(b){w.error("Could not setup module",this.scriptHandler.moduleName,b),tb(b)}return a};a.prototype.ih=function(a){var b=!1;if(!this.F())return b;try{b=this.module.setupWithInsertionData(a)}catch(c){w.error("Could not setup module",
this.scriptHandler.moduleName,c),tb(c)}return b};a.prototype.V=function(){this.gestureRecognizer.V();var a=this.module;if(a){if(a.cleanup)try{a.cleanup()}catch(b){w.error("Could not cleanup module.",this.scriptHandler.moduleName,b),tb(b)}var c=this.scriptHandler.script;if(c.removedModule)try{c.removedModule(a)}catch(b){w.error("Could not remove module.",b),tb(b)}this.module=null}};a.prototype.ah=function(){function a(){for(var d=b.I.cloneNode(!0);d.firstChild;)c.appendChild(d.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(h){w.error("Could not serialize module. Using original content.",h),a(),tb(h)}}else a();g=this.node;g.setAppDataValue(c,"en-module-name",this.scriptHandler.moduleName);g.setAppDataValue(c,"en-module-title",this.scriptHandler.ae());g.setContentClass(c,"evernote.module");return c};a.prototype.removeModule=function(){this.element.parentElement.removeChild(this.element);
this.qd()};a.prototype.qd=function(){this.scriptHandler.Zg(this);this.V()};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.ae()+'"'));a.style.cssText="text-align: center; padding: 20px";return a};
return a}();var Mg=function(){function a(a,b){this.eb=a;this.R=b;this.A={};b.Ug(this)}a.prototype.V=function(){this.R.mh(this)};a.prototype.sendMessage=function(a,b,d){this.R.sendMessage(this,a,b,d)};a.prototype.registerMessageHandler=function(a,b){this.A[a]=b};a.prototype.tg=function(a,b,d){var e=this.A[a];if(!e)return w.log("Unexpected message received",a),!1;1==e.length?(e(b),d({})):e(b,d);return!0};return a}();var Ng=function(){function a(){this.A={};this.I={};this.K={}}var c=0;a.prototype.Ug=function(a){var c=a.eb.toLowerCase();C(!this.A[c],c,"App channel is already registered");this.A[c]=a};a.prototype.mh=function(a){a=a.eb.toLowerCase();C(!!this.A[a],a,"App channel is not registered");delete this.A[a]};a.prototype.sendMessage=function(a,d,e,f){a=a.eb.toLowerCase();w.log("Module",a,"sendMessage",d,e);d={type:"message",moduleName:a,messageName:d,data:e?e:{}};f&&(e=""+c++,this.I[a+":"+e]=f?f:null,d.messageID=
e);Ge("modulePublished",d)};a.prototype.sg=function(a){w.log("Module receives",a);eb(a)||(a=JSON.parse(a));C(eb(a),"Bad message payload",a);switch(a.type){case "message":this.M(a);break;case "reply":this.O(a)}};a.prototype.M=function(a){var c=this,e=a.moduleName,f=a.messageName,g=a.messageID,h=a.data;C(e&&f&&h,"Bad native message payload",a);if(a=this.A[e.toLowerCase()]){var m=function(){};if(g){var k=e+":"+g;this.K[k]=e;m=function(a){a={type:"reply",moduleName:e,messageName:f,messageID:g,data:a?
a:{}};delete c.K[k];Ge("modulePublished",a)}}a.tg(f,h,m)||m({})}else w.log("Module call failed - not loaded",e)};a.prototype.O=function(a){var c=a.moduleName,e=a.messageName,f=a.messageID,g=a.data;C(c&&e&&f&&g,"Bad native response payload",a);c=c+":"+f;(e=this.I[c])?(e(a.data),delete this.I[c]):w.log("Unexpected response received",a)};return a}();var Og=function(){function a(a,g,h,m,k){C(v(k.baseURL),"baseURL is required");C(ca(k.urls),"Array of urls is required");C(v(k.title),"Module title is required");this.O=a;this.Na=k;this.A={};this.script=this.K=this.I=null;this.moduleName=g;this.bundle=new b(g,k);this.console=new d(g);this.dragAndDrop=new e(g,m);this.nativeChannel=new c(g,h)}a.Ye=0;a.Qd=1;a.ed=2;a.Pd=3;var c=Mg,b=Dg,d=Eg,e=Hg;a.prototype.Dg=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.Na.mode,d=this.Na.baseURL,e=this.Na.urls;C(ca(e),"No script URLs provided");C(!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){C(this.state()==a.Qd,"Modules can only be registered once!",this.moduleName,b);C(this.moduleName===b.moduleName,"Module names do not match");C(!this.script,"Module is already setup?");["createModule","setup"].forEach(function(a){C(da(b[a]),'Expected a module method "'+a+'"',b.moduleName,b)});this.script=b;window.TEST&&(C(!!window.testHook_registerModuleScript,
"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleScript(this,b));try{b.setup(this)}catch(c){w.error("Could not setup script",this.moduleName,c),this.K=c,tb(c)}this.O.Wf(this.moduleName)};a.prototype.registerModuleLocalization=function(a,b,c){C(this.moduleName===a,"Module names do not match");window.TEST&&(C(!!window.testHook_registerModuleLocalization,"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleLocalization(a,b,c));
this.bundle.Wg(b,c)};a.prototype.state=function(){return this.K?a.Pd:this.script?a.ed:this.I?a.Qd:a.Ye};a.prototype.isReady=function(){return this.state()==a.ed};a.prototype.V=function(){try{this.script.cleanup()}catch(a){w.error("Could not cleanup script",this.moduleName,a),tb(a)}this.bundle.V();this.I=this.script=null};a.prototype.vg=function(a){return!!this.A[a]};a.prototype.bh=function(a){var b=this.A[a];return b?b.ah():(w.error("Could not serialize module. (Module could not be loaded?)",this.moduleName,
a),null)};a.prototype.hh=function(a,b){var c=!1,d=new Lg(this,a,b);d&&(this.A[b]=d,(c=d.fh())||d.qd());return c};a.prototype.gh=function(a,b,c){var d=!1;if(a=new Lg(this,a,b))this.A[b]=a,(d=a.ih(c))||a.qd();return d};a.prototype.M=function(){var a=this;return Oa(document.getElementsByClassName("en-module")).filter(function(b){return b.getAttribute("data-en-module-name")==a.moduleName})};a.prototype.rf=function(){var a=this.Na.localizedTitle;return a&&(C(v(a),"Title must be a string"),a.length)?a:
this.ae()};a.prototype.ae=function(){return this.Na.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:(w.warn("Requested module handler doesn't exist. Probably it is not loaded yet."),null)};a.prototype.Zg=function(a){delete this.A[a.elementID]};a.prototype.kh=function(a){var b=this.script.supportDropIntoEditorForType;return b?b(a):!1};return a}();function Pg(){var a=this;a.name="module";a.F=function(c){function b(b,c,d){var e=sb("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);h.ea(g);f.yd(g)}function d(b){C(b.ownerDocument==window.document,"Trying to setup loader for module of element that is not in DOM");var c=b.id;C(!a.N[c],"Loader is already setup?");b=new Kg(b);b.F();return a.N[c]=
b}function e(b,c){var e=c.id;C(a.N[e].tb==c,"Bad loader configuration");if(b.state()==Og.Pd)a.N[e].ye();else{C(b.state()==Og.ed,"Unexpected script state");var f=a.N[e];C(f,"This module did not go through the loader phase?");f=f.V();delete a.N[e];if(f.classList.contains("en-module-newly-inserted")){var g=a.Y[e];delete a.Y[e];if(b.gh(f,e,g)){G(f,"en-module-newly-inserted");return}}else if(b.hh(f,e))return;d(f).ye()}}var f=a.H("context"),g=a.H("query"),h=a.H("block"),m=f.root;c=D(c,{he:null});a.J=new Gg(a.B,
function(c,d){var e=a.D[c];if(!e||!e.kh(d.draggingType))return!1;switch(d.draggingState){case a.J.Pf: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.na(h);f=document.getElementById("en-note");f===e&&(e=uc(),0>=d.draggingLocationY?f.insertBefore(e,f.children[0]):f.appendChild(e));b(c,{type:d.draggingType,data:d.draggingPasteData},e)}return!0});a.R=new Ng;a.D={};a.N={};a.Y=
{};if(eb(c.he)){var k=c.he;Object.keys(k).forEach(function(b){var c=k[b];C(!a.D[b],"Script handler is already registered",b);a.D[b]=new Og(a,b,a.R,a.J,c)})}a.B.I("moduleScript",function(b){var c=b.moduleName;C(v(c)&&0<c.length,'Expected "moduleName" for module!',b);c=a.D[c];C(c,"Unexpected script registration",b);c.registerModuleScript(b)});a.B.I("moduleLocalization",function(b){var c=b.moduleName,d=b.tableName,e=b.stringMap;C(v(c),"moduleName must be a string.");var f=a.D[c];C(f,"Localization for unknown module",
b);f.registerModuleLocalization(c,d,e)});a.B.A({name:"module",action:function(a){a=Eb(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;v(e)?(f.U("insertparagraph").action(),d=g.na(f.C().startContainer),b(e,null,d)):w.error("No name for insert provided",d)}}return!0},value:function(a){var b=[];a&&(b=U("div.en-module",m).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.R.sg(b);return null},enabled:y});a.Wf=function(b){var c=a.D[b];C(c,"Unknown module",b);U("div.en-module",m).forEach(function(a){a.getAttribute("data-en-module-name")==b&&e(c,a)})};a.H("observer").xd("div.en-module",function(b){var c=b.getAttribute("data-en-module-name");if(b.getAttribute("data-en-module-name")){var f=d(b);if(c=a.D[c])switch(c.state()){case Og.Pd:f.ye();break;case Og.ed:e(c,b);break;case Og.Qd:f.Ff(c.rf());break;case Og.Ye:f.Ff(c.rf()),
c.Dg()}else f.jh()}else w.warn("Found module without a name.")},function(b){var c=b.getAttribute("data-en-module-name"),d=a.D[c];d?(b=d.xh(b.id))?b.qd():w.error("Could not find module handler.",b):w.error("Could not find script handler.",c)});a.Ja=function(a){U('div[en-content-class="evernote.module"]',a).forEach(function(a){var b="en-module-"+rb().toString(),c=Wc(a,"en-module-name"),d=Wc(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):w.warn("Could not read module's title.",c),a.setAttribute("id",b),a.setAttribute("contentEditable","false")):(w.error("Stripped damaged module without a type"),a.parentElement.removeChild(a))})};a.Fa=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{C(0!=d.length,"Malformed module found");var f=a.D[d];f&&f.vg(c)?(c=f.bh(c))?(Kg.qf(c),b.parentNode.replaceChild(c,b)):(w.error("Could not serialize module. Discarding module content!",d),b.parentNode.removeChild(b)):(C(a.N[c],"Element must be either handled by application or in unloaded state."),Kg.Kf(b),b.removeAttribute("class"),b.removeAttribute("data-en-module-name"),b.removeAttribute("id"),b.removeAttribute("contenteditable"),b.setAttribute("en-content-class","evernote.module"),Yc(b,"en-module-name",
d),e&&Yc(b,"en-module-title",e),Kg.qf(b))}})}}};function Qg(){function a(){b.B.timeout(function(){Gd(W())})}function c(){function c(a){if(!(a&&a.target&&a.target.getAttribute("data-en-smart-end"))||e.$a())return!1;var d=b.hasFocus();e.bc(!0);b.root.focus();var g=rd(b.root,O(b.root));sd(g);e.Va();f.$b();var g=Lc(yd(e.C())),h=!1;g?Q(g,m)||P(g,m)?h=!0:Q(g.lastElementChild,m)&&(h=!0):h=!0;h&&(b.root.appendChild(uc()),g=rd(b.root,O(b.root)),sd(g));Je(b.G.name,{focus:b.hasFocus(),showInput:!d});Pd(a);return!0}var e=b.qa().A("context"),f=b.qa().A("normalize");
b.B.I("selectionChange",b.Oa.bind(b));b.B.ha(b.root,"anyInput",function(){Y(b.root,"setDirty",!0)});if(b.G.smartHeight){var g=document.body,h=function(){var a=window.innerHeight-0-32;g.style.minHeight="";a>g.clientHeight&&(g.style.minHeight=a+"px")};h();b.B.I("windowResize",h,1E3)}b.G.smartScroll&&b.B.I("execCommand",function(b){-1!==za.indexOf(b.name)&&a()});b.G.smartList&&F(b.root,"en-smart-list");b.G.smartPlaceholder&&(h=function(){Zb(b.root,"en-note-is-empty",Nd(b.root))},h(),b.B.ha(b.root,"setDirty",
h));b.G.smartDelete&&b.B.ha(b.root,"beforeInput",function(a){if(!0!==a.fg){var c=a.Ia;c&&!1===c.collapsed&&(b.D.flush(),Z.execCommand("delete"),a.Ia=W(a.element),a.Nb.Pa=a.Ia.startContainer,a.Nb.offset=a.Ia.startOffset)}},0);if(!0===b.G.smartEnd){var m="img,object,embed,table,hr,.en-crypt,.en-crypto,.en-container,.en-module",h=null,k=b.G.smartEndSelector;null!=k&&(h=document.querySelector(k));null==h&&(h=M("div",{"class":"en-smart-end"}),b.root.parentNode.insertBefore(h,b.root.nextSibling));(function(a){a.setAttribute("data-en-smart-end",
"true");b.B.listener(a,"click",function(a){e.L()&&c.call(this,a)})})(h)}!0===b.G.smartEditMode&&(C(!1,"This is currently only supported for mobile"),h=null,null!=b.G.smartEndSelector&&(h=document.querySelector(b.G.smartEndSelector)),null==h&&(h=b.root.parentElement),b.B.listener(h,"tap",function(a){if(!c(a)){if(e.$a())a=!1;else if(e.bc(!0))a=void 0;else{var f;b:{var g=a.srcEvent;if(eb(g)&&g.pageX&&g.pageY)f=g.pageX-window.pageXOffset,g=g.pageY-window.pageYOffset,C(document.caretRangeFromPoint,"Missing document.caretRangeFromPoint function"),
f=document.caretRangeFromPoint(f,g);else{if(a.touches&&(g=a.touches,0<g.length&&g[0].pageX&&g[0].pageY)){f=g[0].pageX-window.pageXOffset;g=g[0].pageY-window.pageYOffset;C(document.caretRangeFromPoint,"Missing document.caretRangeFromPoint function");f=document.caretRangeFromPoint(f,g);break b}f=null}}f&&td(f,b.root)||(f=rd(b.root,0));b.root.focus();sd(f);Gd(f);b.Oa();b.Od();Je(b.G.name,{focus:b.hasFocus(),showInput:!0});Pd(a);a=!0}return a}},{$f:!0,Ae:2}))}var b=this;C(this instanceof Qg,"Use `new` to instantiate this class");
b.name="rte";b.F=function(a){b.G=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,phone:!1},mutationObserver:!1,undoOnIdle:6,cryptLegacy:!0,cryptReadOnly:!1,resources:null,smartScroll:!1,smartHeight:!1,smartDelete:!1,smartPlaceholder:!0,smartEnd:!1,smartEndSelector:null,
smartList:!1,smartMarginThreshold:24,smartEditMode:!1,imageConfig:{},selector:null,html:null,enml:null,modules:null,clearly:null,root:null,locale:null,richLinks:!1,richLinkCaching:!1,publicRichLinks:!1,zoomScale:1});b.G.imageConfig=D(b.G.imageConfig,{annotate:!1,imageClickEvents:!1,images:null,preview:!1,resize:!1,rotate:!1});var e=b.G.imageConfig;e.bubbleImageClicks=e.resize;v(b.G.selector)?b.root=document.querySelector(b.G.selector):b.root=b.G.root||document.getElementById("en-note")||document.body;
C(b.root&&I(b.root),"Root not valid!");C(I(b.root),"RTE root node required to be an HTML element! <$>");var f=b.qa();b.B.Wc({Ya:["rte","content"]});f.W(function(a){a.B.Wc({Ya:["rte","content"]})});b.Tb=null;b.Jg=!!(b.G.trackStateChanges||b.G.trackValueChanges||b.G.trackEnabledChanges);f.F(new If,{locale:a.locale});var g=new rf;f.F(g,{root:b.root,G:b.G});g.Ef(!b.G.active);f.F(new tf);var h=new Ef;f.F(h);f.F(new sf);f.F(new Ff);b.D=!0===b.G.mutationObserver?new jf:new hf;f.F(b.D,{element:b.root,qb:function(){g.Va();
return JSON.stringify(h.wd())},qc:function(a){g.Va();h.Cb(JSON.parse(a))}});b.J=new Gf;f.F(b.J);var m=b.G.tableResizing;b.G.imageResizing&&(e.resize=!0);var k=b.G.tableSelection;f.F(new se);b.fa=new ue;f.load(b.fa);f.F(new kf,{element:b.root});f.F(new Pf);f.F(new mg);f.F(new Yf);f.F(new Sf);f.F(new Tf);f.F(new Xf);f.F(new vg);f.F(new yg);f.F(new Wf);f.F(new pg);f.F(new og);f.F(new ug);f.F(new xg);f.F(new sg);f.F(new tg);f.F(new Bg);null!=b.G.modules&&f.F(new Pg,{he:a.modules});b.G.emoticons&&(Na("Use typebehind: { emoticon: true } instead of adding",
"emoticons: true directly to the rte options."),b.G.typebehind.emoticon=!0);f.F(new ig,b.G.typebehind);eb(b.G.resources)&&f.F(new qg,{resources:b.G.resources,smartMarginThreshold:b.G.smartMarginThreshold});!0===b.G.richLinks&&f.F(new Cg,{$g:b.G.richLinkCaching,Qg:b.G.publicRichLinks});a=new zg;f.F(a);var l=new ng,n=new jg;f.F(l);f.F(n);var t=b.G.html,r=b.G.enml;b.ua=!1;C(!(null!=t&&null!=r),"You can only provide one content type: html or enml");v(t)?(l.D(t),b.ua=!0):v(r)?(n.Xc(r),b.ua=!0):(b.G.skipMarkupTransform||
a.zb(b.root,2),Y(b.root,"setDirty",!1));e&&e.imageClickEvents&&f.F(new kg,e);e&&f.F(new lg,e);e&&e.resize&&(b.R=new we,g.$a()||f.F(b.R,e));e&&(e.annotate||e.preview||e.rotate)&&(b.N=new Se,g.$a()||f.F(b.N,e));k&&f.F(new wg);m&&(b.Y=new Hf,g.$a()||f.F(b.Y));b.fa&&f.F(b.fa);null!=b.G.clearly&&f.F(new Ag,{root:b.root});g.$a()||!0!==b.G.active||!0===b.G.smartEditMode||g.bc(!0);g.Fc();b.Fc();b.B.ha(b.root,"setDirty",function(a){b.Sf(a)});0<b.G.undoOnIdle&&b.B.O(function(){l.dc()&&b.D.flush()},b.G.undoOnIdle);
b.Od=function(){var a=g.hasFocus();a!==b.ob&&(Bb("focusChanged",{focus:a}),Je("content",{focus:a}));if(b.Jg){var c=b.Mg(),d=JSON.stringify(c);d!==b.Bc&&(b.Bc=d,Bb("styleChanged",c),c=c||{},c.module="content",c.selection=oe(document.body),Ge("styleChanged",c))}b.ob=a};c();b.G.placeholder&&b.root.setAttribute("data-en-placeholder",b.G.placeholder);b.D.clear();Y(b.root,"contentReady")};b.V=function(){b.Bc=null;vd();b.bb=null;b.ob=null;Nc(b.root,!1);b.fa=null;b.Y=null;b.G=null;b.root=null;b.J=null};b.Oa=
function(){try{var a={bb:b.bb},c=W(b.root);null!=c&&(b.bb=Ad(c));a.Ia=c;Y(b.root,"selectionChanged",a);b.Tb=b.B.timeout(b.Od,50,b.Tb)}catch(f){w.error("Exception in en.rte.didChangeSelection <$>:",f.toString())}};b.Sf=function(c){c=c||{};b.G.smartScroll&&!c.Sc&&a();b.B.M();b.Oa()};b.Mg=function(){function a(b,d,f){if(b&&b.length){for(var k={},l=0;l<b.length;l++){var n=b[l];k[n]=f(n)}k&&(c[d]=k)}}var c={},f=Ve;a(b.G.trackStateChanges,"state",f.state);a(b.G.trackValueChanges,"value",f.value);a(b.G.trackEnabledChanges,
"enabled",f.enabled);return c};b.selection=function(a){var c=W(b.root);a&&(b.bb&&sd(Bd(b.bb)),b.root.focus(),c=W(b.root));return c};b.cg=function(a,c){var f=!0;try{!0===a.focus&&b.selection(!0);var g=function(){f=!1!==c();!0!==a.Sa&&Y(b.root,"setDirty")};!0===a.P?b.D.Xa(g,a.G.title):("before"===a.P&&b.D.flush(),g(),"after"===a.P&&b.D.flush(a.G.title))}catch(h){tb(h)}return f||!1};b.hasFocus=function(){return b.qa().A("context").hasFocus()};b.Fc=function(){var a=b.J.pg();Object.keys(a).forEach(function(c){var f=
a[c];f.name=c;var g={name:c,P:f.P,Sa:f.Sa,Ta:f.Ta,action:function(a){a=b.J.execCommand.bind(b.J,c,!1,a);return b.cg(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=Db(a);a=jc(c.base);var d=jc(c.theirs),h=jc(c.mine),m=b.Qa.Mb("normalize");m&&(m.mc(a),m.mc(d),m.mc(h));for(var k,c=c.showChanges,l=Ce(d,a),n=Ce(h,a),h=[],d=[],l=l.slice(0),
n=n.slice(0),t=0,r=l.length;t<r;t++){for(var u=l[t],p=0,q=n.length;p<q;p++){k=n[p];var A=!1;if(u.baseIndex===k.baseIndex){var A=u,z=k;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))){d.push(k);break}else A=!0}else A="removeChildElement"===u.action,z="removeChildElement"===k.action,A=Ae(u,k)&&z&&!A||Ae(k,
u)&&!z&&A;if(A){u._conflict=!0;u._owner="theirs";u._conflictedWith=k;k._conflict=!0;k._owner="mine";k._conflictedWith=u;h.push(u);h.push(k);break}k=null}k?n.splice(p,1):d.push(u)}0<n.length&&(d=d.concat(n));0<h.length&&(d=d.concat(h));d.sort(De);k=Ee(d,a,c);m&&m.mc(a);return{conflicts:k.conflicts.length,result:k,html:qb(a)}},enabled:y});b.B.A({name:"focus",action:function(a){a=D(Db(a),{pos:null,force:!1,scroll:!1,animate:!1,value:null,clear:!1,selection:null,restoreLastSelection:!1});var c=b.qa().A("context");
if(!c.$a())if(!0===b.G.smartEditMode&&!1===c.L()&&c.bc(!0),a.clear)vd();else{if(a.selection)pe(document.body,a.selection);else if(a.restoreLastSelection&&b.bb)sd(Bd(b.bb));else if(!W(b.root)||a.force)b.root.focus(),"bottom"===a.pos?(c=document.createRange(),c.selectNodeContents(b.root),c.collapse(!1),sd(c)):b.bb&&!a.force?sd(Bd(b.bb)):sd(rd(b.root,0));a.scroll&&0!=O(b.root)&&Gd(W());return!0}},state:function(){return b.qa().A("context").hasFocus()},value:function(a){var c=b.qa().A("context").hasFocus();
if(c&&a&&"position"===a.type)return Fd(W());if(c)return b.name},Wb:!0,enabled:y});b.B.A({name:"blur",action:function(){b.root.blur();vd();var a=b.qa().A("context");!0===b.G.smartEditMode&&a.bc(!1);return!0},enabled:function(){return!!W(b.root)}});b.B.A({name:"active",action:function(a){a=Cb(a);var c=b.qa(),d=c.A("context"),h=!d.$a();h!==a&&window.getSelection().containsNode(b.root,!0)&&vd();d.Ef(!a);h&&!a&&(d.bc(!1),b.N&&b.N.sa&&c.V(b.N),b.R&&b.R.sa&&c.V(b.R),b.Y&&c.V(b.Y));!h&&a&&(vd(),!0!==b.G.smartEditMode&&
(d.bc(!0),b.N&&!b.N.sa&&c.F(b.N,b.G.imageConfig),b.R&&!b.R.sa&&c.F(b.R,b.G.imageConfig),b.Y&&c.F(b.Y)));return!0},state:function(){return!b.qa().A("context").$a()},enabled:y})}};var Z={},Rg=null,Sg=null;Z.sa=!1;
Z.F=function(a){!0===Z.sa&&Z.V();var c;try{a=D(a);Ve=new Ab;$e(a);We=Rg=new ff({A:Ve,G:a,uid:(new Date).getTime()});Sg=new ef;Sg.F({name:"document"});var b,d;a.template?(b=new rg,d=a.template):a.rte&&(b=new Qg,d=a.rte);(Ue=b)?(Rg.F(b,d),Sg.A({name:"bounds",enabled:y,value:function(){var a=N(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)}}),Rg.F(new Fe,{root:b.root})):w.error('Settings for "rte" or "template" are obligatory!');
null!=a.title&&(Rg.F(new Vf,a.title),Sg.I("titlechanged",function(a){Ie("title",{blur:!0===a.blur})}));null!=a.shared&&Rg.F(new lf,a.shared);null!=a.context&&Rg.F(new mf,a.context);null!=a["context-upsell"]&&Rg.F(new nf,a["context-upsell"]);null!=a["context-info"]&&Rg.F(new of,a["context-info"]);null!=a.accentuate?Rg.F(new xe,a.accentuate):Rg.F(new xe);null!=a.find&&Rg.F(new pf,a.find);null!=a.keyboard&&Rg.F(new qf,a.keyboard);a.analytics&&Rg.F(new Te,a.analytics);Sg.A({name:"note",action:function(a){var b=
Hd;a=Db(a);if(!eb(a)||!eb(b))return!1;b.note||(b.note={});hb(b.note,a);Bb("noteInfoChanged",b.note);return!0},value:function(a){var b=Hd;if(!eb(b))return null;b=b.note;return eb(b)?v(a)?b[a]:b:{}},enabled:y});Sg.A({name:"env",action:function(a){var b=Hd;if(!eb(a)||!eb(b))return!1;b.env||(b.env={});hb(b.env,a);return!0},value:function(a){var b=Hd;if(!eb(b))return null;b=b.env;return eb(b)?v(a)?b[a]:b:{}},enabled:y});document.body.setAttribute("data-en-lang",ib());var e;Sg.listener(window,"resize",
function(a){e||Bb("beforeWindowResize",{event:a});e=Sg.timeout(function(){e=null;Bb("windowResize",{event:a})},1E3/60*4,e)});Sg.listener(document,"selectionchange",function(a){Bb("selectionChange",{event:a})});Sg.I("contentInjected",function(){function a(){++c===d.length&&Ke()}var c=0,d=U("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-richlink-placeholder):not(.en-object-placeholder)",b.root);if(0===d.length)return Ke();d.forEach(function(b){b.naturalWidth||b.naturalHeight?a():(Sg.listener(b,
"load",a),Sg.listener(b,"error",a))})});Z.sa=!0;Sg.timeout(He);b&&b.ua&&Sg.timeout(function(){Bb("contentInjected")});c=!0}catch(f){c=!1,tb(f)}return c};Z.V=function(){if(!0!==Z.sa)w.error("Someone tried to call cleanup before setup!");else if(window.TEST){try{Ve.Jf(),Rg.S(),Rg=null,Sg.V(),We=Ve=Ue=null,Fb.R(),Hd={}}catch(a){tb(a)}Z.sa=!1}};
Z.execCommand=function(a,c,b){C(Z.sa,"Calling EN.setup before using commands is required");var d;try{a=a.toLowerCase(),d=Ve.action(a,c,b)}catch(e){tb(e)}return d||!1};Z.queryCommandState=function(a,c,b){C(Z.sa,"Calling EN.setup before using commands is required");var d;try{a=a.toLowerCase(),d=Ve.state(a,c,b)}catch(e){tb(e)}return d||!1};
Z.queryCommandValue=function(a,c,b){C(Z.sa,"Calling EN.setup before using commands is required");var d;try{a=a.toLowerCase(),d=Ve.value(a,c,b)}catch(e){tb(e)}return d||""};Z.queryCommandEnabled=function(a,c,b){C(Z.sa,"Calling EN.setup before using commands is required");var d;try{a=a.toLowerCase(),d=Ve.enabled(a,c,b)}catch(e){tb(e)}return d||!1};fa("EN.setup",Z.F);fa("EN.cleanup",Z.V);fa("EN.execCommand",Z.execCommand);fa("EN.queryCommandState",Z.queryCommandState);fa("EN.queryCommandValue",Z.queryCommandValue);fa("EN.queryCommandEnabled",Z.queryCommandEnabled);fa("EN.registerModuleScript",function(a){Bb("moduleScript",a)});fa("EN.registerModuleLocalization",function(a,c,b){Bb("moduleLocalization",{moduleName:a,tableName:c,stringMap:b})});fa("EN.getVersion",ia);fa("EN.getLastCommitDate",ja);fa("EN.isCompiled",function(){return!0});var Tg,Ug;
(function(){function a(){fb(g.querySelectorAll("img.en-todo"),function(a){var b=M("div");F(b,"en-print");F(b,"checkbox");E(a,"en-todo-checked")&&F(b,"checked");ec(a,b)})}function c(a){fb(g.querySelectorAll("embed"),function(b){var c=M("div");F(c,"en-print");switch(b.getAttribute("type")){case "evernote/x-pdf":F(c,"pdf");c.textContent=a.pdf_file;break;case "evernote/x-attachment":var d=b.getAttribute("id");null!=d&&d.match(/.*en-media:audio.*/)?(F(c,"audio"),c.textContent=a.audio_file):(F(c,"generic-attachment"),
c.textContent=a.generic_file);break;default:w.warn("Found <embed> with unknown type! "+b),F(c,"generic-attachment"),c.textContent=a.generic_file}ec(b,c)})}function b(){var a=d();null!=a&&null!=g||w.error("Couldnt find note body or print container!");g.innerHTML=g.innerHTML+a.innerHTML;fb(g.childNodes,function(a){F(a,"en-print")})}function d(){var a=document.querySelector("#en-note");return null==a?(w.warn("Could not find note!"),null):a}function e(){var a=M("br");F(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 r=0;2>r;r++)e=M("td"),d.appendChild(e)}c.setAttribute("id","header-table");F(c,"en-print");g.appendChild(c);var u=c.querySelectorAll("td");fb([[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]]){u[b[0]].innerHTML="";var c=M("span");F(c,"header-table-label");
c.textContent=b[1];var d=M("span");F(d,"header-table-text");d.textContent=" "+a[b[2]];u[b[0]].appendChild(c);u[b[0]].appendChild(d)}})}var g=null;Tg=function(d,m){null!=g&&(w.warn("Multiple unnecessary calls to setup print."),Ug());for(var k=0;k<document.body.childNodes.length;k++)I(document.body.childNodes[k])&&Zc(document.body.childNodes[k],!1);g=M("div");g.setAttribute("id","print-container");F(g,"en-print");k=document.querySelector("#container");k.parentNode.insertBefore(g,k);var l=D(m,{title:null,
notebook:null,created:null,updated:null,deleted:null,author:null,location:null,tags:null,url:null}),k=D(d,{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!=m&&""!==m&&(f(l,k),l=M("hr"),g.appendChild(l),e());l=document.querySelector("#en-title");if(null!=l&&null!=l.textContent){var l=l.textContent,n=M("div");n.setAttribute("id",
"header-title");F(n,"en-print");n.textContent=l;g.appendChild(n);e()}b();c(k);a();(k=Ue.qa().Mb("richlinks"))&&k.Fa(g,3);Ge("printReady",{module:"print"})};Ug=function(){null==g?w.warn("Print module teardown called while it was off!"):(H(g),g=null)}})();fa("EN.enablePrint",Tg);fa("EN.disablePrint",Ug); }).call(window); window.enLoadState = 'didLoad'; }
catch(ex) { window.enLoadState = "Exception: " + ex.toString() + '\n' + ex.stack + ''; }

