app.e52b3593.js 767 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*!
  2. * build: Hopaheal
  3. * copyright: Mead
  4. * time: 2022-7-23 18:51:45
  5. */(function(e){function t(t){for(var r,o,u=t[0],s=t[1],c=t[2],l=0,f=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&f.push(i[o][0]),i[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);d&&d(t);while(f.length)f.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,o=1;o<n.length;o++){var u=n[o];0!==i[u]&&(r=!1)}r&&(a.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},o={app:0},i={app:0},a=[];function u(e){return s.p+"static/js/"+({}[e]||e)+"."+{"chunk-08664264":"de99bf22","chunk-1de20c9a":"9af70e61","chunk-281c4dee":"b4458bd3","chunk-272317ee":"5af3d9ea","chunk-7a66b8fe":"4c0eb473","chunk-925dc942":"c8fc5105","chunk-4b608059":"5b90d281","chunk-58a54aa0":"ee9adcd6","chunk-73f26310":"baa72ecf","chunk-5ff8275a":"24774dfa","chunk-8521b888":"38a0b2b5","chunk-997c8a06":"80d4d040","chunk-f306698e":"8c7465e8","chunk-f4c59688":"01d21a12","chunk-fbfca964":"97cd0fce"}[e]+".js"}function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(e){var t=[],n={"chunk-08664264":1,"chunk-1de20c9a":1,"chunk-281c4dee":1,"chunk-272317ee":1,"chunk-7a66b8fe":1,"chunk-925dc942":1,"chunk-4b608059":1,"chunk-58a54aa0":1,"chunk-73f26310":1,"chunk-8521b888":1,"chunk-997c8a06":1,"chunk-f306698e":1,"chunk-f4c59688":1,"chunk-fbfca964":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-08664264":"e3b72423","chunk-1de20c9a":"103f482b","chunk-281c4dee":"b7120816","chunk-272317ee":"9c8f45aa","chunk-7a66b8fe":"f3601b8f","chunk-925dc942":"854bf14f","chunk-4b608059":"3b97b835","chunk-58a54aa0":"e4de1249","chunk-73f26310":"e137de96","chunk-5ff8275a":"31d6cfe0","chunk-8521b888":"eb9221ff","chunk-997c8a06":"7b6be3ad","chunk-f306698e":"4df2cdba","chunk-f4c59688":"0186683a","chunk-fbfca964":"c29730cd"}[e]+".css",i=s.p+r,a=document.getElementsByTagName("link"),u=0;u<a.length;u++){var c=a[u],l=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(l===r||l===i))return t()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){c=f[u],l=c.getAttribute("data-href");if(l===r||l===i)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var r=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete o[e],d.parentNode.removeChild(d),n(a)},d.href=i;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){o[e]=0})));var r=i[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,n){r=i[e]=[t,n]}));t.push(r[2]=a);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.src=u(e);var f=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",f.name="ChunkLoadError",f.type=r,f.request=o,n[1](f)}i[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var f=0;f<c.length;f++)t(c[f]);var d=l;a.push([0,"element-ui","vue"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"00ce":function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(O){s=null}var c=function(){throw new a},l=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(t){return c}}}():c,f=n("5156")(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=u("async function () {}");else if("%GeneratorFunction%"===t)n=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=u("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("0f7c"),b=n("a0d3"),w=y.call(Function.call,Array.prototype.concat),_=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),C=y.call(Function.call,String.prototype.slice),S=y.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,T=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,E,(function(e,t,n,o){r[r.length]=n?x(o,k,"$1"):t||e})),r},A=function(e,t){var n,r=e;if(b(v,r)&&(n=v[r],r="%"+n[0]+"%"),b(m,r)){var i=m[r];if(i===h&&(i=g(r)),"undefined"===typeof i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=T(e),r=n.length>0?n[0]:"",i=A("%"+r+"%",t),u=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],_(n,w([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],g=C(p,0,1),v=C(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&h||(l=!0),r+="."+p,u="%"+r+"%",b(m,u))c=m[u];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var y=s(c,p);h=!!y,c=h&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else h=b(c,p),c=c[p];h&&!l&&(m[u]=c)}}return c}},"05bc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("router-view",{key:e.key})},o=[],i=n("2f62"),a=n("f121"),u={name:"VabRouterView",data(){return{key:null,keepAliveMaxNum:a["keepAliveMaxNum"],dept:this.findParent(this).length,parentNames:null}},computed:{...Object(i["c"])({cachedRoutes:"routes/cachedRoutes"})},watch:{$route:{handler(e){const t=e.matched.map(e=>e.name),n=t.slice(0,this.dept).join(",");this.parentNames||(this.parentNames=n);const r=t.slice(0,this.dept+1).join(",");1!==this.dept&&n!==this.parentNames||(this.key=this.dept===t.length-1?e.fullPath:r)},immediate:!0}},methods:{findParent(e){return"VabAppMain"===e.$options.name?["VabAppMain"]:"VabRouterView"===e.$options.name||e.$options.name.startsWith("El")?this.findParent(e.$parent):[...this.findParent(e.$parent),e.$options.name]}}},s=u,c=n("2877"),l=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=l.exports},"0781":function(e,t,n){"use strict";n.r(t);var r=n("61f7"),o=n("f121");const i={layout:o["layout"],themeName:o["themeName"],columnStyle:o["columnStyle"],fixedHeader:o["fixedHeader"],showProgressBar:o["showProgressBar"],showTabs:o["showTabs"],tabsBarStyle:o["tabsBarStyle"],showTabsBarIcon:o["showTabsBarIcon"],showRefresh:o["showRefresh"],showSearch:o["showSearch"],showTheme:o["showTheme"],showNotice:o["showNotice"],showFullScreen:o["showFullScreen"],showThemeSetting:o["showThemeSetting"]},a=e=>{const t=localStorage.getItem(e);return!!Object(r["isJson"])(t)&&JSON.parse(t)},{collapse:u}=a("collapse"),s=()=>({logo:o["logo"],title:o["title"],secondLineTitle:o["secondLineTitle"],device:"desktop",collapse:u||!1,theme:a("theme")||{...i},extra:{first:"",transferRouteName:""}}),c={logo:e=>e.logo,title:e=>e.title,secondLineTitle:e=>e.secondLineTitle,device:e=>e.device,collapse:e=>e.collapse,theme:e=>e.theme,extra:e=>e.extra},l={openSideBar(e){e.collapse=!1},foldSideBar(e){e.collapse=!0},toggleDevice(e,t){e.device=t},toggleCollapse(e){e.collapse=!e.collapse,localStorage.setItem("collapse",`{"collapse":${e.collapse}}`)},saveTheme(e){localStorage.setItem("theme",JSON.stringify(e.theme))},resetTheme(e){e.theme={...i},localStorage.removeItem("theme"),document.getElementsByTagName("body")[0].className="vab-theme-"+e.theme.themeName}},f={openSideBar({commit:e}){e("openSideBar")},foldSideBar({commit:e}){e("foldSideBar")},toggleDevice({commit:e},t){e("toggleDevice",t)},toggleCollapse({commit:e}){e("toggleCollapse")},saveTheme({commit:e}){e("saveTheme")},resetTheme({commit:e}){e("resetTheme")}};t["default"]={state:s,getters:c,mutations:l,actions:f}},"09a9":function(e,t,n){"use strict";n("efdf")},"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),i=n("f6b4"),a=n("5270"),u=n("4a7b"),s=n("848b"),c=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=u(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);while(l.length)o=o.then(l.shift(),l.shift());return o}var f=e;while(n.length){var d=n.shift(),h=n.shift();try{f=d(f)}catch(p){h(p);break}}try{o=a(f)}catch(p){return Promise.reject(p)}while(i.length)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=u(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a48":function(e,t,n){"use strict";n.r(t),n.d(t,"checkNeed",(function(){return u}));n("caad");var r=n("a026"),o=n("4360"),i=n("f121"),a=n("61f7");const u=()=>{const e=Object(a["isArray"])(i["errorLog"])?[...i["errorLog"]]:[i["errorLog"]];return e.includes("production")};u()&&(r["default"].config.errorHandler=e=>{console.error("vue-admin-beautiful错误拦截:",e);const t=window.location.href;r["default"].nextTick(()=>{o["default"].dispatch("errorLog/addErrorLog",{err:e,url:t}).then(()=>{})})})},"0c07":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"vab-breadcrumb",attrs:{separator:">"}},e._l(e.levelList,(function(n,r){return t("el-breadcrumb-item",{key:r},[t("a",{on:{click:function(t){return t.preventDefault(),e.handleLink(n.redirect)}}},[n.meta&&n.meta.icon?t("vab-icon",{attrs:{icon:n.meta.icon}}):e._e(),e._v(" "+e._s(n.meta.title)+" ")],1)])})),1)},o=[],i={name:"VabBreadcrumb",data(){return{levelList:[]}},watch:{$route:{handler(){this.levelList=this.getBreadcrumb()},immediate:!0}},methods:{getBreadcrumb(){return this.$route.matched.filter(e=>e.meta&&e.meta.title)},handleLink(e){this.$router.push(e)}}},a=i,u=(n("3359"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"7080fc8d",null);t["default"]=s.exports},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0f9a":function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("c24f"),i=n("cc33"),a=n("a18c"),u=n("61f7"),s=n("f121");const c=()=>({token:Object(i["getToken"])(),username:"游客",avatar:"https://i.gtimg.cn/club/item/face/img/2/15922_100.gif",language:"zh_CN",role_id:0,type_id:0,shop_id:0,user_id:0,type:0}),l={token:e=>e.token,username:e=>e.username,avatar:e=>e.avatar,role_id:e=>e.role_id,shop_id:e=>e.shop_id,user_id:e=>e.user_id,type_id:e=>e.type_id,type:e=>e.type},f={setToken(e,t){e.token=t,Object(i["setToken"])(t)},setUsername(e,t){e.username=t},setAvatar(e,t){e.avatar=t},setRole_id(e,t){e.role_id=t},setShop_id(e,t){e.shop_id=t},setType(e,t){e.type=t},setUser_id(e,t){e.user_id=t},setType_id(e,t){e.type_id=t}},d={setVirtualRoles({commit:e,dispatch:t}){t("acl/setFull",!0,{root:!0}),e("setAvatar","https://platform.site.ximengnaikang.com/storage/resource/J2brW6q1lV660YPpdGkavYC0hl4FBAIK.png"),e("setUsername","admin(未开启登录拦截)")},async login({commit:e},t){const{data:n}=await Object(o["login"])(t),i=n[s["tokenName"]];if(!i){const e=`登录接口异常,未正确返回${s["tokenName"]}...`;throw r["default"].prototype.$baseMessage(e,"error"),e}{e("setToken",i);const t=(new Date).getHours(),n=t<8?"早上好":t<=11?"上午好":t<=13?"中午好":t<18?"下午好":"晚上好";r["default"].prototype.$baseNotify("欢迎登录"+s["title"],n+"!")}},async socialLogin({commit:e},t){const{data:n}=await Object(o["socialLogin"])(t),i=n[s["tokenName"]];if(!i){const e=`login核心接口异常,请检查返回JSON格式是否正确,是否正确返回${s["tokenName"]}...`;throw r["default"].prototype.$baseMessage(e,"error"),e}{e("setToken",i);const t=(new Date).getHours(),n=t<8?"早上好":t<=11?"上午好":t<=13?"中午好":t<18?"下午好":"晚上好";r["default"].prototype.$baseNotify("欢迎登录"+s["title"],n+"!")}},async getUserInfo({commit:e,dispatch:t}){const{data:n}=await Object(o["getUserInfo"])();console.log(n," uerinfo");const{roles:i,ability:a,type_id:s,role_id:c,id:l,type_model:f,shop_id:d}=n,h=n.name,p=n.headimg;if(h&&!Object(u["isString"])(h)||p&&!Object(u["isString"])(p)||i&&!Object(u["isArray"])(i)||a&&!Object(u["isArray"])(a)){const e="getUserInfo核心接口异常,请检查返回JSON格式是否正确";throw r["default"].prototype.$baseMessage(e,"error"),e}console.log(d,"------------------------------------"),h&&e("setUsername",h),p&&e("setAvatar",p),i&&t("acl/setRole",i,{root:!0}),a&&t("acl/setAbility",a,{root:!0}),(s||0==s)&&t("setType_id",s),f&&t("setType",f),c&&t("setRole_id",c),d&&t("setShop_id",d),l&&t("setUser_id",l)},async logout({dispatch:e}){await Object(o["logout"])(),await e("resetAll")},async resetAll({commit:e,dispatch:t}){e("setUsername","游客"),e("setAvatar","https://i.gtimg.cn/club/item/face/img/2/15922_100.gif"),e("routes/setRoutes",[],{root:!0}),await t("setToken",""),await t("acl/setFull",!1,{root:!0}),await t("acl/setRole",[],{root:!0}),await t("acl/setAbility",[],{root:!0}),await t("tabs/delAllVisitedRoutes",null,{root:!0}),await Object(a["resetRouter"])(),Object(i["removeToken"])()},setToken({commit:e},t){e("setToken",t)},setAvatar({commit:e},t){e("setAvatar",t)},setRole_id({commit:e},t){e("setRole_id",t)},setShop_id({commit:e},t){e("setShop_id",t)},setUser_id({commit:e},t){e("setUser_id",t)},setType_id({commit:e},t){e("setType_id",t)},setType({commit:e},t){e("setType",t)},setUsername({commit:e},t){e("setUsername",t)}};t["default"]={state:c,getters:l,mutations:f,actions:d}},1:function(e,t){},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),o=s(r),i=n("f893"),a=s(i),u="function"===typeof a.default&&"symbol"===typeof o.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===u(o.default)?function(e){return"undefined"===typeof e?"undefined":u(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":u(e)}},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1859:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-menu-item",{attrs:{index:e.itemOrMenu.fullPath},on:{click:e.handleLink}},[e.itemOrMenu.meta&&e.itemOrMenu.meta.icon?t("vab-icon",{attrs:{icon:e.itemOrMenu.meta.icon,"is-custom-svg":e.itemOrMenu.meta.isCustomSvg,title:e.itemOrMenu.meta.title}}):e._e(),t("span",{attrs:{title:e.itemOrMenu.meta.title}},[e._v(e._s(e.itemOrMenu.meta.title))]),e.itemOrMenu.meta&&e.itemOrMenu.meta.badge?t("el-tag",{attrs:{effect:"dark",type:"danger"}},[e._v(" "+e._s(e.itemOrMenu.meta.badge)+" ")]):e._e(),e.itemOrMenu.meta&&e.itemOrMenu.meta.dot?t("span",{staticClass:"vab-dot vab-dot-error"},[t("span")]):e._e()],1)},o=[],i=n("f121"),a=n("61f7"),u=n("2f62"),s={name:"VabMenuItem",props:{itemOrMenu:{type:Object,default(){return null}}},computed:{...Object(u["c"])({device:"settings/device"})},methods:{...Object(u["b"])({foldSideBar:"settings/foldSideBar"}),handleLink(){const e=this.itemOrMenu.path,t=this.itemOrMenu.meta.target;"_blank"===t?Object(a["isExternal"])(e)?window.open(e):this.$route.fullPath!==e&&("hash"===i["routerMode"]?window.open("/#"+e):window.open(e)):Object(a["isExternal"])(e)?window.location.href=e:this.$route.fullPath!==e&&("mobile"===this.device&&this.foldSideBar(),this.$router.push(this.itemOrMenu.fullPath))}}},c=s,l=(n("b707"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"c4531b8c",null);t["default"]=f.exports},1925:function(e,t,n){"use strict";n.r(t),n.d(t,"getList",(function(){return o}));var r=n("b775");function o(){return Object(r["default"])({url:"/search/getList",method:"get"})}},1936:function(e,t,n){"use strict";n("fa02")},"197e":function(e,t,n){e.exports={baseURL:"http://area.site.ximengnaikang.com/pap",base_url:"http://area.site.ximengnaikang.com/api",codeList:["123121"],openAuth:!0,contentType:"application/json;charset=UTF-8",requestTimeout:3e4,successCode:[200,0,"200","0"],statusName:"code",messageName:"message"}},"1c35":function(e,t,n){"use strict";(function(e){
  6. /*!
  7. * The buffer module from node.js, for the browser.
  8. *
  9. * @author Feross Aboukhadijeh <http://feross.org>
  10. * @license MIT
  11. */
  12. var r=n("1fb5"),o=n("9152"),i=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function u(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(u()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?p(e,t,n):v(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}function h(e,t){if(f(t),e=s(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(t,n);e=s(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|y(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?s(e,0):m(e,t);if("Buffer"===t.type&&i(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return Q(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,o){var i,a=1,u=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<u;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+s>u&&(n=u-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function k(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function T(e,t,n,r){return ee(X(t),e,n,r)}function A(e,t,n,r){return T(e,t,n,r)}function O(e,t,n,r){return ee(Z(t),e,n,r)}function R(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,u,s,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:i=e[o+1],128===(192&i)&&(s=(31&c)<<6|63&i,s>127&&(l=s));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a,s>2047&&(s<55296||s>57343)&&(l=s));break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u,s>65535&&s<1114112&&(l=s))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return P(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=u(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):_.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,u=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<u;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function P(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=B));return n}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=G(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function q(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function z(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return i||z(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,i){return i||z(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:Q(new c(e,r).toString()),u=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=Y(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function Q(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function Z(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)r[u]=a[u],o[a.charCodeAt(u)]=u;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],u=r[1],s=new i(f(e,a,u)),l=0,d=u>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===u&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[l++]=255&t),1===u&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(h(r));return o.join("")}function m(e){for(var t,n=e.length,o=n%3,i=[],a=16383,u=0,s=n-o;u<s;u+=a)i.push(p(e,u,u+a>s?s:u+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},2033:function(e,t,n){"use strict";n.r(t),n.d(t,"getRouterList",(function(){return o}));var r=n("b775");function o(e){return Object(r["default"])({url:"/admin/base/menu-user",method:"get",params:e})}},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,u){"undefined"===typeof a[u]?a[u]=n(r,o):e(r)?a[u]=i(t[u],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(u){e(r[u])&&t[u]?a[u]=i(t[u],r[u],o):a[u]=n(r[u],o)})),a}function i(e,t,i){var a=Array.isArray(t),u=i||{arrayMerge:r},s=u.arrayMerge||r;return a?Array.isArray(e)?s(e,t,i):n(t,i):o(e,t,i)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return i(e,n,t)}))},i}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var o=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),i=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},a=o.svg,u=o.xlink,s={};s[a.name]=a.uri,s[u.name]=u.uri;var c,l=function(e,t){void 0===e&&(e="");var r=n(s,t||{}),o=i(r);return"<svg "+o+">"+e+"</svg>"},f=o.svg,d=o.xlink,h={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[f.name]=f.uri,c[d.name]=d.uri,c)},p=function(e){this.config=n(h,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return l(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var m=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},w={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},_=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},x=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){_(e,{oldUrl:r,newUrl:n})}))}])},E="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=E),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function T(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),o=t?r.filter(t):r;return e.concat(o)}),[]);return n}var A=o.xlink.uri,O="xlink:href",R=/[{}|\\\^\[\]`"<>]/g;function N(e){return e.replace(R,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(O);if(r&&0===r.indexOf(t)){var o=r.replace(t,n);e.setAttributeNS(A,O,o)}})),e}var P,j=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],L=j.map((function(e){return"["+e+"]"})).join(","),M=function(e,t,n,r){var o=N(n),i=N(r),a=e.querySelectorAll(L),u=T(a,(function(e){var t=e.localName,n=e.value;return-1!==j.indexOf(t)&&-1!==n.indexOf("url("+o)}));u.forEach((function(e){return e.value=e.value.replace(new RegExp(D(o),"g"),i)})),B(t,o,i)},I={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},F=function(e){function t(t){var o=this;void 0===t&&(t={}),e.call(this,n(y,t));var i=r();this._emitter=i,this.node=null;var a=this,u=a.config;if(u.autoConfigure&&this._autoConfigure(t),u.syncUrlsWithBaseTag){var s=document.getElementsByTagName("base")[0].getAttribute("href");i.on(I.MOUNT,(function(){return o.updateUrls("#",s)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,u.listenLocationChangeEvent&&window.addEventListener(u.locationChangeEvent,c),u.locationChangeAngularEmitter&&S(u.locationChangeEvent),i.on(I.MOUNT,(function(e){u.moveGradientsOutsideSymbol&&k(e)})),i.on(I.SYMBOL_MOUNT,(function(e){u.moveGradientsOutsideSymbol&&k(e.parentNode),(w.isIE()||w.isEdge())&&x(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=w.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(I.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(I.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(I.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,o=n.render();return this.node=o,t&&r.childNodes[0]?r.insertBefore(o,r.childNodes[0]):r.appendChild(o),this._emitter.emit(I.MOUNT,o),o},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return M(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(t.prototype,o),t}(p),V=e((function(e){
  13. /*!
  14. * domready (c) Dustin Diaz 2014 - License MIT
  15. */
  16. !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,o="DOMContentLoaded",i=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(o,e=function(){n.removeEventListener(o,e),i=1;while(e=t.shift())e()}),function(e){i?setTimeout(e,0):t.push(e)}}))})),U="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",z=!!window[q];z?P=window[q]:(P=new F({attrs:{id:U,"aria-hidden":"true"}}),window[q]=P);var H=function(){var e=document.getElementById(U);e?P.attach(e):P.mount(document.body,!0)};document.body?H():V(H);var $=P;return $}))}).call(this,n("c8ba"))},2384:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-col",{attrs:{lg:e.span,md:24,sm:24,xl:e.span,xs:24}},[t("div",{staticClass:"left-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormLeftPanel",props:{span:{type:Number,default:14}}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},2400:function(e,t,n){"use strict";n.r(t),n.d(t,"getNewList",(function(){return o})),n.d(t,"good",(function(){return i})),n.d(t,"getStuList",(function(){return a})),n.d(t,"getTeaList",(function(){return u})),n.d(t,"getList",(function(){return s})),n.d(t,"getUser",(function(){return c})),n.d(t,"getHome",(function(){return l})),n.d(t,"doTeaEdit",(function(){return f})),n.d(t,"doEdit",(function(){return d})),n.d(t,"studentChange",(function(){return h})),n.d(t,"teacherChange",(function(){return p})),n.d(t,"userEdit",(function(){return m})),n.d(t,"logOut",(function(){return g})),n.d(t,"getSetting",(function(){return v}));var r=n("b775");function o(e){return Object(r["default"])({url:"/home",method:"get",params:e})}function i(e){return Object(r["default"])({url:"/inform/information-good",method:"post",params:e})}function a(e){return Object(r["default"])({url:"/mentor/student",method:"get",params:e})}function u(e){return Object(r["default"])({url:"/mentor/teacher",method:"get",params:e})}function s(e){return Object(r["default"])({url:"/mentor/subscribe-student",method:"get",params:e})}function c(e){return Object(r["default"])({url:"/admin/auth/me",method:"get",params:e})}function l(e){return Object(r["default"])({url:"/home",method:"get",params:e})}function f(e){return Object(r["default"])({url:"/mentor/teacher/"+e.type_id,method:"put",data:e})}function d(e){return Object(r["default"])({url:"/mentor/student/"+e.type_id,method:"put",data:e})}function h(e){return Object(r["default"])({url:"/mentor/perfect-student-info",method:"put",data:e})}function p(e){return Object(r["default"])({url:"/mentor/perfect-teacher-info",method:"put",data:e})}function m(e){return Object(r["default"])({url:"/admin/auth/me"+e.type_id,method:"put",data:e})}function g(e){return Object(r["default"])({url:"/base/auth/logout",method:"get",params:e})}function v(e){return Object(r["default"])({url:"/base/setting-key",method:"get",params:e})}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),i=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(u){if(a){if("SyntaxError"===u.name)throw i(u,this,"E_JSON_PARSE");throw u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},2714:function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,u="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&s&&"function"===typeof s.get?s.get:null,l=u&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,p=h?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,_=String.prototype.slice,x=String.prototype.replace,C=String.prototype.toUpperCase,S=String.prototype.toLowerCase,E=RegExp.prototype.test,k=Array.prototype.concat,T=Array.prototype.join,A=Array.prototype.slice,O=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,B="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,L=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=_.call(t,o.length+1);return x.call(o,n,"$&_")+"."+x.call(x.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,n,"$&_")}var I=n(1),F=I.custom,V=Q(F)?F:null;function U(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function q(e){return x.call(String(e),/"/g,"&quot;")}function z(e){return"[object Array]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function H(e){return"[object Date]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function $(e){return"[object RegExp]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function W(e){return"[object Error]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function K(e){return"[object String]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function Y(e){return"[object Number]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function G(e){return"[object Boolean]"===ee(e)&&(!P||!("object"===typeof e&&P in e))}function Q(e){if(B)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}function X(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var u=n||{};if(Z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!Z(u,"customInspect")||u.customInspect;if("boolean"!==typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return ce(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var d=String(t);return f?M(t,d):d}if("bigint"===typeof t){var h=String(t)+"n";return f?M(t,h):h}var p="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof r&&(r=0),r>=p&&p>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var m=me(u,r);if("undefined"===typeof o)o=[];else if(ne(o,t)>=0)return"[Circular]";function g(t,n,i){if(n&&(o=A.call(o),o.push(n)),i){var a={depth:u.depth};return Z(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,o)}return e(t,u,r+1,o)}if("function"===typeof t&&!$(t)){var y=te(t),b=ve(t,g);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(b.length>0?" { "+T.call(b,", ")+" }":"")}if(Q(t)){var w=B?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(t);return"object"!==typeof t||B?w:fe(w)}if(se(t)){for(var C="<"+S.call(String(t.nodeName)),E=t.attributes||[],O=0;O<E.length;O++)C+=" "+E[O].name+"="+U(q(E[O].value),"double",u);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+S.call(String(t.nodeName))+">",C}if(z(t)){if(0===t.length)return"[]";var N=ve(t,g);return m&&!pe(N)?"["+ge(N,m)+"]":"[ "+T.call(N,", ")+" ]"}if(W(t)){var F=ve(t,g);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===F.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(F,", ")+" }":"{ ["+String(t)+"] "+T.call(k.call("[cause]: "+g(t.cause),F),", ")+" }"}if("object"===typeof t&&s){if(V&&"function"===typeof t[V]&&I)return I(t,{depth:p-r});if("symbol"!==s&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var J=[];return a.call(t,(function(e,n){J.push(g(n,t,!0)+" => "+g(e,t))})),he("Map",i.call(t),J,m)}if(ae(t)){var le=[];return l.call(t,(function(e){le.push(g(e,t))})),he("Set",c.call(t),le,m)}if(oe(t))return de("WeakMap");if(ue(t))return de("WeakSet");if(ie(t))return de("WeakRef");if(Y(t))return fe(g(Number(t)));if(X(t))return fe(g(R.call(t)));if(G(t))return fe(v.call(t));if(K(t))return fe(g(String(t)));if(!H(t)&&!$(t)){var ye=ve(t,g),be=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,we=t instanceof Object?"":"null prototype",_e=!be&&P&&Object(t)===t&&P in t?_.call(ee(t),8,-1):we?"Object":"",xe=be||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Ce=xe+(_e||we?"["+T.call(k.call([],_e||[],we||[]),": ")+"] ":"");return 0===ye.length?Ce+"{}":m?Ce+"{"+ge(ye,m)+"}":Ce+"{ "+T.call(ye,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return J.call(e,t)}function ee(e){return y.call(e)}function te(e){if(e.name)return e.name;var t=w.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function oe(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function ie(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ae(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ue(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function se(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ce(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ce(_.call(e,0,t.maxStringLength),t)+r}var o=x.call(x.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,le);return U(o,"single",t)}function le(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+C.call(t.toString(16))}function fe(e){return"Object("+e+")"}function de(e){return e+" { ? }"}function he(e,t,n,r){var o=r?ge(n,r):T.call(n,", ");return e+" ("+t+") {"+o+"}"}function pe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function me(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}function ge(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function ve(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Z(e,o)?t(e[o],e):""}var i,a="function"===typeof N?N(e):[];if(B){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)Z(e,s)&&(n&&String(Number(s))===s&&s<e.length||B&&i["$"+s]instanceof Symbol||(E.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)j.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},2962:function(e,t,n){"use strict";n.r(t),n.d(t,"uploadImg",(function(){return o}));var r=n("b775");function o(e){return Object(r["default"])({url:"/admin/base/common/upload",method:"post",data:e})}},"296a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.errorLogs.length>0?t("div",[t("el-badge",{attrs:{value:e.errorLogs.length},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[t("vab-icon",{attrs:{icon:"bug-line"}})],1),t("el-dialog",{attrs:{"append-to-body":"",title:"admin-pro(vue-admin-beautiful pro 版本) 异常捕获(温馨提示:错误必须解决)",visible:e.dialogTableVisible,width:"70%"},on:{"update:visible":function(t){e.dialogTableVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("el-button",{on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"danger"},on:{click:e.clearAll}},[e._v("暂不显示")])]},proxy:!0}],null,!1,523777005)},[t("el-table",{attrs:{border:"",data:e.errorLogs}},[t("el-table-column",{attrs:{label:"报错路由"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("a",{attrs:{href:n.url,target:"_blank"}},[t("el-tag",{attrs:{type:"success"}},[e._v(e._s(n.url))])],1)]}}],null,!1,2176999649)}),t("el-table-column",{attrs:{label:"错误信息"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("el-tag",{attrs:{type:"danger"}},[e._v(e._s(n.err.message))])]}}],null,!1,2907049969)}),t("el-table-column",{attrs:{label:"错误详情",width:"120"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("el-popover",{attrs:{placement:"top-start",trigger:"hover"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("el-button",[e._v("查看")])]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.err.stack)+" ")])]}}],null,!1,2595311188)}),t("el-table-column",{attrs:{label:"操作",width:"380"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return e._l(e.searchList,(function(r,o){return t("a",{key:o,attrs:{href:r.url+n.err.message,target:"_blank"}},[t("el-button",{attrs:{type:"primary"}},[e._v(" "+e._s(r.title)+" ")])],1)}))}}],null,!1,3520737484)})],1)],1)],1):e._e()},o=[],i=n("f121"),a=n("2f62"),u={name:"VabErrorLog",data(){return{dialogTableVisible:!1,title:i["title"],abbreviation:i["abbreviation"],searchList:[{title:"百度搜索",url:"https://www.baidu.com/baidu?wd="},{title:"谷歌搜索",url:"https://www.google.com/search?q="},{title:"Magi搜索",url:"https://magi.com/search?q="}]}},computed:{...Object(a["c"])({errorLogs:"errorLog/errorLogs"})},methods:{...Object(a["b"])({clearErrorLog:"errorLog/clearErrorLog"}),clearAll(){this.dialogTableVisible=!1,this.clearErrorLog()}}},s=u,c=(n("3391"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"108b702a",null);t["default"]=l.exports},"2ad1":function(e,t,n){"use strict";n("41ec")},"2adc":function(e,t,n){!function(){0}(),function(t,n){e.exports=n()}("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"06af":function(e,t,n){},"1cdc":function(e,t,n){"use strict";n("06af")},"29a1":function(e,t,n){e.exports=n.p+"img/remixicon.symbol.f09b1c74.svg"},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=i.exec(h.stack)||a.exec(h.stack),s=u&&u[1]||!1,c=u&&u[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===s)return f[d];if(s===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},ab05:function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return t.isExternal?r("img",t._g({staticClass:"img-icon",attrs:{src:t.icon}},t.$listeners)):t.isCustomSvg?r("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[r("use",{attrs:{"xlink:href":"#vab-icon-"+t.icon}})]):t.isDefaultSvg?r("svg",t._g({staticClass:"vab-icon"},t.$listeners),[r("use",{attrs:{"xlink:href":t.remixIconPath+"#ri-"+t.icon}})]):r("i",t._g({class:(e={},e["ri-"+t.icon]=!0,e),attrs:{"aria-hidden":"true"}},t.$listeners))},u=[];function s(e){return/^(https?:|mailto:|tel:)/.test(e)}n("ab05");var c={name:"VabIcon",props:{icon:{type:String,required:!0},isCustomSvg:{type:Boolean,default:!1},isDefaultSvg:{type:Boolean,default:!1},className:{type:String,default:""}},data:function(){return{remixIconPath:n("29a1")}},computed:{isExternal:function(){return s(this.icon)},svgClass:function(){return this.className?"vab-icon ".concat(this.className):"vab-icon"}}},l=c;function f(e,t,n,r,o,i,a,u){var s,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=u?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(e,t){return s.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:c}}n("1cdc");var d=f(l,a,u,!1,null,"79aac9d9",null),h=d.exports;t["default"]=h}})["default"]})),function(){0}()},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ef0":function(e,t,n){(function(e,r){var o;
  17. /**
  18. * @license
  19. * Lodash <https://lodash.com/>
  20. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  21. * Released under MIT license <https://lodash.com/license>
  22. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  23. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  24. */(function(){var i,a="4.17.21",u=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,m=2,g=4,v=1,y=2,b=1,w=2,_=4,x=8,C=16,S=32,E=64,k=128,T=256,A=512,O=30,R="...",N=800,D=16,B=1,P=2,j=3,L=1/0,M=9007199254740991,I=17976931348623157e292,F=NaN,V=4294967295,U=V-1,q=V>>>1,z=[["ary",k],["bind",b],["bindKey",w],["curry",x],["curryRight",C],["flip",A],["partial",S],["partialRight",E],["rearg",T]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",K="[object Boolean]",Y="[object Date]",G="[object DOMException]",Q="[object Error]",X="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",oe="[object Proxy]",ie="[object RegExp]",ae="[object Set]",ue="[object String]",se="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",ye="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",_e="[object Uint16Array]",xe="[object Uint32Array]",Ce=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Ae=RegExp(ke.source),Oe=RegExp(Te.source),Re=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Le.source),Ie=/^\s+/,Fe=/\s/,Ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Qe=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",at=rt+ot+it,ut="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",lt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=ct+lt+ft+dt,gt="['’]",vt="["+nt+"]",yt="["+mt+"]",bt="["+at+"]",wt="\\d+",_t="["+ut+"]",xt="["+st+"]",Ct="[^"+nt+mt+wt+ut+st+ht+"]",St="\\ud83c[\\udffb-\\udfff]",Et="(?:"+bt+"|"+St+")",kt="[^"+nt+"]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+ht+"]",Rt="\\u200d",Nt="(?:"+xt+"|"+Ct+")",Dt="(?:"+Ot+"|"+Ct+")",Bt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",jt=Et+"?",Lt="["+pt+"]?",Mt="(?:"+Rt+"(?:"+[kt,Tt,At].join("|")+")"+Lt+jt+")*",It="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vt=Lt+jt+Mt,Ut="(?:"+[_t,Tt,At].join("|")+")"+Vt,qt="(?:"+[kt+bt+"?",bt,Tt,At,vt].join("|")+")",zt=RegExp(gt,"g"),Ht=RegExp(bt,"g"),$t=RegExp(St+"(?="+St+")|"+qt+Vt,"g"),Wt=RegExp([Ot+"?"+xt+"+"+Bt+"(?="+[yt,Ot,"$"].join("|")+")",Dt+"+"+Pt+"(?="+[yt,Ot+Nt,"$"].join("|")+")",Ot+"?"+Nt+"+"+Bt,Ot+"+"+Pt,Ft,It,wt,Ut].join("|"),"g"),Kt=RegExp("["+Rt+nt+at+pt+"]"),Yt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qt=-1,Xt={};Xt[pe]=Xt[me]=Xt[ge]=Xt[ve]=Xt[ye]=Xt[be]=Xt[we]=Xt[_e]=Xt[xe]=!0,Xt[H]=Xt[$]=Xt[de]=Xt[K]=Xt[he]=Xt[Y]=Xt[Q]=Xt[X]=Xt[Z]=Xt[ee]=Xt[ne]=Xt[ie]=Xt[ae]=Xt[ue]=Xt[le]=!1;var Jt={};Jt[H]=Jt[$]=Jt[de]=Jt[he]=Jt[K]=Jt[Y]=Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[Z]=Jt[ee]=Jt[ne]=Jt[ie]=Jt[ae]=Jt[ue]=Jt[se]=Jt[be]=Jt[we]=Jt[_e]=Jt[xe]=!0,Jt[Q]=Jt[X]=Jt[le]=!1;var Zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,un="object"==typeof self&&self&&self.Object===Object&&self,sn=an||un||Function("return this")(),cn=t&&!t.nodeType&&t,ln=cn&&"object"==typeof r&&r&&!r.nodeType&&r,fn=ln&&ln.exports===cn,dn=fn&&an.process,hn=function(){try{var e=ln&&ln.require&&ln.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,mn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,bn=hn&&hn.isTypedArray;function wn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _n(e,t,n,r){var o=-1,i=null==e?0:e.length;while(++o<i){var a=e[o];t(r,a,n(a),e)}return r}function xn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function En(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function kn(e,t){var n=null==e?0:e.length;return!!n&&In(e,t,0)>-1}function Tn(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function On(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Rn(e,t,n,r){var o=-1,i=null==e?0:e.length;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Nn(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function Dn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Bn=qn("length");function Pn(e){return e.split("")}function jn(e){return e.match(ze)||[]}function Ln(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mn(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}function In(e,t,n){return t===t?pr(e,t,n):Mn(e,Vn,n)}function Fn(e,t,n,r){var o=n-1,i=e.length;while(++o<i)if(r(e[o],t))return o;return-1}function Vn(e){return e!==e}function Un(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:F}function qn(e){return function(t){return null==t?i:t[e]}}function zn(e){return function(t){return null==e?i:e[t]}}function Hn(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $n(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,o=e.length;while(++r<o){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Kn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Yn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Gn(e){return e?e.slice(0,yr(e)+1).replace(Ie,""):e}function Qn(e){return function(t){return e(t)}}function Xn(e,t){return An(t,(function(t){return e[t]}))}function Jn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&In(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&In(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=zn(Zt),rr=zn(en);function or(e){return"\\"+nn[e]}function ir(e,t){return null==e?i:e[t]}function ar(e){return Kt.test(e)}function ur(e){return Yt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function cr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function lr(e,t){return function(n){return e(t(n))}}function fr(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n];a!==t&&a!==h||(e[n]=h,i[o++]=n)}return i}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ar(e)?wr(e):Bn(e)}function vr(e){return ar(e)?_r(e):Pn(e)}function yr(e){var t=e.length;while(t--&&Fe.test(e.charAt(t)));return t}var br=zn(tn);function wr(e){var t=$t.lastIndex=0;while($t.test(e))++t;return t}function _r(e){return e.match($t)||[]}function xr(e){return e.match(Wt)||[]}var Cr=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,Gt));var n=t.Array,r=t.Date,o=t.Error,Fe=t.Function,ze=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,it=t.TypeError,at=n.prototype,ut=Fe.prototype,st=nt.prototype,ct=t["__core-js_shared__"],lt=ut.toString,ft=st.hasOwnProperty,dt=0,ht=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=st.toString,mt=lt.call(nt),gt=sn._,vt=rt("^"+lt.call(ft).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=fn?t.Buffer:i,bt=t.Symbol,wt=t.Uint8Array,_t=yt?yt.allocUnsafe:i,xt=lr(nt.getPrototypeOf,nt),Ct=nt.create,St=st.propertyIsEnumerable,Et=at.splice,kt=bt?bt.isConcatSpreadable:i,Tt=bt?bt.iterator:i,At=bt?bt.toStringTag:i,Ot=function(){try{var e=Ka(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Nt=r&&r.now!==sn.Date.now&&r.now,Dt=t.setTimeout!==sn.setTimeout&&t.setTimeout,Bt=ze.ceil,Pt=ze.floor,jt=nt.getOwnPropertySymbols,Lt=yt?yt.isBuffer:i,Mt=t.isFinite,It=at.join,Ft=lr(nt.keys,nt),Vt=ze.max,Ut=ze.min,qt=r.now,$t=t.parseInt,Wt=ze.random,Kt=at.reverse,Yt=Ka(t,"DataView"),Zt=Ka(t,"Map"),en=Ka(t,"Promise"),tn=Ka(t,"Set"),nn=Ka(t,"WeakMap"),an=Ka(nt,"create"),un=nn&&new nn,cn={},ln=Du(Yt),dn=Du(Zt),hn=Du(en),Bn=Du(tn),Pn=Du(nn),zn=bt?bt.prototype:i,pr=zn?zn.valueOf:i,wr=zn?zn.toString:i;function _r(e){if(El(e)&&!sl(e)&&!(e instanceof Tr)){if(e instanceof kr)return e;if(ft.call(e,"__wrapped__"))return Pu(e)}return new kr(e)}var Cr=function(){function e(){}return function(t){if(!Sl(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Er(){}function kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Tr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function Ar(){var e=new Tr(this.__wrapped__);return e.__actions__=oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oa(this.__views__),e}function Or(){if(this.__filtered__){var e=new Tr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=sl(e),r=t<0,o=n?e.length:0,i=Ja(0,o,this.__views__),a=i.start,u=i.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,d=0,h=Ut(s,this.__takeCount__);if(!n||!r&&o==s&&h==s)return Fi(e,this.__actions__);var p=[];e:while(s--&&d<h){c+=t;var m=-1,g=e[c];while(++m<f){var v=l[m],y=v.iteratee,b=v.type,w=y(g);if(b==P)g=w;else if(!w){if(b==B)continue e;break e}}p[d++]=g}return p}function Nr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Dr(){this.__data__=an?an(null):{},this.size=0}function Br(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Pr(e){var t=this.__data__;if(an){var n=t[e];return n===f?i:n}return ft.call(t,e)?t[e]:i}function jr(e){var t=this.__data__;return an?t[e]!==i:ft.call(t,e)}function Lr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===i?f:t,this}function Mr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=[],this.size=0}function Fr(e){var t=this.__data__,n=lo(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Et.call(t,n,1),--this.size,!0}function Vr(e){var t=this.__data__,n=lo(t,e);return n<0?i:t[n][1]}function Ur(e){return lo(this.__data__,e)>-1}function qr(e,t){var n=this.__data__,r=lo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Nr,map:new(Zt||Mr),string:new Nr}}function $r(e){var t=$a(this,e)["delete"](e);return this.size-=t?1:0,t}function Wr(e){return $a(this,e).get(e)}function Kr(e){return $a(this,e).has(e)}function Yr(e,t){var n=$a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Gr(e){var t=-1,n=null==e?0:e.length;this.__data__=new zr;while(++t<n)this.add(e[t])}function Qr(e){return this.__data__.set(e,f),this}function Xr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Zr(){this.__data__=new Mr,this.size=0}function eo(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function to(e){return this.__data__.get(e)}function no(e){return this.__data__.has(e)}function ro(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!Zt||r.length<u-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zr(r)}return n.set(e,t),this.size=n.size,this}function oo(e,t){var n=sl(e),r=!n&&ul(e),o=!n&&!r&&hl(e),i=!n&&!r&&!o&&Vl(e),a=n||r||o||i,u=a?Kn(e.length,ot):[],s=u.length;for(var c in e)!t&&!ft.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||au(c,s))||u.push(c);return u}function io(e){var t=e.length;return t?e[yi(0,t-1)]:i}function ao(e,t){return Ou(oa(e),vo(t,0,e.length))}function uo(e){return Ou(oa(e))}function so(e,t,n){(n!==i&&!ol(e[t],n)||n===i&&!(t in e))&&mo(e,t,n)}function co(e,t,n){var r=e[t];ft.call(e,t)&&ol(r,n)&&(n!==i||t in e)||mo(e,t,n)}function lo(e,t){var n=e.length;while(n--)if(ol(e[n][0],t))return n;return-1}function fo(e,t,n,r){return Co(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ho(e,t){return e&&ia(t,Cf(t),e)}function po(e,t){return e&&ia(t,Sf(t),e)}function mo(e,t,n){"__proto__"==t&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function go(e,t){var r=-1,o=t.length,a=n(o),u=null==e;while(++r<o)a[r]=u?i:vf(e,t[r]);return a}function vo(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function yo(e,t,n,r,o,a){var u,s=t&p,c=t&m,l=t&g;if(n&&(u=o?n(e,r,o,a):n(e)),u!==i)return u;if(!Sl(e))return e;var f=sl(e);if(f){if(u=tu(e),!s)return oa(e,u)}else{var d=Xa(e),h=d==X||d==J;if(hl(e))return Yi(e,s);if(d==ne||d==H||h&&!o){if(u=c||h?{}:nu(e),!s)return c?ua(e,po(u,e)):aa(e,ho(u,e))}else{if(!Jt[d])return o?e:{};u=ru(e,d,s)}}a||(a=new Jr);var v=a.get(e);if(v)return v;a.set(e,u),Ml(e)?e.forEach((function(r){u.add(yo(r,t,n,r,e,a))})):kl(e)&&e.forEach((function(r,o){u.set(o,yo(r,t,n,o,e,a))}));var y=l?c?Va:Fa:c?Sf:Cf,b=f?i:y(e);return xn(b||e,(function(r,o){b&&(o=r,r=e[o]),co(u,o,yo(r,t,n,o,e,a))})),u}function bo(e){var t=Cf(e);return function(n){return wo(n,e,t)}}function wo(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var o=n[r],a=t[o],u=e[o];if(u===i&&!(o in e)||!a(u))return!1}return!0}function _o(e,t,n){if("function"!=typeof e)throw new it(c);return Eu((function(){e.apply(i,n)}),t)}function xo(e,t,n,r){var o=-1,i=kn,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=An(t,Qn(n))),r?(i=Tn,a=!1):t.length>=u&&(i=Jn,a=!1,t=new Gr(t));e:while(++o<s){var f=e[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=l;while(h--)if(t[h]===d)continue e;c.push(f)}else i(t,d,r)||c.push(f)}return c}_r.templateSettings={escape:Re,evaluate:Ne,interpolate:De,variable:"",imports:{_:_r}},_r.prototype=Er.prototype,_r.prototype.constructor=_r,kr.prototype=Cr(Er.prototype),kr.prototype.constructor=kr,Tr.prototype=Cr(Er.prototype),Tr.prototype.constructor=Tr,Nr.prototype.clear=Dr,Nr.prototype["delete"]=Br,Nr.prototype.get=Pr,Nr.prototype.has=jr,Nr.prototype.set=Lr,Mr.prototype.clear=Ir,Mr.prototype["delete"]=Fr,Mr.prototype.get=Vr,Mr.prototype.has=Ur,Mr.prototype.set=qr,zr.prototype.clear=Hr,zr.prototype["delete"]=$r,zr.prototype.get=Wr,zr.prototype.has=Kr,zr.prototype.set=Yr,Gr.prototype.add=Gr.prototype.push=Qr,Gr.prototype.has=Xr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=eo,Jr.prototype.get=to,Jr.prototype.has=no,Jr.prototype.set=ro;var Co=la(Do),So=la(Bo,!0);function Eo(e,t){var n=!0;return Co(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function ko(e,t,n){var r=-1,o=e.length;while(++r<o){var a=e[r],u=t(a);if(null!=u&&(s===i?u===u&&!Fl(u):n(u,s)))var s=u,c=a}return c}function To(e,t,n,r){var o=e.length;n=Yl(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:Yl(r),r<0&&(r+=o),r=n>r?0:Gl(r);while(n<r)e[n++]=t;return e}function Ao(e,t){var n=[];return Co(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Oo(e,t,n,r,o){var i=-1,a=e.length;n||(n=iu),o||(o=[]);while(++i<a){var u=e[i];t>0&&n(u)?t>1?Oo(u,t-1,n,r,o):On(o,u):r||(o[o.length]=u)}return o}var Ro=fa(),No=fa(!0);function Do(e,t){return e&&Ro(e,t,Cf)}function Bo(e,t){return e&&No(e,t,Cf)}function Po(e,t){return En(t,(function(t){return _l(e[t])}))}function jo(e,t){t=Hi(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Nu(t[n++])];return n&&n==r?e:i}function Lo(e,t,n){var r=t(e);return sl(e)?r:On(r,n(e))}function Mo(e){return null==e?e===i?ce:te:At&&At in nt(e)?Ya(e):bu(e)}function Io(e,t){return e>t}function Fo(e,t){return null!=e&&ft.call(e,t)}function Vo(e,t){return null!=e&&t in nt(e)}function Uo(e,t,n){return e>=Ut(t,n)&&e<Vt(t,n)}function qo(e,t,r){var o=r?Tn:kn,a=e[0].length,u=e.length,s=u,c=n(u),l=1/0,f=[];while(s--){var d=e[s];s&&t&&(d=An(d,Qn(t))),l=Ut(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Gr(s&&d):i}d=e[0];var h=-1,p=c[0];e:while(++h<a&&f.length<l){var m=d[h],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?Jn(p,g):o(f,g,r))){s=u;while(--s){var v=c[s];if(!(v?Jn(v,g):o(e[s],g,r)))continue e}p&&p.push(g),f.push(m)}}return f}function zo(e,t,n,r){return Do(e,(function(e,o,i){t(r,n(e),o,i)})),r}function Ho(e,t,n){t=Hi(t,e),e=_u(e,t);var r=null==e?e:e[Nu(is(t))];return null==r?i:wn(r,e,n)}function $o(e){return El(e)&&Mo(e)==H}function Wo(e){return El(e)&&Mo(e)==de}function Ko(e){return El(e)&&Mo(e)==Y}function Yo(e,t,n,r,o){return e===t||(null==e||null==t||!El(e)&&!El(t)?e!==e&&t!==t:Go(e,t,n,r,Yo,o))}function Go(e,t,n,r,o,i){var a=sl(e),u=sl(t),s=a?$:Xa(e),c=u?$:Xa(t);s=s==H?ne:s,c=c==H?ne:c;var l=s==ne,f=c==ne,d=s==c;if(d&&hl(e)){if(!hl(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Jr),a||Vl(e)?ja(e,t,n,r,o,i):La(e,t,s,n,r,o,i);if(!(n&v)){var h=l&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return i||(i=new Jr),o(m,g,n,r,i)}}return!!d&&(i||(i=new Jr),Ma(e,t,n,r,o,i))}function Qo(e){return El(e)&&Xa(e)==Z}function Xo(e,t,n,r){var o=n.length,a=o,u=!r;if(null==e)return!a;e=nt(e);while(o--){var s=n[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++o<a){s=n[o];var c=s[0],l=e[c],f=s[1];if(u&&s[2]){if(l===i&&!(c in e))return!1}else{var d=new Jr;if(r)var h=r(l,f,c,e,t,d);if(!(h===i?Yo(f,l,v|y,r,d):h))return!1}}return!0}function Jo(e){if(!Sl(e)||fu(e))return!1;var t=_l(e)?vt:Qe;return t.test(Du(e))}function Zo(e){return El(e)&&Mo(e)==ie}function ei(e){return El(e)&&Xa(e)==ae}function ti(e){return El(e)&&Cl(e.length)&&!!Xt[Mo(e)]}function ni(e){return"function"==typeof e?e:null==e?Nd:"object"==typeof e?sl(e)?si(e[0],e[1]):ui(e):Hd(e)}function ri(e){if(!hu(e))return Ft(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function oi(e){if(!Sl(e))return yu(e);var t=hu(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function ii(e,t){return e<t}function ai(e,t){var r=-1,o=ll(e)?n(e.length):[];return Co(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function ui(e){var t=Wa(e);return 1==t.length&&t[0][2]?mu(t[0][0],t[0][1]):function(n){return n===e||Xo(n,e,t)}}function si(e,t){return su(e)&&pu(t)?mu(Nu(e),t):function(n){var r=vf(n,e);return r===i&&r===t?bf(n,e):Yo(t,r,v|y)}}function ci(e,t,n,r,o){e!==t&&Ro(t,(function(a,u){if(o||(o=new Jr),Sl(a))li(e,t,u,n,ci,r,o);else{var s=r?r(Cu(e,u),a,u+"",e,t,o):i;s===i&&(s=a),so(e,u,s)}}),Sf)}function li(e,t,n,r,o,a,u){var s=Cu(e,n),c=Cu(t,n),l=u.get(c);if(l)so(e,n,l);else{var f=a?a(s,c,n+"",e,t,u):i,d=f===i;if(d){var h=sl(c),p=!h&&hl(c),m=!h&&!p&&Vl(c);f=c,h||p||m?sl(s)?f=s:fl(s)?f=oa(s):p?(d=!1,f=Yi(c,!0)):m?(d=!1,f=Zi(c,!0)):f=[]:Pl(c)||ul(c)?(f=s,ul(s)?f=Xl(s):Sl(s)&&!_l(s)||(f=nu(c))):d=!1}d&&(u.set(c,f),o(f,c,r,a,u),u["delete"](c)),so(e,n,f)}}function fi(e,t){var n=e.length;if(n)return t+=t<0?n:0,au(t,n)?e[t]:i}function di(e,t,n){t=t.length?An(t,(function(e){return sl(e)?function(t){return jo(t,1===e.length?e[0]:e)}:e})):[Nd];var r=-1;t=An(t,Qn(Ha()));var o=ai(e,(function(e,n,o){var i=An(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return $n(o,(function(e,t){return ta(e,t,n)}))}function hi(e,t){return pi(e,t,(function(t,n){return bf(e,n)}))}function pi(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],u=jo(e,a);n(u,a)&&Si(i,Hi(a,e),u)}return i}function mi(e){return function(t){return jo(t,e)}}function gi(e,t,n,r){var o=r?Fn:In,i=-1,a=t.length,u=e;e===t&&(t=oa(t)),n&&(u=An(e,Qn(n)));while(++i<a){var s=0,c=t[i],l=n?n(c):c;while((s=o(u,l,s,r))>-1)u!==e&&Et.call(u,s,1),Et.call(e,s,1)}return e}function vi(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==i){var i=o;au(o)?Et.call(e,o,1):Li(e,o)}}return e}function yi(e,t){return e+Pt(Wt()*(t-e+1))}function bi(e,t,r,o){var i=-1,a=Vt(Bt((t-e)/(r||1)),0),u=n(a);while(a--)u[o?a:++i]=e,e+=r;return u}function wi(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Pt(t/2),t&&(e+=e)}while(t);return n}function _i(e,t){return ku(wu(e,t,Nd),e+"")}function xi(e){return io(qf(e))}function Ci(e,t){var n=qf(e);return Ou(n,vo(t,0,n.length))}function Si(e,t,n,r){if(!Sl(e))return e;t=Hi(t,e);var o=-1,a=t.length,u=a-1,s=e;while(null!=s&&++o<a){var c=Nu(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=u){var f=s[c];l=r?r(f,c,s):i,l===i&&(l=Sl(f)?f:au(t[o+1])?[]:{})}co(s,c,l),s=s[c]}return e}var Ei=un?function(e,t){return un.set(e,t),e}:Nd,ki=Ot?function(e,t){return Ot(e,"toString",{configurable:!0,enumerable:!1,value:Td(t),writable:!0})}:Nd;function Ti(e){return Ou(qf(e))}function Ai(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;var a=n(i);while(++o<i)a[o]=e[o+t];return a}function Oi(e,t){var n;return Co(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function Ri(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=q){while(r<o){var i=r+o>>>1,a=e[i];null!==a&&!Fl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Ni(e,t,Nd,n)}function Ni(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var u=t!==t,s=null===t,c=Fl(t),l=t===i;while(o<a){var f=Pt((o+a)/2),d=n(e[f]),h=d!==i,p=null===d,m=d===d,g=Fl(d);if(u)var v=r||m;else v=l?m&&(r||h):s?m&&h&&(r||!p):c?m&&h&&!p&&(r||!g):!p&&!g&&(r?d<=t:d<t);v?o=f+1:a=f}return Ut(a,U)}function Di(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n],u=t?t(a):a;if(!n||!ol(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Bi(e){return"number"==typeof e?e:Fl(e)?F:+e}function Pi(e){if("string"==typeof e)return e;if(sl(e))return An(e,Pi)+"";if(Fl(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function ji(e,t,n){var r=-1,o=kn,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Tn;else if(i>=u){var l=t?null:Oa(e);if(l)return dr(l);a=!1,o=Jn,c=new Gr}else c=t?[]:s;e:while(++r<i){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=c.length;while(h--)if(c[h]===d)continue e;t&&c.push(d),s.push(f)}else o(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}function Li(e,t){return t=Hi(t,e),e=_u(e,t),null==e||delete e[Nu(is(t))]}function Mi(e,t,n,r){return Si(e,t,n(jo(e,t)),r)}function Ii(e,t,n,r){var o=e.length,i=r?o:-1;while((r?i--:++i<o)&&t(e[i],i,e));return n?Ai(e,r?0:i,r?i+1:o):Ai(e,r?i+1:0,r?o:i)}function Fi(e,t){var n=e;return n instanceof Tr&&(n=n.value()),Rn(t,(function(e,t){return t.func.apply(t.thisArg,On([e],t.args))}),n)}function Vi(e,t,r){var o=e.length;if(o<2)return o?ji(e[0]):[];var i=-1,a=n(o);while(++i<o){var u=e[i],s=-1;while(++s<o)s!=i&&(a[i]=xo(a[i]||u,e[s],t,r))}return ji(Oo(a,1),t,r)}function Ui(e,t,n){var r=-1,o=e.length,a=t.length,u={};while(++r<o){var s=r<a?t[r]:i;n(u,e[r],s)}return u}function qi(e){return fl(e)?e:[]}function zi(e){return"function"==typeof e?e:Nd}function Hi(e,t){return sl(e)?e:su(e,t)?[e]:Ru(Zl(e))}var $i=_i;function Wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Ai(e,t,n)}var Ki=Rt||function(e){return sn.clearTimeout(e)};function Yi(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Gi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Qi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Xi(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Ji(e){return pr?nt(pr.call(e)):{}}function Zi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=Fl(e),u=t!==i,s=null===t,c=t===t,l=Fl(t);if(!s&&!l&&!a&&e>t||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||s&&n&&o||!u&&o||!c)return-1}return 0}function ta(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;while(++r<a){var s=ea(o[r],i[r]);if(s){if(r>=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,r,o){var i=-1,a=e.length,u=r.length,s=-1,c=t.length,l=Vt(a-u,0),f=n(c+l),d=!o;while(++s<c)f[s]=t[s];while(++i<u)(d||i<a)&&(f[r[i]]=e[i]);while(l--)f[s++]=e[i++];return f}function ra(e,t,r,o){var i=-1,a=e.length,u=-1,s=r.length,c=-1,l=t.length,f=Vt(a-s,0),d=n(f+l),h=!o;while(++i<f)d[i]=e[i];var p=i;while(++c<l)d[p+c]=t[c];while(++u<s)(h||i<a)&&(d[p+r[u]]=e[i++]);return d}function oa(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ia(e,t,n,r){var o=!n;n||(n={});var a=-1,u=t.length;while(++a<u){var s=t[a],c=r?r(n[s],e[s],s,n,e):i;c===i&&(c=e[s]),o?mo(n,s,c):co(n,s,c)}return n}function aa(e,t){return ia(e,Ga(e),t)}function ua(e,t){return ia(e,Qa(e),t)}function sa(e,t){return function(n,r){var o=sl(n)?_n:fo,i=t?t():{};return o(n,e,Ha(r,2),i)}}function ca(e){return _i((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,u=o>2?n[2]:i;a=e.length>3&&"function"==typeof a?(o--,a):i,u&&uu(n[0],n[1],u)&&(a=o<3?i:a,o=1),t=nt(t);while(++r<o){var s=n[r];s&&e(t,s,r,a)}return t}))}function la(e,t){return function(n,r){if(null==n)return n;if(!ll(n))return e(n,r);var o=n.length,i=t?o:-1,a=nt(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function fa(e){return function(t,n,r){var o=-1,i=nt(t),a=r(t),u=a.length;while(u--){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function da(e,t,n){var r=t&b,o=ma(e);function i(){var t=this&&this!==sn&&this instanceof i?o:e;return t.apply(r?n:this,arguments)}return i}function ha(e){return function(t){t=Zl(t);var n=ar(t)?vr(t):i,r=n?n[0]:t.charAt(0),o=n?Wi(n,1).join(""):t.slice(1);return r[e]()+o}}function pa(e){return function(t){return Rn(xd(Gf(t).replace(zt,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Cr(e.prototype),r=e.apply(n,t);return Sl(r)?r:n}}function ga(e,t,r){var o=ma(e);function a(){var u=arguments.length,s=n(u),c=u,l=za(a);while(c--)s[c]=arguments[c];var f=u<3&&s[0]!==l&&s[u-1]!==l?[]:fr(s,l);if(u-=f.length,u<r)return Ta(e,t,ba,a.placeholder,i,s,f,i,i,r-u);var d=this&&this!==sn&&this instanceof a?o:e;return wn(d,this,s)}return a}function va(e){return function(t,n,r){var o=nt(t);if(!ll(t)){var a=Ha(n,3);t=Cf(t),n=function(e){return a(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[a?t[u]:u]:i}}function ya(e){return Ia((function(t){var n=t.length,r=n,o=kr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new it(c);if(o&&!u&&"wrapper"==qa(a))var u=new kr([],!0)}r=u?r:n;while(++r<n){a=t[r];var s=qa(a),l="wrapper"==s?Ua(a):i;u=l&&lu(l[0])&&l[1]==(k|x|S|T)&&!l[4].length&&1==l[9]?u[qa(l[0])].apply(u,l[3]):1==a.length&&lu(a)?u[s]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&sl(r))return u.plant(r).value();var o=0,i=n?t[o].apply(this,e):r;while(++o<n)i=t[o].call(this,i);return i}}))}function ba(e,t,r,o,a,u,s,c,l,f){var d=t&k,h=t&b,p=t&w,m=t&(x|C),g=t&A,v=p?i:ma(e);function y(){var i=arguments.length,b=n(i),w=i;while(w--)b[w]=arguments[w];if(m)var _=za(y),x=tr(b,_);if(o&&(b=na(b,o,a,m)),u&&(b=ra(b,u,s,m)),i-=x,m&&i<f){var C=fr(b,_);return Ta(e,t,ba,y.placeholder,r,b,C,c,l,f-i)}var S=h?r:this,E=p?S[e]:e;return i=b.length,c?b=xu(b,c):g&&i>1&&b.reverse(),d&&l<i&&(b.length=l),this&&this!==sn&&this instanceof y&&(E=v||ma(E)),E.apply(S,b)}return y}function wa(e,t){return function(n,r){return zo(n,e,t(r),{})}}function _a(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Pi(n),r=Pi(r)):(n=Bi(n),r=Bi(r)),o=e(n,r)}return o}}function xa(e){return Ia((function(t){return t=An(t,Qn(Ha())),_i((function(n){var r=this;return e(t,(function(e){return wn(e,r,n)}))}))}))}function Ca(e,t){t=t===i?" ":Pi(t);var n=t.length;if(n<2)return n?wi(t,e):t;var r=wi(t,Bt(e/gr(t)));return ar(t)?Wi(vr(r),0,e).join(""):r.slice(0,e)}function Sa(e,t,r,o){var i=t&b,a=ma(e);function u(){var t=-1,s=arguments.length,c=-1,l=o.length,f=n(l+s),d=this&&this!==sn&&this instanceof u?a:e;while(++c<l)f[c]=o[c];while(s--)f[c++]=arguments[++t];return wn(d,i?r:this,f)}return u}function Ea(e){return function(t,n,r){return r&&"number"!=typeof r&&uu(t,n,r)&&(n=r=i),t=Kl(t),n===i?(n=t,t=0):n=Kl(n),r=r===i?t<n?1:-1:Kl(r),bi(t,n,r,e)}}function ka(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ql(t),n=Ql(n)),e(t,n)}}function Ta(e,t,n,r,o,a,u,s,c,l){var f=t&x,d=f?u:i,h=f?i:u,p=f?a:i,m=f?i:a;t|=f?S:E,t&=~(f?E:S),t&_||(t&=~(b|w));var g=[e,t,o,p,d,m,h,s,c,l],v=n.apply(i,g);return lu(e)&&Su(v,g),v.placeholder=r,Tu(v,e,t)}function Aa(e){var t=ze[e];return function(e,n){if(e=Ql(e),n=null==n?0:Ut(Yl(n),292),n&&Mt(e)){var r=(Zl(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(Zl(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Oa=tn&&1/dr(new tn([,-0]))[1]==L?function(e){return new tn(e)}:Fd;function Ra(e){return function(t){var n=Xa(t);return n==Z?cr(t):n==ae?hr(t):Yn(t,e(t))}}function Na(e,t,n,r,o,a,u,s){var l=t&w;if(!l&&"function"!=typeof e)throw new it(c);var f=r?r.length:0;if(f||(t&=~(S|E),r=o=i),u=u===i?u:Vt(Yl(u),0),s=s===i?s:Yl(s),f-=o?o.length:0,t&E){var d=r,h=o;r=o=i}var p=l?i:Ua(e),m=[e,t,n,r,o,d,h,a,u,s];if(p&&vu(m,p),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],s=m[9]=m[9]===i?l?0:e.length:Vt(m[9]-f,0),!s&&t&(x|C)&&(t&=~(x|C)),t&&t!=b)g=t==x||t==C?ga(e,t,s):t!=S&&t!=(b|S)||o.length?ba.apply(i,m):Sa(e,t,n,r);else var g=da(e,t,n);var v=p?Ei:Su;return Tu(v(g,m),e,t)}function Da(e,t,n,r){return e===i||ol(e,st[n])&&!ft.call(r,n)?t:e}function Ba(e,t,n,r,o,a){return Sl(e)&&Sl(t)&&(a.set(t,e),ci(e,t,i,Ba,a),a["delete"](t)),e}function Pa(e){return Pl(e)?i:e}function ja(e,t,n,r,o,a){var u=n&v,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=n&y?new Gr:i;a.set(e,t),a.set(t,e);while(++d<s){var m=e[d],g=t[d];if(r)var b=u?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(b!==i){if(b)continue;h=!1;break}if(p){if(!Dn(t,(function(e,t){if(!Jn(p,t)&&(m===e||o(m,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){h=!1;break}}return a["delete"](e),a["delete"](t),h}function La(e,t,n,r,o,i,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case K:case Y:case ee:return ol(+e,+t);case Q:return e.name==t.name&&e.message==t.message;case ie:case ue:return e==t+"";case Z:var u=cr;case ae:var s=r&v;if(u||(u=dr),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=y,a.set(e,t);var l=ja(u(e),u(t),r,o,i,a);return a["delete"](e),l;case se:if(pr)return pr.call(e)==pr.call(t)}return!1}function Ma(e,t,n,r,o,a){var u=n&v,s=Fa(e),c=s.length,l=Fa(t),f=l.length;if(c!=f&&!u)return!1;var d=c;while(d--){var h=s[d];if(!(u?h in t:ft.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var y=u;while(++d<c){h=s[d];var b=e[h],w=t[h];if(r)var _=u?r(w,b,h,t,e,a):r(b,w,h,e,t,a);if(!(_===i?b===w||o(b,w,n,r,a):_)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var x=e.constructor,C=t.constructor;x==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C||(g=!1)}return a["delete"](e),a["delete"](t),g}function Ia(e){return ku(wu(e,i,Yu),e+"")}function Fa(e){return Lo(e,Cf,Ga)}function Va(e){return Lo(e,Sf,Qa)}var Ua=un?function(e){return un.get(e)}:Fd;function qa(e){var t=e.name+"",n=cn[t],r=ft.call(cn,t)?n.length:0;while(r--){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function za(e){var t=ft.call(_r,"placeholder")?_r:e;return t.placeholder}function Ha(){var e=_r.iteratee||Dd;return e=e===Dd?ni:e,arguments.length?e(arguments[0],arguments[1]):e}function $a(e,t){var n=e.__data__;return cu(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wa(e){var t=Cf(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,pu(o)]}return t}function Ka(e,t){var n=ir(e,t);return Jo(n)?n:i}function Ya(e){var t=ft.call(e,At),n=e[At];try{e[At]=i;var r=!0}catch(a){}var o=pt.call(e);return r&&(t?e[At]=n:delete e[At]),o}var Ga=jt?function(e){return null==e?[]:(e=nt(e),En(jt(e),(function(t){return St.call(e,t)})))}:Yd,Qa=jt?function(e){var t=[];while(e)On(t,Ga(e)),e=xt(e);return t}:Yd,Xa=Mo;function Ja(e,t,n){var r=-1,o=n.length;while(++r<o){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=Vt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(Ue);return t?t[1].split(qe):[]}function eu(e,t,n){t=Hi(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=Nu(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&Cl(o)&&au(a,o)&&(sl(e)||ul(e)))}function tu(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function nu(e){return"function"!=typeof e.constructor||hu(e)?{}:Cr(xt(e))}function ru(e,t,n){var r=e.constructor;switch(t){case de:return Gi(e);case K:case Y:return new r(+e);case he:return Qi(e,n);case pe:case me:case ge:case ve:case ye:case be:case we:case _e:case xe:return Zi(e,n);case Z:return new r;case ee:case ue:return new r(e);case ie:return Xi(e);case ae:return new r;case se:return Ji(e)}}function ou(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ve,"{\n/* [wrapped with "+t+"] */\n")}function iu(e){return sl(e)||ul(e)||!!(kt&&e&&e[kt])}function au(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function uu(e,t,n){if(!Sl(n))return!1;var r=typeof t;return!!("number"==r?ll(n)&&au(t,n.length):"string"==r&&t in n)&&ol(n[t],e)}function su(e,t){if(sl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fl(e))||(Pe.test(e)||!Be.test(e)||null!=t&&e in nt(t))}function cu(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function lu(e){var t=qa(e),n=_r[t];if("function"!=typeof n||!(t in Tr.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function fu(e){return!!ht&&ht in e}(Yt&&Xa(new Yt(new ArrayBuffer(1)))!=he||Zt&&Xa(new Zt)!=Z||en&&Xa(en.resolve())!=re||tn&&Xa(new tn)!=ae||nn&&Xa(new nn)!=le)&&(Xa=function(e){var t=Mo(e),n=t==ne?e.constructor:i,r=n?Du(n):"";if(r)switch(r){case ln:return he;case dn:return Z;case hn:return re;case Bn:return ae;case Pn:return le}return t});var du=ct?_l:Gd;function hu(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||st;return e===n}function pu(e){return e===e&&!Sl(e)}function mu(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gu(e){var t=Vc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vu(e,t){var n=e[1],r=t[1],o=n|r,i=o<(b|w|k),a=r==k&&n==x||r==k&&n==T&&e[7].length<=t[8]||r==(k|T)&&t[7].length<=t[8]&&n==x;if(!i&&!a)return e;r&b&&(e[2]=t[2],o|=n&b?0:_);var u=t[3];if(u){var s=e[3];e[3]=s?na(s,u,t[4]):u,e[4]=s?fr(e[3],h):t[4]}return u=t[5],u&&(s=e[5],e[5]=s?ra(s,u,t[6]):u,e[6]=s?fr(e[5],h):t[6]),u=t[7],u&&(e[7]=u),r&k&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function yu(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bu(e){return pt.call(e)}function wu(e,t,r){return t=Vt(t===i?e.length-1:t,0),function(){var o=arguments,i=-1,a=Vt(o.length-t,0),u=n(a);while(++i<a)u[i]=o[t+i];i=-1;var s=n(t+1);while(++i<t)s[i]=o[i];return s[t]=r(u),wn(e,this,s)}}function _u(e,t){return t.length<2?e:jo(e,Ai(t,0,-1))}function xu(e,t){var n=e.length,r=Ut(t.length,n),o=oa(e);while(r--){var a=t[r];e[r]=au(a,n)?o[a]:i}return e}function Cu(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Su=Au(Ei),Eu=Dt||function(e,t){return sn.setTimeout(e,t)},ku=Au(ki);function Tu(e,t,n){var r=t+"";return ku(e,ou(r,Bu(Za(r),n)))}function Au(e){var t=0,n=0;return function(){var r=qt(),o=D-(r-n);if(n=r,o>0){if(++t>=N)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ou(e,t){var n=-1,r=e.length,o=r-1;t=t===i?r:t;while(++n<t){var a=yi(n,o),u=e[a];e[a]=e[n],e[n]=u}return e.length=t,e}var Ru=gu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(je,(function(e,n,r,o){t.push(r?o.replace($e,"$1"):n||e)})),t}));function Nu(e){if("string"==typeof e||Fl(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Du(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bu(e,t){return xn(z,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Pu(e){if(e instanceof Tr)return e.clone();var t=new kr(e.__wrapped__,e.__chain__);return t.__actions__=oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ju(e,t,r){t=(r?uu(e,t,r):t===i)?1:Vt(Yl(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var a=0,u=0,s=n(Bt(o/t));while(a<o)s[u++]=Ai(e,a,a+=t);return s}function Lu(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var i=e[t];i&&(o[r++]=i)}return o}function Mu(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return On(sl(r)?oa(r):[r],Oo(t,1))}var Iu=_i((function(e,t){return fl(e)?xo(e,Oo(t,1,fl,!0)):[]})),Fu=_i((function(e,t){var n=is(t);return fl(n)&&(n=i),fl(e)?xo(e,Oo(t,1,fl,!0),Ha(n,2)):[]})),Vu=_i((function(e,t){var n=is(t);return fl(n)&&(n=i),fl(e)?xo(e,Oo(t,1,fl,!0),i,n):[]}));function Uu(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Yl(t),Ai(e,t<0?0:t,r)):[]}function qu(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Yl(t),t=r-t,Ai(e,0,t<0?0:t)):[]}function zu(e,t){return e&&e.length?Ii(e,Ha(t,3),!0,!0):[]}function Hu(e,t){return e&&e.length?Ii(e,Ha(t,3),!0):[]}function $u(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&uu(e,t,n)&&(n=0,r=o),To(e,t,n,r)):[]}function Wu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yl(n);return o<0&&(o=Vt(r+o,0)),Mn(e,Ha(t,3),o)}function Ku(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Yl(n),o=n<0?Vt(r+o,0):Ut(o,r-1)),Mn(e,Ha(t,3),o,!0)}function Yu(e){var t=null==e?0:e.length;return t?Oo(e,1):[]}function Gu(e){var t=null==e?0:e.length;return t?Oo(e,L):[]}function Qu(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:Yl(t),Oo(e,t)):[]}function Xu(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}function Ju(e){return e&&e.length?e[0]:i}function Zu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yl(n);return o<0&&(o=Vt(r+o,0)),In(e,t,o)}function es(e){var t=null==e?0:e.length;return t?Ai(e,0,-1):[]}var ts=_i((function(e){var t=An(e,qi);return t.length&&t[0]===e[0]?qo(t):[]})),ns=_i((function(e){var t=is(e),n=An(e,qi);return t===is(n)?t=i:n.pop(),n.length&&n[0]===e[0]?qo(n,Ha(t,2)):[]})),rs=_i((function(e){var t=is(e),n=An(e,qi);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?qo(n,i,t):[]}));function os(e,t){return null==e?"":It.call(e,t)}function is(e){var t=null==e?0:e.length;return t?e[t-1]:i}function as(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=Yl(n),o=o<0?Vt(r+o,0):Ut(o,r-1)),t===t?mr(e,t,o):Mn(e,Vn,o,!0)}function us(e,t){return e&&e.length?fi(e,Yl(t)):i}var ss=_i(cs);function cs(e,t){return e&&e.length&&t&&t.length?gi(e,t):e}function ls(e,t,n){return e&&e.length&&t&&t.length?gi(e,t,Ha(n,2)):e}function fs(e,t,n){return e&&e.length&&t&&t.length?gi(e,t,i,n):e}var ds=Ia((function(e,t){var n=null==e?0:e.length,r=go(e,t);return vi(e,An(t,(function(e){return au(e,n)?+e:e})).sort(ea)),r}));function hs(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;t=Ha(t,3);while(++r<i){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return vi(e,o),n}function ps(e){return null==e?e:Kt.call(e)}function ms(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&uu(e,t,n)?(t=0,n=r):(t=null==t?0:Yl(t),n=n===i?r:Yl(n)),Ai(e,t,n)):[]}function gs(e,t){return Ri(e,t)}function vs(e,t,n){return Ni(e,t,Ha(n,2))}function ys(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&ol(e[r],t))return r}return-1}function bs(e,t){return Ri(e,t,!0)}function ws(e,t,n){return Ni(e,t,Ha(n,2),!0)}function _s(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t,!0)-1;if(ol(e[r],t))return r}return-1}function xs(e){return e&&e.length?Di(e):[]}function Cs(e,t){return e&&e.length?Di(e,Ha(t,2)):[]}function Ss(e){var t=null==e?0:e.length;return t?Ai(e,1,t):[]}function Es(e,t,n){return e&&e.length?(t=n||t===i?1:Yl(t),Ai(e,0,t<0?0:t)):[]}function ks(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Yl(t),t=r-t,Ai(e,t<0?0:t,r)):[]}function Ts(e,t){return e&&e.length?Ii(e,Ha(t,3),!1,!0):[]}function As(e,t){return e&&e.length?Ii(e,Ha(t,3)):[]}var Os=_i((function(e){return ji(Oo(e,1,fl,!0))})),Rs=_i((function(e){var t=is(e);return fl(t)&&(t=i),ji(Oo(e,1,fl,!0),Ha(t,2))})),Ns=_i((function(e){var t=is(e);return t="function"==typeof t?t:i,ji(Oo(e,1,fl,!0),i,t)}));function Ds(e){return e&&e.length?ji(e):[]}function Bs(e,t){return e&&e.length?ji(e,Ha(t,2)):[]}function Ps(e,t){return t="function"==typeof t?t:i,e&&e.length?ji(e,i,t):[]}function js(e){if(!e||!e.length)return[];var t=0;return e=En(e,(function(e){if(fl(e))return t=Vt(e.length,t),!0})),Kn(t,(function(t){return An(e,qn(t))}))}function Ls(e,t){if(!e||!e.length)return[];var n=js(e);return null==t?n:An(n,(function(e){return wn(t,i,e)}))}var Ms=_i((function(e,t){return fl(e)?xo(e,t):[]})),Is=_i((function(e){return Vi(En(e,fl))})),Fs=_i((function(e){var t=is(e);return fl(t)&&(t=i),Vi(En(e,fl),Ha(t,2))})),Vs=_i((function(e){var t=is(e);return t="function"==typeof t?t:i,Vi(En(e,fl),i,t)})),Us=_i(js);function qs(e,t){return Ui(e||[],t||[],co)}function zs(e,t){return Ui(e||[],t||[],Si)}var Hs=_i((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ls(e,n)}));function $s(e){var t=_r(e);return t.__chain__=!0,t}function Ws(e,t){return t(e),e}function Ks(e,t){return t(e)}var Ys=Ia((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return go(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tr&&au(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ks,args:[o],thisArg:i}),new kr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));function Gs(){return $s(this)}function Qs(){return new kr(this.value(),this.__chain__)}function Xs(){this.__values__===i&&(this.__values__=Wl(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Js(){return this}function Zs(e){var t,n=this;while(n instanceof Er){var r=Pu(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Tr){var t=e;return this.__actions__.length&&(t=new Tr(this)),t=t.reverse(),t.__actions__.push({func:Ks,args:[ps],thisArg:i}),new kr(t,this.__chain__)}return this.thru(ps)}function tc(){return Fi(this.__wrapped__,this.__actions__)}var nc=sa((function(e,t,n){ft.call(e,n)?++e[n]:mo(e,n,1)}));function rc(e,t,n){var r=sl(e)?Sn:Eo;return n&&uu(e,t,n)&&(t=i),r(e,Ha(t,3))}function oc(e,t){var n=sl(e)?En:Ao;return n(e,Ha(t,3))}var ic=va(Wu),ac=va(Ku);function uc(e,t){return Oo(gc(e,t),1)}function sc(e,t){return Oo(gc(e,t),L)}function cc(e,t,n){return n=n===i?1:Yl(n),Oo(gc(e,t),n)}function lc(e,t){var n=sl(e)?xn:Co;return n(e,Ha(t,3))}function fc(e,t){var n=sl(e)?Cn:So;return n(e,Ha(t,3))}var dc=sa((function(e,t,n){ft.call(e,n)?e[n].push(t):mo(e,n,[t])}));function hc(e,t,n,r){e=ll(e)?e:qf(e),n=n&&!r?Yl(n):0;var o=e.length;return n<0&&(n=Vt(o+n,0)),Il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&In(e,t,n)>-1}var pc=_i((function(e,t,r){var o=-1,i="function"==typeof t,a=ll(e)?n(e.length):[];return Co(e,(function(e){a[++o]=i?wn(t,e,r):Ho(e,t,r)})),a})),mc=sa((function(e,t,n){mo(e,n,t)}));function gc(e,t){var n=sl(e)?An:ai;return n(e,Ha(t,3))}function vc(e,t,n,r){return null==e?[]:(sl(t)||(t=null==t?[]:[t]),n=r?i:n,sl(n)||(n=null==n?[]:[n]),di(e,t,n))}var yc=sa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bc(e,t,n){var r=sl(e)?Rn:Hn,o=arguments.length<3;return r(e,Ha(t,4),n,o,Co)}function wc(e,t,n){var r=sl(e)?Nn:Hn,o=arguments.length<3;return r(e,Ha(t,4),n,o,So)}function _c(e,t){var n=sl(e)?En:Ao;return n(e,Uc(Ha(t,3)))}function xc(e){var t=sl(e)?io:xi;return t(e)}function Cc(e,t,n){t=(n?uu(e,t,n):t===i)?1:Yl(t);var r=sl(e)?ao:Ci;return r(e,t)}function Sc(e){var t=sl(e)?uo:Ti;return t(e)}function Ec(e){if(null==e)return 0;if(ll(e))return Il(e)?gr(e):e.length;var t=Xa(e);return t==Z||t==ae?e.size:ri(e).length}function kc(e,t,n){var r=sl(e)?Dn:Oi;return n&&uu(e,t,n)&&(t=i),r(e,Ha(t,3))}var Tc=_i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&uu(e,t[0],t[1])?t=[]:n>2&&uu(t[0],t[1],t[2])&&(t=[t[0]]),di(e,Oo(t,1),[])})),Ac=Nt||function(){return sn.Date.now()};function Oc(e,t){if("function"!=typeof t)throw new it(c);return e=Yl(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Na(e,k,i,i,i,i,t)}function Nc(e,t){var n;if("function"!=typeof t)throw new it(c);return e=Yl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Dc=_i((function(e,t,n){var r=b;if(n.length){var o=fr(n,za(Dc));r|=S}return Na(e,r,t,n,o)})),Bc=_i((function(e,t,n){var r=b|w;if(n.length){var o=fr(n,za(Bc));r|=S}return Na(t,r,e,n,o)}));function Pc(e,t,n){t=n?i:t;var r=Na(e,x,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function jc(e,t,n){t=n?i:t;var r=Na(e,C,i,i,i,i,i,t);return r.placeholder=jc.placeholder,r}function Lc(e,t,n){var r,o,a,u,s,l,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new it(c);function m(t){var n=r,a=o;return r=o=i,f=t,u=e.apply(a,n),u}function g(e){return f=e,s=Eu(b,t),d?m(e):u}function v(e){var n=e-l,r=e-f,o=t-n;return h?Ut(o,a-r):o}function y(e){var n=e-l,r=e-f;return l===i||n>=t||n<0||h&&r>=a}function b(){var e=Ac();if(y(e))return w(e);s=Eu(b,v(e))}function w(e){return s=i,p&&r?m(e):(r=o=i,u)}function _(){s!==i&&Ki(s),f=0,r=l=o=s=i}function x(){return s===i?u:w(Ac())}function C(){var e=Ac(),n=y(e);if(r=arguments,o=this,l=e,n){if(s===i)return g(l);if(h)return Ki(s),s=Eu(b,t),m(l)}return s===i&&(s=Eu(b,t)),u}return t=Ql(t)||0,Sl(n)&&(d=!!n.leading,h="maxWait"in n,a=h?Vt(Ql(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),C.cancel=_,C.flush=x,C}var Mc=_i((function(e,t){return _o(e,1,t)})),Ic=_i((function(e,t,n){return _o(e,Ql(t)||0,n)}));function Fc(e){return Na(e,A)}function Vc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(c);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Vc.Cache||zr),n}function Uc(e){if("function"!=typeof e)throw new it(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function qc(e){return Nc(2,e)}Vc.Cache=zr;var zc=$i((function(e,t){t=1==t.length&&sl(t[0])?An(t[0],Qn(Ha())):An(Oo(t,1),Qn(Ha()));var n=t.length;return _i((function(r){var o=-1,i=Ut(r.length,n);while(++o<i)r[o]=t[o].call(this,r[o]);return wn(e,this,r)}))})),Hc=_i((function(e,t){var n=fr(t,za(Hc));return Na(e,S,i,t,n)})),$c=_i((function(e,t){var n=fr(t,za($c));return Na(e,E,i,t,n)})),Wc=Ia((function(e,t){return Na(e,T,i,i,i,t)}));function Kc(e,t){if("function"!=typeof e)throw new it(c);return t=t===i?t:Yl(t),_i(e,t)}function Yc(e,t){if("function"!=typeof e)throw new it(c);return t=null==t?0:Vt(Yl(t),0),_i((function(n){var r=n[t],o=Wi(n,0,t);return r&&On(o,r),wn(e,this,o)}))}function Gc(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(c);return Sl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Lc(e,t,{leading:r,maxWait:t,trailing:o})}function Qc(e){return Rc(e,1)}function Xc(e,t){return Hc(zi(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return sl(e)?e:[e]}function Zc(e){return yo(e,g)}function el(e,t){return t="function"==typeof t?t:i,yo(e,g,t)}function tl(e){return yo(e,p|g)}function nl(e,t){return t="function"==typeof t?t:i,yo(e,p|g,t)}function rl(e,t){return null==t||wo(e,t,Cf(t))}function ol(e,t){return e===t||e!==e&&t!==t}var il=ka(Io),al=ka((function(e,t){return e>=t})),ul=$o(function(){return arguments}())?$o:function(e){return El(e)&&ft.call(e,"callee")&&!St.call(e,"callee")},sl=n.isArray,cl=pn?Qn(pn):Wo;function ll(e){return null!=e&&Cl(e.length)&&!_l(e)}function fl(e){return El(e)&&ll(e)}function dl(e){return!0===e||!1===e||El(e)&&Mo(e)==K}var hl=Lt||Gd,pl=mn?Qn(mn):Ko;function ml(e){return El(e)&&1===e.nodeType&&!Pl(e)}function gl(e){if(null==e)return!0;if(ll(e)&&(sl(e)||"string"==typeof e||"function"==typeof e.splice||hl(e)||Vl(e)||ul(e)))return!e.length;var t=Xa(e);if(t==Z||t==ae)return!e.size;if(hu(e))return!ri(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function vl(e,t){return Yo(e,t)}function yl(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?Yo(e,t,i,n):!!r}function bl(e){if(!El(e))return!1;var t=Mo(e);return t==Q||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Pl(e)}function wl(e){return"number"==typeof e&&Mt(e)}function _l(e){if(!Sl(e))return!1;var t=Mo(e);return t==X||t==J||t==W||t==oe}function xl(e){return"number"==typeof e&&e==Yl(e)}function Cl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function Sl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function El(e){return null!=e&&"object"==typeof e}var kl=gn?Qn(gn):Qo;function Tl(e,t){return e===t||Xo(e,t,Wa(t))}function Al(e,t,n){return n="function"==typeof n?n:i,Xo(e,t,Wa(t),n)}function Ol(e){return Bl(e)&&e!=+e}function Rl(e){if(du(e))throw new o(s);return Jo(e)}function Nl(e){return null===e}function Dl(e){return null==e}function Bl(e){return"number"==typeof e||El(e)&&Mo(e)==ee}function Pl(e){if(!El(e)||Mo(e)!=ne)return!1;var t=xt(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lt.call(n)==mt}var jl=vn?Qn(vn):Zo;function Ll(e){return xl(e)&&e>=-M&&e<=M}var Ml=yn?Qn(yn):ei;function Il(e){return"string"==typeof e||!sl(e)&&El(e)&&Mo(e)==ue}function Fl(e){return"symbol"==typeof e||El(e)&&Mo(e)==se}var Vl=bn?Qn(bn):ti;function Ul(e){return e===i}function ql(e){return El(e)&&Xa(e)==le}function zl(e){return El(e)&&Mo(e)==fe}var Hl=ka(ii),$l=ka((function(e,t){return e<=t}));function Wl(e){if(!e)return[];if(ll(e))return Il(e)?vr(e):oa(e);if(Tt&&e[Tt])return sr(e[Tt]());var t=Xa(e),n=t==Z?cr:t==ae?dr:qf;return n(e)}function Kl(e){if(!e)return 0===e?e:0;if(e=Ql(e),e===L||e===-L){var t=e<0?-1:1;return t*I}return e===e?e:0}function Yl(e){var t=Kl(e),n=t%1;return t===t?n?t-n:t:0}function Gl(e){return e?vo(Yl(e),0,V):0}function Ql(e){if("number"==typeof e)return e;if(Fl(e))return F;if(Sl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gn(e);var n=Ge.test(e);return n||Xe.test(e)?on(e.slice(2),n?2:8):Ye.test(e)?F:+e}function Xl(e){return ia(e,Sf(e))}function Jl(e){return e?vo(Yl(e),-M,M):0===e?e:0}function Zl(e){return null==e?"":Pi(e)}var ef=ca((function(e,t){if(hu(t)||ll(t))ia(t,Cf(t),e);else for(var n in t)ft.call(t,n)&&co(e,n,t[n])})),tf=ca((function(e,t){ia(t,Sf(t),e)})),nf=ca((function(e,t,n,r){ia(t,Sf(t),e,r)})),rf=ca((function(e,t,n,r){ia(t,Cf(t),e,r)})),of=Ia(go);function af(e,t){var n=Cr(e);return null==t?n:ho(n,t)}var uf=_i((function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:i;o&&uu(t[0],t[1],o)&&(r=1);while(++n<r){var a=t[n],u=Sf(a),s=-1,c=u.length;while(++s<c){var l=u[s],f=e[l];(f===i||ol(f,st[l])&&!ft.call(e,l))&&(e[l]=a[l])}}return e})),sf=_i((function(e){return e.push(i,Ba),wn(Af,i,e)}));function cf(e,t){return Ln(e,Ha(t,3),Do)}function lf(e,t){return Ln(e,Ha(t,3),Bo)}function ff(e,t){return null==e?e:Ro(e,Ha(t,3),Sf)}function df(e,t){return null==e?e:No(e,Ha(t,3),Sf)}function hf(e,t){return e&&Do(e,Ha(t,3))}function pf(e,t){return e&&Bo(e,Ha(t,3))}function mf(e){return null==e?[]:Po(e,Cf(e))}function gf(e){return null==e?[]:Po(e,Sf(e))}function vf(e,t,n){var r=null==e?i:jo(e,t);return r===i?n:r}function yf(e,t){return null!=e&&eu(e,t,Fo)}function bf(e,t){return null!=e&&eu(e,t,Vo)}var wf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),Td(Nd)),_f=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),xf=_i(Ho);function Cf(e){return ll(e)?oo(e):ri(e)}function Sf(e){return ll(e)?oo(e,!0):oi(e)}function Ef(e,t){var n={};return t=Ha(t,3),Do(e,(function(e,r,o){mo(n,t(e,r,o),e)})),n}function kf(e,t){var n={};return t=Ha(t,3),Do(e,(function(e,r,o){mo(n,r,t(e,r,o))})),n}var Tf=ca((function(e,t,n){ci(e,t,n)})),Af=ca((function(e,t,n,r){ci(e,t,n,r)})),Of=Ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Hi(t,e),r||(r=t.length>1),t})),ia(e,Va(e),n),r&&(n=yo(n,p|m|g,Pa));var o=t.length;while(o--)Li(n,t[o]);return n}));function Rf(e,t){return Df(e,Uc(Ha(t)))}var Nf=Ia((function(e,t){return null==e?{}:hi(e,t)}));function Df(e,t){if(null==e)return{};var n=An(Va(e),(function(e){return[e]}));return t=Ha(t),pi(e,n,(function(e,n){return t(e,n[0])}))}function Bf(e,t,n){t=Hi(t,e);var r=-1,o=t.length;o||(o=1,e=i);while(++r<o){var a=null==e?i:e[Nu(t[r])];a===i&&(r=o,a=n),e=_l(a)?a.call(e):a}return e}function Pf(e,t,n){return null==e?e:Si(e,t,n)}function jf(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Si(e,t,n,r)}var Lf=Ra(Cf),Mf=Ra(Sf);function If(e,t,n){var r=sl(e),o=r||hl(e)||Vl(e);if(t=Ha(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Sl(e)&&_l(i)?Cr(xt(e)):{}}return(o?xn:Do)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Ff(e,t){return null==e||Li(e,t)}function Vf(e,t,n){return null==e?e:Mi(e,t,zi(n))}function Uf(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Mi(e,t,zi(n),r)}function qf(e){return null==e?[]:Xn(e,Cf(e))}function zf(e){return null==e?[]:Xn(e,Sf(e))}function Hf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Ql(n),n=n===n?n:0),t!==i&&(t=Ql(t),t=t===t?t:0),vo(Ql(e),t,n)}function $f(e,t,n){return t=Kl(t),n===i?(n=t,t=0):n=Kl(n),e=Ql(e),Uo(e,t,n)}function Wf(e,t,n){if(n&&"boolean"!=typeof n&&uu(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Kl(e),t===i?(t=e,e=0):t=Kl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wt();return Ut(e+o*(t-e+rn("1e-"+((o+"").length-1))),t)}return yi(e,t)}var Kf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Yf(t):t)}));function Yf(e){return _d(Zl(e).toLowerCase())}function Gf(e){return e=Zl(e),e&&e.replace(Ze,nr).replace(Ht,"")}function Qf(e,t,n){e=Zl(e),t=Pi(t);var r=e.length;n=n===i?r:vo(Yl(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Xf(e){return e=Zl(e),e&&Oe.test(e)?e.replace(Te,rr):e}function Jf(e){return e=Zl(e),e&&Me.test(e)?e.replace(Le,"\\$&"):e}var Zf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=ha("toLowerCase");function nd(e,t,n){e=Zl(e),t=Yl(t);var r=t?gr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ca(Pt(o),n)+e+Ca(Bt(o),n)}function rd(e,t,n){e=Zl(e),t=Yl(t);var r=t?gr(e):0;return t&&r<t?e+Ca(t-r,n):e}function od(e,t,n){e=Zl(e),t=Yl(t);var r=t?gr(e):0;return t&&r<t?Ca(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),$t(Zl(e).replace(Ie,""),t||0)}function ad(e,t,n){return t=(n?uu(e,t,n):t===i)?1:Yl(t),wi(Zl(e),t)}function ud(){var e=arguments,t=Zl(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sd=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function cd(e,t,n){return n&&"number"!=typeof n&&uu(e,t,n)&&(t=n=i),n=n===i?V:n>>>0,n?(e=Zl(e),e&&("string"==typeof t||null!=t&&!jl(t))&&(t=Pi(t),!t&&ar(e))?Wi(vr(e),0,n):e.split(t,n)):[]}var ld=pa((function(e,t,n){return e+(n?" ":"")+_d(t)}));function fd(e,t,n){return e=Zl(e),n=null==n?0:vo(Yl(n),0,e.length),t=Pi(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=_r.templateSettings;n&&uu(e,t,n)&&(t=i),e=Zl(e),t=nf({},t,r,Da);var a,u,s=nf({},t.imports,r.imports,Da),c=Cf(s),f=Xn(s,c),d=0,h=t.interpolate||et,p="__p += '",m=rt((t.escape||et).source+"|"+h.source+"|"+(h===De?We:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qt+"]")+"\n";e.replace(m,(function(t,n,r,o,i,s){return r||(r=o),p+=e.slice(d,s).replace(tt,or),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),i&&(u=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=s+t.length,t})),p+="';\n";var v=ft.call(t,"variable")&&t.variable;if(v){if(He.test(v))throw new o(l)}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(Ce,""):p).replace(Se,"$1").replace(Ee,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Cd((function(){return Fe(c,g+"return "+p).apply(i,f)}));if(y.source=p,bl(y))throw y;return y}function hd(e){return Zl(e).toLowerCase()}function pd(e){return Zl(e).toUpperCase()}function md(e,t,n){if(e=Zl(e),e&&(n||t===i))return Gn(e);if(!e||!(t=Pi(t)))return e;var r=vr(e),o=vr(t),a=Zn(r,o),u=er(r,o)+1;return Wi(r,a,u).join("")}function gd(e,t,n){if(e=Zl(e),e&&(n||t===i))return e.slice(0,yr(e)+1);if(!e||!(t=Pi(t)))return e;var r=vr(e),o=er(r,vr(t))+1;return Wi(r,0,o).join("")}function vd(e,t,n){if(e=Zl(e),e&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Pi(t)))return e;var r=vr(e),o=Zn(r,vr(t));return Wi(r,o).join("")}function yd(e,t){var n=O,r=R;if(Sl(t)){var o="separator"in t?t.separator:o;n="length"in t?Yl(t.length):n,r="omission"in t?Pi(t.omission):r}e=Zl(e);var a=e.length;if(ar(e)){var u=vr(e);a=u.length}if(n>=a)return e;var s=n-gr(r);if(s<1)return r;var c=u?Wi(u,0,s).join(""):e.slice(0,s);if(o===i)return c+r;if(u&&(s+=c.length-s),jl(o)){if(e.slice(s).search(o)){var l,f=c;o.global||(o=rt(o.source,Zl(Ke.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===i?s:d)}}else if(e.indexOf(Pi(o),s)!=s){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r}function bd(e){return e=Zl(e),e&&Ae.test(e)?e.replace(ke,br):e}var wd=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_d=ha("toUpperCase");function xd(e,t,n){return e=Zl(e),t=n?i:t,t===i?ur(e)?xr(e):jn(e):e.match(t)||[]}var Cd=_i((function(e,t){try{return wn(e,i,t)}catch(n){return bl(n)?n:new o(n)}})),Sd=Ia((function(e,t){return xn(t,(function(t){t=Nu(t),mo(e,t,Dc(e[t],e))})),e}));function Ed(e){var t=null==e?0:e.length,n=Ha();return e=t?An(e,(function(e){if("function"!=typeof e[1])throw new it(c);return[n(e[0]),e[1]]})):[],_i((function(n){var r=-1;while(++r<t){var o=e[r];if(wn(o[0],this,n))return wn(o[1],this,n)}}))}function kd(e){return bo(yo(e,p))}function Td(e){return function(){return e}}function Ad(e,t){return null==e||e!==e?t:e}var Od=ya(),Rd=ya(!0);function Nd(e){return e}function Dd(e){return ni("function"==typeof e?e:yo(e,p))}function Bd(e){return ui(yo(e,p))}function Pd(e,t){return si(e,yo(t,p))}var jd=_i((function(e,t){return function(n){return Ho(n,e,t)}})),Ld=_i((function(e,t){return function(n){return Ho(e,n,t)}}));function Md(e,t,n){var r=Cf(t),o=Po(t,r);null!=n||Sl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Po(t,Cf(t)));var i=!(Sl(n)&&"chain"in n)||!!n.chain,a=_l(e);return xn(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=oa(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,On([this.value()],arguments))})})),e}function Id(){return sn._===this&&(sn._=gt),this}function Fd(){}function Vd(e){return e=Yl(e),_i((function(t){return fi(t,e)}))}var Ud=xa(An),qd=xa(Sn),zd=xa(Dn);function Hd(e){return su(e)?qn(Nu(e)):mi(e)}function $d(e){return function(t){return null==e?i:jo(e,t)}}var Wd=Ea(),Kd=Ea(!0);function Yd(){return[]}function Gd(){return!1}function Qd(){return{}}function Xd(){return""}function Jd(){return!0}function Zd(e,t){if(e=Yl(e),e<1||e>M)return[];var n=V,r=Ut(e,V);t=Ha(t),e-=V;var o=Kn(r,t);while(++n<e)t(n);return o}function eh(e){return sl(e)?An(e,Nu):Fl(e)?[e]:oa(Ru(Zl(e)))}function th(e){var t=++dt;return Zl(e)+t}var nh=_a((function(e,t){return e+t}),0),rh=Aa("ceil"),oh=_a((function(e,t){return e/t}),1),ih=Aa("floor");function ah(e){return e&&e.length?ko(e,Nd,Io):i}function uh(e,t){return e&&e.length?ko(e,Ha(t,2),Io):i}function sh(e){return Un(e,Nd)}function ch(e,t){return Un(e,Ha(t,2))}function lh(e){return e&&e.length?ko(e,Nd,ii):i}function fh(e,t){return e&&e.length?ko(e,Ha(t,2),ii):i}var dh=_a((function(e,t){return e*t}),1),hh=Aa("round"),ph=_a((function(e,t){return e-t}),0);function mh(e){return e&&e.length?Wn(e,Nd):0}function gh(e,t){return e&&e.length?Wn(e,Ha(t,2)):0}return _r.after=Oc,_r.ary=Rc,_r.assign=ef,_r.assignIn=tf,_r.assignInWith=nf,_r.assignWith=rf,_r.at=of,_r.before=Nc,_r.bind=Dc,_r.bindAll=Sd,_r.bindKey=Bc,_r.castArray=Jc,_r.chain=$s,_r.chunk=ju,_r.compact=Lu,_r.concat=Mu,_r.cond=Ed,_r.conforms=kd,_r.constant=Td,_r.countBy=nc,_r.create=af,_r.curry=Pc,_r.curryRight=jc,_r.debounce=Lc,_r.defaults=uf,_r.defaultsDeep=sf,_r.defer=Mc,_r.delay=Ic,_r.difference=Iu,_r.differenceBy=Fu,_r.differenceWith=Vu,_r.drop=Uu,_r.dropRight=qu,_r.dropRightWhile=zu,_r.dropWhile=Hu,_r.fill=$u,_r.filter=oc,_r.flatMap=uc,_r.flatMapDeep=sc,_r.flatMapDepth=cc,_r.flatten=Yu,_r.flattenDeep=Gu,_r.flattenDepth=Qu,_r.flip=Fc,_r.flow=Od,_r.flowRight=Rd,_r.fromPairs=Xu,_r.functions=mf,_r.functionsIn=gf,_r.groupBy=dc,_r.initial=es,_r.intersection=ts,_r.intersectionBy=ns,_r.intersectionWith=rs,_r.invert=wf,_r.invertBy=_f,_r.invokeMap=pc,_r.iteratee=Dd,_r.keyBy=mc,_r.keys=Cf,_r.keysIn=Sf,_r.map=gc,_r.mapKeys=Ef,_r.mapValues=kf,_r.matches=Bd,_r.matchesProperty=Pd,_r.memoize=Vc,_r.merge=Tf,_r.mergeWith=Af,_r.method=jd,_r.methodOf=Ld,_r.mixin=Md,_r.negate=Uc,_r.nthArg=Vd,_r.omit=Of,_r.omitBy=Rf,_r.once=qc,_r.orderBy=vc,_r.over=Ud,_r.overArgs=zc,_r.overEvery=qd,_r.overSome=zd,_r.partial=Hc,_r.partialRight=$c,_r.partition=yc,_r.pick=Nf,_r.pickBy=Df,_r.property=Hd,_r.propertyOf=$d,_r.pull=ss,_r.pullAll=cs,_r.pullAllBy=ls,_r.pullAllWith=fs,_r.pullAt=ds,_r.range=Wd,_r.rangeRight=Kd,_r.rearg=Wc,_r.reject=_c,_r.remove=hs,_r.rest=Kc,_r.reverse=ps,_r.sampleSize=Cc,_r.set=Pf,_r.setWith=jf,_r.shuffle=Sc,_r.slice=ms,_r.sortBy=Tc,_r.sortedUniq=xs,_r.sortedUniqBy=Cs,_r.split=cd,_r.spread=Yc,_r.tail=Ss,_r.take=Es,_r.takeRight=ks,_r.takeRightWhile=Ts,_r.takeWhile=As,_r.tap=Ws,_r.throttle=Gc,_r.thru=Ks,_r.toArray=Wl,_r.toPairs=Lf,_r.toPairsIn=Mf,_r.toPath=eh,_r.toPlainObject=Xl,_r.transform=If,_r.unary=Qc,_r.union=Os,_r.unionBy=Rs,_r.unionWith=Ns,_r.uniq=Ds,_r.uniqBy=Bs,_r.uniqWith=Ps,_r.unset=Ff,_r.unzip=js,_r.unzipWith=Ls,_r.update=Vf,_r.updateWith=Uf,_r.values=qf,_r.valuesIn=zf,_r.without=Ms,_r.words=xd,_r.wrap=Xc,_r.xor=Is,_r.xorBy=Fs,_r.xorWith=Vs,_r.zip=Us,_r.zipObject=qs,_r.zipObjectDeep=zs,_r.zipWith=Hs,_r.entries=Lf,_r.entriesIn=Mf,_r.extend=tf,_r.extendWith=nf,Md(_r,_r),_r.add=nh,_r.attempt=Cd,_r.camelCase=Kf,_r.capitalize=Yf,_r.ceil=rh,_r.clamp=Hf,_r.clone=Zc,_r.cloneDeep=tl,_r.cloneDeepWith=nl,_r.cloneWith=el,_r.conformsTo=rl,_r.deburr=Gf,_r.defaultTo=Ad,_r.divide=oh,_r.endsWith=Qf,_r.eq=ol,_r.escape=Xf,_r.escapeRegExp=Jf,_r.every=rc,_r.find=ic,_r.findIndex=Wu,_r.findKey=cf,_r.findLast=ac,_r.findLastIndex=Ku,_r.findLastKey=lf,_r.floor=ih,_r.forEach=lc,_r.forEachRight=fc,_r.forIn=ff,_r.forInRight=df,_r.forOwn=hf,_r.forOwnRight=pf,_r.get=vf,_r.gt=il,_r.gte=al,_r.has=yf,_r.hasIn=bf,_r.head=Ju,_r.identity=Nd,_r.includes=hc,_r.indexOf=Zu,_r.inRange=$f,_r.invoke=xf,_r.isArguments=ul,_r.isArray=sl,_r.isArrayBuffer=cl,_r.isArrayLike=ll,_r.isArrayLikeObject=fl,_r.isBoolean=dl,_r.isBuffer=hl,_r.isDate=pl,_r.isElement=ml,_r.isEmpty=gl,_r.isEqual=vl,_r.isEqualWith=yl,_r.isError=bl,_r.isFinite=wl,_r.isFunction=_l,_r.isInteger=xl,_r.isLength=Cl,_r.isMap=kl,_r.isMatch=Tl,_r.isMatchWith=Al,_r.isNaN=Ol,_r.isNative=Rl,_r.isNil=Dl,_r.isNull=Nl,_r.isNumber=Bl,_r.isObject=Sl,_r.isObjectLike=El,_r.isPlainObject=Pl,_r.isRegExp=jl,_r.isSafeInteger=Ll,_r.isSet=Ml,_r.isString=Il,_r.isSymbol=Fl,_r.isTypedArray=Vl,_r.isUndefined=Ul,_r.isWeakMap=ql,_r.isWeakSet=zl,_r.join=os,_r.kebabCase=Zf,_r.last=is,_r.lastIndexOf=as,_r.lowerCase=ed,_r.lowerFirst=td,_r.lt=Hl,_r.lte=$l,_r.max=ah,_r.maxBy=uh,_r.mean=sh,_r.meanBy=ch,_r.min=lh,_r.minBy=fh,_r.stubArray=Yd,_r.stubFalse=Gd,_r.stubObject=Qd,_r.stubString=Xd,_r.stubTrue=Jd,_r.multiply=dh,_r.nth=us,_r.noConflict=Id,_r.noop=Fd,_r.now=Ac,_r.pad=nd,_r.padEnd=rd,_r.padStart=od,_r.parseInt=id,_r.random=Wf,_r.reduce=bc,_r.reduceRight=wc,_r.repeat=ad,_r.replace=ud,_r.result=Bf,_r.round=hh,_r.runInContext=e,_r.sample=xc,_r.size=Ec,_r.snakeCase=sd,_r.some=kc,_r.sortedIndex=gs,_r.sortedIndexBy=vs,_r.sortedIndexOf=ys,_r.sortedLastIndex=bs,_r.sortedLastIndexBy=ws,_r.sortedLastIndexOf=_s,_r.startCase=ld,_r.startsWith=fd,_r.subtract=ph,_r.sum=mh,_r.sumBy=gh,_r.template=dd,_r.times=Zd,_r.toFinite=Kl,_r.toInteger=Yl,_r.toLength=Gl,_r.toLower=hd,_r.toNumber=Ql,_r.toSafeInteger=Jl,_r.toString=Zl,_r.toUpper=pd,_r.trim=md,_r.trimEnd=gd,_r.trimStart=vd,_r.truncate=yd,_r.unescape=bd,_r.uniqueId=th,_r.upperCase=wd,_r.upperFirst=_d,_r.each=lc,_r.eachRight=fc,_r.first=Ju,Md(_r,function(){var e={};return Do(_r,(function(t,n){ft.call(_r.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_r.VERSION=a,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_r[e].placeholder=_r})),xn(["drop","take"],(function(e,t){Tr.prototype[e]=function(n){n=n===i?1:Vt(Yl(n),0);var r=this.__filtered__&&!t?new Tr(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,V),type:e+(r.__dir__<0?"Right":"")}),r},Tr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==B||n==j;Tr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Tr.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Tr.prototype[e]=function(){return this.__filtered__?new Tr(this):this[n](1)}})),Tr.prototype.compact=function(){return this.filter(Nd)},Tr.prototype.find=function(e){return this.filter(e).head()},Tr.prototype.findLast=function(e){return this.reverse().find(e)},Tr.prototype.invokeMap=_i((function(e,t){return"function"==typeof e?new Tr(this):this.map((function(n){return Ho(n,e,t)}))})),Tr.prototype.reject=function(e){return this.filter(Uc(Ha(e)))},Tr.prototype.slice=function(e,t){e=Yl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Tr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=Yl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Tr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tr.prototype.toArray=function(){return this.take(V)},Do(Tr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=_r[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(_r.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,s=t instanceof Tr,c=u[0],l=s||sl(t),f=function(e){var t=o.apply(_r,On([e],u));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,m=s&&!h;if(!a&&l){t=m?t:new Tr(this);var g=e.apply(t,u);return g.__actions__.push({func:Ks,args:[f],thisArg:i}),new kr(g,d)}return p&&m?e.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_r.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(sl(o)?o:[],e)}return this[n]((function(n){return t.apply(sl(n)?n:[],e)}))}})),Do(Tr.prototype,(function(e,t){var n=_r[t];if(n){var r=n.name+"";ft.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[ba(i,w).name]=[{name:"wrapper",func:i}],Tr.prototype.clone=Ar,Tr.prototype.reverse=Or,Tr.prototype.value=Rr,_r.prototype.at=Ys,_r.prototype.chain=Gs,_r.prototype.commit=Qs,_r.prototype.next=Xs,_r.prototype.plant=Zs,_r.prototype.reverse=ec,_r.prototype.toJSON=_r.prototype.valueOf=_r.prototype.value=tc,_r.prototype.first=_r.prototype.head,Tt&&(_r.prototype[Tt]=Js),_r},Sr=Cr();sn._=Sr,o=function(){return Sr}.call(t,n,t,r),o===i||(r.exports=o)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"312a":function(e,t,n){},"323e":function(e,t,n){var r,o;
  25. /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  26. * @license MIT */(function(i,a){r=a,o="function"===typeof r?r.call(t,n,t,e):r,void 0===o||(e.exports=o)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function o(e,n,o){var i;return i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},i.transition="all "+n+"ms "+o,i}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var u=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var s=e.render(!u),c=s.querySelector(t.barSelector),l=t.speed,f=t.easing;return s.offsetWidth,i((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(c,o(r,l,f)),1===r?(a(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout((function(){a(s,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var i,u=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),l=document.querySelector(t.parent);return a(u,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(i=o.querySelector(t.spinnerSelector),i&&f(i)),l!=document.body&&s(l,"nprogress-custom-parent"),l.appendChild(o),o},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);while(o--)if(r=e[o]+i,r in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function u(e,t){var n="string"==typeof e?e:l(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=l(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=l(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function l(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},3359:function(e,t,n){"use strict";n("ace1")},3391:function(e,t,n){"use strict";n("3bc2")},"348f":function(e,t,n){"use strict";n("62cf")},3825:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-app-main"},[t("section",[t("transition",{attrs:{mode:"out-in",name:"fade-transform"}},[e.routerView?t("vab-router-view"):e._e()],1)],1),t("vab-footer")],1)},o=[],i=n("2f62"),a=n("323e"),u=n.n(a),s={name:"VabAppMain",data(){return{routerView:!0}},computed:{...Object(i["c"])({theme:"settings/theme",extra:"settings/extra",visitedRoutes:"tabs/visitedRoutes"}),changeData(){return[...new Set(this.visitedRoutes.filter(e=>!e.meta.noKeepAlive&&e.name!==this.extra.transferRouteName).flatMap(e=>e.matched))]}},watch:{changeData:{handler(e){this.setCachedRoutes(e)}}},created(){const{showProgressBar:e}=this.theme;this.$baseEventBus.$on("reload-router-view",()=>{this.routerView=!1,e&&u.a.start(),this.$nextTick(()=>{this.routerView=!0,setTimeout(()=>{e&&u.a.done()},200)})})},methods:{...Object(i["b"])({setCachedRoutes:"routes/setCachedRoutes"})}},c=s,l=(n("2ad1"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"05babab6",null);t["default"]=f.exports},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3975:function(e,t,n){"use strict";n.r(t);n("caad");var r=n("a026"),o=n("4ff3");r["default"].directive("permissions",{inserted(e,t){const{value:n}=t;n&&(Object(o["hasAccess"])(n)||e.parentNode&&e.parentNode.removeChild(e))}}),r["default"].directive("drag",{bind(e,t,n){if(e.querySelector(".el-dialog__header")&&e.querySelector(".el-dialog")){const t=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");t.style.cssText+=";cursor:move;",r.style.cssText+=";top:0;";const o=function(){return window.document.currentStyle?(e,t)=>e.currentStyle[t]:(e,t)=>getComputedStyle(e,null)[t]}();t.onmousedown=e=>{const i=e.clientX-t.offsetLeft,a=e.clientY-t.offsetTop,u=r.offsetWidth,s=r.offsetHeight,c=document.body.clientWidth,l=document.body.clientHeight,f=r.offsetLeft,d=c-r.offsetLeft-u,h=r.offsetTop,p=l-r.offsetTop-s;let m=o(r,"left"),g=o(r,"top");m.includes("%")?(m=+document.body.clientWidth*(+m/100),g=+document.body.clientHeight*(+g/100)):(m=+m.slice(0,-2),g=+g.slice(0,-2)),document.onmousemove=function(e){let t=e.clientX-i,o=e.clientY-a;-t>f?t=-f:t>d&&(t=d),-o>h?o=-h:o>p&&(o=p),r.style.cssText+=`;left:${t+m}px;top:${o+g}px;`,n.child.$emit("drag-dialog")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}})},"3bc2":function(e,t,n){},"3c4e":function(e,t,n){"use strict";var r=function(e){return o(e)&&!i(e)};function o(e){return!!e&&"object"===typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||s(e)}var a="function"===typeof Symbol&&Symbol.for,u=a?Symbol.for("react.element"):60103;function s(e){return e.$$typeof===u}function c(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(c(e),e,t):e}function f(e,t,n){var o=e.slice();return t.forEach((function(t,i){"undefined"===typeof o[i]?o[i]=l(t,n):r(t)?o[i]=h(e[i],t,n):-1===e.indexOf(t)&&o.push(l(t,n))})),o}function d(e,t,n){var o={};return r(e)&&Object.keys(e).forEach((function(t){o[t]=l(e[t],n)})),Object.keys(t).forEach((function(i){r(t[i])&&e[i]?o[i]=h(e[i],t[i],n):o[i]=l(t[i],n)})),o}function h(e,t,n){var r=Array.isArray(t),o=Array.isArray(e),i=n||{arrayMerge:f},a=r===o;if(a){if(r){var u=i.arrayMerge||f;return u(e,t,n)}return d(e,t,n)}return l(t,n)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var p=h;e.exports=p},"3d47":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-header"},[t("div",{staticClass:"vab-main"},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}},[t("vab-logo")],1),t("el-col",{attrs:{span:18}},[t("div",{staticClass:"right-panel"},["horizontal"===e.layout?t("el-menu",{attrs:{"active-text-color":e.variables["menu-color-active"],"background-color":e.variables["menu-background"],"default-active":e.activeMenu,"menu-trigger":"hover",mode:"horizontal","text-color":e.variables["menu-color"]}},[e._l(e.handleRoutes,(function(n){return[n.meta&&!n.meta.hidden?t("vab-menu",{key:n.fullPath,attrs:{item:n,layout:e.layout}}):e._e()]}))],2):e._e(),t("vab-error-log"),t("vab-full-screen"),t("vab-refresh"),t("vab-avatar")],1)])],1)],1)])},o=[],i=n("73e1"),a=n.n(i),u=n("2f62"),s=n("9f2e"),c={name:"VabHeader",props:{layout:{type:String,default:"horizontal"}},data(){return{activeMenu:"",menuTrigger:"hover"}},computed:{...Object(u["c"])({routes:"routes/routes"}),variables(){return a.a},handleRoutes(){return this.routes.flatMap(e=>e.meta&&!0===e.meta.levelHidden&&e.children?e.children:e)}},watch:{$route:{handler(e){this.activeMenu=Object(s["handleActivePath"])(e)},immediate:!0}}},l=c,f=(n("622d"),n("2877")),d=Object(f["a"])(l,r,o,!1,null,"7d89b876",null);t["default"]=d.exports},"3dfd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},o=[],i={name:"App"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"3e3c":function(e,t,n){"use strict";n.r(t),n.d(t,"getPublicKey",(function(){return o}));var r=n("b775");function o(){return Object(r["default"])({url:"/publicKey",method:"get"})}},"3e48":function(e,t,n){"use strict";n("7fcf")},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),o=n("00ce"),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){var t=u(r,a,arguments);if(s&&c){var n=s(t,"length");n.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},"3efd":function(e,t,n){},"3f1c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showTheme?t("span",[t("vab-icon",{attrs:{icon:"brush-2-line"},on:{click:e.handleOpenTheme}})],1):e._e()},o=[],i=n("2f62"),a={name:"VabTheme",computed:{...Object(i["c"])({theme:"settings/theme"})},methods:{handleOpenTheme(){this.$baseEventBus.$emit("theme")}}},u=a,s=n("2877"),c=Object(s["a"])(u,r,o,!1,null,null,null);t["default"]=c.exports},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},4127:function(e,t,n){"use strict";var r=n("5402"),o=n("d233"),i=n("b313"),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=String.prototype.split,l=Array.prototype.push,f=function(e,t){l.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,h=i["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g={},v=function e(t,n,i,a,u,l,d,h,v,y,b,w,_,x,C,S){var E=t,k=S,T=0,A=!1;while(void 0!==(k=k.get(g))&&!A){var O=k.get(t);if(T+=1,"undefined"!==typeof O){if(O===T)throw new RangeError("Cyclic object value");A=!0}"undefined"===typeof k.get(g)&&(T=0)}if("function"===typeof h?E=h(n,E):E instanceof Date?E=b(E):"comma"===i&&s(E)&&(E=o.maybeMap(E,(function(e){return e instanceof Date?b(e):e}))),null===E){if(u)return d&&!x?d(n,p.encoder,C,"key",w):n;E=""}if(m(E)||o.isBuffer(E)){if(d){var R=x?n:d(n,p.encoder,C,"key",w);if("comma"===i&&x){for(var N=c.call(String(E),","),D="",B=0;B<N.length;++B)D+=(0===B?"":",")+_(d(N[B],p.encoder,C,"value",w));return[_(R)+(a&&s(E)&&1===N.length?"[]":"")+"="+D]}return[_(R)+"="+_(d(E,p.encoder,C,"value",w))]}return[_(n)+"="+_(String(E))]}var P,j=[];if("undefined"===typeof E)return j;if("comma"===i&&s(E))P=[{value:E.length>0?E.join(",")||null:void 0}];else if(s(h))P=h;else{var L=Object.keys(E);P=v?L.sort(v):L}for(var M=a&&s(E)&&1===E.length?n+"[]":n,I=0;I<P.length;++I){var F=P[I],V="object"===typeof F&&"undefined"!==typeof F.value?F.value:E[F];if(!l||null!==V){var U=s(E)?"function"===typeof i?i(M,F):M:M+(y?"."+F:"["+F+"]");S.set(t,T);var q=r();q.set(g,S),f(j,e(V,U,i,a,u,l,d,h,v,y,b,w,_,x,C,q))}}return j},y=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i["default"];if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,o,i=e,a=y(t);"function"===typeof a.filter?(o=a.filter,i=o("",i)):s(a.filter)&&(o=a.filter,n=o);var c,l=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=u[c];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===d&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),a.sort&&n.sort(a.sort);for(var p=r(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&null===i[g]||f(l,v(i[g],g,d,h,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,p))}var b=l.join(a.delimiter),w=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},"41ec":function(e,t,n){},4240:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=(n("a6a5"),n("ef9b"),n("2adc")),i=n.n(o);n("312a");r["default"].component("VabIcon",i.a);const a=n("fe19");a.keys().map(a);const u=n("a404");u.keys().map(u);const s=n("7c00");s.keys().map(s).forEach(e=>{e.default.name&&"Layouts"!==e.default.name&&r["default"].component(e.default.name,e.default)})},4328:function(e,t,n){"use strict";var r=n("4127"),o=n("9e6a"),i=n("b313");e.exports={formats:i,parse:o,stringify:r}},4360:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("2f62");r["default"].use(o["a"]);const i={},a=n("d307");a.keys().forEach(e=>{i[e.replace(/(modules|\/|\.|js)/g,"")]={...a(e).default,namespaced:!0}});const u=new o["a"].Store({modules:i});t["default"]=u},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448d":function(e,t){e.exports={layout:"vertical",themeName:"default",columnStyle:"vertical",fixedHeader:!0,showProgressBar:!0,showTabs:!0,tabsBarStyle:"card",showTabsBarIcon:!0,showRefresh:!0,showSearch:!0,showTheme:!0,showNotice:!0,showFullScreen:!0,showThemeSetting:!0}},4661:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-nav"},[t("el-row",{attrs:{gutter:15}},[t("el-col",{attrs:{lg:12,md:12,sm:12,xl:12,xs:4}},[t("div",{staticClass:"left-panel"},["comprehensive"===e.layout?t("el-tabs",{attrs:{"tab-position":"top"},on:{"tab-click":e.handleTabClick},model:{value:e.extra.first,callback:function(t){e.$set(e.extra,"first",t)},expression:"extra.first"}},e._l(e.handleRoutes,(function(n){return t("el-tab-pane",{key:n.name,attrs:{name:n.name},scopedSlots:e._u([{key:"label",fn:function(){return[n.meta.icon?t("vab-icon",{staticStyle:{"min-width":"16px"},attrs:{icon:n.meta.icon,"is-custom-svg":n.meta.isCustomSvg}}):e._e(),e._v(" "+e._s(n.meta.title)+" ")]},proxy:!0}],null,!0)})})),1):t("vab-breadcrumb",{staticClass:"hidden-xs-only"})],1)]),t("el-col",{attrs:{lg:12,md:12,sm:12,xl:12,xs:20}},[t("div",{staticClass:"right-panel"},[t("span",{staticClass:"do-text",on:{click:e.doText}},[e._v("使用手册")]),t("vab-error-log"),t("vab-full-screen"),t("vab-refresh"),t("vab-avatar")],1)])],1)],1)},o=[],i=n("2f62"),a=n("f121"),u={name:"VabNav",props:{layout:{type:String,default:""}},data(){return{firstMenu:""}},computed:{...Object(i["c"])({extra:"settings/extra",routes:"routes/routes",role_id:"user/role_id"}),handleRoutes(){return this.routes.filter(e=>e.meta&&!0!==e.meta.hidden)},handleActiveMenu(){return this.routes.find(e=>e.name===this.extra.first)},handlePartialRoutes(){const e=this.handleActiveMenu;return e?e.children:[]}},watch:{$route:{handler(e){const t=e.matched[0].name;this.extra.first!==t&&(this.extra.first=t,this.handleTabClick(!0))},immediate:!0}},methods:{handleTabClick(e){!0!==e&&a["openFirstMenu"]&&this.$router.push(this.handleActiveMenu)},doText(){let e="";e=3==this.role?"http://docs.site.ximengnaikang.com/web/#/29/292":"http://docs.site.ximengnaikang.com/web/#/28/285",window.open(e,"_blank")}}},s=u,c=(n("3e48"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"75c18688",null);t["default"]=l.exports},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"4a0c":function(e){e.exports=JSON.parse('{"_from":"axios@^0.21.1","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21.1","name":"axios","escapedName":"axios","rawSpec":"^0.21.1","saveSpec":null,"fetchSpec":"^0.21.1"},"_requiredBy":["/","/vue-plugin-rely"],"_resolved":"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21.1","_where":"E:\\\\24、map网格管理\\\\area-point-web","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,c),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(u,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},"4b15":function(e,t,n){},"4d49":function(e,t,n){"use strict";n.r(t);const r=()=>({errorLogs:[]}),o={errorLogs:e=>e.errorLogs},i={addErrorLog(e,t){e.errorLogs.push(t)},clearErrorLog:e=>{e.errorLogs.splice(0)}},a={addErrorLog({commit:e},t){e("addErrorLog",t)},clearErrorLog({commit:e}){e("clearErrorLog")}};t["default"]={state:r,getters:o,mutations:i,actions:a}},"4d6e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showRefresh?t("vab-icon",{attrs:{icon:"refresh-line"},on:{click:e.refreshRoute}}):e._e()},o=[],i=n("2f62"),a={name:"VabRefresh",computed:{...Object(i["c"])({theme:"settings/theme",extra:"settings/extra",visitedRoutes:"tabs/visitedRoutes"})},methods:{async refreshRoute(){const e=this.$route,t=e.matched.slice(0,-1).map(e=>e.components.default.name).join(","),n=this.visitedRoutes.filter(t=>t.name!==e.name);if(n.length){let r=n.find(e=>e.matched.slice(0,-1).join(",")===t);r||(r=n[0]),this.extra.transferRouteName=e.name,this.$router.replace(r).then(()=>{this.extra.transferRouteName="",this.$router.replace(e)})}else this.$baseEventBus.$emit("reload-router-view")}}},u=a,s=n("2877"),c=Object(s["a"])(u,r,o,!1,null,null,null);t["default"]=c.exports},"4ff3":function(e,t,n){"use strict";n.r(t),n.d(t,"hasAccess",(function(){return i})),n.d(t,"can",(function(){return a}));n("caad");var r=n("4360"),o=n("61f7");function i(e){if(r["default"].getters["acl/admin"])return!0;if(Object(o["isArray"])(e)&&e.length>0)return a(r["default"].getters["acl/role"],{role:e,mode:"oneOf"});const{role:t,ability:n,mode:i="oneOf"}=e;let u=!0;return t&&(u=u&&a(r["default"].getters["acl/role"],{role:t,mode:i})),u&&n&&(u=a(r["default"].getters["acl/ability"],{role:n,mode:i})),u}function a(e,t){let n=!1;const{role:r,mode:o}=t;return r&&o&&("allOf"===o&&(n=r.every(t=>e.includes(t))),"oneOf"===o&&(n=r.some(t=>e.includes(t))),"except"===o&&(n=!r.some(t=>e.includes(t)))),n}},"513e":function(e,t,n){"use strict";n("9440")},5155:function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},5270:function(e,t,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5402:function(e,t,n){"use strict";var r=n("00ce"),o=n("545e"),i=n("2714"),a=r("%TypeError%"),u=r("%WeakMap%",!0),s=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(s){if(t)return d(t,r)}else if(n)return g(n,r)},has:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(s){if(t)return p(t,r)}else if(n)return y(n,r);return!1},set:function(r,o){u&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new u),l(e,r,o)):s?(t||(t=new s),h(t,r,o)):(n||(n={key:{},next:null}),v(n,r,o))}};return r}},"545e":function(e,t,n){"use strict";var r=n("00ce"),o=n("3eb1"),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},5466:function(e,t,n){},"55b1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-col",{attrs:{span:24}},[t("div",{staticClass:"bottom-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormBottomPanel"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"560f":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"56d7":function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("3dfd"),i=n("4360"),a=n("a18c"),u=n("e562"),s=n.n(u);const c=["INIT","INPUT","CHANGED"];var l={name:"VueTinymce",model:{prop:"content",event:"change"},props:{content:{type:[String,Object],default:""},setup:{type:Function,default:function(){}},disabled:{type:Boolean,default:!1},setting:{type:Object,default:function(){return{}}},debug:Boolean},render(e){return"undefined"==typeof tinymce?e("div","tinymce is undefined"):e("div",{attrs:{id:this.id}})},data:()=>({id:"vue-tinymce-"+Date.now()+Math.floor(1e3*Math.random()),editor:null,status:0,bookmark:null}),watch:{content(e,t){if(this.changedLog({type:"propsChanged"},this.status,`${e} | ${t}`,"--"),1!==this.status&&t!==e&&this.editor&&this.editor.initialized)return null===e?this.resetContent(""):void this.setContent(e)},disabled(e){this.editor.setMode(e?"readonly":"design")}},created(){if(this.changedLog=this.debug?(console.warn("`@packy-tang/vue-tinymce`进入debug模式"),(e,t,n,r)=>console.log("来自:%s | 状态:%s \n %s \n %s",e.type,c[t],n,r)):()=>!1,"undefined"==typeof tinymce)throw new Error("tinymce undefined")},beforeMount(){const e=Object.assign({},this.setting,{selector:"#"+this.id,setup:e=>{this.setup(e),e.on("init",()=>{this.setContent(this.content,e),e.on("keyup input",e=>{this.status=1}),e.on("SetContent",t=>{this.changedLog(t,this.status,e.getContent(),"--")}),e.on("Blur",t=>{this.status=0,this.changedLog(t,this.status,e.getContent(),"--")}),e.on("input keyup Change Undo Redo ExecCommand NodeChange",t=>{this.onChanged(t,e)})})}});this.editor=tinymce.createEditor(e.selector,e)},mounted(){this.editor.targetElm=this.$el,this.editor.render()},updated(){this.editor.render()},beforeDestroy:function(){this.editor.remove()},methods:{setContent(e,t){t||(t=this.editor),t.setContent(e),t.selection.moveToBookmark(this.bookmark)},resetContent(e,t){if(t||(t=this.editor),t.resetContent)return t.resetContent(e);t.setContent(e),t.setDirty(!1),t.undoManager.clear()},onChanged(e,t){t||(t=this.editor),"change"===e.type&&(this.bookmark=e.level.bookmark);const n=t.getContent();this.changedLog(e,this.status,n,"--"),this.$emit("change",n)}}},f=new class{constructor(){const{prefix:e}={prefix:""};this.prefix=e}install(e,t={}){const n=t.prefix||this.prefix,r={VueTinymce:l};Object.keys(r).forEach(t=>{const o=r[t];e.component(n+o.name,o)})}},d=f,h=n("8f9b"),p=n.n(h);n("4240");setTimeout(()=>{localStorage.clear(),r["default"].use(p.a)},0),p.a.initAMapApiLoader({key:"a4445e92cbfb7f7e52ae4d718268843f",plugin:["AMap.Geolocation","AMap.Autocomplete","AMap.PlaceSearch","AMap.Scale","AMap.OverView","AMap.ToolBar","AMap.MapType","AMap.PolyEditor","AMap.CircleEditor","AMap.MarkerClusterer"],v:"1.4.15",uiVersion:"1.0.11"}),window._AMapSecurityConfig={securityJsCode:"\t9648c57b0c188c03ab22d8857a1847e3"},r["default"].config.productionTip=!1,r["default"].prototype.$tinymce=s.a,r["default"].use(d),new r["default"]({el:"#app",store:i["default"],router:a["default"],render:e=>e(o["default"])})},5942:function(e,t,n){"use strict";n("af75")},"597f":function(e,t){e.exports=function(e,t,n,r){var o,i=0;function a(){var a=this,u=Number(new Date)-i,s=arguments;function c(){i=Number(new Date),n.apply(a,s)}function l(){o=void 0}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&u>e?c():!0!==t&&(o=setTimeout(r?l:c,void 0===r?e-u:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"5a53":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-row",{staticClass:"vab-query-form",attrs:{gutter:0}},[e._t("default")],2)},o=[],i={name:"VabQueryForm"},a=i,u=(n("95d6"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"60473960",null);t["default"]=s.exports},"5df5":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5f08":function(e,t,n){},"5fb6":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"618b":function(e,t,n){},"61f7":function(e,t,n){"use strict";function r(e){return/^(https?:|mailto:|tel:|\/\/)/.test(e)}function o(e){return e.length>=6}function i(e){const t=/^[0-9]*$/;return t.test(e)}function a(e){const t=/^[\u4e00-\u9fa5a-zA-Z0-9]+$/;return t.test(e)}function u(e){const t=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return t.test(e)}function s(e){const t=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return t.test(e)}function c(e){const t=/^[a-z]+$/;return t.test(e)}function l(e){const t=/^[A-Z]+$/;return t.test(e)}function f(e){const t=/^[A-Za-z]+$/;return t.test(e)}function d(e){return"string"===typeof e||e instanceof String}function h(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}function p(e){const t=/^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/;return t.test(e)}function m(e){const t=/^1\d{10}$/;return t.test(e)}function g(e){const t=/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;return t.test(e)}function v(e){const t=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;return t.test(e)}function y(e){const t=/^[\u4E00-\u9FA5]{2,4}$/;return t.test(e)}function b(e){return null===e||""===e||""===e.trim()||"null"===e.toLocaleLowerCase().trim()}function w(e){const t=/^(400|800)([0-9\\-]{7,10})|(([0-9]{4}|[0-9]{3})([- ])?)?([0-9]{7,8})(([- 转])*([0-9]{1,4}))?$/;return t.test(e)}function _(e){const t=/^\d+(\.\d{1,2})?$/;return t.test(e)}function x(e){if("string"===typeof e){const t=JSON.parse(e);return!("object"!==typeof t||!t)}return!1}n.r(t),n.d(t,"isExternal",(function(){return r})),n.d(t,"isPassword",(function(){return o})),n.d(t,"isNumber",(function(){return i})),n.d(t,"isName",(function(){return a})),n.d(t,"isIP",(function(){return u})),n.d(t,"isUrl",(function(){return s})),n.d(t,"isLowerCase",(function(){return c})),n.d(t,"isUpperCase",(function(){return l})),n.d(t,"isAlphabets",(function(){return f})),n.d(t,"isString",(function(){return d})),n.d(t,"isArray",(function(){return h})),n.d(t,"isPort",(function(){return p})),n.d(t,"isPhone",(function(){return m})),n.d(t,"isIdCard",(function(){return g})),n.d(t,"isEmail",(function(){return v})),n.d(t,"isChina",(function(){return y})),n.d(t,"isBlank",(function(){return b})),n.d(t,"isTel",(function(){return w})),n.d(t,"isNum",(function(){return _})),n.d(t,"isJson",(function(){return x}))},"622d":function(e,t,n){"use strict";n("d8e7")},"626a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"logo-container",class:{["logo-container-"+e.theme.layout]:!0}},[t("router-link",{attrs:{to:"/"}},[t("span",{staticClass:"logo"},[t("img",{attrs:{alt:"",src:n("cf05")}})]),t("span",{staticClass:"title",class:{"hidden-xs-only":"horizontal"===e.theme.layout}},[e._v(" "+e._s(e.title)+" ")])])],1)},o=[],i=n("2f62"),a={name:"VabLogo",computed:{...Object(i["c"])({logo:"settings/logo",title:"settings/title",theme:"settings/theme"})}},u=a,s=(n("ab57"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"0dd5530c",null);t["default"]=c.exports},"62cf":function(e,t,n){},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"648c":function(e,t,n){"use strict";n("3efd")},"64fa":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"66f7":function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("a18c"),i=n("2033"),a=n("9f2e"),u=n("f121"),s=n("61f7"),c=n("4360");const l=()=>({routes:[],cachedRoutes:[]}),f={routes:e=>e.routes,cachedRoutes:e=>e.cachedRoutes},d={setRoutes(e,t){e.routes=t},setCachedRoutes(e,t){e.cachedRoutes=t},changeMenuMeta(e,t){function n(e){return e.map(e=>(e.name===t.name&&Object.assign(e.meta,t.meta),e.children&&e.children.length&&(e.children=n(e.children)),e))}e.routes=n(e.routes)}},h={async setRoutes({commit:e},t="none"){let n=[...o["asyncRoutes"]];const l="visit"!==t&&u["rolesControl"];if("all"===u["authentication"]){const{data:e}=await Object(i["getRouterList"])(),t=e;Object(s["isArray"])(t)||r["default"].prototype.$baseMessage("路由格式返回有误!","error",!1,"vab-hey-message-error"),"*"!==t[t.length-1].path&&console.log(t[t.length-1].path,"0000000000000000");let o=c["default"].state.user.role_id;2==o?t.push({path:"*",redirect:"/project/expertList",meta:{hidden:!0}}):t.push({path:"*",redirect:"/404",meta:{hidden:!0}}),n=Object(a["convertRouter"])(t)}const f=Object(a["filterRoutes"])([...o["constantRoutes"],...n],l);console.log(f,"finallyRoutes"),e("setRoutes",f),await Object(o["resetRouter"])(f)},setCachedRoutes({commit:e},t){e("setCachedRoutes",t)},changeMenuMeta({commit:e},t={}){e("changeMenuMeta",t)}};t["default"]={state:l,getters:f,mutations:d,actions:h}},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||i.call(t)!==a)throw new TypeError(r+t);for(var n,u=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,u.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,u.concat(o.call(arguments)))},c=Math.max(0,t.length-u.length),l=[],f=0;f<c;f++)l.push("$"+f);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},6959:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-layout-common",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[t("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[t("vab-header",{attrs:{layout:"common"}}),t("div",[t("vab-side-bar",{attrs:{layout:"common"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}],staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[t("vab-tabs",{attrs:{layout:"common"}})],1)],1)],1),t("div",{staticClass:"vab-main main-padding",class:{"is-collapse-main":e.collapse}},[t("vab-app-main")],1)])},o=[],i={name:"VabLayoutCommon",props:{collapse:{type:Boolean,default(){return!1}},fixedHeader:{type:Boolean,default(){return!0}},showTabs:{type:Boolean,default(){return!0}},device:{type:String,default(){return"desktop"}}}},a=i,u=(n("fb1a"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"0413c1a9",null);t["default"]=s.exports},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),i=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function u(e,t){var n=!1,r=!1,o=0;function u(){n&&(n=!1,e()),r&&c()}function s(){i(u)}function c(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return c}var s=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},p=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=m(a)}return n}function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),o=v(r),i=o.left+o.right,a=o.top+o.bottom,u=m(r.width),s=m(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=g(r,"left","right")+i),Math.round(s+a)!==n&&(s-=g(r,"top","bottom")+a)),!_(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return S(o.left,o.top,u,s)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===h(e).document.documentElement}function x(e){return r?w(e)?y(e):b(e):p}function C(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return d(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var E=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(){function e(e,t){var n=C(t);d(this,{target:e,contentRect:n})}return e}(),T=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new E(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var R=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:O}();t["default"]=R}.call(this,n("c8ba"))},"6e07":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-col",{attrs:{span:24}},[t("div",{staticClass:"top-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormTopPanel"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"6fe3":function(e,t){e.exports={publicPath:"",outputDir:"dist",assetsDir:"static",lintOnSave:!0,transpileDependencies:[],devPort:12e3,providePlugin:{},build7z:!1,buildGzip:!1,imageCompression:!0}},"70f0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showSearch?t("span",[t("vab-icon",{attrs:{icon:"search-line"},on:{click:e.openDialog}}),t("el-dialog",{attrs:{"append-to-body":"",visible:e.dialogVisible,width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{attrs:{model:e.queryForm},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{"label-width":"0"}},[t("el-autocomplete",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"fetch-suggestions":e.querySearchAsync,"select-when-unmatched":""},on:{select:e.handleSelect},scopedSlots:e._u([{key:"prefix",fn:function(){return[t("vab-icon",{attrs:{icon:"search-line"}})]},proxy:!0}],null,!1,2799347713),model:{value:e.queryForm.searchWord,callback:function(t){e.$set(e.queryForm,"searchWord",t)},expression:"queryForm.searchWord"}})],1)],1)],1)],1):e._e()},o=[],i=(n("caad"),n("2f62")),a=n("1925"),u={name:"VabSearch",directives:{focus:{inserted(e){e.querySelector("input").focus()}}},data(){return{dialogVisible:!1,queryForm:{searchWord:""},restaurants:[],state:"",timeout:null}},computed:{...Object(i["c"])({theme:"settings/theme"})},created(){this.$nextTick(()=>{this.theme.showSearch&&this.loadAll()})},methods:{openDialog(){this.queryForm.searchWord="",this.dialogVisible=!0},async loadAll(){const{data:e}=await Object(a["getList"])(),{list:t}=e;this.restaurants=t},querySearchAsync(e,t){const n=this.restaurants,r=e?n.filter(this.createStateFilter(e)):n;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{t(r)},500)},createStateFilter(e){return t=>t.value.includes(e.toLowerCase())},handleSelect(e){e.url?window.open(e.url):window.open("https://www.baidu.com/s?wd="+e.value)}}},s=u,c=(n("1936"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"4d1fdb65",null);t["default"]=l.exports},7157:function(e,t,n){"use strict";n("f2cb")},7255:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("vab-router-view")},o=[],i={name:"VabEmptyLayout"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"73e1":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"75d3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showThemeSetting?t("ul",{staticClass:"vab-theme-setting"},[t("li",{on:{click:e.handleOpenTheme}},[t("a",[t("vab-icon",{attrs:{icon:"brush-2-line"}}),t("p",[e._v("主题配置")])],1)]),t("li",{on:{click:e.randomTheme}},[t("a",[t("vab-icon",{attrs:{icon:"apps-line"}}),t("p",[e._v("随机换肤")])],1)]),t("li",{on:{click:e.removeLocalStorage}},[t("a",[t("vab-icon",{attrs:{icon:"delete-bin-4-line"}}),t("p",[e._v("清理缓存")])],1)])]):e._e()},o=[],i=n("2f62"),a={name:"VabThemeSetting",computed:{...Object(i["c"])({theme:"settings/theme"})},methods:{handleOpenTheme(){this.$baseEventBus.$emit("theme")},randomTheme(){this.$baseEventBus.$emit("random-theme")},removeLocalStorage(){localStorage.clear(),location.reload()}}},u=a,s=(n("648c"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"7266a45a",null);t["default"]=c.exports},"79b0":function(e,t,n){},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b3e":function(e,t,n){"use strict";var r,o=n("a3de");
  27. /**
  28. * Checks if an event is supported in the current execution environment.
  29. *
  30. * NOTE: This will not work correctly for non-generic events such as `change`,
  31. * `reset`, `load`, `error`, and `select`.
  32. *
  33. * Borrows from Modernizr.
  34. *
  35. * @param {string} eventNameSuffix Event name, e.g. "click".
  36. * @param {?boolean} capture Check if the capture phase is supported.
  37. * @return {boolean} True if the event is supported.
  38. * @internal
  39. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  40. */
  41. function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"===typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=i},"7c00":function(e,t,n){var r={"./components/TinyMce/index.vue":"ed9a","./components/VabAppMain/index.vue":"3825","./components/VabAvatar/index.vue":"c7dc","./components/VabBreadcrumb/index.vue":"0c07","./components/VabErrorLog/index.vue":"296a","./components/VabFold/index.vue":"b32c","./components/VabFooter/index.vue":"a3b2","./components/VabFullScreen/index.vue":"d9a1","./components/VabHeader/index.vue":"3d47","./components/VabKeepAlive/index.vue":"ad27","./components/VabLink/index.vue":"a514","./components/VabLogo/index.vue":"626a","./components/VabMenu/components/VabMenuItem.vue":"1859","./components/VabMenu/components/VabSubmenu.vue":"8b7a","./components/VabMenu/index.vue":"8541","./components/VabNav/index.vue":"4661","./components/VabNotice/index.vue":"daa1","./components/VabQueryForm/components/VabQueryFormBottomPanel.vue":"55b1","./components/VabQueryForm/components/VabQueryFormLeftPanel.vue":"2384","./components/VabQueryForm/components/VabQueryFormRightPanel.vue":"b174","./components/VabQueryForm/components/VabQueryFormTopPanel.vue":"6e07","./components/VabQueryForm/index.vue":"5a53","./components/VabRefresh/index.vue":"4d6e","./components/VabRouterView/index.vue":"05bc","./components/VabSearch/index.vue":"70f0","./components/VabSideBar/index.vue":"8717","./components/VabTabs/index.vue":"a493","./components/VabTheme/components/VabThemeDrawer.vue":"97ee","./components/VabTheme/components/VabThemeSetting.vue":"75d3","./components/VabTheme/index.vue":"3f1c","./layouts/VabEmptyLayout/index.vue":"7255","./layouts/VabLayoutColumn/components/ColumnBar.vue":"f9eb","./layouts/VabLayoutColumn/index.vue":"f312","./layouts/VabLayoutCommon/index.vue":"6959","./layouts/VabLayoutComprehensive/index.vue":"a2d2","./layouts/VabLayoutHorizontal/index.vue":"c0c3","./layouts/VabLayoutVertical/index.vue":"99b1","./layouts/index.vue":"a3b4"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="7c00"},"7d92":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"encryptedData",(function(){return s})),n.d(t,"decryptedData",(function(){return c}));n("b7ef");var r=n("9816"),o=n("3e3c");const i="MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMFPa+v52FkSUXvcUnrGI/XzW3EpZRI0s9BCWJ3oNQmEYA5luWW5p8h0uadTIoTyYweFPdH4hveyxlwmS7oefvbIdiP+o+QIYW/R4Wjsb4Yl8MhR4PJqUE3RCy6IT9fM8ckG4kN9ECs6Ja8fQFc6/mSl5dJczzJO3k1rWMBhKJD/AgMBAAECgYEAucMakH9dWeryhrYoRHcXo4giPVJsH9ypVt4KzmOQY/7jV7KFQK3x//27UoHfUCak51sxFw9ek7UmTPM4HjikA9LkYeE7S381b4QRvFuf3L6IbMP3ywJnJ8pPr2l5SqQ00W+oKv+w/VmEsyUHr+k4Z+4ik+FheTkVWp566WbqFsECQQDjYaMcaKw3j2Zecl8T6eUe7fdaRMIzp/gcpPMfT/9rDzIQk+7ORvm1NI9AUmFv/FAlfpuAMrdL2n7p9uznWb7RAkEA2aP934kbXg5bdV0R313MrL+7WTK/qdcYxATUbMsMuWWQBoS5irrt80WCZbG48hpocJavLNjbtrjmUX3CuJBmzwJAOJg8uP10n/+ZQzjEYXh+BszEHDuw+pp8LuT/fnOy5zrJA0dO0RjpXijO3vuiNPVgHXT9z1LQPJkNrb5ACPVVgQJBALPeb4uV0bNrJDUb5RB4ghZnIxv18CcaqNIft7vuGCcFBAIPIRTBprR+RuVq+xHDt3sNXdsvom4h49+Hky1b0ksCQBBwUtVaqH6ztCtwUF1j2c/Zcrt5P/uN7IHAd44K0gIJc1+Csr3qPG+G2yoqRM8KVqLI8Z2ZYn9c+AvEE+L9OQY=",a=117,u=128;async function s(t){let n;const i=await Object(o["getPublicKey"])();if(n=i.data.publicKey,i.data.mockServer&&(n=""),""===n)return t;const u=new r["a"];u.setPublicKey(`-----BEGIN PUBLIC KEY-----${n}-----END PUBLIC KEY-----`);let s="",c="",l="";const f=e.from(JSON.stringify(t));let d=0;const h=f.length;while(h-d>0)s=h-d>a?f.slice(d,d+a):f.slice(d,h),c=u.encrypt(s.toString()),l+=atob(c),d+=a;return btoa(l)}function c(e){const t=new r["a"];t.setPrivateKey(`-----BEGIN RSA PRIVATE KEY-----${i}-----END RSA PRIVATE KEY-----`);let n="",o="",a="";const s=atob(e);let c=0;const l=s.length;while(l-c>0)n=l-c>u?s.slice(c,c+u):s.slice(c,l),o=t.decrypt(btoa(n)),a+=o,c+=u;return JSON.parse(a)}}.call(this,n("1c35").Buffer)},"7f0d":function(e,t,n){"use strict";n("c9d3")},"7fcf":function(e,t,n){},"80cb":function(e,t,n){"use strict";n("5fb6")},"83b9":function(e,t,n){"use strict";var r=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},"848b":function(e,t,n){"use strict";var r=n("4a0c"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function u(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}function s(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),o=r.length;while(o-- >0){var i=r[o],a=t[i];if(a){var u=e[i],s=void 0===u||a(u,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}}o.transitional=function(e,t,n){var o=t&&u(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,u){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,u)}},e.exports={isOlderVersion:u,assertOptions:s,validators:o}},"84a7":function(e,t,n){e.exports=n.p+"static/img/xmnk.854cbe67.png"},8541:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.item.meta&&!e.item.meta.hidden?t(e.menuComponent,{tag:"component",attrs:{"item-or-menu":e.itemOrMenu}},[e.item.children&&e.item.children.length?["horizontal"===e.layout&&e.item.children.length>18||"horizontal"!==e.layout&&e.collapse&&e.item.children.length>18?t("el-scrollbar",{staticStyle:{height:"86vh"}},e._l(e.item.children,(function(e){return t("vab-menu",{key:e.fullPath,attrs:{item:e}})})),1):e._l(e.item.children,(function(e){return t("vab-menu",{key:e.fullPath,attrs:{item:e}})}))]:e._e()],2):e._e()},o=[],i=n("2f62"),a={name:"VabMenu",props:{item:{type:Object,required:!0},layout:{type:String,default:""}},data(){return{itemOrMenu:this.item,menuComponent:"VabMenuItem"}},computed:{...Object(i["c"])({collapse:"settings/collapse"})},created(){this.item.children&&this.item.children.some(e=>e.meta&&!0!==e.meta.hidden)&&(this.menuComponent="VabSubmenu")}},u=a,s=n("2877"),c=Object(s["a"])(u,r,o,!1,null,null,null);t["default"]=c.exports},8717:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-scrollbar",{staticClass:"vab-side-bar",class:{"is-collapse":e.collapse,"side-bar-common":"common"===e.layout}},[t("div",{staticClass:"logo-image"},[t("img",{attrs:{alt:"",mode:"widthFix",src:n("84a7")}})]),t("el-menu",{attrs:{"active-text-color":e.variables["menu-color-active"],"background-color":e.variables["menu-background"],collapse:e.collapse,"collapse-transition":!1,"default-active":e.activeMenu,"default-openeds":e.defaultOpeneds,"menu-trigger":"click",mode:"vertical","text-color":e.variables["menu-color"],"unique-opened":e.uniqueOpened},on:{open:e.openMenu}},[e._l(e.handleRoutes,(function(n){return[n.meta&&!n.meta.hidden?t("vab-menu",{key:n.fullPath,staticClass:"route",attrs:{item:n}}):e._e()]}))],2)],1)},o=[],i=n("73e1"),a=n.n(i),u=n("2f62"),s=n("f121"),c=n("9f2e"),l={name:"VabSideBar",props:{layout:{type:String,default:"vertical"}},data(){return{activeMenu:"",defaultOpeneds:s["defaultOpeneds"],uniqueOpened:s["uniqueOpened"],variables:a.a}},computed:{...Object(u["c"])({collapse:"settings/collapse",extra:"settings/extra",routes:"routes/routes"}),handleRoutes(){return"comprehensive"===this.layout?this.handlePartialRoutes:this.routes.flatMap(e=>e.meta&&!0===e.meta.levelHidden&&e.children?e.children:e)},handlePartialRoutes(){const e=this.routes.find(e=>e.name===this.extra.first);return e?e.children:[]}},watch:{$route:{handler(e){this.activeMenu=Object(c["handleActivePath"])(e)},immediate:!0}},methods:{openMenu(e){console.log(e,"33333333333pppp")}}},f=l,d=(n("7157"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"48362613",null);t["default"]=h.exports},"8b7a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.itemOrMenu.meta&&e.itemOrMenu.meta.levelHidden?t("div",[e._l(e.itemOrMenu.children,(function(e){return[t("vab-menu",{key:e.fullPath,attrs:{item:e}})]}))],2):t("el-submenu",{ref:"subMenu",attrs:{index:e.itemOrMenu.fullPath,"popper-append-to-body":!1},scopedSlots:e._u([{key:"title",fn:function(){return[e.itemOrMenu.meta&&e.itemOrMenu.meta.icon?t("vab-icon",{attrs:{icon:e.itemOrMenu.meta.icon,"is-custom-svg":e.itemOrMenu.meta.isCustomSvg,title:e.itemOrMenu.meta.title}}):e._e(),t("span",{attrs:{title:e.itemOrMenu.meta.title}},[e._v(e._s(e.itemOrMenu.meta.title))])]},proxy:!0}])},[e._t("default")],2)},o=[],i={name:"VabSubmenu",props:{itemOrMenu:{type:Object,default(){return null}}},methods:{change(){console.log("ceshiceshi------------")}}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"8cf1":function(e,t,n){"use strict";n.r(t);var r=n("e017"),o=n.n(r),i=n("21a1"),a=n.n(i),u=new o.a({id:"vab-icon-vab",use:"vab-icon-vab-usage",viewBox:"0 0 550 400",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 550 400" id="vab-icon-vab">\r\n<g id="vab-icon-vab_PathID_1" transform="matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)" opacity="1">\r\n<path style="fill: #41b882; fill-opacity: 1;" d="M3.75 -36.65L18.4 -36.65Q22.75 -36.65 24.85 -36.25Q27 -35.9 28.7 -34.75Q30.4 -33.6 31.5 -31.7Q32.65 -29.8 32.65 -27.4Q32.65 -24.85 31.25 -22.7Q29.85 -20.55 27.5 -19.5Q30.85 -18.5 32.65 -16.15Q34.45 -13.8 34.45 -10.6Q34.45 -8.1 33.25 -5.75Q32.1 -3.4 30.1 -1.95Q28.1 -0.55 25.15 -0.25Q23.3 -0.05 16.2 0L3.75 0L3.75 -36.65M11.15 -30.55L11.15 -22.1L16 -22.1Q20.3 -22.1 21.35 -22.2Q23.25 -22.4 24.35 -23.5Q25.45 -24.6 25.45 -26.35Q25.45 -28.05 24.5 -29.1Q23.55 -30.2 21.7 -30.4Q20.6 -30.55 15.4 -30.55L11.15 -30.55M11.15 -16L11.15 -6.2L18 -6.2Q22 -6.2 23.05 -6.4Q24.7 -6.7 25.75 -7.85Q26.8 -9.05 26.8 -11Q26.8 -12.65 26 -13.8Q25.2 -14.95 23.65 -15.45Q22.15 -16 17.1 -16L11.15 -16" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_2" transform="matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)" opacity="1">\r\n</g>\r\n <g id="vab-icon-vab_PathID_3" transform="matrix(5.31826, 0, 0, 2.59618, 172.9, 161.55)" opacity="1">\r\n<path style="fill: #35495e; fill-opacity: 1;" d="M3.75 -36.65L17.25 -36.65Q21.8 -36.65 24.2 -35.95Q27.45 -35 29.75 -32.55Q32.05 -30.15 33.25 -26.6Q34.45 -23.1 34.45 -17.95Q34.45 -13.45 33.3 -10.15Q31.95 -6.15 29.4 -3.7Q27.45 -1.8 24.2 -0.75Q21.75 0 17.65 0L3.75 0L3.75 -36.65M11.15 -30.45L11.15 -6.2L16.65 -6.2Q19.75 -6.2 21.1 -6.55Q22.9 -6.95 24.1 -8Q25.3 -9.1 26.05 -11.55Q26.8 -14.05 26.8 -18.3Q26.8 -22.55 26.05 -24.8Q25.3 -27.1 23.95 -28.35Q22.6 -29.65 20.5 -30.1Q18.95 -30.45 14.45 -30.45L11.15 -30.45" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_4" transform="matrix(5.31826, 0, 0, 2.59618, 172.9, 161.55)" opacity="1">\r\n</g>\r\n <g id="vab-icon-vab_PathID_5" transform="matrix(5.78477, 0, 0, 3.1825, 171.7, 333.8)" opacity="1">\r\n<path style="fill: #35495e; fill-opacity: 1;" d="M3.75 -36.65L17.25 -36.65Q21.8 -36.65 24.2 -35.95Q27.45 -35 29.75 -32.55Q32.05 -30.15 33.25 -26.6Q34.45 -23.1 34.45 -17.95Q34.45 -13.45 33.3 -10.15Q31.95 -6.15 29.4 -3.7Q27.45 -1.8 24.2 -0.75Q21.75 0 17.65 0L3.75 0L3.75 -36.65M11.15 -30.45L11.15 -6.2L16.65 -6.2Q19.75 -6.2 21.1 -6.55Q22.9 -6.95 24.1 -8Q25.3 -9.1 26.05 -11.55Q26.8 -14.05 26.8 -18.3Q26.8 -22.55 26.05 -24.8Q25.3 -27.1 23.95 -28.35Q22.6 -29.65 20.5 -30.1Q18.95 -30.45 14.45 -30.45L11.15 -30.45" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_6" transform="matrix(5.78477, 0, 0, 3.1825, 171.7, 333.8)" opacity="1">\r\n</g>\r\n</symbol>'});a.a.add(u);t["default"]=u},"8df4":function(e,t,n){"use strict";var r=n("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8eb7":function(e,t){var n,r,o,i,a,u,s,c,l,f,d,h,p,m,g,v=!1;function y(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);u=b?parseFloat(b[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,o=t[3]?parseFloat(t[3]):NaN,i=t[4]?parseFloat(t[4]):NaN,i?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=o=a=i=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!y[2],l=!!y[3]}else s=c=l=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||u>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||o},webkit:function(){return y()||i},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||c},osx:function(){return y()||s},linux:function(){return y()||l},iphone:function(){return y()||h},mobile:function(){return y()||h||p||f||g},nativeApp:function(){return y()||m},android:function(){return y()||f},ipad:function(){return y()||p}};e.exports=b},9152:function(e,t){
  42. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  43. t.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+f>=1?d/s:d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&u,h+=p,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},9224:function(e){e.exports=JSON.parse('{"a":{"@logicflow/core":"^0.4.11","@logicflow/extension":"^0.4.12","@packy-tang/vue-tinymce":"^1.1.2","@tinymce/tinymce-vue":"^3.2.8","AMap":"^1.0.7","axios":"^0.21.1","clipboard":"^2.0.8","core-js":"^3.13.1","dayjs":"^1.10.5","dplayer":"^1.26.0","echarts":"^5.1.1","element-ui":"^2.15.2","file-saver":"^2.0.5","image-webpack-loader":"^8.1.0","jquery":"^3.6.0","js-cookie":"^2.2.1","jsencrypt":"^3.2.0","jsplumb":"^2.15.6","lodash":"^4.17.21","mockjs":"^1.1.0","nprogress":"^0.2.0","prop-types":"^15.7.2","qs":"^6.10.1","quill":"^1.3.7","resize-detector":"^0.3.0","screenfull":"^5.1.0","simple-uploader.js":"^0.5.6","spark-md5":"^3.0.2","tinymce":"^5.10.2","vab-contextmenu":"^0.0.1","vab-count":"^0.0.1","vab-cropper":"https://registry.npmmirror.com/vab-cropper/-/vab-cropper-0.0.3.tgz","vab-icons":"^0.0.20","vab-magnifier":"^0.0.1","vab-player":"^0.0.4","vab-quill":"^0.0.4","vue":"^2.6.12","vue-amap":"^0.5.10","vue-dplayer":"0.0.10","vue-i18n":"^8.24.4","vue-json-viewer":"^2.2.19","vue-router":"^3.5.1","vue-simple-uploader":"^0.7.6","vue-ueditor-wrap":"^2.5.6","vue-video-player":"^5.0.2","vuedraggable":"^2.24.3","vuex":"^3.6.2","xlsx":"^0.17.0","zx-markdown-editor":"^0.0.2"}}')},9288:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("f121"),i=n("5c96"),a=n("9224");r["default"].prototype.$baseLoading=(e=null,t=o["loadingText"])=>i["Loading"].service({lock:!0,text:t,spinner:e?"vab-loading-type"+e:e,background:"hsla(0,0%,100%,.8)"}),r["default"].prototype.$baseColorfullLoading=(e,t=o["loadingText"])=>{let n;if(e){switch(e){case 1:e="dots";break;case 2:e="gauge";break;case 3:e="inner-circles";break;case 4:e="plus";break}n=i["Loading"].service({lock:!0,text:t,spinner:e+"-loader",background:"hsla(0,0%,100%,.8)"})}else n=i["Loading"].service({lock:!0,text:t,spinner:"dots-loader",background:"hsla(0,0%,100%,.8)"});return n},r["default"].prototype.$baseMessage=(e,t,n,r)=>{Object(i["Message"])({showClose:!0,message:e,type:t,dangerouslyUseHTMLString:n,duration:o["messageDuration"],customClass:r})},r["default"].prototype.$baseAlert=(e,t,n)=>{i["MessageBox"].alert(e,t||"温馨提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:()=>{n&&n()}}).then(()=>{})},r["default"].prototype.$baseConfirm=(e,t,n,r,o="确定",a="取消")=>{i["MessageBox"].confirm(e,t||"温馨提示",{confirmButtonText:o,cancelButtonText:a,closeOnClickModal:!1,type:"warning",lockScroll:!1}).then(()=>{n&&n()}).catch(()=>{r&&r()})},r["default"].prototype.$baseNotify=(e,t,n="success",r="top-right")=>{Object(i["Notification"])({title:t,message:e,position:r,type:n,duration:o["messageDuration"]})},r["default"].prototype.$baseTableHeight=e=>{let t=window.innerHeight;const n=291,r=60;return"number"===typeof e?t=t-n-r*e:t-=n,t},r["default"].prototype.$baseEventBus=new r["default"],(()=>{{const e="vab-icons",t=unescape(e.replace(/\\u/g,"%u"));a["a"][t]||(r["default"].prototype=null)}})()},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var o,i,a,u,s;for(a in t)if(o=e[a],i=t[a],o&&n.test(a))if("class"===a&&("string"===typeof o&&(s=o,e[a]=o={},o[s]=!0),"string"===typeof i&&(s=i,t[a]=i={},i[s]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(u in i)o[u]=r(o[u],i[u]);else if(Array.isArray(o))e[a]=o.concat(i);else if(Array.isArray(i))e[a]=[o].concat(i);else for(u in i)o[u]=i[u];else e[a]=t[a];return e}),{})}},"93bf":function(e,t,n){
  44. /*!
  45. * screenfull
  46. * v5.2.0 - 2021-11-03
  47. * (c) Sindre Sorhus; MIT License
  48. */
  49. (function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if(e=n[r],e&&e[1]in t){for(r=0;r<e.length;r++)i[n[0][r]]=e[r];return i}return!1}(),o={change:r.fullscreenchange,error:r.fullscreenerror},i={request:function(e,n){return new Promise(function(o,i){var a=function(){this.off("change",a),o()}.bind(this);this.on("change",a),e=e||t.documentElement;var u=e[r.requestFullscreen](n);u instanceof Promise&&u.then(a).catch(i)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var o=function(){this.off("change",o),e()}.bind(this);this.on("change",o);var i=t[r.exitFullscreen]();i instanceof Promise&&i.then(o).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=o[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=o[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},9440:function(e,t,n){},"95d6":function(e,t,n){"use strict";n("a08b")},9619:function(e,t,n){var r=n("597f"),o=n("0e15");e.exports={throttle:r,debounce:o}},"97ee":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{"append-to-body":"","custom-class":"vab-drawer",direction:"rtl",size:"280px",title:"主题配置",visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[t("el-scrollbar",{staticClass:"theme-scrollbar"},[t("div",{staticClass:"el-drawer__body"},[t("el-form",{ref:"form",attrs:{"label-position":"left",model:e.theme}},[t("el-divider",{attrs:{"content-position":"left"}},[t("vab-icon",{attrs:{icon:"settings-3-line"}}),e._v(" 常用设置 ")],1),t("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[t("label",{staticClass:"el-form-item__label"},[e._v(" 布局 "),t("el-tooltip",{attrs:{content:"布局配置仅在电脑视窗下生效,手机视窗时将默认锁定为纵向布局",effect:"dark",placement:"top"}},[t("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[t("el-select",{attrs:{disabled:"mobile"===e.device},model:{value:e.theme.layout,callback:function(t){e.$set(e.theme,"layout",t)},expression:"theme.layout"}},[t("el-option",{key:"column",attrs:{label:"分栏",value:"column"}}),t("el-option",{key:"comprehensive",attrs:{label:"综合",value:"comprehensive"}}),t("el-option",{key:"vertical",attrs:{label:"纵向",value:"vertical"}}),t("el-option",{key:"horizontal",attrs:{label:"横向",value:"horizontal"}}),t("el-option",{key:"common",attrs:{label:"常规",value:"common"}})],1)],1),t("el-form-item",{attrs:{label:"主题"}},[t("el-select",{on:{change:e.setTheme},model:{value:e.theme.themeName,callback:function(t){e.$set(e.theme,"themeName",t)},expression:"theme.themeName"}},[t("el-option",{key:"default",attrs:{label:"默认",value:"default"}}),t("el-option",{key:"ocean",attrs:{label:"海洋之心",value:"ocean"}}),t("el-option",{key:"green",attrs:{label:"绿荫草场",value:"green"}}),t("el-option",{key:"white",attrs:{label:"碰触纯白",value:"white"}}),t("el-option",{key:"red",attrs:{label:"月上重火(非内置)",value:"red"}})],1)],1),t("el-form-item",{attrs:{label:"标签"}},[t("el-switch",{model:{value:e.theme.showTabs,callback:function(t){e.$set(e.theme,"showTabs",t)},expression:"theme.showTabs"}})],1),t("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[t("label",{staticClass:"el-form-item__label"},[e._v(" 标签图标 "),t("el-tooltip",{attrs:{content:"标签开启时生效",effect:"dark",placement:"top"}},[t("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[t("el-switch",{attrs:{disabled:!e.theme.showTabs},model:{value:e.theme.showTabsBarIcon,callback:function(t){e.$set(e.theme,"showTabsBarIcon",t)},expression:"theme.showTabsBarIcon"}})],1),t("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[t("label",{staticClass:"el-form-item__label"},[e._v(" 标签风格 "),t("el-tooltip",{attrs:{content:"标签开启时生效",effect:"dark",placement:"top"}},[t("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[t("el-select",{attrs:{disabled:!e.theme.showTabs},model:{value:e.theme.tabsBarStyle,callback:function(t){e.$set(e.theme,"tabsBarStyle",t)},expression:"theme.tabsBarStyle"}},[t("el-option",{key:"card",attrs:{label:"卡片",value:"card"}}),t("el-option",{key:"smart",attrs:{label:"灵动",value:"smart"}}),t("el-option",{key:"smooth",attrs:{label:"圆滑",value:"smooth"}})],1)],1),t("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[t("label",{staticClass:"el-form-item__label"},[e._v(" 分栏风格 "),t("el-tooltip",{attrs:{content:"分栏布局时生效",effect:"dark",placement:"top"}},[t("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[t("el-select",{attrs:{disabled:"column"!==e.theme.layout},model:{value:e.theme.columnStyle,callback:function(t){e.$set(e.theme,"columnStyle",t)},expression:"theme.columnStyle"}},[t("el-option",{key:"vertical",attrs:{label:"纵向",value:"vertical"}}),t("el-option",{key:"horizontal",attrs:{label:"横向",value:"horizontal"}}),t("el-option",{key:"card",attrs:{label:"卡片",value:"card"}}),t("el-option",{key:"arrow",attrs:{label:"箭头",value:"arrow"}})],1)],1),t("el-divider",{staticStyle:{"margin-top":"20px"},attrs:{"content-position":"left"}},[t("vab-icon",{attrs:{icon:"settings-3-line"}}),e._v(" 其它设置 ")],1),t("el-form-item",{attrs:{label:"头部固定"}},[t("el-switch",{attrs:{disabled:"common"===e.theme.layout},model:{value:e.theme.fixedHeader,callback:function(t){e.$set(e.theme,"fixedHeader",t)},expression:"theme.fixedHeader"}})],1),t("el-form-item",{attrs:{label:"进度条"}},[t("el-switch",{model:{value:e.theme.showProgressBar,callback:function(t){e.$set(e.theme,"showProgressBar",t)},expression:"theme.showProgressBar"}})],1),t("el-form-item",{attrs:{label:"刷新"}},[t("el-switch",{model:{value:e.theme.showRefresh,callback:function(t){e.$set(e.theme,"showRefresh",t)},expression:"theme.showRefresh"}})],1),t("el-form-item",{attrs:{label:"搜索"}},[t("el-switch",{model:{value:e.theme.showSearch,callback:function(t){e.$set(e.theme,"showSearch",t)},expression:"theme.showSearch"}})],1),t("el-form-item",{attrs:{label:"通知"}},[t("el-switch",{model:{value:e.theme.showNotice,callback:function(t){e.$set(e.theme,"showNotice",t)},expression:"theme.showNotice"}})],1),t("el-form-item",{attrs:{label:"全屏"}},[t("el-switch",{model:{value:e.theme.showFullScreen,callback:function(t){e.$set(e.theme,"showFullScreen",t)},expression:"theme.showFullScreen"}})],1)],1)],1)]),t("div",{staticClass:"el-drawer__footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveTheme}},[e._v("保存")]),t("el-button",{on:{click:e.setDefaultTheme}},[e._v("恢复默认")])],1)],1)},o=[],i=n("2f62"),a=n("2ef0"),u=n.n(a),s={name:"VabThemeDrawer",data(){return{drawerVisible:!1}},computed:{...Object(i["c"])({theme:"settings/theme",device:"settings/device"})},created(){this.$baseEventBus.$on("theme",()=>{this.handleOpenTheme()}),this.$baseEventBus.$on("random-theme",()=>{this.randomTheme()}),this.setTheme()},methods:{...Object(i["b"])({saveTheme:"settings/saveTheme",resetTheme:"settings/resetTheme"}),handleOpenTheme(){this.drawerVisible=!0},async setDefaultTheme(){await this.resetTheme(),this.drawerVisible=!1},async handleSaveTheme(){await this.saveTheme(),this.drawerVisible=!1},async randomTheme(){const e=this.$baseColorfullLoading(0);await this.resetTheme();const t=["default","ocean","green","white"];this.theme.themeName=u.a.sample(u.a.pull(t,[this.theme.themeName]));const n=["vertical","horizontal","card","arrow"];this.theme.columnStyle=u.a.sample(u.a.pull(n,[this.theme.columnStyle]));const r=["card","smart","smooth"];this.theme.tabsBarStyle=u.a.sample(u.a.pull(r,[this.theme.tabsBarStyle]));const o=[!0,!1];if(this.theme.showTabsBarIcon=u.a.sample(u.a.pull(o,[this.theme.showTabsBarIcon])),"desktop"===this.device){const e=["horizontal","vertical","column","comprehensive","common"];this.theme.layout=u.a.sample(u.a.pull(e,[this.theme.layout]))}else this.theme.layout="vertical";await this.setTheme(),await this.saveTheme(),setTimeout(()=>{e.close()},1e3)},setTheme(){document.getElementsByTagName("body")[0].className="vab-theme-"+this.theme.themeName}}},c=s,l=(n("7f0d"),n("80cb"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"5aedb479",null);t["default"]=f.exports},9813:function(e,t,n){"use strict";n.r(t);const r=()=>({visitedRoutes:[]}),o={visitedRoutes:e=>e.visitedRoutes},i={addVisitedRoute(e,t){const n=e.visitedRoutes.find(e=>e.path===t.path);n&&!t.meta.dynamicNewTab?Object.assign(n,t):n||e.visitedRoutes.push(Object.assign({},t))},delVisitedRoute(e,t){e.visitedRoutes.splice(e.visitedRoutes.findIndex(e=>e.path===t),1)},delOthersVisitedRoutes(e,t){e.visitedRoutes=e.visitedRoutes.filter(e=>e.meta.noClosable||e.path===t)},delLeftVisitedRoutes(e,t){let n=!1;e.visitedRoutes=e.visitedRoutes.filter(e=>(e.path===t&&(n=!0),e.meta.noClosable||n))},delRightVisitedRoutes(e,t){let n=!1;e.visitedRoutes=e.visitedRoutes.filter(e=>{const r=n;return e.path===t&&(n=!0),e.meta.noClosable||!r})},delAllVisitedRoutes(e){e.visitedRoutes=e.visitedRoutes.filter(e=>e.meta.noClosable)},changeTabsMeta(e,t){function n(e){return e.map(e=>(e.name!==t.name&&e.meta.title!==t.title||Object.assign(e.meta,t.meta),e.children&&e.children.length&&(e.children=n(e.children)),e))}e.visitedRoutes=n(e.visitedRoutes)}},a={addVisitedRoute({commit:e},t){e("addVisitedRoute",t)},delVisitedRoute({commit:e},t){e("delVisitedRoute",t)},delOthersVisitedRoutes({commit:e},t){e("delOthersVisitedRoutes",t)},delLeftVisitedRoutes({commit:e},t){e("delLeftVisitedRoutes",t)},delRightVisitedRoutes({commit:e},t){e("delRightVisitedRoutes",t)},delAllVisitedRoutes({commit:e}){e("delAllVisitedRoutes")},changeTabsMeta({commit:e},t={}){e("changeTabsMeta",t)}};t["default"]={state:r,getters:o,mutations:i,actions:a}},9816:function(e,t,n){"use strict";var r="0123456789abcdefghijklmnopqrstuvwxyz";function o(e){return r.charAt(e)}function i(e,t){return e&t}function a(e,t){return e|t}function u(e,t){return e^t}function s(e,t){return e&~t}function c(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function l(e){var t=0;while(0!=e)e&=e-1,++t;return t}var f,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=";function p(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=d.charAt(n>>6)+d.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=d.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=d.charAt(n>>2)+d.charAt((3&n)<<4));while((3&r.length)>0)r+=h;return r}function m(e){var t,n="",r=0,i=0;for(t=0;t<e.length;++t){if(e.charAt(t)==h)break;var a=d.indexOf(e.charAt(t));a<0||(0==r?(n+=o(a>>2),i=3&a,r=1):1==r?(n+=o(i<<2|a>>4),i=15&a,r=2):2==r?(n+=o(i),n+=o(a>>2),i=3&a,r=3):(n+=o(i<<2|a>>4),n+=o(15&a),r=0))}return 1==r&&(n+=o(i<<2)),n}var g,v={decode:function(e){var t;if(void 0===f){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(f={},t=0;t<16;++t)f[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)f[n.charAt(t)]=t;for(t=0;t<r.length;++t)f[r.charAt(t)]=-1}var o=[],i=0,a=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if("="==u)break;if(u=f[u],-1!=u){if(void 0===u)throw new Error("Illegal character at offset "+t);i|=u,++a>=2?(o[o.length]=i,i=0,a=0):i<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},y={decode:function(e){var t;if(void 0===g){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(g=Object.create(null),t=0;t<64;++t)g[n.charAt(t)]=t;for(g["-"]=62,g["_"]=63,t=0;t<r.length;++t)g[r.charAt(t)]=-1}var o=[],i=0,a=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if("="==u)break;if(u=g[u],-1!=u){if(void 0===u)throw new Error("Illegal character at offset "+t);i|=u,++a>=4?(o[o.length]=i>>16,o[o.length]=i>>8&255,o[o.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=i>>10;break;case 3:o[o.length]=i>>16,o[o.length]=i>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=y.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return y.decode(e)}},b=1e13,w=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,o=this.buf,i=o.length;for(n=0;n<i;++n)r=o[n]*e+t,r<b?t=0:(t=0|r/b,r-=t*b),o[n]=r;t>0&&(o[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,o=r.length;for(t=0;t<o;++t)n=r[t]-e,n<0?(n+=b,e=1):e=0,r[t]=n;while(0===r[r.length-1])r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(b+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*b+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),_="…",x=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,C=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function S(e,t){return e.length>t&&(e=e.substring(0,t)+_),e}var E,k=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",o=e;o<t;++o)if(r+=this.hexByte(this.get(o)),!0!==n)switch(15&o){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var o=this.get(r++);n+=o<128?String.fromCharCode(o):o>191&&o<224?String.fromCharCode((31&o)<<6|63&this.get(r++)):String.fromCharCode((15&o)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,o="",i=e;i<t;)n=this.get(i++),r=this.get(i++),o+=String.fromCharCode(n<<8|r);return o},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),o=(n?x:C).exec(r);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),r=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(r+=":"+o[5],o[6]&&(r+=":"+o[6],o[7]&&(r+="."+o[7]))),o[8]&&(r+=" UTC","Z"!=o[8]&&(r+=o[8],o[9]&&(r+=":"+o[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){var n,r=this.get(e),o=r>127,i=o?255:0,a="";while(r==i&&++e<t)r=this.get(e);if(n=t-e,0===n)return o?-1:0;if(n>4){a=r,n<<=3;while(0==(128&(+a^i)))a=+a<<1,--n;a="("+n+" bit)\n"}o&&(r-=256);for(var u=new w(r),s=e+1;s<t;++s)u.mulAdd(256,this.get(s));return a+u.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),o=(t-e-1<<3)-r,i="("+o+" bit)\n",a="",u=e+1;u<t;++u){for(var s=this.get(u),c=u==t-1?r:0,l=7;l>=c;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+S(a,n)}return i+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return S(this.parseStringISO(e,t),n);var r=t-e,o="("+r+" byte)\n";n/=2,r>n&&(t=e+n);for(var i=e;i<t;++i)o+=this.hexByte(this.get(i));return r>n&&(o+=_),o},e.prototype.parseOID=function(e,t,n){for(var r="",o=new w,i=0,a=e;a<t;++a){var u=this.get(a);if(o.mulAdd(128,127&u),i+=7,!(128&u)){if(""===r)if(o=o.simplify(),o instanceof w)o.sub(80),r="2."+o.toString();else{var s=o<80?o<40?0:1:2;r=s+"."+(o-40*s)}else r+="."+o.toString();if(r.length>n)return S(r,n);o=new w,i=0}}return i>0&&(r+=".incomplete"),r},e}(),T=function(){function e(e,t,n,r,o){if(!(r instanceof A))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=o}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return S(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return S(this.stream.parseStringISO(t,t+n),e);case 30:return S(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof k?t:new k(t,0);var r=new k(n),o=new A(n),i=e.decodeLength(n),a=n.pos,u=a-r.pos,s=null,c=function(){var t=[];if(null!==i){var r=a+i;while(n.pos<r)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var o=e.decode(n);if(o.tag.isEOC())break;t[t.length]=o}i=a-n.pos}catch(u){throw new Error("Exception while decoding undefined length content: "+u)}return t};if(o.tagConstructed)s=c();else if(o.isUniversal()&&(3==o.tagNumber||4==o.tagNumber))try{if(3==o.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var l=0;l<s.length;++l)if(s[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(i)}return new e(r,u,i,o,s)},e}(),A=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new w;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),O=0xdeadbeefcafe,R=15715070==(16777215&O),N=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/N[N.length-1],B=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",u=this.t,s=this.DB-u*this.DB%t;if(u-- >0){s<this.DB&&(n=this[u]>>s)>0&&(i=!0,a=o(n));while(u>=0)s<t?(n=(this[u]&(1<<s)-1)<<t-s,n|=this[--u]>>(s+=this.DB-t)):(n=this[u]>>(s-=t)&r,s<=0&&(s+=this.DB,--u)),n>0&&(i=!0),i&&(a+=o(n))}return i?a:"0"},e.prototype.negate=function(){var t=I();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+K(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=I();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new j(t):new L(t),this.exp(e,n)},e.prototype.clone=function(){var e=I();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=I();return this.bitwiseTo(e,i,t),t},e.prototype.or=function(e){var t=I();return this.bitwiseTo(e,a,t),t},e.prototype.xor=function(e){var t=I();return this.bitwiseTo(e,u,t),t},e.prototype.andNot=function(e){var t=I();return this.bitwiseTo(e,s,t),t},e.prototype.not=function(){for(var e=I(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=I();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=I();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+c(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=l(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,a)},e.prototype.clearBit=function(e){return this.changeBit(e,s)},e.prototype.flipBit=function(e){return this.changeBit(e,u)},e.prototype.add=function(e){var t=I();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=I();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=I();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=I();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=I();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=I(),n=I();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,o=e.bitLength(),i=W(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new j(t):t.isEven()?new M(t):new L(t);var a=[],u=3,s=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var l=I();r.sqrTo(a[1],l);while(u<=c)a[u]=I(),r.mulTo(l,a[u-2],a[u]),u+=2}var f,d,h=e.t-1,p=!0,m=I();o=K(e[h])-1;while(h>=0){o>=s?f=e[h]>>o-s&c:(f=(e[h]&(1<<o+1)-1)<<s-o,h>0&&(f|=e[h-1]>>this.DB+o-s)),u=n;while(0==(1&f))f>>=1,--u;if((o-=u)<0&&(o+=this.DB,--h),p)a[f].copyTo(i),p=!1;else{while(u>1)r.sqrTo(i,m),r.sqrTo(m,i),u-=2;u>0?r.sqrTo(i,m):(d=i,i=m,m=d),r.mulTo(m,a[f],i)}while(h>=0&&0==(e[h]&1<<o))r.sqrTo(i,m),d=i,i=m,m=d,--o<0&&(o=this.DB-1,--h)}return r.revert(i)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var r=t.clone(),o=this.clone(),i=W(1),a=W(0),u=W(0),s=W(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(i.isEven()&&a.isEven()||(i.addTo(this,i),a.subTo(t,a)),i.rShiftTo(1,i)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(o.isEven())o.rShiftTo(1,o),n?(u.isEven()&&s.isEven()||(u.addTo(this,u),s.subTo(t,s)),u.rShiftTo(1,u)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);r.compareTo(o)>=0?(r.subTo(o,r),n&&i.subTo(u,i),a.subTo(s,a)):(o.subTo(r,o),n&&u.subTo(i,u),s.subTo(a,s))}return 0!=o.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new P)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));while(t.signum()>0)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=N[N.length-1]){for(t=0;t<N.length;++t)if(n[0]==N[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<N.length){var r=N[t],o=t+1;while(o<N.length&&r<D)r*=N[o++];r=n.modInt(r);while(t<o)if(r%N[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;var o=t.length,i=!1,a=0;while(--o>=0){var u=8==r?255&+t[o]:$(t,o);u<0?"-"==t.charAt(o)&&(i=!0):(i=!1,0==a?this[this.t++]=u:a+r>this.DB?(this[this.t-1]|=(u&(1<<this.DB-a)-1)<<a,this[this.t++]=u>>this.DB-a):this[this.t-1]|=u<<a,a+=r,a>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,o=(1<<r)-1,i=Math.floor(e/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)t[u+i+1]=this[u]>>r|a,a=(this[u]&o)<<n;for(u=i-1;u>=0;--u)t[u]=0;t[i]=a,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&i)<<o,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),i=r.t;n.t=i+o.t;while(--i>=0)n[i]=0;for(i=0;i<o.t;++i)n[i+r.t]=r.am(0,o[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var o=t.abs();if(!(o.t<=0)){var i=this.abs();if(i.t<o.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=I());var a=I(),u=this.s,s=t.s,c=this.DB-K(o[o.t-1]);c>0?(o.lShiftTo(c,a),i.lShiftTo(c,r)):(o.copyTo(a),i.copyTo(r));var l=a.t,f=a[l-1];if(0!=f){var d=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-l,y=null==n?I():n;a.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),e.ONE.dlShiftTo(l,y),y.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--v>=0){var b=r[--g]==f?this.DM:Math.floor(r[g]*h+(r[g-1]+m)*p);if((r[g]+=a.am(0,b,r,v,0,l))<b){a.dlShiftTo(v,y),r.subTo(y,r);while(r[g]<--b)r.subTo(y,r)}}null!=n&&(r.drShiftTo(l,n),u!=s&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),u<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=I(),o=I(),i=n.convert(this),a=K(t)-1;i.copyTo(r);while(--a>=0)if(n.sqrTo(r,o),(t&1<<a)>0)n.mulTo(o,i,r);else{var u=r;r=o,o=u}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=W(n),o=I(),i=I(),a="";this.divRemTo(r,o,i);while(o.signum()>0)a=(n+i.intValue()).toString(e).substr(1)+a,o.divRemTo(r,o,i);return i.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),i=!1,a=0,u=0,s=0;s<t.length;++s){var c=$(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(u=n*u+c,++a>=r&&(this.dMultiply(o),this.dAddOffset(u,0),a=0,u=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(u,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),a,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var o=[],i=7&t;o.length=1+(t>>3),n.nextBytes(o),i>0?o[0]&=(1<<i)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);n.s=0,n.t=r;while(r>0)n[--r]=0;for(var o=n.t-this.t;r<o;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(o=Math.min(e.t,t);r<o;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>N.length&&(t=N.length);for(var i=I(),a=0;a<t;++a){i.fromInt(N[Math.floor(Math.random()*N.length)]);var u=i.modPow(o,this);if(0!=u.compareTo(e.ONE)&&0!=u.compareTo(n)){var s=1;while(s++<r&&0!=u.compareTo(n))if(u=u.modPowInt(2,this),0==u.compareTo(e.ONE))return!1;if(0!=u.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=I();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var i=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{i<a&&(a=i),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var u=function(){(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(u,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(u,10)}},e.prototype.fromNumberAsync=function(t,n,r,o){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),a,this),this.isEven()&&this.dAddOffset(1,0);var i=this,u=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(n)?setTimeout((function(){o()}),0):setTimeout(u,0)};setTimeout(u,0)}else{var s=[],c=7&t;s.length=1+(t>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},e}(),P=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),j=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),L=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=I();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(B.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=I();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),M=function(){function e(e){this.m=e,this.r2=I(),this.q3=I(),B.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=I();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function I(){return new B(null)}function F(e,t){return new B(e,t)}var V="undefined"!==typeof navigator;V&&R&&"Microsoft Internet Explorer"==navigator.appName?(B.prototype.am=function(e,t,n,r,o,i){var a=32767&t,u=t>>15;while(--i>=0){var s=32767&this[e],c=this[e++]>>15,l=u*s+c*a;s=a*s+((32767&l)<<15)+n[r]+(1073741823&o),o=(s>>>30)+(l>>>15)+u*c+(o>>>30),n[r++]=1073741823&s}return o},E=30):V&&R&&"Netscape"!=navigator.appName?(B.prototype.am=function(e,t,n,r,o,i){while(--i>=0){var a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o},E=26):(B.prototype.am=function(e,t,n,r,o,i){var a=16383&t,u=t>>14;while(--i>=0){var s=16383&this[e],c=this[e++]>>14,l=u*s+c*a;s=a*s+((16383&l)<<14)+n[r]+o,o=(s>>28)+(l>>14)+u*c,n[r++]=268435455&s}return o},E=28),B.prototype.DB=E,B.prototype.DM=(1<<E)-1,B.prototype.DV=1<<E;var U=52;B.prototype.FV=Math.pow(2,U),B.prototype.F1=U-E,B.prototype.F2=2*E-U;var q,z,H=[];for(q="0".charCodeAt(0),z=0;z<=9;++z)H[q++]=z;for(q="a".charCodeAt(0),z=10;z<36;++z)H[q++]=z;for(q="A".charCodeAt(0),z=10;z<36;++z)H[q++]=z;function $(e,t){var n=H[e.charCodeAt(t)];return null==n?-1:n}function W(e){var t=I();return t.fromInt(e),t}function K(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}B.ZERO=W(0),B.ONE=W(1);var Y=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function G(){return new Y}var Q,X,J=256,Z=null;if(null==Z){Z=[],X=0;var ee=void 0;if(window.crypto&&window.crypto.getRandomValues){var te=new Uint32Array(256);for(window.crypto.getRandomValues(te),ee=0;ee<te.length;++ee)Z[X++]=255&te[ee]}var ne=0,re=function(e){if(ne=ne||0,ne>=256||X>=J)window.removeEventListener?window.removeEventListener("mousemove",re,!1):window.detachEvent&&window.detachEvent("onmousemove",re);else try{var t=e.x+e.y;Z[X++]=255&t,ne+=1}catch(n){}};window.addEventListener?window.addEventListener("mousemove",re,!1):window.attachEvent&&window.attachEvent("onmousemove",re)}function oe(){if(null==Q){Q=G();while(X<J){var e=Math.floor(65536*Math.random());Z[X++]=255&e}for(Q.init(Z),X=0;X<Z.length;++X)Z[X]=0;X=0}return Q.next()}var ie=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=oe()},e}();function ae(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var i="0001"+r+"00"+e;return F(i,16)}function ue(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],r=e.length-1;while(r>=0&&t>0){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=63&o|128,n[--t]=o>>6|192):(n[--t]=63&o|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;var i=new ie,a=[];while(t>2){a[0]=0;while(0==a[0])i.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new B(n)}var se=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=ue(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var o=r.toString(16),i=o.length,a=0;a<2*t-i;a++)o="0"+o;return o},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16),this.d=F(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,o,i,a,u){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16),this.d=F(n,16),this.p=F(r,16),this.q=F(o,16),this.dmp1=F(i,16),this.dmq1=F(a,16),this.coeff=F(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new ie,r=e>>1;this.e=parseInt(t,16);for(var o=new B(t,16);;){for(;;)if(this.p=new B(e-r,1,n),0==this.p.subtract(B.ONE).gcd(o).compareTo(B.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new B(r,1,n),0==this.q.subtract(B.ONE).gcd(o).compareTo(B.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var a=this.p.subtract(B.ONE),u=this.q.subtract(B.ONE),s=a.multiply(u);if(0==s.gcd(o).compareTo(B.ONE)){this.n=this.p.multiply(this.q),this.d=o.modInverse(s),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=F(e,16),n=this.doPrivate(t);return null==n?null:ce(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new ie,o=e>>1;this.e=parseInt(t,16);var i=new B(t,16),a=this,u=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(B.ONE),r=a.q.subtract(B.ONE),o=t.multiply(r);0==o.gcd(i).compareTo(B.ONE)?(a.n=a.p.multiply(a.q),a.d=i.modInverse(o),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(u,0)},s=function(){a.q=I(),a.q.fromNumberAsync(o,1,r,(function(){a.q.subtract(B.ONE).gcda(i,(function(e){0==e.compareTo(B.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){a.p=I(),a.p.fromNumberAsync(e-o,1,r,(function(){a.p.subtract(B.ONE).gcda(i,(function(e){0==e.compareTo(B.ONE)&&a.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(u,0)},e.prototype.sign=function(e,t,n){var r=fe(n),o=r+t(e).toString(),i=ae(o,this.n.bitLength()/4);if(null==i)return null;var a=this.doPrivate(i);if(null==a)return null;var u=a.toString(16);return 0==(1&u.length)?u:"0"+u},e.prototype.verify=function(e,t,n){var r=F(t,16),o=this.doPublic(r);if(null==o)return null;var i=o.toString(16).replace(/^1f+00/,""),a=de(i);return a==n(e).toString()},e}();function ce(e,t){var n=e.toByteArray(),r=0;while(r<n.length&&0==n[r])++r;if(n.length-r!=t-1||2!=n[r])return null;++r;while(0!=n[r])if(++r>=n.length)return null;var o="";while(++r<n.length){var i=255&n[r];i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(o+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return o}var le={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function fe(e){return le[e]||""}function de(e){for(var t in le)if(le.hasOwnProperty(t)){var n=le[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}
  50. /*!
  51. Copyright (c) 2011, Yahoo! Inc. All rights reserved.
  52. Code licensed under the BSD License:
  53. http://developer.yahoo.com/yui/license.html
  54. version: 2.9.0
  55. */var he={};he.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var o;for(o in n)e.prototype[o]=n[o];var i=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(e,t){for(o=0;o<a.length;o+=1){var n=a[o],r=t[n];"function"===typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(u){}i(e.prototype,n)}}};
  56. /**
  57. * @fileOverview
  58. * @name asn1-1.0.js
  59. * @author Kenji Urushima kenji.urushima@gmail.com
  60. * @version asn1 1.0.13 (2017-Jun-02)
  61. * @since jsrsasign 2.1
  62. * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
  63. */
  64. var pe={};"undefined"!=typeof pe.asn1&&pe.asn1||(pe.asn1={}),pe.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var o="",i=0;i<r;i++)o+="f";var a=new B(o,16),u=a.xor(e).add(B.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=pe,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,i=n.DERBitString,a=n.DEROctetString,u=n.DERNull,s=n.DERObjectIdentifier,c=n.DEREnumerated,l=n.DERUTF8String,f=n.DERNumericString,d=n.DERPrintableString,h=n.DERTeletexString,p=n.DERIA5String,m=n.DERUTCTime,g=n.DERGeneralizedTime,v=n.DERSequence,y=n.DERSet,b=n.DERTaggedObject,w=n.ASN1Util.newObject,_=Object.keys(e);if(1!=_.length)throw"key of param shall be only one.";var x=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new r(e[x]);if("int"==x)return new o(e[x]);if("bitstr"==x)return new i(e[x]);if("octstr"==x)return new a(e[x]);if("null"==x)return new u(e[x]);if("oid"==x)return new s(e[x]);if("enum"==x)return new c(e[x]);if("utf8str"==x)return new l(e[x]);if("numstr"==x)return new f(e[x]);if("prnstr"==x)return new d(e[x]);if("telstr"==x)return new h(e[x]);if("ia5str"==x)return new p(e[x]);if("utctime"==x)return new m(e[x]);if("gentime"==x)return new g(e[x]);if("seq"==x){for(var C=e[x],S=[],E=0;E<C.length;E++){var k=w(C[E]);S.push(k)}return new v({array:S})}if("set"==x){for(C=e[x],S=[],E=0;E<C.length;E++){k=w(C[E]);S.push(k)}return new y({array:S})}if("tag"==x){var T=e[x];if("[object Array]"===Object.prototype.toString.call(T)&&3==T.length){var A=w(T[2]);return new b({tag:T[0],explicit:T[1],obj:A})}var O={};if(void 0!==T.explicit&&(O.explicit=T.explicit),void 0!==T.tag&&(O.tag=T.tag),void 0===T.obj)throw"obj shall be specified for 'tag'.";return O.obj=w(T.obj),new b(O)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},pe.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),o=n%40,i=(t=r+"."+o,""),a=2;a<e.length;a+=2){var u=parseInt(e.substr(a,2),16),s=("00000000"+u.toString(2)).slice(-8);if(i+=s.substr(1,7),"0"==s.substr(0,1)){var c=new B(i,2);t=t+"."+c.toString(10),i=""}}return t},pe.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new B(e,10),o=r.toString(2),i=7-o.length%7;7==i&&(i=0);for(var a="",u=0;u<i;u++)a+="0";o=a+o;for(u=0;u<o.length-1;u+=7){var s=o.substr(u,7);u!=o.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),i=40*parseInt(o[0])+parseInt(o[1]);r+=t(i),o.splice(0,2);for(var a=0;a<o.length;a++)r+=n(o[a]);return r},pe.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+r;return o.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},pe.asn1.DERAbstractString=function(e){pe.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e["str"]?this.setString(e["str"]):"undefined"!=typeof e["hex"]&&this.setStringHex(e["hex"]))},he.lang.extend(pe.asn1.DERAbstractString,pe.asn1.ASN1Object),pe.asn1.DERAbstractTime=function(e){pe.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){utc=e.getTime()+6e4*e.getTimezoneOffset();var t=new Date(utc);return t},this.formatDate=function(e,t,n){var r=this.zeroPadding,o=this.localDateToUTC(e),i=String(o.getFullYear());"utc"==t&&(i=i.substr(2,2));var a=r(String(o.getMonth()+1),2),u=r(String(o.getDate()),2),s=r(String(o.getHours()),2),c=r(String(o.getMinutes()),2),l=r(String(o.getSeconds()),2),f=i+a+u+s+c+l;if(!0===n){var d=o.getMilliseconds();if(0!=d){var h=r(String(d),3);h=h.replace(/[0]+$/,""),f=f+"."+h}}return f+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,o,i){var a=new Date(Date.UTC(e,t-1,n,r,o,i,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},he.lang.extend(pe.asn1.DERAbstractTime,pe.asn1.ASN1Object),pe.asn1.DERAbstractStructured=function(e){pe.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e["array"]&&(this.asn1Array=e["array"])},he.lang.extend(pe.asn1.DERAbstractStructured,pe.asn1.ASN1Object),pe.asn1.DERBoolean=function(){pe.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},he.lang.extend(pe.asn1.DERBoolean,pe.asn1.ASN1Object),pe.asn1.DERInteger=function(e){pe.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=pe.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new B(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["bigint"]?this.setByBigInteger(e["bigint"]):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},he.lang.extend(pe.asn1.DERInteger,pe.asn1.ASN1Object),pe.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=pe.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}pe.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var o=e.substr(n,8),i=parseInt(o,2).toString(16);1==i.length&&(i="0"+i),r+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e["hex"]?this.setHexValueIncludingUnusedBits(e["hex"]):"undefined"!=typeof e["bin"]?this.setByBinaryString(e["bin"]):"undefined"!=typeof e["array"]&&this.setByBooleanArray(e["array"]))},he.lang.extend(pe.asn1.DERBitString,pe.asn1.ASN1Object),pe.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=pe.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}pe.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},he.lang.extend(pe.asn1.DEROctetString,pe.asn1.DERAbstractString),pe.asn1.DERNull=function(){pe.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},he.lang.extend(pe.asn1.DERNull,pe.asn1.ASN1Object),pe.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new B(e,10),o=r.toString(2),i=7-o.length%7;7==i&&(i=0);for(var a="",u=0;u<i;u++)a+="0";o=a+o;for(u=0;u<o.length-1;u+=7){var s=o.substr(u,7);u!=o.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};pe.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),i=40*parseInt(o[0])+parseInt(o[1]);r+=t(i),o.splice(0,2);for(var a=0;a<o.length;a++)r+=n(o[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=pe.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"===typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},he.lang.extend(pe.asn1.DERObjectIdentifier,pe.asn1.ASN1Object),pe.asn1.DEREnumerated=function(e){pe.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=pe.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new B(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},he.lang.extend(pe.asn1.DEREnumerated,pe.asn1.ASN1Object),pe.asn1.DERUTF8String=function(e){pe.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},he.lang.extend(pe.asn1.DERUTF8String,pe.asn1.DERAbstractString),pe.asn1.DERNumericString=function(e){pe.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},he.lang.extend(pe.asn1.DERNumericString,pe.asn1.DERAbstractString),pe.asn1.DERPrintableString=function(e){pe.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},he.lang.extend(pe.asn1.DERPrintableString,pe.asn1.DERAbstractString),pe.asn1.DERTeletexString=function(e){pe.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},he.lang.extend(pe.asn1.DERTeletexString,pe.asn1.DERAbstractString),pe.asn1.DERIA5String=function(e){pe.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},he.lang.extend(pe.asn1.DERIA5String,pe.asn1.DERAbstractString),pe.asn1.DERUTCTime=function(e){pe.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},he.lang.extend(pe.asn1.DERUTCTime,pe.asn1.DERAbstractTime),pe.asn1.DERGeneralizedTime=function(e){pe.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},he.lang.extend(pe.asn1.DERGeneralizedTime,pe.asn1.DERAbstractTime),pe.asn1.DERSequence=function(e){pe.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}},he.lang.extend(pe.asn1.DERSequence,pe.asn1.DERAbstractStructured),pe.asn1.DERSet=function(e){pe.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},he.lang.extend(pe.asn1.DERSet,pe.asn1.DERAbstractStructured),pe.asn1.DERTaggedObject=function(e){pe.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["tag"]&&(this.hT=e["tag"]),"undefined"!=typeof e["explicit"]&&(this.isExplicit=e["explicit"]),"undefined"!=typeof e["obj"]&&(this.asn1Object=e["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},he.lang.extend(pe.asn1.DERTaggedObject,pe.asn1.ASN1Object);var me=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(e){function t(n){var r=e.call(this)||this;return n&&("string"===typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return me(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=r.test(e)?v.decode(e):y.unarmor(e),i=T.decode(o);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=F(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=F(a,16);var u=i.sub[4].getHexStringValue();this.p=F(u,16);var s=i.sub[5].getHexStringValue();this.q=F(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=F(c,16);var l=i.sub[7].getHexStringValue();this.dmq1=F(l,16);var f=i.sub[8].getHexStringValue();this.coeff=F(f,16)}else{if(2!==i.sub.length)return!1;var d=i.sub[1],h=d.sub[0];t=h.sub[0].getHexStringValue(),this.n=F(t,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(p){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new pe.asn1.DERInteger({int:0}),new pe.asn1.DERInteger({bigint:this.n}),new pe.asn1.DERInteger({int:this.e}),new pe.asn1.DERInteger({bigint:this.d}),new pe.asn1.DERInteger({bigint:this.p}),new pe.asn1.DERInteger({bigint:this.q}),new pe.asn1.DERInteger({bigint:this.dmp1}),new pe.asn1.DERInteger({bigint:this.dmq1}),new pe.asn1.DERInteger({bigint:this.coeff})]},t=new pe.asn1.DERSequence(e);return t.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return p(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new pe.asn1.DERSequence({array:[new pe.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pe.asn1.DERNull]}),t=new pe.asn1.DERSequence({array:[new pe.asn1.DERInteger({bigint:this.n}),new pe.asn1.DERInteger({int:this.e})]}),n=new pe.asn1.DERBitString({hex:"00"+t.getEncodedHex()}),r=new pe.asn1.DERSequence({array:[e,n]});return r.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return p(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(t=t||64,!e)return e;var n="(.{1,"+t+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(se),ve=n("a524"),ye=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ge(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(m(e))}catch(t){return!1}},e.prototype.encrypt=function(e){try{return p(this.getKey().encrypt(e))}catch(t){return!1}},e.prototype.sign=function(e,t,n){try{return p(this.getKey().sign(e,t,n))}catch(r){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,m(t),n)}catch(r){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new ge,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=ve.version,e}();t["a"]=ye},"995e":function(e,t,n){"use strict";n("fd31")},"99b1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-layout-vertical",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[t("vab-side-bar"),"mobile"!==e.device||e.collapse?e._e():t("div",{staticClass:"v-modal",on:{click:e.handleFoldSideBar}}),t("div",{staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[t("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[t("vab-nav"),t("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}]})],1),t("vab-app-main")],1)],1)},o=[],i=n("2f62"),a={name:"VabLayoutVertical",props:{collapse:{type:Boolean,default(){return!1}},fixedHeader:{type:Boolean,default(){return!0}},showTabs:{type:Boolean,default(){return!0}},device:{type:String,default(){return"desktop"}}},methods:{...Object(i["b"])({handleFoldSideBar:"settings/foldSideBar"})}},u=a,s=(n("513e"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"71984608",null);t["default"]=c.exports},"99c3":function(e,t,n){"use strict";n("d727")},"9e6a":function(e,t,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var n,f={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,h),m=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===l?g="utf-8":p[n]===c&&(g="iso-8859-1"),m=n,n=p.length);for(n=0;n<p.length;++n)if(n!==m){var v,y,b=p[n],w=b.indexOf("]="),_=-1===w?b.indexOf("="):w+1;-1===_?(v=t.decoder(b,a.decoder,g,"key"),y=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,_),a.decoder,g,"key"),y=r.maybeMap(s(b.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,g,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===g&&(y=u(y)),b.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(f,v)?f[v]=r.combine(f[v],y):f[v]=y}return f},d=function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[],a[l]=o):"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o},h=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=n.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}var f=0;while(n.depth>0&&null!==(s=u.exec(i))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),d(l,t,n,r)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof e?f(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),u=0;u<a.length;++u){var s=a[u],c=h(s,o[s],n,"string"===typeof e);i=r.merge(i,c,n)}return!0===n.allowSparse?i:r.compact(i)}},"9f2e":function(e,t,n){"use strict";n.r(t),n.d(t,"convertRouter",(function(){return u})),n.d(t,"filterRoutes",(function(){return s})),n.d(t,"handleActivePath",(function(){return c})),n.d(t,"toLoginRoute",(function(){return l}));var r=n("df7c"),o=n("4ff3"),i=n("61f7"),a=n("f121");function u(e){return e.map(e=>{if(e.component)if("Layout"===e.component)e.component=e=>Promise.resolve().then(function(){var t=[n("a3b4")];e.apply(null,t)}.bind(this)).catch(n.oe);else{const t=e.component.indexOf("views"),r=t>0?e.component.slice(t):"views/"+e.component;e.component=e=>Promise.all([n.e("chunk-1de20c9a"),n.e("chunk-281c4dee"),n.e("chunk-272317ee"),n.e("chunk-7a66b8fe"),n.e("chunk-925dc942")]).then(function(){var t=[n("a8ec")("./"+r)];e.apply(null,t)}.bind(this)).catch(n.oe)}return e.children&&e.children.length&&(e.children=u(e.children)),e.children&&0===e.children.length&&delete e.children,e})}function s(e,t,n="/"){return e.filter(e=>!(t&&e.meta&&e.meta.roles)||Object(o["hasAccess"])(e.meta.roles)).map(e=>(e.fullPath="*"===e.path||Object(i["isExternal"])(e.path)?e.path:Object(r["resolve"])(n,e.path),e.children&&(e.children=s(e.children,t,e.fullPath),e.redirect||(e.redirect=e.children[0].fullPath)),e))}function c(e,t=!1){const{meta:n,fullPath:r}=e,o=e.matched?e.matched[e.matched.length-1].path:r;return t?n.dynamicNewTab?r:o:n.activeMenu?n.activeMenu:r||o}function l(e){return console.log(a["recordRoute"],"recordRoute"),console.log(e,"recordRoute"),a["recordRoute"]&&"/"!==e?{path:"/login",query:{redirect:e},replace:!0}:{path:"/login",replace:!0}}},a03f:function(e,t,n){"use strict";n.r(t);var r=n("e017"),o=n.n(r),i=n("21a1"),a=n.n(i),u=new o.a({id:"vab-icon-vuejs-fill",use:"vab-icon-vuejs-fill-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="vab-icon-vuejs-fill">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M1 3h4l7 12 7-12h4L12 22 1 3zm8.667 0L12 7l2.333-4h4.035L12 14 5.632 3h4.035z" />\r\n</symbol>'});a.a.add(u);t["default"]=u},a08b:function(e,t,n){},a0d3:function(e,t,n){"use strict";var r=n("0f7c");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),o=n.n(r),i=n("1098"),a=n.n(i),u=/%[sdj%]/g,s=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"===typeof o)return o.apply(null,t.slice(1));if("string"===typeof o){for(var a=String(o).replace(u,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r<i;s=t[++r])a+=" "+s;return a}return o}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var u=r;r+=1,u<o?t(e[u],i):n([])}}i([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var o=p(e);return h(o,n,r)}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),u=a.length,s=0,c=[],l=function(e){c.push.apply(c,e),s++,s===u&&r(c)};a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?h(r,n,l):d(r,n,l)}))}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=o()({},e[n],r):e[n]=r}return e}function y(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!f(t,i||e.type)||r.push(c(o.messages.required,e.fullField))}var b=y;function w(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(c(o.messages.whitespace,e.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function S(e,t,n,r,o){if(e.required&&void 0===t)b(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=e.type;i.indexOf(u)>-1?C[u](t)||r.push(c(o.messages.types[u],e.fullField,e.type)):u&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(c(o.messages.types[u],e.fullField,e.type))}}var E=S;function k(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,u="number"===typeof e.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(c(o.messages[f].len,e.fullField,e.len)):a&&!u&&l<e.min?r.push(c(o.messages[f].min,e.fullField,e.min)):u&&!a&&l>e.max?r.push(c(o.messages[f].max,e.fullField,e.max)):a&&u&&(l<e.min||l>e.max)&&r.push(c(o.messages[f].range,e.fullField,e.min,e.max))}var T=k,A="enum";function O(e,t,n,r,o){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(c(o.messages[A],e.fullField,e[A].join(", ")))}var R=O;function N(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var D=N,B={required:b,whitespace:_,type:E,range:T,enum:R,pattern:D};function P(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();B.required(e,t,r,i,o,"string"),f(t,"string")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o),B.pattern(e,t,r,i,o),!0===e.whitespace&&B.whitespace(e,t,r,i,o))}n(i)}var j=P;function L(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var M=L;function I(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var F=I;function V(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var U=V;function q(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),f(t)||B.type(e,t,r,i,o)}n(i)}var z=q;function H(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var $=H;function W(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var K=W;function Y(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();B.required(e,t,r,i,o,"array"),f(t,"array")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var G=Y;function Q(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var X=Q,J="enum";function Z(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),t&&B[J](e,t,r,i,o)}n(i)}var ee=Z;function te(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();B.required(e,t,r,i,o),f(t,"string")||B.pattern(e,t,r,i,o)}n(i)}var ne=te;function re(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(B.required(e,t,r,i,o),!f(t)){var u=void 0;u="number"===typeof t?new Date(t):t,B.type(e,u,r,i,o),u&&B.range(e,u.getTime(),r,i,o)}}n(i)}var oe=re;function ie(e,t,n,r,o){var i=[],u=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);B.required(e,t,r,i,o,u),n(i)}var ae=ie;function ue(e,t,n,r,o){var i=e.type,a=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if(f(t,i)&&!e.required)return n();B.required(e,t,r,a,o,i),f(t,i)||B.type(e,t,r,a,o)}n(a)}var se=ue,ce={string:j,method:M,number:F,boolean:U,regexp:z,integer:$,float:K,array:G,object:X,enum:ee,pattern:ne,date:oe,url:se,hex:se,email:se,required:ae};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=le();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=e,u=n,l=r;if("function"===typeof u&&(l=u,u={}),this.rules&&0!==Object.keys(this.rules).length){if(u.messages){var f=this.messages();f===fe&&(f=le()),v(f,u.messages),u.messages=f}else u.messages=this.messages();var d=void 0,h=void 0,p={},y=u.keys||Object.keys(this.rules);y.forEach((function(n){d=t.rules[n],h=i[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(i===e&&(i=o()({},i)),h=i[n]=a.transform(h)),a="function"===typeof a?{validator:a}:o()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:i,field:n}))}))}));var b={};m(p,u,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function i(e,t){return o()({},t,{fullField:n.fullField+"."+e})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&s("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(g(n)),u.first&&l.length)return b[n.field]=1,t(l);if(r){if(n.required&&!e.value)return l=n.message?[].concat(n.message).map(g(n)):u.error?[u.error(n,c(u.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=o()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(i.bind(null,h))}var m=new de(f);m.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),m.validate(e.value,e.rule.options||u,(function(e){t(e&&e.length?l.concat(e):e)}))}else t(l)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,l,e.source,u);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){w(e)}))}else l&&l();function w(e){var t=void 0,n=void 0,r=[],o={};function i(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)i(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,o[n]=o[n]||[],o[n].push(r[t]);else r=null,o=null;l(r,o)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},de.messages=fe;t["default"]=de},a18c:function(e,t,n){"use strict";n.r(t),n.d(t,"constantRoutes",(function(){return u})),n.d(t,"asyncRoutes",(function(){return s})),n.d(t,"resetRouter",(function(){return l}));var r=n("a026"),o=n("8c4f"),i=n("a3b4"),a=n("f121");r["default"].use(o["a"]);const u=[{path:"/",component:()=>n.e("chunk-272317ee").then(n.bind(null,"37f9")),meta:{hidden:!0}},{path:"/login",component:()=>n.e("chunk-f306698e").then(n.bind(null,"9ed6")),meta:{hidden:!0}},{path:"login",component:()=>n.e("chunk-f306698e").then(n.bind(null,"9ed6")),meta:{hidden:!0}},{path:"/register",component:()=>n.e("chunk-997c8a06").then(n.bind(null,"d5c2")),meta:{hidden:!0}},{path:"/403",name:"403",component:()=>n.e("chunk-4b608059").then(n.bind(null,"00a5")),meta:{hidden:!0}},{path:"/404",name:"404",component:()=>n.e("chunk-f4c59688").then(n.bind(null,"8cdb")),meta:{hidden:!0}}],s=[{path:"/admin",name:"Admin",component:i["default"],redirect:"/admin/index",meta:{title:"区镇列表",icon:"home-2-line"},children:[{path:"index",name:"Index",component:()=>Promise.all([n.e("chunk-7a66b8fe"),n.e("chunk-5ff8275a")]).then(n.bind(null,"2953")),meta:{title:"区镇列表",icon:"home-2-line",noClosable:!0}},{path:"map",name:"Map",component:()=>n.e("chunk-281c4dee").then(n.bind(null,"a3fa")),meta:{title:"地图显示区域",icon:"home-2-line",noClosable:!0,hidden:!0}}]},{path:"/custom",name:"Custom",component:i["default"],redirect:"/custom/index",meta:{title:"客户列表",icon:"home-2-line"},children:[{path:"index",name:"index",component:()=>n.e("chunk-8521b888").then(n.bind(null,"25f4")),meta:{title:"客户列表",icon:"home-2-line",noClosable:!0}}]},{path:"/seting",name:"Seting",component:i["default"],redirect:"/seting/configure",meta:{title:"配置管理",icon:"user-settings-line"},children:[{path:"menu",name:"Menu",component:()=>n.e("chunk-fbfca964").then(n.bind(null,"a611")),meta:{title:"菜单管理",icon:"account-box-line",noClosable:!0}},{path:"administration",name:"administration",component:()=>n.e("chunk-73f26310").then(n.bind(null,"aa57")),meta:{title:"管理员管理",icon:"account-box-line",noClosable:!0}},{path:"role",name:"role",component:()=>n.e("chunk-08664264").then(n.bind(null,"ef17")),meta:{title:"角色管理",icon:"account-box-line",noClosable:!0}}]},{path:"/info",name:"info",component:i["default"],redirect:"/info/infoIndex",meta:{title:"个人中心",icon:"home-2-line"},children:[{path:"infoIndex",name:"infoIndex",component:()=>n.e("chunk-58a54aa0").then(n.bind(null,"a965")),meta:{title:"个人中心",icon:"home-2-line",noClosable:!0}}]},{path:"*",redirect:"/404",meta:{hidden:!0}}],c=f();function l(e=u){c.matcher=f(e).matcher}function f(e=u){return new o["a"]({base:a["publicPath"],mode:a["routerMode"],scrollBehavior:()=>({y:0}),routes:e})}const d=o["a"].prototype.push;o["a"].prototype.push=function(e,t,n){return t||n?d.call(this,e,t,n):d.call(this,e).catch(e=>e)},t["default"]=c},a2d2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-layout-comprehensive",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[t("vab-side-bar",{attrs:{layout:"comprehensive"}}),t("div",{staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[t("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[t("vab-nav",{attrs:{layout:"comprehensive"}}),t("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}]})],1),t("vab-app-main")],1)],1)},o=[],i={name:"VabLayoutComprehensive",props:{collapse:{type:Boolean,default(){return!1}},fixedHeader:{type:Boolean,default(){return!0}},showTabs:{type:Boolean,default(){return!0}},device:{type:String,default(){return"desktop"}}}},a=i,u=(n("cd03"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"1d912f1f",null);t["default"]=s.exports},a3b2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"vab-footer"},[e._v(" Copyright "),t("vab-icon",{attrs:{icon:"copyright-line"}}),e._v(" "+e._s(e.title)+" "+e._s(e.fullYear)+" ")],1)},o=[],i=n("f121"),a={name:"VabFooter",data(){return{fullYear:(new Date).getFullYear(),title:i["title"]}}},u=a,s=(n("5942"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"39f9a2d4",null);t["default"]=c.exports},a3b4:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vue-admin-beautiful-wrapper",class:e.classObj},[t("vab-layout-"+e.theme.layout,{tag:"component",attrs:{collapse:e.collapse,device:e.device,"fixed-header":e.theme.fixedHeader,"show-tabs":e.theme.showTabs}}),t("el-backtop",{attrs:{target:"#app"}}),t("vab-theme-drawer")],1)},o=[],i=n("2f62"),a={name:"Layouts",data(){return{isMobile:!1,oldLayout:""}},computed:{...Object(i["c"])({device:"settings/device",collapse:"settings/collapse",theme:"settings/theme"}),classObj(){return{mobile:"mobile"===this.device}}},beforeMount(){this.oldLayout=this.theme.layout,window.addEventListener("resize",this.handleLayouts),this.handleLayouts()},beforeDestroy(){window.removeEventListener("resize",this.handleLayouts),this.isMobile&&(this.theme.layout=this.oldLayout)},methods:{...Object(i["b"])({toggleDevice:"settings/toggleDevice",foldSideBar:"settings/foldSideBar",openSideBar:"settings/openSideBar"}),handleLayouts(){const e=document.body.getBoundingClientRect().width-1<992;this.isMobile!==e&&(e?(this.oldLayout=this.theme.layout,this.foldSideBar()):this.openSideBar(),this.toggleDevice(e?"mobile":"desktop"),this.theme.layout=e?"vertical":this.oldLayout,this.isMobile=e)}}},u=a,s=(n("348f"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"378f4d28",null);t["default"]=c.exports},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},a404:function(e,t,n){var r={"./directive.js":"3975","./element.js":"e3bf","./errorLog.js":"0a48","./permissions.js":"a842","./support.js":"cfc2","./vab.js":"9288"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="a404"},a493:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-tabs"},["common"===e.layout?t("vab-fold"):e._e(),t("el-tabs",{staticClass:"vab-tabs-content",class:{["vab-tabs-content-"+e.theme.tabsBarStyle]:!0},attrs:{type:"card"},on:{"tab-click":e.handleTabClick,"tab-remove":e.handleTabRemove},model:{value:e.tabActive,callback:function(t){e.tabActive=t},expression:"tabActive"}},e._l(e.visitedRoutes,(function(n){return t("el-tab-pane",{key:n.path,attrs:{closable:!e.isNoClosable(n),name:n.path}},[t("span",{staticStyle:{display:"inline-block"},attrs:{slot:"label"},on:{contextmenu:function(t){return t.preventDefault(),e.openMenu(t,n)}},slot:"label"},[e.theme.showTabsBarIcon?[n.meta&&n.meta.icon?t("vab-icon",{attrs:{icon:n.meta.icon,"is-custom-svg":n.meta.isCustomSvg}}):t("vab-icon",{attrs:{icon:n.parentIcon}})]:e._e(),t("span",[e._v(e._s(n.meta.title))])],2)])})),1),t("el-dropdown",{on:{command:e.handleCommand,"visible-change":e.handleVisibleChange},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("el-dropdown-menu",{staticClass:"tabs-more"},[t("el-dropdown-item",{attrs:{command:"closeOthersTabs"}},[t("vab-icon",{attrs:{icon:"close-line"}}),t("span",[e._v("关闭其他")])],1),t("el-dropdown-item",{attrs:{command:"closeLeftTabs"}},[t("vab-icon",{attrs:{icon:"arrow-left-line"}}),t("span",[e._v("关闭左侧")])],1),t("el-dropdown-item",{attrs:{command:"closeRightTabs"}},[t("vab-icon",{attrs:{icon:"arrow-right-line"}}),t("span",[e._v("关闭右侧")])],1),t("el-dropdown-item",{attrs:{command:"closeAllTabs"}},[t("vab-icon",{attrs:{icon:"close-line"}}),t("span",[e._v("关闭全部")])],1)],1)]},proxy:!0}])},[t("span",{staticClass:"vab-tabs-more",class:{"vab-tabs-more-active":e.active}},[t("span",{staticClass:"vab-tabs-more-icon"},[t("i",{staticClass:"box box-t"}),t("i",{staticClass:"box box-b"})])])]),e.visible?t("ul",{staticClass:"contextmenu el-dropdown-menu el-dropdown-menu--small",style:{left:e.left+"px",top:e.top+"px"}},[t("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":1===e.visitedRoutes.length},on:{click:e.closeOthersTabs}},[t("vab-icon",{attrs:{icon:"close-line"}}),t("span",[e._v("关闭其他")])],1),t("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":!e.visitedRoutes.indexOf(e.hoverRoute)},on:{click:e.closeLeftTabs}},[t("vab-icon",{attrs:{icon:"arrow-left-line"}}),t("span",[e._v("关闭左侧")])],1),t("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.visitedRoutes.indexOf(e.hoverRoute)===e.visitedRoutes.length-1},on:{click:e.closeRightTabs}},[t("vab-icon",{attrs:{icon:"arrow-right-line"}}),t("span",[e._v("关闭右侧")])],1),t("li",{staticClass:"el-dropdown-menu__item",on:{click:e.closeAllTabs}},[t("vab-icon",{attrs:{icon:"close-line"}}),t("span",[e._v("关闭全部")])],1)]):e._e()],1)},o=[],i=n("2f62"),a=n("9f2e"),u={name:"VabTabs",props:{layout:{type:String,default:""}},data(){return{tabActive:"",active:!1,visible:!1,top:0,left:0,hoverRoute:null}},computed:{...Object(i["c"])({visitedRoutes:"tabs/visitedRoutes",routes:"routes/routes",theme:"settings/theme"})},watch:{$route:{handler(e){this.$nextTick(()=>{this.addTabs(e)})},immediate:!0},visible(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},created(){this.initNoClosableTabs(this.routes)},methods:{...Object(i["b"])({addVisitedRoute:"tabs/addVisitedRoute",delVisitedRoute:"tabs/delVisitedRoute",delOthersVisitedRoutes:"tabs/delOthersVisitedRoutes",delLeftVisitedRoutes:"tabs/delLeftVisitedRoutes",delRightVisitedRoutes:"tabs/delRightVisitedRoutes",delAllVisitedRoutes:"tabs/delAllVisitedRoutes"}),handleTabClick(e){this.isActive(e.name)||this.$router.push(this.visitedRoutes[e.index])},handleVisibleChange(e){this.active=e},initNoClosableTabs(e){e.forEach(e=>{e.meta&&e.meta.noClosable&&this.addTabs(e,!0),e.children&&this.initNoClosableTabs(e.children)})},async addTabs(e,t=!1){let n=null;if(e.matched)for(let r=e.matched.length-2;r>=0;r--)!n&&e.matched[r].meta.icon&&(n=e.matched[r].meta.icon);if(n||(n="menu-line"),e.name&&e.meta&&!0!==e.meta.tabHidden){const r=Object(a["handleActivePath"])(e,!0);await this.addVisitedRoute({path:r,query:e.query,params:e.params,name:e.name,matched:t?[e.name]:e.matched.map(e=>e.components.default.name),parentIcon:n,meta:{...e.meta}}),this.tabActive=r}},async handleTabRemove(e){await this.delVisitedRoute(e),this.isActive(e)&&this.toLastTab()},handleCommand(e){switch(e){case"closeOthersTabs":this.closeOthersTabs();break;case"closeLeftTabs":this.closeLeftTabs();break;case"closeRightTabs":this.closeRightTabs();break;case"closeAllTabs":this.closeAllTabs();break}},async closeOthersTabs(){this.hoverRoute?(await this.$router.push(this.hoverRoute),await this.delOthersVisitedRoutes(this.hoverRoute.path)):await this.delOthersVisitedRoutes(Object(a["handleActivePath"])(this.$route,!0)),await this.closeMenu()},async closeLeftTabs(){this.hoverRoute?(await this.$router.push(this.hoverRoute),await this.delLeftVisitedRoutes(this.hoverRoute.path)):await this.delLeftVisitedRoutes(Object(a["handleActivePath"])(this.$route,!0)),await this.closeMenu()},async closeRightTabs(){this.hoverRoute?(await this.$router.push(this.hoverRoute),await this.delRightVisitedRoutes(this.hoverRoute.path)):await this.delRightVisitedRoutes(Object(a["handleActivePath"])(this.$route,!0)),await this.closeMenu()},async closeAllTabs(){await this.delAllVisitedRoutes(),this.toLastTab(),await this.closeMenu()},toLastTab(){console.log("最后一个标签");const e=this.visitedRoutes.slice(-1)[0];e?this.$router.push(e):this.$router.push("/")},isActive(e){return e===Object(a["handleActivePath"])(this.$route,!0)},isNoClosable(e){return e.meta&&e.meta.noClosable},openMenu(e,t){const n=this.$el.getBoundingClientRect().left,r=this.$el.offsetWidth,o=Math.round(r),i=Math.round(e.clientX-n);this.left=i>o?o:i,this.top=Math.round(e.clientY-80),this.hoverRoute=t,this.hoverRoute.fullPath=t.path,this.visible=!0},closeMenu(){this.visible=!1,this.hoverRoute=null}}},s=u,c=(n("09a9"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"774b4d33",null);t["default"]=l.exports},a514:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},o=[],i=n("61f7"),a={name:"VabLink",props:{to:{type:String,required:!0}},computed:{isExternal(){return Object(i["isExternal"])(this.to)},type(){return this.isExternal?"a":"router-link"}},methods:{linkProps(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},u=a,s=n("2877"),c=Object(s["a"])(u,r,o,!1,null,null,null);t["default"]=c.exports},a524:function(e){e.exports=JSON.parse('{"version":"3.2.1"}')},a5d8:function(e,t,n){},a682:function(e,t,n){"use strict";n("5f08")},a6a5:function(e,t,n){const r=n("b986");r.keys().map(r)},a78e:function(e,t,n){var r,o;
  65. /*!
  66. * JavaScript Cookie v2.2.1
  67. * https://github.com/js-cookie/js-cookie
  68. *
  69. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  70. * Released under the MIT license
  71. */(function(i){var a;if(r=i,o="function"===typeof r?r.call(t,n,t,e):r,void 0===o||(e.exports=o),a=!0,e.exports=i(),a=!0,!a){var u=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=u,s}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function o(){}function i(t,n,i){if("undefined"!==typeof document){i=e({path:"/"},o.defaults,i),"number"===typeof i.expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(c){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var s in i)i[s]&&(u+="; "+s,!0!==i[s]&&(u+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+u}}function a(e,n){if("undefined"!==typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var u=i[a].split("="),s=u.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var c=t(u[0]);if(s=(r.read||r)(s,c)||t(s),n)try{s=JSON.parse(s)}catch(l){}if(o[c]=s,e===c)break}catch(l){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}return n((function(){}))}))},a842:function(e,t,n){"use strict";n.r(t);n("caad");var r=n("a18c"),o=n("4360"),i=n("323e"),a=n.n(i),u=(n("a5d8"),n("f8ab")),s=n("9f2e"),c=n("f121");a.a.configure({easing:"ease",speed:500,trickleSpeed:200,showSpinner:!1}),r["default"].beforeEach(async(e,t,n)=>{const{showProgressBar:r}=o["default"].getters["settings/theme"];r&&a.a.start();let i=o["default"].getters["user/token"];if(c["loginInterception"]||(i=!0),i)if(console.log(o["default"].state.user.role_id,"store"),o["default"].getters["routes/routes"].length)"/login"===e.path?(console.log(o["default"].state.user.role_id,"store1111111"),n({path:"/admin/index"}),r&&a.a.done()):(console.log(n()," next() next() next() next() next()"),n());else try{c["loginInterception"]?await o["default"].dispatch("user/getUserInfo"):await o["default"].dispatch("user/setVirtualRoles"),await o["default"].dispatch("routes/setRoutes",c["authentication"]),n({...e,replace:!0})}catch(u){console.error("vue-admin-beautiful错误拦截:",u),await o["default"].dispatch("user/resetAll"),n(Object(s["toLoginRoute"])(e.path))}else c["routesWhiteList"].includes(e.path)?c["supportVisit"]&&!o["default"].getters["routes/routes"].length?(await o["default"].dispatch("routes/setRoutes","visit"),n({...e,replace:!0})):n():n(Object(s["toLoginRoute"])(e.path))}),r["default"].afterEach(e=>{document.title=Object(u["default"])(e.meta.title),a.a.status&&a.a.done()})},ab57:function(e,t,n){"use strict";n("d23d")},ace1:function(e,t,n){},ad27:function(e,t,n){"use strict";n.r(t);var r,o,i={name:"VabKeepAlive",abstract:!0,props:{include:{type:[String,RegExp,Array],default:void 0},max:{type:[String,Number],default:void 0}},updated(){this.cacheVNode()},created(){this.keys=[],this.cache=Object.create(null)},destroyed(){for(const e in this.cache)this.pruneCacheEntry(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{this.pruneCache(this,t=>this.matches(e,t))})},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:o,componentInstance:i,componentOptions:a}=n;e[r]={tag:o,componentInstance:i,name:this.getComponentName(a)},t.push(r),this.max&&t.length>parseInt(this.max)&&this.pruneCacheEntry(e,t[0],t,this._vnode),this.vnodeToCache=null}},isDef(e){return void 0!==e&&null!==e},matches(e,t){return e.indexOf(t)>-1},remove(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}},isAsyncPlaceholder(e){return e.isComment&&e.asyncFactory},getFirstComponentChild(e){if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];if(this.isDef(n)&&(this.isDef(n.componentOptions)||this.isAsyncPlaceholder(n)))return n}},getComponentName(e){return e&&(e.Ctor.options.name||e.tag)},pruneCache(e,t){const{cache:n,keys:r,vnode:o}=e;for(const i in n){const e=n[i];if(e){const a=e.name;a&&!t(a)&&this.pruneCacheEntry(n,i,r,o)}}},pruneCacheEntry(e,t,n,r){const o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,this.remove(n,t)}},render(){const e=this.$slots.default,t=this.getFirstComponentChild(e),n=t&&t.componentOptions;if(n){const e=this.getComponentName(n);if(this.include&&(!e||!this.matches(this.include,e)))return t;const r=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key,o=`${n.Ctor.cid}::${r}`,{cache:i,keys:a}=this;i[o]?(t.componentInstance=i[o].componentInstance,this.remove(a,o),a.push(o)):(this.keyToCache=o,this.vnodeToCache=t),t.data.keepAlive=!0}return t||e&&e[0]}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},af75:function(e,t,n){},b0c3:function(e,t,n){"use strict";n("ed8e")},b174:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-col",{attrs:{lg:e.span,md:24,sm:24,xl:e.span,xs:24}},[t("div",{staticClass:"right-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormRightPanel",props:{span:{type:Number,default:10}}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},b313:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},b32c:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("vab-icon",{staticClass:"fold-unfold",attrs:{icon:e.collapse?"menu-unfold-line":"menu-fold-line"},on:{click:e.toggleCollapse}})},o=[],i=n("2f62"),a={name:"VabFold",data(){return{}},computed:{...Object(i["c"])({collapse:"settings/collapse"})},methods:{...Object(i["b"])({toggleCollapse:"settings/toggleCollapse"})}},u=a,s=(n("b0c3"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"9471af0a",null);t["default"]=c.exports},b488:function(e,t,n){"use strict";n("e503")},b50d:function(e,t,n){"use strict";var r=n("c532"),o=n("467f"),i=n("7aac"),a=n("30b5"),u=n("83b9"),s=n("c345"),c=n("3934"),l=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=u(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,i=h&&"text"!==h&&"json"!==h?p.response:p.responseText,a={data:i,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},b707:function(e,t,n){"use strict";n("79b0")},b775:function(e,t,n){"use strict";n.r(t);n("d9e2"),n("caad");var r=n("a026"),o=n("bc3a"),i=n.n(o),a=n("f121"),u=n("4360"),s=n("4328"),c=n.n(s),l=n("a18c"),f=n("61f7"),d=n("0a48");let h;const p=Object(f["isArray"])(a["successCode"])?[...a["successCode"]]:[a["successCode"]],m={200:"服务器成功返回请求数据",201:"新建或修改数据成功",202:"一个请求已经进入后台排队(异步任务)",400:"发出信息有误",401:"用户没有权限(令牌失效、用户名、密码错误、登录过期)",402:"前端无痛刷新token",403:"用户得到授权,但是访问是被禁止的",404:"访问资源不存在",406:"请求格式不可得",410:"请求资源被永久删除,且不会被看到",500:"服务器发生错误",502:"网关错误",503:"服务不可用,服务器暂时过载或维护",504:"网关超时"},g=({config:e,data:t,status:n,statusText:o})=>{h&&h.close();let i=t&&t[a["statusName"]]?t[a["statusName"]]:n;switch(p.indexOf(t[a["statusName"]])+1&&(i=200),i){case 200:return t;case 204:return t;case 401:u["default"].dispatch("user/resetAll").then(()=>l["default"].push({path:"/login",replace:!0}).then(()=>{}));break;case 402:return u["default"].dispatch("user/setToken",t.data.token),t;case 403:l["default"].push({path:"/403"}).then(()=>{});break}const s=""+(t&&t[a["messageName"]]?t[a["messageName"]]:m[i]?m[i]:o);r["default"].prototype.$baseMessage(s,"error",!1,"vab-hey-message-error");const c=new Error(s);return Object(d["checkNeed"])()&&u["default"].dispatch("errorLog/addErrorLog",{err:c,url:e.url}).then(()=>{}),Promise.reject(c)},v=i.a.create({baseURL:a["baseURL"],timeout:a["requestTimeout"],headers:{"Content-Type":a["contentType"]}});v.interceptors.request.use(e=>{const t=u["default"].getters["user/token"];return t&&(e.headers["Authorization"]="Bearer "+t),e.data&&"application/x-www-form-urlencoded;charset=UTF-8"===e.headers["Content-Type"]&&(e.data=c.a.stringify(e.data)),a["debounce"].some(t=>e.url.includes(t))&&(h=r["default"].prototype.$baseLoading()),e},e=>Promise.reject(e)),v.interceptors.response.use(e=>g(e),e=>{const{response:t}=e;return void 0===t?(r["default"].prototype.$baseMessage("未可知错误,大部分是由于后端不支持跨域CORS或无效配置引起","error"),{}):g(t)}),t["default"]=v},b986:function(e,t,n){var r={"./vab.svg":"8cf1","./vuejs-fill.svg":"a03f"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="b986"},bc3a:function(e,t,n){e.exports=n("cee4")},c098:function(e,t,n){e.exports=n("d4af")},c0c3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-layout-horizontal",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[t("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[t("vab-header"),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}],class:{"vab-tabs-horizontal":e.showTabs}},[t("div",{staticClass:"vab-main"},[t("vab-tabs")],1)])],1),t("div",{staticClass:"vab-main main-padding"},[t("vab-app-main")],1)])},o=[],i={name:"VabLayoutHorizontal",props:{collapse:{type:Boolean,default(){return!1}},fixedHeader:{type:Boolean,default(){return!0}},showTabs:{type:Boolean,default(){return!0}},device:{type:String,default(){return"desktop"}}}},a=i,u=(n("ce4c"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"0fa1649a",null);t["default"]=s.exports},c0d2:function(e,t,n){},c24f:function(e,t,n){"use strict";n.r(t),n.d(t,"login",(function(){return a})),n.d(t,"socialLogin",(function(){return u})),n.d(t,"getUserInfo",(function(){return s})),n.d(t,"logout",(function(){return c})),n.d(t,"register",(function(){return l}));var r=n("b775"),o=n("7d92"),i=n("f121");async function a(e){return i["loginRSA"]&&(e=await Object(o["encryptedData"])(e)),Object(r["default"])({url:"/admin/auth/login",method:"post",data:e})}async function u(e){return i["loginRSA"]&&(e=await Object(o["encryptedData"])(e)),Object(r["default"])({url:"/socialLogin",method:"post",data:e})}function s(){return Object(r["default"])({url:"/admin/auth/me",method:"get"})}function c(){return Object(r["default"])({url:"/admin/auth/logout",method:"get"})}function l(e){return Object(r["default"])({url:"/register",method:"post",data:e})}},c345:function(e,t,n){"use strict";var r=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532"),o=n("2444");e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},c532:function(e,t,n){"use strict";var r=n("1d2b"),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function u(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===o.call(e)}function g(e){return"[object File]"===o.call(e)}function v(e){return"[object Blob]"===o.call(e)}function y(e){return"[object Function]"===o.call(e)}function b(e){return h(e)&&y(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],t);return e}function E(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:s,isBuffer:u,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:w,isStandardBrowserEnv:x,forEach:C,merge:S,extend:E,trim:_,stripBOM:k}},c6a4:function(e,t,n){"use strict";n.r(t);const r=()=>({admin:!1,role:[],ability:[]}),o={admin:e=>e.admin,role:e=>e.role,ability:e=>e.ability},i={setFull(e,t){e.admin=t},setRole(e,t){e.role=t},setAbility(e,t){e.ability=t}},a={setFull({commit:e},t){e("setFull",t)},setRole({commit:e},t){e("setRole",t)},setAbility({commit:e},t){e("setAbility",t)}};t["default"]={state:r,getters:o,mutations:i,actions:a}},c7dc:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-dropdown",{on:{command:e.handleCommand,"visible-change":e.handleVisibleChange},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("el-dropdown-menu",[t("el-dropdown-item",{attrs:{command:"logout"}},[t("vab-icon",{attrs:{icon:"logout-circle-r-line"}}),e._v(" 退出登录 ")],1)],1)]},proxy:!0}])},[t("span",{staticClass:"avatar-dropdown"},[t("el-avatar",{staticClass:"user-avatar",attrs:{src:e.avatar}}),t("div",{staticClass:"user-name"},[t("span",{staticClass:"hidden-xs-only"},[e._v(e._s(e.username))]),t("vab-icon",{staticClass:"vab-dropdown",class:{"vab-dropdown-active":e.active},attrs:{icon:"arrow-down-s-line"}})],1)],1)])},o=[],i=n("2f62"),a=n("9f2e"),u=n("2400"),s={name:"VabAvatar",data(){return{active:!1}},computed:{...Object(i["c"])({avatar:"user/avatar",username:"user/username"})},created(){},methods:{...Object(i["b"])({_logout:"user/logout",setAvatar:"user/setAvatar",setRole_id:"user/setRole_id"}),handleCommand(e){switch(e){case"logout":this.logout();break;case"personalCenter":this.personalCenter();break}},handleVisibleChange(e){this.active=e},async logout(){await this._logout(),await this.$router.push(Object(a["toLoginRoute"])())},personalCenter(){this.$router.push("/info/infoIndex")},async getUser(){this.listLoading=!0;const{data:e}=await Object(u["getUser"])();console.log(e,"user1"),this.setAvatar(e.headimg),this.setRole_id(e.role_id)}}},c=s,l=(n("b488"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"fadb8f56",null);t["default"]=f.exports},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c9d3:function(e,t,n){},cc33:function(e,t,n){"use strict";n.r(t),n.d(t,"getToken",(function(){return a})),n.d(t,"setToken",(function(){return u})),n.d(t,"removeToken",(function(){return s}));var r=n("f121"),o=n("a78e"),i=n.n(o);function a(){return r["storage"]?(console.log(r["storage"],"storage"),"localStorage"===r["storage"]?localStorage.getItem(r["tokenTableName"]):"sessionStorage"===r["storage"]?sessionStorage.getItem(r["tokenTableName"]):"cookie"===r["storage"]?i.a.get(r["tokenTableName"]):localStorage.getItem(r["tokenTableName"])):localStorage.getItem(r["tokenTableName"])}function u(e){return r["storage"]?"localStorage"===r["storage"]?localStorage.setItem(r["tokenTableName"],e):"sessionStorage"===r["storage"]?sessionStorage.setItem(r["tokenTableName"],e):"cookie"===r["storage"]?i.a.set(r["tokenTableName"],e):localStorage.setItem(r["tokenTableName"],e):localStorage.setItem(r["tokenTableName"],e)}function s(){return r["storage"]?"localStorage"===r["storage"]?localStorage.removeItem(r["tokenTableName"]):"sessionStorage"===r["storage"]?sessionStorage.clear():"cookie"===r["storage"]?i.a.remove(r["tokenTableName"]):localStorage.removeItem(r["tokenTableName"]):localStorage.removeItem(r["tokenTableName"])}},cd03:function(e,t,n){"use strict";n("c0d2")},ce4c:function(e,t,n){"use strict";n("5466")},cee4:function(e,t,n){"use strict";var r=n("c532"),o=n("1d2b"),i=n("0a06"),a=n("4a7b"),u=n("2444");function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(u);c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf05:function(e,t,n){e.exports=n.p+"static/img/logo.4ac358fd.png"},cfc2:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("5c96"),i=n("f121"),a=n("9224");(window.ActiveXObject||"ActiveXObject"in window)&&Object(o["MessageBox"])({title:"温馨提示",message:'检测到您当前浏览器使用的是IE内核,自2015年3月起,微软已宣布弃用IE,且不再对IE提供任何更新维护,请<a target="_blank" style="color:blue" href="https://www.microsoft.com/zh-cn/edge/">点击此处</a>访问微软官网更新浏览器,如果您使用的是双核浏览器,请您切换浏览器内核为极速模式',type:"warning",showClose:!0,showConfirmButton:!1,closeOnClickModal:!1,closeOnPressEscape:!1,closeOnHashChange:!1,dangerouslyUseHTMLString:!0}),console.log(` %c ${i["title"]} %c 基于admin-pro构建 `,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),(()=>{{const e="vab-icons",t=unescape(e.replace(/\\u/g,"%u"));a["a"][t]||(r["default"].prototype=null)}})()},d161:function(e,t,n){"use strict";n.r(t),n.d(t,"messageList",(function(){return o})),n.d(t,"getRead",(function(){return i}));var r=n("b775");function o(e){return Object(r["default"])({url:"/base/messages",method:"get",params:e})}function i(e){return Object(r["default"])({url:"/base/message",method:"get",params:e})}},d233:function(e,t,n){"use strict";var r=n("b313"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)},l=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},f=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},d=function(e,t,n,o,i){if(0===e.length)return e;var u=e;if("symbol"===typeof e?u=Symbol.prototype.toString.call(e):"string"!==typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",c=0;c<u.length;++c){var l=u.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?s+=u.charAt(c):l<128?s+=a[l]:l<2048?s+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?s+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&u.charCodeAt(c)),s+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return s},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=i[c];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:i,prop:c}),n.push(l))}return u(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:s,assign:l,combine:g,compact:h,decode:f,encode:d,isBuffer:m,isRegExp:p,maybeMap:v,merge:c}},d23d:function(e,t,n){},d307:function(e,t,n){var r={"./acl.js":"c6a4","./errorLog.js":"4d49","./routes.js":"66f7","./settings.js":"0781","./tabs.js":"9813","./user.js":"0f9a"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="d307"},d4a5:function(e,t){e.exports={title:"区镇网格管理",secondLineTitle:"",titleSeparator:" - ",titleReverse:!1,abbreviation:"教学成果奖评选系统",copyright:"Mead 751066209@qq.com",keepAliveMaxNum:0,routerMode:"hash",routesWhiteList:["/","/login","/register","/404","/403"],loadingText:"正在加载中...",tokenName:"token",tokenTableName:"mentor-token",storage:"sessionStorage",recordRoute:!1,logo:"vuejs-fill",messageDuration:3e3,errorLog:"development",loginInterception:!0,authentication:"all",supportVisit:!1,rolesControl:!0,uniqueOpened:!0,defaultOpeneds:[],debounce:["doEdit","doAdd","add","save"],openFirstMenu:!0}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),o=n("7b3e"),i=10,a=40,u=800;function s(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,o=n*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=a,o*=a):(r*=u,o*=u)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}s.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=s},d727:function(e,t,n){},d8e7:function(e,t,n){},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9a1:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showFullScreen?t("vab-icon",{attrs:{icon:e.isFullscreen?"fullscreen-exit-fill":"fullscreen-fill"},on:{click:e.click}}):e._e()},o=[],i=n("2f62"),a=n("93bf"),u=n.n(a),s={name:"VabFullScreen",data(){return{isFullscreen:!1}},computed:{...Object(i["c"])({theme:"settings/theme"})},mounted(){this.init()},beforeDestroy(){this.destroy()},methods:{click(){u.a.isEnabled||this.$baseMessage("开启全屏失败","error",!1,"vab-hey-message-error"),u.a.toggle(),this.$emit("refresh")},change(){this.isFullscreen=u.a.isFullscreen},init(){u.a.isEnabled&&u.a.on("change",this.change)},destroy(){u.a.isEnabled&&u.a.off("change",this.change)}}},c=s,l=n("2877"),f=Object(l["a"])(c,r,o,!1,null,null,null);t["default"]=f.exports},daa1:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return e.theme.showNotice?t("el-badge",{attrs:{value:e.badge}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover",width:"300"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("vab-icon",{attrs:{icon:"notification-line"}})]},proxy:!0}],null,!1,3189420217)},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"通知",name:"notice"}},[t("div",{staticClass:"notice-list"},[t("el-scrollbar",[t("ul",e._l(e.list,(function(n,r){return t("li",{key:r},[t("div",[e._v(e._s(n.message))]),t("div",{staticClass:"time"},[t("div",[e._v("2020-09-06 12:30")]),t("div",{staticClass:"biaoji",on:{click:function(t){return e.handleRead(n.id)}}},[e._v(" 标记已读 ")])])])})),0),0==e.list.length?t("el-empty",{attrs:{description:"暂无消息","image-size":60}}):e._e()],1)],1)])],1)],1)],1):e._e()},o=[],i=n("2f62"),a=n("d161"),u={name:"VabNotice",data(){return{activeName:"notice",badge:null,list:[]}},computed:{...Object(i["c"])({theme:"settings/theme"})},created(){this.$nextTick(()=>{this.theme.showNotice&&this.fetchData()})},methods:{handleClick(){this.fetchData()},async handleRead(e){await Object(a["getRead"])({id:e}),this.$baseMessage("标记成功","success",!1,"vab-hey-message-success"),await this.fetchData()},handleClearNotice(){this.badge=null,this.list=[],this.$baseMessage("清空消息成功","success",!1,"vab-hey-message-success")},async fetchData(){const{data:e}=await Object(a["messageList"])(),{list:t}=e;this.list=t,this.badge=0==t.length?"":t.length}}},s=u,c=(n("99c3"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"4ae241b8",null);t["default"]=l.exports},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s<a;s++)if(o[s]!==i[s]){u=s;break}var c=[];for(s=u;s<o.length;s++)c.push("..");return c=c.concat(i.slice(u)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===r&&(o=!1,r=a+1),46===u?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,u){"undefined"===typeof a[u]?a[u]=n(r,o):e(r)?a[u]=i(t[u],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(u){e(r[u])&&t[u]?a[u]=i(t[u],r[u],o):a[u]=n(r[u],o)})),a}function i(e,t,i){var a=Array.isArray(t),u=i||{arrayMerge:r},s=u.arrayMerge||r;return a?Array.isArray(e)?s(e,t,i):n(t,i):o(e,t,i)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return i(e,n,t)}))},i}))})),i=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},u=i.svg,s=i.xlink,c={};c[u.name]=u.uri,c[s.name]=s.uri;var l=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),r=a(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return f}))}).call(this,n("c8ba"))},e3bf:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("5c96"),i=n.n(o);n("5155"),n("e05f");r["default"].use(i.a,{size:"small"})},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e503:function(e,t,n){},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";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},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},o=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},i=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},u=a((function(e,t){return e===t})),s=u,c=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0}))},l=function(e,t){return i(c(e),(function(e){return o(e,t)}))},f=function(e){return a((function(t,n){var r=Object.keys(t),o=Object.keys(n);if(!l(s).eq(r,o))return!1;for(var i=r.length,a=0;a<i;a++){var u=r[a];if(!e.eq(t[u],n[u]))return!1}return!0}))},d=a((function(e,t){if(e===t)return!0;var o=n(e),i=n(t);return o===i&&(r(o)?e===t:"array"===o?c(d).eq(e,t):"object"===o&&f(d).eq(e,t))})),h=function(e){var t=typeof e;return null===e?"null":"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},p=function(e){return function(t){return h(t)===e}},m=function(e){return function(t){return typeof t===e}},g=function(e){return function(t){return e===t}},v=p("string"),y=p("object"),b=p("array"),w=g(null),_=m("boolean"),x=g(void 0),C=function(e){return null===e||void 0===e},S=function(e){return!C(e)},E=m("function"),k=m("number"),T=function(){},A=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},O=function(e,t){return function(n){return e(t(n))}},R=function(e){return function(){return e}},N=function(e){return e},D=function(e,t){return e===t};function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var P=function(e){return function(t){return!e(t)}},j=function(e){return function(){throw new Error(e)}},L=function(e){return e()},M=function(e){e()},I=R(!1),F=R(!0),V=function(){return U},U=function(){var e=function(e){return e()},t=N,n={fold:function(e,t){return e()},isSome:I,isNone:F,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:R(null),getOrUndefined:R(void 0),or:t,orThunk:e,map:V,each:T,bind:V,exists:I,forall:F,filter:function(){return V()},toArray:function(){return[]},toString:R("none()")};return n}(),q=function(e){var t=R(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:F,isNone:I,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return q(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:U},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},z=function(e){return null===e||void 0===e?U:q(e)},H={some:q,none:V,from:z},$=Array.prototype.slice,W=Array.prototype.indexOf,K=Array.prototype.push,Y=function(e,t){return W.call(e,t)},G=function(e,t){var n=Y(e,t);return-1===n?H.none():H.some(n)},Q=function(e,t){return Y(e,t)>-1},X=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},J=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)}return r},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],u=t(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){return Z(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return H.some(i);if(n(i,r))break}return H.none()},ae=function(e,t){return ie(e,t,I)},ue=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return H.some(n)}return H.none()},se=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!b(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);K.apply(t,e[n])}return t},ce=function(e,t){return se(J(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},fe=function(e){var t=$.call(e,0);return t.reverse(),t},de=function(e,t){return ne(e,(function(e){return!Q(t,e)}))},he=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},pe=function(e,t){var n=$.call(e,0);return n.sort(t),n},me=function(e,t){return t>=0&&t<e.length?H.some(e[t]):H.none()},ge=function(e){return me(e,0)},ve=function(e){return me(e,e.length-1)},ye=E(Array.from)?Array.from:function(e){return $.call(e)},be=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return H.none()},we=Object.keys,_e=Object.hasOwnProperty,xe=function(e,t){for(var n=we(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Ce=function(e,t){return Se(e,(function(e,n){return{k:n,v:t(e,n)}}))},Se=function(e,t){var n={};return xe(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},Ee=function(e){return function(t,n){e[n]=t}},ke=function(e,t,n,r){var o={};return xe(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Te=function(e,t){var n={},r={};return ke(e,t,Ee(n),Ee(r)),{t:n,f:r}},Ae=function(e,t){var n={};return ke(e,t,Ee(n),T),n},Oe=function(e,t){var n=[];return xe(e,(function(e,r){n.push(t(e,r))})),n},Re=function(e){return Oe(e,N)},Ne=function(e,t){return De(e,t)?H.from(e[t]):H.none()},De=function(e,t){return _e.call(e,t)},Be=function(e,t){return De(e,t)&&void 0!==e[t]&&null!==e[t]},Pe=function(e,t,n){return void 0===n&&(n=d),f(n).eq(e,t)},je=Array.isArray,Le=function(e){if(je(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Me=function(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(De(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Ie=function(e,t){var n=[];return Me(e,(function(r,o){n.push(t(r,o,e))})),n},Fe=function(e,t){var n=[];return Me(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},Ve=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Ue=function(e,t,n,r){for(var o=x(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o},qe=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},ze=function(e){return e[e.length-1]},He=function(){return He=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},He.apply(this,arguments)};function $e(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}function We(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Ke=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},Ye=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),u=a||r("(pointer:coarse)"),s=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!s,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!s&&!l;return{isiPad:R(o),isiPhone:R(i),isTablet:R(s),isPhone:R(c),isTouch:R(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:R(l),isDesktop:R(f)}},Ge=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Qe=function(e,t){var n=Ge(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ze(r(1),r(2))},Xe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Je():Qe(e,n)},Je=function(){return Ze(0,0)},Ze=function(e,t){return{major:e,minor:t}},et={nu:Ze,detect:Xe,unknown:Je},tt=function(e,t){return be(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ut=function(e,t){return ct(e,t)?it(e,t.length):e},st=function(e,t){return-1!==e.indexOf(t)},ct=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},ft=lt(/^\s+|\s+$/g),dt=lt(/^\s+/g),ht=lt(/\s+$/g),pt=function(e){return e.length>0},mt=function(e){return!pt(e)},gt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return st(t,e)}},yt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return st(e,"edge/")&&st(e,"chrome")&&st(e,"safari")&&st(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gt],search:function(e){return st(e,"chrome")&&!st(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return st(e,"msie")||st(e,"trident")}},{name:"Opera",versionRegexes:[gt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[gt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(st(e,"safari")||st(e,"mobile/"))&&st(e,"applewebkit")}}],bt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return st(e,"iphone")||st(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],wt={browsers:R(yt),oses:R(bt)},_t="Edge",xt="Chrome",Ct="IE",St="Opera",Et="Firefox",kt="Safari",Tt=function(){return At({current:void 0,version:et.unknown()})},At=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(_t),isChrome:r(xt),isIE:r(Ct),isOpera:r(St),isFirefox:r(Et),isSafari:r(kt)}},Ot={unknown:Tt,nu:At,edge:R(_t),chrome:R(xt),ie:R(Ct),opera:R(St),firefox:R(Et),safari:R(kt)},Rt="Windows",Nt="iOS",Dt="Android",Bt="Linux",Pt="OSX",jt="Solaris",Lt="FreeBSD",Mt="ChromeOS",It=function(){return Ft({current:void 0,version:et.unknown()})},Ft=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Rt),isiOS:r(Nt),isAndroid:r(Dt),isOSX:r(Pt),isLinux:r(Bt),isSolaris:r(jt),isFreeBSD:r(Lt),isChromeOS:r(Mt)}},Vt={unknown:It,nu:Ft,windows:R(Rt),ios:R(Nt),android:R(Dt),linux:R(Bt),osx:R(Pt),solaris:R(jt),freebsd:R(Lt),chromeos:R(Mt)},Ut=function(e,t,n){var r=wt.browsers(),o=wt.oses(),i=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Ot.unknown,Ot.nu),a=ot(o,e).fold(Vt.unknown,Vt.nu),u=Ye(a,i,e,n);return{browser:i,os:a,deviceType:u}},qt={detect:Ut},zt=function(e){return window.matchMedia(e).matches},Ht=Ke((function(){return qt.detect(navigator.userAgent,H.from(navigator.userAgentData),zt)})),$t=function(){return Ht()},Wt=navigator.userAgent,Kt=$t(),Yt=Kt.browser,Gt=Kt.os,Qt=Kt.deviceType,Xt=/WebKit/.test(Wt)&&!Yt.isEdge(),Jt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Zt=-1!==Wt.indexOf("Windows Phone"),en={opera:Yt.isOpera(),webkit:Xt,ie:!(!Yt.isIE()&&!Yt.isEdge())&&Yt.version.major,gecko:Yt.isFirefox(),mac:Gt.isOSX()||Gt.isiOS(),iOS:Qt.isiPad()||Qt.isiPhone(),android:Gt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Yt.isIE()?document.documentMode||7:10,fileApi:Jt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Yt.isIE(),desktop:Qt.isDesktop(),windowsPhone:Zt,browser:{current:Yt.current,version:Yt.version,isChrome:Yt.isChrome,isEdge:Yt.isEdge,isFirefox:Yt.isFirefox,isIE:Yt.isIE,isOpera:Yt.isOpera,isSafari:Yt.isSafari},os:{current:Gt.current,version:Gt.version,isAndroid:Gt.isAndroid,isChromeOS:Gt.isChromeOS,isFreeBSD:Gt.isFreeBSD,isiOS:Gt.isiOS,isLinux:Gt.isLinux,isOSX:Gt.isOSX,isSolaris:Gt.isSolaris,isWindows:Gt.isWindows},deviceType:{isDesktop:Qt.isDesktop,isiPad:Qt.isiPad,isiPhone:Qt.isiPhone,isPhone:Qt.isPhone,isTablet:Qt.isTablet,isTouch:Qt.isTouch,isWebView:Qt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!je(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=De,un=function(e,t,n){var r,o,i,a=this,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!c[s]){if("static"===e[2])return c[s]=t,void(this.onCreate&&this.onCreate(e[2],e[3],c[s]));t[s]||(t[s]=function(){},u=1),c[s]=t[s],a.extend(c[s].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=c[s],c[s]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},c[s].prototype[s]=c[s],a.each(r,(function(e,t){c[s].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?c[s].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==s&&(c[s].prototype[t]=e)}))),a.each(t.static,(function(e,t){c[s][t]=e}))}},sn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];for(var i in o)if(De(o,i)){var a=o[i];void 0!==a&&(e[i]=a)}}return e},cn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Me(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;cn(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},fn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},dn=function(e,t){return!e||rn(e,"array")?e:Ie(e.split(t||","),nn)},hn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},pn={trim:nn,isArray:je,is:rn,toArray:Le,makeMap:on,each:Me,map:Ie,grep:Fe,inArray:Ve,hasOwn:an,extend:sn,create:un,walk:cn,createNS:ln,resolve:fn,explode:dn,_addCacheSuffix:hn},mn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return yn(r.childNodes[0])},gn=function(e,t){var n=t||document,r=n.createElement(e);return yn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return yn(r)},yn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},bn=function(e,t,n){return H.from(e.dom.elementFromPoint(t,n)).map(yn)},wn={fromHtml:mn,fromTag:gn,fromText:vn,fromDom:yn,fromPoint:bn},_n=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},xn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Cn=function(e,t){return xn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Sn=8,En=9,kn=11,Tn=1,An=3,On=function(e,t){var n=e.dom;if(n.nodeType!==Tn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Rn=function(e){return e.nodeType!==Tn&&e.nodeType!==En&&e.nodeType!==kn||0===e.childElementCount},Nn=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?[]:J(n.querySelectorAll(e),wn.fromDom)},Dn=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?H.none():H.from(n.querySelector(e)).map(wn.fromDom)},Bn=function(e,t){return e.dom===t.dom},Pn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},jn=function(e,t){return Cn(e.dom,t.dom)},Ln=function(e,t){return $t().browser.isIE()?jn(e,t):Pn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Mn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},In=function(e){return e.dom.nodeType},Fn=function(e){return function(t){return In(t)===e}},Vn=function(e){return In(e)===Sn||"#comment"===Mn(e)},Un=Fn(Tn),qn=Fn(An),zn=Fn(En),Hn=Fn(kn),$n=function(e){return function(t){return Un(t)&&Mn(t)===e}},Wn=function(e){return wn.fromDom(e.dom.ownerDocument)},Kn=function(e){return zn(e)?e:Wn(e)},Yn=function(e){return wn.fromDom(Kn(e).dom.documentElement)},Gn=function(e){return wn.fromDom(Kn(e).dom.defaultView)},Qn=function(e){return H.from(e.dom.parentNode).map(wn.fromDom)},Xn=function(e,t){var n=E(t)?t:I,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=wn.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},Jn=function(e){var t=function(t){return ne(t,(function(t){return!Bn(e,t)}))};return Qn(e).map(rr).map(t).getOr([])},Zn=function(e){return H.from(e.dom.previousSibling).map(wn.fromDom)},er=function(e){return H.from(e.dom.nextSibling).map(wn.fromDom)},tr=function(e){return fe(_n(e,Zn))},nr=function(e){return _n(e,er)},rr=function(e){return J(e.dom.childNodes,wn.fromDom)},or=function(e,t){var n=e.dom.childNodes;return H.from(n[t]).map(wn.fromDom)},ir=function(e){return or(e,0)},ar=function(e){return or(e,e.dom.childNodes.length-1)},ur=function(e){return e.dom.childNodes.length},sr=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return wn.fromDom(t)},cr=function(e){return Hn(e)&&S(e.dom.host)},lr=E(Element.prototype.attachShadow)&&E(Node.prototype.getRootNode),fr=R(lr),dr=lr?function(e){return wn.fromDom(e.dom.getRootNode())}:Kn,hr=function(e){return cr(e)?e:sr(Kn(e))},pr=function(e){var t=dr(e);return cr(t)?H.some(t):H.none()},mr=function(e){return wn.fromDom(e.dom.host)},gr=function(e){if(fr()&&S(e.target)){var t=wn.fromDom(e.target);if(Un(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ge(n)}}return H.from(e.target)},vr=function(e){return S(e.dom.shadowRoot)},yr=function(e,t){var n=Qn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},br=function(e,t){var n=er(e);n.fold((function(){var n=Qn(e);n.each((function(e){_r(e,t)}))}),(function(e){yr(e,t)}))},wr=function(e,t){var n=ir(e);n.fold((function(){_r(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},_r=function(e,t){e.dom.appendChild(t.dom)},xr=function(e,t){yr(e,t),_r(t,e)},Cr=function(e,t){Z(t,(function(t){yr(e,t)}))},Sr=function(e,t){Z(t,(function(t){_r(e,t)}))},Er=function(e){e.dom.textContent="",Z(rr(e),(function(e){kr(e)}))},kr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Tr=function(e){var t=rr(e);t.length>0&&Cr(e,t),kr(e)},Ar=function(e){var t=qn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return pr(wn.fromDom(t)).fold((function(){return n.body.contains(t)}),O(Ar,mr))},Or=function(e,t){var n=function(n,r){return Or(e+n,t+r)};return{left:e,top:t,translate:n}},Rr=Or,Nr=function(e){var t=e.getBoundingClientRect();return Rr(t.left,t.top)},Dr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Br=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Rr(n.offsetLeft,n.offsetTop);var i=Dr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Dr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=Dr(o.clientTop,n.clientTop),s=Dr(o.clientLeft,n.clientLeft);return Pr(e).translate(a-s,i-u)},Pr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Rr(r.offsetLeft,r.offsetTop):Ar(e)?Nr(t):Rr(0,0)},jr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Rr(n,r)},Lr=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(e,t)},Mr=function(e,t){var n=$t().browser.isSafari();n&&E(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Ir=function(e){var t=void 0===e?window:e;return $t().browser.isFirefox()?H.none():H.from(t["visualViewport"])},Fr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Vr=function(e){var t=void 0===e?window:e,n=t.document,r=jr(wn.fromDom(n));return Ir(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Fr(r.left,r.top,n,o)}),(function(e){return Fr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Ur=function(e){return function(t){return!!t&&t.nodeType===e}},qr=function(e){return!!e&&!Object.getPrototypeOf(e)},zr=Ur(1),Hr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return Q(t,n)}return!1}},$r=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(zr(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null),i=o?o.getPropertyValue(e):null;if(i===n[r])return!0}return!1}},Wr=function(e){return function(t){return zr(t)&&t.hasAttribute(e)}},Kr=function(e,t){return function(n){return zr(n)&&n.getAttribute(e)===t}},Yr=function(e){return zr(e)&&e.hasAttribute("data-mce-bogus")},Gr=function(e){return zr(e)&&"all"===e.getAttribute("data-mce-bogus")},Qr=function(e){return zr(e)&&"TABLE"===e.tagName},Xr=function(e){return function(t){if(zr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Jr=Hr(["textarea","input"]),Zr=Ur(3),eo=Ur(8),to=Ur(9),no=Ur(11),ro=Hr(["br"]),oo=Hr(["img"]),io=Xr("true"),ao=Xr("false"),uo=Hr(["td","th"]),so=Hr(["video","audio","object","embed"]),co=function(e,t,n){return void 0===n&&(n=D),e.exists((function(e){return n(e,t)}))},lo=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},fo=function(e,t,n){return e.isSome()&&t.isSome()?H.some(n(e.getOrDie(),t.getOrDie())):H.none()},ho=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?H.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):H.none()},po=function(e,t){return e?H.some(t):H.none()},mo=function(e){return void 0!==e.style&&E(e.style.getPropertyValue)},go=function(e,t,n){if(!(v(n)||_(n)||k(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},vo=function(e,t,n){go(e.dom,t,n)},yo=function(e,t){var n=e.dom;xe(t,(function(e,t){go(n,t,e)}))},bo=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},wo=function(e,t){return H.from(bo(e,t))},_o=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},xo=function(e,t){e.dom.removeAttribute(t)},Co=function(e){return oe(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},So=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);mo(e)&&e.style.setProperty(t,n)},Eo=function(e,t){var n=e.dom;xe(t,(function(e,t){So(n,t,e)}))},ko=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Ar(e)?o:To(n,t)},To=function(e,t){return mo(e)?e.style.getPropertyValue(t):""},Ao=function(e,t){var n=e.dom,r=To(n,t);return H.from(r).filter((function(e){return e.length>0}))},Oo=function(e){var t={},n=e.dom;if(mo(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},Ro=function(e){return e.dom.offsetWidth},No=$t().browser,Do=function(e){return ae(e,Un)},Bo=function(e){return No.isFirefox()&&"table"===Mn(e)?Do(rr(e)).filter((function(e){return"caption"===Mn(e)})).bind((function(e){return Do(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0},Po=function(e,t){return e.children&&Q(e.children,t)},jo=function(e,t,n){var r=0,o=0,i=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===ko(wn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(i.documentElement.scrollLeft||e.scrollLeft)-i.documentElement.clientLeft,o=a.top+(i.documentElement.scrollTop||e.scrollTop)-i.documentElement.clientTop,{x:r,y:o}}var u=t;while(u&&u!==n&&u.nodeType&&!Po(u,n)){var s=u;r+=s.offsetLeft||0,o+=s.offsetTop||0,u=s.offsetParent}u=t.parentNode;while(u&&u!==n&&u.nodeType&&!Po(u,n))r-=u.scrollLeft||0,o-=u.scrollTop||0,u=u.parentNode;o+=Bo(wn.fromDom(t))}return{x:r,y:o}},Lo={},Mo={exports:Lo};(function(e,n,r,o){(function(t,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof e&&e.amd?e(o):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=o())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(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=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void s(t.promise,o)}u(t.promise,r)}else(1===e._state?u:s)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){s(e,r)}}function s(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(r){if(n)return;n=!0,s(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(s){n(s)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},t.exports?t.exports=i:e.Promise||(e.Promise=i)})(e)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,Lo,Mo);var Io=Mo.exports.boltExport,Fo=function(e){var t=H.none(),n=[],r=function(e){return Fo((function(t){o((function(n){t(e(n))}))}))},o=function(e){a()?s(e):n.push(e)},i=function(e){a()||(t=H.some(e),u(n),n=[])},a=function(){return t.isSome()},u=function(e){Z(e,s)},s=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(i),{get:o,map:r,isReady:a}},Vo=function(e){return Fo((function(t){t(e)}))},Uo={nu:Fo,pure:Vo},qo=function(e){setTimeout((function(){throw e}),0)},zo=function(e){var t=function(t){e().then(t,qo)},n=function(t){return zo((function(){return e().then(t)}))},r=function(t){return zo((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return zo((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return Uo.nu(t)},a=function(){var t=null;return zo((function(){return null===t&&(t=e()),t}))},u=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:t}},Ho=function(e){return zo((function(){return new Io(e)}))},$o=function(e){return zo((function(){return Io.resolve(e)}))},Wo={nu:Ho,pure:$o},Ko=function(e,t){return t((function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):Z(e,(function(e,t){e.get(o(t))}))}))},Yo=function(e){return Ko(e,Wo.nu)},Go=function(e){var t=function(t){return Go(e)},n=function(t){return Go(e)},r=function(t){return Go(t(e))},o=function(t){return Go(e)},i=function(t){t(e)},a=function(t){return t(e)},u=function(t,n){return n(e)},s=function(t){return t(e)},c=function(t){return t(e)},l=function(){return H.some(e)};return{isValue:F,isError:I,getOr:R(e),getOrThunk:R(e),getOrDie:R(e),or:t,orThunk:n,fold:u,map:r,mapError:o,each:i,bind:a,exists:s,forall:c,toOptional:l}},Qo=function(e){var t=function(e){return e()},n=function(){return j(String(e))()},r=N,o=function(e){return e()},i=function(t){return Qo(e)},a=function(t){return Qo(t(e))},u=function(t){return Qo(e)},s=function(t,n){return t(e)};return{isValue:I,isError:F,getOr:N,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:s,map:i,mapError:a,each:T,bind:u,exists:I,forall:F,toOptional:H.none}},Xo=function(e,t){return e.fold((function(){return Qo(t)}),Go)},Jo={value:Go,error:Qo,fromOption:Xo},Zo=function(e){if(!b(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Z(e,(function(r,o){var i=we(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!b(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);var s=function(e){var r=we(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=le(t,(function(e){return Q(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:s,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},ei={generate:Zo};ei.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ti=function(e){return e.fold(N,N)};function ni(e,t,n,r,o){return e(n,r)?H.some(n):E(o)&&o(n)?H.none():t(n,r,o)}var ri,oi,ii,ai,ui,si,ci,li,fi,di,hi,pi,mi,gi,vi,yi,bi,wi,_i,xi=function(e,t,n){var r=e.dom,o=E(n)?n:I;while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r);if(t(i))return H.some(i);if(o(i))break}return H.none()},Ci=function(e,t,n){var r=function(e,t){return t(e)};return ni(r,xi,e,t,n)},Si=function(e,t){var n=e.dom;return n.parentNode?Ei(wn.fromDom(n.parentNode),(function(n){return!Bn(e,n)&&t(n)})):H.none()},Ei=function(e,t){var n=function(e){return t(wn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(wn.fromDom)},ki=function(e,t,n){return xi(e,(function(e){return On(e,t)}),n)},Ti=function(e,t){return Dn(t,e)},Ai=function(e,t,n){var r=function(e,t){return On(e,t)};return ni(r,ki,e,t,n)},Oi=window.Promise?window.Promise:Io,Ri=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=function(e){window.setTimeout(e,0)},i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];n||(n=o),n(e,t)},Ni=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Di=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Bi=function(e){return clearTimeout(e)},Pi=function(e){return clearInterval(e)},ji=function(e,t){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=Ni((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Li={requestAnimationFrame:function(e,t){ri?ri.then(e):ri=new Oi((function(e){t||(t=document.body),Ri(e,t)})).then(e)},setTimeout:Ni,setInterval:Di,setEditorTimeout:function(e,t,n){return Ni((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Di((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:ji,throttle:ji,clearInterval:Pi,clearTimeout:Bi},Mi=function(e,t){void 0===t&&(t={});var n=0,r={},o=wn.fromDom(e),i=Kn(o),a=t.maxLoadTime||5e3,u=function(e){t.referrerPolicy=e},s=function(e){_r(hr(o),e)},c=function(e){var t=hr(o);Ti(t,"#"+e).each(kr)},l=function(e){return Ne(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,o,u){var c,f=pn._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();d.status=t,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},p=function(){return h(d.passed,2)},m=function(){return h(d.failed,3)},g=function(e,t){e()||(Date.now()-b<a?Li.setTimeout(t):m())},v=function(){g((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],o=r.ownerNode;if(o&&o.id===c.id)return p(),!0}return!1}),v)};if(o&&d.passed.push(o),u&&d.failed.push(u),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var y=wn.fromTag("link",i.dom);yo(y,{rel:"stylesheet",type:"text/css",id:d.id});var b=Date.now();t.contentCssCors&&vo(y,"crossOrigin","anonymous"),t.referrerPolicy&&vo(y,"referrerpolicy",t.referrerPolicy),c=y.dom,c.onload=v,c.onerror=m,s(y),vo(y,"href",f)}else m();else p()},d=function(e){return Wo.nu((function(t){f(e,A(t,R(Jo.value(e))),A(t,R(Jo.error(e))))}))},h=function(e,t,n){Yo(J(e,d)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(ti)):t(r.pass.map(ti))}))},p=function(e){var t=pn._addCacheSuffix(e);Ne(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],c(e.id))}))},m=function(e){Z(e,(function(e){p(e)}))};return{load:f,loadAll:h,unload:p,unloadAll:m,_setReferrerPolicy:u}},Ii=function(){var e=new WeakMap,t=function(t,n){var r=dr(t),o=r.dom;return H.from(e.get(o)).getOrThunk((function(){var t=Mi(o,n);return e.set(o,t),t}))};return{forElement:t}},Fi=Ii(),Vi=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],o)return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)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&&i!==this.rootNode)return i}},e}(),Ui=["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"],qi=["td","th"],zi=["thead","tbody","tfoot"],Hi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],$i=["h1","h2","h3","h4","h5","h6"],Wi=["li","dd","dt"],Ki=["ul","ol","dl"],Yi=["pre","script","textarea","style"],Gi=function(e){var t;return function(n){return t=t||he(e,F),De(t,Mn(n))}},Qi=Gi($i),Xi=Gi(Ui),Ji=function(e){return"table"===Mn(e)},Zi=function(e){return Un(e)&&!Xi(e)},ea=function(e){return Un(e)&&"br"===Mn(e)},ta=Gi(Hi),na=Gi(Ki),ra=Gi(Wi),oa=Gi(zi),ia=Gi(qi),aa=Gi(Yi),ua=function(e,t,n){return ki(e,t,n).isSome()},sa="\ufeff",ca=" ",la=function(e){return e===sa},fa=function(e){return e.replace(/\uFEFF/g,"")},da=sa,ha=la,pa=fa,ma=zr,ga=Zr,va=function(e){return ga(e)&&(e=e.parentNode),ma(e)&&e.hasAttribute("data-mce-caret")},ya=function(e){return ga(e)&&ha(e.data)},ba=function(e){return va(e)||ya(e)},wa=function(e){return e.firstChild!==e.lastChild||!ro(e.firstChild)},_a=function(e,t){var n=e.ownerDocument,r=n.createTextNode(da),o=e.parentNode;if(t){i=e.previousSibling;if(ga(i)){if(ba(i))return i;if(Ta(i))return i.splitText(i.data.length-1)}o.insertBefore(r,e)}else{var i=e.nextSibling;if(ga(i)){if(ba(i))return i;if(ka(i))return i.splitText(1),i}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r},xa=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset())===da||e.isAtStart()&&ya(t.previousSibling))},Ca=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset()-1)===da||e.isAtEnd()&&ya(t.nextSibling))},Sa=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Ea=function(e,t,n){var r=t.ownerDocument,o=r.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(Sa());var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},ka=function(e){return ga(e)&&e.data[0]===da},Ta=function(e){return ga(e)&&e.data[e.data.length-1]===da},Aa=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Yr(n)&&n.parentNode.removeChild(n)},Oa=function(e){return e&&e.hasAttribute("data-mce-caret")?(Aa(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Ra=function(e){return va(e.startContainer)},Na=io,Da=ao,Ba=ro,Pa=Zr,ja=Hr(["script","style","textarea"]),La=Hr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ma=Hr(["table"]),Ia=ba,Fa=function(e){return!Ia(e)&&(Pa(e)?!ja(e.parentNode):La(e)||Ba(e)||Ma(e)||Ua(e))},Va=function(e){return zr(e)&&"true"===e.getAttribute("unselectable")},Ua=function(e){return!1===Va(e)&&Da(e)},qa=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Ua(e))return!1;if(Na(e))return!0}return!0},za=function(e){return!!Ua(e)&&!0!==oe(ye(e.getElementsByTagName("*")),(function(e,t){return e||Na(t)}),!1)},Ha=function(e){return La(e)||za(e)},$a=function(e,t){return Fa(e)&&qa(e,t)},Wa=/^[ \t\r\n]*$/,Ka=function(e){return Wa.test(e)},Ya=function(e,t){var n=wn.fromDom(t),r=wn.fromDom(e);return ua(r,"pre,code",B(Bn,n))},Ga=function(e,t){return Zr(e)&&Ka(e.data)&&!1===Ya(e,t)},Qa=function(e){return zr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Xa=function(e,t){return Fa(e)&&!1===Ga(e,t)||Qa(e)||Ja(e)},Ja=Wr("data-mce-bookmark"),Za=Wr("data-mce-bogus"),eu=Kr("data-mce-bogus","all"),tu=function(e,t){var n=0;if(Xa(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new Vi(r,e);do{if(t){if(eu(r)){r=o.next(!0);continue}if(Za(r)){r=o.next();continue}}if(ro(r))n++,r=o.next();else{if(Xa(r,e))return!1;r=o.next()}}while(r);return n<=1},nu=function(e,t){return void 0===t&&(t=!0),tu(e.dom,t)},ru=function(e){return"span"===e.nodeName.toLowerCase()},ou=function(e,t){return S(e)&&(Xa(e,t)||Zi(wn.fromDom(e)))},iu=function(e,t){var n=new Vi(e,t).prev(!1),r=new Vi(e,t).next(!1),o=x(n)||ou(n,t),i=x(r)||ou(r,t);return o&&i},au=function(e){return ru(e)&&"bookmark"===e.getAttribute("data-mce-type")},uu=function(e,t){return Zr(e)&&e.data.length>0&&iu(e,t)},su=function(e){return!!zr(e)&&e.childNodes.length>0},cu=function(e){return no(e)||to(e)},lu=function(e,t,n){var r=n||t;if(zr(t)&&au(t))return t;for(var o=t.childNodes,i=o.length-1;i>=0;i--)lu(e,o[i],r);if(zr(t)){var a=t.childNodes;1===a.length&&au(a[0])&&t.parentNode.insertBefore(a[0],t)}return cu(t)||Xa(t,r)||su(t)||uu(t,r)||e.remove(t),t},fu=pn.makeMap,du=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hu=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pu=/[<>&\"\']/g,mu=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,gu={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vu={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},yu={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},bu=function(e){var t=wn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},wu=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)),vu[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}},_u=wu("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),xu=function(e,t){return e.replace(t?du:hu,(function(e){return vu[e]||e}))},Cu=function(e){return(""+e).replace(pu,(function(e){return vu[e]||e}))},Su=function(e,t){return e.replace(t?du:hu,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vu[e]||"&#"+e.charCodeAt(0)+";"}))},Eu=function(e,t,n){return n=n||_u,e.replace(t?du:hu,(function(e){return vu[e]||n[e]||e}))},ku=function(e,t){var n=wu(t)||_u,r=function(e,t){return e.replace(t?du:hu,(function(e){return void 0!==vu[e]?vu[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},o=function(e,t){return Eu(e,t,n)},i=fu(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:Eu:i.numeric?Su:xu},Tu=function(e){return e.replace(mu,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):gu[t]||String.fromCharCode(t)):yu[e]||_u[e]||bu(e)}))},Au={encodeRaw:xu,encodeAllRaw:Cu,encodeNumeric:Su,encodeNamed:Eu,getEncodeFunc:ku,decode:Tu},Ou={},Ru={},Nu=pn.makeMap,Du=pn.each,Bu=pn.extend,Pu=pn.explode,ju=pn.inArray,Lu=function(e,t){return e=pn.trim(e),e?e.split(t||" "):[]},Mu=function(e,t){var n=Nu(e," ",Nu(e.toUpperCase()," "));return Bu(n,t)},Iu=function(e){return Mu("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Fu=function(e){var t,n,r,o,i,a,u={},s=function(e,n,r){var o,i,a,s=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=Lu(r));var c=Lu(e);o=c.length;while(o--)i=Lu([t,n].join(" ")),a={attributes:s(i),attributesOrder:i,children:s(r,Ru)},u[c[o]]=a},c=function(e,t){var n,r,o,i,a=Lu(e);n=a.length;var s=Lu(t);while(n--)for(r=u[a[n]],o=0,i=s.length;o<i;o++)r.attributes[s[o]]={},r.attributesOrder.push(s[o])};return Ou[e]?Ou[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="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&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Du(Lu(a),(function(e){s(e,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),Du(Lu(i),(function(e){s(e,"",o)}))),o=o||[n,r].join(" "),s("html","manifest","head body"),s("head","","base command link meta noscript script style title"),s("title hr noscript br"),s("base","href target"),s("link","href rel media hreflang type sizes hreflang"),s("meta","name http-equiv content charset"),s("style","media type scoped"),s("script","src async defer type charset"),s("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),s("address dt dd div caption","",o),s("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","",r),s("blockquote","cite",o),s("ol","reversed start type","li"),s("ul","","li"),s("li","value",o),s("dl","","dt dd"),s("a","href target rel media hreflang type",r),s("q","cite",r),s("ins del","cite datetime",o),s("img","src sizes srcset alt usemap ismap width height"),s("iframe","src name width height",o),s("embed","src type width height"),s("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),s("param","name value"),s("map","name",[o,"area"].join(" ")),s("area","alt coords shape href target rel media hreflang type"),s("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),s("colgroup","span","col"),s("col","span"),s("tbody thead tfoot","","tr"),s("tr","","td th"),s("td","colspan rowspan headers",o),s("th","colspan rowspan headers scope abbr",o),s("form","accept-charset action autocomplete enctype method name novalidate target",o),s("fieldset","disabled form name",[o,"legend"].join(" ")),s("label","form for",r),s("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"),s("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),s("select","disabled form multiple name required size","option optgroup"),s("optgroup","disabled label","option"),s("option","disabled label selected value"),s("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),s("menu","type label",[o,"li"].join(" ")),s("noscript","",o),"html4"!==e&&(s("wbr"),s("ruby","",[r,"rt rp"].join(" ")),s("figcaption","",o),s("mark rt rp summary bdi","",r),s("canvas","width height",o),s("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),s("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),s("picture","","img source"),s("source","src srcset type media sizes"),s("track","kind src srclang label default"),s("datalist","",[r,"option"].join(" ")),s("article section nav aside main header footer","",o),s("hgroup","","h1 h2 h3 h4 h5 h6"),s("figure","",[o,"figcaption"].join(" ")),s("time","datetime",r),s("dialog","open",o),s("command","type label icon disabled checked radiogroup command"),s("output","for form name",r),s("progress","value max",r),s("meter","value min max low high optimum",r),s("details","open",[o,"summary"].join(" ")),s("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==e&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("img","loading"),c("iframe","sandbox seamless allowfullscreen loading")),Du(Lu("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,Ou[e]=u,u)},Vu=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Du(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Nu(e,/[, ]/):Pu(e,/[, ]/)}))),n},Uu=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=Nu(o,/[, ]/,Nu(o.toUpperCase(),/[, ]/)):(o=Ou[t],o||(o=Mu(n,r),Ou[t]=o)),o};e=e||{};var u=Fu(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var s=Vu(e.valid_styles),c=Vu(e.invalid_styles,"map"),l=Vu(e.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),y=a("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"),b=a("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",y),w=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Du((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){i[e]=new RegExp("</"+e+"[^>]*>","gi")}));var _=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},x=function(e){var n,o,i,a,u,s,c,l,f,d,h,p,m,g,v,y,b,w,x=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(e){var E=Lu(e,",");for(t["@"]&&(y=t["@"].attributes,b=t["@"].attributesOrder),n=0,o=E.length;n<o;n++)if(u=x.exec(E[n]),u){if(g=u[1],f=u[2],v=u[3],l=u[5],p={},m=[],s={attributes:p,attributesOrder:m},"#"===g&&(s.paddEmpty=!0),"-"===g&&(s.removeEmpty=!0),"!"===u[4]&&(s.removeEmptyAttrs=!0),y&&(xe(y,(function(e,t){p[t]=e})),m.push.apply(m,b)),l)for(l=Lu(l,"|"),i=0,a=l.length;i<a;i++)if(u=C.exec(l[i]),u){if(c={},h=u[1],d=u[2].replace(/[\\:]:/g,":"),g=u[3],w=u[4],"!"===h&&(s.attributesRequired=s.attributesRequired||[],s.attributesRequired.push(d),c.required=!0),"-"===h){delete p[d],m.splice(ju(m,d),1);continue}g&&("="===g&&(s.attributesDefault=s.attributesDefault||[],s.attributesDefault.push({name:d,value:w}),c.defaultValue=w),":"===g&&(s.attributesForced=s.attributesForced||[],s.attributesForced.push({name:d,value:w}),c.forcedValue=w),"<"===g&&(c.validValues=Nu(w,"?"))),S.test(d)?(s.attributePatterns=s.attributePatterns||[],c.pattern=_(d),s.attributePatterns.push(c)):(p[d]||m.push(d),p[d]=c)}y||"@"!==f||(y=p,b=m),v&&(s.outputName=f,t[v]=s),S.test(f)?(s.pattern=_(f),r.push(s)):t[f]=s}}},C=function(e){t={},r=[],x(e),Du(u,(function(e,t){n[t]=e.children}))},S=function(e){var r=/^(~)?(.+)$/;e&&(Ou.text_block_elements=Ou.block_elements=null,Du(Lu(e,","),(function(e){var i=r.exec(e),a="~"===i[1],u=a?"span":"div",s=i[2];if(n[s]=n[u],o[s]=u,a||(b[s.toUpperCase()]={},b[s]={}),!t[s]){var c=t[u];c=Bu({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,t[s]=c}Du(n,(function(e,t){e[u]&&(n[t]=e=Bu({},n[t]),e[s]=e[u])}))})))},E=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Ou[e.schema]=null,t&&Du(Lu(t,","),(function(e){var t,o,i=r.exec(e);i&&(o=i[1],t=o?n[i[2]]:n[i[2]]={"#comment":{}},t=n[i[2]],Du(Lu(i[3],"|"),(function(e){"-"===o?delete t[e]:t[e]={}})))}))},k=function(e){var n,o=t[e];if(o)return o;n=r.length;while(n--)if(o=r[n],o.pattern.test(e))return o};e.valid_elements?C(e.valid_elements):(Du(u,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Du(Lu("strong/b em/i"),(function(e){var n=Lu(e,"/");t[n[1]].outputName=n[0]})),Du(w,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Du(Lu("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Du(Lu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Du(Lu("span"),(function(e){t[e].removeEmptyAttrs=!0}))),S(e.custom_elements),E(e.valid_children),x(e.extended_valid_elements),E("+ol[ul|ol],+ul[ul|ol]"),Du({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,n){t[n]&&(t[n].parentsRequired=Lu(e))})),e.invalid_elements&&Du(Pu(e.invalid_elements),(function(e){t[e]&&delete t[e]})),k("span")||x("span[!data-mce-type|*]");var T=R(s),A=R(c),O=R(l),N=R(p),D=R(b),B=R(y),P=R(w),j=R(h),L=R(d),M=R(g),I=R(v),F=R(f),V=R(i),U=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},q=function(e,t){var n,r,o=k(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},z=R(o);return{children:n,elements:t,getValidStyles:T,getValidClasses:O,getBlockElements:D,getInvalidStyles:A,getShortEndedElements:j,getTextBlockElements:B,getTextInlineElements:P,getBoolAttrs:N,getElementRule:k,getSelfClosingElements:L,getNonEmptyElements:M,getMoveCaretBeforeOnEnterElements:I,getWhiteSpaceElements:F,getSpecialElements:V,isValidChild:U,isValid:q,getCustomElements:z,addValidElements:x,setValidElements:C,addCustomElements:S,addValidChildren:E}},qu=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},zu=function(e,t){var n,r,o,i=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,l={},f=sa;e=e||{},t&&(r=t.getValidStyles(),o=t.getInvalidStyles());var d=("\\\" \\' \\; \\: ; : "+f).split(" ");for(n=0;n<d.length;n++)l[d[n]]=f+n,l[f+n]=d[n];return{toHex:function(e){return e.replace(a,qu)},parse:function(t){var r,o,d,h,p={},m=e.url_converter,g=e.url_converter_scope||i,v=function(e,t,r){var o=p[e+"-top"+t];if(o){var i=p[e+"-right"+t];if(i){var a=p[e+"-bottom"+t];if(a){var u=p[e+"-left"+t];if(u){var s=[o,i,a,u];n=s.length-1;while(n--)if(s[n]!==s[n+1])break;n>-1&&r||(p[e+t]=-1===n?s[0]:s.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},y=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},b=function(e,t,n,r){y(t)&&y(n)&&y(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},w=function(e){return h=!0,l[e]},_=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},x=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},C=function(e){return e.replace(/\\[0-9a-f]+/gi,x)},S=function(t,n,r,o,i,a){if(i=i||a,i)return i=_(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=_(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,w)}));while(r=s.exec(t))if(s.lastIndex=r.index+r[0].length,o=r[1].replace(c,"").toLowerCase(),d=r[2].replace(c,""),o&&d){if(o=C(o),d=C(d),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(d)))continue;"font-weight"===o&&"700"===d?d="bold":"color"!==o&&"background-color"!==o||(d=d.toLowerCase()),d=d.replace(a,qu),d=d.replace(u,S),p[o]=h?_(d,!0):d}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),b("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",i=function(t){var o,i=r[t];if(i)for(var a=0,u=i.length;a<u;a++)t=i[a],o=e[t],o&&(n+=(n.length>0?" ":"")+t+": "+o+";")},a=function(e,t){var n=o["*"];return(!n||!n[e])&&(n=o[t],!(n&&n[e]))};return t&&r?(i("*"),i(t)):xe(e,(function(e,r){!e||o&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},Hu={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},$u=function(e){return e instanceof Event||E(e.initEvent)},Wu=function(e){return e.isDefaultPrevented===F||e.isDefaultPrevented===I},Ku=function(e){return C(e.preventDefault)||$u(e)},Yu=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)De(Hu,r)||(n[r]=e[r]);return S(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Gu=function(e,t,n,r){var o,i=Yu(t,r);return i.type=e,C(i.target)&&(i.target=null!==(o=i.srcElement)&&void 0!==o?o:n),Ku(t)&&(i.preventDefault=function(){i.defaultPrevented=!0,i.isDefaultPrevented=F,E(t.preventDefault)?t.preventDefault():$u(t)&&(t.returnValue=!1)},i.stopPropagation=function(){i.cancelBubble=!0,i.isPropagationStopped=F,E(t.stopPropagation)?t.stopPropagation():$u(t)&&(t.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=F,i.stopPropagation()},Wu(i)||(i.isDefaultPrevented=!0===i.defaultPrevented?F:I,i.isPropagationStopped=!0===i.cancelBubble?F:I,i.isImmediatePropagationStopped=I)),i},Qu="mce-data-",Xu=/^(?:mouse|contextmenu)|click/,Ju=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Zu=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},es=function(e){return S(e)&&Xu.test(e.type)},ts=function(e,t){var n=Gu(e.type,e,document,t);if(es(e)&&x(e.pageX)&&!x(e.clientX)){var r=n.target.ownerDocument||document,o=r.documentElement,i=r.body,a=n;a.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}return x(n.metaKey)&&(n.metaKey=!1),n},ns=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(){Zu(e,"DOMContentLoaded",a),Zu(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o)),e=null};i()?a():Ju(e,"DOMContentLoaded",a),n.domLoaded||Ju(e,"load",a)}},rs=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Qu+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,u,s,c,l,f=this,d=window,h=function(e){f.executeHandlers(ts(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 p=t.split(" ");a=p.length;while(a--)u=p[a],c=h,s=l=!1,"DOMContentLoaded"===u&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,ts({type:u})):(f.hasMouseEnterLeave||(s=f.mouseEnterLeave[u],s&&(c=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=ts(e||d.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))})),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(l=!0,s="focusin"===u?"focus":"blur",c=function(e){e=ts(e||d.event),e.type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),i=f.events[o][u],i?"ready"===u&&f.domLoaded?n(ts({type:u})):i.push({func:n,scope:r}):(f.events[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=l,i.nativeHandler=c,"ready"===u?ns(e,c,f):Ju(e,s||u,c,l)));return e=i=null,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,u;if(!e||3===e.nodeType||8===e.nodeType)return this;var s=e[this.expando];if(s){if(u=this.events[s],t){var c=t.split(" ");o=c.length;while(o--)if(a=c[o],r=u[a],r){if(n){i=r.length;while(i--)if(r[i].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,i).concat(r.slice(i+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,u[a]=r}}n&&0!==r.length||(delete u[a],Zu(e,r.fakeName||a,r.nativeHandler,r.capture))}}else xe(u,(function(t,n){Zu(e,t.fakeName||n,t.nativeHandler,t.capture)})),u={};for(a in u)if(De(u,a))return this;delete this.events[s];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=ts({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!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){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[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=this.events[t],r=n&&n[e.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),os="sizzle"+-new Date,is=window.document,as=0,us=0,ss=qs(),cs=qs(),ls=qs(),fs=function(e,t){return e===t&&(hi=!0),0},ds="undefined",hs=1<<31,ps={}.hasOwnProperty,ms=[],gs=ms.pop,vs=ms.push,ys=ms.push,bs=ms.slice,ws=ms.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},_s="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",xs="[\\x20\\t\\r\\n\\f]",Cs="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Ss="\\["+xs+"*("+Cs+")(?:"+xs+"*([*^$|!~]?=)"+xs+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Cs+"))|)"+xs+"*\\]",Es=":("+Cs+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ss+")*)|.*)\\)|)",ks=new RegExp("^"+xs+"+|((?:^|[^\\\\])(?:\\\\.)*)"+xs+"+$","g"),Ts=new RegExp("^"+xs+"*,"+xs+"*"),As=new RegExp("^"+xs+"*([>+~]|"+xs+")"+xs+"*"),Os=new RegExp("="+xs+"*([^\\]'\"]*?)"+xs+"*\\]","g"),Rs=new RegExp(Es),Ns=new RegExp("^"+Cs+"$"),Ds={ID:new RegExp("^#("+Cs+")"),CLASS:new RegExp("^\\.("+Cs+")"),TAG:new RegExp("^("+Cs+"|[*])"),ATTR:new RegExp("^"+Ss),PSEUDO:new RegExp("^"+Es),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+xs+"*(even|odd|(([+-]|)(\\d*)n|)"+xs+"*(?:([+-]|)"+xs+"*(\\d+)|))"+xs+"*\\)|)","i"),bool:new RegExp("^(?:"+_s+")$","i"),needsContext:new RegExp("^"+xs+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+xs+"*((?:-\\d)?\\d*)"+xs+"*\\)|)(?=[^-]|$)","i")},Bs=/^(?:input|select|textarea|button)$/i,Ps=/^h\d$/i,js=/^[^{]+\{\s*\[native \w/,Ls=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ms=/[+~]/,Is=/'|\\/g,Fs=new RegExp("\\\\([\\da-f]{1,6}"+xs+"?|("+xs+")|.)","ig"),Vs=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{ys.apply(ms=bs.call(is.childNodes),is.childNodes),ms[is.childNodes.length].nodeType}catch(vU){ys={apply:ms.length?function(e,t){vs.apply(e,bs.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var Us=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,h;if((t?t.ownerDocument||t:is)!==mi&&pi(t),t=t||mi,n=n||[],!e||"string"!==typeof e)return n;if(1!==(u=t.nodeType)&&9!==u)return[];if(vi&&!r){if(o=Ls.exec(e))if(a=o[1]){if(9===u){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&_i(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return ys.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&oi.getElementsByClassName)return ys.apply(n,t.getElementsByClassName(a)),n}if(oi.qsa&&(!yi||!yi.test(e))){if(f=l=os,d=t,h=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){c=si(e),(l=t.getAttribute("id"))?f=l.replace(Is,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=c.length;while(s--)c[s]=f+Qs(c[s]);d=Ms.test(e)&&Ys(t.parentNode)||t,h=c.join(",")}if(h)try{return ys.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return li(e.replace(ks,"$1"),t,n,r)};function qs(){var e=[];function t(n,r){return e.push(n+" ")>ii.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function zs(e){return e[os]=!0,e}function Hs(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||hs)-(~e.sourceIndex||hs);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function $s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function Ws(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Ks(e){return zs((function(t){return t=+t,zs((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function Ys(e){return e&&typeof e.getElementsByTagName!==ds&&e}function Gs(){}function Qs(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Xs(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=us++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,c=[as,i];if(a){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||o){if(s=t[os]||(t[os]={}),(u=s[r])&&u[0]===as&&u[1]===i)return c[2]=u[2];if(s[r]=c,c[2]=e(t,n,a))return!0}}}function Js(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Zs(e,t,n){for(var r=0,o=t.length;r<o;r++)Us(e,t[r],n);return n}function ec(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function tc(e,t,n,r,o,i){return r&&!r[os]&&(r=tc(r)),o&&!o[os]&&(o=tc(o,i)),zs((function(i,a,u,s){var c,l,f,d=[],h=[],p=a.length,m=i||Zs(t||"*",u.nodeType?[u]:u,[]),g=!e||!i&&t?m:ec(m,d,e,u,s),v=n?o||(i?e:p||r)?[]:a:g;if(n&&n(g,v,u,s),r){c=ec(v,h),r(c,[],u,s),l=c.length;while(l--)(f=c[l])&&(v[h[l]]=!(g[h[l]]=f))}if(i){if(o||e){if(o){c=[],l=v.length;while(l--)(f=v[l])&&c.push(g[l]=f);o(null,v=[],c,s)}l=v.length;while(l--)(f=v[l])&&(c=o?ws.call(i,f):d[l])>-1&&(i[c]=!(a[c]=f))}}else v=ec(v===a?v.splice(p,v.length):v),o?o(null,a,v,s):ys.apply(a,v)}))}function nc(e){for(var t,n,r,o=e.length,i=ii.relative[e[0].type],a=i||ii.relative[" "],u=i?1:0,s=Xs((function(e){return e===t}),a,!0),c=Xs((function(e){return ws.call(t,e)>-1}),a,!0),l=[function(e,n,r){var o=!i&&(r||n!==fi)||((t=n).nodeType?s(e,n,r):c(e,n,r));return t=null,o}];u<o;u++)if(n=ii.relative[e[u].type])l=[Xs(Js(l),n)];else{if(n=ii.filter[e[u].type].apply(null,e[u].matches),n[os]){for(r=++u;r<o;r++)if(ii.relative[e[r].type])break;return tc(u>1&&Js(l),u>1&&Qs(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(ks,"$1"),n,u<r&&nc(e.slice(u,r)),r<o&&nc(e=e.slice(r)),r<o&&Qs(e))}l.push(n)}return Js(l)}function rc(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,u,s){var c,l,f,d=0,h="0",p=o&&[],m=[],g=fi,v=o||r&&ii.find.TAG("*",s),y=as+=null==g?1:Math.random()||.1,b=v.length;for(s&&(fi=i!==mi&&i);h!==b&&null!=(c=v[h]);h++){if(r&&c){l=0;while(f=e[l++])if(f(c,i,a)){u.push(c);break}s&&(as=y)}n&&((c=!f&&c)&&d--,o&&p.push(c))}if(d+=h,n&&h!==d){l=0;while(f=t[l++])f(p,m,i,a);if(o){if(d>0)while(h--)p[h]||m[h]||(m[h]=gs.call(u));m=ec(m)}ys.apply(u,m),s&&!o&&m.length>0&&d+t.length>1&&Us.uniqueSort(u)}return s&&(as=y,fi=g),p};return n?zs(o):o}oi=Us.support={},ui=Us.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},pi=Us.setDocument=function(e){var t,n=e?e.ownerDocument||e:is,r=n.defaultView;function o(e){try{return e.top}catch(t){}return null}return n!==mi&&9===n.nodeType&&n.documentElement?(mi=n,gi=n.documentElement,vi=!ui(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){pi()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){pi()}))),oi.attributes=!0,oi.getElementsByTagName=!0,oi.getElementsByClassName=js.test(n.getElementsByClassName),oi.getById=!0,ii.find.ID=function(e,t){if(typeof t.getElementById!==ds&&vi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ii.filter.ID=function(e){var t=e.replace(Fs,Vs);return function(e){return e.getAttribute("id")===t}},ii.find.TAG=oi.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==ds)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},ii.find.CLASS=oi.getElementsByClassName&&function(e,t){if(vi)return t.getElementsByClassName(e)},bi=[],yi=[],oi.disconnectedMatch=!0,yi=yi.length&&new RegExp(yi.join("|")),bi=bi.length&&new RegExp(bi.join("|")),t=js.test(gi.compareDocumentPosition),_i=t||js.test(gi.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)while(t=t.parentNode)if(t===e)return!0;return!1},fs=t?function(e,t){if(e===t)return hi=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!oi.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===is&&_i(is,e)?-1:t===n||t.ownerDocument===is&&_i(is,t)?1:di?ws.call(di,e)-ws.call(di,t):0:4&r?-1:1)}:function(e,t){if(e===t)return hi=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,u=[e],s=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:di?ws.call(di,e)-ws.call(di,t):0;if(i===a)return Hs(e,t);r=e;while(r=r.parentNode)u.unshift(r);r=t;while(r=r.parentNode)s.unshift(r);while(u[o]===s[o])o++;return o?Hs(u[o],s[o]):u[o]===is?-1:s[o]===is?1:0},n):mi},Us.matches=function(e,t){return Us(e,null,null,t)},Us.matchesSelector=function(e,t){if((e.ownerDocument||e)!==mi&&pi(e),t=t.replace(Os,"='$1']"),oi.matchesSelector&&vi&&(!bi||!bi.test(t))&&(!yi||!yi.test(t)))try{var n=wi.call(e,t);if(n||oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(vU){}return Us(t,mi,null,[e]).length>0},Us.contains=function(e,t){return(e.ownerDocument||e)!==mi&&pi(e),_i(e,t)},Us.attr=function(e,t){(e.ownerDocument||e)!==mi&&pi(e);var n=ii.attrHandle[t.toLowerCase()],r=n&&ps.call(ii.attrHandle,t.toLowerCase())?n(e,t,!vi):void 0;return void 0!==r?r:oi.attributes||!vi?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Us.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Us.uniqueSort=function(e){var t,n=[],r=0,o=0;if(hi=!oi.detectDuplicates,di=!oi.sortStable&&e.slice(0),e.sort(fs),hi){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)e.splice(n[r],1)}return di=null,e},ai=Us.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+=ai(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=ai(t);return n},ii=Us.selectors={cacheLength:50,createPseudo:zs,match:Ds,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(Fs,Vs),e[3]=(e[3]||e[4]||e[5]||"").replace(Fs,Vs),"~="===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]||Us.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]&&Us.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Ds.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Rs.test(n)&&(t=si(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(Fs,Vs).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ss[e+" "];return t||(t=new RegExp("(^|"+xs+")"+e+"("+xs+"|$)"))&&ss(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==ds&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=Us.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,l,f,d,h,p,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!s&&!u;if(g){if(i){while(m){f=t;while(f=f[m])if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){l=g[os]||(g[os]={}),c=l[e]||[],h=c[0]===as&&c[1],d=c[0]===as&&c[2],f=h&&g.childNodes[h];while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[as,h,d];break}}else if(y&&(c=(t[os]||(t[os]={}))[e])&&c[0]===as)d=c[1];else while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if((u?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(y&&((f[os]||(f[os]={}))[e]=[as,d]),f===t))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=ii.pseudos[e]||ii.setFilters[e.toLowerCase()]||Us.error("unsupported pseudo: "+e);return r[os]?r(t):r.length>1?(n=[e,e,"",t],ii.setFilters.hasOwnProperty(e.toLowerCase())?zs((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=ws.call(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:zs((function(e){var t=[],n=[],r=ci(e.replace(ks,"$1"));return r[os]?zs((function(e,t,n,o){var i,a=r(e,null,o,[]),u=e.length;while(u--)(i=a[u])&&(e[u]=!(t[u]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:zs((function(e){return function(t){return Us(e,t).length>0}})),contains:zs((function(e){return e=e.replace(Fs,Vs),function(t){return(t.textContent||t.innerText||ai(t)).indexOf(e)>-1}})),lang:zs((function(e){return Ns.test(e||"")||Us.error("unsupported lang: "+e),e=e.replace(Fs,Vs).toLowerCase(),function(t){var n;do{if(n=vi?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===gi},focus:function(e){return e===mi.activeElement&&(!mi.hasFocus||mi.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!ii.pseudos.empty(e)},header:function(e){return Ps.test(e.nodeName)},input:function(e){return Bs.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:Ks((function(){return[0]})),last:Ks((function(e,t){return[t-1]})),eq:Ks((function(e,t,n){return[n<0?n+t:n]})),even:Ks((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Ks((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Ks((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Ks((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},ii.pseudos.nth=ii.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(e){ii.pseudos[e]=$s(e)})),Z(["submit","reset"],(function(e){ii.pseudos[e]=Ws(e)})),Gs.prototype=ii.filters=ii.pseudos,ii.setFilters=new Gs,si=Us.tokenize=function(e,t){var n,r,o,i,a,u,s,c=cs[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],s=ii.preFilter;while(a){for(i in n&&!(r=Ts.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=As.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(ks," ")}),a=a.slice(n.length)),ii.filter)ii.filter.hasOwnProperty(i)&&(!(r=Ds[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?Us.error(e):cs(e,u).slice(0)},ci=Us.compile=function(e,t){var n,r=[],o=[],i=ls[e+" "];if(!i){t||(t=si(e)),n=t.length;while(n--)i=nc(t[n]),i[os]?r.push(i):o.push(i);i=ls(e,rc(o,r)),i.selector=e}return i},li=Us.select=function(e,t,n,r){var o,i,a,u,s,c="function"===typeof e&&e,l=!r&&si(e=c.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&oi.getById&&9===t.nodeType&&vi&&ii.relative[i[1].type]){if(t=(ii.find.ID(a.matches[0].replace(Fs,Vs),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=Ds.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],ii.relative[u=a.type])break;if((s=ii.find[u])&&(r=s(a.matches[0].replace(Fs,Vs),Ms.test(i[0].type)&&Ys(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&Qs(i),!e)return ys.apply(n,r),n;break}}}return(c||ci(e,l))(r,t,!vi,n,Ms.test(e)&&Ys(t.parentNode)||t),n},oi.sortStable=os.split("").sort(fs).join("")===os,oi.detectDuplicates=!!hi,pi(),oi.sortDetached=!0;var oc=document,ic=Array.prototype.push,ac=Array.prototype.slice,uc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,sc=rs.Event,cc=pn.makeMap("children,contents,next,prev"),lc=function(e){return"undefined"!==typeof e},fc=function(e){return"string"===typeof e},dc=function(e){return e&&e===e.window},hc=function(e,t){t=t||oc;var n,r=t.createElement("div"),o=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)o.appendChild(n);return o},pc=function(e,t,n,r){var o;if(fc(t))t=hc(t,Oc(e[0]));else if(t.length&&!t.nodeType){if(t=Bc.makeArray(t),r)for(o=t.length-1;o>=0;o--)pc(e,t[o],n,r);else for(o=0;o<t.length;o++)pc(e,t[o],n,r);return e}if(t.nodeType){o=e.length;while(o--)n.call(e[o],t)}return e},mc=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},gc=function(e,t,n){var r,o;return t=Bc(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},vc=pn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),yc=pn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),bc={for:"htmlFor",class:"className",readonly:"readOnly"},wc={float:"cssFloat"},_c={},xc={},Cc=function(e,t){return new Bc.fn.init(e,t)},Sc=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Ec=/^\s*|\s*$/g,kc=function(e){return null===e||void 0===e?"":(""+e).replace(Ec,"")},Tc=function(e,t){var n,r,o,i;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=e[o],!1===t.call(i,o,i))break;return e},Ac=function(e,t){var n=[];return Tc(e,(function(e,r){t(r,e)&&n.push(r)})),n},Oc=function(e){return e?9===e.nodeType?e:e.ownerDocument:oc};Cc.fn=Cc.prototype={constructor:Cc,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 Bc(e).attr(t);o.context=t=document}if(fc(e)){if(o.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:uc.exec(e),!n)return Bc(t).find(e);if(n[1]){r=hc(e,Oc(t)).firstChild;while(r)ic.call(o,r),r=r.nextSibling}else{if(r=Oc(t).getElementById(n[2]),!r)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 pn.toArray(this)},add:function(e,t){var n,r,o=this;if(fc(e))return o.add(Bc(e));if(!1!==t)for(n=Bc.unique(o.toArray().concat(Bc.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else ic.apply(o,Bc.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"===typeof e)Tc(e,(function(e,t){r.attr(e,t)}));else{if(!lc(t)){if(r[0]&&1===r[0].nodeType){if(n=_c[e],n&&n.get)return n.get(r[0],e);if(yc[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=_c[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=bc[e]||e,"object"===typeof e)Tc(e,(function(e,t){n.prop(e,t)}));else{if(!lc(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(e,t){var n,r,o=this,i=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 e)Tc(e,(function(e,t){o.css(e,t)}));else if(lc(t))e=i(e),"number"!==typeof t||vc[e]||(t=t.toString()+"px"),o.each((function(){var n=this.style;if(r=xc[e],r&&r.set)r.set(this,t);else{try{this.style[wc[e]||e]=t}catch(o){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=o[0],r=xc[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(u){return}}return o},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],sc.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(lc(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Bc(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(lc(e)){t=n.length;while(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 pc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return pc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?pc(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?pc(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Bc(e).append(this),this},prependTo:function(e){return Bc(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return gc(this,e)},wrapAll:function(e){return gc(this,e,!0)},wrapInner:function(e){return this.each((function(){Bc(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Bc(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Bc(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Tc(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var o=mc(r,e);if(o!==t){var i=r.className;o?r.className=kc((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e}}))),n},hasClass:function(e){return mc(this[0],e)},each:function(e){return Tc(this,e)},on:function(e,t){return this.each((function(){sc.bind(this,e,t)}))},off:function(e,t){return this.each((function(){sc.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?sc.fire(this,e.type,e):sc.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Bc(ac.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++)Bc.find(e,this[t],r);return Bc(r)},filter:function(e){return Bc("function"===typeof e?Ac(this.toArray(),(function(t,n){return e(n,t)})):Bc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Bc&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Bc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Bc(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:ic,sort:Array.prototype.sort,splice:Array.prototype.splice},pn.extend(Cc,{extend:pn.extend,makeArray:function(e){return dc(e)||e.nodeType?[e]:pn.toArray(e)},inArray:Sc,isArray:pn.isArray,each:Tc,trim:kc,grep:Ac,find:Us,expr:Us.selectors,unique:Us.uniqueSort,text:Us.getText,contains:Us.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Bc.find.matchesSelector(t[0],e)?[t[0]]:[]:Bc.find.matches(e,t),t}});var Rc=function(e,t,n){var r=[],o=e[t];"string"!==typeof n&&n instanceof Bc&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&Bc(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Nc=function(e,t,n,r){var o=[];for(r instanceof Bc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Bc(e).is(r))break}o.push(e)}return o},Dc=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Tc({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Rc(e,"parentNode")},next:function(e){return Dc(e,"nextSibling",1)},prev:function(e){return Dc(e,"previousSibling",1)},children:function(e){return Nc(e.firstChild,"nextSibling",1)},contents:function(e){return pn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Cc.fn[e]=function(n){var r=this,o=[];r.each((function(){var e=t.call(o,this,n,o);e&&(Bc.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(cc[e]||(o=Bc.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Bc(o);return n?i.filter(n):i}})),Tc({parentsUntil:function(e,t){return Rc(e,"parentNode",t)},nextUntil:function(e,t){return Nc(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Nc(e,"previousSibling",1,t).slice(1)}},(function(e,t){Cc.fn[e]=function(n,r){var o=this,i=[];o.each((function(){var e=t.call(i,this,n,i);e&&(Bc.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(i=Bc.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var a=Bc(i);return r?a.filter(r):a}})),Cc.fn.is=function(e){return!!e&&this.filter(e).length>0},Cc.fn.init.prototype=Cc.fn,Cc.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Bc.extend(n,this),n},Cc.attrHooks=_c,Cc.cssHooks=xc;var Bc=Cc,Pc=pn.each,jc=pn.grep,Lc=en.ie,Mc=/^([a-z0-9],?)+$/i,Ic=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(i.href=i.src=o),i},Fc=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)},Vc=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},Uc=function(e,t){void 0===t&&(t={});var n={},r=window,o={},i=0,a=!0,u=!0,s=Fi.forElement(wn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),c=[],l=t.schema?t.schema:Uu({}),f=zu({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),d=t.ownEvents?new rs:rs.Event,h=l.getBlockElements(),p=Bc.overrideDefaults((function(){return{context:e,element:Ne.getRoot()}})),m=function(e){if("string"===typeof e)return!!h[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!h[e.nodeName])}return!1},g=function(t){return t&&e&&v(t)?e.getElementById(t):t},y=function(e){return p("string"===typeof e?g(e):e)},b=function(e,t,n){var r,o,i=y(e);return i.length&&(r=De[t],o=r&&r.get?r.get(i,t):i.attr(t)),"undefined"===typeof o&&(o=n||""),o},w=function(e){var t=g(e);return t?t.attributes:[]},_=function(e,n,r){""===r&&(r=null);var o=y(e),i=o.attr(n);if(o.length){var a=De[n];a&&a.set?a.set(o,r,n):o.attr(n,r),i!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:o,attrName:n,attrValue:r})}},x=function(t,n){if(!Lc||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Pc(w(t),(function(e){_(r,e.nodeName,b(t,e.nodeName))})),r},S=function(){return t.root_element||e.body},E=function(e){var t=Vr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},k=function(t,n){return jo(e.body,g(t),n)},A=function(e,n,r){var o=v(n)?y(e).css(n,r):y(e).css(n);t.update_styles&&Fc(f,o)},O=function(e,n){var r=y(e).css(n);t.update_styles&&Fc(f,r)},N=function(e,t,n){var r=y(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},D=function(e){var t,n;return e=g(e),t=N(e,"width"),n=N(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}},B=function(e){e=g(e);var t=k(e),n=D(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},P=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Mc.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;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 Us(t,i[0].ownerDocument||i[0],null,i).length>0},j=function(e,t,n,r){var o,i=[],a=g(e);r=void 0===r,n=n||("BODY"!==S().nodeName?S().parentNode:null),pn.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return P(e,o)});while(a){if(a===n||C(a.nodeType)||to(a)||no(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},L=function(e,t,n){var r=j(e,t,n,!1);return r&&r.length>0?r[0]:null},M=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return P(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},I=function(e,t){return M(e,t,"nextSibling")},F=function(e,t){return M(e,t,"previousSibling")},V=function(n,r){return Us(n,g(r)||t.root_element||e,[])},U=function(e,t,n){var r,o="string"===typeof e?g(e):e;if(!o)return!1;if(pn.isArray(o)&&(o.length||0===o.length))return r=[],Pc(o,(function(e,o){e&&r.push(t.call(n,"string"===typeof e?g(e):e,o))})),r;var i=n||this;return t.call(i,o)},q=function(e,t){y(e).each((function(e,n){Pc(t,(function(e,t){_(n,t,e)}))}))},z=function(e,t){var n=y(e);Lc?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Bc("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},H=function(t,n,r,o,i){return U(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return q(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&z(a,o)),i?a:t.appendChild(a)}))},$=function(t,n,r){return H(e.createElement(t),t,n,r,!0)},W=Au.decode,K=Au.encodeAllRaw,Y=function(e,t,n){var r,o="";for(r in o+="<"+e,t)Be(t,r)&&(o+=" "+r+'="'+K(t[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+e+">":o+" />"},G=function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();o.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)o.appendChild(n);return o.removeChild(r),o},Q=function(e,t){var n=y(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},X=function(e){return U(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},J=function(e){return f.parse(e)},ee=function(e,t){return f.serialize(e,t)},te=function(t){var r,o;if(Ne!==Uc.DOM&&e===document){if(n[t])return;n[t]=!0}o=e.getElementById("mceDefaultStyles"),o||(o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Z(e.split(","),(function(e){o[e]=!0,s.load(e,T)}))},re=function(e,t,n){y(e).toggleClass(t,n).each((function(){""===this.className&&Bc(this).attr("class",null)}))},oe=function(e,t){y(e).addClass(t)},ie=function(e,t){re(e,t,!1)},ae=function(e,t){return y(e).hasClass(t)},ue=function(e){y(e).show()},se=function(e){y(e).hide()},ce=function(e){return"none"===y(e).css("display")},le=function(e){return(e||"mce_")+i++},fe=function(e){var t="string"===typeof e?g(e):e;return zr(t)?t.outerHTML:Bc("<div></div>").append(Bc(t).clone()).html()},de=function(e,t){y(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}Q(Bc(this).html(t),!0)}))},he=function(e,t){var n=g(t);return U(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return U(t,(function(t){return pn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Pc(jc(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},me=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=$(t),Pc(w(e),(function(t){_(n,t.nodeName,b(e,t.nodeName))})),pe(n,e,!0)),n||e},ge=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return f.toHex(pn.trim(e))},ye=function(e){if(zr(e)){var t="a"===e.nodeName.toLowerCase()&&!b(e,"href")&&b(e,"id");if(b(e,"name")||b(e,"data-mce-bookmark")||t)return!0}return!1},be=function(e,t){var n,r,o=0;if(ye(e))return!1;if(e=e.firstChild,e){var i=new Vi(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,zr(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(ye(e))return!1}if(8===n)return!1;if(3===n&&!Ka(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ka(e.nodeValue))return!1;e=i.next()}while(e)}return o<=1},we=function(){return e.createRange()},_e=function(e,t,n){var r,o,i,a=we();if(e&&t)return a.setStart(e.parentNode,Vc(e)),a.setEnd(t.parentNode,Vc(t)),r=a.extractContents(),a=we(),a.setStart(t.parentNode,Vc(t)+1),a.setEnd(e.parentNode,Vc(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(lu(Ne,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(lu(Ne,o),e),Q(e),n||t},Ce=function(n,o,i,a){if(pn.isArray(n)){var u=n.length,s=[];while(u--)s[u]=Ce(n[u],o,i,a);return s}!t.collect||n!==e&&n!==r||c.push([n,o,i,a]);var l=d.bind(n,o,i,a||Ne);return l},Se=function(t,n,o){if(pn.isArray(t)){var i=t.length,a=[];while(i--)a[i]=Se(t[i],n,o);return a}if(c.length>0&&(t===e||t===r)){i=c.length;while(i--){var u=c[i];t!==u[0]||n&&n!==u[1]||o&&o!==u[2]||d.unbind(u[0],u[1],u[2])}}return d.unbind(t,n,o)},Ee=function(e,t,n){return d.fire(e,t,n)},ke=function(e){if(e&&zr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Te=function(e){for(var t=S(),n=null;e&&e!==t;e=e.parentNode)if(n=ke(e),null!==n)break;return n},Ae=function(){if(c.length>0){var e=c.length;while(e--){var t=c[e];d.unbind(t[0],t[1],t[2])}}xe(o,(function(e,t){s.unload(t),delete o[t]})),Us.setDocument&&Us.setDocument()},Oe=function(e,t){if(Lc){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Re=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Ne={doc:e,settings:t,win:r,files:o,stdMode:a,boxModel:u,styleSheetLoader:s,boundEvents:c,styles:f,schema:l,events:d,isBlock:m,$:p,$$:y,root:null,clone:x,getRoot:S,getViewPort:E,getRect:B,getSize:D,getParent:L,getParents:j,get:g,getNext:I,getPrev:F,select:V,is:P,add:H,create:$,createHTML:Y,createFragment:G,remove:Q,setStyle:A,getStyle:N,setStyles:O,removeAllAttribs:X,setAttrib:_,setAttribs:q,getAttrib:b,getPos:k,parseStyle:J,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:oe,removeClass:ie,hasClass:ae,toggleClass:re,show:ue,hide:se,isHidden:ce,uniqueId:le,setHTML:z,getOuterHTML:fe,setOuterHTML:de,decode:W,encode:K,insertAfter:he,replace:pe,rename:me,findCommonAncestor:ge,toHex:ve,run:U,getAttribs:w,isEmpty:be,createRng:we,nodeIndex:Vc,split:_e,bind:Ce,unbind:Se,fire:Ee,getContentEditable:ke,getContentEditableParent:Te,destroy:Ae,isChildOf:Oe,dumpRng:Re},De=Ic(f,t,R(Ne));return Ne};Uc.DOM=Uc(document),Uc.nodeIndex=Vc;var qc=Uc.DOM,zc=pn.each,Hc=pn.grep,$c=0,Wc=1,Kc=2,Yc=3,Gc=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,o=qc,i=function(){o.remove(s),r&&(r.onerror=r.onload=r=null)},a=function(){i(),t()},u=function(){i(),E(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},s=o.uniqueId();r=document.createElement("script"),r.id=s,r.type="text/javascript",r.src=pn._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=u,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Kc},e.prototype.markDone=function(e){this.states[e]=Kc},e.prototype.add=function(e,t,n,r){var o=this.states[e];this.queue.push(e),void 0===o&&(this.states[e]=$c),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(e,t,n,r){var o=this,i=[],a=function(e,t){zc(o.scriptLoadedCallbacks[t],(function(t){E(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0};o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var u=function(){var t=Hc(e);if(e.length=0,zc(t,(function(e){o.states[e]!==Kc?o.states[e]!==Yc?o.states[e]!==Wc&&(o.states[e]=Wc,o.loading++,o.loadScript(e,(function(){o.states[e]=Kc,o.loading--,a("success",e),u()}),(function(){o.states[e]=Yc,o.loading--,i.push(e),a("failure",e),u()}))):a("failure",e):a("success",e)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,zc(n,(function(e){0===i.length?E(e.success)&&e.success.call(e.scope):E(e.failure)&&e.failure.call(e.scope,i)}))}};u()},e.ScriptLoader=new e,e}(),Qc=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Xc=function(e){return y(e)&&De(e,"raw")},Jc=function(e){return b(e)&&e.length>1},Zc={},el=Qc("en"),tl=function(){return Ne(Zc,el.get())},nl=function(){return Ce(Zc,(function(e){return He({},e)}))},rl=function(e){e&&el.set(e)},ol=function(){return el.get()},il=function(e,t){var n=Zc[e];n||(Zc[e]=n={}),xe(t,(function(e,t){n[t.toLowerCase()]=e}))},al=function(e){var t=tl().getOr({}),n=function(e){return E(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e);return Ne(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Xc(e))return n(e.raw);if(Jc(e)){var a=e.slice(1),u=o(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return De(a,t)?n(a[t]):e}));return i(u)}return i(o(e))},ul=function(){return tl().bind((function(e){return Ne(e,"_dir")})).exists((function(e){return"rtl"===e}))},sl=function(e){return De(Zc,e)},cl={getData:nl,setCode:rl,getCode:ol,add:il,translate:al,isRtl:ul,hasCode:sl},ll=function(){var e=[],t={},n={},r=[],o=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Z(n,(function(e){return e.callback()}))},i=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},u=function(e,n){!1!==ll.languageLoad&&p(e,(function(){var r=cl.getCode(),o=","+(n||"")+",";!r||n&&-1===o.indexOf(","+r+",")||Gc.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},s=function(t,r,i){var a=r;return e.push(a),n[t]={instance:a,dependencies:i},o(t,"added"),a},c=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(e,n){var r=t[e];Z(n,(function(e){Gc.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var o=a(e);Z(o,(function(e){var n=l(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Gc))},h=function(e,r,i,a,u){if(!t[e]){var s="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=ll.baseURL+"/"+s),t[e]=s.substring(0,s.lastIndexOf("/"));var c=function(){o(e,"loaded"),d(e,r,i,a)};n[e]?c():Gc.ScriptLoader.add(s,c,a,u)}},p=function(e,o,i){void 0===i&&(i="added"),De(n,e)&&"added"===i||De(t,e)&&"loaded"===i?o():r.push({name:e,state:i,callback:o})};return{items:e,urls:t,lookup:n,_listeners:r,get:i,dependencies:a,requireLangPack:u,add:s,remove:c,createUrl:l,addComponents:f,load:h,waitFor:p}};ll.languageLoad=!0,ll.baseURL="",ll.PluginManager=ll(),ll.ThemeManager=ll();var fl=function(e){var t=Qc(H.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(H.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(H.some(e))};return{clear:r,isSet:o,get:i,set:a}},dl=function(){var e=fl(T),t=function(t){return e.get().each(t)};return He(He({},e),{on:t})},hl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];w(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:o}},pl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},ml=function(e,t){var n=bo(e,t);return void 0===n||""===n?[]:n.split(" ")},gl=function(e,t,n){var r=ml(e,t),o=r.concat([n]);return vo(e,t,o.join(" ")),!0},vl=function(e,t,n){var r=ne(ml(e,t),(function(e){return e!==n}));return r.length>0?vo(e,t,r.join(" ")):xo(e,t),!1},yl=function(e){return void 0!==e.dom.classList},bl=function(e){return ml(e,"class")},wl=function(e,t){return gl(e,"class",t)},_l=function(e,t){return vl(e,"class",t)},xl=function(e,t){yl(e)?e.dom.classList.add(t):wl(e,t)},Cl=function(e){var t=yl(e)?e.dom.classList:bl(e);0===t.length&&xo(e,"class")},Sl=function(e,t){if(yl(e)){var n=e.dom.classList;n.remove(t)}else _l(e,t);Cl(e)},El=function(e,t){return yl(e)&&e.dom.classList.contains(t)},kl=function(e,t){var n=[];return Z(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(kl(e,t))})),n},Tl=function(e,t){return Nn(t,e)},Al=R("mce-annotation"),Ol=R("data-mce-annotation"),Rl=R("data-mce-annotation-uid"),Nl=function(e,t){var n=e.selection.getRng(),r=wn.fromDom(n.startContainer),o=wn.fromDom(e.getBody()),i=t.fold((function(){return"."+Al()}),(function(e){return"["+Ol()+'="'+e+'"]'})),a=or(r,n.startOffset).getOr(r),u=Ai(a,i,(function(e){return Bn(e,o)})),s=function(e,t){return _o(e,t)?H.some(bo(e,t)):H.none()};return u.bind((function(t){return s(t,""+Rl()).bind((function(n){return s(t,""+Ol()).map((function(t){var r=Bl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Dl=function(e){return Un(e)&&El(e,Al())},Bl=function(e,t){var n=wn.fromDom(e.getBody());return Tl(n,"["+Rl()+'="'+t+'"]')},Pl=function(e,t){var n=wn.fromDom(e.getBody()),r=Tl(n,"["+Ol()+'="'+t+'"]'),o={};return Z(r,(function(e){var t=bo(e,Rl()),n=Ne(o,t).getOr([]);o[t]=n.concat([e])})),o},jl=function(e,t){var n=Qc({}),r=function(){return{listeners:[],previous:dl()}},o=function(e,t){i(e,(function(e){return t(e),e}))},i=function(e,t){var o=n.get(),i=Ne(o,e).getOrThunk(r),a=t(i);o[e]=a,n.set(o)},a=function(e,t,n){o(e,(function(r){Z(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:J(n,(function(e){return e.dom}))})}))}))},u=function(e){o(e,(function(t){Z(t.listeners,(function(t){return t(!1,e)}))}))},s=pl((function(){var t=n.get(),r=pe(we(t));Z(r,(function(t){i(t,(function(n){var r=n.previous.get();return Nl(e,H.some(t)).fold((function(){r.isSome()&&(u(t),n.previous.clear())}),(function(e){var t=e.uid,o=e.name,i=e.elements;co(r,t)||(a(o,t,i),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){s.cancel()})),e.on("NodeChange",(function(){s.throttle()}));var c=function(e,t){i(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:c}},Ll=function(e,t){var n=function(e){return H.from(e.attr(Ol())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Z(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Ml=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return Ne(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Il=0,Fl=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Il++,e+"_"+r+Il+String(n)},Vl=function(e,t){Z(t,(function(t){xl(e,t)}))},Ul=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(wn.fromDom(r))},ql=function(e){return J(e,wn.fromDom)},zl=function(e){return e.dom.innerHTML},Hl=function(e,t){var n=Wn(e),r=n.dom,o=wn.fromDom(r.createDocumentFragment()),i=Ul(t,r);Sr(o,i),Er(e),_r(e,o)},$l=function(e,t){return wn.fromDom(e.dom.cloneNode(t))},Wl=function(e){return $l(e,!1)},Kl=function(e){return $l(e,!0)},Yl=function(e,t,n){void 0===n&&(n=I);var r=new Vi(e,t),o=function(e){var t;do{t=r[e]()}while(t&&!Zr(t)&&!n(t));return H.from(t).filter(Zr)};return{current:function(){return H.from(r.current()).filter(Zr)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},Gl=function(e,t){var n=t||function(t){return e.isBlock(t)||ro(t)||ao(t)},r=function(e,t,n,o){if(Zr(e)){var i=o(e,t,e.data);if(-1!==i)return H.some({container:e,offset:i})}return n().bind((function(e){return r(e.container,e.offset,n,o)}))},o=function(e,t,o,i){var a=Yl(e,i,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),o).getOrNull()},i=function(e,t,o,i){var a=Yl(e,i,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),o).getOrNull()};return{backwards:o,forwards:i}},Ql=Math.round,Xl=function(e){return e?{left:Ql(e.left),top:Ql(e.top),bottom:Ql(e.bottom),right:Ql(e.right),width:Ql(e.width),height:Ql(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Jl=function(e,t){return e=Xl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Zl=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ef=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},tf=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ef(t.top-e.bottom,e,t)},nf=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ef(t.bottom-e.top,e,t)},rf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},of=function(e,t,n){return Math.min(Math.max(e,t),n)},af=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},uf=function(e,t){if(zr(e)&&e.hasChildNodes()){var n=e.childNodes,r=of(t,0,n.length-1);return n[r]}return e},sf=function(e,t){return t<0&&zr(e)&&e.hasChildNodes()?void 0:uf(e,t)},cf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),lf=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&cf.test(e)},ff=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},df=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},hf=zr,pf=Fa,mf=$r("display","block table"),gf=$r("float","left right"),vf=df(hf,pf,P(gf)),yf=P($r("white-space","pre pre-line pre-wrap")),bf=Zr,wf=ro,_f=Uc.nodeIndex,xf=sf,Cf=function(e){return"createRange"in e?e.createRange():Uc.DOM.createRng()},Sf=function(e){return e&&/[\r\n\t ]/.test(e)},Ef=function(e){return!!e.setStart&&!!e.setEnd},kf=function(e){var t=e.startContainer,n=e.startOffset;if(Sf(e.toString())&&yf(t.parentNode)&&Zr(t)){var r=t.data;if(Sf(r[n-1])||Sf(r[n+1]))return!0}return!1},Tf=function(e){var t=e.ownerDocument,n=Cf(t),r=t.createTextNode(ca),o=e.parentNode;o.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var i=Xl(n.getBoundingClientRect());return o.removeChild(r),i},Af=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Zr(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Rf(i)}return null},Of=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Rf=function(e){var t,n=e.getClientRects();return t=n.length>0?Xl(n[0]):Xl(e.getBoundingClientRect()),!Ef(e)&&wf(e)&&Of(t)?Tf(e):Of(t)&&Ef(e)?Af(e):t},Nf=function(e,t){var n=Jl(e,t);return n.width=1,n.right=n.left+1,n},Df=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Zl(e,t[t.length-1])||t.push(e))},r=function(e,r){var o=Cf(e.ownerDocument);if(r<e.data.length){if(lf(e.data[r]))return t;if(lf(e.data[r-1])&&(o.setStart(e,r),o.setEnd(e,r+1),!kf(o)))return n(Nf(Rf(o),!1)),t}r>0&&(o.setStart(e,r-1),o.setEnd(e,r),kf(o)||n(Nf(Rf(o),!1))),r<e.data.length&&(o.setStart(e,r),o.setEnd(e,r+1),kf(o)||n(Nf(Rf(o),!0)))},o=e.container(),i=e.offset();if(bf(o))return r(o,i),t;if(hf(o))if(e.isAtEnd()){var a=xf(o,i);bf(a)&&r(a,a.data.length),vf(a)&&!wf(a)&&n(Nf(Rf(a),!1))}else{a=xf(o,i);if(bf(a)&&r(a,0),vf(a)&&e.isAtEnd())return n(Nf(Rf(a),!1)),t;var u=xf(e.container(),e.offset()-1);vf(u)&&!wf(u)&&(mf(u)||mf(a)||!vf(a))&&n(Nf(Rf(u),!1)),vf(a)&&n(Nf(Rf(a),!0))}return t},Bf=function(e,t,n){var r=function(){return bf(e),0===t},o=function(){return bf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n=Cf(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Df(Bf(e,t))),n},u=function(){return a().length>0},s=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return xf(e,n?t-1:t)};return{container:R(e),offset:R(t),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:s,getNode:c}};Bf.fromRangeStart=function(e){return Bf(e.startContainer,e.startOffset)},Bf.fromRangeEnd=function(e){return Bf(e.endContainer,e.endOffset)},Bf.after=function(e){return Bf(e.parentNode,_f(e)+1)},Bf.before=function(e){return Bf(e.parentNode,_f(e))},Bf.isAbove=function(e,t){return fo(ge(t.getClientRects()),ve(e.getClientRects()),tf).getOr(!1)},Bf.isBelow=function(e,t){return fo(ve(t.getClientRects()),ge(e.getClientRects()),nf).getOr(!1)},Bf.isAtStart=function(e){return!!e&&e.isAtStart()},Bf.isAtEnd=function(e){return!!e&&e.isAtEnd()},Bf.isTextPosition=function(e){return!!e&&Zr(e.container())},Bf.isElementPosition=function(e){return!1===Bf.isTextPosition(e)};var Pf,jf=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},Lf=function(e,t,n){t.insertNode(n),jf(e,n.previousSibling),jf(e,n.nextSibling)},Mf=function(e,t,n){var r=H.from(n.firstChild),o=H.from(n.lastChild);t.insertNode(n),r.each((function(t){return jf(e,t.previousSibling)})),o.each((function(t){return jf(e,t.nextSibling)}))},If=function(e,t,n){no(n)?Mf(e,t,n):Lf(e,t,n)},Ff=Zr,Vf=Yr,Uf=Uc.nodeIndex,qf=function(e){var t=e.parentNode;return Vf(t)?qf(t):t},zf=function(e){return e?Ue(e.childNodes,(function(e,t){return Vf(t)&&"BR"!==t.nodeName?e=e.concat(zf(t)):e.push(t),e}),[]):[]},Hf=function(e,t){while(e=e.previousSibling){if(!Ff(e))break;t+=e.data.length}return t},$f=function(e){return function(t){return e===t}},Wf=function(e){var t,n;t=zf(qf(e)),n=qe(t,$f(e),e),t=t.slice(0,n+1);var r=Ue(t,(function(e,n,r){return Ff(n)&&Ff(t[r-1])&&e++,e}),0);return t=Fe(t,Hr([e.nodeName])),n=qe(t,$f(e),e),n-r},Kf=function(e){var t;return t=Ff(e)?"text()":e.nodeName.toLowerCase(),t+"["+Wf(e)+"]"},Yf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Gf=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),Ff(n)?o=Hf(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Kf(n)),a=Yf(e,n),a=Fe(a,P(Yr)),u=u.concat(Ie(a,(function(e){return Kf(e)}))),u.reverse().join("/")+","+o},Qf=function(e,t,n){var r=zf(e);return r=Fe(r,(function(e,t){return!Ff(e)||!Ff(r[t-1])})),r=Fe(r,Hr([t])),r[n]},Xf=function(e,t){var n,r=e,o=0;while(Ff(r)){if(n=r.data.length,t>=o&&t<=o+n){e=r,t-=o;break}if(!Ff(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Ff(e)&&t>e.data.length&&(t=e.data.length),Bf(e,t)},Jf=function(e,t){var n;if(!t)return null;var r=t.split(","),o=r[0].split("/");n=r.length>1?r[1]:"before";var i=Ue(o,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Qf(e,n[1],parseInt(n[2],10))):null}),e);return i?Ff(i)?Xf(i,parseInt(n,10)):(n="after"===n?Uf(i)+1:Uf(i),Bf(i.parentNode,n)):null},Zf=ao,ed=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Zr(r);r=r.previousSibling)o+=e(r.data).length;return o},td=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],c=0,l=e.getRoot();for(Zr(a)?s.push(n?ed(t,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(c=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+c));a&&a!==l;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},nd=function(e,t,n,r){var o=t.dom,i={};return i.start=td(o,e,n,r,!0),t.isCollapsed()||(i.end=td(o,e,n,r,!1)),Ra(r)&&(i.isFakeCaret=!0),i},rd=function(e,t,n){var r=0;return pn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},od=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],zr(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},id=function(e){return od(e,!0),od(e,!1),e},ad=function(e,t){var n;if(zr(e)&&(e=uf(e,t),Zf(e)))return e;if(ba(e)){if(Zr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Zf(n))return n;if(n=e.nextSibling,Zf(n))return n}},ud=function(e){return ad(e.startContainer,e.startOffset)||ad(e.endContainer,e.endOffset)},sd=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Zf(r)||"IMG"===o)return{name:o,index:rd(n.dom,o,r)};var a=ud(i);return a?(o=a.tagName,{name:o,index:rd(n.dom,o,a)}):nd(e,n,t,i)},cd=function(e){var t=e.getRng();return{start:Gf(e.dom.getRoot(),Bf.fromRangeStart(t)),end:Gf(e.dom.getRoot(),Bf.fromRangeEnd(t))}},ld=function(e){return{rng:e.getRng()}},fd=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)},dd=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:rd(n,u,a)};var s=id(r.cloneRange());if(!i){s.collapse(!1);var c=fd(n,o+"_end",t);If(n,s,c)}r=id(r),r.collapse(!0);var l=fd(n,o+"_start",t);return If(n,r,l),e.moveToBookmark({id:o,keep:!0}),{id:o}},hd=function(e,t,n){return 2===t?sd(pa,n,e):3===t?cd(e):t?ld(e):dd(e,!1)},pd=B(sd,N,!0),md=Uc.DOM,gd="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vd=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return Ne(o,e.id).getOr(n)}return r},yd=function(e){return e.getParam("iframe_attrs",{})},bd=function(e){return e.getParam("doctype","<!DOCTYPE html>")},wd=function(e){return e.getParam("document_base_url","")},_d=function(e){return vd(e,"body_id","tinymce")},xd=function(e){return vd(e,"body_class","")},Cd=function(e){return e.getParam("content_security_policy","")},Sd=function(e){return e.getParam("br_in_pre",!0)},Ed=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},kd=function(e){return e.getParam("forced_root_block_attrs",{})},Td=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Ad=function(e){return e.getParam("no_newline_selector","")},Od=function(e){return e.getParam("keep_styles",!0)},Rd=function(e){return e.getParam("end_container_on_empty_block",!1)},Nd=function(e){return pn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Dd=function(e){return pn.explode(e.getParam("font_size_classes",""))},Bd=function(e){return e.getParam("images_dataimg_filter",F,"function")},Pd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},jd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Ld=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Md=function(e){return e.getParam("icons","","string")},Id=function(e){return e.getParam("icons_url","","string")},Fd=function(e){return e.getParam("images_upload_url","","string")},Vd=function(e){return e.getParam("images_upload_base_path","","string")},Ud=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},qd=function(e){return e.getParam("images_upload_handler",null,"function")},zd=function(e){return e.getParam("content_css_cors",!1,"boolean")},Hd=function(e){return e.getParam("referrer_policy","","string")},$d=function(e){return e.getParam("language","en","string")},Wd=function(e){return e.getParam("language_url","","string")},Kd=function(e){return e.getParam("indent_use_margin",!1)},Yd=function(e){return e.getParam("indentation","40px","string")},Gd=function(e){var t=e.getParam("content_css");return v(t)?J(t.split(","),ft):b(t)?t:!1===t||e.inline?[]:["default"]},Qd=function(e){var t=e.getParam("font_css",[]);return b(t)?t:J(t.split(","),ft)},Xd=function(e){return e.getParam("directionality",cl.isRtl()?"rtl":void 0)},Jd=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Zd=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},eh=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},th=function(e){return e.getParam("placeholder",md.getAttrib(e.getElement(),"placeholder"),"string")},nh=function(e){return e.getParam("event_root")},rh=function(e){return e.getParam("service_message")},oh=function(e){return e.getParam("theme")},ih=function(e){return e.getParam("validate")},ah=function(e){return!1!==e.getParam("inline_boundaries")},uh=function(e){return e.getParam("formats")},sh=function(e){var t=e.getParam("preview_styles",gd);return v(t)?t:""},ch=function(e){return e.getParam("format_empty_lines",!1,"boolean")},lh=function(e){return e.getParam("custom_ui_selector","","string")},fh=function(e){return e.getParam("theme_url")},dh=function(e){return e.getParam("inline")},hh=function(e){return e.getParam("hidden_input")},ph=function(e){return e.getParam("submit_patch")},mh=function(e){return"xml"===e.getParam("encoding")},gh=function(e){return e.getParam("add_form_submit_trigger")},vh=function(e){return e.getParam("add_unload_trigger")},yh=function(e){return""!==Ed(e)},bh=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},wh=function(e){return e.getParam("disable_nodechange")},_h=function(e){return e.getParam("readonly")},xh=function(e){return e.getParam("content_css_cors")},Ch=function(e){return e.getParam("plugins","","string")},Sh=function(e){return e.getParam("external_plugins")},Eh=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},kh=function(e){return e.getParam("visual",!0,"boolean")},Th=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Ah=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Oh=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Rh=zr,Nh=Zr,Dh=function(e){var t=e.parentNode;t&&t.removeChild(e)},Bh=function(e){var t=pa(e);return{count:e.length-t.length,text:t}},Ph=function(e){var t;while(-1!==(t=e.data.lastIndexOf(da)))e.deleteData(t,1)},jh=function(e,t){return Uh(e),t},Lh=function(e,t){var n=Bh(e.data.substr(0,t.offset())),r=Bh(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Ph(e),Bf(e,t.offset()-n.count)):t},Mh=function(e,t){var n=t.container(),r=G(ye(n.childNodes),e).map((function(e){return e<t.offset()?Bf(n,t.offset()-1):t})).getOr(t);return Uh(e),r},Ih=function(e,t){return Nh(e)&&t.container()===e?Lh(e,t):jh(e,t)},Fh=function(e,t){return t.container()===e.parentNode?Mh(e,t):jh(e,t)},Vh=function(e,t){return Bf.isTextPosition(t)?Ih(e,t):Fh(e,t)},Uh=function(e){Rh(e)&&ba(e)&&(wa(e)?e.removeAttribute("data-mce-caret"):Dh(e)),Nh(e)&&(Ph(e),0===e.data.length&&Dh(e))},qh=$t().browser,zh=ao,Hh=so,$h=uo,Wh="*[contentEditable=false],video,audio,embed,object",Kh=function(e,t,n){var r,o,i=Jl(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,o=e.scrollTop||a.scrollTop}else{var u=e.getBoundingClientRect();r=e.scrollLeft-u.left,o=e.scrollTop-u.top}i.left+=r,i.right+=r,i.top+=o,i.bottom+=o,i.width=1;var s=t.offsetWidth-t.clientWidth;return s>0&&(n&&(s*=-1),i.left+=s,i.right+=s),i},Yh=function(e){for(var t=Tl(wn.fromDom(e),Wh),n=0;n<t.length;n++){var r=t[n].dom,o=r.previousSibling;if(Ta(o)){var i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(i.length-1,1)}if(o=r.nextSibling,ka(o)){i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(0,1)}}},Gh=function(e,t,n,r){var o,i,a=dl(),u=Ed(e),s=u.length>0?u:"p",c=function(e,r){var o;if(l(),$h(r))return null;if(!n(r))return i=_a(r,e),o=r.ownerDocument.createRange(),Xh(i.nextSibling)?(o.setStart(i,0),o.setEnd(i,0)):(o.setStart(i,1),o.setEnd(i,1)),o;i=Ea(s,r,e);var u=Kh(t,r,e);Bc(i).css("top",u.top);var c=Bc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(He({},u)).appendTo(t)[0];return a.set({caret:c,element:r,before:e}),e&&Bc(c).addClass("mce-visual-caret-before"),f(),o=r.ownerDocument.createRange(),o.setStart(i,0),o.setEnd(i,0),o},l=function(){Yh(t),i&&(Uh(i),i=null),a.on((function(e){Bc(e.caret).remove(),a.clear()})),o&&(Li.clearInterval(o),o=void 0)},f=function(){o=Li.setInterval((function(){r()?Bc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Bc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.on((function(e){var n=Kh(t,e.element,e.before);Bc(e.caret).css(He({},n))}))},h=function(){return Li.clearInterval(o)},p=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;}"};return{show:c,hide:l,getCss:p,reposition:d,destroy:h}},Qh=function(){return qh.isIE()||qh.isEdge()||qh.isFirefox()},Xh=function(e){return zh(e)||Hh(e)},Jh=function(e){return Xh(e)||Qr(e)&&Qh()},Zh=ao,ep=so,tp=$r("display","block table table-cell table-caption list-item"),np=ba,rp=va,op=zr,ip=Fa,ap=function(e){return e>0},up=function(e){return e<0},sp=function(e,t){var n;while(n=e(t))if(!rp(n))return n;return null},cp=function(e,t,n,r,o){var i=new Vi(e,r),a=Zh(e)||rp(e);if(up(t)){if(a&&(e=sp(i.prev.bind(i),!0),n(e)))return e;while(e=sp(i.prev.bind(i),o))if(n(e))return e}if(ap(t)){if(a&&(e=sp(i.next.bind(i),!0),n(e)))return e;while(e=sp(i.next.bind(i),o))if(n(e))return e}return null},lp=function(e,t){while(e&&e!==t){if(tp(e))return e;e=e.parentNode}return null},fp=function(e,t,n){return lp(e.container(),n)===lp(t.container(),n)},dp=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return op(n)?n.childNodes[r+e]:null},hp=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},pp=function(e,t,n){return lp(t,e)===lp(n,e)},mp=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var o=n[r];if(np(o)&&(o=o[r]),Zh(o)||ep(o)){if(pp(t,o,n))return o;break}if(ip(o))break;n=n.parentNode}return null},gp=B(hp,!0),vp=B(hp,!1),yp=function(e,t,n){var r,o=B(mp,!0,t),i=B(mp,!1,t),a=n.startContainer,u=n.startOffset;if(va(a)){op(a)||(a=a.parentNode);var s=a.getAttribute("data-mce-caret");if("before"===s&&(r=a.nextSibling,Jh(r)))return gp(r);if("after"===s&&(r=a.previousSibling,Jh(r)))return vp(r)}if(!n.collapsed)return n;if(Zr(a)){if(np(a)){if(1===e){if(r=i(a),r)return gp(r);if(r=o(a),r)return vp(r)}if(-1===e){if(r=o(a),r)return vp(r);if(r=i(a),r)return gp(r)}return n}if(Ta(a)&&u>=a.data.length-1)return 1===e&&(r=i(a),r)?gp(r):n;if(ka(a)&&u<=1)return-1===e&&(r=o(a),r)?vp(r):n;if(u===a.data.length)return r=i(a),r?gp(r):n;if(0===u)return r=o(a),r?vp(r):n}return n},bp=function(e,t){return H.from(dp(e?0:-1,t)).filter(Zh)},wp=function(e,t,n){var r=yp(e,t,n);return-1===e?Bf.fromRangeStart(r):Bf.fromRangeEnd(r)},_p=function(e){return H.from(e.getNode()).map(wn.fromDom)},xp=function(e){return H.from(e.getNode(!0)).map(wn.fromDom)},Cp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Sp=function(e,t){var n=fp(e,t);return!(n||!ro(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Pf||(Pf={}));var Ep=ao,kp=Zr,Tp=zr,Ap=ro,Op=Fa,Rp=Ha,Np=$a,Dp=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Bp=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Pp=function(e,t){if(ap(e)){if(Op(t.previousSibling)&&!kp(t.previousSibling))return Bf.before(t);if(kp(t))return Bf(t,0)}if(up(e)){if(Op(t.nextSibling)&&!kp(t.nextSibling))return Bf.after(t);if(kp(t))return Bf(t,t.data.length)}return up(e)?Ap(t)?Bf.before(t):Bf.after(t):Bf.before(t)},jp=function(e,t){var n=t.nextSibling;return n&&Op(n)?kp(n)?Bf(n,0):Bf.before(n):Lp(Pf.Forwards,Bf.after(t),e)},Lp=function(e,t,n){var r,o,i,a;if(!Tp(n)||!t)return null;if(t.isEqual(Bf.after(n))&&n.lastChild){if(a=Bf.after(n.lastChild),up(e)&&Op(n.lastChild)&&Tp(n.lastChild))return Ap(n.lastChild)?Bf.before(n.lastChild):a}else a=t;var u=a.container(),s=a.offset();if(kp(u)){if(up(e)&&s>0)return Bf(u,--s);if(ap(e)&&s<u.length)return Bf(u,++s);r=u}else{if(up(e)&&s>0&&(o=Bp(u,s-1),Op(o)))return!Rp(o)&&(i=cp(o,e,Np,o),i)?kp(i)?Bf(i,i.data.length):Bf.after(i):kp(o)?Bf(o,o.data.length):Bf.before(o);if(ap(e)&&s<u.childNodes.length&&(o=Bp(u,s),Op(o)))return Ap(o)?jp(n,o):!Rp(o)&&(i=cp(o,e,Np,o),i)?kp(i)?Bf(i,0):Bf.before(i):kp(o)?Bf(o,0):Bf.after(o);r=o||a.getNode()}if((ap(e)&&a.isAtEnd()||up(e)&&a.isAtStart())&&(r=cp(r,e,F,n,!0),Np(r,n)))return Pp(e,r);o=cp(r,e,Np,n);var c=ze(ne(Dp(u,n),Ep));return!c||o&&c.contains(o)?o?Pp(e,o):null:(a=ap(e)?Bf.after(c):Bf.before(c),a)},Mp=function(e){return{next:function(t){return Lp(Pf.Forwards,t,e)},prev:function(t){return Lp(Pf.Backwards,t,e)}}},Ip=function(e,t,n){var r=e?Bf.before(n):Bf.after(n);return $p(e,t,r)},Fp=function(e){return ro(e)?Bf.before(e):Bf.after(e)},Vp=function(e){return Bf.isTextPosition(e)?0===e.offset():Fa(e.getNode())},Up=function(e){if(Bf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Fa(e.getNode(!0))},qp=function(e,t){return!Bf.isTextPosition(e)&&!Bf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},zp=function(e){return!Bf.isTextPosition(e)&&ro(e.getNode())},Hp=function(e,t,n){return e?!qp(t,n)&&!zp(t)&&Up(t)&&Vp(n):!qp(n,t)&&Vp(t)&&Up(n)},$p=function(e,t,n){var r=Mp(t);return H.from(e?r.next(n):r.prev(n))},Wp=function(e,t,n){return $p(e,t,n).bind((function(r){return fp(n,r,t)&&Hp(e,n,r)?$p(e,t,r):H.some(r)}))},Kp=function(e,t,n,r){return Wp(e,t,n).bind((function(n){return r(n)?Kp(e,t,n,r):H.some(n)}))},Yp=function(e,t){var n=e?t.firstChild:t.lastChild;return Zr(n)?H.some(Bf(n,e?0:n.data.length)):n?Fa(n)?H.some(e?Bf.before(n):Fp(n)):Ip(e,t,n):H.none()},Gp=B($p,!0),Qp=B($p,!1),Xp=B(Yp,!0),Jp=B(Yp,!1),Zp="_mce_caret",em=function(e){return zr(e)&&e.id===Zp},tm=function(e,t){while(t&&t!==e){if(t.id===Zp)return t;t=t.parentNode}return null},nm=function(e){return v(e.start)},rm=function(e){return De(e,"rng")},om=function(e){return De(e,"id")},im=function(e){return De(e,"name")},am=function(e){return pn.isArray(e.start)},um=function(e,t){return zr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},sm=function(e,t){var n,r=e.createRng();return n=Jf(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Jf(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},cm=function(e,t){var n=e.ownerDocument.createTextNode(da);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},lm=function(e){return!1===e.hasChildNodes()},fm=function(e,t){return Jp(e).fold(I,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},dm=function(e,t,n){return!(!lm(t)||!tm(e,t))&&(cm(t,n),!0)},hm=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],c=e.getRoot();if(s){for(a=s[0],i=c,o=s.length-1;o>=1;o--){if(u=i.childNodes,dm(c,i,r))return!0;if(s[o]>u.length-1)return!!dm(c,i,r)||fm(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},pm=function(e){return Zr(e)&&e.data.length>0},mm=function(e,t,n){var r,o,i,a,u,s,c=e.get(n.id+"_"+t),l=n.keep;if(c){if(r=c.parentNode,"start"===t?(l?c.hasChildNodes()?(r=c.firstChild,o=1):pm(c.nextSibling)?(r=c.nextSibling,o=0):pm(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)+1):o=e.nodeIndex(c),u=r,s=o):(l?c.hasChildNodes()?(r=c.firstChild,o=1):pm(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)):o=e.nodeIndex(c),u=r,s=o),!l){a=c.previousSibling,i=c.nextSibling,pn.each(pn.grep(c.childNodes),(function(e){Zr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(c=e.get(n.id+"_"+t))e.remove(c,!0);a&&i&&a.nodeType===i.nodeType&&Zr(a)&&!en.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return H.some(Bf(u,s))}return H.none()},gm=function(e,t){var n=e.createRng();return hm(e,!0,t,n)&&hm(e,!1,t,n)?H.some(n):H.none()},vm=function(e,t){var n=mm(e,"start",t),r=mm(e,"end",t);return fo(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(um(e,t.container()),t.offset()),r.setEnd(um(e,n.container()),n.offset()),r}))},ym=function(e,t){return H.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},bm=function(e,t){var n=e.dom;if(t){if(am(t))return gm(n,t);if(nm(t))return H.some(sm(n,t));if(om(t))return vm(n,t);if(im(t))return ym(n,t);if(rm(t))return H.some(t.rng)}return H.none()},wm=function(e,t,n){return hd(e,t,n)},_m=function(e,t){bm(e,t).each((function(t){e.setRng(t)}))},xm=function(e){return zr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Cm=function(e){return function(t){return e===t}},Sm=Cm(ca),Em=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},km=function(e){return!Em(e)&&!Sm(e)},Tm=function(e){return!!e.nodeType},Am=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Om=function(e,t,n){var r=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!Am(o.childNodes[r]))&&zr(o)){var i=o.childNodes,a=void 0;r<i.length?(o=i[r],a=new Vi(o,e.getParent(o,e.isBlock))):(o=i[i.length-1],a=new Vi(o,e.getParent(o,e.isBlock)),a.next(!0));for(var u=a.current();u;u=a.next())if(Zr(u)&&!Bm(u))return n.setStart(u,0),void t.setRng(n)}},Rm=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(zr(e)||!Bm(e))return e}},Nm=function(e,t){return Tm(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Dm=function(e,t,n){return e.schema.isValidChild(t,n)},Bm=function(e,t){if(void 0===t&&(t=!1),S(e)&&Zr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ka(n)}return!1},Pm=function(e){return S(e)&&Zr(e)&&0===e.length},jm=function(e,t){return E(e)?e=e(t):S(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Lm=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Mm=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},Im=function(e,t,n){return Mm(e,e.getStyle(t,n),n)},Fm=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Vm=function(e,t,n){return e.getParents(t,n,e.getRoot())},Um=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return X(["styles","attributes"],(function(n){return Ne(e,n).exists((function(e){var n=b(e)?e:Re(e);return X(n,t)}))}))};return X(e.formatter.get(t),n)},qm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],o=function(e){return Ae(e,(function(e,t){return X(r,(function(e){return e===t}))}))};return X(e.formatter.get(t),(function(t){var r=o(t);return X(e.formatter.get(n),(function(e){var t=o(e);return Pe(r,t)}))}))},zm=function(e){return Be(e,"block")},Hm=function(e){return Be(e,"selector")},$m=function(e){return Be(e,"inline")},Wm=function(e){return Hm(e)&&$m(e)&&co(Ne(e,"mixed"),!0)},Km=function(e){return Hm(e)&&!1!==e.expand&&!$m(e)},Ym=xm,Gm=Vm,Qm=Bm,Xm=Nm,Jm=function(e){return ro(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Zm=function(e,t){var n=t;while(n){if(zr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},eg=function(e,t,n,r){for(var o=t.data,i=n;e?i>=0:i<o.length;e?i--:i++)if(r(o.charAt(i)))return e?i+1:i;return-1},tg=function(e,t,n){return eg(e,t,n,(function(e){return Sm(e)||Em(e)}))},ng=function(e,t,n){return eg(e,t,n,km)},rg=function(e,t,n,r,o,i){var a,u=e.getParent(n,e.isBlock)||t,s=function(t,n,r){var i=Gl(e),s=o?i.backwards:i.forwards;return H.from(s(t,n,(function(e,t){return Ym(e.parentNode)?-1:(a=e,r(o,e,t))}),u))},c=s(n,r,tg);return c.bind((function(e){return i?s(e.container,e.offset+(o?-1:0),ng):H.some(e)})).orThunk((function(){return a?H.some({container:a,offset:o?0:a.length}):H.none()}))},og=function(e,t,n,r,o){Zr(r)&&mt(r.data)&&r[o]&&(r=r[o]);for(var i=Gm(e,r),a=0;a<i.length;a++)for(var u=0;u<t.length;u++){var s=t[u];if((!S(s.collapsed)||s.collapsed===n.collapsed)&&(Hm(s)&&e.is(i[a],s.selector)))return i[a]}return r},ig=function(e,t,n,r){var o=n,i=e.dom,a=i.getRoot(),u=t[0];if(zm(u)&&(o=u.wrapper?null:i.getParent(n,u.block,a)),!o){var s=i.getParent(n,"LI,TD,TH");o=i.getParent(Zr(n)?n.parentNode:n,(function(t){return t!==a&&Xm(e,t)}),s)}if(o&&zm(u)&&u.wrapper&&(o=Gm(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Lm(o,"br"))break}return o||n},ag=function(e,t,n,r){var o=n.parentNode;return!S(n[r])&&(!(o!==t&&!C(o)&&!e.isBlock(o))||ag(e,t,o,r))},ug=function(e,t,n,r,o){var i=n,a=o?"previousSibling":"nextSibling",u=e.getRoot();if(Zr(n)&&!Qm(n)&&(o?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(i))return i;for(var s=i[a];s;s=s[a]){var c=Zr(s)&&!ag(e,u,s,a);if(!Ym(s)&&!Jm(s)&&!Qm(s,c))return i}if(i===u||i.parentNode===u){n=i;break}i=i.parentNode}return n},sg=function(e){return Ym(e.parentNode)||Ym(e)},cg=function(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset,s=e.dom,c=n[0];if(zr(o)&&o.hasChildNodes()&&(o=uf(o,i),Zr(o)&&(i=0)),zr(a)&&a.hasChildNodes()&&(a=uf(a,t.collapsed?u:u-1),Zr(a)&&(u=a.nodeValue.length)),o=Zm(s,o),a=Zm(s,a),sg(o)&&(o=Ym(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,Zr(o)&&(i=t.collapsed?o.length:0)),sg(a)&&(a=Ym(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(u=t.collapsed?0:a.length)),t.collapsed){var l=rg(s,e.getBody(),o,i,!0,r);l.each((function(e){var t=e.container,n=e.offset;o=t,i=n}));var f=rg(s,e.getBody(),a,u,!1,r);f.each((function(e){var t=e.container,n=e.offset;a=t,u=n}))}return($m(c)||c.block_expand)&&($m(c)&&Zr(o)&&0!==i||(o=ug(s,n,o,i,!0)),$m(c)&&Zr(a)&&u!==a.nodeValue.length||(a=ug(s,n,a,u,!1))),Km(c)&&(o=og(s,n,t,o,"previousSibling"),a=og(s,n,t,a,"nextSibling")),(zm(c)||Hm(c))&&(o=ig(e,n,o,"previousSibling"),a=ig(e,n,a,"nextSibling"),zm(c)&&(s.isBlock(o)||(o=ug(s,n,o,i,!0)),s.isBlock(a)||(a=ug(s,n,a,u,!1)))),zr(o)&&(i=s.nodeIndex(o),o=o.parentNode),zr(a)&&(u=s.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:u}},lg=function(e,t,n){var r=t.startOffset,o=uf(t.startContainer,r),i=t.endOffset,a=uf(t.endContainer,i-1),u=function(e){var t=e[0];Zr(t)&&t===o&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===i&&e.length>0&&n===a&&Zr(n)&&e.splice(e.length-1,1),e},s=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},c=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var c=s(i===e?i:i[o],o);c.length&&(r||c.reverse(),n(u(c)))}};if(o===a)return n(u([o]));var f=e.findCommonAncestor(o,a);if(e.isChildOf(o,a))return l(o,f,!0);if(e.isChildOf(a,o))return l(a,f);var d=c(o,f)||o,h=c(a,f)||a;l(o,d,!0);var p=s(d===o?d:d.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(u(p)),l(a,h)},fg=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},dg=function(e){return ce(e,(function(e){var t=af(e);return t?[wn.fromDom(t)]:[]}))},hg=function(e){return fg(e).length>1},pg=function(e){return ne(dg(e),ia)},mg=function(e){return Tl(e,"td[data-mce-selected],th[data-mce-selected]")},gg=function(e,t){var n=mg(t);return n.length>0?n:pg(e)},vg=function(e){return gg(fg(e.selection.getSel()),wn.fromDom(e.getBody()))},yg=function(e,t){return ki(e,"table",t)},bg=function(e){var t=e.startContainer,n=e.startOffset;return Zr(t)?0===n?H.some(wn.fromDom(t)):H.none():H.from(t.childNodes[n]).map(wn.fromDom)},wg=function(e){var t=e.endContainer,n=e.endOffset;return Zr(t)?n===t.data.length?H.some(wn.fromDom(t)):H.none():H.from(t.childNodes[n-1]).map(wn.fromDom)},_g=function(e){return ir(e).fold(R([e]),(function(t){return[e].concat(_g(t))}))},xg=function(e){return ar(e).fold(R([e]),(function(t){return"br"===Mn(t)?Zn(t).map((function(t){return[e].concat(xg(t))})).getOr([]):[e].concat(xg(t))}))},Cg=function(e,t){return fo(bg(t),wg(t),(function(t,n){var r=ae(_g(e),B(Bn,t)),o=ae(xg(e),B(Bn,n));return r.isSome()&&o.isSome()})).getOr(!1)},Sg=function(e,t,n,r){var o=n,i=new Vi(n,o),a=Ae(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!Q(["td","th","table"],t.toLowerCase())}));do{if(Zr(n)&&0!==pn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},Eg=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},kg=function(e,t){var n=vg(e);n.length>0?Z(n,(function(n){var r=n.dom,o=e.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),t(o,!0)})):t(e.selection.getRng(),!1)},Tg=function(e,t,n){var r=dd(e,t);n(r),e.moveToBookmark(r)},Ag=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?H.from(t.dom.nodeValue):H.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Og=Ag(qn,"text"),Rg=function(e){return Og.get(e)},Ng=function(e){return qn(e)&&Rg(e)===da},Dg=function(e,t,n,r){return Qn(t).fold((function(){return"skipping"}),(function(o){return"br"===r||Ng(t)?"valid":Dl(t)?"existing":em(t.dom)?"caret":Dm(e,n,r)&&Dm(e,Mn(o),n)?"valid":"invalid-child"}))},Bg=function(e,t){var n=cg(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Pg=function(e,t,n,r){var o=t.uid,i=void 0===o?Fl("mce-annotation"):o,a=$e(t,["uid"]),u=wn.fromTag("span",e);xl(u,Al()),vo(u,""+Rl(),i),vo(u,""+Ol(),n);var s=r(i,a),c=s.attributes,l=void 0===c?{}:c,f=s.classes,d=void 0===f?[]:f;return yo(u,l),Vl(u,d),u},jg=function(e,t,n,r,o){var i=[],a=Pg(e.getDoc(),o,n,r),u=dl(),s=function(){u.clear()},c=function(){return u.get().getOrThunk((function(){var e=Wl(a);return i.push(e),u.set(e),e}))},l=function(e){Z(e,f)},f=function(t){var n=Dg(e,t,"span",Mn(t));switch(n){case"invalid-child":s();var r=rr(t);l(r),s();break;case"valid":var o=c();xr(t,o);break}},d=function(e){var t=J(e,wn.fromDom);l(t)};return lg(e.dom,t,(function(e){s(),d(e)})),i},Lg=function(e,t,n,r){e.undoManager.transact((function(){var o=e.selection,i=o.getRng(),a=vg(e).length>0;if(i.collapsed&&!a&&Bg(e,i),o.getRng().collapsed&&!a){var u=Pg(e.getDoc(),r,t,n.decorate);Hl(u,ca),o.getRng().insertNode(u.dom),o.select(u.dom)}else Tg(o,!1,(function(){kg(e,(function(o){jg(e,o,t,n.decorate,r)}))}))}))},Mg=function(e){var t=Ml();Ll(e,t);var n=jl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Lg(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Nl(e,H.some(t)).each((function(e){var t=e.elements;Z(t,Tr)}))},getAll:function(t){var n=Pl(e,t);return Ce(n,(function(e){return J(e,(function(e){return e.dom}))}))}}},Ig=function(e){return{getBookmark:B(wm,e),moveToBookmark:B(_m,e)}};Ig.isBookmarkNode=xm;var Fg=function(e,t){while(t&&t!==e){if(io(t)||ao(t))return t;t=t.parentNode}return null},Vg=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(zr(r))return X(r.getClientRects(),(function(n){return rf(n,e,t)}))}return X(n.getClientRects(),(function(n){return rf(n,e,t)}))},Ug=function(e,t){return e.fire("PreProcess",t)},qg=function(e,t){return e.fire("PostProcess",t)},zg=function(e){return e.fire("remove")},Hg=function(e){return e.fire("detach")},$g=function(e,t){return e.fire("SwitchMode",{mode:t})},Wg=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},Kg=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},Yg=function(e){return e.fire("PreInit")},Gg=function(e){return e.fire("PostRender")},Qg=function(e){return e.fire("Init")},Xg=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Jg=function(e,t,n){return e.fire(t,n)},Zg=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ao,rv=function(e,t){var n,r,o,i,a,u,s,c,l,f,d,h,p,m,g,v,y,b="data-mce-selected",w=t.dom,_=pn.each,x=t.getDoc(),C=document,E=Math.abs,k=Math.round,T=t.getBody(),A={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},O=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},R=function(e){return so(e)||w.hasClass(e,"mce-preview-object")},N=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return O(e.target)&&!Vg(n.clientX,n.clientY,t)}return O(e.target)&&!Vg(e.clientX,e.clientY,t)},D=function(e){var n=e.target;N(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},B=function(e){return w.is(e,"figure.image")?[e.querySelector("img")]:w.hasClass(e,"mce-preview-object")&&S(e.firstElementChild)?[e,e.firstElementChild]:[e]},P=function(e){var n=Zd(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(w.hasClass(e,"mce-preview-object")?On(wn.fromDom(e.firstElementChild),n):On(wn.fromDom(e),n))))},j=function(e){return R(e)?w.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},L=function(e,n,r){if(S(r)){var o=B(e);Z(o,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?w.setStyle(e,n,r):w.setAttrib(e,n,""+r)}))}},M=function(e,t,n){L(e,"width",t),L(e,"height",n)},I=function(e){var a,b,_,x,C;a=e.screenX-u,b=e.screenY-s,m=a*i[2]+f,g=b*i[3]+d,m=m<5?5:m,g=g<5?5:g,_=(O(n)||R(n))&&!1!==eh(t)?!tv.modifierPressed(e):tv.modifierPressed(e),_&&(E(a)>E(b)?(g=k(m*h),m=k(g/h)):(m=k(g/h),g=k(m*h))),M(r,m,g),x=i.startPos.x+a,C=i.startPos.y+b,x=x>0?x:0,C=C>0?C:0,w.setStyles(o,{left:x,top:C,display:"block"}),o.innerHTML=m+" &times; "+g,i[2]<0&&r.clientWidth<=m&&w.setStyle(r,"left",c+(f-m)),i[3]<0&&r.clientHeight<=g&&w.setStyle(r,"top",l+(d-g)),a=T.scrollWidth-v,b=T.scrollHeight-y,a+b!==0&&w.setStyles(o,{left:x-a,top:C-b}),p||(Wg(t,n,f,d,"corner-"+i.name),p=!0)},F=function(){var e=p;p=!1,e&&(L(n,"width",m),L(n,"height",g)),w.unbind(x,"mousemove",I),w.unbind(x,"mouseup",F),C!==x&&(w.unbind(C,"mousemove",I),w.unbind(C,"mouseup",F)),w.remove(r),w.remove(o),w.remove(a),V(n),e&&(Kg(t,n,m,g,"corner-"+i.name),w.setAttrib(n,"style",w.getAttrib(n,"style"))),t.nodeChanged()},V=function(e){H();var c=w.getPos(e,T),l=c.x,p=c.y,S=e.getBoundingClientRect(),E=S.width||S.right-S.left,k=S.height||S.bottom-S.top;n!==e&&(U(),n=e,m=g=0);var O=t.fire("ObjectSelected",{target:e}),R=w.getAttrib(n,b,"1");P(e)&&!O.isDefaultPrevented()?_(A,(function(e,t){var c,m=function(c){var m=B(n)[0];u=c.screenX,s=c.screenY,f=m.clientWidth,d=m.clientHeight,h=d/f,i=e,i.name=t,i.startPos={x:E*e[0]+l,y:k*e[1]+p},v=T.scrollWidth,y=T.scrollHeight,a=w.add(T,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),w.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=j(n),w.addClass(r,"mce-clonedresizable"),w.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",w.setStyles(r,{left:l,top:p,margin:0}),M(r,E,k),r.removeAttribute(b),T.appendChild(r),w.bind(x,"mousemove",I),w.bind(x,"mouseup",F),C!==x&&(w.bind(C,"mousemove",I),w.bind(C,"mouseup",F)),o=w.add(T,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" &times; "+d)};c=w.get("mceResizeHandle"+t),c&&w.remove(c),c=w.add(T,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(c.contentEditable=!1),w.bind(c,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=c,w.setStyles(c,{left:E*e[0]+l-c.offsetWidth/2,top:k*e[1]+p-c.offsetHeight/2})})):U(),w.getAttrib(n,b)||n.setAttribute(b,R)},U=function(){H(),n&&n.removeAttribute(b),xe(A,(function(e,t){var n=w.get("mceResizeHandle"+t);n&&(w.unbind(n),w.remove(n))}))},q=function(n){var r,o,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(_(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(b)})),o="mousedown"===n.type?n.target:e.getNode(),o=w.$(o).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],i(o,T)&&($(),r=e.getStart(!0),i(r,o)&&i(e.getEnd(!0),o))?V(o):U())},z=function(e){return nv(Fg(t.getBody(),e))},H=function(){xe(A,(function(e){e.elm&&(w.unbind(e.elm),delete e.elm)}))},$=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if($(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||z(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Li.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(z(e.target)||so(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};w.bind(T,"mscontrolselect",e),t.on("remove",(function(){return w.unbind(T,"mscontrolselect",e)}))}var r=Li.throttle((function(e){t.composing||q(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",U),t.on("contextmenu longpress",D,!0)})),t.on("remove",H);var W=function(){n=r=a=null};return{isResizable:P,showResizeRect:V,hideResizeRect:U,updateResizeRect:q,destroy:W}},ov=function(e){return io(e)||ao(e)},iv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,o=n.elementFromPoint(e,t),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),r=pn.toArray(i.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(a){}}return null},uv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ao(iv(n,t,ov))?null:e},sv=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(i.caretRangeFromPoint)r=i.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return uv(r,n.body)}return r},cv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},lv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},fv=function(e,t,n){return null!==lv(e,t,n)},dv=function(e,t,n){return fv(e,t,(function(e){return e.nodeName===n}))},hv=function(e){return e&&"TABLE"===e.nodeName},pv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},mv=function(e,t){return ba(e)&&!1===fv(e,t,em)},gv=function(e,t,n){var r=new Vi(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ro(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},yv=function(e,t){while(t&&t!==e){if(ao(t))return!0;t=t.parentNode}return!1},bv=function(e,t,n,r,o){var i,a,u=e.getRoot(),s=e.schema.getNonEmptyElements(),c=e.getParent(o.parentNode,e.isBlock)||u;if(r&&ro(o)&&t&&e.isEmpty(c))return H.some(Bf(o.parentNode,e.nodeIndex(o)));var l=new Vi(o,c);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||mv(a,u))return H.none();if(Zr(a)&&a.nodeValue.length>0)return!1===dv(a,u,"A")?H.some(Bf(a,r?a.nodeValue.length:0)):H.none();if(e.isBlock(a)||s[a.nodeName.toLowerCase()])return H.none();i=a}return n&&i?H.some(Bf(i,0)):H.none()},wv=function(e,t,n,r){var o,i,a,u,s=e.getRoot(),c=!1;o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"];var l=zr(o)&&i===o.childNodes.length,f=e.schema.getNonEmptyElements();if(u=n,ba(o))return H.none();if(zr(o)&&i>o.childNodes.length-1&&(u=!1),to(o)&&(o=s,i=0),o===s){if(u&&(a=o.childNodes[i>0?i-1:0],a)){if(ba(a))return H.none();if(f[a.nodeName]||hv(a))return H.none()}if(o.hasChildNodes()){if(i=Math.min(!u&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Zr(o)&&l?o.data.length:0,!t&&o===s.lastChild&&hv(o))return H.none();if(yv(s,o)||ba(o))return H.none();if(o.hasChildNodes()&&!1===hv(o)){a=o;var d=new Vi(o,s);do{if(ao(a)||ba(a)){c=!1;break}if(Zr(a)&&a.nodeValue.length>0){i=u?0:a.nodeValue.length,o=a,c=!0;break}if(f[a.nodeName.toLowerCase()]&&!pv(a)){i=e.nodeIndex(a),o=a.parentNode,u||i++,c=!0;break}}while(a=u?d.next():d.prev())}}}return t&&(Zr(o)&&0===i&&bv(e,l,t,!0,o).each((function(e){o=e.container(),i=e.offset(),c=!0})),zr(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!ro(a)||vv(a,"A")||gv(e,a,!1)||gv(e,a,!0)||bv(e,l,t,!0,a).each((function(e){o=e.container(),i=e.offset(),c=!0})))),u&&!t&&Zr(o)&&i===o.nodeValue.length&&bv(e,l,t,!1,o).each((function(e){o=e.container(),i=e.offset(),c=!0})),c?H.some(Bf(o,i)):H.none()},_v=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Bf.fromRangeStart(t);return wv(e,n,!0,r).each((function(e){n&&Bf.isAbove(o,e)||r.setStart(e.container(),e.offset())})),n||wv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),cv(t,r)?H.none():H.some(r)},xv=function(e,t){return e.splitText(t)},Cv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Zr(t)?n>0&&n<t.nodeValue.length&&(r=xv(t,n),t=r.previousSibling,o>n?(o-=n,t=r=xv(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(Zr(t)&&n>0&&n<t.nodeValue.length&&(t=xv(t,n),n=0),Zr(r)&&o>0&&o<r.nodeValue.length&&(r=xv(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},Sv=function(e){var t=function(t,n){return lg(e,t,n)},n=Cv,r=function(t){return _v(e,t).fold(I,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};Sv.compareRanges=cv,Sv.getCaretRangeFromPoint=sv,Sv.getSelectedNode=af,Sv.getNode=uf;var Ev,kv=function(e,t){var n=function(t,n){if(!k(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;mo(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=ko(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return oe(t,(function(t,n){var r=ko(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},Tv=kv("height",(function(e){var t=e.dom;return Ar(e)?t.getBoundingClientRect().height:t.offsetHeight})),Av=function(e){return Tv.get(e)},Ov=function(e,t){var n=e.view(t);return n.fold(R([]),(function(t){var n=e.owner(t),r=Ov(e,n);return[t].concat(r)}))},Rv=function(e,t){var n=t.owner(e);return Ov(t,n)},Nv=function(e){var t,n=e.dom===document?H.none():H.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(wn.fromDom)},Dv=function(e){return Kn(e)},Bv=Object.freeze({__proto__:null,view:Nv,owner:Dv}),Pv=function(e){var t=wn.fromDom(document),n=jr(t),r=Rv(e,Bv),o=Pr(e),i=re(r,(function(e,t){var n=Pr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Rr(i.left+o.left+n.left,i.top+o.top+n.top)},jv=function(e){return"textarea"===Mn(e)},Lv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Mv=function(e,t){e.fire("AfterScrollIntoView",t)},Iv=function(e,t){var n=rr(e);if(0===n.length||jv(e))return{element:e,offset:t};if(t<n.length&&!jv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return jv(r)?{element:e,offset:t}:"img"===Mn(r)?{element:r,offset:1}:qn(r)?{element:r,offset:Rg(r).length}:{element:r,offset:rr(r).length}},Fv=function(e,t){var n=Br(e),r=Av(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Vv=function(e,t){var n=Iv(e,t),r=wn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+da+"</span>");return yr(n.element,r),Fv(r,(function(){return kr(r)}))},Uv=function(e){return Fv(wn.fromDom(e),T)},qv=function(e,t,n,r){Wv(e,(function(o,i){return Hv(e,t,n,r)}),n)},zv=function(e,t,n,r,o){var i={elm:r.element.dom,alignToTop:o};if(!Lv(e,i)){var a=jr(t).top;n(t,a,r,o),Mv(e,i)}},Hv=function(e,t,n,r){var o=wn.fromDom(e.getBody()),i=wn.fromDom(e.getDoc());Ro(o);var a=Vv(wn.fromDom(n.startContainer),n.startOffset);zv(e,i,t,a,r),a.cleanup()},$v=function(e,t,n,r){var o=wn.fromDom(e.getDoc());zv(e,o,n,Uv(t),r)},Wv=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(wn.fromDom(r),wn.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},Kv=function(e,t,n,r){var o=e.pos;if(n)Lr(o.left,o.top,r);else{var i=o.top-t+e.height;Lr(o.left,i,r)}},Yv=function(e,t,n,r,o){var i=n+t,a=r.pos.top,u=r.bottom,s=u-a>=n;if(a<t)Kv(r,n,!1!==o,e);else if(a>i){var c=s?!1!==o:!0===o;Kv(r,n,c,e)}else u>i&&!s&&Kv(r,n,!0===o,e)},Gv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Yv(e,t,o,n,r)},Qv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Yv(e,t,o,n,r);var i=Pv(n.element),a=Vr(window);i.top<a.y?Mr(n.element,!1!==r):i.top>a.bottom&&Mr(n.element,!0===r)},Xv=function(e,t,n){return qv(e,Gv,t,n)},Jv=function(e,t,n){return $v(e,t,Gv,n)},Zv=function(e,t,n){return qv(e,Qv,t,n)},ey=function(e,t,n){return $v(e,t,Qv,n)},ty=function(e,t,n){var r=e.inline?Jv:ey;r(e,t,n)},ny=function(e,t,n){var r=e.inline?Xv:Zv;r(e,t,n)},ry=function(){return wn.fromDom(document)},oy=function(e){return e.dom.focus()},iy=function(e){var t=dr(e).dom;return e.dom===t.activeElement},ay=function(e){return void 0===e&&(e=ry()),H.from(e.dom.activeElement).map(wn.fromDom)},uy=function(e){return ay(dr(e)).filter((function(t){return e.dom.contains(t.dom)}))},sy=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},cy={create:sy},ly=ei.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fy=function(e,t,n,r){return e.fold(t,n,r)},dy=function(e){return e.fold(N,N,N)},hy=ly.before,py=ly.on,my=ly.after,gy={before:hy,on:py,after:my,cata:fy,getStart:dy},vy=ei.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),yy=function(e){return vy.exact(e.start,e.soffset,e.finish,e.foffset)},by=function(e){return e.match({domRange:function(e){return wn.fromDom(e.startContainer)},relative:function(e,t){return gy.getStart(e)},exact:function(e,t,n,r){return e}})},wy=vy.domRange,_y=vy.relative,xy=vy.exact,Cy=function(e){var t=by(e);return Gn(t)},Sy=cy.create,Ey={domRange:wy,relative:_y,exact:xy,exactFromRange:yy,getWin:Cy,range:Sy},ky=$t().browser,Ty=function(e,t){var n=qn(t)?Rg(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Ay=function(e){return Ey.range(e.start,Ty(e.soffset,e.start),e.finish,Ty(e.foffset,e.finish))},Oy=function(e,t){return!qr(t.dom)&&(Ln(e,t)||Bn(e,t))},Ry=function(e){return function(t){return Oy(e,t.start)&&Oy(e,t.finish)}},Ny=function(e){return!0===e.inline||ky.isIE()},Dy=function(e){return Ey.range(wn.fromDom(e.startContainer),e.startOffset,wn.fromDom(e.endContainer),e.endOffset)},By=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?H.from(t.getRangeAt(0)):H.none();return n.map(Dy)},Py=function(e){var t=Gn(e);return By(t.dom).filter(Ry(e))},jy=function(e,t){return H.from(t).filter(Ry(e)).map(Ay)},Ly=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),H.some(t)}catch(n){return H.none()}},My=function(e){var t=Ny(e)?Py(wn.fromDom(e.getBody())):H.none();e.bookmark=t.isSome()?t:e.bookmark},Iy=function(e,t){var n=wn.fromDom(e.getBody()),r=Ny(e)?H.from(t):H.none(),o=r.map(Dy).filter(Ry(n));e.bookmark=o.isSome()?o:e.bookmark},Fy=function(e){var t=e.bookmark?e.bookmark:H.none();return t.bind((function(t){return jy(wn.fromDom(e.getBody()),t)})).bind(Ly)},Vy=function(e){Fy(e).each((function(t){return e.selection.setRng(t)}))},Uy=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},qy={isEditorUIElement:Uy},zy=function(e){return"nodechange"===e.type&&e.selectionChange},Hy=function(e,t){var n=function(){t.throttle()};Uc.DOM.bind(document,"mouseup",n),e.on("remove",(function(){Uc.DOM.unbind(document,"mouseup",n)}))},$y=function(e){e.on("focusout",(function(){My(e)}))},Wy=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Ky=function(e,t){var n=$t().browser;n.isIE()?$y(e):Wy(e,t),e.on("keyup NodeChange",(function(t){zy(t)||My(e)}))},Yy=function(e){var t=hl((function(){My(e)}),0);e.on("init",(function(){e.inline&&Hy(e,t),Ky(e,t)})),e.on("remove",(function(){t.cancel()}))},Gy=Uc.DOM,Qy=function(e){return qy.isEditorUIElement(e)},Xy=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Jy=function(e,t){var n=lh(e),r=Gy.getParent(t,(function(t){return Qy(t)||!!n&&e.dom.is(t,n)}));return null!==r},Zy=function(e){try{var t=dr(wn.fromDom(e.getElement()));return ay(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},eb=function(e,t){var n=t.editor;Yy(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Li.setEditorTimeout(n,(function(){var t=e.focusedEditor;Jy(n,Zy(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Ev||(Ev=function(t){var n=e.activeEditor;n&&gr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Jy(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Gy.bind(document,"focusin",Ev))},tb=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Gy.unbind(document,"focusin",Ev),Ev=null)},nb=function(e){e.on("AddEditor",B(eb,e)),e.on("RemoveEditor",B(tb,e))},rb=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},ob=function(e){return e.collapsed?H.from(uf(e.startContainer,e.startOffset)).map(wn.fromDom):H.none()},ib=function(e,t){return ob(t).bind((function(t){return oa(t)?H.some(t):!1===Ln(e,t)?H.some(e):H.none()}))},ab=function(e,t){ib(wn.fromDom(e.getBody()),t).bind((function(e){return Xp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},ub=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},sb=function(e){return iy(e)||uy(e).isSome()},cb=function(e){return e.iframeElement&&iy(wn.fromDom(e.iframeElement))},lb=function(e){var t=e.getBody();return t&&sb(wn.fromDom(t))},fb=function(e){var t=dr(wn.fromDom(e.getElement()));return ay(t).filter((function(t){return!Xy(t.dom)&&Jy(e,t.dom)})).isSome()},db=function(e){return e.inline?lb(e):cb(e)},hb=function(e){return db(e)||fb(e)},pb=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===db(e)&&Fy(e).each((function(t){e.selection.setRng(t),r=t}));var o=rb(e,t.getNode());if(e.$.contains(n,o))return ub(o),ab(e,r),void mb(e);e.inline||(en.opera||ub(n),e.getWin().focus()),(en.gecko||e.inline)&&(ub(n),ab(e,r)),mb(e)},mb=function(e){return e.editorManager.setActive(e)},gb=function(e,t){e.removed||(t?mb(e):pb(e))},vb=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return H.from(i).map(wn.fromDom).map((function(e){return r&&t.collapsed?e:or(e,o(e,a)).getOr(e)})).bind((function(e){return Un(e)?H.some(e):Qn(e).filter(Un)})).map((function(e){return e.dom})).getOr(e)},yb=function(e,t,n){return vb(e,t,!0,n,(function(e,t){return Math.min(ur(e),t)}))},bb=function(e,t,n){return vb(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},wb=function(e,t){var n=e;while(e&&Zr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},_b=function(e,t){var n,r,o;if(!t)return e;r=t.startContainer,o=t.endContainer;var i=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?wb(r.nextSibling,!0):r.parentNode,o=0===a?wb(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n},xb=function(e,t,n,r){var o,i=[],a=e.getRoot();if(n=e.getParent(n||yb(a,t,t.collapsed),e.isBlock),r=e.getParent(r||bb(a,t,t.collapsed),e.isBlock),n&&n!==a&&i.push(n),n&&r&&n!==r){o=n;var u=new Vi(n,a);while((o=u.next())&&o!==r)e.isBlock(o)&&i.push(o)}return r&&n!==r&&r!==a&&i.push(r),i},Cb=function(e,t,n){return H.from(t).map((function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(Sg(e,o,t,!0),Sg(e,o,t,!1)),o}))},Sb=function(e,t){return J(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Eb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},kb=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o],i)return i}},Tb=function(e){if(!Ka(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ab=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Ob=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Eb[t]||1);return n&&xe(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&xe(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var o=n.length;while(o--)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;i<a;i++){var u=t[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=kb(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=kb(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(Ab(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(Ab(o))return!1}if(8===o.type)return!1;if(3===o.type&&!Tb(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Ka(o.value))return!1;if(n&&n(o))return!1}while(o=kb(o,r));return!0},e.prototype.walk=function(e){return kb(this,null,e)},e}(),Rb=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],o={},i=Fl("img"),a=0,u=0;while(t=n.exec(e)){var s=t[0],c=i+"_"+u++;o[c]=s,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(c),a=t.index+s.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:o,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:i,uris:o,html:r.join(""),re:l})},Nb=function(e,t){return e.replace(t.re,(function(e){return Ne(t.uris,e).getOr(e)}))},Db=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?H.some({type:t[1],data:decodeURIComponent(t[2])}):H.none()},Bb=pn.each,Pb=pn.trim,jb="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Lb={ftp:21,http:80,https:443,mailto:25},Mb=["img","video"],Ib=function(e,t){return S(e)?!e:!S(t)||!Q(Mb,t)},Fb=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?Ib(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Vb=function(){function e(t,n){t=Pb(t),this.settings=n||{};var r=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))o.source=t;else{var i=0===t.indexOf("//");if(0!==t.indexOf("/")||i||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+o.toAbsPath(a,t);else{var u=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+o.toAbsPath(a,u[1])+u[2]}}t=t.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);Bb(jb,(function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n})),r&&(o.protocol||(o.protocol=r.protocol),o.userInfo||(o.userInfo=r.userInfo),o.port||"mce_host"!==o.host||(o.port=r.port),o.host&&"mce_host"!==o.host||(o.host=r.host),o.source=""),i&&(o.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Au.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(o){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!Fb(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Lb[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,o=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),u=t.split("/");if(a.length>=u.length)for(n=0,r=a.length;n<r;n++)if(n>=u.length||a[n]!==u[n]){o=n+1;break}if(a.length<u.length)for(n=0,r=u.length;n<r;n++)if(n>=a.length||a[n]!==u[n]){o=n+1;break}if(1===o)return t;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=u.length;n<r;n++)i+=n!==o-1?"/"+u[n]:u[n];return i},e.prototype.toAbsPath=function(e,t){var n,r,o=0,i=[],a=/\/$/.test(t)?"/":"",u=e.split("/"),s=t.split("/");for(Bb(u,(function(e){e&&i.push(e)})),u=i,n=s.length-1,i=[];n>=0;n--)0!==s[n].length&&"."!==s[n]&&(".."!==s[n]?o>0?o--:i.push(s[n]):o++);return n=u.length-o,r=n<=0?fe(i).join("/"):u.slice(0,n).join("/")+"/"+fe(i).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),Ub=pn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),qb=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},zb=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,o=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,u=n;while(0!==a){r.lastIndex=u;while(1){var s=r.exec(t);if(null===s)return u;if("!"===s[1]){u=ct(s[2],"--")?$b(t,!1,s.index+"!--".length):$b(t,!0,s.index+1);break}o.lastIndex=r.lastIndex;var c=o.exec(t);if(!w(c)&&c.index===r.lastIndex){"/"===s[1]?a-=1:De(i,s[2])||(a+=1),u=r.lastIndex+c[0].length;break}}}return u},Hb=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},$b=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&Hb(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/g;a.lastIndex=n;var u=a.exec(e);return u?u.index+u[0].length:r.length},Wb=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},Kb=function(e,t){var n;void 0===t&&(t=Uu()),e=e||{};var r=null!==(n=e.document)&&void 0!==n?n:document,o=r.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:T,a=e.cdata?e.cdata:T,u=e.text?e.text:T,s=e.start?e.start:T,c=e.end?e.end:T,l=e.pi?e.pi:T,f=e.doctype?e.doctype:T,d=function(n,d){void 0===d&&(d="html");var h,p,m,g,v,y,b,w,_,x,C,S,E,k,T,A,O,R,N,D,B=n.html,P=0,j=[],L=0,M=Au.decode,I=pn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),F="html"===d?0:1,V=function(e){var t,n;t=j.length;while(t--)if(j[t].name===e)break;if(t>=0){for(n=j.length-1;n>=t;n--)e=j[n],e.valid&&c(e.name);j.length=t}},U=function(e,t){return u(Nb(e,n),t)},q=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Nb(t,n)))},z=function(e){return Nb(e,n)},H=function(e,t){var n=e||"",r=!ct(n,"--"),o=$b(B,r,t);return e=B.substr(t,o-t),q(r?n+e:e),o+1},$=function(t,n,i,a,u){if(n=n.toLowerCase(),i=z(n in Q?n:M(i||a||u||"")),X&&!w&&!1===qb(n)){var s=k[n];if(!s&&T){var c=T.length;while(c--)if(s=T[c],s.pattern.test(n))break;-1===c&&(s=null)}if(!s)return;if(s.validValues&&!(i in s.validValues))return}var l="name"===n||"id"===n;l&&t in Ub&&(i in r||i in o)||I[n]&&!Vb.isDomSafe(i,t,e)||w&&(n in I||0===n.indexOf("on"))||(g.map[n]=i,g.push({name:n,value:i}))},W=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),K=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,Y=t.getShortEndedElements(),G=e.self_closing_elements||t.getSelfClosingElements(),Q=t.getBoolAttrs(),X=e.validate,J=e.remove_internals,Z=e.fix_self_closing,ee=t.getSpecialElements(),te=B+">";while(h=W.exec(te)){var ne=h[0];if(P<h.index&&U(M(B.substr(P,h.index-P))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),V(p);else if(p=h[8]){if(h.index+ne.length>B.length){U(M(B.substr(h.index))),P=h.index+ne.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),_=p in Y,Z&&G[p]&&j.length>0&&j[j.length-1].name===p&&V(p);var re=Wb(K,h[9]);if(null!==re){if("all"===re){P=zb(t,B,W.lastIndex),W.lastIndex=P;continue}C=!1}if(!X||(x=t.getElementRule(p))){if(C=!0,X&&(k=x.attributes,T=x.attributePatterns),(E=h[9])?(w=-1!==E.indexOf("data-mce-type"),w&&J&&(C=!1),g=[],g.map={},E.replace(K,(function(e,t,n,r,o){return $(p,t,n,r,o),""}))):(g=[],g.map={}),X&&!w){if(A=x.attributesRequired,O=x.attributesDefault,R=x.attributesForced,N=x.removeEmptyAttrs,N&&!g.length&&(C=!1),R){v=R.length;while(v--)S=R[v],b=S.name,D=S.value,"{$uid}"===D&&(D="mce_"+L++),g.map[b]=D,g.push({name:b,value:D})}if(O){v=O.length;while(v--)S=O[v],b=S.name,b in g.map||(D=S.value,"{$uid}"===D&&(D="mce_"+L++),g.map[b]=D,g.push({name:b,value:D}))}if(A){v=A.length;while(v--)if(A[v]in g.map)break;-1===v&&(C=!1)}if(S=g.map["data-mce-bogus"]){if("all"===S){P=zb(t,B,W.lastIndex),W.lastIndex=P;continue}C=!1}}C&&s(p,g,_)}else C=!1;if(m=ee[p]){m.lastIndex=P=h.index+ne.length,(h=m.exec(B))?(C&&(y=B.substr(P,h.index-P)),P=h.index+h[0].length):(y=B.substr(P),P=B.length),C&&(y.length>0&&U(y,!0),c(p)),W.lastIndex=P;continue}_||(E&&E.indexOf("/")===E.length-1?C&&c(p):j.push({name:p,valid:C}))}else if(p=h[1])q(p);else if(p=h[2]){var oe=1===F||e.preserve_cdata||j.length>0&&t.isValidChild(j[j.length-1].name,"#cdata");if(!oe){P=H("",h.index+2),W.lastIndex=P;continue}a(p)}else if(p=h[3])f(p);else{if((p=h[4])||"<!"===ne){P=H(p,h.index+ne.length),W.lastIndex=P;continue}if(p=h[5]){if(1!==F){P=H("?",h.index+2),W.lastIndex=P;continue}l(p,h[6])}}P=h.index+ne.length}for(P<B.length&&U(M(B.substr(P))),v=j.length-1;v>=0;v--)p=j[v],p.valid&&c(p.name)},h=function(e,t){void 0===t&&(t="html"),d(Rb(e),t)};return{parse:h}};Kb.findEndTag=zb;var Yb=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Gb=function(e,t){var n,r=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,o=e.schema,i=Yb(e.getTempAttrs(),t),a=o.getShortEndedElements();while(n=r.exec(i)){var u=r.lastIndex,s=n[0].length,c=void 0;c=a[n[1]]?u:Kb.findEndTag(o,i,u),i=i.substring(0,u-s)+i.substring(c),r.lastIndex=u-s}return pa(i)},Qb=Gb,Xb=function(e,t){var n=Ed(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Jb=function(e,t){return He(He({},e),{format:t,get:!0,getInner:!0})},Zb=function(e,t,n,r){var o,i=Jb(t,n),a=t.no_events?i:e.fire("BeforeGetContent",i);return o="raw"===a.format?pn.trim(Qb(e.serializer,r.innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":pa(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Xb(e,e.serializer.serialize(r,a)),Q(["text","tree"],a.format)||aa(wn.fromDom(r))?a.content=o:a.content=pn.trim(o),a.no_events?a.content:e.fire("GetContent",a).content},ew=function(e,t,n){return H.from(e.getBody()).fold(R("tree"===t.format?new Ob("body",11):""),(function(r){return Zb(e,t,n,r)}))},tw=pn.each,nw=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return tw(e.getAttribs(t),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))})),n},o=function(e,t){var n,r;for(r in e)if(De(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(De(t,r))return!1;return!0};return!!o(r(t),r(n))&&(!!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!xm(t)&&!xm(n)))};return{compare:t}},rw=pn.makeMap,ow=function(e){var t=[];e=e||{};var n=e.indent,r=rw(e.indent_before||""),o=rw(e.indent_after||""),i=Au.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,u,s){var c,l,f,d;if(n&&r[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n")),t.push("<",e),u)for(c=0,l=u.length;c<l;c++)f=u[c],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!s||a?">":" />",s&&n&&o[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&o[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",i(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},iw=function(e,t){void 0===t&&(t=Uu());var n=ow(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var o=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=i[e.type];if(r)r(e);else{var u=e.name,s=e.shortEnded,c=e.attributes;if(o&&c&&c.length>1){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++){var p=f.attributesOrder[d];if(p in c.map){var m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}for(d=0,h=c.length;d<h;d++){p=c[d].name;if(!(p in l.map)){m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}c=l}}if(n.start(e.name,c,s),!s){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(u)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},aw=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Z(e,(function(e){aw.add(e)}))})();var uw=["font","text-decoration","text-emphasis"],sw=function(e,t){return we(e.parseStyle(e.getAttrib(t,"style")))},cw=function(e){return aw.has(e)},lw=function(e,t){return le(sw(e,t),(function(e){return!cw(e)}))},fw=function(e){return ne(e,(function(e){return X(uw,(function(t){return ct(e,t)}))}))},dw=function(e,t,n){var r=sw(e,t),o=sw(e,n),i=function(r){var o=e.getStyle(t,r),i=e.getStyle(n,r);return pt(o)&&pt(i)&&o!==i};return X(r,(function(e){var t=function(t){return X(t,(function(t){return t===e}))};if(!t(o)&&t(uw)){var n=fw(o);return X(n,i)}return i(e)}))},hw=function(e,t,n){return H.from(n.container()).filter(Zr).exists((function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))}))},pw=B(hw,!0,Em),mw=B(hw,!1,Em),gw=function(e){var t=e.container();return Zr(t)&&(0===t.data.length||ha(t.data)&&Ig.isBookmarkNode(t.parentNode))},vw=function(e,t){return function(n){return H.from(dp(e?0:-1,n)).filter(t).isSome()}},yw=function(e){return oo(e)&&"block"===ko(wn.fromDom(e),"display")},bw=function(e){return ao(e)&&!Gr(e)},ww=vw(!0,yw),_w=vw(!1,yw),xw=vw(!0,so),Cw=vw(!1,so),Sw=vw(!0,Qr),Ew=vw(!1,Qr),kw=vw(!0,bw),Tw=vw(!1,bw),Aw=function(e){var t=[],n=e.dom;while(n)t.push(wn.fromDom(n)),n=n.lastChild;return t},Ow=function(e){var t=Tl(e,"br"),n=ne(Aw(e).slice(-1),ea);t.length===n.length&&Z(n,kr)},Rw=function(e){Er(e),_r(e,wn.fromHtml('<br data-mce-bogus="1">'))},Nw=function(e){ar(e).each((function(t){Zn(t).each((function(n){Xi(e)&&ea(t)&&Xi(n)&&kr(t)}))}))},Dw=function(e){return e.slice(0,-1)},Bw=function(e,t,n){return Ln(t,e)?Dw(Xn(e,(function(e){return n(e)||Bn(e,t)}))):[]},Pw=function(e,t){return Bw(e,t,I)},jw=function(e,t){return[e].concat(Pw(e,t))},Lw=function(e,t,n){return Kp(e,t,n,gw)},Mw=function(e,t){return ae(jw(wn.fromDom(t.container()),e),Xi)},Iw=function(e,t,n){return Lw(e,t.dom,n).forall((function(e){return Mw(t,n).fold((function(){return!1===fp(e,n,t.dom)}),(function(r){return!1===fp(e,n,t.dom)&&Ln(r,wn.fromDom(e.container()))}))}))},Fw=function(e,t,n){return Mw(t,n).fold((function(){return Lw(e,t.dom,n).forall((function(e){return!1===fp(e,n,t.dom)}))}),(function(t){return Lw(e,t.dom,n).isNone()}))},Vw=B(Fw,!1),Uw=B(Fw,!0),qw=B(Iw,!1),zw=B(Iw,!0),Hw=function(e){return _p(e).exists(ea)},$w=function(e,t,n){var r=ne(jw(wn.fromDom(n.container()),t),Xi),o=ge(r).getOr(t);return $p(e,o.dom,n).filter(Hw)},Ww=function(e,t){return _p(t).exists(ea)||$w(!0,e,t).isSome()},Kw=function(e,t){return xp(t).exists(ea)||$w(!1,e,t).isSome()},Yw=B($w,!1),Gw=B($w,!0),Qw=function(e){return Bf.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Xw=function(e,t){var n=ne(jw(wn.fromDom(t.container()),e),Xi);return ge(n).getOr(e)},Jw=function(e,t){return Qw(t)?mw(t):mw(t)||Qp(Xw(e,t).dom,t).exists(mw)},Zw=function(e,t){return Qw(t)?pw(t):pw(t)||Gp(Xw(e,t).dom,t).exists(pw)},e_=function(e){return Q(["pre","pre-wrap"],e)},t_=function(e){return _p(e).bind((function(e){return Ci(e,Un)})).exists((function(e){return e_(ko(e,"white-space"))}))},n_=function(e,t){return Qp(e.dom,t).isNone()},r_=function(e,t){return Gp(e.dom,t).isNone()},o_=function(e,t){return n_(e,t)||r_(e,t)||Vw(e,t)||Uw(e,t)||Kw(e,t)||Ww(e,t)},i_=function(e,t){return!t_(t)&&(o_(e,t)||Jw(e,t)||Zw(e,t))},a_=function(e,t){return!t_(t)&&(Vw(e,t)||qw(e,t)||Kw(e,t)||Jw(e,t))},u_=function(e){var t=e.container(),n=e.offset();return Zr(t)&&n<t.data.length?Bf(t,n+1):e},s_=function(e,t){return!t_(t)&&(Uw(e,t)||zw(e,t)||Ww(e,t)||Zw(e,t))},c_=function(e,t){return a_(e,t)||s_(e,u_(t))},l_=function(e,t){return Sm(e.charAt(t))},f_=function(e){var t=e.container();return Zr(t)&&st(t.data,ca)},d_=function(e){var t=e.split("");return J(t,(function(e,n){return Sm(e)&&n>0&&n<t.length-1&&km(t[n-1])&&km(t[n+1])?" ":e})).join("")},h_=function(e,t){var n=t.data,r=Bf(t,0);return!(!l_(n,0)||c_(e,r))&&(t.data=" "+n.slice(1),!0)},p_=function(e){var t=e.data,n=d_(t);return n!==t&&(e.data=n,!0)},m_=function(e,t){var n=t.data,r=Bf(t,n.length-1);return!(!l_(n,n.length-1)||c_(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},g_=function(e,t){return H.some(t).filter(f_).bind((function(t){var n=t.container(),r=h_(e,n)||p_(n)||m_(e,n);return r?H.some(t):H.none()}))},v_=function(e){var t=wn.fromDom(e.getBody());e.selection.isCollapsed()&&g_(t,Bf.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},y_=function(e,t,n){var r=oe(e,(function(r,o){return Em(o)||Sm(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+ca}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},b_=function(e,t,n){if(0!==n){var r=wn.fromDom(e),o=xi(r,Xi).getOr(r),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&s_(o,Bf(e,e.data.length)),u=0===t&&a_(o,Bf(e,0));e.replaceData(t,n,y_(i,u,a))}},w_=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;b_(e,t,r)},__=function(e,t){var n=e.data.slice(0,t),r=n.length-ht(n).length;b_(e,t-r,r)},x_=function(e,t,n,r){void 0===r&&(r=!0);var o=ht(e.data).length,i=r?e:t,a=r?t:e;return r?i.appendData(a.data):i.insertData(0,a.data),kr(wn.fromDom(a)),n&&w_(i,o),i},C_=function(e,t){var n=e.container(),r=e.offset();return!1===Bf.isTextPosition(e)&&n===t.parentNode&&r>Bf.before(t).offset()},S_=function(e,t){return C_(t,e)?Bf(t.container(),t.offset()-1):t},E_=function(e){return Zr(e)?Bf(e,0):Bf.before(e)},k_=function(e){return Zr(e)?Bf(e,e.data.length):Bf.after(e)},T_=function(e){return Fa(e.previousSibling)?H.some(k_(e.previousSibling)):e.previousSibling?Jp(e.previousSibling):H.none()},A_=function(e){return Fa(e.nextSibling)?H.some(E_(e.nextSibling)):e.nextSibling?Xp(e.nextSibling):H.none()},O_=function(e,t){var n=Bf.before(t.previousSibling?t.previousSibling:t.parentNode);return Qp(e,n).fold((function(){return Gp(e,Bf.after(t))}),H.some)},R_=function(e,t){return Gp(e,Bf.after(t)).fold((function(){return Qp(e,Bf.before(t))}),H.some)},N_=function(e,t){return T_(t).orThunk((function(){return A_(t)})).orThunk((function(){return O_(e,t)}))},D_=function(e,t){return A_(t).orThunk((function(){return T_(t)})).orThunk((function(){return R_(e,t)}))},B_=function(e,t,n){return e?D_(t,n):N_(t,n)},P_=function(e,t,n){return B_(e,t,n).map(B(S_,n))},j_=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},L_=function(e){return function(t){return t.dom===e}},M_=function(e,t){return t&&De(e.schema.getBlockElements(),Mn(t))},I_=function(e){if(nu(e)){var t=wn.fromHtml('<br data-mce-bogus="1">');return Er(e),_r(e,t),H.some(Bf.before(t.dom))}return H.none()},F_=function(e,t,n){var r=Zn(e).filter(qn),o=er(e).filter(qn);return kr(e),ho(r,o,t,(function(e,t,r){var o=e.dom,i=t.dom,a=o.data.length;return x_(o,i,n),r.container()===i?Bf(o,a):r})).orThunk((function(){return n&&(r.each((function(e){return __(e.dom,e.dom.length)})),o.each((function(e){return w_(e.dom,0)}))),t}))},V_=function(e,t){return De(e.schema.getTextInlineElements(),Mn(t))},U_=function(e,t,n,r){void 0===r&&(r=!0);var o=P_(t,e.getBody(),n.dom),i=xi(n,B(M_,e),L_(e.getBody())),a=F_(n,o,V_(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(I_).fold((function(){r&&j_(e,t,a)}),(function(n){r&&j_(e,t,H.some(n))}))},q_=function(e){return function(t){return Bn(e,t)}},z_=function(e){return Tl(e,"td,th")},H_=function(e,t){var n=function(e){return yg(wn.fromDom(e),t)},r=n(e.startContainer),o=n(e.endContainer),i=r.isSome(),a=o.isSome(),u=fo(r,o,Bn).getOr(!1),s=!u&&i&&a;return{startTable:r,endTable:o,isStartInTable:i,isEndInTable:a,isSameTable:u,isMultiTable:s}},$_=function(e,t){return{start:e,end:t}},W_=function(e,t,n){return{rng:e,table:t,cells:n}},K_=ei.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Y_=function(e,t){return Ai(wn.fromDom(e),"td,th",t)},G_=function(e){return!Bn(e.start,e.end)},Q_=function(e,t){return yg(e.start,t).bind((function(n){return yg(e.end,t).bind((function(e){return po(Bn(n,e),n)}))}))},X_=function(e,t){return!G_(e)&&Q_(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},J_=function(e,t){var n=Y_(e.startContainer,t),r=Y_(e.endContainer,t);return fo(n,r,$_)},Z_=function(e){return function(t){return yg(t,e).bind((function(e){return ve(z_(e)).map((function(e){return $_(t,e)}))}))}},ex=function(e){return function(t){return yg(t,e).bind((function(e){return ge(z_(e)).map((function(e){return $_(e,t)}))}))}},tx=function(e){return function(t){return Q_(t,e).map((function(e){return W_(t,e,z_(e))}))}},nx=function(e,t,n,r){if(n.collapsed||!e.forall(G_))return H.none();if(t.isSameTable){var o=e.bind(tx(r));return H.some({start:o,end:o})}var i=Y_(n.startContainer,r),a=Y_(n.endContainer,r),u=i.bind(Z_(r)).bind(tx(r)),s=a.bind(ex(r)).bind(tx(r));return H.some({start:u,end:s})},rx=function(e,t){return ue(e,(function(e){return Bn(e,t)}))},ox=function(e){return fo(rx(e.cells,e.rng.start),rx(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},ix=function(e,t,n){return e.exists((function(e){return X_(e,n)&&Cg(e.start,t)}))},ax=function(e,t){var n=t.startTable,r=t.endTable,o=e.cloneRange();return n.each((function(e){return o.setStartAfter(e.dom)})),r.each((function(e){return o.setEndBefore(e.dom)})),o},ux=function(e,t,n,r){return nx(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,o=ox(e).getOr([]);if(r&&e.cells.length===o.length)return H.some(K_.fullTable(e.table));if(o.length>0){if(r)return H.some(K_.partialTable(o,H.none()));var i=ax(n,t);return H.some(K_.partialTable(o,H.some(He(He({},t),{rng:i}))))}return H.none()}))},sx=function(e,t,n,r){return nx(e,t,n,r).bind((function(e){var r=e.start,o=e.end,i=r.bind(ox).getOr([]),a=o.bind(ox).getOr([]);if(i.length>0&&a.length>0){var u=ax(n,t);return H.some(K_.multiTable(i,a,u))}return H.none()}))},cx=function(e,t){var n=q_(e),r=J_(t,n),o=H_(t,n);return ix(r,t,n)?r.map((function(e){return K_.singleCellTable(t,e.start)})):o.isMultiTable?sx(r,o,t,n):ux(r,o,t,n)},lx=function(e){var t=Vn(e)?Zn(e):ar(e);return t.bind(lx).orThunk((function(){return H.some(e)}))},fx=function(e){return Z(e,(function(e){xo(e,"contenteditable"),Rw(e)}))},dx=function(e,t){return H.from(e.dom.getParent(t,e.dom.isBlock)).map(wn.fromDom)},hx=function(e,t,n){n.each((function(n){t?kr(n):(Rw(n),e.selection.setCursorLocation(n.dom,0))}))},px=function(e,t,n,r){var o=n.cloneRange();r?(o.setStart(n.startContainer,n.startOffset),o.setEndAfter(t.dom.lastChild)):(o.setStartBefore(t.dom.firstChild),o.setEnd(n.endContainer,n.endOffset)),yx(e,o,t,!1)},mx=function(e){var t=vg(e),n=wn.fromDom(e.selection.getNode());uo(n.dom)&&nu(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&X(t,(function(e){return Bn(e,n)}))&&vo(n,"data-mce-selected","1")},gx=function(e,t,n){var r=e.selection.getRng(),o=n.bind((function(n){var o=n.rng,i=n.isStartInTable,a=dx(e,i?o.endContainer:o.startContainer);o.deleteContents(),hx(e,i,a.filter(nu));var u=i?t[0]:t[t.length-1];return px(e,u,r,i),nu(u)?H.none():H.some(i?t.slice(1):t.slice(0,-1))})).getOr(t);return fx(o),mx(e),!0},vx=function(e,t,n,r){var o=e.selection.getRng(),i=t[0],a=n[n.length-1];px(e,i,o,!0),px(e,a,o,!1);var u=nu(i)?t:t.slice(1),s=nu(a)?n:n.slice(0,-1);return fx(u.concat(s)),r.deleteContents(),mx(e),!0},yx=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var o=lx(n).getOr(n),i=wn.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));if(nu(i)&&(Rw(i),r&&e.selection.setCursorLocation(i.dom,0)),!Bn(n,i)){var a=co(Qn(i),n)?[]:Jn(i);Z(a.concat(rr(n)),(function(e){Bn(e,i)||Ln(e,i)||!nu(e)||kr(e)}))}return!0},bx=function(e,t){return U_(e,!1,t),!0},wx=function(e,t,n){return cx(t,n).map((function(t){return t.fold(B(yx,e),B(bx,e),B(gx,e),B(vx,e))}))},_x=function(e,t){return Tx(e,t)},xx=function(e,t,n,r){return Ex(t,r).fold((function(){return wx(e,t,n)}),(function(t){return _x(e,t)})).getOr(!1)},Cx=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.selection.getRng();return 0!==n.length?gx(e,n,H.none()):xx(e,r,o,t)},Sx=function(e,t){return ae(jw(t,e),ia)},Ex=function(e,t){return ae(jw(t,e),$n("caption"))},kx=function(e,t,n,r,o){return Wp(n,e.getBody(),o).bind((function(e){return Sx(t,wn.fromDom(e.getNode())).map((function(e){return!1===Bn(e,r)}))}))},Tx=function(e,t){return Rw(t),e.selection.setCursorLocation(t.dom,0),H.some(!0)},Ax=function(e,t,n,r){return Xp(e.dom).bind((function(o){return Jp(e.dom).map((function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)}))})).getOr(!0)},Ox=function(e,t){return Tx(e,t)},Rx=function(e,t,n){return Ex(e,wn.fromDom(n.getNode())).map((function(e){return!1===Bn(e,t)}))},Nx=function(e,t,n,r,o){return Wp(n,e.getBody(),o).bind((function(i){return Ax(r,n,o,i)?Ox(e,r):Rx(t,r,i)})).or(H.some(!0))},Dx=function(e,t,n,r){var o=Bf.fromRangeStart(e.selection.getRng());return Sx(n,r).bind((function(r){return nu(r)?Tx(e,r):kx(e,n,t,r,o)})).getOr(!1)},Bx=function(e,t,n,r){var o=Bf.fromRangeStart(e.selection.getRng());return nu(r)?Tx(e,r):Nx(e,n,t,r,o)},Px=function(e,t){return e?Sw(t):Ew(t)},jx=function(e,t){var n=Bf.fromRangeStart(e.selection.getRng());return Px(t,n)||$p(t,e.getBody(),n).exists((function(e){return Px(t,e)}))},Lx=function(e,t,n){var r=wn.fromDom(e.getBody());return Ex(r,n).fold((function(){return Dx(e,t,r,n)||jx(e,t)}),(function(n){return Bx(e,t,r,n).getOr(!1)}))},Mx=function(e,t){var n=wn.fromDom(e.selection.getStart(!0)),r=vg(e);return e.selection.isCollapsed()&&0===r.length?Lx(e,t,n):Cx(e,n,r)},Ix=function(e,t,n,r){var o=document.createRange();return o.setStart(e,t),o.setEnd(n,r),o},Fx=function(e){var t=Bf.fromRangeStart(e),n=Bf.fromRangeEnd(e),r=e.commonAncestorContainer;return $p(!1,r,n).map((function(o){return!fp(t,n,r)&&fp(t,o,r)?Ix(t.container(),t.offset(),o.container(),o.offset()):e})).getOr(e)},Vx=function(e){return e.collapsed?e:Fx(e)},Ux=function(e){return e.firstChild&&e.firstChild===e.lastChild},qx=function(e){return"br"===e.name||e.value===ca},zx=function(e,t){var n=e.getBlockElements();return n[t.name]&&Ux(t)&&qx(t.firstChild)},Hx=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||zx(e,t))},$x=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),Hx(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},Wx=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},Kx=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return Wx(o)},Yx=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},Gx=function(e){return e.data===ca||ro(e)},Qx=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&Gx(e.firstChild)},Xx=function(e){return!e.firstChild||Qx(e)},Jx=function(e){return e.length>0&&Xx(e[e.length-1])?e.slice(0,-1):e},Zx=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},eC=function(e,t){return!!Zx(e,t)},tC=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},nC=function(e,t){var n=Bf.before(e),r=Mp(t),o=r.next(n);return o?o.toRange():null},rC=function(e,t){var n=Bf.after(e),r=Mp(t),o=r.prev(n);return o?o.toRange():null},oC=function(e,t,n,r){var o=tC(e,r),i=e.parentNode;return i.insertBefore(o[0],e),pn.each(t,(function(t){i.insertBefore(t,e)})),i.insertBefore(o[1],e),i.removeChild(e),rC(t[t.length-1],n)},iC=function(e,t,n){var r=e.parentNode;return pn.each(t,(function(t){r.insertBefore(t,e)})),nC(e,n)},aC=function(e,t,n,r){return r.insertAfter(t.reverse(),e),rC(t[0],n)},uC=function(e,t,n,r){var o=Kx(t,e,r),i=Zx(t,n.startContainer),a=Jx(Yx(o.firstChild)),u=1,s=2,c=t.getRoot(),l=function(e){var r=Bf.fromRangeStart(n),o=Mp(t.getRoot()),a=e===u?o.prev(r):o.next(r);return!a||Zx(t,a.getNode())!==i};return l(u)?iC(i,a,c):l(s)?aC(i,a,c,t):oC(i,a,c,n)},sC=function(e,t,n){var r=wn.fromDom(e.getRoot());return n=a_(r,Bf.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=s_(r,Bf.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},cC=uo,lC=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,cC);return n===r&&Cg(wn.fromDom(n),t)}return!1},fC=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},dC=function(e,t){H.from(e.getParent(t,"td,th")).map(wn.fromDom).each(Nw)},hC=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=nw(r);pn.each(r.select("*[data-mce-fragment]"),(function(e){var t=S(n[e.nodeName.toLowerCase()]);if(t&&lw(r,e))for(var a=e.parentNode;S(a)&&a!==o;a=a.parentNode){var u=dw(r,e,a);if(u)break;if(i.compare(a,e)){r.remove(e,!0);break}}}))}},pC=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},mC=function(e){pn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},gC=function(e){return!!e.getAttribute("data-mce-fragment")},vC=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},yC=function(e,t){var n,r=e.dom,o=e.selection;if(t){o.scrollIntoView(t);var i=Fg(e.getBody(),t);if("false"===r.getContentEditable(i))return r.remove(t),void o.select(i);var a=r.createRng(),u=t.previousSibling;if(Zr(u)){if(a.setStart(u,u.nodeValue.length),!en.ie){var s=t.nextSibling;Zr(s)&&(u.appendData(s.data),s.parentNode.removeChild(s))}}else a.setStartBefore(t),a.setEndBefore(t);var c=function(t){var n=Bf.fromRangeStart(t),r=Mp(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),cC(l)||gC(l)||!(n=c(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),o.setRng(a)}},bC=function(e){var t=e.dom,n=Vx(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,cC);lC(t,n,r)?yx(e,n,wn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},wC=function(e,t,n){var r,o,i,a=e.selection,u=e.dom;/^ | $/.test(t)&&(t=sC(u,a.getRng(),t));var s=e.parser,c=n.merge,l=iw({validate:ih(e)},e.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',d=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())e.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});else{t=d.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f),o=a.getRng();var h=o.startContainer||(o.parentElement?o.parentElement():null),p=e.getBody();h===p&&a.isCollapsed()&&u.isBlock(p.firstChild)&&vC(e,p.firstChild)&&u.isEmpty(p.firstChild)&&(o=u.createRng(),o.setStart(p.firstChild,0),o.setEnd(p.firstChild,0),a.setRng(o)),a.isCollapsed()||bC(e),r=a.getNode();var m={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},g=s.parse(t,m);if(!0===n.paste&&$x(e.schema,g)&&eC(u,r))return o=uC(l,u,a.getRng(),g),a.setRng(o),void e.fire("SetContent",d);if(pC(g),i=g.lastChild,"mce_marker"===i.attr("id")){var v=i;for(i=i.prev;i;i=i.walk(!0))if(3===i.type||!u.isBlock(i.name)){e.schema.isValidChild(i.parent.name,"span")&&i.parent.insert(v,i,"br"===i.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),m.invalid){e.selection.setContent(f),r=a.getNode();var y=e.getBody();9===r.nodeType?r=i=y:i=r;while(i!==y)r=i,i=i.parentNode;t=r===y?y.innerHTML:u.getOuterHTML(r),t=l.serialize(s.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(g)})))),r===y?u.setHTML(y,t):u.setOuterHTML(r,t)}else t=l.serialize(g),fC(e,t,r);hC(e,c),yC(e,u.get("mce_marker")),mC(e.getBody()),dC(u,a.getStart()),e.fire("SetContent",d),e.addVisual()}},_C=function(e,t){t(e),e.firstChild&&_C(e.firstChild,t),e.next&&_C(e.next,t)},xC=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&_C(n.firstChild,(function(n){Z(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Z(t,(function(e){"string"===typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),r)De(r,a)&&i.push(r[a]);for(var u in o)De(o,u)&&i.push(o[u]);return i},CC=function(e,t,n){var r=xC(e,t,n);Z(r,(function(e){Z(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},SC="html",EC=function(e){return e instanceof Ob},kC=function(e){db(e)&&Xp(e.getBody()).each((function(t){var n=t.getNode(),r=Qr(n)?Xp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},TC=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&kC(e)},AC=function(e,t,n,r){if(0===n.length||/^\s+$/.test(n)){var o='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>");var i=Ed(e);i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,kd(e),n)):n||(n='<br data-mce-bogus="1">'),TC(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=iw({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(wn.fromDom(t))?n:pn.trim(n),TC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},OC=function(e,t,n,r){CC(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=iw({validate:e.validate},e.schema).serialize(n);return r.content=aa(wn.fromDom(t))?o:pn.trim(o),TC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},RC=function(e,t){return He(He({format:SC},e),{set:!0,content:EC(t)?"":t})},NC=function(e,t,n){var r=RC(n,t),o=n.no_events?r:e.fire("BeforeSetContent",r);return EC(t)||(t=o.content),H.from(e.getBody()).fold(R(t),(function(n){return EC(t)?OC(e,n,t,o):AC(e,n,t,o)}))},DC=function(e,t){return Si(e,t).isSome()},BC=function(e){return E(e)?e:I},PC=function(e,t,n){var r=e.dom,o=BC(n);while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return H.none()},jC=function(e,t,n){var r=t(e),o=BC(n);return r.orThunk((function(){return o(e)?H.none():PC(e,t,o)}))},LC=Lm,MC=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o];if(Hm(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return!0}return!1},IC=function(e,t,n,r,o){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!MC(e,t,n)||(t.parentNode===i||!!UC(e,t,n,r,!0))})),!!UC(e,t,n,r,o))},FC=function(e,t,n){return!!LC(t,n.inline)||(!!LC(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},VC=function(e,t,n,r,o,i){var a=n[r];if(E(n.onmatch))return n.onmatch(t,n,r);if(a)if(x(a.length)){for(var u in a)if(De(a,u)){var s="attributes"===r?e.getAttrib(t,u):Im(e,t,u),c=jm(a[u],i),l=C(s)||mt(s);if(l&&C(c))continue;if(o&&l&&!n.exact)return!1;if((!o||n.exact)&&!LC(s,Mm(e,c,u)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?e.getAttrib(t,a[f]):Im(e,t,a[f]))return!0;return!0},UC=function(e,t,n,r,o){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var u=0;u<i.length;u++){var s=i[u];if(FC(e.dom,t,s)&&VC(a,t,s,"attributes",o,r)&&VC(a,t,s,"styles",o,r)){var c=s.classes;if(c)for(var l=0;l<c.length;l++)if(!e.dom.hasClass(t,jm(c[l],r)))return;return s}}},qC=function(e,t,n,r,o){if(r)return IC(e,r,t,n,o);if(r=e.selection.getNode(),IC(e,r,t,n,o))return!0;var i=e.selection.getStart();return!(i===r||!IC(e,i,t,n,o))},zC=function(e,t,n){var r=[],o={},i=e.selection.getStart();return e.dom.getParent(i,(function(i){for(var a=0;a<t.length;a++){var u=t[a];!o[u]&&UC(e,i,u,n)&&(o[u]=!0,r.push(u))}}),e.dom.getRoot()),r},HC=function(e,t){var n=function(t){return Bn(t,wn.fromDom(e.getBody()))},r=function(t,n){return UC(e,t.dom,n)?H.some(n):H.none()};return H.from(e.selection.getStart(!0)).bind((function(e){return jC(wn.fromDom(e),(function(e){return be(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},$C=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var o=e.selection.getStart(),i=Vm(r,o),a=n.length-1;a>=0;a--){var u=n[a];if(!Hm(u)||S(u.defaultBlock))return!0;for(var s=i.length-1;s>=0;s--)if(r.is(i[s],u.selector))return!0}return!1},WC=function(e,t,n){return oe(n,(function(n,r){var o=Um(e,r);return e.formatter.matchNode(t,r,{},o)?n.concat([r]):n}),[])},KC=da,YC="_mce_caret",GC=function(e,t){return e.importNode(t,!0)},QC=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==KC||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},XC=function(e){return QC(e).length>0},JC=function(e){if(e){var t=new Vi(e,e);for(e=t.current();e;e=t.next())if(Zr(e))return e}return null},ZC=function(e){var t=wn.fromTag("span");return yo(t,{id:YC,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&_r(t,wn.fromText(KC)),t},eS=function(e){var t=JC(e);return t&&t.nodeValue.charAt(0)===KC&&t.deleteData(0,1),t},tS=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(XC(t))U_(e,!1,wn.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),u=i.startContainer,s=i.startOffset,c=i.endContainer,l=i.endOffset,f=eS(t);r.remove(t,!0),u===f&&s>0&&i.setStart(f,s-1),c===f&&l>0&&i.setEnd(f,l-1),a&&r.isEmpty(a)&&Rw(wn.fromDom(a)),o.setRng(i)}},nS=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)tS(e,t,n);else if(t=tm(e.getBody(),o.getStart()),!t)while(t=r.get(YC))tS(e,t,!1)},rS=function(e,t,n){var r=e.dom,o=r.getParent(n,B(Nm,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(Ow(wn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},oS=function(e,t){return e.appendChild(t),t},iS=function(e,t){var n=re(e,(function(e,t){return oS(e,t.cloneNode(!1))}),t);return oS(n,n.ownerDocument.createTextNode(KC))},aS=function(e,t,n,r,o,i){var a=e.formatter,u=e.dom,s=ne(we(a.get()),(function(e){return e!==r&&!st(e,"removeformat")})),c=WC(e,n,s),l=ne(c,(function(t){return!qm(e,t,r)}));if(l.length>0){var f=n.cloneNode(!1);return u.add(t,f),a.remove(r,o,f,i),u.remove(f),H.some(f)}return H.none()},uS=function(e,t,n){var r,o,i=e.selection,a=i.getRng(),u=a.startOffset,s=a.startContainer,c=s.nodeValue;r=tm(e.getBody(),i.getStart()),r&&(o=JC(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&u>0&&u<c.length&&l.test(c.charAt(u))&&l.test(c.charAt(u-1))){var f=i.getBookmark();a.collapse(!0);var d=cg(e,a,e.formatter.get(t));d=Cv(d),e.formatter.apply(t,n,d),i.moveToBookmark(f)}else r&&o.nodeValue===KC||(r=GC(e.getDoc(),ZC(!0).dom),o=r.firstChild,a.insertNode(r),u=1),e.formatter.apply(t,n,r),i.setCursorLocation(o,u)},sS=function(e,t,n,r){var o,i,a,u=e.dom,s=e.selection,c=[],l=s.getRng(),f=l.startContainer,d=l.startOffset;i=f,3===f.nodeType&&(d!==f.nodeValue.length&&(o=!0),i=i.parentNode);while(i){if(UC(e,i,t,n,r)){a=i;break}i.nextSibling&&(o=!0),c.push(i),i=i.parentNode}if(a)if(o){var h=s.getBookmark();l.collapse(!0);var p=cg(e,l,e.formatter.get(t),!0);p=Cv(p),e.formatter.remove(t,n,p,r),s.moveToBookmark(h)}else{var m=tm(e.getBody(),a),g=ZC(!1).dom;rS(e,g,null!==m?m:a);var v=aS(e,g,a,t,n,r),y=iS(c.concat(v.toArray()),g);tS(e,m,!1),s.setCursorLocation(y,1),u.isEmpty(a)&&u.remove(a)}},cS=function(e,t){var n=e.selection,r=e.getBody();nS(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==KC||nS(e,tm(r,n.getStart())),37!==t&&39!==t||nS(e,tm(r,n.getStart()))},lS=function(e){e.on("mouseup keydown",(function(t){cS(e,t.keyCode)}))},fS=function(e,t){var n=ZC(!1),r=iS(t,n.dom);return yr(wn.fromDom(e),n),kr(wn.fromDom(e)),Bf(r,0)},dS=function(e,t){var n=e.schema.getTextInlineElements();return De(n,Mn(t))&&!em(t.dom)&&!Yr(t.dom)},hS=function(e){return em(e.dom)&&XC(e.dom)},pS={},mS=Fe,gS=Me,vS=function(e,t){var n=pS[e];n||(pS[e]=[]),pS[e].push(t)},yS=function(e,t){gS(pS[e],(function(e){e(t)}))};vS("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return i(e.previousSibling)&&-1!==Ve(t,e.previousSibling)},o=function(e,t){Bc(t).remove(),Bc(e).append("<br><br>").append(t.childNodes)},i=Hr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),gS(mS(mS(t,i),r),(function(e){o(e.previousSibling,e)})))}));var bS=pn.each,wS=function(e){return zr(e)&&!xm(e)&&!em(e)&&!Yr(e)},_S=function(e,t){for(var n=e;n;n=n[t]){if(Zr(n)&&pt(n.data))return e;if(zr(n)&&!xm(n))return n}return e},xS=function(e,t,n){var r=nw(e);if(t&&n&&(t=_S(t,"previousSibling"),n=_S(n,"nextSibling"),r.compare(t,n))){for(var o=t.nextSibling;o&&o!==n;){var i=o;o=o.nextSibling,t.appendChild(i)}return e.remove(n),pn.each(pn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},CS=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var o=xS(e,Rm(r),r);xS(e,o,Rm(o,!0))}},SS=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";bS(e.select(r,n),(function(n){wS(n)&&bS(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},ES=function(e,t,n){bS(e.childNodes,(function(e){wS(e)&&(t(e)&&n(e),e.hasChildNodes()&&ES(e,t,n))}))},kS=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},TS=function(e,t){return function(n){return!(!n||!Im(e,n,t))}},AS=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),kS(e,r)}},OS=ei.generate([{keep:[]},{rename:["name"]},{removed:[]}]),RS=/^(src|href|style)$/,NS=pn.each,DS=Lm,BS=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},PS=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},jS=function(e,t,n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(zr(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return Zr(r)&&n&&o>=r.nodeValue.length&&(r=new Vi(r,e.getBody()).next()||r),Zr(r)&&!n&&0===o&&(r=new Vi(r,e.getBody()).prev()||r),r},LS=function(e,t){var n=t?"firstChild":"lastChild";if(BS(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},MS=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},IS=function(e,t,n,r,o){var i=wn.fromDom(t),a=wn.fromDom(e.create(r,o)),u=n?nr(i):tr(i);return Sr(a,u),n?(yr(i,a),wr(a,i)):(br(i,a),_r(a,i)),a.dom},FS=function(e,t,n){return!(!$m(n)||!DS(t,n.inline))||(!(!zm(n)||!DS(t,n.block))||(Hm(n)?zr(t)&&e.is(t,n.selector):void 0))},VS=function(e,t){return t.links&&"A"===e.nodeName},US=function(e,t,n,r){var o=Rm(t,n,r);return C(o)||"BR"===o.nodeName||e.isBlock(o)},qS=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=Ed(e);zm(n)&&(a?o===i.getRoot()&&(n.list_block&&DS(t,n.list_block)||Z(ye(t.childNodes),(function(t){Dm(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=MS(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):i.isBlock(t)&&!i.isBlock(o)&&(US(i,t,!1)||US(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),US(i,t,!0)||US(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),Wm(n)&&!DS(n.inline,t)||i.remove(t,!0)},zS=function(e,t,n,r,o){var i,a=e.dom;if(!FS(a,r,t)&&!VS(r,t))return OS.keep();var u=r;if($m(t)&&"all"===t.remove&&b(t.preserve_attributes)){var s=ne(a.getAttribs(u),(function(e){return Q(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(u),Z(s,(function(e){return a.setAttrib(u,e.name,e.value)})),s.length>0)return OS.rename("span")}if("all"!==t.remove){NS(t.styles,(function(e,r){e=Mm(a,jm(e,n),r+""),k(r)&&(r=e,o=null),(t.remove_similar||!o||DS(Im(a,o,r),e))&&a.setStyle(u,r,""),i=!0})),i&&""===a.getAttrib(u,"style")&&(u.removeAttribute("style"),u.removeAttribute("data-mce-style")),NS(t.attributes,(function(e,r){var i;if(e=jm(e,n),k(r)&&(r=e,o=null),t.remove_similar||!o||DS(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(u,r),e&&(i="",Z(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)})),i)))return void a.setAttrib(u,r,i);if(RS.test(r)&&u.removeAttribute("data-mce-"+r),"style"===r&&Hr(["li"])(u)&&"none"===a.getStyle(u,"list-style-type"))return u.removeAttribute(r),void a.setStyle(u,"list-style-type","none");"class"===r&&u.removeAttribute("className"),u.removeAttribute(r)}})),NS(t.classes,(function(e){e=jm(e,n),o&&!a.hasClass(o,e)||a.removeClass(u,e)}));for(var c=a.getAttribs(u),l=0;l<c.length;l++){var f=c[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return OS.keep()}}return"none"!==t.remove?(qS(e,u,t),OS.removed()):OS.keep()},HS=function(e,t,n,r,o){return zS(e,t,n,r,o).fold(I,(function(t){return e.dom.rename(r,t),!0}),F)},$S=function(e,t,n,r,o){var i;return Z(Vm(e.dom,t.parentNode).reverse(),(function(t){if(!i&&"_start"!==t.id&&"_end"!==t.id){var a=UC(e,t,n,r,o);a&&!1!==a.split&&(i=t)}})),i},WS=function(e,t,n,r){return zS(e,t,n,r,r).fold(R(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),R(null))},KS=function(e,t,n,r,o,i,a,u){var s,c,l,f=e.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){s=f.clone(h,!1);for(var p=0;p<t.length;p++)if(s=WS(e,t[p],u,s),null===s)break;s&&(c&&s.appendChild(c),l||(l=s),c=s)}!i||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),c&&(o.parentNode.insertBefore(c,o),l.appendChild(o),$m(a)&&CS(f,a,u,c))}return r},YS=function(e,t,n,r,o){var i=e.formatter.get(t),a=i[0],u=!0,s=e.dom,c=e.selection,l=function(r){var u=$S(e,r,t,n,o);return KS(e,i,u,r,r,!0,a,n)},f=function(e){return xm(e)&&zr(e)&&("_start"===e.id||"_end"===e.id)},d=function(t){return X(i,(function(r){return HS(e,r,n,t,t)}))},h=function(t){var n=!0,r=!1;zr(t)&&s.getContentEditable(t)&&(n=u,u="true"===s.getContentEditable(t),r=!0);var o=ye(t.childNodes);if(u&&!r){var c=d(t),l=c||X(i,(function(e){return FC(s,t,e)})),f=t.parentNode;!l&&S(f)&&Km(a)&&d(f)}if(a.deep&&o.length){for(var p=0;p<o.length;p++)h(o[p]);r&&(u=n)}var m=["underline","line-through","overline"];Z(m,(function(n){zr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Fm(s,t.parentNode)===n&&HS(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},p=function(e){var t=s.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return f(n)&&(n=n[e?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),s.remove(t,!0),n},m=function(t){var n,r,o=cg(e,t,i,t.collapsed);if(a.split){if(o=Cv(o),n=jS(e,o,!0),r=jS(e,o),n!==r){if(n=LS(n,!0),r=LS(r,!1),PS(s,n,r)){var u=H.from(n.firstChild).getOr(n);return l(IS(s,u,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(PS(s,r,n)){u=H.from(r.lastChild).getOr(r);return l(IS(s,u,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=MS(s,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=MS(s,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=s.createRng();c.setStartAfter(n),c.setEndBefore(r),lg(s,c,(function(e){Z(e,(function(e){xm(e)||xm(e.parentNode)||l(e)}))})),l(n),l(r),n=p(!0),r=p()}else n=r=l(n);o.startContainer=n.parentNode?n.parentNode:n,o.startOffset=s.nodeIndex(n),o.endContainer=r.parentNode?r.parentNode:r,o.endOffset=s.nodeIndex(r)+1}lg(s,o,(function(e){Z(e,h)}))};if(r){if(Tm(r)){var g=s.createRng();g.setStartBefore(r),g.setEndAfter(r),m(g)}else m(r);ev(e,t,r,n)}else if("false"!==s.getContentEditable(c.getNode()))c.isCollapsed()&&$m(a)&&!vg(e).length?sS(e,t,n,o):(Tg(c,!0,(function(){kg(e,m)})),$m(a)&&qC(e,t,n,c.getStart())&&Om(s,c,c.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=c.getNode();for(var v=0;v<i.length;v++)if(i[v].ceFalseOverride&&HS(e,i[v],n,r,r))break;ev(e,t,r,n)}},GS=pn.each,QS=function(e,t,n,r){var o=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Fm(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)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(pn.walk(r,o,"childNodes"),o(r))},XS=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&ES(r,TS(e,"fontSize"),AS(e,"backgroundColor",jm(t.styles.backgroundColor,n)))},JS=function(e,t,n,r){!$m(t)||"sub"!==t.inline&&"sup"!==t.inline||(ES(r,TS(e,"fontSize"),AS(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},ZS=function(e,t,n,r){GS(t,(function(t){$m(t)&&GS(e.dom.select(t.inline,r),(function(r){wS(r)&&HS(e,t,n,r,t.exact?r:null)})),SS(e.dom,t,r)}))},eE=function(e,t,n,r,o){UC(e,o.parentNode,n,r)&&HS(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,(function(i){if(UC(e,i,n,r))return HS(e,t,r,o),!0}))},tE=pn.each,nE=function(e){return zr(e)&&!xm(e)&&!em(e)&&!Yr(e)},rE=function(e,t,n,r){if(ch(e)&&$m(t)){var o=Iu(e.schema),i=DC(wn.fromDom(n),(function(e){return em(e.dom)}));return Be(o,r)&&nu(wn.fromDom(n.parentNode),!1)&&!i}return!1},oE=function(e,t,n,r){var o=e.formatter.get(t),i=o[0],a=!r&&e.selection.isCollapsed(),u=e.dom,s=e.selection,c=function(e,t){if(void 0===t&&(t=i),E(t.onformat)&&t.onformat(e,t,n,r),tE(t.styles,(function(t,r){u.setStyle(e,r,jm(t,n))})),t.styles){var o=u.getAttrib(e,"style");o&&u.setAttrib(e,"data-mce-style",o)}tE(t.attributes,(function(t,r){u.setAttrib(e,r,jm(t,n))})),tE(t.classes,(function(t){t=jm(t,n),u.hasClass(e,t)||u.addClass(e,t)}))},l=function(e,t){var n=!1;return tE(e,(function(e){return!!Hm(e)&&(S(e.collapsed)&&e.collapsed!==a?void 0:u.is(t,e.selector)&&!em(t)?(c(t,e),n=!0,!1):void 0)})),n},f=function(e){if(v(e)){var t=u.create(e);return c(t),t}return null},d=function(r,a,u){var s=[],d=!0,h=i.inline||i.block,p=f(h);lg(r,a,(function(a){var f,m=function(a){var g=!1,v=d,y=a.nodeName.toLowerCase(),b=a.parentNode,w=b.nodeName.toLowerCase();if(zr(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),g=!0),ro(a)&&!rE(e,i,a,w))return f=null,void(zm(i)&&r.remove(a));if(zm(i)&&i.wrapper&&UC(e,a,t,n))f=null;else{if(d&&!g&&zm(i)&&!i.wrapper&&Nm(e,y)&&Dm(e,w,h)){var _=r.rename(a,h);return c(_),s.push(_),void(f=null)}if(Hm(i)){var x=l(o,a);if(!x&&S(b)&&Km(i)&&(x=l(o,b)),!$m(i)||x)return void(f=null)}!d||g||!Dm(e,h,y)||!Dm(e,w,h)||!u&&Zr(a)&&ha(a.data)||em(a)||$m(i)&&r.isBlock(a)?(f=null,Z(ye(a.childNodes),m),g&&(d=v),f=null):(f||(f=r.clone(p,!1),a.parentNode.insertBefore(f,a),s.push(f)),f.appendChild(a))}};Z(a,m)})),!0===i.links&&Z(s,(function(e){var t=function(e){"A"===e.nodeName&&c(e,i),Z(ye(e.childNodes),t)};t(e)})),Z(s,(function(a){var u=function(e){var t=0;return Z(e.childNodes,(function(e){Pm(e)||xm(e)||t++})),t},l=function(e){var t=ae(e.childNodes,nE).filter((function(e){return FC(r,e,i)}));return t.map((function(t){var n=r.clone(t,!1);return c(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},f=u(a);!(s.length>1)&&r.isBlock(a)||0!==f?($m(i)||zm(i)&&i.wrapper)&&(i.exact||1!==f||(a=l(a)),ZS(e,o,n,a),eE(e,i,t,n,a),XS(r,i,n,a),QS(r,i,n,a),JS(r,i,n,a),CS(r,i,n,a)):r.remove(a,!0)}))};if("false"!==u.getContentEditable(s.getNode())){if(i){if(r)if(Tm(r)){if(!l(o,r)){var h=u.createRng();h.setStartBefore(r),h.setEndAfter(r),d(u,cg(e,h,o),!0)}}else d(u,r,!0);else if(a&&$m(i)&&!vg(e).length)uS(e,t,n);else{var p=s.getNode(),m=o[0];e.settings.forced_root_block||!m.defaultBlock||u.getParent(p,u.isBlock)||oE(e,m.defaultBlock),s.setRng(Vx(s.getRng())),Tg(s,!0,(function(){kg(e,(function(t,n){var r=n?t:cg(e,t,o);d(u,r,!1)}))})),Om(u,s,s.getRng()),e.nodeChanged()}yS(t,e)}Zg(e,t,r,n)}else{r=s.getNode();for(var g=0,y=o.length;g<y;g++){var b=o[g];if(b.ceFalseOverride&&Hm(b)&&u.is(r,b.selector)){c(r,b);break}}Zg(e,t,r,n)}},iE=function(e){return De(e,"vars")},aE=function(e,t){e.set({}),t.on("NodeChange",(function(n){lE(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=H.from(n.node).map((function(e){return Tm(e)?e:e.startContainer})).bind((function(e){return zr(e)?H.some(e):H.from(e.parentElement)})).getOrThunk((function(){return uE(t)}));lE(t,r,e.get())}))},uE=function(e){return e.selection.getStart()},sE=function(e,t,n,r,o){var i=function(t){var i=e.formatter.matchNode(t,n,null!==o&&void 0!==o?o:{},r);return!x(i)},a=function(t){return!!MC(e,t,n)||!r&&S(e.formatter.matchNode(t,n,o,!0))};return ie(t,i,a)},cE=function(e,t){var n=null!==t&&void 0!==t?t:uE(e);return ne(Vm(e.dom,n),(function(e){return zr(e)&&!Yr(e)}))},lE=function(e,t,n){var r=cE(e,t);xe(n,(function(n,o){var i=function(n){var i=sE(e,r,o,n.similar,iE(n)?n.vars:void 0),a=i.isSome();if(n.state.get()!==a){n.state.set(a);var u=i.getOr(t);iE(n)?n.callback(a,{node:u,format:o,parents:r}):Z(n.callbacks,(function(e){return e(a,{node:u,format:o,parents:r})}))}};Z([n.withSimilar,n.withoutSimilar],i),Z(n.withVars,i)}))},fE=function(e,t,n,r,o,i){var a=t.get();Z(n.split(","),(function(t){var n=Ne(a,t).getOrThunk((function(){var e={withSimilar:{state:Qc(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Qc(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),u=function(){var n=cE(e);return sE(e,n,t,o,i).isSome()};if(x(i)){var s=o?n.withSimilar:n.withoutSimilar;s.callbacks.push(r),1===s.callbacks.length&&s.state.set(u())}else n.withVars.push({state:Qc(u()),similar:o,vars:i,callback:r})})),t.set(a)},dE=function(e,t,n){var r=e.get();Z(t.split(","),(function(e){return Ne(r,e).each((function(t){r[e]={withSimilar:He(He({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:He(He({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},hE=function(e,t,n,r,o,i){return null===t.get()&&aE(t,e),fE(e,t,n,r,o,i),{unbind:function(){return dE(t,n,r)}}},pE=function(e,t,n,r){var o=e.formatter.get(t);!qC(e,t,n,r)||"toggle"in o[0]&&!o[0].toggle?oE(e,t,n,r):YS(e,t,n,r)},mE=function(e,t){var n=t||document,r=n.createDocumentFragment();return Z(e,(function(e){r.appendChild(e.dom)})),wn.fromDom(r)},gE=function(e,t,n){return{element:e,width:t,rows:n}},vE=function(e,t){return{element:e,cells:t}},yE=function(e,t){return{x:e,y:t}},bE=function(e,t){var n=parseInt(bo(e,t),10);return isNaN(n)?1:n},wE=function(e,t,n,r,o){for(var i=bE(o,"rowspan"),a=bE(o,"colspan"),u=e.rows,s=n;s<n+i;s++){u[s]||(u[s]=vE(Kl(r),[]));for(var c=t;c<t+a;c++){var l=u[s].cells;l[c]=s===n&&c===t?o:Wl(o)}}},_E=function(e,t,n){var r=e.rows,o=r[n]?r[n].cells:[];return!!o[t]},xE=function(e,t,n){while(_E(e,t,n))t++;return t},CE=function(e){return oe(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},SE=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var o=n[r].cells,i=0;i<o.length;i++)if(Bn(o[i],t))return H.some(yE(i,r));return H.none()},EE=function(e,t,n,r,o){for(var i=[],a=e.rows,u=n;u<=o;u++){var s=a[u].cells,c=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(vE(a[u].element,c))}return i},kE=function(e,t,n){var r=t.x,o=t.y,i=n.x,a=n.y,u=o<a?EE(e,r,o,i,a):EE(e,r,a,i,o);return gE(e.element,CE(u),u)},TE=function(e,t){var n=Wl(e.element),r=wn.fromTag("tbody");return Sr(r,t),_r(n,r),n},AE=function(e){return J(e.rows,(function(e){var t=J(e.cells,(function(e){var t=Kl(e);return xo(t,"colspan"),xo(t,"rowspan"),t})),n=Wl(e.element);return Sr(n,t),n}))},OE=function(e){var t=gE(Wl(e),0,[]);return Z(Tl(e,"tr"),(function(e,n){Z(Tl(e,"td,th"),(function(r,o){wE(t,xE(t,o,n),n,e,r)}))})),gE(t.element,CE(t.rows),t.rows)},RE=function(e){return TE(e,AE(e))},NE=function(e,t,n){return SE(e,t).bind((function(t){return SE(e,n).map((function(n){return kE(e,t,n)}))}))},DE=function(e){return ae(e,(function(e){return"ul"===Mn(e)||"ol"===Mn(e)}))},BE=function(e,t){return ae(e,(function(e){return"li"===Mn(e)&&Cg(e,t)})).fold(R([]),(function(t){return DE(e).map((function(e){var t=wn.fromTag(Mn(e)),n=Ae(Oo(e),(function(e,t){return ct(t,"list-style")}));return Eo(t,n),[wn.fromTag("li"),t]})).getOr([])}))},PE=function(e,t){var n=oe(t,(function(e,t){return _r(t,e),t}),e);return t.length>0?mE([n]):n},jE=function(e){return ra(e)?Qn(e).filter(na).fold(R([]),(function(t){return[e,t]})):na(e)?[e]:[]},LE=function(e,t){var n=wn.fromDom(t.commonAncestorContainer),r=jw(n,e),o=ne(r,(function(e){return Zi(e)||Qi(e)})),i=BE(r,t),a=o.concat(i.length?i:jE(n));return J(a,Wl)},ME=function(){return mE([])},IE=function(e,t){return PE(wn.fromDom(t.cloneContents()),LE(e,t))},FE=function(e,t){return ki(t,"table",B(Bn,e))},VE=function(e,t){return FE(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],o=OE(e);return NE(o,n,r).map((function(e){return mE([RE(e)])}))})).getOrThunk(ME)},UE=function(e,t){return t.length>0&&t[0].collapsed?ME():IE(e,t[0])},qE=function(e,t){var n=gg(t,e);return n.length>0?VE(e,n):UE(e,t)},zE=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},HE=function(e,t){return t>=0&&t<e.length&&Em(e.charAt(t))},$E=function(e,t){var n=pa(e.innerText);return t?zE(n):n},WE=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},KE=function(e){return H.from(e.selection.getRng()).map((function(t){var n=H.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),o=WE(n),i=en.browser.isIE()&&"pre"!==o,a=e.dom.add(r,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),u=$E(a,i),s=pa(a.textContent);if(e.dom.remove(a),HE(s,0)||HE(s,s.length-1)){var c=n.getOr(r),l=$E(c,i),f=l.indexOf(u);if(-1===f)return u;var d=HE(l,f-1),h=HE(l,f+u.length);return(d?" ":"")+u+(h?" ":"")}return u})).getOr("")},YE=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),o=e.selection.getSel(),i=Sb(e,fg(o)),a=t.contextual?qE(wn.fromDom(e.getBody()),i).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},GE=function(e,t){return He(He({},e),{format:t,get:!0,selection:!0})},QE=function(e,t,n){void 0===n&&(n={});var r=GE(n,t),o=e.fire("BeforeGetContent",r);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return KE(e);o.getInner=!0;var i=YE(e,o);return"tree"===o.format?i:(o.content=e.selection.isCollapsed()?"":i,e.fire("GetContent",o),o.content)},XE=0,JE=1,ZE=2,ek=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,u){var c=s(n,r,o,i);if(null===c||c.start===r&&c.diag===r-i||c.end===n&&c.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&e[l]===t[f]?(u.push([XE,e[l]]),++l,++f):r-n>i-o?(u.push([ZE,e[l]]),++l):(u.push([JE,t[f]]),++f)}else{a(n,c.start,o,c.start-c.diag,u);for(var d=c.start;d<c.end;++d)u.push([XE,e[d]]);a(c.end,r,c.end-c.diag,i,u)}},u=function(n,r,o,a){var u=n;while(u-r<a&&u<o&&e[u]===t[u-r])++u;return i(n,u,r)},s=function(n,i,a,s){var c=i-n,l=s-a;if(0===c||0===l)return null;var f,d,h,p,m,g=c-l,v=l+c,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,o[1+y]=i+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){h=d+y,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-d;while(p<i&&m<s&&e[p]===t[m])r[h]=++p,++m;if(g%2!==0&&g-f<=d&&d<=g+f&&o[h-g]<=r[h])return u(o[h-g],d+n-a,i,s)}for(d=g-f;d<=g+f;d+=2){h=d+y-g,d===g-f||d!==g+f&&o[h+1]<=o[h-1]?o[h]=o[h+1]-1:o[h]=o[h-1],p=o[h]-1,m=p-n+a-d;while(p>=n&&m>=a&&e[p]===t[m])o[h]=p--,m--;if(g%2===0&&-f<=d&&d<=f&&o[h]<=r[h+g])return u(o[h],d+n-a,i,s)}}},c=[];return a(0,e.length,0,t.length,c),c},tk=function(e){return zr(e)?e.outerHTML:Zr(e)?Au.encodeRaw(e.data,!1):eo(e)?"\x3c!--"+e.data+"--\x3e":""},nk=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},rk=function(e,t,n){var r=nk(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},ok=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},ik=function(e,t){var n=0;Z(e,(function(e){e[0]===XE?n++:e[0]===JE?(rk(t,e[1],n),n++):e[0]===ZE&&ok(t,n)}))},ak=function(e){return ne(J(ye(e.childNodes),tk),(function(e){return e.length>0}))},uk=function(e,t){var n=J(ye(t.childNodes),tk);return ik(ek(n,e),t),t},sk=Ke((function(){return document.implementation.createHTMLDocument("undo")})),ck=function(e){return-1!==e.indexOf("</iframe>")},lk=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},fk=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},dk=function(e){var t=ak(e.getBody()),n=ce(t,(function(t){var n=Gb(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return ck(r)?lk(n):fk(r)},hk=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?uk(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!S(r)||!am(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},pk=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},mk=function(e){var t=wn.fromTag("body",sk());return Hl(t,pk(e)),Z(Tl(t,"*[data-mce-bogus]"),Tr),zl(t)},gk=function(e,t){return pk(e)===pk(t)},vk=function(e,t){return mk(e)===mk(t)},yk=function(e,t){return!(!e||!t)&&(!!gk(e,t)||vk(e,t))},bk=function(e){return 0===e.get()},wk=function(e,t,n){bk(n)&&(e.typing=t)},_k=function(e,t){e.typing&&(wk(e,!1,t),e.add())},xk=function(e){e.typing&&(e.typing=!1,e.add())},Ck=function(e,t,n){bk(t)&&n.set(pd(e.selection))},Sk=function(e,t,n,r,o,i,a){var u=dk(e);if(i=i||{},i=pn.extend(i,u),!1===bk(r)||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&yk(s,i))return null;t.data[n.get()]&&o.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var c=bh(e);if(c&&t.data.length>c){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=pd(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:s,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i},Ek=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},kk=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];hk(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},Tk=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],hk(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},Ak=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,wk(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],hk(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},Ok=function(e){e.clear(),e.add()},Rk=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!yk(dk(e),t.data[0])},Nk=function(e,t){return t.get()<e.data.length-1&&!e.typing},Dk=function(e,t,n){return _k(e,t),e.beforeChange(),e.ignore(n),e.add()},Bk=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},Pk=function(e,t){var n=e.dom,r=S(t)?t:e.getBody();x(e.hasVisual)&&(e.hasVisual=kh(e)),Z(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Th(e),o=n.getAttrib(t,"border");o&&"0"!==o||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var i=n.getAttrib(t,"name")||t.id,a=Ah(e);i&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},jk=function(e){return{undoManager:{beforeChange:function(t,n){return Ck(e,t,n)},add:function(t,n,r,o,i,a){return Sk(e,t,n,r,o,i,a)},undo:function(t,n,r){return Ak(e,t,n,r)},redo:function(t,n){return Tk(e,t,n)},clear:function(t,n){return Ek(e,t,n)},reset:function(e){return Ok(e)},hasUndo:function(t,n){return Rk(e,t,n)},hasRedo:function(e,t){return Nk(e,t)},transact:function(e,t,n){return Dk(e,t,n)},ignore:function(e,t){return Bk(e,t)},extra:function(t,n,r,o){return kk(e,t,n,r,o)}},formatter:{match:function(t,n,r,o){return qC(e,t,n,r,o)},matchAll:function(t,n){return zC(e,t,n)},matchNode:function(t,n,r,o){return UC(e,t,n,r,o)},canApply:function(t){return $C(e,t)},closest:function(t){return HC(e,t)},apply:function(t,n,r){return oE(e,t,n,r)},remove:function(t,n,r,o){return YS(e,t,n,r,o)},toggle:function(t,n,r){return pE(e,t,n,r)},formatChanged:function(t,n,r,o,i){return hE(e,t,n,r,o,i)}},editor:{getContent:function(t,n){return ew(e,t,n)},setContent:function(t,n){return NC(e,t,n)},insertContent:function(t,n){return wC(e,t,n)},addVisual:function(t){return Pk(e,t)}},selection:{getContent:function(t,n){return QE(e,t,n)}},raw:{getModel:function(){return H.none()}}}},Lk=function(e){var t=function(e){return y(e)?e:{}},n=e.undoManager,r=e.formatter,o=e.editor,i=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,o){return n.extra(r,o)}},formatter:{match:function(e,n,o,i){return r.match(e,t(n),i)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,o){return r.apply(e,t(n))},remove:function(e,n,o,i){return r.remove(e,t(n))},toggle:function(e,n,o){return r.toggle(e,t(n))},formatChanged:function(e,t,n,o,i){return r.formatChanged(t,n,o,i)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:o.addVisual},selection:{getContent:function(e,t){return i.getContent(t)}},raw:{getModel:function(){return H.some(a.getRawModel())}}}},Mk=function(){var e=R(null),t=R("");return{undoManager:{beforeChange:T,add:e,undo:e,redo:e,clear:T,reset:T,hasUndo:I,hasRedo:I,transact:e,ignore:T,extra:T},formatter:{match:I,matchAll:R([]),matchNode:R(void 0),canApply:I,closest:t,apply:T,remove:T,toggle:T,formatChanged:R({unbind:T})},editor:{getContent:t,setContent:t,insertContent:T,addVisual:T},selection:{getContent:t},raw:{getModel:R(H.none())}}},Ik=function(e){return De(e.plugins,"rtc")},Fk=function(e){return Ne(e.plugins,"rtc").bind((function(e){return H.from(e.setup)}))},Vk=function(e){var t=e;return Fk(e).fold((function(){return t.rtcInstance=jk(e),H.none()}),(function(e){return t.rtcInstance=Mk(),H.some((function(){return e().then((function(e){return t.rtcInstance=Lk(e),e.rtc.isRemote}))}))}))},Uk=function(e){return e.rtcInstance?e.rtcInstance:jk(e)},qk=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},zk=function(e,t,n){qk(e).undoManager.beforeChange(t,n)},Hk=function(e,t,n,r,o,i,a){return qk(e).undoManager.add(t,n,r,o,i,a)},$k=function(e,t,n,r){return qk(e).undoManager.undo(t,n,r)},Wk=function(e,t,n){return qk(e).undoManager.redo(t,n)},Kk=function(e,t,n){qk(e).undoManager.clear(t,n)},Yk=function(e,t){qk(e).undoManager.reset(t)},Gk=function(e,t,n){return qk(e).undoManager.hasUndo(t,n)},Qk=function(e,t,n){return qk(e).undoManager.hasRedo(t,n)},Xk=function(e,t,n,r){return qk(e).undoManager.transact(t,n,r)},Jk=function(e,t,n){qk(e).undoManager.ignore(t,n)},Zk=function(e,t,n,r,o){qk(e).undoManager.extra(t,n,r,o)},eT=function(e,t,n,r,o){return qk(e).formatter.match(t,n,r,o)},tT=function(e,t,n){return qk(e).formatter.matchAll(t,n)},nT=function(e,t,n,r,o){return qk(e).formatter.matchNode(t,n,r,o)},rT=function(e,t){return qk(e).formatter.canApply(t)},oT=function(e,t){return qk(e).formatter.closest(t)},iT=function(e,t,n,r){qk(e).formatter.apply(t,n,r)},aT=function(e,t,n,r,o){qk(e).formatter.remove(t,n,r,o)},uT=function(e,t,n,r){qk(e).formatter.toggle(t,n,r)},sT=function(e,t,n,r,o,i){return qk(e).formatter.formatChanged(t,n,r,o,i)},cT=function(e,t,n){return Uk(e).editor.getContent(t,n)},lT=function(e,t,n){return Uk(e).editor.setContent(t,n)},fT=function(e,t,n){return Uk(e).editor.insertContent(t,n)},dT=function(e,t,n){return qk(e).selection.getContent(t,n)},hT=function(e,t){return qk(e).editor.addVisual(t)},pT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return dT(e,n,t)},mT=function(e){return 0===e.dom.length?(kr(e),H.none()):H.some(e)},gT=function(e,t){return e.filter((function(e){return Ig.isBookmarkNode(e.dom)})).bind(t?er:Zn)},vT=function(e,t,n,r){var o=e.dom,i=t.dom,a=r?o.length:i.length;r?(x_(o,i,!1,!r),n.setStart(i,a)):(x_(i,o,!1,!r),n.setEnd(i,a))},yT=function(e,t){Qn(e).each((function(n){var r=e.dom;t&&a_(n,Bf(r,0))?w_(r,0):!t&&s_(n,Bf(r,r.length))&&__(r,r.length)}))},bT=function(e,t,n,r){e.bind((function(e){var o=r?__:w_;return o(e.dom,r?e.dom.length:0),t.filter(qn).map((function(t){return vT(e,t,n,r)}))})).orThunk((function(){var e=gT(t,r).or(t).filter(qn);return e.map((function(e){return yT(e,r)}))}))},wT=function(e,t){var n=H.from(t.firstChild).map(wn.fromDom),r=H.from(t.lastChild).map(wn.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(Zn).filter(qn).bind(mT),i=r.bind(er).filter(qn).bind(mT);bT(o,n,e,!0),bT(i,r,e,!1),e.collapse(!1)},_T=function(e,t){return He(He({format:"html"},e),{set:!0,selection:!0,content:t})},xT=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,He(He({isRootContent:!0,forced_root_block:!1},o),t));return iw({validate:e.validate},e.schema).serialize(i)}return t.content},CT=function(e,t,n){void 0===n&&(n={});var r=_T(n,t),o=r;if(!r.no_events){var i=e.fire("BeforeSetContent",r);if(i.isDefaultPrevented())return void e.fire("SetContent",i);o=i}o.content=xT(e,o);var a=e.selection.getRng();wT(a,a.createContextualFragment(o.content)),e.selection.setRng(a),ny(e,a),o.no_events||e.fire("SetContent",o)},ST=function(e,t,n){if(e&&De(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function ET(e,t){var n,r,o=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},i=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=i(t),u={};pn.each(n,(function(e,t){o(t,a).each((function(n){r[t]||(Z(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),u[t]=e}))})),pn.each(r,(function(e,n){u[n]||(delete r[n],pn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),o(e,i(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){ST(n,e,a),ST(r,e,a)}}}}}var kT=function(e){return!!e.select},TT=function(e){return!(!e||!e.ownerDocument)&&Ln(wn.fromDom(e.ownerDocument),wn.fromDom(e))},AT=function(e){return!!e&&(!!kT(e)||TT(e.startContainer)&&TT(e.endContainer))},OT=function(e,t,n,r){var o,i,a=ET(e,r).selectorChangedWithUnbind,u=function(t,n){var o=e.createRng();S(t)&&S(n)?(o.setStart(t,n),o.setEnd(t,n),b(o),g(!1)):(Sg(e,o,r.getBody(),!0),b(o))},s=function(e){return pT(r,e)},c=function(e,t){return CT(r,e,t)},l=function(e){return yb(r.getBody(),y(),e)},f=function(e){return bb(r.getBody(),y(),e)},d=function(e,t){return B.getBookmark(e,t)},h=function(e){return B.moveToBookmark(e)},p=function(t,n){return Cb(e,t,n).each(b),t},m=function(){var e=y(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=function(e){var t=y();t.collapse(!!e),b(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},y=function(){var n,a,u,s=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},c=t.document;if(void 0!==r.bookmark&&!1===db(r)){var l=Fy(r);if(l.isSome())return l.map((function(e){return Sb(r,[e])[0]})).getOr(c.createRange())}try{(n=v())&&!qr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=Sb(r,[a])[0])}catch(f){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(u=e.getRoot(),a.setStart(u,0),a.setEnd(u,0)),o&&i&&(0===s(a.START_TO_START,a,o)&&0===s(a.END_TO_END,a,o)?a=i:(o=null,i=null)),a},b=function(e,t){var n;if(AT(e)){var a=kT(e)?e:null;if(a){i=null;try{a.select()}catch(c){}}else{var u=v(),s=r.fire("SetSelectionRange",{range:e,forward:t});if(e=s.range,u){i=e;try{u.removeAllRanges(),u.addRange(e)}catch(c){}!1===t&&u.extend&&(u.collapse(e.endContainer,e.endOffset),u.extend(e.startContainer,e.startOffset)),o=u.rangeCount>0?u.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!u.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(u.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),u.anchorNode===e.startContainer&&u.focusNode===e.endContainer||u.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},w=function(t){return c(e.getOuterHTML(t)),t},_=function(){return _b(r.getBody(),y())},x=function(t,n){return xb(e,y(),t,n)},C=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||qr(n)||qr(r))return!0;var o=e.createRng();o.setStart(n,t.anchorOffset),o.collapse(!0);var i=e.createRng();return i.setStart(r,t.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0},E=function(){var t=y(),n=v();if(!hg(n)&&Eg(r)){var o=_v(e,t);return o.each((function(e){b(e,C())})),o.getOr(t)}return t},k=function(e,t){return a(e,t),D},T=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){S(e)?ty(r,e,t):ny(r,y(),t)},O=function(e,t){return b(sv(e,t,r.getDoc()))},R=function(){var e=y();return e.collapsed?Bf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},N=function(){t=o=i=null,P.destroy()},D={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:g,setCursorLocation:u,getContent:s,setContent:c,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:m,isForward:C,setNode:w,getNode:_,getSel:v,setRng:b,getRng:y,getStart:l,getEnd:f,getSelectedBlocks:x,normalize:E,selectorChanged:k,selectorChangedWithUnbind:a,getScrollContainer:T,scrollIntoView:A,placeCaretAt:O,getBoundingClientRect:R,destroy:N},B=Ig(D),P=rv(D,r);return D.bookmarkManager=B,D.controlSelection=P,D},RT=function(e,t){Z(t,(function(t){e.attr(t,null)}))},NT=function(e,t,n){e.addNodeFilter("font",(function(e){Z(e,(function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),RT(e,["color","face","size"])}))}))},DT=function(e,t){e.addNodeFilter("strike",(function(e){Z(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},BT=function(e,t){var n=zu();t.convert_fonts_to_spans&&NT(e,n,pn.explode(t.font_size_legacy_values)),DT(e,n)},PT=function(e,t){t.inline_styles&&BT(e,t)},jT=function(e){return new Oi((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===o.status?t(o.response):r()},o.onerror=r,o.send()}catch(i){r()}}))},LT=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},MT=function(e,t){var n;try{n=atob(t)}catch(vU){return H.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return H.some(new Blob([r],{type:e}))},IT=function(e){return new Oi((function(t){var n=LT(e),r=n.type,o=n.data;MT(r,o).fold((function(){return t(new Blob([]))}),t)}))},FT=function(e){return 0===e.indexOf("blob:")?jT(e):0===e.indexOf("data:")?IT(e):null},VT=function(e){return new Oi((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},UT=0,qT=function(e){return(e||"blobid")+UT++},zT=function(e,t,n,r){var o,i;if(0===t.src.indexOf("blob:"))return i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):FT(t.src).then((function(r){VT(r).then((function(a){o=LT(a).data,i=e.create(qT(),r,o),e.add(i),n({image:t,blobInfo:i})}))}),(function(e){r(e)})));var a=LT(t.src),u=a.data,s=a.type;o=u,i=e.getByData(o,s),i?n({image:t,blobInfo:i}):FT(t.src).then((function(r){i=e.create(qT(),r,o),e.add(i),n({image:t,blobInfo:i})}),(function(e){r(e)}))},HT=function(e){return e?ye(e.getElementsByTagName("img")):[]},$T=function(e,t){var n={},r=function(r,o){o||(o=F);var i=ne(HT(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t)))))})),a=J(i,(function(e){if(void 0!==n[e.src])return new Oi((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Oi((function(n,r){zT(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Oi.all(a)};return{findAll:r}},WT=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new Ob("br",1)).shortEnded=!0:r.empty().append(new Ob("#text",3)).value=ca},KT=function(e){return YT(e,"#text")&&e.firstChild.value===ca},YT=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},GT=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},QT=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return GT(e,t)}))},XT=function(e,t){return e&&(De(t,e.name)||"br"===e.name)},JT=function(e){return S(e.attr("data-mce-bogus"))},ZT=function(e){return e.attr("src")===en.transparentSrc||S(e.attr("data-mce-placeholder"))},eA=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),xe(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},tA=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");ZT(e)||JT(e)||Db(r).filter((function(){return eA(e,t)})).bind((function(e){var t=e.type,r=e.data;return H.from(n.getByData(r,t)).orThunk((function(){return MT(t,r).map((function(e){var t=n.create(qT(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Z(e,r)}))},nA=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,o){var i,a,u,s,c,l,f,d,h=e.length,p=pn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,i=0;i<h;i++)if(a=e[i],u=a.parent,p[a.parent.name]&&a===u.lastChild){c=a.prev;while(c){if(l=c.name,"span"!==l||"bookmark"!==c.attr("data-mce-type")){"br"===l&&(a=null);break}c=c.prev}a&&(a.remove(),QT(n,m,g,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&WT(t,o,p,u))))}else{s=a;while(u&&u.firstChild===s&&u.lastChild===s){if(s=u,p[u.name])break;u=u.parent}s===u&&!0!==t.padd_empty_with_br&&(d=new Ob("#text",3),d.value=ca,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},o=function(e){var t=e?pn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var i=e[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",o(i.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,o,i=e.length;while(i--)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do{n=t.prev,r.insert(t,o),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new Ob("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var o=e[r],i=o.attr("class").split(" "),a="",u=0;u<i.length;u++){var s=i[u],c=!1,l=t["*"];l&&l[s]&&(c=!0),l=t[o.name],!c&&l&&l[s]&&(c=!0),c&&(a&&(a+=" "),a+=s)}a.length||(a=null),o.attr("class",a)}})),tA(e,t)},rA=pn.makeMap,oA=pn.each,iA=pn.explode,aA=pn.extend,uA=function(e,t){void 0===t&&(t=Uu());var n={},r=[],o={},i={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=rA("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),o=t.getWhiteSpaceElements(),i=t.getTextBlockElements(),a=t.getSpecialElements(),s=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),o=0,i=r;o<i.length;o++){var u=i[o];t.isValidChild(n.name,u.name)||s(u,n)}e.unwrap()}},c=0;c<e.length;c++){var l=e[c],f=void 0,d=void 0,h=void 0;if(l.parent&&!l.fixed)if(i[l.name]&&"li"===l.parent.name){var p=l.next;while(p){if(!i[p.name])break;p.name="li",p.fixed=!0,l.parent.insert(p,l.parent),p=p.next}l.unwrap()}else{var m=[l];for(f=l.parent;f&&!t.isValidChild(f.name,l.name)&&!n[f.name];f=f.parent)m.push(f);if(f&&m.length>1)if(t.isValidChild(f.name,l.name)){m.reverse(),d=u(m[0].clone());for(var g=d,v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(h=u(m[v].clone()),g.append(h)):h=g;for(var y=m[v].firstChild;y&&y!==m[v+1];){var b=y.next;h.append(y),y=b}g=h}QT(t,r,o,d)?f.insert(l,m[0],!0):(f.insert(d,m[0],!0),f.insert(l,d)),f=m[0],(QT(t,r,o,f)||YT(f,"br"))&&f.empty().remove()}else s(l);else if(l.parent){if("li"===l.name){p=l.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(l);continue}if(p=l.next,p&&("ul"===p.name||"ol"===p.name)){p.insert(l,p.firstChild,!0);continue}l.wrap(u(new Ob("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(u(new Ob("div",1))):s(l)}}}},u=function(e){var t=e.name;if(t in n){var a=o[t];a?a.push(e):o[t]=[e]}var u=r.length;while(u--){var s=r[u].name;if(s in e.attributes.map){a=i[s];a?a.push(e):i[s]=[e]}}return e},s=function(e,t){oA(iA(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},c=function(){var e=[];for(var t in n)De(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){oA(iA(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(u,s){var c,l,f,d,h,p,m,g,v=[],y=function(e){return!1===e?"":!0===e?"p":e};s=s||{},o={},i={};var b=aA(rA("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=Iu(t),_=t.getNonEmptyElements(),x=t.children,C=e.validate,E="forced_root_block"in s?s.forced_root_block:e.forced_root_block,k=y(E),T=t.getWhiteSpaceElements(),A=/^[ \t\r\n]+/,O=/[ \t\r\n]+$/,R=/[ \t\r\n]+/g,N=/^[ \t\r\n]+$/,D=De(T,s.context)||De(T,e.root_name),B=function(){var n=F.firstChild,r=null,o=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(A,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(O,"")))};if(t.isValidChild(F.name,k.toLowerCase())){while(n){var i=n.next;3===n.type||1===n.type&&"p"!==n.name&&!b[n.name]&&!n.attr("data-mce-type")?(r||(r=P(k,1),r.attr(e.forced_root_block_attrs),F.insert(r,n)),r.append(n)):(o(r),r=null),n=i}o(r)}},P=function(e,t){var r,i=new Ob(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},j=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var o=r.value.replace(O,"");if(o.length>0)return void(r.value=o);var i=r.next;if(i){if(3===i.type&&i.value.length){r=r.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},L=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},M=function(e){var n=e;while(S(n)){if(n.name in w)return QT(t,_,T,n);n=n.parent}return!1},I=Kb({validate:C,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:L(t.getSelfClosingElements()),cdata:function(e){g.append(P("#cdata",4)).value=e},text:function(e,t){var n;D||(e=e.replace(R," "),XT(g.lastChild,b)&&(e=e.replace(A,""))),0!==e.length&&(n=P("#text",3),n.raw=!!t,g.append(n).value=e)},comment:function(e){g.append(P("#comment",8)).value=e},pi:function(e,t){g.append(P(e,7)).value=t,j(g)},doctype:function(e){var t=g.append(P("#doctype",10));t.value=e,j(g)},start:function(e,n,o){var a=C?t.getElementRule(e):{};if(a){var u=P(a.outputName||e,1);u.attributes=n,u.shortEnded=o,g.append(u);var s=x[g.name];s&&x[u.name]&&!s[u.name]&&v.push(u);var c=r.length;while(c--){var l=r[c].name;l in n.map&&(p=i[l],p?p.push(u):i[l]=[u])}b[e]&&j(u),o||(g=u),!D&&T[e]&&(D=!0)}},end:function(n){var r,o,i,a=C?t.getElementRule(n):{};if(a){if(b[n]&&!D){if(r=g.firstChild,r&&3===r.type)if(o=r.value.replace(A,""),o.length>0)r.value=o,r=r.next;else{i=r.next,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.next,(0===o.length||N.test(o))&&(r.remove(),r=i),r=i}if(r=g.lastChild,r&&3===r.type)if(o=r.value.replace(O,""),o.length>0)r.value=o,r=r.prev;else{i=r.prev,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.prev,(0===o.length||N.test(o))&&(r.remove(),r=i),r=i}}D&&T[n]&&(D=!1);var u=QT(t,_,T,g),c=g.parent;a.paddInEmptyBlock&&u&&M(g)?WT(e,s,b,g):a.removeEmpty&&u?b[g.name]?g.empty().remove():g.unwrap():a.paddEmpty&&(KT(g)||u)&&WT(e,s,b,g),g=c}}},t),F=g=new Ob(s.context||e.root_name,11);if(I.parse(u,s.format),C&&v.length&&(s.context?s.invalid=!0:a(v)),k&&("body"===F.name||s.isRootContent)&&B(),!s.invalid){for(m in o)if(De(o,m)){p=n[m],c=o[m],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(l=0,f=p.length;l<f;l++)p[l](c,m,s)}for(l=0,f=r.length;l<f;l++)if(p=r[l],p.name in i){c=i[p.name],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(d=0,h=p.callbacks.length;d<h;d++)p.callbacks[d](c,p.name,s)}}return F},h={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:s,getNodeFilters:c,filterNode:u,parse:d};return nA(h,e),PT(h,e),h},sA=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var o="data-mce-"+r,i=t.url_converter,a=t.url_converter_scope,u=e.length;while(u--){var s=e[u],c=s.attr(o);void 0!==c?(s.attr(r,c.length>0?c:null),s.attr(o,null)):(c=s.attr(r),"style"===r?c=n.serializeStyle(n.parseStyle(c),s.name):i&&(c=i.call(a,c,r,s.name)),s.attr(r,c.length>0?c:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var o=e[r];if("bookmark"===o.attr("data-mce-type")&&!n.cleanup){var i=H.from(o.firstChild).exists((function(e){return!ha(e.value)}));i?o.unwrap():o.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Au.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},o=e.length;while(o--){var i=e[o],a=i.firstChild?i.firstChild.value:"";if("script"===n){var u=i.attr("type");u&&i.attr("type","mce-no/type"===u?null:u.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var o=e[r];t.preserve_cdata&&0===o.value.indexOf("[CDATA[")?(o.name="#cdata",o.type=4,o.value=n.decode(o.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===o.value.indexOf("mce:protected ")&&(o.name="#text",o.type=3,o.raw=!0,o.value=unescape(o.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Z(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},cA=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},lA=function(e,t,n){var r,o=e.dom,i=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var u=a.createHTMLDocument("");pn.each("BODY"===i.nodeName?i.childNodes:[i],(function(e){u.body.appendChild(u.importNode(e,!0))})),i="BODY"!==i.nodeName?u.body.firstChild:u.body,r=o.doc,o.doc=u}return Ug(e,He(He({},n),{node:i})),r&&(o.doc=r),i},fA=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},dA=function(e,t,n){return fA(e,n)?lA(e,t,n):t},hA=function(e,t,n){-1===pn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},pA=function(e,t,n){if(!t.no_events&&e){var r=qg(e,He(He({},t),{content:n}));return r.content}return n},mA=function(e,t,n){var r=pa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(wn.fromDom(t))?r:pn.trim(r)},gA=function(e,t,n){var r=n.selection?He({forced_root_block:!1},n):n,o=e.parse(t,r);return cA(o),o},vA=function(e,t,n){var r=iw(e,t);return r.serialize(n)},yA=function(e,t,n,r,o){var i=vA(t,n,r);return pA(e,o,i)},bA=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:Uc.DOM,o=t&&t.schema?t.schema:Uu(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i=uA(e,o);sA(i,e,r);var a=function(n,a){void 0===a&&(a={});var u=He({format:"html"},a),s=dA(t,n,u),c=mA(r,s,u),l=gA(i,c,u);return"tree"===u.format?l:yA(t,e,o,l,u)};return{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:B(hA,i,n),getTempAttrs:R(n),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters}},wA=function(e,t){var n=bA(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},_A="html",xA=function(e,t){void 0===t&&(t={});var n=t.format?t.format:_A;return cT(e,t,n)},CA=function(e,t,n){return void 0===n&&(n={}),lT(e,t,n)},SA=Uc.DOM,EA=function(e){SA.setStyle(e.id,"display",e.orgDisplay)},kA=function(e){return H.from(e).each((function(e){return e.destroy()}))},TA=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},AA=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),SA.unbind(t,"submit reset",e.formEventDelegate))},OA=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&&SA.remove(o.nextSibling),zg(e),e.editorManager.remove(e),!e.inline&&r&&EA(e),Hg(e),SA.remove(e.getContainer()),kA(t),kA(n),e.destroy()}},RA=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),kA(n),kA(r)),AA(e),TA(e),e.destroyed=!0):e.remove())},NA=function(e,t){var n=y(e)&&y(t);return n?BA(e,t):t},DA=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)De(i,a)&&(r[a]=e(r[a],i[a]))}return r}},BA=DA(NA),PA="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),jA="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),LA="imagetools,toc".split(","),MA=function(e){var t=ne(PA,(function(t){return De(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),pe(t)},IA=function(e){var t=pn.makeMap(e.plugins," "),n=function(e){return De(t,e)},r=We(We([],ne(jA,n),!0),ce(LA,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return pe(r)},FA=function(e,t){var n=MA(e),r=IA(t),o=r.length>0,i=n.length>0,a="mobile"===t.theme;if(o||i||a){var u="\n- ",s=a?"\n\nThemes:"+u+"mobile":"",c=o?"\n\nPlugins:"+u+r.join(u):"",l=i?"\n\nSettings:"+u+n.join(u):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+s+c+l)}},VA=function(e,t){return{sections:R(e),settings:R(t)}},UA=$t().deviceType,qA=UA.isTouch(),zA=UA.isPhone(),HA=UA.isTablet(),$A=["lists","autolink","autosave"],WA={table_grid:!1,object_resizing:!1,resize:!1},KA=function(e){var t=b(e)?e.join(" "):e,n=J(v(t)?t.split(" "):[],ft);return ne(n,(function(e){return e.length>0}))},YA=function(e){return ne(e,B(Q,$A))},GA=function(e,t){var n=Te(t,(function(t,n){return Q(e,n)}));return VA(n.t,n.f)},QA=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=Ne(r,t).getOr({});return pn.extend({},n,o)},XA=function(e,t){return De(e.sections(),t)},JA=function(e,t,n){var r=e.sections();return XA(e,t)&&r[t].theme===n},ZA=function(e,t){return XA(e,t)?e.sections()[t]:{}},eO=function(e,t){return Ne(e,"toolbar_mode").orThunk((function(){return Ne(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},tO=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:eO(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return He(He({},i),r?WA:{})},nO=function(e,t){var n={resize:!1,toolbar_mode:eO(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return He(He(He({},WA),n),t?r:{})},rO=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?pn.extend({},e.external_plugins,n):n},oO=function(e,t){return[].concat(KA(e)).concat(KA(t))},iO=function(e,t,n,r){return e&&JA(t,"mobile","mobile")?YA(r):e&&XA(t,"mobile")?r:n},aO=function(e,t,n,r){var o=KA(n.forced_plugins),i=KA(r.plugins),a=ZA(t,"mobile"),u=a.plugins?KA(a.plugins):i,s=iO(e,t,i,u),c=oO(o,s);if(en.browser.isIE()&&Q(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return pn.extend(r,{plugins:c.join(" ")})},uO=function(e,t){return e&&XA(t,"mobile")},sO=function(e,t,n,r,o){var i=e?{mobile:nO(o.mobile||{},t)}:{},a=GA(["mobile"],BA(i,o)),u=pn.extend(n,r,a.settings(),uO(e,a)?QA(a,"mobile"):{},{validate:!0,external_plugins:rO(r,a.settings())});return aO(e,a,r,u)},cO=function(e,t,n,r,o){var i=tO(o,t,n,qA,e),a=sO(zA||HA,zA,i,r,o);return!1!==a.deprecation_warnings&&FA(o,a),a},lO=function(e,t,n){return H.from(t.settings[n]).filter(e)},fO=function(e){var t={};return"string"===typeof e?Z(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[pn.trim(n[0])]=pn.trim(n[1]):t[pn.trim(n[0])]=pn.trim(n[0])})):t=e,t},dO=function(e){return function(t){return b(t)&&le(t,e)}},hO=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?fO(o):"string"===r?lO(v,e,t).getOr(n):"number"===r?lO(k,e,t).getOr(n):"boolean"===r?lO(_,e,t).getOr(n):"object"===r?lO(y,e,t).getOr(n):"array"===r?lO(b,e,t).getOr(n):"string[]"===r?lO(dO(v),e,t).getOr(n):"function"===r?lO(E,e,t).getOr(n):o},pO=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return De(e,t)};return{add:t,get:n,has:r}},mO=pO(),gO=function(e,t){var n=t.dom;return n[e]},vO=function(e,t){return parseInt(ko(t,e),10)},yO=B(gO,"clientWidth"),bO=B(gO,"clientHeight"),wO=B(vO,"margin-top"),_O=B(vO,"margin-left"),xO=function(e){return e.dom.getBoundingClientRect()},CO=function(e,t,n){var r=yO(e),o=bO(e);return t>=0&&n>=0&&t<=r&&n<=o},SO=function(e,t,n,r){var o=xO(t),i=e?o.left+t.dom.clientLeft+_O(t):0,a=e?o.top+t.dom.clientTop+wO(t):0,u=n-i,s=r-a;return{x:u,y:s}},EO=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.inline?r:Yn(r),i=SO(e.inline,o,t,n);return CO(o,i.x,i.y)},kO=function(e){return H.from(e).map(wn.fromDom)},TO=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return kO(t).map(Ar).getOr(!1)},AO=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},OO=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():AO()},r=function(){return H.from(t[0])},o=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},u=function(e){ue(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},s=function(s,c){if(void 0===c&&(c=!0),!e.removed&&TO(e))return c&&e.fire("BeforeOpenNotification",{notification:s}),ae(t,(function(e){return o(n().getArgs(e),s)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(s,(function(){u(t),i(),r().fold((function(){return e.focus()}),(function(e){return oy(wn.fromDom(e.getEl()))}))}));return a(t),i(),e.fire("OpenNotification",{notification:He({},t)}),t}))},c=function(){r().each((function(e){n().close(e),u(e),i()}))},l=R(t),f=function(e){e.on("SkinLoaded",(function(){var t=rh(e);t&&s({text:t,type:"warning",timeout:0},!1),i()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Li.requestAnimationFrame(i)})),e.on("remove",(function(){Z(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:s,close:c,getNotifications:l}},RO=ll.PluginManager,NO=ll.ThemeManager;function DO(){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}}var BO=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():DO()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},u=function(n){i(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},s=function(){return H.from(t[t.length-1])},c=function(t){e.editorManager.setActive(e),My(e);var n=t();return a(n),n},l=function(e,t){return c((function(){return n().open(e,t,u)}))},f=function(e){return c((function(){return n().openUrl(e,u)}))},d=function(e,t,o){var i=n();i.alert(e,r(o||i,t))},h=function(e,t,o){var i=n();i.confirm(e,r(o||i,t))},p=function(){s().each((function(e){n().close(e),u(e)}))};return e.on("remove",(function(){Z(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:p}},PO=function(e,t){e.notificationManager.open({type:"error",text:t})},jO=function(e,t){e._skinLoaded?PO(e,t):e.on("SkinLoaded",(function(){PO(e,t)}))},LO=function(e,t){jO(e,cl.translate(["Failed to upload image: {0}",t]))},MO=function(e,t,n){Jg(e,t,{message:n}),console.error(n)},IO=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},FO=function(e,t,n){MO(e,"PluginLoadError",IO("plugin",t,n))},VO=function(e,t,n){MO(e,"IconsLoadError",IO("icons",t,n))},UO=function(e,t,n){MO(e,"LanguageLoadError",IO("language",t,n))},qO=function(e,t,n){var r=cl.translate(["Failed to initialize plugin: {0}",t]);Jg(e,"PluginLoadError",{message:r}),zO(r,n),jO(e,r)},zO=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,We([e],t,!1)):r.log.apply(r,We([e],t,!1)))},HO=function(e){return/^[a-z0-9\-]+$/i.test(e)},$O=function(e){return KO(e,Gd(e))},WO=function(e){return KO(e,Qd(e))},KO=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=!0===e.inline;return J(t,(function(t){return HO(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},YO=function(e){e.contentCSS=e.contentCSS.concat($O(e),WO(e))},GO=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!o(t)&&n[t].status===e},u=function(e){return!!o(e)&&n[e].status===t},s=function(t){n[t]=r(e,null)},c=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:u,markPending:s,markUploaded:c,removeFailed:l,destroy:f}},QO=0,XO=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},JO=function(e){return e+QO+++XO()},ZO=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,o,i){if(v(e)){var a=e;return r({id:a,name:o,filename:i,blob:t,base64:n})}if(y(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||JO("blobid"),r=e.name||n,o=e.blob;return{id:R(n),name:R(r),filename:R(e.filename||r+"."+t(o.type)),blob:R(o),base64:R(e.base64),blobUri:R(e.blobUri||URL.createObjectURL(o)),uri:R(e.uri)}},o=function(t){a(t.id())||e.push(t)},i=function(t){return ae(e,t).getOrUndefined()},a=function(e){return i((function(t){return t.id()===e}))},u=function(e){return i((function(t){return t.blobUri()===e}))},s=function(e,t){return i((function(n){return n.base64()===e&&n.blob().type===t}))},c=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Z(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:o,get:a,getByUri:u,getByData:s,findFirst:i,removeByUri:c,destroy:l}},eR=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},o=function(e,n,o,i){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){i(e.loaded/e.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)o("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):o("Invalid JSON: "+a.responseText)}};var u=new FormData;u.append("file",e.blob(),e.filename()),a.send(u)},i=function(){return new Oi((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},u=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},s=function(e,t){pn.each(n[e],(function(e){e(t)})),delete n[e]},c=function(t,n,r){return e.markPending(t.blobUri()),new Oi((function(o){var i,c;try{var l=function(){i&&(i.close(),c=T)},f=function(n){l(),e.markUploaded(t.blobUri(),n),s(t.blobUri(),a(t,n)),o(a(t,n))},d=function(n,r){var i=r||{};l(),e.removeFailed(t.blobUri()),s(t.blobUri(),u(t,n,i)),o(u(t,n,i))};c=function(e){e<0||e>100||H.from(i).orThunk((function(){return H.from(r).map(L)})).each((function(t){i=t,t.progressBar.value(e)}))},n(t,f,d,c)}catch(h){o(u(t,h.message,{}))}}))},l=function(e){return e===o},f=function(e){var t=e.blobUri();return new Oi((function(e){n[t]=n[t]||[],n[t].push(e)}))},d=function(n,r){return n=pn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Oi.all(pn.map(n,(function(n){return e.isPending(n.blobUri())?f(n):c(n,t.handler,r)})))},h=function(e,n){return!t.url&&l(t.handler)?i():d(e,n)};return!1===E(t.handler)&&(t.handler=o),{upload:h}},tR=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},nR=function(e,t){return eR(t,{url:Fd(e),basePath:Vd(e),credentials:Ud(e),handler:qd(e)})},rR=function(e){var t=GO(),n=nR(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?tR(e):void 0)}}},oR=function(e){var t=Qc(null);e.on("change AddUndo",(function(e){t.set(He({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!yk(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:me(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},iR=function(e){var t,n,r=ZO(),o=GO(),i=[],a=oR(e),u=function(t){return function(n){return e.selection?t(n):[]}},s=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=c(e,'src="'+t+'"',r),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},f=function(t,n){Z(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=J(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},d=function(t,n){var r=e.convertURL(n,"src");f(t.src,n),e.$(t).attr({src:jd(e)?s(n):n,"data-mce-src":r})},h=function(n){return t||(t=nR(e,o)),v().then(u((function(o){var i=J(o,(function(e){return e.blobInfo}));return t.upload(i,tR(e)).then(u((function(t){var i=[],u=J(t,(function(t,n){var a=o[n].blobInfo,u=o[n].image;return t.status&&Ld(e)?(r.removeByUri(u.src),Ik(e)||d(u,t.url)):t.error&&(t.error.options.remove&&(f(u.getAttribute("src"),en.transparentSrc),i.push(u)),LO(e,t.error.message)),{element:u,status:t.status,uploadUri:t.url,blobInfo:a}}));return u.length>0&&a.fireIfChanged(),i.length>0&&(Ik(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Z(i,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(u),u})))})))},p=function(t){if(Pd(e))return h(t)},m=function(t){if(!1===le(i,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Bd(e);return n(t)}return!0},g=function(e){i.push(e)},v=function(){return n||(n=$T(o,r)),n.findAll(e.getBody(),m).then(u((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(jO(e,t),!1)})),Ik(e)||Z(t,(function(e){f(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),o.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=oe(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var u=a.blob();return'src="data:'+u.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Pd(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Z(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=o.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:g,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:y}},aR=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return zr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){pn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return pn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},uR=function(e){var t={},n=function(e){return S(e)?t[e]:t},r=function(e){return De(t,e)},o=function(e,n){e&&(v(e)?(b(n)||(n=[n]),Z(n,(function(e){x(e.deep)&&(e.deep=!Hm(e)),x(e.split)&&(e.split=!Hm(e)||$m(e)),x(e.remove)&&Hm(e)&&!$m(e)&&(e.remove="none"),Hm(e)&&$m(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):xe(e,(function(e,t){o(t,e)})))},i=function(e){return e&&t[e]&&delete t[e],t};return o(aR(e.dom)),o(uh(e)),{get:n,has:r,register:o,unregister:i}},sR=pn.each,cR=Uc.DOM,lR=function(e,t){var n,r,o,i=t&&t.schema||Uu({}),a=function(e,t){t.classes.length&&cR.addClass(e,t.classes.join(" ")),cR.setAttribs(e,t.attrs)},u=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=cR.create(r.name);return a(t,r),t},s=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(t&&-1!==pn.inArray(o,t)?t:o[0])},c=function(e,t,n){var r,o,i=t.length>0&&t[0],a=i&&i.name,l=s(e,a);if(l)a===l?(o=t[0],t=t.slice(1)):o=l;else if(i)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=u(o),r.appendChild(e)),n&&(r||(r=cR.create("div"),r.appendChild(e)),pn.each(n,(function(t){var n=u(t);r.insertBefore(n,e)}))),c(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=u(r),o=cR.create("div"),o.appendChild(c(n,e.slice(1),r.siblings)),o):""},fR=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=pn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==pn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},dR=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),pn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=pn.map(e.split(/(?:~\+|~|\+)/),fR),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},hR=function(e,t){var n,r,o,i="",a=sh(e);if(""===a)return"";var u=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var s=Ne(t,"preview");if(co(s,!1))return"";a=s.getOr(a)}n=t.block||t.inline||"span";var c=dR(t.selector);c.length?(c[0].name||(c[0].name=n),n=t.selector,r=lR(c,e)):r=lR([n],e);var l=cR.select(n,r)[0]||r.firstChild;return sR(t.styles,(function(e,t){var n=u(e);n&&cR.setStyle(l,t,n)})),sR(t.attributes,(function(e,t){var n=u(e);n&&cR.setAttrib(l,t,n)})),sR(t.classes,(function(e){var t=u(e);cR.hasClass(l,t)||cR.addClass(l,t)})),e.fire("PreviewFormats"),cR.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),o=cR.getStyle(e.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,sR(a.split(" "),(function(t){var n=cR.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=cR.getStyle(e.getBody(),t,!0),"#ffffff"!==cR.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==cR.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===o)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*o+"px"}"border"===t&&n&&(i+="padding:0 2px;"),i+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),cR.remove(r),i},pR=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},mR=function(e){var t=uR(e),n=Qc(null);return pR(e),lS(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){iT(e,t,n,r)},remove:function(t,n,r,o){aT(e,t,n,r,o)},toggle:function(t,n,r){uT(e,t,n,r)},match:function(t,n,r,o){return eT(e,t,n,r,o)},closest:function(t){return oT(e,t)},matchAll:function(t,n){return tT(e,t,n)},matchNode:function(t,n,r,o){return nT(e,t,n,r,o)},canApply:function(t){return rT(e,t)},formatChanged:function(t,r,o,i){return sT(e,n,t,r,o,i)},getCssText:B(hR,e)}},gR=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},vR=function(e,t,n){var r=Qc(!1),o=function(e){wk(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;gR(r)||(_k(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;gR(t)||o(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",o),e.on("dragend",o),e.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),r.get()&&t.typing&&!1===yk(dk(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var i=e.keyCode;if(!e.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)t.typing&&o(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(i<16||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),wk(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&o(e)}));var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},u=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(i(e)||a(e)||u(e))&&o(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},yR=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},bR=function(e){var t=dl(),n=Qc(0),r=Qc(0),o={data:[],typing:!1,beforeChange:function(){zk(e,n,t)},add:function(i,a){return Hk(e,o,r,n,t,i,a)},undo:function(){return $k(e,o,n,r)},redo:function(){return Wk(e,r,o.data)},clear:function(){Kk(e,o,r)},reset:function(){Yk(e,o)},hasUndo:function(){return Gk(e,o,r)},hasRedo:function(){return Qk(e,o,r)},transact:function(t){return Xk(e,o,n,t)},ignore:function(t){Jk(e,n,t)},extra:function(t,n){Zk(e,o,r,t,n)}};return Ik(e)||vR(e,o,n),yR(e),o},wR=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),_R="data-mce-placeholder",xR=function(e){return"keydown"===e.type||"keyup"===e.type},CR=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},SR=function(e){if(xR(e)){var t=e.keyCode;return!CR(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||Q(wR,t))}return!1},ER=function(e){return xR(e)&&!(CR(e)||"keyup"===e.type&&229===e.keyCode)},kR=function(e,t,n){if(nu(wn.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(o):n===o.nodeName.toLowerCase())}return!1},TR=function(e){var t=e.dom,n=Ed(e),r=th(e),o=function(i,a){if(!SR(i)){var u=e.getBody(),s=!ER(i)&&kR(t,u,n),c=""!==t.getAttrib(u,_R);(c!==s||a)&&(t.setAttrib(u,_R,s?r:null),t.setAttrib(u,"aria-placeholder",s?r:null),Xg(e,s),e.on(s?"keydown":"keyup",o),e.off(s?"keyup":"keydown",o))}};r&&e.on("init",(function(t){o(t,!0),e.on("change SetContent ExecCommand",o),e.on("paste",(function(t){return Li.setEditorTimeout(e,(function(){return o(t)}))}))}))},AR=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,OR=function(e){return AR.test(e)},RR=function(e,t){return On(wn.fromDom(t),Jd(e))},NR=function(e){return"rtl"===Uc.DOM.getStyle(e,"direction",!0)||OR(e.textContent)},DR=function(e,t,n){return ne(Uc.DOM.getParents(n.container(),"*",t),e)},BR=function(e,t,n){var r=DR(e,t,n);return H.from(r[r.length-1])},PR=function(e,t,n){var r=lp(t,e),o=lp(n,e);return r&&r===o},jR=function(e){return xa(e)||Ca(e)},LR=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ya(n)?Zr(n.nextSibling)?Bf(n.nextSibling,0):Bf.after(n):xa(t)?Bf(n,r+1):t:ya(n)?Zr(n.previousSibling)?Bf(n.previousSibling,n.previousSibling.data.length):Bf.before(n):Ca(t)?Bf(n,r-1):t},MR=B(LR,!0),IR=B(LR,!1),FR=function(e){return function(t){return Bn(e,wn.fromDom(t.dom.parentNode))}},VR=function(e){return ta(e)||ra(e)},UR=function(e,t){return Ln(e,t)?Ci(t,VR,FR(e)):H.none()},qR=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},zR=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),qR(e))},HR=function(e,t,n){return fo(Xp(n),Jp(n),(function(r,o){var i=LR(!0,r),a=LR(!1,o),u=LR(!1,t);return e?Gp(n,u).exists((function(e){return e.isEqual(a)&&t.isEqual(i)})):Qp(n,u).exists((function(e){return e.isEqual(i)&&t.isEqual(a)}))})).getOr(!0)},$R=function(e,t){return{block:e,position:t}},WR=function(e,t){return{from:e,to:t}},KR=function(e,t){var n=wn.fromDom(e),r=wn.fromDom(t.container());return UR(n,r).map((function(e){return $R(e,t)}))},YR=function(e){return!1===Bn(e.from.block,e.to.block)},GR=function(e){return Qn(e.from.block).bind((function(t){return Qn(e.to.block).filter((function(e){return Bn(t,e)}))})).isSome()},QR=function(e){return!1===ao(e.from.block.dom)&&!1===ao(e.to.block.dom)},XR=function(e,t,n){return ro(n.position.getNode())&&!1===nu(n.block)?Yp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?$p(t,e,r).bind((function(t){return KR(e,t)})):H.some(n)})).getOr(n):n},JR=function(e,t,n){var r=KR(e,Bf.fromRangeStart(n)),o=r.bind((function(n){return $p(t,e,n.position).bind((function(n){return KR(e,n).map((function(n){return XR(e,t,n)}))}))}));return fo(r,o,WR).filter((function(e){return YR(e)&&GR(e)&&QR(e)}))},ZR=function(e,t,n){return n.collapsed?JR(e,t,n):H.none()},eN=function(e){var t=rr(e);return ue(t,Xi).fold(R(t),(function(e){return t.slice(0,e)}))},tN=function(e){var t=eN(e);return Z(t,kr),t},nN=function(e,t){var n=jw(t,e);return ae(n.reverse(),(function(e){return nu(e)})).each(kr)},rN=function(e){return 0===ne(tr(e),(function(e){return!nu(e)})).length},oN=function(e,t,n,r){if(nu(n))return Rw(n),Xp(n.dom);rN(r)&&nu(t)&&yr(r,wn.fromTag("br"));var o=Qp(n.dom,Bf.before(r.dom));return Z(tN(t),(function(e){yr(r,e)})),nN(e,t),o},iN=function(e,t,n){if(nu(n))return kr(n),nu(t)&&Rw(t),Xp(t.dom);var r=Jp(n.dom);return Z(tN(t),(function(e){_r(n,e)})),nN(e,t),r},aN=function(e,t){var n=jw(t,e);return H.from(n[n.length-1])},uN=function(e,t){return Ln(t,e)?aN(t,e):H.none()},sN=function(e,t){Yp(e,t.dom).map((function(e){return e.getNode()})).map(wn.fromDom).filter(ea).each(kr)},cN=function(e,t,n){return sN(!0,t),sN(!1,n),uN(t,n).fold(B(iN,e,t,n),B(oN,e,t,n))},lN=function(e,t,n,r){return t?cN(e,r,n):cN(e,n,r)},fN=function(e,t){var n=wn.fromDom(e.getBody()),r=ZR(n.dom,t,e.selection.getRng()).bind((function(e){return lN(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},dN=function(e,t){var n=t.getRng();return fo(UR(e,wn.fromDom(n.startContainer)),UR(e,wn.fromDom(n.endContainer)),(function(r,o){return!1===Bn(r,o)&&(n.deleteContents(),lN(e,!0,r,o).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},hN=function(e,t){var n=wn.fromDom(t),r=B(Bn,e);return xi(n,ia,r).isSome()},pN=function(e,t){return hN(e,t.startContainer)||hN(e,t.endContainer)},mN=function(e,t){var n=Qp(e.dom,Bf.fromRangeStart(t)).isNone(),r=Gp(e.dom,Bf.fromRangeEnd(t)).isNone();return!pN(e,t)&&n&&r},gN=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},vN=function(e){var t=wn.fromDom(e.getBody()),n=e.selection.getRng();return mN(t,n)?gN(e):dN(t,e.selection)},yN=function(e,t){return!e.selection.isCollapsed()&&vN(e)},bN=io,wN=ao,_N=function(e,t,n,r,o){return H.from(t._selectionOverrides.showCaret(e,n,r,o))},xN=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},CN=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?H.none():H.some(xN(t))},SN=function(e,t,n){var r=yp(1,e.getBody(),t),o=Bf.fromRangeStart(r),i=o.getNode();if(Xh(i))return _N(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Xh(a))return _N(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),(function(e){return wN(e)||bN(e)}));return Xh(u)?_N(1,e,u,!1,n):H.none()},EN=function(e,t,n){return t.collapsed?SN(e,t,n).getOr(t):t},kN=function(e){return kw(e)||xw(e)},TN=function(e){return Tw(e)||Cw(e)},AN=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},ON=function(e,t,n,r,o,i){return _N(r,e,i.getNode(!o),o,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),AN(e.dom,n),!0},RN=function(e,t){var n=e.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var r=t?Pf.Forwards:Pf.Backwards,o=Mp(e.getBody()),i=B(Cp,t?o.next:o.prev),a=t?kN:TN,u=wp(r,e.getBody(),n),s=LR(t,i(u));if(!s||!Sp(u,s))return!1;if(a(s))return ON(e,n,u.getNode(),r,t,s);var c=i(s);return!!(c&&a(c)&&Sp(s,c))&&ON(e,n,u.getNode(),r,t,c)},NN=function(e,t){return RN(e,t)},DN=function(e){return ia(wn.fromDom(e))||ra(wn.fromDom(e))},BN=ei.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),PN=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return zr(n)&&n.getAttribute("data-mce-caret")===r},jN=function(e,t,n,r){var o=function(t){return Zi(wn.fromDom(t))&&!fp(n,r,e)};return bp(!t,n).fold((function(){return bp(t,r).fold(I,o)}),o)},LN=function(e,t,n,r){var o=r.getNode(!1===t);return UR(wn.fromDom(e),wn.fromDom(n.getNode())).map((function(e){return nu(e)?BN.remove(e.dom):BN.moveToElement(o)})).orThunk((function(){return H.some(BN.moveToElement(o))}))},MN=function(e,t,n){return $p(t,e,n).bind((function(r){return DN(r.getNode())||jN(e,t,n,r)?H.none():t&&ao(r.getNode())||!1===t&&ao(r.getNode(!0))?LN(e,t,n,r):t&&Tw(n)||!1===t&&kw(n)?H.some(BN.moveToPosition(r)):H.none()}))},IN=function(e,t){return e&&ao(t.nextSibling)?H.some(BN.moveToElement(t.nextSibling)):!1===e&&ao(t.previousSibling)?H.some(BN.moveToElement(t.previousSibling)):H.none()},FN=function(e,t,n){return n.fold((function(e){return H.some(BN.remove(e))}),(function(e){return H.some(BN.moveToElement(e))}),(function(n){return fp(t,n,e)?H.none():H.some(BN.moveToPosition(n))}))},VN=function(e,t,n){return PN(t,n)?IN(t,n.getNode(!1===t)).fold((function(){return MN(e,t,n)}),H.some):MN(e,t,n).bind((function(t){return FN(e,n,t)}))},UN=function(e,t,n){var r=yp(t?1:-1,e,n),o=Bf.fromRangeStart(r),i=wn.fromDom(e);return!1===t&&Tw(o)?H.some(BN.remove(o.getNode(!0))):t&&kw(o)?H.some(BN.remove(o.getNode())):!1===t&&kw(o)&&Kw(i,o)?Yw(i,o).map((function(e){return BN.remove(e.getNode())})):t&&Tw(o)&&Ww(i,o)?Gw(i,o).map((function(e){return BN.remove(e.getNode())})):VN(e,t,o)},qN=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),U_(e,t,wn.fromDom(n)),!0}},zN=function(e,t){return function(n){var r=t?Bf.before(n):Bf.after(n);return e.selection.setRng(r.toRange()),!0}},HN=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},$N=function(e,t){return H.from(Fg(e.getBody(),t))},WN=function(e,t){var n=e.selection.getNode();return $N(e,n).filter(ao).fold((function(){return UN(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(qN(e,t),zN(e,t),HN(e))}))}),F)},KN=function(e){Z(Tl(e,".mce-offscreen-selection"),kr)},YN=function(e,t){var n=e.selection.getNode();if(ao(n)&&!uo(n)){var r=$N(e,n.parentNode).filter(ao);return r.fold((function(){return KN(wn.fromDom(e.getBody())),U_(e,t,wn.fromDom(e.selection.getNode())),zR(e),!0}),F)}return!1},GN=function(e){var t=e.dom,n=e.selection,r=Fg(e.getBody(),n.getNode());if(io(r)&&t.isBlock(r)&&t.isEmpty(r)){var o=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(o),n.setRng(Bf.before(o).toRange())}return!0},QN=function(e,t){return e.selection.isCollapsed()?WN(e,t):YN(e,t)},XN=function(e,t){var n=Bf.fromRangeStart(e.selection.getRng());return $p(t,e.getBody(),n).filter((function(e){return t?ww(e):_w(e)})).bind((function(e){return H.from(dp(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},JN=function(e,t){return!!e.selection.isCollapsed()&&XN(e,t)},ZN=Zr,eD=function(e){return ZN(e)&&e.data[0]===da},tD=function(e){return ZN(e)&&e.data[e.data.length-1]===da},nD=function(e){return e.ownerDocument.createTextNode(da)},rD=function(e){if(ZN(e.previousSibling))return tD(e.previousSibling)||e.previousSibling.appendData(da),e.previousSibling;if(ZN(e))return eD(e)||e.insertData(0,da),e;var t=nD(e);return e.parentNode.insertBefore(t,e),t},oD=function(e){if(ZN(e.nextSibling))return eD(e.nextSibling)||e.nextSibling.insertData(0,da),e.nextSibling;if(ZN(e))return tD(e)||e.appendData(da),e;var t=nD(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},iD=function(e,t){return e?rD(t):oD(t)},aD=B(iD,!0),uD=B(iD,!1),sD=function(e,t){return Zr(e.container())?iD(t,e.container()):iD(t,e.getNode())},cD=function(e,t){var n=t.get();return n&&e.container()===n&&ya(n)},lD=function(e,t){return t.fold((function(t){Uh(e.get());var n=aD(t);return e.set(n),H.some(Bf(n,n.length-1))}),(function(t){return Xp(t).map((function(t){if(cD(t,e))return Bf(e.get(),1);Uh(e.get());var n=sD(t,!0);return e.set(n),Bf(n,1)}))}),(function(t){return Jp(t).map((function(t){if(cD(t,e))return Bf(e.get(),e.get().length-1);Uh(e.get());var n=sD(t,!1);return e.set(n),Bf(n,n.length-1)}))}),(function(t){Uh(e.get());var n=uD(t);return e.set(n),H.some(Bf(n,1))}))},fD=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return H.none()},dD=ei.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),hD=function(e,t){var n=lp(t,e);return n||e},pD=function(e,t,n){var r=MR(n),o=hD(t,r.container());return BR(e,o,r).fold((function(){return Gp(o,r).bind(B(BR,e,o)).map((function(e){return dD.before(e)}))}),H.none)},mD=function(e,t){return null===tm(e,t)},gD=function(e,t,n){return BR(e,t,n).filter(B(mD,t))},vD=function(e,t,n){var r=IR(n);return gD(e,t,r).bind((function(e){var t=Qp(e,r);return t.isNone()?H.some(dD.start(e)):H.none()}))},yD=function(e,t,n){var r=MR(n);return gD(e,t,r).bind((function(e){var t=Gp(e,r);return t.isNone()?H.some(dD.end(e)):H.none()}))},bD=function(e,t,n){var r=IR(n),o=hD(t,r.container());return BR(e,o,r).fold((function(){return Qp(o,r).bind(B(BR,e,o)).map((function(e){return dD.after(e)}))}),H.none)},wD=function(e){return!1===NR(xD(e))},_D=function(e,t,n){var r=fD([pD,vD,yD,bD],[e,t,n]);return r.filter(wD)},xD=function(e){return e.fold(N,N,N,N)},CD=function(e){return e.fold(R("before"),R("start"),R("end"),R("after"))},SD=function(e){return e.fold(dD.before,dD.before,dD.after,dD.after)},ED=function(e){return e.fold(dD.start,dD.start,dD.end,dD.end)},kD=function(e,t){return CD(e)===CD(t)&&xD(e)===xD(t)},TD=function(e,t,n,r,o,i){return fo(BR(t,n,r),BR(t,n,o),(function(t,r){return t!==r&&PR(n,t,r)?dD.after(e?t:r):i})).getOr(i)},AD=function(e,t){return e.fold(F,(function(e){return!kD(e,t)}))},OD=function(e,t,n,r,o){var i=LR(e,o),a=$p(e,n,i).map(B(LR,e)),u=a.fold((function(){return r.map(SD)}),(function(o){return _D(t,n,o).map(B(TD,e,t,n,i,o)).filter(B(AD,r))}));return u.filter(wD)},RD=function(e,t){return e?t.fold(A(H.some,dD.start),H.none,A(H.some,dD.after),H.none):t.fold(H.none,A(H.some,dD.before),H.none,A(H.some,dD.end))},ND=function(e,t,n,r){var o=LR(e,r),i=_D(t,n,o);return _D(t,n,o).bind(B(RD,e)).orThunk((function(){return OD(e,t,n,i,r)}))};B(ND,!1),B(ND,!0);var DD,BD=function(e){return E(e.selection.getSel().modify)},PD=function(e,t,n){var r=e?1:-1;return t.setRng(Bf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},jD=function(e,t){var n=t.selection.getRng(),r=e?Bf.fromRangeEnd(n):Bf.fromRangeStart(n);return!!BD(t)&&(e&&xa(r)?PD(!0,t.selection,r):!(e||!Ca(r))&&PD(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(DD||(DD={}));var LD,MD=function(e,t){return e===Pf.Backwards?fe(t):t},ID=function(e,t,n){return e===Pf.Forwards?t.next(n):t.prev(n)},FD=function(e,t,n,r){return ro(r.getNode(t===Pf.Forwards))?DD.Br:!1===fp(n,r)?DD.Block:DD.Wrap},VD=function(e,t,n,r){var o=Mp(n),i=r,a=[];while(i){var u=ID(t,o,i);if(!u)break;if(ro(u.getNode(!1)))return t===Pf.Forwards?{positions:MD(t,a).concat([u]),breakType:DD.Br,breakAt:H.some(u)}:{positions:MD(t,a),breakType:DD.Br,breakAt:H.some(u)};if(u.isVisible()){if(e(i,u)){var s=FD(n,t,i,u);return{positions:MD(t,a),breakType:s,breakAt:H.some(u)}}a.push(u),i=u}else i=u}return{positions:MD(t,a),breakType:DD.Eol,breakAt:H.none()}},UD=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var o=t(n,r).positions;return e===Pf.Backwards?o.concat(r):[r].concat(o)})).getOr([])},qD=function(e,t){return oe(e,(function(e,n){return e.fold((function(){return H.some(n)}),(function(r){return fo(ge(r.getClientRects()),ge(n.getClientRects()),(function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return a<=i?n:r})).or(e)}))}),H.none())},zD=function(e,t){return ge(t.getClientRects()).bind((function(t){return qD(e,t.left)}))},HD=B(VD,Bf.isAbove,-1),$D=B(VD,Bf.isBelow,1),WD=B(UD,-1,HD),KD=B(UD,1,$D),YD=function(e,t){return HD(e,t).breakAt.isNone()},GD=function(e,t){return $D(e,t).breakAt.isNone()},QD=function(e){return Xp(e).map((function(t){return[t].concat($D(e,t).positions)})).getOr([])},XD=function(e){return Jp(e).map((function(t){return HD(e,t).positions.concat(t)})).getOr([])},JD=function(e){var t=function(t){return J(t,(function(t){var n=Xl(t);return n.node=e,n}))};if(zr(e))return t(e.getClientRects());if(Zr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},ZD=function(e){return ce(e,JD)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(LD||(LD={}));var eB,tB,nB=function(e,t,n,r){while(r=cp(r,e,$a,t))if(n(r))return},rB=function(e,t,n,r,o,i){var a=0,u=[],s=function(r){var i=ZD([r]);-1===e&&(i=i.reverse());for(var s=0;s<i.length;s++){var l=i[s];if(!n(l,c)){if(u.length>0&&t(l,ze(u))&&a++,l.line=a,o(l))return!0;u.push(l)}}},c=ze(i.getClientRects());if(!c)return u;var l=i.getNode();return s(l),nB(e,r,s,l),u},oB=function(e,t){return t.line>e},iB=function(e,t){return t.line===e},aB=B(rB,LD.Up,tf,nf),uB=B(rB,LD.Down,nf,tf),sB=function(e,t,n,r){var o,i,a,u,s=Mp(t),c=[],l=0,f=function(e){return ze(e.getClientRects())};1===e?(o=s.next,i=nf,a=tf,u=Bf.after(r)):(o=s.prev,i=tf,a=nf,u=Bf.before(r));var d=f(u);do{if(u.isVisible()){var h=f(u);if(!a(h,d)){c.length>0&&i(h,ze(c))&&l++;var p=Xl(h);if(p.position=u,p.line=l,n(p))return c;c.push(p)}}}while(u=o(u));return c},cB=function(e){return function(t){return oB(e,t)}},lB=function(e){return function(t){return iB(e,t)}},fB=ao,dB=cp,hB=function(e,t){return Math.abs(e.left-t)},pB=function(e,t){return Math.abs(e.right-t)},mB=function(e,t){return e>=t.left&&e<=t.right},gB=function(e,t){return e>=t.top&&e<=t.bottom},vB=function(e){return Be(e,"node")},yB=function(e,t,n){return void 0===n&&(n=F),Ue(e,(function(e,r){if(mB(t,r))return n(r)?r:e;if(mB(t,e))return n(e)?e:r;var o=Math.min(hB(e,t),pB(e,t)),i=Math.min(hB(r,t),pB(r,t));return i===o&&vB(r)&&fB(r.node)||i<o?r:e}))},bB=function(e,t,n,r,o){var i=dB(r,e,$a,t,!o);do{if(!i||n(i))return}while(i=dB(i,e,$a,t))},wB=function(e,t,n){void 0===n&&(n=!0);var r=[],o=function(e,n){var o=ne(ZD([n]),(function(n){return!e(n,t)}));return r=r.concat(o),0===o.length};return r.push(t),bB(LD.Up,e,B(o,tf),t.node,n),bB(LD.Down,e,B(o,nf),t.node,n),r},_B=function(e){return ne(ye(e.getElementsByTagName("*")),Jh)},xB=function(e,t){return{node:e.node,before:hB(e,t)<pB(e,t)}},CB=function(e,t,n){var r=ZD(_B(e)),o=ne(r,B(gB,n)),i=function(e){return!Qr(e.node)&&!so(e.node)},a=yB(o,t,i);if(a){var u=i(a);if(a=yB(wB(e,a,u),t,i),a&&Jh(a.node))return xB(a,t)}return null},SB=function(e,t){e.selection.setRng(t),ny(e,e.selection.getRng())},EB=function(e,t,n){return H.some(EN(e,t,n))},kB=function(e,t,n,r,o,i){var a=t===Pf.Forwards,u=Mp(e.getBody()),s=B(Cp,a?u.next:u.prev),c=a?r:o;if(!n.collapsed){var l=af(n);if(i(l))return _N(t,e,l,t===Pf.Backwards,!1)}var f=wp(t,e.getBody(),n);if(c(f))return CN(e,f.getNode(!a));var d=LR(a,s(f)),h=Ra(n);if(!d)return h?H.some(n):H.none();if(c(d))return _N(t,e,d.getNode(!a),a,!1);var p=s(d);return p&&c(p)&&Sp(d,p)?_N(t,e,p.getNode(!a),a,!1):h?EB(e,d.toRange(),!1):H.none()},TB=function(e,t,n,r,o,i){var a=wp(t,e.getBody(),n),u=ze(a.getClientRects()),s=t===LD.Down;if(!u)return H.none();var c,l=s?uB:aB,f=l(e.getBody(),cB(1),a),d=ne(f,lB(1)),h=u.left,p=yB(d,h);if(p&&i(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return _N(t,e,p.node,m<g,!1)}if(c=r(a)?a.getNode():o(a)?a.getNode(!0):af(n),c){var v=sB(t,e.getBody(),cB(1),c),y=yB(ne(v,lB(1)),h);if(y)return EB(e,y.position.toRange(),!1);if(y=ze(ne(v,lB(0))),y)return EB(e,y.position.toRange(),!1)}return 0===d.length?AB(e,s).filter(s?o:r).map((function(t){return EN(e,t.toRange(),!1)})):H.none()},AB=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var o=Bf.fromRangeEnd(n),i=$D(r,o);return ve(i.positions)}o=Bf.fromRangeStart(n),i=HD(r,o);return ge(i.positions)},OB=function(e,t,n){return AB(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},RB=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},NB=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},DB=function(e,t,n){return lD(t,n).map((function(t){return RB(e,t),n}))},BB=function(e,t,n){var r=e.getBody(),o=Bf.fromRangeStart(e.selection.getRng()),i=B(RR,e),a=ND(n,i,r,o);return a.bind((function(n){return DB(e,t,n)}))},PB=function(e,t,n){var r=J(Tl(wn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),o=ne(r,e),i=ne(n,e);Z(de(o,i),B(NB,!1)),Z(de(i,o),B(NB,!0))},jB=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Bf.fromRangeStart(e.selection.getRng());Bf.isTextPosition(n)&&!1===jR(n)&&(RB(e,Vh(t.get(),n)),t.set(null))}},LB=function(e,t,n,r){if(t.selection.isCollapsed()){var o=ne(r,e);Z(o,(function(r){var o=Bf.fromRangeStart(t.selection.getRng());_D(e,t.getBody(),o).bind((function(e){return DB(t,n,e)}))}))}},MB=function(e,t,n){return!!ah(e)&&BB(e,t,n).isSome()},IB=function(e,t,n){return!!ah(t)&&jD(e,t)},FB=function(e){var t=Qc(null),n=B(RR,e);return e.on("NodeChange",(function(r){!ah(e)||en.browser.isIE()&&r.initial||(PB(n,e.dom,r.parents),jB(e,t),LB(n,e,t,r.parents))})),t},VB=B(IB,!0),UB=B(IB,!1),qB=function(e,t,n){if(ah(e)){var r=AB(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Bf.fromRangeEnd(n):Bf.fromRangeStart(n)}));return _D(B(RR,e),e.getBody(),r).exists((function(t){var r=SD(t);return lD(n,r).exists((function(t){return RB(e,t),!0}))}))}return!1},zB=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},HB=function(e){return fo(Xp(e),Jp(e),(function(t,n){var r=LR(!0,t),o=LR(!1,n);return Gp(e,r).forall((function(e){return e.isEqual(o)}))})).getOr(!0)},$B=function(e,t){return function(n){return lD(t,n).exists((function(t){return RB(e,t),!0}))}},WB=function(e,t,n,r){var o=e.getBody(),i=B(RR,e);e.undoManager.ignore((function(){e.selection.setRng(zB(n,r)),e.execCommand("Delete"),_D(i,o,Bf.fromRangeStart(e.selection.getRng())).map(ED).map($B(e,t))})),e.nodeChanged()},KB=function(e,t){var n=lp(t,e);return n||e},YB=function(e,t,n,r){var o=KB(e.getBody(),r.container()),i=B(RR,e),a=_D(i,o,r);return a.bind((function(e){return n?e.fold(R(H.some(ED(e))),H.none,R(H.some(SD(e))),H.none):e.fold(H.none,R(H.some(SD(e))),H.none,R(H.some(ED(e))))})).map($B(e,t)).getOrThunk((function(){var u=Wp(n,o,r),s=u.bind((function(e){return _D(i,o,e)}));return fo(a,s,(function(){return BR(i,o,r).exists((function(t){return!!HB(t)&&(U_(e,n,wn.fromDom(t)),!0)}))})).orThunk((function(){return s.bind((function(o){return u.map((function(o){return n?WB(e,t,r,o):WB(e,t,o,r),!0}))}))})).getOr(!1)}))},GB=function(e,t,n){if(e.selection.isCollapsed()&&ah(e)){var r=Bf.fromRangeStart(e.selection.getRng());return YB(e,t,n,r)}return!1},QB=function(e,t){var n=jw(t,e);return ue(n,Xi).fold(R(n),(function(e){return n.slice(0,e)}))},XB=function(e){return 1===ur(e)},JB=function(e,t,n,r){var o=B(dS,t),i=J(ne(r,o),(function(e){return e.dom}));if(0===i.length)U_(t,e,n);else{var a=fS(n.dom,i);t.selection.setRng(a.toRange())}},ZB=function(e,t){var n=wn.fromDom(e.getBody()),r=wn.fromDom(e.selection.getStart()),o=ne(QB(n,r),XB);return ve(o).exists((function(n){var r=Bf.fromRangeStart(e.selection.getRng());return!(!HR(t,r,n.dom)||hS(n))&&(JB(t,e,n,o),!0)}))},eP=function(e,t){return!!e.selection.isCollapsed()&&ZB(e,t)},tP=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),U_(e,t,wn.fromDom(n)),!0},nP=function(e,t){var n=t?xw:Cw,r=t?Pf.Forwards:Pf.Backwards,o=wp(r,e.getBody(),e.selection.getRng());return n(o)?tP(e,t,o.getNode(!t)):H.from(LR(t,o)).filter((function(e){return n(e)&&Sp(o,e)})).exists((function(n){return tP(e,t,n.getNode(!t))}))},rP=function(e,t){var n=e.selection.getNode();return!!so(n)&&tP(e,t,n)},oP=function(e,t){return e.selection.isCollapsed()?nP(e,t):rP(e,t)},iP=function(e){return Ci(e,(function(e){return io(e.dom)||ao(e.dom)})).exists((function(e){return io(e.dom)}))},aP=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},uP=function(e,t){var n=e||Ji(t)?"margin":"padding",r="rtl"===ko(t,"direction")?"-right":"-left";return n+r},sP=function(e,t,n,r,o,i){var a=uP(n,wn.fromDom(i));if("outdent"===t){var u=Math.max(0,aP(i.style[a])-r);e.setStyle(i,a,u?u+o:"")}else{u=aP(i.style[a])+r+o;e.setStyle(i,a,u)}},cP=function(e,t){return le(t,(function(t){var n=uP(Kd(e),t),r=Ao(t,n).map(aP).getOr(0),o=e.dom.getContentEditable(t.dom);return"false"!==o&&r>0}))},lP=function(e){var t=hP(e);return!e.mode.isReadOnly()&&(t.length>1||cP(e,t))},fP=function(e){return na(e)||ra(e)},dP=function(e){return Qn(e).exists(fP)},hP=function(e){return ne(ql(e.selection.getSelectedBlocks()),(function(e){return!fP(e)&&!dP(e)&&iP(e)}))},pP=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=Yd(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),s=Kd(e),c=Ed(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),Z(hP(e),(function(e){sP(n,t,s,u,a,e.dom)}))},mP=function(e,t){if(e.selection.isCollapsed()&&lP(e)){var n=e.dom,r=e.selection.getRng(),o=Bf.fromRangeStart(r),i=n.getParent(r.startContainer,n.isBlock);if(null!==i&&Vw(wn.fromDom(i),o))return pP(e,"outdent"),!0}return!1},gP=function(e,t){e.getDoc().execCommand(t,!1,null)},vP=function(e,t){mP(e)||QN(e,!1)||NN(e,!1)||GB(e,t,!1)||fN(e,!1)||Mx(e)||JN(e,!1)||oP(e,!1)||yN(e)||eP(e,!1)||(gP(e,"Delete"),zR(e))},yP=function(e,t){QN(e,!0)||NN(e,!0)||GB(e,t,!0)||fN(e,!0)||Mx(e)||JN(e,!0)||oP(e,!0)||yN(e)||eP(e,!0)||gP(e,"ForwardDelete")},bP=function(e,t){e.addCommand("delete",(function(){vP(e,t)})),e.addCommand("forwardDelete",(function(){yP(e,t)}))},wP=5,_P=400,xP=function(e){return void 0===e.touches||1!==e.touches.length?H.none():H.some(e.touches[0])},CP=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>wP||r>wP},SP=function(e){var t=dl(),n=Qc(!1),r=pl((function(t){e.fire("longpress",He(He({},t),{type:"longpress"})),n.set(!0)}),_P);e.on("touchstart",(function(e){xP(e).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(i)}))}),!0),e.on("touchmove",(function(o){r.cancel(),xP(o).each((function(r){t.on((function(o){CP(r,o)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(o){r.cancel(),"touchcancel"!==o.type&&t.get().filter((function(e){return e.target.isEqualNode(o.target)})).each((function(){n.get()?o.preventDefault():e.fire("tap",He(He({},o),{type:"tap"}))}))}),!0)},EP=function(e,t){return De(e,t.nodeName)},kP=function(e,t){return!!Zr(t)||!!zr(t)&&(!EP(e,t)&&!xm(t))},TP=function(e,t,n){return X(Pw(wn.fromDom(n),wn.fromDom(t)),(function(t){return EP(e,t.dom)}))},AP=function(e,t){if(Zr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||EP(e,t.nextSibling)))return!0}return!1},OP=function(e){var t,n,r,o=e.dom,i=e.selection,a=e.schema,u=a.getBlockElements(),s=i.getStart(),c=e.getBody(),l=Ed(e);if(s&&zr(s)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!TP(u,c,s)){var d=i.getRng(),h=d.startContainer,p=d.startOffset,m=d.endContainer,g=d.endOffset,v=db(e);s=c.firstChild;while(s)if(kP(u,s)){if(AP(u,s)){n=s,s=s.nextSibling,o.remove(n);continue}t||(t=o.create(l,kd(e)),s.parentNode.insertBefore(t,s),r=!0),n=s,s=s.nextSibling,t.appendChild(n)}else t=null,s=s.nextSibling;r&&v&&(d.setStart(h,p),d.setEnd(m,g),i.setRng(d),e.nodeChanged())}}},RP=function(e){Ed(e)&&e.on("NodeChange",B(OP,e))},NP=function(e){return Ti(wn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},DP=function(e){e.selection.setRng(e.selection.getRng())},BP=function(e,t){t.hasAttribute("data-mce-caret")&&(Oa(t),DP(e),e.selection.scrollIntoView(t))},PP=function(e,t){var n=NP(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void BP(e,n)):void(wa(n)&&(BP(e,n),e.undoManager.add()))},jP=function(e){e.on("keyup compositionstart",B(PP,e))},LP=ao,MP=function(e,t,n){return kB(t,e,n,kw,Tw,LP)},IP=function(e,t,n){var r=function(e){return kw(e)||Sw(e)},o=function(e){return Tw(e)||Ew(e)};return TB(t,e,n,r,o,LP)},FP=function(e){var t=e.dom.create(Ed(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},VP=function(e,t,n){var r=Mp(e.getBody()),o=B(Cp,1===t?r.next:r.prev);if(n.collapsed&&yh(e)){var i=e.dom.getParent(n.startContainer,"PRE");if(!i)return;var a=o(Bf.fromRangeStart(n));if(!a){var u=FP(e);1===t?e.$(i).after(u):e.$(i).before(u),e.selection.select(u,!0),e.selection.collapse()}}},UP=function(e,t){var n=t?Pf.Forwards:Pf.Backwards,r=e.selection.getRng();return MP(n,e,r).orThunk((function(){return VP(e,n,r),H.none()}))},qP=function(e,t){var n=t?1:-1,r=e.selection.getRng();return IP(n,e,r).orThunk((function(){return VP(e,n,r),H.none()}))},zP=function(e,t){return UP(e,t).exists((function(t){return SB(e,t),!0}))},HP=function(e,t){return qP(e,t).exists((function(t){return SB(e,t),!0}))},$P=function(e,t){var n=t?Tw:kw;return OB(e,t,n)},WP=function(e){return Q(["figcaption"],Mn(e))},KP=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},YP=function(e,t,n){n?_r(e,t):wr(e,t)},GP=function(e,t){var n=wn.fromTag("br");return YP(e,n,t),KP(n)},QP=function(e,t,n,r){var o=wn.fromTag(n),i=wn.fromTag("br");return yo(o,r),_r(o,i),YP(e,o,t),KP(i)},XP=function(e,t,n,r){return""===t?GP(e,r):QP(e,r,t,n)},JP=function(e,t){var n=B(Bn,t);return Ci(wn.fromDom(e.container()),Xi,n).filter(WP)},ZP=function(e,t,n){return t?GD(e.dom,n):YD(e.dom,n)},ej=function(e,t){var n=wn.fromDom(e.getBody()),r=Bf.fromRangeStart(e.selection.getRng()),o=Ed(e),i=kd(e);return JP(r,n).exists((function(){if(ZP(n,t,r)){var a=XP(n,o,i,t);return e.selection.setRng(a),!0}return!1}))},tj=function(e,t){return!!e.selection.isCollapsed()&&ej(e,t)},nj=function(e){return J(e,(function(e){return He({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:T},e)}))},rj=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},oj=function(e,t){return ce(nj(e),(function(e){return rj(e,t)?[e]:[]}))},ij=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},aj=function(e,t){return ae(oj(e,t),(function(e){return e.action()}))},uj=function(e,t){var n=t?Pf.Forwards:Pf.Backwards,r=e.selection.getRng();return kB(e,n,r,xw,Cw,so).exists((function(t){return SB(e,t),!0}))},sj=function(e,t){var n=t?1:-1,r=e.selection.getRng();return TB(e,n,r,xw,Cw,so).exists((function(t){return SB(e,t),!0}))},cj=function(e,t){var n=t?Cw:xw;return OB(e,t,n)},lj=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},fj=function(e,t){return ce(t,(function(t){var n=lj(Xl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},dj=function(e,t,n){return oe(e,(function(e,r){return e.fold((function(){return H.some(r)}),(function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return H.some(i<o?r:e)}))}),H.none())},hj=function(e,t,n,r,o){var i=Tl(wn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(fj(e,i),(function(e){return t(e,o)}));return dj(a,r,o).map((function(e){return e.cell}))},pj=function(e){return e.bottom},mj=function(e){return e.top},gj=function(e,t){return e.y<t},vj=function(e,t){return e.y>t},yj=B(hj,pj,gj),bj=B(hj,mj,vj),wj=function(e,t){return ge(t.getClientRects()).bind((function(t){return yj(e,t.left,t.top)})).bind((function(e){return zD(XD(e),t)}))},_j=function(e,t){return ve(t.getClientRects()).bind((function(t){return bj(e,t.left,t.top)})).bind((function(e){return zD(QD(e),t)}))},xj=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},Cj=function(e){return e.breakType===DD.Wrap&&0===e.positions.length},Sj=function(e){return e.breakType===DD.Br&&1===e.positions.length},Ej=function(e,t,n){var r=e(t,n);return Cj(r)||!ro(n.getNode())&&Sj(r)?!xj(e,t,r):r.breakAt.isNone()},kj=B(Ej,HD),Tj=B(Ej,$D),Aj=function(e,t,n){var r=Bf.fromRangeStart(t);return Yp(!e,n).exists((function(e){return e.isEqual(r)}))},Oj=function(e,t,n,r){var o=e.selection.getRng(),i=t?1:-1;return!(!Qh()||!Aj(t,o,n))&&(_N(i,e,n,!t,!1).each((function(t){SB(e,t)})),!0)},Rj=function(e,t,n){return wj(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return qD(WD(e,Bf.before(t)),n.left)}))})).getOr(Bf.before(t))},Nj=function(e,t,n){return _j(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return qD(KD(e,Bf.after(t)),n.left)}))})).getOr(Bf.after(t))},Dj=function(e,t){var n=t.getNode(e);return zr(n)&&"TABLE"===n.nodeName?H.some(n):H.none()},Bj=function(e,t,n,r){var o=Ed(t);o?t.undoManager.transact((function(){var r=wn.fromTag(o);yo(r,kd(t)),_r(r,wn.fromTag("br")),e?br(wn.fromDom(n),r):yr(wn.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom,0),i.setEnd(r.dom,0),SB(t,i)})):SB(t,r.toRange())},Pj=function(e,t,n){var r=Dj(!!t,n),o=!1===t;r.fold((function(){return SB(e,n.toRange())}),(function(r){return Yp(o,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return SB(e,n.toRange())}),(function(o){return Bj(t,e,r,n)}))}))},jj=function(e,t,n,r){var o=e.selection.getRng(),i=Bf.fromRangeStart(o),a=e.getBody();if(!t&&kj(r,i)){var u=Rj(a,n,i);return Pj(e,t,u),!0}if(t&&Tj(r,i)){u=Nj(a,n,i);return Pj(e,t,u),!0}return!1},Lj=function(e,t,n){return H.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return H.from(e.dom.getParent(r,"table")).map((function(o){return n(e,t,o,r)}))})).getOr(!1)},Mj=function(e,t){return Lj(e,t,Oj)},Ij=function(e,t){return Lj(e,t,jj)},Fj=function(e,t,n){var r=$t().os;aj([{keyCode:tv.RIGHT,action:ij(zP,e,!0)},{keyCode:tv.LEFT,action:ij(zP,e,!1)},{keyCode:tv.UP,action:ij(HP,e,!1)},{keyCode:tv.DOWN,action:ij(HP,e,!0)},{keyCode:tv.RIGHT,action:ij(Mj,e,!0)},{keyCode:tv.LEFT,action:ij(Mj,e,!1)},{keyCode:tv.UP,action:ij(Ij,e,!1)},{keyCode:tv.DOWN,action:ij(Ij,e,!0)},{keyCode:tv.RIGHT,action:ij(uj,e,!0)},{keyCode:tv.LEFT,action:ij(uj,e,!1)},{keyCode:tv.UP,action:ij(sj,e,!1)},{keyCode:tv.DOWN,action:ij(sj,e,!0)},{keyCode:tv.RIGHT,action:ij(MB,e,t,!0)},{keyCode:tv.LEFT,action:ij(MB,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:ij(VB,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:ij(UB,e,t)},{keyCode:tv.UP,action:ij(tj,e,!1)},{keyCode:tv.DOWN,action:ij(tj,e,!0)}],n).each((function(e){n.preventDefault()}))},Vj=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&Fj(e,t,n)}))},Uj=function(e,t,n){aj([{keyCode:tv.BACKSPACE,action:ij(mP,e,!1)},{keyCode:tv.BACKSPACE,action:ij(QN,e,!1)},{keyCode:tv.DELETE,action:ij(QN,e,!0)},{keyCode:tv.BACKSPACE,action:ij(NN,e,!1)},{keyCode:tv.DELETE,action:ij(NN,e,!0)},{keyCode:tv.BACKSPACE,action:ij(GB,e,t,!1)},{keyCode:tv.DELETE,action:ij(GB,e,t,!0)},{keyCode:tv.BACKSPACE,action:ij(Mx,e,!1)},{keyCode:tv.DELETE,action:ij(Mx,e,!0)},{keyCode:tv.BACKSPACE,action:ij(JN,e,!1)},{keyCode:tv.DELETE,action:ij(JN,e,!0)},{keyCode:tv.BACKSPACE,action:ij(oP,e,!1)},{keyCode:tv.DELETE,action:ij(oP,e,!0)},{keyCode:tv.BACKSPACE,action:ij(yN,e,!1)},{keyCode:tv.DELETE,action:ij(yN,e,!0)},{keyCode:tv.BACKSPACE,action:ij(fN,e,!1)},{keyCode:tv.DELETE,action:ij(fN,e,!0)},{keyCode:tv.BACKSPACE,action:ij(eP,e,!1)},{keyCode:tv.DELETE,action:ij(eP,e,!0)}],n).each((function(e){n.preventDefault()}))},qj=function(e,t){aj([{keyCode:tv.BACKSPACE,action:ij(GN,e)},{keyCode:tv.DELETE,action:ij(GN,e)}],t)},zj=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&Uj(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&qj(e,t)}))},Hj=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},$j=function(e,t){var n,r=t,o=e.dom,i=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=Hj(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(o.doc.createTextNode(ca),t.firstChild)}var u=o.createRng();if(t.normalize(),t.hasChildNodes()){var s=new Vi(t,t);while(n=s.current()){if(Zr(n)){u.setStart(n,0),u.setEnd(n,0);break}if(i[n.nodeName.toLowerCase()]){u.setStartBefore(n),u.setEndBefore(n);break}r=n,n=s.next()}n||(u.setStart(r,0),u.setEnd(r,0))}else ro(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(u.setStartBefore(t),u.setEndBefore(t)):(u.setStartAfter(t),u.setEndAfter(t)):(u.setStart(t,0),u.setEnd(t,0));e.selection.setRng(u),ny(e,u)}},Wj=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},Kj=function(e){return H.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},Yj=function(e){return Kj(e).fold(R(""),(function(e){return e.nodeName.toUpperCase()}))},Gj=function(e){return Kj(e).filter((function(e){return ra(wn.fromDom(e))})).isSome()},Qj=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},Xj=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},Jj=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},Zj=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},eL=function(e){return Zj(e)&&Zj(e.parentNode)},tL=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},nL=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(zr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},rL=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){eL(n)&&(o="LI");var u=o?t(o):i.create("BR");if(nL(n,r,!0)&&nL(n,r,!1))if(Jj(n,"LI")){var s=tL(n);i.insertAfter(u,s),Xj(n)?i.remove(s):i.remove(n)}else i.replace(u,n);else if(nL(n,r,!0))Jj(n,"LI")?(i.insertAfter(u,tL(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n),i.remove(r);else if(nL(n,r,!1))i.insertAfter(u,tL(n)),i.remove(r);else{n=tL(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var l=c.extractContents();"LI"===o&&Qj(l,"LI")?(u=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(u,n)),i.remove(r)}$j(e,u)}},oL=function(e){Z(kl(wn.fromDom(e),qn),(function(e){var t=e.dom;t.nodeValue=pa(t.nodeValue)}))},iL=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},aL=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},uL=function(e){e.innerHTML='<br data-mce-bogus="1">'},sL=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},cL=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},lL=function(e,t,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(e.isBlock(o))return;zr(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||iL(e,o))&&e.remove(o)}},fL=function(e,t,n){return!1===Zr(t)?n:e?1===n&&t.data.charAt(n-1)===da?0:n:n===t.data.length-1&&t.data.charAt(n)===da?t.data.length:n},dL=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,fL(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,fL(!1,e.endContainer,e.endOffset)),t},hL=function(e){do{Zr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},pL=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},mL=function(e,t,n){var r=e.dom;H.from(n.style).map(r.parseStyle).each((function(e){var n=Oo(wn.fromDom(t)),o=He(He({},n),e);r.setStyles(t,o)}));var o=H.from(n.class).map((function(e){return e.split(/\s+/)})),i=H.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));fo(o,i,(function(e,n){var o=ne(n,(function(t){return!Q(e,t)})),i=We(We([],e,!0),o,!0);r.setAttrib(t,"class",i.join(" "))}));var a=["style","class"],u=Ae(n,(function(e,t){return!Q(a,t)}));r.setAttribs(t,u)},gL=function(e,t){var n=Ed(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=kd(e);mL(e,t,r)}},vL=function(e,t,n,r,o){var i,a,u,s,c,l,f=t||"P",d=e.dom,h=pL(d,r);if(a=d.getParent(r,d.isBlock),!a||!cL(d,a)){if(a=a||h,l=a===e.getBody()||aL(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),gL(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;s=r;while(s.parentNode!==a)s=s.parentNode;while(s&&!d.isBlock(s))u=s,s=s.previousSibling;if(u&&e.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),gL(e,i),u.parentNode.insertBefore(i,u),s=u;while(s&&!d.isBlock(s))c=s.nextSibling,i.appendChild(s),s=c;n.setStart(r,o),n.setEnd(r,o)}}return r},yL=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},bL=function(e,t){var n,r,o,i,a,u,s,c,l,f,d=e.dom,h=e.schema,p=h.getNonEmptyElements(),m=e.selection.getRng(),g=function(t){var n,o,a,u=r,s=h.getTextInlineElements();if(n=t||"TABLE"===c||"HR"===c?d.create(t||l):i.cloneNode(!1),a=n,!1===Od(e))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(s[u.nodeName]){if(em(u)||xm(u))continue;o=u.cloneNode(!1),d.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(a=o,n.appendChild(o))}}while((u=u.parentNode)&&u!==_);return gL(e,n),uL(a),n},v=function(e){var t,n,a=fL(e,r,o);if(Zr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===i&&f&&!e)return!0;if(e&&zr(r)&&r===i.firstChild)return!0;if(sL(r,"TABLE")||sL(r,"HR"))return f&&!e||!f&&e;var u=new Vi(r,i);Zr(r)&&(e&&0===a?u.prev():e||a!==r.nodeValue.length||u.next());while(t=u.current()){if(zr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Zr(t)&&!Ka(t.nodeValue))return!1;e?u.prev():u.next()}return!0},y=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==x?g(l):g(),Rd(e)&&cL(d,s)&&d.isEmpty(i)?a=d.split(s,i):d.insertAfter(a,i),$j(e,a)};_v(d,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,o=m.startOffset,l=Ed(e);var b=!(!t||!t.shiftKey),w=!(!t||!t.ctrlKey);zr(r)&&r.hasChildNodes()&&(f=o>r.childNodes.length-1,r=r.childNodes[Math.min(o,r.childNodes.length-1)]||r,o=f&&Zr(r)?r.nodeValue.length:0);var _=pL(d,r);if(_){(l&&!b||!l&&b)&&(r=vL(e,l,m,r,o)),i=d.getParent(r,d.isBlock),s=i?d.getParent(i.parentNode,d.isBlock):null,c=i?i.nodeName.toUpperCase():"";var x=s?s.nodeName.toUpperCase():"";"LI"!==x||w||(i=s,s=s.parentNode,c=x),/^(LI|DT|DD)$/.test(c)&&d.isEmpty(i)?rL(e,g,s,i,l):l&&i===e.getBody()||(l=l||"P",va(i)?(a=Oa(i),d.isEmpty(i)&&uL(i),gL(e,a),$j(e,a)):v()?y():v(!0)?(a=i.parentNode.insertBefore(g(),i),$j(e,sL(i,"HR")?a:i)):(n=dL(m).cloneRange(),n.setEndAfter(i),u=n.extractContents(),oL(u),hL(u),a=u.firstChild,d.insertAfter(u,i),lL(d,p,a),yL(d,i),d.isEmpty(i)&&uL(i),a.normalize(),d.isEmpty(a)?(d.remove(a),y()):(gL(e,a),$j(e,a))),d.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},wL=function(e,t,n){var r,o=new Vi(t,n),i=e.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},_L=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),ny(e,r)},xL=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();_v(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var c=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=c&&3===s.nodeType?s.nodeValue.length:0}var l=i.getParent(s,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(wL(e.schema,s,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),If(i,a,n),_L(e,n,r),e.undoManager.add()},CL=function(e,t){var n=wn.fromTag("br");yr(wn.fromDom(t),n),e.undoManager.add()},SL=function(e,t){kL(e.getBody(),t)||br(wn.fromDom(t),wn.fromTag("br"));var n=wn.fromTag("br");br(wn.fromDom(t),n),_L(e,n.dom,!1),e.undoManager.add()},EL=function(e){return ro(e.getNode())},kL=function(e,t){return!!EL(Bf.after(t))||Gp(e,Bf.after(t)).map((function(e){return ro(e.getNode())})).getOr(!1)},TL=function(e){return e&&"A"===e.nodeName&&"href"in e},AL=function(e){return e.fold(I,TL,TL,I)},OL=function(e){var t=B(RR,e),n=Bf.fromRangeStart(e.selection.getRng());return _D(t,e.getBody(),n).filter(AL)},RL=function(e,t){t.fold(T,B(CL,e),B(SL,e),T)},NL=function(e,t){var n=OL(e);n.isSome()?n.each(B(RL,e)):xL(e,t)},DL=function(e,t){return Kj(e).filter((function(e){return t.length>0&&On(wn.fromDom(e),t)})).isSome()},BL=function(e){return DL(e,Td(e))},PL=function(e){return DL(e,Ad(e))},jL=ei.generate([{br:[]},{block:[]},{none:[]}]),LL=function(e,t){return PL(e)},ML=function(e){return function(t,n){var r=""===Ed(t);return r===e}},IL=function(e){return function(t,n){return Gj(t)===e}},FL=function(e,t){return function(n,r){var o=Yj(n)===e.toUpperCase();return o===t}},VL=function(e){return FL("pre",e)},UL=function(){return FL("summary",!0)},qL=function(e){return function(t,n){return Sd(t)===e}},zL=function(e,t){return BL(e)},HL=function(e,t){return t},$L=function(e){var t=Ed(e),n=Wj(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},WL=function(e,t){return function(n,r){var o=oe(e,(function(e,t){return e&&t(n,r)}),!0);return o?H.some(t):H.none()}},KL=function(e,t){return fD([WL([LL],jL.none()),WL([UL()],jL.br()),WL([VL(!0),qL(!1),HL],jL.br()),WL([VL(!0),qL(!1)],jL.block()),WL([VL(!0),qL(!0),HL],jL.block()),WL([VL(!0),qL(!0)],jL.br()),WL([IL(!0),HL],jL.br()),WL([IL(!0)],jL.block()),WL([ML(!0),HL,$L],jL.block()),WL([ML(!0)],jL.br()),WL([zL],jL.br()),WL([ML(!1),HL],jL.br()),WL([$L],jL.block())],[e,!(!t||!t.shiftKey)]).getOr(jL.none())},YL=function(e,t){KL(e,t).fold((function(){NL(e,t)}),(function(){bL(e,t)}),T)},GL=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),xk(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),YL(e,t)})))},QL=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&GL(e,t)}))},XL=function(e,t,n){aj([{keyCode:tv.END,action:ij($P,e,!0)},{keyCode:tv.HOME,action:ij($P,e,!1)},{keyCode:tv.END,action:ij(cj,e,!0)},{keyCode:tv.HOME,action:ij(cj,e,!1)},{keyCode:tv.END,action:ij(qB,e,!0,t)},{keyCode:tv.HOME,action:ij(qB,e,!1,t)}],n).each((function(e){n.preventDefault()}))},JL=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&XL(e,t,n)}))},ZL=$t().browser,eM=function(e){var t=hl((function(){e.composing||v_(e)}),0);ZL.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},tM=function(e){eM(e),e.on("input",(function(t){!1===t.isComposing&&v_(e)}))},nM=$t(),rM=function(e,t,n){aj([{keyCode:tv.PAGE_UP,action:ij(qB,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:ij(qB,e,!0,t)}],n)},oM=function(e){return e.stopImmediatePropagation()},iM=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},aM=function(e,t,n){n&&!e.get()?t.on("NodeChange",oM,!0):!n&&e.get()&&t.off("NodeChange",oM),e.set(n)},uM=function(e,t){if(!nM.os.isOSX()){var n=Qc(!1);e.on("keydown",(function(t){iM(t)&&aM(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&rM(e,t,r),iM(r)&&n.get()&&(aM(n,e,!1),e.nodeChanged())}))}},sM=function(e,t){var n=t.container(),r=t.offset();return Zr(n)?(n.insertData(r,e),H.some(Bf(n,r+e.length))):_p(t).map((function(n){var r=wn.fromText(e);return t.isAtEnd()?br(n,r):yr(n,r),Bf(r.dom,e.length)}))},cM=B(sM,ca),lM=B(sM," "),fM=function(e){return function(t){return t.fold((function(t){return Qp(e.dom,Bf.before(t))}),(function(e){return Xp(e)}),(function(e){return Jp(e)}),(function(t){return Gp(e.dom,Bf.after(t))}))}},dM=function(e,t){return function(n){return i_(e,n)?cM(t):lM(t)}},hM=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},pM=function(e){var t=Bf.fromRangeStart(e.selection.getRng()),n=wn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=B(RR,e),o=Bf.fromRangeStart(e.selection.getRng());return _D(r,e.getBody(),o).bind(fM(n)).bind(dM(n,t)).exists(hM(e))}return!1},mM=function(e,t){aj([{keyCode:tv.SPACEBAR,action:ij(pM,e)}],t).each((function(e){t.preventDefault()}))},gM=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&mM(e,t)}))},vM=function(e){var t=FB(e);return jP(e),Vj(e,t),zj(e,t),QL(e),gM(e),tM(e),JL(e,t),uM(e,t),t},yM=function(e){return Ik(e)?Qc(null):vM(e)},bM=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&cv(o,t)||e.fire("SelectionChange"),t=o})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Eg(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Eg(e)&&("IMG"===e.selection.getNode().nodeName?Li.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!wh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=o.getStart(!0)||r,t.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||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),wM=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},_M=function(e){e.parser.addNodeFilter("details",(function(e){Z(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Z(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},xM=function(e){wM(e),_M(e)},CM=function(e){return zr(e)&&ta(wn.fromDom(e))},SM=function(e){var t=e.selection.getRng(),n=Bf.fromRangeStart(t),r=Bf.fromRangeEnd(t);if(Bf.isElementPosition(n)){var o=n.container();CM(o)&&Xp(o).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Bf.isElementPosition(r)){o=n.container();CM(o)&&Jp(o).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(Vx(t))},EM=function(e){e.on("click",(function(t){t.detail>=3&&SM(e)}))},kM=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+o.pageYOffset-r.clientTop,left:t.left+o.pageXOffset-r.clientLeft}},TM=function(e){return e.inline?kM(e.getBody()):{left:0,top:0}},AM=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},OM=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},RM=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=kM(e.getContentAreaContainer()),r=OM(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},NM=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},DM=function(e,t){return NM(TM(e),AM(e),RM(e,t))},BM=ao,PM=io,jM=function(e,t){return BM(t)&&t!==e},LM=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!BM(t)},MM=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},IM=function(e,t,n,r){var o=e.dom,i=t.cloneNode(!0);o.setStyles(i,{width:n,height:r}),o.setAttrib(i,"data-mce-selected",null);var a=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),o.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a},FM=function(e,t){e.parentNode!==t&&t.appendChild(e)},VM=function(e,t,n,r,o,i){var a=0,u=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(u=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-u+"px"},UM=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qM=function(e){return 0===e.button},zM=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},HM=function(e,t){return function(n){if(qM(n)){var r=ae(t.dom.getParents(n.target),ff(BM,PM)).getOr(null);if(jM(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?i.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?i.scrollHeight:a.offsetHeight)-2,relX:n.pageX-o.x,relY:n.pageY-o.y,width:r.offsetWidth,height:r.offsetHeight,ghost:IM(t,r,r.offsetWidth,r.offsetHeight)})}}}},$M=function(e,t){var n=Li.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=zM(e,DM(t,r));FM(e.ghost,t.getBody()),VM(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},WM=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},KM=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(LM(t,WM(t.selection),e.element)){var r=MM(e.element),o=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||t.undoManager.transact((function(){UM(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),GM(e)}},YM=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),GM(e)}},GM=function(e){e.on((function(e){UM(e.ghost)})),e.clear()},QM=function(e){var t=dl(),n=Uc.DOM,r=document,o=HM(t,e),i=$M(t,e),a=KM(t,e),u=YM(t,e);e.on("mousedown",o),e.on("mousemove",i),e.on("mouseup",a),n.bind(r,"mousemove",i),n.bind(r,"mouseup",u),e.on("remove",(function(){n.unbind(r,"mousemove",i),n.unbind(r,"mouseup",u)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&u()}))},XM=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(BM(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},JM=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(Q(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&jO(e,"Dropped file type is not supported"))}},n=function(n){Jy(e,n.target)&&t(n)},r=function(){var r=Uc.DOM,o=e.dom,i=document,a=e.inline?e.getBody():e.getDoc(),u=["drop","dragover"];Z(u,(function(e){r.bind(i,e,n),o.bind(a,e,t)})),e.on("remove",(function(){Z(u,(function(e){r.unbind(i,e,n),o.unbind(a,e,t)}))}))};e.on("init",(function(){Li.setEditorTimeout(e,r,0)}))},ZM=function(e){QM(e),XM(e),Eh(e)&&JM(e)},eI=function(e){var t=hl((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=EN(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},tI=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(so(n)){var r=Fg(e.getBody(),n),o=ao(r)?r:n;e.selection.getNode()!==o&&CN(e,o).each((function(t){return e.selection.setRng(t)}))}}))}))},nI=io,rI=ao,oI=function(e,t){return Fg(e.getBody(),t)},iI=function(e){var t,n=e.selection,r=e.dom,o=r.isBlock,i=e.getBody(),a=Gh(e,i,o,(function(){return db(e)})),u="sel-"+r.uniqueId(),s="data-mce-selected",c=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==i&&(rI(e)||so(e))&&r.isChildOf(e,i)},f=function(e){return kw(e)||Tw(e)||xw(e)||Cw(e)},d=function(){var e=r.get(u);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,m=function(t,r,o,i){void 0===i&&(i=!0);var u=e.fire("ShowCaret",{target:r,direction:t,before:o});return u.isDefaultPrevented()?null:(i&&n.scrollIntoView(r,-1===t),a.show(o,r))},g=function(e){e.hasAttribute("data-mce-caret")&&(Oa(e),h(p()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&EO(e,t.clientX,t.clientY)&&SN(e,n,!1).each(h)})),e.on("click",(function(t){var o=oI(e,t.target);o&&(rI(o)&&(t.preventDefault(),e.focus()),nI(o)&&r.isChildOf(o,n.getNode())&&E())})),e.on("blur NewBlock",E),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var u=function(e){var t=e.firstChild;if(C(t))return!1;var n=Bf.before(t);if(ro(n.getNode())&&1===e.childNodes.length)return!f(n);var r=Mp(e),o=r.next(n);return o&&!f(o)},s=function(e,t){var n=r.getParent(e,o),i=r.getParent(t,o);return n===i},g=function(t,n){var i=r.getParent(t,o),a=r.getParent(n,o);return!C(i)&&(!(t===a||!r.isChildOf(i,a)||!1!==rI(oI(e,i)))||!r.isChildOf(a,i)&&!s(i,a)&&u(i))};e.on("tap",(function(t){var n=t.target,r=oI(e,n);rI(r)?(t.preventDefault(),CN(e,r).each(S)):l(n)&&CN(e,n).each(S)}),!0),e.on("mousedown",(function(t){var o=t.target;if((o===i||"HTML"===o.nodeName||r.isChildOf(o,i))&&!1!==EO(e,t.clientX,t.clientY)){var a=oI(e,o);if(a)rI(a)?(t.preventDefault(),CN(e,a).each(S)):(E(),nI(a)&&t.shiftKey||Vg(t.clientX,t.clientY,n.getRng())||(T(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(o))CN(e,o).each(S);else if(!1===Jh(o)){E(),T();var u=CB(i,t.clientX,t.clientY);if(u&&!g(o,u.node)){t.preventDefault();var s=m(1,u.node,u.before,!1);h(s),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||rI(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=w(e.range);var t=S(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;b(t)||v(n)||T(),c(n)||E()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=d();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),ZM(e),eI(e),tI(e)},y=function(e){return ba(e)||ka(e)||Ta(e)},b=function(e){return y(e.startContainer)||y(e.endContainer)},w=function(t){var n=e.schema.getShortEndedElements(),o=r.createRng(),i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset;return De(n,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),De(n,u.nodeName.toLowerCase())?0===s?o.setEndBefore(u):o.setEndAfter(u):o.setEnd(u,s),o},_=function(t,o,i){var a=e.$,s=Ti(wn.fromDom(e.getBody()),"#"+u).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===s.length&&(s=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",u),s.appendTo(e.getBody()));var c=r.createRng();o===i&&en.ie?(s.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(o),c.setStartAfter(s[0].firstChild.firstChild),c.setEndAfter(o)):(s.empty().append(ca).append(o).append(ca),c.setStart(s[0].firstChild,1),c.setEnd(s[0].lastChild,0)),s.css({top:r.getPos(t,e.getBody()).y}),s[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(c),c},x=function(n){var o=n.cloneNode(!0),i=e.fire("ObjectSelected",{target:n,targetClone:o});if(i.isDefaultPrevented())return null;var a=_(n,i.targetClone,o),u=wn.fromDom(n);return Z(Tl(wn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Bn(u,e)||xo(e,s)})),r.getAttrib(n,s)||n.setAttribute(s,"1"),t=n,T(),a},S=function(e,t){if(!e)return null;if(e.collapsed){if(!b(e)){var n=t?1:-1,o=wp(n,i,e),a=o.getNode(!t);if(Jh(a))return m(n,a,!!t&&!o.isAtEnd(),!1);var u=o.getNode(t);if(Jh(u))return m(n,u,!t&&!o.isAtEnd(),!1)}return null}var s=e.startContainer,c=e.startOffset,f=e.endOffset;if(3===s.nodeType&&0===c&&rI(s.parentNode)&&(s=s.parentNode,c=r.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(f===c+1&&s===e.endContainer){var d=s.childNodes[c];if(l(d))return x(d)}return null},E=function(){t&&t.removeAttribute(s),Ti(wn.fromDom(e.getBody()),"#"+u).each(kr),t=null},k=function(){a.destroy(),t=null},T=function(){a.hide()};return en.ceFalse&&!Ik(e)&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:T,destroy:k}},aI=function(e){var t=pn.each,n=tv.BACKSPACE,r=tv.DELETE,o=e.dom,i=e.selection,a=e.parser,u=en.gecko,s=en.ie,c=en.webkit,l="data:text/mce-internal,",f=s?"Text":"URL",d=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},h=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&i.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(f,r)))},m=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(f),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},g=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=o.create("body"),n=e.cloneContents();return t.appendChild(n),i.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),i=o.createRng();i.selectNode(e.getBody());var a=t(i);return r===a};e.on("keydown",(function(t){var i,u,s=t.keyCode;if(!h(t)&&(s===r||s===n)){if(i=e.selection.isCollapsed(),u=e.getBody(),i&&!o.isEmpty(u))return;if(!i&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),u.firstChild&&o.isBlock(u.firstChild)?e.selection.setCursorLocation(u.firstChild,0):e.selection.setCursorLocation(u,0),e.nodeChanged()}}))},y=function(){e.shortcuts.add("meta+a",null,"SelectAll")},b=function(){e.inline||o.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=i.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ba(n.startContainer))return;i.placeCaretAt(t.clientX,t.clientY)}else i.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!h(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(i.isCollapsed()&&0===i.getRng().startOffset){var r=i.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return o.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(o.remove(a),t.preventDefault())}}}))},_=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!h(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Li.setEditorTimeout(e,(function(){n.focus()}))}}))},x=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),i.select(n))}))},C=function(){var n=function(){var n=o.getAttribs(i.getStart().cloneNode(!1));return function(){var r=i.getStart();r!==e.getBody()&&(o.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!i.isCollapsed()&&o.getParent(i.getStart(),o.isBlock)!==o.getParent(i.getEnd(),o.isBlock)};e.on("keypress",(function(t){var o;if(!h(t)&&(8===t.keyCode||46===t.keyCode)&&r())return o=n(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),o.bind(e.getDoc(),"cut",(function(t){var o;!h(t)&&r()&&(o=n(),Li.setEditorTimeout(e,(function(){o()})))}))},S=function(){e.on("keydown",(function(e){if(!h(e)&&e.keyCode===n&&i.isCollapsed()&&0===i.getRng().startOffset){var t=i.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},E=function(){e.on("keydown",(function(t){var n,r;if(!h(t)&&t.keyCode===tv.BACKSPACE){n=i.getRng();var a=n.startContainer,u=n.startOffset,s=o.getRoot();if(r=a,n.collapsed&&0===u){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==s)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=o.createRng(),n.setStart(a,0),n.setEnd(a,0),i.setRng(n))}}}))},k=function(){var t=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Zd(e)||d("enableObjectResizing",!1)};_h(e)||e.on("BeforeExecCommand mousedown",t)},A=function(){var n=function(){t(o.select("a"),(function(e){var t=e.parentNode,n=o.getRoot();if(t.lastChild===e){while(t&&!o.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}o.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},O=function(){Ed(e)&&e.on("init",(function(){d("DefaultParagraphSeparator",Ed(e))}))},R=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||i.normalize()}),!0)},N=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},D=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},B=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},P=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},j=function(){d("AutoUrlDetect",!1)},L=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},M=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},I=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},F=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!h(t)){var n=m(t);if(n&&n.id!==e.id){t.preventDefault();var r=sv(t.x,t.y,e.getDoc());i.setRng(r),g(n.html,!0)}}}))},V=T,U=function(){if(!u||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},q=function(){c&&(b(),x(),M(),y(),en.iOS&&(D(),B(),L())),u&&(_(),k(),N(),P())},z=function(){E(),v(),en.windowsPhone||R(),c&&(b(),x(),O(),M(),S(),I(),en.iOS?(D(),B(),L()):y()),en.ie>=11&&(B(),S()),en.ie&&(y(),j(),F()),u&&(w(),_(),C(),k(),A(),N(),P(),S())};return Ik(e)?q():z(),{refreshContentEditable:V,isHidden:U}},uI=Uc.DOM,sI=function(e,t){var n=wn.fromDom(e.getBody()),r=hr(dr(n)),o=wn.fromTag("style");vo(o,"type","text/css"),_r(o,wn.fromText(t)),_r(r,o),e.on("remove",(function(){kr(o)}))},cI=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},lI=function(e){return Ae(e,(function(e){return!1===x(e)}))},fI=function(e){var t=e.settings;return lI({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},dI=function(e){var t=e.settings,n=e.editorUpload.blobCache;return lI({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:cI(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},hI=function(e){var t=e.settings;return He(He(He({},dI(e)),fI(e)),lI({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},pI=function(e){var t=uA(dI(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,o,i=t.length,a=e.dom,u="data-mce-"+n;while(i--)if(r=t[i],o=r.attr(n),o&&!r.attr(u)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(u,o),r.attr(n,o)):"tabindex"===n?(r.attr(u,o),r.attr(n,null)):r.attr(u,e.convertURL(o,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var o=t[n];o.isEmpty(r)&&0===o.getAll("br").length&&(o.append(new Ob("br",1)).shortEnded=!0)}})),t},mI=function(e){e.settings.auto_focus&&Li.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},gI=function(e){var t=e.dom.getRoot();e.inline||Eg(e)&&e.selection.getStart(!0)!==t||Xp(t).each((function(t){var n=t.getNode(),r=Qr(n)?Xp(n).getOr(t):t;en.browser.isIE()?Iy(e,r.toRange()):e.selection.setRng(r.toRange())}))},vI=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Qg(e),e.focus(!0),gI(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),mI(e)},yI=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},bI=function(e,t,n){var r=[new Oi((function(n,r){return yI(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Oi((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},wI=function(e){var t=yI(e),n=Qd(e),r=e.contentCSS,o=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},i=function(){e.removed?o():e.on("remove",o)};if(e.contentStyles.length>0){var a="";pn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var u=Oi.all(bI(e,r,n)).then(i).catch(i);return e.settings.content_style&&sI(e,e.settings.content_style),u},_I=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Yg(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,uI.setAttrib(r,"spellcheck","false")),e.quirks=aI(e),Gg(e);var o=Xd(e);void 0!==o&&(r.dir=o),t.protect&&e.on("BeforeSetContent",(function(e){pn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},xI=function(e){Ik(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},CI=function(e){!0!==e.removed&&(xI(e),vI(e))},SI=function(e,t){var n=e.settings,r=e.getElement(),o=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(o.open(),o.write(e.iframeHTML),o.close()),e.inline&&(uI.addClass(r,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var i=e.getBody();i.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===uI.getStyle(i,"position",!0)&&(i.style.position="relative"),i.contentEditable=e.getParam("content_editable_state",!0)),i.disabled=!1,e.editorUpload=iR(e),e.schema=Uu(fI(e)),e.dom=Uc(o,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:zd(e),referrerPolicy:Hd(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=pI(e),e.serializer=wA(hI(e),e),e.selection=OT(e.dom,e.getWin(),e.serializer,e),e.annotator=Mg(e),e.formatter=mR(e),e.undoManager=bR(e),e._nodeChangeDispatcher=new bM(e),e._selectionOverrides=iI(e),SP(e),xM(e),Ik(e)||EM(e);var a=yM(e);bP(e,a),RP(e),TR(e);var u=Vk(e);_I(e),u.fold((function(){wI(e).then((function(){return CI(e)}))}),(function(t){e.setProgressState(!0),wI(e).then((function(){t().then((function(t){e.setProgressState(!1),CI(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),CI(e)}))}))}))},EI=Uc.DOM,kI=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=JO("mce");e[n]=function(){SI(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return EI.setAttrib(t,"src",r),!0}return!1},TI=function(e,t,n,r){var o=wn.fromTag("iframe");return yo(o,r),yo(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),xl(o,"tox-edit-area__iframe"),o},AI=function(e){var t=bd(e)+"<html><head>";wd(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=_d(e),r=xd(e),o=e.translate(Oh(e));return Cd(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Cd(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+o+'"><br></body></html>',t},OI=function(e,t){var n=e.translate("Rich Text Area"),r=TI(e.id,n,t.height,yd(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var o=kI(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=AI(e),EI.add(t.iframeContainer,r),o},RI=function(e,t){var n=OI(e,t);t.editorContainer&&(EI.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=EI.isHidden(t.editorContainer)),e.getElement().style.display="none",EI.setAttrib(e.id,"aria-hidden","true"),n||SI(e)},NI=Uc.DOM,DI=function(e,t,n){var r=RO.get(n),o=RO.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=pn.trim(n),r&&-1===pn.inArray(t,n)){if(pn.each(RO.dependencies(n),(function(n){DI(e,t,n)})),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(vU){qO(e,n,vU)}}},BI=function(e){return e.replace(/^\-/,"")},PI=function(e){var t=[];pn.each(Ch(e).split(/[ ,]/),(function(n){DI(e,t,BI(n))}))},jI=function(e){var t=pn.trim(Md(e)),n=e.ui.registry.getAll().icons,r=He(He({},mO.get("default").icons),mO.get(t).icons);xe(r,(function(t,r){De(n,r)||e.ui.registry.addIcon(r,t)}))},LI=function(e){var t=oh(e);if(v(t)){e.settings.theme=BI(t);var n=NO.get(t);e.theme=new n(e,NO.urls[t]),e.theme.init&&e.theme.init(e,NO.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},MI=function(e){return e.theme.renderUI()},II=function(e){var t=e.getElement(),n=oh(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},FI=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},VI=function(e){var t=NI.create("div");return NI.insertAfter(t,e),FI(t)},UI=function(e){var t=e.getElement();return e.inline?FI(null):VI(t)},qI=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(oh(e))?MI(e):E(oh(e))?II(e):UI(e)},zI=function(e,t){var n={show:H.from(t.show).getOr(T),hide:H.from(t.hide).getOr(T),disable:H.from(t.disable).getOr(T),isDisabled:H.from(t.isDisabled).getOr(I),enable:function(){e.mode.isReadOnly()||H.from(t.enable).map(M)}};e.ui=He(He({},e.ui),n)},HI=function(e){e.fire("ScriptsLoaded"),jI(e),LI(e),PI(e);var t=qI(e);zI(e,H.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,YO(e),e.inline?SI(e):RI(e,n)},$I=Uc.DOM,WI=function(e){return"-"===e.charAt(0)},KI=function(e,t){var n=$d(t),r=Wd(t);if(!1===cl.hasCode(n)&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,T,void 0,(function(){UO(t,o,n)}))}},YI=function(e,t,n,r){var o=oh(t);if(v(o)){if(!WI(o)&&!De(NO.urls,o)){var i=fh(t);i?NO.load(o,t.documentBaseURI.toAbsolute(i)):NO.load(o,"themes/"+o+"/theme"+n+".js")}e.loadQueue((function(){NO.waitFor(o,r)}))}else r()},GI=function(e){return H.from(Id(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:H.none()}}))},QI=function(e,t,n){return H.from(t).filter((function(e){return e.length>0&&!mO.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:H.some(t)}}))},XI=function(e,t,n){var r=QI(t,"default",n),o=GI(t).orThunk((function(){return QI(t,Md(t),"")}));Z(lo([r,o]),(function(n){e.add(n.url,T,void 0,(function(){VO(t,n.url,n.name.getOrUndefined())}))}))},JI=function(e,t){pn.each(Sh(e),(function(t,n){RO.load(n,t,T,void 0,(function(){FO(e,t,n)})),e.settings.plugins+=" "+n})),pn.each(Ch(e).split(/[ ,]/),(function(n){if(n=pn.trim(n),n&&!RO.urls[n])if(WI(n)){n=n.substr(1,n.length);var r=RO.dependencies(n);pn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},o=RO.createUrl(r,n);RO.load(o.resource,o,T,void 0,(function(){FO(e,o.prefix+o.resource+o.suffix,o.resource)}))}))}else{var o={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};RO.load(n,o,T,void 0,(function(){FO(e,o.prefix+o.resource+o.suffix,n)}))}}))},ZI=function(e,t){var n=Gc.ScriptLoader;YI(n,e,t,(function(){KI(n,e),XI(n,e,t),JI(e,t),n.loadQueue((function(){e.removed||HI(e)}),e,(function(){e.removed||HI(e)}))}))},eF=function(e,t){return Fi.forElement(e,{contentCssCors:xh(t),referrerPolicy:Hd(t)})},tF=function(e){var t=e.id;cl.setCode($d(e));var n=function(){$I.unbind(window,"ready",n),e.render()};if(rs.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=wn.fromDom(e.getElement()),o=Co(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return xo(r,e.name)})),yo(r,o)})),e.ui.styleSheetLoader=eF(r,e),dh(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var i=e.getElement().form||$I.getParent(t,"form");i&&(e.formElement=i,hh(e)&&!Jr(e.getElement())&&($I.insertAfter($I.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},$I.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!ph(e)||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=BO(e),e.notificationManager=OO(e),mh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=$I.encode(e.content))})),gh(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vh(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),ZI(e,e.suffix)}}else $I.bind(window,"ready",n)},nF=function(e,t){return hT(e,t)},rF={"font-size":"size","font-family":"face"},oF=function(e,t,n){var r=function(t){return Ao(t,e).orThunk((function(){return"font"===Mn(t)?Ne(rF,e).bind((function(e){return wo(t,e)})):H.none()}))},o=function(e){return Bn(wn.fromDom(t),e)};return jC(wn.fromDom(n),(function(e){return r(e)}),o)},iF=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},aF=function(e,t){return H.from(Uc.DOM.getStyle(t,e,!0))},uF=function(e){return function(t,n){return H.from(n).map(wn.fromDom).filter(Un).bind((function(n){return oF(e,t,n.dom).or(aF(e,n.dom))})).getOr("")}},sF=uF("font-size"),cF=A(iF,uF("font-family")),lF=function(e){return Xp(e.getBody()).map((function(e){var t=e.container();return Zr(t)?t.parentNode:t}))},fF=function(e){return H.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?H.none():H.from(e.selection.getStart(!0))}))},dF=function(e,t){return fF(e).orThunk(B(lF,e)).map(wn.fromDom).filter(Un).bind(t)},hF=function(e,t){return dF(e,O(H.some,t))},pF=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Nd(e),o=Dd(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},mF=function(e){var t=e.split(/\s*,\s*/);return J(t,(function(e){return-1===e.indexOf(" ")||ct(e,'"')||ct(e,"'")?e:"'"+e+"'"})).join(",")},gF=function(e,t){var n=pF(e,t);e.formatter.toggle("fontname",{value:mF(n)}),e.nodeChanged()},vF=function(e){return hF(e,(function(t){return cF(e.getBody(),t.dom)})).getOr("")},yF=function(e,t){e.formatter.toggle("fontsize",{value:pF(e,t)}),e.nodeChanged()},bF=function(e){return hF(e,(function(t){return sF(e.getBody(),t.dom)})).getOr("")},wF=function(e){return hF(e,(function(t){var n=wn.fromDom(e.getBody()),r=jC(t,(function(e){return Ao(e,"line-height")}),B(Bn,n)),o=function(){var e=parseFloat(ko(t,"line-height")),n=parseFloat(ko(t,"font-size"));return String(e/n)};return r.getOrThunk(o)})).getOr("")},_F=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},xF=function(e){if("string"!==typeof e){var t=pn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},CF=function(e,t){var n=xF(t);fT(e,n.content,n.details)},SF=pn.each,EF=pn.map,kF=pn.inArray,TF=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Vy(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var u=e.toLowerCase();if(o=a.commands.exec[u])return o(u,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(SF(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),i=!0,!1})),i)return i;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{i=a.editor.getDoc().execCommand(e,t,n)}catch(s){}return!!i&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;SF(e,(function(e,r){SF(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":T,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){gb(e,r)},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),SF("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var o=e.dom.getParent(e.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,o),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){gF(e,r)},FontSize:function(t,n,r){yF(e,r)},LineHeight:function(t,n,r){_F(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){CF(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){YL(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){pP(e,t)},mceRepaint:T,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var o=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),io);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return NL(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),o=EF(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==kF(o,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return lP(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return vF(e)}),this),t.addQueryValueHandler("FontSize",(function(){return bF(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return wF(e)}),this)},e}(),AF="data-mce-contenteditable",OF=function(e,t,n){El(e,t)&&!1===n?Sl(e,t):n&&xl(e,t)},RF=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},NF=function(e,t){e.dom.contentEditable=t?"true":"false"},DF=function(e){Z(Tl(e,'*[contenteditable="true"]'),(function(e){vo(e,AF,"true"),NF(e,!1)}))},BF=function(e){Z(Tl(e,"*["+AF+'="true"]'),(function(e){xo(e,AF),NF(e,!0)}))},PF=function(e){H.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},jF=function(e){e.selection.setRng(e.selection.getRng())},LF=function(e,t){var n=wn.fromDom(e.getBody());OF(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),PF(e),e.readonly=!0,NF(n,!1),DF(n)):(e.readonly=!1,NF(n,!0),BF(n),RF(e,"StyleWithCSS",!1),RF(e,"enableInlineTableEditing",!1),RF(e,"enableObjectResizing",!1),hb(e)&&e.focus(),jF(e),e.nodeChanged())},MF=function(e){return e.readonly},IF=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){MF(e)&&Z(t,(function(e){e.attr(AF,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(AF,(function(t){MF(e)&&Z(t,(function(e){e.attr("contenteditable",e.attr(AF))}))})),e.serializer.addTempAttr(AF)},FF=function(e){e.serializer?IF(e):e.on("PreInit",(function(){IF(e)}))},VF=function(e){return"click"===e.type},UF=function(e,t){var n=function(t){return Bn(t,wn.fromDom(e.getBody()))};return Ai(t,"a",n).bind((function(e){return wo(e,"href")}))},qF=function(e,t){if(VF(t)&&!tv.metaKeyPressed(t)){var n=wn.fromDom(t.target);UF(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+ut(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},zF=function(e){e.on("ShowCaret",(function(t){MF(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){MF(e)&&t.preventDefault()}))},HF=pn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),$F=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||I}return e.isNative=function(e){return!!HF[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Gu(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var u=o[i];if(!u.removed){if(u.once&&this.off(n,u.func),r.isImmediatePropagationStopped())return r;if(!1===u.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=I),t){var o={func:t,removed:!1};r&&pn.extend(o,r);var i=e.toLowerCase().split(" "),a=i.length;while(a--){var u=i[a],s=this.bindings[u];s||(s=[],this.toggleEvent(u,!0)),s=n?We([o],s,!0):We(We([],s,!0),[o],!1),this.bindings[u]=s}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),o=r.length;while(o--){var i=r[o],a=this.bindings[i];if(!i)return xe(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var u=te(a,(function(e){return e.func===t}));a=u.fail,this.bindings[i]=a,Z(u.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[i])}}}else xe(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),WF=function(e){return e._eventDispatcher||(e._eventDispatcher=new $F({scope:e,toggleEvent:function(t,n){$F.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},KF={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=WF(r).fire(e,t);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(e,o,!1),i=i.parent()}return o},on:function(e,t,n){return WF(this).on(e,t,n)},off:function(e,t){return WF(this).off(e,t)},once:function(e,t){return WF(this).once(e,t)},hasEventListeners:function(e){return WF(this).has(e)}},YF=Uc.DOM,GF=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nh(e);return n?(e.eventRoot||(e.eventRoot=YF.select(n)[0]),e.eventRoot):e.getBody()},QF=function(e){return!e.hidden&&!MF(e)},XF=function(e,t,n){QF(e)?e.fire(t,n):MF(e)&&qF(e,n)},JF=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=GF(e,t);if(nh(e)){if(eB||(eB={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||eB&&(xe(eB,(function(t,n){e.dom.unbind(GF(e,n))})),eB=null)}))),eB[t])return;n=function(n){var r=n.target,o=e.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||YF.isChildOf(r,a))&&XF(o[i],t,n)}},eB[t]=n,YF.bind(r,t,n)}else n=function(n){XF(e,t,n)},YF.bind(r,t,n),e.delegates[t]=n}},ZF=He(He({},KF),{bindPendingEventDelegates:function(){var e=this;pn.each(e._pendingNativeEvents,(function(t){JF(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?JF(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(GF(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(xe(e.delegates,(function(t,n){e.dom.unbind(GF(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),eV=["design","readonly"],tV=function(e,t,n,r){var o=n[t.get()],i=n[r];try{i.activate()}catch(vU){return void console.error("problem while activating editor mode "+r+":",vU)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&LF(e,i.editorReadOnly),t.set(r),$g(e,r)},nV=function(e,t,n,r){if(r!==n.get()){if(!De(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?tV(e,n,t,r):e.on("init",(function(){return tV(e,n,t,r)}))}},rV=function(e,t,n){var r;if(Q(eV,t))throw new Error("Cannot override default mode "+t);return He(He({},e),(r={},r[t]=He(He({},n),{deactivate:function(){try{n.deactivate()}catch(vU){console.error("problem while deactivating editor mode "+t+":",vU)}}}),r))},oV=function(e){var t=Qc("design"),n=Qc({design:{activate:T,deactivate:T,editorReadOnly:!1},readonly:{activate:T,deactivate:T,editorReadOnly:!0}});return FF(e),zF(e),{isReadOnly:function(){return MF(e)},set:function(r){return nV(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(rV(n.get(),e,t))}}},iV=pn.each,aV=pn.explode,uV={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},sV=pn.makeMap("alt,ctrl,shift,meta,access"),cV=function(e){var t,n={};iV(aV(e.toLowerCase(),"+"),(function(e){e in sV?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=uV[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in sV)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},lV=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(iV(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var o=this,i=o.normalizeCommandFunc(n);return iV(aV(pn.trim(e)),(function(e){var n=o.createShortcut(e,t,i,r);o.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:pn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var o=pn.map(aV(e,">"),cV);return o[o.length-1]=pn.extend(o[o.length-1],{func:n,scope:r||this.editor}),pn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),fV=function(){var e={},t={},n={},r={},o={},i={},a={},u=function(e,t){return function(n,r){return e[n.toLowerCase()]=He(He({},r),{type:t})}},s=function(e,t){return r[e.toLowerCase()]=t};return{addButton:u(e,"button"),addGroupToolbarButton:u(e,"grouptoolbarbutton"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:s,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},dV=function(){var e=fV();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},hV=Uc.DOM,pV=pn.extend,mV=pn.each,gV=pn.resolve,vV=en.ie,yV=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,pV(this,ZF),this.settings=cO(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Gc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Uc.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ll.languageLoad=this.settings.language_load,ll.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new Vb(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new lV(this),this.editorCommands=new TF(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:dV(),styleSheetLoader:void 0,show:T,hide:T,enable:T,disable:T,isDisabled:I};var o=this,i=oV(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Bc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){tF(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return db(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this,i=o.settings[e];if(i)return o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?gV(r):0,i=gV(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,t)},e.prototype.translate=function(e){return cl.translate(e)},e.prototype.getParam=function(e,t,n){return hO(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=Q(Ch(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==RO.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(hV.show(e.getContainer()),hV.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(vV&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(hV.hide(e.getContainer()),hV.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var o=Jr(r)?r.value:r.innerHTML;return t=n.setContent(o,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=o,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Jr(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=hV.getParent(r.id,"form"))&&mV(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return CA(this,e,t)},e.prototype.getContent=function(e){return xA(this,e)},e.prototype.insertContent=function(e,t){t&&(e=pV({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?CA(this,this.startContent,{format:"raw"}):CA(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=hV.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=hV.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,o.remove_script_host),e)},e.prototype.addVisual=function(e){nF(this,e)},e.prototype.remove=function(){OA(this)},e.prototype.destroy=function(e){RA(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),bV=Uc.DOM,wV=pn.explode,_V=pn.each,xV=pn.extend,CV=0,SV=!1,EV=[],kV=[],TV=function(e){return"length"!==e},AV=function(e){var t=e.type;_V(BV.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},OV=function(e){e!==SV&&(e?Bc(window).on("resize scroll",AV):Bc(window).off("resize scroll",AV),SV=e)},RV=function(e){var t=kV;delete EV[e.id];for(var n=0;n<EV.length;n++)if(EV[n]===e){EV.splice(n,1);break}return kV=ne(kV,(function(t){return e!==t})),BV.activeEditor===e&&(BV.activeEditor=kV.length>0?kV[0]:null),BV.focusedEditor===e&&(BV.focusedEditor=null),t.length!==kV.length},NV=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(RV(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},DV="CSS1Compat"!==document.compatMode,BV=He(He({},KF),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Bc,majorVersion:"5",minorVersion:"10.5",releaseDate:"2022-05-25",editors:EV,i18n:cl,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=Vb.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,r=o.suffix;else{for(var i=document.getElementsByTagName("script"),a=0;a<i.length;a++){var u=i[a].src||"";if(""!==u){var s=u.substring(u.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(u)){-1!==s.indexOf(".min")&&(r=".min"),e=u.substring(0,u.lastIndexOf("/"));break}}}if(!e&&document.currentScript){u=document.currentScript.src;-1!==u.indexOf(".min")&&(r=".min"),e=u.substring(0,u.lastIndexOf("/"))}}n.baseURL=new Vb(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new Vb(n.baseURL),n.suffix=r,nb(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&xe(r,(function(e,t){ll.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=pn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),o=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},i=function(e){var t=e.id;return t||(t=Ne(e,"name").filter((function(e){return!bV.get(e)})).getOrThunk(bV.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},u=function(e,t){return t.constructor===RegExp?t.test(e.className):bV.hasClass(e,t)},s=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return zO("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(DV)return zO("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return _V(e.types,(function(e){t=t.concat(bV.select(e.selector))})),t;if(e.selector)return bV.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&_V(wV(n),(function(e){var n=bV.get(e);n?t.push(n):_V(document.forms,(function(n){_V(n.elements,(function(n){n.name===e&&(e="mce_editor_"+CV++,bV.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":_V(bV.select("textarea"),(function(n){e.editor_deselector&&u(n,e.editor_deselector)||e.editor_selector&&!u(n,e.editor_selector)||t.push(n)}));break}return t},c=function(e){t=e},l=function(){var t,r=0,u=[],f=function(e,o,i){var a=new yV(e,o,n);u.push(a),a.on("init",(function(){++r===t.length&&c(u)})),a.targetElm=a.targetElm||i,a.render()};bV.unbind(window,"ready",l),a("onpageload"),t=Bc.unique(s(e)),e.types?_V(e.types,(function(n){pn.each(t,(function(t){return!bV.is(t,n.selector)||(f(i(t),xV({},e,n),t),!1)}))})):(pn.each(t,(function(e){NV(n.get(e.id))})),t=pn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?c([]):_V(t,(function(t){o(e,t)?zO("Could not initialize inline editor on invalid inline target element",t):f(i(t),e,t)})))};return n.settings=e,bV.bind(window,"ready",l),new Oi((function(e){t?e(t):c=function(t){e(t)}}))},get:function(e){return 0===arguments.length?kV.slice(0):v(e)?ae(kV,(function(t){return t.id===e})).getOr(null):k(e)&&kV[e]?kV[e]:null},add:function(e){var t=this,n=EV[e.id];return n===e||(null===t.get(e.id)&&(TV(e.id)&&(EV[e.id]=e),EV.push(e),kV.push(e)),OV(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),tB||(tB=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",tB))),e},createEditor:function(e,t){return this.add(new yV(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,w(r.get(n.id))?null:(RV(n)&&r.fire("RemoveEditor",{editor:n}),0===kV.length&&window.removeEventListener("beforeunload",tB),n.remove(),OV(kV.length>0),n);_V(bV.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=kV.length-1;t>=0;t--)r.remove(kV[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new yV(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){_V(kV,(function(e){e.save()}))},addI18n:function(e,t){cl.add(e,t)},translate:function(e){return cl.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new Vb(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new Vb(this.baseURL)}});BV.setup();var PV,jV,LV=Math.min,MV=Math.max,IV=Math.round,FV=function(e,t,n){var r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,c=(n||"").split("");return"b"===c[0]&&(o+=s),"r"===c[1]&&(r+=u),"c"===c[0]&&(o+=IV(s/2)),"c"===c[1]&&(r+=IV(u/2)),"b"===c[3]&&(o-=a),"r"===c[4]&&(r-=i),"c"===c[3]&&(o-=IV(a/2)),"c"===c[4]&&(r-=IV(i/2)),HV(r,o,i,a)},VV=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=FV(e,t,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},UV=function(e,t,n){return HV(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},qV=function(e,t){var n=MV(e.x,t.x),r=MV(e.y,t.y),o=LV(e.x+e.w,t.x+t.w),i=LV(e.y+e.h,t.y+t.h);return o-n<0||i-r<0?null:HV(n,r,o-n,i-r)},zV=function(e,t,n){var r=e.x,o=e.y,i=e.x+e.w,a=e.y+e.h,u=t.x+t.w,s=t.y+t.h,c=MV(0,t.x-r),l=MV(0,t.y-o),f=MV(0,i-u),d=MV(0,a-s);return r+=c,o+=l,n&&(i+=c,a+=l,r-=f,o-=d),i-=f,a-=d,HV(r,o,i-r,a-o)},HV=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},$V=function(e){return HV(e.left,e.top,e.width,e.height)},WV={inflate:UV,relativePosition:FV,findBestRelativePosition:VV,intersect:qV,clamp:zV,create:HV,fromClientRect:$V},KV=function(e,t,n){void 0===n&&(n=1e3);var r=!1,o=null,i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}},a=i(e),u=i(t),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==o||(o=setTimeout((function(){return u.apply(null,e)}),n))};return{start:s,resolve:a,reject:u}},YV=function(){var e={},t={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Oi((function(e,a){var u=KV(e,a);t[n]=u.resolve,Gc.ScriptLoader.loadScript(r,(function(){return u.start(i)}),(function(){return u.reject(o)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Oi.resolve(r)};return{load:n,add:r}},GV=YV(),QV=pn.each,XV=pn.extend,JV=function(){};JV.extend=PV=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!jV&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},o=function(){return this},i=function(e,t){return function(){var r=this,o=r._super;r._super=n[e];var i=t.apply(r,arguments);return r._super=o,i}};jV=!0;var a=new t;return jV=!1,e.Mixins&&(QV(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&QV(e.Methods.split(","),(function(t){e[t]=o})),e.Properties&&QV(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&QV(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=XV({},n.Defaults,e.Defaults)),xe(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=i(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=PV,r};var ZV,eU=Math.min,tU=Math.max,nU=Math.round,rU=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i;r=0,o=0,i=0,e/=255,t/=255,n/=255;var a=eU(e,eU(t,n)),u=tU(e,tU(t,n));if(a===u)return i=a,{h:0,s:0,v:100*i};var s=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-s/(u-a)),o=(u-a)/u,i=u,{h:nU(r),s:nU(100*o),v:nU(100*i)}},a=function(e,t,i){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=tU(0,eU(t,1)),i=tU(0,eU(i,1)),0!==t){var a=e/60,u=i*t,s=u*(1-Math.abs(a%2-1)),c=i-u;switch(Math.floor(a)){case 0:n=u,r=s,o=0;break;case 1:n=s,r=u,o=0;break;case 2:n=0,r=u,o=s;break;case 3:n=0,r=s,o=u;break;case 4:n=s,r=0,o=u;break;case 5:n=u,r=0,o=s;break;default:n=r=o=0}n=nU(255*(n+c)),r=nU(255*(r+c)),o=nU(255*(o+c))}else n=r=o=nU(255*i)},u=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},s=function(){return{r:n,g:r,b:o}},c=function(){return i(n,r,o)},l=function(e){var i;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,t};return e&&l(e),t.toRgb=s,t.toHsv=c,t.toHex=u,t.parse=l,t},oU=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},iU={serialize:oU,parse:function(e){try{return JSON.parse(e)}catch(t){}}},aU={callbacks:{},count:0,send:function(e){var t=this,n=Uc.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},uU=He(He({},KF),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Li.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",uU.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&pn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=uU.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Li.setTimeout(r,10)}}),sU=pn.extend,cU=function(){function e(e){this.settings=sU({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=sU(this.settings,e);r.success=function(e,o){e=iU.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=iU.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",uU.send(r)},e}(),lU=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var fU="__storage_test__";ZV=window.localStorage,ZV.setItem(fU,fU),ZV.removeItem(fU)}catch(vU){ZV=lU()}var dU=ZV,hU={geom:{Rect:WV},util:{Promise:Oi,Delay:Li,Tools:pn,VK:tv,URI:Vb,Class:JV,EventDispatcher:$F,Observable:KF,I18n:cl,XHR:uU,JSON:iU,JSONRequest:cU,JSONP:aU,LocalStorage:dU,Color:rU,ImageUploader:rR},dom:{EventUtils:rs,Sizzle:Us,DomQuery:Bc,TreeWalker:Vi,TextSeeker:Gl,DOMUtils:Uc,ScriptLoader:Gc,RangeUtils:Sv,Serializer:wA,StyleSheetLoader:Mi,ControlSelection:rv,BookmarkManager:Ig,Selection:OT,Event:rs.Event},html:{Styles:zu,Entities:Au,Node:Ob,Schema:Uu,SaxParser:Kb,DomParser:uA,Writer:ow,Serializer:iw},Env:en,AddOnManager:ll,Annotator:Mg,Formatter:mR,UndoManager:bR,EditorCommands:TF,WindowManager:BO,NotificationManager:OO,EditorObservable:ZF,Shortcuts:lV,Editor:yV,FocusManager:qy,EditorManager:BV,DOM:Uc.DOM,ScriptLoader:Gc.ScriptLoader,PluginManager:RO,ThemeManager:NO,IconManager:mO,Resource:GV,trim:pn.trim,isArray:pn.isArray,is:pn.is,toArray:pn.toArray,makeMap:pn.makeMap,each:pn.each,map:pn.map,grep:pn.grep,inArray:pn.inArray,extend:pn.extend,create:pn.create,walk:pn.walk,createNS:pn.createNS,resolve:pn.resolve,explode:pn.explode,_addCacheSuffix:pn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},pU=pn.extend(BV,hU),mU=function(t){try{e.exports=t}catch(n){}},gU=function(e){window.tinymce=e,window.tinyMCE=e};gU(pU),mU(pU)})()}).call(this,n("c8ba"))},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},ed8e:function(e,t,n){},ed9a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"menu-management-container"},[t("vue-tinymce",{attrs:{setting:e.setting},model:{value:e.content1,callback:function(t){e.content1=t},expression:"content1"}})],1)},o=[],i=n("2962"),a={name:"TinyMce",props:{content:{type:String,default:""},tinyHeight:{type:Number,default:300}},data(){return{content1:"",setting:{branding:!1,statusbar:!1,elementpath:!1,paste_data_images:!0,menubar:!0,language_url:"/tinymce/langs/zh_CN.js",toolbar:"undo redo | fullscreen | formatselect alignleft aligncenter alignright alignjustify | link unlink| numlist bullist | image table | fontselect fontsizeselect forecolor backcolor | bold italic underline strikethrough charmap | indent outdent | superscript subscript | removeformat | pagebreak | print preview | code template |insertdatetime|",toolbar_drawer:"sliding",quickbars_selection_toolbar:"removeformat | bold italic underline strikethrough | fontsizeselect forecolor backcolor",language:"zh_CN",plugins:"advlist autolink link image table lists media charmap print preview code pagebreak insertdatetime template paste",height:this.tinyHeight,font_formats:"宋体=宋体;黑体=黑体;仿宋=仿宋;微软雅黑=微软雅黑;楷体-GB2312=楷体-GB2312;仿宋_GB2312=仿宋_GB2312;隶书=隶书;",images_upload_handler:(e,t,n)=>{if(e.blob().size/1024/1024>2)n("上传失败,图片大小请控制在 2M 以内");else{let n=new FormData;n.append("file",e.blob()),n.append("sourceTable","harmonize_knowledge_article"),n.append("file_type","img"),n.append("type","course_thumb"),console.log(n,"params"),Object(i["uploadImg"])(n).then(e=>{console.log(e,"lllll");const n=e.data.url;t(n)})}}}}},watch:{content1(){this.$emit("childByValue",this.content1)},content(){console.log(this.content,"this.content----------------------5"),this.content?this.content1=this.content:this.content1=""}},created(){console.log(this.content,"pppppp"),this.content?this.content1=this.content:this.content1=""},methods:{setup(e){console.log(e)},save(){console.log("ppppp"),this.$emit("childByValue",this.content)}}},u=a,s=(n("a682"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"0d382222",null);t["default"]=c.exports},ef9b:function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},efdf:function(e,t,n){},f0d6:function(e,t,n){"use strict";n("4b15")},f121:function(e,t,n){const r=n("6fe3"),o=n("d4a5"),i=n("448d"),a=n("197e");e.exports={...r,...o,...i,...a}},f2cb:function(e,t,n){},f312:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-layout-column",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[t("vab-column-bar"),t("div",{staticClass:"vab-main",class:{["vab-main-"+e.theme.columnStyle]:!0,"is-collapse-main":e.collapse}},[t("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[t("vab-nav"),t("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}]})],1),t("vab-app-main")],1)],1)},o=[],i=n("2f62"),a={name:"VabLayoutColumn",props:{collapse:{type:Boolean,default(){return!1}},fixedHeader:{type:Boolean,default(){return!0}},showTabs:{type:Boolean,default(){return!0}}},computed:{...Object(i["c"])({theme:"settings/theme"})}},u=a,s=(n("f0d6"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"96ab005e",null);t["default"]=c.exports},f6b4:function(e,t,n){"use strict";var r=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f8ab:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n("f121");function o(e){let t=[];return e&&t.push(e),r["title"]&&t.push(r["title"]),r["titleReverse"]&&(t=t.reverse()),t.join(r["titleSeparator"])}},f9eb:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("el-scrollbar",{staticClass:"vab-column-bar-container",class:{"is-collapse":e.collapse,["vab-column-bar-container-"+e.theme.columnStyle]:!0}},[t("vab-logo"),t("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":e.handleTabClick},model:{value:e.extra.first,callback:function(t){e.$set(e.extra,"first",t)},expression:"extra.first"}},e._l(e.handleRoutes,(function(n){return t("el-tab-pane",{key:n.name,attrs:{name:n.name}},[t("template",{slot:"label"},[t("div",{staticClass:"vab-column-grid",class:{["vab-column-grid-"+e.theme.columnStyle]:!0},attrs:{title:n.meta.title}},[t("div",[n.meta.icon?t("vab-icon",{attrs:{icon:n.meta.icon,"is-custom-svg":n.meta.isCustomSvg}}):e._e(),t("span",[e._v(" "+e._s(n.meta.title)+" ")])],1)])])],2)})),1),t("el-menu",{attrs:{"background-color":e.variables["column-second-menu-background"],"default-active":e.activeMenu,"default-openeds":e.defaultOpeneds,mode:"vertical","unique-opened":e.uniqueOpened}},[t("el-divider",[e._v(" "+e._s(e.handleGroupTitle)+" ")]),e._l(e.handlePartialRoutes,(function(n){return[n.meta&&!n.meta.hidden?t("vab-menu",{key:n.fullPath,attrs:{item:n}}):e._e()]}))],2)],1)},o=[],i=n("73e1"),a=n.n(i),u=n("2f62"),s=n("f121"),c=n("9f2e"),l={name:"VabColumnBar",data(){return{activeMenu:"",groupTitle:"",defaultOpeneds:s["defaultOpeneds"],uniqueOpened:s["uniqueOpened"],variables:a.a}},computed:{...Object(u["c"])({collapse:"settings/collapse",routes:"routes/routes",theme:"settings/theme",extra:"settings/extra"}),handleRoutes(){return this.routes.filter(e=>e.meta&&!0!==e.meta.hidden)},handleActiveMenu(){return this.routes.find(e=>e.name===this.extra.first)},handlePartialRoutes(){const e=this.handleActiveMenu;return e?e.children:[]},handleGroupTitle(){const e=this.handleActiveMenu;return e?e.meta.title:""}},watch:{$route:{handler(e){this.activeMenu=Object(c["handleActivePath"])(e);const t=e.matched[0].name;this.extra.first!==t&&(this.extra.first=t,this.handleTabClick(!0))},immediate:!0}},methods:{handleTabClick(e){!0!==e&&s["openFirstMenu"]&&(this.$router.push(this.handleActiveMenu),this.$store.dispatch("settings/openSideBar"))}}},f=l,d=(n("995e"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"0faaf8b0",null);t["default"]=h.exports},fa02:function(e,t,n){},fb1a:function(e,t,n){"use strict";n("618b")},fd31:function(e,t,n){},fe19:function(e,t,n){var r={"./green.scss":"560f","./ocean.scss":"5df5","./white.scss":"64fa"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="fe19"}});