@ctqeditor/editor-for-vue 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -0
- package/dist/components/Editor.vue.d.ts +9 -0
- package/dist/components/Toolbar.vue.d.ts +5 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.esm.js +163 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +163 -0
- package/dist/index.js.map +1 -0
- package/package.json +89 -0
@@ -0,0 +1,163 @@
|
|
1
|
+
import e from"vue";
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n=function(e){try{return!!e()}catch(e){return!0}},r=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i),u=r?a:function(e){return function(){return i.apply(e,arguments)}},s=u({}.toString),c=u("".slice),l=function(e){return c(s(e),8,-1)},f=Object,d=u("".split),p=n((function(){return!f("z").propertyIsEnumerable(0)}))?function(e){return"String"===l(e)?d(e,""):f(e)}:f,h=function(e){return null==e},v=TypeError,g=function(e){if(h(e))throw new v("Can't call method on "+e);return e},y=function(e){return p(g(e))},m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e){var t={exports:{}};return e(t,t.exports),t.exports}var E,S,C=function(e){return e&&e.Math===Math&&e},D=C("object"==typeof globalThis&&globalThis)||C("object"==typeof window&&window)||C("object"==typeof self&&self)||C("object"==typeof m&&m)||C("object"==typeof m&&m)||function(){return this}()||Function("return this")(),x=Object.defineProperty,O=function(e,t){try{x(D,e,{value:t,configurable:!0,writable:!0})}catch(n){D[e]=t}return t},A=w((function(e){var t="__core-js_shared__",n=e.exports=D[t]||O(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),k=function(e,t){return A[e]||(A[e]=t||{})},B=Object,F=function(e){return B(g(e))},T=u({}.hasOwnProperty),P=Object.hasOwn||function(e,t){return T(F(e),t)},_=0,j=Math.random(),N=u(1..toString),I=function(e){return"Symbol("+(void 0===e?"":e)+")_"+N(++_+j,36)},R=D.navigator,L=R&&R.userAgent,M=L?String(L):"",z=D.process,$=D.Deno,H=z&&z.versions||$&&$.version,U=H&&H.v8;U&&(S=(E=U.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!S&&M&&(!(E=M.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=M.match(/Chrome\/(\d+)/))&&(S=+E[1]);var V,W=S,G=D.String,q=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!G(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),K=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=D.Symbol,X=k("wks"),Z=K?Y.for||Y:Y&&Y.withoutSetter||I,J=function(e){return P(X,e)||(X[e]=q&&P(Y,e)?Y[e]:Z("Symbol."+e)),X[e]},Q="object"==typeof document&&document.all,ee=void 0===Q&&void 0!==Q?function(e){return"function"==typeof e||e===Q}:function(e){return"function"==typeof e},te=function(e){return"object"==typeof e?null!==e:ee(e)},ne=String,re=TypeError,oe=function(e){if(te(e))return e;throw new re(ne(e)+" is not an object")},ie=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ae=ie&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ue=D.document,se=te(ue)&&te(ue.createElement),ce=function(e){return se?ue.createElement(e):{}},le=!ie&&!n((function(){return 7!==Object.defineProperty(ce("div"),"a",{get:function(){return 7}}).a})),fe=Function.prototype.call,de=r?fe.bind(fe):function(){return fe.apply(fe,arguments)},pe=function(e,t){return arguments.length<2?(n=D[e],ee(n)?n:void 0):D[e]&&D[e][t];var n},he=u({}.isPrototypeOf),ve=Object,ge=K?function(e){return"symbol"==typeof e}:function(e){var t=pe("Symbol");return ee(t)&&he(t.prototype,ve(e))},ye=String,me=function(e){try{return ye(e)}catch(e){return"Object"}},be=TypeError,we=function(e){if(ee(e))return e;throw new be(me(e)+" is not a function")},Ee=function(e,t){var n=e[t];return h(n)?void 0:we(n)},Se=TypeError,Ce=TypeError,De=J("toPrimitive"),xe=function(e){var t=function(e,t){if(!te(e)||ge(e))return e;var n,r=Ee(e,De);if(r){if(void 0===t&&(t="default"),n=de(r,e,t),!te(n)||ge(n))return n;throw new Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ee(n=e.toString)&&!te(r=de(n,e)))return r;if(ee(n=e.valueOf)&&!te(r=de(n,e)))return r;if("string"!==t&&ee(n=e.toString)&&!te(r=de(n,e)))return r;throw new Se("Can't convert object to primitive value")}(e,t)}(e,"string");return ge(t)?t:t+""},Oe=TypeError,Ae=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Be="enumerable",Fe="configurable",Te="writable",Pe=ie?ae?function(e,t,n){if(oe(e),t=xe(t),oe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Te in n&&!n[Te]){var r=ke(e,t);r&&r[Te]&&(e[t]=n.value,n={configurable:Fe in n?n[Fe]:r[Fe],enumerable:Be in n?n[Be]:r[Be],writable:!1})}return Ae(e,t,n)}:Ae:function(e,t,n){if(oe(e),t=xe(t),oe(n),le)try{return Ae(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Oe("Accessors not supported");return"value"in n&&(e[t]=n.value),e},_e={f:Pe},je=Math.ceil,Ne=Math.floor,Ie=Math.trunc||function(e){var t=+e;return(t>0?Ne:je)(t)},Re=function(e){var t=+e;return t!=t||0===t?0:Ie(t)},Le=Math.max,Me=Math.min,ze=Math.min,$e=function(e){var t=Re(e);return t>0?ze(t,9007199254740991):0},He=function(e){return $e(e.length)},Ue=function(e){return function(t,n,r){var o=y(t),i=He(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=Re(e);return n<0?Le(n+t,0):Me(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Ve={includes:Ue(!0),indexOf:Ue(!1)},We={},Ge=Ve.indexOf,qe=u([].push),Ke=function(e,t){var n,r=y(e),o=0,i=[];for(n in r)!P(We,n)&&P(r,n)&&qe(i,n);for(;t.length>o;)P(r,n=t[o++])&&(~Ge(i,n)||qe(i,n));return i},Ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe=Object.keys||function(e){return Ke(e,Ye)},Ze=ie&&!ae?Object.defineProperties:function(e,t){oe(e);for(var n,r=y(t),o=Xe(t),i=o.length,a=0;i>a;)_e.f(e,n=o[a++],r[n]);return e},Je={f:Ze},Qe=pe("document","documentElement"),et=k("keys"),tt=function(e){return et[e]||(et[e]=I(e))},nt="prototype",rt="script",ot=tt("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"</"+rt+">"},ut=function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t},st=function(){try{V=new ActiveXObject("htmlfile")}catch(e){}var e,t;st="undefined"!=typeof document?document.domain&&V?ut(V):("javascript:",(t=ce("iframe")).style.display="none",Qe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F):ut(V);for(var n=Ye.length;n--;)delete st[nt][Ye[n]];return st()};We[ot]=!0;var ct=Object.create||function(e,t){var n;return null!==e?(it[nt]=oe(e),n=new it,it[nt]=null,n[ot]=e):n=st(),void 0===t?n:Je.f(n,t)},lt=_e.f,ft=J("unscopables"),dt=Array.prototype;void 0===dt[ft]&<(dt,ft,{configurable:!0,value:ct(null)});var pt,ht,vt,gt=function(e){dt[ft][e]=!0},yt={},mt=D.WeakMap,bt=ee(mt)&&/native code/.test(String(mt)),wt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Et=ie?function(e,t,n){return _e.f(e,t,wt(1,n))}:function(e,t,n){return e[t]=n,e},St="Object already initialized",Ct=D.TypeError,Dt=D.WeakMap;if(bt||A.state){var xt=A.state||(A.state=new Dt);xt.get=xt.get,xt.has=xt.has,xt.set=xt.set,pt=function(e,t){if(xt.has(e))throw new Ct(St);return t.facade=e,xt.set(e,t),t},ht=function(e){return xt.get(e)||{}},vt=function(e){return xt.has(e)}}else{var Ot=tt("state");We[Ot]=!0,pt=function(e,t){if(P(e,Ot))throw new Ct(St);return t.facade=e,Et(e,Ot,t),t},ht=function(e){return P(e,Ot)?e[Ot]:{}},vt=function(e){return P(e,Ot)}}var At={set:pt,get:ht,has:vt,enforce:function(e){return vt(e)?ht(e):pt(e,{})},getterFor:function(e){return function(t){var n;if(!te(t)||(n=ht(t)).type!==e)throw new Ct("Incompatible receiver, "+e+" required");return n}}},kt={}.propertyIsEnumerable,Bt=Object.getOwnPropertyDescriptor,Ft=Bt&&!kt.call({1:2},1)?function(e){var t=Bt(this,e);return!!t&&t.enumerable}:kt,Tt={f:Ft},Pt=Object.getOwnPropertyDescriptor,_t=ie?Pt:function(e,t){if(e=y(e),t=xe(t),le)try{return Pt(e,t)}catch(e){}if(P(e,t))return wt(!de(Tt.f,e,t),e[t])},jt={f:_t},Nt=Function.prototype,It=ie&&Object.getOwnPropertyDescriptor,Rt=P(Nt,"name"),Lt={EXISTS:Rt,PROPER:Rt&&"something"===function(){}.name,CONFIGURABLE:Rt&&(!ie||ie&&It(Nt,"name").configurable)},Mt=u(Function.toString);ee(A.inspectSource)||(A.inspectSource=function(e){return Mt(e)});var zt,$t,Ht,Ut=A.inspectSource,Vt=w((function(e){var t=Lt.CONFIGURABLE,r=At.enforce,o=At.get,i=String,a=Object.defineProperty,s=u("".slice),c=u("".replace),l=u([].join),f=ie&&!n((function(){return 8!==a((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=e.exports=function(e,n,o){"Symbol("===s(i(n),0,7)&&(n="["+c(i(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(n="get "+n),o&&o.setter&&(n="set "+n),(!P(e,"name")||t&&e.name!==n)&&(ie?a(e,"name",{value:n,configurable:!0}):e.name=n),f&&o&&P(o,"arity")&&e.length!==o.arity&&a(e,"length",{value:o.arity});try{o&&P(o,"constructor")&&o.constructor?ie&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var u=r(e);return P(u,"source")||(u.source=l(d,"string"==typeof n?n:"")),e};Function.prototype.toString=p((function(){return ee(this)&&o(this).source||Ut(this)}),"toString")})),Wt=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ee(n)&&Vt(n,i,r),r.global)o?e[t]=n:O(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:_e.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Gt=Ye.concat("length","prototype"),qt=Object.getOwnPropertyNames||function(e){return Ke(e,Gt)},Kt={f:qt},Yt={f:Object.getOwnPropertySymbols},Xt=u([].concat),Zt=pe("Reflect","ownKeys")||function(e){var t=Kt.f(oe(e)),n=Yt.f;return n?Xt(t,n(e)):t},Jt=function(e,t,n){for(var r=Zt(t),o=_e.f,i=jt.f,a=0;a<r.length;a++){var u=r[a];P(e,u)||n&&P(n,u)||o(e,u,i(t,u))}},Qt=/#|\.prototype\./,en=function(e,t){var r=nn[tn(e)];return r===on||r!==rn&&(ee(t)?n(t):!!t)},tn=en.normalize=function(e){return String(e).replace(Qt,".").toLowerCase()},nn=en.data={},rn=en.NATIVE="N",on=en.POLYFILL="P",an=en,un=jt.f,sn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?D:c?D[u]||O(u,{}):D[u]&&D[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=un(n,r))&&a.value:n[r],!an(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jt(i,o)}(e.sham||o&&o.sham)&&Et(i,"sham",!0),Wt(n,r,i,e)}},cn=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ln=tt("IE_PROTO"),fn=Object,dn=fn.prototype,pn=cn?fn.getPrototypeOf:function(e){var t=F(e);if(P(t,ln))return t[ln];var n=t.constructor;return ee(n)&&t instanceof n?n.prototype:t instanceof fn?dn:null},hn=J("iterator"),vn=!1;[].keys&&("next"in(Ht=[].keys())?($t=pn(pn(Ht)))!==Object.prototype&&(zt=$t):vn=!0),(!te(zt)||n((function(){var e={};return zt[hn].call(e)!==e})))&&(zt={}),ee(zt[hn])||Wt(zt,hn,(function(){return this}));var gn={IteratorPrototype:zt,BUGGY_SAFARI_ITERATORS:vn},yn=_e.f,mn=J("toStringTag"),bn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!P(e,mn)&&yn(e,mn,{configurable:!0,value:t})},wn=gn.IteratorPrototype,En=function(){return this},Sn=String,Cn=TypeError,Dn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e,t,n){try{return u(we(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return g(n),function(e){if(function(e){return te(e)||null===e}(e))return e;throw new Cn("Can't set "+Sn(e)+" as a prototype")}(r),te(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),xn=Lt.PROPER,On=Lt.CONFIGURABLE,An=gn.IteratorPrototype,kn=gn.BUGGY_SAFARI_ITERATORS,Bn=J("iterator"),Fn="values",Tn="entries",Pn=function(){return this},_n=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=ct(wn,{next:wt(1,n)}),bn(e,o,!1),yt[o]=En}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!kn&&e&&e in p)return p[e];switch(e){case"keys":case Fn:case Tn:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Bn]||p["@@iterator"]||o&&p[o],v=!kn&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=pn(g.call(new e)))!==Object.prototype&&u.next&&(pn(u)!==An&&(Dn?Dn(u,An):ee(u[Bn])||Wt(u,Bn,Pn)),bn(u,f,!0)),xn&&o===Fn&&h&&h.name!==Fn&&(On?Et(p,"name",Fn):(d=!0,v=function(){return de(h,this)})),o)if(s={values:l(Fn),keys:i?v:l("keys"),entries:l(Tn)},a)for(c in s)(kn||d||!(c in p))&&Wt(p,c,s[c]);else sn({target:t,proto:!0,forced:kn||d},s);return p[Bn]!==v&&Wt(p,Bn,v,{name:o}),yt[t]=v,s},jn=function(e,t){return{value:e,done:t}},Nn=_e.f,In="Array Iterator",Rn=At.set,Ln=At.getterFor(In),Mn=_n(Array,"Array",(function(e,t){Rn(this,{type:In,target:y(e),index:0,kind:t})}),(function(){var e=Ln(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,jn(void 0,!0);switch(e.kind){case"keys":return jn(n,!1);case"values":return jn(t[n],!1)}return jn([n,t[n]],!1)}),"values"),zn=yt.Arguments=yt.Array;if(gt("keys"),gt("values"),gt("entries"),ie&&"values"!==zn.name)try{Nn(zn,"name",{value:"values"})}catch(n){}var $n={};$n[J("toStringTag")]="z";var Hn="[object z]"===String($n),Un=J("toStringTag"),Vn=Object,Wn="Arguments"===l(function(){return arguments}()),Gn=Hn?l:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Vn(e),Un))?n:Wn?l(t):"Object"===(r=l(t))&&ee(t.callee)?"Arguments":r},qn=Hn?{}.toString:function(){return"[object "+Gn(this)+"]"};Hn||Wt(Object.prototype,"toString",qn,{unsafe:!0});var Kn,Yn,Xn=String,Zn=function(e){if("Symbol"===Gn(e))throw new TypeError("Cannot convert a Symbol value to a string");return Xn(e)},Jn=function(){var e=oe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Qn=D.RegExp,er=n((function(){var e=Qn("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),tr=er||n((function(){return!Qn("a","y").sticky})),nr=er||n((function(){var e=Qn("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),rr={BROKEN_CARET:nr,MISSED_STICKY:tr,UNSUPPORTED_Y:er},or=D.RegExp,ir=n((function(){var e=or(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),ar=D.RegExp,ur=n((function(){var e=ar("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sr=At.get,cr=k("native-string-replace",String.prototype.replace),lr=RegExp.prototype.exec,fr=lr,dr=u("".charAt),pr=u("".indexOf),hr=u("".replace),vr=u("".slice),gr=(Yn=/b*/g,de(lr,Kn=/a/,"a"),de(lr,Yn,"a"),0!==Kn.lastIndex||0!==Yn.lastIndex),yr=rr.BROKEN_CARET,mr=void 0!==/()??/.exec("")[1];(gr||mr||yr||ir||ur)&&(fr=function(e){var t,n,r,o,i,a,u,s=this,c=sr(s),l=Zn(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=de(fr,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=yr&&s.sticky,h=de(Jn,s),v=s.source,g=0,y=l;if(p&&(h=hr(h,"y",""),-1===pr(h,"g")&&(h+="g"),y=vr(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==dr(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mr&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gr&&(r=s.lastIndex),o=de(lr,p?n:s,y),p?o?(o.input=vr(o.input,g),o[0]=vr(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gr&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mr&&o&&o.length>1&&de(cr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ct(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var br=fr;sn({target:"RegExp",proto:!0,forced:/./.exec!==br},{exec:br});var wr=u("".charAt),Er=u("".charCodeAt),Sr=u("".slice),Cr=function(e){return function(t,n){var r,o,i=Zn(g(t)),a=Re(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Er(i,a))<55296||r>56319||a+1===u||(o=Er(i,a+1))<56320||o>57343?e?wr(i,a):r:e?Sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Dr={codeAt:Cr(!1),charAt:Cr(!0)},xr=Dr.charAt,Or="String Iterator",Ar=At.set,kr=At.getterFor(Or);_n(String,"String",(function(e){Ar(this,{type:Or,string:Zn(e),index:0})}),(function(){var e,t=kr(this),n=t.string,r=t.index;return r>=n.length?jn(void 0,!0):(e=xr(n,r),t.index+=e.length,jn(e,!1))}));J("species");var Br=RegExp.prototype,Fr=Dr.charAt,Tr=function(e,t,n){return t+(n?Fr(e,t).length:1)},Pr=TypeError,_r=function(e,t){var n=e.exec;if(ee(n)){var r=de(n,e,t);return null!==r&&oe(r),r}if("RegExp"===l(e))return de(br,e,t);throw new Pr("RegExp#exec called on incompatible receiver")};!function(e,t,r,o){var i=J(e),a=!n((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),u=a&&!n((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](""),!e}));if(!a||!u){var s=/./[i],c=function(e,t,n){return[function(t){var n=g(this),r=h(t)?void 0:Ee(t,e);return r?de(r,t,n):new RegExp(t)[e](Zn(n))},function(e){var r=oe(this),o=Zn(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return _r(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=_r(r,o));){var l=Zn(u[0]);s[c]=l,""===l&&(r.lastIndex=Tr(o,$e(r.lastIndex),a)),c++}return 0===c?null:s}]}(i,""[e],(function(e,t,n,r,o){var i=t.exec;return i===br||i===Br.exec?a&&!o?{done:!0,value:de(s,t,n,r)}:{done:!0,value:de(e,n,t,r)}:{done:!1}}));Wt(String.prototype,e,c[0]),Wt(Br,i,c[1])}}("match");var jr=Error,Nr=u("".replace),Ir=String(new jr("zxcasd").stack),Rr=/\n\s*at [^:]*:[^\n]*/,Lr=Rr.test(Ir),Mr=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",wt(1,7)),7!==e.stack)})),zr=Error.captureStackTrace,$r=function(e,t,n,r){Mr&&(zr?zr(e,t):Et(e,"stack",function(e,t){if(Lr&&"string"==typeof e&&!jr.prepareStackTrace)for(;t--;)e=Nr(e,Rr,"");return e}(n,r)))},Hr=function(e){if("Function"===l(e))return u(e)},Ur=Hr(Hr.bind),Vr=function(e,t){return we(e),void 0===t?e:r?Ur(e,t):function(){return e.apply(t,arguments)}},Wr=J("iterator"),Gr=Array.prototype,qr=J("iterator"),Kr=function(e){if(!h(e))return Ee(e,qr)||Ee(e,"@@iterator")||yt[Gn(e)]},Yr=TypeError,Xr=function(e,t,n){var r,o;oe(e);try{if(!(r=Ee(e,"return"))){if("throw"===t)throw n;return n}r=de(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return oe(r),n},Zr=TypeError,Jr=function(e,t){this.stopped=e,this.result=t},Qr=Jr.prototype,eo=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Vr(t,l),g=function(e){return r&&Xr(r,"normal",e),new Jr(!0,e)},y=function(e){return f?(oe(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=Kr(e)))throw new Zr(me(e)+" is not iterable");if(function(e){return void 0!==e&&(yt.Array===e||Gr[Wr]===e)}(o)){for(i=0,a=He(e);a>i;i++)if((u=y(e[i]))&&he(Qr,u))return u;return new Jr(!1)}r=function(e,t){var n=arguments.length<2?Kr(e):t;if(we(n))return oe(de(n,e));throw new Yr(me(e)+" is not iterable")}(e,o)}for(s=d?e.next:r.next;!(c=de(s,r)).done;){try{u=y(c.value)}catch(e){Xr(r,"throw",e)}if("object"==typeof u&&u&&he(Qr,u))return u}return new Jr(!1)},to=J("toStringTag"),no=Error,ro=[].push,oo=function(e,t){var n,r=he(io,this);Dn?n=Dn(new no,r?pn(this):io):(n=r?this:ct(io),Et(n,to,"Error")),void 0!==t&&Et(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Zn(e)}(t)),$r(n,oo,n.stack,1),arguments.length>2&&function(e,t){te(t)&&"cause"in t&&Et(e,"cause",t.cause)}(n,arguments[2]);var o=[];return eo(e,ro,{that:o}),Et(n,"errors",o),n};Dn?Dn(oo,no):Jt(oo,no,{name:!0});var io=oo.prototype=ct(no.prototype,{constructor:wt(1,oo),message:wt(1,""),name:wt(1,"AggregateError")});sn({global:!0,constructor:!0,arity:2},{AggregateError:oo}),sn({global:!0,forced:D.globalThis!==D},{globalThis:D});var ao,uo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},so=ce("span").classList,co=so&&so.constructor&&so.constructor.prototype,lo=co===Object.prototype?void 0:co,fo=J("iterator"),po=Mn.values,ho=function(e,t){if(e){if(e[fo]!==po)try{Et(e,fo,po)}catch(t){e[fo]=po}if(bn(e,t,!0),uo[t])for(var n in Mn)if(e[n]!==Mn[n])try{Et(e,n,Mn[n])}catch(t){e[n]=Mn[n]}}};for(var vo in uo)ho(D[vo]&&D[vo].prototype,vo);function go(){"undefined"==typeof globalThis&&(window.globalThis=window)}function yo(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}ho(lo,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),go(),yo()):global&&(null===(ao=global.navigator)||void 0===ao?void 0:ao.userAgent.match("QQBrowser"))&&(go(),yo());var mo,bo,wo=function(e){return e&&e.Math===Math&&e},Eo=wo("object"==typeof globalThis&&globalThis)||wo("object"==typeof window&&window)||wo("object"==typeof self&&self)||wo("object"==typeof m&&m)||wo("object"==typeof m&&m)||function(){return this}()||Function("return this")(),So=function(e){try{return!!e()}catch(e){return!0}},Co=!So((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Do=Co,xo=Function.prototype,Oo=xo.apply,Ao=xo.call,ko="object"==typeof Reflect&&Reflect.apply||(Do?Ao.bind(Oo):function(){return Ao.apply(Oo,arguments)}),Bo=Function.prototype,Fo=Bo.call,To=Do&&Bo.bind.bind(Fo,Fo),Po=Do?To:function(e){return function(){return Fo.apply(e,arguments)}},_o=Po,jo=_o({}.toString),No=_o("".slice),Io=function(e){return No(jo(e),8,-1)},Ro="object"==typeof document&&document.all,Lo=void 0===Ro&&void 0!==Ro?function(e){return"function"==typeof e||e===Ro}:function(e){return"function"==typeof e},Mo=!So((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),zo=Function.prototype.call,$o=Do?zo.bind(zo):function(){return zo.apply(zo,arguments)},Ho={}.propertyIsEnumerable,Uo=Object.getOwnPropertyDescriptor,Vo=Uo&&!Ho.call({1:2},1)?function(e){var t=Uo(this,e);return!!t&&t.enumerable}:Ho,Wo={f:Vo},Go=Object,qo=_o("".split),Ko=So((function(){return!Go("z").propertyIsEnumerable(0)}))?function(e){return"String"===Io(e)?qo(e,""):Go(e)}:Go,Yo=function(e){return null==e},Xo=TypeError,Zo=Ko,Jo=function(e){if(Yo(e))throw new Xo("Can't call method on "+e);return e},Qo=Lo,ei={},ti=Eo,ni=function(e){return Qo(e)?e:void 0},ri=_o({}.isPrototypeOf),oi=ti.navigator,ii=oi&&oi.userAgent,ai=ii?String(ii):"",ui=ti.process,si=ti.Deno,ci=ui&&ui.versions||si&&si.version,li=ci&&ci.v8;li&&(bo=(mo=li.split("."))[0]>0&&mo[0]<4?1:+(mo[0]+mo[1])),!bo&&ai&&(!(mo=ai.match(/Edge\/(\d+)/))||mo[1]>=74)&&(mo=ai.match(/Chrome\/(\d+)/))&&(bo=+mo[1]);var fi=bo,di=ti.String,pi=!!Object.getOwnPropertySymbols&&!So((function(){var e=Symbol("symbol detection");return!di(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fi&&fi<41})),hi=pi,vi=hi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gi=function(e,t){return arguments.length<2?ni(ei[e])||ni(ti[e]):ei[e]&&ei[e][t]||ti[e]&&ti[e][t]},yi=ri,mi=vi,bi=Object,wi=mi?function(e){return"symbol"==typeof e}:function(e){var t=gi("Symbol");return Qo(t)&&yi(t.prototype,bi(e))},Ei=String,Si=function(e){try{return Ei(e)}catch(e){return"Object"}},Ci=TypeError,Di=function(e){if(Qo(e))return e;throw new Ci(Si(e)+" is not a function")},xi=$o,Oi=function(e){return"object"==typeof e?null!==e:Qo(e)},Ai=TypeError,ki=Object.defineProperty,Bi=w((function(e){var t="__core-js_shared__",n=e.exports=ti[t]||function(e,t){try{ki(ti,e,{value:t,configurable:!0,writable:!0})}catch(n){ti[e]=t}return t}(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),Fi=Bi,Ti=Object,Pi=function(e){return Ti(Jo(e))},_i=_o({}.hasOwnProperty),ji=Object.hasOwn||function(e,t){return _i(Pi(e),t)},Ni=0,Ii=Math.random(),Ri=_o(1..toString),Li=function(e,t){return Fi[e]||(Fi[e]=t||{})},Mi=ji,zi=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ri(++Ni+Ii,36)},$i=ti.Symbol,Hi=Li("wks"),Ui=mi?$i.for||$i:$i&&$i.withoutSetter||zi,Vi=wi,Wi=function(e){return Mi(Hi,e)||(Hi[e]=hi&&Mi($i,e)?$i[e]:Ui("Symbol."+e)),Hi[e]},Gi=TypeError,qi=Wi("toPrimitive"),Ki=function(e,t){if(!Oi(e)||Vi(e))return e;var n,r=function(e,t){var n=e[t];return Yo(n)?void 0:Di(n)}(e,qi);if(r){if(void 0===t&&(t="default"),n=xi(r,e,t),!Oi(n)||Vi(n))return n;throw new Gi("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qo(n=e.toString)&&!Oi(r=xi(n,e)))return r;if(Qo(n=e.valueOf)&&!Oi(r=xi(n,e)))return r;if("string"!==t&&Qo(n=e.toString)&&!Oi(r=xi(n,e)))return r;throw new Ai("Can't convert object to primitive value")}(e,t)},Yi=ti.document,Xi=Oi(Yi)&&Oi(Yi.createElement),Zi=Mo,Ji=function(e){return Xi?Yi.createElement(e):{}},Qi=!Zi&&!So((function(){return 7!==Object.defineProperty(Ji("div"),"a",{get:function(){return 7}}).a})),ea=Wo,ta=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},na=function(e){return Zo(Jo(e))},ra=function(e){var t=Ki(e,"string");return Vi(t)?t:t+""},oa=Qi,ia=Object.getOwnPropertyDescriptor,aa=Zi?ia:function(e,t){if(e=na(e),t=ra(t),oa)try{return ia(e,t)}catch(e){}if(Mi(e,t))return ta(!xi(ea.f,e,t),e[t])},ua={f:aa},sa=/#|\.prototype\./,ca=function(e,t){var n=fa[la(e)];return n===pa||n!==da&&(Qo(t)?So(t):!!t)},la=ca.normalize=function(e){return String(e).replace(sa,".").toLowerCase()},fa=ca.data={},da=ca.NATIVE="N",pa=ca.POLYFILL="P",ha=ca,va=function(e){if("Function"===Io(e))return _o(e)},ga=va(va.bind),ya=Zi&&So((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ma=String,ba=TypeError,wa=ya,Ea=function(e){if(Oi(e))return e;throw new ba(ma(e)+" is not an object")},Sa=TypeError,Ca=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,xa="enumerable",Oa="configurable",Aa="writable",ka=Zi?wa?function(e,t,n){if(Ea(e),t=ra(t),Ea(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Aa in n&&!n[Aa]){var r=Da(e,t);r&&r[Aa]&&(e[t]=n.value,n={configurable:Oa in n?n[Oa]:r[Oa],enumerable:xa in n?n[xa]:r[xa],writable:!1})}return Ca(e,t,n)}:Ca:function(e,t,n){if(Ea(e),t=ra(t),Ea(n),oa)try{return Ca(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Sa("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ba={f:ka},Fa=Zi?function(e,t,n){return Ba.f(e,t,ta(1,n))}:function(e,t,n){return e[t]=n,e},Ta=ko,Pa=ua,_a=ha,ja=function(e,t){return Di(e),void 0===t?e:Do?ga(e,t):function(){return e.apply(t,arguments)}},Na=Fa,Ia=Pa.f,Ra=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return Ta(e,this,arguments)};return t.prototype=e.prototype,t},La=Array.isArray||function(e){return"Array"===Io(e)},Ma=Math.ceil,za=Math.floor,$a=Math.trunc||function(e){var t=+e;return(t>0?za:Ma)(t)},Ha=$a,Ua=function(e){var t=+e;return t!=t||0===t?0:Ha(t)},Va=Math.min,Wa=TypeError,Ga={};Ga[Wi("toStringTag")]="z";var qa="[object z]"===String(Ga),Ka=Wi("toStringTag"),Ya=Object,Xa="Arguments"===Io(function(){return arguments}()),Za=qa?Io:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ya(e),Ka))?n:Xa?Io(t):"Object"===(r=Io(t))&&Qo(t.callee)?"Arguments":r},Ja=_o(Function.toString);Qo(Fi.inspectSource)||(Fi.inspectSource=function(e){return Ja(e)});var Qa=Fi.inspectSource,eu=Za,tu=Qa,nu=function(){},ru=gi("Reflect","construct"),ou=/^\s*(?:class|function)\b/,iu=_o(ou.exec),au=!ou.test(nu),uu=function(e){if(!Qo(e))return!1;try{return ru(nu,[],e),!0}catch(e){return!1}},su=function(e){if(!Qo(e))return!1;switch(eu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return au||!!iu(ou,tu(e))}catch(e){return!0}};su.sham=!0;var cu=!ru||So((function(){var e;return uu(uu.call)||!uu(Object)||!uu((function(){e=!0}))||e}))?su:uu,lu=La,fu=cu,du=Wi("species"),pu=Array,hu=Wi("species"),vu=function(e,t){var n,r,o,i,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?ti:p?ti[f]:ti[f]&&ti[f].prototype,g=d?ei:ei[f]||Na(ei,f,{})[f],y=g.prototype;for(i in t)r=!(n=_a(d?i:f+(p?".":"#")+i,e.forced))&&v&&Mi(v,i),u=g[i],r&&(s=e.dontCallGetSet?(l=Ia(v,i))&&l.value:v[i]),a=r&&s?s:t[i],(n||h||typeof u!=typeof a)&&(c=e.bind&&r?ja(a,ti):e.wrap&&r?Ra(a):h&&Qo(a)?va(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Na(c,"sham",!0),Na(g,i,c),h&&(Mi(ei,o=f+"Prototype")||Na(ei,o,{}),Na(ei[o],i,a),e.real&&y&&(n||!y[i])&&Na(y,i,a)))},gu=function(e){return function(e){var t=Ua(e);return t>0?Va(t,9007199254740991):0}(e.length)},yu=function(e){if(e>9007199254740991)throw Wa("Maximum allowed index exceeded");return e},mu=function(e,t,n){Zi?Ba.f(e,t,ta(0,n)):e[t]=n},bu=function(e,t){return new(function(e){var t;return lu(e)&&(t=e.constructor,(fu(t)&&(t===pu||lu(t.prototype))||Oi(t)&&null===(t=t[du]))&&(t=void 0)),void 0===t?pu:t}(e))(0===t?0:t)},wu=Wi("isConcatSpreadable"),Eu=fi>=51||!So((function(){var e=[];return e[wu]=!1,e.concat()[0]!==e})),Su=function(e){if(!Oi(e))return!1;var t=e[wu];return void 0!==t?!!t:lu(e)},Cu=!Eu||!function(e){return fi>=51||!So((function(){var t=[];return(t.constructor={})[hu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat");vu({target:"Array",proto:!0,arity:1,forced:Cu},{concat:function(e){var t,n,r,o,i,a=Pi(this),u=bu(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Su(i=-1===t?a:arguments[t]))for(o=gu(i),yu(s+o),n=0;n<o;n++,s++)n in i&&mu(u,s,i[n]);else yu(s+1),mu(u,s++,i);return u.length=s,u}});var Du,xu=String,Ou=Math.max,Au=Math.min,ku=function(e){return function(t,n,r){var o=na(t),i=gu(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=Ua(e);return n<0?Ou(n+t,0):Au(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Bu={includes:ku(!0),indexOf:ku(!1)},Fu={},Tu=Bu.indexOf,Pu=_o([].push),_u=function(e,t){var n,r=na(e),o=0,i=[];for(n in r)!Mi(Fu,n)&&Mi(r,n)&&Pu(i,n);for(;t.length>o;)Mi(r,n=t[o++])&&(~Tu(i,n)||Pu(i,n));return i},ju=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nu=Object.keys||function(e){return _u(e,ju)},Iu=Nu,Ru=Zi&&!wa?Object.defineProperties:function(e,t){Ea(e);for(var n,r=na(t),o=Iu(t),i=o.length,a=0;i>a;)Ba.f(e,n=o[a++],r[n]);return e},Lu={f:Ru},Mu=gi("document","documentElement"),zu=Li("keys"),$u=Lu,Hu=Mu,Uu=function(e){return zu[e]||(zu[e]=zi(e))},Vu="prototype",Wu="script",Gu=Uu("IE_PROTO"),qu=function(){},Ku=function(e){return"<script>"+e+"</"+Wu+">"},Yu=function(e){e.write(Ku("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xu=function(){try{Du=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xu="undefined"!=typeof document?document.domain&&Du?Yu(Du):("javascript:",(t=Ji("iframe")).style.display="none",Hu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ku("document.F=Object")),e.close(),e.F):Yu(Du);for(var n=ju.length;n--;)delete Xu[Vu][ju[n]];return Xu()};Fu[Gu]=!0;var Zu,Ju,Qu,es=Object.create||function(e,t){var n;return null!==e?(qu[Vu]=Ea(e),n=new qu,qu[Vu]=null,n[Gu]=e):n=Xu(),void 0===t?n:$u.f(n,t)},ts=ju.concat("length","prototype"),ns=Object.getOwnPropertyNames||function(e){return _u(e,ts)},rs={f:ns},os=_o([].slice),is=rs.f,as="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],us={f:function(e){return as&&"Window"===Io(e)?function(e){try{return is(e)}catch(e){return os(as)}}(e):is(na(e))}},ss={f:Object.getOwnPropertySymbols},cs={f:Wi},ls=Ba.f,fs=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Na(e,t,n),e},ds=qa?{}.toString:function(){return"[object "+eu(this)+"]"},ps=Ba.f,hs=Wi("toStringTag"),vs=ti.WeakMap,gs=Qo(vs)&&/native code/.test(String(vs)),ys="Object already initialized",ms=ti.TypeError,bs=ti.WeakMap;if(gs||Fi.state){var ws=Fi.state||(Fi.state=new bs);ws.get=ws.get,ws.has=ws.has,ws.set=ws.set,Zu=function(e,t){if(ws.has(e))throw new ms(ys);return t.facade=e,ws.set(e,t),t},Ju=function(e){return ws.get(e)||{}},Qu=function(e){return ws.has(e)}}else{var Es=Uu("state");Fu[Es]=!0,Zu=function(e,t){if(Mi(e,Es))throw new ms(ys);return t.facade=e,Na(e,Es,t),t},Ju=function(e){return Mi(e,Es)?e[Es]:{}},Qu=function(e){return Mi(e,Es)}}var Ss={set:Zu,get:Ju,has:Qu,enforce:function(e){return Qu(e)?Ju(e):Zu(e,{})},getterFor:function(e){return function(t){var n;if(!Oi(t)||(n=Ju(t)).type!==e)throw new ms("Incompatible receiver, "+e+" required");return n}}},Cs=_o([].push),Ds=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=Pi(s),v=Zo(h),g=gu(v),y=ja(c,l),m=0,b=f||bu,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Cs(w,d)}else switch(e){case 4:return!1;case 7:Cs(w,d)}return i?-1:r||o?o:w}},xs={forEach:Ds(0),map:Ds(1),filter:Ds(2),some:Ds(3),every:Ds(4),find:Ds(5),findIndex:Ds(6),filterReject:Ds(7)},Os=function(e){if("Symbol"===eu(e))throw new TypeError("Cannot convert a Symbol value to a string");return xu(e)},As=es,ks=us,Bs=ss,Fs=function(e){var t=ei.Symbol||(ei.Symbol={});Mi(t,e)||ls(t,e,{value:cs.f(e)})},Ts=function(){var e=gi("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Wi("toPrimitive");t&&!t[r]&&fs(t,r,(function(e){return xi(n,this)}),{arity:1})},Ps=function(e,t,n,r){var o=n?e:e&&e.prototype;o&&(Mi(o,hs)||ps(o,hs,{configurable:!0,value:t}),r&&!qa&&Na(o,"toString",ds))},_s=Ss,js=xs.forEach,Ns=Uu("hidden"),Is="Symbol",Rs="prototype",Ls=_s.set,Ms=_s.getterFor(Is),zs=Object[Rs],$s=ti.Symbol,Hs=$s&&$s[Rs],Us=ti.RangeError,Vs=ti.TypeError,Ws=ti.QObject,Gs=Pa.f,qs=Ba.f,Ks=ks.f,Ys=ea.f,Xs=_o([].push),Zs=Li("symbols"),Js=Li("op-symbols"),Qs=Li("wks"),ec=!Ws||!Ws[Rs]||!Ws[Rs].findChild,tc=function(e,t,n){var r=Gs(zs,t);r&&delete zs[t],qs(e,t,n),r&&e!==zs&&qs(zs,t,r)},nc=Zi&&So((function(){return 7!==As(qs({},"a",{get:function(){return qs(this,"a",{value:7}).a}})).a}))?tc:qs,rc=function(e,t){var n=Zs[e]=As(Hs);return Ls(n,{type:Is,tag:e,description:t}),Zi||(n.description=t),n},oc=function(e,t,n){e===zs&&oc(Js,t,n),Ea(e);var r=ra(t);return Ea(n),Mi(Zs,r)?(n.enumerable?(Mi(e,Ns)&&e[Ns][r]&&(e[Ns][r]=!1),n=As(n,{enumerable:ta(0,!1)})):(Mi(e,Ns)||qs(e,Ns,ta(1,As(null))),e[Ns][r]=!0),nc(e,r,n)):qs(e,r,n)},ic=function(e,t){Ea(e);var n=na(t),r=Iu(n).concat(cc(n));return js(r,(function(t){Zi&&!xi(ac,n,t)||oc(e,t,n[t])})),e},ac=function(e){var t=ra(e),n=xi(Ys,this,t);return!(this===zs&&Mi(Zs,t)&&!Mi(Js,t))&&(!(n||!Mi(this,t)||!Mi(Zs,t)||Mi(this,Ns)&&this[Ns][t])||n)},uc=function(e,t){var n=na(e),r=ra(t);if(n!==zs||!Mi(Zs,r)||Mi(Js,r)){var o=Gs(n,r);return!o||!Mi(Zs,r)||Mi(n,Ns)&&n[Ns][r]||(o.enumerable=!0),o}},sc=function(e){var t=Ks(na(e)),n=[];return js(t,(function(e){Mi(Zs,e)||Mi(Fu,e)||Xs(n,e)})),n},cc=function(e){var t=e===zs,n=Ks(t?Js:na(e)),r=[];return js(n,(function(e){!Mi(Zs,e)||t&&!Mi(zs,e)||Xs(r,Zs[e])})),r};hi||(Hs=($s=function(){if(yi(Hs,this))throw new Vs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Os(arguments[0]):void 0,t=zi(e),n=function(e){var r=void 0===this?ti:this;r===zs&&xi(n,Js,e),Mi(r,Ns)&&Mi(r[Ns],t)&&(r[Ns][t]=!1);var o=ta(1,e);try{nc(r,t,o)}catch(e){if(!(e instanceof Us))throw e;tc(r,t,o)}};return Zi&&ec&&nc(zs,t,{configurable:!0,set:n}),rc(t,e)})[Rs],fs(Hs,"toString",(function(){return Ms(this).tag})),fs($s,"withoutSetter",(function(e){return rc(zi(e),e)})),ea.f=ac,Ba.f=oc,$u.f=ic,Pa.f=uc,rs.f=ks.f=sc,Bs.f=cc,cs.f=function(e){return rc(Wi(e),e)},Zi&&function(e,t,n){Ba.f(e,t,n)}(Hs,"description",{configurable:!0,get:function(){return Ms(this).description}})),vu({global:!0,constructor:!0,wrap:!0,forced:!hi,sham:!hi},{Symbol:$s}),js(Iu(Qs),(function(e){Fs(e)})),vu({target:Is,stat:!0,forced:!hi},{useSetter:function(){ec=!0},useSimple:function(){ec=!1}}),vu({target:"Object",stat:!0,forced:!hi,sham:!Zi},{create:function(e,t){return void 0===t?As(e):ic(As(e),t)},defineProperty:oc,defineProperties:ic,getOwnPropertyDescriptor:uc}),vu({target:"Object",stat:!0,forced:!hi},{getOwnPropertyNames:sc}),Ts(),Ps($s,Is),Fu[Ns]=!0;var lc=hi&&!!Symbol.for&&!!Symbol.keyFor,fc=Li("string-to-symbol-registry"),dc=Li("symbol-to-string-registry");vu({target:"Symbol",stat:!0,forced:!lc},{for:function(e){var t=Os(e);if(Mi(fc,t))return fc[t];var n=gi("Symbol")(t);return fc[t]=n,dc[n]=t,n}});var pc=Li("symbol-to-string-registry");vu({target:"Symbol",stat:!0,forced:!lc},{keyFor:function(e){if(!Vi(e))throw new TypeError(Si(e)+" is not a symbol");if(Mi(pc,e))return pc[e]}});var hc=_o([].push),vc=function(e){if(Qo(e))return e;if(lu(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?hc(n,o):"number"!=typeof o&&"Number"!==Io(o)&&"String"!==Io(o)||hc(n,Os(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(lu(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}},gc=String,yc=gi("JSON","stringify"),mc=_o(/./.exec),bc=_o("".charAt),wc=_o("".charCodeAt),Ec=_o("".replace),Sc=_o(1..toString),Cc=/[\uD800-\uDFFF]/g,Dc=/^[\uD800-\uDBFF]$/,xc=/^[\uDC00-\uDFFF]$/,Oc=!hi||So((function(){var e=gi("Symbol")("stringify detection");return"[null]"!==yc([e])||"{}"!==yc({a:e})||"{}"!==yc(Object(e))})),Ac=So((function(){return'"\\udf06\\ud834"'!==yc("\udf06\ud834")||'"\\udead"'!==yc("\udead")})),kc=function(e,t){var n=os(arguments),r=vc(t);if(Qo(r)||void 0!==e&&!Vi(e))return n[1]=function(e,t){if(Qo(r)&&(t=xi(r,this,gc(e),t)),!Vi(t))return t},Ta(yc,null,n)},Bc=function(e,t,n){var r=bc(n,t-1),o=bc(n,t+1);return mc(Dc,e)&&!mc(xc,o)||mc(xc,e)&&!mc(Dc,r)?"\\u"+Sc(wc(e,0),16):e};yc&&vu({target:"JSON",stat:!0,arity:3,forced:Oc||Ac},{stringify:function(e,t,n){var r=os(arguments),o=Ta(Oc?kc:yc,null,r);return Ac&&"string"==typeof o?Ec(o,Cc,Bc):o}});var Fc=!hi||So((function(){Bs.f(1)}));vu({target:"Object",stat:!0,forced:Fc},{getOwnPropertySymbols:function(e){var t=Bs.f;return t?t(Pi(e)):[]}}),Fs("asyncIterator"),Fs("hasInstance"),Fs("isConcatSpreadable"),Fs("iterator"),Fs("match"),Fs("matchAll"),Fs("replace"),Fs("search"),Fs("species"),Fs("split"),Fs("toPrimitive"),Ts(),Fs("toStringTag"),Ps(gi("Symbol"),"Symbol"),Fs("unscopables"),Ps(ti.JSON,"JSON",!0);var Tc,Pc,_c,jc=ei.Symbol,Nc=Function.prototype,Ic=Zi&&Object.getOwnPropertyDescriptor,Rc=Mi(Nc,"name"),Lc={EXISTS:Rc,PROPER:Rc&&"something"===function(){}.name,CONFIGURABLE:Rc&&(!Zi||Zi&&Ic(Nc,"name").configurable)},Mc=!So((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zc=Mc,$c=Uu("IE_PROTO"),Hc=Object,Uc=Hc.prototype,Vc=zc?Hc.getPrototypeOf:function(e){var t=Pi(e);if(Mi(t,$c))return t[$c];var n=t.constructor;return Qo(n)&&t instanceof n?n.prototype:t instanceof Hc?Uc:null},Wc=Vc,Gc=Wi("iterator"),qc=!1;[].keys&&("next"in(_c=[].keys())?(Pc=Wc(Wc(_c)))!==Object.prototype&&(Tc=Pc):qc=!0);var Kc=!Oi(Tc)||So((function(){var e={};return Tc[Gc].call(e)!==e}));Tc=Kc?{}:As(Tc),Qo(Tc[Gc])||fs(Tc,Gc,(function(){return this}));var Yc={IteratorPrototype:Tc,BUGGY_SAFARI_ITERATORS:qc},Xc={},Zc=Yc.IteratorPrototype,Jc=function(){return this},Qc=(Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{(function(e,t,n){try{return _o(Di(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}})(Object.prototype,"__proto__","set")(e,[]),e instanceof Array}catch(e){}}(),function(e,t,n,r){var o=t+" Iterator";return e.prototype=As(Zc,{next:ta(+!r,n)}),Ps(e,o,!1,!0),Xc[o]=Jc,e}),el=Lc.PROPER,tl=Yc.BUGGY_SAFARI_ITERATORS,nl=Wi("iterator"),rl="values",ol="entries",il=function(){return this},al=function(e,t,n,r,o,i,a){Qc(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!tl&&e&&e in p)return p[e];switch(e){case"keys":case rl:case ol:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[nl]||p["@@iterator"]||o&&p[o],v=!tl&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Wc(g.call(new e)))!==Object.prototype&&u.next&&(Ps(u,f,!0,!0),Xc[f]=il),el&&o===rl&&h&&h.name!==rl&&(d=!0,v=function(){return xi(h,this)}),o)if(s={values:l(rl),keys:i?v:l("keys"),entries:l(ol)},a)for(c in s)(tl||d||!(c in p))&&fs(p,c,s[c]);else vu({target:t,proto:!0,forced:tl||d},s);return a&&p[nl]!==v&&fs(p,nl,v,{name:o}),Xc[t]=v,s},ul=function(e,t){return{value:e,done:t}},sl=(Ba.f,"Array Iterator"),cl=_s.set,ll=_s.getterFor(sl);al(Array,"Array",(function(e,t){cl(this,{type:sl,target:na(e),index:0,kind:t})}),(function(){var e=ll(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,ul(void 0,!0);switch(e.kind){case"keys":return ul(n,!1);case"values":return ul(t[n],!1)}return ul([n,t[n]],!1)}),"values"),Xc.Arguments=Xc.Array;for(var fl in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})Ps(ti[fl],fl),Xc[fl]=Xc.Array;var dl=jc,pl=Ba.f,hl=Wi("metadata"),vl=Function.prototype;void 0===vl[hl]&&pl(vl,hl,{value:null}),Fs("asyncDispose"),Fs("dispose"),Fs("metadata");var gl=dl,yl=gi("Symbol"),ml=yl.keyFor,bl=_o(yl.prototype.valueOf),wl=yl.isRegisteredSymbol||function(e){try{return void 0!==ml(bl(e))}catch(e){return!1}};vu({target:"Symbol",stat:!0},{isRegisteredSymbol:wl});for(var El=gi("Symbol"),Sl=El.isWellKnownSymbol,Cl=gi("Object","getOwnPropertyNames"),Dl=_o(El.prototype.valueOf),xl=Li("wks"),Ol=0,Al=Cl(El),kl=Al.length;Ol<kl;Ol++)try{var Bl=Al[Ol];Vi(El[Bl])&&Wi(Bl)}catch(n){}var Fl=function(e){if(Sl&&Sl(e))return!0;try{for(var t=Dl(e),n=0,r=Cl(xl),o=r.length;n<o;n++)if(xl[r[n]]==t)return!0}catch(e){}return!1};vu({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Fl}),Fs("customMatcher"),Fs("observable"),vu({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:wl}),vu({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Fl}),Fs("matcher"),Fs("metadataKey"),Fs("patternMatch"),Fs("replaceAll");var Tl=gl,Pl=_o("".charAt),_l=_o("".charCodeAt),jl=_o("".slice),Nl=function(e){return function(t,n){var r,o,i=Os(Jo(t)),a=Ua(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_l(i,a))<55296||r>56319||a+1===u||(o=_l(i,a+1))<56320||o>57343?e?Pl(i,a):r:e?jl(i,a,a+2):o-56320+(r-55296<<10)+65536}},Il=(Nl(!1),Nl(!0)),Rl="String Iterator",Ll=_s.set,Ml=_s.getterFor(Rl);al(String,"String",(function(e){Ll(this,{type:Rl,string:Os(e),index:0})}),(function(){var e,t=Ml(this),n=t.string,r=t.index;return r>=n.length?ul(void 0,!0):(e=Il(n,r),t.index+=e.length,ul(e,!1))}));var zl=cs.f("iterator"),$l=Tl,Hl=zl,Ul=w((function(e){function t(n){return e.exports=t="function"==typeof $l&&"symbol"==typeof Hl?function(e){return typeof e}:function(e){return e&&"function"==typeof $l&&e.constructor===$l&&e!==$l.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Vl=b(Ul),Wl=jt.f,Gl=!ie||n((function(){Wl(1)}));if(sn({target:"Object",stat:!0,forced:Gl,sham:!ie},{getOwnPropertyDescriptor:function(e,t){return Wl(y(e),t)}}),"object"===("undefined"==typeof global?"undefined":Vl(global))){var ql=Object.getOwnPropertyDescriptor(global,"window");global.window&&!ql.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
|
16
|
+
/*!
|
17
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
18
|
+
*
|
19
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
20
|
+
* Released under the MIT License.
|
21
|
+
*/function Kl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Yl(e){var t,n;return!1!==Kl(e)&&(void 0===(t=e.constructor)||!1!==Kl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Xl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zl(e){return!!e&&!!e[If]}function Jl(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Rf}(e)||Array.isArray(e)||!!e[Nf]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Nf])||rf(e)||of(e))}function Ql(e,t,n){void 0===n&&(n=!1),0===ef(e)?(n?Object.keys:Lf)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ef(e){var t=e[If];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rf(e)?2:of(e)?3:0}function tf(e,t){return 2===ef(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nf(e,t,n){var r=ef(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function rf(e){return Tf&&e instanceof Map}function of(e){return Pf&&e instanceof Set}function af(e){return e.o||e.t}function uf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Mf(e);delete t[If];for(var n=Lf(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function sf(e,t){return void 0===t&&(t=!1),lf(e)||Zl(e)||!Jl(e)||(ef(e)>1&&(e.set=e.add=e.clear=e.delete=cf),Object.freeze(e),t&&Ql(e,(function(e,t){return sf(t,!0)}),!0)),e}function cf(){Xl(2)}function lf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ff(e){var t=zf[e];return t||Xl(18,e),t}function df(){return Bf}function pf(e,t){t&&(ff("Patches"),e.u=[],e.s=[],e.v=t)}function hf(e){vf(e),e.p.forEach(yf),e.p=null}function vf(e){e===Bf&&(Bf=e.l)}function gf(e){return Bf={p:[],l:Bf,h:e,m:!0,_:0}}function yf(e){var t=e[If];0===t.i||1===t.i?t.j():t.g=!0}function mf(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ff("ES5").S(t,e,r),r?(n[If].P&&(hf(t),Xl(4)),Jl(e)&&(e=bf(t,e),t.l||Ef(t,e)),t.u&&ff("Patches").M(n[If].t,e,t.u,t.s)):e=bf(t,n,[]),hf(t),t.u&&t.v(t.u,t.s),e!==jf?e:void 0}function bf(e,t,n){if(lf(t))return t;var r=t[If];if(!r)return Ql(t,(function(o,i){return wf(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ef(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=uf(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),Ql(i,(function(t,i){return wf(e,r,o,t,i,n,a)})),Ef(e,o,!1),n&&e.u&&ff("Patches").N(r,n,e.u,e.s)}return r.o}function wf(e,t,n,r,o,i,a){if(Zl(o)){var u=bf(e,o,i&&t&&3!==t.i&&!tf(t.R,r)?i.concat(r):void 0);if(nf(n,r,u),!Zl(u))return;e.m=!1}else a&&n.add(o);if(Jl(o)&&!lf(o)){if(!e.h.D&&e._<1)return;bf(e,o),t&&t.A.l||Ef(e,o)}}function Ef(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&sf(t,n)}function Sf(e,t){var n=e[If];return(n?af(n):e)[t]}function Cf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Df(e){e.P||(e.P=!0,e.l&&Df(e.l))}function xf(e){e.o||(e.o=uf(e.t))}function Of(e,t,n){var r=rf(t)?ff("MapSet").F(t,n):of(t)?ff("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:df(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=$f;n&&(o=[r],i=Hf);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):ff("ES5").J(t,n);return(n?n.A:df()).p.push(r),r}function Af(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return uf(e)}var kf,Bf,Ff="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Tf="undefined"!=typeof Map,Pf="undefined"!=typeof Set,_f="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jf=Ff?Symbol.for("immer-nothing"):((kf={})["immer-nothing"]=!0,kf),Nf=Ff?Symbol.for("immer-draftable"):"__$immer_draftable",If=Ff?Symbol.for("immer-state"):"__$immer_state",Rf=""+Object.prototype.constructor,Lf="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Mf=Object.getOwnPropertyDescriptors||function(e){var t={};return Lf(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},zf={},$f={get:function(e,t){if(t===If)return e;var n=af(e);if(!tf(n,t))return function(e,t,n){var r,o=Cf(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Jl(r)?r:r===Sf(e.t,t)?(xf(e),e.o[t]=Of(e.A.h,r,e)):r},has:function(e,t){return t in af(e)},ownKeys:function(e){return Reflect.ownKeys(af(e))},set:function(e,t,n){var r=Cf(af(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Sf(af(e),t),i=null==o?void 0:o[If];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||tf(e.t,t)))return!0;xf(e),Df(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Sf(e.t,t)||t in e.t?(e.R[t]=!1,xf(e),Df(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=af(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Xl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xl(12)}},Hf={};Ql($f,(function(e,t){Hf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Hf.deleteProperty=function(e,t){return Hf.set.call(this,e,t,void 0)},Hf.set=function(e,t,n){return $f.set.call(this,e[0],t,n,e[0])};var Uf=function(){function e(e){var t=this;this.O=_f,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Xl(6),void 0!==r&&"function"!=typeof r&&Xl(7),Jl(e)){var u=gf(t),s=Of(t,e,void 0),c=!0;try{a=n(s),c=!1}finally{c?hf(u):vf(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return pf(u,r),mf(e,u)}),(function(e){throw hf(u),e})):(pf(u,r),mf(a,u))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===jf&&(a=void 0),t.D&&sf(a,!0),r){var l=[],f=[];ff("Patches").M(e,a,l,f),r(l,f)}return a}Xl(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Jl(e)||Xl(8),Zl(e)&&(e=function(e){return Zl(e)||Xl(22,e),function e(t){if(!Jl(t))return t;var n,r=t[If],o=ef(t);if(r){if(!r.P&&(r.i<4||!ff("ES5").K(r)))return r.t;r.I=!0,n=Af(t,o),r.I=!1}else n=Af(t,o);return Ql(n,(function(t,o){r&&function(e,t){return 2===ef(e)?e.get(t):e[t]}(r.t,t)===o||nf(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=gf(this),n=Of(this,e,void 0);return n[If].C=!0,vf(t),n},t.finishDraft=function(e,t){var n=(e&&e[If]).A;return pf(n,t),mf(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!_f&&Xl(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=ff("Patches").$;return Zl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Vf=new Uf,Wf=Vf.produce;Vf.produceWithPatches.bind(Vf),Vf.setAutoFreeze.bind(Vf),Vf.setUseProxies.bind(Vf),Vf.applyPatches.bind(Vf);var Gf=Vf.createDraft.bind(Vf),qf=Vf.finishDraft.bind(Vf);function Kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yf=new WeakMap,Xf=new WeakMap,Zf=new WeakMap,Jf=new WeakMap,Qf=new WeakMap,ed=new WeakMap,td=new WeakMap;function nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var od=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Yd.levels(t);case"insert_node":var{node:n,path:r}=e,o=Yd.levels(r),i=lp.isText(n)?[]:Array.from(Wd.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Yd.ancestors(a),Yd.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Yd.equals(u,s))return[];var c=[],l=[];for(var f of Yd.ancestors(u)){var d=Yd.transform(f,e);c.push(d)}for(var p of Yd.ancestors(s)){var h=Yd.transform(p,e);l.push(h)}var v=l[l.length-1],g=s[s.length-1],y=v.concat(g);return[...c,...l,y];case"remove_node":var{path:m}=e;return[...Yd.ancestors(m)];case"split_node":var{path:b}=e;return[...Yd.levels(b),Yd.next(b)];default:return[]}};function id(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ad,ud=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?pd(e):e,o=ad.None,i=ad.None,a=0,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var l=xd(s,c);if([o,i]=n?[i,l]:[l,o],Od(o,ad.ZWJ)&&Od(i,ad.ExtPict)&&!Fd(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Od(o,ad.RI)&&Od(i,ad.RI)&&!(u=null!==u?!u:!!n||Pd(e.substring(0,e.length-a))))break;if(o!==ad.None&&i!==ad.None&&kd(o,i))break;a+=s.length}return a||1},sd=/\s/,cd=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ld=/['\u2018\u2019]/,fd=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},dd=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(sd.test(t))return!1;if(ld.test(t)){var o=ud(n,r),[i,a]=fd(n,o,r);if(e(i,a,r))return!0}return!cd.test(t)},pd=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(vd(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(hd(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},hd=e=>e>=55296&&e<=56319,vd=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(ad||(ad={}));var gd=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,yd=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,md=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,bd=/^[\u1100-\u115F\uA960-\uA97C]$/,wd=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Ed=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Sd=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Cd=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Dd=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,xd=(e,t)=>{var n=ad.Any;return-1!==e.search(gd)&&(n|=ad.Extend),8205===t&&(n|=ad.ZWJ),t>=127462&&t<=127487&&(n|=ad.RI),-1!==e.search(yd)&&(n|=ad.Prepend),-1!==e.search(md)&&(n|=ad.SpacingMark),-1!==e.search(bd)&&(n|=ad.L),-1!==e.search(wd)&&(n|=ad.V),-1!==e.search(Ed)&&(n|=ad.T),-1!==e.search(Sd)&&(n|=ad.LV),-1!==e.search(Cd)&&(n|=ad.LVT),-1!==e.search(Dd)&&(n|=ad.ExtPict),n};function Od(e,t){return!!(e&t)}var Ad=[[ad.L,ad.L|ad.V|ad.LV|ad.LVT],[ad.LV|ad.V,ad.V|ad.T],[ad.LVT|ad.T,ad.T],[ad.Any,ad.Extend|ad.ZWJ],[ad.Any,ad.SpacingMark],[ad.Prepend,ad.Any],[ad.ZWJ,ad.ExtPict],[ad.RI,ad.RI]];function kd(e,t){return-1===Ad.findIndex((n=>Od(e,n[0])&&Od(t,n[1])))}var Bd=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Fd=e=>-1!==e.search(Bd),Td=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Pd=e=>{var t=e.match(Td);return null!==t&&t[0].length/2%2==1},_d=e=>Yl(e)&&Wd.isNodeList(e.children)&&!zd.isEditor(e),jd={isAncestor:e=>Yl(e)&&Wd.isNodeList(e.children),isElement:_d,isElementList:e=>Array.isArray(e)&&e.every((e=>jd.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return _d(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Nd=["text"],Id=["text"];function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Md=new WeakMap,zd={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=zd.path(e,o),u="lowest"===r;for(var[s,c]of zd.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!lp.isText(s)&&!Yd.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:zd.point(e,t,{edge:"end"}),focus:zd.end(e,[])},{distance:i=1}=r,a=0;for(var u of zd.positions(e,Ld(Ld({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:zd.start(e,[]),focus:zd.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of zd.positions(e,Ld(Ld({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[zd.start(e,t),zd.end(e,t)],end:(e,t)=>zd.point(e,t,{edge:"end"}),first(e,t){var n=zd.path(e,t,{edge:"start"});return zd.node(e,n)},fragment(e,t){var n=zd.range(e,t);return Wd.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>zd.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>lp.isText(t)||zd.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>lp.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>jd.isElement(t)&&!e.isInline(t),isEditor(e){if(!Yl(e))return!1;var t=Md.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Yl(e.marks))&&(null===e.selection||rp.isRange(e.selection))&&Wd.isNodeList(e.children)&&Kd.isOperationList(e.operations);return Md.set(e,n),n},isEnd(e,t,n){var r=zd.end(e,n);return Qd.equals(t,r)},isEdge:(e,t,n)=>zd.isStart(e,t,n)||zd.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&lp.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>jd.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Jf.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=zd.start(e,n);return Qd.equals(t,r)},isVoid:(e,t)=>jd.isElement(t)&&e.isVoid(t),last(e,t){var n=zd.path(e,t,{edge:"end"});return zd.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zd.path(e,t,n);return[Wd.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=zd.path(e,n);for(var[s,c]of Wd.levels(e,u))if(i(s,c)&&(a.push([s,c]),!o&&zd.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(rp.isExpanded(n)){var[r]=zd.nodes(e,{match:lp.isText});if(r){var[o]=r;return id(o,Nd)}return{}}var{anchor:i}=n,{path:a}=i,[u]=zd.leaf(e,a);if(0===i.offset){var s=zd.previous(e,{at:a,match:lp.isText}),c=zd.above(e,{match:t=>zd.isBlock(e,t)});if(s&&c){var[l,f]=s,[,d]=c;Yd.isAncestor(d,f)&&(u=l)}}return id(u,Id)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=zd.after(e,i,{voids:r});if(a){var[,u]=zd.last(e,[]),s=[a.path,u];if(Yd.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Yd.isPath(i)){var[c]=zd.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=zd.nodes(e,{at:s,match:o,mode:n,voids:r});return l}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zd.path(e,t,n);return[Wd.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,c;if($d.isSpan(n))s=n[0],c=n[1];else{var l=zd.path(e,n,{edge:"start"}),f=zd.path(e,n,{edge:"end"});s=i?f:l,c=i?l:f}var d,p=Wd.nodes(e,{reverse:i,from:s,to:c,pass:t=>{var[n]=t;return!a&&zd.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===Yd.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&lp.isText(v))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Yf.get(e)||[],o=e=>{var t=r(e).pop(),n=t.join(",");return(e=>Xf.get(e)||new Set)(e).delete(n),t};if(zd.isNormalizing(e)){if(n){var i=Array.from(Wd.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));Yf.set(e,i),Xf.set(e,a)}0!==r(e).length&&zd.withoutNormalizing(e,(()=>{for(var t of r(e))if(Wd.has(e,t)){var n=zd.node(e,t),[i,a]=n;jd.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var u=42*r(e).length,s=0;0!==r(e).length;){if(s>u)throw new Error("\n Could not completely normalize the editor after ".concat(u," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=o(e);if(Wd.has(e,c)){var l=zd.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zd.path(e,t,n),o=Yd.parent(r);return zd.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Yd.isPath(t))if("start"===o){var[,i]=Wd.first(e,t);t=i}else if("end"===o){var[,a]=Wd.last(e,t);t=a}return rp.isRange(t)&&(t="start"===o?rp.start(t):"end"===o?rp.end(t):Yd.common(t.anchor.path,t.focus.path)),Qd.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Wd.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return zd.pathRefs(e).delete(o),o.current=null,t}};return zd.pathRefs(e).add(o),o},pathRefs(e){var t=Qf.get(e);return t||(t=new Set,Qf.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Yd.isPath(t)){var o;if("end"===r){var[,i]=Wd.last(e,t);o=i}else{var[,a]=Wd.first(e,t);o=a}var u=Wd.get(e,o);if(!lp.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(rp.isRange(t)){var[s,c]=rp.edges(t);return"start"===r?s:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return zd.pointRefs(e).delete(o),o.current=null,t}};return zd.pointRefs(e).add(o),o},pointRefs(e){var t=ed.get(e);return t||(t=new Set,ed.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=zd.range(e,n),[u,s]=rp.edges(a),c=o?s:u,l=!1,f="",d=0,p=0,h=0;for(var[v,g]of zd.nodes(e,{at:n,reverse:o,voids:i})){if(jd.isElement(v)){if(!i&&e.isVoid(v)){yield zd.start(e,g);continue}if(e.isInline(v))continue;if(zd.hasInlines(e,v)){var y=Yd.isAncestor(g,s.path)?s:zd.end(e,g),m=Yd.isAncestor(g,u.path)?u:zd.start(e,g);f=zd.string(e,{anchor:m,focus:y},{voids:i}),l=!0}}if(lp.isText(v)){var b=Yd.equals(g,c.path);for(b?(p=o?c.offset:v.text.length-c.offset,h=c.offset):(p=v.text.length,h=o?p:0),(b||l||"offset"===r)&&(yield{path:g,offset:h},l=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=fd(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function w(e,t,n){return"character"===t?ud(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=ud(e,t),[i,a]=fd(e,o,t);if(dd(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=zd.before(e,i,{voids:r});if(a){var[,u]=zd.first(e,[]),s=[a.path,u];if(Yd.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Yd.isPath(i)){var[c]=zd.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=zd.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return l}}},range:(e,t,n)=>rp.isRange(t)&&!n?t:{anchor:zd.start(e,t),focus:zd.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return zd.rangeRefs(e).delete(o),o.current=null,t}};return zd.rangeRefs(e).add(o),o},rangeRefs(e){var t=td.get(e);return t||(t=new Set,td.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Jf.set(e,t)},start:(e,t)=>zd.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=zd.range(e,t),[i,a]=rp.edges(o),u="";for(var[s,c]of zd.nodes(e,{at:o,match:lp.isText,voids:r})){var l=s.text;Yd.equals(c,a.path)&&(l=l.slice(0,a.offset)),Yd.equals(c,i.path)&&(l=l.slice(i.offset)),u+=l}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=rp.edges(t);if(0!==o.offset||0!==i.offset||rp.isCollapsed(t))return t;var a=zd.above(e,{at:i,match:t=>zd.isBlock(e,t)}),u=a?a[1]:[],s={anchor:zd.start(e,o),focus:i},c=!0;for(var[l,f]of zd.nodes(e,{at:s,match:lp.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==l.text||Yd.isBefore(f,u)){i={path:f,offset:l.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zd.above(e,Ld(Ld({},t),{},{match:t=>zd.isVoid(e,t)}))},withoutNormalizing(e,t){var n=zd.isNormalizing(e);zd.setNormalizing(e,!1);try{t()}finally{zd.setNormalizing(e,n)}zd.normalize(e)}},$d={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Yd.isPath)},Hd=["children"],Ud=["text"],Vd=new WeakMap,Wd={ancestor(e,t){var n=Wd.get(e,t);if(lp.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Yd.ancestors(t,n)){var o=[Wd.ancestor(e,r),r];yield o}},child(e,t){if(lp.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Wd.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Wd.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Yd.common(t,n);return[Wd.get(e,r),r]},descendant(e,t){var n=Wd.get(e,t);if(zd.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Wd.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Wd.nodes(e,t))jd.isElement(n)&&(yield[n,r])},extractProps:e=>jd.isAncestor(e)?id(e,Hd):id(e,Ud),first(e,t){for(var n=t.slice(),r=Wd.get(e,n);r&&!lp.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(lp.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Wf({children:e.children},(e=>{var[n,r]=rp.edges(t),o=Wd.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!rp.includes(t,n)}});for(var[,i]of o){if(!rp.includes(t,i)){var a=Wd.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Yd.equals(i,r.path)){var s=Wd.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Yd.equals(i,n.path)){var c=Wd.leaf(e,i);c.text=c.text.slice(n.offset)}}zd.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(lp.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(lp.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>lp.isText(e)||jd.isElement(e)||zd.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Vd.get(e);if(void 0!==t)return t;var n=e.every((e=>Wd.isNode(e)));return Vd.set(e,n),n},last(e,t){for(var n=t.slice(),r=Wd.get(e,n);r&&!lp.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Wd.get(e,t);if(!lp.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Yd.levels(t,n)){var o=Wd.get(e,r);yield[o,r]}},matches:(e,t)=>jd.isElement(e)&&jd.isElementProps(t)&&jd.matches(e,t)||lp.isText(e)&&lp.isTextProps(t)&&lp.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Yd.isBefore(u,i):Yd.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||lp.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var c=Yd.next(u);if(Wd.has(e,c)){u=c,s=Wd.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Yd.previous(u),s=Wd.get(e,u)):(u=Yd.parent(u),s=Wd.get(e,u),a.add(s))}else{a.add(s);var l=r?s.children.length-1:0;Yd.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=Wd.get(e,u)}},parent(e,t){var n=Yd.parent(t),r=Wd.get(e,n);if(lp.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>lp.isText(e)?e.text:e.children.map(Wd.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Wd.nodes(e,t))lp.isText(n)&&(yield[n,r])}};function Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kd={isNodeOperation:e=>Kd.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Yl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Yd.isPath(e.path)&&Wd.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Yd.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Yd.isPath(e.path)&&Yl(e.properties);case"move_node":return Yd.isPath(e.path)&&Yd.isPath(e.newPath);case"set_node":return Yd.isPath(e.path)&&Yl(e.properties)&&Yl(e.newProperties);case"set_selection":return null===e.properties&&rp.isRange(e.newProperties)||null===e.newProperties&&rp.isRange(e.properties)||Yl(e.properties)&&Yl(e.newProperties);case"split_node":return Yd.isPath(e.path)&&"number"==typeof e.position&&Yl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Kd.isOperation(e))),isSelectionOperation:e=>Kd.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Kd.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return qd(qd({},e),{},{type:"remove_node"});case"insert_text":return qd(qd({},e),{},{type:"remove_text"});case"merge_node":return qd(qd({},e),{},{type:"split_node",path:Yd.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Yd.equals(t,n))return e;if(Yd.isSibling(n,t))return qd(qd({},e),{},{path:t,newPath:n});var r=Yd.transform(n,e),o=Yd.transform(Yd.next(n),e);return qd(qd({},e),{},{path:r,newPath:o});case"remove_node":return qd(qd({},e),{},{type:"insert_node"});case"remove_text":return qd(qd({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return qd(qd({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return qd(qd({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return qd(qd({},e),{},{type:"merge_node",path:Yd.next(e.path)})}}},Yd={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Yd.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Yd.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Yd.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Yd.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Yd.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Yd.compare(e,t),isBefore:(e,t)=>-1===Yd.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Yd.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Yd.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Yd.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Yd.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Yd.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Yd.isAncestor(t,e)&&!Yd.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wf(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Yd.equals(i,r)||Yd.endsBefore(i,r)||Yd.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Yd.equals(a,r)||Yd.isAncestor(a,r))return null;Yd.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Yd.equals(u,r)||Yd.endsBefore(u,r)?r[u.length-1]-=1:Yd.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:c,position:l}=t;if(Yd.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Yd.endsBefore(c,r)?r[c.length-1]+=1:Yd.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:f,newPath:d}=t;if(Yd.equals(f,d))return;if(Yd.isAncestor(f,r)||Yd.equals(f,r)){var p=d.slice();return Yd.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Yd.isSibling(f,d)&&(Yd.isAncestor(d,r)||Yd.equals(d,r))?Yd.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Yd.endsBefore(d,r)||Yd.equals(d,r)||Yd.isAncestor(d,r)?(Yd.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Yd.endsBefore(f,r)&&(Yd.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Xd={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Yd.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qd={compare(e,t){var n=Yd.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Qd.compare(e,t),isBefore:(e,t)=>-1===Qd.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Yd.equals(e.path,t.path),isPoint:e=>Yl(e)&&"number"==typeof e.offset&&Yd.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wf(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Yd.transform(o,t,n);break;case"insert_text":Yd.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Yd.equals(t.path,o)&&(e.offset+=t.position),e.path=Yd.transform(o,t,n);break;case"remove_text":Yd.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Yd.equals(t.path,o)||Yd.isAncestor(t.path,o))return null;e.path=Yd.transform(o,t,n);break;case"split_node":if(Yd.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Yd.transform(o,t,Jd(Jd({},n),{},{affinity:"forward"})))}else e.path=Yd.transform(o,t,n)}}))}},ep={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Qd.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},tp=["anchor","focus"];function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var rp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return rp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=rp.edges(e);return t},equals:(e,t)=>Qd.equals(e.anchor,t.anchor)&&Qd.equals(e.focus,t.focus),includes(e,t){if(rp.isRange(t)){if(rp.includes(e,t.anchor)||rp.includes(e,t.focus))return!0;var[n,r]=rp.edges(e),[o,i]=rp.edges(t);return Qd.isBefore(n,o)&&Qd.isAfter(r,i)}var[a,u]=rp.edges(e),s=!1,c=!1;return Qd.isPoint(t)?(s=Qd.compare(t,a)>=0,c=Qd.compare(t,u)<=0):(s=Yd.compare(t,a.path)>=0,c=Yd.compare(t,u.path)<=0),s&&c},intersection(e,t){var n=id(e,tp),[r,o]=rp.edges(e),[i,a]=rp.edges(t),u=Qd.isBefore(r,i)?i:r,s=Qd.isBefore(o,a)?o:a;return Qd.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Qd.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Qd.equals(t,n)},isExpanded:e=>!rp.isCollapsed(e),isForward:e=>!rp.isBackward(e),isRange:e=>Yl(e)&&Qd.isPoint(e.anchor)&&Qd.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=rp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wf(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=rp.isCollapsed(e);rp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?rp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Qd.transform(e.anchor,t,{affinity:r}),s=Qd.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},op={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=rp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},ip=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Yl(r)&&Yl(o)){if(!ip(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},ap=["text"],up=["anchor","focus"];function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lp={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return id(e,ap)}return ip(r?o(e):e,r?o(t):t)},isText:e=>Yl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>lp.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[cp({},e)];for(var r of t){var o=id(r,up),[i,a]=rp.edges(r),u=[],s=0;for(var c of n){var{length:l}=c.text,f=s;if(s+=l,i.offset<=f&&a.offset>=s)Object.assign(c,o),u.push(c);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(c);else{var d=c,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=cp(cp({},d),{},{text:d.text.slice(v)}),d=cp(cp({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=cp(cp({},d),{},{text:d.text.slice(0,g)}),d=cp(cp({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pp={transform(e,t){e.children=Gf(e.children);var n=e.selection&&Gf(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Wd.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of rp.points(t))t[s]=Qd.transform(u,n);break;case"insert_text":var{path:c,offset:l,text:f}=n;if(0===f.length)break;var d=Wd.leaf(e,c),p=d.text.slice(0,l),h=d.text.slice(l);if(d.text=p+f+h,t)for(var[v,g]of rp.points(t))t[g]=Qd.transform(v,n);break;case"merge_node":var{path:y}=n,m=Wd.get(e,y),b=Yd.previous(y),w=Wd.get(e,b),E=Wd.parent(e,y),S=y[y.length-1];if(lp.isText(m)&&lp.isText(w))w.text+=m.text;else{if(lp.isText(m)||lp.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(S,1),t)for(var[C,D]of rp.points(t))t[D]=Qd.transform(C,n);break;case"move_node":var{path:x,newPath:O}=n;if(Yd.isAncestor(x,O))throw new Error("Cannot move a path [".concat(x,"] to new path [").concat(O,"] because the destination is inside itself."));var A=Wd.get(e,x),k=Wd.parent(e,x),B=x[x.length-1];k.children.splice(B,1);var F=Yd.transform(x,n),T=Wd.get(e,Yd.parent(F)),P=F[F.length-1];if(T.children.splice(P,0,A),t)for(var[_,j]of rp.points(t))t[j]=Qd.transform(_,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Wd.parent(e,N).children.splice(I,1),t)for(var[R,L]of rp.points(t)){var M=Qd.transform(R,n);if(null!=t&&null!=M)t[L]=M;else{var z=void 0,$=void 0;for(var[H,U]of Wd.texts(e)){if(-1!==Yd.compare(U,N)){$=[H,U];break}z=[H,U]}var V=!1;z&&$&&(V=Yd.equals($[1],N)?!Yd.hasPrevious($[1]):Yd.common(z[1],N).length<Yd.common($[1],N).length),z&&!V?(R.path=z[1],R.offset=z[0].text.length):$?(R.path=$[1],R.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Wd.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of rp.points(t))t[J]=Qd.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Wd.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!rp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=dp({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:ce,position:le,properties:fe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,pe=Wd.get(e,ce),he=Wd.parent(e,ce),ve=ce[ce.length-1];if(lp.isText(pe)){var ge=pe.text.slice(0,le),ye=pe.text.slice(le);pe.text=ge,de=dp(dp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,le),be=pe.children.slice(le);pe.children=me,de=dp(dp({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[we,Ee]of rp.points(t))t[Ee]=Qd.transform(we,n)}return t})(e,n,t)}finally{e.children=qf(e.children),e.selection=n?Zl(n)?qf(n):n:null}}},hp=["text"],vp=["children"];function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mp={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Wd.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?zd.end(e,[]):[0],s=!0),null==s&&(s=!1),rp.isRange(a))if(r||(a=zd.unhangRange(e,a)),rp.isCollapsed(a))a=a.anchor;else{var[,l]=rp.edges(a),f=zd.pointRef(e,l);kp.delete(e,{at:a}),a=f.unref()}if(Qd.isPoint(a)){null==u&&(u=lp.isText(c)?e=>lp.isText(e):e.isInline(c)?t=>lp.isText(t)||zd.isInline(e,t):t=>zd.isBlock(e,t));var[d]=zd.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=zd.pathRef(e,p),v=zd.isEnd(e,a,p);kp.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Yd.next(g):g}var y=Yd.parent(a),m=a[a.length-1];if(o||!zd.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Yd.next(a)}if(a=Yd.previous(a),s){var E=zd.end(e,a);E&&kp.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Yd.isPath(n)?Ep(e,n):t=>zd.isBlock(e,t)),n){var a=zd.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return zd.pathRef(e,n)}));for(var s of u){var c=s.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=zd.node(e,Yd.parent(c)),[f,d]=l,p=c[c.length-1],{length:h}=f.children;if(1===h){var v=Yd.next(d);kp.moveNodes(e,{at:c,to:v,voids:o}),kp.removeNodes(e,{at:d,voids:o})}else if(0===p)kp.moveNodes(e,{at:c,to:d,voids:o});else if(p===h-1){var g=Yd.next(d);kp.moveNodes(e,{at:c,to:g,voids:o})}else{var y=Yd.next(c),m=Yd.next(d);kp.splitNodes(e,{at:y,voids:o}),kp.moveNodes(e,{at:c,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Yd.isPath(r)){var[u]=zd.parent(e,r);n=e=>u.children.includes(e)}else n=t=>zd.isBlock(e,t);if(!o&&rp.isRange(r)&&(r=zd.unhangRange(e,r)),rp.isRange(r))if(rp.isCollapsed(r))r=r.anchor;else{var[,s]=rp.edges(r),c=zd.pointRef(e,s);kp.delete(e,{at:r}),r=c.unref(),null==t.at&&kp.select(e,r)}var[l]=zd.nodes(e,{at:r,match:n,voids:i,mode:a}),f=zd.previous(e,{at:r,match:n,voids:i,mode:a});if(l&&f){var[d,p]=l,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=Yd.next(v),b=Yd.common(p,v),w=Yd.isSibling(p,v),E=Array.from(zd.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=zd.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&bp(e,t)}),C=S&&zd.pathRef(e,S[1]);if(lp.isText(d)&&lp.isText(h)){var D=id(d,hp);y=h.text.length,g=D}else{if(!jd.isElement(d)||!jd.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=id(d,vp),y=h.children.length,g=D}w||kp.moveNodes(e,{at:p,to:m,voids:i}),C&&kp.removeNodes(e,{at:C.current,voids:i}),jd.isElement(h)&&zd.isEmpty(e,h)||lp.isText(h)&&""===h.text&&0!==v[v.length-1]?kp.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){zd.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Yd.isPath(r)?Ep(e,r):t=>zd.isBlock(e,t));var u=zd.pathRef(e,n),s=zd.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(s,(t=>{var[,n]=t;return zd.pathRef(e,n)}));for(var l of c){var f=l.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Yd.isSibling(d,f)&&Yd.isAfter(d,f)&&(u.current=Yd.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Yd.isPath(i)?Ep(e,i):t=>zd.isBlock(e,t)),!n&&rp.isRange(i)&&(i=zd.unhangRange(e,i));var u=zd.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return zd.pathRef(e,n)}));for(var c of s){var l=c.unref();if(l){var[f]=zd.node(e,l);e.apply({type:"remove_node",path:l,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zd.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Yd.isPath(o)?Ep(e,o):t=>zd.isBlock(e,t)),!i&&rp.isRange(o)&&(o=zd.unhangRange(e,o)),u&&rp.isRange(o)){if(rp.isCollapsed(o)&&zd.leaf(e,o.anchor)[0].text.length>0)return;var c=zd.rangeRef(e,o,{affinity:"inward"}),[l,f]=rp.edges(o),d="lowest"===a?"lowest":"highest",p=zd.isEnd(e,f,f.path);kp.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=zd.isStart(e,l,l.path);kp.splitNodes(e,{at:l,match:r,mode:d,voids:s,always:!h}),o=c.unref(),null==n.at&&kp.select(e,o)}for(var[v,g]of zd.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>zd.isBlock(e,t)),rp.isRange(i)&&(i=wp(e,i)),Yd.isPath(i)){var s=i,c=zd.point(e,s),[l]=zd.parent(e,s);o=e=>e===l,a=c.path.length-s.length+1,i=c,u=!0}if(i){var f=zd.pointRef(e,i,{affinity:"backward"}),[d]=zd.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=zd.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(jd.isElement(h)&&e.isInline(h)){var g=zd.after(e,v);if(!g){var y=Yd.next(v);kp.insertNodes(e,{text:""},{at:y,voids:r}),g=zd.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=zd.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of zd.levels(e,{at:E,reverse:!0,voids:r})){var x=!1;if(D.length<w.length||0===D.length||!r&&zd.isVoid(e,C))break;var O=f.current,A=zd.isEnd(e,O,D);if(u||!f||!zd.isEdge(e,O,D)){x=!0;var k=Wd.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:k})}S=D[D.length-1]+(x||A?1:0)}if(null==t.at){var B=m.current||zd.end(e,[]);kp.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;kp.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Yd.isPath(i)?Ep(e,i):t=>zd.isBlock(e,t)),Yd.isPath(i)&&(i=zd.range(e,i));var u=rp.isRange(i)?zd.rangeRef(e,i):null,s=zd.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(s,(t=>{var[,n]=t;return zd.pathRef(e,n)})).reverse(),l=function(t){var n=t.unref(),[i]=zd.node(e,n),a=zd.range(e,n);r&&u&&(a=rp.intersection(u.current,a)),kp.liftNodes(e,{at:a,match:e=>jd.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of c)l(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zd.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Yd.isPath(u)?Ep(e,u):e.isInline(t)?t=>zd.isInline(e,t)||lp.isText(t):t=>zd.isBlock(e,t)),o&&rp.isRange(u)){var[s,c]=rp.edges(u),l=zd.rangeRef(e,u,{affinity:"inward"});kp.splitNodes(e,{at:c,match:a,voids:i}),kp.splitNodes(e,{at:s,match:a,voids:i}),u=l.unref(),null==n.at&&kp.select(e,u)}var f=Array.from(zd.nodes(e,{at:u,match:e.isInline(t)?t=>zd.isBlock(e,t):e=>zd.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=rp.isRange(u)?rp.intersection(u,zd.range(e,d)):u;if(p){var h=Array.from(zd.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Yd.equals(o,a)?Yd.parent(o):Yd.common(o,a),s=zd.range(e,o,a),c=zd.node(e,u),[l]=c,f=u.length+1,d=Yd.next(a.slice(0,f)),p=yp(yp({},t),{},{children:[]});kp.insertNodes(e,p,{at:d,voids:i}),kp.moveNodes(e,{at:s,match:e=>jd.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},bp=(e,t)=>{if(jd.isElement(t)){var n=t;return!!zd.isVoid(e,t)||1===n.children.length&&bp(e,n.children[0])}return!zd.isEditor(t)},wp=(e,t)=>{if(rp.isCollapsed(t))return t.anchor;var[,n]=rp.edges(t),r=zd.pointRef(e,n);return kp.delete(e,{at:t}),r.unref()},Ep=(e,t)=>{var[n]=zd.node(e,t);return e=>e===n};function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dp={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)kp.select(e,r.anchor);else if("focus"===n)kp.select(e,r.focus);else if("start"===n){var[o]=rp.edges(r);kp.select(e,o)}else if("end"===n){var[,i]=rp.edges(r);kp.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=rp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=rp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,c={distance:r,unit:o},l={};if(null==a||"anchor"===a){var f=i?zd.before(e,u,c):zd.after(e,u,c);f&&(l.anchor=f)}if(null==a||"focus"===a){var d=i?zd.before(e,s,c):zd.after(e,s,c);d&&(l.focus=d)}kp.setSelection(e,l)}},select(e,t){var{selection:n}=e;if(t=zd.range(e,t),n)kp.setSelection(e,t);else{if(!rp.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=rp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=rp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;kp.setSelection(e,{["anchor"===o?"anchor":"focus"]:Cp(Cp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Qd.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Qd.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},xp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(rp.isRange(a)&&rp.isCollapsed(a)&&(a=a.anchor),Qd.isPoint(a)){var s=zd.void(e,{at:a,mode:"highest"});if(!i&&s){var[,c]=s;a=c}else{var l={unit:r,distance:o};a={anchor:a,focus:n?zd.before(e,a,l)||zd.start(e,[]):zd.after(e,a,l)||zd.end(e,[])},u=!0}}if(Yd.isPath(a))kp.removeNodes(e,{at:a,voids:i});else if(!rp.isCollapsed(a)){if(!u){var[,f]=rp.edges(a),d=zd.end(e,[]);Qd.equals(f,d)||(a=zd.unhangRange(e,a,{voids:i}))}var[p,h]=rp.edges(a),v=zd.above(e,{match:t=>zd.isBlock(e,t),at:p,voids:i}),g=zd.above(e,{match:t=>zd.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Yd.equals(v[1],g[1]),m=Yd.equals(p.path,h.path),b=i?null:zd.void(e,{at:p,mode:"highest"}),w=i?null:zd.void(e,{at:h,mode:"highest"});if(b){var E=zd.before(e,p);E&&v&&Yd.isAncestor(v[1],E.path)&&(p=E)}if(w){var S=zd.after(e,h);S&&g&&Yd.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var x of zd.nodes(e,{at:a,voids:i})){var[O,A]=x;C&&0===Yd.compare(A,C)||(!i&&zd.isVoid(e,O)||!Yd.isCommon(A,p.path)&&!Yd.isCommon(A,h.path))&&(D.push(x),C=A)}var k=Array.from(D,(t=>{var[,n]=t;return zd.pathRef(e,n)})),B=zd.pointRef(e,p),F=zd.pointRef(e,h);if(!m&&!b){var T=B.current,[P]=zd.leaf(e,T),{path:_}=T,{offset:j}=p,N=P.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:_,offset:j,text:N})}for(var I of k){var R=I.unref();kp.removeNodes(e,{at:R,voids:i})}if(!w){var L=F.current,[M]=zd.leaf(e,L),{path:z}=L,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&kp.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var U=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&U&&kp.select(e,U)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(rp.isRange(i))if(r||(i=zd.unhangRange(e,i)),rp.isCollapsed(i))i=i.anchor;else{var[,a]=rp.edges(i);if(!o&&zd.void(e,{at:a}))return;var u=zd.pointRef(e,a);kp.delete(e,{at:i}),i=u.unref()}else Yd.isPath(i)&&(i=zd.start(e,i));if(o||!zd.void(e,{at:i})){var s=zd.above(e,{at:i,match:t=>zd.isInline(e,t),mode:"highest",voids:o});if(s){var[,c]=s;zd.isEnd(e,i,c)?i=zd.after(e,c):zd.isStart(e,i,c)&&(i=zd.before(e,c))}var l=zd.above(e,{match:t=>zd.isBlock(e,t),at:i,voids:o}),[,f]=l,d=zd.isStart(e,i,f),p=zd.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Wd.first({children:t},[]),[,m]=Wd.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(v&&Yd.isAncestor(r,y)&&jd.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&Yd.isAncestor(r,m)&&jd.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Wd.nodes({children:t},{pass:w}))w(E)&&b.push(E);var S=[],C=[],D=[],x=!0,O=!1;for(var[A]of b)jd.isElement(A)&&!e.isInline(A)?(x=!1,O=!0,C.push(A)):x?S.push(A):D.push(A);var[k]=zd.nodes(e,{at:i,match:t=>lp.isText(t)||zd.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=zd.isStart(e,i,B),T=zd.isEnd(e,i,B),P=zd.pathRef(e,p?Yd.next(f):f),_=zd.pathRef(e,T?Yd.next(B):B),j=zd.pathRef(e,f);kp.splitNodes(e,{at:i,match:t=>O?zd.isBlock(e,t):lp.isText(t)||zd.isInline(e,t),mode:O?"lowest":"highest",voids:o});var N=zd.pathRef(e,!F||F&&T?Yd.next(B):B);if(kp.insertNodes(e,S,{at:N.current,match:t=>lp.isText(t)||zd.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&kp.delete(e,{at:j.unref(),voids:o}),kp.insertNodes(e,C,{at:P.current,match:t=>zd.isBlock(e,t),mode:"lowest",voids:o}),kp.insertNodes(e,D,{at:_.current,match:t=>lp.isText(t)||zd.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=D.length>0?Yd.previous(_.current):C.length>0?Yd.previous(P.current):Yd.previous(N.current);var R=zd.end(e,I);kp.select(e,R)}N.unref(),P.unref(),_.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zd.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Yd.isPath(o)&&(o=zd.range(e,o)),rp.isRange(o))if(rp.isCollapsed(o))o=o.anchor;else{var i=rp.end(o);if(!r&&zd.void(e,{at:i}))return;var a=rp.start(o),u=zd.pointRef(e,a);kp.delete(e,{at:o,voids:r}),o=u.unref(),kp.setSelection(e,{anchor:o,focus:o})}if(r||!zd.void(e,{at:o})){var{path:s,offset:c}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:c,text:t})}}}))}};function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(n),!0).forEach((function(t){Kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kp=Ap(Ap(Ap(Ap({},pp),mp),Dp),xp),Bp=9007199254740991,Fp="[object Map]",Tp="[object Promise]",Pp="[object Set]",_p="[object WeakMap]",jp="[object DataView]",Np=/^\[object .+?Constructor\]$/,Ip=/^(?:0|[1-9]\d*)$/,Rp="\\ud800-\\udfff",Lp="\\u0300-\\u036f\\ufe20-\\ufe23",Mp="\\u20d0-\\u20f0",zp="\\ufe0e\\ufe0f",$p="["+Rp+"]",Hp="["+Lp+Mp+"]",Up="\\ud83c[\\udffb-\\udfff]",Vp="[^"+Rp+"]",Wp="(?:\\ud83c[\\udde6-\\uddff]){2}",Gp="[\\ud800-\\udbff][\\udc00-\\udfff]",qp="(?:"+Hp+"|"+Up+")?",Kp="["+zp+"]?",Yp=Kp+qp+"(?:\\u200d(?:"+[Vp,Wp,Gp].join("|")+")"+Kp+qp+")*",Xp="(?:"+[Vp+Hp+"?",Hp,Wp,Gp,$p].join("|")+")",Zp=RegExp(Up+"(?="+Up+")|"+Xp+Yp,"g"),Jp=RegExp("[\\u200d"+Rp+Lp+Mp+zp+"]"),Qp="object"==typeof m&&m&&m.Object===Object&&m,eh="object"==typeof self&&self&&self.Object===Object&&self,th=Qp||eh||Function("return this")();function nh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function rh(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var oh,ih,ah=Function.prototype,uh=Object.prototype,sh=th["__core-js_shared__"],ch=function(){var e=/[^.]+$/.exec(sh&&sh.keys&&sh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lh=ah.toString,fh=uh.hasOwnProperty,dh=uh.toString,ph=RegExp("^"+lh.call(fh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=th.Symbol,vh=hh?hh.iterator:void 0,gh=uh.propertyIsEnumerable,yh=(oh=Object.keys,ih=Object,function(e){return oh(ih(e))}),mh=kh(th,"DataView"),bh=kh(th,"Map"),wh=kh(th,"Promise"),Eh=kh(th,"Set"),Sh=kh(th,"WeakMap"),Ch=Th(mh),Dh=Th(bh),xh=Th(wh),Oh=Th(Eh),Ah=Th(Sh);function kh(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!Nh(e)||function(e){return!!ch&&ch in e}(e))return!1;var t=jh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?ph:Np;return t.test(Th(e))}(n)?n:void 0}var Bh=function(e){return dh.call(e)};function Fh(e,t){return!!(t=null==t?Bp:t)&&("number"==typeof e||Ip.test(e))&&e>-1&&e%1==0&&e<t}function Th(e){if(null!=e){try{return lh.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(mh&&Bh(new mh(new ArrayBuffer(1)))!=jp||bh&&Bh(new bh)!=Fp||wh&&Bh(wh.resolve())!=Tp||Eh&&Bh(new Eh)!=Pp||Sh&&Bh(new Sh)!=_p)&&(Bh=function(e){var t=dh.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Th(n):void 0;if(r)switch(r){case Ch:return jp;case Dh:return Fp;case xh:return Tp;case Oh:return Pp;case Ah:return _p}return t});var Ph=Array.isArray;function _h(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Bp}(e.length)&&!jh(e)}function jh(e){var t=Nh(e)?dh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Nh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ih(e){return!!e&&"object"==typeof e}function Rh(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return _h(e)?function(e,t){var n=Ph(e)||function(e){return function(e){return Ih(e)&&_h(e)}(e)&&fh.call(e,"callee")&&(!gh.call(e,"callee")||"[object Arguments]"==dh.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!fh.call(e,i)||o&&("length"==i||Fh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||uh))return yh(e);var t,n,r=[];for(var o in Object(e))fh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var Lh=function(e){if(!e)return[];if(_h(e))return function(e){return"string"==typeof e||!Ph(e)&&Ih(e)&&"[object String]"==dh.call(e)}(e)?function(e){return function(e){return Jp.test(e)}(e)?function(e){return e.match(Zp)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(vh&&e[vh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[vh]());var t=Bh(e);return(t==Fp?nh:t==Pp?rh:Rh)(e)};function Mh(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function zh(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Mh(t[n])&&Mh(e[n])&&Object.keys(t[n]).length>0&&zh(e[n],t[n])}))}var $h={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Hh(){var e="undefined"!=typeof document?document:{};return zh(e,$h),e}var Uh={document:$h,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Vh(){var e="undefined"!=typeof window?window:{};return zh(e,Uh),e}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wh(e)}function Gh(e,t){return Gh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gh(e,t)}function qh(e,t,n){return qh=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Gh(o,n.prototype),o},qh.apply(null,arguments)}function Kh(e){var t="function"==typeof Map?new Map:void 0;return Kh=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return qh(e,arguments,Wh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Gh(n,e)},Kh(e)}var Yh=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Kh(Array));function Xh(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Xh(e)):t.push(e)})),t}function Zh(e,t){return Array.prototype.filter.call(e,t)}function Jh(e,t){var n=Vh(),r=Hh(),o=[];if(!t&&e instanceof Yh)return e;if(!e)return new Yh(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Yh)return e;o=e}return new Yh(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Xh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function ev(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Xh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function tv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Xh(t.map((function(e){return e.split(" ")})));return Zh(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function nv(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function rv(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ov(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function iv(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function av(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Jh(t).is(o))i.apply(t,n);else for(var r=Jh(t).parents(),a=0;a<r.length;a+=1)Jh(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var c,l=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(c=0;c<l.length;c+=1){var p=l[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(c=0;c<l.length;c+=1){var h=l[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function uv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var c=u[s],l=0;l<this.length;l+=1){var f=this[l],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[c]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(c,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(c,h.proxyListener,a),d.splice(p,1))}}return this}function sv(){var e=Vh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function cv(){var e=Vh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function lv(){if(this.length>0){var e=Vh(),t=Hh(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function fv(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function dv(){for(var e=Vh(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function pv(e,t){var n,r=Vh();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function hv(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function vv(e){return Jh(Zh(this,e))}function gv(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function yv(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function mv(e){var t,n,r=Vh(),o=Hh(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Jh(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Yh){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function bv(){for(var e,t=Hh(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Yh)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function wv(e){var t,n,r=Hh();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Yh)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Ev(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Jh(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Jh(t)}function Sv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Jh(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Jh(t)}function Cv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Jh(t)}function Dv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Jh(r[o]).is(e)||t.push(r[o]);return Jh(t)}function xv(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Ov(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Jh.fn=Yh.prototype;var Av="resize scroll".split(" ");function kv(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Av.indexOf(e)<0&&(e in this[o]?this[o][e]():Jh(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Bv=kv("click"),Fv=kv("focus"),Tv=9007199254740991,Pv=/^(?:0|[1-9]\d*)$/;function _v(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var jv=Object.prototype,Nv=jv.hasOwnProperty,Iv=jv.toString,Rv=jv.propertyIsEnumerable,Lv=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Mv,zv=(Mv=function(e,t){return e&&$v(e,t,Wv)},function(e,t){if(null==e)return e;if(!Vv(e))return Mv(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),$v=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function Hv(e,t){return!!(t=null==t?Tv:t)&&("number"==typeof e||Pv.test(e))&&e>-1&&e%1==0&&e<t}var Uv=Array.isArray;function Vv(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Tv}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Iv.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Wv(e){return Vv(e)?function(e,t){var n=Uv(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Vv(e)}(e)&&Nv.call(e,"callee")&&(!Rv.call(e,"callee")||"[object Arguments]"==Iv.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Nv.call(e,i)||o&&("length"==i||Hv(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||jv))return Lv(e);var t,n,r=[];for(var o in Object(e))Nv.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Gv(e){return e}var qv=function(e,t){return(Uv(e)?_v:zv)(e,"function"==typeof t?t:Gv)};let Kv=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");var Yv="Expected a function",Xv=/^\s+|\s+$/g,Zv=/^[-+]0x[0-9a-f]+$/i,Jv=/^0b[01]+$/i,Qv=/^0o[0-7]+$/i,eg=parseInt,tg="object"==typeof m&&m&&m.Object===Object&&m,ng="object"==typeof self&&self&&self.Object===Object&&self,rg=tg||ng||Function("return this")(),og=Object.prototype.toString,ig=Math.max,ag=Math.min,ug=function(){return rg.Date.now()};function sg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==og.call(e)}(e))return NaN;if(sg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=sg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Xv,"");var n=Jv.test(e);return n||Qv.test(e)?eg(e.slice(2),n?2:8):Zv.test(e)?NaN:+e}var lg=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(Yv);return sg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(Yv);function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=ug();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?ag(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=ug(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=cg(t)||0,sg(n)&&(l=!!n.leading,i=(f="maxWait"in n)?ig(cg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(ug())},y}(e,t,{leading:r,maxWait:t,trailing:o})};function fg(e){if(dg(e)){for(;e&&dg(e);)e=pg(e).parent;return null!=e?e:null}return e.parentNode}function dg(e){return 11===e.nodeType}function pg(e,t){var n,r,o;const i=e;return null!==(n=i.parent)&&void 0!==n||(i.parent=null!=t?t:null),null!==(r=i.firstChildNode)&&void 0!==r||(i.firstChildNode=e.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=e.lastChild),i}const hg={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createDocumentFragment:function(){return pg(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){if(dg(e)){let t=e;for(;t&&dg(t);)t=pg(t).parent;e=null!=t?t:e}dg(t)&&(t=pg(t,e)),n&&dg(n)&&(n=pg(n).firstChildNode),e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){dg(t)&&(t=pg(t,e)),e.appendChild(t)},parentNode:fg,nextSibling:function(e){var t;if(dg(e)){const n=pg(e),r=fg(n);if(r&&n.lastChildNode){const e=Array.from(r.childNodes),o=e.indexOf(n.lastChildNode);return null!==(t=e[o+1])&&void 0!==t?t:null}return null}return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType},isDocumentFragment:dg};function vg(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const gg=Array.isArray;function yg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function mg(e){return void 0===e}function bg(e){return void 0!==e}const wg=vg("",{},[],void 0,void 0);function Eg(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is),a=e.sel===t.sel,u=!(!e.sel&&e.sel===t.sel)||typeof e.text==typeof t.text;return a&&o&&i&&u}function Sg(){throw new Error("The document fragment is not supported on this platform.")}function Cg(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Dg=["create","update","remove","destroy","pre","post"];function xg(e,t,n){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=void 0!==t?t:hg;for(const t of Dg)for(const n of e){const e=n[t];void 0!==e&&r[t].push(e)}function i(e,t){return function(){if(0==--t){const t=o.parentNode(e);null!==t&&o.removeChild(t,e)}}}function a(e,t){var i,u,s,c;let l,f=e.data;if(void 0!==f){const t=null===(i=f.hook)||void 0===i?void 0:i.init;bg(t)&&(t(e),f=e.data)}const d=e.children,p=e.sel;if("!"===p)mg(e.text)&&(e.text=""),e.elm=o.createComment(e.text);else if(""===p)e.elm=o.createTextNode(e.text);else if(void 0!==p){const n=p.indexOf("#"),i=p.indexOf(".",n),s=n>0?n:p.length,c=i>0?i:p.length,h=-1!==n||-1!==i?p.slice(0,Math.min(s,c)):p,v=e.elm=bg(f)&&bg(l=f.ns)?o.createElementNS(l,h,f):o.createElement(h,f);for(s<c&&v.setAttribute("id",p.slice(s+1,c)),i>0&&v.setAttribute("class",p.slice(c+1).replace(/\./g," ")),l=0;l<r.create.length;++l)r.create[l](wg,e);if(!yg(e.text)||gg(d)&&0!==d.length||o.appendChild(v,o.createTextNode(e.text)),gg(d))for(l=0;l<d.length;++l){const e=d[l];null!=e&&o.appendChild(v,a(e,t))}const g=e.data.hook;bg(g)&&(null===(u=g.create)||void 0===u||u.call(g,wg,e),g.insert&&t.push(e))}else if((null===(s=null==n?void 0:n.experimental)||void 0===s?void 0:s.fragments)&&e.children){for(e.elm=(null!==(c=o.createDocumentFragment)&&void 0!==c?c:Sg)(),l=0;l<r.create.length;++l)r.create[l](wg,e);for(l=0;l<e.children.length;++l){const n=e.children[l];null!=n&&o.appendChild(e.elm,a(n,t))}}else e.elm=o.createTextNode(e.text);return e.elm}function u(e,t,n,r,i,u){for(;r<=i;++r){const i=n[r];null!=i&&o.insertBefore(e,a(i,u),t)}}function s(e){var t,n;const o=e.data;if(void 0!==o){null===(n=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===n||n.call(t,e);for(let t=0;t<r.destroy.length;++t)r.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function c(e,t,n,a){for(var u,l;n<=a;++n){let a,f;const d=t[n];if(null!=d)if(bg(d.sel)){s(d),a=r.remove.length+1,f=i(d.elm,a);for(let e=0;e<r.remove.length;++e)r.remove[e](d,f);const e=null===(l=null===(u=null==d?void 0:d.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;bg(e)?e(d,f):f()}else d.children?(s(d),c(e,d.children,0,d.children.length-1)):o.removeChild(e,d.elm)}}function l(e,t,n){var i,s,f,d,p,h,v,g;const y=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==y?void 0:y.prepatch)||void 0===s||s.call(y,e,t);const m=t.elm=e.elm;if(e===t)return;if(void 0!==t.data||bg(t.text)&&t.text!==e.text){null!==(f=t.data)&&void 0!==f||(t.data={}),null!==(d=e.data)&&void 0!==d||(e.data={});for(let n=0;n<r.update.length;++n)r.update[n](e,t);null===(v=null===(h=null===(p=t.data)||void 0===p?void 0:p.hook)||void 0===h?void 0:h.update)||void 0===v||v.call(h,e,t)}const b=e.children,w=t.children;mg(t.text)?bg(b)&&bg(w)?b!==w&&function(e,t,n,r){let i,s,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],w=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==w?w=n[--m]:Eg(g,b)?(l(g,b,r),g=t[++p],b=n[++h]):Eg(y,w)?(l(y,w,r),y=t[--v],w=n[--m]):Eg(g,w)?(l(g,w,r),o.insertBefore(e,g.elm,o.nextSibling(y.elm)),g=t[++p],w=n[--m]):Eg(y,b)?(l(y,b,r),o.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=Cg(t,p,v)),s=i[b.key],mg(s)?(o.insertBefore(e,a(b,r),g.elm),b=n[++h]):mg(i[w.key])?(o.insertBefore(e,a(w,r),o.nextSibling(y.elm)),w=n[--m]):(f=t[s],f.sel!==b.sel?o.insertBefore(e,a(b,r),g.elm):(l(f,b,r),t[s]=void 0,o.insertBefore(e,f.elm,g.elm)),b=n[++h]));h<=m&&(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,r)),p<=v&&c(e,t,p,v)}(m,b,w,n):bg(w)?(bg(e.text)&&o.setTextContent(m,""),u(m,null,w,0,w.length-1,n)):bg(b)?c(m,b,0,b.length-1):bg(e.text)&&o.setTextContent(m,""):e.text!==t.text&&(bg(b)&&c(m,b,0,b.length-1),o.setTextContent(m,t.text)),null===(g=null==y?void 0:y.postpatch)||void 0===g||g.call(y,e,t)}return function(e,t){let n,i,u;const s=[];for(n=0;n<r.pre.length;++n)r.pre[n]();for(function(e,t){return e.isElement(t)}(o,e)?e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),r=n?"."+n.split(" ").join("."):"";return vg(o.tagName(e).toLowerCase()+t+r,{},[],void 0,e)}(e):function(e,t){return e.isDocumentFragment(t)}(o,e)&&(e=function(e){return vg(void 0,{},[],void 0,e)}(e)),Eg(e,t)?l(e,t,s):(i=e.elm,u=o.parentNode(i),a(t,s),null!==u&&(o.insertBefore(u,t.elm,o.nextSibling(i)),c(u,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<r.post.length;++n)r.post[n]();return t}}function Og(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e];if("string"==typeof n)continue;const r=n.data;void 0!==r&&Og(r,n.children,n.sel)}}function Ag(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),gg(n)?r=n:yg(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(gg(t)?r=t:yg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)yg(r[i])&&(r[i]=vg(void 0,void 0,void 0,r[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Og(a,r,e),vg(e,a,r,o,void 0)}function kg(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?109===n.charCodeAt(1)?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,e):r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Bg={create:kg,update:kg};function Fg(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Tg={create:Fg,update:Fg},Pg=/[A-Z]/g;function _g(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)r in i||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Pg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Pg,"-$&").toLowerCase(),i[r]))}const jg={create:_g,update:_g};function Ng(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Ng(e[r],t,n)}function Ig(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Ng(r[n],t,e)}function Rg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Ig(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Lg={create:Rg,update:Rg,destroy:Rg};function Mg(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const zg={create:Mg,update:Mg},$g="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let Hg=!1;function Ug(e,t,n){!function(e){$g((function(){$g(e)}))}((function(){e[t]=n}))}function Vg(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)r in a||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Ug(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Wg={pre:function(){Hg=!1},create:Vg,update:Vg,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Hg||(e.elm.offsetLeft,Hg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const c=getComputedStyle(o)["transition-property"].split(", ");for(;i<c.length;++i)-1!==s.indexOf(c[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Gg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Gg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(vg(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function qg(e,t,...n){const r=Gg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Ag(e,t,r[0].text):Ag(e,t,r)}var Kg,Yg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zg="\\ud800-\\udfff",Jg="\\u0300-\\u036f\\ufe20-\\ufe23",Qg="\\u20d0-\\u20f0",ey="\\u2700-\\u27bf",ty="a-z\\xdf-\\xf6\\xf8-\\xff",ny="A-Z\\xc0-\\xd6\\xd8-\\xde",ry="\\ufe0e\\ufe0f",oy="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",iy="["+Zg+"]",ay="["+oy+"]",uy="["+Jg+Qg+"]",sy="\\d+",cy="["+ey+"]",ly="["+ty+"]",fy="[^"+Zg+oy+sy+ey+ty+ny+"]",dy="\\ud83c[\\udffb-\\udfff]",py="[^"+Zg+"]",hy="(?:\\ud83c[\\udde6-\\uddff]){2}",vy="[\\ud800-\\udbff][\\udc00-\\udfff]",gy="["+ny+"]",yy="(?:"+ly+"|"+fy+")",my="(?:"+gy+"|"+fy+")",by="(?:['’](?:d|ll|m|re|s|t|ve))?",wy="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ey="(?:"+uy+"|"+dy+")?",Sy="["+ry+"]?",Cy=Sy+Ey+"(?:\\u200d(?:"+[py,hy,vy].join("|")+")"+Sy+Ey+")*",Dy="(?:"+[cy,hy,vy].join("|")+")"+Cy,xy="(?:"+[py+uy+"?",uy,hy,vy,iy].join("|")+")",Oy=RegExp("['’]","g"),Ay=RegExp(uy,"g"),ky=RegExp(dy+"(?="+dy+")|"+xy+Cy,"g"),By=RegExp([gy+"?"+ly+"+"+by+"(?="+[ay,gy,"$"].join("|")+")",my+"+"+wy+"(?="+[ay,gy+yy,"$"].join("|")+")",gy+"?"+yy+"+"+by,gy+"+"+wy,sy,Dy].join("|"),"g"),Fy=RegExp("[\\u200d"+Zg+Jg+Qg+ry+"]"),Ty=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Py="object"==typeof m&&m&&m.Object===Object&&m,_y="object"==typeof self&&self&&self.Object===Object&&self,jy=Py||_y||Function("return this")(),Ny=(Kg={"À":"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","ſ":"ss"},function(e){return null==Kg?void 0:Kg[e]});function Iy(e){return Fy.test(e)}var Ry=Object.prototype.toString,Ly=jy.Symbol,My=Ly?Ly.prototype:void 0,zy=My?My.toString:void 0;function $y(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Ry.call(e)}(e))return zy?zy.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Hy,Uy=(Hy=function(e,t,n){return t=t.toLowerCase(),e+(n?Vy($y(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=$y(e),void 0===(t=t)?function(e){return Ty.test(e)}(e)?function(e){return e.match(By)||[]}(e):function(e){return e.match(Yg)||[]}(e):e.match(t)||[]}(function(e){return(e=$y(e))&&e.replace(Xg,Ny).replace(Ay,"")}(e).replace(Oy,"")),Hy,"")}),Vy=("toUpperCase",function(e){var t=Iy(e=$y(e))?function(e){return Iy(e)?function(e){return e.match(ky)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Wy=Uy,Gy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),qy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ky={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Gy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Yy={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Xy=1;Xy<20;Xy++)Yy["f"+Xy]=111+Xy;function Zy(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in qy)r[qy[a]]=!1;var u=!0,s=!1,c=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var d=l.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Qy(d),v=qy[h];if(d.length>1&&!v&&!Ky[d]&&!Yy[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=Jy(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,c=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Jy(e){return e=Qy(e),Yy[e]||e.toUpperCase().charCodeAt(0)}function Qy(e){return e=e.toLowerCase(),Ky[e]||e}var em=Zy,tm=function(e,t){return Zy(e,{byKey:!0},t)},nm=/^\s+|\s+$/g,rm=/^[-+]0x[0-9a-f]+$/i,om=/^0b[01]+$/i,im=/^0o[0-7]+$/i,am=parseInt,um="object"==typeof m&&m&&m.Object===Object&&m,sm="object"==typeof self&&self&&self.Object===Object&&self,cm=um||sm||Function("return this")(),lm=Object.prototype.toString,fm=Math.max,dm=Math.min,pm=function(){return cm.Date.now()};function hm(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function vm(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==lm.call(e)}(e))return NaN;if(hm(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hm(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(nm,"");var n=om.test(e);return n||im.test(e)?am(e.slice(2),n?2:8):rm.test(e)?NaN:+e}var gm=function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=pm();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?dm(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=pm(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=vm(t)||0,hm(n)&&(l=!!n.leading,i=(f="maxWait"in n)?fm(vm(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(pm())},y},ym=w((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",c="[object Map]",l="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,_={};_[o]=_["[object Array]"]=_[b]=_[w]=_[i]=_[a]=_[E]=_[S]=_[C]=_[D]=_[x]=_[c]=_[l]=_[f]=_[p]=_[h]=_[v]=_[g]=_[O]=_[A]=_[k]=_[B]=!0,_["[object Error]"]=_[u]=_[y]=!1;var j="object"==typeof m&&m&&m.Object===Object&&m,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),R=t&&!t.nodeType&&t,L=R&&e&&!e.nodeType&&e,M=L&&L.exports===R;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,ce=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ve=Ne(I,"Set"),ge=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ve),Se=ze(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Oe(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Te(e,t,n,r,d,y,m){var T;if(r&&(T=y?r(e,d,y,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var P=He(e);if(P){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Re(e),N=j==u||j==s;if(Ve(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==f||j==o||N&&!y){if(U(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return _e(e,Ie(e),t)}(e,function(e,t){return e&&_e(t,qe(t),e)}(T,e))}else{if(!_[j])return y?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case i:case a:return new o(+e);case w:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case S:case C:case D:case x:case O:case A:case k:case B:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case l:case v:return new o(e);case p:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case g:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,j,Te,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!P)var R=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(R||e,(function(o,i){R&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,m))})),T}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function _e(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ge(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||U(e)?te:T).test(ze(e))}(n)?n:void 0}xe.prototype.clear=function(){this.__data__=ye?ye(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Fe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(pe||Oe),string:new xe}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Oe},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ie=ce?W(ce,Object):function(){return[]},Re=function(e){return ee.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Re(new de(new ArrayBuffer(1)))!=w||pe&&Re(new pe)!=c||he&&Re(he.resolve())!=d||ve&&Re(new ve)!=h||ge&&Re(new ge)!=y)&&(Re=function(e){var t=ee.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return d;case Ee:return h;case Se:return y}return t});var He=Array.isArray;function Ue(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!We(e)}var Ve=le||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ue(e)?function(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ue(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Q.call(e,a)||i&&("length"==a||Le(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function mm(e){return e<10?`0${e}`:e.toString()}var bm=function(){const e=new Date;return`${mm(e.getHours())}:${mm(e.getMinutes())}:${mm(e.getSeconds())}`},wm=w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.justErrorsLogger=t.debugLogger=void 0;const n={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bm()}]`,...t)}};t.justErrorsLogger=n;const r={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${bm()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${bm()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bm()}]`,...t)}};t.debugLogger=r})),Em={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",o=n;for(;o--;)r+=e[Math.random()*e.length|0];return r}},Sm=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Cm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Cm.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var Dm=/[\/\+\.]/,xm=w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=t.RestrictionError=t.Restricter=void 0,t.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class n extends Error{constructor(){super(...arguments),this.isRestriction=!0}}t.RestrictionError=n,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}}),t.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:r,minFileSize:o,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:u}=this.getOpts().restrictions;if(a){if(t.filter((e=>!e.isGhost)).length+1>a)throw new n(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`)}if(u&&!u.some((t=>t.includes("/")?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Cm(e,Dm);return void 0!==t?r.match(t):r}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const e=u.join(", ");throw new n(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size){if(t.reduce(((e,t)=>e+t.size),e.size)>i)throw new n(this.i18n("exceedsSize",{size:Sm(i),file:e.name}))}if(r&&null!=e.size&&e.size>r)throw new n(this.i18n("exceedsSize",{size:Sm(r),file:e.name}));if(o&&null!=e.size&&e.size<o)throw new n(this.i18n("inferiorSize",{size:Sm(o)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new n(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new n(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const t of r)o.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}}})),Om=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Am(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var km=0;function Bm(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
22
|
+
/**
|
23
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
24
|
+
* and replaces it with values from options `{smart_count: 5}`
|
25
|
+
*
|
26
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
27
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
28
|
+
*
|
29
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
30
|
+
* @param {object} options with values that will be used to replace placeholders
|
31
|
+
* @returns {any[]} interpolated
|
32
|
+
*/function Fm(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=Bm(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Tm=function(e){return"__private_"+km+++"_"+e}("apply");function Pm(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var _m=class{constructor(e){Object.defineProperty(this,Tm,{value:Pm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Am(this,Tm)[Tm],this):Am(this,Tm)[Tm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!Om(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return Fm(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Fm(n,t)}},jm=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},Nm=0;var Im=function(e){return"__private_"+Nm+++"_"+e}("publish");class Rm{constructor(){Object.defineProperty(this,Im,{value:Lm}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Im)[Im](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Lm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Rm.VERSION="2.1.1";var Mm=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},zm={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function $m(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Hm=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218},Um={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Vm=Em;let Wm,Gm;function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Ym(e){return"__private_"+Km+++"_"+e}var Xm=Ym("plugins"),Zm=Ym("restricter"),Jm=Ym("storeUnsubscribe"),Qm=Ym("emitter"),eb=Ym("preProcessors"),tb=Ym("uploaders"),nb=Ym("postProcessors"),rb=Ym("informAndEmit"),ob=Ym("checkRequiredMetaFieldsOnFile"),ib=Ym("checkRequiredMetaFields"),ab=Ym("assertNewUploadAllowed"),ub=Ym("checkAndCreateFileStateObject"),sb=Ym("startIfAutoProceed"),cb=Ym("addListeners"),lb=Ym("updateOnlineStatus"),fb=Ym("createUpload"),db=Ym("getUpload"),pb=Ym("removeUpload"),hb=Ym("runUpload");Wm=Symbol.for("uppy test: getPlugins"),Gm=Symbol.for("uppy test: createUpload");class vb{constructor(e){Object.defineProperty(this,hb,{value:Ob}),Object.defineProperty(this,pb,{value:xb}),Object.defineProperty(this,db,{value:Db}),Object.defineProperty(this,fb,{value:Cb}),Object.defineProperty(this,cb,{value:Sb}),Object.defineProperty(this,sb,{value:Eb}),Object.defineProperty(this,ub,{value:wb}),Object.defineProperty(this,ab,{value:bb}),Object.defineProperty(this,ib,{value:mb}),Object.defineProperty(this,ob,{value:yb}),Object.defineProperty(this,rb,{value:gb}),Object.defineProperty(this,Xm,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:jm()}),Object.defineProperty(this,eb,{writable:!0,value:new Set}),Object.defineProperty(this,tb,{writable:!0,value:new Set}),Object.defineProperty(this,nb,{writable:!0,value:new Set}),Object.defineProperty(this,lb,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Um;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:xm.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Rm,logger:wm.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=wm.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=lg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Hm(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),qm(this,Zm)[Zm]=new xm.Restricter((()=>this.opts),this.i18n),qm(this,Jm)[Jm]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),qm(this,cb)[cb]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];qm(this,Qm)[Qm].emit(e,...n)}on(e,t){return qm(this,Qm)[Qm].on(e,t),this}once(e,t){return qm(this,Qm)[Qm].once(e,t),this}off(e,t){return qm(this,Qm)[Qm].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new _m([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){qm(this,eb)[eb].add(e)}removePreProcessor(e){return qm(this,eb)[eb].delete(e)}addPostProcessor(e){qm(this,nb)[nb].add(e)}removePostProcessor(e){return qm(this,nb)[nb].delete(e)}addUploader(e){qm(this,tb)[tb].add(e)}removeUploader(e){return qm(this,tb)[tb].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),c=r.filter((e=>e.progress.uploadComplete)),l=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&c.length===r.length&&0===d.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return qm(this,Zm)[Zm].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){qm(this,ab)[ab](e);const{files:t}=this.getState();let n=qm(this,ub)[ub](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),qm(this,sb)[sb](),n.id}addFiles(e){qm(this,ab)[ab]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=qm(this,ub)[ub](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&qm(this,sb)[sb](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);if(0===t.length)return void delete i[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...r[e],fileIDs:t}}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=qm(this,fb)[fb](t,{forceAllowNewUpload:!0});return qm(this,hb)[hb](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=qm(this,fb)[fb]([e],{forceAllowNewUpload:!0});return qm(this,hb)[hb](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in qm(this,Xm)[Xm]?qm(this,Xm)[Xm][n.type].push(n):qm(this,Xm)[Xm][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(qm(this,Xm)[Xm])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Wm](e){return qm(this,Xm)[Xm][e]}iteratePlugins(e){Object.values(qm(this,Xm)[Xm]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=qm(this,Xm)[Xm][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),qm(this,Jm)[Jm](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",qm(this,lb)[lb]),window.removeEventListener("offline",qm(this,lb)[lb]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?qm(this,hb)[hb](e):(qm(this,pb)[pb](e),Promise.reject(new Error("Nonexistent upload")))}[Gm](){return qm(this,fb)[fb](...arguments)}addResultData(e,t){if(!qm(this,db)[db](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=qm(this,Xm)[Xm].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>qm(this,Zm)[Zm].validateMinNumberOfFiles(t))).catch((e=>{throw qm(this,rb)[rb](e),e})).then((()=>{if(!qm(this,ib)[ib](t))throw new xm.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=qm(this,fb)[fb](r);return qm(this,hb)[hb](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function gb(e,t){const{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(`${n} ${r}`.trim(),"error")}function yb(e){const{missingFields:t,error:n}=qm(this,Zm)[Zm].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),1))}function mb(e){let t=!0;for(const n of Object.values(e))qm(this,ob)[ob](n)||(t=!1);return t}function bb(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new xm.RestrictionError(this.i18n("noMoreFilesAllowed"));throw qm(this,rb)[rb](t,e),t}}function wb(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Mm(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in zm?zm[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Mm(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${$m(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${$m(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new xm.RestrictionError(this.i18n("noDuplicates",{fileName:r}));throw qm(this,rb)[rb](e,t),e}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const l=this.opts.onBeforeFileAdded(c,e);if(!1===l){const e=new xm.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof l&&null!==l&&(c=l);try{const t=Object.keys(e).map((t=>e[t]));qm(this,Zm)[Zm].validate(c,t)}catch(e){throw qm(this,rb)[rb](e,c),e}return c}function Eb(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Sb(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),qm(this,rb)[rb](e)}else qm(this,rb)[rb](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:qm(this,nb)[nb].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&qm(this,ob)[ob](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",qm(this,lb)[lb]),window.addEventListener("offline",qm(this,lb)[lb]),setTimeout(qm(this,lb)[lb],3e3))}function Cb(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=(0,Vm.nanoid)();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Db(e){const{currentUploads:t}=this.getState();return t[e]}function xb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Ob(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...qm(this,eb)[eb],...qm(this,tb)[tb],...qm(this,nb)[nb]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw qm(this,pb)[pb](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),qm(this,pb)[pb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}vb.VERSION="2.3.4";var Ab=vb,kb=w((function(e,t){var n,r,o,i,a,u,s,c,l,f,d,p,h={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return E(e,u,o,i,null)}function E(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(u),u}function S(e){return e.children}function C(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?D(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function O(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!A.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)(A)}function A(){var e,t,n,o,i,u,s,l;for(a.sort(c);e=a.shift();)e.__d&&(t=a.length,o=void 0,u=(i=(n=e).__v).__e,s=[],l=[],n.__P&&((o=m({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),N(n.__P,o,i,n.__n,n.__P.namespaceURI,32&i.__u?[u]:null,s,null==u?D(i):u,!!(32&i.__u),l),o.__v=i.__v,o.__.__k[o.__i]=o,I(s,o,l),o.__e!=u&&x(o)),a.length>t&&a.sort(c));A.__r=0}function k(e,t,n,r,o,i,a,u,s,c,l){var f,d,p,g,y,m=r&&r.__k||v,b=t.length;for(n.__d=s,B(n,t,m),s=n.__d,f=0;f<b;f++)null!=(p=n.__k[f])&&(d=-1===p.__i?h:m[p.__i]||h,p.__i=f,N(e,p,d,o,i,a,u,s,c,l),g=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&L(d.ref,null,p),l.push(p.ref,p.__c||g,p)),null==y&&null!=g&&(y=g),65536&p.__u||d.__k===p.__k?s=F(p,s,e):"function"==typeof p.type&&void 0!==p.__d?s=p.__d:g&&(s=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=s,n.__e=y}function B(e,t,n){var r,o,i,a,u,s=t.length,c=n.length,l=c,f=0;for(e.__k=[],r=0;r<s;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(a=r+f,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?E(null,o,null,null,null):y(o)?E(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?E(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(u=o.__i=T(o,n,a,l))&&(l--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&f--,"function"!=typeof o.type&&(o.__u|=65536)):u!==a&&(u==a-1?f--:u==a+1?f++:(u>a?f--:f++,o.__u|=65536))):o=e.__k[r]=null;if(l)for(r=0;r<c;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=D(i)),M(i,i))}function F(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=F(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=D(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function T(e,t,n,r){var o=e.key,i=e.type,a=n-1,u=n+1,s=t[n];if(null===s||s&&o==s.key&&i===s.type&&!(131072&s.__u))return n;if(("function"!=typeof i||i===S||o)&&r>(null==s||131072&s.__u?0:1))for(;a>=0||u<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u<t.length){if((s=t[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function _(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||P(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.t=r.t:(n.t=l,e.addEventListener(t,i?d:f,i)):e.removeEventListener(t,i?d:f,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function j(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.u)t.u=l++;else if(t.u<n.t)return;return r.event&&(t=r.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function N(e,t,n,o,i,a,u,s,c,l){var f,d,p,h,v,g,b,w,E,D,x,O,A,B,F,T,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(f=r.__b)&&f(t);e:if("function"==typeof P)try{if(w=t.props,E="prototype"in P&&P.prototype.render,D=(f=P.contextType)&&o[f.__c],x=f?D?D.props.value:f.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:(E?t.__c=d=new P(w,x):(t.__c=d=new C(w,x),d.constructor=P,d.render=z),D&&D.sub(d),d.props=w,d.state||(d.state={}),d.context=x,d.__n=o,p=d.__d=!0,d.__h=[],d._sb=[]),E&&null==d.__s&&(d.__s=d.state),E&&null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,P.getDerivedStateFromProps(w,d.__s))),h=d.props,v=d.state,d.__v=t,p)E&&null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),E&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(E&&null==P.getDerivedStateFromProps&&w!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,x),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=w,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,x),E&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}if(d.context=x,d.props=w,d.__P=e,d.__e=!1,A=r.__r,B=0,E){for(d.state=d.__s,d.__d=!1,A&&A(t),f=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__d=!1,A&&A(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++B<25);d.state=d.__s,null!=d.getChildContext&&(o=m(m({},o),d.getChildContext())),E&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(h,v)),k(e,y(T=null!=f&&f.type===S&&null==f.key?f.props.children:f)?T:[T],t,n,o,i,a,u,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&u.push(d),b&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=a){for(t.__u|=c?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;r.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,o,i,a,u,c,l);(f=r.diffed)&&f(t)}function I(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)L(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function R(e,t,o,i,a,u,s,c,l){var f,d,p,v,g,m,w,E=o.props,S=t.props,C=t.type;if("svg"===C?a="http://www.w3.org/2000/svg":"math"===C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=u)for(f=0;f<u.length;f++)if((g=u[f])&&"setAttribute"in g==!!C&&(C?g.localName===C:3===g.nodeType)){e=g,u[f]=null;break}if(null==e){if(null===C)return document.createTextNode(S);e=document.createElementNS(a,C,S.is&&S),c&&(r.__m&&r.__m(t,u),c=!1),u=null}if(null===C)E===S||c&&e.data===S||(e.data=S);else{if(u=u&&n.call(e.childNodes),E=o.props||h,!c&&null!=u)for(E={},f=0;f<e.attributes.length;f++)E[(g=e.attributes[f]).name]=g.value;for(f in E)if(g=E[f],"children"==f);else if("dangerouslySetInnerHTML"==f)p=g;else if(!(f in S)){if("value"==f&&"defaultValue"in S||"checked"==f&&"defaultChecked"in S)continue;_(e,f,null,g,a)}for(f in S)g=S[f],"children"==f?v=g:"dangerouslySetInnerHTML"==f?d=g:"value"==f?m=g:"checked"==f?w=g:c&&"function"!=typeof g||E[f]===g||_(e,f,g,E[f],a);if(d)c||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),k(e,y(v)?v:[v],t,o,i,"foreignObject"===C?"http://www.w3.org/1999/xhtml":a,u,s,u?u[0]:o.__k&&D(o,0),c,l),null!=u)for(f=u.length;f--;)b(u[f]);c||(f="value","progress"===C&&null==m?e.removeAttribute("value"):void 0!==m&&(m!==e[f]||"progress"===C&&!m||"option"===C&&m!==E[f])&&_(e,f,m,E[f],a),f="checked",void 0!==w&&w!==e[f]&&_(e,f,w,E[f],a))}return e}function L(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function M(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||L(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&M(o[i],t,n||"function"!=typeof e.type);n||b(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function $(e,t,o){var i,a,u,s;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],s=[],N(t,e=(!i&&o||t).__k=w(S,null,[e]),a||h,h,t.namespaceURI,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i,s),I(u,e,s)}n=v.slice,r={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&null==e.constructor},C.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},C.prototype.render=S,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},A.__r=0,l=0,f=j(!1),d=j(!0),p=0,t.Component=C,t.Fragment=S,t.cloneElement=function(e,t,r){var o,i,a,u,s=m({},e.props);for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=void 0===t[a]&&void 0!==u?u[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),E(e.type,s,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=w,t.createRef=function(){return{current:null}},t.h=w,t.hydrate=function e(t,n){$(t,n,e)},t.isValidElement=i,t.options=r,t.render=$,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(y(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Bb=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}(e)?e:null},Fb=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new _m([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Tb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Pb=0;var _b=function(e){return"__private_"+Pb+++"_"+e}("updateUI");class jb extends Fb{constructor(){super(...arguments),Object.defineProperty(this,_b,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Bb(e);if(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Tb(this,_b)[_b]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,kb.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),(0,kb.render)(this.render(this.uppy.getState()),t),this.el=t,r.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof jb)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(o=e)}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Tb(this,_b))[_b])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Nb=jb,Ib=w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return wm.debugLogger}}),e.exports=Ab,t.UIPlugin=Nb,t.BasePlugin=Fb,t.Uppy=Ab;const n=Nb,r=Fb;Ab.Uppy=Ab,Ab.UIPlugin=n,Ab.BasePlugin=r,Ab.debugLogger=wm.debugLogger})),Rb=b(Ib);class Lb extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var Mb=Lb,zb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Mb(e)}))};class $b extends Error{constructor(e,t){void 0===t&&(t={}),super(e),this.cause=t.cause,this.cause&&Om(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}var Hb=$b;class Ub extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Vb=Ub;let Wb;function Gb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qb=0;function Kb(e){return"__private_"+qb+++"_"+e}async function Yb(e){if(401===e.status)throw new Vb;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Xb=Kb("companionHeaders"),Zb=Kb("getPostResponseFunc"),Jb=Kb("getUrl"),Qb=Kb("errorHandler");Wb=Symbol.for("uppy test: getCompanionHeaders");class ew{constructor(e,t){Object.defineProperty(this,Qb,{value:nw}),Object.defineProperty(this,Jb,{value:tw}),Object.defineProperty(this,Xb,{writable:!0,value:void 0}),Object.defineProperty(this,Zb,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1,Gb(this,Xb)[Xb]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){Gb(this,Xb)[Xb]=e}[Wb](){return Gb(this,Xb)[Xb]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){return Promise.resolve({...ew.defaultHeaders,...Gb(this,Xb)[Xb]})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Gb(this,Jb)[Jb](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>zb(Gb(this,Jb)[Jb](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Gb(this,Zb)[Zb](t)).then(Yb).catch(Gb(this,Qb)[Qb]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>zb(Gb(this,Jb)[Jb](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Gb(this,Zb)[Zb](n)).then(Yb).catch(Gb(this,Qb)[Qb](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>zb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Gb(this,Zb)[Zb](n)).then(Yb).catch(Gb(this,Qb)[Qb](r,e))}}function tw(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function nw(e,t){return n=>{var r;return null!=(r=n)&&r.isAuthError||(n=new Hb(`Could not ${e} ${Gb(this,Jb)[Jb](t)}`,{cause:n})),Promise.reject(n)}}ew.VERSION="2.2.2",ew.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${ew.VERSION}`};var rw=ew,ow=Object.defineProperty({getItem:function(e){return Promise.resolve(localStorage.getItem(e))},removeItem:function(e){return new Promise((t=>{localStorage.removeItem(e),t()}))},setItem:function(e,t){return new Promise((n=>{localStorage.setItem(e,t),n()}))}},"__esModule",{value:!0}),iw=class extends rw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});const t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||ow}},aw=class extends rw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t?`&${t}`:""}`)}};let uw,sw;function cw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lw=0;function fw(e){return"__private_"+lw+++"_"+e}var dw=fw("queued"),pw=fw("emitter"),hw=fw("isOpen"),vw=fw("socket"),gw=fw("handleMessage");uw=Symbol.for("uppy test: getSocket"),sw=Symbol.for("uppy test: getQueued");var yw=class{constructor(e){Object.defineProperty(this,dw,{writable:!0,value:[]}),Object.defineProperty(this,pw,{writable:!0,value:jm()}),Object.defineProperty(this,hw,{writable:!0,value:!1}),Object.defineProperty(this,vw,{writable:!0,value:void 0}),Object.defineProperty(this,gw,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return cw(this,hw)[hw]}[uw](){return cw(this,vw)[vw]}[sw](){return cw(this,dw)[dw]}open(){cw(this,vw)[vw]=new WebSocket(this.opts.target),cw(this,vw)[vw].onopen=()=>{for(cw(this,hw)[hw]=!0;cw(this,dw)[dw].length>0&&cw(this,hw)[hw];){const e=cw(this,dw)[dw].shift();this.send(e.action,e.payload)}},cw(this,vw)[vw].onclose=()=>{cw(this,hw)[hw]=!1},cw(this,vw)[vw].onmessage=cw(this,gw)[gw]}close(){var e;null==(e=cw(this,vw)[vw])||e.close()}send(e,t){cw(this,hw)[hw]?cw(this,vw)[vw].send(JSON.stringify({action:e,payload:t})):cw(this,dw)[dw].push({action:e,payload:t})}on(e,t){cw(this,pw)[pw].on(e,t)}emit(e,t){cw(this,pw)[pw].emit(e,t)}once(e,t){cw(this,pw)[pw].once(e,t)}},mw=w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SearchProvider=t.RequestClient=t.Provider=void 0,t.RequestClient=rw,t.Provider=iw,t.SearchProvider=aw,t.Socket=yw})),bw=w((function(e,t){function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.internalRateLimitedQueue=t.RateLimitedQueue=void 0;var r=0;function o(e){return"__private_"+r+++"_"+e}var i=o("activeRequests"),a=o("queuedHandlers"),u=o("paused"),s=o("pauseTimer"),c=o("downLimit"),l=o("upperLimit"),f=o("rateLimitingTimer"),d=o("call"),p=o("queueNext"),h=o("next"),v=o("queue"),g=o("dequeue"),y=o("resume"),m=o("increaseLimit");function b(e){n(this,i)[i]+=1;let t,r=!1;try{t=e()}catch(e){throw n(this,i)[i]-=1,e}return{abort:()=>{r||(r=!0,n(this,i)[i]-=1,t(),n(this,p)[p]())},done:()=>{r||(r=!0,n(this,i)[i]-=1,n(this,p)[p]())}}}function w(){queueMicrotask((()=>n(this,h)[h]()))}function E(){if(n(this,u)[u]||n(this,i)[i]>=this.limit)return;if(0===n(this,a)[a].length)return;const e=n(this,a)[a].shift(),t=n(this,d)[d](e.fn);e.abort=t.abort,e.done=t.done}function S(e,t){void 0===t&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{n(this,g)[g](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=n(this,a)[a].findIndex((e=>r.priority>e.priority));return-1===o?n(this,a)[a].push(r):n(this,a)[a].splice(o,0,r),r}function C(e){const t=n(this,a)[a].indexOf(e);-1!==t&&n(this,a)[a].splice(t,1)}t.RateLimitedQueue=class{constructor(e){Object.defineProperty(this,g,{value:C}),Object.defineProperty(this,v,{value:S}),Object.defineProperty(this,h,{value:E}),Object.defineProperty(this,p,{value:w}),Object.defineProperty(this,d,{value:b}),Object.defineProperty(this,i,{writable:!0,value:0}),Object.defineProperty(this,a,{writable:!0,value:[]}),Object.defineProperty(this,u,{writable:!0,value:!1}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:1}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,m,{writable:!0,value:()=>{if(n(this,u)[u])n(this,f)[f]=setTimeout(n(this,m)[m],0);else{n(this,c)[c]=this.limit,this.limit=Math.ceil((n(this,l)[l]+n(this,c)[c])/2);for(let e=n(this,c)[c];e<=this.limit;e++)n(this,p)[p]();n(this,l)[l]-n(this,c)[c]>3?n(this,f)[f]=setTimeout(n(this,m)[m],2e3):n(this,c)[c]=Math.floor(n(this,c)[c]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!n(this,u)[u]&&n(this,i)[i]<this.limit?n(this,d)[d](e):n(this,v)[v](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}resume(){n(this,u)[u]=!1,clearTimeout(n(this,s)[s]);for(let e=0;e<this.limit;e++)n(this,p)[p]()}pause(e){void 0===e&&(e=null),n(this,u)[u]=!0,clearTimeout(n(this,s)[s]),null!=e&&(n(this,s)[s]=setTimeout(n(this,y)[y],e))}rateLimit(e){clearTimeout(n(this,f)[f]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(n(this,l)[l]=this.limit-1,this.limit=n(this,c)[c],n(this,f)[f]=setTimeout(n(this,m)[m],e))}get isPaused(){return n(this,u)[u]}};const D=Symbol("__queue");t.internalRateLimitedQueue=D})),ww=lg((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Ew(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Sw=0;function Cw(e){return"__private_"+Sw+++"_"+e}var Dw=Cw("emitter"),xw=Cw("events"),Ow=class{constructor(e){Object.defineProperty(this,Dw,{writable:!0,value:void 0}),Object.defineProperty(this,xw,{writable:!0,value:[]}),Ew(this,Dw)[Dw]=e}on(e,t){return Ew(this,xw)[xw].push([e,t]),Ew(this,Dw)[Dw].on(e,t)}remove(){for(const[e,t]of Ew(this,xw)[xw].splice(0))Ew(this,Dw)[Dw].off(e,t)}};function Aw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kw=0;function Bw(e){return"__private_"+kw+++"_"+e}var Fw=Bw("aliveTimer"),Tw=Bw("isDone"),Pw=Bw("onTimedOut"),_w=Bw("timeout"),jw=class{constructor(e,t){Object.defineProperty(this,Fw,{writable:!0,value:void 0}),Object.defineProperty(this,Tw,{writable:!0,value:!1}),Object.defineProperty(this,Pw,{writable:!0,value:void 0}),Object.defineProperty(this,_w,{writable:!0,value:void 0}),Aw(this,_w)[_w]=e,Aw(this,Pw)[Pw]=t}progress(){Aw(this,Tw)[Tw]||Aw(this,_w)[_w]>0&&(clearTimeout(Aw(this,Fw)[Fw]),Aw(this,Fw)[Fw]=setTimeout(Aw(this,Pw)[Pw],Aw(this,_w)[_w]))}done(){Aw(this,Tw)[Tw]||(clearTimeout(Aw(this,Fw)[Fw]),Aw(this,Fw)[Fw]=null,Aw(this,Tw)[Tw]=!0)}},Nw=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Iw={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};function Rw(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Nw(e)?(n=new Mb(n,e),n):(n.request=e,n)}function Lw(e){return e.data.slice(0,e.data.size,e.meta.type)}class Mw extends Fb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Iw;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Nw(t)&&(n=new Mb(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),bw.internalRateLimitedQueue in this.opts?this.requests=this.opts[bw.internalRateLimitedQueue]:this.requests=new bw.RateLimitedQueue(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Lw(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=Lw(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;let a;this.uploaderEvents[e.id]=new Ow(this.uppy);const u=new jw(r.timeout,(()=>{i.abort(),a.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),s=(0,Vm.nanoid)();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),u.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(()=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),o=n[r.responseUrlFieldName],a={status:i.status,body:n,uploadURL:o};return this.uppy.emit("upload-success",e,a),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}const o=r.getResponseData(i.responseText,i),c=Rw(i,r.getResponseError(i.responseText,i)),l={status:i.status,body:o};return this.uppy.emit("upload-error",e,c,l),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=Rw(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType),a=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{u.done(),i.abort()}})),this.onFileRemove(e.id,(()=>{a.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(e=>{let{reason:t}=e;"user"===t&&a.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?mw.Provider:mw.RequestClient)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new mw.Socket({target:`${a}/api/${i}`,autoOpen:!1});let s;this.uploaderEvents[e.id]=new Ow(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(function(t){let{reason:r}=void 0===t?{}:t;"user"===r&&(u.send("cancel",{}),s.abort()),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>ww(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)})),s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))},c=new jw(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),n(e)}));u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),c.progress()})),u.upload.addEventListener("progress",(t=>{c.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(c.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,s(o),n(o)})),u.addEventListener("error",(()=>{c.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return s(e),n(e)})),this.uppy.on("cancel-all",(function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&(c.done(),u.abort())})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",(function(){n.uppy.getFile(e)&&t(...arguments)}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[bw.internalRateLimitedQueue]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}}Mw.VERSION="2.1.3";var zw=Mw,$w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Hw(e){var t={exports:{}};return e(t,t.exports),t.exports}var Uw,Vw,Ww=function(e){return e&&e.Math===Math&&e},Gw=Ww("object"==typeof globalThis&&globalThis)||Ww("object"==typeof window&&window)||Ww("object"==typeof self&&self)||Ww("object"==typeof $w&&$w)||Ww("object"==typeof $w&&$w)||function(){return this}()||Function("return this")(),qw=function(e){try{return!!e()}catch(e){return!0}},Kw=!qw((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Yw=!qw((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Xw=Function.prototype.call,Zw=Yw?Xw.bind(Xw):function(){return Xw.apply(Xw,arguments)},Jw={}.propertyIsEnumerable,Qw=Object.getOwnPropertyDescriptor,eE=Qw&&!Jw.call({1:2},1)?function(e){var t=Qw(this,e);return!!t&&t.enumerable}:Jw,tE={f:eE},nE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rE=Function.prototype,oE=rE.call,iE=Yw&&rE.bind.bind(oE,oE),aE=Yw?iE:function(e){return function(){return oE.apply(e,arguments)}},uE=aE({}.toString),sE=aE("".slice),cE=function(e){return sE(uE(e),8,-1)},lE=Object,fE=aE("".split),dE=qw((function(){return!lE("z").propertyIsEnumerable(0)}))?function(e){return"String"===cE(e)?fE(e,""):lE(e)}:lE,pE=function(e){return null==e},hE=TypeError,vE=function(e){if(pE(e))throw new hE("Can't call method on "+e);return e},gE=function(e){return dE(vE(e))},yE="object"==typeof document&&document.all,mE=void 0===yE&&void 0!==yE?function(e){return"function"==typeof e||e===yE}:function(e){return"function"==typeof e},bE=function(e){return"object"==typeof e?null!==e:mE(e)},wE=function(e,t){return arguments.length<2?(n=Gw[e],mE(n)?n:void 0):Gw[e]&&Gw[e][t];var n},EE=aE({}.isPrototypeOf),SE=Gw.navigator,CE=SE&&SE.userAgent,DE=CE?String(CE):"",xE=Gw.process,OE=Gw.Deno,AE=xE&&xE.versions||OE&&OE.version,kE=AE&&AE.v8;kE&&(Vw=(Uw=kE.split("."))[0]>0&&Uw[0]<4?1:+(Uw[0]+Uw[1])),!Vw&&DE&&(!(Uw=DE.match(/Edge\/(\d+)/))||Uw[1]>=74)&&(Uw=DE.match(/Chrome\/(\d+)/))&&(Vw=+Uw[1]);var BE=Vw,FE=Gw.String,TE=!!Object.getOwnPropertySymbols&&!qw((function(){var e=Symbol("symbol detection");return!FE(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&BE&&BE<41})),PE=TE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_E=Object,jE=PE?function(e){return"symbol"==typeof e}:function(e){var t=wE("Symbol");return mE(t)&&EE(t.prototype,_E(e))},NE=String,IE=function(e){try{return NE(e)}catch(e){return"Object"}},RE=TypeError,LE=function(e){if(mE(e))return e;throw new RE(IE(e)+" is not a function")},ME=function(e,t){var n=e[t];return pE(n)?void 0:LE(n)},zE=TypeError,$E=Object.defineProperty,HE=function(e,t){try{$E(Gw,e,{value:t,configurable:!0,writable:!0})}catch(n){Gw[e]=t}return t},UE=Hw((function(e){var t="__core-js_shared__",n=e.exports=Gw[t]||HE(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),VE=function(e,t){return UE[e]||(UE[e]=t||{})},WE=Object,GE=function(e){return WE(vE(e))},qE=aE({}.hasOwnProperty),KE=Object.hasOwn||function(e,t){return qE(GE(e),t)},YE=0,XE=Math.random(),ZE=aE(1..toString),JE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ZE(++YE+XE,36)},QE=Gw.Symbol,eS=VE("wks"),tS=PE?QE.for||QE:QE&&QE.withoutSetter||JE,nS=function(e){return KE(eS,e)||(eS[e]=TE&&KE(QE,e)?QE[e]:tS("Symbol."+e)),eS[e]},rS=TypeError,oS=nS("toPrimitive"),iS=function(e){var t=function(e,t){if(!bE(e)||jE(e))return e;var n,r=ME(e,oS);if(r){if(void 0===t&&(t="default"),n=Zw(r,e,t),!bE(n)||jE(n))return n;throw new rS("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&mE(n=e.toString)&&!bE(r=Zw(n,e)))return r;if(mE(n=e.valueOf)&&!bE(r=Zw(n,e)))return r;if("string"!==t&&mE(n=e.toString)&&!bE(r=Zw(n,e)))return r;throw new zE("Can't convert object to primitive value")}(e,t)}(e,"string");return jE(t)?t:t+""},aS=Gw.document,uS=bE(aS)&&bE(aS.createElement),sS=function(e){return uS?aS.createElement(e):{}},cS=!Kw&&!qw((function(){return 7!==Object.defineProperty(sS("div"),"a",{get:function(){return 7}}).a})),lS=Object.getOwnPropertyDescriptor,fS={f:Kw?lS:function(e,t){if(e=gE(e),t=iS(t),cS)try{return lS(e,t)}catch(e){}if(KE(e,t))return nE(!Zw(tE.f,e,t),e[t])}},dS=Kw&&qw((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),pS=String,hS=TypeError,vS=function(e){if(bE(e))return e;throw new hS(pS(e)+" is not an object")},gS=TypeError,yS=Object.defineProperty,mS=Object.getOwnPropertyDescriptor,bS="enumerable",wS="configurable",ES="writable",SS={f:Kw?dS?function(e,t,n){if(vS(e),t=iS(t),vS(n),"function"==typeof e&&"prototype"===t&&"value"in n&&ES in n&&!n[ES]){var r=mS(e,t);r&&r[ES]&&(e[t]=n.value,n={configurable:wS in n?n[wS]:r[wS],enumerable:bS in n?n[bS]:r[bS],writable:!1})}return yS(e,t,n)}:yS:function(e,t,n){if(vS(e),t=iS(t),vS(n),cS)try{return yS(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new gS("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CS=Kw?function(e,t,n){return SS.f(e,t,nE(1,n))}:function(e,t,n){return e[t]=n,e},DS=Function.prototype,xS=Kw&&Object.getOwnPropertyDescriptor,OS=KE(DS,"name"),AS={EXISTS:OS,PROPER:OS&&"something"===function(){}.name,CONFIGURABLE:OS&&(!Kw||Kw&&xS(DS,"name").configurable)},kS=aE(Function.toString);mE(UE.inspectSource)||(UE.inspectSource=function(e){return kS(e)});var BS,FS,TS,PS=UE.inspectSource,_S=Gw.WeakMap,jS=mE(_S)&&/native code/.test(String(_S)),NS=VE("keys"),IS=function(e){return NS[e]||(NS[e]=JE(e))},RS={},LS="Object already initialized",MS=Gw.TypeError,zS=Gw.WeakMap;if(jS||UE.state){var $S=UE.state||(UE.state=new zS);$S.get=$S.get,$S.has=$S.has,$S.set=$S.set,BS=function(e,t){if($S.has(e))throw new MS(LS);return t.facade=e,$S.set(e,t),t},FS=function(e){return $S.get(e)||{}},TS=function(e){return $S.has(e)}}else{var HS=IS("state");RS[HS]=!0,BS=function(e,t){if(KE(e,HS))throw new MS(LS);return t.facade=e,CS(e,HS,t),t},FS=function(e){return KE(e,HS)?e[HS]:{}},TS=function(e){return KE(e,HS)}}var US={set:BS,get:FS,has:TS,enforce:function(e){return TS(e)?FS(e):BS(e,{})},getterFor:function(e){return function(t){var n;if(!bE(t)||(n=FS(t)).type!==e)throw new MS("Incompatible receiver, "+e+" required");return n}}},VS=Hw((function(e){var t=AS.CONFIGURABLE,n=US.enforce,r=US.get,o=String,i=Object.defineProperty,a=aE("".slice),u=aE("".replace),s=aE([].join),c=Kw&&!qw((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!KE(e,"name")||t&&e.name!==r)&&(Kw?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&KE(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&KE(f,"constructor")&&f.constructor?Kw&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return KE(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return mE(this)&&r(this).source||PS(this)}),"toString")})),WS=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(mE(n)&&VS(n,i,r),r.global)o?e[t]=n:HE(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:SS.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},GS=Math.ceil,qS=Math.floor,KS=Math.trunc||function(e){var t=+e;return(t>0?qS:GS)(t)},YS=function(e){var t=+e;return t!=t||0===t?0:KS(t)},XS=Math.max,ZS=Math.min,JS=function(e,t){var n=YS(e);return n<0?XS(n+t,0):ZS(n,t)},QS=Math.min,eC=function(e){var t=YS(e);return t>0?QS(t,9007199254740991):0},tC=function(e){return eC(e.length)},nC=function(e){return function(t,n,r){var o=gE(t),i=tC(o);if(0===i)return!e&&-1;var a,u=JS(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},rC={includes:nC(!0),indexOf:nC(!1)},oC=rC.indexOf,iC=aE([].push),aC=function(e,t){var n,r=gE(e),o=0,i=[];for(n in r)!KE(RS,n)&&KE(r,n)&&iC(i,n);for(;t.length>o;)KE(r,n=t[o++])&&(~oC(i,n)||iC(i,n));return i},uC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sC=uC.concat("length","prototype"),cC={f:Object.getOwnPropertyNames||function(e){return aC(e,sC)}},lC={f:Object.getOwnPropertySymbols},fC=aE([].concat),dC=wE("Reflect","ownKeys")||function(e){var t=cC.f(vS(e)),n=lC.f;return n?fC(t,n(e)):t},pC=function(e,t,n){for(var r=dC(t),o=SS.f,i=fS.f,a=0;a<r.length;a++){var u=r[a];KE(e,u)||n&&KE(n,u)||o(e,u,i(t,u))}},hC=/#|\.prototype\./,vC=function(e,t){var n=yC[gC(e)];return n===bC||n!==mC&&(mE(t)?qw(t):!!t)},gC=vC.normalize=function(e){return String(e).replace(hC,".").toLowerCase()},yC=vC.data={},mC=vC.NATIVE="N",bC=vC.POLYFILL="P",wC=vC,EC=fS.f,SC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Gw:c?Gw[u]||HE(u,{}):Gw[u]&&Gw[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=EC(n,r))&&a.value:n[r],!wC(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pC(i,o)}(e.sham||o&&o.sham)&&CS(i,"sham",!0),WS(n,r,i,e)}},CC=Object.keys||function(e){return aC(e,uC)},DC=qw((function(){CC(1)}));SC({target:"Object",stat:!0,forced:DC},{keys:function(e){return CC(GE(e))}});var xC={};xC[nS("toStringTag")]="z";var OC="[object z]"===String(xC),AC=nS("toStringTag"),kC=Object,BC="Arguments"===cE(function(){return arguments}()),FC=OC?cE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=kC(e),AC))?n:BC?cE(t):"Object"===(r=cE(t))&&mE(t.callee)?"Arguments":r},TC=OC?{}.toString:function(){return"[object "+FC(this)+"]"};OC||WS(Object.prototype,"toString",TC,{unsafe:!0});var PC={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_C=sS("span").classList,jC=_C&&_C.constructor&&_C.constructor.prototype,NC=jC===Object.prototype?void 0:jC,IC=function(e){if("Function"===cE(e))return aE(e)},RC=IC(IC.bind),LC=function(e,t){return LE(e),void 0===t?e:Yw?RC(e,t):function(){return e.apply(t,arguments)}},MC=Array.isArray||function(e){return"Array"===cE(e)},zC=function(){},$C=wE("Reflect","construct"),HC=/^\s*(?:class|function)\b/,UC=aE(HC.exec),VC=!HC.test(zC),WC=function(e){if(!mE(e))return!1;try{return $C(zC,[],e),!0}catch(e){return!1}},GC=function(e){if(!mE(e))return!1;switch(FC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return VC||!!UC(HC,PS(e))}catch(e){return!0}};GC.sham=!0;var qC=!$C||qw((function(){var e;return WC(WC.call)||!WC(Object)||!WC((function(){e=!0}))||e}))?GC:WC,KC=nS("species"),YC=Array,XC=function(e,t){return new(function(e){var t;return MC(e)&&(t=e.constructor,(qC(t)&&(t===YC||MC(t.prototype))||bE(t)&&null===(t=t[KC]))&&(t=void 0)),void 0===t?YC:t}(e))(0===t?0:t)},ZC=aE([].push),JC=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=GE(s),v=dE(h),g=tC(v),y=LC(c,l),m=0,b=f||XC,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:ZC(w,d)}else switch(e){case 4:return!1;case 7:ZC(w,d)}return i?-1:r||o?o:w}},QC={forEach:JC(0),map:JC(1),filter:JC(2),some:JC(3),every:JC(4),find:JC(5),findIndex:JC(6),filterReject:JC(7)},eD=function(e,t){var n=[][e];return!!n&&qw((function(){n.call(null,t||function(){return 1},1)}))},tD=QC.forEach,nD=eD("forEach")?[].forEach:function(e){return tD(this,e,arguments.length>1?arguments[1]:void 0)},rD=function(e){if(e&&e.forEach!==nD)try{CS(e,"forEach",nD)}catch(t){e.forEach=nD}};for(var oD in PC)PC[oD]&&rD(Gw[oD]&&Gw[oD].prototype);
|
33
|
+
/*!
|
34
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
35
|
+
*
|
36
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
37
|
+
* Released under the MIT License.
|
38
|
+
*/function iD(e){return"[object Object]"===Object.prototype.toString.call(e)}rD(NC);var aD={isHistory(e){return!1!==iD(t=e)&&(void 0===(n=t.constructor)||!1!==iD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Kd.isOperationList(e.redos[0]))&&(0===e.undos.length||Kd.isOperationList(e.undos[0]));var t,n,r}},uD=new WeakMap,sD=new WeakMap,cD={isHistoryEditor:e=>aD.isHistory(e.history)&&zd.isEditor(e),isMerging:e=>sD.get(e),isSaving:e=>uD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=cD.isMerging(e);sD.set(e,!1),t(),sD.set(e,n)},withoutSaving(e,t){var n=cD.isSaving(e);uD.set(e,!1),t(),uD.set(e,n)}},lD=String,fD=function(e){if("Symbol"===FC(e))throw new TypeError("Cannot convert a Symbol value to a string");return lD(e)},dD=function(){var e=vS(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},pD=RegExp.prototype,hD=function(e){var t=e.flags;return void 0!==t||"flags"in pD||KE(e,"flags")||!EE(pD,e)?t:Zw(dD,e)},vD=AS.PROPER,gD="toString",yD=RegExp.prototype,mD=yD[gD],bD=qw((function(){return"/a/b"!==mD.call({source:"a",flags:"b"})})),wD=vD&&mD.name!==gD;(bD||wD)&&WS(yD,gD,(function(){var e=vS(this);return"/"+fD(e.source)+"/"+fD(hD(e))}),{unsafe:!0});var ED=function(e,t,n){var r,o;vS(e);try{if(!(r=ME(e,"return"))){if("throw"===t)throw n;return n}r=Zw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return vS(r),n},SD=function(e,t,n,r){try{return r?t(vS(n)[0],n[1]):t(n)}catch(t){ED(e,"throw",t)}},CD={},DD=nS("iterator"),xD=Array.prototype,OD=function(e){return void 0!==e&&(CD.Array===e||xD[DD]===e)},AD=function(e,t,n){Kw?SS.f(e,t,nE(0,n)):e[t]=n},kD=nS("iterator"),BD=function(e){if(!pE(e))return ME(e,kD)||ME(e,"@@iterator")||CD[FC(e)]},FD=TypeError,TD=function(e,t){var n=arguments.length<2?BD(e):t;if(LE(n))return vS(Zw(n,e));throw new FD(IE(e)+" is not iterable")},PD=Array,_D=nS("iterator"),jD=!1;try{var ND=0,ID={next:function(){return{done:!!ND++}},return:function(){jD=!0}};ID[_D]=function(){return this},Array.from(ID,(function(){throw 2}))}catch(sB){}var RD=function(e,t){try{if(!t&&!jD)return!1}catch(e){return!1}var n=!1;try{var r={};r[_D]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},LD=!RD((function(e){Array.from(e)}));SC({target:"Array",stat:!0,forced:LD},{from:function(e){var t=GE(e),n=qC(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=LC(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,d=BD(t),p=0;if(!d||this===PD&&OD(d))for(a=tC(t),u=n?new this(a):PD(a);a>p;p++)f=i?o(t[p],p):t[p],AD(u,p,f);else for(u=n?new this:[],l=(c=TD(t,d)).next;!(s=Zw(l,c)).done;p++)f=i?SD(c,o,[s.value,p],!0):s.value,AD(u,p,f);return u.length=p,u}});var MD,zD=Kw&&!dS?Object.defineProperties:function(e,t){vS(e);for(var n,r=gE(t),o=CC(t),i=o.length,a=0;i>a;)SS.f(e,n=o[a++],r[n]);return e},$D={f:zD},HD=wE("document","documentElement"),UD="prototype",VD="script",WD=IS("IE_PROTO"),GD=function(){},qD=function(e){return"<script>"+e+"</"+VD+">"},KD=function(e){e.write(qD("")),e.close();var t=e.parentWindow.Object;return e=null,t},YD=function(){try{MD=new ActiveXObject("htmlfile")}catch(e){}var e,t;YD="undefined"!=typeof document?document.domain&&MD?KD(MD):("javascript:",(t=sS("iframe")).style.display="none",HD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qD("document.F=Object")),e.close(),e.F):KD(MD);for(var n=uC.length;n--;)delete YD[UD][uC[n]];return YD()};RS[WD]=!0;var XD=Object.create||function(e,t){var n;return null!==e?(GD[UD]=vS(e),n=new GD,GD[UD]=null,n[WD]=e):n=YD(),void 0===t?n:$D.f(n,t)},ZD=SS.f,JD=nS("unscopables"),QD=Array.prototype;void 0===QD[JD]&&ZD(QD,JD,{configurable:!0,value:XD(null)});var ex=function(e){QD[JD][e]=!0},tx=rC.includes,nx=qw((function(){return!Array(1).includes()}));SC({target:"Array",proto:!0,forced:nx},{includes:function(e){return tx(this,e,arguments.length>1?arguments[1]:void 0)}}),ex("includes");var rx=aE([].join),ox=dE!==Object||!eD("join",",");SC({target:"Array",proto:!0,forced:ox},{join:function(e){return rx(gE(this),void 0===e?",":e)}});var ix=nS("species"),ax=function(e){return BE>=51||!qw((function(){var t=[];return(t.constructor={})[ix]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ux=QC.map,sx=ax("map");SC({target:"Array",proto:!0,forced:!sx},{map:function(e){return ux(this,e,arguments.length>1?arguments[1]:void 0)}});var cx=!qw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lx=IS("IE_PROTO"),fx=Object,dx=fx.prototype,px=cx?fx.getPrototypeOf:function(e){var t=GE(e);if(KE(t,lx))return t[lx];var n=t.constructor;return mE(n)&&t instanceof n?n.prototype:t instanceof fx?dx:null};SC({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return vS(t)===i?t[n]:(r=fS.f(t,n))?function(e){return void 0!==e&&(KE(e,"value")||KE(e,"writable"))}(r)?r.value:void 0===r.get?void 0:Zw(r.get,i):bE(o=px(t))?e(o,n,i):void 0}});var hx=Gw.RegExp,vx=qw((function(){var e=hx("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),gx=vx||qw((function(){return!hx("a","y").sticky})),yx={BROKEN_CARET:vx||qw((function(){var e=hx("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:gx,UNSUPPORTED_Y:vx},mx=Gw.RegExp,bx=qw((function(){var e=mx(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),wx=Gw.RegExp,Ex=qw((function(){var e=wx("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Sx=US.get,Cx=VE("native-string-replace",String.prototype.replace),Dx=RegExp.prototype.exec,xx=Dx,Ox=aE("".charAt),Ax=aE("".indexOf),kx=aE("".replace),Bx=aE("".slice),Fx=function(){var e=/a/,t=/b*/g;return Zw(Dx,e,"a"),Zw(Dx,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Tx=yx.BROKEN_CARET,Px=void 0!==/()??/.exec("")[1];(Fx||Px||Tx||bx||Ex)&&(xx=function(e){var t,n,r,o,i,a,u,s=this,c=Sx(s),l=fD(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Zw(xx,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Tx&&s.sticky,h=Zw(dD,s),v=s.source,g=0,y=l;if(p&&(h=kx(h,"y",""),-1===Ax(h,"g")&&(h+="g"),y=Bx(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ox(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Px&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Fx&&(r=s.lastIndex),o=Zw(Dx,p?n:s,y),p?o?(o.input=Bx(o.input,g),o[0]=Bx(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Fx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Px&&o&&o.length>1&&Zw(Cx,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=XD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _x=xx;SC({target:"RegExp",proto:!0,forced:/./.exec!==_x},{exec:_x});var jx,Nx=nS("match"),Ix=function(e){var t;return bE(e)&&(void 0!==(t=e[Nx])?!!t:"RegExp"===cE(e))},Rx=TypeError,Lx=function(e){if(Ix(e))throw new Rx("The method doesn't accept regular expressions");return e},Mx=nS("match"),zx=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Mx]=!1,"/./"[e](t)}catch(e){}}return!1},$x=fS.f,Hx=IC("".slice),Ux=Math.min,Vx=zx("endsWith"),Wx=!(Vx||(jx=$x(String.prototype,"endsWith"),!jx||jx.writable));SC({target:"String",proto:!0,forced:!Wx&&!Vx},{endsWith:function(e){var t=fD(vE(this));Lx(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Ux(eC(n),r),i=fD(e);return Hx(t,o-i.length,o)===i}});var Gx=aE("".indexOf);SC({target:"String",proto:!0,forced:!zx("includes")},{includes:function(e){return!!~Gx(fD(vE(this)),fD(Lx(e)),arguments.length>1?arguments[1]:void 0)}});var qx,Kx,Yx,Xx=aE("".charAt),Zx=aE("".charCodeAt),Jx=aE("".slice),Qx=function(e){return function(t,n){var r,o,i=fD(vE(t)),a=YS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zx(i,a))<55296||r>56319||a+1===u||(o=Zx(i,a+1))<56320||o>57343?e?Xx(i,a):r:e?Jx(i,a,a+2):o-56320+(r-55296<<10)+65536}},eO={codeAt:Qx(!1),charAt:Qx(!0)},tO=nS("iterator"),nO=!1;[].keys&&("next"in(Yx=[].keys())?(Kx=px(px(Yx)))!==Object.prototype&&(qx=Kx):nO=!0);var rO=!bE(qx)||qw((function(){var e={};return qx[tO].call(e)!==e}));rO&&(qx={}),mE(qx[tO])||WS(qx,tO,(function(){return this}));var oO={IteratorPrototype:qx,BUGGY_SAFARI_ITERATORS:nO},iO=SS.f,aO=nS("toStringTag"),uO=function(e,t,n){e&&!n&&(e=e.prototype),e&&!KE(e,aO)&&iO(e,aO,{configurable:!0,value:t})},sO=oO.IteratorPrototype,cO=function(){return this},lO=String,fO=TypeError,dO=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return aE(LE(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return vE(n),function(e){if(function(e){return bE(e)||null===e}(e))return e;throw new fO("Can't set "+lO(e)+" as a prototype")}(r),bE(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),pO=AS.PROPER,hO=AS.CONFIGURABLE,vO=oO.IteratorPrototype,gO=oO.BUGGY_SAFARI_ITERATORS,yO=nS("iterator"),mO="values",bO="entries",wO=function(){return this},EO=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=XD(sO,{next:nE(1,n)}),uO(e,r,!1),CD[r]=cO}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!gO&&e&&e in p)return p[e];switch(e){case"keys":case mO:case bO:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[yO]||p["@@iterator"]||o&&p[o],v=!gO&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=px(g.call(new e)))!==Object.prototype&&u.next&&(px(u)!==vO&&(dO?dO(u,vO):mE(u[yO])||WS(u,yO,wO)),uO(u,f,!0)),pO&&o===mO&&h&&h.name!==mO&&(hO?CS(p,"name",mO):(d=!0,v=function(){return Zw(h,this)})),o)if(s={values:l(mO),keys:i?v:l("keys"),entries:l(bO)},a)for(c in s)(gO||d||!(c in p))&&WS(p,c,s[c]);else SC({target:t,proto:!0,forced:gO||d},s);return p[yO]!==v&&WS(p,yO,v,{name:o}),CD[t]=v,s},SO=function(e,t){return{value:e,done:t}},CO=eO.charAt,DO="String Iterator",xO=US.set,OO=US.getterFor(DO);EO(String,"String",(function(e){xO(this,{type:DO,string:fD(e),index:0})}),(function(){var e,t=OO(this),n=t.string,r=t.index;return r>=n.length?SO(void 0,!0):(e=CO(n,r),t.index+=e.length,SO(e,!1))}));var AO=Function.prototype,kO=AO.apply,BO=AO.call,FO="object"==typeof Reflect&&Reflect.apply||(Yw?BO.bind(kO):function(){return BO.apply(kO,arguments)}),TO=nS("species"),PO=RegExp.prototype,_O=function(e,t,n,r){var o=nS(e),i=!qw((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!qw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[TO]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===_x||a===PO.exec?i&&!o?{done:!0,value:Zw(u,t,n,r)}:{done:!0,value:Zw(e,n,t,r)}:{done:!1}}));WS(String.prototype,e,s[0]),WS(PO,o,s[1])}r&&CS(PO[o],"sham",!0)},jO=eO.charAt,NO=function(e,t,n){return t+(n?jO(e,t).length:1)},IO=Math.floor,RO=aE("".charAt),LO=aE("".replace),MO=aE("".slice),zO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$O=/\$([$&'`]|\d{1,2})/g,HO=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$O;return void 0!==o&&(o=GE(o),s=zO),LO(i,s,(function(i,s){var c;switch(RO(s,0)){case"$":return"$";case"&":return e;case"`":return MO(t,0,n);case"'":return MO(t,a);case"<":c=o[MO(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=IO(l/10);return 0===f?i:f<=u?void 0===r[f-1]?RO(s,1):r[f-1]+RO(s,1):i}c=r[l-1]}return void 0===c?"":c}))},UO=TypeError,VO=function(e,t){var n=e.exec;if(mE(n)){var r=Zw(n,e,t);return null!==r&&vS(r),r}if("RegExp"===cE(e))return Zw(_x,e,t);throw new UO("RegExp#exec called on incompatible receiver")},WO=nS("replace"),GO=Math.max,qO=Math.min,KO=aE([].concat),YO=aE([].push),XO=aE("".indexOf),ZO=aE("".slice),JO="$0"==="a".replace(/./,"$0"),QO=!!/./[WO]&&""===/./[WO]("a","$0");_O("replace",(function(e,t,n){var r=QO?"$":"$0";return[function(e,n){var r=vE(this),o=pE(e)?void 0:ME(e,WO);return o?Zw(o,e,r,n):Zw(t,fD(r),e,n)},function(e,o){var i=vS(this),a=fD(e);if("string"==typeof o&&-1===XO(o,r)&&-1===XO(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=mE(o);s||(o=fD(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=VO(i,a))&&(YO(d,f),l);)""===fD(f[0])&&(i.lastIndex=NO(a,eC(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=fD((f=d[g])[0]),b=GO(qO(YS(f.index),a.length),0),w=[],E=1;E<f.length;E++)YO(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=KO([m],w,b,a);void 0!==S&&YO(C,S),y=fD(FO(o,void 0,C))}else y=HO(m,a,b,w,S,o);b>=v&&(h+=ZO(a,v,b)+y,v=b+m.length)}return h+ZO(a,v)}]}),!!qw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!JO||QO);var eA=/"/g,tA=aE("".replace);SC({target:"String",proto:!0,forced:qw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=fD(vE(this)),r="<a",(r+=' name="'+tA(fD(t),eA,""")+'"')+">"+n+"</a>";var t,n,r}});
|
39
|
+
/*! *****************************************************************************
|
40
|
+
Copyright (c) Microsoft Corporation.
|
41
|
+
|
42
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
43
|
+
purpose with or without fee is hereby granted.
|
44
|
+
|
45
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
46
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
47
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
48
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
49
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
50
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
51
|
+
PERFORMANCE OF THIS SOFTWARE.
|
52
|
+
***************************************************************************** */
|
53
|
+
var nA=function(e,t){return nA=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])},nA(e,t)};function rA(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oA=function(){return oA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oA.apply(this,arguments)};function iA(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aA(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function uA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var sA=QC.find,cA="find",lA=!0;cA in[]&&Array(1)[cA]((function(){lA=!1})),SC({target:"Array",proto:!0,forced:lA},{find:function(e){return sA(this,e,arguments.length>1?arguments[1]:void 0)}}),ex(cA),SC({global:!0,forced:Gw.globalThis!==Gw},{globalThis:Gw});const fA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var dA,pA,hA,vA,gA=function(e){return DE.slice(0,e.length)===e},yA=gA("Bun/")?"BUN":gA("Cloudflare-Workers")?"CLOUDFLARE":gA("Deno/")?"DENO":gA("Node.js/")?"NODE":Gw.Bun&&"string"==typeof Bun.version?"BUN":Gw.Deno&&"object"==typeof Deno.version?"DENO":"process"===cE(Gw.process)?"NODE":Gw.window&&Gw.document?"BROWSER":"REST",mA="NODE"===yA,bA=function(e,t,n){return n.get&&VS(n.get,t,{getter:!0}),n.set&&VS(n.set,t,{setter:!0}),SS.f(e,t,n)},wA=nS("species"),EA=function(e){var t=wE(e);Kw&&t&&!t[wA]&&bA(t,wA,{configurable:!0,get:function(){return this}})},SA=TypeError,CA=function(e,t){if(EE(t,e))return e;throw new SA("Incorrect invocation")},DA=TypeError,xA=nS("species"),OA=function(e,t){var n,r=vS(e).constructor;return void 0===r||pE(n=vS(r)[xA])?t:function(e){if(qC(e))return e;throw new DA(IE(e)+" is not a constructor")}(n)},AA=aE([].slice),kA=TypeError,BA=/(?:ipad|iphone|ipod).*applewebkit/i.test(DE),FA=Gw.setImmediate,TA=Gw.clearImmediate,PA=Gw.process,_A=Gw.Dispatch,jA=Gw.Function,NA=Gw.MessageChannel,IA=Gw.String,RA=0,LA={},MA="onreadystatechange";qw((function(){dA=Gw.location}));var zA=function(e){if(KE(LA,e)){var t=LA[e];delete LA[e],t()}},$A=function(e){return function(){zA(e)}},HA=function(e){zA(e.data)},UA=function(e){Gw.postMessage(IA(e),dA.protocol+"//"+dA.host)};FA&&TA||(FA=function(e){!function(e){if(e<1)throw new kA("Not enough arguments")}(arguments.length);var t=mE(e)?e:jA(e),n=AA(arguments,1);return LA[++RA]=function(){FO(t,void 0,n)},pA(RA),RA},TA=function(e){delete LA[e]},mA?pA=function(e){PA.nextTick($A(e))}:_A&&_A.now?pA=function(e){_A.now($A(e))}:NA&&!BA?(vA=(hA=new NA).port2,hA.port1.onmessage=HA,pA=LC(vA.postMessage,vA)):Gw.addEventListener&&mE(Gw.postMessage)&&!Gw.importScripts&&dA&&"file:"!==dA.protocol&&!qw(UA)?(pA=UA,Gw.addEventListener("message",HA,!1)):pA=MA in sS("script")?function(e){HD.appendChild(sS("script"))[MA]=function(){HD.removeChild(this),zA(e)}}:function(e){setTimeout($A(e),0)});var VA={set:FA,clear:TA},WA=Object.getOwnPropertyDescriptor,GA=function(){this.head=null,this.tail=null};GA.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var qA,KA,YA,XA,ZA,JA=GA,QA=/ipad|iphone|ipod/i.test(DE)&&"undefined"!=typeof Pebble,ek=/web0s(?!.*chrome)/i.test(DE),tk=VA.set,nk=Gw.MutationObserver||Gw.WebKitMutationObserver,rk=Gw.document,ok=Gw.process,ik=Gw.Promise,ak=function(e){if(!Kw)return Gw[e];var t=WA(Gw,e);return t&&t.value}("queueMicrotask");if(!ak){var uk=new JA,sk=function(){var e,t;for(mA&&(e=ok.domain)&&e.exit();t=uk.get();)try{t()}catch(e){throw uk.head&&qA(),e}e&&e.enter()};BA||mA||ek||!nk||!rk?!QA&&ik&&ik.resolve?((XA=ik.resolve(void 0)).constructor=ik,ZA=LC(XA.then,XA),qA=function(){ZA(sk)}):mA?qA=function(){ok.nextTick(sk)}:(tk=LC(tk,Gw),qA=function(){tk(sk)}):(KA=!0,YA=rk.createTextNode(""),new nk(sk).observe(YA,{characterData:!0}),qA=function(){YA.data=KA=!KA}),ak=function(e){uk.head||qA(),uk.add(e)}}var ck=ak,lk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},fk=Gw.Promise;fk&&fk.prototype;var dk,pk,hk,vk=nS("species"),gk=!1,yk=mE(Gw.PromiseRejectionEvent),mk=wC("Promise",(function(){var e=PS(fk),t=e!==String(fk);if(!t&&66===BE)return!0;if(!BE||BE<51||!/native code/.test(e)){var n=new fk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[vk]=r,!(gk=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==yA&&"DENO"!==yA||yk)})),bk={CONSTRUCTOR:mk,REJECTION_EVENT:yk,SUBCLASSING:gk},wk=TypeError,Ek=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new wk("Bad Promise constructor");t=e,n=r})),this.resolve=LE(t),this.reject=LE(n)},Sk={f:function(e){return new Ek(e)}},Ck=VA.set,Dk="Promise",xk=bk.CONSTRUCTOR,Ok=bk.REJECTION_EVENT,Ak=bk.SUBCLASSING,kk=US.getterFor(Dk),Bk=US.set,Fk=fk&&fk.prototype,Tk=fk,Pk=Fk,_k=Gw.TypeError,jk=Gw.document,Nk=Gw.process,Ik=Sk.f,Rk=Ik,Lk=!!(jk&&jk.createEvent&&Gw.dispatchEvent),Mk="unhandledrejection",zk=function(e){var t;return!(!bE(e)||!mE(t=e.then))&&t},$k=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Gk(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new _k("Promise-chain cycle")):(r=zk(n))?Zw(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},Hk=function(e,t){e.notified||(e.notified=!0,ck((function(){for(var n,r=e.reactions;n=r.get();)$k(n,e);e.notified=!1,t&&!e.rejection&&Vk(e)})))},Uk=function(e,t,n){var r,o;Lk?((r=jk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Gw.dispatchEvent(r)):r={promise:t,reason:n},!Ok&&(o=Gw["on"+e])?o(r):e===Mk&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},Vk=function(e){Zw(Ck,Gw,(function(){var t,n=e.facade,r=e.value;if(Wk(e)&&(t=lk((function(){mA?Nk.emit("unhandledRejection",r,n):Uk(Mk,n,r)})),e.rejection=mA||Wk(e)?2:1,t.error))throw t.value}))},Wk=function(e){return 1!==e.rejection&&!e.parent},Gk=function(e){Zw(Ck,Gw,(function(){var t=e.facade;mA?Nk.emit("rejectionHandled",t):Uk("rejectionhandled",t,e.value)}))},qk=function(e,t,n){return function(r){e(t,r,n)}},Kk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Hk(e,!0))},Yk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new _k("Promise can't be resolved itself");var r=zk(t);r?ck((function(){var n={done:!1};try{Zw(r,t,qk(Yk,n,e),qk(Kk,n,e))}catch(t){Kk(n,t,e)}})):(e.value=t,e.state=1,Hk(e,!1))}catch(t){Kk({done:!1},t,e)}}};if(xk&&(Pk=(Tk=function(e){CA(this,Pk),LE(e),Zw(dk,this);var t=kk(this);try{e(qk(Yk,t),qk(Kk,t))}catch(e){Kk(t,e)}}).prototype,(dk=function(e){Bk(this,{type:Dk,done:!1,notified:!1,parent:!1,reactions:new JA,rejection:!1,state:0,value:null})}).prototype=WS(Pk,"then",(function(e,t){var n=kk(this),r=Ik(OA(this,Tk));return n.parent=!0,r.ok=!mE(e)||e,r.fail=mE(t)&&t,r.domain=mA?Nk.domain:void 0,0===n.state?n.reactions.add(r):ck((function(){$k(r,n)})),r.promise})),pk=function(){var e=new dk,t=kk(e);this.promise=e,this.resolve=qk(Yk,t),this.reject=qk(Kk,t)},Sk.f=Ik=function(e){return e===Tk||void 0===e?new pk(e):Rk(e)},mE(fk)&&Fk!==Object.prototype)){hk=Fk.then,Ak||WS(Fk,"then",(function(e,t){var n=this;return new Tk((function(e,t){Zw(hk,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Fk.constructor}catch(sB){}dO&&dO(Fk,Pk)}SC({global:!0,constructor:!0,wrap:!0,forced:xk},{Promise:Tk}),uO(Tk,Dk,!1),EA(Dk);var Xk=TypeError,Zk=function(e,t){this.stopped=e,this.result=t},Jk=Zk.prototype,Qk=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=LC(t,l),g=function(e){return r&&ED(r,"normal",e),new Zk(!0,e)},y=function(e){return f?(vS(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=BD(e)))throw new Xk(IE(e)+" is not iterable");if(OD(o)){for(i=0,a=tC(e);a>i;i++)if((u=y(e[i]))&&EE(Jk,u))return u;return new Zk(!1)}r=TD(e,o)}for(s=d?e.next:r.next;!(c=Zw(s,r)).done;){try{u=y(c.value)}catch(e){ED(r,"throw",e)}if("object"==typeof u&&u&&EE(Jk,u))return u}return new Zk(!1)},eB=bk.CONSTRUCTOR||!RD((function(e){fk.all(e).then(void 0,(function(){}))}));SC({target:"Promise",stat:!0,forced:eB},{all:function(e){var t=this,n=Sk.f(t),r=n.resolve,o=n.reject,i=lk((function(){var n=LE(t.resolve),i=[],a=0,u=1;Qk(e,(function(e){var s=a++,c=!1;u++,Zw(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var tB=bk.CONSTRUCTOR,nB=fk&&fk.prototype;if(SC({target:"Promise",proto:!0,forced:tB,real:!0},{catch:function(e){return this.then(void 0,e)}}),mE(fk)){var rB=wE("Promise").prototype.catch;nB.catch!==rB&&WS(nB,"catch",rB,{unsafe:!0})}SC({target:"Promise",stat:!0,forced:eB},{race:function(e){var t=this,n=Sk.f(t),r=n.reject,o=lk((function(){var o=LE(t.resolve);Qk(e,(function(e){Zw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),SC({target:"Promise",stat:!0,forced:bk.CONSTRUCTOR},{reject:function(e){var t=Sk.f(this);return(0,t.reject)(e),t.promise}});var oB=bk.CONSTRUCTOR;function iB(e){Promise.resolve().then(e)}wE("Promise"),SC({target:"Promise",stat:!0,forced:oB},{resolve:function(e){return function(e,t){if(vS(e),bE(t)&&t.constructor===e)return t;var n=Sk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var aB=function(e){return Object.prototype.toString.call(e)};pv&&(Jh.fn.css=pv),bv&&(Jh.fn.append=bv),Qh&&(Jh.fn.addClass=Qh),ev&&(Jh.fn.removeClass=ev),tv&&(Jh.fn.hasClass=tv),av&&(Jh.fn.on=av),Fv&&(Jh.fn.focus=Fv),nv&&(Jh.fn.attr=nv),rv&&(Jh.fn.removeAttr=rv),fv&&(Jh.fn.hide=fv),dv&&(Jh.fn.show=dv),lv&&(Jh.fn.offset=lv),sv&&(Jh.fn.width=sv),cv&&(Jh.fn.height=cv),Ev&&(Jh.fn.parent=Ev),Sv&&(Jh.fn.parents=Sv),mv&&(Jh.fn.is=mv),ov&&(Jh.fn.dataset=ov),iv&&(Jh.fn.val=iv),yv&&(Jh.fn.text=yv),gv&&(Jh.fn.html=gv),Dv&&(Jh.fn.children=Dv),xv&&(Jh.fn.remove=xv),Cv&&(Jh.fn.find=Cv),hv&&(Jh.fn.each=hv),Ov&&(Jh.fn.empty=Ov);var uB,sB,cB=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},lB=function(e){return fB(e)&&1===e.nodeType},fB=function(e){var t=cB(e);return!!t&&e instanceof t.Node},dB=function(e){var t=e&&e.anchorNode&&cB(e.anchorNode);return!!t&&e instanceof t.Selection},pB=function(e){return fB(e)&&3===e.nodeType},hB=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},vB=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(fB(r=i)&&8===r.nodeType||lB(i)&&0===i.childNodes.length||lB(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},gB=function(e,t,n){return aA(vB(e,t,n),1)[0]},yB=function(e){var t,n,r="";if(pB(e)&&e.nodeValue)return e.nodeValue;if(lB(e)){try{for(var o=iA(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=yB(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var u=getComputedStyle(e).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==e.tagName||(r+="\n")}return r};function mB(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||mB(o,t)}}function bB(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==uB.ELEMENT_NODE?"":t.tagName.toLowerCase()}(sB=uB||(uB={}))[sB.ELEMENT_NODE=1]="ELEMENT_NODE",sB[sB.TEXT_NODE=3]="TEXT_NODE",sB[sB.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",sB[sB.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",sB[sB.COMMENT_NODE=8]="COMMENT_NODE",sB[sB.DOCUMENT_NODE=9]="DOCUMENT_NODE",sB[sB.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",sB[sB.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var wB=0,EB=function(){this.id=""+wB++};void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var SB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),CB="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var DB="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),xB="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),OB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),AB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var kB=!OB&&!xB&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,BB=SS.f,FB="Array Iterator",TB=US.set,PB=US.getterFor(FB),_B=EO(Array,"Array",(function(e,t){TB(this,{type:FB,target:gE(e),index:0,kind:t})}),(function(){var e=PB(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,SO(void 0,!0);switch(e.kind){case"keys":return SO(n,!1);case"values":return SO(t[n],!1)}return SO([n,t[n]],!1)}),"values"),jB=CD.Arguments=CD.Array;if(ex("keys"),ex("values"),ex("entries"),Kw&&"values"!==jB.name)try{BB(jB,"name",{value:"values"})}catch(sB){}var NB=!qw((function(){return Object.isExtensible(Object.preventExtensions({}))})),IB=function(e,t,n){for(var r in t)WS(e,r,t[r],n);return e},RB=cC.f,LB="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],MB={f:function(e){return LB&&"Window"===cE(e)?function(e){try{return RB(e)}catch(e){return AA(LB)}}(e):RB(gE(e))}},zB=qw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),$B=Object.isExtensible,HB=qw((function(){$B(1)}))||zB?function(e){return!!bE(e)&&(!zB||"ArrayBuffer"!==cE(e))&&(!$B||$B(e))}:$B,UB=Hw((function(e){var t=SS.f,n=!1,r=JE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=cC.f,t=aE([].splice),o={};o[r]=1,e(o).length&&(cC.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},SC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:MB.f}))},fastKey:function(e,t){if(!bE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!KE(e,r)){if(!HB(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!KE(e,r)){if(!HB(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return NB&&n&&HB(e)&&!KE(e,r)&&i(e),e}};RS[r]=!0})),VB=function(e,t,n){var r,o;return dO&&mE(r=t.constructor)&&r!==n&&bE(o=r.prototype)&&o!==n.prototype&&dO(e,o),e},WB=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Gw[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=aE(u[e]);WS(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!bE(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!bE(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!bE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(wC(e,!mE(a)||!(o||u.forEach&&!qw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),UB.enable();else if(wC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=qw((function(){f.has(1)})),h=RD((function(e){new a(e)})),v=!o&&qw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){CA(e,u);var n=VB(new a,e,s);return pE(t)||Qk(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,SC({global:!0,constructor:!0,forced:s!==a},c),uO(s,e),o||n.setStrong(s,e,r),s},GB=UB.getWeakData,qB=US.set,KB=US.getterFor,YB=QC.find,XB=QC.findIndex,ZB=aE([].splice),JB=0,QB=function(e){return e.frozen||(e.frozen=new eF)},eF=function(){this.entries=[]},tF=function(e,t){return YB(e.entries,(function(e){return e[0]===t}))};eF.prototype={get:function(e){var t=tF(this,e);if(t)return t[1]},has:function(e){return!!tF(this,e)},set:function(e,t){var n=tF(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XB(this.entries,(function(t){return t[0]===e}));return~t&&ZB(this.entries,t,1),!!~t}};var nF,rF={getConstructor:function(e,t,n,r){var o=e((function(e,o){CA(e,i),qB(e,{type:t,id:JB++,frozen:null}),pE(o)||Qk(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KB(t),u=function(e,t,n){var r=a(e),o=GB(vS(t),!0);return!0===o?QB(r).set(t,n):o[r.id]=n,e};return IB(i,{delete:function(e){var t=a(this);if(!bE(e))return!1;var n=GB(e);return!0===n?QB(t).delete(e):n&&KE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!bE(e))return!1;var n=GB(e);return!0===n?QB(t).has(e):n&&KE(n,t.id)}}),IB(i,n?{get:function(e){var t=a(this);if(bE(e)){var n=GB(e);if(!0===n)return QB(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},oF=US.enforce,iF=Object,aF=Array.isArray,uF=iF.isExtensible,sF=iF.isFrozen,cF=iF.isSealed,lF=iF.freeze,fF=iF.seal,dF=!Gw.ActiveXObject&&"ActiveXObject"in Gw,pF=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hF=WB("WeakMap",pF,rF),vF=hF.prototype,gF=aE(vF.set);if(jS)if(dF){nF=rF.getConstructor(pF,"WeakMap",!0),UB.enable();var yF=aE(vF.delete),mF=aE(vF.has),bF=aE(vF.get);IB(vF,{delete:function(e){if(bE(e)&&!uF(e)){var t=oF(this);return t.frozen||(t.frozen=new nF),yF(this,e)||t.frozen.delete(e)}return yF(this,e)},has:function(e){if(bE(e)&&!uF(e)){var t=oF(this);return t.frozen||(t.frozen=new nF),mF(this,e)||t.frozen.has(e)}return mF(this,e)},get:function(e){if(bE(e)&&!uF(e)){var t=oF(this);return t.frozen||(t.frozen=new nF),mF(this,e)?bF(this,e):t.frozen.get(e)}return bF(this,e)},set:function(e,t){if(bE(e)&&!uF(e)){var n=oF(this);n.frozen||(n.frozen=new nF),mF(this,e)?gF(this,e,t):n.frozen.set(e,t)}else gF(this,e,t);return this}})}else NB&&qw((function(){var e=lF([]);return gF(new hF,e,1),!sF(e)}))&&IB(vF,{set:function(e,t){var n;return aF(e)&&(sF(e)?n=lF:cF(e)&&(n=fF)),gF(this,e,t),n&&n(e),this}});var wF=nS("iterator"),EF=_B.values,SF=function(e,t){if(e){if(e[wF]!==EF)try{CS(e,wF,EF)}catch(t){e[wF]=EF}if(uO(e,t,!0),PC[t])for(var n in _B)if(e[n]!==_B[n])try{CS(e,n,_B[n])}catch(t){e[n]=_B[n]}}};for(var CF in PC)SF(Gw[CF]&&Gw[CF].prototype,CF);SF(NC,"DOMTokenList");var DF=new WeakMap,xF=new WeakMap,OF=new WeakMap,AF=new WeakMap,kF=new WeakMap,BF=new WeakMap,FF=new WeakMap,TF=new WeakMap,PF=new WeakMap,_F=new WeakMap,jF=new WeakMap,NF=new WeakMap,IF=new WeakMap,RF=new WeakMap,LF=new WeakMap,MF=new WeakMap,zF=new WeakMap,$F=new WeakMap,HF=new WeakMap,UF=new WeakMap,VF=new WeakMap,WF=new WeakMap,GF=new WeakMap,qF=new WeakMap,KF=new WeakMap,YF={getWindow:function(e){var t=VF.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=UF.get(t);return n||(n=new EB,UF.set(t,n)),n},setNewKey:function(e){var t=new EB;UF.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=LF.get(r);if(null==o){if(zd.isEditor(r))return n;break}var i=RF.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=YF.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==aB(n)&&!function(e){return"[object ShadowRoot]"===aB(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return LF.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=YF.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[YF.findPath(e,t)[0]];return Wd.get(e,n)},toDOMNode:function(e,t){var n;if(zd.isEditor(t))n=MF.get(e);else{var r=YF.findKey(e,t);n=$F.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=YF.toDOMNode(e,e);try{r=lB(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&(r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=rp.isBackward(t),i=YF.toDOMPoint(e,n),a=rp.isCollapsed(t)?i:YF.toDOMPoint(e,r),u=YF.getWindow(e).document.createRange(),s=aA(o?a:i,2),c=s[0],l=s[1],f=aA(o?i:a,2),d=f[0],p=f[1],h=!!(lB(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(lB(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=aA(zd.node(e,t.path),1)[0],a=YF.toDOMNode(e,i);zd.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=iA(u),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=lB(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?zF.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=YF.toSlateNode(e,t.target),u=YF.findPath(e,a);if(zd.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=zd.point(e,u,{edge:c?"start":"end"}),f=c?zd.before(e,l):zd.after(e,l);if(f)return zd.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return YF.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((dB(t)?t.anchorNode:t.startContainer)&&(dB(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=AB&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=YF.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:YF.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return rp.isExpanded(d)&&rp.isForward(d)&&lB(i)&&zd.void(e,{at:d.focus,mode:"highest"})&&(d=zd.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=aA(o?t:function(e){var t,n=aA(e,2),r=n[0],o=n[1];if(lB(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=aA(vB(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;lB(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=gB(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],c=u.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null,v=YF.getWindow(e);if(p&&v.document.createRange){l=p.closest('[data-slate-node="text"]');var g=v.document.createRange();g.setStart(l,0),g.setEnd(u,s);var y=g.cloneContents();uA(uA([],aA(Lh(y.querySelectorAll("[data-slate-zero-width]")))),aA(Lh(y.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=y.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(c.hasAttribute("data-slate-zero-width")||CB&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&(f-=1)}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=YF.toSlateNode(e,l);return{path:YF.findPath(e,m),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return zd.hasPath(e,n.path)&&zd.hasPath(e,r.path)},getNodeType:function(e){return jd.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Wd.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=zd.nodes(e,{universal:!0});try{for(var i=iA(o),a=i.next();!a.done;a=i.next()){var u=aA(a.value,1)[0];jd.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=aA(zd.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=aA(zd.nodes(e,{match:function(e){return lp.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=aA(zd.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&aA(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(zd.isEnd(e,n.anchor,t)||zd.isEnd(e,n.focus,t))},getTextarea:function(e){var t=DF.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return AF.get(e)||null},getHoverbar:function(e){return BF.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=YF.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=iA(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(!pB(c))break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=zd.nodes(e,{match:function(t){return!(!jd.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=iA(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];mB(YF.toDOMNode(e,h),(function(e,t){var n=Jh(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=zd.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=iA(r),a=i.next();!a.done;a=i.next())a.value&&(o+=1)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(rp.isExpanded(t))return!1;var n=YF.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=zd.node(e,t);if(null==n)return!1;var r=aA(n,1)[0].children;return 1===r.length&&""===r[0].text}},XF=1,ZF={},JF={},QF=QC.filter,eT=ax("filter");SC({target:"Array",proto:!0,forced:!eT},{filter:function(e){return QF(this,e,arguments.length>1?arguments[1]:void 0)}});var tT="\t\n\v\f\r \u2028\u2029\ufeff",nT=aE("".replace),rT=RegExp("^["+tT+"]+"),oT=RegExp("(^|[^"+tT+"])["+tT+"]+$"),iT=function(e){return function(t){var n=fD(vE(t));return 1&e&&(n=nT(n,rT,"")),2&e&&(n=nT(n,oT,"$1")),n}},aT={start:iT(1),end:iT(2),trim:iT(3)},uT=AS.PROPER,sT=aT.trim;SC({target:"String",proto:!0,forced:function(e){return qw((function(){return!!tT[e]()||"
"!=="
"[e]()||uT&&tT[e].name!==e}))}("trim")},{trim:function(){return sT(this)}});var cT=[],lT={};function fT(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function dT(e,t){return jd.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=zd.isVoid(t,e),u="";a||(u=i.map((function(e){return dT(e,t)})).join(""));var s=function(e){return lT[e]||fT}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||cT.forEach((function(t){return l=t(e,l)})),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=YF.getParentsNodes(t,e).some((function(e){return"pre"===YF.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=YF.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return cT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function pT(e){return"w-e-element-"+e}var hT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},vT=function(e,t,n){var r=YF.toDOMRange(e,t).getBoundingClientRect(),o=YF.toDOMRange(e,n).getBoundingClientRect();return hT(r,o)&&hT(o,r)},gT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],yT=[],mT=[],bT={},wT=SS.f,ET=function(e,t,n){n in e||wT(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},ST=cC.f,CT=US.enforce,DT=nS("match"),xT=Gw.RegExp,OT=xT.prototype,AT=Gw.SyntaxError,kT=aE(OT.exec),BT=aE("".charAt),FT=aE("".replace),TT=aE("".indexOf),PT=aE("".slice),_T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,jT=/a/g,NT=/a/g,IT=new xT(jT)!==jT,RT=yx.MISSED_STICKY,LT=yx.UNSUPPORTED_Y,MT=Kw&&(!IT||RT||bx||Ex||qw((function(){return NT[DT]=!1,xT(jT)!==jT||xT(NT)===NT||"/a/i"!==String(xT(jT,"i"))})));if(wC("RegExp",MT)){for(var zT=function(e,t){var n,r,o,i,a,u,s=EE(OT,this),c=Ix(e),l=void 0===t,f=[],d=e;if(!s&&c&&l&&e.constructor===zT)return e;if((c||EE(OT,e))&&(e=e.source,l&&(t=hD(d))),e=void 0===e?"":fD(e),t=void 0===t?"":fD(t),d=e,bx&&"dotAll"in jT&&(r=!!t&&TT(t,"s")>-1)&&(t=FT(t,/s/g,"")),n=t,RT&&"sticky"in jT&&(o=!!t&&TT(t,"y")>-1)&<&&(t=FT(t,/y/g,"")),Ex&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=XD(null),u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=BT(e,r)))t+=BT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:if(o+=t,"?:"===PT(e,r+1,r+3))continue;kT(_T,PT(e,r+1))&&(r+=2,s=!0),c++;continue;case">"===t&&s:if(""===l||KE(a,l))throw new AT("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=VB(xT(e,t),s?this:OT,zT),(r||o||f.length)&&(u=CT(a),r&&(u.dotAll=!0,u.raw=zT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=BT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+BT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{CS(a,"source",""===d?"(?:)":d)}catch(e){}return a},$T=ST(xT),HT=0;$T.length>HT;)ET(zT,xT,$T[HT++]);OT.constructor=zT,zT.prototype=OT,WS(Gw,"RegExp",zT,{constructor:!0})}EA("RegExp");var UT=new RegExp(String.fromCharCode(160),"g");function VT(e){return e.replace(UT," ")}function WT(e,t){var n=e.length;if(n){var r=e[n-1];if(lp.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function GT(e,t,n){return{type:"paragraph",children:[{text:Jh(e).text().replace(/\s+/gm," ")}]}}function qT(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==uB.ELEMENT_NODE)if(e.nodeType!==uB.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=VT(r),WT(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(WT(n,"\n")||n.push({text:"\n"}));var o=YT(Jh(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in bT)if(e[0].matches(t))return bT[t];return GT}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){zd.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),mT.forEach((function(n){r=n(e[0],r,t)})))})),o}function KT(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=VT(n)};return mT.forEach((function(n){r=n(e[0],r,t)})),r}function YT(e,t){yT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Jh(r(e[0])))}));var n=bB(e);return"span"===n?e.attr("data-w-e-type")?qT(e,t):KT(e,t):"code"===n?"pre"===bB(e.parent())?qT(e,t):KT(e,t):gT.includes(n)?KT(e,t):qT(e,t)}var XT=yx.UNSUPPORTED_Y,ZT=Math.min,JT=aE([].push),QT=aE("".slice),eP=!qw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),tP="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function nP(e,t,n){var r=Jh(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function rP(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Jh("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=YT(Jh(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}_O("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Zw(t,this,e,n)}:t;return[function(t,n){var o=vE(this),i=pE(t)?void 0:ME(t,e);return i?Zw(i,t,o,n):Zw(r,fD(o),t,n)},function(e,o){var i=vS(this),a=fD(e);if(!tP){var u=n(r,i,a,o,r!==t);if(u.done)return u.value}var s=OA(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(XT?"g":"y"),f=new s(XT?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===VO(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=XT?0:h;var g,y=VO(f,XT?QT(a,h):a);if(null===y||(g=ZT(eC(f.lastIndex+(XT?h:0)),a.length))===p)h=NO(a,h,c);else{if(JT(v,QT(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(JT(v,y[m]),v.length===d)return v;h=p=g}}return JT(v,QT(a,p)),v}]}),tP||!eP,XT);var oP=UB.fastKey,iP=US.set,aP=US.getterFor,uP={getConstructor:function(e,t,n,r){var o=e((function(e,o){CA(e,i),iP(e,{type:t,index:XD(null),first:null,last:null,size:0}),Kw||(e.size=0),pE(o)||Qk(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=aP(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=oP(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=u),r&&(r.next=u),Kw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=oP(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return IB(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=XD(null),Kw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),Kw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=LC(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),IB(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Kw&&bA(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=aP(t),i=aP(r);EO(e,t,(function(e,t){iP(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?SO("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,SO(void 0,!0))}),n?"entries":"values",!n,!0),EA(t)}};WB("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uP);var sP=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function cP(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):kp.insertNodes(e,t,{mode:"highest"})}var lP=function(e){return null!=e},fP={object:!0,function:!0,undefined:!0},dP=/^\s*class[\s{/}]/,pP=Function.prototype.toString,hP=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!lP(e)&&hasOwnProperty.call(fP,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!dP.test(pP.call(e))},vP=function(e){return null!=e},gP=Object.keys,yP=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return gP(vP(e)?Object(e):e)},mP=Math.max,bP=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=mP(arguments.length,2);for(e=Object(function(e){if(!vP(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)yP(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},wP=Array.prototype.forEach,EP=Object.create,SP=function(e){var t=EP(null);return wP.call(arguments,(function(e){vP(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},CP="razdwatrzy",DP=String.prototype.indexOf,xP="function"==typeof CP.contains&&!0===CP.contains("dwa")&&!1===CP.contains("foo")?String.prototype.contains:function(e){return DP.call(this,e,arguments[1])>-1},OP=Hw((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],lP(e)?(n=xP.call(e,"c"),r=xP.call(e,"e"),o=xP.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?bP(SP(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],lP(t)?hP(t)?lP(n)?hP(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,lP(e)?(r=xP.call(e,"c"),o=xP.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?bP(SP(i),a):a}})),AP=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},kP=Hw((function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return AP(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return AP(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(AP(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:OP(n),once:OP(r),off:OP(o),emit:OP(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function BP(e){var t=qF.get(e);return null==t&&(t=kP(),qF.set(e,t)),t}var FP=new WeakMap;function TP(e,t){var n=FP.get(e);null==n&&(n=new Set,FP.set(e,n)),n.add(t)}function PP(e){var t=YF.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function _P(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=PP(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=YF.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;l.right=p+5+"px"}else l.left=d+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function jP(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=jd.isElement(t)&&e.isVoid(t),i=jd.isElement(t)&&e.isInline(t),a=HF.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(fA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,l=p.height}}var h=PP(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-g,S=c-y;if("bar"===n)return w.left=S+"px",E>40?w.bottom=b-E+5+"px":w.top=E+l+5+"px",w;if("modal"===n)return o?i?S>(m-f)/2?w.right=m-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((v=E)<0&&(v=0),w.top=v+"px"):E>(b-l)/2?w.bottom=b-E+5+"px":((v=E+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function NP(e,t){iB((function(){var n=PP(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),d=t.height(),p=c-o,h=l-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(v.indexOf("right")>=0&&l<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(l);t.css("right",C+"px")}}}))}var IP=ax("slice"),RP=nS("species"),LP=Array,MP=Math.max;SC({target:"Array",proto:!0,forced:!IP},{slice:function(e,t){var n,r,o,i=gE(this),a=tC(i),u=JS(e,a),s=JS(void 0===t?a:t,a);if(MC(i)&&(n=i.constructor,(qC(n)&&(n===LP||MC(n.prototype))||bE(n)&&null===(n=n[RP]))&&(n=void 0),n===LP||void 0===n))return AA(i,u,s);for(r=new(void 0===n?LP:n)(MP(s-u,0)),o=0;u<s;u++,o++)u in i&&AD(r,o,i[u]);return r.length=o,r}});var zP=Object.assign,$P=Object.defineProperty,HP=aE([].concat),UP=!zP||qw((function(){if(Kw&&1!==zP({b:1},zP($P({},"a",{enumerable:!0,get:function(){$P(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==zP({},e)[n]||CC(zP({},t)).join("")!==r}))?function(e,t){for(var n=GE(e),r=arguments.length,o=1,i=lC.f,a=tE.f;r>o;)for(var u,s=dE(arguments[o++]),c=i?HP(CC(s),i(s)):CC(s),l=c.length,f=0;l>f;)u=c[f++],Kw&&!Zw(a,s,u)||(n[u]=s[u]);return n}:zP;SC({target:"Object",stat:!0,arity:2,forced:Object.assign!==UP},{assign:UP});var VP=fS.f,WP=IC("".slice),GP=Math.min,qP=zx("startsWith"),KP=!qP&&!!function(){var e=VP(String.prototype,"startsWith");return e&&!e.writable}();SC({target:"String",proto:!0,forced:!KP&&!qP},{startsWith:function(e){var t=fD(vE(this));Lx(e);var n=eC(GP(arguments.length>1?arguments[1]:void 0,t.length)),r=fD(e);return WP(t,n,n+r.length)===r}});var YP=["props","attrs","style","dataset","on","hook"];function XP(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!YP.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Wy(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&XP(e)}))}var ZP=[],JP={};function QP(e,t,n){return qg(n.isInline(e)?"span":"div",null,t)}function e_(e,t){return void 0===t&&(t=!1),qg("span",{"data-slate-string":!0},t?e+"\n":e)}function t_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),qg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?qg("br",null):null)}function n_(e,t,n,r){return RF.set(e,t),LF.set(e,n),jd.isElement(e)?function(e,t){var n,r=YF.findKey(t,e),o=t.isInline(e),i=zd.isVoid(t,e),a=pT(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return JP[e]||QP}(s);n=i?null:l.map((function(n,r){return n_(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=aA(Wd.texts(e),1),v=aA(h[0],1)[0],g=qg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},n_(v,0,e,t));d=qg(p,{style:{position:"relative"}},d,g),RF.set(v,0),LF.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return ZP.forEach((function(r){n=r(e,t)})),n}(e,d)),iB((function(){var t=hB(a);null!=t&&($F.set(r,t),HF.set(e,t),zF.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=YF.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=YF.findPath(n,e),a=o([e,i]),u=lp.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=YF.findPath(o,n),u=Yd.parent(a);if(zd.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?t_(Wd.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==zd.string(o,u)?""===i?t_():t&&"\n"===i.slice(-1)?e_(i,!0):e_(i):t_(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return ZP.forEach((function(t){n=t(e,n)})),n}(r,i),qg("span",{"data-slate-leaf":!0},i)})),c=function(e){return"w-e-text-"+e}(r.id),l=qg("span",{"data-slate-node":"text",id:c,key:r.id},s);return iB((function(){var t=hB(c);null!=t&&($F.set(r,t),HF.set(e,t),zF.set(t,e))})),l}(e,n,r)}function r_(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Ag("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map((function(e,n){var r=n_(e,n,t,t);return XP(r),r}));var l=jF.get(e);if(null==l&&(l=!0),l){var f=function(e){return Jh('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=xg([Tg,zg,Wg,jg,Lg,Bg]))(n,s),jF.set(e,!1),NF.set(e,p)}else{var d=IF.get(e),p=NF.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=hB(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=cB(n);h&&VF.set(t,h)}MF.set(t,n),HF.set(t,n),zF.set(n,t),IF.set(e,s)}}function o_(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function i_(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function a_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i_(n.overflowY,t)||i_(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function u_(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var s_=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!o_(e))throw new TypeError("Invalid target");for(var c,l,f=document.scrollingElement||document.documentElement,d=[],p=e;o_(p)&&s(p);){if((p=null==(l=(c=p).parentElement)?c.getRootNode().host||null:l)===f){d.push(p);break}null!=p&&p===document.body&&a_(p)&&!a_(document.documentElement)||null!=p&&a_(p,u)&&d.push(p)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),b=m.height,w=m.width,E=m.top,S=m.right,C=m.bottom,D=m.left,x="start"===o||"nearest"===o?E:"end"===o?C:E+b/2,O="center"===i?D+w/2:"end"===i?S:D,A=[],k=0;k<d.length;k++){var B=d[k],F=B.getBoundingClientRect(),T=F.height,P=F.width,_=F.top,j=F.right,N=F.bottom,I=F.left;if("if-needed"===r&&E>=0&&D>=0&&C<=v&&S<=h&&E>=_&&C<=N&&D>=I&&S<=j)return A;var R=getComputedStyle(B),L=parseInt(R.borderLeftWidth,10),M=parseInt(R.borderTopWidth,10),z=parseInt(R.borderRightWidth,10),$=parseInt(R.borderBottomWidth,10),H=0,U=0,V="offsetWidth"in B?B.offsetWidth-B.clientWidth-L-z:0,W="offsetHeight"in B?B.offsetHeight-B.clientHeight-M-$:0,G="offsetWidth"in B?0===B.offsetWidth?0:P/B.offsetWidth:0,q="offsetHeight"in B?0===B.offsetHeight?0:T/B.offsetHeight:0;if(f===B)H="start"===o?x:"end"===o?x-v:"nearest"===o?u_(y,y+v,v,M,$,y+x,y+x+b,b):x-v/2,U="start"===i?O:"center"===i?O-h/2:"end"===i?O-h:u_(g,g+h,h,L,z,g+O,g+O+w,w),H=Math.max(0,H+y),U=Math.max(0,U+g);else{H="start"===o?x-_-M:"end"===o?x-N+$+W:"nearest"===o?u_(_,N,T,M,$+W,x,x+b,b):x-(_+T/2)+W/2,U="start"===i?O-I-L:"center"===i?O-(I+P/2)+V/2:"end"===i?O-j+z+V:u_(I,j,P,L,z+V,O,O+w,w);var K=B.scrollLeft,Y=B.scrollTop;x+=Y-(H=Math.max(0,Math.min(Y+H/q,B.scrollHeight-T/q+W))),O+=K-(U=Math.max(0,Math.min(K+U/G,B.scrollWidth-P/G+V)))}A.push({el:B,top:H,left:U})}return A};function c_(e){return e===Object(e)&&0!==Object.keys(e).length}function l_(e,t){return fB(t)&&YF.hasDOMNode(e,t,{editable:!0})}function f_(e,t){if(e.getConfig().readOnly)return!1;var n=d_(e,t)&&YF.toSlateNode(e,t);return zd.isVoid(e,n)}function d_(e,t){return fB(t)&&YF.hasDOMNode(e,t)}function p_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=YF.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=MF.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=YF.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&rp.equals(c,r)){var l=!0;if(rp.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||YF.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&YF.toDOMRange(t,r);if(v){rp.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")&&v.getBoundingClientRect){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(c_(t)&&"function"==typeof t.behavior)return t.behavior(n?s_(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:c_(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(s_(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&CB&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=YF.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var h_=new WeakMap,v_=new WeakMap,g_={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},y_={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},m_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},b_=function(e){var t=g_[e],n=y_[e],r=m_[e],o=t&&tm(t),i=n&&tm(n),a=r&&tm(r);return function(e){return!(!o||!o(e))||!!(SB&&i&&i(e))||!(SB||!a||!a(e))}},w_={isBold:b_("bold"),isCompose:b_("compose"),isMoveBackward:b_("moveBackward"),isMoveForward:b_("moveForward"),isDeleteBackward:b_("deleteBackward"),isDeleteForward:b_("deleteForward"),isDeleteLineBackward:b_("deleteLineBackward"),isDeleteLineForward:b_("deleteLineForward"),isDeleteWordBackward:b_("deleteWordBackward"),isDeleteWordForward:b_("deleteWordForward"),isExtendBackward:b_("extendBackward"),isExtendForward:b_("extendForward"),isExtendLineBackward:b_("extendLineBackward"),isExtendLineForward:b_("extendLineForward"),isItalic:b_("italic"),isMoveLineBackward:b_("moveLineBackward"),isMoveLineForward:b_("moveLineForward"),isMoveWordBackward:b_("moveWordBackward"),isMoveWordForward:b_("moveWordForward"),isRedo:b_("redo"),isSplitBlock:b_("splitBlock"),isTransposeCharacter:b_("transposeCharacter"),isUndo:b_("undo"),isTab:b_("tab"),isSelectAll:b_("selectAll")};function E_(e){e.preventDefault()}var S_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(kB&&!o&&l_(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=aA(r.getTargetRanges(),1)[0];if(s){var c=YF.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&rp.equals(i,c)||kp.select(n,c)}}if(i&&rp.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";zd.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":zd.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":zd.deleteForward(n);break;case"deleteContentBackward":zd.deleteBackward(n);break;case"deleteEntireSoftLine":zd.deleteBackward(n,{unit:"line"}),zd.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":zd.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":zd.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":zd.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":zd.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":zd.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":zd.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":zd.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!KF.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&zd.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&l_(n,r.target)){var a=YF.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===YF.toDOMNode(n,n)||lB(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&fB(u)&&YF.hasDOMNode(n,u)){var s=YF.toSlateNode(n,u);if(jd.isElement(s)&&!n.isVoid(s))return}if(DB){var c=a.getSelection();null==c||c.removeAllRanges()}WF.delete(n)}}}},focus:function(e,t,n){var r=YF.toDOMNode(n,n),o=YF.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,CB&&e.target!==r?r.focus():WF.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&d_(n,e.target)&&fB(e.target)){var r=YF.toSlateNode(n,e.target),o=YF.findPath(n,r);if(zd.hasPath(n,o)&&Wd.get(n,o)===r){var i=zd.start(n,o),a=zd.end(n,o),u=zd.void(n,{at:i}),s=zd.void(n,{at:a});if(u&&s&&Yd.equals(u[1],s[1])){var c=zd.range(n,i);kp.select(n,c)}}}},compositionstart:function(e,t,n){if(l_(n,e.target)){var r=n.selection;if(r&&rp.isExpanded(r)&&(zd.deleteFragment(n),Promise.resolve().then((function(){p_(t,n,!0)}))),r&&rp.isCollapsed(r)){var o=YF.toDOMRange(n,r).startContainer,i=o.textContent||"";h_.set(n,i),v_.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(l_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(AB||CB)&&YF.cleanExposedTexNodeInSelectionBlock(n);for(var i=rp.isBackward(o)?o.focus:o.anchor,a=aA(zd.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=aA(zd.node(n,i.path.slice(0,u+1)),1)[0];if(jd.isElement(s)&&((DB||CB)&&"link"===s.type||"code"===s.type)){YF.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=YF.getLeftLengthOfMaxLength(n);l<c.length?(YF.toDOMRange(n,o).startContainer.textContent=h_.get(n)||"",l>0&&zd.insertText(n,c.slice(0,l)),t.changeViewState()):zd.insertText(n,c)}else zd.insertText(n,c);DB||setTimeout((function(){var e=n.selection;if(null!=e){var t=v_.get(n);null!=t&&YF.toDOMRange(n,e).startContainer!==t&&(t.textContent=h_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){l_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&l_(n,r.target)){if(function(e,t){var n=AF.get(e),r=n&&n.getMenus(),o=BF.get(e),i=o&&o.getMenus(),a=oA(oA({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&em(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),w_.isTab(r))return E_(r),void n.handleTab();if(w_.isRedo(r))return E_(r),void("function"==typeof n.redo&&n.redo());if(w_.isUndo(r))return E_(r),void("function"==typeof n.undo&&n.undo());if(w_.isMoveLineBackward(r))return E_(r),void kp.move(n,{unit:"line",reverse:!0});if(w_.isMoveLineForward(r))return E_(r),void kp.move(n,{unit:"line"});if(w_.isExtendLineBackward(r))return E_(r),void kp.move(n,{unit:"line",edge:"focus",reverse:!0});if(w_.isExtendLineForward(r))return E_(r),void kp.move(n,{unit:"line",edge:"focus"});if(w_.isMoveBackward(r))return E_(r),void(o&&rp.isCollapsed(o)?kp.move(n,{reverse:!0}):kp.collapse(n,{edge:"start"}));if(w_.isMoveForward(r))return E_(r),void(o&&rp.isCollapsed(o)?kp.move(n):kp.collapse(n,{edge:"end"}));if(w_.isMoveWordBackward(r))return E_(r),o&&rp.isExpanded(o)&&kp.collapse(n,{edge:"focus"}),void kp.move(n,{unit:"word",reverse:!0});if(w_.isMoveWordForward(r))return E_(r),o&&rp.isExpanded(o)&&kp.collapse(n,{edge:"focus"}),void kp.move(n,{unit:"word"});if(w_.isSelectAll(r))return E_(r),void n.selectAll();if(kB){if((AB||DB)&&o&&(w_.isDeleteBackward(r)||w_.isDeleteForward(r))&&rp.isCollapsed(o)){var i=Wd.parent(n,o.anchor.path);if(jd.isElement(i)&&zd.isVoid(n,i)&&zd.isInline(n,i))return r.preventDefault(),void kp.delete(n,{unit:"block"})}}else{if(w_.isBold(r)||w_.isItalic(r)||w_.isTransposeCharacter(r))return void E_(r);if(w_.isSplitBlock(r))return E_(r),void zd.insertBreak(n);if(w_.isDeleteBackward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"backward"}):zd.deleteBackward(n));if(w_.isDeleteForward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"forward"}):zd.deleteForward(n));if(w_.isDeleteLineBackward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"backward"}):zd.deleteBackward(n,{unit:"line"}));if(w_.isDeleteLineForward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"forward"}):zd.deleteForward(n,{unit:"line"}));if(w_.isDeleteWordBackward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"backward"}):zd.deleteBackward(n,{unit:"word"}));if(w_.isDeleteWordForward(r))return E_(r),void(o&&rp.isExpanded(o)?zd.deleteFragment(n,{direction:"forward"}):zd.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!kB&&!n.getConfig().readOnly&&l_(n,e.target)){e.preventDefault();var r=e.key;zd.insertText(n,r)}},copy:function(e,t,n){var r=e;if(l_(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&l_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(rp.isExpanded(o))zd.deleteFragment(n);else{var a=Wd.parent(n,o.anchor.path);zd.isVoid(n,a)&&kp.delete(n)}}},paste:function(e,t,n){KF.set(n,!0);var r=e;if(!n.getConfig().readOnly&&l_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void KF.set(n,!1);if(!kB||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(d_(n,e.target)){var r=YF.toSlateNode(n,e.target);zd.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(d_(n,r.target)&&!n.getConfig().readOnly){var o=YF.toSlateNode(n,r.target),i=YF.findPath(n,o);if(zd.isVoid(n,o)||zd.void(n,{at:i,voids:!0})){var a=zd.range(n,i);kp.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&d_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&d_(n,r.target)&&null!=o&&!(kB&&DB&&o.files.length>0)){r.preventDefault();var i=n.selection,a=YF.findEventRange(n,r);kp.select(n,a),t.isDraggingInternally&&(i&&kp.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},C_=1,D_=function(){function e(e){var t=this;this.id=C_++,this.$textArea=null,this.$progressBar=Jh('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Jh('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=lg((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=YF.findDocumentOrShadowRoot(t),a=i.activeElement,u=YF.toDOMNode(t,t),s=i.getSelection();if(a!==u)return WF.delete(t),void kp.deselect(t);if(e.latestElement=a,WF.set(t,!0),!s)return kp.deselect(t);var c=s.anchorNode,l=s.focusNode,f=l_(t,c)||f_(t,c),d=l_(t,l)||f_(t,l);if(f&&d){var p=YF.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});kp.select(t,p)}}}(t,e)}),100);var n=Jh(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Jh('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Jh('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,iB((function(){var e=t.editorInstance,n=YF.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=xF.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(qv(S_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",lg((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-YF.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;r_(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Jh('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),iB((function(){p_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function x_(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&x_(t)}function O_(){return Jh('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function A_(){return Jh('<div class="w-e-bar-divider"></div>')}function k_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=SB?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}_O("match",(function(e,t,n){return[function(t){var n=vE(this),r=pE(t)?void 0:ME(t,e);return r?Zw(r,t,n):new RegExp(t)[e](fD(n))},function(e){var r=vS(this),o=fD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return VO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=VO(r,o));){var l=fD(u[0]);s[c]=l,""===l&&(r.lastIndex=NO(o,eC(r.lastIndex),a)),c++}return 0===c?null:s}]}));var B_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Jh('<div class="w-e-bar-item"></div>'),this.$button=Jh('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=Jh(l);x_(d),f.append(d)}else f.text(a);k_(f,l,a,s,n),n&&l&&f.append(Jh('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),iB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),H_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=H_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=H_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=H_(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),F_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return rA(t,e),t.prototype.onButtonClick=function(){},t}(B_),T_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=TF.get(e);null==t&&(t=new Set,TF.set(e,t)),t.add(this),PF.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=PF.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=PF.get(this);e&&e.emit("modalOrPanelHide")}},e}(),P_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Jh('<div class="w-e-drop-panel"></div>'),n}return rA(t,e),t.prototype.genSelfElem=function(){return null},t}(T_),__=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=O_();o.$button.append(i)}return o}return rA(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=H_(this);if(null==this.dropPanel){var n=new P_(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(B_),j_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Jh('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return rA(t,e),t.prototype.genSelfElem=function(){var e=this,t=Jh('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=PF.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(T_);function N_(e,t,n){var r=Jh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Jh('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function I_(e,t){var n=Jh('<div class="button-container"></div>'),r=Jh('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var R_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Jh("body"),o.modal=null,o.menu=n,o}return rA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=H_(this),t=this.menu.getModalPositionNode(e);return jd.isElement(t)?jP(e,t,"modal"):_P(e)},t.prototype.handleModal=function(){var e=H_(this),t=this.menu;if(null==this.modal){var n=new j_(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=H_(this),r=this.menu;if(null!=r.getModalContentElem){var o=YF.getTextarea(n),i=YF.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||NP(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(B_),L_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Jh('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return rA(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Jh("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Jh('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Jh('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Jh('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(T_),M_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Jh('<div class="w-e-bar-item"></div>'),this.$button=Jh('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,c=t.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),k_(f,s,i,l,n),this.$elem.append(f),this.menu=t,iB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),H_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=H_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new L_(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Jh(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=H_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=H_(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=O_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=H_(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),z_=function(){function e(e){this.$elem=Jh('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Jh('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Jh('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Jh(n);x_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=O_();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Jh(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),$_=new WeakMap;function H_(e){var t=FF.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function U_(e,t,n){void 0===n&&(n=!1);var r=$_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new __(e,t,n):a?new R_(e,t,n):new F_(e,t,n)}if("select"===o&&(r=new M_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return $_.set(t,r),r}function V_(e,t){var n=e.selection;return null!=n&&!rp.isCollapsed(n)&&!YF.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!lp.isText(t)}var W_=function(){function e(){var e=this;this.$elem=Jh('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=gm((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&jd.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),iB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),YF.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;iB((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=A_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=JF[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=U_(e,r);this.hoverbarItems.push(i),FF.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),jd.isElement(e)){var r=jP(t,e,"bar");return n.css(r),void NP(t,n)}if(lp.isText(e))return r=_P(t),n.css(r),void NP(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,c=a||function(e,t){return YF.checkNodeType(t,o)},l=aA(zd.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=kF.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=V_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=YF.findPath(null,e),r=YF.findPath(null,t);return Yd.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function G_(e,t,n,r){if(RF.set(e,t),LF.set(e,n),jd.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return G_(t,n,e,r)})),zd.isVoid(r,e)){var i=aA(Wd.texts(e),1),a=aA(i[0],1)[0];RF.set(a,0),LF.set(a,e)}}}function q_(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];cD.withoutSaving(t,(()=>{zd.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];cD.withoutSaving(t,(()=>{zd.withoutNormalizing(t,(()=>{var e=r.map(Kd.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),c=cD.isSaving(t),l=cD.isMerging(t);if(null==c&&(c=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Yd.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Yd.equals(e.path,t.path)))(e,u)||s)),a&&l)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=YF.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=YF.getLeftLengthOfMaxLength(t);n<=0||n<Wd.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(YF.getLeftLengthOfMaxLength(t)<Wd.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=YF.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===uB.TEXT_NODE?e+(t.textContent||""):n===uB.ELEMENT_NODE?sP.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=BP(t);if(r.on(e,n),"destroyed"===e&&TP(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),TP(t,o)}},t.once=function(e,n){BP(t).once(e,n)},t.off=function(e,n){BP(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=BP(t);if(o.emit.apply(o,uA([e],aA(n))),"destroyed"===e){var i=function(e){return FP.get(e)||new Set}(t);i.forEach((function(e){return o.off("destroyed",e)})),function(e){FP.set(e,new Set)}(t)}},t}(function(e){var t=e;return t.select=function(e){kp.select(t,e)},t.deselect=function(){var n=t.selection,r=YF.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&kp.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||kp.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=GF.get(t);null!=e&&(t.focus(),kp.select(t,e))},t.getSelectionPosition=function(){return _P(t)},t.getNodePosition=function(e){return jP(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=aA(rp.edges(e),2),r=n[0],o=n[1],i=aA(zd.edges(t,[]),2),a=i[0],u=i[1];return!(!Qd.equals(r,a)||!Qd.equals(o,u))},t.selectAll=function(){var e=zd.start(t,[]),n=zd.end(t,[]);kp.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=iA(zd.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=aA(p.value,2),v=h[0],g=h[1],y=YF.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=iA(zd.levels(t,{at:Yd.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=aA(b.value,2);v=w[0],g=w[1],y=YF.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=iA(zd.levels(t,{at:Yd.common(Yd.parent(e.path),Yd.parent(e.newPath))})),S=E.next();!S.done;S=E.next()){var C=aA(S.value,2);v=C[0],g=C[1],y=YF.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var D=iA(f),x=D.next();!x.done;x=D.next()){var O=aA(x.value,2);g=O[0],y=O[1],v=aA(zd.node(t,g),1)[0],UF.set(v,y)}}catch(e){c={error:e}}finally{try{x&&!x.done&&(l=D.return)&&l.call(D)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&rp.isCollapsed(e.selection)){var r=zd.above(e,{match:function(t){return zd.isBlock(e,t)},at:e.selection});if(r){var o=aA(r,2)[1],a=zd.range(e,o,e.selection.anchor),u=function(e,t){var n=zd.range(e,rp.end(t)),r=Array.from(zd.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(vT(e,zd.range(e,r[o]),n))return zd.range(e,r[o],n);if(r.length<2)return zd.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)vT(e,zd.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return zd.range(e,r[i],n)}(t,a);rp.isCollapsed(u)||kp.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&GF.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return dT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Wd.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":zd.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=zd.nodes(t,{at:[],universal:!0});try{for(var u=iA(a),s=u.next();!s.done;s=u.next()){var c=aA(s.value,1)[0];if(jd.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=pT(YF.findKey(t,c).id);i.push(oA(oA({},c),{id:l}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(jd.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(lp.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){kp.delete(t,{at:{anchor:zd.start(t,[]),focus:zd.end(t,[])}}),0===t.children.length&&kp.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return YF.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===uB.TEXT_NODE||t===uB.ELEMENT_NODE&&!sP.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;YF.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==uB.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(gT.includes(r.toLowerCase()))s=!0;else for(var c in bT)if(a.matches(c)){s=!0;break}if(s){var l=YT(Jh(a),t);return Array.isArray(l)?(l.forEach((function(e){return cP(t,e)})),u++):(cP(t,l),u++),void(YF.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;YF.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&YF.isEmptyPath(t,a)&&kp.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=rP(t,e);if(kp.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(zd.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in JF)e.push(t);return e},t.getConfig=function(){var e=_F.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=e;return t.id="wangEditor-"+XF++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(YF.toDOMNode(t,t).focus({preventScroll:!0}),WF.set(t,!0),e){var n=zd.end(t,[]);kp.select(t,n)}else{var r=GF.get(t);r?kp.select(t,r):kp.select(t,zd.start(t,[]))}},t.isFocused=function(){return!!WF.get(t)},t.blur=function(){YF.toDOMNode(t,t).blur(),kp.deselect(t),WF.set(t,!1)},t.updateView=function(){YF.getTextarea(t).changeViewState();var e=YF.getToolbar(t);e&&e.changeToolbarState();var n=YF.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=YF.getTextarea(t);e.destroy(),DF.delete(t),xF.delete(e);var n=YF.getToolbar(t);n&&(n.destroy(),AF.delete(t),OF.delete(n));var r=YF.getHoverbar(t);r&&(r.destroy(),BF.delete(t),kF.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Jh("#"+e);if(0!==r.length){var o=r[0];if(!YF.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=YF.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,c=a.offset().top;u[0].scrollBy({top:s-c,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||YF.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=TF.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return YF.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=YF.getToolbar(t);n&&(e=n.$box);var r=YF.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=YF.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return YF.getTextarea(t).$textAreaContainer[0]},t}(function(){var e=(()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of zd.pathRefs(e))Xd.transform(n,t);for(var r of zd.pointRefs(e))ep.transform(r,t);for(var o of zd.rangeRefs(e))op.transform(o,t);var i,a,u=Yf.get(e)||[],s=Xf.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(Yd.operationCanTransformPath(t))for(var l of(i=[],a=new Set,u))c(Yd.transform(l,t));else i=u,a=s;var f=od(t);for(var d of f)c(d);Yf.set(e,i),Xf.set(e,a),kp.transform(e,t),e.operations.push(t),zd.normalize(e),"set_selection"===t.type&&(e.marks=null),Zf.get(e)||(Zf.set(e,!0),Promise.resolve().then((()=>{Zf.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(rp.isExpanded(r))kp.setNodes(e,{[t]:n},{match:lp.isText,split:!0});else{var o=rd(rd({},zd.marks(e)||{}),{},{[t]:n});e.marks=o,Zf.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&rp.isCollapsed(n)&&kp.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&rp.isCollapsed(n)&&kp.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&rp.isExpanded(n)&&kp.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Wd.fragment(e,t):[]},insertBreak:()=>{kp.splitNodes(e,{always:!0})},insertFragment:t=>{kp.insertFragment(e,t)},insertNode:t=>{kp.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=rd({text:t},r);kp.insertNodes(e,o)}else kp.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!lp.isText(n))if(jd.isElement(n)&&0===n.children.length)kp.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!zd.isEditor(n)&&jd.isElement(n)&&(e.isInline(n)||0===n.children.length||lp.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Wd.get(e,r);if(!lp.isText(u)){var s=n.children[a],c=u.children[i-1],l=a===n.children.length-1;(lp.isText(s)||jd.isElement(s)&&e.isInline(s))!==o?(kp.removeNodes(e,{at:r.concat(i),voids:!0}),i--):jd.isElement(s)?e.isInline(s)&&(null!=c&&lp.isText(c)?l&&(kp.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(kp.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=c&&lp.isText(c)&&(lp.equals(s,c,{loose:!0})?(kp.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(kp.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(kp.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(rp.isExpanded(n))kp.unsetNodes(e,t,{match:lp.isText,split:!0});else{var r=rd({},zd.marks(e)||{});delete r[t],e.marks=r,Zf.get(e)||e.onChange()}}};return e})(),t=e.insertText;return e.insertFragment,e.setFragmentData=function(t){var n=e.selection;if(n){var r=aA(rp.edges(n),2),o=r[0],i=r[1],a=zd.void(e,{at:o.path}),u=zd.void(e,{at:i.path});if(!rp.isCollapsed(n)||a){var s=YF.toDOMRange(e,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)})),u){var f=aA(u,1)[0],d=s.cloneRange(),p=YF.toDOMNode(e,f);d.setEndAfter(p),c=d.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),pB(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=e.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),t.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),t.setData("text/html",m.innerHTML),t.setData("text/plain",yB(m)),c.ownerDocument.body.removeChild(m),t}}},e.insertData=function(n){var r,o,i=n.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);e.insertFragment(u)}else{var s=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=iA(l),p=d.next();!p.done;p=d.next()){var h=p.value;f&&kp.splitNodes(e,{always:!0}),t(h),f=!0}}catch(n){r={error:n}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},e}())))))));if(n&&function(e,t){return nP(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=ym(ZF),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return qv(t,(function(e,t){n[t]=oA(oA({},e),o[t]||{})})),delete e.MENU_CONF,oA({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);_F.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){c=e(c)})),null!=a&&(c.children=rP(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),YF.normalizeContent(c),n){var p=new D_(n);DF.set(c,p),xF.set(p,c),p.changeViewState(),iB((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new W_,kF.set(h,c),BF.set(c,h)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return G_(e,t,c,c)}));var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",(function(){return v(c)})),g&&c.on("destroyed",(function(){return g(c)})),iB((function(){return c.emit("created")})),c}var K_=TypeError,Y_=Object.getOwnPropertyDescriptor,X_=Kw&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(MC(e)&&!Y_(e,"length").writable)throw new K_("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Z_=TypeError,J_=TypeError,Q_=function(e,t){if(!delete e[t])throw new J_("Cannot delete property "+IE(t)+" of "+IE(e))},ej=ax("splice"),tj=Math.max,nj=Math.min;SC({target:"Array",proto:!0,forced:!ej},{splice:function(e,t){var n,r,o,i,a,u,s=GE(this),c=tC(s),l=JS(e,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=nj(tj(YS(t),0),c-l)),function(e){if(e>9007199254740991)throw Z_("Maximum allowed index exceeded")}(c+n-r),o=XC(s,r),i=0;i<r;i++)(a=l+i)in s&&AD(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:Q_(s,u);for(i=c;i>c-r+n;i--)Q_(s,i-1)}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:Q_(s,u);for(i=0;i<n;i++)s[i+l]=arguments[i+2];return X_(s,c-r+n),o}});var rj=function(){function e(e,t){var n=this;this.$toolbar=Jh('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=gm((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Jh(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),iB((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,c=void 0===s?[]:s,l=ym(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){l.splice(u.index+t,0,e)})));var f=l.filter((function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=A_();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new z_(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof z_,o=this.menus,i=o[e];if(null==i){var a=JF[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=U_(e,i,r);this.toolbarItems.push(u),FF.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=OF.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),oj=AS.EXISTS,ij=Function.prototype,aj=aE(ij.toString),uj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sj=aE(uj.exec);function cj(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,c=e.meta,l=void 0===c?{}:c,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,S=void 0===E?function(e,t){}:E,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,x=e.onProgress,O=void 0===x?function(e){}:x;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=aA(e.split("#"),2),r=n[0],o=n[1],i=[];qv(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,l));var k=new Rb({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(zw,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{S(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function lj(e){return lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lj(e)}function fj(e){var t=function(e){if("object"!=lj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lj(t)?t:t+""}function dj(e,t,n){return(t=fj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){dj(e,t,n[t])}))}return e}function hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fj(r.key),r)}}function gj(e,t,n){return t&&vj(e.prototype,t),n&&vj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mj(e,t){if(t&&("object"==lj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yj(e)}function bj(e){return bj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bj(e)}function wj(e,t){return wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wj(e,t)}function Ej(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wj(e,t)}Kw&&!oj&&bA(ij,"name",{configurable:!0,get:function(){try{return sj(uj,aj(this))[1]}catch(e){return""}}});var Sj={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Cj=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hj(this,e),this.init(t,n)}return gj(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Sj,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,pj({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Dj=function(){function e(){hj(this,e),this.observers={}}return gj(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function xj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Oj(e){return null==e?"":""+e}function Aj(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function kj(e,t,n){var r=Aj(e,t,Object);r.obj[r.k]=n}function Bj(e,t){var n=Aj(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Fj(e,t,n){var r=Bj(e,n);return void 0!==r?r:Bj(t,n)}function Tj(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Tj(e[r],t[r],n):e[r]=t[r]);return e}function Pj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return _j[e]})):e}var Nj="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Ij(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(i+a).join(n);return c?Ij(s,c,n):void 0}o=o[r[i]]}return o}}var Rj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return hj(this,e),n=mj(this,bj(e).call(this)),Nj&&Dj.call(yj(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Ej(e,Dj),gj(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=Bj(this.data,a);return u||!i||"string"!=typeof n?u:Ij(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),kj(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=Bj(this.data,a)||{};r?Tj(u,n,o):u=pj({},u,n),kj(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?pj({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),Lj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},Mj={},zj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hj(this,e),n=mj(this,bj(e).call(this)),Nj&&Dj.call(yj(n)),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(n[e]=t[e])}))}(0,t,yj(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Cj.create("translator"),n}return Ej(e,Dj),gj(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==lj(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&"string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,pj({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},S=w?g:v;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(S).concat(i).concat(C);E[C]=this.translate(D,pj({},n,{joinArrays:!1,ns:s})),E[C]===D&&(E[C]=h[C])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var x=!1,O=!1,A=void 0!==n.count&&"string"!=typeof n.count,k=e.hasDefaultValue(n),B=A?this.pluralResolver.getSuffix(l,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(x=!0,h=F),this.isValidLookup(h)||(O=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:h,P=k&&F!==h&&this.options.updateMissing;if(O||x||P){if(this.logger.log(P?"updateKey":"missingKey",l,c,u,P?F:h),i){var _=this.resolve(u,pj({},n,{keySeparator:!1}));_&&_.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var R=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,P?r:T,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,P?r:T,P,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){R([e],u+t,n["defaultValue".concat(t)]||F)}))})):R(j,u,F))}h=this.extendTranslation(h,t,n,p,r),O&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(O||x)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(pj({},n,{interpolation:pj({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=pj({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Lj.handle(d,e,t,this.options&&this.options.postProcessPassResolved?pj({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!Mj["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Mj["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),e}();function $j(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Hj=function(){function e(t){hj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Cj.create("languageUtils")}return gj(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=$j(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=$j(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=$j(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Uj=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Wj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hj(this,e),this.languageUtils=t,this.options=r,this.logger=Cj.create("pluralResolver"),this.rules=(n={},Uj.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:Vj[e.fc]}}))})),n)}return gj(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Gj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hj(this,e),this.logger=Cj.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return gj(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:jj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Pj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Pj(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Pj(t.nestingPrefix):t.nestingPrefixEscaped||Pj("$t("),this.nestingSuffix=t.nestingSuffix?Pj(t.nestingSuffix):t.nestingSuffixEscaped||Pj(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=Fj(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,pj({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(Fj(t,s,a),c,n,pj({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=Oj(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=pj({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=pj({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Oj(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,pj({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),qj=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return hj(this,e),o=mj(this,bj(e).call(this)),Nj&&Dj.call(yj(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=Cj.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Ej(e,Dj),gj(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n){var r=Aj(e,t,Object),o=r.obj,i=r.k;o[i]=o[i]||[],o[i].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,pj({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function Kj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Yj(){}var Xj=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(hj(this,e),t=mj(this,bj(e).call(this)),Nj&&Dj.call(yj(t)),t.options=Kj(n),t.services={},t.logger=Cj,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),mj(t,yj(t));setTimeout((function(){t.init(n,r)}),0)}return t}return Ej(e,Dj),gj(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=pj({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===lj(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===lj(e[2])||"object"===lj(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,Kj(t)),this.format=this.options.interpolation.format,n||(n=Yj),!this.options.isClone){this.modules.logger?Cj.init(r(this.modules.logger),this.options):Cj.init(null,this.options);var o=new Hj(this.options);this.store=new Rj(this.options.resources,this.options);var i=this.services;i.logger=Cj,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Wj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Gj(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new qj(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new zj(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=xj(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yj,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=xj();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Yj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Lj.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=xj();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==lj(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=pj({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=xj();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=xj();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yj,o=pj({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=pj({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new zj(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Zj=new Xj;function Jj(e,t){Zj.addResourceBundle(e,"translation",t,!0,!0)}Zj.init({lng:"zh-CN",resources:{}});var Qj=Zj.t.bind(Zj);Jj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Jj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var eN=Array.isArray||function(e){return"Array"===l(e)},tN=function(){},nN=pe("Reflect","construct"),rN=/^\s*(?:class|function)\b/,oN=u(rN.exec),iN=!rN.test(tN),aN=function(e){if(!ee(e))return!1;try{return nN(tN,[],e),!0}catch(e){return!1}},uN=function(e){if(!ee(e))return!1;switch(Gn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return iN||!!oN(rN,Ut(e))}catch(e){return!0}};uN.sham=!0;var sN,cN=!nN||n((function(){var e;return aN(aN.call)||!aN(Object)||!aN((function(){e=!0}))||e}))?uN:aN,lN=J("species"),fN=Array,dN=function(e,t){return new(function(e){var t;return eN(e)&&(t=e.constructor,(cN(t)&&(t===fN||eN(t.prototype))||te(t)&&null===(t=t[lN]))&&(t=void 0)),void 0===t?fN:t}(e))(0===t?0:t)},pN=u([].push),hN=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,h,v=F(s),g=p(v),y=He(g),m=Vr(c,l),b=0,w=f||dN,E=t?w(s,y):n||a?w(s,0):void 0;y>b;b++)if((u||b in g)&&(h=m(d=g[b],b,v),e))if(t)E[b]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:pN(E,d)}else switch(e){case 4:return!1;case 7:pN(E,d)}return i?-1:r||o?o:E}},vN=[hN(0),hN(1),hN(2),hN(3),hN(4),hN(5),hN(6),hN(7)][0],gN=(sN=[].forEach)&&n((function(){sN.call(null,(function(){return 1}),1)}))?[].forEach:function(e){return vN(this,e,arguments.length>1?arguments[1]:void 0)},yN=function(e){if(e&&e.forEach!==gN)try{Et(e,"forEach",gN)}catch(t){e.forEach=gN}};for(var mN in uo)uo[mN]&&yN(D[mN]&&D[mN].prototype);yN(lo),Jj("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Jj("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var bN={type:"paragraph",renderElem:function(e,t,n){return qg("p",null,t)}},wN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function EN(e){var t={exports:{}};return e(t,t.exports),t.exports}var SN,CN,DN=function(e){return e&&e.Math===Math&&e},xN=DN("object"==typeof globalThis&&globalThis)||DN("object"==typeof window&&window)||DN("object"==typeof self&&self)||DN("object"==typeof wN&&wN)||DN("object"==typeof wN&&wN)||function(){return this}()||Function("return this")(),ON=function(e){try{return!!e()}catch(e){return!0}},AN=!ON((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),kN=!ON((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),BN=Function.prototype.call,FN=kN?BN.bind(BN):function(){return BN.apply(BN,arguments)},TN={}.propertyIsEnumerable,PN=Object.getOwnPropertyDescriptor,_N=PN&&!TN.call({1:2},1)?function(e){var t=PN(this,e);return!!t&&t.enumerable}:TN,jN={f:_N},NN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IN=Function.prototype,RN=IN.call,LN=kN&&IN.bind.bind(RN,RN),MN=kN?LN:function(e){return function(){return RN.apply(e,arguments)}},zN=MN({}.toString),$N=MN("".slice),HN=function(e){return $N(zN(e),8,-1)},UN=Object,VN=MN("".split),WN=ON((function(){return!UN("z").propertyIsEnumerable(0)}))?function(e){return"String"===HN(e)?VN(e,""):UN(e)}:UN,GN=function(e){return null==e},qN=TypeError,KN=function(e){if(GN(e))throw new qN("Can't call method on "+e);return e},YN=function(e){return WN(KN(e))},XN="object"==typeof document&&document.all,ZN=void 0===XN&&void 0!==XN?function(e){return"function"==typeof e||e===XN}:function(e){return"function"==typeof e},JN=function(e){return"object"==typeof e?null!==e:ZN(e)},QN=function(e,t){return arguments.length<2?(n=xN[e],ZN(n)?n:void 0):xN[e]&&xN[e][t];var n},eI=MN({}.isPrototypeOf),tI=xN.navigator,nI=tI&&tI.userAgent,rI=nI?String(nI):"",oI=xN.process,iI=xN.Deno,aI=oI&&oI.versions||iI&&iI.version,uI=aI&&aI.v8;uI&&(CN=(SN=uI.split("."))[0]>0&&SN[0]<4?1:+(SN[0]+SN[1])),!CN&&rI&&(!(SN=rI.match(/Edge\/(\d+)/))||SN[1]>=74)&&(SN=rI.match(/Chrome\/(\d+)/))&&(CN=+SN[1]);var sI=CN,cI=xN.String,lI=!!Object.getOwnPropertySymbols&&!ON((function(){var e=Symbol("symbol detection");return!cI(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sI&&sI<41})),fI=lI&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dI=Object,pI=fI?function(e){return"symbol"==typeof e}:function(e){var t=QN("Symbol");return ZN(t)&&eI(t.prototype,dI(e))},hI=String,vI=TypeError,gI=function(e){if(ZN(e))return e;throw new vI(function(e){try{return hI(e)}catch(e){return"Object"}}(e)+" is not a function")},yI=function(e,t){var n=e[t];return GN(n)?void 0:gI(n)},mI=TypeError,bI=Object.defineProperty,wI=function(e,t){try{bI(xN,e,{value:t,configurable:!0,writable:!0})}catch(n){xN[e]=t}return t},EI=EN((function(e){var t="__core-js_shared__",n=e.exports=xN[t]||wI(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),SI=function(e,t){return EI[e]||(EI[e]=t||{})},CI=Object,DI=function(e){return CI(KN(e))},xI=MN({}.hasOwnProperty),OI=Object.hasOwn||function(e,t){return xI(DI(e),t)},AI=0,kI=Math.random(),BI=MN(1..toString),FI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+BI(++AI+kI,36)},TI=xN.Symbol,PI=SI("wks"),_I=fI?TI.for||TI:TI&&TI.withoutSetter||FI,jI=function(e){return OI(PI,e)||(PI[e]=lI&&OI(TI,e)?TI[e]:_I("Symbol."+e)),PI[e]},NI=TypeError,II=jI("toPrimitive"),RI=function(e){var t=function(e,t){if(!JN(e)||pI(e))return e;var n,r=yI(e,II);if(r){if(void 0===t&&(t="default"),n=FN(r,e,t),!JN(n)||pI(n))return n;throw new NI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ZN(n=e.toString)&&!JN(r=FN(n,e)))return r;if(ZN(n=e.valueOf)&&!JN(r=FN(n,e)))return r;if("string"!==t&&ZN(n=e.toString)&&!JN(r=FN(n,e)))return r;throw new mI("Can't convert object to primitive value")}(e,t)}(e,"string");return pI(t)?t:t+""},LI=xN.document,MI=JN(LI)&&JN(LI.createElement),zI=function(e){return MI?LI.createElement(e):{}},$I=!AN&&!ON((function(){return 7!==Object.defineProperty(zI("div"),"a",{get:function(){return 7}}).a})),HI=Object.getOwnPropertyDescriptor,UI={f:AN?HI:function(e,t){if(e=YN(e),t=RI(t),$I)try{return HI(e,t)}catch(e){}if(OI(e,t))return NN(!FN(jN.f,e,t),e[t])}},VI=AN&&ON((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),WI=String,GI=TypeError,qI=function(e){if(JN(e))return e;throw new GI(WI(e)+" is not an object")},KI=TypeError,YI=Object.defineProperty,XI=Object.getOwnPropertyDescriptor,ZI="enumerable",JI="configurable",QI="writable",eR={f:AN?VI?function(e,t,n){if(qI(e),t=RI(t),qI(n),"function"==typeof e&&"prototype"===t&&"value"in n&&QI in n&&!n[QI]){var r=XI(e,t);r&&r[QI]&&(e[t]=n.value,n={configurable:JI in n?n[JI]:r[JI],enumerable:ZI in n?n[ZI]:r[ZI],writable:!1})}return YI(e,t,n)}:YI:function(e,t,n){if(qI(e),t=RI(t),qI(n),$I)try{return YI(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new KI("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tR=AN?function(e,t,n){return eR.f(e,t,NN(1,n))}:function(e,t,n){return e[t]=n,e},nR=Function.prototype,rR=AN&&Object.getOwnPropertyDescriptor,oR=OI(nR,"name"),iR={EXISTS:oR,PROPER:oR&&"something"===function(){}.name,CONFIGURABLE:oR&&(!AN||AN&&rR(nR,"name").configurable)},aR=MN(Function.toString);ZN(EI.inspectSource)||(EI.inspectSource=function(e){return aR(e)});var uR,sR,cR,lR=EI.inspectSource,fR=xN.WeakMap,dR=ZN(fR)&&/native code/.test(String(fR)),pR=SI("keys"),hR=function(e){return pR[e]||(pR[e]=FI(e))},vR={},gR="Object already initialized",yR=xN.TypeError,mR=xN.WeakMap;if(dR||EI.state){var bR=EI.state||(EI.state=new mR);bR.get=bR.get,bR.has=bR.has,bR.set=bR.set,uR=function(e,t){if(bR.has(e))throw new yR(gR);return t.facade=e,bR.set(e,t),t},sR=function(e){return bR.get(e)||{}},cR=function(e){return bR.has(e)}}else{var wR=hR("state");vR[wR]=!0,uR=function(e,t){if(OI(e,wR))throw new yR(gR);return t.facade=e,tR(e,wR,t),t},sR=function(e){return OI(e,wR)?e[wR]:{}},cR=function(e){return OI(e,wR)}}var ER={set:uR,get:sR,has:cR,enforce:function(e){return cR(e)?sR(e):uR(e,{})},getterFor:function(e){return function(t){var n;if(!JN(t)||(n=sR(t)).type!==e)throw new yR("Incompatible receiver, "+e+" required");return n}}},SR=EN((function(e){var t=iR.CONFIGURABLE,n=ER.enforce,r=ER.get,o=String,i=Object.defineProperty,a=MN("".slice),u=MN("".replace),s=MN([].join),c=AN&&!ON((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!OI(e,"name")||t&&e.name!==r)&&(AN?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&OI(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&OI(f,"constructor")&&f.constructor?AN&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return OI(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return ZN(this)&&r(this).source||lR(this)}),"toString")})),CR=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ZN(n)&&SR(n,i,r),r.global)o?e[t]=n:wI(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:eR.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},DR=Math.ceil,xR=Math.floor,OR=Math.trunc||function(e){var t=+e;return(t>0?xR:DR)(t)},AR=function(e){var t=+e;return t!=t||0===t?0:OR(t)},kR=Math.max,BR=Math.min,FR=function(e,t){var n=AR(e);return n<0?kR(n+t,0):BR(n,t)},TR=Math.min,PR=function(e){var t=AR(e);return t>0?TR(t,9007199254740991):0},_R=function(e){return PR(e.length)},jR=function(e){return function(t,n,r){var o=YN(t),i=_R(o);if(0===i)return!e&&-1;var a,u=FR(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},NR={includes:jR(!0),indexOf:jR(!1)},IR=NR.indexOf,RR=MN([].push),LR=function(e,t){var n,r=YN(e),o=0,i=[];for(n in r)!OI(vR,n)&&OI(r,n)&&RR(i,n);for(;t.length>o;)OI(r,n=t[o++])&&(~IR(i,n)||RR(i,n));return i},MR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zR=MR.concat("length","prototype"),$R={f:Object.getOwnPropertyNames||function(e){return LR(e,zR)}},HR={f:Object.getOwnPropertySymbols},UR=MN([].concat),VR=QN("Reflect","ownKeys")||function(e){var t=$R.f(qI(e)),n=HR.f;return n?UR(t,n(e)):t},WR=function(e,t,n){for(var r=VR(t),o=eR.f,i=UI.f,a=0;a<r.length;a++){var u=r[a];OI(e,u)||n&&OI(n,u)||o(e,u,i(t,u))}},GR=/#|\.prototype\./,qR=function(e,t){var n=YR[KR(e)];return n===ZR||n!==XR&&(ZN(t)?ON(t):!!t)},KR=qR.normalize=function(e){return String(e).replace(GR,".").toLowerCase()},YR=qR.data={},XR=qR.NATIVE="N",ZR=qR.POLYFILL="P",JR=qR,QR=UI.f,eL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?xN:c?xN[u]||wI(u,{}):xN[u]&&xN[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=QR(n,r))&&a.value:n[r],!JR(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;WR(i,o)}(e.sham||o&&o.sham)&&tR(i,"sham",!0),CR(n,r,i,e)}},tL=function(e){if("Function"===HN(e))return MN(e)},nL=tL(tL.bind),rL=Array.isArray||function(e){return"Array"===HN(e)},oL={};oL[jI("toStringTag")]="z";var iL="[object z]"===String(oL),aL=jI("toStringTag"),uL=Object,sL="Arguments"===HN(function(){return arguments}()),cL=iL?HN:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=uL(e),aL))?n:sL?HN(t):"Object"===(r=HN(t))&&ZN(t.callee)?"Arguments":r},lL=function(){},fL=QN("Reflect","construct"),dL=/^\s*(?:class|function)\b/,pL=MN(dL.exec),hL=!dL.test(lL),vL=function(e){if(!ZN(e))return!1;try{return fL(lL,[],e),!0}catch(e){return!1}},gL=function(e){if(!ZN(e))return!1;switch(cL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hL||!!pL(dL,lR(e))}catch(e){return!0}};gL.sham=!0;var yL=!fL||ON((function(){var e;return vL(vL.call)||!vL(Object)||!vL((function(){e=!0}))||e}))?gL:vL,mL=jI("species"),bL=Array,wL=function(e,t){return new(function(e){var t;return rL(e)&&(t=e.constructor,(yL(t)&&(t===bL||rL(t.prototype))||JN(t)&&null===(t=t[mL]))&&(t=void 0)),void 0===t?bL:t}(e))(0===t?0:t)},EL=MN([].push),SL=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=DI(s),v=WN(h),g=_R(v),y=function(e,t){return gI(e),void 0===t?e:kN?nL(e,t):function(){return e.apply(t,arguments)}}(c,l),m=0,b=f||wL,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:EL(w,d)}else switch(e){case 4:return!1;case 7:EL(w,d)}return i?-1:r||o?o:w}},CL={forEach:SL(0),map:SL(1),filter:SL(2),some:SL(3),every:SL(4),find:SL(5),findIndex:SL(6),filterReject:SL(7)},DL=jI("species"),xL=function(e){return sI>=51||!ON((function(){var t=[];return(t.constructor={})[DL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},OL=CL.filter;eL({target:"Array",proto:!0,forced:!xL("filter")},{filter:function(e){return OL(this,e,arguments.length>1?arguments[1]:void 0)}});var AL=iL?{}.toString:function(){return"[object "+cL(this)+"]"};iL||CR(Object.prototype,"toString",AL,{unsafe:!0});var kL,BL=String,FL=function(e){if("Symbol"===cL(e))throw new TypeError("Cannot convert a Symbol value to a string");return BL(e)},TL=function(){var e=qI(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},PL=xN.RegExp,_L=ON((function(){var e=PL("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),jL=_L||ON((function(){return!PL("a","y").sticky})),NL={BROKEN_CARET:_L||ON((function(){var e=PL("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:jL,UNSUPPORTED_Y:_L},IL=Object.keys||function(e){return LR(e,MR)},RL=AN&&!VI?Object.defineProperties:function(e,t){qI(e);for(var n,r=YN(t),o=IL(t),i=o.length,a=0;i>a;)eR.f(e,n=o[a++],r[n]);return e},LL={f:RL},ML=QN("document","documentElement"),zL="prototype",$L="script",HL=hR("IE_PROTO"),UL=function(){},VL=function(e){return"<script>"+e+"</"+$L+">"},WL=function(e){e.write(VL("")),e.close();var t=e.parentWindow.Object;return e=null,t},GL=function(){try{kL=new ActiveXObject("htmlfile")}catch(e){}var e,t;GL="undefined"!=typeof document?document.domain&&kL?WL(kL):("javascript:",(t=zI("iframe")).style.display="none",ML.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(VL("document.F=Object")),e.close(),e.F):WL(kL);for(var n=MR.length;n--;)delete GL[zL][MR[n]];return GL()};vR[HL]=!0;var qL,KL,YL=Object.create||function(e,t){var n;return null!==e?(UL[zL]=qI(e),n=new UL,UL[zL]=null,n[HL]=e):n=GL(),void 0===t?n:LL.f(n,t)},XL=xN.RegExp,ZL=ON((function(){var e=XL(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),JL=xN.RegExp,QL=ON((function(){var e=JL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),eM=ER.get,tM=SI("native-string-replace",String.prototype.replace),nM=RegExp.prototype.exec,rM=nM,oM=MN("".charAt),iM=MN("".indexOf),aM=MN("".replace),uM=MN("".slice),sM=(KL=/b*/g,FN(nM,qL=/a/,"a"),FN(nM,KL,"a"),0!==qL.lastIndex||0!==KL.lastIndex),cM=NL.BROKEN_CARET,lM=void 0!==/()??/.exec("")[1];(sM||lM||cM||ZL||QL)&&(rM=function(e){var t,n,r,o,i,a,u,s=this,c=eM(s),l=FL(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=FN(rM,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=cM&&s.sticky,h=FN(TL,s),v=s.source,g=0,y=l;if(p&&(h=aM(h,"y",""),-1===iM(h,"g")&&(h+="g"),y=uM(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==oM(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),lM&&(n=new RegExp("^"+v+"$(?!\\s)",h)),sM&&(r=s.lastIndex),o=FN(nM,p?n:s,y),p?o?(o.input=uM(o.input,g),o[0]=uM(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:sM&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lM&&o&&o.length>1&&FN(tM,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=YL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var fM=rM;eL({target:"RegExp",proto:!0,forced:/./.exec!==fM},{exec:fM});var dM=Function.prototype,pM=dM.apply,hM=dM.call,vM="object"==typeof Reflect&&Reflect.apply||(kN?hM.bind(pM):function(){return hM.apply(pM,arguments)}),gM=jI("species"),yM=RegExp.prototype,mM=function(e,t,n,r){var o=jI(e),i=!ON((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!ON((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[gM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===fM||a===yM.exec?i&&!o?{done:!0,value:FN(u,t,n,r)}:{done:!0,value:FN(e,n,t,r)}:{done:!1}}));CR(String.prototype,e,s[0]),CR(yM,o,s[1])}r&&tR(yM[o],"sham",!0)},bM=MN("".charAt),wM=MN("".charCodeAt),EM=MN("".slice),SM=function(e){return function(t,n){var r,o,i=FL(KN(t)),a=AR(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wM(i,a))<55296||r>56319||a+1===u||(o=wM(i,a+1))<56320||o>57343?e?bM(i,a):r:e?EM(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),CM=function(e,t,n){return t+(n?SM(e,t).length:1)},DM=Math.floor,xM=MN("".charAt),OM=MN("".replace),AM=MN("".slice),kM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,BM=/\$([$&'`]|\d{1,2})/g,FM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=BM;return void 0!==o&&(o=DI(o),s=kM),OM(i,s,(function(i,s){var c;switch(xM(s,0)){case"$":return"$";case"&":return e;case"`":return AM(t,0,n);case"'":return AM(t,a);case"<":c=o[AM(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=DM(l/10);return 0===f?i:f<=u?void 0===r[f-1]?xM(s,1):r[f-1]+xM(s,1):i}c=r[l-1]}return void 0===c?"":c}))},TM=TypeError,PM=function(e,t){var n=e.exec;if(ZN(n)){var r=FN(n,e,t);return null!==r&&qI(r),r}if("RegExp"===HN(e))return FN(fM,e,t);throw new TM("RegExp#exec called on incompatible receiver")},_M=jI("replace"),jM=Math.max,NM=Math.min,IM=MN([].concat),RM=MN([].push),LM=MN("".indexOf),MM=MN("".slice),zM="$0"==="a".replace(/./,"$0"),$M=!!/./[_M]&&""===/./[_M]("a","$0");mM("replace",(function(e,t,n){var r=$M?"$":"$0";return[function(e,n){var r=KN(this),o=GN(e)?void 0:yI(e,_M);return o?FN(o,e,r,n):FN(t,FL(r),e,n)},function(e,o){var i=qI(this),a=FL(e);if("string"==typeof o&&-1===LM(o,r)&&-1===LM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=ZN(o);s||(o=FL(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=PM(i,a))&&(RM(d,f),l);)""===FL(f[0])&&(i.lastIndex=CM(a,PR(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=FL((f=d[g])[0]),b=jM(NM(AR(f.index),a.length),0),w=[],E=1;E<f.length;E++)RM(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=IM([m],w,b,a);void 0!==S&&RM(C,S),y=FL(vM(o,void 0,C))}else y=FM(m,a,b,w,S,o);b>=v&&(h+=MM(a,v,b)+y,v=b+m.length)}return h+MM(a,v)}]}),!!ON((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!zM||$M);var HM=eR.f,UM=jI("unscopables"),VM=Array.prototype;void 0===VM[UM]&&HM(VM,UM,{configurable:!0,value:YL(null)});var WM=function(e){VM[UM][e]=!0},GM=CL.find,qM="find",KM=!0;qM in[]&&Array(1)[qM]((function(){KM=!1})),eL({target:"Array",proto:!0,forced:KM},{find:function(e){return GM(this,e,arguments.length>1?arguments[1]:void 0)}}),WM(qM);var YM,XM="\t\n\v\f\r \u2028\u2029\ufeff",ZM=MN("".replace),JM=RegExp("^["+XM+"]+"),QM=RegExp("(^|[^"+XM+"])["+XM+"]+$"),ez=function(e){return function(t){var n=FL(KN(t));return 1&e&&(n=ZM(n,JM,"")),2&e&&(n=ZM(n,QM,"$1")),n}},tz={start:ez(1),end:ez(2),trim:ez(3)},nz=iR.PROPER,rz=tz.trim;function oz(e){return 0===Jh("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function iz(e){return 0===e.length?"":e[0].outerHTML}function az(e){return e.length?e[0].tagName.toLowerCase():""}function uz(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}eL({target:"String",proto:!0,forced:(YM="trim",ON((function(){return!!XM[YM]()||"
"!=="
"[YM]()||nz&&XM[YM].name!==YM})))},{trim:function(){return rz(this)}}),eL({global:!0,forced:xN.globalThis!==xN},{globalThis:xN}),pv&&(Jh.fn.css=pv),bv&&(Jh.fn.append=bv),wv&&(Jh.fn.prepend=wv),Qh&&(Jh.fn.addClass=Qh),ev&&(Jh.fn.removeClass=ev),tv&&(Jh.fn.hasClass=tv),av&&(Jh.fn.on=av),uv&&(Jh.fn.off=uv),Fv&&(Jh.fn.focus=Fv),nv&&(Jh.fn.attr=nv),rv&&(Jh.fn.removeAttr=rv),fv&&(Jh.fn.hide=fv),dv&&(Jh.fn.show=dv),Sv&&(Jh.fn.parents=Sv),ov&&(Jh.fn.dataset=ov),iv&&(Jh.fn.val=iv),yv&&(Jh.fn.text=yv),gv&&(Jh.fn.html=gv),Dv&&(Jh.fn.children=Dv),xv&&(Jh.fn.remove=xv),Cv&&(Jh.fn.find=Cv),sv&&(Jh.fn.width=sv),cv&&(Jh.fn.height=cv),vv&&(Jh.fn.filter=vv),Ov&&(Jh.fn.empty=Ov);var sz={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);return 0===(t=t.filter((function(e){return!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},cz=function(e,t){return cz=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])},cz(e,t)
|
54
|
+
/*! *****************************************************************************
|
55
|
+
Copyright (c) Microsoft Corporation.
|
56
|
+
|
57
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
58
|
+
purpose with or without fee is hereby granted.
|
59
|
+
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
61
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
62
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
63
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
64
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
65
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
66
|
+
PERFORMANCE OF THIS SOFTWARE.
|
67
|
+
***************************************************************************** */};function lz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var fz=function(){return fz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fz.apply(this,arguments)};function dz(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function pz(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function hz(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vz(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gz(e){var t=vz(zd.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!jd.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Wd.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!lp.isText(o[0])&&(kp.setNodes(e,{type:"paragraph"}),!0)}var yz={renderElems:[bN],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[sz],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){gz(r)||t(e)},r.deleteForward=function(e){gz(r)||n(e)},r}},mz=/"/g,bz=MN("".replace),wz=function(e,t,n,r){var o=FL(KN(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+bz(FL(r),mz,""")+'"'),i+">"+o+"</"+t+">"},Ez=function(e){return ON((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function Sz(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Cz(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}eL({target:"String",proto:!0,forced:Ez("bold")},{bold:function(){return wz(this,"b","","")}}),eL({target:"String",proto:!0,forced:Ez("italics")},{italics:function(){return wz(this,"i","","")}}),eL({target:"String",proto:!0,forced:Ez("sub")},{sub:function(){return wz(this,"sub","","")}}),eL({target:"String",proto:!0,forced:Ez("sup")},{sup:function(){return wz(this,"sup","","")}});var Dz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xz=zI("span").classList,Oz=xz&&xz.constructor&&xz.constructor.prototype,Az=Oz===Object.prototype?void 0:Oz,kz=function(e,t){var n=[][e];return!!n&&ON((function(){n.call(null,t||function(){return 1},1)}))},Bz=CL.forEach,Fz=kz("forEach")?[].forEach:function(e){return Bz(this,e,arguments.length>1?arguments[1]:void 0)},Tz=function(e){if(e&&e.forEach!==Fz)try{tR(e,"forEach",Fz)}catch(t){e.forEach=Fz}};for(var Pz in Dz)Dz[Pz]&&Tz(xN[Pz]&&xN[Pz].prototype);function _z(e,t){return null==e.selection||!!vz(zd.nodes(e,{match:function(t){return"pre"===YF.getNodeType(t)||!!zd.isVoid(e,t)},universal:!0}),1)[0]}function jz(e,t){Object.keys(t).forEach((function(t){"text"!==t&&zd.removeMark(e,t)}))}Tz(Az),eL({target:"Object",stat:!0,forced:ON((function(){IL(1)}))},{keys:function(e){return IL(DI(e))}});var Nz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=zd.marks(e);return n?n[t]:!!vz(zd.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return _z(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),Iz='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',Rz='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Lz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Qj("textStyle.bold"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t.hotkey="mod+b",t}return lz(t,e),t}(Nz),Mz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Qj("textStyle.code"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',t.hotkey="mod+e",t}return lz(t,e),t}(Nz),zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Qj("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return lz(t,e),t}(Nz),$z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Qj("textStyle.through"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',t.hotkey="mod+shift+x",t}return lz(t,e),t}(Nz),Hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Qj("textStyle.underline"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',t.hotkey="mod+u",t}return lz(t,e),t}(Nz),Uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Qj("textStyle.sub"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return lz(t,e),t}(Nz),Vz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Qj("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return lz(t,e),t}(Nz),Wz=function(){function e(){this.title=Qj("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return _z(e)},e.prototype.exec=function(e,t){var n,r,o=zd.nodes(e,{match:function(e){return lp.isText(e)},universal:!0});try{for(var i=hz(o),a=i.next();!a.done;a=i.next())jz(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),Gz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,c=n.sup,l=t;return r&&(l=qg("strong",null,l)),a&&(l=qg("code",null,l)),o&&(l=qg("em",null,l)),i&&(l=qg("u",null,l)),u&&(l=qg("s",null,l)),s&&(l=qg("sub",null,l)),c&&(l=qg("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new Lz}},{key:"underline",factory:function(){return new Hz}},{key:"italic",factory:function(){return new zz}},{key:"through",factory:function(){return new $z}},{key:"code",factory:function(){return new Mz}},{key:"sub",factory:function(){return new Uz}},{key:"sup",factory:function(){return new Vz}},{key:"clearStyle",factory:function(){return new Wz}}],styleToHtml:function(e,t){if(!lp.isText(e))return t;if(oz(t))return Sz(e,t);var n=Jh(t);if("br"===az(n))return Sz(e,"<br>");var r=n.html();return r=Sz(e,r),n.html(r),iz(n)},parseStyleHtml:function(e,t,n){var r=Jh(e);if(!lp.isText(t))return t;var o=t;return Cz(r,"b,strong")&&(o.bold=!0),Cz(r,"i,em")&&(o.italic=!0),Cz(r,"u")&&(o.underline=!0),Cz(r,"s,strike")&&(o.through=!0),Cz(r,"sub")&&(o.sub=!0),Cz(r,"sup")&&(o.sup=!0),Cz(r,"code")&&(o.code=!0),o}};function qz(e){return function(t,n,r){return qg("h"+e,null,n)}}var Kz={type:"header1",renderElem:qz(1)},Yz={type:"header2",renderElem:qz(2)},Xz={type:"header3",renderElem:qz(3)},Zz={type:"header4",renderElem:qz(4)},Jz={type:"header5",renderElem:qz(5)},Qz=RegExp.prototype,e$=iR.PROPER,t$="toString",n$=RegExp.prototype,r$=n$[t$],o$=ON((function(){return"/a/b"!==r$.call({source:"a",flags:"b"})})),i$=e$&&r$.name!==t$;(o$||i$)&&CR(n$,t$,(function(){var e=qI(this),t=FL(e.source),n=FL(function(e){var t=e.flags;return void 0!==t||"flags"in Qz||OI(e,"flags")||!eI(Qz,e)?t:FN(TL,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var a$,u$=jI("match"),s$=TypeError,c$=function(e){if(function(e){var t;return JN(e)&&(void 0!==(t=e[u$])?!!t:"RegExp"===HN(e))}(e))throw new s$("The method doesn't accept regular expressions");return e},l$=jI("match"),f$=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[l$]=!1,"/./"[e](t)}catch(e){}}return!1},d$=UI.f,p$=tL("".slice),h$=Math.min,v$=f$("startsWith");function g$(e){var t=vz(zd.nodes(e,{match:function(e){return YF.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=vz(n,1)[0];return YF.getNodeType(r)}function y$(e){return null==e.selection||!vz(zd.nodes(e,{match:function(e){var t=YF.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function m$(e,t){t&&kp.setNodes(e,{type:t})}eL({target:"String",proto:!0,forced:!(!v$&&(a$=d$(String.prototype,"startsWith"),a$&&!a$.writable)||v$)},{startsWith:function(e){var t=FL(KN(this));c$(e);var n=PR(h$(arguments.length>1?arguments[1]:void 0,t.length)),r=FL(e);return p$(t,n,n+r.length)===r}});var b$=function(){function e(){this.title=Qj("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Qj("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return g$(e)},e.prototype.isDisabled=function(e){return y$(e)},e.prototype.exec=function(e,t){m$(e,t.toString())},e}(),w$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return g$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return y$(e)},e.prototype.exec=function(e,t){var n=this.type;m$(e,t===n?"paragraph":n)},e}(),E$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return lz(t,e),t}(w$),S$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return lz(t,e),t}(w$),C$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return lz(t,e),t}(w$),D$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return lz(t,e),t}(w$),x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return lz(t,e),t}(w$),O$={key:"headerSelect",factory:function(){return new b$}},A$={key:"header1",factory:function(){return new E$}},k$={key:"header2",factory:function(){return new S$}},B$={key:"header3",factory:function(){return new C$}},F$={key:"header4",factory:function(){return new D$}},T$={key:"header5",factory:function(){return new x$}};function P$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function _$(e){return function(t,n,r){var o=Jh(t);return 0===(n=n.filter((function(e){return!!lp.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var j$={renderElems:[Kz,Yz,Xz,Zz,Jz],elemsToHtml:[{type:"header1",elemToHtml:P$(1)},{type:"header2",elemToHtml:P$(2)},{type:"header3",elemToHtml:P$(3)},{type:"header4",elemToHtml:P$(4)},{type:"header5",elemToHtml:P$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:_$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:_$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:_$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:_$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:_$(5)}],menus:[O$,A$,k$,B$,F$,T$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=vz(zd.nodes(n,{match:function(e){return YF.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&YF.isSelectionAtLineEnd(e,r[1])?kp.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},N$=Object.assign,I$=Object.defineProperty,R$=MN([].concat),L$=!N$||ON((function(){if(AN&&1!==N$({b:1},N$(I$({},"a",{enumerable:!0,get:function(){I$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==N$({},e)[n]||IL(N$({},t)).join("")!==r}))?function(e,t){for(var n=DI(e),r=arguments.length,o=1,i=HR.f,a=jN.f;r>o;)for(var u,s=WN(arguments[o++]),c=i?R$(IL(s),i(s)):IL(s),l=c.length,f=0;l>f;)u=c[f++],AN&&!FN(a,s,u)||(n[u]=s[u]);return n}:N$;function M$(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}eL({target:"Object",stat:!0,arity:2,forced:Object.assign!==L$},{assign:L$});var z$={selector:"font",preParseHtml:function(e){var t=Jh(e);if("font"!==az(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},$$=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=zd.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!vz(zd.nodes(e,{match:function(t){return"pre"===YF.getNodeType(t)||!!zd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Jh('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Jh(r).attr("data-value");"0"===o?zd.removeMark(e,t):zd.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Jh('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Jh('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Qj("color.default")),"bgColor"===t&&(a=Qj("color.clear"));var u=Jh('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),H$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("color.color"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',t.mark="color",t}return lz(t,e),t}($$),U$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("color.bgColor"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',t.mark="bgColor",t}return lz(t,e),t}($$),V$=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],W$={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&M$(i,{color:r}),o&&M$(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!lp.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((oz(t)||"span"!==az(n=Jh(t)))&&(n=Jh("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),iz(n)):t},preParseHtml:[z$],parseStyleHtml:function(e,t,n){var r=Jh(e);if(!lp.isText(t))return t;var o=t,i=uz(r,"color");i&&(o.color=i);var a=uz(r,"background-color");return a||(a=uz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new H$},config:{colors:V$}},{key:"bgColor",factory:function(){return new U$},config:{colors:V$}}]},G$=/^(?:\w+:)?\/\/(\S+)$/,q$=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,K$=/^[^\s\.]+\.\S{2,}$/,Y$=NR.includes;function X$(e){return void 0===e&&(e="r"),e+"-"+Kv()}function Z$(e){return e.replace(/</g,"<").replace(/>/g,">")}function J$(e,t,n,r){return dz(this,void 0,void 0,(function(){var o,i;return pz(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Q$(e,t,n){return dz(this,void 0,void 0,(function(){var r;return pz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function eH(e){return null==e.selection||!!YF.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function tH(e,t){return{type:"link",url:Z$(e),children:t?[{text:t}]:[]}}function nH(e,t,n){return dz(this,void 0,void 0,(function(){var r,o,i;return pz(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),eH(e)?[2]:[4,J$("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Q$("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(rp.isCollapsed(o)?(e.insertText(" "),i=tH(r,t),kp.insertNodes(e,i),e.insertFragment([{text:" "}])):zd.string(e,o)!==t?(e.deleteFragment(),i=tH(r,t),kp.insertNodes(e,i)):(i=tH(r),kp.wrapNodes(e,i,{split:!0}),kp.collapse(e,{edge:"end"}))),[2]}}))}))}eL({target:"Array",proto:!0,forced:ON((function(){return!Array(1).includes()}))},{includes:function(e){return Y$(this,e,arguments.length>1?arguments[1]:void 0)}}),WM("includes");var rH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return qg("a",{href:o,target:void 0===i?"_blank":i},t)}},oH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);return 0===(t=t.filter((function(e){return!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function iH(){return X$("w-e-insert-link")}var aH=function(){function e(){this.title=Qj("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=iH(),this.urlInputId=iH(),this.buttonId=iH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return eH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=vz(N_(Qj("link.text"),r),2),u=a[0],s=Jh(a[1]),c=vz(N_(Qj("link.url"),o),2),l=c[0],f=Jh(c[1]),d=vz(I_(i,Qj("common.ok")),1)[0];if(null==this.$content){var p=Jh("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();nH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(d),null==t||rp.isCollapsed(t))s.val("");else{var v=zd.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function uH(){return X$("w-e-update-link")}var sH=function(){function e(){this.title=Qj("link.edit"),this.iconSvg=Iz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=uH(),this.buttonId=uH()}return e.prototype.getSelectedLinkElem=function(e){var t=YF.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return YF.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=vz(N_(Qj("link.url"),t),2),o=r[0],i=Jh(r[1]),a=vz(I_(n,Qj("common.ok")),1)[0];if(null==this.$content){var u=Jh("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=YF.getSelectedNodeByType(e,"link"),o=r?Wd.string(r):"",i=u.find("#"+t).val();!function(e,t,n){dz(this,void 0,void 0,(function(){var r,o;return pz(this,(function(i){switch(i.label){case 0:return n?[4,J$("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Q$("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Z$(r)},kp.setNodes(e,o,{match:function(e){return YF.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var c=this.getValue(e);return i.val(c),setTimeout((function(){i.focus()})),s[0]},e}(),cH=function(){function e(){this.title=Qj("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==YF.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||kp.unwrapNodes(e,{match:function(e){return YF.checkNodeType(e,"link")}})},e}(),lH=function(){function e(){this.title=Qj("link.view"),this.iconSvg=Rz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=YF.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),fH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},dH={renderElems:[rH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[oH],menus:[{key:"insertLink",factory:function(){return new aH},config:fH},{key:"editLink",factory:function(){return new sH},config:fH},{key:"unLink",factory:function(){return new cH}},{key:"viewLink",factory:function(){return new lH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(G$);if(!t)return!1;var n=t[1];return!(!n||!q$.test(n)&&!K$.test(n))}(t)){if(!eH(o)){var r=o.selection;if(null!=r){var i=zd.string(o,r);nH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=vz(e,2),n=t[0],i=t[1];return"link"!==YF.getNodeType(n)?r([n,i]):""===Wd.string(n)?kp.removeNodes(o,{at:i}):r([n,i])},o}},pH=MN(1..valueOf),hH=RangeError,vH=RangeError,gH=String,yH=Math.floor,mH=MN((function(e){var t=FL(KN(this)),n="",r=AR(e);if(r<0||r===1/0)throw new hH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),bH=MN("".slice),wH=MN(1..toFixed),EH=function(e,t,n){return 0===t?n:t%2==1?EH(e,t-1,n*e):EH(e*e,t/2,n)},SH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=yH(o/1e7)},CH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=yH(r/t),r=r%t*1e7},DH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=gH(e[t]);n=""===n?r:n+mH("0",7-r.length)+r}return n};function xH(e,t){return"w-e-image-container-"+YF.findKey(e,t).id}eL({target:"Number",proto:!0,forced:ON((function(){return"0.000"!==wH(8e-5,3)||"1"!==wH(.9,0)||"1.25"!==wH(1.255,2)||"1000000000000000128"!==wH(0xde0b6b3a7640080,0)}))||!ON((function(){wH({})}))},{toFixed:function(e){var t,n,r,o,i=pH(this),a=AR(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw new vH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return gH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*EH(2,69,1))-69)<0?i*EH(2,-t,1):i/EH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(SH(u,0,n),r=a;r>=7;)SH(u,1e7,0),r-=7;for(SH(u,EH(10,r,1),0),r=t-1;r>=23;)CH(u,1<<23),r-=23;CH(u,1<<r),SH(u,1,1),CH(u,2),c=DH(u)}else SH(u,0,n),SH(u,1<<-t,0),c=DH(u)+mH("0",a);return a>0?s+((o=c.length)<=a?"0."+mH("0",a-o)+c:bH(c,0,o-a)+"."+bH(c,o-a)):s+c}});var OH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=YF.isNodeSelected(n,e),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=qg("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Jh("body"),i=xH(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=0,d=!1,p=null,h=lg((function(e){e.preventDefault();var t=e.clientX,n=c+(d?s-t:t-s),r=l*(n/c);n>f-6||null!=p&&(n<=15||r<=15||(p.css("width",n+"px"),p.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=p){var r=p.width().toFixed(2),i=p.height().toFixed(2),a={style:fz(fz({},t.style),{width:r+"px",height:i+"px"})};kp.setNodes(e,a,{at:YF.findPath(e,t)}),o.off("mouseup",v)}}function g(t,n){p=function(){var e=Jh("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t,f=n;var r=p.find("img");if(0===r.length)throw new Error("Cannot find image elem");c=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var a=YF.getHoverbar(e);a&&a.hideAndClean()}var y={};return a&&(y.width=a),u&&(y.height=u),y.boxShadow="0 0 0 1px #B4D5FF",qg("div",{id:i,style:y,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=Jh(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(d=!0);var o=YF.getParentNode(e,t);if(null!=o){var i=YF.toDOMNode(e,o),a=i.getBoundingClientRect?i.getBoundingClientRect():{width:0},u=window.getComputedStyle(i),s=parseFloat(u.paddingLeft),c=parseFloat(u.paddingRight),l=parseFloat(u.borderLeftWidth),f=parseFloat(u.borderRightWidth);g(n.clientX,a.width-s-c-l-f)}}}}},n,qg("div",{className:"w-e-image-dragger left-top"}),qg("div",{className:"w-e-image-dragger right-top"}),qg("div",{className:"w-e-image-dragger left-bottom"}),qg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),qg("div",{id:xH(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},AH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:uz(r,"width"),height:uz(r,"height")},children:[{text:""}]}}};function kH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),dz(this,void 0,void 0,(function(){var i,a;return pz(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function BH(e,t,n){return dz(this,void 0,void 0,(function(){var r;return pz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function FH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),dz(this,void 0,void 0,(function(){var o,i,a;return pz(this,(function(u){switch(u.label){case 0:return[4,kH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,BH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Z$(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),YF.getSelectedNodeByType(e,"image")&&e.move(1),TH(e)||(kp.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function TH(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||!!vz(zd.nodes(e,{match:function(t){var n=YF.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!zd.isVoid(e,t)},universal:!0}),1)[0]}function PH(){return X$("w-e-insert-image")}var _H=function(){function e(){this.title=Qj("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=PH(),this.altInputId=PH(),this.hrefInputId=PH(),this.buttonId=PH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return TH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=vz(N_(Qj("image.src"),r),2),s=u[0],c=Jh(u[1]),l=vz(N_(Qj("image.desc"),o),2),f=l[0],d=Jh(l[1]),p=vz(N_(Qj("image.link"),i),2),h=p[0],v=Jh(p[1]),g=vz(I_(a,Qj("common.ok")),1)[0];if(null==this.$content){var y=Jh("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),d.val(""),v.val(""),setTimeout((function(){c.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||FH(e,t,n,r))},e}(),jH=function(){function e(){this.title=Qj("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==YF.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||kp.removeNodes(e,{match:function(e){return YF.checkNodeType(e,"image")}})},e}();function NH(){return X$("w-e-edit-image")}var IH=function(){function e(){this.title=Qj("image.edit"),this.iconSvg=Iz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=NH(),this.altInputId=NH(),this.hrefInputId=NH(),this.buttonId=NH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return YF.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=vz(N_(Qj("image.src"),r),2),c=s[0],l=Jh(s[1]),f=vz(N_(Qj("image.desc"),o),2),d=f[0],p=Jh(f[1]),h=vz(N_(Qj("image.link"),i),2),v=h[0],g=Jh(h[1]),y=vz(I_(a,Qj("common.ok")),1)[0];if(null==this.$content){var m=Jh("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(d),b.append(v),b.append(y);var w=u,E=w.src,S=w.alt,C=void 0===S?"":S,D=w.href,x=void 0===D?"":D;return l.val(E),p.val(C),g.val(x),setTimeout((function(){l.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),dz(this,void 0,void 0,(function(){var i,a,u,s,c,l;return pz(this,(function(f){switch(f.label){case 0:return[4,kH("editImage",e,t,n,r)];case 1:return f.sent()?[4,BH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=YF.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:fz(fz({},void 0===u?{}:u),o)},kp.setNodes(e,s,{match:function(e){return YF.checkNodeType(e,"image")}}),c=YF.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}}))}))}(e,t,n,r,o))},e}(),RH=function(){function e(){this.title=Qj("image.viewLink"),this.iconSvg=Rz,this.tag="button"}return e.prototype.getValue=function(e){var t=YF.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),LH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return YF.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=YF.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:fz(fz({},void 0===o?{}:o),{width:this.value,height:""})};kp.setNodes(e,i,{match:function(e){return YF.checkNodeType(e,"image")}})}}},e}(),MH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return lz(t,e),t}(LH),zH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return lz(t,e),t}(LH),$H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return lz(t,e),t}(LH),HH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},UH={renderElems:[OH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[AH],menus:[{key:"insertImage",factory:function(){return new _H},config:HH},{key:"deleteImage",factory:function(){return new jH}},{key:"editImage",factory:function(){return new IH},config:HH},{key:"viewImageLink",factory:function(){return new RH}},{key:"imageWidth30",factory:function(){return new MH}},{key:"imageWidth50",factory:function(){return new zH}},{key:"imageWidth100",factory:function(){return new $H}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},VH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=qg("div",{style:{margin:"5px 0"}},qg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},qg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=YF.findPath(n,e),o={checked:t.target.checked};kp.setNodes(n,o,{at:r})}}})),qg("span",null,t));return o}},WH=function(){function e(){this.title=Qj("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!YF.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!YF.getSelectedElems(e).some((function(t){if(zd.isVoid(e,t)&&zd.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);kp.setNodes(e,{type:n?"paragraph":"todo"})},e}(),GH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Jh(e);0===(t=t.filter((function(e){return!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},qH={renderElems:[VH],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Jh(e).find("li"),n=Jh('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[GH],menus:[{key:"todo",factory:function(){return new WH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&rp.isCollapsed(r)){var o=YF.getSelectedNodeByType(e,"todo");if(o&&0===Wd.string(o).length)return void kp.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},KH={type:"blockquote",renderElem:function(e,t,n){return qg("blockquote",null,t)}},YH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);return 0===(t=t.filter((function(e){return!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},XH=function(){function e(){this.title=Qj("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!YF.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!vz(zd.nodes(e,{match:function(e){var t=YF.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";kp.setNodes(e,{type:n},{mode:"highest"})}},e}(),ZH={key:"blockquote",factory:function(){return new XH}},JH=MN([].slice),QH=xL("slice"),eU=jI("species"),tU=Array,nU=Math.max;eL({target:"Array",proto:!0,forced:!QH},{slice:function(e,t){var n,r,o,i,a,u,s=YN(this),c=_R(s),l=FR(e,c),f=FR(void 0===t?c:t,c);if(rL(s)&&(n=s.constructor,(yL(n)&&(n===tU||rL(n.prototype))||JN(n)&&null===(n=n[eU]))&&(n=void 0),n===tU||void 0===n))return JH(s,l,f);for(r=new(void 0===n?tU:n)(nU(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],AN?eR.f(i,a,NN(0,u)):i[a]=u);return r.length=o,r}});var rU={renderElems:[KH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[YH],menus:[ZH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=vz(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=YF.findPath(e,a),s=zd.end(e,u);if(Qd.equals(s,o.focus)){var c=Wd.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void kp.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},oU=function(){function e(){this.title=Qj("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!vz(zd.nodes(e,{match:function(t){return"pre"===YF.getNodeType(t)||!!zd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Jh('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Jh(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Jh("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),iU={menus:[{key:"emotion",factory:function(){return new oU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},aU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},uU={selector:"font",preParseHtml:function(e){var t=Jh(e);if("font"!==az(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",aU[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},sU=MN("".indexOf);eL({target:"String",proto:!0,forced:!f$("includes")},{includes:function(e){return!!~sU(FL(KN(this)),FL(c$(e)),arguments.length>1?arguments[1]:void 0)}});var cU,lU,fU=function(e){return e&&e.Math===Math&&e},dU=fU("object"==typeof globalThis&&globalThis)||fU("object"==typeof window&&window)||fU("object"==typeof self&&self)||fU("object"==typeof wN&&wN)||fU("object"==typeof wN&&wN)||function(){return this}()||Function("return this")(),pU=function(e){try{return!!e()}catch(e){return!0}},hU=!pU((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),vU=hU,gU=Function.prototype,yU=gU.apply,mU=gU.call,bU="object"==typeof Reflect&&Reflect.apply||(vU?mU.bind(yU):function(){return mU.apply(yU,arguments)}),wU=Function.prototype,EU=wU.call,SU=vU&&wU.bind.bind(EU,EU),CU=vU?SU:function(e){return function(){return EU.apply(e,arguments)}},DU=CU({}.toString),xU=CU("".slice),OU=function(e){return xU(DU(e),8,-1)},AU="object"==typeof document&&document.all,kU=void 0===AU&&void 0!==AU?function(e){return"function"==typeof e||e===AU}:function(e){return"function"==typeof e},BU=!pU((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),FU=Function.prototype.call,TU=vU?FU.bind(FU):function(){return FU.apply(FU,arguments)},PU={}.propertyIsEnumerable,_U=Object.getOwnPropertyDescriptor,jU=_U&&!PU.call({1:2},1)?function(e){var t=_U(this,e);return!!t&&t.enumerable}:PU,NU={f:jU},IU=Object,RU=CU("".split),LU=pU((function(){return!IU("z").propertyIsEnumerable(0)}))?function(e){return"String"===OU(e)?RU(e,""):IU(e)}:IU,MU=function(e){return null==e},zU=TypeError,$U=LU,HU=function(e){if(MU(e))throw new zU("Can't call method on "+e);return e},UU=kU,VU={},WU=dU,GU=function(e){return UU(e)?e:void 0},qU=CU({}.isPrototypeOf),KU=WU.navigator,YU=KU&&KU.userAgent,XU=YU?String(YU):"",ZU=WU.process,JU=WU.Deno,QU=ZU&&ZU.versions||JU&&JU.version,eV=QU&&QU.v8;eV&&(lU=(cU=eV.split("."))[0]>0&&cU[0]<4?1:+(cU[0]+cU[1])),!lU&&XU&&(!(cU=XU.match(/Edge\/(\d+)/))||cU[1]>=74)&&(cU=XU.match(/Chrome\/(\d+)/))&&(lU=+cU[1]);var tV=lU,nV=WU.String,rV=!!Object.getOwnPropertySymbols&&!pU((function(){var e=Symbol("symbol detection");return!nV(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tV&&tV<41})),oV=rV,iV=oV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,aV=function(e,t){return arguments.length<2?GU(VU[e])||GU(WU[e]):VU[e]&&VU[e][t]||WU[e]&&WU[e][t]},uV=qU,sV=iV,cV=Object,lV=sV?function(e){return"symbol"==typeof e}:function(e){var t=aV("Symbol");return UU(t)&&uV(t.prototype,cV(e))},fV=String,dV=function(e){try{return fV(e)}catch(e){return"Object"}},pV=TypeError,hV=function(e){if(UU(e))return e;throw new pV(dV(e)+" is not a function")},vV=TU,gV=function(e){return"object"==typeof e?null!==e:UU(e)},yV=TypeError,mV=Object.defineProperty,bV=EN((function(e){var t="__core-js_shared__",n=e.exports=WU[t]||function(e,t){try{mV(WU,e,{value:t,configurable:!0,writable:!0})}catch(n){WU[e]=t}return t}(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),wV=bV,EV=Object,SV=function(e){return EV(HU(e))},CV=CU({}.hasOwnProperty),DV=Object.hasOwn||function(e,t){return CV(SV(e),t)},xV=0,OV=Math.random(),AV=CU(1..toString),kV=function(e,t){return wV[e]||(wV[e]=t||{})},BV=DV,FV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+AV(++xV+OV,36)},TV=WU.Symbol,PV=kV("wks"),_V=sV?TV.for||TV:TV&&TV.withoutSetter||FV,jV=lV,NV=function(e){return BV(PV,e)||(PV[e]=oV&&BV(TV,e)?TV[e]:_V("Symbol."+e)),PV[e]},IV=TypeError,RV=NV("toPrimitive"),LV=WU.document,MV=gV(LV)&&gV(LV.createElement),zV=BU,$V=function(e){return MV?LV.createElement(e):{}},HV=!zV&&!pU((function(){return 7!==Object.defineProperty($V("div"),"a",{get:function(){return 7}}).a})),UV=NU,VV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},WV=function(e){return $U(HU(e))},GV=function(e){var t=function(e,t){if(!gV(e)||jV(e))return e;var n,r=function(e,t){var n=e[RV];return MU(n)?void 0:hV(n)}(e);if(r){if(void 0===t&&(t="default"),n=vV(r,e,t),!gV(n)||jV(n))return n;throw new IV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&UU(n=e.toString)&&!gV(r=vV(n,e)))return r;if(UU(n=e.valueOf)&&!gV(r=vV(n,e)))return r;if("string"!==t&&UU(n=e.toString)&&!gV(r=vV(n,e)))return r;throw new yV("Can't convert object to primitive value")}(e,t)}(e,"string");return jV(t)?t:t+""},qV=HV,KV=Object.getOwnPropertyDescriptor,YV={f:zV?KV:function(e,t){if(e=WV(e),t=GV(t),qV)try{return KV(e,t)}catch(e){}if(BV(e,t))return VV(!vV(UV.f,e,t),e[t])}},XV=/#|\.prototype\./,ZV=function(e,t){var n=QV[JV(e)];return n===tW||n!==eW&&(UU(t)?pU(t):!!t)},JV=ZV.normalize=function(e){return String(e).replace(XV,".").toLowerCase()},QV=ZV.data={},eW=ZV.NATIVE="N",tW=ZV.POLYFILL="P",nW=ZV,rW=function(e){if("Function"===OU(e))return CU(e)},oW=rW(rW.bind),iW=zV&&pU((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),aW=String,uW=TypeError,sW=iW,cW=function(e){if(gV(e))return e;throw new uW(aW(e)+" is not an object")},lW=TypeError,fW=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,pW="enumerable",hW="configurable",vW="writable",gW={f:zV?sW?function(e,t,n){if(cW(e),t=GV(t),cW(n),"function"==typeof e&&"prototype"===t&&"value"in n&&vW in n&&!n[vW]){var r=dW(e,t);r&&r[vW]&&(e[t]=n.value,n={configurable:hW in n?n[hW]:r[hW],enumerable:pW in n?n[pW]:r[pW],writable:!1})}return fW(e,t,n)}:fW:function(e,t,n){if(cW(e),t=GV(t),cW(n),qV)try{return fW(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new lW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yW=bU,mW=YV,bW=nW,wW=function(e,t){return hV(e),void 0===t?e:vU?oW(e,t):function(){return e.apply(t,arguments)}},EW=zV?function(e,t,n){return gW.f(e,t,VV(1,n))}:function(e,t,n){return e[t]=n,e},SW=mW.f,CW=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return yW(e,this,arguments)};return t.prototype=e.prototype,t},DW=Array.isArray||function(e){return"Array"===OU(e)},xW=Math.ceil,OW=Math.floor,AW=Math.trunc||function(e){var t=+e;return(t>0?OW:xW)(t)},kW=function(e){var t=+e;return t!=t||0===t?0:AW(t)},BW=Math.min,FW=TypeError,TW={};TW[NV("toStringTag")]="z";var PW="[object z]"===String(TW),_W=NV("toStringTag"),jW=Object,NW="Arguments"===OU(function(){return arguments}()),IW=PW?OU:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=jW(e),_W))?n:NW?OU(t):"Object"===(r=OU(t))&&UU(t.callee)?"Arguments":r},RW=CU(Function.toString);UU(wV.inspectSource)||(wV.inspectSource=function(e){return RW(e)});var LW=wV.inspectSource,MW=IW,zW=LW,$W=function(){},HW=aV("Reflect","construct"),UW=/^\s*(?:class|function)\b/,VW=CU(UW.exec),WW=!UW.test($W),GW=function(e){if(!UU(e))return!1;try{return HW($W,[],e),!0}catch(e){return!1}},qW=function(e){if(!UU(e))return!1;switch(MW(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return WW||!!VW(UW,zW(e))}catch(e){return!0}};qW.sham=!0;var KW=!HW||pU((function(){var e;return GW(GW.call)||!GW(Object)||!GW((function(){e=!0}))||e}))?qW:GW,YW=DW,XW=KW,ZW=NV("species"),JW=Array,QW=NV("species"),eG=function(e,t){var n,r,o,i,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?WU:p?WU[f]:WU[f]&&WU[f].prototype,g=d?VU:VU[f]||EW(VU,f,{})[f],y=g.prototype;for(i in t)r=!(n=bW(d?i:f+(p?".":"#")+i,e.forced))&&v&&BV(v,i),u=g[i],r&&(s=e.dontCallGetSet?(l=SW(v,i))&&l.value:v[i]),a=r&&s?s:t[i],(n||h||typeof u!=typeof a)&&(c=e.bind&&r?wW(a,WU):e.wrap&&r?CW(a):h&&UU(a)?rW(a):a,(e.sham||a&&a.sham||u&&u.sham)&&EW(c,"sham",!0),EW(g,i,c),h&&(BV(VU,o=f+"Prototype")||EW(VU,o,{}),EW(VU[o],i,a),e.real&&y&&(n||!y[i])&&EW(y,i,a)))},tG=function(e){return function(e){var t=kW(e);return t>0?BW(t,9007199254740991):0}(e.length)},nG=function(e){if(e>9007199254740991)throw FW("Maximum allowed index exceeded");return e},rG=function(e,t,n){zV?gW.f(e,t,VV(0,n)):e[t]=n},oG=function(e,t){return new(function(e){var t;return YW(e)&&(t=e.constructor,(XW(t)&&(t===JW||YW(t.prototype))||gV(t)&&null===(t=t[ZW]))&&(t=void 0)),void 0===t?JW:t}(e))(0===t?0:t)},iG=NV("isConcatSpreadable"),aG=tV>=51||!pU((function(){var e=[];return e[iG]=!1,e.concat()[0]!==e})),uG=function(e){if(!gV(e))return!1;var t=e[iG];return void 0!==t?!!t:YW(e)},sG=!aG||!(tV>=51||!pU((function(){var e=[];return(e.constructor={})[QW]=function(){return{foo:1}},1!==e.concat(Boolean).foo})));eG({target:"Array",proto:!0,arity:1,forced:sG},{concat:function(e){var t,n,r,o,i,a=SV(this),u=oG(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(uG(i=-1===t?a:arguments[t]))for(o=tG(i),nG(s+o),n=0;n<o;n++,s++)n in i&&rG(u,s,i[n]);else nG(s+1),rG(u,s++,i);return u.length=s,u}});var cG,lG=String,fG=Math.max,dG=Math.min,pG=function(e){return function(t,n,r){var o=WV(t),i=tG(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=kW(e);return n<0?fG(n+t,0):dG(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},hG={includes:pG(!0),indexOf:pG(!1)},vG={},gG=hG.indexOf,yG=CU([].push),mG=function(e,t){var n,r=WV(e),o=0,i=[];for(n in r)!BV(vG,n)&&BV(r,n)&&yG(i,n);for(;t.length>o;)BV(r,n=t[o++])&&(~gG(i,n)||yG(i,n));return i},bG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wG=Object.keys||function(e){return mG(e,bG)},EG=zV&&!sW?Object.defineProperties:function(e,t){cW(e);for(var n,r=WV(t),o=wG(t),i=o.length,a=0;i>a;)gW.f(e,n=o[a++],r[n]);return e},SG={f:EG},CG=aV("document","documentElement"),DG=kV("keys"),xG=SG,OG=CG,AG=function(e){return DG[e]||(DG[e]=FV(e))},kG="prototype",BG="script",FG=AG("IE_PROTO"),TG=function(){},PG=function(e){return"<script>"+e+"</"+BG+">"},_G=function(e){e.write(PG("")),e.close();var t=e.parentWindow.Object;return e=null,t},jG=function(){try{cG=new ActiveXObject("htmlfile")}catch(e){}var e,t;jG="undefined"!=typeof document?document.domain&&cG?_G(cG):("javascript:",(t=$V("iframe")).style.display="none",OG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(PG("document.F=Object")),e.close(),e.F):_G(cG);for(var n=bG.length;n--;)delete jG[kG][bG[n]];return jG()};vG[FG]=!0;var NG,IG,RG,LG=Object.create||function(e,t){var n;return null!==e?(TG[kG]=cW(e),n=new TG,TG[kG]=null,n[FG]=e):n=jG(),void 0===t?n:xG.f(n,t)},MG=bG.concat("length","prototype"),zG={f:Object.getOwnPropertyNames||function(e){return mG(e,MG)}},$G=CU([].slice),HG=zG.f,UG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],VG={f:function(e){return UG&&"Window"===OU(e)?function(e){try{return HG(e)}catch(e){return $G(UG)}}(e):HG(WV(e))}},WG={f:Object.getOwnPropertySymbols},GG={f:NV},qG=gW.f,KG=function(e,t,n,r){return r&&r.enumerable?e[t]=n:EW(e,t,n),e},YG=PW?{}.toString:function(){return"[object "+MW(this)+"]"},XG=gW.f,ZG=NV("toStringTag"),JG=WU.WeakMap,QG=UU(JG)&&/native code/.test(String(JG)),eq="Object already initialized",tq=WU.TypeError,nq=WU.WeakMap;if(QG||wV.state){var rq=wV.state||(wV.state=new nq);rq.get=rq.get,rq.has=rq.has,rq.set=rq.set,NG=function(e,t){if(rq.has(e))throw new tq(eq);return t.facade=e,rq.set(e,t),t},IG=function(e){return rq.get(e)||{}},RG=function(e){return rq.has(e)}}else{var oq=AG("state");vG[oq]=!0,NG=function(e,t){if(BV(e,oq))throw new tq(eq);return t.facade=e,EW(e,oq,t),t},IG=function(e){return BV(e,oq)?e[oq]:{}},RG=function(e){return BV(e,oq)}}var iq={set:NG,get:IG,has:RG,enforce:function(e){return RG(e)?IG(e):NG(e,{})},getterFor:function(e){return function(t){var n;if(!gV(t)||(n=IG(t)).type!==e)throw new tq("Incompatible receiver, "+e+" required");return n}}},aq=CU([].push),uq=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=SV(s),v=$U(h),g=tG(v),y=wW(c,l),m=0,b=f||oG,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aq(w,d)}else switch(e){case 4:return!1;case 7:aq(w,d)}return i?-1:r||o?o:w}},sq={forEach:uq(0),map:uq(1),filter:uq(2),some:uq(3),every:uq(4),find:uq(5),findIndex:uq(6),filterReject:uq(7)},cq=function(e){if("Symbol"===MW(e))throw new TypeError("Cannot convert a Symbol value to a string");return lG(e)},lq=LG,fq=VG,dq=WG,pq=function(e){var t=VU.Symbol||(VU.Symbol={});BV(t,e)||qG(t,e,{value:GG.f(e)})},hq=function(){var e=aV("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=NV("toPrimitive");t&&!t[r]&&KG(t,r,(function(e){return vV(n,this)}),{arity:1})},vq=function(e,t,n,r){var o=n?e:e&&e.prototype;o&&(BV(o,ZG)||XG(o,ZG,{configurable:!0,value:t}),r&&!PW&&EW(o,"toString",YG))},gq=iq,yq=sq.forEach,mq=AG("hidden"),bq="Symbol",wq="prototype",Eq=gq.set,Sq=gq.getterFor(bq),Cq=Object[wq],Dq=WU.Symbol,xq=Dq&&Dq[wq],Oq=WU.RangeError,Aq=WU.TypeError,kq=WU.QObject,Bq=mW.f,Fq=gW.f,Tq=fq.f,Pq=UV.f,_q=CU([].push),jq=kV("symbols"),Nq=kV("op-symbols"),Iq=kV("wks"),Rq=!kq||!kq[wq]||!kq[wq].findChild,Lq=function(e,t,n){var r=Bq(Cq,t);r&&delete Cq[t],Fq(e,t,n),r&&e!==Cq&&Fq(Cq,t,r)},Mq=zV&&pU((function(){return 7!==lq(Fq({},"a",{get:function(){return Fq(this,"a",{value:7}).a}})).a}))?Lq:Fq,zq=function(e,t){var n=jq[e]=lq(xq);return Eq(n,{type:bq,tag:e,description:t}),zV||(n.description=t),n},$q=function(e,t,n){e===Cq&&$q(Nq,t,n),cW(e);var r=GV(t);return cW(n),BV(jq,r)?(n.enumerable?(BV(e,mq)&&e[mq][r]&&(e[mq][r]=!1),n=lq(n,{enumerable:VV(0,!1)})):(BV(e,mq)||Fq(e,mq,VV(1,lq(null))),e[mq][r]=!0),Mq(e,r,n)):Fq(e,r,n)},Hq=function(e,t){cW(e);var n=WV(t),r=wG(n).concat(Gq(n));return yq(r,(function(t){zV&&!vV(Uq,n,t)||$q(e,t,n[t])})),e},Uq=function(e){var t=GV(e),n=vV(Pq,this,t);return!(this===Cq&&BV(jq,t)&&!BV(Nq,t))&&(!(n||!BV(this,t)||!BV(jq,t)||BV(this,mq)&&this[mq][t])||n)},Vq=function(e,t){var n=WV(e),r=GV(t);if(n!==Cq||!BV(jq,r)||BV(Nq,r)){var o=Bq(n,r);return!o||!BV(jq,r)||BV(n,mq)&&n[mq][r]||(o.enumerable=!0),o}},Wq=function(e){var t=Tq(WV(e)),n=[];return yq(t,(function(e){BV(jq,e)||BV(vG,e)||_q(n,e)})),n},Gq=function(e){var t=e===Cq,n=Tq(t?Nq:WV(e)),r=[];return yq(n,(function(e){!BV(jq,e)||t&&!BV(Cq,e)||_q(r,jq[e])})),r};oV||(Dq=function(){if(uV(xq,this))throw new Aq("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?cq(arguments[0]):void 0,t=FV(e),n=function(e){var r=void 0===this?WU:this;r===Cq&&vV(n,Nq,e),BV(r,mq)&&BV(r[mq],t)&&(r[mq][t]=!1);var o=VV(1,e);try{Mq(r,t,o)}catch(e){if(!(e instanceof Oq))throw e;Lq(r,t,o)}};return zV&&Rq&&Mq(Cq,t,{configurable:!0,set:n}),zq(t,e)},xq=Dq[wq],KG(xq,"toString",(function(){return Sq(this).tag})),KG(Dq,"withoutSetter",(function(e){return zq(FV(e),e)})),UV.f=Uq,gW.f=$q,xG.f=Hq,mW.f=Vq,zG.f=fq.f=Wq,dq.f=Gq,GG.f=function(e){return zq(NV(e),e)},zV&&function(e,t,n){gW.f(e,"description",n)}(xq,0,{configurable:!0,get:function(){return Sq(this).description}})),eG({global:!0,constructor:!0,wrap:!0,forced:!oV,sham:!oV},{Symbol:Dq}),yq(wG(Iq),(function(e){pq(e)})),eG({target:bq,stat:!0,forced:!oV},{useSetter:function(){Rq=!0},useSimple:function(){Rq=!1}}),eG({target:"Object",stat:!0,forced:!oV,sham:!zV},{create:function(e,t){return void 0===t?lq(e):Hq(lq(e),t)},defineProperty:$q,defineProperties:Hq,getOwnPropertyDescriptor:Vq}),eG({target:"Object",stat:!0,forced:!oV},{getOwnPropertyNames:Wq}),hq(),vq(Dq,bq),vG[mq]=!0;var qq=oV&&!!Symbol.for&&!!Symbol.keyFor,Kq=kV("string-to-symbol-registry"),Yq=kV("symbol-to-string-registry");eG({target:"Symbol",stat:!0,forced:!qq},{for:function(e){var t=cq(e);if(BV(Kq,t))return Kq[t];var n=aV("Symbol")(t);return Kq[t]=n,Yq[n]=t,n}});var Xq=kV("symbol-to-string-registry");eG({target:"Symbol",stat:!0,forced:!qq},{keyFor:function(e){if(!jV(e))throw new TypeError(dV(e)+" is not a symbol");if(BV(Xq,e))return Xq[e]}});var Zq=CU([].push),Jq=String,Qq=aV("JSON","stringify"),eK=CU(/./.exec),tK=CU("".charAt),nK=CU("".charCodeAt),rK=CU("".replace),oK=CU(1..toString),iK=/[\uD800-\uDFFF]/g,aK=/^[\uD800-\uDBFF]$/,uK=/^[\uDC00-\uDFFF]$/,sK=!oV||pU((function(){var e=aV("Symbol")("stringify detection");return"[null]"!==Qq([e])||"{}"!==Qq({a:e})||"{}"!==Qq(Object(e))})),cK=pU((function(){return'"\\udf06\\ud834"'!==Qq("\udf06\ud834")||'"\\udead"'!==Qq("\udead")})),lK=function(e,t){var n=$G(arguments),r=function(e){if(UU(e))return e;if(YW(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?Zq(n,o):"number"!=typeof o&&"Number"!==OU(o)&&"String"!==OU(o)||Zq(n,cq(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(YW(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}}(t);if(UU(r)||void 0!==e&&!jV(e))return n[1]=function(e,t){if(UU(r)&&(t=vV(r,this,Jq(e),t)),!jV(t))return t},yW(Qq,null,n)},fK=function(e,t,n){var r=tK(n,t-1),o=tK(n,t+1);return eK(aK,e)&&!eK(uK,o)||eK(uK,e)&&!eK(aK,r)?"\\u"+oK(nK(e,0),16):e};Qq&&eG({target:"JSON",stat:!0,arity:3,forced:sK||cK},{stringify:function(e,t,n){var r=$G(arguments),o=yW(sK?lK:Qq,null,r);return cK&&"string"==typeof o?rK(o,iK,fK):o}});var dK=!oV||pU((function(){dq.f(1)}));eG({target:"Object",stat:!0,forced:dK},{getOwnPropertySymbols:function(e){var t=dq.f;return t?t(SV(e)):[]}}),pq("asyncIterator"),pq("hasInstance"),pq("isConcatSpreadable"),pq("iterator"),pq("match"),pq("matchAll"),pq("replace"),pq("search"),pq("species"),pq("split"),pq("toPrimitive"),hq(),pq("toStringTag"),vq(aV("Symbol"),"Symbol"),pq("unscopables"),vq(WU.JSON,"JSON",!0);var pK,hK,vK,gK=VU.Symbol,yK=Function.prototype,mK=zV&&Object.getOwnPropertyDescriptor,bK=BV(yK,"name"),wK={EXISTS:bK,PROPER:bK&&"something"===function(){}.name,CONFIGURABLE:bK&&(!zV||zV&&mK(yK,"name").configurable)},EK=!pU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),SK=AG("IE_PROTO"),CK=Object,DK=CK.prototype,xK=EK?CK.getPrototypeOf:function(e){var t=SV(e);if(BV(t,SK))return t[SK];var n=t.constructor;return UU(n)&&t instanceof n?n.prototype:t instanceof CK?DK:null},OK=NV("iterator"),AK=!1;[].keys&&("next"in(vK=[].keys())?(hK=xK(xK(vK)))!==Object.prototype&&(pK=hK):AK=!0);var kK=!gV(pK)||pU((function(){var e={};return pK[OK].call(e)!==e}));pK=kK?{}:lq(pK),UU(pK[OK])||KG(pK,OK,(function(){return this}));var BK={IteratorPrototype:pK,BUGGY_SAFARI_ITERATORS:AK},FK=BK.IteratorPrototype,TK=(Object.setPrototypeOf||"__proto__"in{}&&function(){try{!function(e,t,n){try{return CU(hV(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype)({},[])}catch(e){}}(),function(e,t,n,r){var o=t+" Iterator";return e.prototype=lq(FK,{next:VV(+!r,n)}),vq(e,o,!1,!0),e}),PK=wK.PROPER,_K=BK.BUGGY_SAFARI_ITERATORS,jK=NV("iterator"),NK="values",IK="entries",RK=function(e,t,n,r,o,i,a){TK(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!_K&&e&&e in p)return p[e];switch(e){case"keys":case NK:case IK:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[jK]||p["@@iterator"]||o&&p[o],v=!_K&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=xK(g.call(new e)))!==Object.prototype&&u.next&&vq(u,f,!0,!0),PK&&o===NK&&h&&h.name!==NK&&(d=!0,v=function(){return vV(h,this)}),o)if(s={values:l(NK),keys:i?v:l("keys"),entries:l(IK)},a)for(c in s)(_K||d||!(c in p))&&KG(p,c,s[c]);else eG({target:t,proto:!0,forced:_K||d},s);return a&&p[jK]!==v&&KG(p,jK,v,{name:o}),s},LK=function(e,t){return{value:e,done:t}},MK=(gW.f,"Array Iterator"),zK=gq.set,$K=gq.getterFor(MK);for(var HK in RK(Array,"Array",(function(e,t){zK(this,{type:MK,target:WV(e),index:0,kind:t})}),(function(){var e=$K(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,LK(void 0,!0);switch(e.kind){case"keys":return LK(n,!1);case"values":return LK(t[n],!1)}return LK([n,t[n]],!1)}),"values"),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})vq(WU[HK],HK);var UK=gK,VK=gW.f,WK=NV("metadata"),GK=Function.prototype;void 0===GK[WK]&&VK(GK,WK,{value:null}),pq("asyncDispose"),pq("dispose"),pq("metadata");var qK=UK,KK=aV("Symbol"),YK=KK.keyFor,XK=CU(KK.prototype.valueOf),ZK=KK.isRegisteredSymbol||function(e){try{return void 0!==YK(XK(e))}catch(e){return!1}};eG({target:"Symbol",stat:!0},{isRegisteredSymbol:ZK});for(var JK=aV("Symbol"),QK=JK.isWellKnownSymbol,eY=aV("Object","getOwnPropertyNames"),tY=CU(JK.prototype.valueOf),nY=kV("wks"),rY=0,oY=eY(JK),iY=oY.length;rY<iY;rY++)try{var aY=oY[rY];jV(JK[aY])&&NV(aY)}catch(Jl){}var uY=function(e){if(QK&&QK(e))return!0;try{for(var t=tY(e),n=0,r=eY(nY),o=r.length;n<o;n++)if(nY[r[n]]==t)return!0}catch(e){}return!1};eG({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:uY}),pq("customMatcher"),pq("observable"),eG({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:ZK}),eG({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:uY}),pq("matcher"),pq("metadataKey"),pq("patternMatch"),pq("replaceAll");var sY=qK,cY=CU("".charAt),lY=CU("".charCodeAt),fY=CU("".slice),dY=function(e){return function(t,n){var r,o,i=cq(HU(t)),a=kW(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=lY(i,a))<55296||r>56319||a+1===u||(o=lY(i,a+1))<56320||o>57343?e?cY(i,a):r:e?fY(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),pY="String Iterator",hY=gq.set,vY=gq.getterFor(pY);RK(String,"String",(function(e){hY(this,{type:pY,string:cq(e),index:0})}),(function(){var e,t=vY(this),n=t.string,r=t.index;return r>=n.length?LK(void 0,!0):(e=dY(n,r),t.index+=e.length,LK(e,!1))}));var gY=GG.f("iterator"),yY=sY,mY=gY,bY=EN((function(e){function t(n){return e.exports=t="function"==typeof yY&&"symbol"==typeof mY?function(e){return typeof e}:function(e){return e&&"function"==typeof yY&&e.constructor===yY&&e!==yY.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),wY=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(bY),EY=iR.EXISTS,SY=Function.prototype,CY=MN(SY.toString),DY=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xY=MN(DY.exec);AN&&!EY&&function(e,t,n){n.get&&SR(n.get,t,{getter:!0}),n.set&&SR(n.set,t,{setter:!0}),eR.f(e,t,n)}(SY,"name",{configurable:!0,get:function(){try{return xY(DY,CY(this))[1]}catch(e){return""}}});var OY=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=zd.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!vz(zd.nodes(e,{match:function(t){return"pre"===YF.getNodeType(t)||!!zd.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),AY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return lz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Qj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===wY(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(OY),kY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("fontFamily.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',t.mark="fontFamily",t.selectPanelWidth=150,t}return lz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Qj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===wY(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(OY),BY={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&M$(i,{fontSize:r}),o&&M$(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!lp.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((oz(t)||"span"!==az(n=Jh(t)))&&(n=Jh("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),iz(n)):t},preParseHtml:[uU],parseStyleHtml:function(e,t,n){var r=Jh(e);if(!lp.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=uz(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=uz(r,"font-family").replace(/"/g,""),d=l.find((function(e){return e.value&&e.value===f}))||l.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new AY},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new kY},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},FY={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Jh(e),n=uz(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},TY=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=vz(zd.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":vz(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=vz(zd.nodes(e,{match:function(e){var t=YF.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),PY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return lz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){kp.setNodes(e,{indent:null},{match:function(e){return jd.isElement(e)}})},t}(TY),_Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t.DEFAULT_INDENT_VALUE="2em",t}return lz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(lp.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize);return""+2*o+r.replace(""+o,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);kp.setNodes(e,{indent:n},{match:function(e){return jd.isElement(e)},mode:"highest"})},t}(TY),jY={renderStyle:function(e,t){if(!jd.isElement(e))return t;var n=e.indent,r=t;return n&&M$(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!jd.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Jh(t);return r.css("text-indent",n),iz(r)},preParseHtml:[FY],parseStyleHtml:function(e,t,n){var r=Jh(e);if(!jd.isElement(t))return t;var o=t,i=uz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new _Y}},{key:"delIndent",factory:function(){return new PY}}]},NY=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=vz(zd.nodes(e,{match:function(e){var t=YF.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!YF.getSelectedElems(e).some((function(t){if(zd.isVoid(e,t)&&zd.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),IY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return lz(t,e),t.prototype.exec=function(e,t){kp.setNodes(e,{textAlign:"left"},{match:function(t){return jd.isElement(t)&&!e.isInline(t)}})},t}(NY),RY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("justify.right"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return lz(t,e),t.prototype.exec=function(e,t){kp.setNodes(e,{textAlign:"right"},{match:function(t){return jd.isElement(t)&&!e.isInline(t)}})},t}(NY),LY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("justify.center"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return lz(t,e),t.prototype.exec=function(e,t){kp.setNodes(e,{textAlign:"center"},{match:function(t){return jd.isElement(t)&&!e.isInline(t)}})},t}(NY),MY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Qj("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return lz(t,e),t.prototype.exec=function(e,t){kp.setNodes(e,{textAlign:"justify"},{match:function(t){return jd.isElement(t)&&!e.isInline(t)}})},t}(NY),zY={renderStyle:function(e,t){if(!jd.isElement(e))return t;var n=e.textAlign,r=t;return n&&M$(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!jd.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Jh(t);return r.css("text-align",n),iz(r)},parseStyleHtml:function(e,t,n){var r=Jh(e);if(!jd.isElement(t))return t;var o=t,i=uz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new IY}},{key:"justifyRight",factory:function(){return new RY}},{key:"justifyCenter",factory:function(){return new LY}},{key:"justifyJustify",factory:function(){return new MY}}]},$Y=function(){function e(){this.title=Qj("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Qj("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=vz(zd.nodes(e,{match:function(e){var t=YF.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":jd.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){kp.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),HY={renderStyle:function(e,t){if(!jd.isElement(e))return t;var n=e.lineHeight,r=t;return n&&M$(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!jd.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Jh(t);return r.css("line-height",n),iz(r)},parseStyleHtml:function(e,t,n){var r=Jh(e);if(!jd.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=uz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new $Y},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},UY=function(){function e(){this.title=Qj("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),VY=function(){function e(){this.title=Qj("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),WY={menus:[{key:"redo",factory:function(){return new UY}},{key:"undo",factory:function(){return new VY}}]},GY={type:"divider",renderElem:function(e,t,n){return Ag("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:YF.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Ag("hr")])}},qY=function(){function e(){this.title=Qj("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!YF.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=YF.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){kp.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),KY={renderElems:[GY],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new qY}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=vz(e,2),o=t[0],i=t[1];if("divider"!==YF.getNodeType(o))return n([o,i]);YF.isLastNode(r,o)&&kp.insertNodes(r,YF.genEmptyParagraph(),{at:[i[0]+1]})},r}},YY=MN([].join);eL({target:"Array",proto:!0,forced:WN!==Object||!kz("join",",")},{join:function(e){return YY(YN(this),void 0===e?",":e)}});var XY=CL.map;eL({target:"Array",proto:!0,forced:!xL("map")},{map:function(e){return XY(this,e,arguments.length>1?arguments[1]:void 0)}});var ZY=function(){function e(){this.title=Qj("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=YF.getSelectedNodeByType(e,"code");if(null==t)return null;var n=YF.getParentNode(e,t);return null==n||"pre"!==YF.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=YF.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=YF.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Wd.string(t);kp.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));kp.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=zd.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=hz(i),u=a.next();!u.done;u=a.next()){var s=vz(u.value,1)[0];s&&o.push(Wd.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}kp.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};kp.insertNodes(e,c,{mode:"highest"})},e}(),JY={key:"codeBlock",factory:function(){return new ZY}};mM("match",(function(e,t,n){return[function(t){var n=KN(this),r=GN(t)?void 0:yI(t,e);return r?FN(r,t,n):new RegExp(t)[e](FL(n))},function(e){var r=qI(this),o=FL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return PM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=PM(r,o));){var l=FL(u[0]);s[c]=l,""===l&&(r.lastIndex=CM(o,PR(r.lastIndex),a)),c++}return 0===c?null:s}]})),eL({target:"String",proto:!0,forced:Ez("anchor")},{anchor:function(e){return wz(this,"a","name",e)}});var QY={type:"pre",renderElem:function(e,t,n){return qg("pre",null,t)}},eX={type:"code",renderElem:function(e,t,n){return qg("code",null,t)}},tX={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);return 0===(t=t.filter((function(e){return"code"===YF.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===YF.getNodeType(e)}))}}},nX={menus:[JY],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=YF.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Wd.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=vz(e,2),r=t[0],i=t[1],a=YF.getNodeType(r);return"code"===a&&i.length<=1&&kp.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(YF.isLastNode(o,r)&&kp.insertNodes(o,YF.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==YF.getNodeType(r.children[0])&&(kp.unwrapNodes(o),kp.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=YF.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");zd.insertText(o,t)}else r(e)},o},renderElems:[QY,eX],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Jh(e);if("code"!==az(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Jh(e)[0].textContent||""}]}}},tX]},rX=function(){function e(){this.title=Qj("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),oX={menus:[{key:"fullScreen",factory:function(){return new rX}}]},iX=function(){function e(){this.title=Qj("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!rp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];kp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(zd.start(e,r))}},e}(),aX=[Gz,W$,BY,jY,zY,HY,UH,KY,iU,dH,nX,rU,j$,yz,qH,WY,oX,{menus:[{key:"enter",factory:function(){return new iX}}]}];Jj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Jj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var uX=function(e){try{return!!e()}catch(e){return!0}},sX=!uX((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),cX=Function.prototype,lX=cX.call,fX=sX&&cX.bind.bind(lX,lX),dX=sX?fX:function(e){return function(){return lX.apply(e,arguments)}},pX=dX({}.toString),hX=dX("".slice),vX=function(e){return hX(pX(e),8,-1)},gX=Object,yX=dX("".split),mX=uX((function(){return!gX("z").propertyIsEnumerable(0)}))?function(e){return"String"===vX(e)?yX(e,""):gX(e)}:gX,bX=function(e){return null==e},wX=TypeError,EX=function(e){if(bX(e))throw new wX("Can't call method on "+e);return e},SX=function(e){return mX(EX(e))},CX="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function DX(e){var t={exports:{}};return e(t,t.exports),t.exports}var xX,OX,AX=function(e){return e&&e.Math===Math&&e},kX=AX("object"==typeof globalThis&&globalThis)||AX("object"==typeof window&&window)||AX("object"==typeof self&&self)||AX("object"==typeof CX&&CX)||AX("object"==typeof CX&&CX)||function(){return this}()||Function("return this")(),BX=Object.defineProperty,FX=function(e,t){try{BX(kX,e,{value:t,configurable:!0,writable:!0})}catch(n){kX[e]=t}return t},TX=DX((function(e){var t="__core-js_shared__",n=e.exports=kX[t]||FX(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),PX=function(e,t){return TX[e]||(TX[e]=t||{})},_X=Object,jX=function(e){return _X(EX(e))},NX=dX({}.hasOwnProperty),IX=Object.hasOwn||function(e,t){return NX(jX(e),t)},RX=0,LX=Math.random(),MX=dX(1..toString),zX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+MX(++RX+LX,36)},$X=kX.navigator,HX=$X&&$X.userAgent,UX=HX?String(HX):"",VX=kX.process,WX=kX.Deno,GX=VX&&VX.versions||WX&&WX.version,qX=GX&&GX.v8;qX&&(OX=(xX=qX.split("."))[0]>0&&xX[0]<4?1:+(xX[0]+xX[1])),!OX&&UX&&(!(xX=UX.match(/Edge\/(\d+)/))||xX[1]>=74)&&(xX=UX.match(/Chrome\/(\d+)/))&&(OX=+xX[1]);var KX,YX=OX,XX=kX.String,ZX=!!Object.getOwnPropertySymbols&&!uX((function(){var e=Symbol("symbol detection");return!XX(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YX&&YX<41})),JX=ZX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,QX=kX.Symbol,eZ=PX("wks"),tZ=JX?QX.for||QX:QX&&QX.withoutSetter||zX,nZ=function(e){return IX(eZ,e)||(eZ[e]=ZX&&IX(QX,e)?QX[e]:tZ("Symbol."+e)),eZ[e]},rZ="object"==typeof document&&document.all,oZ=void 0===rZ&&void 0!==rZ?function(e){return"function"==typeof e||e===rZ}:function(e){return"function"==typeof e},iZ=function(e){return"object"==typeof e?null!==e:oZ(e)},aZ=String,uZ=TypeError,sZ=function(e){if(iZ(e))return e;throw new uZ(aZ(e)+" is not an object")},cZ=!uX((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),lZ=cZ&&uX((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),fZ=kX.document,dZ=iZ(fZ)&&iZ(fZ.createElement),pZ=function(e){return dZ?fZ.createElement(e):{}},hZ=!cZ&&!uX((function(){return 7!==Object.defineProperty(pZ("div"),"a",{get:function(){return 7}}).a})),vZ=Function.prototype.call,gZ=sX?vZ.bind(vZ):function(){return vZ.apply(vZ,arguments)},yZ=function(e,t){return arguments.length<2?(n=kX[e],oZ(n)?n:void 0):kX[e]&&kX[e][t];var n},mZ=dX({}.isPrototypeOf),bZ=Object,wZ=JX?function(e){return"symbol"==typeof e}:function(e){var t=yZ("Symbol");return oZ(t)&&mZ(t.prototype,bZ(e))},EZ=String,SZ=function(e){try{return EZ(e)}catch(e){return"Object"}},CZ=TypeError,DZ=function(e){if(oZ(e))return e;throw new CZ(SZ(e)+" is not a function")},xZ=function(e,t){var n=e[t];return bX(n)?void 0:DZ(n)},OZ=TypeError,AZ=TypeError,kZ=nZ("toPrimitive"),BZ=function(e){var t=function(e,t){if(!iZ(e)||wZ(e))return e;var n,r=xZ(e,kZ);if(r){if(void 0===t&&(t="default"),n=gZ(r,e,t),!iZ(n)||wZ(n))return n;throw new AZ("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oZ(n=e.toString)&&!iZ(r=gZ(n,e)))return r;if(oZ(n=e.valueOf)&&!iZ(r=gZ(n,e)))return r;if("string"!==t&&oZ(n=e.toString)&&!iZ(r=gZ(n,e)))return r;throw new OZ("Can't convert object to primitive value")}(e,t)}(e,"string");return wZ(t)?t:t+""},FZ=TypeError,TZ=Object.defineProperty,PZ=Object.getOwnPropertyDescriptor,_Z="enumerable",jZ="configurable",NZ="writable",IZ={f:cZ?lZ?function(e,t,n){if(sZ(e),t=BZ(t),sZ(n),"function"==typeof e&&"prototype"===t&&"value"in n&&NZ in n&&!n[NZ]){var r=PZ(e,t);r&&r[NZ]&&(e[t]=n.value,n={configurable:jZ in n?n[jZ]:r[jZ],enumerable:_Z in n?n[_Z]:r[_Z],writable:!1})}return TZ(e,t,n)}:TZ:function(e,t,n){if(sZ(e),t=BZ(t),sZ(n),hZ)try{return TZ(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new FZ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},RZ=Math.ceil,LZ=Math.floor,MZ=Math.trunc||function(e){var t=+e;return(t>0?LZ:RZ)(t)},zZ=function(e){var t=+e;return t!=t||0===t?0:MZ(t)},$Z=Math.max,HZ=Math.min,UZ=Math.min,VZ=function(e){var t=zZ(e);return t>0?UZ(t,9007199254740991):0},WZ=function(e){return VZ(e.length)},GZ=function(e){return function(t,n,r){var o=SX(t),i=WZ(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=zZ(e);return n<0?$Z(n+t,0):HZ(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},qZ={includes:GZ(!0),indexOf:GZ(!1)},KZ={},YZ=qZ.indexOf,XZ=dX([].push),ZZ=function(e,t){var n,r=SX(e),o=0,i=[];for(n in r)!IX(KZ,n)&&IX(r,n)&&XZ(i,n);for(;t.length>o;)IX(r,n=t[o++])&&(~YZ(i,n)||XZ(i,n));return i},JZ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QZ=Object.keys||function(e){return ZZ(e,JZ)},eJ=cZ&&!lZ?Object.defineProperties:function(e,t){sZ(e);for(var n,r=SX(t),o=QZ(t),i=o.length,a=0;i>a;)IZ.f(e,n=o[a++],r[n]);return e},tJ={f:eJ},nJ=yZ("document","documentElement"),rJ=PX("keys"),oJ=function(e){return rJ[e]||(rJ[e]=zX(e))},iJ="prototype",aJ="script",uJ=oJ("IE_PROTO"),sJ=function(){},cJ=function(e){return"<script>"+e+"</"+aJ+">"},lJ=function(e){e.write(cJ("")),e.close();var t=e.parentWindow.Object;return e=null,t},fJ=function(){try{KX=new ActiveXObject("htmlfile")}catch(e){}var e,t;fJ="undefined"!=typeof document?document.domain&&KX?lJ(KX):("javascript:",(t=pZ("iframe")).style.display="none",nJ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cJ("document.F=Object")),e.close(),e.F):lJ(KX);for(var n=JZ.length;n--;)delete fJ[iJ][JZ[n]];return fJ()};KZ[uJ]=!0;var dJ=Object.create||function(e,t){var n;return null!==e?(sJ[iJ]=sZ(e),n=new sJ,sJ[iJ]=null,n[uJ]=e):n=fJ(),void 0===t?n:tJ.f(n,t)},pJ=IZ.f,hJ=nZ("unscopables"),vJ=Array.prototype;void 0===vJ[hJ]&&pJ(vJ,hJ,{configurable:!0,value:dJ(null)});var gJ,yJ,mJ,bJ=function(e){vJ[hJ][e]=!0},wJ={},EJ=kX.WeakMap,SJ=oZ(EJ)&&/native code/.test(String(EJ)),CJ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DJ=cZ?function(e,t,n){return IZ.f(e,t,CJ(1,n))}:function(e,t,n){return e[t]=n,e},xJ="Object already initialized",OJ=kX.TypeError,AJ=kX.WeakMap;if(SJ||TX.state){var kJ=TX.state||(TX.state=new AJ);kJ.get=kJ.get,kJ.has=kJ.has,kJ.set=kJ.set,gJ=function(e,t){if(kJ.has(e))throw new OJ(xJ);return t.facade=e,kJ.set(e,t),t},yJ=function(e){return kJ.get(e)||{}},mJ=function(e){return kJ.has(e)}}else{var BJ=oJ("state");KZ[BJ]=!0,gJ=function(e,t){if(IX(e,BJ))throw new OJ(xJ);return t.facade=e,DJ(e,BJ,t),t},yJ=function(e){return IX(e,BJ)?e[BJ]:{}},mJ=function(e){return IX(e,BJ)}}var FJ={set:gJ,get:yJ,has:mJ,enforce:function(e){return mJ(e)?yJ(e):gJ(e,{})},getterFor:function(e){return function(t){var n;if(!iZ(t)||(n=yJ(t)).type!==e)throw new OJ("Incompatible receiver, "+e+" required");return n}}},TJ={}.propertyIsEnumerable,PJ=Object.getOwnPropertyDescriptor,_J={f:PJ&&!TJ.call({1:2},1)?function(e){var t=PJ(this,e);return!!t&&t.enumerable}:TJ},jJ=Object.getOwnPropertyDescriptor,NJ={f:cZ?jJ:function(e,t){if(e=SX(e),t=BZ(t),hZ)try{return jJ(e,t)}catch(e){}if(IX(e,t))return CJ(!gZ(_J.f,e,t),e[t])}},IJ=Function.prototype,RJ=cZ&&Object.getOwnPropertyDescriptor,LJ=IX(IJ,"name"),MJ={EXISTS:LJ,PROPER:LJ&&"something"===function(){}.name,CONFIGURABLE:LJ&&(!cZ||cZ&&RJ(IJ,"name").configurable)},zJ=dX(Function.toString);oZ(TX.inspectSource)||(TX.inspectSource=function(e){return zJ(e)});var $J,HJ,UJ,VJ=TX.inspectSource,WJ=DX((function(e){var t=MJ.CONFIGURABLE,n=FJ.enforce,r=FJ.get,o=String,i=Object.defineProperty,a=dX("".slice),u=dX("".replace),s=dX([].join),c=cZ&&!uX((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!IX(e,"name")||t&&e.name!==r)&&(cZ?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&IX(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&IX(f,"constructor")&&f.constructor?cZ&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return IX(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return oZ(this)&&r(this).source||VJ(this)}),"toString")})),GJ=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(oZ(n)&&WJ(n,i,r),r.global)o?e[t]=n:FX(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:IZ.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},qJ=JZ.concat("length","prototype"),KJ={f:Object.getOwnPropertyNames||function(e){return ZZ(e,qJ)}},YJ={f:Object.getOwnPropertySymbols},XJ=dX([].concat),ZJ=yZ("Reflect","ownKeys")||function(e){var t=KJ.f(sZ(e)),n=YJ.f;return n?XJ(t,n(e)):t},JJ=function(e,t,n){for(var r=ZJ(t),o=IZ.f,i=NJ.f,a=0;a<r.length;a++){var u=r[a];IX(e,u)||n&&IX(n,u)||o(e,u,i(t,u))}},QJ=/#|\.prototype\./,eQ=function(e,t){var n=nQ[tQ(e)];return n===oQ||n!==rQ&&(oZ(t)?uX(t):!!t)},tQ=eQ.normalize=function(e){return String(e).replace(QJ,".").toLowerCase()},nQ=eQ.data={},rQ=eQ.NATIVE="N",oQ=eQ.POLYFILL="P",iQ=eQ,aQ=NJ.f,uQ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?kX:c?kX[u]||FX(u,{}):kX[u]&&kX[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=aQ(n,r))&&a.value:n[r],!iQ(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;JJ(i,o)}(e.sham||o&&o.sham)&&DJ(i,"sham",!0),GJ(n,r,i,e)}},sQ=!uX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cQ=oJ("IE_PROTO"),lQ=Object,fQ=lQ.prototype,dQ=sQ?lQ.getPrototypeOf:function(e){var t=jX(e);if(IX(t,cQ))return t[cQ];var n=t.constructor;return oZ(n)&&t instanceof n?n.prototype:t instanceof lQ?fQ:null},pQ=nZ("iterator"),hQ=!1;[].keys&&("next"in(UJ=[].keys())?(HJ=dQ(dQ(UJ)))!==Object.prototype&&($J=HJ):hQ=!0);var vQ=!iZ($J)||uX((function(){var e={};return $J[pQ].call(e)!==e}));vQ&&($J={}),oZ($J[pQ])||GJ($J,pQ,(function(){return this}));var gQ={IteratorPrototype:$J,BUGGY_SAFARI_ITERATORS:hQ},yQ=IZ.f,mQ=nZ("toStringTag"),bQ=function(e,t,n){e&&!n&&(e=e.prototype),e&&!IX(e,mQ)&&yQ(e,mQ,{configurable:!0,value:t})},wQ=gQ.IteratorPrototype,EQ=function(){return this},SQ=String,CQ=TypeError,DQ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return dX(DZ(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return EX(n),function(e){if(function(e){return iZ(e)||null===e}(e))return e;throw new CQ("Can't set "+SQ(e)+" as a prototype")}(r),iZ(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),xQ=MJ.PROPER,OQ=MJ.CONFIGURABLE,AQ=gQ.IteratorPrototype,kQ=gQ.BUGGY_SAFARI_ITERATORS,BQ=nZ("iterator"),FQ="values",TQ="entries",PQ=function(){return this},_Q=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=dJ(wQ,{next:CJ(1,n)}),bQ(e,r,!1),wJ[r]=EQ}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!kQ&&e&&e in p)return p[e];switch(e){case"keys":case FQ:case TQ:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[BQ]||p["@@iterator"]||o&&p[o],v=!kQ&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=dQ(g.call(new e)))!==Object.prototype&&u.next&&(dQ(u)!==AQ&&(DQ?DQ(u,AQ):oZ(u[BQ])||GJ(u,BQ,PQ)),bQ(u,f,!0)),xQ&&o===FQ&&h&&h.name!==FQ&&(OQ?DJ(p,"name",FQ):(d=!0,v=function(){return gZ(h,this)})),o)if(s={values:l(FQ),keys:i?v:l("keys"),entries:l(TQ)},a)for(c in s)(kQ||d||!(c in p))&&GJ(p,c,s[c]);else uQ({target:t,proto:!0,forced:kQ||d},s);return p[BQ]!==v&&GJ(p,BQ,v,{name:o}),wJ[t]=v,s},jQ=function(e,t){return{value:e,done:t}},NQ=IZ.f,IQ="Array Iterator",RQ=FJ.set,LQ=FJ.getterFor(IQ),MQ=_Q(Array,"Array",(function(e,t){RQ(this,{type:IQ,target:SX(e),index:0,kind:t})}),(function(){var e=LQ(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,jQ(void 0,!0);switch(e.kind){case"keys":return jQ(n,!1);case"values":return jQ(t[n],!1)}return jQ([n,t[n]],!1)}),"values"),zQ=wJ.Arguments=wJ.Array;if(bJ("keys"),bJ("values"),bJ("entries"),cZ&&"values"!==zQ.name)try{NQ(zQ,"name",{value:"values"})}catch(Jl){}var $Q={};$Q[nZ("toStringTag")]="z";var HQ="[object z]"===String($Q),UQ=nZ("toStringTag"),VQ=Object,WQ="Arguments"===vX(function(){return arguments}()),GQ=HQ?vX:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=VQ(e),UQ))?n:WQ?vX(t):"Object"===(r=vX(t))&&oZ(t.callee)?"Arguments":r},qQ=HQ?{}.toString:function(){return"[object "+GQ(this)+"]"};HQ||GJ(Object.prototype,"toString",qQ,{unsafe:!0});var KQ=String,YQ=function(e){if("Symbol"===GQ(e))throw new TypeError("Cannot convert a Symbol value to a string");return KQ(e)},XQ=dX("".charAt),ZQ=dX("".charCodeAt),JQ=dX("".slice),QQ=function(e){return function(t,n){var r,o,i=YQ(EX(t)),a=zZ(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZQ(i,a))<55296||r>56319||a+1===u||(o=ZQ(i,a+1))<56320||o>57343?e?XQ(i,a):r:e?JQ(i,a,a+2):o-56320+(r-55296<<10)+65536}},e0={codeAt:QQ(!1),charAt:QQ(!0)},t0=e0.charAt,n0="String Iterator",r0=FJ.set,o0=FJ.getterFor(n0);_Q(String,"String",(function(e){r0(this,{type:n0,string:YQ(e),index:0})}),(function(){var e,t=o0(this),n=t.string,r=t.index;return r>=n.length?jQ(void 0,!0):(e=t0(n,r),t.index+=e.length,jQ(e,!1))}));var i0=!uX((function(){return Object.isExtensible(Object.preventExtensions({}))})),a0=function(e,t,n){for(var r in t)GJ(e,r,t[r],n);return e},u0=dX([].slice),s0=KJ.f,c0="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l0={f:function(e){return c0&&"Window"===vX(e)?function(e){try{return s0(e)}catch(e){return u0(c0)}}(e):s0(SX(e))}},f0=uX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),d0=Object.isExtensible,p0=uX((function(){d0(1)}))||f0?function(e){return!!iZ(e)&&(!f0||"ArrayBuffer"!==vX(e))&&(!d0||d0(e))}:d0,h0=DX((function(e){var t=IZ.f,n=!1,r=zX("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=KJ.f,t=dX([].splice),o={};o[r]=1,e(o).length&&(KJ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},uQ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l0.f}))},fastKey:function(e,t){if(!iZ(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!IX(e,r)){if(!p0(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!IX(e,r)){if(!p0(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return i0&&n&&p0(e)&&!IX(e,r)&&i(e),e}};KZ[r]=!0})),v0=function(e){if("Function"===vX(e))return dX(e)},g0=v0(v0.bind),y0=function(e,t){return DZ(e),void 0===t?e:sX?g0(e,t):function(){return e.apply(t,arguments)}},m0=nZ("iterator"),b0=Array.prototype,w0=nZ("iterator"),E0=function(e){if(!bX(e))return xZ(e,w0)||xZ(e,"@@iterator")||wJ[GQ(e)]},S0=TypeError,C0=function(e,t,n){var r,o;sZ(e);try{if(!(r=xZ(e,"return"))){if("throw"===t)throw n;return n}r=gZ(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return sZ(r),n},D0=TypeError,x0=function(e,t){this.stopped=e,this.result=t},O0=x0.prototype,A0=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=y0(t,f),y=function(e){return r&&C0(r,"normal",e),new x0(!0,e)},m=function(e){return d?(sZ(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=E0(e)))throw new D0(SZ(e)+" is not iterable");if(void 0!==(l=o)&&(wJ.Array===l||b0[m0]===l)){for(i=0,a=WZ(e);a>i;i++)if((u=m(e[i]))&&mZ(O0,u))return u;return new x0(!1)}r=function(e,t){var n=arguments.length<2?E0(e):t;if(DZ(n))return sZ(gZ(n,e));throw new S0(SZ(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=gZ(s,r)).done;){try{u=m(c.value)}catch(e){C0(r,"throw",e)}if("object"==typeof u&&u&&mZ(O0,u))return u}return new x0(!1)},k0=TypeError,B0=function(e,t){if(mZ(t,e))return e;throw new k0("Incorrect invocation")},F0=nZ("iterator"),T0=!1;try{var P0=0,_0={next:function(){return{done:!!P0++}},return:function(){T0=!0}};_0[F0]=function(){return this},Array.from(_0,(function(){throw 2}))}catch(Jl){}var j0=Array.isArray||function(e){return"Array"===vX(e)},N0=function(){},I0=yZ("Reflect","construct"),R0=/^\s*(?:class|function)\b/,L0=dX(R0.exec),M0=!R0.test(N0),z0=function(e){if(!oZ(e))return!1;try{return I0(N0,[],e),!0}catch(e){return!1}},$0=function(e){if(!oZ(e))return!1;switch(GQ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M0||!!L0(R0,VJ(e))}catch(e){return!0}};$0.sham=!0;var H0=!I0||uX((function(){var e;return z0(z0.call)||!z0(Object)||!z0((function(){e=!0}))||e}))?$0:z0,U0=nZ("species"),V0=Array,W0=function(e,t){return new(function(e){var t;return j0(e)&&(t=e.constructor,(H0(t)&&(t===V0||j0(t.prototype))||iZ(t)&&null===(t=t[U0]))&&(t=void 0)),void 0===t?V0:t}(e))(0===t?0:t)},G0=dX([].push),q0=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=jX(s),v=mX(h),g=WZ(v),y=y0(c,l),m=0,b=f||W0,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:G0(w,d)}else switch(e){case 4:return!1;case 7:G0(w,d)}return i?-1:r||o?o:w}},K0={forEach:q0(0),map:q0(1),filter:q0(2),some:q0(3),every:q0(4),find:q0(5),findIndex:q0(6),filterReject:q0(7)},Y0=h0.getWeakData,X0=FJ.set,Z0=FJ.getterFor,J0=K0.find,Q0=K0.findIndex,e1=dX([].splice),t1=0,n1=function(e){return e.frozen||(e.frozen=new r1)},r1=function(){this.entries=[]},o1=function(e,t){return J0(e.entries,(function(e){return e[0]===t}))};r1.prototype={get:function(e){var t=o1(this,e);if(t)return t[1]},has:function(e){return!!o1(this,e)},set:function(e,t){var n=o1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Q0(this.entries,(function(t){return t[0]===e}));return~t&&e1(this.entries,t,1),!!~t}};var i1,a1={getConstructor:function(e,t,n,r){var o=e((function(e,o){B0(e,i),X0(e,{type:t,id:t1++,frozen:null}),bX(o)||A0(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Z0(t),u=function(e,t,n){var r=a(e),o=Y0(sZ(t),!0);return!0===o?n1(r).set(t,n):o[r.id]=n,e};return a0(i,{delete:function(e){var t=a(this);if(!iZ(e))return!1;var n=Y0(e);return!0===n?n1(t).delete(e):n&&IX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!iZ(e))return!1;var n=Y0(e);return!0===n?n1(t).has(e):n&&IX(n,t.id)}}),a0(i,n?{get:function(e){var t=a(this);if(iZ(e)){var n=Y0(e);if(!0===n)return n1(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},u1=FJ.enforce,s1=Object,c1=Array.isArray,l1=s1.isExtensible,f1=s1.isFrozen,d1=s1.isSealed,p1=s1.freeze,h1=s1.seal,v1=!kX.ActiveXObject&&"ActiveXObject"in kX,g1=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y1=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=kX[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=dX(u[e]);GJ(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!iZ(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!iZ(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!iZ(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(iQ(e,!oZ(a)||!(o||u.forEach&&!uX((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),h0.enable();else if(iQ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=uX((function(){f.has(1)})),h=function(){try{if(!T0)return!1}catch(e){return!1}var e=!1;try{var t={};t[F0]=function(){return{next:function(){return{done:e=!0}}}},function(e){new a(e)}(t)}catch(e){}return e}(),v=!o&&uX((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){B0(e,u);var n=function(e,t,n){var r,o;return DQ&&oZ(r=t.constructor)&&r!==n&&iZ(o=r.prototype)&&o!==n.prototype&&DQ(e,o),e}(new a,e,s);return bX(t)||A0(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,uQ({global:!0,constructor:!0,forced:s!==a},c),bQ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",g1,a1),m1=y1.prototype,b1=dX(m1.set);if(SJ)if(v1){i1=a1.getConstructor(g1,"WeakMap",!0),h0.enable();var w1=dX(m1.delete),E1=dX(m1.has),S1=dX(m1.get);a0(m1,{delete:function(e){if(iZ(e)&&!l1(e)){var t=u1(this);return t.frozen||(t.frozen=new i1),w1(this,e)||t.frozen.delete(e)}return w1(this,e)},has:function(e){if(iZ(e)&&!l1(e)){var t=u1(this);return t.frozen||(t.frozen=new i1),E1(this,e)||t.frozen.has(e)}return E1(this,e)},get:function(e){if(iZ(e)&&!l1(e)){var t=u1(this);return t.frozen||(t.frozen=new i1),E1(this,e)?S1(this,e):t.frozen.get(e)}return S1(this,e)},set:function(e,t){if(iZ(e)&&!l1(e)){var n=u1(this);n.frozen||(n.frozen=new i1),E1(this,e)?b1(this,e,t):n.frozen.set(e,t)}else b1(this,e,t);return this}})}else i0&&uX((function(){var e=p1([]);return b1(new y1,e,1),!f1(e)}))&&a0(m1,{set:function(e,t){var n;return c1(e)&&(f1(e)?n=p1:d1(e)&&(n=h1)),b1(this,e,t),n&&n(e),this}});var C1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},D1=pZ("span").classList,x1=D1&&D1.constructor&&D1.constructor.prototype,O1=x1===Object.prototype?void 0:x1,A1=nZ("iterator"),k1=MQ.values,B1=function(e,t){if(e){if(e[A1]!==k1)try{DJ(e,A1,k1)}catch(t){e[A1]=k1}if(bQ(e,t,!0),C1[t])for(var n in MQ)if(e[n]!==MQ[n])try{DJ(e,n,MQ[n])}catch(t){e[n]=MQ[n]}}};for(var F1 in C1)B1(kX[F1]&&kX[F1].prototype,F1);B1(O1,"DOMTokenList");var T1=new WeakMap,P1={type:"list-item",renderElem:function(e,t,n){T1.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,c=t,l=YF.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=Yd.previous(l),d=zd.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}c=p,l=f}return s}(n,e);s=c+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var l=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];lp.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return qg("div",{style:u},qg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),qg("span",null,t))}},_1=function(e,t){return _1=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])},_1(e,t)
|
68
|
+
/*! *****************************************************************************
|
69
|
+
Copyright (c) Microsoft Corporation.
|
70
|
+
|
71
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
72
|
+
purpose with or without fee is hereby granted.
|
73
|
+
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
75
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
76
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
77
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
78
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
79
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
80
|
+
PERFORMANCE OF THIS SOFTWARE.
|
81
|
+
***************************************************************************** */};function j1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_1(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function N1(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function I1(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function R1(e){return zd.nodes(e,{at:e.selection||void 0,match:function(t){return 1===YF.findPath(e,t).length}})}var L1=qZ.includes,M1=uX((function(){return!Array(1).includes()}));uQ({target:"Array",proto:!0,forced:M1},{includes:function(e){return L1(this,e,arguments.length>1?arguments[1]:void 0)}}),bJ("includes");var z1,$1,H1=function(){var e=sZ(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},U1=kX.RegExp,V1=uX((function(){var e=U1("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),W1=V1||uX((function(){return!U1("a","y").sticky})),G1={BROKEN_CARET:V1||uX((function(){var e=U1("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:W1,UNSUPPORTED_Y:V1},q1=kX.RegExp,K1=uX((function(){var e=q1(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Y1=kX.RegExp,X1=uX((function(){var e=Y1("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Z1=FJ.get,J1=PX("native-string-replace",String.prototype.replace),Q1=RegExp.prototype.exec,e2=Q1,t2=dX("".charAt),n2=dX("".indexOf),r2=dX("".replace),o2=dX("".slice),i2=($1=/b*/g,gZ(Q1,z1=/a/,"a"),gZ(Q1,$1,"a"),0!==z1.lastIndex||0!==$1.lastIndex),a2=G1.BROKEN_CARET,u2=void 0!==/()??/.exec("")[1];(i2||u2||a2||K1||X1)&&(e2=function(e){var t,n,r,o,i,a,u,s=this,c=Z1(s),l=YQ(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=gZ(e2,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=a2&&s.sticky,h=gZ(H1,s),v=s.source,g=0,y=l;if(p&&(h=r2(h,"y",""),-1===n2(h,"g")&&(h+="g"),y=o2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==t2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),u2&&(n=new RegExp("^"+v+"$(?!\\s)",h)),i2&&(r=s.lastIndex),o=gZ(Q1,p?n:s,y),p?o?(o.input=o2(o.input,g),o[0]=o2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:i2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),u2&&o&&o.length>1&&gZ(J1,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=dJ(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var s2=e2;uQ({target:"RegExp",proto:!0,forced:/./.exec!==s2},{exec:s2});var c2=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return YF.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!YF.getSelectedElems(e).some((function(t){if(zd.isVoid(e,t)&&zd.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?kp.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):kp.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),l2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Qj("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return j1(t,e),t}(c2),f2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Qj("listModule.orderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',t}return j1(t,e),t}(c2),d2={key:"bulletedList",factory:function(){return new l2}},p2={key:"numberedList",factory:function(){return new f2}},h2=[],v2={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=T1.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=YF.findPath(t,e);if(0===s[0])return u+1;var c=Yd.previous(s),l=zd.node(t,c);if(!l)return 0;var f=I1(l,1)[0];if(YF.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",h2.push(i);var s=function(e){var t=T1.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=YF.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=Yd.next(s),l=zd.node(t,c);if(!l)return 0;var f=I1(l,1)[0];if(YF.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+h2.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},g2=nZ("species"),y2=K0.filter,m2=YX>=51||!uX((function(){var e=[];return(e.constructor={})[g2]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));uQ({target:"Array",proto:!0,forced:!m2},{filter:function(e){return y2(this,e,arguments.length>1?arguments[1]:void 0)}});var b2=TypeError,w2=function(e){if(e>9007199254740991)throw b2("Maximum allowed index exceeded");return e},E2=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,d=!!a&&y0(a,u);f<r;)f in n&&(s=d?d(n[f],f,t):n[f],i>0&&j0(s)?(c=WZ(s),l=E2(e,t,s,c,l,i-1)-1):(w2(l+1),e[l]=s),l++),f++;return l},S2=E2;uQ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=jX(this),n=WZ(t),r=W0(t,0);return r.length=S2(r,t,t,n,0,void 0===e?1:zZ(e)),r}}),bJ("flat");var C2=Function.prototype,D2=C2.apply,x2=C2.call,O2="object"==typeof Reflect&&Reflect.apply||(sX?x2.bind(D2):function(){return x2.apply(D2,arguments)}),A2=(nZ("species"),RegExp.prototype),k2=e0.charAt,B2=function(e,t,n){return t+(n?k2(e,t).length:1)},F2=Math.floor,T2=dX("".charAt),P2=dX("".replace),_2=dX("".slice),j2=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,N2=/\$([$&'`]|\d{1,2})/g,I2=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=N2;return void 0!==o&&(o=jX(o),s=j2),P2(i,s,(function(i,s){var c;switch(T2(s,0)){case"$":return"$";case"&":return e;case"`":return _2(t,0,n);case"'":return _2(t,a);case"<":c=o[_2(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=F2(l/10);return 0===f?i:f<=u?void 0===r[f-1]?T2(s,1):r[f-1]+T2(s,1):i}c=r[l-1]}return void 0===c?"":c}))},R2=TypeError,L2=function(e,t){var n=e.exec;if(oZ(n)){var r=gZ(n,e,t);return null!==r&&sZ(r),r}if("RegExp"===vX(e))return gZ(s2,e,t);throw new R2("RegExp#exec called on incompatible receiver")},M2=nZ("replace"),z2=Math.max,$2=Math.min,H2=dX([].concat),U2=dX([].push),V2=dX("".indexOf),W2=dX("".slice),G2="$0"==="a".replace(/./,"$0"),q2=!!/./[M2]&&""===/./[M2]("a","$0");function K2(e){return e.length?e[0].tagName.toLowerCase():""}!function(e,t,n){var r=nZ(e),o=!uX((function(){var t={};return t[r]=function(){return 7},7!==""[e](t)})),i=o&&!uX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=/./[r],u=function(e,t,n){var r=q2?"$":"$0";return[function(e,n){var r=EX(this),o=bX(e)?void 0:xZ(e,M2);return o?gZ(o,e,r,n):gZ(t,YQ(r),e,n)},function(e,o){var i=sZ(this),a=YQ(e);if("string"==typeof o&&-1===V2(o,r)&&-1===V2(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=oZ(o);s||(o=YQ(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=L2(i,a))&&(U2(d,f),l);)""===YQ(f[0])&&(i.lastIndex=B2(a,VZ(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=YQ((f=d[g])[0]),b=z2($2(zZ(f.index),a.length),0),w=[],E=1;E<f.length;E++)U2(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=H2([m],w,b,a);void 0!==S&&U2(C,S),y=YQ(O2(o,void 0,C))}else y=I2(m,a,b,w,S,o);b>=v&&(h+=W2(a,v,b)+y,v=b+m.length)}return h+W2(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=t.exec;return u===s2||u===A2.exec?o&&!i?{done:!0,value:gZ(a,t,n,r)}:{done:!0,value:gZ(e,n,t,r)}:{done:!1}}));GJ(String.prototype,e,u[0]),GJ(A2,r,u[1])}}("replace",0,!!uX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!G2||q2),uQ({global:!0,forced:kX.globalThis!==kX},{globalThis:kX}),bv&&(Jh.fn.append=bv),nv&&(Jh.fn.attr=nv),Ev&&(Jh.fn.parent=Ev);var Y2={renderElems:[P1],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(rp.isExpanded(n))t(e);else{var r=YF.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?kp.setNodes(o,{level:a-1}):kp.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(rp.isCollapsed(a)){var u=YF.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void kp.setNodes(o,{level:c+1})}}if(rp.isExpanded(a)){var l=0,f=!1;try{for(var d=N1(R1(o)),p=d.next();!p.done;p=d.next()){var h=I1(p.value,1)[0];"list-item"===YF.getNodeType(h)?l++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||l<=1)return void n();try{for(var v=N1(R1(o)),g=v.next();!g.done;g=v.next()){var y=I1(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,kp.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=I1(e,2),n=t[0],i=t[1],a=YF.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||kp.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[d2,p2],elemsToHtml:[v2],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);0===(t=t.filter((function(e){return!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===K2(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=K2(n);"ul"===r||"ol"===r;)r=K2(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]};Jj("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",splitCell:"Split cell",mergeCell:"Merge cell"}}),Jj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",splitCell:"拆分单元格",mergeCell:"合并单元格"}});var X2="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Z2(e){var t={exports:{}};return e(t,t.exports),t.exports}var J2,Q2,e4=function(e){return e&&e.Math===Math&&e},t4=e4("object"==typeof globalThis&&globalThis)||e4("object"==typeof window&&window)||e4("object"==typeof self&&self)||e4("object"==typeof X2&&X2)||e4("object"==typeof X2&&X2)||function(){return this}()||Function("return this")(),n4=function(e){try{return!!e()}catch(e){return!0}},r4=!n4((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),o4=!n4((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),i4=Function.prototype.call,a4=o4?i4.bind(i4):function(){return i4.apply(i4,arguments)},u4={}.propertyIsEnumerable,s4=Object.getOwnPropertyDescriptor,c4={f:s4&&!u4.call({1:2},1)?function(e){var t=s4(this,e);return!!t&&t.enumerable}:u4},l4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f4=Function.prototype,d4=f4.call,p4=o4&&f4.bind.bind(d4,d4),h4=o4?p4:function(e){return function(){return d4.apply(e,arguments)}},v4=h4({}.toString),g4=h4("".slice),y4=function(e){return g4(v4(e),8,-1)},m4=Object,b4=h4("".split),w4=n4((function(){return!m4("z").propertyIsEnumerable(0)}))?function(e){return"String"===y4(e)?b4(e,""):m4(e)}:m4,E4=function(e){return null==e},S4=TypeError,C4=function(e){if(E4(e))throw new S4("Can't call method on "+e);return e},D4=function(e){return w4(C4(e))},x4="object"==typeof document&&document.all,O4=void 0===x4&&void 0!==x4?function(e){return"function"==typeof e||e===x4}:function(e){return"function"==typeof e},A4=function(e){return"object"==typeof e?null!==e:O4(e)},k4=function(e,t){return arguments.length<2?(n=t4[e],O4(n)?n:void 0):t4[e]&&t4[e][t];var n},B4=h4({}.isPrototypeOf),F4=t4.navigator,T4=F4&&F4.userAgent,P4=T4?String(T4):"",_4=t4.process,j4=t4.Deno,N4=_4&&_4.versions||j4&&j4.version,I4=N4&&N4.v8;I4&&(Q2=(J2=I4.split("."))[0]>0&&J2[0]<4?1:+(J2[0]+J2[1])),!Q2&&P4&&(!(J2=P4.match(/Edge\/(\d+)/))||J2[1]>=74)&&(J2=P4.match(/Chrome\/(\d+)/))&&(Q2=+J2[1]);var R4=Q2,L4=t4.String,M4=!!Object.getOwnPropertySymbols&&!n4((function(){var e=Symbol("symbol detection");return!L4(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&R4&&R4<41})),z4=M4&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$4=Object,H4=z4?function(e){return"symbol"==typeof e}:function(e){var t=k4("Symbol");return O4(t)&&B4(t.prototype,$4(e))},U4=String,V4=function(e){try{return U4(e)}catch(e){return"Object"}},W4=TypeError,G4=function(e){if(O4(e))return e;throw new W4(V4(e)+" is not a function")},q4=function(e,t){var n=e[t];return E4(n)?void 0:G4(n)},K4=TypeError,Y4=Object.defineProperty,X4=function(e,t){try{Y4(t4,e,{value:t,configurable:!0,writable:!0})}catch(n){t4[e]=t}return t},Z4=Z2((function(e){var t="__core-js_shared__",n=e.exports=t4[t]||X4(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),J4=function(e,t){return Z4[e]||(Z4[e]=t||{})},Q4=Object,e3=function(e){return Q4(C4(e))},t3=h4({}.hasOwnProperty),n3=Object.hasOwn||function(e,t){return t3(e3(e),t)},r3=0,o3=Math.random(),i3=h4(1..toString),a3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i3(++r3+o3,36)},u3=t4.Symbol,s3=J4("wks"),c3=z4?u3.for||u3:u3&&u3.withoutSetter||a3,l3=function(e){return n3(s3,e)||(s3[e]=M4&&n3(u3,e)?u3[e]:c3("Symbol."+e)),s3[e]},f3=TypeError,d3=l3("toPrimitive"),p3=function(e){var t=function(e,t){if(!A4(e)||H4(e))return e;var n,r=q4(e,d3);if(r){if(void 0===t&&(t="default"),n=a4(r,e,t),!A4(n)||H4(n))return n;throw new f3("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&O4(n=e.toString)&&!A4(r=a4(n,e)))return r;if(O4(n=e.valueOf)&&!A4(r=a4(n,e)))return r;if("string"!==t&&O4(n=e.toString)&&!A4(r=a4(n,e)))return r;throw new K4("Can't convert object to primitive value")}(e,t)}(e,"string");return H4(t)?t:t+""},h3=t4.document,v3=A4(h3)&&A4(h3.createElement),g3=function(e){return v3?h3.createElement(e):{}},y3=!r4&&!n4((function(){return 7!==Object.defineProperty(g3("div"),"a",{get:function(){return 7}}).a})),m3=Object.getOwnPropertyDescriptor,b3={f:r4?m3:function(e,t){if(e=D4(e),t=p3(t),y3)try{return m3(e,t)}catch(e){}if(n3(e,t))return l4(!a4(c4.f,e,t),e[t])}},w3=r4&&n4((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),E3=String,S3=TypeError,C3=function(e){if(A4(e))return e;throw new S3(E3(e)+" is not an object")},D3=TypeError,x3=Object.defineProperty,O3=Object.getOwnPropertyDescriptor,A3="enumerable",k3="configurable",B3="writable",F3={f:r4?w3?function(e,t,n){if(C3(e),t=p3(t),C3(n),"function"==typeof e&&"prototype"===t&&"value"in n&&B3 in n&&!n[B3]){var r=O3(e,t);r&&r[B3]&&(e[t]=n.value,n={configurable:k3 in n?n[k3]:r[k3],enumerable:A3 in n?n[A3]:r[A3],writable:!1})}return x3(e,t,n)}:x3:function(e,t,n){if(C3(e),t=p3(t),C3(n),y3)try{return x3(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new D3("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},T3=r4?function(e,t,n){return F3.f(e,t,l4(1,n))}:function(e,t,n){return e[t]=n,e},P3=Function.prototype,_3=r4&&Object.getOwnPropertyDescriptor,j3=n3(P3,"name"),N3={EXISTS:j3,PROPER:j3&&"something"===function(){}.name,CONFIGURABLE:j3&&(!r4||r4&&_3(P3,"name").configurable)},I3=h4(Function.toString);O4(Z4.inspectSource)||(Z4.inspectSource=function(e){return I3(e)});var R3,L3,M3,z3=Z4.inspectSource,$3=t4.WeakMap,H3=O4($3)&&/native code/.test(String($3)),U3=J4("keys"),V3=function(e){return U3[e]||(U3[e]=a3(e))},W3={},G3="Object already initialized",q3=t4.TypeError,K3=t4.WeakMap;if(H3||Z4.state){var Y3=Z4.state||(Z4.state=new K3);Y3.get=Y3.get,Y3.has=Y3.has,Y3.set=Y3.set,R3=function(e,t){if(Y3.has(e))throw new q3(G3);return t.facade=e,Y3.set(e,t),t},L3=function(e){return Y3.get(e)||{}},M3=function(e){return Y3.has(e)}}else{var X3=V3("state");W3[X3]=!0,R3=function(e,t){if(n3(e,X3))throw new q3(G3);return t.facade=e,T3(e,X3,t),t},L3=function(e){return n3(e,X3)?e[X3]:{}},M3=function(e){return n3(e,X3)}}var Z3={set:R3,get:L3,has:M3,enforce:function(e){return M3(e)?L3(e):R3(e,{})},getterFor:function(e){return function(t){var n;if(!A4(t)||(n=L3(t)).type!==e)throw new q3("Incompatible receiver, "+e+" required");return n}}},J3=Z2((function(e){var t=N3.CONFIGURABLE,n=Z3.enforce,r=Z3.get,o=String,i=Object.defineProperty,a=h4("".slice),u=h4("".replace),s=h4([].join),c=r4&&!n4((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!n3(e,"name")||t&&e.name!==r)&&(r4?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&n3(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&n3(f,"constructor")&&f.constructor?r4&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return n3(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return O4(this)&&r(this).source||z3(this)}),"toString")})),Q3=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(O4(n)&&J3(n,i,r),r.global)o?e[t]=n:X4(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:F3.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},e6=Math.ceil,t6=Math.floor,n6=Math.trunc||function(e){var t=+e;return(t>0?t6:e6)(t)},r6=function(e){var t=+e;return t!=t||0===t?0:n6(t)},o6=Math.max,i6=Math.min,a6=function(e,t){var n=r6(e);return n<0?o6(n+t,0):i6(n,t)},u6=Math.min,s6=function(e){var t=r6(e);return t>0?u6(t,9007199254740991):0},c6=function(e){return s6(e.length)},l6=function(e){return function(t,n,r){var o=D4(t),i=c6(o);if(0===i)return!e&&-1;var a,u=a6(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},f6={includes:l6(!0),indexOf:l6(!1)},d6=f6.indexOf,p6=h4([].push),h6=function(e,t){var n,r=D4(e),o=0,i=[];for(n in r)!n3(W3,n)&&n3(r,n)&&p6(i,n);for(;t.length>o;)n3(r,n=t[o++])&&(~d6(i,n)||p6(i,n));return i},v6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g6=v6.concat("length","prototype"),y6={f:Object.getOwnPropertyNames||function(e){return h6(e,g6)}},m6={f:Object.getOwnPropertySymbols},b6=h4([].concat),w6=k4("Reflect","ownKeys")||function(e){var t=y6.f(C3(e)),n=m6.f;return n?b6(t,n(e)):t},E6=function(e,t,n){for(var r=w6(t),o=F3.f,i=b3.f,a=0;a<r.length;a++){var u=r[a];n3(e,u)||n&&n3(n,u)||o(e,u,i(t,u))}},S6=/#|\.prototype\./,C6=function(e,t){var n=x6[D6(e)];return n===A6||n!==O6&&(O4(t)?n4(t):!!t)},D6=C6.normalize=function(e){return String(e).replace(S6,".").toLowerCase()},x6=C6.data={},O6=C6.NATIVE="N",A6=C6.POLYFILL="P",k6=C6,B6=b3.f,F6=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?t4:c?t4[u]||X4(u,{}):t4[u]&&t4[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=B6(n,r))&&a.value:n[r],!k6(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;E6(i,o)}(e.sham||o&&o.sham)&&T3(i,"sham",!0),Q3(n,r,i,e)}},T6=function(e){if("Function"===y4(e))return h4(e)},P6=T6(T6.bind),_6=function(e,t){return G4(e),void 0===t?e:o4?P6(e,t):function(){return e.apply(t,arguments)}},j6=Array.isArray||function(e){return"Array"===y4(e)},N6={};N6[l3("toStringTag")]="z";var I6="[object z]"===String(N6),R6=l3("toStringTag"),L6=Object,M6="Arguments"===y4(function(){return arguments}()),z6=I6?y4:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=L6(e),R6))?n:M6?y4(t):"Object"===(r=y4(t))&&O4(t.callee)?"Arguments":r},$6=function(){},H6=k4("Reflect","construct"),U6=/^\s*(?:class|function)\b/,V6=h4(U6.exec),W6=!U6.test($6),G6=function(e){if(!O4(e))return!1;try{return H6($6,[],e),!0}catch(e){return!1}},q6=function(e){if(!O4(e))return!1;switch(z6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return W6||!!V6(U6,z3(e))}catch(e){return!0}};q6.sham=!0;var K6,Y6=!H6||n4((function(){var e;return G6(G6.call)||!G6(Object)||!G6((function(){e=!0}))||e}))?q6:G6,X6=l3("species"),Z6=Array,J6=function(e,t){return new(function(e){var t;return j6(e)&&(t=e.constructor,(Y6(t)&&(t===Z6||j6(t.prototype))||A4(t)&&null===(t=t[X6]))&&(t=void 0)),void 0===t?Z6:t}(e))(0===t?0:t)},Q6=h4([].push),e5=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=e3(s),v=w4(h),g=c6(v),y=_6(c,l),m=0,b=f||J6,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Q6(w,d)}else switch(e){case 4:return!1;case 7:Q6(w,d)}return i?-1:r||o?o:w}},t5={forEach:e5(0),map:e5(1),filter:e5(2),some:e5(3),every:e5(4),find:e5(5),findIndex:e5(6),filterReject:e5(7)},n5=Object.keys||function(e){return h6(e,v6)},r5=r4&&!w3?Object.defineProperties:function(e,t){C3(e);for(var n,r=D4(t),o=n5(t),i=o.length,a=0;i>a;)F3.f(e,n=o[a++],r[n]);return e},o5={f:r5},i5=k4("document","documentElement"),a5="prototype",u5="script",s5=V3("IE_PROTO"),c5=function(){},l5=function(e){return"<script>"+e+"</"+u5+">"},f5=function(e){e.write(l5("")),e.close();var t=e.parentWindow.Object;return e=null,t},d5=function(){try{K6=new ActiveXObject("htmlfile")}catch(e){}var e,t;d5="undefined"!=typeof document?document.domain&&K6?f5(K6):("javascript:",(t=g3("iframe")).style.display="none",i5.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(l5("document.F=Object")),e.close(),e.F):f5(K6);for(var n=v6.length;n--;)delete d5[a5][v6[n]];return d5()};W3[s5]=!0;var p5=Object.create||function(e,t){var n;return null!==e?(c5[a5]=C3(e),n=new c5,c5[a5]=null,n[s5]=e):n=d5(),void 0===t?n:o5.f(n,t)},h5=F3.f,v5=l3("unscopables"),g5=Array.prototype;void 0===g5[v5]&&h5(g5,v5,{configurable:!0,value:p5(null)});var y5=function(e){g5[v5][e]=!0},m5=t5.find,b5="find",w5=!0;b5 in[]&&Array(1)[b5]((function(){w5=!1})),F6({target:"Array",proto:!0,forced:w5},{find:function(e){return m5(this,e,arguments.length>1?arguments[1]:void 0)}}),y5(b5);var E5=function(e,t,n){r4?F3.f(e,t,l4(0,n)):e[t]=n},S5=l3("species"),C5=function(e){return R4>=51||!n4((function(){var t=[];return(t.constructor={})[S5]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},D5=h4([].slice),x5=C5("slice"),O5=l3("species"),A5=Array,k5=Math.max;F6({target:"Array",proto:!0,forced:!x5},{slice:function(e,t){var n,r,o,i=D4(this),a=c6(i),u=a6(e,a),s=a6(void 0===t?a:t,a);if(j6(i)&&(n=i.constructor,(Y6(n)&&(n===A5||j6(n.prototype))||A4(n)&&null===(n=n[O5]))&&(n=void 0),n===A5||void 0===n))return D5(i,u,s);for(r=new(void 0===n?A5:n)(k5(s-u,0)),o=0;u<s;u++,o++)u in i&&E5(r,o,i[u]);return r.length=o,r}});var B5=I6?{}.toString:function(){return"[object "+z6(this)+"]"};I6||Q3(Object.prototype,"toString",B5,{unsafe:!0});var F5,T5,P5=String,_5=function(e){if("Symbol"===z6(e))throw new TypeError("Cannot convert a Symbol value to a string");return P5(e)},j5=function(){var e=C3(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},N5=t4.RegExp,I5=n4((function(){var e=N5("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),R5=I5||n4((function(){return!N5("a","y").sticky})),L5={BROKEN_CARET:I5||n4((function(){var e=N5("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:R5,UNSUPPORTED_Y:I5},M5=t4.RegExp,z5=n4((function(){var e=M5(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),$5=t4.RegExp,H5=n4((function(){var e=$5("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),U5=Z3.get,V5=J4("native-string-replace",String.prototype.replace),W5=RegExp.prototype.exec,G5=W5,q5=h4("".charAt),K5=h4("".indexOf),Y5=h4("".replace),X5=h4("".slice),Z5=(T5=/b*/g,a4(W5,F5=/a/,"a"),a4(W5,T5,"a"),0!==F5.lastIndex||0!==T5.lastIndex),J5=L5.BROKEN_CARET,Q5=void 0!==/()??/.exec("")[1];(Z5||Q5||J5||z5||H5)&&(G5=function(e){var t,n,r,o,i,a,u,s=this,c=U5(s),l=_5(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=a4(G5,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=J5&&s.sticky,h=a4(j5,s),v=s.source,g=0,y=l;if(p&&(h=Y5(h,"y",""),-1===K5(h,"g")&&(h+="g"),y=X5(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==q5(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Q5&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Z5&&(r=s.lastIndex),o=a4(W5,p?n:s,y),p?o?(o.input=X5(o.input,g),o[0]=X5(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Z5&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Q5&&o&&o.length>1&&a4(V5,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=p5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var e8=G5;F6({target:"RegExp",proto:!0,forced:/./.exec!==e8},{exec:e8});var t8=/"/g,n8=h4("".replace);F6({target:"String",proto:!0,forced:n4((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=_5(C4(this)),r="<a",(r+=' name="'+n8(_5(t),t8,""")+'"')+">"+n+"</a>";var t,n,r}});
|
82
|
+
/*! *****************************************************************************
|
83
|
+
Copyright (c) Microsoft Corporation.
|
84
|
+
|
85
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
86
|
+
purpose with or without fee is hereby granted.
|
87
|
+
|
88
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
89
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
90
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
91
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
92
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
93
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
94
|
+
PERFORMANCE OF THIS SOFTWARE.
|
95
|
+
***************************************************************************** */
|
96
|
+
var r8=function(){return r8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r8.apply(this,arguments)};function o8(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i8(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a8(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u8(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var s8,c8,l8,f8={},d8=!n4((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),p8=V3("IE_PROTO"),h8=Object,v8=h8.prototype,g8=d8?h8.getPrototypeOf:function(e){var t=e3(e);if(n3(t,p8))return t[p8];var n=t.constructor;return O4(n)&&t instanceof n?n.prototype:t instanceof h8?v8:null},y8=l3("iterator"),m8=!1;[].keys&&("next"in(l8=[].keys())?(c8=g8(g8(l8)))!==Object.prototype&&(s8=c8):m8=!0);var b8=!A4(s8)||n4((function(){var e={};return s8[y8].call(e)!==e}));b8&&(s8={}),O4(s8[y8])||Q3(s8,y8,(function(){return this}));var w8={IteratorPrototype:s8,BUGGY_SAFARI_ITERATORS:m8},E8=F3.f,S8=l3("toStringTag"),C8=function(e,t,n){e&&!n&&(e=e.prototype),e&&!n3(e,S8)&&E8(e,S8,{configurable:!0,value:t})},D8=w8.IteratorPrototype,x8=function(){return this},O8=String,A8=TypeError,k8=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return h4(G4(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return C4(n),function(e){if(function(e){return A4(e)||null===e}(e))return e;throw new A8("Can't set "+O8(e)+" as a prototype")}(r),A4(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),B8=N3.PROPER,F8=N3.CONFIGURABLE,T8=w8.IteratorPrototype,P8=w8.BUGGY_SAFARI_ITERATORS,_8=l3("iterator"),j8="values",N8="entries",I8=function(){return this},R8=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=p5(D8,{next:l4(1,n)}),C8(e,r,!1),f8[r]=x8}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!P8&&e&&e in p)return p[e];switch(e){case"keys":case j8:case N8:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[_8]||p["@@iterator"]||o&&p[o],v=!P8&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=g8(g.call(new e)))!==Object.prototype&&u.next&&(g8(u)!==T8&&(k8?k8(u,T8):O4(u[_8])||Q3(u,_8,I8)),C8(u,f,!0)),B8&&o===j8&&h&&h.name!==j8&&(F8?T3(p,"name",j8):(d=!0,v=function(){return a4(h,this)})),o)if(s={values:l(j8),keys:i?v:l("keys"),entries:l(N8)},a)for(c in s)(P8||d||!(c in p))&&Q3(p,c,s[c]);else F6({target:t,proto:!0,forced:P8||d},s);return p[_8]!==v&&Q3(p,_8,v,{name:o}),f8[t]=v,s},L8=function(e,t){return{value:e,done:t}},M8=F3.f,z8="Array Iterator",$8=Z3.set,H8=Z3.getterFor(z8),U8=R8(Array,"Array",(function(e,t){$8(this,{type:z8,target:D4(e),index:0,kind:t})}),(function(){var e=H8(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,L8(void 0,!0);switch(e.kind){case"keys":return L8(n,!1);case"values":return L8(t[n],!1)}return L8([n,t[n]],!1)}),"values"),V8=f8.Arguments=f8.Array;if(y5("keys"),y5("values"),y5("entries"),r4&&"values"!==V8.name)try{M8(V8,"name",{value:"values"})}catch(Jl){}var W8=h4("".charAt),G8=h4("".charCodeAt),q8=h4("".slice),K8=function(e){return function(t,n){var r,o,i=_5(C4(t)),a=r6(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=G8(i,a))<55296||r>56319||a+1===u||(o=G8(i,a+1))<56320||o>57343?e?W8(i,a):r:e?q8(i,a,a+2):o-56320+(r-55296<<10)+65536}},Y8={codeAt:K8(!1),charAt:K8(!0)},X8=Y8.charAt,Z8="String Iterator",J8=Z3.set,Q8=Z3.getterFor(Z8);R8(String,"String",(function(e){J8(this,{type:Z8,string:_5(e),index:0})}),(function(){var e,t=Q8(this),n=t.string,r=t.index;return r>=n.length?L8(void 0,!0):(e=X8(n,r),t.index+=e.length,L8(e,!1))}));var e7=y6.f,t7="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n7={f:function(e){return t7&&"Window"===y4(e)?function(e){try{return e7(e)}catch(e){return D5(t7)}}(e):e7(D4(e))}},r7=n4((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),o7=Object.isExtensible,i7=n4((function(){o7(1)}))||r7?function(e){return!!A4(e)&&(!r7||"ArrayBuffer"!==y4(e))&&(!o7||o7(e))}:o7,a7=!n4((function(){return Object.isExtensible(Object.preventExtensions({}))})),u7=Z2((function(e){var t=F3.f,n=!1,r=a3("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=y6.f,t=h4([].splice),o={};o[r]=1,e(o).length&&(y6.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},F6({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:n7.f}))},fastKey:function(e,t){if(!A4(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!n3(e,r)){if(!i7(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!n3(e,r)){if(!i7(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return a7&&n&&i7(e)&&!n3(e,r)&&i(e),e}};W3[r]=!0})),s7=l3("iterator"),c7=Array.prototype,l7=function(e){return void 0!==e&&(f8.Array===e||c7[s7]===e)},f7=l3("iterator"),d7=function(e){if(!E4(e))return q4(e,f7)||q4(e,"@@iterator")||f8[z6(e)]},p7=TypeError,h7=function(e,t){var n=arguments.length<2?d7(e):t;if(G4(n))return C3(a4(n,e));throw new p7(V4(e)+" is not iterable")},v7=function(e,t,n){var r,o;C3(e);try{if(!(r=q4(e,"return"))){if("throw"===t)throw n;return n}r=a4(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return C3(r),n},g7=TypeError,y7=function(e,t){this.stopped=e,this.result=t},m7=y7.prototype,b7=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=_6(t,l),g=function(e){return r&&v7(r,"normal",e),new y7(!0,e)},y=function(e){return f?(C3(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=d7(e)))throw new g7(V4(e)+" is not iterable");if(l7(o)){for(i=0,a=c6(e);a>i;i++)if((u=y(e[i]))&&B4(m7,u))return u;return new y7(!1)}r=h7(e,o)}for(s=d?e.next:r.next;!(c=a4(s,r)).done;){try{u=y(c.value)}catch(e){v7(r,"throw",e)}if("object"==typeof u&&u&&B4(m7,u))return u}return new y7(!1)},w7=TypeError,E7=function(e,t){if(B4(t,e))return e;throw new w7("Incorrect invocation")},S7=l3("iterator"),C7=!1;try{var D7=0,x7={next:function(){return{done:!!D7++}},return:function(){C7=!0}};x7[S7]=function(){return this},Array.from(x7,(function(){throw 2}))}catch(Jl){}var O7=function(e,t){try{if(!t&&!C7)return!1}catch(e){return!1}var n=!1;try{var r={};r[S7]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},A7=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=t4[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=h4(u[e]);Q3(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!A4(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!A4(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!A4(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(k6(e,!O4(a)||!(o||u.forEach&&!n4((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),u7.enable();else if(k6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=n4((function(){f.has(1)})),h=O7((function(e){new a(e)})),v=!o&&n4((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){E7(e,u);var n=function(e,t,n){var r,o;return k8&&O4(r=t.constructor)&&r!==n&&A4(o=r.prototype)&&o!==n.prototype&&k8(e,o),e}(new a,e,s);return E4(t)||b7(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,F6({global:!0,constructor:!0,forced:s!==a},c),C8(s,e),o||n.setStrong(s,e,r),s},k7=function(e,t,n){for(var r in t)Q3(e,r,t[r],n);return e},B7=u7.getWeakData,F7=Z3.set,T7=Z3.getterFor,P7=t5.find,_7=t5.findIndex,j7=h4([].splice),N7=0,I7=function(e){return e.frozen||(e.frozen=new R7)},R7=function(){this.entries=[]},L7=function(e,t){return P7(e.entries,(function(e){return e[0]===t}))};R7.prototype={get:function(e){var t=L7(this,e);if(t)return t[1]},has:function(e){return!!L7(this,e)},set:function(e,t){var n=L7(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_7(this.entries,(function(t){return t[0]===e}));return~t&&j7(this.entries,t,1),!!~t}};var M7={getConstructor:function(e,t,n,r){var o=e((function(e,o){E7(e,i),F7(e,{type:t,id:N7++,frozen:null}),E4(o)||b7(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=T7(t),u=function(e,t,n){var r=a(e),o=B7(C3(t),!0);return!0===o?I7(r).set(t,n):o[r.id]=n,e};return k7(i,{delete:function(e){var t=a(this);if(!A4(e))return!1;var n=B7(e);return!0===n?I7(t).delete(e):n&&n3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!A4(e))return!1;var n=B7(e);return!0===n?I7(t).has(e):n&&n3(n,t.id)}}),k7(i,n?{get:function(e){var t=a(this);if(A4(e)){var n=B7(e);if(!0===n)return I7(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}};A7("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),M7);var z7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$7=g3("span").classList,H7=$7&&$7.constructor&&$7.constructor.prototype,U7=H7===Object.prototype?void 0:H7,V7=l3("iterator"),W7=U8.values,G7=function(e,t){if(e){if(e[V7]!==W7)try{T3(e,V7,W7)}catch(t){e[V7]=W7}if(C8(e,t,!0),z7[t])for(var n in U8)if(e[n]!==U8[n])try{T3(e,n,U8[n])}catch(t){e[n]=U8[n]}}};for(var q7 in z7)G7(t4[q7]&&t4[q7].prototype,q7);G7(U7,"DOMTokenList");var K7=f6.includes,Y7=n4((function(){return!Array(1).includes()}));F6({target:"Array",proto:!0,forced:Y7},{includes:function(e){return K7(this,e,arguments.length>1?arguments[1]:void 0)}}),y5("includes");var X7=t5.map,Z7=C5("map");F6({target:"Array",proto:!0,forced:!Z7},{map:function(e){return X7(this,e,arguments.length>1?arguments[1]:void 0)}});var J7=l3("match"),Q7=TypeError,e9=l3("match"),t9=h4("".indexOf);F6({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[e9]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~t9(_5(C4(this)),_5(function(e){if(function(e){var t;return A4(e)&&(void 0!==(t=e[J7])?!!t:"RegExp"===y4(e))}(e))throw new Q7("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var n9={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function r9(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=n9,o=t.map((function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]}));return function(e){return function(e){return!zd.isEditor(e)&&jd.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function o9(e,t){for(var n=a8(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=a8(Wd.common(e,r,o),2),s=u[0],c=u[1];return!!r9.apply(void 0,u8([e],a8(i)))(s,c)||!!zd.above(e,{match:r9.apply(void 0,u8([e],a8(i))),at:c})}function i9(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=i8(function(e,t){var n,r,o,i,a,u,s,c,l,f,d,p,h,v,g,y,m,b;return void 0===t&&(t={}),o8(this,(function(w){switch(w.label){case 0:if(n=a8(zd.nodes(e,{match:r9(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=a8(r,2),i=o[1],w.label=1;case 1:w.trys.push([1,6,7,8]),a=i8(zd.nodes(e,{match:r9(e,"table"),at:i})),u=a.next(),w.label=2;case 2:if(u.done)return[3,5];s=a8(u.value,2),c=s[1],l=[];try{for(m=void 0,f=i8(zd.nodes(e,{match:r9(e,"tr"),at:c})),d=f.next();!d.done;d=f.next())p=a8(d.value,2),h=p[1],l.push(u8([],a8(zd.nodes(e,{match:r9(e,"th","td"),at:h}))))}catch(e){m={error:e}}finally{try{d&&!d.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}return[4,l];case 3:w.sent(),w.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return v=w.sent(),g={error:v},[3,8];case 7:try{u&&!u.done&&(y=a.return)&&y.call(a)}finally{if(g)throw g.error}return[7];case 8:return[2]}}))}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var u=a.value,s=[],c=0;c<u.length;c+=1){s[c]||(s[c]=[]);for(var l=0;l<u[c].length;l+=1)for(var f=a8(u[c][l],1)[0],d=f.rowSpan,p=void 0===d?1:d,h=f.colSpan,v=void 0===h?1:h,g=0;g<v+0;g+=1)for(var y=0;y<p;y+=1)s[c+y]||(s[c+y]=[]),s[c+y][l+g]||(s[c+y][l+g]=[u[c+y][l+g],{rtl:g-0+1,ltr:v-g+0,ttb:y+1,btt:p-y}])}o.push.apply(o,u8([],a8(s)))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var a9,u9=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}(),s9=Z3.enforce,c9=Object,l9=Array.isArray,f9=c9.isExtensible,d9=c9.isFrozen,p9=c9.isSealed,h9=c9.freeze,v9=c9.seal,g9=!t4.ActiveXObject&&"ActiveXObject"in t4,y9=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m9=A7("WeakMap",y9,M7),b9=m9.prototype,w9=h4(b9.set);if(H3)if(g9){a9=M7.getConstructor(y9,"WeakMap",!0),u7.enable();var E9=h4(b9.delete),S9=h4(b9.has),C9=h4(b9.get);k7(b9,{delete:function(e){if(A4(e)&&!f9(e)){var t=s9(this);return t.frozen||(t.frozen=new a9),E9(this,e)||t.frozen.delete(e)}return E9(this,e)},has:function(e){if(A4(e)&&!f9(e)){var t=s9(this);return t.frozen||(t.frozen=new a9),S9(this,e)||t.frozen.has(e)}return S9(this,e)},get:function(e){if(A4(e)&&!f9(e)){var t=s9(this);return t.frozen||(t.frozen=new a9),S9(this,e)?C9(this,e):t.frozen.get(e)}return C9(this,e)},set:function(e,t){if(A4(e)&&!f9(e)){var n=s9(this);n.frozen||(n.frozen=new a9),S9(this,e)?w9(this,e,t):n.frozen.set(e,t)}else w9(this,e,t);return this}})}else a7&&n4((function(){var e=h9([]);return w9(new m9,e,1),!d9(e)}))&&k7(b9,{set:function(e,t){var n;return l9(e)&&(d9(e)?n=h9:p9(e)&&(n=v9)),w9(this,e,t),n&&n(e),this}});var D9=new WeakMap,x9=new WeakMap,O9={isInTable:function(e,t){return void 0===t&&(t={}),!!a8(zd.nodes(e,{match:r9(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,u,s;return o8(this,(function(c){switch(c.label){case 0:t=D9.get(e),n=0,c.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=a8(t[n][o],2),a=i[0],u=i[1],s=u.ltr,1===u.ttb&&r.push(a),o+=s-1;return[4,r];case 2:c.sent(),c.label=3;case 3:return n+=1,[3,1];case 4:return[2]}}))},unselect:function(e){x9.delete(e),D9.delete(e)},isSelected:function(e,t){var n=x9.get(e);return!!n&&n.has(t)}};function A9(e){var t=e.selection;if(null==t)return!1;var n=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=a8(n,2)[1],o=zd.start(e,r);if(Qd.equals(t.anchor,o))return!0}return!1}function k9(e,t){var n=t.offset;if(0===n)return!1;var r=zd.node(e,t);if(!lp.isText(r[0]))return!1;var o=Wd.string(r[0]);return!(n>=o.length)&&"\n"===o[n-1]&&"\r"===o[n]}function B9(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")}}),1)[0],i=r.anchor;if("backward"===n&&0===r.anchor.offset&&(i=zd.before(e,r)),"forward"===n&&zd.isEnd(e,r.anchor,r.anchor.path)&&(i=zd.after(e,r)),null==i)return!1;var a=zd.above(e,{at:i,match:function(e){return YF.checkNodeType(e,"table-cell")}});if(null==a||null==o||!Yd.equals(a[1],o[1]))return!1;var u=zd.node(e,i);if(!lp.isText(u[0])||u[0].text.length<2)return!1;var s="backward"===n?[i.offset-2,i.offset]:[i.offset,i.offset+2],c=Wd.string(u[0]);return"\n\r"===c.slice.apply(c,u8([],a8(s)))?(kp.insertText(e,c.slice(0,s[0])+c.slice(s[1]),{at:{anchor:zd.start(e,i.path),focus:zd.end(e,i.path)}}),!0):!!k9(e,i)&&(kp.insertText(e,c.slice(0,r.anchor.offset-1)+c.slice(r.anchor.offset+1),{at:{anchor:zd.start(e,i.path),focus:zd.end(e,i.path)}}),!0)}var F9=/^\s+|\s+$/g,T9=/^[-+]0x[0-9a-f]+$/i,P9=/^0b[01]+$/i,_9=/^0o[0-7]+$/i,j9=parseInt,N9="object"==typeof X2&&X2&&X2.Object===Object&&X2,I9="object"==typeof self&&self&&self.Object===Object&&self,R9=N9||I9||Function("return this")(),L9=Object.prototype.toString,M9=Math.max,z9=Math.min,$9=function(){return R9.Date.now()};function H9(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U9(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==L9.call(e)}(e))return NaN;if(H9(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=H9(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(F9,"");var n=P9.test(e);return n||_9.test(e)?j9(e.slice(2),n?2:8):T9.test(e)?NaN:+e}var V9=function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=$9();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?z9(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=$9(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=U9(t)||0,H9(n)&&(l=!!n.leading,i=(f="maxWait"in n)?M9(U9(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g($9())},y},W9=RegExp.prototype,G9=N3.PROPER,q9="toString",K9=RegExp.prototype,Y9=K9[q9],X9=n4((function(){return"/a/b"!==Y9.call({source:"a",flags:"b"})})),Z9=G9&&Y9.name!==q9;(X9||Z9)&&Q3(K9,q9,(function(){var e=C3(this),t=_5(e.source),n=_5(function(e){var t=e.flags;return void 0!==t||"flags"in W9||n3(e,"flags")||!B4(W9,e)?t:a4(j5,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var J9="\t\n\v\f\r \u2028\u2029\ufeff",Q9=h4("".replace),eee=RegExp("^["+J9+"]+"),tee=RegExp("(^|[^"+J9+"])["+J9+"]+$"),nee=function(e){return function(t){var n=_5(C4(t));return 1&e&&(n=Q9(n,eee,"")),2&e&&(n=Q9(n,tee,"$1")),n}},ree={start:nee(1),end:nee(2),trim:nee(3)},oee=N3.PROPER,iee=ree.trim;function aee(e){return e.length?e[0].tagName.toLowerCase():""}function uee(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}F6({target:"String",proto:!0,forced:function(e){return n4((function(){return!!J9[e]()||"
"!=="
"[e]()||oee&&J9[e].name!==e}))}("trim")},{trim:function(){return iee(this)}}),F6({global:!0,forced:t4.globalThis!==t4},{globalThis:t4}),bv&&(Jh.fn.append=bv),av&&(Jh.fn.on=av),Fv&&(Jh.fn.focus=Fv),nv&&(Jh.fn.attr=nv),iv&&(Jh.fn.val=iv),gv&&(Jh.fn.html=gv),ov&&(Jh.fn.dataset=ov),Qh&&(Jh.fn.addClass=Qh),ev&&(Jh.fn.removeClass=ev),Dv&&(Jh.fn.children=Dv),hv&&(Jh.fn.each=hv),Cv&&(Jh.fn.find=Cv);var see=/\[object HTML([A-Z][a-z]*)*Element\]/,cee=function(e){return see.test(Object.prototype.toString.call(e))};function lee(e){var t,n,r=[],o=e.reduce((function(e,t){return e+t}),0);try{for(var i=i8(e),a=i.next();!a.done;a=i.next()){var u=a.value;r.push(u/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var fee=null,dee=!1,pee=!1,hee=0,vee=0,gee=null,yee=Jh(window);yee.on("mousedown",(function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))dee=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===gee)return;var n=a8(zd.nodes(gee,{match:r9(gee,"table")}),1),r=a8(n[0],1)[0],o=r.columnWidths,i=void 0===o?[]:o,a=r.resizingIndex,u=void 0===a?-1:a;pee=!0;var s=e.clientX;hee=s,vee=i[u],document.body.style.cursor="col-resize",e.preventDefault()}yee.on("mousemove",mee),yee.on("mouseup",bee)}));var mee=lg((function(e){if(pee&&null!==gee){e.preventDefault();var t=e.clientX,n=vee+(t-hee);(n=Math.floor(100*n)/100)<30&&(n=30);var r=a8(zd.nodes(gee,{match:r9(gee,"table")}),1),o=a8(r[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,u=o.resizingIndex,s=void 0===u?-1:u,c=a.reduce((function(e,t){return e+t}),0)-a[s],l=document.querySelector(".table-container");if(!(l&&c+n>l.clientWidth)){var f=u8([],a8(a)).map((function(e){return Math.floor(e)}));f[s]=n,kp.setNodes(gee,{columnWidths:f},{mode:"highest"})}}}),100);function bee(e){dee=!1,pee=!1,gee=null,document.body.style.cursor="",yee.off("mousemove",mee),yee.off("mouseup",bee)}function wee(e,t){"mouseenter"===t.type?kp.setNodes(e,{isResizing:!0},{mode:"highest"}):kp.setNodes(e,{isResizing:!1},{mode:"highest"})}function Eee(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function See(e){return Eee(e).every((function(e){return!!e.isHeader}))}var Cee={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(rp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=YF.findPath(e,t),a=zd.start(e,i),u=zd.end(e,i),s=Qd.compare(r,u)<=0&&Qd.compare(r,a)>=0,c=Qd.compare(o,u)<=0&&Qd.compare(o,a)>=0;return!!(s&&c&&Yd.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,u=o.height,s=o.columnWidths,c=void 0===s?[]:s,l=o.scrollWidth,f=void 0===l?0:l,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=YF.isNodeSelected(n,e),g=a8(O9.selection(n),1)[0],y=lee(c),m=qg("div",{className:"table-container","data-selected":v,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&O9.unselect(n);var r=YF.findPath(n,e),o=zd.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o):n.select(o)}}}},qg("table",{width:a,contentEditable:r,className:"table "+(g?"table-selection-none":""),style:{width:"100%"===a?a:c.reduce((function(e,t){return e+t}),0)+"px"},on:{mousemove:V9((function(t){return function(e,t,n,r){if(!e.isDisabled()&&!dee&&!pee){var o=t,i=o.width,a=void 0===i?"auto":i,u=o.columnWidths,s=void 0===u?[]:u,c=o.isHoverCellBorder,l=o.resizingIndex,f=n.clientX,d=n.target;if(cee(d)&&f>(v=d.getBoundingClientRect()).x+5&&f<v.x+v.width-5)return void(c&&kp.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(cee(d)){var p=d.closest(".table");if(p)for(var h=n.clientX,v=p.getBoundingClientRect(),g=function(e){var t,n,r=[],o=0;try{for(var i=i8(e),a=i.next();!a.done;a=i.next())o+=a.value,r.push(o)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}("100%"===a?lee(s).map((function(e){return e*r})):s),y=0;y<g.length;y+=1)if(h-v.x>=g[y]-5&&h-v.x<g[y]+5){if(l===y)return;return void kp.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===c&&kp.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,f)}),25)}},qg("colgroup",{contentEditable:!1},c.map((function(e){return qg("col",{width:e})}))),qg("tbody",null,t)),qg("div",{className:"column-resizer",contentEditable:!1},c.map((function(e,t){var r=e;return"100%"===a&&(r=y[t]*f),qg("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},qg("div",{className:"resizer-line-hotzone "+(d&&t===p?"visible ":"")+(h&&t===p?"highlight":""),style:{height:u+"px"},on:{mouseenter:function(e){return wee(n,e)},mouseleave:function(e){return wee(n,e)},mousedown:function(e){return function(e){pee||(gee=e)}(n)}}},qg("div",{className:"resizer-line"})))})))),b=Ag("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(cee(t)){var n=t.querySelector("table");n&&(fee=new ResizeObserver((function(t){var n=a8(t,1)[0].contentRect;kp.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})})),fee.observe(n))}}(n,t)},destroy:function(){fee&&(null==fee||fee.disconnect(),fee=null)}}},m);return b}},Dee={type:"table-row",renderElem:function(e,t,n){return qg("tr",null,t)}},xee={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=YF.getParentNode(e,t);if(null==n)return!1;var r=YF.getParentNode(e,n);return null!=r&&Eee(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,c=o.isHeader,l=void 0!==c&&c,f=o.hidden,d=void 0!==f&&f;return qg(r&&l?"th":"td",{colSpan:a,rowSpan:s,"data-block-type":"table-cell",className:O9.isSelected(n,e)?"w-e-selected":"",style:{display:d?"none":""}},t)}},Oee=function(e,t){var n=[][e];return!!n&&n4((function(){n.call(null,t||function(){return 1},1)}))},Aee=h4([].join),kee=w4!==Object||!Oee("join",",");F6({target:"Array",proto:!0,forced:kee},{join:function(e){return Aee(D4(this),void 0===e?",":e)}});var Bee={selector:"table",preParseHtml:function(e){var t=Jh(e);if("table"!==aee(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},Fee=t5.filter,Tee=C5("filter");F6({target:"Array",proto:!0,forced:!Tee},{filter:function(e){return Fee(this,e,arguments.length>1?arguments[1]:void 0)}});var Pee=function(e,t,n,r){try{return r?t(C3(n)[0],n[1]):t(n)}catch(t){v7(e,"throw",t)}},_ee=Array,jee=!O7((function(e){Array.from(e)}));F6({target:"Array",stat:!0,forced:jee},{from:function(e){var t=e3(e),n=Y6(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=_6(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,d=d7(t),p=0;if(!d||this===_ee&&l7(d))for(a=c6(t),u=n?new this(a):_ee(a);a>p;p++)f=i?o(t[p],p):t[p],E5(u,p,f);else for(u=n?new this:[],l=(c=h7(t,d)).next;!(s=a4(l,c)).done;p++)f=i?Pee(c,o,[s.value,p],!0):s.value,E5(u,p,f);return u.length=p,u}});var Nee=Function.prototype,Iee=Nee.apply,Ree=Nee.call,Lee="object"==typeof Reflect&&Reflect.apply||(o4?Ree.bind(Iee):function(){return Ree.apply(Iee,arguments)}),Mee=l3("species"),zee=RegExp.prototype,$ee=function(e,t,n,r){var o=l3(e),i=!n4((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!n4((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Mee]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===e8||a===zee.exec?i&&!o?{done:!0,value:a4(u,t,n,r)}:{done:!0,value:a4(e,n,t,r)}:{done:!1}}));Q3(String.prototype,e,s[0]),Q3(zee,o,s[1])}r&&T3(zee[o],"sham",!0)},Hee=Y8.charAt,Uee=function(e,t,n){return t+(n?Hee(e,t).length:1)},Vee=Math.floor,Wee=h4("".charAt),Gee=h4("".replace),qee=h4("".slice),Kee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yee=/\$([$&'`]|\d{1,2})/g,Xee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Yee;return void 0!==o&&(o=e3(o),s=Kee),Gee(i,s,(function(i,s){var c;switch(Wee(s,0)){case"$":return"$";case"&":return e;case"`":return qee(t,0,n);case"'":return qee(t,a);case"<":c=o[qee(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=Vee(l/10);return 0===f?i:f<=u?void 0===r[f-1]?Wee(s,1):r[f-1]+Wee(s,1):i}c=r[l-1]}return void 0===c?"":c}))},Zee=TypeError,Jee=function(e,t){var n=e.exec;if(O4(n)){var r=a4(n,e,t);return null!==r&&C3(r),r}if("RegExp"===y4(e))return a4(e8,e,t);throw new Zee("RegExp#exec called on incompatible receiver")},Qee=l3("replace"),ete=Math.max,tte=Math.min,nte=h4([].concat),rte=h4([].push),ote=h4("".indexOf),ite=h4("".slice),ate="$0"==="a".replace(/./,"$0"),ute=!!/./[Qee]&&""===/./[Qee]("a","$0");$ee("replace",(function(e,t,n){var r=ute?"$":"$0";return[function(e,n){var r=C4(this),o=E4(e)?void 0:q4(e,Qee);return o?a4(o,e,r,n):a4(t,_5(r),e,n)},function(e,o){var i=C3(this),a=_5(e);if("string"==typeof o&&-1===ote(o,r)&&-1===ote(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=O4(o);s||(o=_5(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Jee(i,a))&&(rte(d,f),l);)""===_5(f[0])&&(i.lastIndex=Uee(a,s6(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=_5((f=d[g])[0]),b=ete(tte(r6(f.index),a.length),0),w=[],E=1;E<f.length;E++)rte(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=nte([m],w,b,a);void 0!==S&&rte(C,S),y=_5(Lee(o,void 0,C))}else y=Xee(m,a,b,w,S,o);b>=v&&(h+=ite(a,v,b)+y,v=b+m.length)}return h+ite(a,v)}]}),!!n4((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!ate||ute);var ste=t5.forEach,cte=Oee("forEach")?[].forEach:function(e){return ste(this,e,arguments.length>1?arguments[1]:void 0)},lte=function(e){if(e&&e.forEach!==cte)try{T3(e,"forEach",cte)}catch(t){e.forEach=cte}};for(var fte in z7)z7[fte]&<e(t4[fte]&&t4[fte].prototype);lte(U7);var dte={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Jh(e);0===(t=t.filter((function(e){return"paragraph"===YF.getNodeType(e)||!!lp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1",10),i=parseInt(r.attr("rowSpan")||"1",10),a="none"===uee(r,"display"),u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===aee(r),colSpan:o,rowSpan:i,width:u,children:t,hidden:a}}},pte={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r,o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===YF.getNodeType(a)){var u=a.colSpan||1;o.push(a);for(var s=1;s<u;s+=1){var c=t[i+s];c&&"table-cell"===YF.getNodeType(c)&&"none"===(null===(r=c.style)||void 0===r?void 0:r.display)||o.push({type:"table-cell",children:[{text:""}],hidden:!0})}}}return{type:"table-row",children:o}}},hte={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Jh(e),a="auto";"100%"===uee(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var u={type:"table",width:a,height:parseInt(uee(i,"height")||"0",10),children:t.filter((function(e){return"table-row"===YF.getNodeType(e)}))},s=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],c=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null;if(c)u.columnWidths=Array.from(c).map((function(e){return parseInt(e.getAttribute("width"),10)}));else if(s.length>0){var l=[];Array.from(s).forEach((function(e){for(var t=parseInt(Jh(e).attr("colSpan")||"1",10),n=parseInt(uee(Jh(e),"width")||"180",10),r=0;r<t;r+=1)l.push(n)})),u.columnWidths=l}return u}};F6({target:"Array",proto:!0},{fill:function(e){for(var t=e3(this),n=c6(t),r=arguments.length,o=a6(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:a6(i,n);a>o;)t[o++]=e;return t}}),y5("fill");var vte=function(){function e(){this.title=Qj("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||!!YF.getSelectedElems(e).some((function(t){var n=YF.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Jh('<div class="w-e-panel-content-table"></div>'),r=Jh("<span>0 × 0</span>"),o=Jh("<table></table>"),i=0;i<10;i+=1){for(var a=Jh("<tr></tr>"),u=0;u<10;u+=1){var s=Jh("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Jh(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Jh(e).children().each((function(e){var t=Jh(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Jh(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){YF.isSelectedEmptyParagraph(e)&&kp.removeNodes(e,{mode:"highest"}),0===e.children.length&&kp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,u=void 0===a?60:a,s=i.tableFullWidth,c=i.tableHeader,l=Array(n).fill(parseInt(u,10)||60),f=0;f<t;f+=1){for(var d=[],p=0;p<n;p+=1){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(r=null==c?void 0:c.selected)||void 0===r||r),d.push(h)}o.push({type:"table-row",children:d})}return{type:"table",width:(null==s?void 0:s.selected)?"100%":"auto",children:o,columnWidths:l}}(e,r,o);kp.insertNodes(e,i,{mode:"highest"})}},e}(),gte=function(){function e(){this.title=Qj("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==YF.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||kp.removeNodes(e,{mode:"highest"})},e}(),yte=function(){function e(){this.title=Qj("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")},universal:!0}),1),r=a8(n[0],2),o=r[0],i=r[1],a=YF.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){var s=i9(e),c=0;e:for(var l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=a8(s[l][f],1),p=a8(d[0],2)[1];if(Yd.equals(i,p)){c=l;break e}}zd.withoutNormalizing(e,(function(){for(var t=c+1,n=t>=0&&t<s.length,r=[],o=0;n&&o<s[c].length;o+=1){var a=a8(s[c][o],2)[1],l=a.ttb,f=a.btt;if(l>1||f>1){if(1===f)continue;var d=a8(s[c-(l-1)][o],1),p=a8(d[0],2),h=p[0],v=p[1],g=h.rowSpan||1;r.push(o),h.hidden||kp.setNodes(e,{rowSpan:g+1},{at:v})}}for(var y={type:"table-row",children:[]},m=0;m<u;m+=1){var b={type:"table-cell",hidden:r.includes(m),children:[{text:""}]};y.children.push(b)}var w=Yd.parent(i),E=Yd.next(w);kp.insertNodes(e,y,{at:E})}))}}},e}(),mte=function(){function e(){this.title=Qj("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-row")},universal:!0}),1),r=a8(n[0],2),o=r[0],i=r[1],a=YF.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)kp.removeNodes(e,{mode:"highest"});else{var u=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")},universal:!0}),1),s=a8(u[0],2)[1],c=i9(e),l=0;e:for(var f=0;f<c.length;f+=1)for(var d=0;d<c[f].length;d+=1){var p=a8(c[f][d],1),h=a8(p[0],2)[1];if(Yd.equals(s,h)){l=f;break e}}zd.withoutNormalizing(e,(function(){for(var t,n,r=0;r<c[l].length;r+=1){var o=a8(c[l][r],2),a=a8(o[0],1)[0].hidden,u=o[1],s=u.ttb,f=u.btt;if(s>1||f>1){var d=a8(c[l-(s-1)][r],1),p=a8(d[0],2),h=p[0],v=h.rowSpan,g=void 0===v?1:v,y=h.colSpan,m=void 0===y?1:y,b=p[1];if(a)kp.setNodes(e,{rowSpan:Math.max(g-1,1),colSpan:m},{at:b});else{var w=a8(c[l+1][r],1),E=a8(w[0],2)[1];kp.setNodes(e,{rowSpan:g-1,colSpan:m,hidden:!1},{at:E});try{for(var S=(t=void 0,i8(Wd.children(e,b,{reverse:!0}))),C=S.next();!C.done;C=S.next()){var D=a8(C.value,2)[1];kp.moveNodes(e,{to:u8(u8([],a8(E)),[0]),at:D})}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=S.return)&&n.call(S)}finally{if(t)throw t.error}}}}}kp.removeNodes(e,{at:i})}))}}},e}(),bte=TypeError,wte=Object.getOwnPropertyDescriptor,Ete=r4&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(j6(e)&&!wte(e,"length").writable)throw new bte("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Ste=TypeError,Cte=TypeError,Dte=function(e,t){if(!delete e[t])throw new Cte("Cannot delete property "+V4(t)+" of "+V4(e))},xte=C5("splice"),Ote=Math.max,Ate=Math.min;F6({target:"Array",proto:!0,forced:!xte},{splice:function(e,t){var n,r,o,i,a,u,s=e3(this),c=c6(s),l=a6(e,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=Ate(Ote(r6(t),0),c-l)),function(e){if(e>9007199254740991)throw Ste("Maximum allowed index exceeded")}(c+n-r),o=J6(s,r),i=0;i<r;i++)(a=l+i)in s&&E5(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:Dte(s,u);for(i=c;i>c-r+n;i--)Dte(s,i-1)}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:Dte(s,u);for(i=0;i<n;i++)s[i+l]=arguments[i+2];return Ete(s,c-r+n),o}});var kte=function(){function e(){this.title=Qj("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")},universal:!0}),1),r=a8(n[0],2),o=r[0],i=r[1],a=YF.getParentNode(e,o);if(null!=a){var u=YF.getParentNode(e,a);if(null!=u){for(var s=i9(e),c=0,l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=a8(s[l][f],1),p=a8(d[0],2)[1];if(Yd.equals(i,p)){c=f;break}}zd.withoutNormalizing(e,(function(){for(var t=[],n=0;n<s.length;n+=1){var r=a8(s[n][c],2)[1],o=r.ltr,i=r.rtl;if(o>1||i>1){if(1===i)continue;var a=a8(s[n][c-(i-1)],1),l=a8(a[0],2),f=l[0],d=l[1],p=f.colSpan||1;t.push(n),f.hidden||kp.setNodes(e,{colSpan:p+1},{at:d})}}for(n=0;n<s.length;n+=1){var h={type:"table-cell",hidden:t.includes(n),children:[{text:""}]};0===n&&See(u)&&(h.isHeader=!0);var v=a8(s[n][c],1),g=a8(v[0],2)[1];kp.insertNodes(e,h,{at:g})}var y=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table")},universal:!0}),1)[0];if(y){var m=a8(y,2),b=m[0],w=m[1],E=b.columnWidths,S=u8([],a8(void 0===E?[]:E)),C=e.getMenuConfig("insertTable").minWidth,D=void 0===C?60:C;S.splice(c,0,parseInt(D,10)||60),kp.setNodes(e,{columnWidths:S},{at:w})}}))}}}},e}(),Bte=function(){function e(){this.title=Qj("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table-cell")},universal:!0}),1),r=a8(n[0],2),o=r[0],i=r[1],a=YF.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)kp.removeNodes(e,{mode:"highest"});else if(null!=YF.getParentNode(e,a)){var s=i9(e),c=0;e:for(var l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=a8(s[l][f],1),p=a8(d[0],2)[1];if(Yd.equals(i,p)){c=f;break e}}zd.withoutNormalizing(e,(function(){for(var t,n,r=0;r<s.length;r+=1){var o=a8(s[r][c],2),i=a8(o[0],1)[0].hidden,a=o[1],u=a.rtl,l=a.ltr;if(u>1||l>1){var f=a8(s[r][c-(u-1)],1),d=a8(f[0],2),p=d[0],h=p.rowSpan,v=void 0===h?1:h,g=p.colSpan,y=void 0===g?1:g,m=d[1];if(i)kp.setNodes(e,{rowSpan:v,colSpan:Math.max(y-1,1)},{at:m});else{var b=a8(s[r][c+1],1),w=a8(b[0],2)[1];kp.setNodes(e,{rowSpan:v,colSpan:y-1,hidden:!1},{at:w});try{for(var E=(t=void 0,i8(Wd.children(e,m,{reverse:!0}))),S=E.next();!S.done;S=E.next()){var C=a8(S.value,2)[1];kp.moveNodes(e,{to:u8(u8([],a8(w)),[0]),at:C})}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=E.return)&&n.call(E)}finally{if(t)throw t.error}}}}}for(r=0;r<s.length;r+=1){var D=a8(s[r][c],1);m=a8(D[0],2)[1],kp.removeNodes(e,{at:m})}var x=a8(zd.nodes(e,{match:function(e){return YF.checkNodeType(e,"table")},universal:!0}),1)[0];if(x){var O=a8(x,2),A=O[0],k=O[1],B=A.columnWidths,F=u8([],a8(void 0===B?[]:B));F.splice(c,1),kp.setNodes(e,{columnWidths:F},{at:k})}}))}}},e}(),Fte=function(){function e(){this.title=Qj("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=YF.getSelectedNodeByType(e,"table");return null!=t&&See(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=YF.getSelectedNodeByType(e,"table");null!=r&&Eee(r).forEach((function(t){return kp.setNodes(e,{isHeader:n},{at:YF.findPath(e,t)})}))}},e}(),Tte=function(){function e(){this.title=Qj("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=YF.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||null==YF.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};kp.setNodes(e,n,{mode:"highest"})}},e}(),Pte=function(){function e(){this.title=Qj("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),O9.unselect(e))},e.prototype.canMerge=function(e){var t=D9.get(e);if(!t||!t.length)return!1;var n=a8(t[t.length-1][t[t.length-1].length-1],1),r=a8(n[0],2)[1],o=a8(t[0][0],1);return!!o9(e,[a8(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=D9.get(e);if(t&&t.length){var n=a8(t[0][0],1),r=a8(n[0],2)[1],o=a8(Wd.children(e,r,{reverse:!0}),1),i=a8(o[0],2)[1];zd.withoutNormalizing(e,(function(){for(var n,o,a=0,u=0,s=t.length-1;s>=0;s-=1,a+=1){u=0;for(var c=t[s].length-1;c>=0;c-=1,u+=1){var l=a8(t[s][c],2),f=a8(l[0],2)[1],d=l[1].ttb;if(!(Yd.equals(r,f)||d>1)){try{for(var p=(n=void 0,i8(Wd.children(e,f,{reverse:!0}))),h=p.next();!h.done;h=p.next()){var v=a8(h.value,2)[1];kp.moveNodes(e,{to:Yd.next(i),at:v})}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var g=a8(zd.nodes(e,{match:r9(e,"tr"),at:f}),1),y=a8(g[0],2)[1];a8(Wd.children(e,y),2)[1]&&kp.setNodes(e,{hidden:!0},{at:f})}}}kp.setNodes(e,{rowSpan:a,colSpan:u},{at:r})}))}}},e}(),_te=TypeError,jte=l3("species"),Nte=L5.UNSUPPORTED_Y,Ite=Math.min,Rte=h4([].push),Lte=h4("".slice),Mte=!n4((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),zte="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;$ee("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a4(t,this,e,n)}:t;return[function(t,n){var o=C4(this),i=E4(t)?void 0:q4(t,e);return i?a4(i,t,o,n):a4(r,_5(o),t,n)},function(e,o){var i=C3(this),a=_5(e);if(!zte){var u=n(r,i,a,o,r!==t);if(u.done)return u.value}var s=function(e,t){var n,r=C3(e).constructor;return void 0===r||E4(n=C3(r)[jte])?t:function(e){if(Y6(e))return e;throw new _te(V4(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Nte?"g":"y"),f=new s(Nte?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Jee(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Nte?0:h;var g,y=Jee(f,Nte?Lte(a,h):a);if(null===y||(g=Ite(s6(f.lastIndex+(Nte?h:0)),a.length))===p)h=Uee(a,h,c);else{if(Rte(v,Lte(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Rte(v,y[m]),v.length===d)return v;h=p=g}}return Rte(v,Lte(a,p)),v}]}),zte||!Mte,Nte);var $te,Hte=function(){function e(){this.title=Qj("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=a8(zd.nodes(e,{match:r9(e,"td")}),1),n=a8(t[0],1)[0],r=n.rowSpan,o=void 0===r?1:r,i=n.colSpan;return!(o>1||(void 0===i?1:i)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=a8(zd.nodes(e,{match:r9(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=D9.get(e)||[],a=i9(e,{at:t.at});zd.withoutNormalizing(e,(function(){for(var n=a.length-1;n>=0;n-=1)for(var r=a[n].length-1;r>=0;r-=1){var u=a8(a[n][r],2),s=a8(u[0],2)[1],c=u[1],l=c.ltr,f=c.rtl,d=c.btt,p=c.ttb;if(f>1)r-=f-2;else if(!(p>1||1===d&&1===l)){var h=!!t.all;if(i.length)e:for(var v=0;!t.all&&v<i.length;v+=1)for(var g=0;g<i[v].length;g+=1){var y=a8(i[v][g],1),m=a8(y[0],2)[1];if(Yd.equals(m,s)){h=!0;break e}}else m=a8(o,2)[1],Yd.equals(m,s)&&(h=!0);if(h){e:for(var b=1;b<d;b+=1)for(v=r;v>=0;v-=1)if(1!==a8(a[n+b][v],2)[1].ttb){for(var w=0;w<l;w+=1){var E=a8(a[n+b][v+w],1),S=a8(E[0],2)[1];kp.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:S})}continue e}for(w=1;w<l;w+=1){var C=a8(a[n][r+w],1);S=a8(C[0],2)[1],kp.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:S})}kp.setNodes(e,{rowSpan:1,colSpan:1},{at:s})}}}}))}},e}(),Ute={key:"insertTable",factory:function(){return new vte}},Vte={key:"deleteTable",factory:function(){return new gte}},Wte={key:"insertTableRow",factory:function(){return new yte}},Gte={key:"deleteTableRow",factory:function(){return new mte}},qte={key:"insertTableCol",factory:function(){return new kte}},Kte={key:"deleteTableCol",factory:function(){return new Bte}},Yte={key:"tableHeader",factory:function(){return new Fte}},Xte={key:"tableFullWidth",factory:function(){return new Tte}},Zte={key:"mergeTableCell",factory:function(){return new Pte}},Jte={key:"splitTableCell",factory:function(){return new Hte}},Qte=Object.assign,ene=Object.defineProperty,tne=h4([].concat),nne=!Qte||n4((function(){if(r4&&1!==Qte({b:1},Qte(ene({},"a",{enumerable:!0,get:function(){ene(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Qte({},e)[n]||n5(Qte({},t)).join("")!==r}))?function(e,t){for(var n=e3(e),r=arguments.length,o=1,i=m6.f,a=c4.f;r>o;)for(var u,s=w4(arguments[o++]),c=i?tne(n5(s),i(s)):n5(s),l=c.length,f=0;l>f;)u=c[f++],r4&&!a4(a,s,u)||(n[u]=s[u]);return n}:Qte;function rne(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}F6({target:"Object",stat:!0,arity:2,forced:Object.assign!==nne},{assign:nne});var one=null===($te=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===$te?void 0:$te.getPropertyValue("--w-e-textarea-border-color"),ine={renderStyle:function(e,t){var n,r;if(!jd.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,u=o.borderStyle,s=o.borderColor,c=o.textAlign,l={};i&&(l.backgroundColor=i),a&&(l.borderWidth=a+"px"),u&&(l.borderStyle="none"===u?"":u),s&&(l.borderColor=s),c&&(l.textAlign=c);var f=t;return"table"===e.type?rne(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],l):rne(f,l),f},styleToHtml:function(e,t){if("table"!==e.type&&"table-cell"!==e.type)return t;var n=e.backgroundColor,r=e.borderWidth,o=e.borderStyle,i=e.borderColor,a=e.textAlign;if(!(n||r||o||i||a))return t;var u=Jh(t);return n&&u.css("background-color",n),r&&u.css("border-width",r+"px"),o&&u.css("border-style","none"===o?"":o),i&&u.css("border-color",i),a&&u.css("text-align",a),function(e){return 0===e.length?"":e[0].outerHTML}(u)},parseStyleHtml:function(e,t,n){if("TABLE"!==e.tagName&&"TD"!==e.tagName)return t;var r=Jh(e),o=t,i=uee(r,"background-color");i||(i=uee(r,"background")),i&&(o.backgroundColor=i);var a=uee(r,"border");a||"TD"!==e.tagName||(a="1px solid "+one);var u=a8((null==a?void 0:a.split(" "))||[],3),s=u[0],c=u[1],l=u[2];(s=uee(r,"border-width")||s)&&(o.borderWidth=s.replace(/[^\d]/g,"")),(c=uee(r,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(l=uee(r,"border-color")||l)&&(o.borderColor=l);var f=uee(r,"text-align");return(f=uee(r,"text-align")||f)&&(o.textAlign=f),t},renderElems:[Cee,Dee,xee],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e,r=n.width,o=void 0===r?"auto":r,i=n.columnWidths,a=n.height,u=void 0===a?"auto":a,s=null==i?void 0:i.map((function(e){return"<col width="+e+"></col>"})).join("");return'<table style="width: '+o+";table-layout: fixed;height:"+u+'">'+(s?'<colgroup contentEditable="false">'+s+"</colgroup>":"")+"<tbody>"+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,c=n.width,l=void 0===c?"auto":c,f=n.hidden,d=s?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+l+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+t+"</"+d+">"}}],preParseHtml:[Bee],parseElemsHtml:[dte,pte,hte],menus:[Ute,Vte,Wte,Gte,qte,Kte,Yte,Xte,Zte,Jte],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.deleteFragment,i=e.normalizeNode,a=e.insertData,u=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){null==YF.getSelectedNodeByType(c,"table")?t():c.insertText("\n\r")},c.deleteBackward=function(e){if(!A9(c)&&!B9(c,e,"backward")){var t=c.selection;if(t){var r=zd.before(c,t),o=zd.above(c,{at:t,match:function(e){return YF.checkNodeType(e,"table-cell")}});if(r){var i=function(e,t){return!!u8([],a8(zd.nodes(e,{at:t,match:function(e){return"table"===YF.getNodeType(e)}}))).find((function(){return!0}))}(c,r);if(!o&&i&&YF.getSelectedNodeByType(c,"paragraph"))return}}n(e)}},c.handleTab=function(){var t;if(YF.getSelectedNodeByType(c,"table")){var n=zd.above(e);YF.checkNodeType(n[0],"table-cell")&&kp.select(e,n[1]);var r=zd.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=zd.above(e,{at:r[1]}))&&void 0!==t?t:r),kp.select(e,r[1]);else{var o=c.children||[],i=o.length;if(YF.checkNodeType(o[i-1],"table")){var a=YF.genEmptyParagraph();kp.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else u()},c.deleteForward=function(e){A9(c)||B9(c,e,"forward")||r(e)},c.deleteFragment=function(e){var t=c.selection;if(t){var n,r=!1,i={anchor:t.anchor,focus:t.focus},a=Qd.isBefore(i.anchor,i.focus);k9(c,t.anchor)&&((n=zd[a?"before":"after"](c,t.anchor))&&(i.anchor=n),r=!0),k9(c,t.focus)&&((n=zd[a?"after":"before"](c,t.focus))&&(i.focus=n),r=!0),r&&kp.setSelection(c,i),o(e)}},c.normalizeNode=function(e){var t=a8(e,2),n=t[0],r=t[1];if("table"!==YF.getNodeType(n))return i([n,r]);if(YF.isLastNode(c,n)){var o=YF.genEmptyParagraph();kp.insertNodes(c,o,{at:[r[0]+1]})}},c.insertData=function(e){if(null!=YF.getSelectedNodeByType(c,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):zd.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(null!=e){var t=YF.getSelectedNodeByType(c,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Yd.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Wd.string(t).length){var o=YF.findPath(c,t),i={anchor:zd.start(c,o),focus:zd.end(c,o)};c.select(i)}else s();else s()}else s()}else s()},function(e){var t=e.apply;e.apply=function(n){if(!Kd.isSelectionOperation(n)||!n.newProperties)return t(n);var r=r8(r8({},e.selection),n.newProperties);if(!rp.isRange(r))return O9.unselect(e),t(n);var o=a8(zd.nodes(e,{match:r9(e,"th","td"),at:rp.start(r)}),1)[0],i=a8(zd.nodes(e,{match:r9(e,"th","td"),at:rp.end(r)}),1)[0];if(!o||!i)return O9.unselect(e),t(n);var a=a8(o,2)[1],u=a8(i,2)[1];if(Yd.equals(a,u)||!o9(e,[a,u],"table"))return O9.unselect(e),t(n);for(var s=i9(e,{at:a}),c=u9.valueOf(0,0),l=u9.valueOf(0,0),f=0;f<s.length;f+=1)for(var d=0;d<s[f].length;d+=1){var p=a8(s[f][d],1),h=a8(p[0],2)[1];if(Yd.equals(a,h)&&(c.x=f,c.y=d),Yd.equals(u,h)){l.x=f,l.y=d;break}}for(var v=u9.valueOf(Math.min(c.x,l.x),Math.min(c.y,l.y)),g=u9.valueOf(Math.max(c.x,l.x),Math.max(c.y,l.y));;){var y=u9.valueOf(v.x,v.y),m=u9.valueOf(g.x,g.y);for(f=y.x;f<=m.x;f+=1)for(d=y.y;d<=m.y;d+=1){var b=a8(s[f][d],2)[1],w=b.rtl,E=b.ltr,S=b.btt,C=b.ttb;y.x=Math.min(y.x,f-(C-1)),y.y=Math.min(y.y,d-(w-1)),m.x=Math.max(m.x,f+(S-1)),m.y=Math.max(m.y,d+(E-1))}if(u9.equals(v,y)&&u9.equals(g,m))break;v=y,g=m}var D=[],x=new WeakSet;for(f=v.x;f<=g.x;f+=1){var O=[];for(d=v.y;d<=g.y;d+=1){var A=a8(s[f][d],1),k=a8(A[0],1)[0];x.add(k),O.push(s[f][d])}D.push(O)}D9.set(e,D),x9.set(e,x),t(n)}}(c),c}};Jj("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Jj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
97
|
+
/*! *****************************************************************************
|
98
|
+
Copyright (c) Microsoft Corporation.
|
99
|
+
|
100
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
101
|
+
purpose with or without fee is hereby granted.
|
102
|
+
|
103
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
104
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
105
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
106
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
107
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
108
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
109
|
+
PERFORMANCE OF THIS SOFTWARE.
|
110
|
+
***************************************************************************** */
|
111
|
+
var ane=function(){return ane=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ane.apply(this,arguments)};function une(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function sne(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function cne(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var lne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fne(e){var t={exports:{}};return e(t,t.exports),t.exports}var dne,pne,hne=function(e){return e&&e.Math===Math&&e},vne=hne("object"==typeof globalThis&&globalThis)||hne("object"==typeof window&&window)||hne("object"==typeof self&&self)||hne("object"==typeof lne&&lne)||hne("object"==typeof lne&&lne)||function(){return this}()||Function("return this")(),gne=function(e){try{return!!e()}catch(e){return!0}},yne=!gne((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),mne=!gne((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),bne=Function.prototype.call,wne=mne?bne.bind(bne):function(){return bne.apply(bne,arguments)},Ene={}.propertyIsEnumerable,Sne=Object.getOwnPropertyDescriptor,Cne={f:Sne&&!Ene.call({1:2},1)?function(e){var t=Sne(this,e);return!!t&&t.enumerable}:Ene},Dne=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xne=Function.prototype,One=xne.call,Ane=mne&&xne.bind.bind(One,One),kne=mne?Ane:function(e){return function(){return One.apply(e,arguments)}},Bne=kne({}.toString),Fne=kne("".slice),Tne=function(e){return Fne(Bne(e),8,-1)},Pne=Object,_ne=kne("".split),jne=gne((function(){return!Pne("z").propertyIsEnumerable(0)}))?function(e){return"String"===Tne(e)?_ne(e,""):Pne(e)}:Pne,Nne=function(e){return null==e},Ine=TypeError,Rne=function(e){if(Nne(e))throw new Ine("Can't call method on "+e);return e},Lne=function(e){return jne(Rne(e))},Mne="object"==typeof document&&document.all,zne=void 0===Mne&&void 0!==Mne?function(e){return"function"==typeof e||e===Mne}:function(e){return"function"==typeof e},$ne=function(e){return"object"==typeof e?null!==e:zne(e)},Hne=function(e,t){return arguments.length<2?(n=vne[e],zne(n)?n:void 0):vne[e]&&vne[e][t];var n},Une=kne({}.isPrototypeOf),Vne=vne.navigator,Wne=Vne&&Vne.userAgent,Gne=Wne?String(Wne):"",qne=vne.process,Kne=vne.Deno,Yne=qne&&qne.versions||Kne&&Kne.version,Xne=Yne&&Yne.v8;Xne&&(pne=(dne=Xne.split("."))[0]>0&&dne[0]<4?1:+(dne[0]+dne[1])),!pne&&Gne&&(!(dne=Gne.match(/Edge\/(\d+)/))||dne[1]>=74)&&(dne=Gne.match(/Chrome\/(\d+)/))&&(pne=+dne[1]);var Zne=pne,Jne=vne.String,Qne=!!Object.getOwnPropertySymbols&&!gne((function(){var e=Symbol("symbol detection");return!Jne(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Zne&&Zne<41})),ere=Qne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tre=Object,nre=ere?function(e){return"symbol"==typeof e}:function(e){var t=Hne("Symbol");return zne(t)&&Une(t.prototype,tre(e))},rre=String,ore=function(e){try{return rre(e)}catch(e){return"Object"}},ire=TypeError,are=function(e){if(zne(e))return e;throw new ire(ore(e)+" is not a function")},ure=function(e,t){var n=e[t];return Nne(n)?void 0:are(n)},sre=TypeError,cre=Object.defineProperty,lre=function(e,t){try{cre(vne,e,{value:t,configurable:!0,writable:!0})}catch(n){vne[e]=t}return t},fre=fne((function(e){var t="__core-js_shared__",n=e.exports=vne[t]||lre(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),dre=function(e,t){return fre[e]||(fre[e]=t||{})},pre=Object,hre=function(e){return pre(Rne(e))},vre=kne({}.hasOwnProperty),gre=Object.hasOwn||function(e,t){return vre(hre(e),t)},yre=0,mre=Math.random(),bre=kne(1..toString),wre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bre(++yre+mre,36)},Ere=vne.Symbol,Sre=dre("wks"),Cre=ere?Ere.for||Ere:Ere&&Ere.withoutSetter||wre,Dre=function(e){return gre(Sre,e)||(Sre[e]=Qne&&gre(Ere,e)?Ere[e]:Cre("Symbol."+e)),Sre[e]},xre=TypeError,Ore=Dre("toPrimitive"),Are=function(e){var t=function(e,t){if(!$ne(e)||nre(e))return e;var n,r=ure(e,Ore);if(r){if(void 0===t&&(t="default"),n=wne(r,e,t),!$ne(n)||nre(n))return n;throw new xre("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&zne(n=e.toString)&&!$ne(r=wne(n,e)))return r;if(zne(n=e.valueOf)&&!$ne(r=wne(n,e)))return r;if("string"!==t&&zne(n=e.toString)&&!$ne(r=wne(n,e)))return r;throw new sre("Can't convert object to primitive value")}(e,t)}(e,"string");return nre(t)?t:t+""},kre=vne.document,Bre=$ne(kre)&&$ne(kre.createElement),Fre=function(e){return Bre?kre.createElement(e):{}},Tre=!yne&&!gne((function(){return 7!==Object.defineProperty(Fre("div"),"a",{get:function(){return 7}}).a})),Pre=Object.getOwnPropertyDescriptor,_re={f:yne?Pre:function(e,t){if(e=Lne(e),t=Are(t),Tre)try{return Pre(e,t)}catch(e){}if(gre(e,t))return Dne(!wne(Cne.f,e,t),e[t])}},jre=yne&&gne((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Nre=String,Ire=TypeError,Rre=function(e){if($ne(e))return e;throw new Ire(Nre(e)+" is not an object")},Lre=TypeError,Mre=Object.defineProperty,zre=Object.getOwnPropertyDescriptor,$re="enumerable",Hre="configurable",Ure="writable",Vre={f:yne?jre?function(e,t,n){if(Rre(e),t=Are(t),Rre(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ure in n&&!n[Ure]){var r=zre(e,t);r&&r[Ure]&&(e[t]=n.value,n={configurable:Hre in n?n[Hre]:r[Hre],enumerable:$re in n?n[$re]:r[$re],writable:!1})}return Mre(e,t,n)}:Mre:function(e,t,n){if(Rre(e),t=Are(t),Rre(n),Tre)try{return Mre(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Lre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wre=yne?function(e,t,n){return Vre.f(e,t,Dne(1,n))}:function(e,t,n){return e[t]=n,e},Gre=Function.prototype,qre=yne&&Object.getOwnPropertyDescriptor,Kre=gre(Gre,"name"),Yre={EXISTS:Kre,PROPER:Kre&&"something"===function(){}.name,CONFIGURABLE:Kre&&(!yne||yne&&qre(Gre,"name").configurable)},Xre=kne(Function.toString);zne(fre.inspectSource)||(fre.inspectSource=function(e){return Xre(e)});var Zre,Jre,Qre,eoe=fre.inspectSource,toe=vne.WeakMap,noe=zne(toe)&&/native code/.test(String(toe)),roe=dre("keys"),ooe=function(e){return roe[e]||(roe[e]=wre(e))},ioe={},aoe="Object already initialized",uoe=vne.TypeError,soe=vne.WeakMap;if(noe||fre.state){var coe=fre.state||(fre.state=new soe);coe.get=coe.get,coe.has=coe.has,coe.set=coe.set,Zre=function(e,t){if(coe.has(e))throw new uoe(aoe);return t.facade=e,coe.set(e,t),t},Jre=function(e){return coe.get(e)||{}},Qre=function(e){return coe.has(e)}}else{var loe=ooe("state");ioe[loe]=!0,Zre=function(e,t){if(gre(e,loe))throw new uoe(aoe);return t.facade=e,Wre(e,loe,t),t},Jre=function(e){return gre(e,loe)?e[loe]:{}},Qre=function(e){return gre(e,loe)}}var foe={set:Zre,get:Jre,has:Qre,enforce:function(e){return Qre(e)?Jre(e):Zre(e,{})},getterFor:function(e){return function(t){var n;if(!$ne(t)||(n=Jre(t)).type!==e)throw new uoe("Incompatible receiver, "+e+" required");return n}}},doe=fne((function(e){var t=Yre.CONFIGURABLE,n=foe.enforce,r=foe.get,o=String,i=Object.defineProperty,a=kne("".slice),u=kne("".replace),s=kne([].join),c=yne&&!gne((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!gre(e,"name")||t&&e.name!==r)&&(yne?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&gre(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&gre(f,"constructor")&&f.constructor?yne&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return gre(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return zne(this)&&r(this).source||eoe(this)}),"toString")})),poe=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(zne(n)&&doe(n,i,r),r.global)o?e[t]=n:lre(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Vre.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},hoe=Math.ceil,voe=Math.floor,goe=Math.trunc||function(e){var t=+e;return(t>0?voe:hoe)(t)},yoe=function(e){var t=+e;return t!=t||0===t?0:goe(t)},moe=Math.max,boe=Math.min,woe=function(e,t){var n=yoe(e);return n<0?moe(n+t,0):boe(n,t)},Eoe=Math.min,Soe=function(e){var t=yoe(e);return t>0?Eoe(t,9007199254740991):0},Coe=function(e){return Soe(e.length)},Doe=function(e){return function(t,n,r){var o=Lne(t),i=Coe(o);if(0===i)return!e&&-1;var a,u=woe(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},xoe={includes:Doe(!0),indexOf:Doe(!1)},Ooe=xoe.indexOf,Aoe=kne([].push),koe=function(e,t){var n,r=Lne(e),o=0,i=[];for(n in r)!gre(ioe,n)&&gre(r,n)&&Aoe(i,n);for(;t.length>o;)gre(r,n=t[o++])&&(~Ooe(i,n)||Aoe(i,n));return i},Boe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Foe=Boe.concat("length","prototype"),Toe={f:Object.getOwnPropertyNames||function(e){return koe(e,Foe)}},Poe={f:Object.getOwnPropertySymbols},_oe=kne([].concat),joe=Hne("Reflect","ownKeys")||function(e){var t=Toe.f(Rre(e)),n=Poe.f;return n?_oe(t,n(e)):t},Noe=function(e,t,n){for(var r=joe(t),o=Vre.f,i=_re.f,a=0;a<r.length;a++){var u=r[a];gre(e,u)||n&&gre(n,u)||o(e,u,i(t,u))}},Ioe=/#|\.prototype\./,Roe=function(e,t){var n=Moe[Loe(e)];return n===$oe||n!==zoe&&(zne(t)?gne(t):!!t)},Loe=Roe.normalize=function(e){return String(e).replace(Ioe,".").toLowerCase()},Moe=Roe.data={},zoe=Roe.NATIVE="N",$oe=Roe.POLYFILL="P",Hoe=Roe,Uoe=_re.f,Voe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?vne:c?vne[u]||lre(u,{}):vne[u]&&vne[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Uoe(n,r))&&a.value:n[r],!Hoe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Noe(i,o)}(e.sham||o&&o.sham)&&Wre(i,"sham",!0),poe(n,r,i,e)}},Woe={};Woe[Dre("toStringTag")]="z";var Goe,qoe="[object z]"===String(Woe),Koe=Dre("toStringTag"),Yoe=Object,Xoe="Arguments"===Tne(function(){return arguments}()),Zoe=qoe?Tne:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yoe(e),Koe))?n:Xoe?Tne(t):"Object"===(r=Tne(t))&&zne(t.callee)?"Arguments":r},Joe=String,Qoe=function(e){if("Symbol"===Zoe(e))throw new TypeError("Cannot convert a Symbol value to a string");return Joe(e)},eie="\t\n\v\f\r \u2028\u2029\ufeff",tie=kne("".replace),nie=RegExp("^["+eie+"]+"),rie=RegExp("(^|[^"+eie+"])["+eie+"]+$"),oie=function(e){return function(t){var n=Qoe(Rne(t));return 1&e&&(n=tie(n,nie,"")),2&e&&(n=tie(n,rie,"$1")),n}},iie={start:oie(1),end:oie(2),trim:oie(3)},aie=Yre.PROPER,uie=iie.trim;function sie(e){return e.length?e[0].tagName.toLowerCase():""}function cie(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Jh(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Voe({target:"String",proto:!0,forced:(Goe="trim",gne((function(){return!!eie.trim()||"
"!=="
".trim()||aie&&eie.trim.name!==Goe})))},{trim:function(){return uie(this)}}),Voe({global:!0,forced:vne.globalThis!==vne},{globalThis:vne}),bv&&(Jh.fn.append=bv),av&&(Jh.fn.on=av),Fv&&(Jh.fn.focus=Fv),nv&&(Jh.fn.attr=nv),iv&&(Jh.fn.val=iv),gv&&(Jh.fn.html=gv),Ev&&(Jh.fn.parent=Ev),tv&&(Jh.fn.hasClass=tv),Ov&&(Jh.fn.empty=Ov);var lie,fie={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,c=o.width,l=void 0===c?"auto":c,f=o.height,d=void 0===f?"auto":f,p=YF.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=qg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:cie(a,l,d)});else{var h=qg("video",{poster:s,controls:!0},qg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==d&&(h.data.height=d),r=qg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Ag("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},die={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=cie(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},pie=Object.keys||function(e){return koe(e,Boe)},hie=yne&&!jre?Object.defineProperties:function(e,t){Rre(e);for(var n,r=Lne(t),o=pie(t),i=o.length,a=0;i>a;)Vre.f(e,n=o[a++],r[n]);return e},vie={f:hie},gie=Hne("document","documentElement"),yie="prototype",mie="script",bie=ooe("IE_PROTO"),wie=function(){},Eie=function(e){return"<script>"+e+"</"+mie+">"},Sie=function(e){e.write(Eie("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cie=function(){try{lie=new ActiveXObject("htmlfile")}catch(e){}var e,t;Cie="undefined"!=typeof document?document.domain&&lie?Sie(lie):("javascript:",(t=Fre("iframe")).style.display="none",gie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Eie("document.F=Object")),e.close(),e.F):Sie(lie);for(var n=Boe.length;n--;)delete Cie[yie][Boe[n]];return Cie()};ioe[bie]=!0;var Die=Object.create||function(e,t){var n;return null!==e?(wie[yie]=Rre(e),n=new wie,wie[yie]=null,n[bie]=e):n=Cie(),void 0===t?n:vie.f(n,t)},xie=Vre.f,Oie=Dre("unscopables"),Aie=Array.prototype;void 0===Aie[Oie]&&xie(Aie,Oie,{configurable:!0,value:Die(null)});var kie=function(e){Aie[Oie][e]=!0},Bie=xoe.includes,Fie=gne((function(){return!Array(1).includes()}));Voe({target:"Array",proto:!0,forced:Fie},{includes:function(e){return Bie(this,e,arguments.length>1?arguments[1]:void 0)}}),kie("includes");var Tie={selector:"iframe,video,p",preParseHtml:function(e){var t=Jh(e),n=t;if("p"===sie(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Jh(o))}}var a=sie(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Jh('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},Pie=function(e){if("Function"===Tne(e))return kne(e)},_ie=Pie(Pie.bind),jie=function(e,t){return are(e),void 0===t?e:mne?_ie(e,t):function(){return e.apply(t,arguments)}},Nie=Array.isArray||function(e){return"Array"===Tne(e)},Iie=function(){},Rie=Hne("Reflect","construct"),Lie=/^\s*(?:class|function)\b/,Mie=kne(Lie.exec),zie=!Lie.test(Iie),$ie=function(e){if(!zne(e))return!1;try{return Rie(Iie,[],e),!0}catch(e){return!1}},Hie=function(e){if(!zne(e))return!1;switch(Zoe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zie||!!Mie(Lie,eoe(e))}catch(e){return!0}};Hie.sham=!0;var Uie=!Rie||gne((function(){var e;return $ie($ie.call)||!$ie(Object)||!$ie((function(){e=!0}))||e}))?Hie:$ie,Vie=Dre("species"),Wie=Array,Gie=function(e,t){return new(function(e){var t;return Nie(e)&&(t=e.constructor,(Uie(t)&&(t===Wie||Nie(t.prototype))||$ne(t)&&null===(t=t[Vie]))&&(t=void 0)),void 0===t?Wie:t}(e))(0===t?0:t)},qie=kne([].push),Kie=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=hre(s),v=jne(h),g=Coe(v),y=jie(c,l),m=0,b=f||Gie,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:qie(w,d)}else switch(e){case 4:return!1;case 7:qie(w,d)}return i?-1:r||o?o:w}},Yie={forEach:Kie(0),map:Kie(1),filter:Kie(2),some:Kie(3),every:Kie(4),find:Kie(5),findIndex:Kie(6),filterReject:Kie(7)},Xie=Yie.find,Zie=!0;"find"in[]&&Array(1).find((function(){Zie=!1})),Voe({target:"Array",proto:!0,forced:Zie},{find:function(e){return Xie(this,e,arguments.length>1?arguments[1]:void 0)}}),kie("find");var Jie=qoe?{}.toString:function(){return"[object "+Zoe(this)+"]"};function Qie(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}qoe||poe(Object.prototype,"toString",Jie,{unsafe:!0});var eae,tae,nae={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Jh(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",Qie(o=s[0].outerHTML,i,a,u);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",Qie(o,i=c.attr("poster")||"",a,u)}},rae=function(){var e=Rre(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},oae=vne.RegExp,iae=gne((function(){var e=oae("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),aae=iae||gne((function(){return!oae("a","y").sticky})),uae={BROKEN_CARET:iae||gne((function(){var e=oae("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:aae,UNSUPPORTED_Y:iae},sae=vne.RegExp,cae=gne((function(){var e=sae(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),lae=vne.RegExp,fae=gne((function(){var e=lae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),dae=foe.get,pae=dre("native-string-replace",String.prototype.replace),hae=RegExp.prototype.exec,vae=hae,gae=kne("".charAt),yae=kne("".indexOf),mae=kne("".replace),bae=kne("".slice),wae=(tae=/b*/g,wne(hae,eae=/a/,"a"),wne(hae,tae,"a"),0!==eae.lastIndex||0!==tae.lastIndex),Eae=uae.BROKEN_CARET,Sae=void 0!==/()??/.exec("")[1];(wae||Sae||Eae||cae||fae)&&(vae=function(e){var t,n,r,o,i,a,u,s=this,c=dae(s),l=Qoe(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=wne(vae,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Eae&&s.sticky,h=wne(rae,s),v=s.source,g=0,y=l;if(p&&(h=mae(h,"y",""),-1===yae(h,"g")&&(h+="g"),y=bae(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==gae(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Sae&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wae&&(r=s.lastIndex),o=wne(hae,p?n:s,y),p?o?(o.input=bae(o.input,g),o[0]=bae(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Sae&&o&&o.length>1&&wne(pae,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Die(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cae=vae;Voe({target:"RegExp",proto:!0,forced:/./.exec!==Cae},{exec:Cae});var Dae=Function.prototype,xae=Dae.apply,Oae=Dae.call,Aae="object"==typeof Reflect&&Reflect.apply||(mne?Oae.bind(xae):function(){return Oae.apply(xae,arguments)}),kae=(Dre("species"),RegExp.prototype),Bae=kne("".charAt),Fae=kne("".charCodeAt),Tae=kne("".slice),Pae=function(e){return function(t,n){var r,o,i=Qoe(Rne(t)),a=yoe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Fae(i,a))<55296||r>56319||a+1===u||(o=Fae(i,a+1))<56320||o>57343?e?Bae(i,a):r:e?Tae(i,a,a+2):o-56320+(r-55296<<10)+65536}},_ae={codeAt:Pae(!1),charAt:Pae(!0)},jae=_ae.charAt,Nae=function(e,t,n){return t+(n?jae(e,t).length:1)},Iae=Math.floor,Rae=kne("".charAt),Lae=kne("".replace),Mae=kne("".slice),zae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$ae=/\$([$&'`]|\d{1,2})/g,Hae=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$ae;return void 0!==o&&(o=hre(o),s=zae),Lae(i,s,(function(i,s){var c;switch(Rae(s,0)){case"$":return"$";case"&":return e;case"`":return Mae(t,0,n);case"'":return Mae(t,a);case"<":c=o[Mae(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=Iae(l/10);return 0===f?i:f<=u?void 0===r[f-1]?Rae(s,1):r[f-1]+Rae(s,1):i}c=r[l-1]}return void 0===c?"":c}))},Uae=TypeError,Vae=function(e,t){var n=e.exec;if(zne(n)){var r=wne(n,e,t);return null!==r&&Rre(r),r}if("RegExp"===Tne(e))return wne(Cae,e,t);throw new Uae("RegExp#exec called on incompatible receiver")},Wae=Dre("replace"),Gae=Math.max,qae=Math.min,Kae=kne([].concat),Yae=kne([].push),Xae=kne("".indexOf),Zae=kne("".slice),Jae="$0"==="a".replace(/./,"$0"),Qae=!!/./[Wae]&&""===/./[Wae]("a","$0");function eue(e){return void 0===e&&(e="r"),e+"-"+Kv()}!function(e,t,n){var r=Dre(e),o=!gne((function(){var t={};return t[r]=function(){return 7},7!==""[e](t)})),i=o&&!gne((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=/./[r],u=function(e,t,n){var r=Qae?"$":"$0";return[function(e,n){var r=Rne(this),o=Nne(e)?void 0:ure(e,Wae);return o?wne(o,e,r,n):wne(t,Qoe(r),e,n)},function(e,o){var i=Rre(this),a=Qoe(e);if("string"==typeof o&&-1===Xae(o,r)&&-1===Xae(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=zne(o);s||(o=Qoe(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Vae(i,a))&&(Yae(d,f),l);)""===Qoe(f[0])&&(i.lastIndex=Nae(a,Soe(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=Qoe((f=d[g])[0]),b=Gae(qae(yoe(f.index),a.length),0),w=[],E=1;E<f.length;E++)Yae(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=Kae([m],w,b,a);void 0!==S&&Yae(C,S),y=Qoe(Aae(o,void 0,C))}else y=Hae(m,a,b,w,S,o);b>=v&&(h+=Zae(a,v,b)+y,v=b+m.length)}return h+Zae(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=t.exec;return u===Cae||u===kae.exec?o&&!i?{done:!0,value:wne(a,t,n,r)}:{done:!0,value:wne(e,n,t,r)}:{done:!1}}));poe(String.prototype,e,u[0]),poe(kae,r,u[1])}}("replace",0,!!gne((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Jae||Qae);var tue,nue,rue,oue,iue=function(e){return Gne.slice(0,e.length)===e},aue=iue("Bun/")?"BUN":iue("Cloudflare-Workers")?"CLOUDFLARE":iue("Deno/")?"DENO":iue("Node.js/")?"NODE":vne.Bun&&"string"==typeof Bun.version?"BUN":vne.Deno&&"object"==typeof Deno.version?"DENO":"process"===Tne(vne.process)?"NODE":vne.window&&vne.document?"BROWSER":"REST",uue="NODE"===aue,sue=String,cue=TypeError,lue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return kne(are(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Rne(n),function(e){if(function(e){return $ne(e)||null===e}(e))return e;throw new cue("Can't set "+sue(e)+" as a prototype")}(r),$ne(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),fue=Vre.f,due=Dre("toStringTag"),pue=function(e,t,n){e&&!n&&(e=e.prototype),e&&!gre(e,due)&&fue(e,due,{configurable:!0,value:t})},hue=function(e,t,n){return n.get&&doe(n.get,t,{getter:!0}),n.set&&doe(n.set,t,{setter:!0}),Vre.f(e,t,n)},vue=Dre("species"),gue=TypeError,yue=function(e,t){if(Une(t,e))return e;throw new gue("Incorrect invocation")},mue=TypeError,bue=Dre("species"),wue=kne([].slice),Eue=TypeError,Sue=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gne),Cue=vne.setImmediate,Due=vne.clearImmediate,xue=vne.process,Oue=vne.Dispatch,Aue=vne.Function,kue=vne.MessageChannel,Bue=vne.String,Fue=0,Tue={},Pue="onreadystatechange";gne((function(){tue=vne.location}));var _ue=function(e){if(gre(Tue,e)){var t=Tue[e];delete Tue[e],t()}},jue=function(e){return function(){_ue(e)}},Nue=function(e){_ue(e.data)},Iue=function(e){vne.postMessage(Bue(e),tue.protocol+"//"+tue.host)};Cue&&Due||(Cue=function(e){!function(e){if(e<1)throw new Eue("Not enough arguments")}(arguments.length);var t=zne(e)?e:Aue(e),n=wue(arguments,1);return Tue[++Fue]=function(){Aae(t,void 0,n)},nue(Fue),Fue},Due=function(e){delete Tue[e]},uue?nue=function(e){xue.nextTick(jue(e))}:Oue&&Oue.now?nue=function(e){Oue.now(jue(e))}:kue&&!Sue?(oue=(rue=new kue).port2,rue.port1.onmessage=Nue,nue=jie(oue.postMessage,oue)):vne.addEventListener&&zne(vne.postMessage)&&!vne.importScripts&&tue&&"file:"!==tue.protocol&&!gne(Iue)?(nue=Iue,vne.addEventListener("message",Nue,!1)):nue=Pue in Fre("script")?function(e){gie.appendChild(Fre("script"))[Pue]=function(){gie.removeChild(this),_ue(e)}}:function(e){setTimeout(jue(e),0)});var Rue={set:Cue,clear:Due},Lue=Object.getOwnPropertyDescriptor,Mue=function(){this.head=null,this.tail=null};Mue.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var zue,$ue,Hue,Uue,Vue,Wue=Mue,Gue=/ipad|iphone|ipod/i.test(Gne)&&"undefined"!=typeof Pebble,que=/web0s(?!.*chrome)/i.test(Gne),Kue=Rue.set,Yue=vne.MutationObserver||vne.WebKitMutationObserver,Xue=vne.document,Zue=vne.process,Jue=vne.Promise,Que=function(e){if(!yne)return vne[e];var t=Lue(vne,e);return t&&t.value}("queueMicrotask");if(!Que){var ese=new Wue,tse=function(){var e,t;for(uue&&(e=Zue.domain)&&e.exit();t=ese.get();)try{t()}catch(e){throw ese.head&&zue(),e}e&&e.enter()};Sue||uue||que||!Yue||!Xue?!Gue&&Jue&&Jue.resolve?((Uue=Jue.resolve(void 0)).constructor=Jue,Vue=jie(Uue.then,Uue),zue=function(){Vue(tse)}):uue?zue=function(){Zue.nextTick(tse)}:(Kue=jie(Kue,vne),zue=function(){Kue(tse)}):($ue=!0,Hue=Xue.createTextNode(""),new Yue(tse).observe(Hue,{characterData:!0}),zue=function(){Hue.data=$ue=!$ue}),Que=function(e){ese.head||zue(),ese.add(e)}}var nse=Que,rse=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ose=vne.Promise;ose&&ose.prototype;var ise,ase,use,sse,cse=Dre("species"),lse=!1,fse=zne(vne.PromiseRejectionEvent),dse=Hoe("Promise",(function(){var e=eoe(ose),t=e!==String(ose);if(!t&&66===Zne)return!0;if(!Zne||Zne<51||!/native code/.test(e)){var n=new ose((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[cse]=r,!(lse=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==aue&&"DENO"!==aue||fse)})),pse={CONSTRUCTOR:dse,REJECTION_EVENT:fse,SUBCLASSING:lse},hse=TypeError,vse=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new hse("Bad Promise constructor");t=e,n=r})),this.resolve=are(t),this.reject=are(n)},gse={f:function(e){return new vse(e)}},yse=Rue.set,mse="Promise",bse=pse.CONSTRUCTOR,wse=pse.REJECTION_EVENT,Ese=pse.SUBCLASSING,Sse=foe.getterFor(mse),Cse=foe.set,Dse=ose&&ose.prototype,xse=ose,Ose=Dse,Ase=vne.TypeError,kse=vne.document,Bse=vne.process,Fse=gse.f,Tse=Fse,Pse=!!(kse&&kse.createEvent&&vne.dispatchEvent),_se="unhandledrejection",jse=function(e){var t;return!(!$ne(e)||!zne(t=e.then))&&t},Nse=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&zse(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new Ase("Promise-chain cycle")):(r=jse(n))?wne(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},Ise=function(e,t){e.notified||(e.notified=!0,nse((function(){for(var n,r=e.reactions;n=r.get();)Nse(n,e);e.notified=!1,t&&!e.rejection&&Lse(e)})))},Rse=function(e,t,n){var r,o;Pse?((r=kse.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),vne.dispatchEvent(r)):r={promise:t,reason:n},!wse&&(o=vne["on"+e])?o(r):e===_se&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},Lse=function(e){wne(yse,vne,(function(){var t,n=e.facade,r=e.value;if(Mse(e)&&(t=rse((function(){uue?Bse.emit("unhandledRejection",r,n):Rse(_se,n,r)})),e.rejection=uue||Mse(e)?2:1,t.error))throw t.value}))},Mse=function(e){return 1!==e.rejection&&!e.parent},zse=function(e){wne(yse,vne,(function(){var t=e.facade;uue?Bse.emit("rejectionHandled",t):Rse("rejectionhandled",t,e.value)}))},$se=function(e,t,n){return function(r){e(t,r,n)}},Hse=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ise(e,!0))},Use=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Ase("Promise can't be resolved itself");var r=jse(t);r?nse((function(){var n={done:!1};try{wne(r,t,$se(Use,n,e),$se(Hse,n,e))}catch(t){Hse(n,t,e)}})):(e.value=t,e.state=1,Ise(e,!1))}catch(t){Hse({done:!1},t,e)}}};if(bse&&(Ose=(xse=function(e){yue(this,Ose),are(e),wne(ise,this);var t=Sse(this);try{e($se(Use,t),$se(Hse,t))}catch(e){Hse(t,e)}}).prototype,(ise=function(e){Cse(this,{type:mse,done:!1,notified:!1,parent:!1,reactions:new Wue,rejection:!1,state:0,value:null})}).prototype=poe(Ose,"then",(function(e,t){var n=Sse(this),r=Fse(function(e,t){var n,r=Rre(e).constructor;return void 0===r||Nne(n=Rre(r)[bue])?t:function(e){if(Uie(e))return e;throw new mue(ore(e)+" is not a constructor")}(n)}(this,xse));return n.parent=!0,r.ok=!zne(e)||e,r.fail=zne(t)&&t,r.domain=uue?Bse.domain:void 0,0===n.state?n.reactions.add(r):nse((function(){Nse(r,n)})),r.promise})),ase=function(){var e=new ise,t=Sse(e);this.promise=e,this.resolve=$se(Use,t),this.reject=$se(Hse,t)},gse.f=Fse=function(e){return e===xse||void 0===e?new ase(e):Tse(e)},zne(ose)&&Dse!==Object.prototype)){use=Dse.then,Ese||poe(Dse,"then",(function(e,t){var n=this;return new xse((function(e,t){wne(use,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Dse.constructor}catch(Jl){}lue&&lue(Dse,Ose)}Voe({global:!0,constructor:!0,wrap:!0,forced:bse},{Promise:xse}),pue(xse,mse,!1),sse=Hne(mse),yne&&sse&&!sse[vue]&&hue(sse,vue,{configurable:!0,get:function(){return this}});var Vse={},Wse=Dre("iterator"),Gse=Array.prototype,qse=Dre("iterator"),Kse=function(e){if(!Nne(e))return ure(e,qse)||ure(e,"@@iterator")||Vse[Zoe(e)]},Yse=TypeError,Xse=function(e,t,n){var r,o;Rre(e);try{if(!(r=ure(e,"return"))){if("throw"===t)throw n;return n}r=wne(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Rre(r),n},Zse=TypeError,Jse=function(e,t){this.stopped=e,this.result=t},Qse=Jse.prototype,ece=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=jie(t,f),y=function(e){return r&&Xse(r,"normal",e),new Jse(!0,e)},m=function(e){return d?(Rre(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=Kse(e)))throw new Zse(ore(e)+" is not iterable");if(void 0!==(l=o)&&(Vse.Array===l||Gse[Wse]===l)){for(i=0,a=Coe(e);a>i;i++)if((u=m(e[i]))&&Une(Qse,u))return u;return new Jse(!1)}r=function(e,t){var n=arguments.length<2?Kse(e):t;if(are(n))return Rre(wne(n,e));throw new Yse(ore(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=wne(s,r)).done;){try{u=m(c.value)}catch(e){Xse(r,"throw",e)}if("object"==typeof u&&u&&Une(Qse,u))return u}return new Jse(!1)},tce=Dre("iterator"),nce=!1;try{var rce=0,oce={next:function(){return{done:!!rce++}},return:function(){nce=!0}};oce[tce]=function(){return this},Array.from(oce,(function(){throw 2}))}catch(Jl){}var ice=function(e,t){try{if(!t&&!nce)return!1}catch(e){return!1}var n=!1;try{var r={};r[tce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},ace=pse.CONSTRUCTOR||!ice((function(e){ose.all(e).then(void 0,(function(){}))}));Voe({target:"Promise",stat:!0,forced:ace},{all:function(e){var t=this,n=gse.f(t),r=n.resolve,o=n.reject,i=rse((function(){var n=are(t.resolve),i=[],a=0,u=1;ece(e,(function(e){var s=a++,c=!1;u++,wne(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var uce=pse.CONSTRUCTOR,sce=ose&&ose.prototype;if(Voe({target:"Promise",proto:!0,forced:uce,real:!0},{catch:function(e){return this.then(void 0,e)}}),zne(ose)){var cce=Hne("Promise").prototype.catch;sce.catch!==cce&&poe(sce,"catch",cce,{unsafe:!0})}Voe({target:"Promise",stat:!0,forced:ace},{race:function(e){var t=this,n=gse.f(t),r=n.reject,o=rse((function(){var o=are(t.resolve);ece(e,(function(e){wne(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Voe({target:"Promise",stat:!0,forced:pse.CONSTRUCTOR},{reject:function(e){var t=gse.f(this);return(0,t.reject)(e),t.promise}});var lce=pse.CONSTRUCTOR;function fce(e,t,n){return void 0===n&&(n=""),une(this,void 0,void 0,(function(){var r,o,i,a,u,s,c;return sne(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){kp.insertNodes(e,c)})),o(c),[2]}}))}))}function dce(){return eue("w-e-insert-video")}Hne("Promise"),Voe({target:"Promise",stat:!0,forced:lce},{resolve:function(e){return function(e,t){if(Rre(e),$ne(t)&&t.constructor===e)return t;var n=gse.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var pce=function(){function e(){this.title=Qj("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=dce(),this.posterInputId=dce(),this.buttonId=dce()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||!!YF.getSelectedElems(e).some((function(t){var n=YF.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=cne(N_(Qj("videoModule.videoSrc"),r,Qj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=cne(N_(Qj("videoModule.videoPoster"),o,Qj("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Jh(s),p=Jh(f),h=cne(I_(i,Qj("videoModule.ok")),1)[0];if(null==this.$content){var v=Jh("<div></div>");v.on("click","#"+i,(function(n){return une(t,void 0,void 0,(function(){var t,i;return sne(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,fce(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(l),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),hce=kne([].join),vce=jne!==Object||!function(){var e=[].join;return!!e&&gne((function(){e.call(null,",",1)}))}();Voe({target:"Array",proto:!0,forced:vce},{join:function(e){return hce(Lne(this),void 0===e?",":e)}});var gce,yce,mce,bce=!gne((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wce=ooe("IE_PROTO"),Ece=Object,Sce=Ece.prototype,Cce=bce?Ece.getPrototypeOf:function(e){var t=hre(e);if(gre(t,wce))return t[wce];var n=t.constructor;return zne(n)&&t instanceof n?n.prototype:t instanceof Ece?Sce:null},Dce=Dre("iterator"),xce=!1;[].keys&&("next"in(mce=[].keys())?(yce=Cce(Cce(mce)))!==Object.prototype&&(gce=yce):xce=!0);var Oce=!$ne(gce)||gne((function(){var e={};return gce[Dce].call(e)!==e}));Oce&&(gce={}),zne(gce[Dce])||poe(gce,Dce,(function(){return this}));var Ace={IteratorPrototype:gce,BUGGY_SAFARI_ITERATORS:xce},kce=Ace.IteratorPrototype,Bce=function(){return this},Fce=Yre.PROPER,Tce=Yre.CONFIGURABLE,Pce=Ace.IteratorPrototype,_ce=Ace.BUGGY_SAFARI_ITERATORS,jce=Dre("iterator"),Nce="values",Ice=function(){return this},Rce=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Die(kce,{next:Dne(1,n)}),pue(e,r,!1),Vse[r]=Bce}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!_ce&&e&&e in p)return p[e];switch(e){case"keys":case Nce:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[jce]||p["@@iterator"]||o&&p[o],v=!_ce&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Cce(g.call(new e)))!==Object.prototype&&u.next&&(Cce(u)!==Pce&&(lue?lue(u,Pce):zne(u[jce])||poe(u,jce,Ice)),pue(u,f,!0)),Fce&&o===Nce&&h&&h.name!==Nce&&(Tce?Wre(p,"name",Nce):(d=!0,v=function(){return wne(h,this)})),o)if(s={values:l(Nce),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(_ce||d||!(c in p))&&poe(p,c,s[c]);else Voe({target:t,proto:!0,forced:_ce||d},s);return p[jce]!==v&&poe(p,jce,v,{name:o}),Vse[t]=v,s},Lce=function(e,t){return{value:e,done:t}},Mce=Vre.f,zce="Array Iterator",$ce=foe.set,Hce=foe.getterFor(zce),Uce=Rce(Array,"Array",(function(e,t){$ce(this,{type:zce,target:Lne(e),index:0,kind:t})}),(function(){var e=Hce(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Lce(void 0,!0);switch(e.kind){case"keys":return Lce(n,!1);case"values":return Lce(t[n],!1)}return Lce([n,t[n]],!1)}),"values"),Vce=Vse.Arguments=Vse.Array;if(kie("keys"),kie("values"),kie("entries"),yne&&"values"!==Vce.name)try{Mce(Vce,"name",{value:"values"})}catch(Jl){}var Wce=Dre("species"),Gce=Zne>=51||!gne((function(){var e=[];return(e.constructor={})[Wce]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),qce=Dre("species"),Kce=Array,Yce=Math.max;Voe({target:"Array",proto:!0,forced:!Gce},{slice:function(e,t){var n,r,o,i,a,u,s=Lne(this),c=Coe(s),l=woe(e,c),f=woe(void 0===t?c:t,c);if(Nie(s)&&(n=s.constructor,(Uie(n)&&(n===Kce||Nie(n.prototype))||$ne(n)&&null===(n=n[qce]))&&(n=void 0),n===Kce||void 0===n))return wue(s,l,f);for(r=new(void 0===n?Kce:n)(Yce(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],yne?Vre.f(i,a,Dne(0,u)):i[a]=u);return r.length=o,r}});var Xce=Yre.EXISTS,Zce=Function.prototype,Jce=kne(Zce.toString),Qce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ele=kne(Qce.exec);yne&&!Xce&&hue(Zce,"name",{configurable:!0,get:function(){try{return ele(Qce,Jce(this))[1]}catch(e){return""}}});var tle=_ae.charAt,nle="String Iterator",rle=foe.set,ole=foe.getterFor(nle);Rce(String,"String",(function(e){rle(this,{type:nle,string:Qoe(e),index:0})}),(function(){var e,t=ole(this),n=t.string,r=t.index;return r>=n.length?Lce(void 0,!0):(e=tle(n,r),t.index+=e.length,Lce(e,!1))}));var ile=!gne((function(){return Object.isExtensible(Object.preventExtensions({}))})),ale=function(e,t,n){for(var r in t)poe(e,r,t[r],n);return e},ule=Toe.f,sle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cle={f:function(e){return sle&&"Window"===Tne(e)?function(e){try{return ule(e)}catch(e){return wue(sle)}}(e):ule(Lne(e))}},lle=gne((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fle=Object.isExtensible,dle=gne((function(){fle(1)}))||lle?function(e){return!!$ne(e)&&(!lle||"ArrayBuffer"!==Tne(e))&&(!fle||fle(e))}:fle,ple=fne((function(e){var t=Vre.f,n=!1,r=wre("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Toe.f,t=kne([].splice),o={};o[r]=1,e(o).length&&(Toe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Voe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cle.f}))},fastKey:function(e,t){if(!$ne(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!gre(e,r)){if(!dle(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!gre(e,r)){if(!dle(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ile&&n&&dle(e)&&!gre(e,r)&&i(e),e}};ioe[r]=!0})),hle=ple.getWeakData,vle=foe.set,gle=foe.getterFor,yle=Yie.find,mle=Yie.findIndex,ble=kne([].splice),wle=0,Ele=function(e){return e.frozen||(e.frozen=new Sle)},Sle=function(){this.entries=[]},Cle=function(e,t){return yle(e.entries,(function(e){return e[0]===t}))};Sle.prototype={get:function(e){var t=Cle(this,e);if(t)return t[1]},has:function(e){return!!Cle(this,e)},set:function(e,t){var n=Cle(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mle(this.entries,(function(t){return t[0]===e}));return~t&&ble(this.entries,t,1),!!~t}};var Dle,xle={getConstructor:function(e,t,n,r){var o=e((function(e,o){yue(e,i),vle(e,{type:t,id:wle++,frozen:null}),Nne(o)||ece(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=gle(t),u=function(e,t,n){var r=a(e),o=hle(Rre(t),!0);return!0===o?Ele(r).set(t,n):o[r.id]=n,e};return ale(i,{delete:function(e){var t=a(this);if(!$ne(e))return!1;var n=hle(e);return!0===n?Ele(t).delete(e):n&&gre(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!$ne(e))return!1;var n=hle(e);return!0===n?Ele(t).has(e):n&&gre(n,t.id)}}),ale(i,n?{get:function(e){var t=a(this);if($ne(e)){var n=hle(e);if(!0===n)return Ele(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Ole=foe.enforce,Ale=Object,kle=Array.isArray,Ble=Ale.isExtensible,Fle=Ale.isFrozen,Tle=Ale.isSealed,Ple=Ale.freeze,_le=Ale.seal,jle=!vne.ActiveXObject&&"ActiveXObject"in vne,Nle=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ile=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=vne[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=kne(u[e]);poe(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!$ne(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!$ne(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!$ne(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Hoe(e,!zne(a)||!(o||u.forEach&&!gne((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ple.enable();else if(Hoe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=gne((function(){f.has(1)})),h=ice((function(e){new a(e)})),v=!o&&gne((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){yue(e,u);var n=function(e,t,n){var r,o;return lue&&zne(r=t.constructor)&&r!==n&&$ne(o=r.prototype)&&o!==n.prototype&&lue(e,o),e}(new a,e,s);return Nne(t)||ece(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,Voe({global:!0,constructor:!0,forced:s!==a},c),pue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Nle,xle),Rle=Ile.prototype,Lle=kne(Rle.set);if(noe)if(jle){Dle=xle.getConstructor(Nle,"WeakMap",!0),ple.enable();var Mle=kne(Rle.delete),zle=kne(Rle.has),$le=kne(Rle.get);ale(Rle,{delete:function(e){if($ne(e)&&!Ble(e)){var t=Ole(this);return t.frozen||(t.frozen=new Dle),Mle(this,e)||t.frozen.delete(e)}return Mle(this,e)},has:function(e){if($ne(e)&&!Ble(e)){var t=Ole(this);return t.frozen||(t.frozen=new Dle),zle(this,e)||t.frozen.has(e)}return zle(this,e)},get:function(e){if($ne(e)&&!Ble(e)){var t=Ole(this);return t.frozen||(t.frozen=new Dle),zle(this,e)?$le(this,e):t.frozen.get(e)}return $le(this,e)},set:function(e,t){if($ne(e)&&!Ble(e)){var n=Ole(this);n.frozen||(n.frozen=new Dle),zle(this,e)?Lle(this,e,t):n.frozen.set(e,t)}else Lle(this,e,t);return this}})}else ile&&gne((function(){var e=Ple([]);return Lle(new Ile,e,1),!Fle(e)}))&&ale(Rle,{set:function(e,t){var n;return kle(e)&&(Fle(e)?n=Ple:Tle(e)&&(n=_le)),Lle(this,e,t),n&&n(e),this}});var Hle={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ule=Fre("span").classList,Vle=Ule&&Ule.constructor&&Ule.constructor.prototype,Wle=Vle===Object.prototype?void 0:Vle,Gle=Dre("iterator"),qle=Uce.values,Kle=function(e,t){if(e){if(e[Gle]!==qle)try{Wre(e,Gle,qle)}catch(t){e[Gle]=qle}if(pue(e,t,!0),Hle[t])for(var n in Uce)if(e[n]!==Uce[n])try{Wre(e,n,Uce[n])}catch(t){e[n]=Uce[n]}}};for(var Yle in Hle)Kle(vne[Yle]&&vne[Yle].prototype,Yle);function Xle(e){return e.getMenuConfig("uploadVideo")}Kle(Wle,"DOMTokenList");var Zle=new WeakMap;function Jle(e,t){return une(this,void 0,void 0,(function(){var n,r,o,i;return sne(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Zle.get(e);if(null!=t)return t;var n=Xle(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=cj(ane(ane({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return fce(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,d=c.poster;fce(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Zle.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Qle=function(){function e(){this.title=Qj("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return fce(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Jh("body"),s=Jh('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;une(this,void 0,void 0,(function(){var o,i,a,u,s,c;return sne(this,(function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Xle(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return fce(e,t,n)}))]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,Jle(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rp.isCollapsed(t)||!!YF.getSelectedElems(e).some((function(t){var n=YF.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),efe=RegExp.prototype,tfe=Yre.PROPER,nfe="toString",rfe=RegExp.prototype,ofe=rfe[nfe],ife=gne((function(){return"/a/b"!==ofe.call({source:"a",flags:"b"})})),afe=tfe&&ofe.name!==nfe;function ufe(){return eue("w-e-insert-video")}(ife||afe)&&poe(rfe,nfe,(function(){var e=Rre(this),t=Qoe(e.source),n=Qoe(function(e){var t=e.flags;return void 0!==t||"flags"in efe||gre(e,"flags")||!Une(efe,e)?t:wne(rae,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var sfe=function(){function e(){this.title=Qj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ufe(),this.heightInputId=ufe(),this.buttonId=ufe()}return e.prototype.getSelectedVideoNode=function(e){return YF.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=cne(N_(Qj("videoModule.width"),n,"auto"),2),a=i[0],u=Jh(i[1]),s=cne(N_(Qj("videoModule.height"),r,"auto"),2),c=s[0],l=Jh(s[1]),f=cne(I_(o,Qj("videoModule.ok")),1)[0];if(null==this.$content){var d=Jh("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",c=u?u.toString():"auto";e.restoreSelection(),kp.setNodes(e,{width:s,height:c},{match:function(e){return YF.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(c),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),cfe={renderElems:[fie],elemsToHtml:[die],preParseHtml:[Tie],parseElemsHtml:[nae],menus:[{key:"insertVideo",factory:function(){return new pce},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Qle},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new sfe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=cne(e,2),o=t[0],i=t[1];return"video"===YF.getNodeType(o)&&YF.isLastNode(r,o)&&kp.insertNodes(r,YF.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Jj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Jj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var lfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ffe(e){var t={exports:{}};return e(t,t.exports),t.exports}var dfe,pfe,hfe=function(e){return e&&e.Math===Math&&e},vfe=hfe("object"==typeof globalThis&&globalThis)||hfe("object"==typeof window&&window)||hfe("object"==typeof self&&self)||hfe("object"==typeof lfe&&lfe)||hfe("object"==typeof lfe&&lfe)||function(){return this}()||Function("return this")(),gfe=function(e){try{return!!e()}catch(e){return!0}},yfe=!gfe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),mfe=!gfe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),bfe=Function.prototype.call,wfe=mfe?bfe.bind(bfe):function(){return bfe.apply(bfe,arguments)},Efe={}.propertyIsEnumerable,Sfe=Object.getOwnPropertyDescriptor,Cfe={f:Sfe&&!Efe.call({1:2},1)?function(e){var t=Sfe(this,e);return!!t&&t.enumerable}:Efe},Dfe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xfe=Function.prototype,Ofe=xfe.call,Afe=mfe&&xfe.bind.bind(Ofe,Ofe),kfe=mfe?Afe:function(e){return function(){return Ofe.apply(e,arguments)}},Bfe=kfe({}.toString),Ffe=kfe("".slice),Tfe=function(e){return Ffe(Bfe(e),8,-1)},Pfe=Object,_fe=kfe("".split),jfe=gfe((function(){return!Pfe("z").propertyIsEnumerable(0)}))?function(e){return"String"===Tfe(e)?_fe(e,""):Pfe(e)}:Pfe,Nfe=function(e){return null==e},Ife=TypeError,Rfe=function(e){if(Nfe(e))throw new Ife("Can't call method on "+e);return e},Lfe=function(e){return jfe(Rfe(e))},Mfe="object"==typeof document&&document.all,zfe=void 0===Mfe&&void 0!==Mfe?function(e){return"function"==typeof e||e===Mfe}:function(e){return"function"==typeof e},$fe=function(e){return"object"==typeof e?null!==e:zfe(e)},Hfe=function(e,t){return arguments.length<2?(n=vfe[e],zfe(n)?n:void 0):vfe[e]&&vfe[e][t];var n},Ufe=kfe({}.isPrototypeOf),Vfe=vfe.navigator,Wfe=Vfe&&Vfe.userAgent,Gfe=Wfe?String(Wfe):"",qfe=vfe.process,Kfe=vfe.Deno,Yfe=qfe&&qfe.versions||Kfe&&Kfe.version,Xfe=Yfe&&Yfe.v8;Xfe&&(pfe=(dfe=Xfe.split("."))[0]>0&&dfe[0]<4?1:+(dfe[0]+dfe[1])),!pfe&&Gfe&&(!(dfe=Gfe.match(/Edge\/(\d+)/))||dfe[1]>=74)&&(dfe=Gfe.match(/Chrome\/(\d+)/))&&(pfe=+dfe[1]);var Zfe=pfe,Jfe=vfe.String,Qfe=!!Object.getOwnPropertySymbols&&!gfe((function(){var e=Symbol("symbol detection");return!Jfe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Zfe&&Zfe<41})),ede=Qfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tde=Object,nde=ede?function(e){return"symbol"==typeof e}:function(e){var t=Hfe("Symbol");return zfe(t)&&Ufe(t.prototype,tde(e))},rde=String,ode=function(e){try{return rde(e)}catch(e){return"Object"}},ide=TypeError,ade=function(e){if(zfe(e))return e;throw new ide(ode(e)+" is not a function")},ude=function(e,t){var n=e[t];return Nfe(n)?void 0:ade(n)},sde=TypeError,cde=Object.defineProperty,lde=function(e,t){try{cde(vfe,e,{value:t,configurable:!0,writable:!0})}catch(n){vfe[e]=t}return t},fde=ffe((function(e){var t="__core-js_shared__",n=e.exports=vfe[t]||lde(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),dde=function(e,t){return fde[e]||(fde[e]=t||{})},pde=Object,hde=function(e){return pde(Rfe(e))},vde=kfe({}.hasOwnProperty),gde=Object.hasOwn||function(e,t){return vde(hde(e),t)},yde=0,mde=Math.random(),bde=kfe(1..toString),wde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bde(++yde+mde,36)},Ede=vfe.Symbol,Sde=dde("wks"),Cde=ede?Ede.for||Ede:Ede&&Ede.withoutSetter||wde,Dde=function(e){return gde(Sde,e)||(Sde[e]=Qfe&&gde(Ede,e)?Ede[e]:Cde("Symbol."+e)),Sde[e]},xde=TypeError,Ode=Dde("toPrimitive"),Ade=function(e){var t=function(e,t){if(!$fe(e)||nde(e))return e;var n,r=ude(e,Ode);if(r){if(void 0===t&&(t="default"),n=wfe(r,e,t),!$fe(n)||nde(n))return n;throw new xde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&zfe(n=e.toString)&&!$fe(r=wfe(n,e)))return r;if(zfe(n=e.valueOf)&&!$fe(r=wfe(n,e)))return r;if("string"!==t&&zfe(n=e.toString)&&!$fe(r=wfe(n,e)))return r;throw new sde("Can't convert object to primitive value")}(e,t)}(e,"string");return nde(t)?t:t+""},kde=vfe.document,Bde=$fe(kde)&&$fe(kde.createElement),Fde=function(e){return Bde?kde.createElement(e):{}},Tde=!yfe&&!gfe((function(){return 7!==Object.defineProperty(Fde("div"),"a",{get:function(){return 7}}).a})),Pde=Object.getOwnPropertyDescriptor,_de={f:yfe?Pde:function(e,t){if(e=Lfe(e),t=Ade(t),Tde)try{return Pde(e,t)}catch(e){}if(gde(e,t))return Dfe(!wfe(Cfe.f,e,t),e[t])}},jde=yfe&&gfe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Nde=String,Ide=TypeError,Rde=function(e){if($fe(e))return e;throw new Ide(Nde(e)+" is not an object")},Lde=TypeError,Mde=Object.defineProperty,zde=Object.getOwnPropertyDescriptor,$de="enumerable",Hde="configurable",Ude="writable",Vde={f:yfe?jde?function(e,t,n){if(Rde(e),t=Ade(t),Rde(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ude in n&&!n[Ude]){var r=zde(e,t);r&&r[Ude]&&(e[t]=n.value,n={configurable:Hde in n?n[Hde]:r[Hde],enumerable:$de in n?n[$de]:r[$de],writable:!1})}return Mde(e,t,n)}:Mde:function(e,t,n){if(Rde(e),t=Ade(t),Rde(n),Tde)try{return Mde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Lde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wde=yfe?function(e,t,n){return Vde.f(e,t,Dfe(1,n))}:function(e,t,n){return e[t]=n,e},Gde=Function.prototype,qde=yfe&&Object.getOwnPropertyDescriptor,Kde=gde(Gde,"name"),Yde={EXISTS:Kde,PROPER:Kde&&"something"===function(){}.name,CONFIGURABLE:Kde&&(!yfe||yfe&&qde(Gde,"name").configurable)},Xde=kfe(Function.toString);zfe(fde.inspectSource)||(fde.inspectSource=function(e){return Xde(e)});var Zde,Jde,Qde,epe=fde.inspectSource,tpe=vfe.WeakMap,npe=zfe(tpe)&&/native code/.test(String(tpe)),rpe=dde("keys"),ope=function(e){return rpe[e]||(rpe[e]=wde(e))},ipe={},ape="Object already initialized",upe=vfe.TypeError,spe=vfe.WeakMap;if(npe||fde.state){var cpe=fde.state||(fde.state=new spe);cpe.get=cpe.get,cpe.has=cpe.has,cpe.set=cpe.set,Zde=function(e,t){if(cpe.has(e))throw new upe(ape);return t.facade=e,cpe.set(e,t),t},Jde=function(e){return cpe.get(e)||{}},Qde=function(e){return cpe.has(e)}}else{var lpe=ope("state");ipe[lpe]=!0,Zde=function(e,t){if(gde(e,lpe))throw new upe(ape);return t.facade=e,Wde(e,lpe,t),t},Jde=function(e){return gde(e,lpe)?e[lpe]:{}},Qde=function(e){return gde(e,lpe)}}var fpe={set:Zde,get:Jde,has:Qde,enforce:function(e){return Qde(e)?Jde(e):Zde(e,{})},getterFor:function(e){return function(t){var n;if(!$fe(t)||(n=Jde(t)).type!==e)throw new upe("Incompatible receiver, "+e+" required");return n}}},dpe=ffe((function(e){var t=Yde.CONFIGURABLE,n=fpe.enforce,r=fpe.get,o=String,i=Object.defineProperty,a=kfe("".slice),u=kfe("".replace),s=kfe([].join),c=yfe&&!gfe((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!gde(e,"name")||t&&e.name!==r)&&(yfe?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&gde(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&gde(f,"constructor")&&f.constructor?yfe&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return gde(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return zfe(this)&&r(this).source||epe(this)}),"toString")})),ppe=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(zfe(n)&&dpe(n,i,r),r.global)o?e[t]=n:lde(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Vde.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},hpe=Math.ceil,vpe=Math.floor,gpe=Math.trunc||function(e){var t=+e;return(t>0?vpe:hpe)(t)},ype=function(e){var t=+e;return t!=t||0===t?0:gpe(t)},mpe=Math.max,bpe=Math.min,wpe=function(e,t){var n=ype(e);return n<0?mpe(n+t,0):bpe(n,t)},Epe=Math.min,Spe=function(e){return t=e.length,(n=ype(t))>0?Epe(n,9007199254740991):0;var t,n},Cpe=function(e){return function(t,n,r){var o=Lfe(t),i=Spe(o);if(0===i)return!e&&-1;var a,u=wpe(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}(!1),Dpe=kfe([].push),xpe=function(e,t){var n,r=Lfe(e),o=0,i=[];for(n in r)!gde(ipe,n)&&gde(r,n)&&Dpe(i,n);for(;t.length>o;)gde(r,n=t[o++])&&(~Cpe(i,n)||Dpe(i,n));return i},Ope=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ape=Ope.concat("length","prototype"),kpe={f:Object.getOwnPropertyNames||function(e){return xpe(e,Ape)}},Bpe={f:Object.getOwnPropertySymbols},Fpe=kfe([].concat),Tpe=Hfe("Reflect","ownKeys")||function(e){var t=kpe.f(Rde(e)),n=Bpe.f;return n?Fpe(t,n(e)):t},Ppe=function(e,t,n){for(var r=Tpe(t),o=Vde.f,i=_de.f,a=0;a<r.length;a++){var u=r[a];gde(e,u)||n&&gde(n,u)||o(e,u,i(t,u))}},_pe=/#|\.prototype\./,jpe=function(e,t){var n=Ipe[Npe(e)];return n===Lpe||n!==Rpe&&(zfe(t)?gfe(t):!!t)},Npe=jpe.normalize=function(e){return String(e).replace(_pe,".").toLowerCase()},Ipe=jpe.data={},Rpe=jpe.NATIVE="N",Lpe=jpe.POLYFILL="P",Mpe=jpe,zpe=_de.f,$pe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?vfe:c?vfe[u]||lde(u,{}):vfe[u]&&vfe[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=zpe(n,r))&&a.value:n[r],!Mpe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ppe(i,o)}(e.sham||o&&o.sham)&&Wde(i,"sham",!0),ppe(n,r,i,e)}},Hpe=Array.isArray||function(e){return"Array"===Tfe(e)},Upe={};Upe[Dde("toStringTag")]="z";var Vpe="[object z]"===String(Upe),Wpe=Dde("toStringTag"),Gpe=Object,qpe="Arguments"===Tfe(function(){return arguments}()),Kpe=Vpe?Tfe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Gpe(e),Wpe))?n:qpe?Tfe(t):"Object"===(r=Tfe(t))&&zfe(t.callee)?"Arguments":r},Ype=function(){},Xpe=Hfe("Reflect","construct"),Zpe=/^\s*(?:class|function)\b/,Jpe=kfe(Zpe.exec),Qpe=!Zpe.test(Ype),ehe=function(e){if(!zfe(e))return!1;try{return Xpe(Ype,[],e),!0}catch(e){return!1}},the=function(e){if(!zfe(e))return!1;switch(Kpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qpe||!!Jpe(Zpe,epe(e))}catch(e){return!0}};the.sham=!0;var nhe=!Xpe||gfe((function(){var e;return ehe(ehe.call)||!ehe(Object)||!ehe((function(){e=!0}))||e}))?the:ehe,rhe=Dde("species"),ohe=kfe([].slice),ihe=Zfe>=51||!gfe((function(){var e=[];return(e.constructor={})[rhe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),ahe=Dde("species"),uhe=Array,she=Math.max;$pe({target:"Array",proto:!0,forced:!ihe},{slice:function(e,t){var n,r,o,i,a,u,s=Lfe(this),c=Spe(s),l=wpe(e,c),f=wpe(void 0===t?c:t,c);if(Hpe(s)&&(n=s.constructor,(nhe(n)&&(n===uhe||Hpe(n.prototype))||$fe(n)&&null===(n=n[ahe]))&&(n=void 0),n===uhe||void 0===n))return ohe(s,l,f);for(r=new(void 0===n?uhe:n)(she(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],yfe?Vde.f(i,a,Dfe(0,u)):i[a]=u);return r.length=o,r}});var che=Vpe?{}.toString:function(){return"[object "+Kpe(this)+"]"};Vpe||ppe(Object.prototype,"toString",che,{unsafe:!0})
|
112
|
+
/*! *****************************************************************************
|
113
|
+
Copyright (c) Microsoft Corporation.
|
114
|
+
|
115
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
116
|
+
purpose with or without fee is hereby granted.
|
117
|
+
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
119
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
120
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
121
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
122
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
123
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
124
|
+
PERFORMANCE OF THIS SOFTWARE.
|
125
|
+
***************************************************************************** */;var lhe=function(){return lhe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lhe.apply(this,arguments)};function fhe(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function dhe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var phe,hhe=Object.keys||function(e){return xpe(e,Ope)},vhe=yfe&&!jde?Object.defineProperties:function(e,t){Rde(e);for(var n,r=Lfe(t),o=hhe(t),i=o.length,a=0;i>a;)Vde.f(e,n=o[a++],r[n]);return e},ghe={f:vhe},yhe=Hfe("document","documentElement"),mhe="prototype",bhe="script",whe=ope("IE_PROTO"),Ehe=function(){},She=function(e){return"<script>"+e+"</"+bhe+">"},Che=function(e){e.write(She("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dhe=function(){try{phe=new ActiveXObject("htmlfile")}catch(e){}var e,t;Dhe="undefined"!=typeof document?document.domain&&phe?Che(phe):("javascript:",(t=Fde("iframe")).style.display="none",yhe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(She("document.F=Object")),e.close(),e.F):Che(phe);for(var n=Ope.length;n--;)delete Dhe[mhe][Ope[n]];return Dhe()};ipe[whe]=!0;var xhe=Object.create||function(e,t){var n;return null!==e?(Ehe[mhe]=Rde(e),n=new Ehe,Ehe[mhe]=null,n[whe]=e):n=Dhe(),void 0===t?n:ghe.f(n,t)},Ohe=Vde.f,Ahe=Dde("unscopables"),khe=Array.prototype;void 0===khe[Ahe]&&Ohe(khe,Ahe,{configurable:!0,value:xhe(null)});var Bhe,Fhe,The,Phe=function(e){khe[Ahe][e]=!0},_he={},jhe=!gfe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Nhe=ope("IE_PROTO"),Ihe=Object,Rhe=Ihe.prototype,Lhe=jhe?Ihe.getPrototypeOf:function(e){var t=hde(e);if(gde(t,Nhe))return t[Nhe];var n=t.constructor;return zfe(n)&&t instanceof n?n.prototype:t instanceof Ihe?Rhe:null},Mhe=Dde("iterator"),zhe=!1;[].keys&&("next"in(The=[].keys())?(Fhe=Lhe(Lhe(The)))!==Object.prototype&&(Bhe=Fhe):zhe=!0);var $he=!$fe(Bhe)||gfe((function(){var e={};return Bhe[Mhe].call(e)!==e}));$he&&(Bhe={}),zfe(Bhe[Mhe])||ppe(Bhe,Mhe,(function(){return this}));var Hhe={IteratorPrototype:Bhe,BUGGY_SAFARI_ITERATORS:zhe},Uhe=Vde.f,Vhe=Dde("toStringTag"),Whe=function(e,t,n){e&&!n&&(e=e.prototype),e&&!gde(e,Vhe)&&Uhe(e,Vhe,{configurable:!0,value:t})},Ghe=Hhe.IteratorPrototype,qhe=function(){return this},Khe=String,Yhe=TypeError,Xhe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return kfe(ade(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Rfe(n),function(e){if(function(e){return $fe(e)||null===e}(e))return e;throw new Yhe("Can't set "+Khe(e)+" as a prototype")}(r),$fe(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),Zhe=Yde.PROPER,Jhe=Yde.CONFIGURABLE,Qhe=Hhe.IteratorPrototype,eve=Hhe.BUGGY_SAFARI_ITERATORS,tve=Dde("iterator"),nve="values",rve=function(){return this},ove=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=xhe(Ghe,{next:Dfe(1,n)}),Whe(e,r,!1),_he[r]=qhe}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!eve&&e&&e in p)return p[e];switch(e){case"keys":case nve:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[tve]||p["@@iterator"]||o&&p[o],v=!eve&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Lhe(g.call(new e)))!==Object.prototype&&u.next&&(Lhe(u)!==Qhe&&(Xhe?Xhe(u,Qhe):zfe(u[tve])||ppe(u,tve,rve)),Whe(u,f,!0)),Zhe&&o===nve&&h&&h.name!==nve&&(Jhe?Wde(p,"name",nve):(d=!0,v=function(){return wfe(h,this)})),o)if(s={values:l(nve),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(eve||d||!(c in p))&&ppe(p,c,s[c]);else $pe({target:t,proto:!0,forced:eve||d},s);return p[tve]!==v&&ppe(p,tve,v,{name:o}),_he[t]=v,s},ive=function(e,t){return{value:e,done:t}},ave=Vde.f,uve="Array Iterator",sve=fpe.set,cve=fpe.getterFor(uve),lve=ove(Array,"Array",(function(e,t){sve(this,{type:uve,target:Lfe(e),index:0,kind:t})}),(function(){var e=cve(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,ive(void 0,!0);switch(e.kind){case"keys":return ive(n,!1);case"values":return ive(t[n],!1)}return ive([n,t[n]],!1)}),"values"),fve=_he.Arguments=_he.Array;if(Phe("keys"),Phe("values"),Phe("entries"),yfe&&"values"!==fve.name)try{ave(fve,"name",{value:"values"})}catch(Jl){}var dve=function(e,t,n){return n.get&&dpe(n.get,t,{getter:!0}),n.set&&dpe(n.set,t,{setter:!0}),Vde.f(e,t,n)},pve=Yde.EXISTS,hve=Function.prototype,vve=kfe(hve.toString),gve=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yve=kfe(gve.exec);yfe&&!pve&&dve(hve,"name",{configurable:!0,get:function(){try{return yve(gve,vve(this))[1]}catch(e){return""}}});var mve,bve,wve,Eve,Sve=function(e){return Gfe.slice(0,e.length)===e},Cve=Sve("Bun/")?"BUN":Sve("Cloudflare-Workers")?"CLOUDFLARE":Sve("Deno/")?"DENO":Sve("Node.js/")?"NODE":vfe.Bun&&"string"==typeof Bun.version?"BUN":vfe.Deno&&"object"==typeof Deno.version?"DENO":"process"===Tfe(vfe.process)?"NODE":vfe.window&&vfe.document?"BROWSER":"REST",Dve="NODE"===Cve,xve=Dde("species"),Ove=TypeError,Ave=function(e,t){if(Ufe(t,e))return e;throw new Ove("Incorrect invocation")},kve=TypeError,Bve=Dde("species"),Fve=Function.prototype,Tve=Fve.apply,Pve=Fve.call,_ve="object"==typeof Reflect&&Reflect.apply||(mfe?Pve.bind(Tve):function(){return Pve.apply(Tve,arguments)}),jve=function(e){if("Function"===Tfe(e))return kfe(e)},Nve=jve(jve.bind),Ive=function(e,t){return ade(e),void 0===t?e:mfe?Nve(e,t):function(){return e.apply(t,arguments)}},Rve=TypeError,Lve=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gfe),Mve=vfe.setImmediate,zve=vfe.clearImmediate,$ve=vfe.process,Hve=vfe.Dispatch,Uve=vfe.Function,Vve=vfe.MessageChannel,Wve=vfe.String,Gve=0,qve={},Kve="onreadystatechange";gfe((function(){mve=vfe.location}));var Yve=function(e){if(gde(qve,e)){var t=qve[e];delete qve[e],t()}},Xve=function(e){return function(){Yve(e)}},Zve=function(e){Yve(e.data)},Jve=function(e){vfe.postMessage(Wve(e),mve.protocol+"//"+mve.host)};Mve&&zve||(Mve=function(e){!function(e){if(e<1)throw new Rve("Not enough arguments")}(arguments.length);var t=zfe(e)?e:Uve(e),n=ohe(arguments,1);return qve[++Gve]=function(){_ve(t,void 0,n)},bve(Gve),Gve},zve=function(e){delete qve[e]},Dve?bve=function(e){$ve.nextTick(Xve(e))}:Hve&&Hve.now?bve=function(e){Hve.now(Xve(e))}:Vve&&!Lve?(Eve=(wve=new Vve).port2,wve.port1.onmessage=Zve,bve=Ive(Eve.postMessage,Eve)):vfe.addEventListener&&zfe(vfe.postMessage)&&!vfe.importScripts&&mve&&"file:"!==mve.protocol&&!gfe(Jve)?(bve=Jve,vfe.addEventListener("message",Zve,!1)):bve=Kve in Fde("script")?function(e){yhe.appendChild(Fde("script"))[Kve]=function(){yhe.removeChild(this),Yve(e)}}:function(e){setTimeout(Xve(e),0)});var Qve={set:Mve,clear:zve},ege=Object.getOwnPropertyDescriptor,tge=function(){this.head=null,this.tail=null};tge.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var nge,rge,oge,ige,age,uge=tge,sge=/ipad|iphone|ipod/i.test(Gfe)&&"undefined"!=typeof Pebble,cge=/web0s(?!.*chrome)/i.test(Gfe),lge=Qve.set,fge=vfe.MutationObserver||vfe.WebKitMutationObserver,dge=vfe.document,pge=vfe.process,hge=vfe.Promise,vge=function(e){if(!yfe)return vfe[e];var t=ege(vfe,e);return t&&t.value}("queueMicrotask");if(!vge){var gge=new uge,yge=function(){var e,t;for(Dve&&(e=pge.domain)&&e.exit();t=gge.get();)try{t()}catch(e){throw gge.head&&nge(),e}e&&e.enter()};Lve||Dve||cge||!fge||!dge?!sge&&hge&&hge.resolve?((ige=hge.resolve(void 0)).constructor=hge,age=Ive(ige.then,ige),nge=function(){age(yge)}):Dve?nge=function(){pge.nextTick(yge)}:(lge=Ive(lge,vfe),nge=function(){lge(yge)}):(rge=!0,oge=dge.createTextNode(""),new fge(yge).observe(oge,{characterData:!0}),nge=function(){oge.data=rge=!rge}),vge=function(e){gge.head||nge(),gge.add(e)}}var mge=vge,bge=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},wge=vfe.Promise;wge&&wge.prototype;var Ege,Sge,Cge,Dge,xge=Dde("species"),Oge=!1,Age=zfe(vfe.PromiseRejectionEvent),kge=Mpe("Promise",(function(){var e=epe(wge),t=e!==String(wge);if(!t&&66===Zfe)return!0;if(!Zfe||Zfe<51||!/native code/.test(e)){var n=new wge((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[xge]=r,!(Oge=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==Cve&&"DENO"!==Cve||Age)})),Bge={CONSTRUCTOR:kge,REJECTION_EVENT:Age,SUBCLASSING:Oge},Fge=TypeError,Tge=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Fge("Bad Promise constructor");t=e,n=r})),this.resolve=ade(t),this.reject=ade(n)},Pge={f:function(e){return new Tge(e)}},_ge=Qve.set,jge="Promise",Nge=Bge.CONSTRUCTOR,Ige=Bge.REJECTION_EVENT,Rge=Bge.SUBCLASSING,Lge=fpe.getterFor(jge),Mge=fpe.set,zge=wge&&wge.prototype,$ge=wge,Hge=zge,Uge=vfe.TypeError,Vge=vfe.document,Wge=vfe.process,Gge=Pge.f,qge=Gge,Kge=!!(Vge&&Vge.createEvent&&vfe.dispatchEvent),Yge="unhandledrejection",Xge=function(e){var t;return!(!$fe(e)||!zfe(t=e.then))&&t},Zge=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&nye(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new Uge("Promise-chain cycle")):(r=Xge(n))?wfe(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},Jge=function(e,t){e.notified||(e.notified=!0,mge((function(){for(var n,r=e.reactions;n=r.get();)Zge(n,e);e.notified=!1,t&&!e.rejection&&eye(e)})))},Qge=function(e,t,n){var r,o;Kge?((r=Vge.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),vfe.dispatchEvent(r)):r={promise:t,reason:n},!Ige&&(o=vfe["on"+e])?o(r):e===Yge&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},eye=function(e){wfe(_ge,vfe,(function(){var t,n=e.facade,r=e.value;if(tye(e)&&(t=bge((function(){Dve?Wge.emit("unhandledRejection",r,n):Qge(Yge,n,r)})),e.rejection=Dve||tye(e)?2:1,t.error))throw t.value}))},tye=function(e){return 1!==e.rejection&&!e.parent},nye=function(e){wfe(_ge,vfe,(function(){var t=e.facade;Dve?Wge.emit("rejectionHandled",t):Qge("rejectionhandled",t,e.value)}))},rye=function(e,t,n){return function(r){e(t,r,n)}},oye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Jge(e,!0))},iye=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Uge("Promise can't be resolved itself");var r=Xge(t);r?mge((function(){var n={done:!1};try{wfe(r,t,rye(iye,n,e),rye(oye,n,e))}catch(t){oye(n,t,e)}})):(e.value=t,e.state=1,Jge(e,!1))}catch(t){oye({done:!1},t,e)}}};if(Nge&&(Hge=($ge=function(e){Ave(this,Hge),ade(e),wfe(Ege,this);var t=Lge(this);try{e(rye(iye,t),rye(oye,t))}catch(e){oye(t,e)}}).prototype,(Ege=function(e){Mge(this,{type:jge,done:!1,notified:!1,parent:!1,reactions:new uge,rejection:!1,state:0,value:null})}).prototype=ppe(Hge,"then",(function(e,t){var n=Lge(this),r=Gge(function(e,t){var n,r=Rde(e).constructor;return void 0===r||Nfe(n=Rde(r)[Bve])?t:function(e){if(nhe(e))return e;throw new kve(ode(e)+" is not a constructor")}(n)}(this,$ge));return n.parent=!0,r.ok=!zfe(e)||e,r.fail=zfe(t)&&t,r.domain=Dve?Wge.domain:void 0,0===n.state?n.reactions.add(r):mge((function(){Zge(r,n)})),r.promise})),Sge=function(){var e=new Ege,t=Lge(e);this.promise=e,this.resolve=rye(iye,t),this.reject=rye(oye,t)},Pge.f=Gge=function(e){return e===$ge||void 0===e?new Sge(e):qge(e)},zfe(wge)&&zge!==Object.prototype)){Cge=zge.then,Rge||ppe(zge,"then",(function(e,t){var n=this;return new $ge((function(e,t){wfe(Cge,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete zge.constructor}catch(Jl){}Xhe&&Xhe(zge,Hge)}$pe({global:!0,constructor:!0,wrap:!0,forced:Nge},{Promise:$ge}),Whe($ge,jge,!1),Dge=Hfe(jge),yfe&&Dge&&!Dge[xve]&&dve(Dge,xve,{configurable:!0,get:function(){return this}});var aye=Dde("iterator"),uye=Array.prototype,sye=Dde("iterator"),cye=function(e){if(!Nfe(e))return ude(e,sye)||ude(e,"@@iterator")||_he[Kpe(e)]},lye=TypeError,fye=function(e,t,n){var r,o;Rde(e);try{if(!(r=ude(e,"return"))){if("throw"===t)throw n;return n}r=wfe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Rde(r),n},dye=TypeError,pye=function(e,t){this.stopped=e,this.result=t},hye=pye.prototype,vye=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Ive(t,f),y=function(e){return r&&fye(r,"normal",e),new pye(!0,e)},m=function(e){return d?(Rde(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=cye(e)))throw new dye(ode(e)+" is not iterable");if(void 0!==(l=o)&&(_he.Array===l||uye[aye]===l)){for(i=0,a=Spe(e);a>i;i++)if((u=m(e[i]))&&Ufe(hye,u))return u;return new pye(!1)}r=function(e,t){var n=arguments.length<2?cye(e):t;if(ade(n))return Rde(wfe(n,e));throw new lye(ode(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=wfe(s,r)).done;){try{u=m(c.value)}catch(e){fye(r,"throw",e)}if("object"==typeof u&&u&&Ufe(hye,u))return u}return new pye(!1)},gye=Dde("iterator"),yye=!1;try{var mye=0,bye={next:function(){return{done:!!mye++}},return:function(){yye=!0}};bye[gye]=function(){return this},Array.from(bye,(function(){throw 2}))}catch(Jl){}var wye=function(e,t){try{if(!t&&!yye)return!1}catch(e){return!1}var n=!1;try{var r={};r[gye]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Eye=Bge.CONSTRUCTOR||!wye((function(e){wge.all(e).then(void 0,(function(){}))}));$pe({target:"Promise",stat:!0,forced:Eye},{all:function(e){var t=this,n=Pge.f(t),r=n.resolve,o=n.reject,i=bge((function(){var n=ade(t.resolve),i=[],a=0,u=1;vye(e,(function(e){var s=a++,c=!1;u++,wfe(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Sye=Bge.CONSTRUCTOR,Cye=wge&&wge.prototype;if($pe({target:"Promise",proto:!0,forced:Sye,real:!0},{catch:function(e){return this.then(void 0,e)}}),zfe(wge)){var Dye=Hfe("Promise").prototype.catch;Cye.catch!==Dye&&ppe(Cye,"catch",Dye,{unsafe:!0})}$pe({target:"Promise",stat:!0,forced:Eye},{race:function(e){var t=this,n=Pge.f(t),r=n.reject,o=bge((function(){var o=ade(t.resolve);vye(e,(function(e){wfe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$pe({target:"Promise",stat:!0,forced:Bge.CONSTRUCTOR},{reject:function(e){var t=Pge.f(this);return(0,t.reject)(e),t.promise}});var xye=Bge.CONSTRUCTOR;Hfe("Promise"),$pe({target:"Promise",stat:!0,forced:xye},{resolve:function(e){return function(e,t){if(Rde(e),$fe(t)&&t.constructor===e)return t;var n=Pge.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var Oye=String,Aye=function(e){if("Symbol"===Kpe(e))throw new TypeError("Cannot convert a Symbol value to a string");return Oye(e)},kye=function(){var e=Rde(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Bye=RegExp.prototype,Fye=Yde.PROPER,Tye="toString",Pye=RegExp.prototype,_ye=Pye[Tye],jye=gfe((function(){return"/a/b"!==_ye.call({source:"a",flags:"b"})})),Nye=Fye&&_ye.name!==Tye;(jye||Nye)&&ppe(Pye,Tye,(function(){var e=Rde(this),t=Aye(e.source),n=Aye(function(e){var t=e.flags;return void 0!==t||"flags"in Bye||gde(e,"flags")||!Ufe(Bye,e)?t:wfe(kye,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var Iye=kfe("".charAt),Rye=kfe("".charCodeAt),Lye=kfe("".slice),Mye=function(e){return function(t,n){var r,o,i=Aye(Rfe(t)),a=ype(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Rye(i,a))<55296||r>56319||a+1===u||(o=Rye(i,a+1))<56320||o>57343?e?Iye(i,a):r:e?Lye(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),zye="String Iterator",$ye=fpe.set,Hye=fpe.getterFor(zye);ove(String,"String",(function(e){$ye(this,{type:zye,string:Aye(e),index:0})}),(function(){var e,t=Hye(this),n=t.string,r=t.index;return r>=n.length?ive(void 0,!0):(e=Mye(n,r),t.index+=e.length,ive(e,!1))}));var Uye=!gfe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vye=function(e,t,n){for(var r in t)ppe(e,r,t[r],n);return e},Wye=kpe.f,Gye="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qye={f:function(e){return Gye&&"Window"===Tfe(e)?function(e){try{return Wye(e)}catch(e){return ohe(Gye)}}(e):Wye(Lfe(e))}},Kye=gfe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Yye=Object.isExtensible,Xye=gfe((function(){Yye(1)}))||Kye?function(e){return!!$fe(e)&&(!Kye||"ArrayBuffer"!==Tfe(e))&&(!Yye||Yye(e))}:Yye,Zye=ffe((function(e){var t=Vde.f,n=!1,r=wde("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=kpe.f,t=kfe([].splice),o={};o[r]=1,e(o).length&&(kpe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},$pe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qye.f}))},fastKey:function(e,t){if(!$fe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!gde(e,r)){if(!Xye(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!gde(e,r)){if(!Xye(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Uye&&n&&Xye(e)&&!gde(e,r)&&i(e),e}};ipe[r]=!0})),Jye=Dde("species"),Qye=Array,eme=function(e,t){return new(function(e){var t;return Hpe(e)&&(t=e.constructor,(nhe(t)&&(t===Qye||Hpe(t.prototype))||$fe(t)&&null===(t=t[Jye]))&&(t=void 0)),void 0===t?Qye:t}(e))(0===t?0:t)},tme=kfe([].push),nme=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=hde(s),v=jfe(h),g=Spe(v),y=Ive(c,l),m=0,b=f||eme,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tme(w,d)}else switch(e){case 4:return!1;case 7:tme(w,d)}return i?-1:r||o?o:w}},rme={forEach:nme(0),map:nme(1),filter:nme(2),some:nme(3),every:nme(4),find:nme(5),findIndex:nme(6),filterReject:nme(7)},ome=Zye.getWeakData,ime=fpe.set,ame=fpe.getterFor,ume=rme.find,sme=rme.findIndex,cme=kfe([].splice),lme=0,fme=function(e){return e.frozen||(e.frozen=new dme)},dme=function(){this.entries=[]},pme=function(e,t){return ume(e.entries,(function(e){return e[0]===t}))};dme.prototype={get:function(e){var t=pme(this,e);if(t)return t[1]},has:function(e){return!!pme(this,e)},set:function(e,t){var n=pme(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=sme(this.entries,(function(t){return t[0]===e}));return~t&&cme(this.entries,t,1),!!~t}};var hme,vme={getConstructor:function(e,t,n,r){var o=e((function(e,o){Ave(e,i),ime(e,{type:t,id:lme++,frozen:null}),Nfe(o)||vye(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=ame(t),u=function(e,t,n){var r=a(e),o=ome(Rde(t),!0);return!0===o?fme(r).set(t,n):o[r.id]=n,e};return Vye(i,{delete:function(e){var t=a(this);if(!$fe(e))return!1;var n=ome(e);return!0===n?fme(t).delete(e):n&&gde(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!$fe(e))return!1;var n=ome(e);return!0===n?fme(t).has(e):n&&gde(n,t.id)}}),Vye(i,n?{get:function(e){var t=a(this);if($fe(e)){var n=ome(e);if(!0===n)return fme(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},gme=fpe.enforce,yme=Object,mme=Array.isArray,bme=yme.isExtensible,wme=yme.isFrozen,Eme=yme.isSealed,Sme=yme.freeze,Cme=yme.seal,Dme=!vfe.ActiveXObject&&"ActiveXObject"in vfe,xme=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ome=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=vfe[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=kfe(u[e]);ppe(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!$fe(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!$fe(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!$fe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Mpe(e,!zfe(a)||!(o||u.forEach&&!gfe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Zye.enable();else if(Mpe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=gfe((function(){f.has(1)})),h=wye((function(e){new a(e)})),v=!o&&gfe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Ave(e,u);var n=function(e,t,n){var r,o;return Xhe&&zfe(r=t.constructor)&&r!==n&&$fe(o=r.prototype)&&o!==n.prototype&&Xhe(e,o),e}(new a,e,s);return Nfe(t)||vye(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,$pe({global:!0,constructor:!0,forced:s!==a},c),Whe(s,e),o||n.setStrong(s,e,r),s}("WeakMap",xme,vme),Ame=Ome.prototype,kme=kfe(Ame.set);if(npe)if(Dme){hme=vme.getConstructor(xme,"WeakMap",!0),Zye.enable();var Bme=kfe(Ame.delete),Fme=kfe(Ame.has),Tme=kfe(Ame.get);Vye(Ame,{delete:function(e){if($fe(e)&&!bme(e)){var t=gme(this);return t.frozen||(t.frozen=new hme),Bme(this,e)||t.frozen.delete(e)}return Bme(this,e)},has:function(e){if($fe(e)&&!bme(e)){var t=gme(this);return t.frozen||(t.frozen=new hme),Fme(this,e)||t.frozen.has(e)}return Fme(this,e)},get:function(e){if($fe(e)&&!bme(e)){var t=gme(this);return t.frozen||(t.frozen=new hme),Fme(this,e)?Tme(this,e):t.frozen.get(e)}return Tme(this,e)},set:function(e,t){if($fe(e)&&!bme(e)){var n=gme(this);n.frozen||(n.frozen=new hme),Fme(this,e)?kme(this,e,t):n.frozen.set(e,t)}else kme(this,e,t);return this}})}else Uye&&gfe((function(){var e=Sme([]);return kme(new Ome,e,1),!wme(e)}))&&Vye(Ame,{set:function(e,t){var n;return mme(e)&&(wme(e)?n=Sme:Eme(e)&&(n=Cme)),kme(this,e,t),n&&n(e),this}});var Pme={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_me=Fde("span").classList,jme=_me&&_me.constructor&&_me.constructor.prototype,Nme=jme===Object.prototype?void 0:jme,Ime=function(e,t){var n=[][e];return!!n&&gfe((function(){n.call(null,t||function(){return 1},1)}))},Rme=rme.forEach,Lme=Ime("forEach")?[].forEach:function(e){return Rme(this,e,arguments.length>1?arguments[1]:void 0)},Mme=function(e){if(e&&e.forEach!==Lme)try{Wde(e,"forEach",Lme)}catch(t){e.forEach=Lme}};for(var zme in Pme)Pme[zme]&&Mme(vfe[zme]&&vfe[zme].prototype);Mme(Nme);var $me=Dde("iterator"),Hme=lve.values,Ume=function(e,t){if(e){if(e[$me]!==Hme)try{Wde(e,$me,Hme)}catch(t){e[$me]=Hme}if(Whe(e,t,!0),Pme[t])for(var n in lve)if(e[n]!==lve[n])try{Wde(e,n,lve[n])}catch(t){e[n]=lve[n]}}};for(var Vme in Pme)Ume(vfe[Vme]&&vfe[Vme].prototype,Vme);Ume(Nme,"DOMTokenList");var Wme=new WeakMap;function Gme(e){return e.getMenuConfig("uploadImage")}function qme(e,t){return fhe(this,void 0,void 0,(function(){return dhe(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;FH(e,i,t.name,a),n("ok")}}}))]}))}))}function Kme(e,t){return fhe(this,void 0,void 0,(function(){var n,r,o,i;return dhe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Wme.get(e);if(null!=t)return t;var n=Gme(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=cj(lhe(lhe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return FH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;FH(e,r,i,void 0===a?"":a)}));else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;FH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Wme.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Yme(e,t){var n,r;return fhe(this,void 0,void 0,(function(){var o,i,a,u,s,c,l,f,d;return dhe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Gme(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(c=p.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,qme(e,l)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(l,(function(t,n,r){return FH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Kme(e,l)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),c&&!c.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Xme=kfe([].join),Zme=jfe!==Object||!Ime("join",",");$pe({target:"Array",proto:!0,forced:Zme},{join:function(e){return Xme(Lfe(this),void 0===e?",":e)}});var Jme,Qme,ebe=vfe.RegExp,tbe=gfe((function(){var e=ebe("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),nbe=tbe||gfe((function(){return!ebe("a","y").sticky})),rbe={BROKEN_CARET:tbe||gfe((function(){var e=ebe("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:nbe,UNSUPPORTED_Y:tbe},obe=vfe.RegExp,ibe=gfe((function(){var e=obe(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),abe=vfe.RegExp,ube=gfe((function(){var e=abe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sbe=fpe.get,cbe=dde("native-string-replace",String.prototype.replace),lbe=RegExp.prototype.exec,fbe=lbe,dbe=kfe("".charAt),pbe=kfe("".indexOf),hbe=kfe("".replace),vbe=kfe("".slice),gbe=(Qme=/b*/g,wfe(lbe,Jme=/a/,"a"),wfe(lbe,Qme,"a"),0!==Jme.lastIndex||0!==Qme.lastIndex),ybe=rbe.BROKEN_CARET,mbe=void 0!==/()??/.exec("")[1];(gbe||mbe||ybe||ibe||ube)&&(fbe=function(e){var t,n,r,o,i,a,u,s=this,c=sbe(s),l=Aye(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=wfe(fbe,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=ybe&&s.sticky,h=wfe(kye,s),v=s.source,g=0,y=l;if(p&&(h=hbe(h,"y",""),-1===pbe(h,"g")&&(h+="g"),y=vbe(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==dbe(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mbe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gbe&&(r=s.lastIndex),o=wfe(lbe,p?n:s,y),p?o?(o.input=vbe(o.input,g),o[0]=vbe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gbe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mbe&&o&&o.length>1&&wfe(cbe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=xhe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}),$pe({target:"RegExp",proto:!0,forced:/./.exec!==fbe},{exec:fbe}),bv&&(Jh.fn.append=bv),av&&(Jh.fn.on=av),xv&&(Jh.fn.remove=xv),iv&&(Jh.fn.val=iv),Bv&&(Jh.fn.click=Bv),fv&&(Jh.fn.hide=fv);var bbe=function(){function e(){this.title=Qj("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return TH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return FH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Jh("body"),s=Jh('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Yme(e,t)}))}},e}(),wbe={menus:[{key:"uploadImage",factory:function(){return new bbe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(TH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Yme(e,o):t(r)}},n}};Jj("en",{highLightModule:{selectLang:"Language"}}),Jj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ebe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Sbe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cbe,Dbe,xbe=function(e){return e&&e.Math===Math&&e},Obe=xbe("object"==typeof globalThis&&globalThis)||xbe("object"==typeof window&&window)||xbe("object"==typeof self&&self)||xbe("object"==typeof Ebe&&Ebe)||xbe("object"==typeof Ebe&&Ebe)||function(){return this}()||Function("return this")(),Abe=Object.defineProperty,kbe=function(e,t){try{Abe(Obe,e,{value:t,configurable:!0,writable:!0})}catch(n){Obe[e]=t}return t},Bbe=Sbe((function(e){var t="__core-js_shared__",n=e.exports=Obe[t]||kbe(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),Fbe=function(e,t){return Bbe[e]||(Bbe[e]=t||{})},Tbe=function(e){try{return!!e()}catch(e){return!0}},Pbe=!Tbe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_be=Function.prototype,jbe=_be.call,Nbe=Pbe&&_be.bind.bind(jbe,jbe),Ibe=Pbe?Nbe:function(e){return function(){return jbe.apply(e,arguments)}},Rbe=function(e){return null==e},Lbe=TypeError,Mbe=function(e){if(Rbe(e))throw new Lbe("Can't call method on "+e);return e},zbe=Object,$be=function(e){return zbe(Mbe(e))},Hbe=Ibe({}.hasOwnProperty),Ube=Object.hasOwn||function(e,t){return Hbe($be(e),t)},Vbe=0,Wbe=Math.random(),Gbe=Ibe(1..toString),qbe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Gbe(++Vbe+Wbe,36)},Kbe=Obe.navigator,Ybe=Kbe&&Kbe.userAgent,Xbe=Ybe?String(Ybe):"",Zbe=Obe.process,Jbe=Obe.Deno,Qbe=Zbe&&Zbe.versions||Jbe&&Jbe.version,ewe=Qbe&&Qbe.v8;ewe&&(Dbe=(Cbe=ewe.split("."))[0]>0&&Cbe[0]<4?1:+(Cbe[0]+Cbe[1])),!Dbe&&Xbe&&(!(Cbe=Xbe.match(/Edge\/(\d+)/))||Cbe[1]>=74)&&(Cbe=Xbe.match(/Chrome\/(\d+)/))&&(Dbe=+Cbe[1]);var twe=Dbe,nwe=Obe.String,rwe=!!Object.getOwnPropertySymbols&&!Tbe((function(){var e=Symbol("symbol detection");return!nwe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&twe&&twe<41})),owe=rwe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,iwe=Obe.Symbol,awe=Fbe("wks"),uwe=owe?iwe.for||iwe:iwe&&iwe.withoutSetter||qbe,swe=function(e){return Ube(awe,e)||(awe[e]=rwe&&Ube(iwe,e)?iwe[e]:uwe("Symbol."+e)),awe[e]},cwe={};cwe[swe("toStringTag")]="z";var lwe="[object z]"===String(cwe),fwe="object"==typeof document&&document.all,dwe=void 0===fwe&&void 0!==fwe?function(e){return"function"==typeof e||e===fwe}:function(e){return"function"==typeof e},pwe=!Tbe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),hwe=function(e){return"object"==typeof e?null!==e:dwe(e)},vwe=Obe.document,gwe=hwe(vwe)&&hwe(vwe.createElement),ywe=function(e){return gwe?vwe.createElement(e):{}},mwe=!pwe&&!Tbe((function(){return 7!==Object.defineProperty(ywe("div"),"a",{get:function(){return 7}}).a})),bwe=pwe&&Tbe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wwe=String,Ewe=TypeError,Swe=function(e){if(hwe(e))return e;throw new Ewe(wwe(e)+" is not an object")},Cwe=Function.prototype.call,Dwe=Pbe?Cwe.bind(Cwe):function(){return Cwe.apply(Cwe,arguments)},xwe=function(e,t){return arguments.length<2?(n=Obe[e],dwe(n)?n:void 0):Obe[e]&&Obe[e][t];var n},Owe=Ibe({}.isPrototypeOf),Awe=Object,kwe=owe?function(e){return"symbol"==typeof e}:function(e){var t=xwe("Symbol");return dwe(t)&&Owe(t.prototype,Awe(e))},Bwe=String,Fwe=TypeError,Twe=function(e){if(dwe(e))return e;throw new Fwe(function(e){try{return Bwe(e)}catch(e){return"Object"}}(e)+" is not a function")},Pwe=TypeError,_we=TypeError,jwe=swe("toPrimitive"),Nwe=function(e){var t=function(e,t){if(!hwe(e)||kwe(e))return e;var n,r,o=(n=e[jwe],Rbe(n)?void 0:Twe(n));if(o){if(void 0===t&&(t="default"),r=Dwe(o,e,t),!hwe(r)||kwe(r))return r;throw new _we("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&dwe(n=e.toString)&&!hwe(r=Dwe(n,e)))return r;if(dwe(n=e.valueOf)&&!hwe(r=Dwe(n,e)))return r;if("string"!==t&&dwe(n=e.toString)&&!hwe(r=Dwe(n,e)))return r;throw new Pwe("Can't convert object to primitive value")}(e,t)}(e,"string");return kwe(t)?t:t+""},Iwe=TypeError,Rwe=Object.defineProperty,Lwe=Object.getOwnPropertyDescriptor,Mwe="enumerable",zwe="configurable",$we="writable",Hwe={f:pwe?bwe?function(e,t,n){if(Swe(e),t=Nwe(t),Swe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&$we in n&&!n[$we]){var r=Lwe(e,t);r&&r[$we]&&(e[t]=n.value,n={configurable:zwe in n?n[zwe]:r[zwe],enumerable:Mwe in n?n[Mwe]:r[Mwe],writable:!1})}return Rwe(e,t,n)}:Rwe:function(e,t,n){if(Swe(e),t=Nwe(t),Swe(n),mwe)try{return Rwe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Iwe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Uwe=Function.prototype,Vwe=pwe&&Object.getOwnPropertyDescriptor,Wwe=Ube(Uwe,"name"),Gwe={EXISTS:Wwe,PROPER:Wwe&&"something"===function(){}.name,CONFIGURABLE:Wwe&&(!pwe||pwe&&Vwe(Uwe,"name").configurable)},qwe=Ibe(Function.toString);dwe(Bbe.inspectSource)||(Bbe.inspectSource=function(e){return qwe(e)});var Kwe,Ywe,Xwe,Zwe=Bbe.inspectSource,Jwe=Obe.WeakMap,Qwe=dwe(Jwe)&&/native code/.test(String(Jwe)),eEe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tEe=pwe?function(e,t,n){return Hwe.f(e,t,eEe(1,n))}:function(e,t,n){return e[t]=n,e},nEe=Fbe("keys"),rEe=function(e){return nEe[e]||(nEe[e]=qbe(e))},oEe={},iEe="Object already initialized",aEe=Obe.TypeError,uEe=Obe.WeakMap;if(Qwe||Bbe.state){var sEe=Bbe.state||(Bbe.state=new uEe);sEe.get=sEe.get,sEe.has=sEe.has,sEe.set=sEe.set,Kwe=function(e,t){if(sEe.has(e))throw new aEe(iEe);return t.facade=e,sEe.set(e,t),t},Ywe=function(e){return sEe.get(e)||{}},Xwe=function(e){return sEe.has(e)}}else{var cEe=rEe("state");oEe[cEe]=!0,Kwe=function(e,t){if(Ube(e,cEe))throw new aEe(iEe);return t.facade=e,tEe(e,cEe,t),t},Ywe=function(e){return Ube(e,cEe)?e[cEe]:{}},Xwe=function(e){return Ube(e,cEe)}}var lEe={set:Kwe,get:Ywe,has:Xwe,enforce:function(e){return Xwe(e)?Ywe(e):Kwe(e,{})},getterFor:function(e){return function(t){var n;if(!hwe(t)||(n=Ywe(t)).type!==e)throw new aEe("Incompatible receiver, "+e+" required");return n}}},fEe=Sbe((function(e){var t=Gwe.CONFIGURABLE,n=lEe.enforce,r=lEe.get,o=String,i=Object.defineProperty,a=Ibe("".slice),u=Ibe("".replace),s=Ibe([].join),c=pwe&&!Tbe((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Ube(e,"name")||t&&e.name!==r)&&(pwe?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&Ube(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&Ube(f,"constructor")&&f.constructor?pwe&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return Ube(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return dwe(this)&&r(this).source||Zwe(this)}),"toString")})),dEe=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(dwe(n)&&fEe(n,i,r),r.global)o?e[t]=n:kbe(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Hwe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},pEe=Ibe({}.toString),hEe=Ibe("".slice),vEe=function(e){return hEe(pEe(e),8,-1)},gEe=swe("toStringTag"),yEe=Object,mEe="Arguments"===vEe(function(){return arguments}()),bEe=lwe?vEe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yEe(e),gEe))?n:mEe?vEe(t):"Object"===(r=vEe(t))&&dwe(t.callee)?"Arguments":r},wEe=lwe?{}.toString:function(){return"[object "+bEe(this)+"]"};lwe||dEe(Object.prototype,"toString",wEe,{unsafe:!0});var EEe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},SEe=ywe("span").classList,CEe=SEe&&SEe.constructor&&SEe.constructor.prototype,DEe=CEe===Object.prototype?void 0:CEe,xEe=function(e){if("Function"===vEe(e))return Ibe(e)},OEe=xEe(xEe.bind),AEe=Object,kEe=Ibe("".split),BEe=Tbe((function(){return!AEe("z").propertyIsEnumerable(0)}))?function(e){return"String"===vEe(e)?kEe(e,""):AEe(e)}:AEe,FEe=Math.ceil,TEe=Math.floor,PEe=Math.trunc||function(e){var t=+e;return(t>0?TEe:FEe)(t)},_Ee=function(e){var t=+e;return t!=t||0===t?0:PEe(t)},jEe=Math.min,NEe=function(e){return t=e.length,(n=_Ee(t))>0?jEe(n,9007199254740991):0;var t,n},IEe=Array.isArray||function(e){return"Array"===vEe(e)},REe=function(){},LEe=xwe("Reflect","construct"),MEe=/^\s*(?:class|function)\b/,zEe=Ibe(MEe.exec),$Ee=!MEe.test(REe),HEe=function(e){if(!dwe(e))return!1;try{return LEe(REe,[],e),!0}catch(e){return!1}},UEe=function(e){if(!dwe(e))return!1;switch(bEe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $Ee||!!zEe(MEe,Zwe(e))}catch(e){return!0}};UEe.sham=!0;var VEe,WEe=!LEe||Tbe((function(){var e;return HEe(HEe.call)||!HEe(Object)||!HEe((function(){e=!0}))||e}))?UEe:HEe,GEe=swe("species"),qEe=Array,KEe=function(e,t){return new(function(e){var t;return IEe(e)&&(t=e.constructor,(WEe(t)&&(t===qEe||IEe(t.prototype))||hwe(t)&&null===(t=t[GEe]))&&(t=void 0)),void 0===t?qEe:t}(e))(0===t?0:t)},YEe=Ibe([].push),XEe=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,u=5===e||i;return function(s,c,l,f){for(var d,p,h=$be(s),v=BEe(h),g=NEe(v),y=function(e,t){return Twe(e),void 0===t?e:Pbe?OEe(e,t):function(){return e.apply(t,arguments)}}(c,l),m=0,b=f||KEe,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:YEe(w,d)}else switch(e){case 4:return!1;case 7:YEe(w,d)}return i?-1:r||o?o:w}},ZEe=[XEe(0),XEe(1),XEe(2),XEe(3),XEe(4),XEe(5),XEe(6),XEe(7)][0],JEe=(VEe=[].forEach)&&Tbe((function(){VEe.call(null,(function(){return 1}),1)}))?[].forEach:function(e){return ZEe(this,e,arguments.length>1?arguments[1]:void 0)},QEe=function(e){if(e&&e.forEach!==JEe)try{tEe(e,"forEach",JEe)}catch(t){e.forEach=JEe}};for(var eSe in EEe)EEe[eSe]&&QEe(Obe[eSe]&&Obe[eSe].prototype);QEe(DEe);var tSe={}.propertyIsEnumerable,nSe=Object.getOwnPropertyDescriptor,rSe={f:nSe&&!tSe.call({1:2},1)?function(e){var t=nSe(this,e);return!!t&&t.enumerable}:tSe},oSe=function(e){return BEe(Mbe(e))},iSe=Object.getOwnPropertyDescriptor,aSe={f:pwe?iSe:function(e,t){if(e=oSe(e),t=Nwe(t),mwe)try{return iSe(e,t)}catch(e){}if(Ube(e,t))return eEe(!Dwe(rSe.f,e,t),e[t])}},uSe=Math.max,sSe=Math.min,cSe=function(e){return function(t,n,r){var o=oSe(t),i=NEe(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=_Ee(e);return n<0?uSe(n+t,0):sSe(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}(!1),lSe=Ibe([].push),fSe=function(e,t){var n,r=oSe(e),o=0,i=[];for(n in r)!Ube(oEe,n)&&Ube(r,n)&&lSe(i,n);for(;t.length>o;)Ube(r,n=t[o++])&&(~cSe(i,n)||lSe(i,n));return i},dSe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pSe=dSe.concat("length","prototype"),hSe={f:Object.getOwnPropertyNames||function(e){return fSe(e,pSe)}},vSe={f:Object.getOwnPropertySymbols},gSe=Ibe([].concat),ySe=xwe("Reflect","ownKeys")||function(e){var t=hSe.f(Swe(e)),n=vSe.f;return n?gSe(t,n(e)):t},mSe=function(e,t,n){for(var r=ySe(t),o=Hwe.f,i=aSe.f,a=0;a<r.length;a++){var u=r[a];Ube(e,u)||n&&Ube(n,u)||o(e,u,i(t,u))}},bSe=/#|\.prototype\./,wSe=function(e,t){var n=SSe[ESe(e)];return n===DSe||n!==CSe&&(dwe(t)?Tbe(t):!!t)},ESe=wSe.normalize=function(e){return String(e).replace(bSe,".").toLowerCase()},SSe=wSe.data={},CSe=wSe.NATIVE="N",DSe=wSe.POLYFILL="P",xSe=wSe,OSe=aSe.f,ASe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Obe:c?Obe[u]||kbe(u,{}):Obe[u]&&Obe[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=OSe(n,r))&&a.value:n[r],!xSe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;mSe(i,o)}(e.sham||o&&o.sham)&&tEe(i,"sham",!0),dEe(n,r,i,e)}},kSe=Object.keys||function(e){return fSe(e,dSe)},BSe=Object.assign,FSe=Object.defineProperty,TSe=Ibe([].concat),PSe=!BSe||Tbe((function(){if(pwe&&1!==BSe({b:1},BSe(FSe({},"a",{enumerable:!0,get:function(){FSe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==BSe({},e)[n]||kSe(BSe({},t)).join("")!==r}))?function(e,t){for(var n=$be(e),r=arguments.length,o=1,i=vSe.f,a=rSe.f;r>o;)for(var u,s=BEe(arguments[o++]),c=i?TSe(kSe(s),i(s)):kSe(s),l=c.length,f=0;l>f;)u=c[f++],pwe&&!Dwe(a,s,u)||(n[u]=s[u]);return n}:BSe;ASe({target:"Object",stat:!0,arity:2,forced:Object.assign!==PSe},{assign:PSe});var _Se=Sbe((function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var u=t.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&o.util.setLanguage(u,i);var s={element:t,language:i,grammar:a,code:t.textContent};function c(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),r&&r.call(s.element)}if(o.hooks.run("before-sanity-check",s),(u=s.element.parentElement)&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(r&&r.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(n&&e.Worker){var l=new Worker(o.filename);l.onmessage=function(e){c(e.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var E=v.pattern||v,S=r.next,C=s;S!==t.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(t.length>e.length)return;if(!(D instanceof i)){var x,O=1;if(m){if(!(x=a(E,C,e,y))||x.index>=e.length)break;var A=x.index,k=x.index+x[0].length,B=C;for(B+=S.value.length;A>=B;)B+=(S=S.next).value.length;if(C=B-=S.value.length,S.value instanceof i)continue;for(var F=S;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)O++,B+=F.value.length;O--,D=e.slice(C,B),x.index-=C}else if(!(x=a(E,0,D,y)))continue;A=x.index;var T=x[0],P=D.slice(0,A),_=D.slice(A+T.length),j=C+D.length;f&&j>f.reach&&(f.reach=j);var N=S.prev;if(P&&(N=c(t,N,P),C+=P.length),l(t,N,O),S=c(t,N,new i(d,g?o.tokenize(T,g):T,b,T)),_&&c(t,S,_),O>1){var I={cause:d+","+h,reach:j};u(e,t,n,S.prev,C,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
126
|
+
/**
|
127
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
128
|
+
*
|
129
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
130
|
+
* @author Lea Verou <https://lea.verou.me>
|
131
|
+
* @namespace
|
132
|
+
* @public
|
133
|
+
*/e.exports&&(e.exports=t),void 0!==Ebe&&(Ebe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var u=a.element;if(u.matches(i)){a.code="",u.setAttribute(n,r);var s=u.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=u.getAttribute("data-src"),l=a.language;if("none"===l){var f=(/\.(\w+)$/.exec(c)||[,"none"])[1];l=e[f]||f}t.util.setLanguage(s,l),t.util.setLanguage(u,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){u.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(u.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],c=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(a,c).join("\n"),u.hasAttribute("data-start")||u.setAttribute("data-start",String(a+1))}s.textContent=e,t.highlightElement(s)}),(function(e){u.setAttribute(n,"failed"),s.textContent=e}))}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=s(i),l=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,v,S,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=x+"|"+D,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:R(j,_)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:R(I,N)}],char:{pattern:RegExp(D),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),l,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism);var jSe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function NSe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+NSe(t)}),0)}ASe({global:!0,forced:Obe.globalThis!==Obe},{globalThis:Obe}),nv&&(Jh.fn.attr=nv);var ISe,RSe=String,LSe=function(e){if("Symbol"===bEe(e))throw new TypeError("Cannot convert a Symbol value to a string");return RSe(e)},MSe=function(){var e=Swe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},zSe=Obe.RegExp,$Se=Tbe((function(){var e=zSe("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),HSe=$Se||Tbe((function(){return!zSe("a","y").sticky})),USe={BROKEN_CARET:$Se||Tbe((function(){var e=zSe("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:HSe,UNSUPPORTED_Y:$Se},VSe=pwe&&!bwe?Object.defineProperties:function(e,t){Swe(e);for(var n,r=oSe(t),o=kSe(t),i=o.length,a=0;i>a;)Hwe.f(e,n=o[a++],r[n]);return e},WSe={f:VSe},GSe=xwe("document","documentElement"),qSe="prototype",KSe="script",YSe=rEe("IE_PROTO"),XSe=function(){},ZSe=function(e){return"<script>"+e+"</"+KSe+">"},JSe=function(e){e.write(ZSe("")),e.close();var t=e.parentWindow.Object;return e=null,t},QSe=function(){try{ISe=new ActiveXObject("htmlfile")}catch(e){}var e,t;QSe="undefined"!=typeof document?document.domain&&ISe?JSe(ISe):("javascript:",(t=ywe("iframe")).style.display="none",GSe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ZSe("document.F=Object")),e.close(),e.F):JSe(ISe);for(var n=dSe.length;n--;)delete QSe[qSe][dSe[n]];return QSe()};oEe[YSe]=!0;var eCe,tCe,nCe=Object.create||function(e,t){var n;return null!==e?(XSe[qSe]=Swe(e),n=new XSe,XSe[qSe]=null,n[YSe]=e):n=QSe(),void 0===t?n:WSe.f(n,t)},rCe=Obe.RegExp,oCe=Tbe((function(){var e=rCe(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),iCe=Obe.RegExp,aCe=Tbe((function(){var e=iCe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),uCe=lEe.get,sCe=Fbe("native-string-replace",String.prototype.replace),cCe=RegExp.prototype.exec,lCe=cCe,fCe=Ibe("".charAt),dCe=Ibe("".indexOf),pCe=Ibe("".replace),hCe=Ibe("".slice),vCe=(tCe=/b*/g,Dwe(cCe,eCe=/a/,"a"),Dwe(cCe,tCe,"a"),0!==eCe.lastIndex||0!==tCe.lastIndex),gCe=USe.BROKEN_CARET,yCe=void 0!==/()??/.exec("")[1];(vCe||yCe||gCe||oCe||aCe)&&(lCe=function(e){var t,n,r,o,i,a,u,s=this,c=uCe(s),l=LSe(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Dwe(lCe,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=gCe&&s.sticky,h=Dwe(MSe,s),v=s.source,g=0,y=l;if(p&&(h=pCe(h,"y",""),-1===dCe(h,"g")&&(h+="g"),y=hCe(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==fCe(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),yCe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),vCe&&(r=s.lastIndex),o=Dwe(cCe,p?n:s,y),p?o?(o.input=hCe(o.input,g),o[0]=hCe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:vCe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),yCe&&o&&o.length>1&&Dwe(sCe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=nCe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}),ASe({target:"RegExp",proto:!0,forced:/./.exec!==lCe},{exec:lCe});var mCe=RegExp.prototype,bCe=Gwe.PROPER,wCe="toString",ECe=RegExp.prototype,SCe=ECe[wCe],CCe=Tbe((function(){return"/a/b"!==SCe.call({source:"a",flags:"b"})})),DCe=bCe&&SCe.name!==wCe;(CCe||DCe)&&dEe(ECe,wCe,(function(){var e=Swe(this),t=LSe(e.source),n=LSe(function(e){var t=e.flags;return void 0!==t||"flags"in mCe||Ube(e,"flags")||!Owe(mCe,e)?t:Dwe(MSe,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var xCe=function(){function e(){this.title=Qj("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!jd.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};kp.setNodes(e,n,{match:function(e){return YF.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=YF.getSelectedNodeByType(e,"code");if(null==t)return null;var n=YF.getParentNode(e,t);return jd.isElement(n)?"pre"!==n.type?null:t:null},e}(),OCe={renderStyle:function(e,t){var n=e,r=t,o="";return jSe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Jh(e);if(!jd.isElement(t))return t;if("code"!==YF.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new xCe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},ACe=/"/g,kCe=Ibe("".replace);ASe({target:"String",proto:!0,forced:Tbe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=LSe(Mbe(this)),r="<a",(r+=' name="'+kCe(LSe(t),ACe,""")+'"')+">"+n+"</a>";var t,n,r}});var BCe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!lp.isText(e))return null;var t=YF.getParentNode(null,e);if(t&&"code"===YF.getNodeType(t)){var n=YF.getParentNode(null,t);if(n&&"pre"===YF.getNodeType(n))return t}return null}(i);if(null==s)return u;var c=s.language,l=void 0===c?"":c;if(!l)return u;var f=function(e,t){if(!t)return[];var n=_Se.languages[t];return n?_Se.tokenize(e.text,n):[]}(i,l),d=0;try{for(var p=
|
134
|
+
/*! *****************************************************************************
|
135
|
+
Copyright (c) Microsoft Corporation.
|
136
|
+
|
137
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
138
|
+
purpose with or without fee is hereby granted.
|
139
|
+
|
140
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
141
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
142
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
143
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
144
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
145
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
146
|
+
PERFORMANCE OF THIS SOFTWARE.
|
147
|
+
***************************************************************************** */
|
148
|
+
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+NSe(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},FCe=function(){return FCe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FCe.apply(this,arguments)},TCe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=FCe(FCe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=FCe(FCe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=FCe(FCe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=FCe(FCe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=oA(oA({},o),t||{});if(null!=JF[n])throw new Error("Duplicated key '"+n+"' in menu items");JF[n]=r,function(e,t){null!=t&&(ZF[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;JP[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){ZP.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;lT[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){cT.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){yT.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;bT[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){mT.push(e)}(e)},e.registerModule=function(e){PCe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
149
|
+
/*! *****************************************************************************
|
150
|
+
Copyright (c) Microsoft Corporation.
|
151
|
+
|
152
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
153
|
+
purpose with or without fee is hereby granted.
|
154
|
+
|
155
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
156
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
157
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
158
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
159
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
160
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
161
|
+
PERFORMANCE OF THIS SOFTWARE.
|
162
|
+
***************************************************************************** */function PCe(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach((function(e){return TCe.registerMenu(e)})),n&&n.forEach((function(e){return TCe.registerRenderElem(e)})),r&&TCe.registerRenderStyle(r),o&&o.forEach((function(e){return TCe.registerElemToHtml(e)})),i&&TCe.registerStyleToHtml(i),a&&a.forEach((function(e){return TCe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return TCe.registerParseElemHtml(e)})),s&&TCe.registerParseStyleHtml(s),c&&TCe.registerPlugin(c)}aX.forEach((function(e){return PCe(e)})),PCe(Y2),PCe(ine),PCe(cfe),PCe(wbe),PCe(OCe);var _Ce='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',jCe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},NCe={hoverbarKeys:FCe(FCe({},jCe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};TCe.setEditorConfig(FCe(FCe({},NCe),{decorate:BCe}));var ICe={hoverbarKeys:jCe};TCe.setSimpleEditorConfig(FCe(FCe({},ICe),{decorate:BCe}));var RCe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Qj("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Qj("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Qj("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Qj("editor.image"),iconSvg:_Ce,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Qj("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};TCe.setToolbarConfig(RCe);var LCe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Qj("editor.image"),iconSvg:_Ce,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function MCe(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+="\nPlease use '@".concat(e,"' event instead of props")}TCe.setSimpleToolbarConfig(LCe);var zCe=e.extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var n=this.defaultConfig||{},r=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,c="simple"===(void 0===s?"default":s)?TCe.simpleEditorConfig:TCe.editorConfig,l=FCe(FCe({},c.hoverbarKeys||{}),u.hoverbarKeys||{});q_({selector:n,config:FCe(FCe(FCe({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:TCe.plugins})}({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:t(t({},n),{onCreated:function(t){if(e.editor=Object.seal(t),e.$emit("onCreated",t),n.onCreated){var r=MCe("onCreated");throw new Error(r)}},onChange:function(t){var r=t.getHtml();if(e.curValue=r,e.$emit("input",r),e.$emit("onChange",t),n.onChange){var o=MCe("onChange");throw new Error(o)}},onDestroyed:function(t){if(e.$emit("onDestroyed",t),n.onDestroyed){var r=MCe("onDestroyed");throw new Error(r)}},onMaxLength:function(t){if(e.$emit("onMaxLength",t),n.onMaxLength){var r=MCe("onMaxLength");throw new Error(r)}},onFocus:function(t){if(e.$emit("onFocus",t),n.onFocus){var r=MCe("onFocus");throw new Error(r)}},onBlur:function(t){if(e.$emit("onBlur",t),n.onBlur){var r=MCe("onBlur");throw new Error(r)}},customAlert:function(t,r){if(e.$emit("customAlert",t,r),n.customAlert){var o=MCe("customAlert");throw new Error(o)}},customPaste:function(t,r){if(n.customPaste){var o=MCe("customPaste");throw new Error(o)}var i;return e.$emit("customPaste",t,r,(function(e){i=e})),i}}),content:JSON.parse(r),mode:this.mode||"default"})}}}}),$Ce=e.extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(YF.getToolbar(e)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?TCe.simpleToolbarConfig:TCe.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return nP(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=oA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new rj(n,i);return OF.set(a,e),AF.set(e,a),a}(n,{selector:t,config:FCe(FCe({},u),o)})}({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}});export{zCe as Editor,$Ce as Toolbar};
|
163
|
+
//# sourceMappingURL=index.esm.js.map
|