/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 *
 * Version: 5.0.11 (2019-07-04)
 */
!function(j){"use strict";var i=function(){},q=function(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(r.apply(null,e))}},$=function(e){return function(){return e}},W=function(e){return e};function d(r){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.concat(e);return r.apply(null,n)}}var e,t,n,r,o,s=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},l=$(!1),a=$(!0),u=l,c=a,f=function(){return h},h=(r={fold:function(e,t){return e()},is:u,isSome:u,isNone:c,getOr:n=function(e){return e},getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:n,orThunk:t,map:f,ap:f,each:function(){},bind:f,flatten:f,exists:u,forall:c,filter:f,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:$("none()")},Object.freeze&&Object.freeze(r),r),m=function(n){var e=function(){return n},t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:c,isNone:u,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return m(e(n))},ap:function(e){return e.fold(f,function(e){return m(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(n)?o:h},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(u,function(e){return t(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},T={some:m,none:f,from:function(e){return null===e||e===undefined?h:m(e)}},g=function(t){return function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},K=g("string"),x=g("object"),p=g("array"),v=g("null"),y=g("boolean"),b=g("function"),C=g("number"),w=Array.prototype.slice,z=(o=Array.prototype.indexOf)===undefined?function(e,t){return B(e,t)}:function(e,t){return o.call(e,t)},N=function(e,t){return-1<z(e,t)},E=function(e,t){return D(e,t).isSome()},X=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o,e)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){t(e[n],n,e)}},Y=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},S=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r,e)&&n.push(i)}return n},k=function(e,t,n){return function(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n,e)}(e,function(e){n=t(n,e)}),n},M=function(e,t,n){return A(e,function(e){n=t(n,e)}),n},R=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n,e))return T.some(o)}return T.none()},D=function(e,t){for(var n=0,r=e.length;n<r;n++){if(t(e[n],n,e))return T.some(n)}return T.none()},B=function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return n;return-1},O=Array.prototype.push,H=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!Array.prototype.isPrototypeOf(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);O.apply(t,e[n])}return t}(X(e,t))},_=function(e,t){for(var n=0,r=e.length;n<r;++n){if(!0!==t(e[n],n,e))return!1}return!0},L=function(e,t){return S(e,function(e){return!N(t,e)})},P=function(e){return 0===e.length?T.none():T.some(e[0])},V=function(e){return 0===e.length?T.none():T.some(e[e.length-1])},I=b(Array.from)?Array.from:function(e){return w.call(e)},G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var F,U,J,Q,Z,ee,te,ne,re,oe,ie,ae,ue="undefined"!=typeof j.window?j.window:Function("return this;")(),se=function(e,t){return function(e,t){for(var n=t!==undefined&&null!==t?t:ue,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},le={getOrDie:function(e,t){var n=se(e,t);if(n===undefined||null===n)throw e+" not available on this browser";return n}},ce=function(){return le.getOrDie("URL")},fe=function(e){return ce().createObjectURL(e)},de=function(e){ce().revokeObjectURL(e)},he=j.navigator,me=he.userAgent,ge=function(e){return"matchMedia"in j.window&&j.matchMedia(e).matches};ne=/Android/.test(me),U=(U=!(F=/WebKit/.test(me))&&/MSIE/gi.test(me)&&/Explorer/gi.test(he.appName))&&/MSIE (\w+)\./.exec(me)[1],J=-1!==me.indexOf("Trident/")&&(-1!==me.indexOf("rv:")||-1!==he.appName.indexOf("Netscape"))&&11,Q=-1!==me.indexOf("Edge/")&&!U&&!J&&12,U=U||J||Q,Z=!F&&!J&&/Gecko/.test(me),ee=-1!==me.indexOf("Mac"),te=/(iPad|iPhone)/.test(me),re="FormData"in j.window&&"FileReader"in j.window&&"URL"in j.window&&!!fe,oe=ge("only screen and (max-device-width: 480px)")&&(ne||te),ie=ge("only screen and (min-width: 800px)")&&(ne||te),ae=-1!==me.indexOf("Windows Phone"),Q&&(F=!1);var pe,ve,ye,be,Ce,we,xe,ze,Ne,Ee,Se,ke,Te,Ae,Me,Re,De,Be,Oe,He={opera:!1,webkit:F,ie:U,gecko:Z,mac:ee,iOS:te,android:ne,contentEditable:!te||re||534<=parseInt(me.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==U,range:j.window.getSelection&&"Range"in j.window,documentMode:U&&!Q?j.document.documentMode||7:10,fileApi:re,ceFalse:!1===U||8<U,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!1===U||11<U,desktop:!oe&&!ie,windowsPhone:ae},_e=window.Promise?window.Promise:function(){function r(e,t){return function(){e.apply(t,arguments)}}var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,r(o,this),r(u,this))},t=i.immediateFn||"function"==typeof j.setImmediate&&j.setImmediate||function(e){j.setTimeout(e,1)};function a(r){var o=this;null!==this._state?t(function(){var e=o._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(o._value)}catch(n){return void r.reject(n)}r.resolve(t)}else(o._state?r.resolve:r.reject)(o._value)}):this._deferreds.push(r)}function o(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void c(r(t,e),r(o,this),r(u,this))}this._state=!0,this._value=e,s.call(this)}catch(n){u.call(this,n)}}function u(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;e<t;e++)a.call(this,this._deferreds[e]);this._deferreds=null}function l(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function c(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}return i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(n,r){var o=this;return new i(function(e,t){a.call(o,new l(n,r,e,t))})},i.all=function(){var s=Array.prototype.slice.call(1===arguments.length&&e(arguments[0])?arguments[0]:arguments);return new i(function(o,i){if(0===s.length)return o([]);var a=s.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},i)}s[t]=e,0==--a&&o(s)}catch(r){i(r)}}for(var e=0;e<s.length;e++)u(e,s[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i}(),Le=function(e,t){return"number"!=typeof t&&(t=0),j.setTimeout(e,t)},Pe=function(e,t){return"number"!=typeof t&&(t=1),j.setInterval(e,t)},Ve=function(n,r){var o,e;return(e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];j.clearTimeout(o),o=Le(function(){n.apply(this,e)},r)}).stop=function(){j.clearTimeout(o)},e},Ie={requestAnimationFrame:function(e,t){pe?pe.then(e):pe=new _e(function(e){t||(t=j.document.body),function(e,t){var n,r=j.window.requestAnimationFrame,o=["ms","moz","webkit"];for(n=0;n<o.length&&!r;n++)r=j.window[o[n]+"RequestAnimationFrame"];r||(r=function(e){j.window.setTimeout(e,0)}),r(e,t)}(e,t)}).then(e)},setTimeout:Le,setInterval:Pe,setEditorTimeout:function(e,t,n){return Le(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r;return r=Pe(function(){e.removed?j.clearInterval(r):t()},n)},debounce:Ve,throttle:Ve,clearInterval:function(e){return j.clearInterval(e)},clearTimeout:function(e){return j.clearTimeout(e)}},Fe=/^(?:mouse|contextmenu)|click/,Ue={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},je=function(){return!1},qe=function(){return!0},$e=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},We=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Ke=function(e,t){var n,r,o=t||{};for(n in e)Ue[n]||(o[n]=e[n]);if(o.target||(o.target=o.srcElement||j.document),He.experimentalShadowDom&&(o.target=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&0<n.length)return n[0]}return t}(e,o.target)),e&&Fe.test(e.type)&&e.pageX===undefined&&e.clientX!==undefined){var i=o.target.ownerDocument||j.document,a=i.documentElement,u=i.body;o.pageX=e.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=e.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=qe,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=qe,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},!(o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=qe,o.stopPropagation()})==((r=o).isDefaultPrevented===qe||r.isDefaultPrevented===je)&&(o.isDefaultPrevented=je,o.isPropagationStopped=je,o.isImmediatePropagationStopped=je),"undefined"==typeof o.metaKey&&(o.metaKey=!1),o},Xe=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){We(e,"DOMContentLoaded",a),We(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))},u=function(){i()&&(We(r,"readystatechange",u),a())},s=function(){try{r.documentElement.doScroll("left")}catch(e){return void Ie.setTimeout(s)}a()};!r.addEventListener||He.ie&&He.ie<11?($e(r,"readystatechange",u),r.documentElement.doScroll&&e.self===e.top&&s()):i()?a():$e(e,"DOMContentLoaded",a),$e(e,"load",a)}},Ye=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in j.document.documentElement,this.hasFocusIn="onfocusin"in j.document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,u,s,l,c,f=this,d=j.window,h=function(e){f.executeHandlers(Ke(e||d.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;var m=t.split(" ");for(a=m.length;a--;)l=h,s=c=!1,"DOMContentLoaded"===(u=m[a])&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,Ke({type:u})):(f.hasMouseEnterLeave||(s=f.mouseEnterLeave[u])&&(l=function(e){var t,n;if(t=e.currentTarget,(n=e.relatedTarget)&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=Ke(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))}),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(c=!0,s="focusin"===u?"focus":"blur",l=function(e){(e=Ke(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),(i=f.events[o][u])?"ready"===u&&f.domLoaded?n(Ke({type:u})):i.push({func:n,scope:r}):(f.events[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=c,i.nativeHandler=l,"ready"===u?Xe(e,l,f):$e(e,s||u,l,c)));return e=i=0,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,u,s;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando]){if(s=this.events[r],t){var l=t.split(" ");for(i=l.length;i--;)if(o=s[u=l[i]]){if(n)for(a=o.length;a--;)if(o[a].func===n){var c=o.nativeHandler,f=o.fakeName,d=o.capture;(o=o.slice(0,a).concat(o.slice(a+1))).nativeHandler=c,o.fakeName=f,o.capture=d,s[u]=o}n&&0!==o.length||(delete s[u],We(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in s)o=s[u],We(e,o.fakeName||u,o.nativeHandler,o.capture);s={}}for(u in s)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=Ke(null,n);for(o.type=t,o.target=e;(r=e[this.expando])&&this.executeHandlers(o,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!o.isPropagationStopped(););return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[t];if(n=a&&a[e.type])for(r=0,o=n.length;r<o;r++)if((i=n[r])&&!1===i.func.call(i.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return},e.Event=new e,e}(),Ge="sizzle"+-new Date,Je=j.window.document,Qe=0,Ze=0,et=Dt(),tt=Dt(),nt=Dt(),rt=function(e,t){return e===t&&(ke=!0),0},ot=typeof undefined,it={}.hasOwnProperty,at=[],ut=at.pop,st=at.push,lt=at.push,ct=at.slice,ft=at.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},dt="[\\x20\\t\\r\\n\\f]",ht="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",mt="\\["+dt+"*("+ht+")(?:"+dt+"*([*^$|!~]?=)"+dt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ht+"))|)"+dt+"*\\]",gt=":("+ht+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+mt+")*)|.*)\\)|)",pt=new RegExp("^"+dt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+dt+"+$","g"),vt=new RegExp("^"+dt+"*,"+dt+"*"),yt=new RegExp("^"+dt+"*([>+~]|"+dt+")"+dt+"*"),bt=new RegExp("="+dt+"*([^\\]'\"]*?)"+dt+"*\\]","g"),Ct=new RegExp(gt),wt=new RegExp("^"+ht+"$"),xt={ID:new RegExp("^#("+ht+")"),CLASS:new RegExp("^\\.("+ht+")"),TAG:new RegExp("^("+ht+"|[*])"),ATTR:new RegExp("^"+mt),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+dt+"*(even|odd|(([+-]|)(\\d*)n|)"+dt+"*(?:([+-]|)"+dt+"*(\\d+)|))"+dt+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+dt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+dt+"*((?:-\\d)?\\d*)"+dt+"*\\)|)(?=[^-]|$)","i")},zt=/^(?:input|select|textarea|button)$/i,Nt=/^h\d$/i,Et=/^[^{]+\{\s*\[native \w/,St=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,kt=/[+~]/,Tt=/'|\\/g,At=new RegExp("\\\\([\\da-f]{1,6}"+dt+"?|("+dt+")|.)","ig"),Mt=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{lt.apply(at=ct.call(Je.childNodes),Je.childNodes),at[Je.childNodes.length].nodeType}catch(eE){lt={apply:at.length?function(e,t){st.apply(e,ct.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var Rt=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h;if((t?t.ownerDocument||t:Je)!==Ae&&Te(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||Ae).nodeType)&&9!==u)return[];if(Re&&!r){if(o=St.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&Oe(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return lt.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&ye.getElementsByClassName)return lt.apply(n,t.getElementsByClassName(a)),n}if(ye.qsa&&(!De||!De.test(e))){if(f=c=Ge,d=t,h=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(l=xe(e),(c=t.getAttribute("id"))?f=c.replace(Tt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=l.length;s--;)l[s]=f+It(l[s]);d=kt.test(e)&&Pt(t.parentNode)||t,h=l.join(",")}if(h)try{return lt.apply(n,d.querySelectorAll(h)),n}catch(m){}finally{c||t.removeAttribute("id")}}}return Ne(e.replace(pt,"$1"),t,n,r)};function Dt(){var n=[];return function r(e,t){return n.push(e+" ")>be.cacheLength&&delete r[n.shift()],r[e+" "]=t}}function Bt(e){return e[Ge]=!0,e}function Ot(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function Ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function _t(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function Lt(a){return Bt(function(i){return i=+i,Bt(function(e,t){for(var n,r=a([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function Pt(e){return e&&typeof e.getElementsByTagName!==ot&&e}for(ve in ye=Rt.support={},we=Rt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Te=Rt.setDocument=function(e){var t,s=e?e.ownerDocument||e:Je,n=s.defaultView;return s!==Ae&&9===s.nodeType&&s.documentElement?(Me=(Ae=s).documentElement,Re=!we(s),n&&n!==function r(e){try{return e.top}catch(t){}return null}(n)&&(n.addEventListener?n.addEventListener("unload",function(){Te()},!1):n.attachEvent&&n.attachEvent("onunload",function(){Te()})),ye.attributes=!0,ye.getElementsByTagName=!0,ye.getElementsByClassName=Et.test(s.getElementsByClassName),ye.getById=!0,be.find.ID=function(e,t){if(typeof t.getElementById!==ot&&Re){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},be.filter.ID=function(e){var t=e.replace(At,Mt);return function(e){return e.getAttribute("id")===t}},be.find.TAG=ye.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==ot)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},be.find.CLASS=ye.getElementsByClassName&&function(e,t){if(Re)return t.getElementsByClassName(e)},Be=[],De=[],ye.disconnectedMatch=!0,De=De.length&&new RegExp(De.join("|")),Be=Be.length&&new RegExp(Be.join("|")),t=Et.test(Me.compareDocumentPosition),Oe=t||Et.test(Me.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},rt=t?function(e,t){if(e===t)return ke=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ye.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===Je&&Oe(Je,e)?-1:t===s||t.ownerDocument===Je&&Oe(Je,t)?1:Se?ft.call(Se,e)-ft.call(Se,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ke=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===s?-1:t===s?1:o?-1:i?1:Se?ft.call(Se,e)-ft.call(Se,t):0;if(o===i)return Ot(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?Ot(a[r],u[r]):a[r]===Je?-1:u[r]===Je?1:0},s):Ae},Rt.matches=function(e,t){return Rt(e,null,null,t)},Rt.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Ae&&Te(e),t=t.replace(bt,"='$1']"),ye.matchesSelector&&Re&&(!Be||!Be.test(t))&&(!De||!De.test(t)))try{var n=(void 0).call(e,t);if(n||ye.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(eE){}return 0<Rt(t,Ae,null,[e]).length},Rt.contains=function(e,t){return(e.ownerDocument||e)!==Ae&&Te(e),Oe(e,t)},Rt.attr=function(e,t){(e.ownerDocument||e)!==Ae&&Te(e);var n=be.attrHandle[t.toLowerCase()],r=n&&it.call(be.attrHandle,t.toLowerCase())?n(e,t,!Re):undefined;return r!==undefined?r:ye.attributes||!Re?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Rt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Rt.uniqueSort=function(e){var t,n=[],r=0,o=0;if(ke=!ye.detectDuplicates,Se=!ye.sortStable&&e.slice(0),e.sort(rt),ke){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return Se=null,e},Ce=Rt.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Ce(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=Ce(t);return n},(be=Rt.selectors={cacheLength:50,createPseudo:Bt,match:xt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(At,Mt),e[3]=(e[3]||e[4]||e[5]||"").replace(At,Mt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Rt.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Rt.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return xt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ct.test(n)&&(t=xe(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(At,Mt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=et[e+" "];return t||(t=new RegExp("(^|"+dt+")"+e+"("+dt+"|$)"))&&et(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==ot&&e.getAttribute("class")||"")})},ATTR:function(n,r,o){return function(e){var t=Rt.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===o:"!="===r?t!==o:"^="===r?o&&0===t.indexOf(o):"*="===r?o&&-1<t.indexOf(o):"$="===r?o&&t.slice(-o.length)===o:"~="===r?-1<(" "+t+" ").indexOf(o):"|="===r&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,e,t,m,g){var p="nth"!==h.slice(0,3),v="last"!==h.slice(-4),y="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,a,u,s,l=p!==v?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y;if(c){if(p){for(;l;){for(i=e;i=i[l];)if(y?i.nodeName.toLowerCase()===f:1===i.nodeType)return!1;s=l="only"===h&&!s&&"nextSibling"}return!0}if(s=[v?c.firstChild:c.lastChild],v&&d){for(u=(r=(o=c[Ge]||(c[Ge]={}))[h]||[])[0]===Qe&&r[1],a=r[0]===Qe&&r[2],i=u&&c.childNodes[u];i=++u&&i&&i[l]||(a=u=0)||s.pop();)if(1===i.nodeType&&++a&&i===e){o[h]=[Qe,u,a];break}}else if(d&&(r=(e[Ge]||(e[Ge]={}))[h])&&r[0]===Qe)a=r[1];else for(;(i=++u&&i&&i[l]||(a=u=0)||s.pop())&&((y?i.nodeName.toLowerCase()!==f:1!==i.nodeType)||!++a||(d&&((i[Ge]||(i[Ge]={}))[h]=[Qe,a]),i!==e)););return(a-=g)===m||a%m==0&&0<=a/m}}},PSEUDO:function(e,i){var t,a=be.pseudos[e]||be.setFilters[e.toLowerCase()]||Rt.error("unsupported pseudo: "+e);return a[Ge]?a(i):1<a.length?(t=[e,e,"",i],be.setFilters.hasOwnProperty(e.toLowerCase())?Bt(function(e,t){for(var n,r=a(e,i),o=r.length;o--;)e[n=ft.call(e,r[o])]=!(t[n]=r[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Bt(function(e){var r=[],o=[],u=ze(e.replace(pt,"$1"));return u[Ge]?Bt(function(e,t,n,r){for(var o,i=u(e,null,r,[]),a=e.length;a--;)(o=i[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return r[0]=e,u(r,null,n,o),!o.pop()}}),has:Bt(function(t){return function(e){return 0<Rt(t,e).length}}),contains:Bt(function(t){return t=t.replace(At,Mt),function(e){return-1<(e.textContent||e.innerText||Ce(e)).indexOf(t)}}),lang:Bt(function(n){return wt.test(n||"")||Rt.error("unsupported lang: "+n),n=n.replace(At,Mt).toLowerCase(),function(e){var t;do{if(t=Re?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=j.window.location&&j.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Me},focus:function(e){return e===Ae.activeElement&&(!Ae.hasFocus||Ae.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!be.pseudos.empty(e)},header:function(e){return Nt.test(e.nodeName)},input:function(e){return zt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Lt(function(){return[0]}),last:Lt(function(e,t){return[t-1]}),eq:Lt(function(e,t,n){return[n<0?n+t:n]}),even:Lt(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Lt(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Lt(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:Lt(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=be.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})be.pseudos[ve]=Ht(ve);for(ve in{submit:!0,reset:!0})be.pseudos[ve]=_t(ve);function Vt(){}function It(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ft(a,e,t){var u=e.dir,s=t&&"parentNode"===u,l=Ze++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||s)return a(e,t,n)}:function(e,t,n){var r,o,i=[Qe,l];if(n){for(;e=e[u];)if((1===e.nodeType||s)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||s){if((r=(o=e[Ge]||(e[Ge]={}))[u])&&r[0]===Qe&&r[1]===l)return i[2]=r[2];if((o[u]=i)[2]=a(e,t,n))return!0}}}function Ut(o){return 1<o.length?function(e,t,n){for(var r=o.length;r--;)if(!o[r](e,t,n))return!1;return!0}:o[0]}function jt(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,l=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(u)));return a}function qt(m,g,p,v,y,e){return v&&!v[Ge]&&(v=qt(v)),y&&!y[Ge]&&(y=qt(y,e)),Bt(function(e,t,n,r){var o,i,a,u=[],s=[],l=t.length,c=e||function h(e,t,n){for(var r=0,o=t.length;r<o;r++)Rt(e,t[r],n);return n}(g||"*",n.nodeType?[n]:n,[]),f=!m||!e&&g?c:jt(c,u,m,n,r),d=p?y||(e?m:l||v)?[]:t:f;if(p&&p(f,d,n,r),v)for(o=jt(d,s),v(o,[],n,r),i=o.length;i--;)(a=o[i])&&(d[s[i]]=!(f[s[i]]=a));if(e){if(y||m){if(y){for(o=[],i=d.length;i--;)(a=d[i])&&o.push(f[i]=a);y(null,d=[],o,r)}for(i=d.length;i--;)(a=d[i])&&-1<(o=y?ft.call(e,a):u[i])&&(e[o]=!(t[o]=a))}}else d=jt(d===t?d.splice(l,d.length):d),y?y(null,t,d,r):lt.apply(t,d)})}function $t(e){for(var r,t,n,o=e.length,i=be.relative[e[0].type],a=i||be.relative[" "],u=i?1:0,s=Ft(function(e){return e===r},a,!0),l=Ft(function(e){return-1<ft.call(r,e)},a,!0),c=[function(e,t,n){return!i&&(n||t!==Ee)||((r=t).nodeType?s(e,t,n):l(e,t,n))}];u<o;u++)if(t=be.relative[e[u].type])c=[Ft(Ut(c),t)];else{if((t=be.filter[e[u].type].apply(null,e[u].matches))[Ge]){for(n=++u;n<o&&!be.relative[e[n].type];n++);return qt(1<u&&Ut(c),1<u&&It(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(pt,"$1"),t,u<n&&$t(e.slice(u,n)),n<o&&$t(e=e.slice(n)),n<o&&It(e))}c.push(t)}return Ut(c)}Vt.prototype=be.filters=be.pseudos,be.setFilters=new Vt,xe=Rt.tokenize=function(e,t){var n,r,o,i,a,u,s,l=tt[e+" "];if(l)return t?0:l.slice(0);for(a=e,u=[],s=be.preFilter;a;){for(i in n&&!(r=vt.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=yt.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(pt," ")}),a=a.slice(n.length)),be.filter)be.filter.hasOwnProperty(i)&&(!(r=xt[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?Rt.error(e):tt(e,u).slice(0)},ze=Rt.compile=function(e,t){var n,r=[],o=[],i=nt[e+" "];if(!i){for(t||(t=xe(e)),n=t.length;n--;)(i=$t(t[n]))[Ge]?r.push(i):o.push(i);(i=nt(e,function a(p,v){var y=0<v.length,b=0<p.length,e=function(e,t,n,r,o){var i,a,u,s=0,l="0",c=e&&[],f=[],d=Ee,h=e||b&&be.find.TAG("*",o),m=Qe+=null==d?1:Math.random()||.1,g=h.length;for(o&&(Ee=t!==Ae&&t);l!==g&&null!=(i=h[l]);l++){if(b&&i){for(a=0;u=p[a++];)if(u(i,t,n)){r.push(i);break}o&&(Qe=m)}y&&((i=!u&&i)&&s--,e&&c.push(i))}if(s+=l,y&&l!==s){for(a=0;u=v[a++];)u(c,f,t,n);if(e){if(0<s)for(;l--;)c[l]||f[l]||(f[l]=ut.call(r));f=jt(f)}lt.apply(r,f),o&&!e&&0<f.length&&1<s+v.length&&Rt.uniqueSort(r)}return o&&(Qe=m,Ee=d),c};return y?Bt(e):e}(o,r))).selector=e}return i},Ne=Rt.select=function(e,t,n,r){var o,i,a,u,s,l="function"==typeof e&&e,c=!r&&xe(e=l.selector||e);if(n=n||[],1===c.length){if(2<(i=c[0]=c[0].slice(0)).length&&"ID"===(a=i[0]).type&&ye.getById&&9===t.nodeType&&Re&&be.relative[i[1].type]){if(!(t=(be.find.ID(a.matches[0].replace(At,Mt),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=xt.needsContext.test(e)?0:i.length;o--&&(a=i[o],!be.relative[u=a.type]);)if((s=be.find[u])&&(r=s(a.matches[0].replace(At,Mt),kt.test(i[0].type)&&Pt(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&It(i)))return lt.apply(n,r),n;break}}return(l||ze(e,c))(r,t,!Re,n,kt.test(e)&&Pt(t.parentNode)||t),n},ye.sortStable=Ge.split("").sort(rt).join("")===Ge,ye.detectDuplicates=!!ke,Te(),ye.sortDetached=!0;var Wt=Array.isArray,Kt=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,e.length!==undefined){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},Xt=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Yt={isArray:Wt,toArray:function(e){var t,n,r=e;if(!Wt(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:Kt,map:function(n,r){var o=[];return Kt(n,function(e,t){o.push(r(e,t,n))}),o},filter:function(n,r){var o=[];return Kt(n,function(e,t){r&&!r(e,t,n)||o.push(e)}),o},indexOf:function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},reduce:function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},findIndex:Xt,find:function(e,t,n){var r=Xt(e,t,n);return-1!==r?e[r]:undefined},last:function(e){return e[e.length-1]}},Gt=/^\s*|\s*$/g,Jt=function(e){return null===e||e===undefined?"":(""+e).replace(Gt,"")},Qt=function(e,t){return t?!("array"!==t||!Yt.isArray(e))||typeof e===t:e!==undefined},Zt=function(e,n,r,o){o=o||this,e&&(r&&(e=e[r]),Yt.each(e,function(e,t){if(!1===n.call(o,e,t,r))return!1;Zt(e,n,r,o)}))},en={trim:Jt,isArray:Yt.isArray,is:Qt,toArray:Yt.toArray,makeMap:function(e,t,n){var r;for(t=t||",","string"==typeof(e=e||[])&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:Yt.each,map:Yt.map,grep:Yt.filter,inArray:Yt.indexOf,hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u,s=arguments;for(n=1,r=s.length;n<r;n++)for(o in t=s[n])t.hasOwnProperty(o)&&(u=t[o])!==undefined&&(e[o]=u);return e},create:function(e,t,n){var r,o,i,a,u,s=this,l=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],!(o=s.createNS(e[3].replace(/\.\w+$/,""),n))[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},l=1),o[i]=t[i],s.extend(o[i].prototype,t),e[5]&&(r=s.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=l?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],s.each(r,function(e,t){o[i].prototype[t]=r[t]}),s.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),s.each(t["static"],function(e,t){o[i][t]=e})}},walk:Zt,createNS:function(e,t){var n,r;for(t=t||j.window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||j.window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Qt(e,"array")?e:Yt.map(e.split(t||","),Jt)},_addCacheSuffix:function(e){var t=He.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},tn=j.document,nn=Array.prototype.push,rn=Array.prototype.slice,on=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,an=Ye.Event,un=en.makeMap("children,contents,next,prev"),sn=function(e){return void 0!==e},ln=function(e){return"string"==typeof e},cn=function(e,t){var n,r,o;for(o=(t=t||tn).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},fn=function(e,t,n,r){var o;if(ln(t))t=cn(t,En(e[0]));else if(t.length&&!t.nodeType){if(t=Bn.makeArray(t),r)for(o=t.length-1;0<=o;o--)fn(e,t[o],n,r);else for(o=0;o<t.length;o++)fn(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},dn=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},hn=function(e,t,n){var r,o;return t=Bn(t)[0],e.each(function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)}),e},mn=en.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),gn=en.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),pn={"for":"htmlFor","class":"className",readonly:"readOnly"},vn={"float":"cssFloat"},yn={},bn={},Cn=function(e,t){return new Bn.fn.init(e,t)},wn=/^\s*|\s*$/g,xn=function(e){return null===e||e===undefined?"":(""+e).replace(wn,"")},zn=function(e,t){var n,r,o,i;if(e)if((n=e.length)===undefined){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n&&(i=e[o],!1!==t.call(i,o,i));o++);return e},Nn=function(e,n){var r=[];return zn(e,function(e,t){n(t,e)&&r.push(t)}),r},En=function(e){return e?9===e.nodeType?e:e.ownerDocument:tn};Cn.fn=Cn.prototype={constructor:Cn,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Bn(e).attr(t);o.context=t=j.document}if(ln(e)){if(!(n="<"===(o.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:on.exec(e)))return Bn(t).find(e);if(n[1])for(r=cn(e,En(t)).firstChild;r;)nn.call(o,r),r=r.nextSibling;else{if(!(r=En(t).getElementById(n[2])))return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return en.toArray(this)},add:function(e,t){var n,r,o=this;if(ln(e))return o.add(Bn(e));if(!1!==t)for(n=Bn.unique(o.toArray().concat(Bn.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else nn.apply(o,Bn.makeArray(e));return o},attr:function(t,n){var e,r=this;if("object"==typeof t)zn(t,function(e,t){r.attr(e,t)});else{if(!sn(n)){if(r[0]&&1===r[0].nodeType){if((e=yn[t])&&e.get)return e.get(r[0],t);if(gn[t])return r.prop(t)?t:undefined;null===(n=r[0].getAttribute(t,2))&&(n=undefined)}return n}this.each(function(){var e;if(1===this.nodeType){if((e=yn[t])&&e.set)return void e.set(this,n);null===n?this.removeAttribute(t,2):this.setAttribute(t,n,2)}})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=pn[e]||e))zn(e,function(e,t){n.prop(e,t)});else{if(!sn(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(n,r){var e,o,i=this,t=function(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})},a=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})};if("object"==typeof n)zn(n,function(e,t){i.css(e,t)});else if(sn(r))n=t(n),"number"!=typeof r||mn[n]||(r=r.toString()+"px"),i.each(function(){var e=this.style;if((o=bn[n])&&o.set)o.set(this,r);else{try{this.style[vn[n]||n]=r}catch(t){}null!==r&&""!==r||(e.removeProperty?e.removeProperty(a(n)):e.removeAttribute(n))}});else{if(e=i[0],(o=bn[n])&&o.get)return o.get(e);if(!e.ownerDocument.defaultView)return e.currentStyle?e.currentStyle[t(n)]:"";try{return e.ownerDocument.defaultView.getComputedStyle(e,null).getPropertyValue(a(n))}catch(u){return undefined}}return i},remove:function(){for(var e,t=this.length;t--;)e=this[t],an.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t,n=this;if(sn(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(r){Bn(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(sn(e)){for(t=n.length;t--;)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return fn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return fn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?fn(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?fn(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return Bn(e).append(this),this},prependTo:function(e){return Bn(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return hn(this,e)},wrapAll:function(e){return hn(this,e,!0)},wrapInner:function(e){return this.each(function(){Bn(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){Bn(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),Bn(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(o,i){var e=this;return"string"!=typeof o||(-1!==o.indexOf(" ")?zn(o.split(" "),function(){e.toggleClass(this,i)}):e.each(function(e,t){var n,r;(r=dn(t,o))!==i&&(n=t.className,r?t.className=xn((" "+n+" ").replace(" "+o+" "," ")):t.className+=n?" "+o:o)})),e},hasClass:function(e){return dn(this[0],e)},each:function(e){return zn(this,e)},on:function(e,t){return this.each(function(){an.bind(this,e,t)})},off:function(e,t){return this.each(function(){an.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?an.fire(this,e.type,e):an.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Bn(rn.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Bn.find(e,this[t],r);return Bn(r)},filter:function(n){return Bn("function"==typeof n?Nn(this.toArray(),function(e,t){return n(t,e)}):Bn.filter(n,this.toArray()))},closest:function(n){var r=[];return n instanceof Bn&&(n=n[0]),this.each(function(e,t){for(;t;){if("string"==typeof n&&Bn(t).is(n)){r.push(t);break}if(t===n){r.push(t);break}t=t.parentNode}}),Bn(r)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(o=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:nn,sort:Array.prototype.sort,splice:Array.prototype.splice},en.extend(Cn,{extend:en.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:en.toArray(e);var t},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:en.isArray,each:zn,trim:xn,grep:Nn,find:Rt,expr:Rt.selectors,unique:Rt.uniqueSort,text:Rt.getText,contains:Rt.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Bn.find.matchesSelector(t[0],e)?[t[0]]:[]:Bn.find.matches(e,t)}});var Sn=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Bn&&(n=n[0]);o&&9!==o.nodeType;){if(n!==undefined){if(o===n)break;if("string"==typeof n&&Bn(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},kn=function(e,t,n,r){var o=[];for(r instanceof Bn&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(r!==undefined){if(e===r)break;if("string"==typeof r&&Bn(e).is(r))break}o.push(e)}return o},Tn=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};zn({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Sn(e,"parentNode")},next:function(e){return Tn(e,"nextSibling",1)},prev:function(e){return Tn(e,"previousSibling",1)},children:function(e){return kn(e.firstChild,"nextSibling",1)},contents:function(e){return en.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(r,o){Cn.fn[r]=function(t){var n=[];this.each(function(){var e=o.call(n,this,t,n);e&&(Bn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(un[r]||(n=Bn.unique(n)),0===r.indexOf("parents")&&(n=n.reverse()));var e=Bn(n);return t?e.filter(t):e}}),zn({parentsUntil:function(e,t){return Sn(e,"parentNode",t)},nextUntil:function(e,t){return kn(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return kn(e,"previousSibling",1,t).slice(1)}},function(o,i){Cn.fn[o]=function(t,e){var n=[];this.each(function(){var e=i.call(n,this,t,n);e&&(Bn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(n=Bn.unique(n),0!==o.indexOf("parents")&&"prevUntil"!==o||(n=n.reverse()));var r=Bn(n);return e?r.filter(e):r}}),Cn.fn.is=function(e){return!!e&&0<this.filter(e).length},Cn.fn.init.prototype=Cn.fn,Cn.overrideDefaults=function(n){var r,o=function(e,t){return r=r||n(),0===arguments.length&&(e=r.element),t||(t=r.context),new o.fn.init(e,t)};return Bn.extend(o,this),o};var An=function(n,r,e){zn(e,function(e,t){n[e]=n[e]||{},n[e][r]=t})};He.ie&&He.ie<8&&(An(yn,"get",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?undefined:t},size:function(e){var t=e.size;return 20===t?undefined:t},"class":function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?undefined:t}}),An(yn,"set",{"class":function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),He.ie&&He.ie<9&&(vn["float"]="styleFloat",An(bn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),Cn.attrHooks=yn,Cn.cssHooks=bn;var Mn,Rn,Dn,Bn=Cn,On=function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return undefined}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return _n(r(1),r(2))},Hn=function(){return _n(0,0)},_n=function(e,t){return{major:e,minor:t}},Ln={nu:_n,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?Hn():On(e,n)},unknown:Hn},Pn="Firefox",Vn=function(e,t){return function(){return t===e}},In=function(e){var t=e.current;return{current:t,version:e.version,isEdge:Vn("Edge",t),isChrome:Vn("Chrome",t),isIE:Vn("IE",t),isOpera:Vn("Opera",t),isFirefox:Vn(Pn,t),isSafari:Vn("Safari",t)}},Fn={unknown:function(){return In({current:undefined,version:Ln.unknown()})},nu:In,edge:$("Edge"),chrome:$("Chrome"),ie:$("IE"),opera:$("Opera"),firefox:$(Pn),safari:$("Safari")},Un="Windows",jn="Android",qn="Solaris",$n="FreeBSD",Wn=function(e,t){return function(){return t===e}},Kn=function(e){var t=e.current;return{current:t,version:e.version,isWindows:Wn(Un,t),isiOS:Wn("iOS",t),isAndroid:Wn(jn,t),isOSX:Wn("OSX",t),isLinux:Wn("Linux",t),isSolaris:Wn(qn,t),isFreeBSD:Wn($n,t)}},Xn={unknown:function(){return Kn({current:undefined,version:Ln.unknown()})},nu:Kn,windows:$(Un),ios:$("iOS"),android:$(jn),linux:$("Linux"),osx:$("OSX"),solaris:$(qn),freebsd:$($n)},Yn=function(e,t){var n=String(t).toLowerCase();return R(e,function(e){return e.search(n)})},Gn=function(e,n){return Yn(e,n).map(function(e){var t=Ln.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Jn=function(e,n){return Yn(e,n).map(function(e){var t=Ln.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Qn=function(e,t){return-1!==e.indexOf(t)},Zn=function(e,t){return n=e,o=0,""===(r=t)||!(n.length<r.length)&&n.substr(o,o+r.length)===r;var n,r,o},er=function(e){return e.replace(/^\s+|\s+$/g,"")},tr=function(e){return e.replace(/\s+$/g,"")},nr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,rr=function(t){return function(e){return Qn(e,t)}},or=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Qn(e,"edge/")&&Qn(e,"chrome")&&Qn(e,"safari")&&Qn(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,nr],search:function(e){return Qn(e,"chrome")&&!Qn(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Qn(e,"msie")||Qn(e,"trident")}},{name:"Opera",versionRegexes:[nr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:rr("firefox")},{name:"Safari",versionRegexes:[nr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Qn(e,"safari")||Qn(e,"mobile/"))&&Qn(e,"applewebkit")}}],ir=[{name:"Windows",search:rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Qn(e,"iphone")||Qn(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:rr("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:rr("linux"),versionRegexes:[]},{name:"Solaris",search:rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:rr("freebsd"),versionRegexes:[]}],ar={browsers:$(or),oses:$(ir)},ur=function(e){var t,n,r,o,i,a,u,s,l,c,f,d=ar.browsers(),h=ar.oses(),m=Gn(d,e).fold(Fn.unknown,Fn.nu),g=Jn(h,e).fold(Xn.unknown,Xn.nu);return{browser:m,os:g,deviceType:(n=m,r=e,o=(t=g).isiOS()&&!0===/ipad/i.test(r),i=t.isiOS()&&!o,a=t.isAndroid()&&3===t.version.major,u=t.isAndroid()&&4===t.version.major,s=o||a||u&&!0===/mobile/i.test(r),l=t.isiOS()||t.isAndroid(),c=l&&!s,f=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),{isiPad:$(o),isiPhone:$(i),isTablet:$(s),isPhone:$(c),isTouch:$(l),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:$(f)})}},sr={detect:(Dn=!(Mn=function(){var e=j.navigator.userAgent;return ur(e)}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dn||(Dn=!0,Rn=Mn.apply(null,e)),Rn})},lr=function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:$(e)}},cr={fromHtml:function(e,t){var n=(t||j.document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw j.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return lr(n.childNodes[0])},fromTag:function(e,t){var n=(t||j.document).createElement(e);return lr(n)},fromText:function(e,t){var n=(t||j.document).createTextNode(e);return lr(n)},fromDom:lr,fromPoint:function(e,t,n){var r=e.dom();return T.from(r.elementFromPoint(t,n)).map(lr)}},fr=(j.Node.ATTRIBUTE_NODE,j.Node.CDATA_SECTION_NODE,j.Node.COMMENT_NODE,j.Node.DOCUMENT_NODE),dr=(j.Node.DOCUMENT_TYPE_NODE,j.Node.DOCUMENT_FRAGMENT_NODE,j.Node.ELEMENT_NODE),hr=j.Node.TEXT_NODE,mr=(j.Node.PROCESSING_INSTRUCTION_NODE,j.Node.ENTITY_REFERENCE_NODE,j.Node.ENTITY_NODE,j.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),gr=function(t){return function(e){return e.dom().nodeType===t}},pr=gr(dr),vr=gr(hr),yr=gr(fr),br=Object.keys,Cr=Object.hasOwnProperty,wr=function(e,t){for(var n=br(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i,e)}},xr=function(e,r){return zr(e,function(e,t,n){return{k:t,v:r(e,t,n)}})},zr=function(r,o){var i={};return wr(r,function(e,t){var n=o(e,t,r);i[n.k]=n.v}),i},Nr=function(e,n){var r={},o={};return wr(e,function(e,t){(n(e,t)?r:o)[t]=e}),{t:r,f:o}},Er=function(e,t){return Sr(e,t)?T.from(e[t]):T.none()},Sr=function(e,t){return Cr.call(e,t)},kr=function(e){return e.style!==undefined&&b(e.style.getPropertyValue)},Tr=function(e){var t=vr(e)?e.dom().parentNode:e.dom();return t!==undefined&&null!==t&&t.ownerDocument.body.contains(t)},Ar=function(e,t,n){if(!(K(n)||y(n)||C(n)))throw j.console.error("Invalid call to Attr.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Mr=function(e,t,n){Ar(e.dom(),t,n)},Rr=function(e,t){var n=e.dom();wr(t,function(e,t){Ar(n,t,e)})},Dr=function(e,t){var n=e.dom().getAttribute(t);return null===n?undefined:n},Br=function(e,t){e.dom().removeAttribute(t)},Or=function(e,t){var n=e.dom(),r=j.window.getComputedStyle(n).getPropertyValue(t),o=""!==r||Tr(e)?r:Hr(n,t);return null===o?undefined:o},Hr=function(e,t){return kr(e)?e.style.getPropertyValue(t):""},_r=function(e,t){var n=e.dom(),r=Hr(n,t);return T.from(r).filter(function(e){return 0<e.length})},Lr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(t.length!==n.length)throw new Error('Wrong number of arguments to struct. Expected "['+t.length+']", got '+n.length+" arguments");var r={};return A(t,function(e,t){r[e]=$(n[t])}),r}},Pr=function(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},o=t(e);(o=o.bind(r)).isSome(););return n},Vr=function(){return le.getOrDie("Node")},Ir=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},Fr=function(e,t){return Ir(e,t,Vr().DOCUMENT_POSITION_CONTAINED_BY)},Ur=dr,jr=fr,qr=function(e,t){var n=e.dom();if(n.nodeType!==Ur)return!1;if(n.matches!==undefined)return n.matches(t);if(n.msMatchesSelector!==undefined)return n.msMatchesSelector(t);if(n.webkitMatchesSelector!==undefined)return n.webkitMatchesSelector(t);if(n.mozMatchesSelector!==undefined)return n.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},$r=function(e){return e.nodeType!==Ur&&e.nodeType!==jr||0===e.childElementCount},Wr=function(e,t){return e.dom()===t.dom()},Kr=sr.detect().browser.isIE()?function(e,t){return Fr(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Xr=function(e){return cr.fromDom(e.dom().ownerDocument)},Yr=function(e){var t=e.dom().ownerDocument.defaultView;return cr.fromDom(t)},Gr=function(e){var t=e.dom();return T.from(t.parentNode).map(cr.fromDom)},Jr=function(e){var t=e.dom();return T.from(t.previousSibling).map(cr.fromDom)},Qr=function(e){var t=e.dom();return T.from(t.nextSibling).map(cr.fromDom)},Zr=function(e){return t=Pr(e,Jr),(n=w.call(t,0)).reverse(),n;var t,n},eo=function(e){return Pr(e,Qr)},to=function(e){var t=e.dom();return X(t.childNodes,cr.fromDom)},no=function(e,t){var n=e.dom().childNodes;return T.from(n[t]).map(cr.fromDom)},ro=function(e){return no(e,0)},oo=function(e){return no(e,e.dom().childNodes.length-1)},io=(Lr("element","offset"),sr.detect().browser),ao=function(e){return R(e,pr)},uo=function(e,t){return e.children&&N(e.children,t)},so={getPos:function(e,t,n){var r,o,i,a=0,u=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Or(cr.fromDom(e),"position"))return{x:a=(o=t.getBoundingClientRect()).left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,y:u=o.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType&&!uo(r,n);)a+=r.offsetLeft||0,u+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType&&!uo(r,n);)a-=r.scrollLeft||0,u-=r.scrollTop||0,r=r.parentNode;u+=(i=cr.fromDom(t),io.isFirefox()&&"table"===mr(i)?ao(to(i)).filter(function(e){return"caption"===mr(e)}).bind(function(o){return ao(eo(o)).map(function(e){var t=e.dom().offsetTop,n=o.dom().offsetTop,r=o.dom().offsetHeight;return t<=n?-r:0})}).getOr(0):0)}return{x:a,y:u}}},lo=function(e){var n=T.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){A(e,a)},a=function(t){n.each(function(e){j.setTimeout(function(){t(e)},0)})};return e(function(e){n=T.some(e),i(t),t=[]}),{get:r,map:function(n){return lo(function(t){r(function(e){t(n(e))})})},isReady:o}},co={nu:lo,pure:function(t){return lo(function(e){e(t)})}},fo=function(t){var e=function(e){var r;t((r=e,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this;j.setTimeout(function(){r.apply(n,e)},0)}))},n=function(){return co.nu(e)};return{map:function(r){return fo(function(n){e(function(e){var t=r(e);n(t)})})},bind:function(n){return fo(function(t){e(function(e){n(e).get(t)})})},anonBind:function(n){return fo(function(t){e(function(e){n.get(t)})})},toLazy:n,toCached:function(){var t=null;return fo(function(e){null===t&&(t=n()),t.get(e)})},get:e}},ho={nu:fo,pure:function(t){return fo(function(e){e(t)})}},mo=function(a,e){return e(function(r){var o=[],i=0;0===a.length?r([]):A(a,function(e,t){var n;e.get((n=t,function(e){o[n]=e,++i>=a.length&&r(o)}))})})},go=function(e){return mo(e,ho.nu)},po=function(n){return{is:function(e){return n===e},isValue:a,isError:l,getOr:$(n),getOrThunk:$(n),getOrDie:$(n),or:function(e){return po(n)},orThunk:function(e){return po(n)},fold:function(e,t){return t(n)},map:function(e){return po(e(n))},mapError:function(e){return po(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return T.some(n)}}},vo=function(n){return{is:l,isValue:l,isError:a,getOr:W,getOrThunk:function(e){return e()},getOrDie:function(){return e=String(n),function(){throw new Error(e)}();var e},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return vo(n)},mapError:function(e){return vo(e(n))},each:i,bind:function(e){return vo(n)},exists:l,forall:a,toOption:T.none}},yo={value:po,error:vo,fromOption:function(e,t){return e.fold(function(){return vo(t)},po)}};var bo,Co,wo,xo=function(t){return function(e){return!!e&&e.nodeType===t}},zo=xo(1),No=function(e){var n=e.map(function(e){return e.toLowerCase()});return function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();return N(n,t)}return!1}},Eo=function(t){return function(e){if(zo(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},So=No(["textarea","input"]),ko=xo(3),To=xo(8),Ao=xo(9),Mo=xo(11),Ro=No(["br"]),Do=Eo("true"),Bo=Eo("false"),Oo={isText:ko,isElement:zo,isComment:To,isDocument:Ao,isDocumentFragment:Mo,isBr:Ro,isContentEditableTrue:Do,isContentEditableFalse:Bo,isRestrictedNode:function(e){return!!e&&!Object.getPrototypeOf(e)},matchNodeNames:No,hasPropValue:function(t,n){return function(e){return zo(e)&&e[t]===n}},hasAttribute:function(t,e){return function(e){return zo(e)&&e.hasAttribute(t)}},hasAttributeValue:function(t,n){return function(e){return zo(e)&&e.getAttribute(t)===n}},matchStyleValues:function(r,e){var o=e.toLowerCase().split(" ");return function(e){var t;if(zo(e))for(t=0;t<o.length;t++){var n=e.ownerDocument.defaultView.getComputedStyle(e,null);if((n?n.getPropertyValue(r):null)===o[t])return!0}return!1}},isBogus:function(e){return zo(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return zo(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return zo(e)&&"TABLE"===e.tagName},isTextareaOrInput:So},Ho=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==this.rootNode)return i}},e}(),_o=function(t){var n;return function(e){return(n=n||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(t,$(!0))).hasOwnProperty(mr(e))}},Lo=_o(["h1","h2","h3","h4","h5","h6"]),Po=_o(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),Vo=function(e){return pr(e)&&!Po(e)},Io=function(e){return pr(e)&&"br"===mr(e)},Fo=_o(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),Uo=_o(["ul","ol","dl"]),jo=_o(["li","dd","dt"]),qo=_o(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),$o=_o(["thead","tbody","tfoot"]),Wo=_o(["td","th"]),Ko=_o(["pre","script","textarea","style"]),Xo=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Yo=function(e,t){var n,r=t.childNodes;if(!Oo.isElement(t)||!Xo(t)){for(n=r.length-1;0<=n;n--)Yo(e,r[n]);if(!1===Oo.isDocument(t)){if(Oo.isText(t)&&0<t.nodeValue.length){var o=en.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||0<o)return;if(0===o&&(a=(i=t).previousSibling&&"SPAN"===i.previousSibling.nodeName,u=i.nextSibling&&"SPAN"===i.nextSibling.nodeName,a&&u))return}else if(Oo.isElement(t)&&(1===(r=t.childNodes).length&&Xo(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||qo(cr.fromDom(t))))return;e.remove(t)}var i,a,u;return t}},Go={trimNode:Yo},Jo=en.makeMap,Qo=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ei=/[<>&\"\']/g,ti=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ni={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};Co={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},wo={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var ri=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Co[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};bo=ri("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var oi=function(e,t){return e.replace(t?Qo:Zo,function(e){return Co[e]||e})},ii=function(e,t){return e.replace(t?Qo:Zo,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Co[e]||"&#"+e.charCodeAt(0)+";"})},ai=function(e,t,n){return n=n||bo,e.replace(t?Qo:Zo,function(e){return Co[e]||n[e]||e})},ui={encodeRaw:oi,encodeAllRaw:function(e){return(""+e).replace(ei,function(e){return Co[e]||e})},encodeNumeric:ii,encodeNamed:ai,getEncodeFunc:function(e,t){var n=ri(t)||bo,r=Jo(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Qo:Zo,function(e){return Co[e]!==undefined?Co[e]:n[e]!==undefined?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return ai(e,t,n)}:ai:r.numeric?ii:oi},decode:function(e){return e.replace(ti,function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ni[t]||String.fromCharCode(t):wo[e]||bo[e]||(n=e,(r=cr.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},si={},li={},ci=en.makeMap,fi=en.each,di=en.extend,hi=en.explode,mi=en.inArray,gi=function(e,t){return(e=en.trim(e))?e.split(t||" "):[]},pi=function(e){var u,t,n,r,o,i,s={},a=function(e,t,n){var r,o,i,a=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};for(t=t||"","string"==typeof(n=n||[])&&(n=gi(n)),r=(e=gi(e)).length;r--;)i={attributes:a(o=gi([u,t].join(" "))),attributesOrder:o,children:a(n,li)},s[e[r]]=i},l=function(e,t){var n,r,o,i;for(n=(e=gi(e)).length,t=gi(t);n--;)for(r=s[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return si[e]?si[e]:(u="id accesskey class dir lang style tabindex title role",t="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",n="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(u+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",t+=" article aside details dialog figure main header footer hgroup section nav",n+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(u+=" xml:lang",n=[n,i="acronym applet basefont big font strike tt"].join(" "),fi(gi(i),function(e){a(e,"",n)}),t=[t,o="center dir isindex noframes"].join(" "),r=[t,n].join(" "),fi(gi(o),function(e){a(e,"",r)})),r=r||[t,n].join(" "),a("html","manifest","head body"),a("head","","base command link meta noscript script style title"),a("title hr noscript br"),a("base","href target"),a("link","href rel media hreflang type sizes hreflang"),a("meta","name http-equiv content charset"),a("style","media type scoped"),a("script","src async defer type charset"),a("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),a("address dt dd div caption","",r),a("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",n),a("blockquote","cite",r),a("ol","reversed start type","li"),a("ul","","li"),a("li","value",r),a("dl","","dt dd"),a("a","href target rel media hreflang type",n),a("q","cite",n),a("ins del","cite datetime",r),a("img","src sizes srcset alt usemap ismap width height"),a("iframe","src name width height",r),a("embed","src type width height"),a("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),a("param","name value"),a("map","name",[r,"area"].join(" ")),a("area","alt coords shape href target rel media hreflang type"),a("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),a("colgroup","span","col"),a("col","span"),a("tbody thead tfoot","","tr"),a("tr","","td th"),a("td","colspan rowspan headers",r),a("th","colspan rowspan headers scope abbr",r),a("form","accept-charset action autocomplete enctype method name novalidate target",r),a("fieldset","disabled form name",[r,"legend"].join(" ")),a("label","form for",n),a("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),a("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?r:n),a("select","disabled form multiple name required size","option optgroup"),a("optgroup","disabled label","option"),a("option","disabled label selected value"),a("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),a("menu","type label",[r,"li"].join(" ")),a("noscript","",r),"html4"!==e&&(a("wbr"),a("ruby","",[n,"rt rp"].join(" ")),a("figcaption","",r),a("mark rt rp summary bdi","",n),a("canvas","width height",r),a("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),a("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),a("picture","","img source"),a("source","src srcset type media sizes"),a("track","kind src srclang label default"),a("datalist","",[n,"option"].join(" ")),a("article section nav aside main header footer","",r),a("hgroup","","h1 h2 h3 h4 h5 h6"),a("figure","",[r,"figcaption"].join(" ")),a("time","datetime",n),a("dialog","open",r),a("command","type label icon disabled checked radiogroup command"),a("output","for form name",n),a("progress","value max",n),a("meter","value min max low high optimum",n),a("details","open",[r,"summary"].join(" ")),a("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select","onchange"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("iframe","sandbox seamless allowfullscreen")),fi(gi("a form meter progress dfn"),function(e){s[e]&&delete s[e].children[e]}),delete s.caption.children.table,delete s.script,si[e]=s)},vi=function(e,n){var r;return e&&(r={},"string"==typeof e&&(e={"*":e}),fi(e,function(e,t){r[t]=r[t.toUpperCase()]="map"===n?ci(e,/[, ]/):hi(e,/[, ]/)})),r};function yi(i){var e,t,n,r,o,a,u,s,l,c,f,d,h,z={},m={},N=[],g={},p={},v=function(e,t,n){var r=i[e];return r?r=ci(r,/[, ]/,ci(r.toUpperCase(),/[, ]/)):(r=si[e])||(r=ci(t," ",ci(t.toUpperCase()," ")),r=di(r,n),si[e]=r),r};n=pi((i=i||{}).schema),!1===i.verify_html&&(i.valid_elements="*[*]"),e=vi(i.valid_styles),t=vi(i.invalid_styles,"map"),s=vi(i.valid_classes,"map"),r=v("whitespace_elements","pre script noscript style textarea video audio iframe object code"),o=v("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=v("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=v("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),c=v("non_empty_elements","td th iframe video audio object script pre code",a),f=v("move_caret_before_on_enter_elements","table",c),d=v("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),l=v("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),h=v("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),fi((i.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){p[e]=new RegExp("</"+e+"[^>]*>","gi")});var E=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},y=function(e){var t,n,r,o,i,a,u,s,l,c,f,d,h,m,g,p,v,y,b,C=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,w=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,x=/[*?+]/;if(e)for(e=gi(e,","),z["@"]&&(p=z["@"].attributes,v=z["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=C.exec(e[t])){if(m=i[1],l=i[2],g=i[3],s=i[5],a={attributes:d={},attributesOrder:h=[]},"#"===m&&(a.paddEmpty=!0),"-"===m&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),p){for(y in p)d[y]=p[y];h.push.apply(h,v)}if(s)for(r=0,o=(s=gi(s,"|")).length;r<o;r++)if(i=w.exec(s[r])){if(u={},f=i[1],c=i[2].replace(/[\\:]:/g,":"),m=i[3],b=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(c),u.required=!0),"-"===f){delete d[c],h.splice(mi(h,c),1);continue}m&&("="===m&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:c,value:b}),u.defaultValue=b),":"===m&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:c,value:b}),u.forcedValue=b),"<"===m&&(u.validValues=ci(b,"?"))),x.test(c)?(a.attributePatterns=a.attributePatterns||[],u.pattern=E(c),a.attributePatterns.push(u)):(d[c]||h.push(c),d[c]=u)}p||"@"!==l||(p=d,v=h),g&&(a.outputName=l,z[g]=a),x.test(l)?(a.pattern=E(l),N.push(a)):z[l]=a}},b=function(e){z={},N=[],y(e),fi(n,function(e,t){m[t]=e.children})},C=function(e){var a=/^(~)?(.+)$/;e&&(si.text_block_elements=si.block_elements=null,fi(gi(e,","),function(e){var t=a.exec(e),n="~"===t[1],r=n?"span":"div",o=t[2];if(m[o]=m[r],g[o]=r,n||(l[o.toUpperCase()]={},l[o]={}),!z[o]){var i=z[r];delete(i=di({},i)).removeEmptyAttrs,delete i.removeEmpty,z[o]=i}fi(m,function(e,t){e[r]&&(m[t]=e=di({},m[t]),e[o]=e[r])})}))},w=function(e){var o=/^([+\-]?)(\w+)\[([^\]]+)\]$/;si[i.schema]=null,e&&fi(gi(e,","),function(e){var t,n,r=o.exec(e);r&&(n=r[1],t=n?m[r[2]]:m[r[2]]={"#comment":{}},t=m[r[2]],fi(gi(r[3],"|"),function(e){"-"===n?delete t[e]:t[e]={}}))})},x=function(e){var t,n=z[e];if(n)return n;for(t=N.length;t--;)if((n=N[t]).pattern.test(e))return n};i.valid_elements?b(i.valid_elements):(fi(n,function(e,t){z[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},m[t]=e.children}),"html5"!==i.schema&&fi(gi("strong/b em/i"),function(e){e=gi(e,"/"),z[e[1]].outputName=e[0]}),fi(gi("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){z[e]&&(z[e].removeEmpty=!0)}),fi(gi("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){z[e].paddEmpty=!0}),fi(gi("span"),function(e){z[e].removeEmptyAttrs=!0})),C(i.custom_elements),w(i.valid_children),y(i.extended_valid_elements),w("+ol[ul|ol],+ul[ul|ol]"),fi({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){z[t]&&(z[t].parentsRequired=gi(e))}),i.invalid_elements&&fi(hi(i.invalid_elements),function(e){z[e]&&delete z[e]}),x("span")||y("span[!data-mce-type|*]");return{children:m,elements:z,getValidStyles:function(){return e},getValidClasses:function(){return s},getBlockElements:function(){return l},getInvalidStyles:function(){return t},getShortEndedElements:function(){return a},getTextBlockElements:function(){return d},getTextInlineElements:function(){return h},getBoolAttrs:function(){return u},getElementRule:x,getSelfClosingElements:function(){return o},getNonEmptyElements:function(){return c},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return r},getSpecialElements:function(){return p},isValidChild:function(e,t){var n=m[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=x(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return g},addValidElements:y,setValidElements:b,addCustomElements:C,addValidChildren:w}}var bi,Ci=function(e,t,n,r){var o=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+o(t)+o(n)+o(r)},wi=function(b,e){var C,t,l,c,w=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,x=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,z=/\s*([^:]+):\s*([^;]+);?/g,N=/\s+$/,E={},S="\ufeff";for(b=b||{},e&&(l=e.getValidStyles(),c=e.getInvalidStyles()),t=("\\\" \\' \\; \\: ; : "+S).split(" "),C=0;C<t.length;C++)E[t[C]]=S+C,E[S+C]=t[C];return{toHex:function(e){return e.replace(w,Ci)},parse:function(e){var t,n,r,o,i,a,u,s,l={},c=b.url_converter,f=b.url_converter_scope||this,d=function(e,t,n){var r,o,i,a;if((r=l[e+"-top"+t])&&(o=l[e+"-right"+t])&&(i=l[e+"-bottom"+t])&&(a=l[e+"-left"+t])){var u=[r,o,i,a];for(C=u.length-1;C--&&u[C]===u[C+1];);-1<C&&n||(l[e+t]=-1===C?u[0]:u.join(" "),delete l[e+"-top"+t],delete l[e+"-right"+t],delete l[e+"-bottom"+t],delete l[e+"-left"+t])}},h=function(e){var t,n=l[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return l[e]=n[0],!0}},m=function(e){return o=!0,E[e]},g=function(e,t){return o&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return E[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},p=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},v=function(e){return e.replace(/\\[0-9a-f]+/gi,p)},y=function(e,t,n,r,o,i){if(o=o||i)return"'"+(o=g(o)).replace(/\'/g,"\\'")+"'";if(t=g(t||n||r),!b.allow_script_urls){var a=t.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(a))return"";if(!b.allow_svg_data_urls&&/^data:image\/svg/i.test(a))return""}return c&&(t=c.call(f,t,"style")),"url('"+t.replace(/\'/g,"\\'")+"')"};if(e){for(e=(e=e.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,m).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,m)});t=z.exec(e);)if(z.lastIndex=t.index+t[0].length,n=t[1].replace(N,"").toLowerCase(),r=t[2].replace(N,""),n&&r){if(n=v(n),r=v(r),-1!==n.indexOf(S)||-1!==n.indexOf('"'))continue;if(!b.allow_script_urls&&("behavior"===n||/expression\s*\(|\/\*|\*\//.test(r)))continue;"font-weight"===n&&"700"===r?r="bold":"color"!==n&&"background-color"!==n||(r=r.toLowerCase()),r=(r=r.replace(w,Ci)).replace(x,y),l[n]=o?g(r,!0):r}d("border","",!0),d("border","-width"),d("border","-color"),d("border","-style"),d("padding",""),d("margin",""),i="border",u="border-style",s="border-color",h(a="border-width")&&h(u)&&h(s)&&(l[i]=l[a]+" "+l[u]+" "+l[s],delete l[a],delete l[u],delete l[s]),"medium none"===l.border&&delete l.border,"none"===l["border-image"]&&delete l["border-image"]}return l},serialize:function(i,e){var t,n,r,o,a,u="",s=function(e){var t,n,r,o;if(t=l[e])for(n=0,r=t.length;n<r;n++)e=t[n],(o=i[e])&&(u+=(0<u.length?" ":"")+e+": "+o+";")};if(e&&l)s("*"),s(e);else for(t in i)!(n=i[t])||c&&(r=t,o=e,a=void 0,(a=c["*"])&&a[r]||(a=c[o])&&a[r])||(u+=(0<u.length?" ":"")+t+": "+n+";");return u}}},xi=en.each,zi=en.grep,Ni=He.ie,Ei=/^([a-z0-9],?)+$/i,Si=/^[ \t\r\n]*$/,ki=function(n,r,o){var i=r.keep_values,e={set:function(e,t,n){r.url_converter&&(t=r.url_converter.call(r.url_converter_scope||o(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},t={style:{set:function(e,t){null===t||"object"!=typeof t?(i&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return t=n.serialize(n.parse(t),e[0].nodeName)}}};return i&&(t.href=t.src=e),t},Ti=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Ai=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};function Mi(a,u){var s,l=this;void 0===u&&(u={});var r={},c=j.window,o={},t=0,e=function U(m,g){void 0===g&&(g={});var p,v=0,y={};p=g.maxLoadTime||5e3;var b=function(e){m.getElementsByTagName("head")[0].appendChild(e)},n=function(e,t,n){var o,r,i,a,u=function(e){a.status=e,a.passed=[],a.failed=[],o&&(o.onload=null,o.onerror=null,o=null)},s=function(){for(var e=a.passed,t=e.length;t--;)e[t]();u(2)},l=function(){for(var e=a.failed,t=e.length;t--;)e[t]();u(3)},c=function(e,t){e()||((new Date).getTime()-i<p?Ie.setTimeout(t):l())},f=function(){c(function(){for(var e,t,n=m.styleSheets,r=n.length;r--;)if((t=(e=n[r]).ownerNode?e.ownerNode:e.owningElement)&&t.id===o.id)return s(),!0},f)},d=function(){c(function(){try{var e=r.sheet.cssRules;return s(),!!e}catch(t){}},d)};if(e=en._addCacheSuffix(e),y[e]?a=y[e]:(a={passed:[],failed:[]},y[e]=a),t&&a.passed.push(t),n&&a.failed.push(n),1!==a.status)if(2!==a.status)if(3!==a.status){if(a.status=1,(o=m.createElement("link")).rel="stylesheet",o.type="text/css",o.id="u"+v++,o.async=!1,o.defer=!1,i=(new Date).getTime(),g.contentCssCors&&(o.crossOrigin="anonymous"),"onload"in o&&!((h=j.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(h[1],10)<536))o.onload=f,o.onerror=l;else{if(0<j.navigator.userAgent.indexOf("Firefox"))return(r=m.createElement("style")).textContent='@import "'+e+'"',d(),void b(r);f()}var h;b(o),o.href=e}else l();else s()},t=function(t){return ho.nu(function(e){n(t,q(e,$(yo.value(t))),q(e,$(yo.error(t))))})},o=function(e){return e.fold(W,W)};return{load:n,loadAll:function(e,n,r){go(X(e,t)).get(function(e){var t=Y(e,function(e){return e.isValue()});0<t.fail.length?r(t.fail.map(o)):n(t.pass.map(o))})}}}(a,{contentCssCors:u.contentCssCors}),f=[],d=u.schema?u.schema:yi({}),i=wi({url_converter:u.url_converter,url_converter_scope:u.url_converter_scope},u.schema),h=u.ownEvents?new Ye:Ye.Event,n=d.getBlockElements(),m=Bn.overrideDefaults(function(){return{context:a,element:F.getRoot()}}),g=function(e){if(e&&a&&"string"==typeof e){var t=a.getElementById(e);return t&&t.id!==e?a.getElementsByName(e)[1]:t}return e},p=function(e){return"string"==typeof e&&(e=g(e)),m(e)},v=function(e,t,n){var r,o,i=p(e);return i.length&&(o=(r=s[t])&&r.get?r.get(i,t):i.attr(t)),void 0===o&&(o=n||""),o},y=function(e){var t=g(e);return t?t.attributes:[]},b=function(e,t,n){var r,o;""===n&&(n=null);var i=p(e);r=i.attr(t),i.length&&((o=s[t])&&o.set?o.set(i,n,t):i.attr(t,n),r!==n&&u.onSetAttrib&&u.onSetAttrib({attrElm:i,attrName:t,attrValue:n}))},C=function(){return u.root_element||a.body},w=function(e,t){return so.getPos(a.body,g(e),t)},x=function(e,t,n){var r=p(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=He.ie&&He.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:undefined)},z=function(e){var t,n;return e=g(e),t=x(e,"width"),n=x(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},N=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Ei.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;0<=n;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<Rt(t,i[0].ownerDocument||i[0],null,i).length},E=function(e,t,n,r){var o,i=[],a=g(e);for(r=r===undefined,n=n||("BODY"!==C().nodeName?C().parentNode:null),en.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return N(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},S=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return N(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},k=function(e,n,r){var o,t="string"==typeof e?g(e):e;if(!t)return!1;if(en.isArray(t)&&(t.length||0===t.length))return o=[],xi(t,function(e,t){e&&("string"==typeof e&&(e=g(e)),o.push(n.call(r,e,t)))}),o;var i=r||l;return n.call(i,t)},T=function(e,t){p(e).each(function(e,n){xi(t,function(e,t){b(n,t,e)})})},A=function(e,r){var t=p(e);Ni?t.each(function(e,t){if(!1!==t.canHaveHTML){for(;t.firstChild;)t.removeChild(t.firstChild);try{t.innerHTML="<br>"+r,t.removeChild(t.firstChild)}catch(n){Bn("<div></div>").html("<br>"+r).contents().slice(1).appendTo(t)}return r}}):t.html(r)},M=function(e,n,r,o,i){return k(e,function(e){var t="string"==typeof n?a.createElement(n):n;return T(t,r),o&&("string"!=typeof o&&o.nodeType?t.appendChild(o):"string"==typeof o&&A(t,o)),i?t:e.appendChild(t)})},R=function(e,t,n){return M(a.createElement(e),e,t,n,!0)},D=ui.decode,B=ui.encodeAllRaw,O=function(e,t){var n=p(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),1<n.length?n.toArray():n[0]},H=function(e,t,n){p(e).toggleClass(t,n).each(function(){""===this.className&&Bn(this).attr("class",null)})},_=function(t,e,n){return k(e,function(e){return en.is(e,"array")&&(t=t.cloneNode(!0)),n&&xi(zi(e.childNodes),function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)})},L=function(){return a.createRange()},P=function(e,t,n,r){if(en.isArray(e)){for(var o=e.length,i=[];o--;)i[o]=P(e[o],t,n,r);return i}return!u.collect||e!==a&&e!==c||f.push([e,t,n,r]),h.bind(e,t,n,r||F)},V=function(e,t,n){var r;if(en.isArray(e)){r=e.length;for(var o=[];r--;)o[r]=V(e[r],t,n);return o}if(f&&(e===a||e===c))for(r=f.length;r--;){var i=f[r];e!==i[0]||t&&t!==i[1]||n&&n!==i[2]||h.unbind(i[0],i[1],i[2])}return h.unbind(e,t,n)},I=function(e){if(e&&Oo.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},F={doc:a,settings:u,win:c,files:o,stdMode:!0,boxModel:!0,styleSheetLoader:e,boundEvents:f,styles:i,schema:d,events:h,isBlock:function(e){if("string"==typeof e)return!!n[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!n[e.nodeName])}return!1},$:m,$$:p,root:null,clone:function(t,e){if(!Ni||1!==t.nodeType||e)return t.cloneNode(e);if(e)return null;var n=a.createElement(t.nodeName);return xi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),n},getRoot:C,getViewPort:function(e){var t=e||c,n=t.document.documentElement;return{x:t.pageXOffset||n.scrollLeft,y:t.pageYOffset||n.scrollTop,w:t.innerWidth||n.clientWidth,h:t.innerHeight||n.clientHeight}},getRect:function(e){var t,n;return e=g(e),t=w(e),n=z(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:z,getParent:function(e,t,n){var r=E(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:E,get:g,getNext:function(e,t){return S(e,t,"nextSibling")},getPrev:function(e,t){return S(e,t,"previousSibling")},select:function(e,t){return Rt(e,g(t)||u.root_element||a,[])},is:N,add:M,create:R,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+B(t[r])+'"');return void 0!==n?o+">"+n+"</"+e+">":o+" />"},createFragment:function(e){var t,n=a.createElement("div"),r=a.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r},remove:O,setStyle:function(e,t,n){var r=K(t)?p(e).css(t,n):p(e).css(t);u.update_styles&&Ti(i,r)},getStyle:x,setStyles:function(e,t){var n=p(e).css(t);u.update_styles&&Ti(i,n)},removeAllAttribs:function(e){return k(e,function(e){var t,n=e.attributes;for(t=n.length-1;0<=t;t--)e.removeAttributeNode(n.item(t))})},setAttrib:b,setAttribs:T,getAttrib:v,getPos:w,parseStyle:function(e){return i.parse(e)},serializeStyle:function(e,t){return i.serialize(e,t)},addStyle:function(e){var t,n;if(F!==Mi.DOM&&a===j.document){if(r[e])return;r[e]=!0}(n=a.getElementById("mceDefaultStyles"))||((n=a.createElement("style")).id="mceDefaultStyles",n.type="text/css",(t=a.getElementsByTagName("head")[0]).firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(a.createTextNode(e))},loadCSS:function(e){var n;F===Mi.DOM||a!==j.document?(e||(e=""),n=a.getElementsByTagName("head")[0],xi(e.split(","),function(e){var t;e=en._addCacheSuffix(e),o[e]||(o[e]=!0,t=R("link",G({rel:"stylesheet",type:"text/css",href:e},u.contentCssCors?{crossOrigin:"anonymous"}:{})),n.appendChild(t))})):Mi.DOM.loadCSS(e)},addClass:function(e,t){p(e).addClass(t)},removeClass:function(e,t){H(e,t,!1)},hasClass:function(e,t){return p(e).hasClass(t)},toggleClass:H,show:function(e){p(e).show()},hide:function(e){p(e).hide()},isHidden:function(e){return"none"===p(e).css("display")},uniqueId:function(e){return(e||"mce_")+t++},setHTML:A,getOuterHTML:function(e){var t="string"==typeof e?g(e):e;return Oo.isElement(t)?t.outerHTML:Bn("<div></div>").append(Bn(t).clone()).html()},setOuterHTML:function(e,t){p(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}O(Bn(this).html(t),!0)})},decode:D,encode:B,insertAfter:function(e,t){var r=g(t);return k(e,function(e){var t,n;return t=r.parentNode,(n=r.nextSibling)?t.insertBefore(e,n):t.appendChild(e),e})},replace:_,rename:function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=R(e),xi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),_(n,t,!0)),n||t},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return i.toHex(en.trim(e))},run:k,getAttribs:y,isEmpty:function(e,t){var n,r,o,i,a=0;if(e=e.firstChild){var u=new Ho(e,e.parentNode),s=d?d.getWhiteSpaceElements():{};t=t||(d?d.getNonEmptyElements():null);do{if(o=e.nodeType,Oo.isElement(e)){var l=e.getAttribute("data-mce-bogus");if(l){e=u.next("all"===l);continue}if(i=e.nodeName.toLowerCase(),t&&t[i]){if("br"!==i)return!1;a++,e=u.next();continue}for(n=(r=y(e)).length;n--;)if("name"===(i=r[n].nodeName)||"data-mce-bookmark"===i)return!1}if(8===o)return!1;if(3===o&&!Si.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&s[e.parentNode.nodeName]&&Si.test(e.nodeValue))return!1;e=u.next()}while(e)}return a<=1},createRng:L,nodeIndex:Ai,split:function(e,t,n){var r,o,i,a=L();if(e&&t)return a.setStart(e.parentNode,Ai(e)),a.setEnd(t.parentNode,Ai(t)),r=a.extractContents(),(a=L()).setStart(t.parentNode,Ai(t)+1),a.setEnd(e.parentNode,Ai(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(Go.trimNode(F,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Go.trimNode(F,o),e),O(e),n||t},bind:P,unbind:V,fire:function(e,t,n){return h.fire(e,t,n)},getContentEditable:I,getContentEditableParent:function(e){for(var t=C(),n=null;e&&e!==t&&null===(n=I(e));e=e.parentNode);return n},destroy:function(){if(f)for(var e=f.length;e--;){var t=f[e];h.unbind(t[0],t[1],t[2])}Rt.setDocument&&Rt.setDocument()},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}};return s=ki(i,u,function(){return F}),F}(bi=Mi||(Mi={})).DOM=bi(j.document),bi.nodeIndex=Ai;var Ri,Di=Mi,Bi=Di.DOM,Oi=en.each,Hi=en.grep,_i=function(){function e(){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0}return e.prototype.loadScript=function(e,t,n){var r,o,i=Bi;o=i.uniqueId(),(r=j.document.createElement("script")).id=o,r.type="text/javascript",r.src=en._addCacheSuffix(e),r.onload=function(){i.remove(o),r&&(r.onreadystatechange=r.onload=r=null),t()},r.onerror=function(){b(n)?n():"undefined"!=typeof j.console&&j.console.log&&j.console.log("Failed to load script: "+e)},(j.document.getElementsByTagName("head")[0]||j.document.body).appendChild(r)},e.prototype.isDone=function(e){return 2===this.states[e]},e.prototype.markDone=function(e){this.states[e]=2},e.prototype.add=function(e,t,n,r){this.states[e]===undefined&&(this.queue.push(e),this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(n,e,t,r){var o,i=this,a=[],u=function(t,e){Oi(i.scriptLoadedCallbacks[e],function(e){b(e[t])&&e[t].call(e.scope)}),i.scriptLoadedCallbacks[e]=undefined};i.queueLoadedCallbacks.push({success:e,failure:r,scope:t||this}),(o=function(){var e=Hi(n);if(n.length=0,Oi(e,function(e){2!==i.states[e]?3!==i.states[e]?1!==i.states[e]&&(i.states[e]=1,i.loading++,i.loadScript(e,function(){i.states[e]=2,i.loading--,u("success",e),o()},function(){i.states[e]=3,i.loading--,a.push(e),u("failure",e),o()})):u("failure",e):u("success",e)}),!i.loading){var t=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Oi(t,function(e){0===a.length?b(e.success)&&e.success.call(e.scope):b(e.failure)&&e.failure.call(e.scope,a)})}})()},e.ScriptLoader=new e,e}(),Li=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return Li(n())}}},Pi={},Vi=Li("en"),Ii={getData:function(){return xr(Pi,function(e){return G({},e)})},setCode:function(e){e&&Vi.set(e)},getCode:function(){return Vi.get()},add:function(e,t){var n=Pi[e];for(var r in n||(Pi[e]=n={}),t)n[r.toLowerCase()]=t[r]},translate:function(e){var t,n,r=Pi[Vi.get()]||{},o=function(e){return b(e)?Object.prototype.toString.call(e):i(e)?"":""+e},i=function(e){return""===e||null===e||e===undefined},a=function(e){var t=o(e),n=t.toLowerCase();return Sr(r,n)?o(r[n]):t},u=function(e){return e.replace(/{context:\w+}$/,"")},s=function(e){return e};if(i(e))return s("");if(x(t=e)&&Sr(t,"raw"))return s(o(e.raw));if(p(n=e)&&1<n.length){var l=e.slice(1);return s(u(a(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Sr(l,t)?o(l[t]):e})))}return s(u(a(e)))},isRtl:function(){return Er(Pi,Vi.get()).bind(function(e){return Er(e,"_dir")}).exists(function(e){return"rtl"===e})},hasCode:function(e){return Sr(Pi,e)}},Fi=en.each;function Ui(){var r=this,o=[],a={},u={},i=[],s=function(e){var t;return u[e]&&(t=u[e].dependencies),t||[]},l=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},c=function(e,n,t,r){var o=s(e);Fi(o,function(e){var t=l(n,e);f(t.resource,t,undefined,undefined)}),t&&(r?t.call(r):t.call(_i))},f=function(e,t,n,r,o){if(!a[e]){var i="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==i.indexOf("/")&&-1===i.indexOf("://")&&(i=Ui.baseURL+"/"+i),a[e]=i.substring(0,i.lastIndexOf("/")),u[e]?c(e,t,n,r):_i.ScriptLoader.add(i,function(){return c(e,t,n,r)},r,o)}};return{items:o,urls:a,lookup:u,_listeners:i,get:function(e){return u[e]?u[e].instance:undefined},dependencies:s,requireLangPack:function(e,t){var n=Ii.getCode();if(n&&!1!==Ui.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+n.substr(0,2)+","))n=n.substr(0,2);else if(-1===t.indexOf(","+n+","))return;_i.ScriptLoader.add(a[e]+"/langs/"+n+".js")}},add:function(t,e,n){o.push(e),u[t]={instance:e,dependencies:n};var r=Y(i,function(e){return e.name===t});return i=r.fail,Fi(r.pass,function(e){e.callback()}),e},remove:function(e){delete a[e],delete u[e]},createUrl:l,addComponents:function(e,t){var n=r.urls[e];Fi(t,function(e){_i.ScriptLoader.add(n+"/"+e)})},load:f,waitFor:function(e,t){u.hasOwnProperty(e)?t():i.push({name:e,callback:t})}}}(Ri=Ui||(Ui={})).PluginManager=Ri(),Ri.ThemeManager=Ri();var ji=Ui,qi=function(t,n){Gr(t).each(function(e){e.dom().insertBefore(n.dom(),t.dom())})},$i=function(e,t){Qr(e).fold(function(){Gr(e).each(function(e){Ki(e,t)})},function(e){qi(e,t)})},Wi=function(t,n){ro(t).fold(function(){Ki(t,n)},function(e){t.dom().insertBefore(n.dom(),e.dom())})},Ki=function(e,t){e.dom().appendChild(t.dom())},Xi=function(t,e){A(e,function(e){Ki(t,e)})},Yi=function(e){e.dom().textContent="",A(to(e),function(e){Gi(e)})},Gi=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Ji=function(e){var t,n=to(e);0<n.length&&(t=e,A(n,function(e){qi(t,e)})),Gi(e)},Qi=function(n,r){var o=null;return{cancel:function(){null!==o&&(j.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===o&&(o=j.setTimeout(function(){n.apply(null,e),o=null},r))}}},Zi=function(e,t){var n=Dr(e,t);return n===undefined||""===n?[]:n.split(" ")},ea=function(e){return e.dom().classList!==undefined},ta=function(e,t){return o=t,i=Zi(n=e,r="class").concat([o]),Mr(n,r,i.join(" ")),!0;var n,r,o,i},na=function(e,t){return o=t,0<(i=S(Zi(n=e,r="class"),function(e){return e!==o})).length?Mr(n,r,i.join(" ")):Br(n,r),!1;var n,r,o,i},ra=function(e,t){ea(e)?e.dom().classList.add(t):ta(e,t)},oa=function(e){0===(ea(e)?e.dom().classList:Zi(e,"class")).length&&Br(e,"class")},ia=function(e,t){return ea(e)&&e.dom().classList.contains(t)},aa=function(e,t){var n=[];return A(to(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(aa(e,t))}),n},ua=function(e,t){return n=t,o=(r=e)===undefined?j.document:r.dom(),$r(o)?[]:X(o.querySelectorAll(n),cr.fromDom);var n,r,o};function sa(e,t,n,r,o){return e(n,r)?T.some(n):b(o)&&o(n)?T.none():t(n,r,o)}var la,ca=function(e,t,n){for(var r=e.dom(),o=b(n)?n:$(!1);r.parentNode;){r=r.parentNode;var i=cr.fromDom(r);if(t(i))return T.some(i);if(o(i))break}return T.none()},fa=function(e,t,n){return sa(function(e){return t(e)},ca,e,t,n)},da=function(e,t,n){return ca(e,function(e){return qr(e,t)},n)},ha=function(e,t){return n=t,o=(r=e)===undefined?j.document:r.dom(),$r(o)?T.none():T.from(o.querySelector(n)).map(cr.fromDom);var n,r,o},ma=function(e,t,n){return sa(qr,da,e,t,n)},ga=$("mce-annotation"),pa=$("data-mce-annotation"),va=$("data-mce-annotation-uid"),ya=function(r,e){var t=r.selection.getRng(),n=cr.fromDom(t.startContainer),o=cr.fromDom(r.getBody()),i=e.fold(function(){return"."+ga()},function(e){return"["+pa()+'="'+e+'"]'}),a=no(n,t.startOffset).getOr(n),u=ma(a,i,function(e){return Wr(e,o)}),s=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?T.some(Dr(e,t)):T.none();var n,r};return u.bind(function(e){return s(e,""+va()).bind(function(n){return s(e,""+pa()).map(function(e){var t=ba(r,n);return{uid:n,name:e,elements:t}})})})},ba=function(e,t){var n=cr.fromDom(e.getBody());return ua(n,"["+va()+'="'+t+'"]')},Ca=function(i,e){var n,r,o,a=Li({}),l=function(e,t){u(e,function(e){return t(e),e})},u=function(e,t){var n=a.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:Li(T.none())});n[e]=r,a.set(n)},t=(n=function(){var e,t,n,r=a.get(),o=(e=br(r),(n=w.call(e,0)).sort(t),n);A(o,function(e){u(e,function(u){var s=u.previous.get();return ya(i,T.some(e)).fold(function(){var t;s.isSome()&&(l(t=e,function(e){A(e.listeners,function(e){return e(!1,t)})}),u.previous.set(T.none()))},function(e){var t,n,r,o=e.uid,i=e.name,a=e.elements;s.is(o)||(n=o,r=a,l(t=i,function(e){A(e.listeners,function(e){return e(!0,t,{uid:n,nodes:X(r,function(e){return e.dom()})})})}),u.previous.set(T.some(o)))}),{previous:u.previous,listeners:u.listeners}})})},r=30,o=null,{cancel:function(){null!==o&&(j.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==o&&j.clearTimeout(o),o=j.setTimeout(function(){n.apply(null,e),o=null},r)}});i.on("remove",function(){t.cancel()}),i.on("NodeChange",function(){t.throttle()});return{addListener:function(e,t){u(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},wa=function(e,n){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){A(e,function(t){var e;(e=t,T.from(e.attr(pa())).bind(n.lookup)).each(function(e){!1===e.persistent&&t.unwrap()})})})})},xa=0,za=function(e,t){return cr.fromDom(e.dom().cloneNode(t))},Na=function(e){return za(e,!1)},Ea=function(e){return za(e,!0)},Sa=function(e,t){var n,r,o=Xr(e).dom(),i=cr.fromDom(o.createDocumentFragment()),a=(n=t,(r=(o||j.document).createElement("div")).innerHTML=n,to(cr.fromDom(r)));Xi(i,a),Yi(e),Ki(e,i)},ka="\ufeff",Ta=function(e){return e===ka},Aa=ka,Ma=function(e){return e.replace(new RegExp(ka,"g"),"")},Ra=Oo.isElement,Da=Oo.isText,Ba=function(e){return Da(e)&&(e=e.parentNode),Ra(e)&&e.hasAttribute("data-mce-caret")},Oa=function(e){return Da(e)&&Ta(e.data)},Ha=function(e){return Ba(e)||Oa(e)},_a=function(e){return e.firstChild!==e.lastChild||!Oo.isBr(e.firstChild)},La=function(e){var t=e.container();return!(!e||!Oo.isText(t))&&(t.data.charAt(e.offset())===Aa||e.isAtStart()&&Oa(t.previousSibling))},Pa=function(e){var t=e.container();return!(!e||!Oo.isText(t))&&(t.data.charAt(e.offset()-1)===Aa||e.isAtEnd()&&Oa(t.nextSibling))},Va=function(e,t,n){var r,o,i;return(r=t.ownerDocument.createElement(e)).setAttribute("data-mce-caret",n?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(((i=j.document.createElement("br")).setAttribute("data-mce-bogus","1"),i)),o=t.parentNode,n?o.insertBefore(r,t):t.nextSibling?o.insertBefore(r,t.nextSibling):o.appendChild(r),r},Ia=function(e){return Da(e)&&e.data[0]===Aa},Fa=function(e){return Da(e)&&e.data[e.data.length-1]===Aa},Ua=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],Oo.isBogus(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},ja=Oo.isContentEditableTrue,qa=Oo.isContentEditableFalse,$a=Oo.isBr,Wa=Oo.isText,Ka=Oo.matchNodeNames(["script","style","textarea"]),Xa=Oo.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),Ya=Oo.matchNodeNames(["table"]),Ga=Ha,Ja=function(e){return!Ga(e)&&(Wa(e)?!Ka(e.parentNode):Xa(e)||$a(e)||Ya(e)||Qa(e))},Qa=function(e){return!1===(t=e,Oo.isElement(t)&&"true"===t.getAttribute("unselectable"))&&qa(e);var t},Za=function(e,t){return Ja(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Qa(e))return!1;if(ja(e))return!0}return!0}(e,t)},eu=Math.round,tu=function(e){return e?{left:eu(e.left),top:eu(e.top),bottom:eu(e.bottom),right:eu(e.right),width:eu(e.width),height:eu(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},nu=function(e,t){return e=tu(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},ru=function(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2},ou=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&ru(t.top-e.bottom,e,t)},iu=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ru(t.bottom-e.top,e,t)},au=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},uu=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},su=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},lu=new RegExp("[\u0300-\u036f\u0483-\u0487\u0488-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962-\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a02\u0a3c\u0a41-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a82\u0abc\u0ac1-\u0ac5\u0ac7-\u0ac8\u0acd\u0ae2-\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62-\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c81\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d01\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62-\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039-\u103a\u103d-\u103e\u1058-\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193b\u1a17-\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abe\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80-\u1b81\u1ba2-\u1ba5\u1ba8-\u1ba9\u1bab-\u1bad\u1be6\u1be8-\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8-\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20dc\u20dd-\u20e0\u20e1\u20e2-\u20e4\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u302e-\u302f\u3099-\u309a\ua66f\ua670-\ua672\ua674-\ua67d\ua69e-\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua825-\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31-\uaa32\uaa35-\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaec-\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\uff9e-\uff9f]"),cu=function(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&lu.test(e)},fu=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!o.isSome())return T.none();n.push(o.getOrDie())}return T.some(t.apply(null,n))},du=[].slice,hu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=du.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},mu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=du.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},gu=Oo.isElement,pu=Ja,vu=Oo.matchStyleValues("display","block table"),yu=Oo.matchStyleValues("float","left right"),bu=hu(gu,pu,s(yu)),Cu=s(Oo.matchStyleValues("white-space","pre pre-line pre-wrap")),wu=Oo.isText,xu=Oo.isBr,zu=Di.nodeIndex,Nu=su,Eu=function(e){return"createRange"in e?e.createRange():Di.DOM.createRng()},Su=function(e){return e&&/[\r\n\t ]/.test(e)},ku=function(e){return!!e.setStart&&!!e.setEnd},Tu=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(Su(e.toString())&&Cu(n.parentNode)&&Oo.isText(n)&&(t=n.data,Su(t[r-1])||Su(t[r+1])))},Au=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Mu=function(e){var t,n,r,o,i,a,u,s;return t=0<(n=e.getClientRects()).length?tu(n[0]):tu(e.getBoundingClientRect()),!ku(e)&&xu(e)&&Au(t)?(i=(r=e).ownerDocument,a=Eu(i),u=i.createTextNode("\xa0"),(s=r.parentNode).insertBefore(u,r),a.setStart(u,0),a.setEnd(u,1),o=tu(a.getBoundingClientRect()),s.removeChild(u),o):Au(t)&&ku(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Oo.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Mu(i)}return null}(e):t},Ru=function(e,t){var n=nu(e,t);return n.width=1,n.right=n.left+1,n},Du=function(e){var t,n,r=[],o=function(e){var t,n;0!==e.height&&(0<r.length&&(t=e,n=r[r.length-1],t.left===n.left&&t.top===n.top&&t.bottom===n.bottom&&t.right===n.right)||r.push(e))},i=function(e,t){var n=Eu(e.ownerDocument);if(t<e.data.length){if(cu(e.data[t]))return r;if(cu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!Tu(n)))return o(Ru(Mu(n),!1)),r}0<t&&(n.setStart(e,t-1),n.setEnd(e,t),Tu(n)||o(Ru(Mu(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),Tu(n)||o(Ru(Mu(n),!0)))};if(wu(e.container()))return i(e.container(),e.offset()),r;if(gu(e.container()))if(e.isAtEnd())n=Nu(e.container(),e.offset()),wu(n)&&i(n,n.data.length),bu(n)&&!xu(n)&&o(Ru(Mu(n),!1));else{if(n=Nu(e.container(),e.offset()),wu(n)&&i(n,0),bu(n)&&e.isAtEnd())return o(Ru(Mu(n),!1)),r;t=Nu(e.container(),e.offset()-1),bu(t)&&!xu(t)&&(vu(t)||vu(n)||!bu(n))&&o(Ru(Mu(t),!1)),bu(n)&&o(Ru(Mu(n),!0))}return r};function Bu(t,n,e){var r=function(){return e||(e=Du(Bu(t,n))),e};return{container:$(t),offset:$(n),toRange:function(){var e;return(e=Eu(t.ownerDocument)).setStart(t,n),e.setEnd(t,n),e},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return wu(t),0===n},isAtEnd:function(){return wu(t)?n>=t.data.length:n>=t.childNodes.length},isEqual:function(e){return e&&t===e.container()&&n===e.offset()},getNode:function(e){return Nu(t,e?n-1:n)}}}(la=Bu||(Bu={})).fromRangeStart=function(e){return la(e.startContainer,e.startOffset)},la.fromRangeEnd=function(e){return la(e.endContainer,e.endOffset)},la.after=function(e){return la(e.parentNode,zu(e)+1)},la.before=function(e){return la(e.parentNode,zu(e))},la.isAbove=function(e,t){return fu([P(t.getClientRects()),V(e.getClientRects())],ou).getOr(!1)},la.isBelow=function(e,t){return fu([V(t.getClientRects()),P(e.getClientRects())],iu).getOr(!1)},la.isAtStart=function(e){return!!e&&e.isAtStart()},la.isAtEnd=function(e){return!!e&&e.isAtEnd()},la.isTextPosition=function(e){return!!e&&Oo.isText(e.container())},la.isElementPosition=function(e){return!1===la.isTextPosition(e)};var Ou,Hu,_u=Bu,Lu=Oo.isText,Pu=Oo.isBogus,Vu=Di.nodeIndex,Iu=function(e){var t=e.parentNode;return Pu(t)?Iu(t):t},Fu=function(e){return e?Yt.reduce(e.childNodes,function(e,t){return Pu(t)&&"BR"!==t.nodeName?e=e.concat(Fu(t)):e.push(t),e},[]):[]},Uu=function(t){return function(e){return t===e}},ju=function(e){var t,r,n,o;return(Lu(e)?"text()":e.nodeName.toLowerCase())+"["+(r=Fu(Iu(t=e)),n=Yt.findIndex(r,Uu(t),t),r=r.slice(0,n+1),o=Yt.reduce(r,function(e,t,n){return Lu(t)&&Lu(r[n-1])&&e++,e},0),r=Yt.filter(r,Oo.matchNodeNames([t.nodeName])),(n=Yt.findIndex(r,Uu(t),t))-o)+"]"},qu=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),Lu(n)?o=function(e,t){for(;(e=e.previousSibling)&&Lu(e);)t+=e.data.length;return t}(n,r):(r>=(i=n.childNodes).length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(ju(n)),a=function(e,t,n){var r=[];for(t=t.parentNode;!(t===e||n&&n(t));t=t.parentNode)r.push(t);return r}(e,n),a=Yt.filter(a,s(Oo.isBogus)),(u=u.concat(Yt.map(a,function(e){return ju(e)}))).reverse().join("/")+","+o},$u=function(e,t){var n,r,o;return t?(t=(n=t.split(","))[0].split("/"),o=1<n.length?n[1]:"before",(r=Yt.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),n=e,r=t[1],o=parseInt(t[2],10),i=Fu(n),i=Yt.filter(i,function(e,t){return!Lu(e)||!Lu(i[t-1])}),(i=Yt.filter(i,Oo.matchNodeNames([r])))[o]):null;var n,r,o,i},e))?Lu(r)?function(e,t){for(var n,r=e,o=0;Lu(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!Lu(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Lu(e)&&t>e.data.length&&(t=e.data.length),_u(e,t)}(r,parseInt(o,10)):(o="after"===o?Vu(r)+1:Vu(r),_u(r.parentNode,o)):null):null},Wu=function(e,t){Oo.isText(t)&&0===t.data.length&&e.remove(t)},Ku=function(e,t,n){var r,o,i,a,u,s,l;Oo.isDocumentFragment(n)?(i=e,a=t,u=n,s=T.from(u.firstChild),l=T.from(u.lastChild),a.insertNode(u),s.each(function(e){return Wu(i,e.previousSibling)}),l.each(function(e){return Wu(i,e.nextSibling)})):(r=e,o=n,t.insertNode(o),Wu(r,o.previousSibling),Wu(r,o.nextSibling))},Xu=Oo.isContentEditableFalse,Yu=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],l=0,c=e.getRoot();for(Oo.isText(a)?s.push(n?function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Oo.isText(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(l=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+l));a&&a!==c;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},Gu=function(e,t,n){var r=0;return en.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},Ju=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],Oo.isElement(n)&&"TR"===n.nodeName&&(n=(o=n.childNodes)[Math.min(t?r:r-1,o.length-1)])&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r))},Qu=function(e){return Ju(e,!0),Ju(e,!1),e},Zu=function(e,t){var n;if(Oo.isElement(e)&&(e=su(e,t),Xu(e)))return e;if(Ha(e)){if(Oo.isText(e)&&Ba(e)&&(e=e.parentNode),n=e.previousSibling,Xu(n))return n;if(n=e.nextSibling,Xu(n))return n}},es=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Xu(r)||"IMG"===o)return{name:o,index:Gu(n.dom,o,r)};var a,u,s,l,c,f,d,h=Zu((a=i).startContainer,a.startOffset)||Zu(a.endContainer,a.endOffset);return h?{name:o=h.tagName,index:Gu(n.dom,o,h)}:(u=e,l=t,c=i,f=(s=n).dom,(d={}).start=Yu(f,u,l,c,!0),s.isCollapsed()||(d.end=Yu(f,u,l,c,!1)),d)},ts=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},ns=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:Gu(n,u,a)};var s=Qu(r.cloneRange());if(!i){s.collapse(!1);var l=ts(n,o+"_end",t);Ku(n,s,l)}(r=Qu(r)).collapse(!0);var c=ts(n,o+"_start",t);return Ku(n,r,c),e.moveToBookmark({id:o,keep:1}),{id:o}},rs={getBookmark:function(e,t,n){return 2===t?es(Ma,n,e):3===t?(o=(r=e).getRng(),{start:qu(r.dom.getRoot(),_u.fromRangeStart(o)),end:qu(r.dom.getRoot(),_u.fromRangeEnd(o))}):t?{rng:e.getRng()}:ns(e,!1);var r,o},getUndoBookmark:d(es,W,!0),getPersistentBookmark:ns},os="_mce_caret",is=function(e){return Oo.isElement(e)&&e.id===os},as=function(e,t){for(;t&&t!==e;){if(t.id===os)return t;t=t.parentNode}return null},us=Oo.isElement,ss=Oo.isText,ls=function(e){var t=e.parentNode;t&&t.removeChild(e)},cs=function(e,t){0===t.length?ls(e):e.nodeValue=t},fs=function(e){var t=Ma(e);return{count:e.length-t.length,text:t}},ds=function(e,t){return gs(e),t},hs=function(e,t){var n,r,o,i=t.container(),a=(n=I(i.childNodes),r=e,o=z(n,r),-1===o?T.none():T.some(o)).map(function(e){return e<t.offset()?_u(i,t.offset()-1):t}).getOr(t);return gs(e),a},ms=function(e,t){return ss(e)&&t.container()===e?(r=t,o=fs((n=e).data.substr(0,r.offset())),i=fs(n.data.substr(r.offset())),0<(a=o.text+i.text).length?(cs(n,a),_u(n,r.offset()-o.count)):r):ds(e,t);var n,r,o,i,a},gs=function(e){if(us(e)&&Ha(e)&&(_a(e)?e.removeAttribute("data-mce-caret"):ls(e)),ss(e)){var t=Ma(function(e){try{return e.nodeValue}catch(t){return""}}(e));cs(e,t)}},ps={removeAndReposition:function(e,t){return _u.isTextPosition(t)?ms(e,t):(n=e,(r=t).container()===n.parentNode?hs(n,r):ds(n,r));var n,r},remove:gs},vs=sr.detect().browser,ys=Oo.isContentEditableFalse,bs=function(e,t,n){var r,o,i,a,u,s=nu(t.getBoundingClientRect(),n);return i="BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,e.scrollTop-u.top),s.left+=o,s.right+=o,s.top+=i,s.bottom+=i,s.width=1,0<(a=t.offsetWidth-t.clientWidth)&&(n&&(a*=-1),s.left+=a,s.right+=a),s},Cs=function(a,u,e){var t,s,l=Li(T.none()),c=function(){!function(e){var t,n,r,o,i;for(t=Bn("*[contentEditable=false]",e),o=0;o<t.length;o++)r=(n=t[o]).previousSibling,Fa(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Ia(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(a),s&&(ps.remove(s),s=null),l.get().each(function(e){Bn(e.caret).remove(),l.set(T.none())}),Ie.clearInterval(t)},f=function(){t=Ie.setInterval(function(){e()?Bn("div.mce-visual-caret",a).toggleClass("mce-visual-caret-hidden"):Bn("div.mce-visual-caret",a).addClass("mce-visual-caret-hidden")},500)};return{show:function(t,e){var n,r,o;if(c(),o=e,Oo.isElement(o)&&/^(TD|TH)$/i.test(o.tagName))return null;if(!u(e))return s=function(e,t){var n,r,o;if(r=e.ownerDocument.createTextNode(Aa),o=e.parentNode,t){if(n=e.previousSibling,Da(n)){if(Ha(n))return n;if(Fa(n))return n.splitText(n.data.length-1)}o.insertBefore(r,e)}else{if(n=e.nextSibling,Da(n)){if(Ha(n))return n;if(Ia(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r}(e,t),r=e.ownerDocument.createRange(),ys(s.nextSibling)?(r.setStart(s,0),r.setEnd(s,0)):(r.setStart(s,1),r.setEnd(s,1)),r;s=Va("p",e,t),n=bs(a,e,t),Bn(s).css("top",n.top);var i=Bn('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(n).appendTo(a)[0];return l.set(T.some({caret:i,element:e,before:t})),l.get().each(function(e){t&&Bn(e.caret).addClass("mce-visual-caret-before")}),f(),(r=e.ownerDocument.createRange()).setStart(s,0),r.setEnd(s,0),r},hide:c,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){l.get().each(function(e){var t=bs(a,e.element,e.before);Bn(e.caret).css(G({},t))})},destroy:function(){return Ie.clearInterval(t)}}},ws=function(){return vs.isIE()||vs.isEdge()||vs.isFirefox()},xs=function(e){return ys(e)||Oo.isTable(e)&&ws()},zs=Oo.isContentEditableFalse,Ns=Oo.matchStyleValues("display","block table table-cell table-caption list-item"),Es=Ha,Ss=Ba,ks=Oo.isElement,Ts=Ja,As=function(e){return 0<e},Ms=function(e){return e<0},Rs=function(e,t){for(var n;n=e(t);)if(!Ss(n))return n;return null},Ds=function(e,t,n,r,o){var i=new Ho(e,r);if(Ms(t)){if((zs(e)||Ss(e))&&n(e=Rs(i.prev,!0)))return e;for(;e=Rs(i.prev,o);)if(n(e))return e}if(As(t)){if((zs(e)||Ss(e))&&n(e=Rs(i.next,!0)))return e;for(;e=Rs(i.next,o);)if(n(e))return e}return null},Bs=function(e,t){for(;e&&e!==t;){if(Ns(e))return e;e=e.parentNode}return null},Os=function(e,t,n){return Bs(e.container(),n)===Bs(t.container(),n)},Hs=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),ks(n)?n.childNodes[r+e]:null):null},_s=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Ls=function(e,t,n){var r,o,i,a;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],Es(r)&&(r=r[o]),zs(r)){if(a=n,Bs(r,i=t)===Bs(a,i))return r;break}if(Ts(r))break;n=n.parentNode}return null},Ps=d(_s,!0),Vs=d(_s,!1),Is=function(e,t,n){var r,o,i,a,u=d(Ls,!0,t),s=d(Ls,!1,t);if(o=n.startContainer,i=n.startOffset,Ba(o)){if(ks(o)||(o=o.parentNode),"before"===(a=o.getAttribute("data-mce-caret"))&&(r=o.nextSibling,xs(r)))return Ps(r);if("after"===a&&(r=o.previousSibling,xs(r)))return Vs(r)}if(!n.collapsed)return n;if(Oo.isText(o)){if(Es(o)){if(1===e){if(r=s(o))return Ps(r);if(r=u(o))return Vs(r)}if(-1===e){if(r=u(o))return Vs(r);if(r=s(o))return Ps(r)}return n}if(Fa(o)&&i>=o.data.length-1)return 1===e&&(r=s(o))?Ps(r):n;if(Ia(o)&&i<=1)return-1===e&&(r=u(o))?Vs(r):n;if(i===o.data.length)return(r=s(o))?Ps(r):n;if(0===i)return(r=u(o))?Vs(r):n}return n},Fs=function(e,t){return T.from(Hs(e?0:-1,t)).filter(zs)},Us=function(e,t,n){var r=Is(e,t,n);return-1===e?Bu.fromRangeStart(r):Bu.fromRangeEnd(r)},js=function(e){return T.from(e.getNode()).map(cr.fromDom)},qs=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},$s=function(e,t){var n=Os(e,t);return!(n||!Oo.isBr(e.getNode()))||n};(Hu=Ou||(Ou={}))[Hu.Backwards=-1]="Backwards",Hu[Hu.Forwards=1]="Forwards";var Ws=Oo.isContentEditableFalse,Ks=Oo.isText,Xs=Oo.isElement,Ys=Oo.isBr,Gs=Ja,Js=function(e){return Xa(e)||!!Qa(t=e)&&!0!==M(I(t.getElementsByTagName("*")),function(e,t){return e||ja(t)},!1);var t},Qs=Za,Zs=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},el=function(e,t){if(As(e)){if(Gs(t.previousSibling)&&!Ks(t.previousSibling))return _u.before(t);if(Ks(t))return _u(t,0)}if(Ms(e)){if(Gs(t.nextSibling)&&!Ks(t.nextSibling))return _u.after(t);if(Ks(t))return _u(t,t.data.length)}return Ms(e)?Ys(t)?_u.before(t):_u.after(t):_u.before(t)},tl=function(e,t,n){var r,o,i,a,u;if(!Xs(n)||!t)return null;if(t.isEqual(_u.after(n))&&n.lastChild){if(u=_u.after(n.lastChild),Ms(e)&&Gs(n.lastChild)&&Xs(n.lastChild))return Ys(n.lastChild)?_u.before(n.lastChild):u}else u=t;var s,l,c,f=u.container(),d=u.offset();if(Ks(f)){if(Ms(e)&&0<d)return _u(f,--d);if(As(e)&&d<f.length)return _u(f,++d);r=f}else{if(Ms(e)&&0<d&&(o=Zs(f,d-1),Gs(o)))return!Js(o)&&(i=Ds(o,e,Qs,o))?Ks(i)?_u(i,i.data.length):_u.after(i):Ks(o)?_u(o,o.data.length):_u.before(o);if(As(e)&&d<f.childNodes.length&&(o=Zs(f,d),Gs(o)))return Ys(o)?(s=n,(c=(l=o).nextSibling)&&Gs(c)?Ks(c)?_u(c,0):_u.before(c):tl(Ou.Forwards,_u.after(l),s)):!Js(o)&&(i=Ds(o,e,Qs,o))?Ks(i)?_u(i,0):_u.before(i):Ks(o)?_u(o,0):_u.after(o);r=o||u.getNode()}return(As(e)&&u.isAtEnd()||Ms(e)&&u.isAtStart())&&(r=Ds(r,e,$(!0),n,!0),Qs(r,n))?el(e,r):(o=Ds(r,e,Qs,n),!(a=Yt.last(S(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(f,n),Ws)))||o&&a.contains(o)?o?el(e,o):null:u=As(e)?_u.after(a):_u.before(a))},nl=function(t){return{next:function(e){return tl(Ou.Forwards,e,t)},prev:function(e){return tl(Ou.Backwards,e,t)}}},rl=function(e){return _u.isTextPosition(e)?0===e.offset():Ja(e.getNode())},ol=function(e){if(_u.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ja(e.getNode(!0))},il=function(e,t){return!_u.isTextPosition(e)&&!_u.isTextPosition(t)&&e.getNode()===t.getNode(!0)},al=function(e,t,n){return e?!il(t,n)&&(r=t,!(!_u.isTextPosition(r)&&Oo.isBr(r.getNode())))&&ol(t)&&rl(n):!il(n,t)&&rl(t)&&ol(n);var r},ul=function(e,t,n){var r=nl(t);return T.from(e?r.next(n):r.prev(n))},sl=function(t,n,r){return ul(t,n,r).bind(function(e){return Os(r,e,n)&&al(t,r,e)?ul(t,n,e):T.some(e)})},ll=function(t,n,e,r){return sl(t,n,e).bind(function(e){return r(e)?ll(t,n,e,r):T.some(e)})},cl=function(e,t){var n,r,o,i,a,u=e?t.firstChild:t.lastChild;return Oo.isText(u)?T.some(_u(u,e?0:u.data.length)):u?Ja(u)?T.some(e?_u.before(u):(a=u,Oo.isBr(a)?_u.before(a):_u.after(a))):(r=t,o=u,i=(n=e)?_u.before(o):_u.after(o),ul(n,r,i)):T.none()},fl=d(ul,!0),dl=d(ul,!1),hl={fromPosition:ul,nextPosition:fl,prevPosition:dl,navigate:sl,navigateIgnore:ll,positionIn:cl,firstPositionIn:d(cl,!0),lastPositionIn:d(cl,!1)},ml=function(e,t){return!e.isBlock(t)||t.innerHTML||He.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t},gl=function(e,t){return hl.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},pl=function(e,t,n){return!(!1!==t.hasChildNodes()||!as(e,t))&&(o=n,i=(r=t).ownerDocument.createTextNode(Aa),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),!0);var r,o,i},vl=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],l=e.getRoot();if(s){for(a=s[0],i=l,o=s.length-1;1<=o;o--){if(u=i.childNodes,pl(l,i,r))return!0;if(s[o]>u.length-1)return!!pl(l,i,r)||gl(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},yl=function(e){return Oo.isText(e)&&0<e.data.length},bl=function(e,t,n){var r,o,i,a,u,s,l=e.get(n.id+"_"+t),c=n.keep;if(l){if(r=l.parentNode,s=(u=(o="start"===t?c?l.hasChildNodes()?(r=l.firstChild,1):yl(l.nextSibling)?(r=l.nextSibling,0):yl(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)+1):e.nodeIndex(l):c?l.hasChildNodes()?(r=l.firstChild,1):yl(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)):e.nodeIndex(l),r),o),!c){for(a=l.previousSibling,i=l.nextSibling,en.each(en.grep(l.childNodes),function(e){Oo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=e.get(n.id+"_"+t);)e.remove(l,!0);a&&i&&a.nodeType===i.nodeType&&Oo.isText(a)&&!He.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),s=(u=a,o))}return T.some(_u(u,s))}return T.none()},Cl=function(e,t){var n,r,o,i,a,u,s,l,c,f,d,h,m,g,p,v,y=e.dom;if(t){if(v=t,en.isArray(v.start))return g=t,p=(m=y).createRng(),vl(m,!0,g,p)&&vl(m,!1,g,p)?T.some(p):T.none();if("string"==typeof t.start)return T.some((f=t,d=(c=y).createRng(),h=$u(c.getRoot(),f.start),d.setStart(h.container(),h.offset()),h=$u(c.getRoot(),f.end),d.setEnd(h.container(),h.offset()),d));if(t.hasOwnProperty("id"))return s=bl(o=y,"start",i=t),l=bl(o,"end",i),fu([s,(a=l,u=s,a.isSome()?a:u)],function(e,t){var n=o.createRng();return n.setStart(ml(o,e.container()),e.offset()),n.setEnd(ml(o,t.container()),t.offset()),n});if(t.hasOwnProperty("name"))return n=y,r=t,T.from(n.select(r.name)[r.index]).map(function(e){var t=n.createRng();return t.selectNode(e),t});if(t.hasOwnProperty("rng"))return T.some(t.rng)}return T.none()},wl=function(e,t,n){return rs.getBookmark(e,t,n)},xl=function(t,e){Cl(t,e).each(function(e){t.setRng(e)})},zl=function(e){return Oo.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Nl=function(e){return e&&/^(IMG)$/.test(e.nodeName)},El=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},Sl=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},kl={isInlineBlock:Nl,moveStart:function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!Nl(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(a<(i=u.childNodes).length?(u=i[a],r=new Ho(u,e.getParent(u,e.isBlock))):(u=i[i.length-1],(r=new Ho(u,e.getParent(u,e.isBlock))).next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!El(o))return n.setStart(o,0),void t.setRng(n)},getNonWhiteSpaceSibling:function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!El(e))return e},isTextBlock:function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(e,t,n){return e.schema.isValidChild(t,n)},isWhiteSpaceNode:El,replaceVars:function(e,n){return"string"!=typeof e?e=e(n):n&&(e=e.replace(/%(\w+)/g,function(e,t){return n[t]||e})),e},isEq:function(e,t){return t=t||"",e=""+((e=e||"").nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},normalizeStyleValue:Sl,getStyle:function(e,t,n){return Sl(e,e.getStyle(t,n),n)},getTextDecoration:function(t,e){var n;return t.getParent(e,function(e){return(n=t.getStyle(e,"text-decoration"))&&"none"!==n}),n},getParents:function(e,t,n){return e.getParents(t,n,e.getRoot())}},Tl=zl,Al=kl.getParents,Ml=kl.isWhiteSpaceNode,Rl=kl.isTextBlock,Dl=function(e,t){for(void 0===t&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},Bl=function(e,t){for(var n=t;n;){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Ol=function(e,t,n,r){var o,i,a=n.nodeValue;return void 0===r&&(r=e?a.length:0),e?(o=a.lastIndexOf(" ",r),-1!==(o=(i=a.lastIndexOf("\xa0",r))<o?o:i)&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf("\xa0",r),o=-1!==o&&(-1===i||o<i)?o:i),o},Hl=function(e,t,n,r,o,i){var a,u,s;if(3===n.nodeType){if(-1!==(u=Ol(o,i,n,r)))return{container:n,offset:u};s=n}for(var l=new Ho(n,e.getParent(n,e.isBlock)||t);a=l[o?"prev":"next"]();)if(3!==a.nodeType||Tl(a.parentNode)){if(e.isBlock(a)||kl.isEq(a,"BR"))break}else if(-1!==(u=Ol(o,i,s=a)))return{container:a,offset:u};if(s)return{container:s,offset:r=o?0:s.length}},_l=function(e,t,n,r,o){var i,a,u,s;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=Al(e,r),a=0;a<i.length;a++)for(u=0;u<t.length;u++)if(!("collapsed"in(s=t[u])&&s.collapsed!==n.collapsed)&&e.is(i[a],s.selector))return i[a];return r},Ll=function(t,e,n,r){var o,i=t.dom,a=i.getRoot();if(e[0].wrapper||(o=i.getParent(n,e[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,function(e){return e!==a&&Rl(t,e)},u)}if(o&&e[0].wrapper&&(o=Al(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!kl.isEq(o,"br")););return o||n},Pl=function(e,t,n,r,o,i,a){var u,s,l,c,f,d;if(u=s=a?n:o,c=a?"previousSibling":"nextSibling",f=e.getRoot(),3===u.nodeType&&!Ml(u)&&(a?0<r:i<u.nodeValue.length))return u;for(;;){if(!t[0].block_expand&&e.isBlock(s))return s;for(l=s[c];l;l=l[c])if(!Tl(l)&&!Ml(l)&&("BR"!==(d=l).nodeName||!d.getAttribute("data-mce-bogus")||d.nextSibling))return s;if(s===f||s.parentNode===f){u=s;break}s=s.parentNode}return u},Vl=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset,l=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&3===(i=su(i,a)).nodeType&&(a=0),1===u.nodeType&&u.hasChildNodes()&&3===(u=su(u,t.collapsed?s:s-1)).nodeType&&(s=u.nodeValue.length),i=Bl(l,i),u=Bl(l,u),(Tl(i.parentNode)||Tl(i))&&(i=Tl(i)?i:i.parentNode,3===(i=t.collapsed?i.previousSibling||i:i.nextSibling||i).nodeType&&(a=t.collapsed?i.length:0)),(Tl(u.parentNode)||Tl(u))&&(u=Tl(u)?u:u.parentNode,3===(u=t.collapsed?u.nextSibling||u:u.previousSibling||u).nodeType&&(s=t.collapsed?0:u.length)),t.collapsed&&((o=Hl(l,e.getBody(),i,a,!0,r))&&(i=o.container,a=o.offset),(o=Hl(l,e.getBody(),u,s,!1,r))&&(u=o.container,s=o.offset)),n[0].inline&&(u=r?u:function(e,t){var n=Dl(e,t);if(n.node){for(;n.node&&0===n.offset&&n.node.previousSibling;)n=Dl(n.node.previousSibling);n.node&&0<n.offset&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&1<n.offset&&(e=n.node).splitText(n.offset-1)}return e}(u,s)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=Pl(l,n,i,a,u,s,!0)),n[0].inline&&3===u.nodeType&&s!==u.nodeValue.length||(u=Pl(l,n,i,a,u,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=_l(l,n,t,i,"previousSibling"),u=_l(l,n,t,u,"nextSibling")),(n[0].block||n[0].selector)&&(i=Ll(e,n,i,"previousSibling"),u=Ll(e,n,u,"nextSibling"),n[0].block&&(l.isBlock(i)||(i=Pl(l,n,i,a,u,s,!0)),l.isBlock(u)||(u=Pl(l,n,i,a,u,s,!1)))),1===i.nodeType&&(a=l.nodeIndex(i),i=i.parentNode),1===u.nodeType&&(s=l.nodeIndex(u)+1,u=u.parentNode),{startContainer:i,startOffset:a,endContainer:u,endOffset:s}},Il=en.each,Fl=function(e,t,o){var n,r,i,a,u,s,l,c=t.startContainer,f=t.startOffset,d=t.endContainer,h=t.endOffset;if(0<(l=e.select("td[data-mce-selected],th[data-mce-selected]")).length)Il(l,function(e){o([e])});else{var m,g,p,v=function(e){var t;return 3===(t=e[0]).nodeType&&t===c&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===h&&0<e.length&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},y=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},b=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},C=function(e,t,n){var r=n?"nextSibling":"previousSibling";for(u=(a=e).parentNode;a&&a!==t;a=u)u=a.parentNode,(s=y(a===e?a:a[r],r)).length&&(n||s.reverse(),o(v(s)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(g=h,p=(m=d).childNodes,--g>p.length-1?g=p.length-1:g<0&&(g=0),d=p[g]||m),c===d)return o(v([c]));for(n=e.findCommonAncestor(c,d),a=c;a;a=a.parentNode){if(a===d)return C(c,n,!0);if(a===n)break}for(a=d;a;a=a.parentNode){if(a===c)return C(d,n);if(a===n)break}r=b(c,n)||c,i=b(d,n)||d,C(c,r,!0),(s=y(r===c?r:r.nextSibling,"nextSibling",i===d?i.nextSibling:i)).length&&o(v(s)),C(d,i)}};var Ul=function tE(n,r){var t=function(e){return n(e)?T.from(e.dom().nodeValue):T.none()},e=sr.detect().browser,o=e.isIE()&&10===e.version.major?function(e){try{return t(e)}catch(eE){return T.none()}}:t;return{get:function(e){if(!n(e))throw new Error("Can only get "+r+" value of a "+r+" node");return o(e).getOr("")},getOption:o,set:function(e,t){if(!n(e))throw new Error("Can only set raw "+r+" value of a "+r+" node");e.dom().nodeValue=t}}}(vr,"text"),jl=function(e){return Ul.get(e)},ql=function(r,o,i,a){return Gr(o).fold(function(){return"skipping"},function(e){return"br"===a||vr(n=o)&&"\ufeff"===jl(n)?"valid":pr(t=o)&&ia(t,ga())?"existing":is(o)?"caret":kl.isValid(r,i,a)&&kl.isValid(r,mr(e),i)?"valid":"invalid-child";var t,n})},$l=function(e,t,n,r){var o,i,a=t.uid,u=void 0===a?(o="mce-annotation",i=(new Date).getTime(),o+"_"+Math.floor(1e9*Math.random())+ ++xa+String(i)):a,s=function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["uid"]),l=cr.fromTag("span",e);ra(l,ga()),Mr(l,""+va(),u),Mr(l,""+pa(),n);var c,f=r(u,s),d=f.attributes,h=void 0===d?{}:d,m=f.classes,g=void 0===m?[]:m;return Rr(l,h),c=l,A(g,function(e){ra(c,e)}),l},Wl=function(i,e,t,n,r){var a=[],u=$l(i.getDoc(),r,t,n),s=Li(T.none()),l=function(){s.set(T.none())},c=function(e){A(e,o)},o=function(e){var t,n;switch(ql(i,e,"span",mr(e))){case"invalid-child":l();var r=to(e);c(r),l();break;case"valid":var o=s.get().getOrThunk(function(){var e=Na(u);return a.push(e),s.set(T.some(e)),e});qi(t=e,n=o),Ki(n,t)}};return Fl(i.dom,e,function(e){var t;l(),t=X(e,cr.fromDom),c(t)}),a},Kl=function(s,l,c,f){s.undoManager.transact(function(){var e,t,n,r,o=s.selection.getRng();if(o.collapsed&&(r=Vl(e=s,t=o,[{inline:!0}],3===(n=t).startContainer.nodeType&&n.startContainer.nodeValue.length>=n.startOffset&&"\xa0"===n.startContainer.nodeValue[n.startOffset]),t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),e.selection.setRng(t)),s.selection.getRng().collapsed){var i=$l(s.getDoc(),f,l,c.decorate);Sa(i,"\xa0"),s.selection.getRng().insertNode(i.dom()),s.selection.select(i.dom())}else{var a=rs.getPersistentBookmark(s.selection,!1),u=s.selection.getRng();Wl(s,u,l,c.decorate,f),s.selection.moveToBookmark(a)}})},Xl=function(u){var n,r=(n={},{register:function(e,t){n[e]={name:e,settings:t}},lookup:function(e){return n.hasOwnProperty(e)?T.from(n[e]).map(function(e){return e.settings}):T.none()}});wa(u,r);var o=Ca(u);return{register:function(e,t){r.register(e,t)},annotate:function(t,n){r.lookup(t).each(function(e){Kl(u,t,e,n)})},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(e){ya(u,T.some(e)).each(function(e){var t=e.elements;A(t,Ji)})},getAll:function(e){var t,n,r,o,i,a=(t=u,n=e,r=cr.fromDom(t.getBody()),o=ua(r,"["+pa()+'="'+n+'"]'),i={},A(o,function(e){var t=Dr(e,va()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])}),i);return xr(a,function(e){return X(e,function(e){return e.dom()})})}}},Yl=/^[ \t\r\n]*$/,Gl={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Jl=function(e,t,n){var r,o,i=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[i])return e[i];if(e!==t){if(r=e[a])return r;for(o=e.parent;o&&o!==t;o=o.parent)if(r=o[a])return r}},Ql=function(){function a(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}return a.create=function(e,t){var n,r;if(n=new a(e,Gl[e]||1),t)for(r in t)n.attr(r,t[r]);return n},a.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},a.prototype.attr=function(e,t){var n,r;if("string"!=typeof e){for(r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(t===undefined)return n.map[e];if(null===t){if(e in n.map)for(delete n.map[e],r=n.length;r--;)if(n[r].name===e)return n=n.splice(r,1),this;return this}if(e in n.map){for(r=n.length;r--;)if(n[r].name===e){n[r].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}},a.prototype.clone=function(){var e,t,n,r,o,i=new a(this.name,this.type);if(n=this.attributes){for((o=[]).map={},e=0,t=n.length;e<t;e++)"id"!==(r=n[e]).name&&(o[o.length]={name:r.name,value:r.value},o.map[r.name]=r.value);i.attributes=o}return i.value=this.value,i.shortEnded=this.shortEnded,i},a.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},a.prototype.unwrap=function(){var e,t;for(e=this.firstChild;e;)t=e.next,this.insert(e,this,!0),e=t;this.remove()},a.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},a.prototype.append=function(e){var t;return e.parent&&e.remove(),(t=this.lastChild)?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},a.prototype.insert=function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},a.prototype.getAll=function(e){var t,n=[];for(t=this.firstChild;t;t=Jl(t,this))t.name===e&&n.push(t);return n},a.prototype.empty=function(){var e,t,n;if(this.firstChild){for(e=[],n=this.firstChild;n;n=Jl(n,this))e.push(n);for(t=e.length;t--;)(n=e[t]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},a.prototype.isEmpty=function(e,t,n){var r,o,i=this.firstChild;if(t=t||{},i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;for(r=i.attributes.length;r--;)if("name"===(o=i.attributes[r].name)||0===o.indexOf("data-mce-bookmark"))return!1}if(8===i.type)return!1;if(3===i.type&&!Yl.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Yl.test(i.value))return!1;if(n&&n(i))return!1}while(i=Jl(i,this));return!0},a.prototype.walk=function(e){return Jl(this,null,e)},a}(),Zl=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),(i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},ec=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};function tc(V,I){void 0===I&&(I=yi());var e=function(){};!1!==(V=V||{}).fix_self_closing&&(V.fix_self_closing=!0);var F=V.comment?V.comment:e,U=V.cdata?V.cdata:e,j=V.text?V.text:e,q=V.start?V.start:e,$=V.end?V.end:e,W=V.pi?V.pi:e,K=V.doctype?V.doctype:e;return{parse:function(e){var t,n,r,d,o,i,a,h,u,s,m,l,g,c,f,p,v,y,b,C,w,x,z,N,E,S,k,T,A,M=0,R=[],D=0,B=ui.decode,O=en.makeMap("src,href,data,background,formaction,poster,xlink:href"),H=/((java|vb)script|mhtml):/i,_=function(e){var t,n;for(t=R.length;t--&&R[t].name!==e;);if(0<=t){for(n=R.length-1;t<=n;n--)(e=R[n]).valid&&$(e.name);R.length=t}},L=function(e,t,n,r,o){var i,a,u,s,l;if(n=(t=t.toLowerCase())in m?t:B(n||r||o||""),g&&!h&&0==(0===(u=t).indexOf("data-")||0===u.indexOf("aria-"))){if(!(i=y[t])&&b){for(a=b.length;a--&&!(i=b[a]).pattern.test(t););-1===a&&(i=null)}if(!i)return;if(i.validValues&&!(n in i.validValues))return}if(O[t]&&!V.allow_script_urls){var c=n.replace(/[\s\u0000-\u001F]+/g,"");try{c=decodeURIComponent(c)}catch(f){c=unescape(c)}if(H.test(c))return;if(l=c,!(s=V).allow_html_data_urls&&(/^data:image\//i.test(l)?!1===s.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(l):/^data:/i.test(l)))return}h&&(t in O||0===t.indexOf("on"))||(d.map[t]=n,d.push({name:t,value:n}))};for(E=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),S=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,s=I.getShortEndedElements(),N=V.self_closing_elements||I.getSelfClosingElements(),m=I.getBoolAttrs(),g=V.validate,u=V.remove_internals,A=V.fix_self_closing,k=I.getSpecialElements(),z=e+">";t=E.exec(z);){if(M<t.index&&j(B(e.substr(M,t.index-M))),n=t[6])":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),_(n);else if(n=t[7]){if(t.index+t[0].length>e.length){j(B(e.substr(t.index))),M=t.index+t[0].length;continue}":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),l=n in s,A&&N[n]&&0<R.length&&R[R.length-1].name===n&&_(n);var P=ec(S,t[8]);if(null!==P){if("all"===P){M=Zl(I,e,E.lastIndex),E.lastIndex=M;continue}f=!1}if(!g||(c=I.getElementRule(n))){if(f=!0,g&&(y=c.attributes,b=c.attributePatterns),(v=t[8])?((h=-1!==v.indexOf("data-mce-type"))&&u&&(f=!1),(d=[]).map={},v.replace(S,L)):(d=[]).map={},g&&!h){if(C=c.attributesRequired,w=c.attributesDefault,x=c.attributesForced,c.removeEmptyAttrs&&!d.length&&(f=!1),x)for(o=x.length;o--;)a=(p=x[o]).name,"{$uid}"===(T=p.value)&&(T="mce_"+D++),d.map[a]=T,d.push({name:a,value:T});if(w)for(o=w.length;o--;)(a=(p=w[o]).name)in d.map||("{$uid}"===(T=p.value)&&(T="mce_"+D++),d.map[a]=T,d.push({name:a,value:T}));if(C){for(o=C.length;o--&&!(C[o]in d.map););-1===o&&(f=!1)}if(p=d.map["data-mce-bogus"]){if("all"===p){M=Zl(I,e,E.lastIndex),E.lastIndex=M;continue}f=!1}}f&&q(n,d,l)}else f=!1;if(r=k[n]){r.lastIndex=M=t.index+t[0].length,M=(t=r.exec(e))?(f&&(i=e.substr(M,t.index-M)),t.index+t[0].length):(i=e.substr(M),e.length),f&&(0<i.length&&j(i,!0),$(n)),E.lastIndex=M;continue}l||(v&&v.indexOf("/")===v.length-1?f&&$(n):R.push({name:n,valid:f}))}else(n=t[1])?(">"===n.charAt(0)&&(n=" "+n),V.allow_conditional_comments||"[if"!==n.substr(0,3).toLowerCase()||(n=" "+n),F(n)):(n=t[2])?U(n.replace(/<!--|-->/g,"")):(n=t[3])?K(n):(n=t[4])&&W(n,t[5]);M=t.index+t[0].length}for(M<e.length&&j(B(e.substr(M))),o=R.length-1;0<=o;o--)(n=R[o]).valid&&$(n.name)}}}(tc||(tc={})).findEndTag=Zl;var nc,rc=tc,oc=function(e,t){var n,r,o,i,a,u,s,l,c=t,f=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(u=e.getTempAttrs(),s=c,l=new RegExp(["\\s?("+u.join("|")+')="[^"]+"'].join("|"),"gi"),c=s.replace(l,""),a=d.getShortEndedElements();i=f.exec(c);)r=f.lastIndex,o=i[0].length,n=a[i[1]]?r:rc.findEndTag(d,c,r),c=c.substring(0,r-o)+c.substring(n),f.lastIndex=r-o;return Ma(c)},ic={trimExternal:oc,trimInternal:oc},ac=function(e,t,n){var r=e.getParam(t,n);if(-1===r.indexOf("="))return r;var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n},uc=function(e){return e.getParam("iframe_attrs",{})},sc=function(e){return e.getParam("doctype","<!DOCTYPE html>")},lc=function(e){return e.getParam("document_base_url","")},cc=function(e){return ac(e,"body_id","tinymce")},fc=function(e){return ac(e,"body_class","")},dc=function(e){return e.getParam("content_security_policy","")},hc=function(e){return e.getParam("br_in_pre",!0)},mc=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},gc=function(e){return e.getParam("forced_root_block_attrs",{})},pc=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},vc=function(e){return e.getParam("no_newline_selector","")},yc=function(e){return e.getParam("keep_styles",!0)},bc=function(e){return e.getParam("end_container_on_empty_block",!1)},Cc=function(e){return en.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},wc=function(e){return en.explode(e.getParam("font_size_classes",""))},xc=function(e){return e.getParam("icons","","string")},zc=function(e){return e.getParam("icons_url","","string")},Nc=function(e){return e.getParam("images_dataimg_filter",$(!0),"function")},Ec=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Sc=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},kc=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Tc=function(e){return e.getParam("images_upload_url","","string")},Ac=function(e){return e.getParam("images_upload_base_path","","string")},Mc=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Rc=function(e){return e.getParam("images_upload_handler",null,"function")},Dc=function(e){return e.getParam("content_css_cors",!1,"boolean")},Bc=function(e){return e.getParam("language","en","string")},Oc=function(e){return e.getParam("language_url","","string")},Hc=function(e){return e.getParam("indent_use_margin",!1)},_c=function(e){return e.getParam("indentation","40px","string")},Lc=function(e){var t=e.settings.content_css;return K(t)?X(t.split(","),er):p(t)?t:!1===t||e.inline?[]:["default"]},Pc=function(e){return e.getParam("directionality",Ii.isRtl()?"rtl":undefined)},Vc=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Ic=function(e,t,n){var r,o,i,a,u;if(t.format=t.format?t.format:"html",t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=en.trim(ic.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=Ma(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);i=(o=e).serializer.serialize(n,t),a=mc(o),u=new RegExp("^(<"+a+"[^>]*>(&nbsp;|&#160;|\\s|\xa0|<br \\/>|)<\\/"+a+">[\r\n]*|<br \\/>[\r\n]*)$"),r=i.replace(u,"")}return"text"===t.format||Ko(cr.fromDom(n))?t.content=r:t.content=en.trim(r),t.no_events||e.fire("GetContent",t),t.content},Fc=en.makeMap,Uc=function(e){var u,s,l,c,f,d=[];return u=(e=e||{}).indent,s=Fc(e.indent_before||""),l=Fc(e.indent_after||""),c=ui.getEncodeFunc(e.entity_encoding||"raw",e.entities),f="html"===e.element_format,{start:function(e,t,n){var r,o,i,a;if(u&&s[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n"),d.push("<",e),t)for(r=0,o=t.length;r<o;r++)i=t[r],d.push(" ",i.name,'="',c(i.value,!0),'"');d[d.length]=!n||f?">":" />",n&&u&&l[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n")},end:function(e){var t;d.push("</",e,">"),u&&l[e]&&0<d.length&&0<(t=d[d.length-1]).length&&"\n"!==t&&d.push("\n")},text:function(e,t){0<e.length&&(d[d.length]=t?e:c(e))},cdata:function(e){d.push("<![CDATA[",e,"]]>")},comment:function(e){d.push("\x3c!--",e,"--\x3e")},pi:function(e,t){t?d.push("<?",e," ",c(t),"?>"):d.push("<?",e,"?>"),u&&d.push("\n")},doctype:function(e){d.push("<!DOCTYPE",e,">",u?"\n":"")},reset:function(){d.length=0},getContent:function(){return d.join("").replace(/\n$/,"")}}},jc=function(t,m){void 0===m&&(m=yi());var g=Uc(t);(t=t||{}).validate=!("validate"in t)||t.validate;return{serialize:function(e){var f,d;d=t.validate,f={3:function(e){g.text(e.value,e.raw)},8:function(e){g.comment(e.value)},7:function(e){g.pi(e.name,e.value)},10:function(e){g.doctype(e.value)},4:function(e){g.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;h(e),e=e.next;);}},g.reset();var h=function(e){var t,n,r,o,i,a,u,s,l,c=f[e.type];if(c)c(e);else{if(t=e.name,n=e.shortEnded,r=e.attributes,d&&r&&1<r.length&&((a=[]).map={},l=m.getElementRule(e.name))){for(u=0,s=l.attributesOrder.length;u<s;u++)(o=l.attributesOrder[u])in r.map&&(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));for(u=0,s=r.length;u<s;u++)(o=r[u].name)in a.map||(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));r=a}if(g.start(e.name,r,n),!n){if(e=e.firstChild)for(;h(e),e=e.next;);g.end(t)}}};return 1!==e.type||t.inner?f[11](e):h(e),g.getContent()}}},qc=function(e,t){t(e),e.firstChild&&qc(e.firstChild,t),e.next&&qc(e.next,t)},$c=function(e,t,n){var r=function(e,n,t){var r={},o={},i=[];for(var a in t.firstChild&&qc(t.firstChild,function(t){A(e,function(e){e.name===t.name&&(r[e.name]?r[e.name].nodes.push(t):r[e.name]={filter:e,nodes:[t]})}),A(n,function(e){"string"==typeof t.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(t):o[e.name]={filter:e,nodes:[t]})})}),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var a in o)o.hasOwnProperty(a)&&i.push(o[a]);return i}(e,t,n);A(r,function(t){A(t.filter.callbacks,function(e){e(t.nodes,t.filter.name,{})})})},Wc=function(e){var t=Xr(e).dom();return e.dom()===t.activeElement},Kc=function(e){var t=e!==undefined?e.dom():j.document;return T.from(t.activeElement).map(cr.fromDom)},Xc=function(a){if(!p(a))throw new Error("cases must be an array");if(0===a.length)throw new Error("there must be at least one case");var u=[],n={};return A(a,function(e,r){var t=br(e);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],i=e[o];if(n[o]!==undefined)throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!p(i))throw new Error("case arguments must be an array");u.push(o),n[o]=function(){var e=arguments.length;if(e!==i.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+i.length+" ("+i+"), got "+e);for(var n=new Array(e),t=0;t<n.length;t++)n[t]=arguments[t];return{fold:function(){if(arguments.length!==a.length)throw new Error("Wrong number of arguments to fold. Expected "+a.length+", got "+arguments.length);return arguments[r].apply(null,n)},match:function(e){var t=br(e);if(u.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+u.join(",")+"\nActual: "+t.join(","));if(!_(u,function(e){return N(t,e)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+u.join(", "));return e[o].apply(null,n)},log:function(e){j.console.log(e,{constructors:u,constructor:o,params:n})}}}}),n},Yc={create:Lr("start","soffset","finish","foffset")},Gc=Xc([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Jc=(Gc.before,Gc.on,Gc.after,function(e){return e.fold(W,W,W)}),Qc=Xc([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Zc={domRange:Qc.domRange,relative:Qc.relative,exact:Qc.exact,exactFromRange:function(e){return Qc.exact(e.start(),e.soffset(),e.finish(),e.foffset())},getWin:function(e){var t=e.match({domRange:function(e){return cr.fromDom(e.startContainer)},relative:function(e,t){return Jc(e)},exact:function(e,t,n,r){return e}});return Yr(t)},range:Yc.create},ef=sr.detect().browser,tf=function(e,t){var n=vr(t)?jl(t).length:to(t).length+1;return n<e?n:e<0?0:e},nf=function(e){return Zc.range(e.start(),tf(e.soffset(),e.start()),e.finish(),tf(e.foffset(),e.finish()))},rf=function(e,t){return!Oo.isRestrictedNode(t.dom())&&(Kr(e,t)||Wr(e,t))},of=function(t){return function(e){return rf(t,e.start())&&rf(t,e.finish())}},af=function(e){return!0===e.inline||ef.isIE()},uf=function(e){return Zc.range(cr.fromDom(e.startContainer),e.startOffset,cr.fromDom(e.endContainer),e.endOffset)},sf=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?T.from(t.getRangeAt(0)):T.none()).map(uf)},lf=function(e){var t=Yr(e);return sf(t.dom()).filter(of(e))},cf=function(e,t){return T.from(t).filter(of(e)).map(nf)},ff=function(e){var t=j.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),T.some(t)}catch(n){return T.none()}},df=function(e){return(e.bookmark?e.bookmark:T.none()).bind(d(cf,cr.fromDom(e.getBody()))).bind(ff)},hf=function(e){var t=af(e)?lf(cr.fromDom(e.getBody())):T.none();e.bookmark=t.isSome()?t:e.bookmark},mf=function(t){df(t).each(function(e){t.selection.setRng(e)})},gf=df,pf={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("tox-")||-1!==e.className.toString().indexOf("mce-")}},vf=function(n,e){var t,r;sr.detect().browser.isIE()?(r=n).on("focusout",function(){hf(r)}):(t=e,n.on("mouseup touchend",function(e){t.throttle()})),n.on("keyup NodeChange",function(e){var t;"nodechange"===(t=e).type&&t.selectionChange||hf(n)})},yf=function(e){var t,n,r,o=Qi(function(){hf(e)},0);e.inline&&(t=e,n=o,r=function(){n.throttle()},Di.DOM.bind(j.document,"mouseup",r),t.on("remove",function(){Di.DOM.unbind(j.document,"mouseup",r)})),e.on("init",function(){vf(e,o)}),e.on("remove",function(){o.cancel()})},bf=Di.DOM,Cf=function(e){return pf.isEditorUIElement(e)},wf=function(t,e){var n=t?t.settings.custom_ui_selector:"";return null!==bf.getParent(e,function(e){return Cf(e)||!!n&&t.dom.is(e,n)})},xf=function(r,e){var t=e.editor;yf(t),t.on("focusin",function(){var e=r.focusedEditor;e!==this&&(e&&e.fire("blur",{focusedEditor:this}),r.setActive(this),(r.focusedEditor=this).fire("focus",{blurredEditor:e}),this.focus(!0))}),t.on("focusout",function(){var t=this;Ie.setEditorTimeout(t,function(){var e=r.focusedEditor;wf(t,function(){try{return j.document.activeElement}catch(e){return j.document.body}}())||e!==t||(t.fire("blur",{focusedEditor:null}),r.focusedEditor=null)})}),nc||(nc=function(e){var t,n=r.activeEditor;t=e.target,n&&t.ownerDocument===j.document&&(t===j.document.body||wf(n,t)||r.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),r.focusedEditor=null))},bf.bind(j.document,"focusin",nc))},zf=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(bf.unbind(j.document,"focusin",nc),nc=null)},Nf=function(e){e.on("AddEditor",d(xf,e)),e.on("RemoveEditor",d(zf,e))},Ef=wf,Sf=function(t,e){return(n=e,n.collapsed?T.from(su(n.startContainer,n.startOffset)).map(cr.fromDom):T.none()).bind(function(e){return $o(e)?T.some(e):!1===Kr(t,e)?T.some(t):T.none()});var n},kf=function(t,e){Sf(cr.fromDom(t.getBody()),e).bind(function(e){return hl.firstPositionIn(e.dom())}).fold(function(){t.selection.normalize()},function(e){return t.selection.setRng(e.toRange())})},Tf=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},Af=function(e){return Wc(e)||(t=e,Kc(Xr(t)).filter(function(e){return t.dom().contains(e.dom())})).isSome();var t},Mf=function(e){return e.inline?(n=e.getBody())&&Af(cr.fromDom(n)):(t=e).iframeElement&&Wc(cr.fromDom(t.iframeElement));var t,n},Rf=function(e){return e.editorManager.setActive(e)},Df=function(e,t){e.removed||(t?Rf(e):function(t){var e=t.selection,n=t.getBody(),r=e.getRng();t.quirks.refreshContentEditable();var o,i,a=(o=t,i=e.getNode(),o.dom.getParent(i,function(e){return"true"===o.dom.getContentEditable(e)}));if(t.$.contains(n,a))return Tf(a),kf(t,r),Rf(t);t.bookmark!==undefined&&!1===Mf(t)&&gf(t).each(function(e){t.selection.setRng(e),r=e}),t.inline||(He.opera||Tf(n),t.getWin().focus()),(He.gecko||t.inline)&&(Tf(n),kf(t,r)),Rf(t)}(e))},Bf=Mf,Of=function(e){return Mf(e)||(t=e,Af(cr.fromDom(t.getContainer()))||Kc().filter(function(e){return Ef(t,e.dom())}).isSome());var t},Hf=function(e){return e instanceof Ql},_f=function(e,t){var r;e.dom.setHTML(e.getBody(),t),Bf(r=e)&&hl.firstPositionIn(r.getBody()).each(function(e){var t=e.getNode(),n=Oo.isTable(t)?hl.firstPositionIn(t).getOr(e):e;r.selection.setRng(n.toRange())})},Lf=function(u,s,l){return void 0===l&&(l={}),l.format=l.format?l.format:"html",l.set=!0,l.content=Hf(s)?"":s,Hf(s)||l.no_events||(u.fire("BeforeSetContent",l),s=l.content),T.from(u.getBody()).fold($(s),function(e){return Hf(s)?function(e,t,n,r){$c(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=jc({validate:e.validate},e.schema).serialize(n);return r.content=Ko(cr.fromDom(t))?o:en.trim(o),_f(e,r.content),r.no_events||e.fire("SetContent",r),n}(u,e,s,l):(t=u,n=e,o=l,0===(r=s).length||/^\s+$/.test(r)?(a='<br data-mce-bogus="1">',"TABLE"===n.nodeName?r="<tr><td>"+a+"</td></tr>":/^(UL|OL)$/.test(n.nodeName)&&(r="<li>"+a+"</li>"),(i=mc(t))&&t.schema.isValidChild(n.nodeName.toLowerCase(),i.toLowerCase())?(r=a,r=t.dom.createHTML(i,t.settings.forced_root_block_attrs,r)):r||(r='<br data-mce-bogus="1">'),_f(t,r),t.fire("SetContent",o)):("raw"!==o.format&&(r=jc({validate:t.validate},t.schema).serialize(t.parser.parse(r,{isRootContent:!0,insert:!0}))),o.content=Ko(cr.fromDom(n))?r:en.trim(r),_f(t,o.content),o.no_events||t.fire("SetContent",o)),o.content);var t,n,r,o,i,a})},Pf=function(e,t){return e.fire("PreProcess",t)},Vf=function(e,t){return e.fire("PostProcess",t)},If=function(e){return e.fire("remove")},Ff=function(e){return e.fire("detach")},Uf=function(e,t){return e.fire("SwitchMode",{mode:t})},jf=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},qf=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},$f=Di.DOM,Wf=function(e){return T.from(e).each(function(e){return e.destroy()})},Kf=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&$f.remove(o.nextSibling),If(e),e.editorManager.remove(e),!e.inline&&r&&(i=e,$f.setStyle(i.id,"display",i.orgDisplay)),Ff(e),$f.remove(e.getContainer()),Wf(t),Wf(n),e.destroy()}var i},Xf=function(e,t){var n,r,o,i=e.selection,a=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Wf(i),Wf(a)),(r=(n=e).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),$f.unbind(r,"submit reset",n.formEventDelegate)),(o=e).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),e.destroyed=!0):e.remove())},Yf=Lr("sections","settings"),Gf=sr.detect(),Jf=Gf.deviceType.isTouch(),Qf=Gf.deviceType.isPhone(),Zf=["lists","autolink","autosave"],ed=Qf?{theme:"mobile"}:{},td=function(e){var t=p(e)?e.join(" "):e,n=X(K(t)?t.split(" "):[],er);return S(n,function(e){return 0<e.length})},nd=function(e,t,n,r){var o,i,a=td(n.forced_plugins),u=td(r.plugins),s=e&&(o="mobile",t.sections().hasOwnProperty(o))?S(u,d(N,Zf)):u,l=(i=s,[].concat(td(a)).concat(td(i)));return en.extend(r,{plugins:l.join(" ")})},rd=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h,m,g=(o=["mobile"],i=Nr(r,function(e,t){return N(o,t)}),Yf(i.t,i.f)),p=en.extend(t,n,g.settings(),(h=e,m=g.settings().inline,h&&!m?(l="mobile",c=ed,f=g.sections(),d=f.hasOwnProperty(l)?f[l]:{},en.extend({},c,d)):{}),{validate:!0,external_plugins:(a=n,u=g.settings(),s=u.external_plugins?u.external_plugins:{},a&&a.external_plugins?en.extend({},a.external_plugins,s):s)});return nd(e,g,n,p)},od=function(e,t,n){return T.from(t.settings[n]).filter(e)},id=function(e,t,n,r){var o,i,a,u=t in e.settings?e.settings[t]:n;return"hash"===r?(a={},"string"==typeof(i=u)?A(0<i.indexOf("=")?i.split(/[;,](?![^=;,]*(?:[;,]|$))/):i.split(","),function(e){var t=e.split("=");1<t.length?a[en.trim(t[0])]=en.trim(t[1]):a[en.trim(t[0])]=en.trim(t[0])}):a=i,a):"string"===r?od(K,e,t).getOr(n):"number"===r?od(C,e,t).getOr(n):"boolean"===r?od(y,e,t).getOr(n):"object"===r?od(x,e,t).getOr(n):"array"===r?od(p,e,t).getOr(n):"string[]"===r?od((o=K,function(e){return p(e)&&_(e,o)}),e,t).getOr(n):"function"===r?od(b,e,t).getOr(n):u},ad=function(e,t){return t.dom()[e]},ud=function(e,t){return parseInt(Or(t,e),10)},sd=d(ad,"clientWidth"),ld=d(ad,"clientHeight"),cd=d(ud,"margin-top"),fd=d(ud,"margin-left"),dd=function(e,t,n){var r,o,i,a,u,s,l,c,f,d,h,m=cr.fromDom(e.getBody()),g=e.inline?m:(r=m,cr.fromDom(r.dom().ownerDocument.documentElement)),p=(o=e.inline,a=t,u=n,s=(i=g).dom().getBoundingClientRect(),{x:a-(o?s.left+i.dom().clientLeft+fd(i):0),y:u-(o?s.top+i.dom().clientTop+cd(i):0)});return c=p.x,f=p.y,d=sd(l=g),h=ld(l),0<=c&&0<=f&&c<=d&&f<=h},hd=function(e){var t,n=e.inline?e.getBody():e.getContentAreaContainer();return(t=n,T.from(t).map(cr.fromDom)).map(function(e){return Kr(Xr(e),e)}).getOr(!1)};function md(n){var t,o=[],i=function(){var e=n.theme;return e&&e.getNotificationManagerImpl?e.getNotificationManagerImpl():function t(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}()},a=function(){0<o.length&&i().reposition(o)},u=function(t){D(o,function(e){return e===t}).each(function(e){o.splice(e,1)})},r=function(r){if(!n.removed&&hd(n))return R(o,function(e){return t=i().getArgs(e),n=r,!(t.type!==n.type||t.text!==n.text||t.progressBar||t.timeout||n.progressBar||n.timeout);var t,n}).getOrThunk(function(){n.editorManager.setActive(n);var e,t=i().open(r,function(){u(t),a()});return e=t,o.push(e),a(),t})};return(t=n).on("SkinLoaded",function(){var e=t.settings.service_message;e&&r({text:e,type:"warn",timeout:0})}),t.on("ResizeEditor ResizeWindow NodeChange",function(){Ie.requestAnimationFrame(a)}),t.on("remove",function(){A(o.slice(),function(e){i().close(e)})}),{open:r,close:function(){T.from(o[0]).each(function(e){i().close(e),u(e),a()})},getNotifications:function(){return o}}}var gd,pd=function(n){var r=[],o=function(){var e=n.theme;return e&&e.getWindowManagerImpl?e.getWindowManagerImpl():function t(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}()},i=function(e,t){return function(){return t?t.apply(e,arguments):undefined}},a=function(e){var t;r.push(e),t=e,n.fire("OpenWindow",{dialog:t})},u=function(t){var e;e=t,n.fire("CloseWindow",{dialog:e}),0===(r=S(r,function(e){return e!==t})).length&&n.focus()},s=function(e){n.editorManager.setActive(n),hf(n);var t=e();return a(t),t};return n.on("remove",function(){A(r,function(e){o().close(e)})}),{open:function(e,t){return s(function(){return o().open(e,t,u)})},openUrl:function(e){return s(function(){return o().openUrl(e,u)})},alert:function(e,t,n){o().alert(e,i(n||this,t))},confirm:function(e,t,n){o().confirm(e,i(n||this,t))},close:function(){T.from(r[r.length-1]).each(function(e){o().close(e),u(e)})}}},vd=function(e,t){e.notificationManager.open({type:"error",text:t})},yd=function(e,t){e._skinLoaded?vd(e,t):e.on("SkinLoaded",function(){vd(e,t)})},bd=function(e){j.console.error(e)},Cd=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},wd=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},xd={pluginLoadError:function(e,t){bd(Cd("plugin",e,t))},iconsLoadError:function(e,t){bd(Cd("icons",e,t))},languageLoadError:function(e,t){bd(Cd("language",e,t))},pluginInitError:function(e,t,n){var r=Ii.translate(["Failed to initialize plugin: {0}",t]);wd(r,n),yd(e,r)},uploadError:function(e,t){yd(e,Ii.translate(["Failed to upload image: {0}",t]))},displayError:yd,initError:wd},zd=(gd={},{add:function(e,t){gd[e]=t},get:function(e){return gd[e]?gd[e]:{icons:{}}},has:function(e){return Sr(gd,e)}}),Nd=ji.PluginManager,Ed=ji.ThemeManager;function Sd(){return new(le.getOrDie("XMLHttpRequest"))}function kd(u,s){var r={},n=function(e,r,o,t){var i,n;(i=Sd()).open("POST",s.url),i.withCredentials=s.credentials,i.upload.onprogress=function(e){t(e.loaded/e.total*100)},i.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=function(){var e,t,n;i.status<200||300<=i.status?o("HTTP Error: "+i.status):(e=JSON.parse(i.responseText))&&"string"==typeof e.location?r((t=s.basePath,n=e.location,t?t.replace(/\/$/,"")+"/"+n.replace(/^\//,""):n)):o("Invalid JSON: "+i.responseText)},(n=new j.FormData).append("file",e.blob(),e.filename()),i.send(n)},l=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},f=function(e,t){en.each(r[e],function(e){e(t)}),delete r[e]},o=function(e,n){return e=en.grep(e,function(e){return!u.isUploaded(e.blobUri())}),_e.all(en.map(e,function(e){return u.isPending(e.blobUri())?(t=e.blobUri(),new _e(function(e){r[t]=r[t]||[],r[t].push(e)})):(o=e,i=s.handler,a=n,u.markPending(o.blobUri()),new _e(function(t){var n;try{var r=function(){n&&n.close()};i(o,function(e){r(),u.markUploaded(o.blobUri(),e),f(o.blobUri(),l(o,e)),t(l(o,e))},function(e){r(),u.removeFailed(o.blobUri()),f(o.blobUri(),c(o,e)),t(c(o,e))},function(e){e<0||100<e||(n||(n=a()),n.progressBar.value(e))})}catch(e){t(c(o,e.message))}}));var o,i,a,t}))};return!1===b(s.handler)&&(s.handler=n),{upload:function(e,t){return s.url||s.handler!==n?o(e,t):new _e(function(e){e([])})}}}var Td=function(e){return le.getOrDie("atob")(e)},Ad=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},Md=function(a){return new _e(function(e){var t,n,r,o=Ad(a);try{t=Td(o.data)}catch(eE){return void e(new j.Blob([]))}for(n=function i(e){return new(le.getOrDie("Uint8Array"))(e)}(t.length),r=0;r<n.length;r++)n[r]=t.charCodeAt(r);e(new j.Blob([n],{type:o.type}))})},Rd=function(e){return 0===e.indexOf("blob:")?(i=e,new _e(function(e,t){var n=function(){t("Cannot convert "+i+" to Blob. Resource might not exist or is inaccessible.")};try{var r=Sd();r.open("GET",i,!0),r.responseType="blob",r.onload=function(){200===this.status?e(this.response):n()},r.onerror=n,r.send()}catch(o){n()}})):0===e.indexOf("data:")?Md(e):null;var i},Dd=function(r){return new _e(function(e){var t=function n(){return new(le.getOrDie("FileReader"))}();t.onloadend=function(){e(t.result)},t.readAsDataURL(r)})},Bd=Ad,Od=0,Hd=function(e){return(e||"blobid")+Od++};function _d(i,l){var a={};return{findAll:function(e,n){var t,r;n||(n=$(!0)),t=S((r=e)?I(r.getElementsByTagName("img")):[],function(e){var t=e.src;return!!He.fileApi&&!e.hasAttribute("data-mce-bogus")&&!e.hasAttribute("data-mce-placeholder")&&!(!t||t===He.transparentSrc)&&(0===t.indexOf("blob:")?!i.isUploaded(t)&&n(e):0===t.indexOf("data:")&&n(e))});var o=X(t,function(s){if(a[s.src])return new _e(function(t){a[s.src].then(function(e){if("string"==typeof e)return e;t({image:s,blobInfo:e.blobInfo})})});var e=new _e(function(e,t){var n,r,o,i,a,u;n=l,o=e,i=t,0!==(r=s).src.indexOf("blob:")?(a=Bd(r.src).data,(u=n.findFirst(function(e){return e.base64()===a}))?o({image:r,blobInfo:u}):Rd(r.src).then(function(e){u=n.create(Hd(),e,a),n.add(u),o({image:r,blobInfo:u})},function(e){i(e)})):(u=n.getByUri(r.src))?o({image:r,blobInfo:u}):Rd(r.src).then(function(t){Dd(t).then(function(e){a=Bd(e).data,u=n.create(Hd(),t,a),n.add(u),o({image:r,blobInfo:u})})},function(e){i(e)})}).then(function(e){return delete a[e.image.src],e})["catch"](function(e){return delete a[s.src],e});return a[s.src]=e});return _e.all(o)}}}var Ld=0,Pd=function(e){return e+Ld+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t};var Vd,Id,Fd=function(o){var n,i,t,e,a,r,u=(n=[],i=function(e){var t,n,r;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=e.id||Pd("blobid"),n=e.name||t,{id:$(t),name:$(n),filename:$(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:$(e.blob),base64:$(e.base64),blobUri:$(e.blobUri||fe(e.blob)),uri:$(e.uri)}},{create:function(e,t,n,r){if(K(e))return i({id:e,name:r,blob:t,base64:n});if(x(e))return i(e);throw new Error("Unknown input type")},add:function(e){t(e.id())||n.push(e)},get:t=function(t){return e(function(e){return e.id()===t})},getByUri:function(t){return e(function(e){return e.blobUri()===t})},findFirst:e=function(e){return S(n,e)[0]},removeByUri:function(t){n=S(n,function(e){return e.blobUri()!==t||(de(e.blobUri()),!1)})},destroy:function(){A(n,function(e){de(e.blobUri())}),n=[]}}),s=function w(){var n={},r=function(e,t){return{status:e,resultUri:t}},t=function(e){return e in n};return{hasBlobUri:t,getResultUri:function(e){var t=n[e];return t?t.resultUri:null},isPending:function(e){return!!t(e)&&1===n[e].status},isUploaded:function(e){return!!t(e)&&2===n[e].status},markPending:function(e){n[e]=r(1,null)},markUploaded:function(e,t){n[e]=r(2,t)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}(),l=[],c=function(t){return function(e){return o.selection?t(e):[]}},f=function(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e},d=function(e,t,n){return e=f(e,'src="'+t+'"','src="'+n+'"'),e=f(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},h=function(t,n){A(o.undoManager.data,function(e){"fragmented"===e.type?e.fragments=X(e.fragments,function(e){return d(e,t,n)}):e.content=d(e.content,t,n)})},m=function(){return o.notificationManager.open({text:o.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},g=function(e,t){u.removeByUri(e.src),h(e.src,t),o.$(e).attr({src:Sc(o)?t+"?"+(new Date).getTime():t,"data-mce-src":o.convertURL(t,"src")})},p=function(n){return a||(a=kd(s,{url:Tc(o),basePath:Ac(o),credentials:Mc(o),handler:Rc(o)})),b().then(c(function(r){var e;return e=X(r,function(e){return e.blobInfo}),a.upload(e,m).then(c(function(e){var t=X(e,function(e,t){var n=r[t].image;return e.status&&kc(o)?g(n,e.url):e.error&&xd.uploadError(o,e.error),{element:n,status:e.status}});return n&&n(t),t}))}))},v=function(e){if(Ec(o))return p(e)},y=function(t){return!1!==_(l,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Nc(o)(t))},b=function(){return r||(r=_d(s,u)),r.findAll(o.getBody(),y).then(c(function(e){return e=S(e,function(e){return"string"!=typeof e||(xd.displayError(o,e),!1)}),A(e,function(e){h(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),e}))},C=function(e){return e.replace(/src="(blob:[^"]+)"/g,function(e,n){var t=s.getResultUri(n);if(t)return'src="'+t+'"';var r=u.getByUri(n);return r||(r=M(o.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':e})};return o.on("SetContent",function(){Ec(o)?v():b()}),o.on("RawSaveContent",function(e){e.content=C(e.content)}),o.on("GetContent",function(e){e.source_view||"raw"===e.format||(e.content=C(e.content))}),o.on("PostRender",function(){o.parser.addNodeFilter("img",function(e){A(e,function(e){var t=e.attr("src");if(!u.getByUri(t)){var n=s.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:u,addFilter:function(e){l.push(e)},uploadImages:p,uploadImagesAuto:v,scanForImages:b,destroy:function(){u.destroy(),s.destroy(),r=a=null}}},Ud=function(e,t,n){return Kr(t,e)?function(e,t){for(var n=b(t)?t:$(!1),r=e.dom(),o=[];null!==r.parentNode&&r.parentNode!==undefined;){var i=r.parentNode,a=cr.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o}(e,function(e){return n(e)||Wr(e,t)}).slice(0,-1):[]},jd=function(e,t){return Ud(e,t,$(!1))},qd=jd,$d=function(e,t){return[e].concat(jd(e,t))},Wd=function(e,t){return e.hasOwnProperty(t.nodeName)},Kd=function(e,t){if(Oo.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||Wd(e,t.nextSibling)))return!0}return!1},Xd=function(e){var t,n,r,o,i,a,u,s,l,c,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=mc(e);if(g&&Oo.isElement(g)&&v&&(c=p.nodeName.toLowerCase(),h.isValidChild(c,v.toLowerCase())&&(y=m,b=p,C=g,!E(qd(cr.fromDom(C),cr.fromDom(b)),function(e){return Wd(y,e.dom())})))){var y,b,C,w,x;for(n=(t=d.getRng()).startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,l=Bf(e),g=p.firstChild;g;)if(w=m,x=g,Oo.isText(x)||Oo.isElement(x)&&!Wd(w,x)&&!zl(x)){if(Kd(m,g)){g=(u=g).nextSibling,f.remove(u);continue}a||(a=f.create(v,gc(e)),g.parentNode.insertBefore(a,g),s=!0),g=(u=g).nextSibling,a.appendChild(u)}else a=null,g=g.nextSibling;s&&l&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},Yd=function(e){mc(e)&&e.on("NodeChange",d(Xd,e))},Gd=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},Jd=function(t){return ro(t).fold($([t]),function(e){return[t].concat(Jd(e))})},Qd=function(t){return oo(t).fold($([t]),function(e){return"br"===mr(e)?Jr(e).map(function(e){return[t].concat(Qd(e))}).getOr([]):[t].concat(Qd(e))})},Zd=function(o,e){return fu([(i=e,a=i.startContainer,u=i.startOffset,Oo.isText(a)?0===u?T.some(cr.fromDom(a)):T.none():T.from(a.childNodes[u]).map(cr.fromDom)),(t=e,n=t.endContainer,r=t.endOffset,Oo.isText(n)?r===n.data.length?T.some(cr.fromDom(n)):T.none():T.from(n.childNodes[r-1]).map(cr.fromDom))],function(e,t){var n=R(Jd(o),d(Wr,e)),r=R(Qd(o),d(Wr,t));return n.isSome()&&r.isSome()}).getOr(!1);var t,n,r,i,a,u},eh=function(e,t,n,r){var o=n,i=new Ho(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==en.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(He.ie&&He.ie<11&&e.isBlock(n)&&e.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},th=function(e){var t=e.selection.getSel();return t&&0<t.rangeCount},nh=function(){function e(r){var o;this.lastPath=[],this.editor=r;var t=this;"onselectionchange"in r.getDoc()||r.on("NodeChange click mouseup keyup focus",function(e){var t,n;n={startContainer:(t=r.selection.getRng()).startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset},"nodechange"!==e.type&&Gd(n,o)||r.fire("SelectionChange"),o=n}),r.on("contextmenu",function(){r.fire("SelectionChange")}),r.on("SelectionChange",function(){var e=r.selection.getStart(!0);!e||!He.range&&r.selection.isCollapsed()||th(r)&&!t.isSameElementPath(e)&&r.dom.isChildOf(e,r.getBody())&&r.nodeChanged({selectionChange:!0})}),r.on("mouseup",function(e){!e.isDefaultPrevented()&&th(r)&&("IMG"===r.selection.getNode().nodeName?Ie.setEditorTimeout(r,function(){r.nodeChanged()}):r.nodeChanged())})}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!this.editor.settings.disable_nodechange&&!this.editor.readonly&&(r=this.editor.getBody(),(t=o.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,function(e){if(e===r)return!0;n.push(e)}),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if((n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e)).length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),rh=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),n=(t=e.ownerDocument).documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},oh=function(e,t){return n=(u=e).inline?rh(u.getBody()):{left:0,top:0},a=(i=e).getBody(),r=i.inline?{left:a.scrollLeft,top:a.scrollTop}:{left:0,top:0},{pageX:(o=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,o,i,a,u=rh(e.getContentAreaContainer()),s=(r=(n=e).getBody(),o=n.getDoc().documentElement,i={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||o.scrollLeft,top:r.scrollTop||o.scrollTop},n.inline?i:a);return{left:t.pageX-u.left+s.left,top:t.pageY-u.top+s.top}}(e,t)).left-n.left+r.left,pageY:o.top-n.top+r.top};var n,r,o,i,a,u},ih=Oo.isContentEditableFalse,ah=Oo.isContentEditableTrue,uh=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},sh=function(u,s){return function(e){if(0===e.button){var t=R(s.dom.getParents(e.target),mu(ih,ah)).getOr(null);if(i=s.getBody(),ih(a=t)&&a!==i){var n=s.dom.getPos(t),r=s.getBody(),o=s.getDoc().documentElement;u.element=t,u.screenX=e.screenX,u.screenY=e.screenY,u.maxX=(s.inline?r.scrollWidth:o.offsetWidth)-2,u.maxY=(s.inline?r.scrollHeight:o.offsetHeight)-2,u.relX=e.pageX-n.x,u.relY=e.pageY-n.y,u.width=t.offsetWidth,u.height=t.offsetHeight,u.ghost=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i}(s,t,u.width,u.height)}}var i,a}},lh=function(c,f){return function(e){if(c.dragging&&(s=(i=f).selection,l=s.getSel().getRangeAt(0).startContainer,a=3===l.nodeType?l.parentNode:l,u=c.element,a!==u&&!i.dom.isChildOf(a,u)&&!ih(a))){var t=(r=c.element,(o=r.cloneNode(!0)).removeAttribute("data-mce-selected"),o),n=f.fire("drop",{targetClone:t,clientX:e.clientX,clientY:e.clientY});n.isDefaultPrevented()||(t=n.targetClone,f.undoManager.transact(function(){uh(c.element),f.insertContent(f.dom.getOuterHTML(t)),f._selectionOverrides.hideFakeCaret()}))}var r,o,i,a,u,s,l;ch(c)}},ch=function(e){e.dragging=!1,e.element=null,uh(e.ghost)},fh=function(e){var t,n,r,o,i,a,g,p,v,u,s,l={};t=Di.DOM,a=j.document,n=sh(l,e),g=l,p=e,v=Ie.throttle(function(e,t){p._selectionOverrides.hideFakeCaret(),p.selection.placeCaretAt(e,t)},0),r=function(e){var t,n,r,o,i,a,u,s,l,c,f,d,h=Math.max(Math.abs(e.screenX-g.screenX),Math.abs(e.screenY-g.screenY));if(g.element&&!g.dragging&&10<h){if(p.fire("dragstart",{target:g.element}).isDefaultPrevented())return;g.dragging=!0,p.focus()}if(g.dragging){var m=(f=g,{pageX:(d=oh(p,e)).pageX-f.relX,pageY:d.pageY+5});l=g.ghost,c=p.getBody(),l.parentNode!==c&&c.appendChild(l),t=g.ghost,n=m,r=g.width,o=g.height,i=g.maxX,a=g.maxY,s=u=0,t.style.left=n.pageX+"px",t.style.top=n.pageY+"px",n.pageX+r>i&&(u=n.pageX+r-i),n.pageY+o>a&&(s=n.pageY+o-a),t.style.width=r-u+"px",t.style.height=o-s+"px",v(e.clientX,e.clientY)}},o=lh(l,e),u=l,i=function(){u.dragging&&s.fire("dragend"),ch(u)},(s=e).on("mousedown",n),e.on("mousemove",r),e.on("mouseup",o),t.bind(a,"mousemove",r),t.bind(a,"mouseup",i),e.on("remove",function(){t.unbind(a,"mousemove",r),t.unbind(a,"mouseup",i)})},dh=function(e){var n;fh(e),(n=e).on("drop",function(e){var t="undefined"!=typeof e.clientX?n.getDoc().elementFromPoint(e.clientX,e.clientY):null;(ih(t)||ih(n.dom.getContentEditableParent(t)))&&e.preventDefault()})},hh=function(e){return M(e,function(e,t){return e.concat(function(t){var e=function(e){return X(e,function(e){return(e=tu(e)).node=t,e})};if(Oo.isElement(t))return e(t.getClientRects());if(Oo.isText(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}}(t))},[])};(Id=Vd||(Vd={}))[Id.Up=-1]="Up",Id[Id.Down=1]="Down";var mh,gh,ph,vh=function(o,i,a,e,u,t){var n,s,l=0,c=[],r=function(e){var t,n,r;for(r=hh([e]),-1===o&&(r=r.reverse()),t=0;t<r.length;t++)if(n=r[t],!a(n,s)){if(0<c.length&&i(n,Yt.last(c))&&l++,n.line=l,u(n))return!0;c.push(n)}};return(s=Yt.last(t.getClientRects()))&&(r(n=t.getNode()),function(e,t,n,r){for(;r=Ds(r,e,Za,t);)if(n(r))return}(o,e,r,n)),c},yh=d(vh,Vd.Up,ou,iu),bh=d(vh,Vd.Down,iu,ou),Ch=function(n){return function(e){return t=n,e.line>t;var t}},wh=function(n){return function(e){return t=n,e.line===t;var t}},xh=Oo.isContentEditableFalse,zh=Ds,Nh=function(e,t){return Math.abs(e.left-t)},Eh=function(e,t){return Math.abs(e.right-t)},Sh=function(e,t){return e>=t.left&&e<=t.right},kh=function(e,o){return Yt.reduce(e,function(e,t){var n,r;return n=Math.min(Nh(e,o),Eh(e,o)),r=Math.min(Nh(t,o),Eh(t,o)),Sh(o,t)?t:Sh(o,e)?e:r===n&&xh(t.node)?t:r<n?t:e})},Th=function(e,t,n,r){for(;r=zh(r,e,Za,t);)if(n(r))return},Ah=function(e,t,n){var r,o,i,a,u,s,l,c=hh(S(I(e.getElementsByTagName("*")),xs)),f=S(c,function(e){return n>=e.top&&n<=e.bottom});return(r=kh(f,t))&&(r=kh((a=e,l=function(t,e){var n;return n=S(hh([e]),function(e){return!t(e,u)}),s=s.concat(n),0===n.length},(s=[]).push(u=r),Th(Vd.Up,a,d(l,ou),u.node),Th(Vd.Down,a,d(l,iu),u.node),s),t))&&xs(r.node)?(i=t,{node:(o=r).node,before:Nh(o,i)<Eh(o,i)}):null},Mh=function(t,n,e){if(e.collapsed)return!1;if(He.ie&&He.ie<=11&&e.startOffset===e.endOffset-1&&e.startContainer===e.endContainer){var r=e.startContainer.childNodes[e.startOffset];if(Oo.isElement(r))return E(r.getClientRects(),function(e){return au(e,t,n)})}return E(e.getClientRects(),function(e){return au(e,t,n)})},Rh=Oo.isContentEditableTrue,Dh=Oo.isContentEditableFalse,Bh=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},Oh=function(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(n=t).ownerDocument.createRange()).selectNode(n),r)},Hh=function(e,t,n){var r=Is(1,e.getBody(),t),o=_u.fromRangeStart(r),i=o.getNode();if(Dh(i))return Bh(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Dh(a))return Bh(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return Dh(e)||Rh(e)});return Dh(u)?Bh(1,e,u,!1,n):null},_h=function(e,t,n){if(!t||!t.collapsed)return t;var r=Hh(e,t,n);return r||t},Lh=function(t){var e=Qi(function(){if(!t.removed&&t.getBody().contains(j.document.activeElement)&&t.selection.getRng().collapsed){var e=_h(t,t.selection.getRng(),!1);t.selection.setRng(e)}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},Ph={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return He.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Vh=(mh="\xa0",function(e){return mh===e}),Ih=function(e){return/^[\r\n\t ]$/.test(e)},Fh=function(e){return!Ih(e)&&!Vh(e)},Uh=function(n,r,o){return T.from(o.container()).filter(Oo.isText).exists(function(e){var t=n?0:-1;return r(e.data.charAt(o.offset()+t))})},jh=d(Uh,!0,Ih),qh=d(Uh,!1,Ih),$h=function(e){var t=e.container();return Oo.isText(t)&&0===t.data.length},Wh=function(t,n){return function(e){return T.from(Hs(t?0:-1,e)).filter(n).isSome()}},Kh=function(e){return"IMG"===e.nodeName&&"block"===Or(cr.fromDom(e),"display")},Xh=function(e){return Oo.isContentEditableFalse(e)&&!Oo.isBogusAll(e)},Yh=Wh(!0,Kh),Gh=Wh(!1,Kh),Jh=Wh(!0,Oo.isTable),Qh=Wh(!1,Oo.isTable),Zh=Wh(!0,Xh),em=Wh(!1,Xh),tm=Oo.isContentEditableTrue,nm=Oo.isContentEditableFalse,rm=function(e,t){for(var n=e.getBody();t&&t!==n;){if(tm(t)||nm(t))return t;t=t.parentNode}return null},om=function(m){var g,a=m.getBody(),o=Cs(m.getBody(),function(e){return m.dom.isBlock(e)},function(){return Bf(m)}),p="sel-"+m.dom.uniqueId(),u=function(e){e&&m.selection.setRng(e)},s=function(){return m.selection.getRng()},v=function(e,t,n,r){return void 0===r&&(r=!0),m.fire("ShowCaret",{target:t,direction:e,before:n}).isDefaultPrevented()?null:(r&&m.selection.scrollIntoView(t,-1===e),o.show(n,t))},y=function(e,t){return t=Is(e,a,t),-1===e?_u.fromRangeStart(t):_u.fromRangeEnd(t)},t=function(e){return Ha(e)||Ia(e)||Fa(e)},b=function(e){return t(e.startContainer)||t(e.endContainer)},l=function(e,t){var n,r,o,i,a,u,s,l,c,f,d=m.$,h=m.dom;if(!e)return null;if(e.collapsed){if(!b(e))if(!1===t){if(l=y(-1,e),xs(l.getNode(!0)))return v(-1,l.getNode(!0),!1,!1);if(xs(l.getNode()))return v(-1,l.getNode(),!l.isAtEnd(),!1)}else{if(l=y(1,e),xs(l.getNode()))return v(1,l.getNode(),!l.isAtEnd(),!1);if(xs(l.getNode(!0)))return v(1,l.getNode(!0),!1,!1)}return null}return i=e.startContainer,a=e.startOffset,u=e.endOffset,3===i.nodeType&&0===a&&nm(i.parentNode)&&(i=i.parentNode,a=h.nodeIndex(i),i=i.parentNode),1!==i.nodeType?null:(u===a+1&&i===e.endContainer&&(n=i.childNodes[a]),nm(n)?(c=f=n.cloneNode(!0),(s=m.fire("ObjectSelected",{target:n,targetClone:c})).isDefaultPrevented()?null:(r=ha(cr.fromDom(m.getBody()),"#"+p).fold(function(){return d([])},function(e){return d([e.dom()])}),c=s.targetClone,0===r.length&&(r=d('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",p)).appendTo(m.getBody()),e=m.dom.createRng(),c===f&&He.ie?(r.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xa0</p>').append(c),e.setStartAfter(r[0].firstChild.firstChild),e.setEndAfter(c)):(r.empty().append("\xa0").append(c).append("\xa0"),e.setStart(r[0].firstChild,1),e.setEnd(r[0].lastChild,0)),r.css({top:h.getPos(n,m.getBody()).y}),r[0].focus(),(o=m.selection.getSel()).removeAllRanges(),o.addRange(e),A(ua(cr.fromDom(m.getBody()),"*[data-mce-selected]"),function(e){Br(e,"data-mce-selected")}),n.setAttribute("data-mce-selected","1"),g=n,C(),e)):null)},c=function(){g&&(g.removeAttribute("data-mce-selected"),ha(cr.fromDom(m.getBody()),"#"+p).each(Gi),g=null),ha(cr.fromDom(m.getBody()),"#"+p).each(Gi),g=null},C=function(){o.hide()};return He.ceFalse&&function(){m.on("mouseup",function(e){var t=s();t.collapsed&&dd(m,e.clientX,e.clientY)&&u(Hh(m,t,!1))}),m.on("click",function(e){var t;(t=rm(m,e.target))&&(nm(t)&&(e.preventDefault(),m.focus()),tm(t)&&m.dom.isChildOf(t,m.selection.getNode())&&c())}),m.on("blur NewBlock",function(){c()}),m.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n,r,i=function(e,t){var n,r,o=m.dom.getParent(e,m.dom.isBlock),i=m.dom.getParent(t,m.dom.isBlock);return!(!o||!m.dom.isChildOf(o,i)||!1!==nm(rm(m,o)))||o&&(n=o,r=i,!(m.dom.getParent(n,m.dom.isBlock)===m.dom.getParent(r,m.dom.isBlock)))&&function(e){var t=nl(e);if(!e.firstChild)return!1;var n=_u.before(e.firstChild),r=t.next(n);return r&&!Zh(r)&&!em(r)}(o)};r=!1,(n=m).on("touchstart",function(){r=!1}),n.on("touchmove",function(){r=!0}),n.on("touchend",function(e){var t=rm(n,e.target);nm(t)&&(r||(e.preventDefault(),l(Oh(n,t))))}),m.on("mousedown",function(e){var t,n=e.target;if((n===a||"HTML"===n.nodeName||m.dom.isChildOf(n,a))&&!1!==dd(m,e.clientX,e.clientY))if(t=rm(m,n))nm(t)?(e.preventDefault(),l(Oh(m,t))):(c(),tm(t)&&e.shiftKey||Mh(e.clientX,e.clientY,m.selection.getRng())||(C(),m.selection.placeCaretAt(e.clientX,e.clientY)));else if(!1===xs(n)){c(),C();var r=Ah(a,e.clientX,e.clientY);if(r&&!i(e.target,r.node)){e.preventDefault();var o=v(1,r.node,r.before,!1);m.getBody().focus(),u(o)}}}),m.on("keypress",function(e){Ph.modifierPressed(e)||(e.keyCode,nm(m.selection.getNode())&&e.preventDefault())}),m.on("GetSelectionRange",function(e){var t=e.range;if(g){if(!g.parentNode)return void(g=null);(t=t.cloneRange()).selectNode(g),e.range=t}}),m.on("SetSelectionRange",function(e){var t;(t=l(e.range,e.forward))&&(e.range=t)});m.on("AfterSetSelectionRange",function(e){var t,n=e.range;b(n)||"mcepastebin"===n.startContainer.parentNode.id||C(),t=n.startContainer.parentNode,m.dom.hasClass(t,"mce-offscreen-selection")||c()}),m.on("copy",function(e){var t,n=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!He.ie){var r=(t=m.dom.get(p))?t.getElementsByTagName("*")[0]:t;r&&(e.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),dh(m),Lh(m)}(),{showCaret:v,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Ua(e),u(s()),m.selection.scrollIntoView(e[0]))},hideFakeCaret:C,destroy:function(){o.destroy(),g=null}}},im=0,am=2,um=1,sm=function(m,g){var e=m.length+g.length+2,p=new Array(e),v=new Array(e),l=function(e,t,n,r,o){var i=c(e,t,n,r);if(null===i||i.start===t&&i.diag===t-r||i.end===e&&i.diag===e-n)for(var a=e,u=n;a<t||u<r;)a<t&&u<r&&m[a]===g[u]?(o.push([0,m[a]]),++a,++u):r-n<t-e?(o.push([2,m[a]]),++a):(o.push([1,g[u]]),++u);else{l(e,i.start,n,i.start-i.diag,o);for(var s=i.start;s<i.end;++s)o.push([0,m[s]]);l(i.end,t,i.end-i.diag,r,o)}},y=function(e,t,n,r){for(var o=e;o-t<r&&o<n&&m[o]===g[o-t];)++o;return{start:e,end:o,diag:t}},c=function(e,t,n,r){var o=t-e,i=r-n;if(0===o||0===i)return null;var a,u,s,l,c,f=o-i,d=i+o,h=(d%2==0?d:d+1)/2;for(p[1+h]=e,v[1+h]=t+1,a=0;a<=h;++a){for(u=-a;u<=a;u+=2){for(s=u+h,u===-a||u!==a&&p[s-1]<p[s+1]?p[s]=p[s+1]:p[s]=p[s-1]+1,c=(l=p[s])-e+n-u;l<t&&c<r&&m[l]===g[c];)p[s]=++l,++c;if(f%2!=0&&f-a<=u&&u<=f+a&&v[s-f]<=p[s])return y(v[s-f],u+e-n,t,r)}for(u=f-a;u<=f+a;u+=2){for(s=u+h-f,u===f-a||u!==f+a&&v[s+1]<=v[s-1]?v[s]=v[s+1]-1:v[s]=v[s-1],c=(l=v[s]-1)-e+n-u;e<=l&&n<=c&&m[l]===g[c];)v[s]=l--,c--;if(f%2==0&&-a<=u&&u<=a&&v[s]<=p[s+f])return y(v[s],u+e-n,t,r)}}},t=[];return l(0,m.length,0,g.length,t),t},lm=function(e){return Oo.isElement(e)?e.outerHTML:Oo.isText(e)?ui.encodeRaw(e.data,!1):Oo.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},cm=function(e,t,n){var r=function(e){var t,n,r;for(r=j.document.createElement("div"),t=j.document.createDocumentFragment(),e&&(r.innerHTML=e);n=r.firstChild;)t.appendChild(n);return t}(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},fm=function(e){return S(X(I(e.childNodes),lm),function(e){return 0<e.length})},dm=function(e,t){var n,r,o,i=X(I(t.childNodes),lm);return n=sm(i,e),r=t,o=0,A(n,function(e){e[0]===im?o++:e[0]===um?(cm(r,e[1],o),o++):e[0]===am&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(r,o)}),t},hm=Li(T.none()),mm=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},gm=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},pm=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},vm=function(e){var t=cr.fromTag("body",hm.get().getOrThunk(function(){var e=j.document.implementation.createHTMLDocument("undo");return hm.set(T.some(e)),e}));return Sa(t,pm(e)),A(ua(t,"*[data-mce-bogus]"),Ji),t.dom().innerHTML},ym=function(n){var e,t,r;return e=fm(n.getBody()),t=(r=H(e,function(e){var t=ic.trimInternal(n.serializer,e);return 0<t.length?[t]:[]})).join(""),-1!==t.indexOf("</iframe>")?mm(r):gm(t)},bm=function(e,t,n){"fragmented"===t.type?dm(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},Cm=function(e,t){return!(!e||!t)&&(r=t,pm(e)===pm(r)||(n=t,vm(e)===vm(n)));var n,r},wm=function(u){var s,r,o=this,l=0,c=[],t=0,f=function(){return 0===t},i=function(e){f()&&(o.typing=e)},d=function(e){u.setDirty(e)},a=function(e){i(!1),o.add({},e)},n=function(){o.typing&&(i(!1),o.add())};u.on("init",function(){o.add()}),u.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(n(),o.beforeChange())}),u.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&a(e)}),u.on("ObjectResizeStart cut",function(){o.beforeChange()}),u.on("SaveContent ObjectResized blur",a),u.on("dragend",a),u.on("keyup",function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(a(),u.nodeChanged()),46!==t&&8!==t||u.nodeChanged(),r&&o.typing&&!1===Cm(ym(u),c[0])&&(!1===u.isDirty()&&(d(!0),u.fire("change",{level:c[0],lastLevel:null})),u.fire("TypingUndo"),r=!1,u.nodeChanged()))}),u.on("keydown",function(e){var t=e.keyCode;if(!e.isDefaultPrevented())if(33<=t&&t<=36||37<=t&&t<=40||45===t)o.typing&&a(e);else{var n=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||20<t)||224===t||91===t||o.typing||n||(o.beforeChange(),i(!0),o.add({},e),r=!0)}}),u.on("mousedown",function(e){o.typing&&a(e)});return u.on("input",function(e){var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data)&&a(e)}),u.addShortcut("meta+z","","Undo"),u.addShortcut("meta+y,meta+shift+z","","Redo"),u.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||u.nodeChanged()}),o={data:c,typing:!1,beforeChange:function(){f()&&(s=rs.getUndoBookmark(u.selection))},add:function(e,t){var n,r,o,i=u.settings;if(o=ym(u),e=e||{},e=en.extend(e,o),!1===f()||u.removed)return null;if(r=c[l],u.fire("BeforeAddUndo",{level:e,lastLevel:r,originalEvent:t}).isDefaultPrevented())return null;if(r&&Cm(r,e))return null;if(c[l]&&(c[l].beforeBookmark=s),i.custom_undo_redo_levels&&c.length>i.custom_undo_redo_levels){for(n=0;n<c.length-1;n++)c[n]=c[n+1];c.length--,l=c.length}e.bookmark=rs.getUndoBookmark(u.selection),l<c.length-1&&(c.length=l+1),c.push(e),l=c.length-1;var a={level:e,lastLevel:r,originalEvent:t};return u.fire("AddUndo",a),0<l&&(d(!0),u.fire("change",a)),e},undo:function(){var e;return o.typing&&(o.add(),o.typing=!1,i(!1)),0<l&&(e=c[--l],bm(u,e,!0),d(!0),u.fire("Undo",{level:e})),e},redo:function(){var e;return l<c.length-1&&(e=c[++l],bm(u,e,!1),d(!0),u.fire("Redo",{level:e})),e},clear:function(){c=[],l=0,o.typing=!1,o.data=c,u.fire("ClearUndos")},reset:function(){o.clear(),o.add()},hasUndo:function(){return 0<l||o.typing&&c[0]&&!Cm(ym(u),c[0])},hasRedo:function(){return l<c.length-1&&!o.typing},transact:function(e){return n(),o.beforeChange(),o.ignore(e),o.add()},ignore:function(e){try{t++,e()}finally{t--}},extra:function(e,t){var n,r;o.transact(e)&&(r=c[l].bookmark,n=c[l-1],bm(u,n,!0),o.transact(t)&&(c[l-1].beforeBookmark=r))}}},xm=function(e){var t=ua(e,"br"),n=S(function(e){for(var t=[],n=e.dom();n;)t.push(cr.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),Io);t.length===n.length&&A(n,Gi)},zm=function(e){Yi(e),Ki(e,cr.fromHtml('<br data-mce-bogus="1">'))},Nm=function(n){oo(n).each(function(t){Jr(t).each(function(e){Po(n)&&Io(t)&&Po(e)&&Gi(t)})})},Em=kl.isEq,Sm=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&e.dom.is(t,r[o].selector))return!0;return!1},km=function(t,e,n,r){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,function(e){return!!Sm(t,e,n)||(e.parentNode===o||!!Mm(t,e,n,r,!0))}),Mm(t,e,n,r))},Tm=function(e,t,n){return!!Em(t,n.inline)||(!!Em(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Am=function(e,t,n,r,o,i){var a,u,s,l=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(l)if("undefined"==typeof l.length){for(a in l)if(l.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):kl.getStyle(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!Em(u,kl.normalizeStyleValue(e,kl.replaceVars(l[a],i),a)))return}}else for(s=0;s<l.length;s++)if("attributes"===r?e.getAttrib(t,l[s]):kl.getStyle(e,t,l[s]))return n;return n},Mm=function(e,t,n,r,o){var i,a,u,s,l=e.formatter.get(n),c=e.dom;if(l&&t)for(a=0;a<l.length;a++)if(i=l[a],Tm(e.dom,t,i)&&Am(c,t,i,"attributes",o,r)&&Am(c,t,i,"styles",o,r)){if(s=i.classes)for(u=0;u<s.length;u++)if(!e.dom.hasClass(t,s[u]))return;return i}},Rm={matchNode:Mm,matchName:Tm,match:function(e,t,n,r){var o;return r?km(e,r,t,n):(r=e.selection.getNode(),!!km(e,r,t,n)||!((o=e.selection.getStart())===r||!km(e,o,t,n)))},matchAll:function(r,o,i){var e,a=[],u={};return e=r.selection.getStart(),r.dom.getParent(e,function(e){var t,n;for(t=0;t<o.length;t++)n=o[t],!u[n]&&Mm(r,e,n,i)&&(u[n]=!0,a.push(n))},r.dom.getRoot()),a},canApply:function(e,t){var n,r,o,i,a,u=e.formatter.get(t),s=e.dom;if(u)for(n=e.selection.getStart(),r=kl.getParents(s,n),i=u.length-1;0<=i;i--){if(!(a=u[i].selector)||u[i].defaultBlock)return!0;for(o=r.length-1;0<=o;o--)if(s.is(r[o],a))return!0}return!1},matchesUnInheritedFormatSelector:Sm},Dm=function(e,t){return e.splitText(t)},Bm=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Oo.isText(t)?0<n&&n<t.nodeValue.length&&(t=(r=Dm(t,n)).previousSibling,n<o?(t=r=Dm(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(Oo.isText(t)&&0<n&&n<t.nodeValue.length&&(t=Dm(t,n),n=0),Oo.isText(r)&&0<o&&o<r.nodeValue.length&&(o=(r=Dm(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},Om=function(e,t,n){if(0!==n){var r,o,i,a=e.data.slice(t,t+n),u=t+n>=e.data.length,s=0===t;e.replaceData(t,n,(o=s,i=u,M(r=a,function(e,t){return-1!==" \f\n\r\t\x0B".indexOf(t)||"\xa0"===t?e.previousCharIsSpace||""===e.str&&o||e.str.length===r.length-1&&i?{previousCharIsSpace:!1,str:e.str+"\xa0"}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str))}},Hm=function(e,t){var n,r=e.data.slice(t),o=r.length-(n=r,n.replace(/^\s+/g,"")).length;return Om(e,t,o)},_m=function(e,t){var n,r,o,i=cr.fromDom(e),a=cr.fromDom(t);return n=a,r="pre,code",o=d(Wr,i),da(n,r,o).isSome()},Lm=function(e,t){return Ja(t)&&!1===(r=e,o=t,Oo.isText(o)&&/^[ \t\r\n]*$/.test(o.data)&&!1===_m(r,o))||(n=t,Oo.isElement(n)&&"A"===n.nodeName&&n.hasAttribute("name"))||Pm(t);var n,r,o},Pm=Oo.hasAttribute("data-mce-bookmark"),Vm=Oo.hasAttribute("data-mce-bogus"),Im=Oo.hasAttributeValue("data-mce-bogus","all"),Fm=function(e){return function(e){var t,n=0;if(Lm(e,e))return!1;if(!(t=e.firstChild))return!0;var r=new Ho(t,e);do{if(Im(t))t=r.next(!0);else if(Vm(t))t=r.next();else if(Oo.isBr(t))n++,t=r.next();else{if(Lm(e,t))return!1;t=r.next()}}while(t);return n<=1}(e.dom())},Um=function(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===_u.isTextPosition(n)&&o===r.parentNode&&i>_u.before(r).offset()?_u(t.container(),t.offset()-1):t;var n,r,o,i},jm=function(e){return Ja(e.previousSibling)?T.some((t=e.previousSibling,Oo.isText(t)?_u(t,t.data.length):_u.after(t))):e.previousSibling?hl.lastPositionIn(e.previousSibling):T.none();var t},qm=function(e){return Ja(e.nextSibling)?T.some((t=e.nextSibling,Oo.isText(t)?_u(t,0):_u.before(t))):e.nextSibling?hl.firstPositionIn(e.nextSibling):T.none();var t},$m=function(r,o){return jm(o).orThunk(function(){return qm(o)}).orThunk(function(){return e=r,t=o,n=_u.before(t.previousSibling?t.previousSibling:t.parentNode),hl.prevPosition(e,n).fold(function(){return hl.nextPosition(e,_u.after(t))},T.some);var e,t,n})},Wm=function(n,r){return qm(r).orThunk(function(){return jm(r)}).orThunk(function(){return e=n,t=r,hl.nextPosition(e,_u.after(t)).fold(function(){return hl.prevPosition(e,_u.before(t))},T.some);var e,t})},Km=function(e,t,n){return(r=e,o=t,i=n,r?Wm(o,i):$m(o,i)).map(d(Um,n));var r,o,i},Xm=function(t,n,e){e.fold(function(){t.focus()},function(e){t.selection.setRng(e.toRange(),n)})},Ym=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(mr(t))},Gm=function(e){if(Fm(e)){var t=cr.fromHtml('<br data-mce-bogus="1">');return Yi(e),Ki(e,t),T.some(_u.before(t.dom()))}return T.none()},Jm=function(e,t,c){var n=Jr(e).filter(function(e){return Oo.isText(e.dom())}),r=Qr(e).filter(function(e){return Oo.isText(e.dom())});return Gi(e),fu([n,r,t],function(e,t,n){var r,o,i,a,u=e.dom(),s=t.dom(),l=u.data.length;return o=s,i=c,a=tr((r=u).data).length,r.appendData(o.data),Gi(cr.fromDom(o)),i&&Hm(r,a),n.container()===s?_u(u,l):n}).orThunk(function(){return c&&(n.each(function(e){return t=e.dom(),n=e.dom().length,r=t.data.slice(0,n),o=r.length-tr(r).length,Om(t,n-o,o);var t,n,r,o}),r.each(function(e){return Hm(e.dom(),0)})),t})},Qm=function(t,n,e,r){void 0===r&&(r=!0);var o,i,a=Km(n,t.getBody(),e.dom()),u=ca(e,d(Ym,t),(o=t.getBody(),function(e){return e.dom()===o})),s=Jm(e,a,(i=e,Sr(t.schema.getTextInlineElements(),mr(i))));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):u.bind(Gm).fold(function(){r&&Xm(t,n,s)},function(e){r&&Xm(t,n,T.some(e))})},Zm=Aa,eg="_mce_caret",tg=function(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==Zm||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length},ng=function(e){if(e){var t=new Ho(e,e);for(e=t.current();e;e=t.next())if(3===e.nodeType)return e}return null},rg=function(e){var t=cr.fromTag("span");return Rr(t,{id:eg,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Ki(t,cr.fromText(Zm)),t},og=function(e,t,n){void 0===n&&(n=!0);var r,o=e.dom,i=e.selection;if(tg(t))Qm(e,!1,cr.fromDom(t),n);else{var a=i.getRng(),u=o.getParent(t,o.isBlock),s=((r=ng(t))&&r.nodeValue.charAt(0)===Zm&&r.deleteData(0,1),r);a.startContainer===s&&0<a.startOffset&&a.setStart(s,a.startOffset-1),a.endContainer===s&&0<a.endOffset&&a.setEnd(s,a.endOffset-1),o.remove(t,!0),u&&o.isEmpty(u)&&zm(cr.fromDom(u)),i.setRng(a)}},ig=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)og(e,t,n);else if(!(t=as(e.getBody(),o.getStart())))for(;t=r.get(eg);)og(e,t,!1)},ag=function(e,t,n){var r=e.dom,o=r.getParent(n,d(kl.isTextBlock,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(xm(cr.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},ug=function(e,t){return e.appendChild(t),t},sg=function(e,t){var n=k(e,function(e,t){return ug(e,t.cloneNode(!1))},t);return ug(n,n.ownerDocument.createTextNode(Zm))},lg=function(i){i.on("mouseup keydown",function(e){var t,n,r,o;t=i,n=e.keyCode,r=t.selection,o=t.getBody(),ig(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==Zm||ig(t,as(o,r.getStart())),37!==n&&39!==n||ig(t,as(o,r.getStart()))})},cg=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(mr(t))&&!is(t.dom())&&!Oo.isBogus(t.dom())},fg={},dg=Yt.filter,hg=Yt.each;ph=function(e){var t,n,r=e.selection.getRng();t=Oo.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),hg(dg(dg(n,t),function(e){return t(e.previousSibling)&&-1!==Yt.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,Bn(n=e).remove(),Bn(t).append("<br><br>").append(n.childNodes)}))},fg[gh="pre"]||(fg[gh]=[]),fg[gh].push(ph);var mg=function(e,t){hg(fg[e],function(e){e(t)})},gg=en.each,pg=function(o){this.compare=function(e,t){if(e.nodeName!==t.nodeName)return!1;var n=function(n){var r={};return gg(o.getAttribs(n),function(e){var t=e.nodeName.toLowerCase();0!==t.indexOf("_")&&"style"!==t&&0!==t.indexOf("data-")&&(r[t]=o.getAttrib(n,t))}),r},r=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(void 0===(n=t[r]))return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!!r(n(e),n(t))&&(!!r(o.parseStyle(o.getAttrib(e,"style")),o.parseStyle(o.getAttrib(t,"style")))&&(!zl(e)&&!zl(t)))}},vg=/^(src|href|style)$/,yg=en.each,bg=kl.isEq,Cg=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},wg=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],Oo.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[i<o?i:o]),Oo.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Ho(r,e.getBody()).next()||r),Oo.isText(r)&&!n&&0===o&&(r=new Ho(r,e.getBody()).prev()||r),r},xg=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},zg=function(e,t,n,r,o){var i=cr.fromDom(t),a=cr.fromDom(e.create(r,o)),u=n?eo(i):Zr(i);return Xi(a,u),n?(qi(i,a),Wi(a,i)):($i(i,a),Ki(a,i)),a.dom()},Ng=function(e,t,n,r){return!(t=kl.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},Eg=function(e,r,o,i,a){var t,n,u,s,l,c,f,d,h,m,g,p,v,y,b=e.dom;if(!(l=b,bg(c=i,(f=r).inline)||bg(c,f.block)||(f.selector?Oo.isElement(c)&&l.is(c,f.selector):void 0)||(s=i,r.links&&"A"===s.tagName)))return!1;if("all"!==r.remove)for(yg(r.styles,function(e,t){e=kl.normalizeStyleValue(b,kl.replaceVars(e,o),t),"number"==typeof t&&(t=e,a=0),(r.remove_similar||!a||bg(kl.getStyle(b,a,t),e))&&b.setStyle(i,t,""),u=1}),u&&""===b.getAttrib(i,"style")&&(i.removeAttribute("style"),i.removeAttribute("data-mce-style")),yg(r.attributes,function(e,t){var n;if(e=kl.replaceVars(e,o),"number"==typeof t&&(t=e,a=0),r.remove_similar||!a||bg(b.getAttrib(a,t),e)){if("class"===t&&(e=b.getAttrib(i,t))&&(n="",yg(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(n+=(n?" ":"")+e)}),n))return void b.setAttrib(i,t,n);"class"===t&&i.removeAttribute("className"),vg.test(t)&&i.removeAttribute("data-mce-"+t),i.removeAttribute(t)}}),yg(r.classes,function(e){e=kl.replaceVars(e,o),a&&!b.hasClass(a,e)||b.removeClass(i,e)}),n=b.getAttribs(i),t=0;t<n.length;t++){var C=n[t].nodeName;if(0!==C.indexOf("_")&&0!==C.indexOf("data-"))return!1}return"none"!==r.remove?(d=e,m=r,p=(h=i).parentNode,v=d.dom,y=mc(d),m.block&&(y?p===v.getRoot()&&(m.list_block&&bg(h,m.list_block)||yg(en.grep(h.childNodes),function(e){kl.isValid(d,y,e.nodeName.toLowerCase())?g?g.appendChild(e):(g=xg(v,e,y),v.setAttribs(g,d.settings.forced_root_block_attrs)):g=0})):v.isBlock(h)&&!v.isBlock(p)&&(Ng(v,h,!1)||Ng(v,h.firstChild,!0,1)||h.insertBefore(v.create("br"),h.firstChild),Ng(v,h,!0)||Ng(v,h.lastChild,!1,1)||h.appendChild(v.create("br")))),m.selector&&m.inline&&!bg(m.inline,h)||v.remove(h,1),!0):void 0},Sg=Eg,kg=function(s,l,c,e,f){var t,n,d=s.formatter.get(l),h=d[0],a=!0,u=s.dom,r=s.selection,i=function(e){var n,t,r,o,i,a,u=(n=s,t=e,r=l,o=c,i=f,yg(kl.getParents(n.dom,t.parentNode).reverse(),function(e){var t;a||"_start"===e.id||"_end"===e.id||(t=Rm.matchNode(n,e,r,o,i))&&!1!==t.split&&(a=e)}),a);return function(e,t,n,r,o,i,a,u){var s,l,c,f,d,h,m=e.dom;if(n){for(h=n.parentNode,s=r.parentNode;s&&s!==h;s=s.parentNode){for(l=m.clone(s,!1),d=0;d<t.length;d++)if(Eg(e,t[d],u,l,l)){l=0;break}l&&(c&&l.appendChild(c),f||(f=l),c=l)}!i||a.mixed&&m.isBlock(n)||(r=m.split(n,r)),c&&(o.parentNode.insertBefore(c,o),f.appendChild(o))}return r}(s,d,u,e,e,!0,h,c)},m=function(e){var t,n,r,o,i;if(Oo.isElement(e)&&u.getContentEditable(e)&&(o=a,a="true"===u.getContentEditable(e),i=!0),t=en.grep(e.childNodes),a&&!i)for(n=0,r=d.length;n<r&&!Eg(s,d[n],c,e,e);n++);if(h.deep&&t.length){for(n=0,r=t.length;n<r;n++)m(t[n]);i&&(a=o)}},g=function(e){var t,n=u.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return zl(t=r)&&Oo.isElement(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Oo.isText(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),u.remove(n,!0),r},o=function(e){var t,n,r=e.commonAncestorContainer;if(e=Vl(s,e,d,!0),h.split){if(e=Bm(e),(t=wg(s,e,!0))!==(n=wg(s,e))){if(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t="TR"===t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),r&&/^T(HEAD|BODY|FOOT|R)$/.test(r.nodeName)&&/^(TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n=n.firstChild||n),Cg(u,t,n)){var o=T.from(t.firstChild).getOr(t);return i(zg(u,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(Cg(u,n,t))return o=T.from(n.lastChild).getOr(n),i(zg(u,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1);t=xg(u,t,"span",{id:"_start","data-mce-type":"bookmark"}),n=xg(u,n,"span",{id:"_end","data-mce-type":"bookmark"}),i(t),i(n),t=g(!0),n=g()}else t=n=i(t);e.startContainer=t.parentNode?t.parentNode:t,e.startOffset=u.nodeIndex(t),e.endContainer=n.parentNode?n.parentNode:n,e.endOffset=u.nodeIndex(n)+1}Fl(u,e,function(e){yg(e,function(e){m(e),Oo.isElement(e)&&"underline"===s.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===kl.getTextDecoration(u,e.parentNode)&&Eg(s,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})};if(e)e.nodeType?((n=u.createRng()).setStartBefore(e),n.setEndAfter(e),o(n)):o(e);else if("false"!==u.getContentEditable(r.getNode()))r.isCollapsed()&&h.inline&&!u.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var o,i,a,u,s,l,c,f=e.dom,d=e.selection,h=[],m=d.getRng();for(o=m.startContainer,i=m.startOffset,3===(s=o).nodeType&&(i!==o.nodeValue.length&&(u=!0),s=s.parentNode);s;){if(Rm.matchNode(e,s,t,n,r)){l=s;break}s.nextSibling&&(u=!0),h.push(s),s=s.parentNode}if(l)if(u){a=d.getBookmark(),m.collapse(!0);var g=Vl(e,m,e.formatter.get(t),!0);g=Bm(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{c=as(e.getBody(),l);var p=rg(!1).dom(),v=sg(h,p);ag(e,p,c||l),og(e,c,!1),d.setCursorLocation(v,1),f.isEmpty(l)&&f.remove(l)}}(s,l,c,f):(t=rs.getPersistentBookmark(s.selection,!0),o(r.getRng()),r.moveToBookmark(t),h.inline&&Rm.match(s,l,c,r.getStart())&&kl.moveStart(u,r,r.getRng()),s.nodeChanged());else{e=r.getNode();for(var p=0,v=d.length;p<v&&(!d[p].ceFalseOverride||!Eg(s,d[p],c,e,e));p++);}},Tg=en.each,Ag=function(e){return e&&1===e.nodeType&&!zl(e)&&!is(e)&&!Oo.isBogus(e)},Mg=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!zl(n))return n}return e},Rg=function(e,t,n){var r,o,i=new pg(e);if(t&&n&&(t=Mg(t,"previousSibling"),n=Mg(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)r=(o=r).nextSibling,t.appendChild(o);return e.remove(n),en.each(en.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Dg=function(e,t,n){Tg(e.childNodes,function(e){Ag(e)&&(t(e)&&n(e),e.hasChildNodes()&&Dg(e,t,n))})},Bg=function(n,e){return d(function(e,t){return!(!t||!kl.getStyle(n,t,e))},e)},Og=function(r,e,t){return d(function(e,t,n){r.setStyle(n,e,t),""===n.getAttribute("style")&&n.removeAttribute("style"),Hg(r,n)},e,t)},Hg=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},_g=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=kl.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},Lg=function(n,e,r,o){Tg(e,function(t){Tg(n.dom.select(t.inline,o),function(e){Ag(e)&&Sg(n,t,r,e,t.exact?e:null)}),function(r,e,t){if(e.clear_child_styles){var n=e.links?"*:not(a)":"*";Tg(r.select(n,t),function(n){Ag(n)&&Tg(e.styles,function(e,t){r.setStyle(n,t,"")})})}}(n.dom,t,o)})},Pg=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(en.walk(r,d(_g,e),"childNodes"),_g(e,r))},Vg=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Dg(r,Bg(e,"fontSize"),Og(e,"backgroundColor",kl.replaceVars(t.styles.backgroundColor,n)))},Ig=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Dg(r,Bg(e,"fontSize"),Og(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Fg=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=Rg(e,kl.getNonWhiteSpaceSibling(r),r),r=Rg(e,r,kl.getNonWhiteSpaceSibling(r,!0)))},Ug=function(t,n,r,o,i){Rm.matchNode(t,i.parentNode,r,o)&&Sg(t,n,o,i)||n.merge_with_parents&&t.dom.getParent(i.parentNode,function(e){if(Rm.matchNode(t,e,r,o))return Sg(t,n,o,i),!0})},jg=function(a){var u=_u.fromRangeStart(a),s=_u.fromRangeEnd(a),l=a.commonAncestorContainer;return hl.fromPosition(!1,l,s).map(function(e){return!Os(u,s,l)&&Os(u,e,l)?(t=u.container(),n=u.offset(),r=e.container(),o=e.offset(),(i=j.document.createRange()).setStart(t,n),i.setEnd(r,o),i):a;var t,n,r,o,i}).getOr(a)},qg=function(e){return e.collapsed?e:jg(e)},$g=en.each,Wg=function(m,g,p,r){var e,t,v=m.formatter.get(g),y=v[0],o=!r&&m.selection.isCollapsed(),i=m.dom,n=m.selection,b=function(n,e){if(e=e||y,n){if(e.onformat&&e.onformat(n,e,p,r),$g(e.styles,function(e,t){i.setStyle(n,t,kl.replaceVars(e,p))}),e.styles){var t=i.getAttrib(n,"style");t&&n.setAttribute("data-mce-style",t)}$g(e.attributes,function(e,t){i.setAttrib(n,t,kl.replaceVars(e,p))}),$g(e.classes,function(e){e=kl.replaceVars(e,p),i.hasClass(n,e)||i.addClass(n,e)})}},C=function(e,t){var n=!1;return!!y.selector&&($g(e,function(e){if(!("collapsed"in e&&e.collapsed!==o))return i.is(t,e.selector)&&!is(t)?(b(t,e),!(n=!0)):void 0}),n)},a=function(s,e,t,l){var c,f,d=[],h=!0;c=y.inline||y.block,f=s.create(c),b(f),Fl(s,e,function(e){var a,u=function(e){var t,n,r,o;if(o=h,t=e.nodeName.toLowerCase(),n=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&s.getContentEditable(e)&&(o=h,h="true"===s.getContentEditable(e),r=!0),kl.isEq(t,"br"))return a=0,void(y.block&&s.remove(e));if(y.wrapper&&Rm.matchNode(m,e,g,p))a=0;else{if(h&&!r&&y.block&&!y.wrapper&&kl.isTextBlock(m,t)&&kl.isValid(m,n,c))return e=s.rename(e,c),b(e),d.push(e),void(a=0);if(y.selector){var i=C(v,e);if(!y.inline||i)return void(a=0)}!h||r||!kl.isValid(m,c,t)||!kl.isValid(m,n,c)||!l&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||is(e)||y.inline&&s.isBlock(e)?(a=0,$g(en.grep(e.childNodes),u),r&&(h=o),a=0):(a||(a=s.clone(f,!1),e.parentNode.insertBefore(a,e),d.push(a)),a.appendChild(e))}};$g(e,u)}),!0===y.links&&$g(d,function(e){var t=function(e){"A"===e.nodeName&&b(e,y),$g(en.grep(e.childNodes),t)};t(e)}),$g(d,function(e){var t,n,r,o,i,