// Copyright 2013-2015 Evernote Corp. All rights reserved.
// http://www.evernote.com

window.enLoadState = 'willLoad';
try {(function(){ 'use strict';var q,aa=this;
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
b&&"undefined"==typeof a.call)return"object";return b}function ca(a){return"array"==ba(a)}function u(a){return"string"==typeof a}function da(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ea(a,b){var c=a.split("."),d=aa;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var g;c.length&&(g=c.shift());)c.length||void 0===b?d=d[g]?d[g]:d[g]={}:d[g]=b}
function fa(a,b){function c(){}c.prototype=b.prototype;a.mc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.fh=function(a,c,e){for(var f=Array(arguments.length-2),h=2;h<arguments.length;h++)f[h-2]=arguments[h];return b.prototype[c].apply(a,f)}};var v,ga;window.CE_VERSION_INFO={lastBuildNumber:5,lastCommitHash:"45620c356cd2234e99f2cf3541477a144c77090b",lastCommitDate:"2015-04-01 16:51:03 -0500"};(function(){function a(){}var b;window.evernoteClient&&(b=function(a){window.evernoteClient.log(Array.prototype.slice.call(arguments).join(" "))});if(b)v={log:b,info:b.bind(null,"INFO:"),warn:b.bind(null,"WARN:"),error:b.bind(null,"ERROR:")};else try{v={},v.log=window.console.log.bind(window.console),v.info=window.console.info.bind(window.console),v.warn=window.console.warn.bind(window.console),v.error=window.console.error.bind(window.console),v.trace=window.console.trace.bind(window.console),v.time=
window.console.time.bind(window.console),v.timeEnd=window.console.timeEnd.bind(window.console)}catch(c){v=window.console}v.time||(v.time=a);v.timeEnd||(v.timeEnd=a);v.trace||(v.trace=a);v.dump=function(a){var b=Array.prototype.slice.call(arguments).map(function(a){return u(a)?a:ha(a)});v.log.apply(v,b)};var d={};v.cf=function(a,b){var c={Zc:window.performance?window.performance.now():(new Date).getTime(),Ab:Array.prototype.slice.call(arguments,1).join(" ")||""};d[a]?d[a].push(c):d[a]=[c]};v.sh=function(a,
b){d[a]=[];v.cf.apply(this,arguments)};v.rh=function(a,b){function c(a){a=a.toString();var b=a.indexOf(".");return 0>b?a:a.substring(0,b+4)}v.cf.apply(this,arguments);for(var h=d[a],m=h[h.length-1].Zc-h[0].Zc,k=1;k<h.length;k++){var l=h[k].Zc-h[k-1].Zc;v.log("\u25fc "+a+"."+k+": "+c(l)+"ms ("+Math.round(100*l/m)+"% of "+c(m)+"ms full time)",h[k].Ab?"<-":"",h[k].Ab)}d[a]=[]};ga=v.warn}).call(aa);function ka(a){var b=la(arguments);b.unshift("DEPRECATION WARNING:");v.warn.apply(null,b)}
function x(a,b){if(!a){var c="Assertion failed! "+Array.prototype.slice.call(arguments,1).join(" ");v.error(c);throw c;}}function ma(a){try{if(u(a))return oa(a);var b=JSON.stringify(a,null,"  ")}catch(c){return a.toString()}return b}
function ha(a){if(a instanceof Text)return"<TextNode:"+ma(a.textContent)+">";if(a instanceof Element)return"<Element:"+a.outerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+">";if(a instanceof DocumentFragment){var b=document.createElement("div");b.appendChild(a.cloneNode(!0));return"<DocumentFragment:"+b.innerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+">"}return a instanceof Range?(b=document.createElement("div"),b.appendChild(a.cloneContents()),"<Range:"+ha(a.startContainer)+":"+a.startOffset+","+ha(a.endContainer)+
":"+a.endOffset+(a.collapsed?" collapsed":" not collapsed")+" "+ma(b.innerHTML)+">"):"<"+typeof a+":"+ma(a)+">"}function qa(a){return a instanceof RegExp?a.source:a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function oa(a){return"'"+a.replace(/[^\x20\x21\x23-\x26\x28-\x5B\x5D-\x7E]/gi,function(a){a=a.charCodeAt(0).toString(16);var c=a.length;return 1===c?"\\x0"+a:2===c?"\\x"+a:3===c?"\\u0"+a:"\\u"+a})+"'"}
var ra={"&apos;":/&apos;/gi,"&quot;":/&quot;/gi,"&gt;":/&gt;/gi,"&lt;":/&lt;/gi,"&amp;":/&amp;/gi,"&":/&/gi,"<":/</gi,">":/>/gi,'"':/"/gi,"'":/'/gi};function sa(a){return a.replace(ra["&apos;"],"'").replace(ra["&quot;"],'"').replace(ra["&gt;"],">").replace(ra["&lt;"],"<").replace(ra["&amp;"],"&")}function z(a,b){var c;if(a&&b)if(null!=a.length){c=0;for(var d=a.length;c<d&&b.call(a,a[c],c)!==ta;c++);}else"object"===typeof a&&Object.keys(a).every(function(c){return b.call(a,c,a[c])===ta?!1:!0})}
var ta={};function ua(a,b,c){if(b)for(var d in b)if(!c||void 0===a[d]){var g=b[d];void 0!==g&&(a[d]=g)}return a}function A(a,b,c){null==c&&(c=!0);if(null==a||""===a)a={};u(a)&&(a=JSON.parse(a)||{});x(B(a),"Options of wrong type");if(b){x(B(b),"Defaults of wrong type");var d,g=Object.keys(b);for(d in a)a.hasOwnProperty(d)&&!(0<=g.indexOf(d))&&c&&v.warn("Key",ma(d),"not supported! Seen in:",(a||{}).name||"",a);for(d in b)"undefined"===typeof a[d]&&(a[d]=b[d])}return a||{}}
function la(a,b){if(!b)return Array.prototype.slice.call(a,0);var c=a.length,d=[],g;if(b)for(g=c-1;0<=g;g--)d.push(a[g]);else for(g=0;g<c;g++)d.push(a[g]);return d}function va(a){return u(a)?0===a.length||/^[\x00-\x20\s]*$/g.test(a):!1}var wa=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?$/gi;
function xa(a){wa.lastIndex=0;return u(a)&&wa.test(a.trim())}function B(a){return!!a&&"object"===ba(a)}function ya(a){var b=a.indexOf(">"),c=a.lastIndexOf("<");return 0>b||0>c?a:a.substring(b+1,c)}function za(a){var b;if(u(a))b=document.createElement("div"),b.textContent=a;else if(a instanceof Node)b=a.ownerDocument.createElement("div"),b.appendChild(a.cloneNode(!0));else throw"Illegal argument type for en.toHTML";return ya(b.outerHTML)}var Aa=1;function Ba(a){window.setTimeout(a,0)}
function Da(a,b){var c;try{c=a()}catch(d){v.error("Exception:",d.toString()),b&&b(d)}return c}function Ea(){this.ha=[];this.jb=[]}q=Ea.prototype;q.keys=function(){return this.ha};q.has=function(a){return-1!==this.ha.indexOf(a)};q.get=function(a){a=this.ha.indexOf(a);return-1!==a?this.jb[a]:void 0};q.set=function(a,b){var c=this.ha.indexOf(a);-1!==c?this.jb[c]=b:(this.ha.push(a),this.jb.push(b))};q.remove=function(a){a=this.ha.indexOf(a);-1!==a&&(this.ha.splice(a,1),this.jb.splice(a,1))};
Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return g.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var d=Array.prototype.slice.call(arguments,1),g=this;c.prototype=this.prototype;b.prototype=new c;return b});function Fa(){return!1}function D(){return!0}var Ga=window.onerror;
window.onerror=function(a,b,c){var d=!1;Ga&&(d=Ga(a,b,c));v.error("Uncaught error in JS:",a.toString(),b,c);return d};var Ha="style bgcolor title lang dir text".split(" "),Ia="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(" "),Ja="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(" "),
Ka="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(" "),La=["0","0px","none","initial"],Ma=Ja.join(","),Oa=Ia.join(",");function Pa(){function a(a,b){a.d=A(b,{title:null,id:null})}function b(a){x(u(a)&&a===a.toLowerCase(),"Command name has to be lower case only.");var b=a.lastIndexOf("."),e=[];if(-1===b)(a=c[a])&&(e=a.filter(function(a){return!0!==a.Aa}));else{var f=a.substring(0,b);(a=c[a.substring(b+1)])&&(e=a.filter(function(a){return a.pa&&-1!==a.pa.indexOf(f)}))}return e}var c={};this.lf=function(a){x(B(a),"We require command to be an object:",a);var b=a.name;x(u(b)&&1<b.length&&!!b.match(/[a-z]+/gi),"Invalid name for command:",
ma(b));a.action&&x(!!a.enabled,'We require command to have "enabled" state:',a.name);x(!!(a.action||a.value||a.state),'We require command to have one of "action", "value" or "state":',a.name);x(!a.pa||ca(a.pa),"We require command groups to be an Array:",a.name);var e=c[b];e||(e=[],c[b]=e);x(ca(e),"Expected list for commands");e.push(a)};this.Ef=function(a){if(a&&c)for(var b=Object.keys(c||{}),e=0;e<b.length;e++){var f=b[e],h=c[f];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 c[f]:c[f]=h)}}else c={}};this.action=function(c,g,e){var f=null;Da(function(){var h=b(c);if(0!=h.length)for(var m=0;m<h.length;m++){var k=h[m];if(k.action&&k&&k.enabled&&!0===k.enabled.call(k,g)){var l={name:k.name,value:g||"",command:k};Qa("beforeexeccommand",l);a(k,e);k=k.action.call(k,g||"");f=null===f&&!1===k?!1:!0;l.result=k;Qa("execcommand",l)}}else v.warn("execCommand of unknown command:",c,g)},function(a){"complete"!==document.readyState?v.warn("Exception in execCommand <$>:",
a.toString()):v.error("Exception in execCommand <$>:",a.toString())});return f};this.enabled=function(c,g,e){var f=null;Da(function(){var h=b(c);if(h)for(var m=0;m<h.length;m++){var k=h[m];if(k.enabled){a(k,e);k=k.enabled.call(k,g);if(!0===k){f=!0;break}null===f&&!1===k&&(f=!1)}}else v.warn("queryCommandEnabled of unknown command:",c,g)},function(a){"complete"!==document.readyState?v.warn("Exception in queryCommandEnabled <$>:",a.toString()):v.error("Exception in queryCommandEnabled <$>:",a.toString())});
return f};this.state=function(c,g,e){var f=null;Da(function(){var h=b(c);if(h)for(var m=0;m<h.length;m++){var k=h[m];if(k.state){a(k,e);if(!0===k.state.call(k,g||"")){f=!0;break}f=!1}}else v.warn("queryCommandState of unknown command:",c,g)},function(a){"complete"!==document.readyState?v.warn("Exception in queryCommandState <$>:",a.toString()):v.error("Exception in queryCommandState <$>:",a.toString())});return f};this.value=function(c,g,e){var f=null;Da(function(){var h=b(c);if(h)for(var m=0;m<h.length;m++){var k=
h[m];if(k.value){a(k,e);k=k.value.call(k,g);if(null!=k){if(!u(k))try{f=JSON.stringify(k);break}catch(l){}f=k.toString();break}f=""}}else v.warn("queryCommandValue of unknown command:",c,g)},function(a){"complete"!==document.readyState?v.warn("Exception in queryCommandValue <$>:",a.toString()):v.error("Exception in queryCommandValue <$>:",a.toString())});return f}}function Ra(a){if(null==a||""==a)return!0;a=a.toString().trim().toLowerCase();return!("false"===a||"0"===a)}
function Sa(a){return B(a)?a:u(a)?0===a.indexOf("{")?JSON.parse(a)||{}:{value:a||""}:{}}function Ta(a){var b="";try{var c=a;u(c)&&(c=JSON.parse(c)||{});if(ca(c))return c;if(B(c))return[c]}catch(d){b=d}v.warn("Problems parsing value",a,b.toString());return null};function Ua(a,b,c){x(!!a,"Missing target to work with");x("function"==typeof b,"Listener must be a function");this.g=b;this.target=a;this.fa={};this.state=1;this.gd=!1;this.options=A(c||{},this.Va,!1)}function Va(a,b){return a===b?1:Math.abs(a)>=Math.abs(b)?0<a?2:4:0<b?8:16}function Wa(a,b){var c=void 0===a.x?["clientX","clientY"]:["x","y"],d=b[c[0]]-a[c[0]],c=b[c[1]]-a[c[1]];return Math.sqrt(d*d+c*c)}
function Xa(a,b){var c=void 0===a.x?["clientX","clientY"]:["x","y"];return 180*Math.atan2(b[c[1]]-a[c[1]],b[c[0]]-a[c[0]])/Math.PI}function Ya(a){var b=0,c=0,d=a.length;a.forEach(function(a){b+=a.clientX;c+=a.clientY});return{x:Math.round(b/d),y:Math.round(c/d)}}function Za(a){var b=[];a.touches.forEach(function(a){b.push({clientX:Math.round(a.clientX),clientY:Math.round(a.clientY)})});return{timeStamp:Date.now(),touches:b,uc:Ya(b),deltaX:a.deltaX,deltaY:a.deltaY}}
function $a(a,b){var c=Array.prototype.slice.call(a.targetTouches),d={};if(b&3&&1===c.length)return[c,c];var g=Array.prototype.slice.call(a.changedTouches);c.forEach(function(a){d[a.identifier]=!0});g.forEach(function(a){d[a.identifier]||(d[a.identifier]=!0,c.push(a))});return[c,g]}function ab(a){a.state=this.state;a.preventDefault=function(){a.wf.preventDefault()};a.stopPropagation=function(){a.wf.stopPropagation()};this.bd(a);this.g.call(this.target,a)}
var bb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function cb(a){a.preventDefault()}var db=0;Ua.prototype.Va={};Ua.prototype.Db=function(){return 1};Ua.prototype.bd=function(){};function eb(a,b){x(!!b,"Payload is missing, check proper flow when tryEmit is being used.");a.options.pf&&a.state&6&&!(a.state&8)?fb(a,!0):a.options.pf&&fb(a,!1);a.state&30&&ab.call(a,b)}
function fb(a,b){a.gd&&!b&&0>=--db?document.body.removeEventListener("touchmove",cb):!a.gd&&b&&0<++db&&document.body.addEventListener("touchmove",cb);a.gd=b}function gb(a,b,c){Ua.call(this,a,b,c);this.md=this.ld=0}fa(gb,Ua);gb.prototype.Va={type:"pan",va:1,ua:10,pf:!0,direction:30};
gb.prototype.Db=function(a){var b=this.state&6,c;if((c=a.touches.length===this.options.va)&&!(c=this.state&2)&&(c=!(this.state&2))){c=a.direction;var d=a.yc;a.direction&this.options.direction||(this.options.direction&6?(d=a.deltaX,c=0===d?1:0>d?2:4):(d=a.deltaY,c=0===d?1:0>d?8:16),d=Math.abs(d));c=!!(d>this.options.ua&&c&this.options.direction)}if(b&&(a.T&8||!c))return this.state|16;if(b||c)return a.T&4?this.state|8:this.state&2?this.state|4:(this.ld=a.deltaX,this.md=a.deltaY,2);this.md=this.ld=0;
return 32};gb.prototype.bd=function(a){a.deltaX-=this.ld;a.deltaY-=this.md;2===this.state&&(a.Pe=!0)};function hb(a,b,c){Ua.call(this,a,b,c)}fa(hb,Ua);hb.prototype.Va={type:"pinch",va:2,ua:0};hb.prototype.Db=function(a){var b=this.state&6,c=a.touches.length===this.options.va&&(Math.abs(a.scale-1)>this.options.ua||this.state&2);return b&&(a.T&8||!c)?this.state|16:b||c?a.T&4?this.state|8:this.state&2?this.state|4:2:32};hb.prototype.bd=function(a){this.state&8&&(a.vg=!0)};
function ib(a,b,c){Ua.call(this,a,b,c)}fa(ib,hb);ib.prototype.Va={type:"rotate",va:2,ua:0};function jb(a,b,c){Ua.call(this,a,b,c)}fa(jb,Ua);jb.prototype.Va={type:"swipe",ua:10,qc:.65,direction:30,va:1};
jb.prototype.Db=function(a){var b=this.options.direction,c=0;b&30?c=a.qc:b&6?c=a.velocityX:b&24&&(c=a.velocityY);var d=this.state&6,b=a.touches.length===this.options.va&&a.T&4&&a.yc>this.options.ua&&b&a.direction&&Math.abs(c)>this.options.qc;return d&&(a.T&8||!b)?this.state|16:d||b?a.T&4?this.state|8:this.state&2?this.state|4:2:32};function kb(a,b,c){Ua.call(this,a,b,c)}fa(kb,Ua);kb.prototype.Va={type:"tap",va:1,time:250,ua:5};
kb.prototype.Db=function(a){return a.touches.length===this.options.va&&a.yc<this.options.ua&&a.cg<this.options.time&&a.T&4?8:32};kb.prototype.bd=function(a){a.count=1};function lb(a,b,c){Ua.call(this,a,b,c);this.dd=null;this.rc=void 0}fa(lb,Ua);lb.prototype.Va={type:"press",va:1,time:500,ua:5};
lb.prototype.Db=function(a){var b=a.touches.length===this.options.va&&a.yc<this.options.ua;if(b&&a.T&1){var c=this;clearTimeout(this.dd);this.rc=a;this.dd=setTimeout(function(){c.state=8;eb(c,c.rc)},this.options.time)}else b&&a.T&2?this.rc=a:(clearTimeout(this.dd),this.rc=void 0);return 32};function mb(a,b){return a.classList.contains(b)}function E(a,b){a.classList.add(b)}function nb(a,b){a.classList.remove(b);0===a.className.length&&a.removeAttribute("class")}function ob(a,b,c){void 0!==c?c?E(a,b):nb(a,b):(a.classList.toggle(b),0===a.className.length&&a.removeAttribute("class"))}function F(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function pb(a){return G(a)?la(a.childNodes):[]}function qb(a){return G(a)&&a.firstChild?qb(a.firstChild):a}
function rb(a){return G(a)&&a.lastChild?rb(a.lastChild):a}function sb(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function tb(a,b){var c=a.parentNode;c&&c.replaceChild(b,a);return b}function ub(a){if(a){for(;a.firstChild;)a.parentNode.insertBefore(a.removeChild(a.firstChild),a);F(a)}}function vb(a,b){for(;a.firstChild;)b.appendChild(a.firstChild)}function wb(a){for(var b=a.ownerDocument.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);return b}
function xb(a,b){sb(b);for(var c=b.ownerDocument.createDocumentFragment();a.firstChild;)c.appendChild(a.firstChild);b.appendChild(c)}function yb(a,b){vb(a,b);a.appendChild(b)}
function zb(a,b){x(G(a),"<$>");b=b.toLowerCase();if(I(a)===b||!a.parentNode)return a;for(var c=a.ownerDocument.createElement(b),d=0;d<a.attributes.length;d++)c.setAttributeNS(a.attributes[d].namespaceURI,a.attributes[d].name,a.attributes[d].value);x(G(a),"<$>");x(G(c),"<$>");x(!c.hasChildNodes(),"new node has to be empty <$>");a.parentNode.insertBefore(c,a);vb(a,c);F(a);return c}
function Ab(a,b,c,d){a instanceof Document||(a=a.ownerDocument);b=a.createElement(b?b.toString().toLowerCase():"div");if(c)for(var g in c)if(u(g)){var e=c[g];u(e)?b.setAttribute(g,e):v.warn("Provide a string as attribute value",g,e)}if(d)if(u(d))ka("You should not use innerHTML feature of en.node.make due to security concerns!",ha(b),ha(d)),b.innerHTML=d;else if(ca(d))for(c=0;c<d.length;c++)(g=d[c])&&(u(g)?b.appendChild(a.createTextNode(g)):b.appendChild(g));else throw"Unsupported type for opt_inner";
return b}function J(a,b,c){return Ab(document,a,b,c)}function Eb(a){if(!a)return null;if(a.previousSibling){for(a=a.previousSibling;a.hasChildNodes();)a=a.lastChild;return a}return a.parentNode&&1==a.parentNode.nodeType?a.parentNode:null}function Fb(a,b){if(null===a)return null;b||(b=b||document.body);if(void 0===a)for(a=b;a.lastChild;)a=a.lastChild;else a=Eb(a);return Gb(a,b)?a:null}
function Hb(a){if(!a)return null;if(a.hasChildNodes())return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function Ib(a,b){if(null===a)return null;b||(b=b||document.body);void 0===a&&(a=b);a=Hb(a);return Gb(a,b)?a:null}function Jb(a){return!(!a||3!==a.nodeType)}function G(a){return!(!a||!a.nodeType||1!==a.nodeType)}function Gb(a,b){return b&&a?!!(a.compareDocumentPosition(b)&8):!1}function Kb(a,b){return b&&a?!!(a.compareDocumentPosition(b)&16):!1}
function Lb(a){return!(!a||!a.isEqualNode(document.documentElement)&&!Gb(a,document.documentElement))}function Mb(a){try{if(a&&(G(a)||(a=a.parentNode),a))return window.getComputedStyle(a)}catch(b){}return null}
function L(a){if(!a)return null;var b=null,c=a.nodeType;if(null!=c){var d=a;1===c?b=d.getBoundingClientRect():(a=document.createRange(),a.selectNode(d))}null==b&&(d=a.getClientRects(),0<d.length?b=d[0]:Jb(a.endContainer)&&0<a.endContainer.length?(b=a.cloneRange(),b.endOffset=Math.min(b.endOffset+1,b.endContainer.length),b.startOffset=Math.max(b.startOffset-1,0),b=b.getBoundingClientRect()):(d=Nb(a),Jb(d)?(b=a.cloneRange(),a=Math.min(1,d.length),b.setEnd(d,a),b=b.getBoundingClientRect()):G(d)&&(b=
d.getBoundingClientRect())));d=document.body.scrollLeft;a=document.body.scrollTop;b&&(b={left:b.left+d,right:b.right+d,top:b.top+a,bottom:b.bottom+a,width:b.width,height:b.height});return b}function Ob(a){return(a=Mb(a))&&a.display?"block"===a.display.toLowerCase():!1}function Pb(a){return!(!a||!M(a,Oa)&&9!==a.nodeType&&11!==a.nodeType)}function I(a){return a&&a.tagName?a.tagName.toLowerCase()||void 0||"":""}function Qb(a,b){return a&&a.getAttribute?a.getAttribute(b)||void 0||"":""}
function O(a){for(var b=0;a=a.previousSibling;)b++;return b}function Q(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 R(a,b,c){c||(c=document.body);return a===c?null:M(a,b)?a:(a=a&&a.parentNode)?R(a,b,c):null}function Rb(a,b){return R(a.parentNode,Pb,b)}function M(a,b){return a&&b?b instanceof Function?b(a):G(a)&&u(b)?a.webkitMatchesSelector(b):!1:!1}function S(a,b){return b?I(a)===b:G(a)}
function T(a){return"br"===I(a)}function Sb(a,b){return!0===b?!!R(a,Sb):G(a)?"true"===a.contentEditable:!1}function Tb(a,b){a.contentEditable=b?"true":"inherit";b||a.removeAttribute("contenteditable")}var Ub={};function Vb(a){var b=Ub[a];b||(b=new RegExp("(^|;)\\s*("+qa(a)+")\\s*\\:\\s*(.*?)($|;)+","gi"),Vb[a]=b);return b}function Wb(a){a&&a.hasAttribute&&a.hasAttribute("style")&&(a.getAttribute("style").trim().length||a.removeAttribute("style"))}
function Xb(a,b){var c=a&&a.getAttribute?a.getAttribute("style"):"";if(null==c)return null;c=Vb(b).exec(c);return null===c?null:c[3].trim()}function U(a,b){var c=a&&a.getAttribute?a.getAttribute("style"):"";if(null==c)return"";c=c.replace(Vb(b),"$1").trim();0<c.length?a.setAttribute("style",c):a.removeAttribute("style");return c||""}function V(a,b,c){var d=U(a,b);null!=c&&(d=d.trim(),d.length&&";"!==d[d.length-1]&&(d+=";"),a.setAttribute("style",d+b+":"+c+";"))}
function Yb(a,b){G(a)&&a.style?(a.style.display=b?"":"none",Wb(a)):v.warn("Failed to set visibility on non HTML element",a)}function Zb(){var a;a="span";x(u("-evernote-sentoj-emoji")||!0);return a+'[style*="-evernote-sentoj-emoji"]'}function $b(a){a=W(Zb(),a,!0);return a=a.filter(function(a){return"true"===Xb(a,"-evernote-sentoj-emoji")})}function ac(a){for(var b=[];a&&a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;return b}
function W(a,b,c){b||(b=document);try{return la(b.querySelectorAll(a),c)}catch(d){throw 0===d.toString().indexOf("Uncaught error in JS: SyntaxError: DOM Exception 12")&&v.error("Wrong syntax in selector:",a),d;}}function X(a,b){return W(a,b,!0)}function bc(a,b,c){for(;a=Ib(a,c);)if(M(a,b))return a;return null}function cc(a,b,c){for(;a=Fb(a,c);)if(M(a,b))return a;return null}var dc=/^[\t\n\r ]+$/;function ec(a){return Jb(a)&&(""===a.data||dc.test(a.data))}
function fc(a){for(var b;a&&(b=a.firstChild);)a=b;return a}function gc(a,b){var c=J("div",{style:"position: absolute; width: 1px; height: 1px; top: -9999px; left: -9999px;"});c.appendChild(a);document.body.appendChild(c);b(a);F(a);F(c)}function hc(a,b,c){c=c||document.body;var d;if(!Gb(a,c)){do if(G(a)&&a.hasAttribute("style")&&(d=a.style[b],null!=d))break;while((a=a.parentNode)&&c===a)}return d||""}
function ic(a,b){var c;c=c||document.body;b=b||0;a=a||0;if(0===b)c.scrollTop=a;else{var d=c.scrollTop,g=a-d,e=0,f=function(){e+=20;var a;a=e;a/=b/2;1>a?a=g/2*a*a+d:(a--,a=-g/2*(a*(a-2)-1)+d);c.scrollTop=a;e<b&&window.setTimeout(f,20)};f()}}function jc(a,b){if(!G(a))return!1;var c=window.scrollY,d=c+window.innerHeight;null==b&&(b=55);var g=a.getBoundingClientRect().top+c,e=a.getBoundingClientRect().bottom+c,c=Math.max(c,g),d=Math.min(d,e);return Math.max(0,Math.round((d-c)/(e-g)*100))>=b}var kc=new Ea;
function lc(a,b){var c=kc.get(a);c||(c={},kc.set(a,c));b&&!c.id&&(c.id=(Aa++).toString());return c};function mc(a,b,c,d){var g=document.createRange();void 0!==a&&(g.setStart(a||null,b||0),c?g.setEnd(c||null,d||0):g.setEnd(a||null,b||0));return g}function nc(a,b){if(a&&(!b||oc(a,b))&&a){var c=window.getSelection();c.removeAllRanges();c.addRange(a)}}function Y(a){var b=window.getSelection();if(1>b.rangeCount)return null;b=b.getRangeAt(0);return a&&b&&!oc(b,a)?null:b?b.cloneRange():null}function pc(a){var b=document.createRange();b.selectNode(a);nc(b)}
function qc(){window.getSelection().removeAllRanges()}function oc(a,b){return(a.startContainer===b||Gb(a.startContainer,b))&&(a.endContainer===b||Gb(a.endContainer,b))}function rc(a){return a?Jb(a.startContainer)?a.startContainer:a.startContainer.childNodes[a.startOffset]||a.startContainer:null}function Nb(a){return a?Jb(a.endContainer)?a.endContainer:a.endContainer.childNodes[a.endOffset]||a.endContainer.lastChild||a.endContainer:null}
function sc(a,b){return null==a||null==b?!1:a.startContainer===b.startContainer&&a.startOffset===b.startOffset&&a.endContainer===b.endContainer&&a.endOffset===b.endOffset?!0:!1}function tc(a){return a?{startContainer:a.startContainer,startOffset:a.startOffset,endContainer:a.endContainer,endOffset:a.endOffset,collapsed:a.collapsed}:null}function uc(a){if(!a)return null;try{var b=mc(a.startContainer,a.startOffset,a.endContainer,a.endOffset)}catch(c){b=null}return b}
function wc(a,b){function c(a,b){var c=document.createNodeIterator(d,window.NodeFilter.SHOW_TEXT),g;for(a=Math.max(0,b?a:a-1);0<=a&&(g=c.nextNode());)a-=g.length;return g?{Ua:g,offset:a+g.length+(b?0:1)}:null}var d=b||a.root||document.body,g=a.hasOwnProperty("len")?a.len:a.end-a.start,e=a.start,g=a.hasOwnProperty("end")?a.end:e+g,f=c(e,!0),h=f;e!==g&&(h=c(g,!1));return f&&h?mc(f.Ua,f.offset,h.Ua,h.offset):null}
function xc(a,b){if(!a||a.collapsed)return[];for(var c=[],d=a.startContainer;d&&a.intersectsNode(d);d=Ib(d))b&&!M(d,b)||c.push(d);return c}function yc(a){if(a){var b=document.body.scrollTop,c=window.innerHeight,d;d=b+c;var g;g=(g=zc.env)&&null!=g.editorInset?g.editorInset:{top:0,bottom:0,left:0,right:0};a=L(a);var e=Math.min(24,c/12),f=e/2,h=null;a.bottom+f>d?h=Math.max(0,a.bottom-c+e):a.top-f<b&&(h=Math.max(0,a.top-e));null!=h&&(h!=g.top||0==g.top&&0==h)&&(document.body.scrollTop=h)}}
function Ac(a,b){var c=a.startContainer,d=9==c.nodeType?c:c.ownerDocument,c=d.createElement("div");c.innerHTML=b;for(var d=d.createDocumentFragment(),g;g=c.firstChild;)d.appendChild(g);return d}function Bc(a,b){var c=R(a,"table,ul,ol",b);if(null!==c)return c;for(;Jb(a);)a=a.parentNode;return a}function Cc(a,b){var c=rc(a),d=Nb(a),c=Bc(c,b),d=Bc(d,b);if(c===d)return[c,d];var g=ac(c),e=ac(d);if(g[0]!==e[0])return[c,d];for(var f=0;f<g.length;f++)if(g[f]!==e[f])return[g[f],e[f]];return[c,d]}
Range.prototype.createContextualFragment||(Range.prototype.createContextualFragment=function(a){Ac(this,a)});Range.prototype.compareNode||(v.warn("Range.compareNode has been added by polyfill!"),Range.prototype.compareNode=function(a){var b=a.ownerDocument.createRange();try{b.selectNode(a)}catch(c){b.selectNodeContents(a)}a=1===this.compareBoundaryPoints(Range.START_TO_START,b);b=-1===this.compareBoundaryPoints(Range.RANGE_END_TO_END,b);return a&&!b?0:!a&&b?1:a&&b?2:3});var Dc="click rightclick dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave selectstart wheel keypress keydown keyup blur focus deactivate domfocusin domfocusout change select submit input propertychange dragstart drag dragenter dragover dragleave drop dragend touchstart touchmove touchend touchcancel beforeunload consolemessage contextmenu domcontentloaded error help load losecapture orientationchange readystatechange resize scroll unload hashchange pagehide pageshow popstate copy paste cut beforecopy beforecut beforepaste online offline message connect webkitanimationstart webkitanimationend webkitanimationiteration webkittransitionend pointerdown pointerup pointercancel pointermove pointerover pointerout pointerenter pointerleave gotpointercapture lostpointercapture msgesturechange msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup text textinput compositionstart compositionupdate compositionend exit loadabort loadcommit loadredirect loadstart loadstop responsive sizechanged unresponsive visibilitychange storage domsubtreemodified domnodeinserted domnoderemoved domnoderemovedfromdocument domnodeinsertedintodocument domattrmodified domcharacterdatamodified selectionchange abort blur change click copy cut drag drop focus gesturestart gesturechange gestureend pageshow mousemove mousedown mouseup mouseover mouseout orientationchange pagehide pageshow paste reset selection submit touchcancel touchend touchmove touchstart unload pagehide".split(" "),
Ec={},Fc=1,Gc="data"+(new Date).getTime(),Hc=1;function Ic(a){var b=a[Gc];b||(b=a[Gc]=Fc++,Ec[b]={});return Ec[b]}function Jc(a){var b=a[Gc];if(b){delete Ec[b];try{delete a[Gc]}catch(c){a.removeAttribute&&a.removeAttribute(Gc)}}}
function Kc(a){if(!a||!a.stopPropagation){var b=a||window.event;a={};for(var c in b)a[c]=b[c];a.type=a.type.toLowerCase();a.target||(a.target=a.srcElement||document);a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;a.preventDefault=function(){a.returnValue=!1;a.isDefaultPrevented=D};a.isDefaultPrevented=Fa;a.stopPropagation=function(){a.cancelBubble=!0;a.isPropagationStopped=D};a.isPropagationStopped=Fa;a.stopImmediatePropagation=function(){a.isImmediatePropagationStopped=D;a.stopPropagation()};
a.isImmediatePropagationStopped=Fa;null!=a.clientX&&(b=document.documentElement,c=document.body,a.pageX=a.clientX+(b&&b.scrollLeft||c&&c.scrollLeft||0)-(b&&b.clientLeft||c&&c.clientLeft||0),a.pageY=a.clientY+(b&&b.scrollTop||c&&c.scrollTop||0)-(b&&b.clientTop||c&&c.clientTop||0));a.which=a.charCode||a.keyCode;null!=a.button&&(a.button=a.button&1?0:a.button&4?1:a.button&2?2:0)}return a}
function Lc(a,b){function c(a){for(var b in a)return!1;return!0}var d=Ic(a);0===d.I[b].length&&(delete d.I[b],document.removeEventListener?a.removeEventListener(b,d.nb,!1):document.detachEvent&&a.detachEvent("on"+b,d.nb));c(d.I)&&(delete d.I,delete d.nb);c(d)&&Jc(a)}
function Mc(a,b,c,d){b=b.toLowerCase();var g=Ic(a);g.I||(g.I={});g.I[b]||(g.I[b]=[]);c.Hc||(c.Hc=Hc++);g.I[b].push(c);g.nb||(g.disabled=!1,g.nb=function(b){if(!g.disabled){b=Kc(b);var c=g.I[b.type];if(c)for(var d=0;d<c.length;d++)c[d].call(a,b)}});1==g.I[b].length&&(a.addEventListener?a.addEventListener(b,g.nb,!0===d):a.attachEvent&&a.attachEvent("on"+b,g.nb))}
function Nc(a,b,c){var d=Ic(a);if(d.I)if(b){b=b.toLowerCase();var g=d.I[b];if(g){if(c){if(c.Hc)for(d=0;d<g.length;d++)g[d].Hc===c.Hc&&g.splice(d--,1)}else d.I[b]=[];Lc(a,b)}}else for(g in d.I)b=g,d.I[b]=[],Lc(a,b)}function Oc(a){a.preventDefault();a.stopPropagation();return!1};function Pc(a,b,c){if("undefined"===typeof c||0===+c)return Math[a](b);b=+b;c=+c;if(isNaN(b)||"number"!==typeof c||0!==c%1)return NaN;b=b.toString().split("e");b=Math[a](+(b[0]+"e"+(b[1]?+b[1]-c:-c)));b=b.toString().split("e");return+(b[0]+"e"+(b[1]?+b[1]+c:c))}Math.Ta||(Math.Ta=function(a,b){return Pc("round",a,b||0)});Math.eg||(Math.eg=function(a,b){return Pc("floor",a,b||0)});Math.Yf||(Math.Yf=function(a,b){return Pc("ceil",a,b||0)});var Qc=/^(\d*\.?\d*)(px|em|\%|pt)?$/,Rc=0,Sc=0;
function Tc(a){var b=null;if("number"===typeof a)b={Ia:"px",value:a,ib:a.toString(),Vc:a||null};else{var c=Qc.exec(a);c&&(b={Ia:c[2]||"px",value:parseFloat(c[1]),ib:c[1],Vc:a||null})}return b}function Uc(a){a=a||document.body;a=Mb(a);Rc=Tc(a.fontSize).value;x(!!Rc,"Did not find base font size",Rc,a.fontSize);a=J("div",{style:"height: 100pt; left: -100%; position: absolute; top: -100%; width: 100pt; "});document.body.appendChild(a);Sc=a.offsetHeight/100;x(!!Sc,"Did not find pt ratio",Sc);F(a)}
function Vc(a,b,c){var d=a||null;if(u(a)){var g=Tc(a);g?(a=g.value,c=g.Ia):a=null}b||(b="px");if(!a)return{Ia:b,value:0,ib:"0",Vc:d};c||(c="px");if(c===b)return a=Math.Ta(a),{Ia:b,value:a,ib:a+b,Vc:d};"px"===c&&"px"===b||x(0<Rc,"en.unit.init needs to get called first!");"px"===c?"em"===b?a=Math.Ta(a/Rc):"%"===b?a=Math.Ta(100*a/Rc):"pt"===b&&(a=Math.Ta(a/Sc)):"pt"===c?"em"===b?a=Math.Ta(a*Sc/Rc):"%"===b?a=Math.Ta(100*a*Sc/Rc):"px"===b&&(a=Math.Ta(a*Sc)):x(!1,"Not implemented yet",c,"=>",b);return{Ia:b,
value:a,ib:a+b,Vc:d}}function Wc(a){return Vc(a).value||0};function Xc(a,b){null==a&&(a=document.body);for(var c=a,d=b.length-1;0<=d;d--){var g=b[d];g>Q(c)&&(g=Q(c)-1);c=c.childNodes[g]}return c}function Yc(a,b){var c=[];null==b&&(b=document.body);for(;a&&a.parentNode&&a!==b;){for(var d=0,g=a.parentNode.childNodes,e=0;e<g.length;e++)if(g[e]===a){d=e;break}c.push(d);a=a.parentNode}return c}
function Zc(a,b,c){for(var d=[];1==b.nodeType;){var g=b.childNodes[c];if(!g&&!b.lastChild)break;g?(b=g,c=0):(b=b.lastChild,c=Q(b))}b=c={m:b,offset:c};if(3==b.m.nodeType)for(c=b.m.previousSibling;c&&3==c.nodeType;c=c.previousSibling)b.offset+=Q(c);else c=b.m.previousSibling;g=b.m.parentNode;b.m=c?c.nextSibling:g.firstChild;c=b;for(b=c.m;b&&b.parentNode&&b!==a;){for(var e=g=0,f=b.parentNode.childNodes,h=0;h<f.length;h++){var m=f[h];3!==m.nodeType&&0<e&&(++g,e=0);if(m===b)break;3===m.nodeType?e+=Q(m):
++g}d.push(g);b=b.parentNode}return{path:d,offset:c.offset}}function $c(a,b,c){null==a&&(a=document.body);var d="";b&&(c?(c=Zc(a,b.startContainer,b.startOffset),a=Zc(a,b.endContainer,b.endOffset),d={startPath:c.path,startOffset:c.offset,endPath:a.path,endOffset:a.offset,collapsed:b.collapsed}):d={startPath:Yc(b.startContainer,a),startOffset:b.startOffset,endPath:Yc(b.endContainer,a),endOffset:b.endOffset,collapsed:b.collapsed});return JSON.stringify(d)}
function ad(a,b){null==a&&(a=document.body);if(!b)return null;var c=JSON.parse(b),d;if(c&&c instanceof Object)a:{var g=a;null==g&&(g=document.body);if(void 0===g||!c)throw"All arguments required";try{var e=Xc(g,c.startPath),f=Xc(g,c.endPath);if(!e||!f){d=null;break a}var h=mc(e,c.startOffset,f,c.endOffset);c.collapsed&&h.collapse(!0);d=h;break a}catch(m){v.error("Exception <$>",m.toString())}d=null}else d=null;return d}
function bd(a,b){null==a&&(a=document.body);var c=Y(a);return c?$c(a,c,b):null}function cd(a,b){null==a&&(a=document.body);bd(a);if(b){var c=ad(a,b);c&&nc(c)}};function dd(a){function b(a,b,c){this.Gf=a;this.dg=b;this.title=c||null}x(this instanceof dd,"Use `new` to instantiate this class");var c=[],d=[],g=a&&a.maxLength||0;this.Wa=function(a,f,h){if(a)if(f){if(a=new b(a,f,h),d=[],a.Gf(),c.push(a),1<g)for(;c.length>g;)c.shift()}else throw"UndoRedo.do missing required parameter 'down'.";else throw"UndoRedo.do missing required parameter 'up'.";};this.register=function(a,f,h){if(a)if(f){if(a=new b(a,f,h),d=[],c.push(a),1<g)for(;c.length>g;)c.shift()}else throw"UndoRedo.do missing required parameter 'down'.";
else throw"UndoRedo.do missing required parameter 'up'.";};this.ya=function(){return 0<c.length};this.xa=function(){return 0<d.length};this.Cf=function(){return c&&0!==c.length?c[c.length-1].title:null};this.jf=function(){return d&&0!==d.length?d[d.length-1].title:null};this.Af=function(){var a=c.pop();return a?(a.dg(),d.push(a),!0):!1};this.hf=function(){var a=d.pop();return a?(a.Gf(),c.push(a),!0):!1};this.clear=function(){c=[];d=[]}};function ed(a,b){x(u(a),"name has to be string",b);x(null==b||B(b),"info has to be empty or dict",a,b);b=b||{};b.version="1.0";return window.evernoteClient&&window.evernoteClient.postNotification?window.evernoteClient.postNotification(a,JSON.stringify(b))||null:null}function fd(a,b){x(!a||u(a),"module has to be string",a,b);x(!b||B(b),"info has to be dict",a,b);b=b||{};b.module=a||"";ed("contentChanged",b)}
function gd(a,b){x(!a||u(a),"module has to be string",a,b);x(!b||B(b),"info has to be dict",a,b);b=b||{};b.module=a||"";ed("focusChanged",b)}function hd(a){ed("titleBlur",{module:a||"title"})}function id(a,b,c){x(u(a)||1<a.length,"href required",a,b,c);x(!b||u(b),"module has to be string",a,b,c);x(!c||B(c),"info has to be dict",a,b,c);c=c||{};c.href=a;c.module=b||"";ed("openLink",c)}function jd(){ed("contextVisible",{module:"context"})}
function kd(a){ed("contextExpanded",{module:"context",expanded:!!a})};var zc={},ld={},md=null,nd=null;function od(a){x(B(a),"Expected to get an non empty object");zc=a}function pd(){var a=zc.env;return a&&null!=a.selectionColor?a.selectionColor:"rgb(167, 203, 245)"}function Qa(a,b){var c=ld[a];if(c)for(var d=0;d<c.length;d++)(0,c[d][1])(b,a)}function qd(a,b,c){Qa(b+"@"+lc(a,!0).id,c||{target:a})}function rd(a,b){var c=ld[a];if(c&&c.length)for(var d=c.length-1;0<=d;d--)c[d][1]===b&&c.splice(d,1)}var sd=[];var td={tap:kb,press:lb,pan:gb,swipe:jb,rotate:ib,pinch:hb},ud=["touchstart","touchmove","touchend","touchcancel"],vd=1;
function wd(){function a(a,b){Da(function(){1===a?md.Ef(function(a){return a.ea===b}):2===a?b[0].removeEventListener(b[1],b[2],b[3]):3===a?Nc(b[0],b[1],b[2]):4===a?window.clearTimeout(b):5===a?window.clearInterval(b):7===a?b():8===a?(fb(b[4],!1),ud.forEach(function(a){b[0].removeEventListener(a,b[2],b[3])})):9===a?rd(b[0],b[1]):v.error("Unhandled binding cleanup step!",a,b)})}function b(a,b){var c={df:++vd,type:a,value:b};return e[c.df]=c}var c=this;x(this instanceof wd,"Use `new` to instantiate this class");
var d=!1,g=null,e={};c.mh=function(){x(!1,"Not public!");return Object.keys(e)};c.remove=function(b){null!=b&&(a(b.type,b.value),delete e[b.df])};c.c=function(a){a=A(a,{name:null});g=a.name;x(0===Object.keys(e).length,"Binding are in an undefined state before setup",g);x(!1===d,"You need to call cleanup first!",g);d=!0};c.q=function(){x(d,"You need to call setup first!");d=!1;for(var b=Object.keys(e).sort(function(a,b){a=+a;b=+b;return a>b?1:a<b?-1:0}),c=b.length-1;0<=c;c--){var k=e[b[c]];a(k.type,
k.value)}e={};g=f=null};var f=null;c.ic=function(a){f=a};c.l=function(a){x(d,"You need to call setup first!");a.ea=Aa++;f&&(a=ua(a,f,!0));md.lf(a);return b(1,a.ea)};c.g=function(a,c,k,l){x(null!=a,"target is required!");x(d,"You need to call setup first!");x(!l||B(l),"option must be dictionary when used");c=c.toLocaleLowerCase();var g=!!l&&!0===l.hh,f=[a,c,k,g];if(-1!==Dc.indexOf(c.toLowerCase()))l=b(2,f),a.addEventListener(c,k,g);else if(td[c]){var e=new td[c](a,k,l);f[2]=function(a){var b=bb[a.type],
c=$a.call(e,a,b);if(c){a={T:b,wf:a,touches:c[0],changedTouches:c[1],target:a.target,type:e.options.type};var c=a.touches.length,d=a.changedTouches.length;a.Pe=!!(b&1&&0===c-d);a.vg=!!(b&12&&0===c-d);a.Pe&&(e.fa={});e.fa.ye||(e.fa.ye=Za(a));1<a.touches.length&&!e.fa.pd?e.fa.pd=Za(a):1===a.touches.length&&(e.fa.pd=void 0);var c=e.fa.ye,d=(b=e.fa.pd)?b.uc:c.uc,l=a.uc=Ya(a.touches);a.timeStamp=Date.now();a.cg=a.timeStamp-c.timeStamp;a.dh=Xa(d,l);a.yc=Wa(d,l);var c=e.fa,d=a.uc,l=c.Hg||{},k=c.Jg||{},m=
c.Kg||{};if(1===a.T||4===m.T)k=c.Jg={x:m.deltaX||0,y:m.deltaY||0},l=c.Hg={x:d.x,y:d.y};a.deltaX=k.x+(d.x-l.x);a.deltaY=k.y+(d.y-l.y);a.qh=Va(a.deltaX,a.deltaY);b?(c=b.touches,d=a.touches,c=Wa(d[0],d[1])/Wa(c[0],c[1])):c=1;a.scale=c;b?(b=b.touches,c=a.touches,b=Xa(c[1],c[0])-Xa(b[1],b[0])):b=0;a.rotation=b;b=e.fa;k=b.Bg||a;c=a.timeStamp-k.timeStamp;if(8!=a.T&&(25<c||void 0===k.qc)){var l=k.deltaX-a.deltaX,k=k.deltaY-a.deltaY,m=l/c||0,g=k/c||0,c=m,d=g,m=Math.abs(m)>Math.abs(g)?m:g,l=Va(l,k);b.Bg=a}else m=
k.qc,c=k.velocityX,d=k.velocityY,l=k.direction;a.qc=m;a.velocityX=c;a.velocityY=d;a.direction=l;e.state&56&&(e.state=1);e.state=e.Db(a);eb(e,a);e.fa.Kg=a}};f.push(e);l=b(8,f);ud.forEach(function(b){a.addEventListener(b,f[2],g)})}else l=b(3,f),Mc(a,c,k,g);return l};c.gc=function(a,c,d){a:{var l=ld[a];null==l&&(l=[],ld[a]=l);d=d||0;for(var g=0;g<l.length;g++)if(d<l[g][0]){l.splice(g,0,[d,c]);break a}l.push([d,c])}b(9,[a,c])};c.sa=function(a,b,d){c.gc(b+"@"+lc(a,!0).id,d,void 0)};c.timeout=function(a,
m,k){x(d,"You need to call setup first!");k&&c.remove(k);var l=0,l=window.setTimeout(function(){a();for(var b=l,c=e.length-1;0<=c;c--)if(e[c][0]===b){e.splice(c,1);break}},m||0);return b(4,l)};c.qe=function(a){b(7,a)}};function xd(a){var b=this;b.se=a||{};b.Wc=null;var c=[],d={};b.load=function(a){return Da(function(){if(!a)return!1;a.G=!1;x(!(0<=c.indexOf(a)),"Plugin has already been loaded:",a.name);x(!d[a.name],"There is another plugin with the same name!",a.name);c.push(a);a.name&&0<a.name.length&&(d[a.name]=a);a.b=new wd;return!0},function(a){v.error("Exception in PluginManager.load <$>",a.toString())})};b.nh=function(a){return d[a]||null};b.Bc=function(){return c.filter(function(a){return a.G})};b.ob=function(a){if(u(a))return d[a]||
null;for(var b=c.length-1;0<=b;b--){var f=c[b];if(a(f))return f}return null};b.Eb=function(a){x(null!=d[a],"The plugin",a,"is required here!");return d[a]};b.Ig=function(a){b.pe=a};b.c=function(a,d){return Da(function(){x(!!a,"Expected a plugin");x(!a.G,"Plugin is already set up:",a.name);0<=c.indexOf(a)||b.load(a);a.b.c({name:a.name||"?"+Aa++});a.eb=b;a.R=function(){a.fb||(a.fb=new xd(b.se),a.fb.Wc=a);return a.fb};a.pb=b.ob.bind(b);a.e=b.Eb.bind(b);b.pe&&b.pe(a);a.c&&a.c(d||{},b.se);a.G=!0;return a},
function(a){v.error("Exception in PluginManager.setup <$>",a.toString())})};b.uh=function(a){for(var d=0;d<c.length;d++)b.c(c[d],a)};b.q=function(a){Da(function(){x(!!a,"Expected a plugin");x(a.G,"Plugin is not yet set up:",a.name);x(0<=c.indexOf(a),"Plugin has not been loaded before:",a.name);a.G=!1;a.fb&&(a.fb.Wc=null,a.fb.Df(),a.fb=null);a.b.q();a.q&&a.q();delete a.R;delete a.pb;delete a.e;a.eb=null},function(a){v.error("Exception in PluginManager.cleanup <$>",a.toString())})};b.Df=function(){for(var a=
c.length-1;0<=a;a--){var e=c[a];!0===e.G&&b.q(e)}c=[];d={}}};function yd(){var a=this;a.name="mutation-observer";a.c=function(b){function c(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],c={type:c.type,target:c.target,addedNodes:la(c.addedNodes),removedNodes:la(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||g.push(c)}}var d=A(b,{element:null}).element;x(G(d),"Element!");var g,e=null;a.b.qe(function(){e&&
a.Hb()});a.Sg=function(){x(null==e,"Observer already running");g=[];var a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(a){var b=new (window.MutationObserverInit||window.WebKitMutationObserverInit||window.MozMutationObserverInit||Object);b.subtree=!0;b.childList=!0;b.attributes=!0;b.characterData=!0;b.attributeOldValue=!0;b.characterDataOldValue=!0;e=new a(c);e.observe(d,b)}};a.zg=function(){return!!e};a.Be=function(){x(null!=e,"Observer not running");var a=
e.takeRecords();c(a);return g};a.Hb=function(){a.Be();e.disconnect();e=null;return g};a.lh=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++)v.log("  ",b,"add node",I(c.addedNodes[d])||ma(c.addedNodes[d].textContent),c.addedNodes[d].outerHTML);if(c.removedNodes.length)for(d=0;d<c.removedNodes.length;d++)v.log("  ",b,"remove node",I(c.removedNodes[d])||ma(c.removedNodes[d].textContent),c.removedNodes[d].outerHTML)}else"attributes"===
c.type?null===c.oldValue?v.log("  ",b,"remove attribute",I(c.target),c.attributeName,c.target.outerHTML):v.log("  ",b,"set attribute",I(c.target),c.attributeName,c.target.outerHTML):"characterData"===c.type?v.log("  ",b,"change text",ma(c.oldValue),"to",ma(c.value)):v.error("!!! unknown mutation",c.type)}};a.Og=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:v.error("!!! unknown mutation",c.type)}}}};function zd(){x(this instanceof zd,"Use `new` to instantiate this class");var a=this;a.name="undo";var b=/\s*(id|data\-en\-[a-z0-9\-]+)=".*?"/gi;a.c=function(c){function d(a){return function(){xb(a.m.cloneNode(!0),f);cd(f,a.selection);e.Fb&&e.Fb(a.Lb);m=a}}function g(){var a={m:f.cloneNode(!0),selection:bd(f)};e.ma&&(a.Lb=e.ma());return a}var e=A(c,{element:null,Ob:"Typing",ma:null,Fb:null}),f=e.element;x(!!f&&G(f),'"element" option must be an HTMLElement');var h=new dd,m=null;a.Ca=function(){var a;
if(!(a=!m)){a=m;var c=a.xd;c||(c=a.m.innerHTML,a.xd=c);var d=f.innerHTML,c=c.replace(b,""),d=d.replace(b,"");a=c!==d?!1:e.ma?e.ma()===a.Lb:!0}return!a};a.flush=function(){if(a.Ca()){var b=g();h.register(d(b),d(m),e.Ob);return m=b}return null};a.b.g(f,"keydown",function(){m||(m=g())});a.b.g(f,"mousedown",function(){m||(m=g())});a.Wa=function(b,c){var k=a.flush()||g();b();var f=g();h.register(d(f),d(k),c);m=f};a.clear=function(){h.clear();m=null;window.TEST&&(m||(m=g()))};var k=a.eb.Wc;a.ya=function(){return h.ya()||
a.Ca()};a.xa=function(){return h.xa()&&!a.Ca()};a.b.l({name:"undo",action:function(){a.flush();h.Af()&&k.aa&&k.aa();return!0},state:function(){return a.ya()},value:function(){return a.Ca()?e.Ob:h.Cf()},enabled:function(){return k.hasFocus&&k.hasFocus()&&a.ya()}});a.b.l({name:"redo",action:function(){h.hf()&&k.aa&&k.aa();return!0},state:function(){return a.xa()},value:function(){return h.jf()},enabled:function(){return k.hasFocus&&k.hasFocus()&&a.xa()}});a.b.l({name:"clearundo",action:function(){h.clear();
return!0},enabled:D})}};function Ad(){function a(a){a=a.toString().trim();return 0<b.d.maxLength?a.slice(0,b.d.maxLength):a}x(this instanceof Ad,"Use `new` to instantiate this class");var b=this,c=null,d=!1;b.name="textfield-"+Aa++;b.d=null;b.H=null;b.rg=null;b.c=function(d){b.d=A(d,{element:null,$e:!1,maxLength:0,placeholder:null,Sd:!1,Bf:!0,xe:!0,ne:!0,re:["textfield"],Pb:null,zc:null,name:null});c=b.d.element;x(!!c&&G(c),'"element" option must be an HTMLElement');b.b.ic({pa:b.d.re});b.Rg(b.d.placeholder);b.setActive(b.d.ne);
x(!(b.d.$e&&b.d.maxLength),"Max length not supported for multi line fields");0<b.d.maxLength&&b.b.g(c,"input",function(){b.S();if(c.textContent.length>b.d.maxLength){var a=c.firstChild;if(Jb(a)){var d=Y(c).startOffset;a.textContent=b.S();nc(mc(a,Math.min(d,b.d.maxLength)))}x(u("title")&&!0,"module name expexted","title");ed("warning",{module:"title"})}});b.d.zc&&b.d.name&&(b.b.g(c,"blur",function(){gd(b.d.name,{focus:b.hasFocus()})}),b.b.g(c,"focus",function(){b.focus()}));b.d.Pb&&(b.b.g(c,"input",
function(){b.V(!0)}),b.b.g(c,"blur",function(){b.Ed()&&Qa(b.d.Pb,{target:c,value:b.S(!1),blur:!0})}));if(b.d.xe){b.b.l({name:"pasteplain",action:function(a){if(b.hasFocus())return b.H.Wa(function(){document.execCommand("inserttext",!1,a.replace(/\s+/gi," "))}),!0},enabled:function(){return b.hasFocus()}});var e=function(){var a=Y(c);return a&&!a.collapsed};b.b.l({name:"copy",value:function(){if(!e())return null;var a=Y(c);return Bd(c,a,{plain:!0})},enabled:e});b.b.l({name:"inserttext",action:function(a){if(b.hasFocus())return b.H.Wa(function(){document.execCommand("inserttext",
!1,a)}),!0},enabled:function(){return b.hasFocus()}});b.b.l({name:"delete",action:function(a){return"selection"===a?(document.execCommand("delete"),!0):!1},enabled:function(a){if("selection"===a)return b.hasFocus()}})}b.d.Bf&&(b.H=new zd,b.R().c(b.H,{element:c}),b.b.l({name:"undo",action:function(){b.H.Af();return!0},state:function(){return b.H.ya()},value:function(){return b.H.Cf()},enabled:function(){return b.hasFocus()&&b.H.ya()}}),b.b.l({name:"redo",action:function(){b.H.hf();return!0},state:function(){return b.H.xa()},
value:function(){return b.H.jf()},enabled:function(){return b.hasFocus()&&b.H.xa()}}));b.b.l({name:"content",action:function(c){!b.d.Sd||c&&a(c)!==b.sb()||(c="");b.be(c);return!0},value:function(a){d=A(Sa(a),{resetChangesState:!0});d.resetChangesState&&b.V(!1);return b.S()||(b.d.Sd?b.sb():"")},enabled:D,Aa:!0});b.b.l({name:"active",action:function(a){b.setActive(Ra(a))},state:function(){return b.Jc()},enabled:D,Aa:!0});b.b.l({name:"focus",action:function(){b.focus();return!0},state:function(){return b.hasFocus()},
enabled:D,Aa:!0});b.b.l({name:"changes",action:function(a){a=Ra(a);b.V(a);return!0},state:function(){return b.Ed()},enabled:D,Aa:!0});b.b.l({name:"selectall",action:function(){b.Pg();return!0},enabled:function(){b.hasFocus()}})};b.q=function(){b.setActive(!1);b.rg=null;b.d=null;c.removeAttribute("data-en-placeholder");c=null};b.S=function(d){d&&b.V(!1);return b.d.multiline?c.innerText||"":a(c.textContent)};b.be=function(d){c.textContent=a(d);b.V(!1)};b.hasFocus=function(){if(!b.Jc())return!1;var a=
Y(c);return a&&(a=rc(a))?!!R(a,Sb):!1};b.focus=function(){c.focus();nc(mc(c,Q(c)));b.d.zc&&b.d.name&&gd(b.d.name,{focus:b.hasFocus()})};b.Pg=function(){c.focus();window.getSelection().selectAllChildren(c);b.d.zc&&b.d.name&&gd(b.d.name,{focus:b.hasFocus()})};b.sb=function(){return c.getAttribute("data-en-placeholder")||""};b.Rg=function(b){null!=b?c.setAttribute("data-en-placeholder",a(b)):c.removeAttribute("data-en-placeholder")};b.setActive=function(a){a!==b.Jc()&&(window.getSelection().containsNode(c,
!0)&&qc(),Tb(c,a))};b.Jc=function(){return Sb(c)};b.V=function(a){d=!!a;!0===b.Ed()&&b.d.Pb&&Qa(b.d.Pb,{target:c,value:b.S(!1)})};b.Ed=function(){return d&&b.Jc()}};function Cd(){x(this instanceof Cd,"Use `new` to instantiate this class");var a=this;a.name="undo";var b=[],c=[];a.c=function(d){function g(a){return function(){l.Og(a.bc);cd(m,a.selection);h.Fb&&h.Fb(a.Lb)}}function e(a){!0!==a&&k||(k=f(),l.Sg())}function f(){var a={bc:[],selection:bd(m)};h.ma&&(a.Lb=h.ma());return a}var h=A(d,{element:null,Ob:"Typing",ma:null,Fb:null},!0),m=h.element;x(!!m&&G(m),'"element" option must be an HTMLElement');var k=null,l=new yd;a.R().c(l,{element:m});a.Ca=function(){return k?
0<l.Be().length?!0:h.ma?h.ma()!==k.Lb:!1:!1};a.flush=function(){if(a.Ca()&&k){k.bc=l.Hb();var d=g(k),m=h.Ob;c=[];b.push({Xa:d,title:m});k=null}e();return k};a.b.g(m,"keydown",function(){e()});a.b.g(m,"mousedown",function(){e()});a.Wa=function(d,m){a.flush();k=f();d();k.bc=l.Hb();var p=g(k);c=[];b.push({Xa:p,title:m});e(!0)};a.clear=function(){l.zg()&&(l.Hb(),k=null);b=[];c=[];window.TEST&&e()};var p=a.eb.Wc;a.ya=function(){return 0<b.length||a.Ca()};a.xa=function(){return 0<c.length&&!a.Ca()};a.b.l({name:"undo",
action:function(){a.flush();var d=b.pop();return d?(k=f(),d.Xa(),k.bc=l.Hb(),c.push({Xa:g(k),title:d.title}),e(!0),p.aa&&p.aa(),!0):!1},state:function(){return a.ya()},value:function(){return a.Ca()?h.Ob:b&&0!==b.length?b[b.length-1].title:null},enabled:function(){return p.hasFocus&&p.hasFocus()&&a.ya()}});a.b.l({name:"redo",action:function(){var d=c.pop();return d?(a.flush(),k=f(),d.Xa(),k.bc=l.Hb(),b.push({Xa:g(k),title:d.title}),e(!0),p.aa&&p.aa(),!0):!1},state:function(){return a.xa()},value:function(){return c&&
0!==c.length?c[c.length-1].title:null},enabled:function(){return p.hasFocus&&p.hasFocus()&&a.xa()}});a.b.l({name:"clearundo",action:function(){a.clear();return!0},enabled:D})}};function Dd(){function a(){ka("Please use title.focus");return f.hasFocus()}function b(a){if("placeholder"===a)return f.sb();if("focus"===a)return ka("Please use title.focus"),f.hasFocus();ka("Please use title.content");return f.S()||f.sb()}function c(a){a=Sa(a);var b=!1,c=a.active;null!=c&&(ka("Please use title.active"),f.setActive(c),b=!0);c=a.value;null!=c&&(ka("Please use title.content"),d(c),b=!0);!0===a.focus&&(ka("Please use title.focus"),f.focus(),b=!0);return b}function d(a){a&&a!==f.sb()?
f.S()!==a&&f.be(a):f.be("");h=f.S()||f.sb();f.V(!1)}x(this instanceof Dd,"Use `new` to instantiate this class");var g=this;this.name="title";var e=document.querySelector("#en-title");x(G(e),"Node for title required");var f=null,h=null;this.c=function(m){m=A(m,{active:!0,value:"",placeholder:"Untitled"});this.b.ic({pa:["title"]});f=new Ad;this.R().c(f,{element:e,$e:!1,maxLength:255,placeholder:m.placeholder,Sd:!0,Bf:!0,xe:!0,ne:m.active,Pb:"titlechanged",re:["title"],zc:!0,name:g.name});this.b.qe(function(){f=
null});h=m.value;d(h);this.b.g(e,"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&&(hd(g.name),b=!0):13===a.keyCode&&(0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c?(hd(g.name),b=!0):4!==c&&6!==c&&(b=!0));return b?Oc(a):!0});this.b.l({name:"title",action:c,value:b,state:a,enabled:D})}};function Ed(){function a(a){var f=Sa(a);a=!1;var h=f.visible;null!=h&&(Yb(c,!!h),a=!0);h=f.active;null!=h&&(E(c,h?"en-shared-on":"en-shared-off"),nb(c,h?"en-shared-off":"en-shared-on"),a=!0);h=f.business;null!=h&&(Yb(g,!!h),a=!0);f=f.value;u(f)&&(d.innerHTML=f,X("a",d).forEach(function(a){var c=a.getAttribute("href");a.removeAttribute("href");E(a,"en-shared-link");a=zb(a,"span");a.onclick=function(){var d=L(a);id(c,b.name,{left:d.left,top:d.top,width:d.width,height:d.height});return!1}}),a=!0);return a}
var b=this;this.name="shared";x(this instanceof Ed,"Use `new` to instantiate this class");var c=null,d=null,g=null;this.c=function(b){var f=document.querySelector(".en-note-container");d=J("div",{"class":"en-shared-message"});g=J("div",{"class":"en-shared-business",style:"display:none;"});c=J("div",{"class":"en-shared en-shared-off",id:"en-shared",style:"display:none;"},[g,d]);f.insertBefore(c,f.firstChild);a(b);this.b.l({name:"shared",action:a,enabled:D})};this.q=function(){g=d=null;F(c);c=null}}
;function Fd(){function a(a){if(!(null==a||u(a)&&""===a||da(a)&&0===Object.keys(a).length)){var k=Sa(a);a=k.visible;var n=k.expanded,t=k.hideIndicatorLabelWhenExpanded,y=k.hideIndicatorLabelWhenCollapsed,r=k.chatButtonLabel||"Chat",pa=k.shareButtonLabel||"Share",ia=k.items,P=k.contextSectionLabel,ja=k.firstLaunchInfo;null!=a&&Yb(p,!!a);if(ia&&!(0>=ia.length)){sb(p);var Ca=J("div",{"class":"en-context-label"});Ca.textContent=P||"Context";p.appendChild(Ca);P=J("div",{"class":n?"en-context-hide-label":
"en-context-show-label"});p.appendChild(P);if(null!=ja&&null!=ja.headline&&null!=ja.subHeadline&&null!=ja.learnMoreLinkLabel&&null!=ja.dismissButtonLabel){var Bb=ja.headline,Cb=ja.subHeadline,Ca=ja.learnMoreLinkLabel,ja=ja.dismissButtonLabel,Db=J("div",{"class":"en-context-fle-container"});p.appendChild(Db);var Na=J("div",{"class":"en-context-fle-header"});Na.textContent=Bb;Db.appendChild(Na);Bb=J("div",{"class":"en-context-fle-body"});Db.appendChild(Bb);Na=J("span",{"class":"en-context-fle-subheader"});
Na.textContent=Cb+" ";Bb.appendChild(Na);Cb=J("span",{"class":"en-context-fle-learn-more"});Cb.textContent=Ca;Bb.appendChild(Cb);m.b.g(Cb,"click",function(a){id("learnMore",m.name,{kind:"firstLaunch",sharing:!1});Oc(a)});Ca=J("div",{"class":"en-context-fle-dismiss-button"});Ca.textContent=ja;Db.appendChild(Ca);m.b.g(Ca,"click",function(a){id("dismiss",m.name,{kind:"firstLaunch",sharing:!1});F(Db);a.stopPropagation()})}Ca=J("div",{"class":"en-context-card-holder"});p.appendChild(Ca);for(ja=0;ja<ia.length;ja++)Ca.appendChild(h(ia[ja],
pa,r));V(p,"max-height",139*l.maxRows+32+"px");n?g(P,t):e(P,y);d(P,t,y);b();m.b.timeout(b,250);f(!0);!0===a&&!0===n&&0<ia.length&&m.b.timeout(function(){c(k)},1500)}}}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(L(b).width),d=Mb(c),l=Math.round(c.offsetWidth+(parseInt(d["margin-left"],10)+parseInt(d["margin-right"],
10)));a={Sf:b,Gg:a,Wf:l,ih:Math.round(c.offsetHeight+(parseInt(d["margin-top"],10)+parseInt(d["margin-bottom"],10))),Xf:Math.floor(b/l)}}c=document.querySelector(".en-context-card-holder");null!=a&&null!=c&&(b=Math.min(a.Gg,a.Xf),0>=b?V(c,"left","0px"):V(c,"left",(a.Sf-a.Wf*b)/2+"px"))}function c(a){if(!0!==r&&!1!==l.showPopup&&null==n&&null!=p&&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=
sa(b[0].title||"Untitled"),k=J("div",{"class":"en-context-popup-header"});k.textContent=c;c="en-context-popup-body";null!=b[0].kind&&(c+=" "+b[0].kind);b=J("div",{"class":c});b.textContent=d;d=J("div",{"class":"en-context-popup-footer"});d.textContent=a;d.appendChild(J("div",{"class":"en-context-popup-down-arrow"}));n=J("div",{"class":"en-context-popup"},[J("div",{"class":"en-context-popup-wrapper"},[k,b,d])]);p.parentNode.insertBefore(n,p.nextSibling);m.b.timeout(function(){E(n,"en-context-popup-visible")},
1);m.b.g(n,"mousedown",function(){m.b.remove(y)});m.b.g(n,"mouseup",function(){var a=L(p);ic(a.top-15,240);nb(n,"en-context-popup-visible");V(n,"pointer-events","none")});y=m.b.timeout(function(){nb(n,"en-context-popup-visible");V(n,"pointer-events","none")},5500,y)}}function d(a,b,c){m.b.g(a,"click",function(){a.textContent===b?(e(a,c),kd(!1)):a.textContent===c&&(g(a,b),kd(!0));f(!0)})}function g(a,b){var c=W(".en-context-card-holder",p),d=W(".en-context-fle-container",p);1!==c.length?v.error("Couldnt find card holder?!"):
(c=c[0],a.textContent=b,nb(a,"en-context-show-label"),E(a,"en-context-hide-label"),Yb(c,!0),null!=d&&1===d.length&&Yb(d[0],!0))}function e(a,b){var c=W(".en-context-card-holder",p),d=W(".en-context-fle-container",p);1!==c.length?v.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,nb(a,"en-context-hide-label"),E(a,"en-context-show-label"),Yb(c,!1),null!=d&&1===d.length&&Yb(d[0],!1))}function f(a){function b(){var a=p.querySelector(".en-context-item");null!=a&&jc(a,100)&&!1===r&&(r=!0,jd())}
null==a&&(a=!1);a?b():t=m.b.timeout(b,100,t)}function h(a,b,c){var d=a.link||"#",l=a.kind||"undefined",f=document.createTextNode(sa(a.text||"")),g=a.thumbnail||"",n=""!==g,p=sa(a.title||"Untitled"),h=a.sourceName||"",e=a.sourceId||"",t=a.date||"",y=a.author||"";a=a.canShare;var r=J("div",{"class":n?"en-context-item-title":"en-context-item-title en-context-wide",href:d,name:l});r.textContent=p;p=J("span",{"class":"en-context-author"});""!==y&&(p.textContent=y);var Na=J("span",{"class":"en-context-separator"});
Na.textContent="|";var vc=J("span",{"class":"note"===l?"en-context-note-date":"en-context-news-date"});""!==t&&(vc.textContent=t);d=[];"news"===l?""!==t?(d.push(vc),""!==y&&(d.push(Na),d.push(p))):""!==y&&d.push(p):(""!==t&&d.push(vc),d.push(f));f="en-context-item-body";n||(f+=" en-context-wide");"news"===l?f+=" en-context-item-body-one":"note"===l&&"evernote.business"===e?f+=" en-context-item-body-two":"people"===l&&(f+=" en-context-body-italics");t=J("div",{"class":f},d);f=J("div",{"class":"en-context-graphic-clipper"});
d="en-context-graphic";a&&(d+=" en-context-graphic-blur");g=J("img",{"class":d,alt:"graphic",src:g});d="en-context-graphic-hover";n||(d+=" en-context-graphic-hover-solid");b=J("div",{"class":d},[J("div",{"class":"en-context-workchat"}),J("div",{"class":"en-context-share-text"},["people"===l?c:b])]);n&&f.appendChild(g);a&&(f.appendChild(b),m.b.g(f,"click",function(a){id(r.getAttribute("href"),m.name,{kind:r.getAttribute("name"),sharing:!0});a.stopPropagation()}));n=e;"dowjones.wsj"===n&&(n="wsj");
"profile.linkedin"===n&&(n="linkedin");if("profile.evernote.business"===n||"evernote.business"===n)n="evernote-business";"profile.factiva"===n&&(n="factiva");c="";if("profile.evernote.business"===e||"evernote.business"===e)c="en-context-source-text-blue";b=J("div",{"class":"en-context-source-img "+n});c=J("div",{"class":"en-context-source-text "+c});c.textContent="dowjones.wsj"===e?"":"evernote.business"===e?y:h;h=J("div",{"class":"en-context-source"});-1!==k.indexOf(n)&&h.appendChild(b);h.appendChild(c);
y=[r,t];y.push(f);("news"===l||"people"===l||"company"===l||"note"===l&&"evernote.business"===e)&&y.push(h);l=J("div",{"class":"en-context-item"},y);m.b.g(l,"click",function(a){id(r.getAttribute("href"),m.name,{kind:r.getAttribute("name"),sharing:!1});a.preventDefault()});return l}var m=this;this.name="context";x(this instanceof Fd,"Use new for this");var k="factiva fastcompany inc lifehacker linkedin pandodaily techcrunch theverge evernote-business wsj forbes nikkei".split(" "),l,p=null,n=null,y,
r=!1,t;this.c=function(c){var d=document.querySelector(".en-note-container");p=J("div",{"class":"en-context",id:"en-context",style:"display:none;"});null!=d?(d.parentNode.insertBefore(p,d.nextSibling),m.b.g(window,"scroll",f),m.b.g(window,"resize",f),f(!0),m.b.g(window,"resize",b),l=A(c,{showPopup:!0,maxRows:9999},!1),this.b.l({name:"context",action:a,enabled:D})):v.error("Couldnt find note container! Bailing.")};this.q=function(){F(p);F(n);y=0;p=null;r=!1}};function Gd(){function a(a){if(!(null==a||u(a)&&""===a||da(a)&&0===Object.keys(a).length)){var k=Sa(a),m=k.expanded;null==m&&(m=!1);var y=k.headline||"Get more Context with Premium",r=k.subHeadline||"Go Premium to view notes, articles, and people related to what you're working on.";a=k.goPremiumLabel||"Go Premium";var t=k.hideIndicatorLabelWhenExpanded||"Hide",k=k.hideIndicatorLabelWhenCollapsed||"Show";sb(f);Yb(f,!0);h=J("div",{"class":"en-context-upsell-body"});f.appendChild(h);var H=J("div",{"class":m?
"en-context-upsell-hide-label":"en-context-upsell-show-label"});f.appendChild(H);m?c(H,t):d(H,k);b(H,t,k);m=J("div",{"class":"en-context-upsell-headline"});m.textContent=y;h.appendChild(m);y=J("div",{"class":"en-context-upsell-subheadline"});y.textContent=r;h.appendChild(y);r=J("div",{"class":"en-context-upsell-go-premium"});r.textContent=a;h.appendChild(r);e.b.g(r,"click",function(a){id("http://evernote.com","context",{kind:"upsell",sharing:!0});Oc(a)});g(!0)}}function b(a,b,k){e.b.g(a,"click",function(){a.textContent===
b?(d(a,k),kd(!1)):a.textContent===k&&(c(a,b),kd(!0));g(!0)})}function c(a,b){null!=h&&(a.textContent=b,nb(a,"en-context-upsell-show-label"),E(a,"en-context-upsell-hide-label"),Yb(h,!0))}function d(a,b){null!=h&&(a.textContent=b,nb(a,"en-context-upsell-hide-label"),E(a,"en-context-upsell-show-label"),Yb(h,!1))}function g(a){function b(){jc(f,75)&&!1===m&&(m=!0,jd())}null==a&&(a=!1);a?b():k=e.b.timeout(b,100,k)}var e=this;this.name="context-upsell";x(this instanceof Gd,'Use "new" to create the Context Upsell Plugin');
var f=null,h=null,m=!1,k;this.c=function(b){var c=document.querySelector(".en-note-container");f=J("div",{"class":"en-context-upsell",id:"en-context-upsell",style:"display:none;"});null!=c?(c.parentNode.insertBefore(f,c.nextSibling),e.b.g(window,"scroll",g),e.b.g(window,"resize",g),g(!0),a(b),this.b.l({name:"context-upsell",action:a,enabled:D})):v.error("Couldnt find note container! Bailing.")};this.q=function(){F(f);h=f=null;m=!1}};function Hd(){function a(a){a=Sa(a);a=c(a.value,+a.limit||d);return JSON.stringify(a)}function b(a){c(a);return!0}function c(a,b){if(0>=a.length)return null;b||(b=d);var c=b,m=[a.trim()].map(qa).join("|"),k=new RegExp(m,"gi"),l=[],p=!1;W(g).forEach(function(a){for(var c=a.textContent,d;(d=k.exec(c))&&0<d.length;){var m=d.index,g=k.lastIndex,m={string:c.slice(m,g),length:g-m,from:m,to:g};var g=m,h=a,e={start:g.from,end:g.to},w=wc(e,h);if(w){var K=w.getBoundingClientRect();K.height>Wc(Mb(rc(w)).lineHeight)&&
(w=wc({start:g.from,oh:1},h),h=w.getBoundingClientRect(),K={left:h.left,right:K.right,top:h.top,bottom:h.bottom});h=document.body;g.to=e.end;g.top=K.top+h.scrollTop;g.bottom=K.bottom+h.scrollTop;g.left=K.left+h.scrollLeft;g.right=K.right+h.scrollLeft;g.width=K.right-K.left;g.height=K.bottom-K.top}else g=null;if(null!=g){if(0>=b--){p=!0;break}l.push(m)}}});return{limit:c,hasMore:p,count:l.length,items:l}}this.name="find";x(this instanceof Hd,"Use `new` to instantiate this class");var d,g;this.c=function(c){d=
0<+c.limit?+c.limit:100;g=u(c.selector)?c.selector:"#en-note";this.b.l({name:"find",action:b,value:a,enabled:D})}};function Id(){function a(a,b){x(!0===a.la,"Only commands supported due to optimizations");a.la=a.la||!0;a.shiftKey=!!a.shiftKey;a.which=a.charCode||a.key.charCodeAt(0);a.Xa=b;k.push(a)}function b(a){var b=l[a.keyCode];return b?b(a)?Oc(a):!0:!0}function c(a){a=f(a);return 2===a?Z.execCommand("deleteword"):4===a?Z.execCommand("deleteline"):Z.execCommand("delete")}function d(a){a=f(a);return 2===a?Z.execCommand("forwarddeleteword"):4===a?Z.execCommand("forwarddeleteline"):Z.execCommand("forwarddelete")}
function g(a){var b=!1;a=f(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 e(a){var b=!1;a=f(a);0===a?b=Z.execCommand("tab",""):1===a&&(b=Z.execCommand("tab","true"));return b}function f(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(c.la===(a.ctrlKey||a.metaKey)&&a.which===
c.which&&a.shiftKey===c.shiftKey)return c.Xa.call(null),a.preventDefault(),!1}return!0}var m=this;x(this instanceof Id,"Use `new` to instantiate this class");m.name="keyboard";var k=[],l={};m.c=function(f){f=A(f,{shortcuts:!0,editing:!0,custom:null,root:null});var n=f.root||document.body;f.shortcuts&&(a({key:"z",la:!0},Z.execCommand.bind(Z,"undo")),a({key:"z",la:!0,shiftKey:!0},Z.execCommand.bind(Z,"redo")),a({key:"y",la:!0},Z.execCommand.bind(Z,"redo")),a({key:"b",la:!0},Z.execCommand.bind(Z,"bold")),
a({key:"i",la:!0},Z.execCommand.bind(Z,"italic")),a({key:"u",la:!0},Z.execCommand.bind(Z,"underline")));f.editing&&(l[9]=e,l[13]=g,l[46]=d,l[8]=c,m.b.g(n,"keydown",b));if(f.custom){var y=f.custom;x(ca(f.custom),"Expected an Array for custom keyboard definitions");for(f=0;f<y.length;f++){var r=y[f],t=r.key,r=r.fn;x(u(t)&&"function"==ba(r),'Expected "key" and "fn"');a({key:t,la:!0,shiftKey:t.toUpperCase()===t},r)}}k&&m.b.g(n,"keypress",h)};m.q=function(){k=[]}};function Jd(){function a(a){n.call(this,a)}function b(a){n.call(this,a)}function c(a){n.call(this,a)}function d(a){n.call(this,a)}function g(a){n.call(this,a)}function e(a){n.call(this,a)}function f(a){n.call(this,a)}function h(a){n.call(this,a)}function m(a){a.Re=!0;n.call(this,a)}function k(a){n.call(this,a)}function l(a){n.call(this,a)}function p(a){n.call(this,a)}function n(a){if(!(this instanceof n))return new n(a);this.n=a;this.c()}function y(a){var b=Xb(a.te,"-evernote-context-name");b&&(V(a.bf,
"-evernote-context-name",b),a.bf.textContent=a.d.zb[b+"-label"]||b)}function r(a,b){a.te=t(a.Ua,"context");a.bf=t(a.Rd,"context");var c=a.te,d=Xb(c,"-evernote-context-name");E(c,"en-editable-context");var k;sb(c);c.appendChild(k=J("span"));k.textContent=a.d.zb[d+"-label"]||d;for(var l=[],m=0;m<b.length;m++){var f=b[m];l.push(J("option",{value:f,selected:f===d?"selected":void 0},a.d.zb[f+"-label"]||f))}var g=J("select",{"class":"en-editable-select-context",tabindex:"-1"},l);c.insertBefore(g,null);
w.b.g(g,"change",function(){var b=g.value;V(c,"-evernote-context-name",b);k.textContent=a.d.zb[b+"-label"]||b;if(a.d.ec instanceof Object)try{var d=a.d.ec[a.name];d&&d(a)}catch(l){v.error("Exception on onDidChangeActions (2)",l.toString())}a.d.od=a.name;na=!0});c.parentElement.style.textDecoration="none"}function t(a,b){for(var c=la(a.querySelectorAll("*[style*='x-evernote:']")),d=0;d<c.length;d++){var k=c[d];if(Xb(k,"x-evernote")===b)return k}return null}function H(a){var b=a.m;E(b,"en-editable");
E(b,"en-editable-"+a.type);E(b,("en-"+a.d.kd+"-"+a.name).toLowerCase());b.setAttribute("title",(a.d.zb[a.name+"-placeholder-title"]||"...")+"\u00a0\u00a0\u00a0");Tb(b,!0);N(a);a.d.ee&&b.removeAttribute("style");var c=null;w.b.g(b,"focus",function(){c=a.object.Pa();Ba(function(){window.getSelection().selectAllChildren(b)})});w.b.g(b,"input",function(){na=!0});w.b.g(b,"blur",function(){qc();N(a);var b=!1;if(a.d.ec instanceof Object)try{var d=a.d.ec[a.name];d&&d(a)&&(b=!0)}catch(k){v.error("Exception on onDidChangeActions (1)",
k.toString())}d=a.object.Pa();if(b||c!==d)a.d.od=a.name,na=!0});w.b.g(b,"keydown",function(c){var d=!1;13===c.keyCode?a.Re||(b.blur(),d=!0):8===c.keyCode&&(document.execCommand("delete"),d=!0);return d?Oc(c):!1})}function C(a,b){var c=a.innerText.trim();va(c)?c="\u00a0":b?(c=c.split("\n"),c=c.map(function(a){return va(a)?"<div><br/></div>":"<div>"+za(a)+"</div>"}),c=c.join("")):c=za(c.replace(/\n/g," "));return c}function N(a){x(!!a,"We need field info");x(!!a.m,"We need an element to work on");var b=
a.m;b.innerHTML=C(b,a.Re);va(b.textContent)?E(b,"en-editable-placeholder"):nb(b,"en-editable-placeholder");a.xd=b.innerHTML}var w=this,K=null;x(this instanceof Jd,"Use `new` to instantiate this class");w.name="template";var na=!1;n.prototype.c=function(){};n.prototype.Pa=function(){return this.n.m.innerHTML};n.prototype.pc=function(a){var b=this.Pa();this.n.fc.innerHTML=b;a&&this.n.d.od===this.n.name&&this.n.fc.insertBefore(Kd(),null)};fa(p,n);fa(l,n);l.prototype.Pa=function(){return C(this.n.m)};
fa(k,n);k.prototype.c=function(){H(this.n)};k.prototype.Pa=function(){return C(this.n.m)};fa(m,k);m.prototype.Pa=function(){try{return C(this.n.m,!0)}catch(a){v.error("getHTML 'PlainTextArea.prototype.getHTML' failed ",a)}return null};fa(h,n);h.prototype.c=function(){this.n.m=t(this.n.Ua,"value");this.n.fc=t(this.n.Rd,"value");x(!!this.n.m,"x-evernote:value element missing in phone field");H(this.n);r(this.n,"phone home work mobile main home-fax work-fax other".split(" "))};h.prototype.Pa=function(){return C(this.n.m)};
h.prototype.pc=function(a){h.mc.pc.call(this,a);y(this.n)};fa(f,n);f.prototype.mb=function(a,b){x(b instanceof Object);b.href=a;return J("a",b,a)};f.prototype.S=function(){var a=this.n.m.textContent;return!a||va(a)?"":a.trim()};f.prototype.c=function(){function a(){nb(l,"en-editable-hidden");E(k,"en-editable-hidden");sb(m);var c=b.S();va(c)?(nb(k,"en-editable-hidden"),E(l,"en-editable-hidden")):m.appendChild(b.mb(c,{tabindex:"-1"}));k.textContent=c}var b=this;this.n.m=t(this.n.Ua,"value");this.n.fc=
t(this.n.Rd,"value");x(!!this.n.m,"x-evernote:value element missing in LinkField");var c=this.n.m,d=this.S();U(c,"text-decoration");sb(c);var k;c.appendChild(k=J("div"));k.textContent=d;this.n.m=k;H(this.n);var l,m;c.appendChild(l=J("div",{"class":"en-editable-preview"},[m=J("span")]));a();w.b.g(l,"click",function(){k.focus()});w.b.g(k,"focus",function(){nb(k,"en-editable-hidden");E(l,"en-editable-hidden")});w.b.g(k,"blur",function(){a()});E(this.n.Ua,"en-editable-container")};f.prototype.Pa=function(){var a=
this.n.m.textContent;return va(a)?"\u00a0":za(this.mb(a,{}))};fa(e,f);e.prototype.c=function(){e.mc.c.call(this);r(this.n,["email","home","work","other"])};e.prototype.pc=function(a){e.mc.pc.call(this,a);y(this.n)};e.prototype.mb=function(a,b){a=a.trim().replace(/^mailto:/,"");x(b instanceof Object);b.href="mailto:"+a;return J("a",b,a)};fa(g,f);g.prototype.S=function(){var a=this.n.m.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return va(a)?"":a};g.prototype.mb=function(a,b){x(b instanceof
Object);b.href="http://twitter.com/"+encodeURIComponent(a);return J("a",b,"@"+a)};fa(d,f);fa(c,f);fa(b,f);b.prototype.S=function(){var a=this.n.m.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return va(a)?"":a};b.prototype.mb=function(a,b){x(b instanceof Object);return document.createTextNode("@"+a)};fa(a,f);a.prototype.mb=function(a,b){a=a.trim();x(b instanceof Object);b.href="http://maps.google.com/?q="+encodeURIComponent(a);return J("a",b,a)};var pa={title:l,field:k,textarea:m,phone:h,
email:e,twitter:g,linkedin:d,facebook:c,weibo:b,address:a,"profile-image":p},ia=Object.keys(pa);w.vf=function(a){a=A(a,{wc:null,kd:null,tc:null,ee:!1,fe:null,ge:null,Qd:{},ec:{},zb:{},od:null,root:null});w.d=a;K=a.root||document.getElementById("en-note");x(K&&G(K),"Root not valid!");Ld(K);x(null!==w.d.wc,"Content Class is required");w.d.kd=w.d.kd||w.d.wc.replace(/[^\w]+/gi,"-");K===document.body?(w.cb=document.body.parentNode.cloneNode(!0),la(w.cb.getElementsByTagName("head")).forEach(function(a){F(a)})):
w.cb=K.cloneNode(!0);var b=w.Ve(K),c=w.Ve(K===document.body?w.cb.getElementsByTagName("body")[0]:w.cb);w.Q=[];for(var d=0;d<b.length;d++)try{var k=b[d];k.index=d;k.fc=c[d].m;k.d=this.d;k.Ua=k.m;k.Rd=k.fc;k.object=new pa[k.type](k);w.Q.push(k)}catch(l){v.error("A field failed during setup",l.toString())}null!==w.d.ge&&w.ae(w.d.ge);w.og=function(a){w.ae(a.value)};w.b.gc("titlechanged",w.og);if(w.d.Qd instanceof Object)for(d=0;d<w.Q.length;d++)try{var k=w.Q[d],m=w.d.Qd[k.name];m&&m(k)}catch(f){v.error("Exception on onDidInitActions (3)",
f.toString())}w.kc();b=a.html;a=a.enml;x(!(null!=b&&null!=a),"You can only provide one content type: html or enml");u(b)?w.jc(b):u(a)&&x(!1,"ENML currently not supported for Templates")};w.q=function(){for(var a=0;a<this.Q.length;a++)try{Nc(this.Q[a].m)}catch(b){v.error("Exception on cleanup",b.toString())}W(".en-editable-select-context,.en-editable-preview",K).forEach(function(a){Nc(a)});this.Q=[]};w.hasFocus=function(){var a=Y(K);return a&&(a=rc(a))?R(a,Sb):!1};w.kc=function(){w.b.ic({pa:["content",
"template"]});w.b.l({name:"focus",action:function(){w.focus();return!0},state:function(){return w.hasFocus()},value:function(){if(w.hasFocus())return w.name},enabled:D});w.b.l({name:"pasteplain",action:function(a){document.execCommand("inserttext",!1,a.replace(/\s+/gi," "))},enabled:D});w.b.l({name:"copy",enabled:D,value:function(){var a=Y(K);if(!a||a.collapsed)return"";var b={},a=a.cloneContents(),c=document.createElement("div");c.appendChild(a);gc(c,function(a){b.plain=a.innerText});return JSON.stringify(b)}});
w.b.l({name:"content",action:function(a){w.jc(a);return!0},value:function(a){return w.qd(Sa(a))},enabled:D});w.b.l({name:"changes",action:function(a){na=!!Ra(a);return!0},state:function(){return na},enabled:D,Aa:!0})};w.focus=function(a){for(a=+a||0;a<this.Q.length;a++){var b=this.Q[a];if(!b.Te){b.m.focus();break}}};w.ae=function(a){if(a&&0<a.length&&255>=a.length){for(var b,c=0;c<this.Q.length;c++)if(!0===this.Q[c].Te){b=this.Q[c];break}b&&b.m.textContent!==a&&(b.m.textContent=a,b.xd=b.m.innerHTML)}};
w.Ve=function(a){return la(a.querySelectorAll("*[style*='-evernote-editable:']")).map(function(a){var b=Xb(a,"-evernote-editable");if(0<=ia.indexOf(b)){var c=Xb(a,"x-evernote"),d=this.d.fe&&this.d.fe===c;d&&(b="title");return d||null===this.d.tc||this.d.tc.some(function(a){return c===a})?{m:a,name:c,type:b,Te:d}:void 0}v.error("Invalid -evernote-editable field mode!",b)},this).filter(function(a){return a&&a.m})};w.jc=function(a){a=J("div",{},a);xb(a,K)};w.qd=function(a){a=A(a,{html:!1,cleanup:!1,
stripNS:!1,trim:!0,withInsertionPoint:!1,titleString:"",hiddenCryptoData:null,resetChangesState:!1,wrap:!1});a.resetChangesState&&(na=!1);u(a.titleString)&&this.ae(a.titleString);for(var b=0;b<this.Q.length;b++){var c=this.Q[b];try{c.object.pc(a.withInsertionPoint)}catch(d){v.error("Unable to extract data from field",d.toString(),c)}}b="html"===I(this.cb)||a.stripNS?this.cb.outerHTML:this.cb.innerHTML;a.stripNS&&(b=ya(b));b=b.trim();return a.html?"<html><head><title></title></head><body>"+b+"</body></html>":
a.wrap?Md(K,b):b};w.c=function(a){var b=a.contentClass,c=a.title,d=a.localization;if("evernote.food.meal.2"===b)this.vf({root:a.root||null,wc:b,tc:["caption-text","meal-review"],ee:!0,fe:"title",ge:c});else if("evernote.contact.1"===b){var k=function(a){return(a=a.m.textContent)?a.replace(/\s+/g," ").trim():null},l=null,m=c;this.vf({root:a.root||null,wc:b,tc:"contact-title contact-org note-body weibo twitter phone email address display-as".split(" "),ee:!1,zb:d||{"display-as-placeholder-title":"Add Name...",
"contact-title-placeholder-title":"Add Title...","contact-org-placeholder-title":"Add Company...","note-body-placeholder-title":"Add Notes...","linkedin-placeholder-title":"Add LinkedIn URL...","facebook-placeholder-title":"Add Facebook URL...","twitter-placeholder-title":"Add Twitter Name...","weibo-placeholder-title":"Add Weibo Name...","phone-placeholder-title":"Add Phone...","email-placeholder-title":"Add Email...","address-placeholder-title":"Add Address...","email-label":"Email","home-label":"Home",
"work-label":"Work","other-label":"Other","phone-label":"Phone","mobile-label":"Mobile","main-label":"Main","home-fax-label":"Home Fax","work-fax-label":"Work Fax","twitter-label":"Twitter","facebook-label":"Facebook","weibo-label":"Weibo","linkedin-label":"LinkedIn","address-label":"Address"},Qd:{"display-as":function(a){l=k(a)}},ec:{"display-as":function(a){m=md.value("title.content");var b=!1;a=k(a);if(l&&a&&m){var c=new RegExp("\\b"+qa(l)+"\\b","g");if(c=m.replace(c,a))255<c.length&&(c=m),md.action("title.content",
c),md.action("title.changes",!0),b=!0,l=a}return b}}})}}};function Nd(){var a=this;a.name="context";a.c=function(b){function c(){var b=a.a();m&&b&&m.startContainer===b.startContainer&&m.endContainer===b.endContainer&&m.startOffset===b.startOffset&&m.endOffset===b.endOffset||(f={},h={},m=b?b.cloneRange():null)}var d=b.root;x(G(d),"We expect a valid root element",d);a.root=d;var g=b.th||Y(a.root)||null,e=!1;a.Z={};a.j=function(b){return a.Z[b]||{}};var f={},h={},m=null;a.pg=function(){return!(!Object.keys(f).length&&!Object.keys(h).length)};a.Fc=function(a){c();
return f[a]};a.tf=function(a,b){c();f[a]=b};a.Ff=function(a){c();delete f[a]};a.Gc=function(a){c();return h[a]};a.uf=function(a,b){c();h[a]=b;"backcolor"===a?h.Tf=b:"highlight"===a&&(h.qg=b)};a.Xg=function(a){c();delete h[a];"backcolor"===a?delete h.Tf:"highlight"===a&&delete h.qg};a.a=function(){return g};a.hb=function(a){g=a||null;e=!0};a.Zd=function(a,b){g.setStart(a,b);e=!0};a.Yd=function(a,b){g.setEnd(a,b);e=!0};a.Ga=function(){g=Y(d)||null;e=!1};a.ph=function(){a.ja()};a.ja=function(){e&&(nc(g,
d),a.Ga())};a.rf=function(a){g||(g=d.ownerDocument.createRange());g.selectNode(a);e=!0};a.i=function(a,b,c,k){g||(g=d.ownerDocument.createRange());g.setStart(a,b);c?g.setEnd(c,k||0):g.setEnd(a,b);e=!0};a.s=function(b,c,d){c&&-1===d&&(d=c.childNodes.length);var k=b.parentNode,m=O(b);x(!!g,"Global range expected");for(var f=[[g.startContainer,g.startOffset],[g.endContainer,g.endOffset]],h=f.length,e=0;e<h;e++){var N=f[e];N[0]===c&&N[1]>d&&N[1]++;N[0]!==k||N[1]!==m&&N[1]!==m+1||(c?(N[0]=c,N[1]+=d-m):
N[1]>m&&0<N[1]&&--N[1]);N[0]===k&&N[1]>m+1&&N[1]--;!c&&Gb(N[0],b)&&(N[0]=b.parentNode,N[1]=O(b))}c?c.childNodes.length===d?c.appendChild(b):c.insertBefore(b,c.childNodes[d]):F(b);a.i(f[0][0],f[0][1],f[1][0],f[1][1])};a.Ze=function(b,c,d){x(b!==c,"Do not move into itself");for(var k;k=b.firstChild;)a.s(k,c,0>d?-1:d++)};a.insertBefore=function(b,c,d){a.s(b,c,d?O(d):-1)};a.kb=function(b,c){a.s(b,c,-1)};a.removeNode=function(b){a.s(b)};a.mf=function(b){for(;b.firstChild;)a.removeNode(b.firstChild)};a.ta=
function(b,c){if(b&&b.tagName.toLowerCase()===c.toLocaleLowerCase())return b;var d=b.parentNode;if(!d)return b;for(var k=J(c),m=0;m<b.attributes.length;m++)k.setAttributeNS(b.attributes[m].namespaceURI,b.attributes[m].name,b.attributes[m].value);a.s(k,d,O(b));a.Ze(b,k,0);a.removeNode(b);return k};a.hasFocus=function(){return Sb(d)&&!!Y(d)};var k=!1;a.sf=function(a){k=!0===a};a.Ra=function(){return k};a.dump=function(){var b;if(b=a.a()){var c=$c(d,b);b=d.cloneNode(!0);if(c=ad(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 k=c.collapsed?"{}":"{";c.startOffset!=c.startContainer.childNodes.length&&c.startContainer.childNodes[c.startOffset].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset].insertData(0,k):0!=c.startOffset&&c.startContainer.childNodes[c.startOffset-1].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset-
1].appendData(k):c.startContainer.insertBefore(document.createTextNode(k),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.q=function(){a.root=null}};function Od(){var a=this,b=this;b.name="query";b.c=function(){var c=b.e("context").root;a.nextNode=function(b){return b.hasChildNodes()?b.firstChild:a.ra(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.ra=function(a){for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};a.Ad=function(a,b){return!!(a&&b&&a.compareDocumentPosition(b)&16)};a.Nc=function(a,
b){return!!(b&&a&&b.compareDocumentPosition(a)&16)};a.Oa=function(a){for(var b=[];a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;return b};a.hg=function(b){return a.Oa(b).concat(b)};a.Sb=function(b){for(var c=[],e=a.ra(b);(b=a.nextNode(b))&&b!=e;)c.push(b);return c};a.rd=function(b){return"ltr"==b.dir?"ltr":"rtl"==b.dir?"rtl":S(b.parentNode)?a.rd(b.parentNode):"ltr"};a.tb=function(b,c,e,f){if(b==e){if(c==f)return"equal";if(c<f)return"before";if(c>f)return"after"}if(e.compareDocumentPosition(b)&
4){f=a.tb(e,f,b,c);if("before"==f)return"after";if("after"==f)return"before"}if(e.compareDocumentPosition(b)&8){for(;e.parentNode!=b;)e=e.parentNode;if(O(e)<c)return"after"}return"before"};a.Ce=function(a){for(;null!=a.parentNode;)a=a.parentNode;return a};a.Mc=function(b,c){var e=a.tb(b,0,c.startContainer,c.startOffset),f=a.tb(b,Q(b),c.endContainer,c.endOffset);return a.Ce(b)==a.Ce(c.startContainer)&&"after"==e&&"before"==f};a.na=function(b,c){"undefined"==typeof c&&(c=function(){return!0});for(var e=
b.startContainer,e=e.hasChildNodes()&&b.startOffset<e.childNodes.length?e.childNodes[b.startOffset]:b.startOffset==Q(e)?a.ra(e):a.nextNode(e),f=b.endContainer,f=f.hasChildNodes()&&b.endOffset<f.childNodes.length?f.childNodes[b.endOffset]:a.ra(f),h=[];e.compareDocumentPosition(f)&4;)a.Mc(e,b)&&c(e)?(h.push(e),e=a.ra(e)):e=a.nextNode(e);return h};a.qb=function(b,c){"undefined"==typeof c&&(c=function(){return!0});for(var e=b.startContainer,e=e.hasChildNodes()&&b.startOffset<e.childNodes.length?e.childNodes[b.startOffset]:
b.startOffset==Q(e)?a.ra(e):a.nextNode(e),f=b.endContainer,f=f.hasChildNodes()&&b.endOffset<f.childNodes.length?f.childNodes[b.endOffset]:a.ra(f),h=[];e.compareDocumentPosition(f)&4;)a.Mc(e,b)&&c(e)&&h.push(e),e=a.nextNode(e);return h};a.wb=function(a){return M(a,Oa)};a.r=function(a){return!(!a||a!==c&&!Pb(a))};a.k=function(b){return!(!b||a.r(b))};a.Da=function(b,c){var e=0;null==c&&(c=1);var f=a.Sb(b);0===f.length&&(f=[b]);for(var h=f.length-1;0<=h;h--){var m=f[h];if(Jb(m)&&!ec(m)||T(m)&&++e>=c+
1||a.da(m))return!1}return!0};a.f=function(b){return!(!b||!a.wg(b)||1!==b.nodeType&&1!==b.parentNode.nodeType)};a.Ke=function(b){for(var c=0;c<b.childNodes.length;c++)if(a.f(b.childNodes[c])||a.Ke(b.childNodes[c]))return!0;return!1};a.Lc=function(b){if(!T(b))return!1;var g=a.B(b),e=!1,f=!1;bc(b,function(b){if(a.r(b)||g!==a.B(b))return!0;if(T(b))return f=!0;e=e||a.Dd(b);return!1},c);return!e&&!f};a.Dd=function(b){return 3===b.nodeType&&!ec(b)||a.da(b)};a.Za=function(b){if(!T(b))return!1;for(var g=
b;(g=g.parentNode)&&!(1<g.childNodes.length||g===c);){if(M(g,"li"))return!1;if(a.r(g))break}var g=b,e=a.B(b),f=!1,h=!1;cc(g,function(b){if(a.r(b)||e!==a.B(b))return!0;if(T(b))return h=!0;f=f||a.Dd(b);return!1},c);var m=!1,k=!1;bc(g,function(b){if(a.r(b)||e!==a.B(b))return!0;if(T(b))return k=!0;m=m||a.Dd(b);return!1},c);return k||m||h||f?k||m?!1:f&&!m?!0:h?!1:!0:M(e,"li")};a.da=function(a){return M(a,"img,embed,object,input,hr,.en-resource, .en-resource *")};a.Cd=function(b){if(!ec(b))return!1;if(""==
b.data)return!0;var c=b.parentNode;if(!c)return!0;for(;!a.r(c)&&c.parentNode;)c=c.parentNode;for(var e=b;e!=c;){e=a.previousNode(e);if(a.r(e)||T(e))return!0;if(3==e.nodeType&&!ec(e)||a.da(e))break}e=b;for(b=a.ra(c);e!=b;){e=a.nextNode(e);if(a.r(e)||T(e))return!0;if(e&&3==e.nodeType&&!ec(e)||a.da(e))break}return!1};a.Ue=function(b){if(!b)return!1;if(a.r(b)||3===b.nodeType&&!a.Cd(b)||a.da(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.Ue(b.childNodes[c]))return!0;return!1};a.F=function(b){if(!b)return!1;
if(a.r(b)||a.da(b)||3===b.nodeType&&!a.Cd(b)||T(b)&&!a.Za(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.F(b.childNodes[c]))return!0;return!1};a.Wb=function(b){return pb(b).some(function(b){return a.F(b)})};a.J=function(b){return!!b&&!a.F(b)};a.Bd=function(b){if(a.Lc(b)&&!a.Za(b))return!0;if(!a.k(b)||1!=b.nodeType)return!1;for(var c=!1,e=0;e<b.childNodes.length;e++){if(!a.J(b.childNodes[e])&&!a.Bd(b.childNodes[e]))return!1;a.Bd(b.childNodes[e])&&(c=!0)}return c};a.tg=function(a){return M(a,
Ma)};a.D=function(b,c){if((-1!=="colgroup table tbody tfoot thead tr".split(" ").indexOf(c)||M(c,"colgroup,table,tbody,tfoot,thead,tr"))&&"object"===typeof b&&3===b.nodeType&&!/^[ \t\n\f\r]*$/.test(b.data)||(-1!==["script","style","plaintext","xmp"].indexOf(c)||M(c,"script,style,plaintext,xmp"))&&("object"!==typeof b||3!==b.nodeType)||"object"===typeof b&&(9===b.nodeType||11===b.nodeType||10===b.nodeType))return!1;S(b)&&(b=I(b));if(!u(b))return!0;if(S(c)){for(var e=c;e;){if("a"===b&&S(e,"a")||-1!==
Ia.indexOf(b)&&a.tg(e)||/^h[1-6]$/.test(b)&&S(e)&&/^h[1-6]$/.test(I(e)))return!1;e=e.parentNode}c=I(c)}if("object"===typeof c&&(1===c.nodeType||11===c.nodeType))return!0;if(!u(c))return!1;switch(c){case "colgroup":return"col"===b;case "table":return-1!=="caption col colgroup tbody td tfoot th thead tr".split(" ").indexOf(b);case "tbody":case "thead":case "tfoot":return-1!==["td","th","tr"].indexOf(b);case "tr":return-1!==["td","th"].indexOf(b);case "dl":return-1!==["dt","dd"].indexOf(b);case "dir":case "ol":case "ul":return-1!==
["dir","li","ol","ul"].indexOf(b);case "hgroup":return/^h[1-6]$/.test(b)}if(-1!=="body caption col colgroup frame frameset head html tbody td tfoot th thead tr".split(" ").indexOf(b)||-1!==["dd","dt"].indexOf(b)&&"dl"!==c||"li"===b&&"ol"!==c&&"ul"!==c)return!1;for(var 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"]],[Ja,Ia],[["td","th"],"caption col colgroup tbody td tfoot th thead tr".split(" ")]],f=0;f<
e.length;f++)if(-1!==e[f][0].indexOf(c)&&-1!==e[f][1].indexOf(b))return!1;return!0};a.ca=function(b){return a.f(b)&&a.F(b)&&(3===b.nodeType||a.da(b)||T(b))};a.$a=function(a){if(!S(a))return!1;var b=I(a);return"blockquote"===b?!0:"div"!==b?!1:"0px"!==Mb(a)["margin-left"]?!0:!1};a.$b=function(b){if(!a.$a(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.yg=function(a){return M(a,"address,div,h1,h2,h3,h4,h5,h6,listing,p,pre,xmp")};a.Gd=function(b){return a.yg(b)||M(b,"li,dt,dd")};a.B=function(b){for(;b&&!a.r(b);)b=b.parentNode;return b};a.Oe=function(b,c){var e=!1;b?0===c?e=a.r(b)||!b.parentNode:0<=c-1&&c-1<b.childNodes.length&&(e=a.F(b.childNodes[c-1])&&a.r(b.childNodes[c-1])||T(b.childNodes[c-1])):e=!0;return e};a.Ne=function(b,c){var e=!1;b?c===Q(b)?e=!b.parentNode&&c===Q(b)||a.r(b):c<b.childNodes.length&&(e=a.F(b.childNodes[c])&&a.r(b.childNodes[c])):
e=!0;return e};a.Kc=function(b,c){return a.Oe(b,c)||a.Ne(b,c)};a.X=function(b){var c=b.startContainer,e=b.startOffset,f=b.endContainer;b=b.endOffset;var h=a.Oa(c).concat(c).filter(function(a){return S(a,"li")}).slice(-1);h.length&&(e=O(h[0]),c=h[0].parentNode);if(!a.Oe(c,e)){do 0<=e-1&&G(c.childNodes[e-1])&&c.childNodes[e-1].hasChildNodes()?(c=c.childNodes[e-1],e=Q(c)):0==e?(e=O(c),c=c.parentNode):e--,Jb(c)&&(e=O(c),c=c.parentNode);while(!a.Kc(c,e))}for(;0==e&&c.parentNode&&a.f(f);)e=O(c),c=c.parentNode;
h=a.Oa(f).concat(f).filter(function(a){return S(a,"li")}).slice(-1);h.length&&(b=1+O(h[0]),f=h[0].parentNode);if(!a.Ne(f,b)){do b<Q(f)&&G(f)&&f.hasChildNodes()?(f=f.childNodes[b],b=0):b>=Q(f)?(b=1+O(f),f=f.parentNode):b++,Jb(f)&&(b=1+O(f),f=f.parentNode);while(!a.Kc(f,b))}for(;b==Q(f)&&f.parentNode&&a.f(f);)b=1+O(f),f=f.parentNode;return mc(c,e,f,b)};a.Qb=function(b){for(var c=0;!a.Kc(b,c);){if(0<=c-1&&c-1<b.childNodes.length&&a.F(b.childNodes[c-1]))return!1;0!=c&&b.hasChildNodes()?(b=b.childNodes[c-
1],c=Q(b)):(c=O(b),b=b.parentNode)}return!0};a.Cb=function(b){for(var c=Q(b);!a.Kc(b,c);){if(c<b.childNodes.length&&a.F(b.childNodes[c]))return!1;c!=Q(b)&&b.hasChildNodes()?(b=b.childNodes[c],c=0):(c=1+O(b),b=b.parentNode)}return!0};a.Vb=function(a){return a&&a.style?Wc(a.style.marginLeft):0};a.Qc=function(b,c){if(!b||a.qa(b)||!G(b))return!0;var e=b.style;if(e)for(var f=0;f<e.length;f++){var h=null,m=null,h=e[f],m=e.getPropertyValue(h);if(-1===La.indexOf(m)&&m&&-1===Ka.indexOf(h))return!1}return c?
a.Qc(b.parentNode):!0};a.xg=function(b){return!!R(b,"li,ol,ul,dl,dd,dt",a.Tb(b))};a.De=function(a){return M(a,"ul.en-todo-list")?"tl":M(a,"ol,ul")?I(a):null};a.Yb=function(b,c){return a.De(b)===c};a.eh=function(a,b){return!(!a.isPointInRange(b.startContainer,b.startOffset)&&!a.isPointInRange(b.endContainer,b.endOffset))};a.lg=function(b,c){return 0===Q(b)?null:c===Q(b)&&b.parentNode&&a.k(b)?[b.parentNode,1+O(b)]:0<=c&&c<b.childNodes.length&&0!==Q(b.childNodes[c])&&a.k(b.childNodes[c])?[b.childNodes[c],
0]:null};a.ng=function(b,c){return 0==Q(b)?null:0==c&&b.parentNode&&a.k(b)?[b.parentNode,O(b)]:0<=c-1&&c-1<b.childNodes.length&&0!=Q(b.childNodes[c-1])&&a.k(b.childNodes[c-1])?[b.childNodes[c-1],Q(b.childNodes[c-1])]:null};a.Ub=function(b,c){for(var e;e=a.ng(b,c);)b=e[0],c=e[1];return[b,c]};a.Dc=function(b,c){for(var e;e=a.lg(b,c);)b=e[0],c=e[1];return[b,c]};a.Xb=function(b){var g;!(g=c===b)&&(g=b&&Gb(b,c))&&(g=!!(b&&G(b)&&(mb(b,"en-container")||S(b,"td")||a.r(b)&&!a.Qc(b,!1))));return g?!0:!1};a.qa=
function(a){return c===a};a.Tb=function(b){return Gb(b,c)||a.qa(b)?c:null};a.wg=function(a){return Gb(a,c)};a.u=function(b,c){return!(!a.Tb(b)||a.Tb(b)!=a.Tb(c))}}};function Pd(a){a=W("*[id],*[class]",a);for(var b=a.length-1;0<=b;b--){var c=a[b];M(c,"div.en-container,object.en-todo,.en-resource, .en-resource *,.en-object-placeholder")||(M(c,"embed,object,img")||"en-editor-last-insertion-point"!==c.id&&c.removeAttribute("id"),c.removeAttribute("class"),la(c.attributes).forEach(function(a){0===a.name.indexOf("data-")&&c.removeAttribute(a.name)}))}}function Qd(a){X("span",a).forEach(function(a){a.hasAttributes()||ub(a)})}
function Rd(a){X("span[style*='-evernote-last-insertion-point']",a).forEach(function(a){ub(a)})}
function Sd(a){X('div[style~="margin-left:"]>ul,div[style~="margin-left:"]>ol',a).forEach(function(b){var d=b.parentElement;if(M(d,"div")){for(var g=Xb(d,"margin-left"),g=+g.replace(/(\d+)em/gi,"$1"),e=null;0<g;){var f=Ab(a,b.tagName);e?e.appendChild(f):d.insertAdjacentElement("afterEnd",f);e=f;g-=2}e&&(vb(d,e),F(d))}});X('li[style*="list-style:"]',a).forEach(function(a){"none"===Xb(a,"list-style")&&ub(a)});var b=nd.ob("rte").R().ob("block");X("li",a).forEach(function(a){b.Ea(a)});X("ol,ul",a).forEach(function(b){var d=
null;la(b.childNodes).forEach(function(b){M(b,"li,ol,ul")?d=null:ec(b)?F(b):Pb(b)?zb(b,"li"):(d||(d=Ab(a,"li"),b.parentNode.insertBefore(d,b.nextSibling)),d.appendChild(b))})})}function Td(a){X("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(b){var c=Ab(a,"li",{style:"display:inline;list-style:none;"});b.parentNode.insertBefore(c,b);c.appendChild(b)})}function Ud(a){W("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(a){var c=a.previousSibling;S(c,"li")&&c.appendChild(a)})}
function Vd(a){X("ul.en-todo-list",a).forEach(function(b){pb(b).forEach(function(b){if(S(b,"li")){var d=Ab(a,"object",{"class":"en-todo"});ob(d,"en-todo-checked",mb(b,"en-todo-checked"));b.insertBefore(d,b.firstChild)}})})}function Wd(a){X('ul[style*="-evernote-list-type"]',a).forEach(function(a){E(a,"en-todo-list");pb(a).forEach(function(a){if(S(a,"li")){var b=!1,g=W("object.en-todo",a).shift();g&&(b=mb(g,"en-todo-checked"),F(g));nb(a,"en-todo-over");ob(a,"en-todo-checked",b)}})})}
function Xd(a){x(!0,"This is Mac specific");X("embed",a).forEach(function(b){if("evernote/x-todo"===b.type){var c=Ab(a,"object",{"class":"en-todo"});"true"===b.getAttribute("todo-checked")&&E(c,"en-todo-checked");tb(b,c)}else(c=b.getAttribute("align"))&&c.length&&"absmiddle"!==c.toLowerCase()&&b.removeAttribute("align"),U(b,"float"),b.style.textAlign&&"absmiddle"!==b.style.textAlign.toLowerCase()&&U(b,"text-align"),Wb(b)})}
function Yd(a){X("center",a).forEach(function(a){V(a,"text-align","center");zb(a,"div")})}function Zd(a){X('embed[type="evernote/x-crypto"],.en-crypt',a).forEach(function(a){F(a)})}function $d(a){X("embed[src][id]",a).forEach(function(b){var c=ae(b.id);c&&(c=Ab(a,"object",{type:"application/x-apple-msg-attachment",data:"cid:"+c}),tb(b,c))});X("img[src]",a).forEach(function(a){var c=ae(a.id);c&&a.setAttribute("src","cid:"+c)})}var be=["javascript"];
function ce(a){var b=a;try{b=decodeURIComponent(b)||b}catch(c){ga("Could't decode invalid URI:",a),b="#"}b=b.replace(/[\x00-\x20]+/,"");b=b.replace(/<\!\-\-.*?\-\-\>/g,"");return(b=b.match(/^([a-zA-Z]+)\:/))?0<=be.indexOf(b[1].toLowerCase())?"#":a.trim()||"#":a||"#"}function de(a){X("*[href]",a).forEach(function(a){a.setAttribute("href",ce(a.getAttribute("href")))});X("*[src]",a).forEach(function(a){a.setAttribute("src",ce(a.getAttribute("src")))})}
function ee(a){Da(function(){Vd(a);Ud(a);Td(a);$d(a);Pd(a)})}
function fe(a){Da(function(){Rd(a);for(var b=a;b=Ib(b,a);){if(8==b.nodeType)if(0==b.data.indexOf("[CDATA[")){var c=b.nextSibling,b=tb(b,document.createTextNode(b.data.substr(7)));b.data.lastIndexOf("]]")!=b.data.length-2&&c&&3==c.nodeType?(c.data=c.data.replace(/^(.*?)\]\]\>(.*?)$/gi,"$1$2"),b.data+=">"):b.data=b.data.replace(/^(.*?)\]\](.*?)$/gi,"$1$2")}else b=tb(b,document.createTextNode(""));else 4==b.nodeType?b=tb(b,document.createTextNode(b.data)):-1===[1,3].indexOf(b.nodeType)&&v.warn("Usage of unsupported DOM node:",
b.nodeType,b.toString());G(b)&&b.style&&0<b.style.length&&U(b,"line-height")}Pd(a);Qd(a);Xd(a);de(a);Sd(a);Wd(a);Yd(a)})}function ge(a){Da(function(){Vd(a);Td(a);Pd(a)})}function ae(a){a=(a||"").split(":");return 3<=a.length&&"en-media"===a[0]?a[2]:null}
function he(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],g=(d.getAttribute("id")||"").split(":");if(3<=g.length&&"en-media"===g[0]){var e=g[2];e&&(d.setAttribute("src","?hash="+e),-1===b.indexOf(e)&&b.push(e))}}return b}catch(f){v.error("Exception in collectResourcesAction <$>",f.toString())}return null}
function Bd(a,b,c){c=A(c,{plain:!0,html:!1,raw:!1,xhtml:!1,resources:!1});if(!b||b.collapsed)return"";var d=nd.ob("rte").R(),g=d.ob("query"),e=d.ob("table"),f=g.Ub(b.startContainer,b.startOffset),h=R(b.startContainer,"td.en-selected",a),d=0;null!==h&&(f=g.Ub(h,0),h=e.Td(h),0<h.column&&(d=h.column));b.setStart(f[0],f[1]);h=R(b.endContainer,"td.en-selected",a);f=0;if(null!==h){var m=g.Dc(h,Q(h));b.setEnd(m[0],m[1]);h=e.Td(h);(e=e.Ge(h.table))&&e.columns>h.column&&(f=e.columns-h.column-1)}h=b.cloneContents();
e=document.createElement("body");e.appendChild(h);for(h=b.commonAncestorContainer;h&&g.f(h)&&g.k(h);)G(h)&&yb(e,h.cloneNode(!1)),h=h.parentNode;if(pb(e).some(function(a){return M(a,"li,tr,td")})&&(a=R(b.startContainer,"table,ul,ol",a)))for(a=a.cloneNode(!1),e.insertBefore(a,e.firstChild);;)if((b=e.children[1])&&M(b,"li,ol,ul,tr,td"))a.appendChild(b);else break;if(0<d||0<f){h=W("tr",e);if(0<d&&0<h.length)for(m=h[0],a=0;a<d;a++)b=m.firstChild.cloneNode(!1),g=J("div",{},[J("br")]),b.appendChild(g),m.insertBefore(b,
m.firstChild);if(0<f&&0<h.length)for(d=h[h.length-1],a=0;a<f;a++)b=d.lastChild.cloneNode(!1),g=J("div",{},[J("br")]),b.appendChild(g),d.appendChild(b)}Zd(e);var k={};c.plain&&gc(e.cloneNode(!0),function(a){a=(a=a.innerText||a.textContent)?a.replace(/\u00A0/g," "):"";k.plain=a});c.resources&&(k.resources=he(e)||[]);c.raw&&(d=e.cloneNode(!0),Pd(d),k.raw=ya(d.outerHTML));c.html&&(ee(e),k.html=ya(e.outerHTML));return JSON.stringify(k)}
function Kd(){return J("span",{style:"-evernote-last-insertion-point:true;",id:"en-editor-last-insertion-point"})}function Ld(a){for(var b=Ha.concat("id","contenteditable"),c=la(a.attributes||[]).map(function(a){return a.name.toLowerCase()}),d=0;d<c.length;d++){var g=c[d];-1===b.indexOf(g)&&a.removeAttribute(g)}U(a,"height");U(a,"width");U(a,"max-height");U(a,"max-width");U(a,"min-height");U(a,"min-width")}
function Md(a,b){for(var c='<div id="en-note"',d=0;d<Ha.length;d++){var g=Ha[d].toLowerCase();if(a.hasAttribute(g))var e=" "+g+'="',g=a.getAttribute(g).replace(ra["&"],"&amp;").replace(ra["<"],"&lt;").replace(ra[">"],"&gt;").replace(ra['"'],"&quot;").replace(ra["'"],"&apos;"),c=c+(e+g+'"')}return c+">"+b+"</div>"}function ie(){return J("div",{},[J("br")])};function je(){var a=this,b=this;b.name="format";b.c=function(){var c=b.e("context"),d=b.e("query"),g=c.root,e={};e.createlink=e.unlink=function(a){for(;a&&(!S(a)||"a"!==I(a)||!a.hasAttribute("href"));)a=a.parentNode;return a?a.getAttribute("href"):null};e.backcolor=function(a){for(;a&&a!==g&&d.k(a);){if(a.style){var b=a.style.backgroundColor;if(b&&"rgba(0, 0, 0, 0)"!==b&&""!==b&&"transparent"!==b)return Mb(a).backgroundColor}a=a.parentNode}return null};e.highlight=function(a){for(;a&&a!==g&&d.k(a);){if(a.style&&
("rgb(255, 250, 165)"===a.style.backgroundColor||"true"===Xb(a,"-evernote-highlight")))return"rgb(255, 250, 165)";a=a.parentNode}return null};e.subscript=e.superscript=function(a){for(var b=!1,c=!1;d.k(a);)S(a,"sub")?b=!0:S(a,"sup")&&(c=!0),a=a.parentNode;return b&&c?"mixed":b?"subscript":c?"superscript":null};e.strikethrough=function(a){return R(a,function(a){var b=I(a);return"s"===b||"strike"===b||"del"===b?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("line-through"):!1},c.root)?"line-through":
null};e.underline=function(a){return R(a,function(a){return"u"===I(a)?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("underline"):!1},c.root)?"underline":null};e.tt=function(a){return R(a,"tt",c.root)?"tt":null};a.Vd=function(a){var b=a.previousSibling;if(b){for(;b.hasChildNodes();)b=b.lastChild;for(;d.J(b)&&!d.Za(b)&&b!=a.parentNode;)b=d.previousNode(b);d.f(b)&&d.Za(b)&&b.parentNode.removeChild(b)}};a.Ud=function(a){for(var b=a;b.hasChildNodes();)b=b.lastChild;for(;d.J(b)&&!d.Za(b)&&b!=a;)b=
d.previousNode(b);if(d.f(b)&&d.Za(b)){for(;d.f(b.parentNode)&&d.J(b.parentNode);)b=b.parentNode;b.parentNode.removeChild(b)}};a.Mg=function(b){a.Vd(b);a.Ud(b)};a.wa=function(b,k,l){"undefined"==typeof k&&(k=function(){return!1});"undefined"==typeof l&&(l=function(){return null});if(b.every(d.J)&&!b.some(function(a){return T(a)})||!b[0].parentNode)return null;for(d.k(b[b.length-1])&&!T(b[b.length-1])&&T(b[b.length-1].nextSibling)&&b.push(b[b.length-1].nextSibling);d.J(b[0].previousSibling);)b.unshift(b[0].previousSibling);
for(;d.J(b[b.length-1].nextSibling);)b.push(b[b.length-1].nextSibling);l=d.f(b[0].previousSibling)&&k(b[0].previousSibling)?b[0].previousSibling:d.f(b[b.length-1].nextSibling)&&k(b[b.length-1].nextSibling)?b[b.length-1].nextSibling:l();if(!l)return null;if(!l.parentNode){b[0].parentNode.insertBefore(l,b[0]);var f=c.a();f.startContainer==l.parentNode&&f.startOffset==O(l)&&c.Zd(f.startContainer,f.startOffset+1);f.endContainer==l.parentNode&&f.endOffset==O(l)&&c.Yd(f.endContainer,f.endOffset+1)}f=b[0].parentNode;
if(l.compareDocumentPosition(b[0])&4){!d.k(l)&&d.k([].filter.call(l.childNodes,d.F).slice(-1)[0])&&d.k(b.filter(d.F)[0])&&!T(l.lastChild)&&l.appendChild(J("br"));for(var h=0;h<b.length;h++)c.s(b[h],l,-1)}else for(!d.k(l)&&d.k([].filter.call(l.childNodes,d.F)[0])&&d.k(b.filter(d.F).slice(-1)[0])&&!T(b[b.length-1])&&l.insertBefore(J("br"),l.firstChild),h=b.length-1;0<=h;h--)c.s(b[h],l,0);d.f(f)&&!f.hasChildNodes()&&f.parentNode.removeChild(f);if(d.f(l.nextSibling)&&k(l.nextSibling)){for(!d.k(l)&&d.k(l.lastChild)&&
d.k(l.nextSibling.firstChild)&&!T(l.lastChild)&&l.appendChild(J("br"));l.nextSibling.hasChildNodes();)c.s(l.nextSibling.firstChild,l,-1);c.removeNode(l.nextSibling)}a.Mg(l);return l};a.Fd=function(b,c){return c.collapsed?!1:d.Mc(b,c)||b==c.startContainer&&3===b.nodeType&&Q(b)!=c.startOffset||b==c.endContainer&&3===b.nodeType&&0!=c.endOffset||!(!b.hasChildNodes()||![].every.call(b.childNodes,function(b){return a.Fd(b,c)})||d.Nc(c.startContainer,b)&&3==c.startContainer.nodeType&&0!=c.startOffset||d.Nc(c.endContainer,
b)&&3==c.endContainer.nodeType&&c.endOffset!=Q(c.endContainer))?!0:!1};a.A=function(b,c){"undefined"==typeof c&&(c=function(){return!0});for(var l=b.startContainer;a.Fd(l.parentNode,b);)l=l.parentNode;for(var f=d.ra(b.endContainer),h=[];!f&&l||f&&l.compareDocumentPosition(f)&4;)a.Fd(l,b)&&c(l)&&h.push(l),l=d.nextNode(l);return h};a.Qe=function(a){if(!S(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.Pc=function(a){if(!S(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.ka=function(a,b,d){return null===b&&null===d||u(b)&&u(d)&&b==d&&!c.j(a).Ma||u(b)&&u(d)&&c.j(a).Ma&&c.j(a).Ma(b,d)?!0:!1};a.Ka=function(b,c,d){return a.ka(b,c,d)?!0:!1};a.t=function(b,d){if(1!==b.nodeType&&(!b.parentNode||
1!=b.parentNode.nodeType))return null;if(1!==b.nodeType)return a.t(b.parentNode,d);var l=e[d];if(l)return l(b);x(!!c.j(d).P,"Bug: no relevantCssProperty for "+d+" in f.getEffectiveCommandValue");l=c.j(d).P;return l?Lb(b)?Mb(b)[l]:(v.warn("We are not on rendered DOM for fontSize retieval",b),hc(b,l,g)):""};a.C=function(a,b){if(("backcolor"===b||"highlight"===b)&&Pb(a))return null;var d=I(a);if("createlink"===b||"unlink"===b)return"a"===d&&a.hasAttribute("href")?a.getAttribute("href"):null;if("subscript"===
b||"superscript"===b)return"sup"===d?"superscript":"sub"===d?"subscript":null;if("strikethrough"===b&&""!=a.style.textDecoration)return-1!=a.style.textDecoration.indexOf("line-through")?"line-through":null;if("strikethrough"===b&&("s"===d||"strike"===d||"del"===d))return"line-through";if("underline"===b&&""!=a.style.textDecoration)return-1!=a.style.textDecoration.indexOf("underline")?"underline":null;if("underline"===b&&"u"===d)return"underline";if("highlight"===b&&"mark"===d)return"rgb(255, 250, 165)";
if("tt"==d)return"tt";var f=c.j(b),h=f.P;if(null===h)return null;var e=a.style[h];if(""!=e)return(d=f.N)&&d.length?("highlight"===b&&(e=ke(e)),-1!==d.indexOf(e)?e:null):e;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 Lb(a)?Mb(a).fontSize.toString():(v.warn("We are not on rendered DOM for fontSize retieval",a),hc(a,"fontName",g))}return"fontWeight"!=h||"b"!=d&&"strong"!=d?
"fontStyle"!=h||"i"!=d&&"em"!=d?null:"italic":"bold"};a.nf=function(b,d,l){for(var f=b;a.Qe(f)&&1==f.childNodes.length&&a.Qe(f.firstChild)&&(!a.Pc(f)||!a.ka(d,a.C(f,d),l));)f=f.firstChild;if(f!=b&&a.Pc(f)&&a.ka(d,a.C(f,d),l)&&a.Ka(d,a.t(f,d),l)){for(;f.hasChildNodes();)c.s(f.firstChild,f.parentNode,O(f));b.parentNode.insertBefore(f,b.nextSibling);c.s(b,f,-1)}};a.O=function(b){var c=[];b.forEach(function(b){"subscript forecolor highlight backcolor fontname fontsize bold italic strikethrough underline tt".split(" ").forEach(function(d){var f=
b;1!=f.nodeType&&(f=f.parentNode);for(;f&&1==f.nodeType&&null===a.C(f,d);)f=f.parentNode;f&&1==f.nodeType?c.push([b,d,a.C(f,d)]):c.push([b,d,null])})});return c};a.L=function(b){b.forEach(function(b){var c=b[0],d=b[1];b=b[2];var f=c;f&&1==f.nodeType||(f=f.parentNode);for(;f&&1==f.nodeType&&null===a.C(f,d);)f=f.parentNode;null===b&&f&&1==f.nodeType?a.ef(c,d,null):(f&&1==f.nodeType&&!a.ka(d,a.C(f,d),b)||(!f||1!=f.nodeType)&&null!==b)&&a.Rb(c,d,b)})};a.hd=function(b,k){if(d.f(b)&&null!==a.C(b,k))if(a.Pc(b)){for(var f=
Array.prototype.slice.call(b.childNodes),h=0;h<f.length;h++)c.s(f[h],b.parentNode,O(b));b.parentNode.removeChild(b)}else"strikethrough"===k&&-1!=b.style.textDecoration.indexOf("line-through")&&(b.style.textDecoration="line-through"==b.style.textDecoration?"":b.style.textDecoration.replace("line-through","")),"underline"===k&&-1!=b.style.textDecoration.indexOf("underline")&&(b.style.textDecoration="underline"==b.style.textDecoration?"":b.style.textDecoration.replace("underline","")),null!==c.j(k).P&&
(b.style[c.j(k).P]=""),S(b,"font")&&("forecolor"===k&&b.removeAttribute("color"),"fontname"===k&&b.removeAttribute("face"),"fontsize"===k&&b.removeAttribute("size")),!S(b,"a")||"createlink"!==k&&"unlink"!==k||b.removeAttribute("href"),""==b.getAttribute("style")&&b.removeAttribute("style"),null===a.C(b,k)||c.ta(b,"span")};a.ef=function(b,c,f){if(b.parentNode&&1==b.parentNode.nodeType&&!a.Ka(c,a.t(b,c),f)){for(var h=b.parentNode,e=[];d.f(h)&&1==h.nodeType&&!a.Ka(c,a.t(h,c),f);)e.push(h),h=h.parentNode;
if(e.length){var g=a.C(e[e.length-1],c);if(null!==g||g==f)if(null===f||a.Ka(c,a.t(e[e.length-1].parentNode,c),f))for(;e.length;)for(h=e.pop(),null!==a.C(h,c)&&(g=a.C(h,c)),f=Array.prototype.slice.call(h.childNodes),null!==a.C(h,c)&&a.hd(h,c),h=0;h<f.length;h++){var r=f[h];r!=b&&(1!=r.nodeType||null===a.C(r,c)||a.ka(c,g,a.C(r,c)))&&r!=e[e.length-1]&&a.Rb(r,c,g)}}}};a.Rb=function(b,k,f){if(b.parentNode&&null!==f&&(d.D(b,"span")&&(a.nf(b.previousSibling,k,f),a.nf(b.nextSibling,k,f),a.wa([b],function(b){return a.Pc(b)&&
a.ka(k,a.C(b,k),f)&&a.Ka(k,a.t(b,k),f)},function(){return null})),!d.J(b)&&!a.Ka(k,a.t(b,k),f)&&b.parentNode))if(!d.D(b,"span")){for(var h=[],e=0;e<b.childNodes.length;e++){if(1==b.childNodes[e].nodeType){var g=a.C(b.childNodes[e],k);if(null!==g&&!a.ka(k,f,g))continue}h.push(b.childNodes[e])}for(e=0;e<h.length;e++)a.Rb(h[e],k,f)}else if(!a.Ka(k,a.t(b,k),f)){h=null;if("bold"!==k||"bold"!==f&&"700"!==f)if("italic"===k&&"italic"===f)h=J("i");else if("strikethrough"===k&&"line-through"==f)h=J("s");else if("underline"===
k&&"underline"===f)h=J("u");else if("tt"===k&&"tt"===f)h=J("tt");else if("createlink"===k||"unlink"===k)for(h=J("a"),h.setAttribute("href",f),e=b.parentNode;e;)S(e,"a")&&(e=c.ta(e,"span")),e=e.parentNode;else"subscript"!==k&&"superscript"!==k||"subscript"!==f?"subscript"!==k&&"superscript"!==k||"superscript"!==f||(h=J("sup")):h=J("sub");else h=J("b");h||(h=J("span"));b.parentNode.insertBefore(h,b);e=c.j(k).P;null===e||a.Ka(k,a.t(h,k),f)||(h.style[e]=f,"highlight"===k&&V(h,"-evernote-highlight","true"));
"forecolor"===k&&le(f)&&(h.style.color=f);"fontname"===k&&null!=f&&(h.style.fontFamily=f);"fontsize"===k&&null!=f&&(h.style.fontSize=f);"strikethrough"===k&&"line-through"==f&&"line-through"!=a.t(h,"strikethrough")&&(h.style.textDecoration="line-through");"underline"===k&&"underline"==f&&"underline"!=a.t(h,"underline")&&(h.style.textDecoration="underline");c.s(b,h,h.childNodes.length);if(1===b.nodeType&&!a.ka(k,a.t(b,k),f)){c.s(b,h.parentNode,O(h));h.parentNode.removeChild(h);h=[];for(e=0;e<b.childNodes.length;e++){if(1==
b.childNodes[e].nodeType&&(g=a.C(b.childNodes[e],k),null!==g&&!a.ka(k,f,g)))continue;h.push(b.childNodes[e])}for(e=0;e<h.length;e++)a.Rb(h[e],k,f)}}};a.M=function(b,f,h){var e=!1;void 0===h&&(h=c.a(),e=!0);if(a.A(h).some(d.ca)){if(d.f(h.startContainer)&&3==h.startContainer.nodeType&&0!=h.startOffset&&h.startOffset!=Q(h.startContainer)){var n;if(h.startContainer==h.endContainer){var g=h.endOffset-h.startOffset;n=h.startContainer.splitText(h.startOffset);h.setEnd(n,g)}else n=h.startContainer.splitText(h.startOffset);
h.setStart(n,0)}d.f(h.endContainer)&&3==h.endContainer.nodeType&&0!=h.endOffset&&h.endOffset!=Q(h.endContainer)&&(n=[h.startContainer,h.startOffset],g=[h.endContainer,h.endOffset],h.endContainer.splitText(h.endOffset),h.setStart(n[0],n[1]),h.setEnd(g[0],g[1]));e&&c.hb(h);a.A(h,function(a){return d.f(a)&&1===a.nodeType}).forEach(function(c){a.hd(c,b)});a.A(h,d.f).forEach(function(c){a.ef(c,b,f);d.D(c,"span")&&a.Rb(c,b,f)})}else c.j(b).N&&c.tf(b,-1!=c.j(b).N.indexOf(f)),"subscript"===b&&c.Ff("superscript"),
"superscript"===b&&c.Ff("subscript"),null===f?c.Xg(b):("createlink"===b||c.j(b).value)&&c.uf(b,f)};var f="bold italic strikethrough subscript superscript underline highlight tt".split(" "),h=["fontname","fontsize","forecolor"];a.Yc=function(){var a=[];void 0!==c.Gc("createlink")&&a.push(["createlink",c.Gc("createlink")]);f.forEach(function(b){void 0!==c.Fc(b)&&a.push([b,c.Fc(b)])});h.forEach(function(b){void 0!==c.Gc(b)&&a.push([b,c.Gc(b)])});return a};a.gf=function(b){var k=[],l=a.A(c.a()).filter(d.ca)[0];
!l&&b&&(b=c.a())&&(l=rc(b));if(!l)return k;k.push(["createlink",a.t(l,"createlink")]);f.forEach(function(b){var d=a.t(l,b);-1!=c.j(b).N.indexOf(d)?k.push([b,!0]):k.push([b,!1])});h.forEach(function(a){k.push([a,c.j(a).value()])});return k};a.Sa=function(b){var f=a.A(c.a()).filter(d.ca)[0];if(f)for(var h=0;h<b.length;h++){var e=b[h][0],n=b[h][1];"boolean"===typeof n&&c.j(e).state()!==n?c.j(e).action(n):u(n)&&!a.ka(e,a.t(f,e),n)&&c.j(e).action(n);f=a.A(c.a()).filter(d.ca)[0]||f}else for(h=0;h<b.length;h++)e=
b[h][0],n=b[h][1],"boolean"==typeof n&&c.tf(e,n),u(n)&&c.uf(e,n)};a.Ag=function(b){var d=a.gf(!0);b();c.ja();a.Sa(d)};a.rb=function(){return c.root}}};function me(){var a=this;a.name="normalize";var b=/\n\r|\r\n|\r|\n/gi,c=/\s/gi;a.c=function(){function d(){if(!k(t,!0)&&n.Da(t)){sb(t);var a=ie();t.appendChild(a);p.i(a,0)}}function g(a){if(G(a)&&(a=a.getElementsByTagName("*")))for(var b=a.length-1;0<=b;b--){var c=a[b];c.hasChildNodes()||Pb(c)||n.da(c)||T(c)||p.removeNode(c)}}function e(a){(a=fc(a))&&l(a,"div>div,div>table,div>ol,div>ul").forEach(function(a){var b=a.parentNode;if(b&&!n.Xb(b)){if(S(a,"div")){["text-align"].forEach(function(c){if(!a.style[c]){var d=
b.style[c];d&&(a.style[c]=d)}});var c=n.Vb(b)+n.Vb(a);0<c?V(a,"margin-left",c+"px"):U(a,"margin-left")}var c=[a],d=y.O(c);r.W(c);y.L(d);f(n.B(a))}})}function f(a){var b=a&&a.nextSibling;b&&!k(b)&&p.removeNode(b);(a=a&&a.previousSibling)&&!k(a)&&p.removeNode(a)}function h(a){if(M(a,"ul,ol")&&n.f(a)&&n.Qc(a,!0))for(var b=null,c=a.childNodes.length-1;0<=c;c--){var d=a.childNodes[c];M(d,"li,ol,ul")?b=null:Pb(d)?p.ta(d,"li"):ec(d)?p.removeNode(d):(b||(b=J("li"),p.insertBefore(b,d.parentNode,d.nextSibling)),
p.s(d,b,0))}}function m(a){x(!!a,"expected node");if("hr"===I(a)){var b=J("div");b.appendChild(a);return b}do{var c=mc(a,0),c=n.X(c);if(c.collapsed)return null;for(;n.r(b=c.startContainer.childNodes[c.startOffset]);)c.setStart(b,0);b=n.na(c);if(0>=b.length)return Nb(c);for(var c=b[0].parentNode,d=n.r(c)&&b[0]===c.firstChild&&b[b.length-1]===c.lastChild;b.length&&ec(b[0]);)p.removeNode(b.shift());var f=n.Xb(c);if(d){if(!f)break;if(0>=b.length||!pb(c).some(function(a){return k(a)})){r.Na(c);break}}b.length&&
(d=y.O(b),c=y.wa(b,function(){return!1},function(){return J("div")}),y.L(d),r.$(c))}while(0);return c}function k(a,b){if(!a)return!1;if(3===a.nodeType&&!n.Cd(a)||n.da(a)||M(a,"table,tr,td,th,li")||T(a)&&(b?!n.Lc(a):!n.Za(a)))return!0;for(var c=0;c<a.childNodes.length;c++)if(k(a.childNodes[c],b))return!0;return!1}function l(a,b){for(var c=[];a&&a!==t;)M(a,b)&&c.unshift(a),a=a.parentNode;return c}var p=a.e("context"),n=a.e("query"),y=a.e("format"),r=a.e("block"),t=p.root;a.Tc=function(a){function d(a){if(a){Pb(a)&&
(a=K(a,"div"));U(a,"white-space");U(a,"word-wrap");U(a,"word-break");a=pb(a);for(var f,h,l=p.a(),e=0;e<a.length;e++){var m=a[e];if(Jb(m)){for(var n=m.textContent.split(b),g=J("div"),t=0;t<n.length;t++){var H=n[t].replace(c,"\u00a0").replace(na,"\u00a0 ");H&&g.appendChild(document.createTextNode(H));t<n.length-1&&g.appendChild(J("br"))}if(l.startContainer===m||Gb(m,l.startContainer))f=k(g,l.startOffset);if(l.endContainer===m||Gb(m,l.endContainer))h=k(g,l.endOffset);tb(m,g);ub(g)}else d(m)}f&&null!==
f[0]&&p.Zd(f[0],f[1]);h&&null!==h[0]&&p.Yd(h[0],h[1])}}function k(a,b){for(var c=0,d=null,f=0,h=0;h<a.childNodes.length;h++){var l=a.childNodes[h],e=l.length||1;if(c<b)c+=e,f=e-(c-b),d=l;else{c==b&&(f=0,d=l);break}}return[d,f]}function t(a){var b=Mb(a)||{},b={fontWeight:b.fontWeight,fg:b.fontFamily,fontSize:Wc(b.fontSize),marginTop:Wc(b.marginTop),marginBottom:Wc(b.marginBottom)},c=Mb(a.parentNode)||{};a=K(a);b.fontWeight&&"normal"!==b.fontWeight&&400!=b.fontWeight&&(a.style.fontWeight=b.fontWeight);
b.fontFamily&&b.fg!==c.fontName&&(a.style.fontFamily=b.fontFamily);b.fontSize&&b.fontSize!==Wc(c.fontSize)&&(a.style.fontSize=b.fontSize.toString()+"px");0<=1*b.marginTop-Wc(c.fontSize)&&(n.xg(a)?(a.appendChild(J("br")),a.appendChild(J("br"))):(b=ie(),p.s(b,a.parentNode,O(a)),e(b)));return a}function K(b,c){var d=a===b,f=p.ta(b,c||"div");d&&(a=f);return f}if(!a)return null;a=fc(a);l(a,"dl").forEach(function(a){a&&(W("dt",a).forEach(t),W("dd",a).forEach(function(a){r.yd(t(a))}),t(a))});l(a,"h1,h2,h3,h4,h5,h6,p").forEach(t);
var na=/\u00a0\u00a0/gi;l(a,"blockquote").forEach(function(a){a=t(a);a.style.marginLeft="";r.yd(a);pb(a).forEach(e)});l(a,"th").forEach(function(a){a=K(a,"td");var b=document.createRange();b.selectNodeContents(a);y.M("bold","bold",b)});var pa=!1;l(a,"ol,ul").forEach(function(a){pa||(X("li div",a).forEach(function(a){n.Xb(a)||r.hc(a)}),X("li",a).forEach(r.Ea),X('li[style*="list-style:"]',a).forEach(function(a){if("none"===Xb(a,"list-style")){for(;ec(a.previousSibling);)p.removeNode(a.previousSibling);
M(a.previousSibling,"li")?(p.Ze(a,a.previousSibling,-1),p.removeNode(a)):a.removeAttribute("style")}}));pa=!0;h(a)});var ia=!1;pa||(l(a,"pre").forEach(function(a){d(a);ia=!0}),l(a,"*[style]").forEach(function(a){var b=Xb(a,"white-space");if("pre"===b||"pre-wrap"===b)d(a),ia=!0}),ia||(a=fc(a),a=m(a)));a=fc(a);e(a);l(a,"*[style]").forEach(function(a){U(a,"line-height")});if(a=n.B(a))g(a),f(a);return a};a.bb=function(){a.Tc(rc(p.a()));d()};a.af=function(){a.Tc(Nb(p.a()));d()};a.Pd=function(){p.a().collapsed||
a.af();a.bb()};a.Fg=function(){for(var b=rc(p.a()),c,f=2;b&&0<f;)ec(b)?c=Fb(b,t):n.k(b)?(--f,c=a.Tc(b),c=cc(c,function(a){return n.k(a)&&n.B(c)!==n.B(a)},t)):c=Fb(b,t),x(c!==b,"iterate!",c,b),b=c;d()};a.Od=function(b,c){p.a()||p.i(t,0);var f=0;c||(c=D);var k=y.rb();X("td:empty,th:empty",k).forEach(function(a){p.kb(ie(),a)});X("li:empty",k).forEach(function(a){p.kb(J("br"),a)});X("hr",k).forEach(function(a){a.parentNode!==k&&r.W([a])});for(var h=b||k.firstChild,l;h&&c(h)&&1111>f++;){h=fc(h);if(ec(h)&&
1<Q(h.parentNode))l=Ib(h,k),p.removeNode(h);else if(n.k(h)||M(h,"td,li,div")){var e=h.nextSibling;(l=a.Tc(h))||(l=e);l=bc(l,function(a){return n.k(a)&&n.B(l)!==n.B(a)},k)}else l=Ib(h,k);h=l}d();0>=f&&v.error("Normalization reached safety limit, this probably indicates that the current document failed to get normalized and may behave unexpectedly.")};a.ab=function(){p.a().collapsed?a.bb():a.Od(rc(p.a()),function(a){var b=p.a();return b&&!(a.compareDocumentPosition(Nb(b))&2)})}}};function ne(){return J("div",{},[J("br")])}function oe(a){return(a=/^[\'\"]?(.*?)[\'\"]?(,|$)/.exec(a))&&a[1]?a[1]:null}
function ke(a){if("currentcolor"===a.toLowerCase())return null;void 0===pe&&(pe={});if(void 0!==pe[a])return pe[a];var b=a,c=J("span");document.body.appendChild(c);c.style.color="black";var d=J("span");c.appendChild(d);d.style.color=a;a=Mb(d).color;if("rgb(0, 0, 0)"===a&&(c.color="white",a=Mb(d).color,"rgb(0, 0, 0)"!==a))return pe[b]=null;document.body.removeChild(c);if(/^rgba\([0-9]+, [0-9]+, [0-9]+, 1\)$/.test(a))return pe[b]=a.replace("rgba","rgb").replace(", 1)",")");if("transparent"===a)return pe[b]=
"rgba(0, 0, 0, 0)";a=a.replace(/, 0.496094\)$/,", 0.5)");return pe[b]=a}var pe;function le(a){a=ke(a);return(a=/^rgb\(([0-9]+), ([0-9]+), ([0-9]+)\)$/.exec(a))?"#"+(parseInt(a[1],10)||0).toString(16).replace(/^.$/,"0$&")+(parseInt(a[2],10)||0).toString(16).replace(/^.$/,"0$&")+(parseInt(a[3],10)||0).toString(16).replace(/^.$/,"0$&"):null};function qe(){function a(a,b){c.Ba(b).forEach(function(a){c.detach(a)});kc.remove(a)}function b(){for(var b=Object.keys(g),c=0;c<b.length;c++){for(var f=g[b[c]],h=W(f.Qg,d),e=0;e<h.length;e++){var y=h[e];if(!f.he.has(y)){var r={id:lc(y,!0).id};f.he.set(y,r);f.c(y,r)}}for(var y=[],t=f.he,e=t.ha.length-1;0<=e;e--){var H=t.ha[e];if(-1===h.indexOf(H)){r=t.jb[e];f.q(H,r);var C=t,N=e;C.ha.splice(N,1);C.jb.splice(N,1);y.push([H,r.id])}}for(e=y.length-1;0<=e;e--)a.apply(this,y[e])}}var c=this;c.name="layer";
var d=null,g={},e={},f=null,h=!1;c.K={};c.K.cover=function(a,b){var c=L(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"};c.K.checkbox=function(a,b){var c=L(a);b.style.top=c.top-12+"px";b.style.left=c.left-12+"px";b.style.width=c.width+20+"px";b.style.height=c.height+22+"px"};c.K.anchor=function(a,b){var c=L(a);b.style.top=c.top+"px";b.style.left=c.left+"px"};c.K.bottomRightCorner=function(a,b){var c=L(a),d=window.innerWidth-c.right;b.style.bottom=
window.innerHeight-c.bottom+"px";b.style.right=d+"px"};c.K.bottomLeftCorner=function(a,b){var c=L(a);b.style.bottom=window.innerHeight-c.bottom+"px";b.style.left=c.left+"px"};c.K.bottomRightResizeHandle=function(a,b){var c=L(a),d=window.innerWidth-c.right-11;b.style.bottom=window.innerHeight-c.bottom-13+"px";b.style.right=d+"px"};c.K.bottomLeftResizeHandle=function(a,b){var c=L(a),d=c.left-11;b.style.bottom=window.innerHeight-c.bottom-13+"px";b.style.left=d+"px"};c.K.rightEdge=function(a,b){var c=
Math.floor(L(b).width/2),d=L(a),c=window.innerWidth-d.right-c,f=window.innerHeight-d.bottom;b.style.top=d.top+"px";b.style.right=c+"px";b.style.bottom=f+"px"};c.K.leftEdge=function(a,b){var c=Math.floor(L(b).width/2),d=L(a),c=d.left-c,f=window.innerHeight-d.bottom;b.style.top=d.top+"px";b.style.left=c+"px";b.style.bottom=f+"px"};c.K.tableColumnEdge=function(a,b){c.K.rightEdge(a,b);var d=R(a,"table"),d=window.innerHeight-L(d).bottom;b.style.bottom=d+"px"};c.Lg=function(a,b){var c=(Aa++).toString();
g[c]={name:c,Qg:"table",c:a,q:b||Fa,he:new Ea}};c.He=function(){return f};c.ig=function(a){return a.getAttribute("data-en-layout-algorithm")};c.Ba=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=lc(a).id;if(null==a)return[];b='[data-en-overlay-id="'+a+'"]'}else return[];return W(b,f)};c.getParent=function(a){return(a=e[a])&&a.m||null};c.ze=function(b){if(b){var d=b.getAttribute("data-en-overlay-id");
if(null!=d){var f=c.getParent(d);if(null==f)c.detach(b);else if(Lb(f)){if(d=c.ig(b),null!=d&&"undefined"!==typeof c.K[d])c.K[d](f,b)}else a(f,d)}}};c.cc=function(a){!0===a&&(h=!0);h&&b();a=c.Ba();for(var d=0;d<a.length;d++)c.ze(a[d])};c.Mb=function(a,b){var d;b=b||"cover";x("undefined"!==typeof c.K[b],"Invalid layout algorithm:",b);x(G(a),"Expected a node!");var h=lc(a,!0).id;x(!!h&&u(h),"Expected an ID");h in e?++e[h].kf:e[h]={m:a,kf:1};d=d||J("div");d.setAttribute("data-en-overlay-id",h);d.setAttribute("data-en-layout-algorithm",
b);Xb(d,"z-index")||V(d,"z-index","900");V(d,"position","absolute");f.appendChild(d);c.K[b](a,d);return d};c.detach=function(a){var b=a.getAttribute("data-en-overlay-id"),c=e[b];c&&0>=--c.kf&&delete e[b];F(a);return b};c.Uc=function(a,b,d,f,h){var e=!0;null==e&&(e=!1);var g=!1,t,H,C,N,w=J("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==h?"":h)});
c.b.g(a,"mousedown",function(a){g=!0;t=a.pageX;H=a.pageY;C=a.pageX;N=a.pageY;!0===e&&c.He().appendChild(w);null!=b&&b()});c.b.g(window,"mousemove",function(a){if(!1!==g){C=a.pageX;N=a.pageY;a=C-t;var b=N-H;null!=d&&d(a,b)}});c.b.g(window,"mouseup",function(a){if(!1!==g){g=!1;C=a.pageX;N=a.pageY;a=C-t;var b=N-H;!0===e&&F(w);null!=f&&f(a,b)}})};c.c=function(a){d=A(a,{root:null}).root||c.e("context").root;f=document.querySelector("#en-tools");f||(f=J("div",{"class":"en-tools",id:"en-tools"}),document.body.appendChild(f));
x(G(d));x(G(f));c.b.g(window,"resize",c.cc.bind(c,!1));c.b.gc("execcommand",c.cc.bind(c,!0));c.b.g(document,"input",c.cc.bind(c,!0));c.cc(!0)};c.q=function(){c.Ba().forEach(function(a){c.detach(a)});d=null}};function re(){function a(a){b(a.target)}function b(a){z(m.Ba(a),function(a){mb(a,"img-resizer-handle")&&m.detach(a)})}function c(a){M(a.target,"img:not(.en-object-placeholder)")&&d(a.target)}function d(a){if(1!==n.length)W(".img-resizer-handle",m.He()).forEach(function(a){a=m.getParent(a);b(a)});else{var c=!1;z(m.Ba(a),function(a){mb(a,"img-resizer-handle")&&(c=!0)});if(!0!==c){var d=k.Ee(a),f=d===a.naturalWidth;if(!(142>=d)){var h=g(a),e="right"===g(a)?"bottomLeftResizeHandle":"bottomRightResizeHandle",
w=m.Mb(a,e);V(w,"z-index","901");E(w,"img-resizer-handle");E(w,e);var K;"bottomRightResizeHandle"===e?K="cursor: nwse-resize;":"bottomLeftResizeHandle"===e&&(K="cursor: nesw-resize;");var na=function(){V(a,"height","auto");var b=L(a);U(a,"width");a.setAttribute("width",b.width)},pa=L(a);m.Uc(w,function(){null!=p&&v.warn("Multiple images being resized at once! <$>");p=a;na()},function(b){var c=L(l).width;b="right"===h?pa.width-b:"center"===h?pa.width+2*b:pa.width+b;142>=b?a.setAttribute("width","142"):
b>=c||b>=d?(a.removeAttribute("width"),!1===f&&(k.Je(a),na())):a.setAttribute("width",""+b);m.cc()},function(){p=null;pa=L(a);qd(l,"dirty");pc(a)},K)}}}}function g(a){a=(a=Mb(a))?a.textAlign:null;return"center"===a?"center":"right"===a?"right":"justify"===a?"full":"left"}function e(a){M(a.target,"img:not(.en-object-placeholder)")&&pc(a.target)}function f(a){!1!==!!a.getAttribute("data-en-img-selected")&&(a.removeAttribute("data-en-img-selected"),z(m.Ba(a),function(a){mb(a,"img-selected-overlay")&&
m.detach(a)}))}var h=this,m=null,k=null,l=null;h.name="ui-img";var p,n=[];h.c=function(){l=h.e("context").root;E(l,"en-ui-img-on");m=h.e("layer");k=h.e("img");h.b.sa(l,"imageSelected",c);h.b.sa(l,"imageUnselected",a);h.b.g(l,"click",e);h.b.g(document,"selectionchange",function(){if(0!==l.getElementsByTagName("img").length){var a=W("img:not(.en-object-placeholder)",l);n=[];if(0!==a.length){var b=window.getSelection();b.isCollapsed||z(a,function(a){b.containsNode(a,!1)&&-1===n.indexOf(a)&&n.push(a)});
z(a,function(a){if(!b.isCollapsed&&b.containsNode(a,!1)){if(!a.getAttribute("data-en-img-selected")){a.setAttribute("data-en-img-selected","true");var c=m.Mb(a);E(c,"img-selected-overlay");var d=J("div",{"class":"img-selected-overlay-top-left-corner"}),h=J("div",{"class":"img-selected-overlay-top-right-corner"}),k=J("div",{"class":"img-selected-overlay-bottom-left-corner"}),e=J("div",{"class":"img-selected-overlay-bottom-right-corner"}),g=J("div",{"class":"img-selected-overlay-right-edge"}),n=J("div",
{"class":"img-selected-overlay-left-edge"});c.appendChild(d);c.appendChild(h);c.appendChild(k);c.appendChild(e);c.appendChild(g);c.appendChild(n)}qd(l,"imageSelected",{target:a})}else p!==a&&(f(a),qd(l,"imageUnselected",{target:a}))})}}})};h.q=function(){nb(l,"en-ui-img-on");W("img:not(.en-object-placeholder)",l).forEach(function(a){f(a);b(a)});k=m=l=null}};function se(){var a=this,b=this;b.name="block";b.c=function(){var c=b.e("context"),d=b.e("query"),g=b.e("format"),e=c.root;a.Na=function(a){if((a=d.B(a))&&(d.f(a)||d.qa(a)))if(d.Wb(a)){var b=W("object",a);if(b.length){var e=!1,b=b.pop();bc(b.lastChild||b,function(a){return e=T(a)||d.F(a)},a);e||c.kb(J("br"),a)}}else c.mf(a),d.Xb(a)?c.kb(ne(),a):c.kb(J("br"),a)};a.$=function(b){if(d.f(b))if(d.Oa(b).every(function(a){return!d.u(b,a)||!d.D(b,a)}))M(b,"dd,dt")?g.wa([b],function(a){return S(a,"dl")&&!a.attributes.length},
function(){return J("dl")}):d.D("p",d.Tb(b))&&d.wb(b)&&(b=c.ta(b,"div"),a.$(b),la(b.childNodes).filter(d.wb).forEach(function(b){var c=g.O([b]);a.W([b]);g.L(c)}));else{for(var h=g.O([b]);!d.D(b,b.parentNode);)a.W([b]);g.L(h)}};a.Ea=function(a){if(S(a,"li")&&d.f(a)&&d.f(a.parentNode)){for(var b=function(a){return M(a,"ol,ul")},e=!1,k=null;la(a.childNodes).some(b);){var l=a.lastChild;b(l)||!k&&ec(l)?(k=null,c.s(l,a.parentNode,1+O(a)),e=!0):d.J(l)?c.removeNode(l):(k||(k=J("li"),a.parentNode.insertBefore(k,
a.nextSibling)),c.s(l,k,0),e=!0)}e&&d.Da(a,0)&&c.removeNode(a)}};a.jg=function(){if(!c.a())return null;var a=d.X(c.a()),a=d.na(a,function(a){return d.f(a)&&!d.$a(a)&&(M(a,"ol,ul")||M(a.parentNode,"ol,ul")||d.D(a,"li"))});return a.length?a:null};a.oa=function(){function b(a,c){var f=["ol","ul","tl"];f.splice(f.indexOf(a),1);f=f.join(",");return d.Yb(c,a)&&null==c.querySelector(f)||!M(c,"ol,ul")&&d.Yb(c.parentNode,a)||S(c.parentNode,"li")&&d.Yb(c.parentNode.parentNode,a)}var c=a.jg();if(!c)return"none";
for(var e=["ol","ul","tl"],k=0;k<e.length;k++){var l=e[k];if(c.every(b.bind(c,l)))return l}return c.some(function(a){return M(a,"ol,ul")||M(a.parentNode,"ol,ul")||"querySelector"in a&&a.querySelector("ol,ul")||M(a.parentNode,"li")&&M(a.parentNode.parentNode,"ol,ul")})?"mixed":"none"};a.Ac=function(a){Pb(a)||(a=Rb(a,e));if(!a||1!==a.nodeType)return"left";var b=Mb(a).textAlign.replace(/^-(moz|webkit)-/,"").replace(/^auto$/,"start");return"start"===b?"ltr"===d.rd(a)?"left":"right":"end"===b?"ltr"===
d.rd(a)?"right":"left":-1!==["center","justify","left","right"].indexOf(b)?b:"left"};a.bg=function(b){void 0===b&&(b={});var h="blockMerging"in b?Boolean(b.gh):!0,e="stripWrappers"in b?Boolean(b.lc):!0,k="direction"in b?b.direction:"forward";if(c.a()){a.lb(c.a().startContainer,c.a().startOffset,!1);a.lb(c.a().endContainer,c.a().endOffset,!1);b=d.Dc(c.a().startContainer,c.a().startOffset);var l=b[0],p=b[1];b=d.Ub(c.a().endContainer,c.a().endOffset);var n=b[0],y=b[1];if("after"!==d.tb(n,y,l,p))c.a().collapse("forward"===
k);else{3===l.nodeType&&0==p&&(p=O(l),l=l.parentNode);3===n.nodeType&&y==Q(n)&&(y=1+O(n),n=n.parentNode);c.i(l,p,n,y);for(var r=c.a().startContainer;d.u(r,r.parentNode)&&d.k(r);)r=r.parentNode;if(!d.r(r)&&!d.qa(r)||!d.D("span",r)||M(r,"td,th"))r=null;for(var t=c.a().endContainer;d.u(t,t.parentNode)&&d.k(t);)t=t.parentNode;if(!d.r(t)&&!d.qa(t)||!d.D("span",t)||M(t,"td,th"))t=null;b=g.gf();if(l==n&&d.f(l)&&3===l.nodeType)l.deleteData(p,y-p),a.lb(l,p,!1),c.a().collapse("forward"===k);else{d.f(l)&&3===
l.nodeType&&l.deleteData(p,Q(l)-p);for(var H=d.na(c.a(),function(a){return d.f(a)&&!M(a,"thead,tbody,tfoot,tr,th,td")}),C=0;C<H.length;C++){var N=H[C];if(p=N.parentNode)if(p.removeChild(N),a.Na(p),e||!d.Ad(p,l)&&p!=l)for(;d.f(p)&&d.k(p)&&0==Q(p);)N=p.parentNode,N.removeChild(p),p=N}d.f(n)&&3===n.nodeType&&n.deleteData(0,y);a.lb(c.a().startContainer,c.a().startOffset,!1);a.lb(c.a().endContainer,c.a().endOffset,!1);if(h&&r&&t&&d.u(r,t)&&r!=t){1===r.children.length&&d.Bd(r.firstChild)&&r.removeChild(r.firstChild);
if(d.Ad(r,t)){for(h=t;h.parentNode!=r;)h=h.parentNode;c.i(r,O(h));if(!t.hasChildNodes()){for(;d.f(t)&&1==t.parentNode.childNodes.length&&t.parentNode!=r;)p=t,p.removeChild(t),t=p;d.f(t)&&!d.k(t)&&d.k(t.previousSibling)&&d.k(t.nextSibling)&&t.parentNode.insertBefore(J("br"),t.nextSibling);d.f(t)&&t.parentNode.removeChild(t);g.Sa(b);return}if(!d.k(t.firstChild)){g.Sa(b);return}e=[];for(e.push(t.firstChild);!T(e[e.length-1])&&d.k(e[e.length-1].nextSibling);)e.push(e[e.length-1].nextSibling);for(h=g.O(e);Gb(r,
e[0])&&e[0].parentNode!=r;)a.W(e);d.f(e[0].previousSibling)&&T(e[0].previousSibling)&&e[0].parentNode.removeChild(e[0].previousSibling)}else if(d.Nc(r,t)){c.i(r,Q(r));for(h=r;h.parentNode!=t;)h=h.parentNode;d.k(h.nextSibling)&&T(r.lastChild)&&r.removeChild(r.lastChild);e=[];h.nextSibling&&!d.r(h.nextSibling)&&e.push(h.nextSibling);e.length&&!T(e[e.length-1])&&e[e.length-1].nextSibling&&!d.r(e[e.length-1].nextSibling)&&e.push(e[e.length-1].nextSibling);h=g.O(e);e.forEach(function(a){c.s(a,r,-1)})}else{c.i(r,
Q(r));d.k(t.firstChild)&&T(r.lastChild)&&r.removeChild(r.lastChild);for(h=g.O(la(t.childNodes));t.hasChildNodes();)c.s(t.firstChild,r,-1);for(;!(t.hasChildNodes()||0<=["td"].indexOf(t.tagName.toLowerCase()));)p=t.parentNode,p.removeChild(t),t=p}for(var w=r;d.hg(w).some(function(a){return d.u(w,a)&&(S(a,"ol")&&S(a.nextSibling,"ol")||S(a,"ul")&&S(a.nextSibling,"ul"))&&d.u(w,a.nextSibling)});){for(;!(S(w,"ol")&&S(w.nextSibling,"ol")&&d.u(w,w.nextSibling)||S(w,"ul")&&S(w.nextSibling,"ul")&&d.u(w,w.nextSibling));)w=
w.parentNode;for(;w.nextSibling.hasChildNodes();)c.s(w.nextSibling.firstChild,w,-1);w.parentNode.removeChild(w.nextSibling)}g.L(h);a.Na(r);g.Ud(r)}else c.a().collapse("forward"===k)}g.Sa(b)}}};a.W=function(a){var b=a[0].parentNode;if(d.f(b)&&b.parentNode){-1!==a.indexOf(b.firstChild)&&g.Vd(b);var e=-1!==a.indexOf(b.firstChild)&&d.Qb(b),k=-1!==a.indexOf(b.lastChild)&&d.Cb(b);if(-1===a.indexOf(b.firstChild)&&-1!==a.indexOf(b.lastChild)){for(var l=a.length-1;0<=l;l--)c.s(a[l],b.parentNode,1+O(b));k&&
!d.Cb(a[a.length-1])&&a[a.length-1].parentNode.insertBefore(J("br"),a[a.length-1].nextSibling);g.Ud(b)}else{if(-1===a.indexOf(b.firstChild))for(l=b.cloneNode(!1),b.removeAttribute("id"),b.parentNode.insertBefore(l,b);a[0].previousSibling;)c.s(b.firstChild,l,l.childNodes.length);for(l=0;l<a.length;l++)c.s(a[l],b.parentNode,O(b));e&&!d.Qb(a[0])&&a[0].parentNode.insertBefore(J("br"),a[0]);d.k(a[a.length-1])&&!T(a[a.length-1])&&T(b.firstChild)&&!d.k(b)&&b.removeChild(b.firstChild);d.Da(b,0)?(a=a[a.length-
1],F(b),k&&!d.Cb(a)&&a.parentNode.insertBefore(J("br"),a.nextSibling)):g.Vd(b)}}};a.hc=function(b){d.Wb(b)?a.W(la(b.childNodes)):c.removeNode(b)};a.Vf=function(a,b,c){if(0==a)return"";if(1==a&&!b&&!c)return" ";if(1==a)return"\u00a0";var d="",e;for(e=b?"\u00a0 ":" \u00a0";3<a;)d+=e,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.lb=function(b,c,e){void 0===
e&&(e=!0);if(d.f(b)||d.qa(b)){for(;;)if(0<=c-1&&d.u(b,b.childNodes[c-1]))b=b.childNodes[c-1],c=Q(b);else if(0==c&&!d.Qb(b)&&d.u(b,b.parentNode))c=O(b),b=b.parentNode;else if(3===b.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Mb(b.parentNode).whiteSpace)&&0!=c&&/[ \xa0]/.test(b.data[c-1]))c--;else break;for(var k=b,l=c,g=0,n=0==c&&d.Qb(b);;)if(l<k.childNodes.length&&d.u(k,k.childNodes[l]))k=k.childNodes[l],l=0;else if(l==Q(k)&&!d.Cb(k)&&d.u(k,k.parentNode))l=1+O(k),k=k.parentNode;else if(3===k.nodeType&&
-1==["pre","pre-f.wrap"].indexOf(Mb(k.parentNode).whiteSpace)&&l!=Q(k)&&/[ \xa0]/.test(k.data[l]))e&&n&&" "==k.data[l]?k.deleteData(l,1):(n=" "==k.data[l],l++,g++);else break;e&&b===k&&Jb(b)&&c===l&&(n=(n=b.textContent.match(/^\s+/))?n[0]:"",n=n.length,n>=c&&(b.deleteData(0,n),c=l=0));if(e)for(;"before"==d.tb(b,c,k,l);)if(0<=l-1&&l-1<k.childNodes.length&&d.u(k,k.childNodes[l-1]))k=k.childNodes[l-1],l=Q(k);else if(0==l&&d.u(k,k.parentNode))l=O(k),k=k.parentNode;else if(3===k.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Mb(k.parentNode).whiteSpace)&&
l==Q(k)&&" "==k.data[k.data.length-1]&&d.Cb(k))l--,g--,k.deleteData(l,1);else break;for(e=a.Vf(g,0==c&&d.Qb(b),l==Q(k)&&d.Cb(k));"before"==d.tb(b,c,k,l);)c<b.childNodes.length?(b=b.childNodes[c],c=0):3!=b.nodeType||c==Q(b)?(c=1+O(b),b=b.parentNode):(g=e[0],e=e.slice(1),g!=b.data[c]&&(b.insertData(c,g),b.deleteData(c+1,1)),c++)}};a.yd=function(a){V(a,"margin-left",d.Vb(a)+40+"px")};a.Zb=function(){return!(!c.a()||!R(c.a().startContainer,"ul,ol",g.rb()))};a.Se=function(){return!(!c.a()||!R(c.a().startContainer,
"table",g.rb()))};a.Oc=function(){return a.Se()||a.Zb()}}};function te(){var a=this;a.name="editor";a.c=function(){function b(a,b){var d=!1;0==h&&null!=a?c.hb(a):0==h&&(c.Ga(),d=!0);h++;var e=Da(function(){return b()});h--;d&&c.ja();return e}var c=a.e("context"),d=a.e("query"),g=a.e("format");a.e("block");var e=a.e("normalize"),f=c.Z;Uc(c.root);var h=0;a.execCommand=function(c,d,e,h){if(1==arguments.length||4<=arguments.length&&null==d)d=!1;if(2>=arguments.length||4<=arguments.length&&null==e)e="";return b(h,function(b,c,d){return function(){if(!(b in f&&
a.queryCommandEnabled(b)))return!1;var c=f[b],e=c.action(""===d?null:d);c.Ya&&(c=a.pb("spellcheck"))&&c.Ya(b);if(!0!==e&&!1!==e)throw"execCommand() didn't return true or false: "+e;return!1!==e}}(c,d,e))};a.queryCommandEnabled=function(a,d){return b(d,function(a){return function(){return a in f?c.j(a).enabled?c.j(a).enabled():c.hasFocus():!1}}(a))};a.queryCommandIndeterm=function(a,d){return b(d,function(a){return function(){return c.j(a).ba?f[a].ba():!1}}(a))};a.queryCommandState=function(a,d){return b(d,
function(a){return function(){var b=c.j(a);return b.state?null!=c.Fc(a)?c.Fc(a):b.state():!1}}(a))};a.queryCommandSupported=function(a){return a in f};a.queryCommandValue=function(a,d,e){return b(e,function(){return c.j(a).value?f[a].value(d):""})};c.kc=function(){Object.keys(f).forEach(function(a){c.j(a).P||(f[a].P=null);c.j(a).N&&!c.j(a).ba&&(f[a].ba=function(){if(!c.a())return!1;var b=g.A(c.a(),d.ca).map(function(b){return g.t(b,a)}),e=b.filter(function(b){return-1!=f[a].N.indexOf(b)});return 1<=
e.length&&1<=b.length-e.length});c.j(a).N&&(f[a].state=function(){return c.a()?-1!==f[a].N.indexOf(g.t(c.a().startContainer,a)):!1});c.j(a).xf&&(f[a].ba=function(){if(!c.a())return!1;for(var b=g.A(c.a()).filter(d.ca).map(function(b){return g.t(b,a)}),e=1;e<b.length;e++)if(b[e]!==b[e-1])return!0;return!1},f[a].value=function(){if(!c.a())return"";var b=g.A(c.a(),d.ca)[0];null==b&&(b=c.a().startContainer);b=g.t(b,a);return null===b?"":b});if(c.j(a).w){var b=f[a].action;f[a].action=function(a){var d=
g.Yc();a=b(a);c.ja();c.a().collapsed&&g.Sa(d);return a}}})};a.ab=e.Od;a.gg=function(){return f}}};function ue(){function a(){N=r.b.timeout(function(){var a=-w;w=L(C).width;a+=w;0!==a&&z(C.querySelectorAll("table"),function(a){p(a)})},100,N)}function b(a){n(a.target);p(a.target);d(a)}function c(a){d(a)}function d(a){y(a.target);e(a.target)}function g(a,b){var c=[],d=-1,e=R(a,"table"),f=R(a,"tr");null==b&&(b=0);if(null==e||null==f)return v.warn("Couldn't find tr or table for a td! <$>"),[];for(var f=f.querySelectorAll("td"),h=0;h<f.length;h++)f[h]===a&&(d=h);if(-1===d)return v.warn("Couldn't find td within its tr! <%>"),
[];d+=b;if(0>d||d>f.length-1)return[];z(e.querySelectorAll("tr"),function(a){a=a.querySelectorAll("td");null!=a[d]&&c.push(a[d])});return c}function e(a){if(!1!==h(a)&&!1!==f(a)){var b=H.vc(a);"right"===b?l(a):("center"===b&&l(a),k(a));m(a)}}function f(a){var b=la(a.querySelectorAll("colgroup")),c=b[0]||null,d;if(0===b.length)return!0;d=X("col",c);for(var e=0;e<b.length;e++)if(null!=d[e].getAttribute("style"))return!1;for(e=0;e<d.length;e++)if(null!=d[e].getAttribute("style"))return!1;p(a);F(c);return!0}
function h(a){if(R(a.parentElement,"table")||null!=a.querySelector("table"))return!1;var b=!1;z(t.Ba(a),function(a){mb(a,"table-edge")&&(b=!0)});return b?!1:!0}function m(a){var b=a.querySelector("tr").querySelectorAll("td");z(b,function(c){if(c!==b[b.length-1]){var d=t.Mb(c,"tableColumnEdge");E(d,"table-edge");var e=J("div",{"class":"line"});d.appendChild(e);var f,h,k,l,m,H,r=g(c),y=g(c,1),N=L(d).width;t.Uc(d,function(){n(a);var b=L(r[0]),c=L(y[0]);f=b.width;h=c.width;k=window.innerWidth-b.left-
35;l=window.innerWidth-c.right+35;m=L(a).width;H=parseInt(Xb(d,"right"),10);E(d,"no-hide-element")},function(a){a=H-a;a>k-N&&(a=k-N);a<l&&(a=l);d.style.right=a+"px"},function(b){b<-f+35&&(b=-f+35);b>h-35&&(b=h-35);var c=(h-b)/m*100;r[0].style.width=(f+b)/m*100+"%";y[0].style.width=c+"%";nb(d,"no-hide-element");t.ze(d);p(a);qd(C,"dirty")},"cursor: col-resize;")}})}function k(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,f=H.vc(a),h=t.Mb(a,"rightEdge");E(h,"table-edge");h.appendChild(J("div",
{"class":"line"}));var k=L(h).width,l;t.Uc(h,function(){n(a);var e=L(a);b=e.width;c=window.innerWidth-e.left;l=parseInt(Xb(h,"right"),10);d=L(a.parentNode).width;E(h,"no-hide-element")},function(a){if("center"===f){a=l-a;var d=c-(k+e+b)/2;a>d&&(a=d)}else a=l-a,a>c-k-e&&(a=c-k-e);0>a&&(a=0);h.style.right=a+"px"},function(c){b="center"===f?b+2*c:b+c;b<e&&(b=e);c=b/d*100;100<c&&(c=100);nb(h,"no-hide-element");a.style.width=c+"%";p(a);qd(C,"dirty")},"cursor: col-resize;")}function l(a){var b,c,d,e=35*
a.querySelector("tr").querySelectorAll("td").length,f=H.vc(a),h=t.Mb(a,"leftEdge");E(h,"table-edge");h.appendChild(J("div",{"class":"line"}));var k=L(h).width,l;t.Uc(h,function(){n(a);var e=L(a);b=e.width;c=e.right;l=parseInt(Xb(h,"left"),10);d=L(a.parentNode).width;E(h,"no-hide-element")},function(a){if("center"===f){a=l+a;var d=c-(b+e+k)/2;a>d&&(a=d)}else a=l+a,a>c-k-e&&(a=c-k-e);0>a&&(a=0);h.style.left=a+"px"},function(c){b="center"===f?b-2*c:b-c;b<e&&(b=e);c=b/d*100;100<c&&(c=100);nb(h,"no-hide-element");
a.style.width=c+"%";p(a);qd(C,"dirty")},"cursor: col-resize;")}function p(a){var b=L(a).width,c=35/b*100,d=[],e=0,h=0,f=a.querySelector("tr");if(null!=f&&(f=f.querySelectorAll("td"),0!==f.length)){b<35*f.length&&(b=35*f.length);var k=L(a.parentNode).width,k=Math.max(0,Math.min(100,b/k*100)),l=Xb(a,"width"),g=null;null!=l&&(g=Tc(l||""));g&&g.Ia&&"%"===g.Ia?V(a,"width",k+"%"):V(a,"width",b+"px");var n=[];z(f,function(a){a=L(a).width;n.push(a/b*100+"%")});z(f,function(a){var b=L(a).width,f=n.shift();
null==f&&(v.error("Length of first row magically changed <$>"),f="0%");V(a,"width",f);35>=b?(V(a,"width",c+"%"),h++):d.push(a);e+=parseInt(Xb(a,"width"),10)});if(0!==d.length&&0!==h){a=h*c;var t=e-a,C=100-a;z(d,function(a){var b=parseInt(Xb(a,"width"),10),b=b/t*C;V(a,"width",b+"%")})}}}function n(a){V(a,"table-layout","fixed")}function y(a){z(t.Ba(a),function(a){mb(a,"table-edge")&&t.detach(a)});z(a.querySelectorAll("td"),function(a){z(t.Ba(a),function(a){mb(a,"table-edge")&&t.detach(a)})})}var r=
this,t=null,H=null,C=null;r.name="ui-table";var N,w=null;r.c=function(){C=r.e("context").root;E(C,"en-ui-table-on");t=r.e("layer");H=r.e("table");t.Lg(function(a,b){b.ea=r.b.g(a,"mouseenter",function(){e(a)})},function(a,b){b.ea&&r.b.remove(b.ea)});r.b.sa(C,"TABLE_ALIGN",d);r.b.sa(C,"TABLE_INSERT_ROW",c);r.b.sa(C,"TABLE_DELETE_ROW",d);r.b.sa(C,"TABLE_INSERT_COLUMN",c);r.b.sa(C,"TABLE_DELETE_COLUMN",b);w=L(C).width;r.b.g(window,"resize",a)};r.q=function(){nb(C,"en-ui-table-on");z(C.querySelectorAll("table"),
function(a){y(a)});C=null}};function ve(){var a=this;this.name="content";this.root=null;this.c=function(){function b(){var a=f.a();return!(!a||a.collapsed)}function c(){return Bd(l,f.a(),{html:!0,raw:!0,resources:!0,plain:!0})}function d(a,b){try{return Ac(a,b)}catch(c){}return Ac(a,b)}function g(a){var b={};if(R(f.a().startContainer,"li")&&M(a.firstChild,"ol,ul,li")){var b={nd:[],lastChild:null},c=R(f.a().startContainer,"li");h.Da(c,1)&&sb(c);for(var c=X("ol,ul",a),d=0;d<c.length;d++){var e=c[d];if(null!=e){for(var k=!0,l=
e.parentNode;l;){if(-1!==["ol","ul"].indexOf(I(l))){k=!1;break}l=l.parentNode}k&&ub(e)}}c=a.querySelector("li");M(c.parentNode,"ol,ul")||ub(c)}b.lastChild=a.lastChild;b.nd=h.Sb(a);f.a().insertNode(a);return b}function e(b){var c=f.a();c||(c=mc(),c.selectNodeContents(l),c.collapse(!1),f.hb(c),f.ja());b||a.e("edit").v();return f.a()}var f=a.e("context"),h=a.e("query");a.e("format");var m=a.e("block"),k=a.e("normalize"),l=f.root,p=f.Z;this.root=l;a.Me=function(b){a.e("edit").v({lc:!1});if(!f.a())return v.warn("insertPlainText did fail due to missing content"),
!1;b=b.split(/\n/gi);for(var c=f.j("insertparagraph").action,d=/\u00a0\u00a0/gi,e=0;e<b.length;e++){var k=b[e];0<e&&c&&c();if(k&&k.length){var l=f.a(),g=l.startContainer,l=l.startOffset;0<=l-1&&l-1<g.childNodes.length&&3===g.childNodes[l-1].nodeType&&(g=g.childNodes[l-1],l=Q(g));0<=l&&l<g.childNodes.length&&3===g.childNodes[l].nodeType&&(g=g.childNodes[l],l=0);h.r(g)&&h.Da(g)&&(l=h.Dc(g,l),g=l[0],l=l[1]);f.i(g,l);k.trim()&&(k=k.replace(/\t/gi,"    ").replace(/\s/gi,"\u00a0").replace(d,"\u00a0 "),
3===g.nodeType?(g.insertData(l,k),f.i(g,l+k.length)):(1===g.childNodes.length&&h.Lc(g.firstChild)&&g.removeChild(g.firstChild),g=document.createTextNode(k),f.a().insertNode(g),f.i(g,k.length)))}}f.a().collapse(!1);return!0};a.insertNode=function(b,c){function d(a){[].filter.call(a.childNodes,function(a){return h.f(a)&&!h.Ue(a)&&O(a)>=f.a().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}if(!b)return v.warn("insertNode failed due to missing content"),!1;var l=e(),H;c&&(H=document.createTextNode("\u00a0"),
l.insertNode(H),l.selectNode(H),f.j("removeformat").action(),f.i(H,1));var C;u(b)?C=f.a().createContextualFragment(b):b instanceof DocumentFragment?C=b:b instanceof Node&&(C=document.createDocumentFragment(),C.appendChild(b));if(0<xc(l,"table").length||R(l.startContainer,"table")||R(l.endContainer,"table")){var p=W("table",C);if(0<p.length)for(var w=a.e("simpletext"),K=0;K<p.length;K++){var na=p[K],pa=na.nextSibling,ia=na.parentNode,P=w.$f(na);Gb(na,ia)&&ia.removeChild(na);pa?ia.insertBefore(pa,P):
ia.appendChild(P)}}l.collapse(!1);f.hb(l);f.ja();if(null==C.childNodes||0===C.childNodes.length)return v.warn("insertNode failed to empty content argument"),!1;h.r(f.a().startContainer)?d(f.a().startContainer):c&&h.r(f.a().startContainer.parentNode)&&d(f.a().startContainer.parentNode);K=g(C);l=K.nd;C=K.lastChild;f.i(C.parentNode,O(C)+1);m.Na(f.a().startContainer);m.Na(C);for(K=0;K<l.length;K++)m.$(l[K]);H&&1===H.length&&f.removeNode(H);f.ja();k.bb();C&&C.parentNode&&f.i(C.parentNode,O(C)+1);return!0};
a.sg=function(b){if(null!=b){var c=null;u(b)?(c=e(),c=d(c,b)):c=b;null!=c&&(W("title,script,style,link,base,meta",c).forEach(F),fe(c),k.bb(),a.insertNode(c))}};p.inserthtml={h:!0,w:!0,action:function(b){a.sg(b);return!0},value:function(){var a=f.a();if(!a||a.collapsed)return"";var b=h.Ub(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return za(a)}};p.inserttext={h:!0,action:function(b){return a.Me(b)}};p.insertcrypto={w:!0,action:function(a){var b=e();if(a=d(b,a)){W("title,script,style,link,base,meta",
a).forEach(F);fe(a);var c=a.firstChild;b.insertNode(a);f.i(c,0)}return!0},value:function(){var a=f.a();if(!a||a.collapsed)return"";var b=h.Ub(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return za(a)}};p.paste={h:!0,action:function(b){if(xa(b))return b=J("a",{href:b},[b]),a.insertNode(b,!0);var c=e(!0);if(b=d(c,b))W("title,script,style,link,base,meta",b).forEach(F),(c=a.pb("transform"))?b=c.fd(b,{Ic:!0}):fe(b),k.bb(),a.insertNode(b,!0);return!0}};p.pasteraw={h:!0,action:function(b){var c=
e(!0);b=d(c,b);return a.insertNode(b,!0)}};p.pasteplain={h:!0,action:function(b){if(xa(b))return b=J("a",{href:b},[b]),a.insertNode(b,!0);a.Me(b);return!0}};p.pastesimple={h:!0,action:function(b){var c=e(!0),c=d(c,b);b=a.e("simpletext").ag(c);c=b.ownerDocument.createRange();c.selectNodeContents(b);c=c.cloneContents();a.insertNode(c,!0);return!0}};p.copy={action:function(){return!0},value:function(){if(b())return c()},enabled:function(){return b()},dc:!0};p.cut={h:!0,action:function(){a.e("edit").v();
return!0},value:function(){return c()},enabled:function(){return f.hasFocus()&&!1===f.a().collapsed}}};this.q=function(){this.root=null}};function we(){var a=this;a.name="crypt";a.c=function(){a.e("context").Z.crypt={action:function(){},value:function(){}}};a.Jb=function(a){X("en-crypt",a).forEach(function(a){var b;b="en-crypt:"+a.textContent.trim()+":"+a.getAttribute("cipher")+":"+a.getAttribute("length")+":"+a.getAttribute("hint");b=J("embed",{type:"evernote/x-crypto",align:"absmiddle",height:"19",width:"94",style:"cursor:default",id:b});tb(a,b)})};a.Kb=function(a,c){var d=c.crypto||{};x(d,"Expected a crypto info on Mac here",d);
W("div.en-crypt-revealed,div.en-crypto-revealed",a).forEach(function(c){var e=c.getAttribute("id");d[e]?(e=d[e].split(":"),e=Ab(a,"en-crypt",{cipher:e[2],length:e[3],hint:e[4]},[e[1]]),tb(c,e)):v.error("Found revealed crypto but not replacement. Key:",e)});X('embed[type="evernote/x-crypto"]',a).forEach(function(c){var d=c.getAttribute("id").split(":"),d=Ab(a,"en-crypt",{cipher:d[2],length:d[3],hint:d[4]},[d[1]]);tb(c,d)})}};function xe(){var a=this;this.name="edit";this.c=function(){function b(a){window.getSelection().isCollapsed&&(window.getSelection().modify("extend",a?"backward":"forward","lineboundary"),k.Ga());return k.j(a?"delete":"forwarddelete").action()}function c(a){if(!window.getSelection().isCollapsed)return k.j("delete").action();var b=R(k.a().startContainer,"li");n.Zb()&&null!=b&&l.Da(b)||(window.getSelection().modify("extend",a?"backward":"forward","word"),k.Ga());return k.j(a?"delete":"forwarddelete").action()}
function d(){if(k.a().collapsed){y.Fg();var b=p.rb();if(!(l.Xb(b)&&1===Q(b)&&S(b.firstChild,"div")&&1===Q(b.firstChild)&&S(b.firstChild.firstChild,"br"))){n.lb(k.a().startContainer,k.a().startOffset);var c=k.a().startContainer,b=k.a().startOffset;if(!k.a().collapsed||0!==b||0!==O(c)||!S(c.parentNode,"td")&&!S(c.parentNode.parentNode,"td")){for(;;)if(0===b&&l.f(c.previousSibling)&&l.J(c.previousSibling))c.parentNode.removeChild(c.previousSibling);else if(0<=b-1&&b-1<c.childNodes.length&&l.f(c.childNodes[b-
1])&&l.J(c.childNodes[b-1]))c.removeChild(c.childNodes[b-1]),b--;else if(0==b&&l.k(c)||l.J(c))b=O(c),c=c.parentNode;else{if(0<=b-1&&b-1<c.childNodes.length&&l.f(c.childNodes[b-1])&&S(c.childNodes[b-1],"a")){n.hc(c.childNodes[b-1]);return}if(0<=b-1&&b-1<c.childNodes.length&&!l.r(c.childNodes[b-1])&&!T(c.childNodes[b-1])&&!l.da(c.childNodes[b-1]))c=c.childNodes[b-1],b=Q(c);else break}if(0<b&&3===c.nodeType){var d=1;1<b&&/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g.test(c.textContent.substring(b-2,b))&&(d=
2);k.i(c,b-d,c,b);a.v()}else if(l.f(c)&&0<=b-1&&b-1<c.childNodes.length&&(M(c.childNodes[b-1],"br,hr")||l.da(c.childNodes[b-1])))k.i(c,b-1,c,b),a.v();else if(!l.k(c))if(M(c,"li,dt,dd")&&c==c.parentNode.firstChild&&0==b){b=[];for(d=c.parentNode;d;d=d.parentNode)S(d,"li")&&b.unshift(d);for(d=0;d<b.length;d++)n.Ea(b[d]);b=p.O([c]);n.W([c]);p.L(b);M(c,"dd,dt")&&l.Oa(c).every(function(a){return!l.u(c,a)||!l.D(c,a)})&&(c=k.ta(c,"div"));n.$(c)}else{for(var d=c,e=b;;)if(0==e)e=O(d),d=d.parentNode;else if(0<=
e-1&&e-1<d.childNodes.length&&l.f(d.childNodes[e-1])&&l.J(d.childNodes[e-1]))d.removeChild(d.childNodes[e-1]),e--;else break;if(0===b&&l.Qc(c,!0)&&l.Oa(c).concat(c).filter(function(a){return l.f(a)&&l.u(a,c)&&l.$a(a)}).length)if(b=mc(c,0),b=l.X(b),b=l.na(b,function(a){return l.f(a)&&!l.Ke(a)}),b.filter(function(a){return 3!==a.nodeType}).length)for(d=0;d<b.length;d++)h(b[d]);else h(c);else if(!M(c,"table, .en-module, .en-crypt"))if(0<=e-1&&e-1<d.childNodes.length&&M(d.childNodes[e-1],"table, .en-module, .en-crypt"))k.i(d,
e-1,d,e);else if(0==b&&(S(d.childNodes[e-1],"hr")||T(d.childNodes[e-1])&&(T(d.childNodes[e-1].previousSibling)||!l.k(d.childNodes[e-1].previousSibling))))k.i(d,e-1,d,e),a.v(),k.i(c,b);else if(M(d.childNodes[e],"li,dt,dd")&&M(d.childNodes[e].previousSibling,"li,dt,dd"))d=d.childNodes[e-1],e=Q(d),c=d.nextSibling,k.i(d,e,c,0),a.v();else{for(;0<=e-1&&e-1<d.childNodes.length;){var f=d.childNodes[e-1];l.f(f)&&l.J(f)?(d.removeChild(f),e--):M(f,"hr")?e--:(d=f,e=Q(d))}k.i(d,e,c,b);a.v({direction:"backward"})}}}}}else a.v()}
function g(a){y.ab();for(var b=l.X(k.a()),b=l.qb(b,function(a){return 1===a.nodeType&&l.f(a)&&(a.hasAttribute("align")||""!=a.style.textAlign)}),c=0;c<b.length;c++){var d=b[c];d.removeAttribute("align");U(d,"text-align")}if("left"!=a)for(b=l.X(k.a()),b=l.na(b,function(a){return l.f(a)&&S(a,"div")});b.length;)b.shift().setAttribute("style","text-align: "+a)}function e(a){var b=a.toLowerCase(),c="tl"===b,d=c?"ul":b,e=k.a();if(e){y.ab();var g=n.oa()===b?"disable":"enable",m=function(a){return l.Yb(a,
b)},r=function(a){return!m(a)&&M(a,"ol,ul")},ia=[];(function(){for(var a=e.endContainer;a!==e.commonAncestorContainer;a=a.parentNode)S(a,"li")&&ia.unshift(a);for(a=e.startContainer;a;a=a.parentNode)S(a,"li")&&ia.unshift(a)})();ia.forEach(n.Ea);a=l.X(e);"enable"===g&&l.qb(a,function(a){return l.f(a)&&r(a)}).forEach(function(a){if(l.f(a.previousSibling)&&m(a.previousSibling)||l.f(a.nextSibling)&&m(a.nextSibling)){a=[].slice.call(a.childNodes);var b=p.O(a);n.W(a);p.wa(a,function(a){return m(a)});p.L(b)}else k.ta(a,
d),ob(a,"en-todo-list",c),V(a,"-evernote-list-type",c?"todo":null)});a=l.na(a,function(a){return l.f(a)&&(M(a,"ol,ul")||M(a.parentNode,"ol,ul")||l.D(a,"li"))});"enable"==g&&(a=a.filter(function(a){return!M(a,"ol,ul")||M(a.parentNode,"ol,ul")}));if("disable"==g)for(;a.length;){var P=[];P.push(a.shift());if(m(P[0]))h(P[0]);else{for(;a.length&&a[0]==P[P.length-1].nextSibling&&!m(a[0]);)P.push(a.shift());g=p.O(P);n.W(P);for(var ja=0;ja<P.length;ja++)n.$(P[ja]);p.L(g)}}else for(;a.length;){for(P=[];!P.length||
a.length&&a[0]==P[P.length-1].nextSibling;)if(M(a[0],"p,div"))a[0].style.margin="",a[0].style.textAlign="",a[0].removeAttribute("align"),Wb(a[0]),P.push(k.ta(a[0],"li")),a.shift();else if(M(a[0],"li,ol,ul"))P.push(a.shift());else{for(g=[];!g.length||a.length&&a[0]==g[g.length-1].nextSibling&&l.k(a[0])&&l.k(g[g.length-1])&&!T(g[g.length-1]);)g.push(a.shift());for(;g.length&&ec(g[g.length-1]);)g.pop();g.length&&P.push(p.wa(g,void 0,function(){return J("li")}))}m(P[0].parentNode)||P.every(function(a){return M(a,
"ol,ul")})||(r(P[0].parentNode)?(P=la(P[0].parentNode.childNodes),g=p.O(P),n.W(P),p.wa(P,function(a){return m(a)},function(){return f(b)}),p.L(g)):(g=p.wa(P,function(a){return m(a)},function(){if(!(l.f(P[0].parentNode)&&l.$b(P[0].parentNode)&&l.f(P[0].parentNode.previousSibling)&&m(P[0].parentNode.previousSibling)))return f(b);var a=P[0].parentNode.previousSibling;n.Ea(a.lastChild);l.f(a.lastChild)&&m(a.lastChild)||a.appendChild(f(b));return a.lastChild}),n.$(g)))}}}function f(a){x(0<=["ul","ol",
"tl"].indexOf(a.toLowerCase()));return"tl"===a?J("ul",{"class":"en-todo-list",style:"-evernote-list-type:todo"}):J(a)}function h(a){if(l.f(a))if(S(a,"div")){var b=l.Vb(a)-40;0<b?V(a,"margin-left",b+"px"):n.hc(a)}else if(l.$b(a))n.hc(a);else if(l.$a(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"),k.ta(a,"div");else{for(var b=a.parentNode,
c=[];l.f(b)&&1==b.nodeType&&!l.$b(b)&&!M(b,"ol,ul");)c.push(b),b=b.parentNode;if(!l.f(b)||!l.$b(b))for(b=a.parentNode,c=[];l.f(b)&&1==b.nodeType&&!l.$a(b)&&!M(b,"ol,ul");)c.push(b),b=b.parentNode;if(M(a,"ol,ul")&&(!l.f(b)||!l.$a(b))){a.removeAttribute("reversed");a.removeAttribute("start");a.removeAttribute("type");b=[].slice.call(a.childNodes);if(M(a.parentNode,"ol,ul")||la(a.parentNode.childNodes).every(function(){return M(a,"ol,ul")||ec(a)}))c=p.O([].slice.call(a.childNodes)),n.hc(a),p.L(c);for(c=
0;c<b.length;c++)n.$(b[c])}else if(l.f(b)&&l.$a(b)){c.push(b);for(var d=b;c.length;){var b=c.pop(),e=a.parentNode==b?a:c[c.length-1];l.k(e)&&!T(e)&&T(e.nextSibling)&&e.parentNode.removeChild(e.nextSibling);var f=[].slice.call(b.childNodes,1+O(e));m([].slice.call(b.childNodes,0,O(e)));m(f)}h(d)}}}function m(a){if(a.length){var b=a[0];if(M(b.parentNode,"ol,ul")){var c=l.De(b.parentNode);p.wa(a,function(a){return l.Yb(a,c)},function(){return f(c)})}else for(;a.length;)b=a.shift(),S(b,"div")?n.yd(b):
(b=p.wa([b],function(a){return l.$b(a)?!0:!1},function(){return J("div",{style:"margin-left:40px;"})}),n.$(b))}}var k=a.e("context"),l=a.e("query"),p=a.e("format"),n=a.e("block"),y=a.e("normalize"),r=k.Z;this.v=function(b){if(k.a()){y.Pd();var c=0<xc(k.a(),"td").length;n.bg(b);c&&a.Zf();y.bb()}};this.Zf=function(){for(var a=W("td",k.root),b=0;b<a.length;b++)if(0===Q(a[b])){var c=J("div",{},[J("br")]);a[b].appendChild(c)}};r.deleteword={Ya:!0,w:!0,action:function(){return c(!0)}};r.forwarddeleteword=
{Ya:!0,w:!0,action:function(){return c(!1)}};r.deleteline={Ya:!0,w:!0,action:function(){return b(!0)}};r.forwarddeleteline={Ya:!0,w:!0,action:function(){return b(!1)}};r["delete"]={Ya:!0,action:function(e){p.Ag(function(){"selection"===e?a.v():"word"===e?c(!0):"line"===e?b(!0):d()});return!0}};r.forwarddelete={Ya:!0,w:!0,action:function(d){"selection"===d?a.v():"word"===d?c(!1):"line"===d?b(!1):k.a().collapsed?(d=k.a(),window.getSelection().modify("extend","forward","character"),window.getSelection().collapseToEnd(),
k.Ga(),sc(d,k.a())||k.j("delete").action()):a.v();return!0}};r.indent={h:!0,w:!0,action:function(){y.ab();for(var a=[],b=k.a().endContainer;b!=k.a().commonAncestorContainer;b=b.parentNode)S(b,"li")&&a.unshift(b);for(b=k.a().startContainer;b!=k.a().commonAncestorContainer;b=b.parentNode)S(b,"li")&&a.unshift(b);for(b=k.a().commonAncestorContainer;b;b=b.parentNode)S(b,"li")&&a.unshift(b);for(b=0;b<a.length;b++)n.Ea(a[b]);a=l.X(k.a());a=l.na(a,function(a){return l.f(a)&&M(a,"div,li")});b=a.filter(l.F)[0];
if(S(b,"li")&&M(b.parentNode,"ol,ul")){for(b=b.previousSibling;l.J(b);)b=b.previousSibling;S(b,"li")&&n.Ea(b)}for(;a.length;){b=[];for(b.push(a.shift());a.length&&a[0]==b[b.length-1].nextSibling;)b.push(a.shift());m(b)}return!0}};r.outdent={h:!0,w:!0,action:function(){y.ab();var a=p.rb(),b=[];(function(){for(var a=k.a().endContainer;a!=k.a().commonAncestorContainer;a=a.parentNode)S(a,"li")&&b.unshift(a);for(a=k.a().startContainer;a;a=a.parentNode)S(a,"li")&&b.unshift(a)})();b.forEach(n.Ea);for(var c=
l.X(k.a()),c=l.na(c,function(a){return l.f(a)&&(!l.Sb(a).some(l.f)||M(a,"ol,ul")||S(a,"li")&&M(a.parentNode,"ol,ul"))}),d=[];c.length;){for(;c.length&&S(Rb(c[0],a),"div");){var e=Rb(c.shift(),a);if(-1===d.indexOf(e)){d.push(e);var f=l.Vb(e)-40;0<f?V(e,"margin-left",f+"px"):(U(e,"margin-left"),U(e,"margin"))}}for(;c.length&&(M(c[0],"ol,ul")||!M(c[0].parentNode,"ol,ul"));)h(c.shift());if(!c.length)break;e=[];for(e.push(c.shift());c.length&&c[0]==e[e.length-1].nextSibling&&!M(c[0],"ol,ul");)e.push(c.shift());
f=p.O(e);n.W(e);e.forEach(n.$);p.L(f)}return!0}};r.inserthorizontalrule={h:!0,w:!0,action:function(){if(n.Oc())return!1;k.j("insertparagraph").action();var a=J("div",{},[J("hr")]),b=l.B(k.a().startContainer);k.s(a,b.parentNode,O(b));return!0},enabled:function(){return k.hasFocus()&&!n.Oc()}};r.insertimage={h:!0,w:!0,action:function(b){if(""===b)return!1;b=J("img",{src:ce(b)});if(b){a.v({lc:!1});var c=k.a();if(l.f(k.a().startContainer)||l.qa(k.a().startContainer))l.r(c.startContainer)&&1==c.startContainer.childNodes.length&&
T(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild),c.insertNode(b),k.i(b.parentNode,1+O(b))}b.removeAttribute("width");b.removeAttribute("height");return!0}};r.insertlinebreak={w:!0,action:function(){if(!n.Zb())return k.j("insertparagraph").action();a.v({lc:!1});if(!l.f(k.a().startContainer)&&!l.qa(k.a().startContainer)||1==k.a().startContainer.nodeType&&!l.D("br",k.a().startContainer)||1!=k.a().startContainer.nodeType&&!l.D("br",k.a().startContainer.parentNode))return!0;
if(3==k.a().startContainer.nodeType&&0==k.a().startOffset){var b=k.a().startContainer.parentNode,c=O(k.a().startContainer);k.i(b,c)}3==k.a().startContainer.nodeType&&k.a().startOffset==Q(k.a().startContainer)&&(b=k.a().startContainer.parentNode,c=1+O(k.a().startContainer),k.i(b,c));b=J("br");k.a().insertNode(b);k.i(b.parentNode,1+O(b));l.Lc(b)&&(k.a().insertNode(J("br")),k.i(b.parentNode,1+O(b)));return!0}};r.insertparagraph={w:!0,action:function(){var b=a.pb("todo");a.v();var c=k.a().startContainer,
d=k.a().startOffset;if(!l.f(c)&&!l.qa(c))return!0;3===c.nodeType&&0!==d&&d!==Q(c)&&c.splitText(d);3===c.nodeType&&d===Q(c)&&(d=1+O(c),c=c.parentNode);3===c.nodeType&&(d=O(c),c=c.parentNode);k.i(c,d);for(var e=c;!l.Gd(e)&&l.f(e.parentNode)&&l.u(c,e.parentNode);)e=e.parentNode;if(l.f(e)&&l.Gd(e)&&l.u(c,e.parentNode)&&M(e,"p,div")){for(var f=e;!M(f,"dd,dt,li")&&l.f(f.parentNode);)f=f.parentNode;M(f,"dd,dt,li")&&(e=f)}if(!l.f(e)||!l.u(e,c)||!l.Gd(e)){f=l.X(k.a());f=l.na(f,function(a){return l.D(a,"p")}).slice(0,
1);if(!f.length){if(!l.D("div",k.a().startContainer))return!0;e=ne();k.a().insertNode(e);k.i(e,0);return!0}for(;f[f.length-1].nextSibling&&l.D(f[f.length-1].nextSibling,"p");)f.push(f[f.length-1].nextSibling);e=p.wa(f,Fa,function(){return J("div")})}var f=!1,h=b?b.de(e):null;if(b&&null!=h){if(b.ug(e))return sb(e),e.appendChild(J("br")),k.i(e,0),!0;f=!0}if(M(e,"address,listing,pre"))return b=J("br"),k.a().insertNode(b),k.i(c,d+1),l.Nc(l.nextNode(b),e)||(k.a().insertNode(J("br")),k.i(c,d+1)),!0;M(e,
"li,dt,dd")&&n.Ea(e);if(M(e,"li,dt,dd")&&l.Da(e))return n.W([e]),l.Wb(e)||(k.mf(e),e.appendChild(J("br"))),M(e,"dd,dt")&&l.Oa(e).every(function(a){return!l.u(e,a)||!l.D(e,a)})&&(e=k.ta(e,"div")),n.$(e),!0;for(d=mc(k.a().startContainer,k.a().startOffset,e,Q(e));0===d.startOffset&&!l.wb(d.startContainer);)d.setStart(d.startContainer.parentNode,O(d.startContainer));for(;d.startOffset===Q(d.startContainer)&&!l.wb(d.startContainer);)d.setStart(d.startContainer.parentNode,1+O(d.startContainer));for(var c=
l.na(d),h=!c.length||1===c.length&&T(c[0]),c=rc(k.a()),g=p.rb(),c=R(c,function(a){return"a"!==I(a)},g)||c,c=p.O([c]),h=M(e,"h1,h2,h3,h4,h5,h6")&&h?"div":S(e,"dt")&&h?"dd":S(e,"dd")&&h?"dt":e.tagName.toLowerCase(),m=J(h),h=0;h<e.attributes.length;h++)m.setAttributeNS(e.attributes[h].namespaceURI,e.attributes[h].name,e.attributes[h].value);m.removeAttribute("id");m.removeAttribute("class");e.parentNode.insertBefore(m,e.nextSibling);for(var g=l.qb(d),d=d.extractContents(),r=l.Sb(d),h=0;h<r.length;h++)1===
r[h].nodeType&&-1===g.indexOf(r[h])&&r[h].removeAttribute("id");for(h=d.childNodes.length-1;0<=h;h--)g=d.childNodes[h],Jb(g)?ec(g)&&F(g):l.Da(g)&&F(g);for(m.appendChild(d);l.wb(e.lastChild);)e=e.lastChild;for(;l.wb(m.lastChild);)m=m.lastChild;l.Wb(e)||(e.appendChild(J("br")),p.L(c.map(function(a){a[0]=e;return a})));if(l.Wb(m))m.children&&1===m.children.length&&T(m.children[0])&&p.L(c.map(function(a){a[0]=m;return a}));else{if(f)return sb(m),b=b.zd(m),k.i(b.parentNode,Q(b)+1),p.L(c.map(function(a){a[0]=
m;return a})),!0;m.appendChild(J("br"));p.L(c.map(function(a){a[0]=m;return a}))}c=0;f&&!b.de(m)&&(x(3!==m.nodeType,"newContainer for checkbox insertion cannot be text"),b.zd(m),c++);b=l.Dc(m,c);m=b[0];c=b[1];k.i(m,c);return!0}};r.insertorderedlist={h:!0,w:!0,action:function(){e("ol");return!0},ba:function(){return"mixed"===n.oa()},value:function(){return n.oa()},state:function(){return"ol"===n.oa()}};r.insertunorderedlist={h:!0,w:!0,action:function(){e("ul");return!0},ba:function(){return"mixed"===
n.oa()},value:function(){return n.oa()},state:function(){return"ul"===n.oa()}};r.inserttodolist={h:!0,w:!0,action:function(){e("tl");return!0},ba:function(){return"mixed"===n.oa()},value:function(){return n.oa()},state:function(){return"tl"===n.oa()}};[{name:"justifyfull",mode:"justify"},{name:"justifyleft",mode:"left"},{name:"justifycenter",mode:"center"},{name:"justifyright",mode:"right"}].forEach(function(a){r[a.name]={h:!0,w:!0,action:function(){g(a.mode);return!0},ba:function(){if(!k.a())return!1;
var b=l.qb(l.X(k.a()),function(a){return l.f(a)&&l.F(a)&&!a.hasChildNodes()});return b.some(function(b){return n.Ac(b)==a.mode})&&b.some(function(b){return n.Ac(b)!=a.mode})},state:function(){if(!k.a())return!1;var b=l.qb(l.X(k.a()),function(a){return l.f(a)&&l.F(a)&&!a.hasChildNodes()});return b.length&&b.every(function(b){return n.Ac(b)==a.mode})},value:function(){if(!k.a())return"";var a=l.qb(l.X(k.a()),function(a){return l.f(a)&&l.F(a)&&!a.hasChildNodes()});return a.length?n.Ac(a[0]):"left"},
enabled:function(){return k.hasFocus()&&!n.Zb()}}});r.selectall={action:function(){window.getSelection().selectAllChildren(k.root);return!0},enabled:D,dc:!0};r.tab={h:!0,w:!0,action:function(b){var c="true"===b||1===+b;if(n.Se()){var d=a.pb("table");if(d)return b=d.p(),d=d.Ec(),c?(b=cc(d,"td",b))&&k.i(b,0):(c=bc(d,"td",b),c||(k.j("inserttablerow").action("after"),c=bc(d,"td",b)),k.i(c,0)),!0}if(n.Zb()||!k.a().collapsed)return k.j(c?"outdent":"indent").action();c||k.j("inserthtml").action("\u00a0\u00a0\u00a0\u00a0\u00a0");
return!0}}}};function ye(){function a(a){return J("object",{"class":"en-emoticon"},a)}this.name="typebehind-emoticon-"+Aa++;this.Cc=function(){return"emoticon"};this.td=function(){return/^[\s\S]*:\)[\xa0 ]$/gi};this.of=function(b){var c=a("\ud83d\ude03");b=mc(b.startContainer,b.startOffset-1);b=b.insertNode(c)||c;var c=b.previousSibling,d=c.textContent.replace(/:\)$/,"");0<d.length?c.textContent=d:F(c);nc(mc(b.nextSibling,1))};this.ga=function(b){$b(b).forEach(function(b){tb(b,a(b.textContent))})};this.Ha=function(a){X("object.en-emoticon",
a).forEach(function(a){tb(a,J("span",{style:"-evernote-sentoj-emoji:true"},a.textContent))})};this.c=function(a){x(!0===a,"typebehind.emoticon only accepts true as opt")}};function ze(){var a=this;a.name="typebehind-url-"+Aa++;a.Cc=function(){return"url"};a.td=function(){return/(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?/gi};
a.of=function(b){var c=b.startContainer;b=mc(b.startContainer,b.startOffset-1);var d=J("a");b.insertNode(d);var g=c.textContent.match(a.td());b=null;null!=g&&(b=g[0]);x(null!=b,"typebehind: should be impossible for","replacements to run without regex match.");g=d.previousSibling;c=c.textContent.replace(b,"");0<c.length?g.textContent=c:F(g);u(b)&&(d.setAttribute("href",b),d.textContent=b);nc(mc(d.nextSibling,1))};a.c=function(a){x(!0===a,"typebehind.url only accepts true as opt")}};function Ae(){var a=this;a.name="typebehind";a.c=function(b){var c=a.e("context"),d=A(b,{emoticon:!1,url:!1}),g=a.e("undo"),e=c.root,f=a.R(),h=new Ea;h.set("emoticon",new ye);h.set("url",new ze);h.keys().forEach(function(a){a=h.get(a);var b=a.Cc(),c=d[b];null!=c&&!1!==c&&f.c(a,d[b])});var m=!1;a.b.g(e,"keypress",function(a){m=32===a.keyCode});a.b.g(e,"keyup",function(){if(m){m=!1;var a=Y(e);if(a&&a.collapsed){var b=a.endContainer,c=null;Jb(b)&&(c=b.textContent.substring(0,a.endOffset));if(null!=c)for(b=
0;b<h.keys().length;b++){var d=h.get(h.keys()[b]);if(d.G&&d.td().test(c)){g.Wa(function(){d.of(a)});break}}}}});a.ga=function(a){h.keys().forEach(function(b){b=h.get(b);var c=d[b.Cc()];null!=c&&!1!==c&&null!=b.ga&&b.ga(a)})};a.Ha=function(a){h.keys().forEach(function(b){b=h.get(b);var c=d[b.Cc()];null!=c&&!1!==c&&null!=b.ga&&b.Ha(a)})}}};function Be(){var a=this;a.name="enml";a.c=function(){var b=a.e("context").root;a.$d=function(c){c=c.replace(/<en-(todo|media)([^>]*?)\/>/gi,"<en-$1$2></en-$1>");var d=(new DOMParser).parseFromString(c,"text/html").body.firstElementChild;if("en-note"!==I(d))return v.error("Invalid ENML. Expected en-note root node.",d),!1;Ha.map(function(a){d.hasAttribute(a)?b.setAttribute(a,d.getAttribute(a)):b.removeAttribute(a)});a.eb.Bc().forEach(function(a){"transform"!==a.name&&(a.Jb?a.Jb(d):a.ga&&a.ga(d))});
c=b.ownerDocument.importNode(d,!0);xb(c,b);a.e("io").V(!1);return!0};a.Ae=function(c){var d=A(c,{crypto:null});c=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=c.documentElement;if(b.hasAttributes())for(var e=0;e<b.attributes.length;e++)-1!==Ha.indexOf(b.attributes[e].name.toLowerCase())&&g.setAttribute(b.attributes[e].name.toLowerCase(),b.attributes[e].value);e=
c.importNode(b,!0);null!=e&&vb(e,g);a.eb.Bc().forEach(function(a){"transform"!==a.name&&(a.Kb?a.Kb(g,d):a.Ha&&a.Ha(g))});for(var f=W("*[id],*[class],*[data-en-overlay-id]",g),e=f.length-1;0<=e;e--){var h=f[e];h.removeAttribute("id");h.removeAttribute("class");h.removeAttribute("data");la(h.attributes).forEach(function(a){0===a.name.indexOf("data-")&&h.removeAttribute(a.name)})}c=(new XMLSerializer).serializeToString(c);c=c.replace(/ +xmlns="(http:\/\/www.w3.org\/1999\/xhtml)?"/g,"");return c=c.replace(/<en-todo([^>]*?)><\/en-todo>/gi,
"<en-todo$1 />").replace(/<en-media([^>]*?)><\/en-media>/gi,"<en-media$1 />")};a.b.l({name:"enml",action:function(b){if(!a.$d(b))return!1;(b=a.pb("undo"))&&b.clear();return!0},value:function(b){return a.Ae(Sa(b))},enabled:D})}};function Ce(){function a(){g.b.g(f,"click",function(a){if(M(a.target,"img:not(.en-object-placeholder)")){var b={};b.src=a.target.getAttribute("src")||"";b.name=a.target.getAttribute("name")||"";a=b;x(!0,"tagname must have non-zero length");a=a||{};a.tagname="img";ed("clicked",a)}});g.b.g(f,"dblclick",function(a){if(M(a.target,"img:not(.en-object-placeholder)")){var b={};b.src=a.target.getAttribute("src")||"";b.name=a.target.getAttribute("name")||"";a=b;x(!0,"tagname must have non-zero length");a=
a||{};a.tagname="img";ed("doubleClicked",a)}})}function b(a){null!=a&&a!=={}&&(m=a);W("img:not(.en-object-placeholder)",f).forEach(function(a){!0===a.complete?c(a):g.b.g(a,"load",function(){c(a)})})}function c(a){g.Je(a);var b=d(a),c=b.width,b=b.height;null==c&&null==b?a.style.height="auto":null!=c&&null!=b&&Math.round(a.naturalHeight/a.naturalWidth*10)===Math.round(b/c*10)&&(a.style.height="auto")}function d(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 g=this;g.name="img";var e,f,h,m=null;g.Ee=function(a){if(null==m)return a.naturalWidth;var b;if(null==m["images-dpi"][a.getAttribute("src")])return a.naturalWidth;b=m["images-dpi"][a.getAttribute("src")][0];a=a.naturalWidth;return 144===b?Math.round(a/(b/72)):a};g.kg=function(a){if(null==m)return a.naturalHeight;var b;if(null==
m["images-dpi"][a.getAttribute("src")])return a.naturalHeight;b=m["images-dpi"][a.getAttribute("src")][1];a=a.naturalHeight;return 144===b?Math.round(a/(b/72)):a};g.Je=function(a){var b=a.naturalWidth,c=g.Ee(a),e=a.naturalHeight,f=g.kg(a),h=d(a);null==h.height&&null==h.width&&(b!==c&&V(a,"width",c+"px"),e!==f&&V(a,"height",f+"px"))};g.c=function(c){e=g.e("context");f=e.root;h=A(c,{imageClickEvents:!1,images:null});!0===h.imageClickEvents&&a();b(h.images);g.b.l({name:"images",action:function(a){a=
null==a||da(a)&&0===Object.keys(a).length||""===a?null:Sa(a);b(a);return!0},enabled:D})}};function De(){var a=this;a.name="inline";a.c=function(){function b(a,b){a||(a="px");if(!b){var c=e.a();if(!c)return"";var d;c.collapsed||(d=h.A(c,f.ca)[0]);void 0===d&&(d=c.startContainer);b=h.t(d,"fontsize")}return(c=Vc(b,a))&&c.value?c.value.toString():"0"}function c(b){if(!b)return!1;a.e("edit").v({lc:!1});var c=e.a();if(!f.f(e.a().startContainer)&&!f.qa(e.a().startContainer))return!0;f.r(c.startContainer)&&1==c.startContainer.childNodes.length&&T(c.startContainer.firstChild)&&0==c.startOffset&&
c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);e.i(b.parentNode,1+O(b));return!0}function d(){if(!e.a()||!e.a().startContainer)return null;var a=R(e.a().startContainer,"a[href]",e.root);return a?a.href:null}function g(){if(!n){y=null;var a=Y(l);null!=a&&(r=tc(a))}}var e=a.e("context"),f=a.e("query"),h=a.e("format"),m=a.e("block"),k=a.e("editor"),l=e.root,p=e.Z,n=!1,y=null,r=null;a.b.g(l,"compositionstart",function(){n=!0;e.Ga();y=h.Yc()});a.b.g(l,"compositionend",function(){n=
!1});a.b.sa(l,"contentchanged",g);a.b.g(l.ownerDocument,"selectionchange",g);a.b.g(l,"input",function(){if(!n&&r)if(y&&(e.Ga(),h.Sa(y)),y=null,e.pg()){var a=uc(r);if(null!=a){var b=Y(l),a=mc(a.startContainer,a.startOffset,b.startContainer,b.startOffset);r=null;a&&(b=h.Yc(),e.hb(a),e.a().collapsed||(h.Sa(b),a=e.a(),a.collapse(!1),e.hb(a),e.ja()))}}else r=null});p.bold={h:!0,U:!0,action:function(a){a=null==a?!k.queryCommandState("bold"):+a;h.M("bold",a?"bold":"normal");return!0},N:["bold","600","700",
"800","900"],P:"fontWeight",Ma:function(a,b){return a==b||"bold"==a&&"700"==b||"700"==a&&"bold"==b||"normal"==a&&"400"==b||"400"==a&&"normal"==b}};p.italic={h:!0,U:!0,action:function(a){a=null==a?!k.queryCommandState("italic"):+a;h.M("italic",a?"italic":"normal");return!0},N:["italic","oblique"],P:"fontStyle"};p.underline={h:!0,U:!0,action:function(a){a=null==a?!k.queryCommandState("underline"):+a;h.M("underline",a?"underline":null);return!0},N:["underline"]};p.strikethrough={h:!0,U:!0,action:function(a){a=
null==a?!k.queryCommandState("strikethrough"):+a;h.M("strikethrough",a?"line-through":null);return!0},N:["line-through"]};p.tt={h:!0,U:!0,action:function(a){a=null==a?!k.queryCommandState("tt"):+a;h.M("tt",a?"tt":null);return!0},N:["tt"]};p.createlink={h:!0,action:function(a){if(!a)return!1;if(e.a().collapsed){var b=J("a",{href:ce(a.toString())});b.textContent=a.toString();return c(b)}h.A(e.a()).forEach(function(b){f.Oa(b).forEach(function(b){f.f(b)&&S(b,"a")&&b.hasAttribute("href")&&b.setAttribute("href",
a)})});h.M("createlink",a);return!0},value:function(){return d()||""},state:function(){return!!d()}};p.unlink={h:!0,action:function(){for(var a=e.a(),b=[],c=a.startContainer;c;c=c.parentNode)S(c,"a")&&c.hasAttribute("href")&&b.unshift(c);for(c=a.startContainer;c!=f.ra(a.endContainer);c=f.nextNode(c))S(c,"a")&&c.hasAttribute("href")&&(f.Mc(c,a)||f.Ad(c,a.endContainer)||c==a.endContainer)&&b.push(c);for(a=0;a<b.length;a++)h.hd(b[a],"unlink");return!0},value:function(){return d()||""},state:function(){return!!d()}};
p.fontname={h:!0,U:!0,action:function(a){h.M("fontname",a);return!0},value:function(){var a=e.a();if(!a)return"";var b;a.collapsed||(b=h.A(a,f.ca)[0]);void 0===b&&(b=a.startContainer);a=h.t(b,"fontname");return oe(a)||""},P:"fontFamily",Ma:function(a,b){return oe(a)===oe(b)}};p.fontsize={h:!0,U:!0,action:function(a){var c="";u(a)&&(-1<a.indexOf("+")||-1<a.indexOf("-"))&&(c=a[0],a=a.slice(1));a=Vc(a,"px","px");var d=null;if(a)if(""===c)d=a.ib;else{var e=b();""!==e&&("+"===c?d=(parseInt(e,10)+a.value).toString()+
a.Ia:"-"===c&&(d=(parseInt(e,10)-a.value).toString()+a.Ia))}h.M("fontsize",d);return!0},ba:function(){return 2<=h.A(e.a(),f.ca).map(function(a){return h.t(a,"fontsize")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},value:function(a,c){return b(a,c)},P:"fontSize",Ma:function(a,b){if(a===b)return!0;var c=a;0<a.indexOf("pt")?c=Vc(a,"px").ib:0>a.indexOf("p")&&(c=a+"px");var d=b;0<b.indexOf("pt")?d=Vc(b,"px").ib:0>b.indexOf("p")&&(d=b+"px");return c===d}};p.forecolor={h:!0,U:!0,
action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!le(a)&&"transparent"!=a.toLowerCase())return!1;h.M("forecolor",a);return!0},xf:!0,P:"color",Ma:function(a,b){return ke(a)===ke(b)}};p.backcolor={h:!0,U:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!le(a)&&"transparent"!=a.toLowerCase())return!1;h.M("backcolor",a);return!0},ba:function(){return 2<=h.A(e.a(),function(a){return f.f(a)&&3===a.nodeType}).map(function(a){return h.t(a,
"backcolor")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},xf:!0,P:"backgroundColor",Ma:function(a,b){return ke(a)===ke(b)}};p.highlight={h:!0,U:!0,action:function(a){a=null==a?!k.queryCommandState("highlight"):+a;h.M("highlight",a?"rgb(255, 250, 165)":null);return!0},N:["rgb(255, 250, 165)","rgb(255, 204, 102)"],P:"backgroundColor",Ma:function(a,b){return ke(a)===ke(b)}};p.removeformat={h:!0,U:!0,action:function(){function a(b){return f.f(b)&&M(b,"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")}
h.A(e.a(),a).forEach(function(a){for(;a.hasChildNodes();)e.s(a.firstChild,a.parentNode,O(a));a.parentNode.removeChild(a)});if(f.f(e.a().startContainer)&&3==e.a().startContainer.nodeType&&0!=e.a().startOffset&&e.a().startOffset!=Q(e.a().startContainer))if(e.a().startContainer==e.a().endContainer){var b=e.a().endOffset-e.a().startOffset,c=e.a().startContainer.splitText(e.a().startOffset);e.i(c,0,c,b)}else e.Zd(e.a().startContainer.splitText(e.a().startOffset),0);f.f(e.a().endContainer)&&3==e.a().endContainer.nodeType&&
0!=e.a().endOffset&&e.a().endOffset!=Q(e.a().endContainer)&&(c=[e.a().startContainer,e.a().startOffset],b=[e.a().endContainer,e.a().endOffset],e.Yd(document.documentElement,0),b[0].splitText(b[1]),e.i(c[0],c[1],b[0],b[1]));h.A(e.a(),f.f).forEach(function(b){for(;a(b.parentNode)&&f.u(b.parentNode,b);)m.W([b])});"subscript superscript bold tt fontname fontsize forecolor highlight backcolor italic strikethrough underline".split(" ").forEach(function(a){h.M(a,null)});return!0}};["superscript","subscript"].forEach(function(a){p[a]=
{h:!0,U:!0,action:function(b){b=null==b?!k.queryCommandState(a):+b;h.M(a,null);b&&h.M(a,a);return!0},ba:function(){var b=h.A(e.a(),f.ca);return b.some(function(b){return h.t(b,a)==a})&&b.some(function(b){return h.t(b,a)!=a})||b.some(function(b){return"mixed"==h.t(b,a)})},N:[a]}});try{if(!0===zc.rte.highlightMagic){var t=null;a.b.g(e.root,"mousedown",function(){t=bd(e.root)});a.b.g(document,"mouseup",function(a){var b=Y(e.root);b&&!b.collapsed&&t!==bd(e.root)&&(!a.metaKey||a.altKey||a.shiftKey||a.ctrlKey?
a.metaKey&&a.altKey&&!a.shiftKey&&!a.ctrlKey&&Z.execCommand("strikethrough"):Z.execCommand("highlight"));t=null})}}catch(H){v.error("Exception in <$>:",H.toString)}}};function Ee(){var a=this;a.name="io";a.c=function(){var b=a.e("context"),c=a.e("undo"),d=b.root,g=!1,e;a.V=function(b){a.b.remove(e);e=null;g=!!b;!1===g&&c.flush()};a.qd=function(b){var c=A(b,{html:!1,cleanup:!1,stripNS:!1,trim:!0,titleString:null,withInsertionPoint:!1,hiddenCryptoData:null,wrap:!1,resetChangesState:!1,value:"",type:""});c.resetChangesState&&a.V(!1);if("enml"===(c.type||c.value||""))return a.e("enml").Ae({crypto:c.hiddenCryptoData});var e=null,e=null,k=c.withInsertionPoint;b=d;var g=
bd(b);if(c.cleanup||k)b=d.cloneNode(!0);W("div.en-crypto-revealed",b).forEach(function(a){var b=a.id;0===b.indexOf("en-revealed-crypto:")?c.hiddenCryptoData&&c.hiddenCryptoData[b]?tb(a,J("embed",{type:"evernote/x-crypto",id:c.hiddenCryptoData[b]})):v.error("Found revealed crypto but not replacement. Key:",b):v.error("Unsupported revealed crypto element with ID:",b)});c.cleanup&&e&&k&&(e.insertNode(Kd()),k=!1);k&&g&&(e=ad(b,g))&&e.insertNode(Kd());c.cleanup&&a.e("transform").Uf(b);e=c.stripNS?ya(b.outerHTML):
b.innerHTML;c.trim&&(e=e.trim());return c.html?"<html><head><title></title></head><body>"+e+"</body></html>":c.wrap?Md(b,e):e};a.jc=function(b,e){a.V(!1);e&&c.flush();var g=J("div",{},b),g=a.e("transform").fd(g,{Ic:!0});xb(g,d);e?c.flush():c.clear()};a.b.sa(d,"contentchanged",function(){a.V(!0);e=a.b.timeout(function(){g&&fd("content")},1E3,e)});a.b.l({name:"content",action:function(b){b=Sa(b);null!=b.value&&(ka("rte.content called with non-JSON string.","String used as new content."),b.content=b.value,
delete b.value);b=A(b,{scrollToTop:!0,content:"",undoable:!1,type:"html",resources:null});var c=b.resources;!c||va(c)||ca(c)&&0===c.length||da(c)&&0===Object.keys(c).length||a.e("resource").Yg(b.resources);"enml"===b.type?a.e("enml").$d(b.content||""):a.jc(b.content||"",!0===b.undoable);!0===b.scrollToTop&&ic(0,0);ed("contentLoaded",{module:"content"});return!0},value:function(b){return a.qd(Sa(b))},enabled:D});a.b.l({name:"changes",action:function(b){a.V(Ra(b));return!0},state:function(){return g},
enabled:D,Aa:!0})}};function Fe(){var a=this;a.name="misc";a.c=function(){var b=a.e("context"),c=a.e("normalize");b.Z.normalize={dc:!0,action:function(a){if(!a||"all"===a)return c.Od(),!0;if(!b.a())return v.warn("Command normalize called without selection. Value:",a),!1;if("start"===a)return c.bb(),!0;if("end"===a)return c.af(),!0;if("selection"===a)return c.ab(),!0;if("edges"===a)return c.Pd(),!0;v.warn("Command normalize called with unknown value:",a);return!1},enabled:D}}};function Ge(){var a=this;a.name="module";a.c=function(b){function c(b,c){if(null!=k[b])d(b,c);else if(null==p[b]){var e=l[b];if(null!=e){p[b]=e;var f="script"!==e.mode,h=e.url;x(u(h),"No URL provided");a.b.timeout(function(){var a=J("script",{type:"text/javascript",async:"true",src:h});if(f){var b=J("script",{type:"text/javascript"},["var EN = {   registerModule: window.parent.EN.registerModule,  registerCommand: window.parent.EN.registerCommand};"]),c=J("iframe",{style:"position:absolute;width:1px;height:1px;top:-999px;left:-999px;display:none;"});
document.body.appendChild(c);c.contentDocument.head.appendChild(b);c.contentDocument.head.appendChild(a)}else document.head.appendChild(a)})}}}function d(b,c){Da(function(){v.log("Module: Setup container",b,c);x(G(c),"Container required",c,b);var d=k[b];if(null!=d&&(d=d["class"])&&(d=new d)){x("function"==ba(d.setup),".setup missing");var e=c.id,f={};a.b.l({name:"module-channel",Aa:!0,pa:[b,b+"@"+e],value:function(a){v.log("Module",b,"receives",a);x(B(a)&&a.message,"Expected {message:...}",b,a);var c=
f[a.message];return c?c(a.info||{},e):null},enabled:D});if(!0===d.c({id:e,element:c,subscribe:function(a,c){v.log("Module",b,"subscribe",a);f[a]=c},publish:function(a,c,d){v.log("Module",b,"publish",a,c);a=ed("modulePublished",{module:{message:a.toLowerCase(),name:b,id:e},info:c})||{};d&&d(a,e)}}))return!0;v.error("Something went wrong while setting up module",b)}})}function g(a){var b=a.name;x(u(b)&&0<b.length,'Expected "name" for module!',a);x(null==k[b],"Modules can only be registered once!",b,
a);x(da(a["class"]),"Expected a module class",b,a);delete p[b];k[b]=a}var e=a.e("context"),f=a.e("query"),h=a.e("block"),m=e.root;b=A(b,{Nd:null});var k={},l={},p={};B(b.Nd)&&(l=b.Nd);for(b=0;b<sd.length;b++)g(sd[b]);a.b.gc("module",function(a){g(a);W("div.en-module",m).forEach(function(b){var c=b.getAttribute("data-en-module-name");a.name==c&&d(c,b)})});a.b.l({name:"module",action:function(a){a=Ta(a);if(null==a)return!1;v.log("INFO",a);for(var b=0;b<a.length;b++){var d=a[b];if("insert"===d.action){var k=
d.name;u(k)?(d="en-module-"+(Aa++).toString(),d=J("div",{id:d,"class":"en-module","data-en-module-name":k,contentEditable:"false"},"MODULE"),c(k,d),e.j("insertparagraph").action(),k=f.B(e.a().startContainer),k.parentNode.insertBefore(d,k),h.$(d),e.rf(d)):v.error("No name for insert provided",d)}}return!0},value:function(a){var b=[];a&&(b=W("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:D});a.Jb=function(a){W('div[en-content-class="evernote.module"]',
a).forEach(function(a){E(a,"en-module");var b="en-module-"+(Aa++).toString();a.setAttribute("id",b);a.removeAttribute("en-content-class");a.setAttribute("contentEditable","false");b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";null==b?b=null:(b=Vb("en-module-name").exec(b),b=null===b?null:b[3].trim());b&&(a.setAttribute("data-en-module-name",b),c(b,a))})};a.Kb=function(a){W("div.en-module",a).forEach(function(a){a.removeAttribute("class");a.removeAttribute("id");var b=a.getAttribute("data-en-module-name"),
c;c=a&&a.getAttribute?a.getAttribute("en-app-data"):"";null==c?c="":(c=c.replace(Vb("en-module-name"),"$1").trim(),0<c.length?a.setAttribute("en-app-data",c):a.removeAttribute("en-app-data"),c=c||"");null!=b&&(c=c.trim(),c.length&&";"!==c[c.length-1]&&(c+=";"),a.setAttribute("en-app-data",c+"en-module-name:"+b+";"));Tb(a,!1);a.setAttribute("en-content-class","evernote.module")})};a.ga=function(b){a.Jb(b)};a.Ha=function(b){a.Kb(b)}}};function He(){function a(a){this.ea=Aa++ +"";this.info=ua({title:"Unknown",mime:"application/octet-stream",hash:"",filename:"",filesize:"",progress:0,url:null,state:"unloaded",thumbnailURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},a);this.oc=function(a){a.preventDefault()};this.vb=-1!==this.info.mime.indexOf("image/")}var b=this;b.name="resource";J("object",{"class":"en-resource"},'<span class="en-resource-wrapper"><span class="en-resource-progress"><span class="en-resource-progress-fill"><span class="en-resource-progress-mask"></span></span></span><span class="en-resource-icon"><img src="" /></span><span class="en-resource-title"></span><span class="en-resource-name"></span><span class="en-resource-value"></span></span>');
a.prototype.mg=function(){this.le||(this.le=this.Pf());return this.le};a.prototype.wd=function(){this.sc||(this.sc=this.Rf(),this.update());return this.sc};a.prototype.sd=function(){this.me||(this.me=this.Qf());return this.me};a.prototype.Pf=function(){return J("en-media",{width:this.info.width,height:this.info.height,type:this.info.mime,hash:this.info.hash})};a.prototype.Rf=function(){var a=J(this.vb?"img":"embed",{width:this.info.width,height:this.info.height,type:this.info.mime,src:this.info.url,
id:"en-media:"+this.info.mime+":"+this.info.hash});a.setAttribute("data-en-resource-reference",this.ea);return a};a.prototype.Qf=function(){x(!this.vb,"Placeholder is not available for image");var a=J("img",{"class":"en-object-placeholder en-resource",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",style:"width:162px;height:122px;"});this.Of(a);a.setAttribute("data-en-resource-reference",this.ea);return a};a.prototype.Of=function(a){var d=this;b.b.g(a,"click",
function(a){"function"===typeof d.oc&&"loading"!==d.info.state&&d.oc.call(d,a)})};a.prototype.update=function(a){!this.vb&&this.sc&&(x(B(a)||B(this.info),"Info param must be dictionary."),a&&(this.info=ua(this.info,a)),this.Zg.setAttribute("src",this.info.thumbnailURL),this.$g.textContent=this.info.filename,this.bh.textContent=this.info.filesize,this.ah.textContent=this.info.title)};a.prototype.Vg=function(){return{hash:this.info.hash,url:this.info.url,mime:this.info.mime,rect:L(this.sc),reference:this.ea}};
b.c=function(c){function d(a){h.hasFocus()||(id(this.info.url,"resource",{hash:this.info.hash,mime:this.info.mime,reference:this.ea,action:"open"}),a.preventDefault())}function g(a){var b=[],c;for(c in p){var d=p[c];d.info.hash===a&&b.push(d)}return b}function e(a){var b=G(a)?a.getAttribute("data-en-resource-reference"):a.reference,c=null;b&&(c=p[b]);c||(c=f(a));return c}function f(b){var c,d;b instanceof HTMLElement?(c="img"===I(b)?b.getAttribute("src"):"en-media"===I(b)?b.getAttribute("hash"):b.getAttribute("id"),
b.getAttribute("x-evernote-mime"),d=l[c],"en-media"===I(b)&&(d=d||{},d.width=b.getAttribute("width"),d.height=b.getAttribute("height"),d.mime=b.getAttribute("type")),B(d)&&(d.hash=c)):B(b)&&(d=b);x(d&&d.hash,"Info data or hash inside is missing to create a resource element.");b=new a(d);return p[b.ea]=b}var h=b.e("context");b.e("layer");var m=h.root,k=h.Z,l=c.resources||{},p={};b.Yg=function(a){x(B(a),"Expected dict for resourceInfoDefaults",a);ua(l,a)};b.ga=function(a){X(".en-media",a).forEach(function(a){var b=
e(a);b.oc=d;b.vb?tb(a,b.wd()):tb(a,b.sd())})};b.Ha=function(a){X("img.en-media, img.en-object-placeholder",a).forEach(function(a){var b=e(a);tb(a,b.mg())})};k.resources={action:function(a){(a=Ta(a))&&a.forEach(function(a){if("update"===a.action)g(a.hash).forEach(function(b){b.update(a)});else if("insert"===a.action){if(h.Ra())return!1;var c=b.e("content"),e=f(a),k=null;e.oc=d;h.hasFocus()||Z.execCommand("content.focus");k=e.vb?e.wd():e.sd();c.insertNode(k);yc(k)}});return!0},value:function(){return W("img.en-media,embed",
m).map(function(a){v.dump(a,a);return e(a).Vg()})},enabled:D};b.Jb=function(a){X("en-media",a).forEach(function(a){var b=e(a);b.oc=d;b.vb?tb(a,b.wd()):tb(a,b.sd())})};b.Kb=function(a){X("img.en-media,embed",a).forEach(function(a){var b=e(a);b&&(b=J("en-media",{hash:b.info.hash,type:b.info.mime,width:b.info.width||null,height:b.info.height||null}),tb(a,b))})}}};function Ie(a){a=I(a);return"p"===a||"div"===a}function Je(a){a=I(a);return"ul"===a||"ol"===a}function Ke(a){return"td"===a||"th"===a}function Le(a){return a?!!R(a,function(a){return a&&a.style?"rgb(255, 250, 165)"===a.style.backgroundColor:!1}):!1}function Me(a,b,c,d){b=b.getAttribute(c);if(null===b||void 0===b){if(void 0===d)return;b=d}a.setAttribute(c,b)}
function Ne(a,b,c){"undefined"===typeof c&&(c={});this.La=c;x(null!=this.La.nc,"You have to provide tablePlugin config!");this.xc=void 0!==c.cssBlockStyle?c.cssBlockStyle:this.ie;this.async=!!c.async;if(!a)a=document.body;else if(a instanceof DocumentFragment||!Lb(a))c=J("div"),c.appendChild(a),document.body.appendChild(c),this.zf=a=c;this.Qa=a;this.Bb=b;this.Ld()}q=Ne.prototype;q.cd="div";q.ie=null;q.Hf=.8;q.Nf=150;q.ke=10;q.Mf=2E3;q.Jf="evernote://";q.If="rgb(105, 170, 53)";
q.cancel=function(){this.Cg=!0};
q.Ld=function(){var a=this;this.Wd=this.$c=this.yb=this.Y=this.o=null;this.gb=J("div");this.Hd=this.xb=null;this.Fa=!1;this.Gb=[];var b=Mb(document.body);this.Ug=b&&b.fontSize?+b.fontSize.replace(/px/gi,"")*this.Hf:16;if(this.async){this.Rc=this.Jd=this.Xe=0;this.Sc=!1;this.Dg=this.Ye=(new Date).getTime();for(var b=document.createNodeIterator(this.Qa,-1,null,!0),c=0;b.nextNode();)++c;this.Eg=c}this.Wg=document.createTreeWalker(this.Qa,-1,{acceptNode:function(b){for(var c=0;c<a.Gb.length;c++)if(Gb(b,
a.Gb[c]))return 2;return 1}},!0);Oe(this)};
function Oe(a){if(a.Cg)a.q();else{for(var b;(b=a.Wg.nextNode())&&!(3===b.nodeType?Pe(a,b):1===b.nodeType&&a.Ie(b),a.async&&(++a.Xe,(new Date).getTime()-a.Ye>a.Nf)););++a.Jd;if(b&&a.async){a.Rc=Math.min(1,a.Xe/a.Eg);a.Sc||(b=((new Date).getTime()-a.Dg)/a.Rc,b+=(Math.ceil(a.Jd/a.Rc)-a.Jd)*a.ke,b>=a.Mf&&(a.Sc=!0));if(a.Sc&&a.La.onprogress)a.La.onprogress(a,a.Rc);window.setTimeout(function(){a.Ye=(new Date).getTime();Oe(a)},a.ke)}else{a.Gb=null;Qe(a.o);if(a.Sc&&a.La.onprogress)a.La.onprogress(a,1);a.Kd()}}}
q.Kd=function(){this.Bb?xb(this.gb,this.Bb):this.Bb=this.gb;this.q();if(this.La.onready)this.La.onready(this)};q.q=function(){this.zf&&document.body.removeChild(this.zf)};
function Qe(a){if(a){for(var b,c=document.createNodeIterator(a,4,null,!0);(b=c.nextNode())&&!(b.textContent=b.textContent.replace(/^ /gi,""),0<b.textContent.length););for(var c=document.createNodeIterator(a,4,null,!0),d=[];b=c.nextNode();)d.unshift(b);for(c=0;c<d.length&&!(b=d[c],b.textContent=b.textContent.replace(/\s+$/gi,""),0<b.textContent.length);c++);a.normalize()}}q.Nb=function(a){a=J(a?a:this.cd);this.xc&&a.setAttribute("style",this.xc);return a};
function Re(a){var b=a.Nb();b.appendChild(J("br"));a.gb.appendChild(b);a.Fa=!1}function Se(a,b){var c=a.Nb();null!=b&&(u(b)?c=a.Nb(b):G(b)&&(c=b));if(a.gb.hasChildNodes&&a.Fa){var d=a.gb.lastElementChild;d&&d.textContent.length&&Ie(d)&&Ie(c)&&Re(a)}a.Fa=!1;a.gb.appendChild(c);return c}function Te(a){Qe(a.o);a.o=null;a.Y=null}
function Ue(a,b){var c=document.createRange();c.selectNodeContents(b);c=c.getBoundingClientRect();a.Hd&&c&&!Gb(b,a.Y)&&Math.abs(c.top-a.Hd.bottom)>=a.Ug&&(a.Fa=!0);c&&(a.Hd=c)}function Ve(a){return"div"===I(a)&&1===a.childNodes.length&&"br"===I(a.childNodes[0])}
q.ia=function(a,b,c,d){c=!Gb(a,this.Y);if(d&&c)return null;b||(b=a.cloneNode(!1));Ue(this,a);c&&(G(this.Y)&&(d=I(this.Y),Ke(d)&&(this.Fa=!0)),Te(this));for(c=a;c!==this.Qa&&(c=c.parentNode);){this.Y=c;d=I(c);if("li"===d)break;if(Ke(d))break;if(Ob(c))break}if(R(a,"table"))if(d=R(a,"table"),c=this.La.nc,null!=d&&null!=c&&G(d)&&"table"===I(d)){var g=c.Ge(d);-1!==g.rows&&(this.$c!==d&&(this.$c=d,this.Wd=c.ue(g),Ve(this.$c.previousSibling)&&Re(this),Se(this,this.Wd),Ve(this.$c.nextSibling)&&Re(this)),
d=c.Td(a),null!=d.table&&(c=d=this.Wd.querySelectorAll("tr")[d.row].querySelectorAll("td")[d.column],null==d?v.warn("Something crazy happened with table simplify: <$>"):(1===d.childNodes.length&&"div"===I(d.childNodes[0])&&(c=d.childNodes[0],1===c.childNodes.length&&"br"===I(c.childNodes[0])&&sb(c)),this.o=c)))}else v.warn("Couldn't simplify table. Look into this!");if(R(a,"li"))a:if(d=R(a,"li"),null==d)this.yb=null;else{if(Jb(a)){if(-1!==a.textContent.search(/^\s*$/i))break a;a.textContent.replace(/\s+/gi,
" ")}if(this.xb&&this.yb===d)this.o=this.xb,this.o.appendChild(J("br"));else{var e=0;c=null;for(var f=d;f&&f!==this.Qa;)Je(f)&&(++e,c||(c=I(f))),f=f.parentNode;e=Math.max(0,e);g=null;for(f=this.o&&0<this.o.childNodes.length?this.o:this.gb;;){f=f.lastElementChild;if(!f)break;if(Je(f)&&(g=f,--e,1>e))break}if(0<e&&g)e=g.lastElementChild,g=Se(this,c||"ol"),e.appendChild(g);else if(!g)null!=this.o?(g=J(c||"ol"),this.o.appendChild(g)):g=Se(this,c||"ol");else if(this.Fa||c&&c!==I(g))null!=this.o?(g=J(c||
"ol"),this.o.appendChild(g)):g=Se(this,c||"ol");this.o=this.Nb("li");g.appendChild(this.o);this.yb=d;this.xb=this.o}}a=this.vd(a);this.o||(this.o=Se(this));this.o.appendChild(this.ce(b,a));return b};
function Pe(a,b){if(b){var c;if((c=Mb(b.parentNode))&&/pre/gi.test(c.whiteSpace)){var d=b.textContent.split(/\n\r|\r\n|\r|\n/gi);if(d&&0<d.length){c=d[0].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 ");var g=a.ia(b,document.createTextNode(c));if(g)for(var e=1;e<d.length;e++){var f=g.parentNode;f.appendChild(J("br"));c=d[e].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 ");f.appendChild(document.createTextNode(c))}}}else c=b.textContent.replace(/[\ \n\r\t]+/gi," "),d=!1,-1!==c.search(/^[\ \t\n]*$/i)&&
(d=!0),a.ia(b,document.createTextNode(c),!1,d)}else v.warn("Node missing",b)}
q.Ie=function(a){if(a){var b=I(a);"div"===b&&/^en-revealed-crypto:\d+$/.test(a.id)?(Te(this),this.ia(a,a.cloneNode(!0),!0),Te(this),this.Gb.push(a)):"embed"===b?(b=Qb(a,"type").toLowerCase(),"evernote/x-crypto"!==b&&"evernote/x-todo"!==b&&"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.ia(a)):"script"===b||"style"===b?this.Gb.push(a):"object"===b&&M(a,"object.en-todo")?this.ia(a):"img"===b&&a.src?(Te(this),b=J("img"),Me(b,a,"src"),Me(b,a,"alt",""),Me(b,a,"id"),this.ia(a,b,!0),Te(this)):"hr"===
b?(Te(this),this.ia(a,J("hr"),!0),Te(this)):"br"===b?Te(this):this.o&&a&&(Ob(a)||!Kb(this.Y,a))&&Te(this)}else v.warn("Node missing",a)};
q.vd=function(a){for(var b={Ja:0,Ab:0,we:0,oe:0,Le:0,ad:0,Xd:0};a||a===this.Qa;){var c=I(a);"del"===c||"strike"===c||"s"===c?b.Xd=1:"mark"===c?b.Ab=1:"a"===c&&(c=a.href+"")&&c.length&&(b.Ja=c,b.we=0===c.indexOf(this.Jf));if(c=Mb(a)){var d=c.backgroundColor.toLowerCase();if("rgb(255, 204, 102)"===d||"rgb(255, 250, 165)"===d||"rgb(246, 238, 150)"===d||Le(a))b.Ab=1;var d=c.fontWeight.toLowerCase(),g=c.fontStyle.toLowerCase(),c=c.textDecoration.toLowerCase();if("bold"===d||"bolder"===d||"700"===d)b.oe=
1;if("italic"===g||"oblique"===g)b.Le=1;!b.Ja&&0<=c.indexOf("underline")&&(b.ad=1);0<=c.indexOf("line-through")&&(b.Xd=1)}a=a.parentNode}b.Ja&&b.ad&&delete b.ad;return b};
q.ce=function(a,b){var c;b.Ja&&(c=J("a"),c.setAttribute("href",b.Ja),b.we&&c.setAttribute("style","color:"+this.If+";"),c.appendChild(a),a=c);b.oe&&(c=J("b"),c.appendChild(a),a=c);b.Le&&(c=J("i"),c.appendChild(a),a=c);b.ad&&(c=J("u"),c.appendChild(a),a=c);b.Xd&&(c=J("s"),c.appendChild(a),a=c);b.Ab&&(c=J("span",{style:"-evernote-highlight:true; background-color:rgb(255, 250, 165);"}),c.appendChild(a),a=c);return a};
function We(a,b,c){if(!(this instanceof We))return new We(a,b,c);Ne.call(this,a,b,c)}fa(We,Ne);function Xe(a,b,c){if(!(this instanceof Xe))return new Xe(a,b,c);Ne.call(this,a,b,c)}fa(Xe,Ne);q=Xe.prototype;q.cd="div";q.ie='font-family: Courier, "Courier New", monospace;';q.je=!1;q.Lf="\u00a0 \u00a0 ";q.Kf="- ";q.Ld=function(){this.ed=[];Xe.mc.Ld.call(this)};q.Kd=function(){this.Fa=!0;for(var a=0;a<this.ed.length;a++)this.o=Se(this),this.o.appendChild(this.ed[a]);Xe.mc.Kd.call(this)};
q.Nb=function(){var a=J(this.cd);this.xc&&a.setAttribute("style",this.xc);return a};
q.ia=function(a,b,c,d){c=!Gb(a,this.Y);if(d&&c)return null;b||(b=a.cloneNode(!1));Ue(this,a);c&&(G(this.Y)&&(d=I(this.Y),Ke(d)&&(this.Fa=!0)),Te(this));for(c=a;c!==this.Qa&&(c=c.parentNode);){this.Y=c;d=I(c);if("li"===d)break;if(Ke(d))break;if(Ob(c))break}d=R(a,"li");if(!this.o&&d)if(this.xb&&this.yb===d)this.o=this.xb,this.o.appendChild(J("br"));else{c=0;for(var g=d;g&&g!==this.Qa;)Je(g)&&++c,g=g.parentNode;c=Math.max(0,c);this.o=Se(this);for(g=this.Kf;1<c;)g=this.Lf+g,--c;this.o.appendChild(document.createTextNode(g));
this.yb=d;this.xb=this.o}else this.yb=null,this.o||(this.o=Se(this));a=this.vd(a);this.o.appendChild(this.ce(b,a));return b};
q.Ie=function(a){var b;b=I(a);"object"===b&&M(a,"object.en-todo")?(b=mb(a,"en-todo-checked"),this.ia(a,document.createTextNode(b?"[x] ":"[ ] "))):"embed"===b?(b=Qb(a,"type").toLowerCase(),"evernote/x-todo"===b?(b="true"===(Qb(a,"todo-checked")+"").toLowerCase(),this.ia(a,document.createTextNode(b?"[x] ":"[ ] "))):"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.ed.push(a.cloneNode(!0))):("script"!==b&&"style"!==b||this.Gb.push(a),"img"!==b&&("hr"===b?Te(this):"br"===b?Te(this):Ke(b)?(Te(this),
this.Fa=!0):!this.o||!Ob(a)&&Kb(this.Y,a)||Te(this)))};q.vd=function(a){var b={};if(this.je)for(;a||a===this.Qa;)"a"===I(a)&&(b.Ja=a.href),a=a.parentNode;return b};q.ce=function(a,b){if(this.je&&b.Ja){var c=J("a");c.setAttribute("href",b.Ja);c.appendChild(a);a=c}return a};
function Ye(){var a=this;this.name="simpletext";this.c=function(){function b(b,e){var m=c.a(),k,l,p;if(m&&!m.collapsed){d.Pd();l=Cc(m,g);k=l[0];var n=l[1];p=n.nextSibling;l=n.parentNode;k===n?c.rf(k):c.i(k,0,n,n.childNodes.length);k=c.a().cloneContents()}if(k){var y=(new b(k,null,e)).Bb.childNodes;k=y[0];n=y[y.length-1];m=m.startContainer;for(p&&Jb(p)&&0===p.length&&(p=null);0<y.length;)null!==p?c.insertBefore(y[0],l,p):c.kb(y[0],l);a.e("edit").v({lc:!0});m!==g&&m!==l&&c.removeNode(m);m=rb(n);c.i(qb(k),
0,m,m.length)}else new b(g,g,e),c.i(g,0),c.ja();return!0}var c=a.e("context"),d=a.e("normalize"),g=c.root,e=c.Z;e.simpletext={h:!0,action:function(c){null!=c&&ka("simpletext called with an argument!");return b(We,{nc:a.e("table")})},enabled:D};e.plaintext={h:!0,action:function(c){var d=null,e=null,e="",d=null;c=Sa(c);null!=c.value&&(ka("plaintext called with non-JSON string"),c={});c=A(c,{fontStyle:"fixed width"});"fixed width"===c.fontStyle&&(d=J("tt",{style:"position: absolute;"}),document.body.appendChild(d),
e=Mb(d),e="font-family:"+e.fontFamily+"; font-size:"+e.fontSize+"; font-weight:"+e.fontWeight,F(d));d={cssBlockStyle:e,nc:a.e("table")};return b(Xe,d)},enabled:D}};this.ag=function(b){return(new We(b,null,{nc:a.e("table")})).Bb};this.$f=function(b){return(new Xe(b,null,{nc:a.e("table"),cssBlockStyle:""})).Bb}};function Ze(){this.name="table";this.c=function(){function a(a){var b=Mb(a.querySelector("td")),c=parseInt(b.borderWidth,10)||1,d=b.borderColor||"black";z(la(a.style),function(b){0<=b.indexOf("border")&&U(a,b)});a.removeAttribute("border");V(a,"border-style","solid");V(a,"border-width",c+"px");V(a,"border-color",d);V(a,"border-collapse","collapse");z(a.querySelectorAll("tr"),function(a){z(la(a.style),function(b){0<=b.indexOf("border")&&U(a,b)})});z(a.querySelectorAll("td"),function(a){z(la(a.style),
function(b){0<=b.indexOf("border")&&U(a,b)});V(a,"border-style","solid");V(a,"border-width",c+"px");V(a,"border-color",d)})}var b=this,c=b.e("context"),d=b.e("query"),g=b.e("block"),e=c.root,f=c.Z;b.p=function(){var a=c.a();if(!a)return null;var b=R(a.startContainer,"table",e),a=R(a.endContainer,"table",e);return!b||a&&a!==b?null:b};b.ud=function(){return b.p()?R(c.a().startContainer,"tr",e):null};b.Ec=function(){return b.p()?R(c.a().startContainer,"td",e):null};b.Fe=function(){var a;if(null==a&&
(a=b.p(),null==a))return[];var c=window.getSelection(),d=[],e=[],f=[];z(a.querySelectorAll("td"),function(a){c.containsNode(a,!1)?(e.push(a),f.push(a)):c.containsNode(a,!0)&&(d.push(a),f.push(a))});return f};b.Td=function(a){var b={table:null,cell:null,row:-1,column:-1},c=R(a,"table"),d=R(a,"tr");a=R(a,"td,th");if(null==c||null==d||null==a)return b;for(var e=-1,f=-1,g=c.querySelectorAll("tr"),r=0;r<g.length;r++)g[r]===d&&(e=r);if(-1===e)return b;d=d.querySelectorAll("td,th");for(r=0;r<d.length;r++)d[r]===
a&&(f=r);return-1===f?b:{table:c,cell:a,row:e,column:f}};b.vc=function(a){var b=Xb(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};b.Ge=function(a){if(null==a||!G(a)||"table"!==I(a)||null!=a.querySelector("table"))return{rows:-1,columns:-1};a=a.querySelectorAll("tr");if(0>=a.length)return{rows:0,columns:0};var b=a[0].querySelectorAll("td,th");
return{rows:a.length,columns:b.length}};b.ue=function(a){for(var b=+a.columns||2,c=+a.rows||2,d=a.borderColor||"rgb(211,211,211)",e=+a.borderWidth||1,f=J("table",{style:"-evernote-table:true;border-collapse:collapse;width:100%;table-layout:fixed;"}),g=Math.round(1E4/b)/100,r=0;r<c;r++){var t=J("tr");f.appendChild(t);for(var H=0;H<b;H++){var C=J("td",{style:"border-style:solid;border-width:"+e+"px;border-color:"+d+";padding:10px;margin:0px;width:"+g+"%;"},[ne()]);a.cellColor&&(C.style.backgroundColor=
a.cellColor);t.appendChild(C)}}return f};f.inserttable={h:!0,action:function(a){if(!c.a()||g.Oc())return!1;var f={};"{"===a[0]?f=A(a,{columns:2,rows:2,borderColor:"rgb(211,211,211)",borderWidth:1,cellColor:null,alignment:"left"}):(a=a.split(","),f.columns=+a[0].trim(),f.rows=+a[1].trim());c.j("insertparagraph").action();a=f.align||"left";var f=b.ue(f),k=d.B(c.a().startContainer);k.parentNode.insertBefore(f,k);g.$(f);c.i(f.querySelector("div"),0);c.j("tablealign").action(a);qd(e,"TABLE_ADDED",{target:f});
return!0},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!g.Oc()}};f.inserttablerow={h:!0,action:function(a){var d=b.p();if(null==d)return!1;a="before"===a.toString().toLowerCase().trim();var f=R(c.a().startContainer,"tr",e),g=R(c.a().endContainer,"tr",e);if(!f&&!g)return!1;f=f.compareDocumentPosition(g)&(a?4:2)?f:g;if(!f)return!1;var g=f.cloneNode(!0),p=[];z(g.querySelectorAll("td"),function(a){p.push(a);sb(a);a.appendChild(ne())});c.s(g,f.parentNode,O(f)+(a?0:1));qd(e,"TABLE_INSERT_ROW",
{target:d});return!0},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}};f.inserttablecol={h:!0,action:function(a){var d=b.p();if(!d)return!1;var f="before"===a.toString().toLowerCase().trim();a=R(c.a().startContainer,"td",e);var g=R(c.a().endContainer,"td",e);if(!a&&!g)return!1;var p=a.compareDocumentPosition(g)&(f?4:2)?a:g;if(!p)return!1;var n=[],y=p.cellIndex;z(la(d.querySelectorAll("td")),function(a){if(a.cellIndex===y&&d===R(p,"table")){var b=a.cloneNode(!0);sb(b);
b.appendChild(ne());n.push(b);var e=Xb(a,"width"),e=window.parseFloat(e)||0;0<e&&(V(b,"width",e/2+"%"),V(a,"width",e/2+"%"));c.s(b,a.parentNode,O(a)+(f?0:1))}});qd(e,"TABLE_INSERT_COLUMN",{target:d});return!0},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}};f.deletetablerow={h:!0,action:function(){var a=b.ud();if(!a)return!1;var d=b.p();if(!d)return!1;var f=W("tr",d);if(1===f.length)return c.j("deletetable").action();f.indexOf(a)===f.length-1?(f=W("td",f[f.length-
2]).pop(),c.i(f,Q(f))):(f=W("td",f[f.indexOf(a)+1]).shift(),c.i(f,0));c.removeNode(a);qd(e,"TABLE_DELETE_ROW",{target:d});return!0},state:function(){return!!b.ud()},enabled:function(){return c.hasFocus()&&!!b.ud()}};f.deletetablecol={h:!0,action:function(){var a=b.Ec();if(!a)return!1;var d=a.cellIndex,f=b.p();if(!f)return!1;var g=W("td",f);if(g.every(function(a){return a.cellIndex===d}))return c.j("deletetable").action();var p=g.filter(function(a){return a.cellIndex===d+1});p&&p.length||(p=g.filter(function(a){return a.cellIndex===
d-1}));for(var n=W("tr",f),y=0,r=0;r<n.length;r++)for(var t=W("td",n[r]),H=0;H<t.length;H++)t[H]===a&&(y=r);c.i(p[y],0);for(r=g.length-1;0<=r;r--)a=g[r],a.cellIndex===d&&c.removeNode(a);qd(e,"TABLE_DELETE_COLUMN",{target:f});return!0},state:function(){return!!b.Ec()},enabled:function(){return c.hasFocus()&&!!b.Ec()}};f.deletetable={h:!0,action:function(){var a=b.p();if(!a)return!1;c.i(a.parentNode,O(a),a.parentNode,O(a)+1);b.e("edit").v();qd(e,"TABLE_REMOVED",{target:a});return!0},state:function(){return!!b.p()},
enabled:function(){return c.hasFocus()&&!!b.p()}};f.tablebordercolor={h:!0,action:function(c){var d=c||"black";c=b.p();if(null==c)return!1;a(c);V(c,"border-color",d);z(c.querySelectorAll("td"),function(a){V(a,"border-color",d)});return!0},value:function(){var a=b.p();return null==a?"":(a=Mb(a.querySelector("td")).borderColor)?""+a:""},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}};f.tableborderwidth={h:!0,action:function(c){var d=parseInt(c,10);if(isNaN(d)||0>d)return v.warn("Invalid value given to tableborderwidth <$>",
ma(d)),!1;c=b.p();if(null==c)return!1;a(c);V(c,"border-width",d+"px");z(c.querySelectorAll("td"),function(a){V(a,"border-width",d+"px")});qd(e,"TABLE_BORDER_WIDTH",{target:c,value:d});return!0},value:function(){var a=b.p();if(null==a)return"";a=Mb(a.querySelector("td"));return(a=parseInt(a.borderWidth,10))?""+a:"0"},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}};f.tablealign={h:!0,action:function(a){if("left"!==a&&"right"!==a&&"center"!==a)return v.warn("Invalid value given to tablealign <$>"),
!1;var c=b.p();if(null==c)return!1;c.removeAttribute("align");U(c,"float");U(c,"margin");U(c,"margin-right");U(c,"margin-left");"left"===a?V(c,"margin-left","0px"):"right"===a?(V(c,"margin-left","auto"),V(c,"margin-right","0px")):"center"===a&&(V(c,"margin-left","auto"),V(c,"margin-right","auto"));qd(e,"TABLE_ALIGN",{target:c,value:a});return!0},value:function(){var a=b.p();return null==a?"":b.vc(a)},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}};f.tablecellcolor=
{h:!0,action:function(a){a=a||"transparent";var c=b.Fe();if(0===c.length)return!1;z(c,function(b){U(b,"background");U(b,"background-image");U(b,"background-attachment");U(b,"background-position");U(b,"background-clip");U(b,"background-repeat");V(b,"background-color",a)});return!0},value:function(){var a=b.Fe();if(0===a.length)return"";a=a[0].style;return a.backgroundColor?(a=ke(a.backgroundColor),null!=a?a:""):""},state:function(){return!!b.p()},enabled:function(){return c.hasFocus()&&!!b.p()}}}}
;function $e(){var a=this;this.name="tableselection";this.c=function(){function b(a,b){var c=[],d=[],e=xc(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{jd:d,Xc:c}}function c(){for(var a=g.getElementsByClassName("en-selected");0<a.length;)nb(a[0],"en-selected")}var d=this.e("context"),g=d.root,e=!1,f,h=mc();this.b.g(document,"selectionchange",function(){if(Y(g)&&!e&&0!==g.getElementsByTagName("table").length){var a=
window.getSelection(),d=Y();h=mc(d.startContainer,d.startOffset,d.endContainer,d.endOffset);c();d&&!d.collapsed&&(a=b(d,a),1>=a.Xc.length&&0===a.jd.length||(z(g.querySelectorAll("table"),function(a){E(a,"en-selected")}),z(a.Xc,function(a){E(a,"en-selected")}),z(a.jd,function(a){E(a,"en-selected")})))}});this.b.g(document,"contextmenu",function(g){e=!0;f=a.b.timeout(function(){e=!1},1E3,f);g=g.target;var l=window.getSelection(),m=Y();c();sc(m,h)||(l=b(m,l),2!==l.Xc.length&&1!==l.Xc.length||0!==l.jd.length||
R(m.startContainer,"td")===R(m.endContainer,"td")||(m=document.createRange(),m.selectNodeContents(g),d.hb(m),d.ja()));return!0});c();var m=J("style",{type:"text/css"});m.textContent="td.en-selected { background-color: "+pd()+" !important;}";document.querySelector("head").appendChild(m)}};function af(){var a=this;this.name="texttransform";this.c=function(){function b(a){void 0===a&&(a=document.body);c(a);e(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 c(a){var b=bd(a,!0);a.normalize();cd(a,b)}function d(a){void 0===a&&(a=document.body);e(a,function(a){return a.toLocaleLowerCase()})}function g(a){void 0===a&&(a=document.body);e(a,function(a){return a.toLocaleUpperCase()})}
function e(a,b){var c;void 0===a&&(a=document.body);var d=Y();if(d&&!(1>d.toString().length)){Jb(d.endContainer)&&0<d.endOffset&&d.endOffset<d.endContainer.textContent.length&&(c=d.endContainer.splitText(d.endOffset),d.setEnd(c,0));Jb(d.startContainer)&&0<d.startOffset&&(c=d.startContainer.splitText(d.startOffset),d.setStart(c,0));nc(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();)Jb(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);nc(d)}}var f=a.e("context"),h=f.root,f=f.Z;f.lowercase={h:!0,action:function(){d(h);return!0}};f.uppercase={h:!0,action:function(){g(h);return!0}};f.capitalize={h:!0,action:function(){b(h);return!0}}}};function bf(){var a=this;a.name="todo";var b;a.c=function(){function c(a,b){for(var c=0;c<a.length;c++){var d=a[c];b?E(d,"en-todo-checked"):nb(d,"en-todo-checked")}}function d(a){ob(a,"en-todo-checked");qd(b,"dirty",a)}function g(a){var c=a.target;if(!f.Ra()){var d=W("li.en-todo-over",b);(a=e(a))&&E(c,"en-todo-over");for(var g=0;g<d.length;g++){var h=d[g];a&&h.isEqualNode(c)||nb(h,"en-todo-over")}}}function e(a){var b=a.target;return S(b,"li")&&mb(b.parentNode,"en-todo-list")&&40>a.clientX-b.getBoundingClientRect().left}
var f=a.e("context"),h=a.e("query"),m=a.e("block"),k=a.e("normalize"),l=a.e("undo");b=f.root;var p=f.Z;a.de=function(a){var b=null;bc(a,function(a){return M(a,"object.en-todo")?(b=a,!0):ec(a)||h.k(a)?!1:!0},a);return b};a.ug=function(b){if(!M(b,"div,li"))return!1;var c=a.de(b);if(!c)return!1;for(var d=b.childNodes.length-1;0<=d;d--){var e=b.childNodes[d];if(e!==c&&(Jb(e)&&!ec(e)||!h.Da(e)))return!1}return!0};a.Md=function(){return J("object",{"class":"en-todo"})};a.zd=function(b){var c=a.Md();f.s(c,
b,0);m.Na(b);return c};a.ff=function(){return W("object.en-todo",b)};a.Ng=function(a){if(a&&a.parentNode){var b=a.parentNode,c=a.nextSibling;if(c&&Jb(c)){var d=c.textContent,e=d.trimLeft(d);d!==e&&(0==e.length?f.removeNode(c):c.textContent=e)}f.removeNode(a);m.Na(b)}};a.b.g(b,"mousemove",g);a.b.g(b,"mouseout",g);a.b.g(b,"blur",g);a.b.g(b,"mouseup",function(a){if(M(a.target,"object.en-todo")||e(a))f.Ra()||l.Wa(function(){d(a.target)})});p.controltodos={h:!0,action:function(d){var e=f.a();if(!e||!Sb(b))return!1;
var g=a.ff();e.collapsed||(g=xc(e,"object.en-todo"),e=rc(e),(e=cc(e,"object.en-todo",h.B(e)||b))&&g.push(e));if(d&&"toggle"!=d)if("on"==d)c(g,!0);else if("off"==d)c(g,!1);else return!1;else for(d=g,g=0;g<d.length;g++)ob(d[g],"en-todo-checked");return!0}};p.inserttodo={h:!0,action:function(c){var e=f.a();if(!e||!Sb(b))return!1;if("toggle"===c){c=rc(e);var g=R(c,"ul.en-todo-list > li",b);if(g||(g=cc(c,"object.en-todo",h.B(c)||b)))return d(g),!0}if(e.collapsed)return c=a.Md(),a.e("content").insertNode(c),
m.Na(c),!0;k.ab();if((c=a.ff().filter(function(a){return e.intersectsNode(a)}).reverse())&&0<c.length)return c.map(function(b){a.Ng(b)}),!0;(c=W("div,li",b).filter(function(a){return e.intersectsNode(a)}))&&0<c.length&&(c.map(function(b){va(b.textContent)||a.zd(b)}),e=f.a(),f.i(c[0],0,e.endContainer,e.endOffset));return!0}}};a.ga=function(){};a.Ha=function(){};a.Jb=function(b){X("en-todo",b).forEach(function(b){var c=a.Md();ob(c,"en-todo-checked","true"==b.getAttribute("checked"));v.log("en-todo",
c.outerHTML);tb(b,c)})};a.Kb=function(a){X("object.en-todo",a).forEach(function(b){var g=Ab(a,"en-todo");mb(b,"en-todo-checked")&&g.setAttribute("checked","true");tb(b,g)})}};function cf(){var a=this;a.name="transform";a.fd=function(b,c){function d(b){a.eb.Bc().forEach(function(c){c!==a&&c.ga&&c.ga(b)});fe(b);return b}c=A(c,{Ic:!1});if(b instanceof DocumentFragment)return c.Ic=!0,d(b);if(Lb(b)){var g=wb(b);d(g);b.appendChild(g)}else d(b);c.Ic||Ld(b);return b};a.Uf=function(b){a.eb.Bc().forEach(function(c){c!==a&&c.Ha&&c.Ha(b)});ge(b)}};function df(){x(this instanceof df,"Use `new` to instantiate this class")}q=df.prototype;q.name="rte";
q.c=function(a){var b=this;b.d=A(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},mutationObserver:!1,resources:null,smartScroll:!1,smartHeight:!1,imageConfig:{},selector:null,html:null,enml:null,modules:null,root:null});b.root=u(b.d.selector)?document.querySelector(b.d.selector):a.root||document.getElementById("en-note")||document.body;
x(b.root&&G(b.root),"Root not valid!");x(G(b.root),"RTE root node required to be an HTML element! <$>");var c=b.R();b.b.ic({pa:["rte","content"]});c.Ig(function(a){a.b.ic({pa:["rte","content"]})});b.qf=null;b.kh=null;b.Tg=!!(b.d.trackStateChanges||b.d.trackValueChanges||b.d.trackEnabledChanges);var d=new Nd;c.c(d,{root:b.root});d.sf(!b.d.active);c.c(new Od);var g=new je;c.c(g);c.c(new se);c.c(new me);b.H=!0===b.d.mutationObserver?new Cd:new zd;c.c(b.H,{element:b.root,ma:function(){d.Ga();return JSON.stringify(g.Yc())},
Fb:function(a){d.Ga();g.Sa(JSON.parse(a))}});b.za=new te;c.c(b.za);var e=b.d.tableResizing,f=b.d.imageResizing,h=b.d.tableSelection;b.Id=new qe;c.load(b.Id);c.c(new De);c.c(new xe);c.c(new ve);c.c(new Ce,b.d.imageConfig);c.c(new Ze);c.c(new bf);c.c(new we);c.c(new Fe);c.c(new af);c.c(new Ye);null!=a.modules&&c.c(new Ge,{Nd:a.modules});a.emoticons&&(ka("Use typebehind: { emoticon: true } instead of adding","emoticons: true directly to the rte options."),a.typebehind.emoticon=!0);c.c(new Ae,a.typebehind);
B(b.d.resources)&&c.c(new He,{resources:b.d.resources});var m=new cf;c.c(m);c.c(new Ee);c.c(new Be);b.d.skipMarkupTransform||m.fd(b.root);h&&c.c(new $e);f&&(b.ub=new re,d.Ra()||c.c(b.ub));e&&(b.Ib=new ue,d.Ra()||c.c(b.Ib));b.Id&&c.c(b.Id);d.Ra()||Tb(b.root,!0);d.kc();b.kc();b.b.sa(b.root,"dirty",function(a){b.aa({event:a})});b.b.g(b.root,"input",b.aa.bind(b));b.b.g(b.root.ownerDocument,"selectionchange",b.ve.bind(b));b.d.smartHeight&&(c=function(){var a=window.innerHeight;document.body.style.minHeight=
"";a>document.body.clientHeight&&(document.body.style.minHeight=a+"px")},b.b.g(window,"resize",c),c());b.d.placeholder&&b.root.setAttribute("data-en-placeholder",b.d.placeholder);c=a.html;a=a.enml;x(!(null!=c&&null!=a),"You can only provide one content type: html or enml");u(c)?b.R().Eb("io").jc(c):u(a)&&(b.R().Eb("enml").$d(a),b.R().Eb("io").V(!1));b.H.clear()};q.q=function(){this.yf=this.vh=null;qc();this.We=this.ac=null;Tb(this.root,!1);this.za=this.root=this.d=this.Ib=this.ub=null};
q.ve=function(){var a=this;try{var b=Y(a.root);null!=b&&(this.ac=tc(b));a.qf=a.b.timeout(function(){var b=a.hasFocus();b!==a.We&&(gd("content",{focus:b}),a.We=b);if(b&&a.Tg){var b=ef(a),c=JSON.stringify(b);c!==a.yf&&(a.yf=c,x(!b||B(b),"info has to be dict",b),b=b||{},b.module="content",ed("styleChanged",b))}},50,a.qf)}catch(c){v.error("Exception in en.rte.didChangeStyle <$>:",c.toString())}};
q.aa=function(a){a=a||{};this.d.smartScroll&&null==a.event&&setTimeout(function(){yc(Y())},0);this.ve();qd(this.root,"contentchanged",a)};function ef(a){function b(a,b,d){if(a&&a.length){for(var h={},m=0;m<a.length;m++){var k=a[m];h[k]=d(k)}h&&(c[b]=h)}}var c={},d=md;b(a.d.trackStateChanges,"state",d.state);b(a.d.trackValueChanges,"value",d.value);b(a.d.trackEnabledChanges,"enabled",d.enabled);return c}
q.selection=function(a){var b=Y(this.root);a&&(this.ac&&nc(uc(this.ac)),this.root.focus(),b=Y(this.root));return b};function ff(a,b,c){return Da(function(){function d(){c();!0!==b.dc&&a.aa()}!0===b.focus&&a.selection(!0);!0===b.h?a.H.Wa(d,b.d.title):d();return!0})||!1}q.hasFocus=function(){var a=Y(this.root);return a&&(a=rc(a))?!(!R(a,Sb)&&!Sb(document.body)):!1};
q.kc=function(){var a=this,b=this.za.gg();Object.keys(b).forEach(function(c){var d=b[c];d.name=c;var g={name:c,h:d.h,dc:d.dc,U:d.U,enabled:null,action:function(b){b=a.za.execCommand.bind(a.za,c,!1,b);return ff(a,g,b)},state:function(){return a.za.queryCommandState(c)},value:function(b){return a.za.queryCommandValue(c,b)}};g.enabled=d.enabled?function(){return a.za.queryCommandEnabled(c)}:function(){return a.hasFocus()&&a.za.queryCommandEnabled(c)};a.b.l(g)});a.b.l({name:"focus",action:function(b){b=
A(Sa(b),{pos:"top",force:!1,scroll:!1,animate:!1,value:null});if(!Y(a.root)||b.force)if(a.root.focus(),a.ac&&!b.force)nc(uc(a.ac));else if("bottom"===b.pos){var d=document.createRange();d.selectNodeContents(a.root);d.collapse(!1);nc(d)}else nc(mc(a.root,0));b.scroll&&yc(Y());return!0},state:function(){return a.hasFocus()},value:function(b){var d=a.hasFocus();if(d&&b&&"position"===b.type)return L(Y());if(d)return a.name},Aa:!0,enabled:D});a.b.l({name:"active",action:function(b){b=Ra(b);var d=a.R(),
g=d.Eb("context"),e=!g.Ra();e!==b&&window.getSelection().containsNode(a.root,!0)&&qc();g.sf(!b);e&&!b&&(Tb(a.root,!1),a.ub&&d.q(a.ub),a.Ib&&d.q(a.Ib));!e&&b&&(qc(),Tb(a.root,!0),a.ub&&d.c(a.ub),a.Ib&&d.c(a.Ib));return!0},state:function(){return!a.R().Eb("context").Ra()},enabled:D})};var Z={},gf=null,hf=null;Z.G=!1;
Z.c=function(a){!0===Z.G&&Z.q();return Da(function(){a=A(a);md=new Pa;od(a);nd=gf=new xd({jh:md,d:a,uid:(new Date).getTime()});hf=new wd;hf.c({name:"document"});var b,c;a.template?(b=new Jd,c=a.template):a.rte&&(b=new df,c=a.rte);b?((null==a.active||a.active)&&gf.c(b,c),hf.l({name:"bounds",enabled:D,value:function(){var a=L(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)}})):v.error('Settings for "rte" or "template" are obligatory!');
null!=a.title&&(gf.c(new Dd,a.title),hf.gc("titlechanged",function(a){fd("title",{blur:!0===a.blur})}));null!=a.shared&&gf.c(new Ed,a.shared);null!=a.context&&gf.c(new Fd,a.context);null!=a["context-upsell"]&&gf.c(new Gd,a["context-upsell"]);null!=a.find&&gf.c(new Hd,a.find);null!=a.keyboard&&gf.c(new Id,a.keyboard);hf.l({name:"env",action:function(a){var b=zc;if(!B(a)||!B(b))return!1;b.env||(b.env={});ua(b.env,a);return!0},value:function(a){var b=zc;if(!B(b))return null;b=b.env;return B(b)?u(a)?
b[a]:b:{}},enabled:D});var d=document.getElementById("en-note")||document.body;if(d){var g=function(){var a=Y(d);return!(!a||a.collapsed)};hf.l({name:"copy",value:function(a){if(!g())return null;a=A(a,{html:!0,raw:!0,resources:!0,plain:!0});return Bd(d,Y(d),a)},enabled:g})}return Z.G=!0})};Z.q=function(){!0!==Z.G?v.error("Someone tried to call cleanup before setup!"):(Da(function(){md.Ef();gf.Df();gf=null;hf.q();nd=md=null;ld={};zc={}}),Z.G=!1)};
Z.execCommand=function(a,b,c){x(Z.G,"Calling EN.setup before using commands is required");return Da(function(){a=a.toLowerCase();return md.action(a,b,c)||!1})};Z.queryCommandState=function(a,b,c){x(Z.G,"Calling EN.setup before using commands is required");return Da(function(){a=a.toLowerCase();return md.state(a,b,c)||!1})};Z.queryCommandValue=function(a,b,c){x(Z.G,"Calling EN.setup before using commands is required");return Da(function(){a=a.toLowerCase();return md.value(a,b,c)||""})};
Z.queryCommandEnabled=function(a,b,c){x(Z.G,"Calling EN.setup before using commands is required");return Da(function(){a=a.toLowerCase();return md.enabled(a,b,c)||!1})};ea("EN.setup",Z.c);ea("EN.cleanup",Z.q);ea("EN.execCommand",Z.execCommand);ea("EN.queryCommandState",Z.queryCommandState);ea("EN.queryCommandValue",Z.queryCommandValue);ea("EN.queryCommandEnabled",Z.queryCommandEnabled);ea("EN.registerModule",function(a){x(B(a),"Expecting a dictionary of {name:,setup:} at least.");sd.push(a);Qa("module",a)});
ea("EN.registerCommand",function(a){x(a&&u(a.name),'Command requires at least a {"name":...}!',a);md.lf({name:a.name,enabled:a.enabled||D,action:a.action||null,value:a.value||null,state:a.state||null,pa:a.groups||null,Aa:a.forceGroup||null})});ea("EN.getLastBuildNumber",function(){return window.CE_VERSION_INFO.lastBuildNumber});ea("EN.getLastCommitHash",function(){return window.CE_VERSION_INFO.lastCommitHash});ea("EN.getLastCommitDate",function(){return window.CE_VERSION_INFO.lastCommitDate});var jf,kf;
(function(){function a(a){z(d.querySelectorAll("embed"),function(b){var c=J("div");E(c,"en-print");switch(b.getAttribute("type")){case "evernote/x-pdf":E(c,"pdf");c.textContent=a.pdf_file;break;case "evernote/x-attachment":var d=b.getAttribute("id");null!=d&&d.match(/.*en-media:audio.*/)?(E(c,"audio"),c.textContent=a.audio_file):(E(c,"generic-attachment"),c.textContent=a.generic_file);break;default:v.warn("Found <embed> with unknown type! "+b),E(c,"generic-attachment"),c.textContent=a.generic_file}tb(b,c)});
z(d.querySelectorAll("object"),function(a){var b=J("div");E(b,"en-print");mb(a,"en-todo")&&E(b,"checkbox");mb(a,"en-todo-checked")&&E(b,"checked");tb(a,b)})}function b(){var a=J("br");E(a,"en-print");d.appendChild(a)}function c(a,b){for(var c=J("table"),h,m,k=0;4>k;k++){h=J("tr");c.appendChild(h);for(var l=0;2>l;l++)m=J("td"),h.appendChild(m)}c.setAttribute("id","header-table");E(c,"en-print");d.appendChild(c);h=[[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"]];var p=c.querySelectorAll("td");z(h,function(b){if(null!=a[b[2]]){p[b[0]].innerHTML="";var c=J("span");E(c,"header-table-label");c.textContent=b[1];var d=J("span");E(d,"header-table-text");d.textContent=" "+a[b[2]];p[b[0]].appendChild(c);p[b[0]].appendChild(d)}})}var d=null;jf=function(g,e){null!=d&&(v.warn("Multiple unnecessary calls to setup print."),kf());for(var f=0;f<document.body.childNodes.length;f++)G(document.body.childNodes[f])&&
Yb(document.body.childNodes[f],!1);d=J("div");d.setAttribute("id","print-container");E(d,"en-print");f=document.querySelector("#container");f.parentNode.insertBefore(d,f);var h=A(e,{title:null,notebook:null,created:null,updated:null,deleted:null,author:null,location:null,tags:null,url:null}),f=A(g,{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!=e&&""!==e&&(c(h,f),h=J("hr"),d.appendChild(h),b());h=document.querySelector("#en-title");if(null!=h&&null!=h.textContent){var h=h.textContent,m=J("div");m.setAttribute("id","header-title");E(m,"en-print");m.textContent=h;d.appendChild(m);b()}h=document.querySelector("#en-note");null==h&&(v.warn("Could not find note!"),h=null);null!=h&&null!=d||v.error("Couldnt find note body or print container!");d.innerHTML+=h.innerHTML;a(f);ed("printReady",{module:"print"})};kf=function(){null==d?v.warn("Print module teardown called while it was off!"):
(F(d),d=null)}})();ea("EN.enablePrint",jf);ea("EN.disablePrint",kf); }).call(window); window.enLoadState = 'didLoad'; }
catch(ex) { window.enLoadState = "Exception: " + ex.toString() + '\n' + ex.stack + ''; }

