|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[59749],{62592:function(){},23814:function(e,t,n){n.d(t,{M:function(){return Bve},o:function(){return Fve}});var r=n(67294),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,u,s=function(e){return e&&e.Math==Math&&e},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c=Function.prototype,f=c.apply,d=c.bind,p=c.call,h="object"==typeof Reflect&&Reflect.apply||(d?p.bind(f):function(){return p.apply(f,arguments)}),g=Function.prototype,v=g.bind,y=g.call,m=v&&v.bind(y),b=v?function(e){return e&&m(y,e)}:function(e){return e&&function(){return y.apply(e,arguments)}},w=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},D=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=Function.prototype.call,x=S.bind?S.bind(S):function(){return S.apply(S,arguments)},C={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,O=A&&!C.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:C,k={f:O},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F=b({}.toString),T=b("".slice),_=function(e){return T(F(e),8,-1)},P=l.Object,j=b("".split),N=E((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?j(e,""):P(e)}:P,I=l.TypeError,L=function(e){if(null==e)throw I("Can't call method on "+e);return e},R=function(e){return N(L(e))},M=function(e){return"object"==typeof e?null!==e:w(e)},z={},$=function(e){return w(e)?e:void 0},H=function(e,t){return arguments.length<2?$(z[e])||$(l[e]):z[e]&&z[e][t]||l[e]&&l[e][t]},V=b({}.isPrototypeOf),U=H("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(u=(a=K.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!u&&U&&(!(a=U.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=U.match(/Chrome\/(\d+)/))&&(u=+a[1]);var Y,X=u,Z=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),J=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=l.Object,ee=J?function(e){return"symbol"==typeof e}:function(e){var t=H("Symbol");return w(t)&&V(t.prototype,Q(e))},te=l.String,ne=function(e){try{return te(e)}catch(e){return"Object"}},re=l.TypeError,oe=function(e){if(w(e))return e;throw re(ne(e)+" is not a function")},ie=function(e,t){var n=e[t];return null==n?void 0:oe(n)},ae=l.TypeError,ue=Object.defineProperty,se=l["__core-js_shared__"]||function(e,t){try{ue(l,e,{value:t,configurable:!0,writable:!0})}catch(n){l[e]=t}return t}("__core-js_shared__",{}),le=i((function(e){(e.exports=function(e,t){return se[e]||(se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ce=l.Object,fe=function(e){return ce(L(e))},de=b({}.hasOwnProperty),pe=Object.hasOwn||function(e,t){return de(fe(e),t)},he=0,ge=Math.random(),ve=b(1..toString),ye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ve(++he+ge,36)},me=le("wks"),be=l.Symbol,we=be&&be.for,Ee=J?be:be&&be.withoutSetter||ye,De=function(e){if(!pe(me,e)||!Z&&"string"!=typeof me[e]){var t="Symbol."+e;Z&&pe(be,e)?me[e]=be[e]:me[e]=J&&we?we(t):Ee(t)}return me[e]},Se=l.TypeError,xe=De("toPrimitive"),Ce=function(e){var t=function(e,t){if(!M(e)||ee(e))return e;var n,r=ie(e,xe);if(r){if(void 0===t&&(t="default"),n=x(r,e,t),!M(n)||ee(n))return n;throw Se("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&w(n=e.toString)&&!M(r=x(n,e)))return r;if(w(n=e.valueOf)&&!M(r=x(n,e)))return r;if("string"!==t&&w(n=e.toString)&&!M(r=x(n,e)))return r;throw ae("Can't convert object to primitive value")}(e,t)}(e,"string");return ee(t)?t:t+""},Ae=l.document,Oe=M(Ae)&&M(Ae.createElement),ke=function(e){return Oe?Ae.createElement(e):{}},Be=!D&&!E((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Fe=Object.getOwnPropertyDescriptor,Te=D?Fe:function(e,t){if(e=R(e),t=Ce(t),Be)try{return Fe(e,t)}catch(e){}if(pe(e,t))return B(!x(k.f,e,t),e[t])},_e={f:Te},Pe=/#|\.prototype\./,je=function(e,t){var n=Ie[Ne(e)];return n==Re||n!=Le&&(w(t)?E(t):!!t)},Ne=je.normalize=function(e){return String(e).replace(Pe,".").toLowerCase()},Ie=je.data={},Le=je.NATIVE="N",Re=je.POLYFILL="P",Me=je,ze=b(b.bind),$e=function(e,t){return oe(e),void 0===t?e:ze?ze(e,t):function(){return e.apply(t,arguments)}},He=l.String,Ve=l.TypeError,Ue=function(e){if(M(e))return e;throw Ve(He(e)+" is not an object")},We=l.TypeError,Ge=Object.defineProperty,qe=D?Ge:function(e,t,n){if(Ue(e),t=Ce(t),Ue(n),Be)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:qe},Ye=D?function(e,t,n){return Ke.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},Xe=_e.f,Ze=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 h(e,this,arguments)};return t.prototype=e.prototype,t},Je=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?l:p?l[f]:(l[f]||{}).prototype,v=d?z:z[f]||Ye(z,f,{})[f],y=v.prototype;for(o in t)n=!Me(d?o:f+(p?".":"#")+o,e.forced)&&g&&pe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=Xe(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?$e(i,l):e.wrap&&n?Ze(i):h&&w(i)?b(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ye(s,"sham",!0),Ye(v,o,s),h&&(pe(z,r=f+"Prototype")||Ye(z,r,{}),Ye(z[r],o,i),e.real&&y&&!y[o]&&Ye(y,o,i)))},Qe=le("keys"),et=function(e){return Qe[e]||(Qe[e]=ye(e))},tt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nt=et("IE_PROTO"),rt=l.Object,ot=rt.prototype,it=tt?rt.getPrototypeOf:function(e){var t=fe(e);if(pe(t,nt))return t[nt];var n=t.constructor;return w(n)&&t instanceof n?n.prototype:t instanceof rt?ot:null},at=l.String,ut=l.TypeError,st=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ue(n),function(e){if("object"==typeof e||w(e))return e;throw ut("Can't set "+at(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lt=Math.ceil,ct=Math.floor,ft=function(e){var t=+e;return t!=t||0===t?0:(t>0?ct:lt)(t)},dt=Math.max,pt=Math.min,ht=function(e,t){var n=ft(e);return n<0?dt(n+t,0):pt(n,t)},gt=Math.min,vt=function(e){return(t=e.length)>0?gt(ft(t),9007199254740991):0;var t},yt=function(e){return function(t,n,r){var o,i=R(t),a=vt(i),u=ht(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},mt={includes:yt(!0),indexOf:yt(!1)},bt={},wt=mt.indexOf,Et=b([].push),Dt=function(e,t){var n,r=R(e),o=0,i=[];for(n in r)!pe(bt,n)&&pe(r,n)&&Et(i,n);for(;t.length>o;)pe(r,n=t[o++])&&(~wt(i,n)||Et(i,n));return i},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=St.concat("length","prototype"),Ct=Object.getOwnPropertyNames||function(e){return Dt(e,xt)},At={f:Ct},Ot={f:Object.getOwnPropertySymbols},kt=b([].concat),Bt=H("Reflect","ownKeys")||function(e){var t=At.f(Ue(e)),n=Ot.f;return n?kt(t,n(e)):t},Ft=Object.keys||function(e){return Dt(e,St)},Tt=D?Object.defineProperties:function(e,t){Ue(e);for(var n,r=R(t),o=Ft(t),i=o.length,a=0;i>a;)Ke.f(e,n=o[a++],r[n]);return e},_t=H("document","documentElement"),Pt=et("IE_PROTO"),jt=function(){},Nt=function(e){return"<script>"+e+"<\/script>"},It=function(e){e.write(Nt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Lt="undefined"!=typeof document?document.domain&&Y?It(Y):((t=ke("iframe")).style.display="none",_t.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nt("document.F=Object")),e.close(),e.F):It(Y);for(var n=St.length;n--;)delete Lt.prototype[St[n]];return Lt()};bt[Pt]=!0;var Rt=Object.create||function(e,t){var n;return null!==e?(jt.prototype=Ue(e),n=new jt,jt.prototype=null,n[Pt]=e):n=Lt(),void 0===t?n:Tt(n,t)},Mt=function(e,t,n){var r=Ce(t);r in e?Ke.f(e,r,B(0,n)):e[r]=n},zt=l.Array,$t=Math.max,Ht=function(e,t,n){for(var r=vt(e),o=ht(t,r),i=ht(void 0===n?r:n,r),a=zt($t(i-o,0)),u=0;o<i;o++,u++)Mt(a,u,e[o]);return a.length=u,a},Vt=b("".replace),Ut=b("".split),Wt=b([].join),Gt=String(Error("zxcasd").stack),qt=/\n\s*at [^:]*:[^\n]*/,Kt=qt.test(Gt),Yt=/@[^\n]*\n/.test(Gt)&&!/zxcasd/.test(Gt),Xt=function(e,t){if("string"!=typeof e)return e;if(Kt)for(;t--;)e=Vt(e,qt,"");else if(Yt)return Wt(Ht(Ut(e,"\n"),t),"\n");return e},Zt=function(e,t){M(t)&&"cause"in t&&Ye(e,"cause",t.cause)},Jt={},Qt=De("iterator"),en=Array.prototype,tn={};tn[De("toStringTag")]="z";var nn="[object z]"===String(tn),rn=De("toStringTag"),on=l.Object,an="Arguments"==_(function(){return arguments}()),un=nn?_: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=on(e),rn))?n:an?_(t):"Object"==(r=_(t))&&w(t.callee)?"Arguments":r},sn=De("iterator"),ln=function(e){if(null!=e)return ie(e,sn)||ie(e,"@@iterator")||Jt[un(e)]},cn=l.TypeError,fn=function(e,t,n){var r,o;Ue(e);try{if(!(r=ie(e,"return"))){if("throw"===t)throw n;return n}r=x(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},dn=l.TypeError,pn=function(e,t){this.stopped=e,this.result=t},hn=pn.prototype,gn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=$e(t,c),g=function(e){return r&&fn(r,"normal",e),new pn(!0,e)},v=function(e){return f?(Ue(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=ln(e)))throw dn(ne(e)+" is not iterable");if(function(e){return void 0!==e&&(Jt.Array===e||en[Qt]===e)}(o)){for(i=0,a=vt(e);a>i;i++)if((u=v(e[i]))&&V(hn,u))return u;return new pn(!1)}r=function(e,t){var n=arguments.length<2?ln(e):t;if(oe(n))return Ue(x(n,e));throw cn(ne(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=x(s,r)).done;){try{u=v(l.value)}catch(e){fn(r,"throw",e)}if("object"==typeof u&&u&&V(hn,u))return u}return new pn(!1)},vn=l.String,yn=function(e){if("Symbol"===un(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},mn=function(e,t){return void 0===e?arguments.length<2?"":t:yn(e)},bn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",B(1,7)),7!==e.stack)})),wn=De("toStringTag"),En=l.Error,Dn=[].push,Sn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=V(xn,this);st?n=st(new En(void 0),o?it(this):xn):(n=o?this:Rt(xn),Ye(n,wn,"Error")),Ye(n,"message",mn(t,"")),bn&&Ye(n,"stack",Xt(n.stack,1)),Zt(n,r);var i=[];return gn(e,Dn,{that:i}),Ye(n,"errors",i),n};st?st(Sn,En):function(e,t){for(var n=Bt(t),r=Ke.f,o=_e.f,i=0;i<n.length;i++){var a=n[i];pe(e,a)||r(e,a,o(t,a))}}(Sn,En);var xn=Sn.prototype=Rt(En.prototype,{constructor:B(1,Sn),message:B(1,""),name:B(1,"AggregateError")});Je({global:!0},{AggregateError:Sn});var Cn=b(Function.toString);w(se.inspectSource)||(se.inspectSource=function(e){return Cn(e)});var An,On,kn,Bn=se.inspectSource,Fn=l.WeakMap,Tn=w(Fn)&&/native code/.test(Bn(Fn)),_n=l.TypeError,Pn=l.WeakMap;if(Tn||se.state){var jn=se.state||(se.state=new Pn),Nn=b(jn.get),In=b(jn.has),Ln=b(jn.set);An=function(e,t){if(In(jn,e))throw new _n("Object already initialized");return t.facade=e,Ln(jn,e,t),t},On=function(e){return Nn(jn,e)||{}},kn=function(e){return In(jn,e)}}else{var Rn=et("state");bt[Rn]=!0,An=function(e,t){if(pe(e,Rn))throw new _n("Object already initialized");return t.facade=e,Ye(e,Rn,t),t},On=function(e){return pe(e,Rn)?e[Rn]:{}},kn=function(e){return pe(e,Rn)}}var Mn,zn,$n,Hn={set:An,get:On,has:kn,enforce:function(e){return kn(e)?On(e):An(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=On(t)).type!==e)throw _n("Incompatible receiver, "+e+" required");return n}}},Vn=Function.prototype,Un=D&&Object.getOwnPropertyDescriptor,Wn=pe(Vn,"name"),Gn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!D||D&&Un(Vn,"name").configurable)},qn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ye(e,t,n)},Kn=De("iterator"),Yn=!1;[].keys&&("next"in($n=[].keys())?(zn=it(it($n)))!==Object.prototype&&(Mn=zn):Yn=!0);var Xn=null==Mn||E((function(){var e={};return Mn[Kn].call(e)!==e}));Mn=Xn?{}:Rt(Mn),w(Mn[Kn])||qn(Mn,Kn,(function(){return this}));var Zn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:Yn},Jn=nn?{}.toString:function(){return"[object "+un(this)+"]"},Qn=Ke.f,er=De("toStringTag"),tr=function(e,t,n,r){if(e){var o=n?e:e.prototype;pe(o,er)||Qn(o,er,{configurable:!0,value:t}),r&&!nn&&Ye(o,"toString",Jn)}},nr=Zn.IteratorPrototype,rr=function(){return this},or=Gn.PROPER,ir=Zn.BUGGY_SAFARI_ITERATORS,ar=De("iterator"),ur=function(){return this},sr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Rt(nr,{next:B(1,n)}),tr(e,o,!1,!0),Jt[o]=rr}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ir&&e in p)return p[e];switch(e){case"keys":case"values":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[ar]||p["@@iterator"]||o&&p[o],g=!ir&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=it(v.call(new e)))!==Object.prototype&&u.next&&(tr(u,f,!0,!0),Jt[f]=ur),or&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return x(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ir||d||!(l in p))&&qn(p,l,s[l]);else Je({target:t,proto:!0,forced:ir||d},s);return a&&p[ar]!==g&&qn(p,ar,g,{name:o}),Jt[t]=g,s},lr=Hn.set,cr=Hn.getterFor("Array Iterator");sr(Array,"Array",(function(e,t){lr(this,{type:"Array Iterator",target:R(e),index:0,kind:t})}),(function(){var e=cr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Jt.Arguments=Jt.Array;var fr=b("".charAt),dr=b("".charCodeAt),pr=b("".slice),hr=function(e){return function(t,n){var r,o,i=yn(L(t)),a=ft(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dr(i,a))<55296||r>56319||a+1===u||(o=dr(i,a+1))<56320||o>57343?e?fr(i,a):r:e?pr(i,a,a+2):o-56320+(r-55296<<10)+65536}},gr=(hr(!1),hr(!0)),vr=Hn.set,yr=Hn.getterFor("String Iterator");sr(String,"String",(function(e){vr(this,{type:"String Iterator",string:yn(e),index:0})}),(function(){var e,t=yr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gr(n,r),t.index+=e.length,{value:e,done:!1})}));var mr=z.AggregateError,br=De("toStringTag");for(var wr 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}){var Er=l[wr],Dr=Er&&Er.prototype;Dr&&un(Dr)!==br&&Ye(Dr,br,wr),Jt[wr]=Jt.Array}var Sr,xr,Cr=mr,Ar=function(e){return e&&e.Math==Math&&e},Or=Ar("object"==typeof globalThis&&globalThis)||Ar("object"==typeof window&&window)||Ar("object"==typeof self&&self)||Ar("object"==typeof o&&o)||function(){return this}()||Function("return this")(),kr=function(e){try{return!!e()}catch(e){return!0}},Br=!kr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Fr=Function.prototype.call,Tr=Fr.bind?Fr.bind(Fr):function(){return Fr.apply(Fr,arguments)},_r={}.propertyIsEnumerable,Pr=Object.getOwnPropertyDescriptor,jr=Pr&&!_r.call({1:2},1)?function(e){var t=Pr(this,e);return!!t&&t.enumerable}:_r,Nr={f:jr},Ir=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Lr=Function.prototype,Rr=Lr.bind,Mr=Lr.call,zr=Rr&&Rr.bind(Mr),$r=Rr?function(e){return e&&zr(Mr,e)}:function(e){return e&&function(){return Mr.apply(e,arguments)}},Hr=$r({}.toString),Vr=$r("".slice),Ur=function(e){return Vr(Hr(e),8,-1)},Wr=Or.Object,Gr=$r("".split),qr=kr((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ur(e)?Gr(e,""):Wr(e)}:Wr,Kr=Or.TypeError,Yr=function(e){if(null==e)throw Kr("Can't call method on "+e);return e},Xr=function(e){return qr(Yr(e))},Zr=function(e){return"function"==typeof e},Jr=function(e){return"object"==typeof e?null!==e:Zr(e)},Qr=function(e){return Zr(e)?e:void 0},eo=function(e,t){return arguments.length<2?Qr(Or[e]):Or[e]&&Or[e][t]},to=$r({}.isPrototypeOf),no=eo("navigator","userAgent")||"",ro=Or.process,oo=Or.Deno,io=ro&&ro.versions||oo&&oo.version,ao=io&&io.v8;ao&&(xr=(Sr=ao.split("."))[0]>0&&Sr[0]<4?1:+(Sr[0]+Sr[1])),!xr&&no&&(!(Sr=no.match(/Edge\/(\d+)/))||Sr[1]>=74)&&(Sr=no.match(/Chrome\/(\d+)/))&&(xr=+Sr[1]);var uo=xr,so=!!Object.getOwnPropertySymbols&&!kr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uo&&uo<41})),lo=so&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,co=Or.Object,fo=lo?function(e){return"symbol"==typeof e}:function(e){var t=eo("Symbol");return Zr(t)&&to(t.prototype,co(e))},po=Or.String,ho=function(e){try{return po(e)}catch(e){return"Object"}},go=Or.TypeError,vo=function(e){if(Zr(e))return e;throw go(ho(e)+" is not a function")},yo=function(e,t){var n=e[t];return null==n?void 0:vo(n)},mo=Or.TypeError,bo=Object.defineProperty,wo=function(e,t){try{bo(Or,e,{value:t,configurable:!0,writable:!0})}catch(n){Or[e]=t}return t},Eo=Or["__core-js_shared__"]||wo("__core-js_shared__",{}),Do=i((function(e){(e.exports=function(e,t){return Eo[e]||(Eo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),So=Or.Object,xo=function(e){return So(Yr(e))},Co=$r({}.hasOwnProperty),Ao=Object.hasOwn||function(e,t){return Co(xo(e),t)},Oo=0,ko=Math.random(),Bo=$r(1..toString),Fo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bo(++Oo+ko,36)},To=Do("wks"),_o=Or.Symbol,Po=_o&&_o.for,jo=lo?_o:_o&&_o.withoutSetter||Fo,No=function(e){if(!Ao(To,e)||!so&&"string"!=typeof To[e]){var t="Symbol."+e;so&&Ao(_o,e)?To[e]=_o[e]:To[e]=lo&&Po?Po(t):jo(t)}return To[e]},Io=Or.TypeError,Lo=No("toPrimitive"),Ro=function(e){var t=function(e,t){if(!Jr(e)||fo(e))return e;var n,r=yo(e,Lo);if(r){if(void 0===t&&(t="default"),n=Tr(r,e,t),!Jr(n)||fo(n))return n;throw Io("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Zr(n=e.toString)&&!Jr(r=Tr(n,e)))return r;if(Zr(n=e.valueOf)&&!Jr(r=Tr(n,e)))return r;if("string"!==t&&Zr(n=e.toString)&&!Jr(r=Tr(n,e)))return r;throw mo("Can't convert object to primitive value")}(e,t)}(e,"string");return fo(t)?t:t+""},Mo=Or.document,zo=Jr(Mo)&&Jr(Mo.createElement),$o=function(e){return zo?Mo.createElement(e):{}},Ho=!Br&&!kr((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Vo=Object.getOwnPropertyDescriptor,Uo=Br?Vo:function(e,t){if(e=Xr(e),t=Ro(t),Ho)try{return Vo(e,t)}catch(e){}if(Ao(e,t))return Ir(!Tr(Nr.f,e,t),e[t])},Wo={f:Uo},Go=Or.String,qo=Or.TypeError,Ko=function(e){if(Jr(e))return e;throw qo(Go(e)+" is not an object")},Yo=Or.TypeError,Xo=Object.defineProperty,Zo=Br?Xo:function(e,t,n){if(Ko(e),t=Ro(t),Ko(n),Ho)try{return Xo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Yo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Jo={f:Zo},Qo=Br?function(e,t,n){return Jo.f(e,t,Ir(1,n))}:function(e,t,n){return e[t]=n,e},ei=$r(Function.toString);Zr(Eo.inspectSource)||(Eo.inspectSource=function(e){return ei(e)});var ti,ni,ri,oi=Eo.inspectSource,ii=Or.WeakMap,ai=Zr(ii)&&/native code/.test(oi(ii)),ui=Do("keys"),si=function(e){return ui[e]||(ui[e]=Fo(e))},li={},ci=Or.TypeError,fi=Or.WeakMap;if(ai||Eo.state){var di=Eo.state||(Eo.state=new fi),pi=$r(di.get),hi=$r(di.has),gi=$r(di.set);ti=function(e,t){if(hi(di,e))throw new ci("Object already initialized");return t.facade=e,gi(di,e,t),t},ni=function(e){return pi(di,e)||{}},ri=function(e){return hi(di,e)}}else{var vi=si("state");li[vi]=!0,ti=function(e,t){if(Ao(e,vi))throw new ci("Object already initialized");return t.facade=e,Qo(e,vi,t),t},ni=function(e){return Ao(e,vi)?e[vi]:{}},ri=function(e){return Ao(e,vi)}}var yi={set:ti,get:ni,has:ri,enforce:function(e){return ri(e)?ni(e):ti(e,{})},getterFor:function(e){return function(t){var n;if(!Jr(t)||(n=ni(t)).type!==e)throw ci("Incompatible receiver, "+e+" required");return n}}},mi=Function.prototype,bi=Br&&Object.getOwnPropertyDescriptor,wi=Ao(mi,"name"),Ei={EXISTS:wi,PROPER:wi&&"something"===function(){}.name,CONFIGURABLE:wi&&(!Br||Br&&bi(mi,"name").configurable)},Di=i((function(e){var t=Ei.CONFIGURABLE,n=yi.get,r=yi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Zr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ao(i,"name")||t&&i.name!==f)&&Qo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Or?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qo(e,n,i)):l?e[n]=i:wo(n,i)})(Function.prototype,"toString",(function(){return Zr(this)&&n(this).source||oi(this)}))})),Si=Math.ceil,xi=Math.floor,Ci=function(e){var t=+e;return t!=t||0===t?0:(t>0?xi:Si)(t)},Ai=Math.max,Oi=Math.min,ki=function(e,t){var n=Ci(e);return n<0?Ai(n+t,0):Oi(n,t)},Bi=Math.min,Fi=function(e){return e>0?Bi(Ci(e),9007199254740991):0},Ti=function(e){return Fi(e.length)},_i=function(e){return function(t,n,r){var o,i=Xr(t),a=Ti(i),u=ki(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Pi=(_i(!0),_i(!1)),ji=$r([].push),Ni=function(e,t){var n,r=Xr(e),o=0,i=[];for(n in r)!Ao(li,n)&&Ao(r,n)&&ji(i,n);for(;t.length>o;)Ao(r,n=t[o++])&&(~Pi(i,n)||ji(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Li=Ii.concat("length","prototype"),Ri=Object.getOwnPropertyNames||function(e){return Ni(e,Li)},Mi={f:Ri},zi={f:Object.getOwnPropertySymbols},$i=$r([].concat),Hi=eo("Reflect","ownKeys")||function(e){var t=Mi.f(Ko(e)),n=zi.f;return n?$i(t,n(e)):t},Vi=function(e,t){for(var n=Hi(t),r=Jo.f,o=Wo.f,i=0;i<n.length;i++){var a=n[i];Ao(e,a)||r(e,a,o(t,a))}},Ui=/#|\.prototype\./,Wi=function(e,t){var n=qi[Gi(e)];return n==Yi||n!=Ki&&(Zr(t)?kr(t):!!t)},Gi=Wi.normalize=function(e){return String(e).replace(Ui,".").toLowerCase()},qi=Wi.data={},Ki=Wi.NATIVE="N",Yi=Wi.POLYFILL="P",Xi=Wi,Zi=Wo.f,Ji=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Or:l?Or[u]||wo(u,{}):(Or[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Zi(n,r))&&a.value:n[r],!Xi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vi(i,o)}(e.sham||o&&o.sham)&&Qo(i,"sham",!0),Di(n,r,i,e)}},Qi={};Qi[No("toStringTag")]="z";var ea,ta="[object z]"===String(Qi),na=No("toStringTag"),ra=Or.Object,oa="Arguments"==Ur(function(){return arguments}()),ia=ta?Ur: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=ra(e),na))?n:oa?Ur(t):"Object"==(r=Ur(t))&&Zr(t.callee)?"Arguments":r},aa=Or.String,ua=function(e){if("Symbol"===ia(e))throw TypeError("Cannot convert a Symbol value to a string");return aa(e)},sa=function(){var e=Ko(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},la=Or.RegExp,ca=kr((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fa=ca||kr((function(){return!la("a","y").sticky})),da=ca||kr((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),pa={BROKEN_CARET:da,MISSED_STICKY:fa,UNSUPPORTED_Y:ca},ha=Object.keys||function(e){return Ni(e,Ii)},ga=Br?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Xr(t),o=ha(t),i=o.length,a=0;i>a;)Jo.f(e,n=o[a++],r[n]);return e},va=eo("document","documentElement"),ya=si("IE_PROTO"),ma=function(){},ba=function(e){return"<script>"+e+"<\/script>"},wa=function(e){e.write(ba("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{ea=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&ea?wa(ea):((t=$o("iframe")).style.display="none",va.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ba("document.F=Object")),e.close(),e.F):wa(ea);for(var n=Ii.length;n--;)delete Ea.prototype[Ii[n]];return Ea()};li[ya]=!0;var Da,Sa,xa=Object.create||function(e,t){var n;return null!==e?(ma.prototype=Ko(e),n=new ma,ma.prototype=null,n[ya]=e):n=Ea(),void 0===t?n:ga(n,t)},Ca=Or.RegExp,Aa=kr((function(){var e=Ca(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Oa=Or.RegExp,ka=kr((function(){var e=Oa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ba=yi.get,Fa=Do("native-string-replace",String.prototype.replace),Ta=RegExp.prototype.exec,_a=Ta,Pa=$r("".charAt),ja=$r("".indexOf),Na=$r("".replace),Ia=$r("".slice),La=(Sa=/b*/g,Tr(Ta,Da=/a/,"a"),Tr(Ta,Sa,"a"),0!==Da.lastIndex||0!==Sa.lastIndex),Ra=pa.BROKEN_CARET,Ma=void 0!==/()??/.exec("")[1];(La||Ma||Ra||Aa||ka)&&(_a=function(e){var t,n,r,o,i,a,u,s=this,l=Ba(s),c=ua(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tr(_a,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ra&&s.sticky,h=Tr(sa,s),g=s.source,v=0,y=c;if(p&&(h=Na(h,"y",""),-1===ja(h,"g")&&(h+="g"),y=Ia(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Pa(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ma&&(n=new RegExp("^"+g+"$(?!\\s)",h)),La&&(r=s.lastIndex),o=Tr(Ta,p?n:s,y),p?o?(o.input=Ia(o.input,v),o[0]=Ia(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:La&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ma&&o&&o.length>1&&Tr(Fa,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=xa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var za=_a;Ji({target:"RegExp",proto:!0,forced:/./.exec!==za},{exec:za});No("species");var $a=RegExp.prototype,Ha=$r("".charAt),Va=$r("".charCodeAt),Ua=$r("".slice),Wa=function(e){return function(t,n){var r,o,i=ua(Yr(t)),a=Ci(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Va(i,a))<55296||r>56319||a+1===u||(o=Va(i,a+1))<56320||o>57343?e?Ha(i,a):r:e?Ua(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=Or.TypeError,Xa=function(e,t){var n=e.exec;if(Zr(n)){var r=Tr(n,e,t);return null!==r&&Ko(r),r}if("RegExp"===Ur(e))return Tr(za,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=No(e),i=!kr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!kr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=$r(/./[o]),s=function(e,t,n){return[function(t){var n=Yr(this),r=null==t?void 0:yo(t,e);return r?Tr(r,t,n):new RegExp(t)[e](ua(n))},function(e){var r=Ko(this),o=ua(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Xa(r,o));){var c=ua(u[0]);s[l]=c,""===c&&(r.lastIndex=Ka(o,Fi(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=$r(e),s=t.exec;return s===za||s===$a.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Di(String.prototype,e,s[0]),Di($a,o,s[1])}}("match"),Ji({global:!0},{globalThis:Or});var Za=!kr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=si("IE_PROTO"),Qa=Or.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(e){var t=xo(e);if(Ao(t,Ja))return t[Ja];var n=t.constructor;return Zr(n)&&t instanceof n?n.prototype:t instanceof Qa?eu:null},nu=Or.String,ru=Or.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ko(n),function(e){if("object"==typeof e||Zr(e))return e;throw ru("Can't set "+nu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iu=Or.Array,au=Math.max,uu=$r("".replace),su=$r("".split),lu=$r([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=uu(e,fu,"");else if(pu)return lu(function(e,t,n){for(var r,o,i,a,u=Ti(e),s=ki(t,u),l=ki(u,u),c=iu(au(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Ro(o))in r?Jo.f(r,a,Ir(0,i)):r[a]=i;return c.length=f,c}(su(e,"\n"),t),"\n");return e},gu=function(e,t){Jr(t)&&"cause"in t&&Qo(e,"cause",t.cause)},vu=$r($r.bind),yu=function(e,t){return vo(e),void 0===t?e:vu?vu(e,t):function(){return e.apply(t,arguments)}},mu={},bu=No("iterator"),wu=Array.prototype,Eu=No("iterator"),Du=function(e){if(null!=e)return yo(e,Eu)||yo(e,"@@iterator")||mu[ia(e)]},Su=Or.TypeError,xu=function(e,t,n){var r,o;Ko(e);try{if(!(r=yo(e,"return"))){if("throw"===t)throw n;return n}r=Tr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ko(r),n},Cu=Or.TypeError,Au=function(e,t){this.stopped=e,this.result=t},Ou=Au.prototype,ku=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=yu(t,c),g=function(e){return r&&xu(r,"normal",e),new Au(!0,e)},v=function(e){return f?(Ko(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=Du(e)))throw Cu(ho(e)+" is not iterable");if(function(e){return void 0!==e&&(mu.Array===e||wu[bu]===e)}(o)){for(i=0,a=Ti(e);a>i;i++)if((u=v(e[i]))&&to(Ou,u))return u;return new Au(!1)}r=function(e,t){var n=arguments.length<2?Du(e):t;if(vo(n))return Ko(Tr(n,e));throw Su(ho(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Tr(s,r)).done;){try{u=v(l.value)}catch(e){xu(r,"throw",e)}if("object"==typeof u&&u&&to(Ou,u))return u}return new Au(!1)},Bu=function(e,t){return void 0===e?arguments.length<2?"":t:ua(e)},Fu=!kr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ir(1,7)),7!==e.stack)})),Tu=No("toStringTag"),_u=Or.Error,Pu=[].push,ju=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=to(Nu,this);ou?n=ou(new _u(void 0),o?tu(this):Nu):(n=o?this:xa(Nu),Qo(n,Tu,"Error")),Qo(n,"message",Bu(t,"")),Fu&&Qo(n,"stack",hu(n.stack,1)),gu(n,r);var i=[];return ku(e,Pu,{that:i}),Qo(n,"errors",i),n};ou?ou(ju,_u):Vi(ju,_u);var Nu=ju.prototype=xa(_u.prototype,{constructor:Ir(1,ju),message:Ir(1,""),name:Ir(1,"AggregateError")});Ji({global:!0},{AggregateError:ju});var Iu=No("unscopables"),Lu=Array.prototype;null==Lu[Iu]&&Jo.f(Lu,Iu,{configurable:!0,value:xa(null)});var Ru,Mu,zu,$u=function(e){Lu[Iu][e]=!0},Hu=No("iterator"),Vu=!1;[].keys&&("next"in(zu=[].keys())?(Mu=tu(tu(zu)))!==Object.prototype&&(Ru=Mu):Vu=!0);var Uu=null==Ru||kr((function(){var e={};return Ru[Hu].call(e)!==e}));Uu&&(Ru={}),Zr(Ru[Hu])||Di(Ru,Hu,(function(){return this}));var Wu={IteratorPrototype:Ru,BUGGY_SAFARI_ITERATORS:Vu},Gu=Jo.f,qu=No("toStringTag"),Ku=function(e,t,n){e&&!Ao(e=n?e:e.prototype,qu)&&Gu(e,qu,{configurable:!0,value:t})},Yu=Wu.IteratorPrototype,Xu=function(){return this},Zu=Ei.PROPER,Ju=Ei.CONFIGURABLE,Qu=Wu.IteratorPrototype,es=Wu.BUGGY_SAFARI_ITERATORS,ts=No("iterator"),ns=function(){return this},rs=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=xa(Yu,{next:Ir(1,n)}),Ku(e,o,!1),mu[o]=Xu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!es&&e in p)return p[e];switch(e){case"keys":case"values":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[ts]||p["@@iterator"]||o&&p[o],g=!es&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=tu(v.call(new e)))!==Object.prototype&&u.next&&(tu(u)!==Qu&&(ou?ou(u,Qu):Zr(u[ts])||Di(u,ts,ns)),Ku(u,f,!0)),Zu&&"values"==o&&h&&"values"!==h.name&&(Ju?Qo(p,"name","values"):(d=!0,g=function(){return Tr(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(es||d||!(l in p))&&Di(p,l,s[l]);else Ji({target:t,proto:!0,forced:es||d},s);return p[ts]!==g&&Di(p,ts,g,{name:o}),mu[t]=g,s},os=yi.set,is=yi.getterFor("Array Iterator"),as=rs(Array,"Array",(function(e,t){os(this,{type:"Array Iterator",target:Xr(e),index:0,kind:t})}),(function(){var e=is(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mu.Arguments=mu.Array,$u("keys"),$u("values"),$u("entries");var us=Ga.charAt,ss=yi.set,ls=yi.getterFor("String Iterator");rs(String,"String",(function(e){ss(this,{type:"String Iterator",string:ua(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=us(n,r),t.index+=e.length,{value:e,done:!1})}));var cs,fs={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},ds=$o("span").classList,ps=ds&&ds.constructor&&ds.constructor.prototype,hs=ps===Object.prototype?void 0:ps,gs=No("iterator"),vs=No("toStringTag"),ys=as.values,ms=function(e,t){if(e){if(e[gs]!==ys)try{Qo(e,gs,ys)}catch(t){e[gs]=ys}if(e[vs]||Qo(e,vs,t),fs[t])for(var n in as)if(e[n]!==as[n])try{Qo(e,n,as[n])}catch(t){e[n]=as[n]}}};for(var bs in fs)ms(Or[bs]&&Or[bs].prototype,bs);function ws(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Es(){void 0===Cr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}ms(hs,"DOMTokenList"),void 0===n.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),ws(),Es()):n.g&&(null===(cs=n.g.navigator)||void 0===cs?void 0:cs.userAgent.match("QQBrowser"))&&(ws(),Es());var Ds=Array.isArray||function(e){return"Array"==_(e)},Ss=function(){},xs=[],Cs=H("Reflect","construct"),As=/^\s*(?:class|function)\b/,Os=b(As.exec),ks=!As.exec(Ss),Bs=function(e){if(!w(e))return!1;try{return Cs(Ss,xs,e),!0}catch(e){return!1}},Fs=!Cs||E((function(){var e;return Bs(Bs.call)||!Bs(Object)||!Bs((function(){e=!0}))||e}))?function(e){if(!w(e))return!1;switch(un(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ks||!!Os(As,Bn(e))}:Bs,Ts=De("species"),_s=l.Array,Ps=function(e,t){return new(function(e){var t;return Ds(e)&&(t=e.constructor,(Fs(t)&&(t===_s||Ds(t.prototype))||M(t)&&null===(t=t[Ts]))&&(t=void 0)),void 0===t?_s:t}(e))(0===t?0:t)},js=De("species"),Ns=De("isConcatSpreadable"),Is=l.TypeError,Ls=X>=51||!E((function(){var e=[];return e[Ns]=!1,e.concat()[0]!==e})),Rs=("concat",X>=51||!E((function(){var e=[];return(e.constructor={})[js]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Ms=function(e){if(!M(e))return!1;var t=e[Ns];return void 0!==t?!!t:Ds(e)};Je({target:"Array",proto:!0,forced:!Ls||!Rs},{concat:function(e){var t,n,r,o,i,a=fe(this),u=Ps(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Ms(i=-1===t?a:arguments[t])){if(s+(o=vt(i))>9007199254740991)throw Is("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Mt(u,s,i[n])}else{if(s>=9007199254740991)throw Is("Maximum allowed index exceeded");Mt(u,s++,i)}return u.length=s,u}});var zs=At.f,$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hs={f:function(e){return $s&&"Window"==_(e)?function(e){try{return zs(e)}catch(e){return Ht($s)}}(e):zs(R(e))}},Vs=b([].slice),Us={f:De},Ws=Ke.f,Gs=function(e){var t=z.Symbol||(z.Symbol={});pe(t,e)||Ws(t,e,{value:Us.f(e)})},qs=b([].push),Ks=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,l,c,f){for(var d,p,h=fe(s),g=N(h),v=$e(l,c),y=vt(g),m=0,b=f||Ps,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:qs(w,d)}else switch(e){case 4:return!1;case 7:qs(w,d)}return i?-1:r||o?o:w}},Ys=[Ks(0),Ks(1),Ks(2),Ks(3),Ks(4),Ks(5),Ks(6),Ks(7)][0],Xs=et("hidden"),Zs=De("toPrimitive"),Js=Hn.set,Qs=Hn.getterFor("Symbol"),el=Object.prototype,tl=l.Symbol,nl=tl&&tl.prototype,rl=l.TypeError,ol=l.QObject,il=H("JSON","stringify"),al=_e.f,ul=Ke.f,sl=Hs.f,ll=k.f,cl=b([].push),fl=le("symbols"),dl=le("op-symbols"),pl=le("string-to-symbol-registry"),hl=le("symbol-to-string-registry"),gl=le("wks"),vl=!ol||!ol.prototype||!ol.prototype.findChild,yl=D&&E((function(){return 7!=Rt(ul({},"a",{get:function(){return ul(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=al(el,t);r&&delete el[t],ul(e,t,n),r&&e!==el&&ul(el,t,r)}:ul,ml=function(e,t){var n=fl[e]=Rt(nl);return Js(n,{type:"Symbol",tag:e,description:t}),D||(n.description=t),n},bl=function(e,t,n){e===el&&bl(dl,t,n),Ue(e);var r=Ce(t);return Ue(n),pe(fl,r)?(n.enumerable?(pe(e,Xs)&&e[Xs][r]&&(e[Xs][r]=!1),n=Rt(n,{enumerable:B(0,!1)})):(pe(e,Xs)||ul(e,Xs,B(1,{})),e[Xs][r]=!0),yl(e,r,n)):ul(e,r,n)},wl=function(e,t){Ue(e);var n=R(t),r=Ft(n).concat(xl(n));return Ys(r,(function(t){D&&!x(El,n,t)||bl(e,t,n[t])})),e},El=function(e){var t=Ce(e),n=x(ll,this,t);return!(this===el&&pe(fl,t)&&!pe(dl,t))&&(!(n||!pe(this,t)||!pe(fl,t)||pe(this,Xs)&&this[Xs][t])||n)},Dl=function(e,t){var n=R(e),r=Ce(t);if(n!==el||!pe(fl,r)||pe(dl,r)){var o=al(n,r);return!o||!pe(fl,r)||pe(n,Xs)&&n[Xs][r]||(o.enumerable=!0),o}},Sl=function(e){var t=sl(R(e)),n=[];return Ys(t,(function(e){pe(fl,e)||pe(bt,e)||cl(n,e)})),n},xl=function(e){var t=e===el,n=sl(t?dl:R(e)),r=[];return Ys(n,(function(e){!pe(fl,e)||t&&!pe(el,e)||cl(r,fl[e])})),r};if(Z||(nl=(tl=function(){if(V(nl,this))throw rl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,t=ye(e),n=function(e){this===el&&x(n,dl,e),pe(this,Xs)&&pe(this[Xs],t)&&(this[Xs][t]=!1),yl(this,t,B(1,e))};return D&&vl&&yl(el,t,{configurable:!0,set:n}),ml(t,e)}).prototype,qn(nl,"toString",(function(){return Qs(this).tag})),qn(tl,"withoutSetter",(function(e){return ml(ye(e),e)})),k.f=El,Ke.f=bl,_e.f=Dl,At.f=Hs.f=Sl,Ot.f=xl,Us.f=function(e){return ml(De(e),e)},D&&ul(nl,"description",{configurable:!0,get:function(){return Qs(this).description}})),Je({global:!0,wrap:!0,forced:!Z,sham:!Z},{Symbol:tl}),Ys(Ft(gl),(function(e){Gs(e)})),Je({target:"Symbol",stat:!0,forced:!Z},{for:function(e){var t=yn(e);if(pe(pl,t))return pl[t];var n=tl(t);return pl[t]=n,hl[n]=t,n},keyFor:function(e){if(!ee(e))throw rl(e+" is not a symbol");if(pe(hl,e))return hl[e]},useSetter:function(){vl=!0},useSimple:function(){vl=!1}}),Je({target:"Object",stat:!0,forced:!Z,sham:!D},{create:function(e,t){return void 0===t?Rt(e):wl(Rt(e),t)},defineProperty:bl,defineProperties:wl,getOwnPropertyDescriptor:Dl}),Je({target:"Object",stat:!0,forced:!Z},{getOwnPropertyNames:Sl,getOwnPropertySymbols:xl}),Je({target:"Object",stat:!0,forced:E((function(){Ot.f(1)}))},{getOwnPropertySymbols:function(e){return Ot.f(fe(e))}}),il){var Cl=!Z||E((function(){var e=tl();return"[null]"!=il([e])||"{}"!=il({a:e})||"{}"!=il(Object(e))}));Je({target:"JSON",stat:!0,forced:Cl},{stringify:function(e,t,n){var r=Vs(arguments),o=t;if((M(t)||void 0!==e)&&!ee(e))return Ds(t)||(t=function(e,t){if(w(o)&&(t=x(o,this,e,t)),!ee(t))return t}),r[1]=t,h(il,null,r)}})}if(!nl[Zs]){var Al=nl.valueOf;qn(nl,Zs,(function(e){return x(Al,this)}))}tr(tl,"Symbol"),bt[Xs]=!0,Gs("asyncIterator"),Gs("hasInstance"),Gs("isConcatSpreadable"),Gs("iterator"),Gs("match"),Gs("matchAll"),Gs("replace"),Gs("search"),Gs("species"),Gs("split"),Gs("toPrimitive"),Gs("toStringTag"),Gs("unscopables"),tr(l.JSON,"JSON",!0);var Ol=z.Symbol;Gs("asyncDispose"),Gs("dispose"),Gs("matcher"),Gs("metadata"),Gs("observable"),Gs("patternMatch"),Gs("replaceAll");var kl=Ol,Bl=Us.f("iterator"),Fl=i((function(e){function t(n){return"function"==typeof kl&&"symbol"==typeof Bl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof kl&&e.constructor===kl&&e!==kl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Tl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Fl),_l=Wo.f,Pl=kr((function(){_l(1)}));if(Ji({target:"Object",stat:!0,forced:!Br||Pl,sham:!Br},{getOwnPropertyDescriptor:function(e,t){return _l(Xr(e),t)}}),"object"===(void 0===n.g?"undefined":Tl(n.g))){var jl=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!jl.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=n.g.document&&null==n.g.document.getElementsByTagName&&(n.g.document.getElementsByTagName=function(){return[]})}function Nl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Il(e){var t,n;return!1!==Nl(e)&&(void 0===(t=e.constructor)||!1!==Nl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ll(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 Rl(e){return!!e&&!!e[Dc]}function Ml(e){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)===Sc}(e)||Array.isArray(e)||!!e[Ec]||!!e.constructor[Ec]||Ul(e)||Wl(e))}function zl(e,t,n){void 0===n&&(n=!1),0===$l(e)?(n?Object.keys:xc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function $l(e){var t=e[Dc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ul(e)?2:Wl(e)?3:0}function Hl(e,t){return 2===$l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t,n){var r=$l(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Ul(e){return yc&&e instanceof Map}function Wl(e){return mc&&e instanceof Set}function Gl(e){return e.o||e.t}function ql(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Cc(e);delete t[Dc];for(var n=xc(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 Kl(e,t){return void 0===t&&(t=!1),Xl(e)||Rl(e)||!Ml(e)||($l(e)>1&&(e.set=e.add=e.clear=e.delete=Yl),Object.freeze(e),t&&zl(e,(function(e,t){return Kl(t,!0)}),!0)),e}function Yl(){Ll(2)}function Xl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Zl(e){var t=Ac[e];return t||Ll(18,e),t}function Jl(){return gc}function Ql(e,t){t&&(Zl("Patches"),e.u=[],e.s=[],e.v=t)}function ec(e){tc(e),e.p.forEach(rc),e.p=null}function tc(e){e===gc&&(gc=e.l)}function nc(e){return gc={p:[],l:gc,h:e,m:!0,_:0}}function rc(e){var t=e[Dc];0===t.i||1===t.i?t.j():t.O=!0}function oc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Zl("ES5").S(t,e,r),r?(n[Dc].P&&(ec(t),Ll(4)),Ml(e)&&(e=ic(t,e),t.l||uc(t,e)),t.u&&Zl("Patches").M(n[Dc],e,t.u,t.s)):e=ic(t,n,[]),ec(t),t.u&&t.v(t.u,t.s),e!==wc?e:void 0}function ic(e,t,n){if(Xl(t))return t;var r=t[Dc];if(!r)return zl(t,(function(o,i){return ac(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return uc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=ql(r.k):r.o;zl(3===r.i?new Set(o):o,(function(t,i){return ac(e,r,o,t,i,n)})),uc(e,o,!1),n&&e.u&&Zl("Patches").R(r,n,e.u,e.s)}return r.o}function ac(e,t,n,r,o,i){if(Rl(o)){var a=ic(e,o,i&&t&&3!==t.i&&!Hl(t.D,r)?i.concat(r):void 0);if(Vl(n,r,a),!Rl(a))return;e.m=!1}if(Ml(o)&&!Xl(o)){if(!e.h.F&&e._<1)return;ic(e,o),t&&t.A.l||uc(e,o)}}function uc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Kl(t,n)}function sc(e,t){var n=e[Dc];return(n?Gl(n):e)[t]}function lc(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 cc(e){e.P||(e.P=!0,e.l&&cc(e.l))}function fc(e){e.o||(e.o=ql(e.t))}function dc(e,t,n){var r=Ul(t)?Zl("MapSet").N(t,n):Wl(t)?Zl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Jl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Oc;n&&(o=[r],i=kc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Zl("ES5").J(t,n);return(n?n.A:Jl()).p.push(r),r}function pc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ql(e)}var hc,gc,vc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),yc="undefined"!=typeof Map,mc="undefined"!=typeof Set,bc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,wc=vc?Symbol.for("immer-nothing"):((hc={})["immer-nothing"]=!0,hc),Ec=vc?Symbol.for("immer-draftable"):"__$immer_draftable",Dc=vc?Symbol.for("immer-state"):"__$immer_state",Sc=""+Object.prototype.constructor,xc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Cc=Object.getOwnPropertyDescriptors||function(e){var t={};return xc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Ac={},Oc={get:function(e,t){if(t===Dc)return e;var n=Gl(e);if(!Hl(n,t))return function(e,t,n){var r,o=lc(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||!Ml(r)?r:r===sc(e.t,t)?(fc(e),e.o[t]=dc(e.A.h,r,e)):r},has:function(e,t){return t in Gl(e)},ownKeys:function(e){return Reflect.ownKeys(Gl(e))},set:function(e,t,n){var r=lc(Gl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=sc(Gl(e),t),i=null==o?void 0:o[Dc];if(i&&i.t===n)return e.o[t]=n,e.D[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||Hl(e.t,t)))return!0;fc(e),cc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==sc(e.t,t)||t in e.t?(e.D[t]=!1,fc(e),cc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Gl(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(){Ll(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ll(12)}},kc={};zl(Oc,(function(e,t){kc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),kc.deleteProperty=function(e,t){return Oc.deleteProperty.call(this,e[0],t)},kc.set=function(e,t,n){return Oc.set.call(this,e[0],t,n,e[0])};var Bc=function(){function e(e){var t=this;this.g=bc,this.F=!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&&Ll(6),void 0!==r&&"function"!=typeof r&&Ll(7),Ml(e)){var u=nc(t),s=dc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?ec(u):tc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Ql(u,r),oc(e,u)}),(function(e){throw ec(u),e})):(Ql(u,r),oc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===wc)return;return void 0===a&&(a=e),t.F&&Kl(a,!0),a}Ll(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?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))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var 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){Ml(e)||Ll(8),Rl(e)&&(e=function(e){return Rl(e)||Ll(22,e),function e(t){if(!Ml(t))return t;var n,r=t[Dc],o=$l(t);if(r){if(!r.P&&(r.i<4||!Zl("ES5").K(r)))return r.t;r.I=!0,n=pc(t,o),r.I=!1}else n=pc(t,o);return zl(n,(function(t,o){r&&function(e,t){return 2===$l(e)?e.get(t):e[t]}(r.t,t)===o||Vl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=nc(this),n=dc(this,e,void 0);return n[Dc].C=!0,tc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Dc]).A;return Ql(n,t),oc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!bc&&Ll(20),this.g=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=Zl("Patches").$;return Rl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Fc=new Bc,Tc=Fc.produce;Fc.produceWithPatches.bind(Fc),Fc.setAutoFreeze.bind(Fc),Fc.setUseProxies.bind(Fc),Fc.applyPatches.bind(Fc);var _c=Fc.createDraft.bind(Fc),Pc=Fc.finishDraft.bind(Fc);function jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nc=new WeakMap,Ic=new WeakMap,Lc=new WeakMap,Rc=new WeakMap,Mc=new WeakMap,zc=new WeakMap;function $c(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 Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Nf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Nf.levels(r),i=Xf.isText(n)?[]:Array.from(Tf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Nf.ancestors(a),Nf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Nf.equals(u,s))return[];var l=[],c=[];for(var f of Nf.ancestors(u)){var d=Nf.transform(f,e);l.push(d)}for(var p of Nf.ancestors(s)){var h=Nf.transform(p,e);c.push(h)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Nf.ancestors(m)];case"split_node":var{path:b}=e;return[...Nf.levels(b),Nf.next(b)];default:return[]}};function Uc(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 Wc,Gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Jc(e):e,o=Wc.None,i=Wc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=ff(s,l);if([o,i]=n?[i,c]:[c,o],df(o,Wc.ZWJ)&&df(i,Wc.ExtPict)&&!vf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(df(o,Wc.RI)&&df(i,Wc.RI)&&!(u=null!==u?!u:!!n||mf(e.substring(0,e.length-a))))break;if(o!==Wc.None&&i!==Wc.None&&hf(o,i))break;a+=s.length}return a||1},qc=/\s/,Kc=/[\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]/,Yc=/['\u2018\u2019]/,Xc=(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)]},Zc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(qc.test(t))return!1;if(Yc.test(t)){var o=Gc(n,r),[i,a]=Xc(n,o,r);if(e(i,a,r))return!0}return!Kc.test(t)},Jc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(ef(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Qc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Qc=e=>e>=55296&&e<=56319,ef=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"}(Wc||(Wc={}));var tf=/^(?:[\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])$/,nf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,rf=/^(?:[\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])$/,of=/^[\u1100-\u115F\uA960-\uA97C]$/,af=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,uf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,sf=/^[\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]$/,lf=/^[\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]$/,cf=/^(?:[\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])$/,ff=(e,t)=>{var n=Wc.Any;return-1!==e.search(tf)&&(n|=Wc.Extend),8205===t&&(n|=Wc.ZWJ),t>=127462&&t<=127487&&(n|=Wc.RI),-1!==e.search(nf)&&(n|=Wc.Prepend),-1!==e.search(rf)&&(n|=Wc.SpacingMark),-1!==e.search(of)&&(n|=Wc.L),-1!==e.search(af)&&(n|=Wc.V),-1!==e.search(uf)&&(n|=Wc.T),-1!==e.search(sf)&&(n|=Wc.LV),-1!==e.search(lf)&&(n|=Wc.LVT),-1!==e.search(cf)&&(n|=Wc.ExtPict),n};function df(e,t){return 0!=(e&t)}var pf=[[Wc.L,Wc.L|Wc.V|Wc.LV|Wc.LVT],[Wc.LV|Wc.V,Wc.V|Wc.T],[Wc.LVT|Wc.T,Wc.T],[Wc.Any,Wc.Extend|Wc.ZWJ],[Wc.Any,Wc.SpacingMark],[Wc.Prepend,Wc.Any],[Wc.ZWJ,Wc.ExtPict],[Wc.RI,Wc.RI]];function hf(e,t){return-1===pf.findIndex((n=>df(e,n[0])&&df(t,n[1])))}var gf=/(?:[\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$/,vf=e=>-1!==e.search(gf),yf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,mf=e=>{var t=e.match(yf);return null!==t&&t[0].length/2%2==1},bf=e=>Il(e)&&Tf.isNodeList(e.children)&&!Af.isEditor(e),wf={isAncestor:e=>Il(e)&&Tf.isNodeList(e.children),isElement:bf,isElementList:e=>Array.isArray(e)&&e.every((e=>wf.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 bf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Ef=["text"],Df=["text"];function Sf(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 xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cf=new WeakMap,Af={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=Af.path(e,o),u="lowest"===r;for(var[s,l]of Af.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Xf.isText(s)&&!Nf.equals(a,l))return[s,l]}},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:Af.point(e,t,{edge:"end"}),focus:Af.end(e,[])},{distance:i=1}=r,a=0;for(var u of Af.positions(e,xf(xf({},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:Af.start(e,[]),focus:Af.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Af.positions(e,xf(xf({},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)=>[Af.start(e,t),Af.end(e,t)],end:(e,t)=>Af.point(e,t,{edge:"end"}),first(e,t){var n=Af.path(e,t,{edge:"start"});return Af.node(e,n)},fragment(e,t){var n=Af.range(e,t);return Tf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Af.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Xf.isText(t)||Af.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Xf.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)=>wf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Il(e))return!1;var t=Cf.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||Il(e.marks))&&(null===e.selection||Vf.isRange(e.selection))&&Tf.isNodeList(e.children)&&jf.isOperationList(e.operations);return Cf.set(e,n),n},isEnd(e,t,n){var r=Af.end(e,n);return Mf.equals(t,r)},isEdge:(e,t,n)=>Af.isStart(e,t,n)||Af.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Xf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>wf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Lc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Af.start(e,n);return Mf.equals(t,r)},isVoid:(e,t)=>wf.isElement(t)&&e.isVoid(t),last(e,t){var n=Af.path(e,t,{edge:"end"});return Af.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n);return[Tf.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=Af.path(e,n);for(var[s,l]of Tf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Af.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(Vf.isExpanded(n)){var[r]=Af.nodes(e,{match:Xf.isText});if(r){var[o]=r;return Uc(o,Ef)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Af.leaf(e,a);if(0===i.offset){var s=Af.previous(e,{at:a,match:Xf.isText}),l=Af.above(e,{match:t=>Af.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Nf.isAncestor(d,f)&&(u=c)}}return Uc(u,Df)},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=Af.after(e,i,{voids:r});if(a){var[,u]=Af.last(e,[]),s=[a.path,u];if(Nf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Nf.isPath(i)){var[l]=Af.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Af.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n);return[Tf.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,l;if(Of.isSpan(n))s=n[0],l=n[1];else{var c=Af.path(e,n,{edge:"start"}),f=Af.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Tf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Af.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Nf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Xf.isText(g))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=>Nc.get(e)||[];if(Af.isNormalizing(e)){if(n){var o=Array.from(Tf.nodes(e),(e=>{var[,t]=e;return t}));Nc.set(e,o)}0!==r(e).length&&Af.withoutNormalizing(e,(()=>{for(var t of r(e))if(Tf.has(e,t)){var n=Af.node(e,t),[o,i]=n;wf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Tf.has(e,s)){var l=Af.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n),o=Nf.parent(r);return Af.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Nf.isPath(t))if("start"===o){var[,i]=Tf.first(e,t);t=i}else if("end"===o){var[,a]=Tf.last(e,t);t=a}return Vf.isRange(t)&&(t="start"===o?Vf.start(t):"end"===o?Vf.end(t):Nf.common(t.anchor.path,t.focus.path)),Mf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Tf.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 Af.pathRefs(e).delete(o),o.current=null,t}};return Af.pathRefs(e).add(o),o},pathRefs(e){var t=Rc.get(e);return t||(t=new Set,Rc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Nf.isPath(t)){var o;if("end"===r){var[,i]=Tf.last(e,t);o=i}else{var[,a]=Tf.first(e,t);o=a}var u=Tf.get(e,o);if(!Xf.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(Vf.isRange(t)){var[s,l]=Vf.edges(t);return"start"===r?s:l}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 Af.pointRefs(e).delete(o),o.current=null,t}};return Af.pointRefs(e).add(o),o},pointRefs(e){var t=Mc.get(e);return t||(t=new Set,Mc.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=Af.range(e,n),[u,s]=Vf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of Af.nodes(e,{at:n,reverse:o,voids:i})){if(wf.isElement(g)){if(!i&&e.isVoid(g)){yield Af.start(e,v);continue}if(e.isInline(g))continue;if(Af.hasInlines(e,g)){var y=Nf.isAncestor(v,s.path)?s:Af.end(e,v),m=Nf.isAncestor(v,u.path)?u:Af.start(e,v);f=Af.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Xf.isText(g)){var b=Nf.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=Xc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Gc(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=Gc(e,t),[i,a]=Xc(e,o,t);if(Zc(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=Af.before(e,i,{voids:r});if(a){var[,u]=Af.first(e,[]),s=[a.path,u];if(Nf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Nf.isPath(i)){var[l]=Af.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Af.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Vf.isRange(t)&&!n?t:{anchor:Af.start(e,t),focus:Af.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 Af.rangeRefs(e).delete(o),o.current=null,t}};return Af.rangeRefs(e).add(o),o},rangeRefs(e){var t=zc.get(e);return t||(t=new Set,zc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Lc.set(e,t)},start:(e,t)=>Af.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Af.range(e,t),[i,a]=Vf.edges(o),u="";for(var[s,l]of Af.nodes(e,{at:o,match:Xf.isText,voids:r})){var c=s.text;Nf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Nf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Vf.edges(t);if(0!==o.offset||0!==i.offset||Vf.isCollapsed(t))return t;var a=Af.above(e,{at:i,match:t=>Af.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Af.start(e,[]),focus:i},l=!0;for(var[c,f]of Af.nodes(e,{at:s,match:Xf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Nf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Af.above(e,xf(xf({},t),{},{match:t=>Af.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Af.isNormalizing(e);Af.setNormalizing(e,!1);try{t()}finally{Af.setNormalizing(e,n)}Af.normalize(e)}},Of={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Nf.isPath)},kf=["children"],Bf=["text"],Ff=new WeakMap,Tf={ancestor(e,t){var n=Tf.get(e,t);if(Xf.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 Nf.ancestors(t,n)){var o=[Tf.ancestor(e,r),r];yield o}},child(e,t){if(Xf.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=Tf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Tf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Nf.common(t,n);return[Tf.get(e,r),r]},descendant(e,t){var n=Tf.get(e,t);if(Af.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 Tf.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 Tf.nodes(e,t))wf.isElement(n)&&(yield[n,r])},extractProps:e=>wf.isAncestor(e)?Uc(e,kf):Uc(e,Bf),first(e,t){for(var n=t.slice(),r=Tf.get(e,n);r&&!Xf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Xf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Tc({children:e.children},(e=>{var[n,r]=Vf.edges(t),o=Tf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Vf.includes(t,n)}});for(var[,i]of o){if(!Vf.includes(t,i)){var a=Tf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Nf.equals(i,r.path)){var s=Tf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Nf.equals(i,n.path)){var l=Tf.leaf(e,i);l.text=l.text.slice(n.offset)}}Af.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(Xf.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(Xf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Xf.isText(e)||wf.isElement(e)||Af.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Ff.get(e);if(void 0!==t)return t;var n=e.every((e=>Tf.isNode(e)));return Ff.set(e,n),n},last(e,t){for(var n=t.slice(),r=Tf.get(e,n);r&&!Xf.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=Tf.get(e,t);if(!Xf.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 Nf.levels(t,n)){var o=Tf.get(e,r);yield[o,r]}},matches:(e,t)=>wf.isElement(e)&&wf.isElementProps(t)&&wf.matches(e,t)||Xf.isText(e)&&Xf.isTextProps(t)&&Xf.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?Nf.isBefore(u,i):Nf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Xf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Nf.next(u);if(Tf.has(e,l)){u=l,s=Tf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Nf.previous(u),s=Tf.get(e,u)):(u=Nf.parent(u),s=Tf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Nf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Tf.get(e,u)}},parent(e,t){var n=Nf.parent(t),r=Tf.get(e,n);if(Xf.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=>Xf.isText(e)?e.text:e.children.map(Tf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tf.nodes(e,t))Xf.isText(n)&&(yield[n,r])}};function _f(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 Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf={isNodeOperation:e=>jf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Il(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Nf.isPath(e.path)&&Tf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Nf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Nf.isPath(e.path)&&Il(e.properties);case"move_node":return Nf.isPath(e.path)&&Nf.isPath(e.newPath);case"set_node":return Nf.isPath(e.path)&&Il(e.properties)&&Il(e.newProperties);case"set_selection":return null===e.properties&&Vf.isRange(e.newProperties)||null===e.newProperties&&Vf.isRange(e.properties)||Il(e.properties)&&Il(e.newProperties);case"split_node":return Nf.isPath(e.path)&&"number"==typeof e.position&&Il(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>jf.isOperation(e))),isSelectionOperation:e=>jf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>jf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Pf(Pf({},e),{},{type:"remove_node"});case"insert_text":return Pf(Pf({},e),{},{type:"remove_text"});case"merge_node":return Pf(Pf({},e),{},{type:"split_node",path:Nf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Nf.equals(t,n))return e;if(Nf.isSibling(n,t))return Pf(Pf({},e),{},{path:t,newPath:n});var r=Nf.transform(n,e),o=Nf.transform(Nf.next(n),e);return Pf(Pf({},e),{},{path:r,newPath:o});case"remove_node":return Pf(Pf({},e),{},{type:"insert_node"});case"remove_text":return Pf(Pf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Pf(Pf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Pf(Pf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Pf(Pf({},e),{},{type:"merge_node",path:Nf.next(e.path)})}}},Nf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Nf.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 Nf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Nf.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 Nf.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===Nf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Nf.compare(e,t),isBefore:(e,t)=>-1===Nf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Nf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Nf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Nf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Nf.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]&&Nf.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)},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(!Nf.isAncestor(t,e)&&!Nf.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 Tc(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;(Nf.equals(i,r)||Nf.endsBefore(i,r)||Nf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Nf.equals(a,r)||Nf.isAncestor(a,r))return null;Nf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Nf.equals(u,r)||Nf.endsBefore(u,r)?r[u.length-1]-=1:Nf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Nf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Nf.endsBefore(l,r)?r[l.length-1]+=1:Nf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Nf.equals(f,d))return;if(Nf.isAncestor(f,r)||Nf.equals(f,r)){var p=d.slice();return Nf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Nf.isSibling(f,d)&&(Nf.isAncestor(d,r)||Nf.equals(d,r))?Nf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Nf.endsBefore(d,r)||Nf.equals(d,r)||Nf.isAncestor(d,r)?(Nf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Nf.endsBefore(f,r)&&(Nf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},If={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Nf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Lf(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 Rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf={compare(e,t){var n=Nf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Mf.compare(e,t),isBefore:(e,t)=>-1===Mf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Nf.equals(e.path,t.path),isPoint:e=>Il(e)&&"number"==typeof e.offset&&Nf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Tc(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=Nf.transform(o,t,n);break;case"insert_text":Nf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Nf.equals(t.path,o)&&(e.offset+=t.position),e.path=Nf.transform(o,t,n);break;case"remove_text":Nf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Nf.equals(t.path,o)||Nf.isAncestor(t.path,o))return null;e.path=Nf.transform(o,t,n);break;case"split_node":if(Nf.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=Nf.transform(o,t,Rf(Rf({},n),{},{affinity:"forward"})))}else e.path=Nf.transform(o,t,n)}}))}},zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Mf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},$f=["anchor","focus"];function Hf(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 Vf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Vf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Vf.edges(e);return t},equals:(e,t)=>Mf.equals(e.anchor,t.anchor)&&Mf.equals(e.focus,t.focus),includes(e,t){if(Vf.isRange(t)){if(Vf.includes(e,t.anchor)||Vf.includes(e,t.focus))return!0;var[n,r]=Vf.edges(e),[o,i]=Vf.edges(t);return Mf.isBefore(n,o)&&Mf.isAfter(r,i)}var[a,u]=Vf.edges(e),s=!1,l=!1;return Mf.isPoint(t)?(s=Mf.compare(t,a)>=0,l=Mf.compare(t,u)<=0):(s=Nf.compare(t,a.path)>=0,l=Nf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Uc(e,$f),[r,o]=Vf.edges(e),[i,a]=Vf.edges(t),u=Mf.isBefore(r,i)?i:r,s=Mf.isBefore(o,a)?o:a;return Mf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(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 Mf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Mf.equals(t,n)},isExpanded:e=>!Vf.isCollapsed(e),isForward:e=>!Vf.isBackward(e),isRange:e=>Il(e)&&Mf.isPoint(e.anchor)&&Mf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Vf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Tc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Vf.isCollapsed(e);Vf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Vf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Mf.transform(e.anchor,t,{affinity:r}),s=Mf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Uf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Vf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Wf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Il(r)&&Il(o)){if(!Wf(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},Gf=["text"],qf=["anchor","focus"];function Kf(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 Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Uc(e,Gf)}return Wf(r?o(e):e,r?o(t):t)},isText:e=>Il(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Xf.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=[Yf({},e)];for(var r of t){var o=Uc(r,qf),[i,a]=Vf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);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(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=Yf(Yf({},d),{},{text:d.text.slice(g)}),d=Yf(Yf({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Yf(Yf({},d),{},{text:d.text.slice(0,v)}),d=Yf(Yf({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Zf(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 Jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qf={transform(e,t){e.children=_c(e.children);var n=e.selection&&_c(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Tf.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 Vf.points(t))t[s]=Mf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Tf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Vf.points(t))t[v]=Mf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Tf.get(e,y),b=Nf.previous(y),w=Tf.get(e,b),E=Tf.parent(e,y),D=y[y.length-1];if(Xf.isText(m)&&Xf.isText(w))w.text+=m.text;else{if(Xf.isText(m)||Xf.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(D,1),t)for(var[S,x]of Vf.points(t))t[x]=Mf.transform(S,n);break;case"move_node":var{path:C,newPath:A}=n;if(Nf.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Tf.get(e,C),k=Tf.parent(e,C),B=C[C.length-1];k.children.splice(B,1);var F=Nf.transform(C,n),T=Tf.get(e,Nf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Vf.points(t))t[j]=Mf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Tf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Vf.points(t)){var M=Mf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Tf.texts(e)){if(-1!==Nf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Nf.equals($[1],N)?!Nf.hasPrevious($[1]):Nf.common(z[1],N).length<Nf.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Tf.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 Vf.points(t))t[J]=Mf.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=Tf.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(!Vf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Jf({},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:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Tf.get(e,le),he=Tf.parent(e,le),ge=le[le.length-1];if(Xf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Jf(Jf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Jf(Jf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Vf.points(t))t[Ee]=Mf.transform(we,n)}return t})(e,n,t)}finally{e.children=Pc(e.children),e.selection=n?Rl(n)?Pc(n):n:null}}},ed=["text"],td=["children"];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){jc(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={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Tf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Af.end(e,[]):[0],s=!0),null==s&&(s=!1),Vf.isRange(a))if(r||(a=Af.unhangRange(e,a)),Vf.isCollapsed(a))a=a.anchor;else{var[,c]=Vf.edges(a),f=Af.pointRef(e,c);hd.delete(e,{at:a}),a=f.unref()}if(Mf.isPoint(a)){null==u&&(u=Xf.isText(l)?e=>Xf.isText(e):e.isInline(l)?t=>Xf.isText(t)||Af.isInline(e,t):t=>Af.isBlock(e,t));var[d]=Af.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Af.pathRef(e,p),g=Af.isEnd(e,a,p);hd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Nf.next(v):v}var y=Nf.parent(a),m=a[a.length-1];if(o||!Af.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=Nf.next(a)}if(a=Nf.previous(a),s){var E=Af.end(e,a);E&&hd.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Nf.isPath(n)?ud(e,n):t=>Af.isBlock(e,t)),n){var a=Af.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Af.node(e,Nf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Nf.next(d);hd.moveNodes(e,{at:l,to:g,voids:o}),hd.removeNodes(e,{at:d,voids:o})}else if(0===p)hd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Nf.next(d);hd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Nf.next(l),m=Nf.next(d);hd.splitNodes(e,{at:y,voids:o}),hd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.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(Nf.isPath(r)){var[u]=Af.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Af.isBlock(e,t);if(!o&&Vf.isRange(r)&&(r=Af.unhangRange(e,r)),Vf.isRange(r))if(Vf.isCollapsed(r))r=r.anchor;else{var[,s]=Vf.edges(r),l=Af.pointRef(e,s);hd.delete(e,{at:r}),r=l.unref(),null==t.at&&hd.select(e,r)}var[c]=Af.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Af.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Nf.next(g),b=Nf.common(p,g),w=Nf.isSibling(p,g),E=Array.from(Af.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=Af.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&id(e,t)}),S=D&&Af.pathRef(e,D[1]);if(Xf.isText(d)&&Xf.isText(h)){var x=Uc(d,ed);y=h.text.length,v=x}else{if(!wf.isElement(d)||!wf.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)));x=Uc(d,td),y=h.children.length,v=x}w||hd.moveNodes(e,{at:p,to:m,voids:i}),S&&hd.removeNodes(e,{at:S.current,voids:i}),wf.isElement(h)&&Af.isEmpty(e,h)||Xf.isText(h)&&""===h.text&&0!==g[g.length-1]?hd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),S&&S.unref()}}}}))},moveNodes(e,t){Af.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Nf.isPath(r)?ud(e,r):t=>Af.isBlock(e,t));var u=Af.pathRef(e,n),s=Af.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Nf.isSibling(d,f)&&Nf.isAfter(d,f)&&(u.current=Nf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.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=Nf.isPath(i)?ud(e,i):t=>Af.isBlock(e,t)),!n&&Vf.isRange(i)&&(i=Af.unhangRange(e,i));var u=Af.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Af.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.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=Nf.isPath(o)?ud(e,o):t=>Af.isBlock(e,t)),!i&&Vf.isRange(o)&&(o=Af.unhangRange(e,o)),u&&Vf.isRange(o)){if(Vf.isCollapsed(o)&&Af.leaf(e,o.anchor)[0].text.length>0)return;var l=Af.rangeRef(e,o,{affinity:"inward"}),[c,f]=Vf.edges(o),d="lowest"===a?"lowest":"highest",p=Af.isEnd(e,f,f.path);hd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Af.isStart(e,c,c.path);hd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&hd.select(e,o)}for(var[g,v]of Af.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.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=>Af.isBlock(e,t)),Vf.isRange(i)&&(i=ad(e,i)),Nf.isPath(i)){var s=i,l=Af.point(e,s),[c]=Af.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Af.pointRef(e,i,{affinity:"backward"}),[d]=Af.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Af.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(wf.isElement(h)&&e.isInline(h)){var v=Af.after(e,g);if(!v){var y=Nf.next(g);hd.insertNodes(e,{text:""},{at:y,voids:r}),v=Af.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Af.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),D=0===a?i.offset:i.path[b]+0;for(var[S,x]of Af.levels(e,{at:E,reverse:!0,voids:r})){var C=!1;if(x.length<w.length||0===x.length||!r&&Af.isVoid(e,S))break;var A=f.current,O=Af.isEnd(e,A,x);if(u||!f||!Af.isEdge(e,A,x)){C=!0;var k=Tf.extractProps(S);e.apply({type:"split_node",path:x,position:D,properties:k})}D=x[x.length-1]+(C||O?1:0)}if(null==t.at){var B=m.current||Af.end(e,[]);hd.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;hd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.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=Nf.isPath(i)?ud(e,i):t=>Af.isBlock(e,t)),Nf.isPath(i)&&(i=Af.range(e,i));var u=Vf.isRange(i)?Af.rangeRef(e,i):null,s=Af.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Af.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Af.node(e,n),a=Af.range(e,n);r&&u&&(a=Vf.intersection(u.current,a)),hd.liftNodes(e,{at:a,match:e=>wf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.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=Nf.isPath(u)?ud(e,u):e.isInline(t)?t=>Af.isInline(e,t)||Xf.isText(t):t=>Af.isBlock(e,t)),o&&Vf.isRange(u)){var[s,l]=Vf.edges(u),c=Af.rangeRef(e,u,{affinity:"inward"});hd.splitNodes(e,{at:l,match:a,voids:i}),hd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&hd.select(e,u)}var f=Array.from(Af.nodes(e,{at:u,match:e.isInline(t)?t=>Af.isBlock(e,t):e=>Af.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Vf.isRange(u)?Vf.intersection(u,Af.range(e,d)):u;if(p){var h=Array.from(Af.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Nf.equals(o,a)?Nf.parent(o):Nf.common(o,a),s=Af.range(e,o,a),l=Af.node(e,u),[c]=l,f=u.length+1,d=Nf.next(a.slice(0,f)),p=rd(rd({},t),{},{children:[]});hd.insertNodes(e,p,{at:d,voids:i}),hd.moveNodes(e,{at:s,match:e=>wf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},id=(e,t)=>{if(wf.isElement(t)){var n=t;return!!Af.isVoid(e,t)||1===n.children.length&&id(e,n.children[0])}return!Af.isEditor(t)},ad=(e,t)=>{if(Vf.isCollapsed(t))return t.anchor;var[,n]=Vf.edges(t),r=Af.pointRef(e,n);return hd.delete(e,{at:t}),r.unref()},ud=(e,t)=>{var[n]=Af.node(e,t);return e=>e===n};function sd(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?sd(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd={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)hd.select(e,r.anchor);else if("focus"===n)hd.select(e,r.focus);else if("start"===n){var[o]=Vf.edges(r);hd.select(e,o)}else if("end"===n){var[,i]=Vf.edges(r);hd.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=Vf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Vf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Af.before(e,u,l):Af.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Af.before(e,s,l):Af.after(e,s,l);d&&(c.focus=d)}hd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Af.range(e,t),n)hd.setSelection(e,t);else{if(!Vf.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=Vf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Vf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;hd.setSelection(e,{["anchor"===o?"anchor":"focus"]:ld(ld({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Mf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Mf.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})}}},fd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.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(Vf.isRange(a)&&Vf.isCollapsed(a)&&(a=a.anchor),Mf.isPoint(a)){var s=Af.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Af.before(e,a,c)||Af.start(e,[]):Af.after(e,a,c)||Af.end(e,[])},u=!0}}if(Nf.isPath(a))hd.removeNodes(e,{at:a,voids:i});else if(!Vf.isCollapsed(a)){if(!u){var[,f]=Vf.edges(a),d=Af.end(e,[]);Mf.equals(f,d)||(a=Af.unhangRange(e,a,{voids:i}))}var[p,h]=Vf.edges(a),g=Af.above(e,{match:t=>Af.isBlock(e,t),at:p,voids:i}),v=Af.above(e,{match:t=>Af.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Nf.equals(g[1],v[1]),m=Nf.equals(p.path,h.path),b=i?null:Af.void(e,{at:p,mode:"highest"}),w=i?null:Af.void(e,{at:h,mode:"highest"});if(b){var E=Af.before(e,p);E&&g&&Nf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Af.after(e,h);D&&v&&Nf.isAncestor(v[1],D.path)&&(h=D)}var S,x=[];for(var C of Af.nodes(e,{at:a,voids:i})){var[A,O]=C;S&&0===Nf.compare(O,S)||(!i&&Af.isVoid(e,A)||!Nf.isCommon(O,p.path)&&!Nf.isCommon(O,h.path))&&(x.push(C),S=O)}var k=Array.from(x,(t=>{var[,n]=t;return Af.pathRef(e,n)})),B=Af.pointRef(e,p),F=Af.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Af.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();hd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Af.leaf(e,R),{path:z}=R,$=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&&hd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&hd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Vf.isRange(i))if(r||(i=Af.unhangRange(e,i)),Vf.isCollapsed(i))i=i.anchor;else{var[,a]=Vf.edges(i);if(!o&&Af.void(e,{at:a}))return;var u=Af.pointRef(e,a);hd.delete(e,{at:i}),i=u.unref()}else Nf.isPath(i)&&(i=Af.start(e,i));if(o||!Af.void(e,{at:i})){var s=Af.above(e,{at:i,match:t=>Af.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Af.isEnd(e,i,l)?i=Af.after(e,l):Af.isStart(e,i,l)&&(i=Af.before(e,l))}var c=Af.above(e,{match:t=>Af.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Af.isStart(e,i,f),p=Af.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Tf.first({children:t},[]),[,m]=Tf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Nf.isAncestor(r,y)&&wf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Nf.isAncestor(r,m)&&wf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Tf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],S=[],x=[],C=!0,A=!1;for(var[O]of b)wf.isElement(O)&&!e.isInline(O)?(C=!1,A=!0,S.push(O)):C?D.push(O):x.push(O);var[k]=Af.nodes(e,{at:i,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Af.isStart(e,i,B),T=Af.isEnd(e,i,B),_=Af.pathRef(e,p?Nf.next(f):f),P=Af.pathRef(e,T?Nf.next(B):B),j=Af.pathRef(e,f);hd.splitNodes(e,{at:i,match:t=>A?Af.isBlock(e,t):Xf.isText(t)||Af.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Af.pathRef(e,!F||F&&T?Nf.next(B):B);if(hd.insertNodes(e,D,{at:N.current,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),h&&S.length&&hd.delete(e,{at:j.unref(),voids:o}),hd.insertNodes(e,S,{at:_.current,match:t=>Af.isBlock(e,t),mode:"lowest",voids:o}),hd.insertNodes(e,x,{at:P.current,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=x.length>0?Nf.previous(P.current):S.length>0?Nf.previous(_.current):Nf.previous(N.current);var L=Af.end(e,I);hd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Nf.isPath(o)&&(o=Af.range(e,o)),Vf.isRange(o))if(Vf.isCollapsed(o))o=o.anchor;else{var i=Vf.end(o);if(!r&&Af.void(e,{at:i}))return;var a=Af.pointRef(e,i);hd.delete(e,{at:o,voids:r}),o=a.unref(),hd.setSelection(e,{anchor:o,focus:o})}if(r||!Af.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function dd(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 pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd=pd(pd(pd(pd({},Qf),od),cd),fd),gd="[object Map]",vd="[object Set]",yd=/^\[object .+?Constructor\]$/,md=/^(?:0|[1-9]\d*)$/,bd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",wd="\\ud83c[\\udffb-\\udfff]",Ed="[^\\ud800-\\udfff]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Sd="[\\ud800-\\udbff][\\udc00-\\udfff]",xd="(?:"+bd+"|"+wd+")?",Cd="[\\ufe0e\\ufe0f]?"+xd+"(?:\\u200d(?:"+[Ed,Dd,Sd].join("|")+")[\\ufe0e\\ufe0f]?"+xd+")*",Ad="(?:"+[Ed+bd+"?",bd,Dd,Sd,"[\\ud800-\\udfff]"].join("|")+")",Od=RegExp(wd+"(?="+wd+")|"+Ad+Cd,"g"),kd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Bd="object"==typeof o&&o&&o.Object===Object&&o,Fd="object"==typeof self&&self&&self.Object===Object&&self,Td=Bd||Fd||Function("return this")();function _d(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Pd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var jd,Nd,Id=Function.prototype,Ld=Object.prototype,Rd=Td["__core-js_shared__"],Md=function(){var e=/[^.]+$/.exec(Rd&&Rd.keys&&Rd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),zd=Id.toString,$d=Ld.hasOwnProperty,Hd=Ld.toString,Vd=RegExp("^"+zd.call($d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ud=Td.Symbol,Wd=Ud?Ud.iterator:void 0,Gd=Ld.propertyIsEnumerable,qd=(jd=Object.keys,Nd=Object,function(e){return jd(Nd(e))}),Kd=op(Td,"DataView"),Yd=op(Td,"Map"),Xd=op(Td,"Promise"),Zd=op(Td,"Set"),Jd=op(Td,"WeakMap"),Qd=up(Kd),ep=up(Yd),tp=up(Xd),np=up(Zd),rp=up(Jd);function op(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!fp(e)||function(e){return!!Md&&Md in e}(e))return!1;var t=cp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Vd:yd;return t.test(up(e))}(n)?n:void 0}var ip=function(e){return Hd.call(e)};function ap(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||md.test(e))&&e>-1&&e%1==0&&e<t}function up(e){if(null!=e){try{return zd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Kd&&"[object DataView]"!=ip(new Kd(new ArrayBuffer(1)))||Yd&&ip(new Yd)!=gd||Xd&&"[object Promise]"!=ip(Xd.resolve())||Zd&&ip(new Zd)!=vd||Jd&&"[object WeakMap]"!=ip(new Jd))&&(ip=function(e){var t=Hd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?up(n):void 0;if(r)switch(r){case Qd:return"[object DataView]";case ep:return gd;case tp:return"[object Promise]";case np:return vd;case rp:return"[object WeakMap]"}return t});var sp=Array.isArray;function lp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!cp(e)}function cp(e){var t=fp(e)?Hd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function fp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dp(e){return!!e&&"object"==typeof e}function pp(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 lp(e)?function(e,t){var n=sp(e)||function(e){return function(e){return dp(e)&&lp(e)}(e)&&$d.call(e,"callee")&&(!Gd.call(e,"callee")||"[object Arguments]"==Hd.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&&!$d.call(e,i)||o&&("length"==i||ap(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Ld))return qd(e);var t,n,r=[];for(var o in Object(e))$d.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var hp=function(e){if(!e)return[];if(lp(e))return function(e){return"string"==typeof e||!sp(e)&&dp(e)&&"[object String]"==Hd.call(e)}(e)?function(e){return function(e){return kd.test(e)}(e)?function(e){return e.match(Od)||[]}(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(Wd&&e[Wd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Wd]());var t=ip(e);return(t==gd?_d:t==vd?Pd:pp)(e)};function gp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function vp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:gp(t[n])&&gp(e[n])&&Object.keys(t[n]).length>0&&vp(e[n],t[n])}))}var yp={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 mp(){var e="undefined"!=typeof document?document:{};return vp(e,yp),e}var bp={document:yp,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 wp(){var e="undefined"!=typeof window?window:{};return vp(e,bp),e}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ep(e)}function Dp(e,t){return Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dp(e,t)}function Sp(){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}}function xp(e,t,n){return xp=Sp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Dp(o,n.prototype),o},xp.apply(null,arguments)}function Cp(e){var t="function"==typeof Map?new Map:void 0;return Cp=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 xp(e,arguments,Ep(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dp(n,e)},Cp(e)}var Ap=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}(Cp(Array));function Op(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Op(e)):t.push(e)})),t}function kp(e,t){return Array.prototype.filter.call(e,t)}function Bp(e,t){var n=wp(),r=mp(),o=[];if(!t&&e instanceof Ap)return e;if(!e)return new Ap(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 Ap)return e;o=e}return new Ap(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 Fp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Op(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Tp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Op(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function _p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Op(t.map((function(e){return e.split(" ")})));return kp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Pp(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 jp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Np(){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 Ip(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 Lp(){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),Bp(t).is(o))i.apply(t,n);else for(var r=Bp(t).parents(),a=0;a<r.length;a+=1)Bp(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 l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];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(l=0;l<c.length;l+=1){var h=c[l];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 Rp(){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 l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),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(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Mp(){var e=wp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function zp(){var e=wp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function $p(){if(this.length>0){var e=wp(),t=mp(),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 Hp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Vp(){for(var e=wp(),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 Up(e,t){var n,r=wp();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 Wp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Gp(e){return Bp(kp(this,e))}function qp(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 Kp(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 Yp(e){var t,n,r=wp(),o=mp(),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=Bp(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 Ap){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Xp(){for(var e,t=mp(),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 Ap)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Zp(e){var t,n,r=mp();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 Ap)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 Jp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Bp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Bp(t)}function Qp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Bp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Bp(t)}function eh(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 Bp(t)}function th(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&&!Bp(r[o]).is(e)||t.push(r[o]);return Bp(t)}function nh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function rh(){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}Bp.fn=Ap.prototype;var oh="resize scroll".split(" ");function ih(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)oh.indexOf(e)<0&&(e in this[o]?this[o][e]():Bp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var ah=ih("click"),uh=ih("focus"),sh=/^(?:0|[1-9]\d*)$/;function lh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var ch=Object.prototype,fh=ch.hasOwnProperty,dh=ch.toString,ph=ch.propertyIsEnumerable,hh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var gh,vh=(gh=function(e,t){return e&&yh(e,t,Eh)},function(e,t){if(null==e)return e;if(!wh(e))return gh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),yh=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 mh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||sh.test(e))&&e>-1&&e%1==0&&e<t}var bh=Array.isArray;function wh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?dh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Eh(e){return wh(e)?function(e,t){var n=bh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&wh(e)}(e)&&fh.call(e,"callee")&&(!ph.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||mh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||ch))return hh(e);var t,n,r=[];for(var o in Object(e))fh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Dh(e){return e}var Sh=function(e,t){return(bh(e)?lh:vh)(e,"function"==typeof t?t:Dh)};let xh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Ch=/^\s+|\s+$/g,Ah=/^[-+]0x[0-9a-f]+$/i,Oh=/^0b[01]+$/i,kh=/^0o[0-7]+$/i,Bh=parseInt,Fh="object"==typeof o&&o&&o.Object===Object&&o,Th="object"==typeof self&&self&&self.Object===Object&&self,_h=Fh||Th||Function("return this")(),Ph=Object.prototype.toString,jh=Math.max,Nh=Math.min,Ih=function(){return _h.Date.now()};function Lh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Rh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Ph.call(e)}(e))return NaN;if(Lh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Lh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ch,"");var n=Oh.test(e);return n||kh.test(e)?Bh(e.slice(2),n?2:8):Ah.test(e)?NaN:+e}var Mh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Lh(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,l=0,c=!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,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Ih();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Nh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Ih(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Rh(t)||0,Lh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?jh(Rh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Ih())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const zh={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)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){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}};function $h(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 Hh=Array.isArray;function Vh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Uh(e){return void 0===e}function Wh(e){return void 0!==e}const Gh=$h("",{},[],void 0,void 0);function qh(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);return e.sel===t.sel&&o&&i}function Kh(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 Yh=["create","update","remove","destroy","pre","post"];function Xh(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:zh;for(const t of Yh)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Wh(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Uh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Wh(s)&&Wh(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Gh,e);if(Hh(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Vh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Wh(v)&&(null===(a=v.create)||void 0===a||a.call(v,Gh,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.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&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Wh(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Wh(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Uh(t.text)?Wh(v)&&Wh(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:qh(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):qh(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):qh(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):qh(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Kh(t,p,g)),c=u[b.key],Uh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Wh(y)?(Wh(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Wh(v)?s(g,v,0,v.length-1):Wh(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Wh(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return $h(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),qh(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Zh(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].data;void 0!==n&&Zh(n,t[e].children,t[e].sel)}}function Jh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Hh(n)?r=n:Vh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Hh(t)?r=t:Vh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Vh(r[i])&&(r[i]=$h(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Zh(a,r,e),$h(e,a,r,o,void 0)}function Qh(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)?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 eg={create:Qh,update:Qh};function tg(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 ng={create:tg,update:tg},rg=/[A-Z]/g;function og(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)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(rg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(rg,"-$&").toLowerCase(),i[r]))}const ig={create:og,update:og};function ag(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++)ag(e[r],t,n)}function ug(e,t){const n=e.type,r=t.data.on;r&&r[n]&&ag(r[n],t,e)}function sg(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){ug(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:sg,update:sg,destroy:sg};function cg(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 fg={create:cg,update:cg},dg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let pg=!1;function hg(e,t,n){!function(e){dg((function(){dg(e)}))}((function(){e[t]=n}))}function gg(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)a[r]||("-"===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]||hg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const vg={pre:function(){pg=!1},create:gg,update:gg,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;pg||(e.elm.offsetLeft,pg=!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 l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function yg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?yg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push($h(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function mg(e,t,...n){const r=yg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Jh(e,t,r[0].text):Jh(e,t,r)}mg||(mg={});var bg,wg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dg="\\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",Sg="["+Dg+"]",xg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Cg="\\d+",Ag="[a-z\\xdf-\\xf6\\xf8-\\xff]",Og="[^\\ud800-\\udfff"+Dg+Cg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",kg="\\ud83c[\\udffb-\\udfff]",Bg="[^\\ud800-\\udfff]",Fg="(?:\\ud83c[\\udde6-\\uddff]){2}",Tg="[\\ud800-\\udbff][\\udc00-\\udfff]",_g="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pg="(?:"+Ag+"|"+Og+")",jg="(?:"+_g+"|"+Og+")",Ng="(?:"+xg+"|"+kg+")?",Ig="[\\ufe0e\\ufe0f]?"+Ng+"(?:\\u200d(?:"+[Bg,Fg,Tg].join("|")+")[\\ufe0e\\ufe0f]?"+Ng+")*",Lg="(?:"+["[\\u2700-\\u27bf]",Fg,Tg].join("|")+")"+Ig,Rg="(?:"+[Bg+xg+"?",xg,Fg,Tg,"[\\ud800-\\udfff]"].join("|")+")",Mg=RegExp("['’]","g"),zg=RegExp(xg,"g"),$g=RegExp(kg+"(?="+kg+")|"+Rg+Ig,"g"),Hg=RegExp([_g+"?"+Ag+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Sg,_g,"$"].join("|")+")",jg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Sg,_g+Pg,"$"].join("|")+")",_g+"?"+Pg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_g+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Cg,Lg].join("|"),"g"),Vg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Ug=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wg="object"==typeof o&&o&&o.Object===Object&&o,Gg="object"==typeof self&&self&&self.Object===Object&&self,qg=Wg||Gg||Function("return this")(),Kg=(bg={"À":"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==bg?void 0:bg[e]});function Yg(e){return Vg.test(e)}var Xg=Object.prototype.toString,Zg=qg.Symbol,Jg=Zg?Zg.prototype:void 0,Qg=Jg?Jg.toString:void 0;function ev(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]"==Xg.call(e)}(e))return Qg?Qg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var tv,nv=(tv=function(e,t,n){return t=t.toLowerCase(),e+(n?rv(ev(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=ev(e),void 0===t?function(e){return Ug.test(e)}(e)?function(e){return e.match(Hg)||[]}(e):function(e){return e.match(wg)||[]}(e):e.match(t)||[]}(function(e){return(e=ev(e))&&e.replace(Eg,Kg).replace(zg,"")}(e).replace(Mg,"")),tv,"")}),rv=("toUpperCase",function(e){var t=Yg(e=ev(e))?function(e){return Yg(e)?function(e){return e.match($g)||[]}(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}),ov=nv,iv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),av={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},uv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:iv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},sv={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},lv=1;lv<20;lv++)sv["f"+lv]=111+lv;function cv(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 av)r[av[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=dv(d),g=av[h];if(d.length>1&&!g&&!uv[d]&&!sv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=fv(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}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 fv(e){return e=dv(e),sv[e]||e.toUpperCase().charCodeAt(0)}function dv(e){return e=e.toLowerCase(),uv[e]||e}var pv=cv,hv=function(e,t){return cv(e,{byKey:!0},t)},gv=/^\s+|\s+$/g,vv=/^[-+]0x[0-9a-f]+$/i,yv=/^0b[01]+$/i,mv=/^0o[0-7]+$/i,bv=parseInt,wv="object"==typeof o&&o&&o.Object===Object&&o,Ev="object"==typeof self&&self&&self.Object===Object&&self,Dv=wv||Ev||Function("return this")(),Sv=Object.prototype.toString,xv=Math.max,Cv=Math.min,Av=function(){return Dv.Date.now()};function Ov(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function kv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Sv.call(e)}(e))return NaN;if(Ov(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ov(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(gv,"");var n=yv.test(e);return n||mv.test(e)?bv(e.slice(2),n?2:8):vv.test(e)?NaN:+e}var Bv,Fv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!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,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Av();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Cv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Av(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=kv(t)||0,Ov(n)&&(c=!!n.leading,i=(f="maxWait"in n)?xv(kv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Av())},m},Tv=i((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[E]=P[D]=P[S]=P[x]=P[C]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof o&&o&&o.Object===Object&&o,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;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 V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(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,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),De=ze(ve),Se=re?re.prototype:void 0,xe=Se?Se.valueOf:void 0;function Ce(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 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 ke(e){this.__data__=new Ae(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,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _=He(e);if(_){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=Le(e),N=j==s||j==l;if(Ue(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==d||j==i||N&&!p){if(V(e))return p?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 Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return _e(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case D:case S:case x:case C:case A:case O:case k:case B:return function(e,t){var n=t?_e(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(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case y:return function(e){return xe?Object(xe.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),!_)var L=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););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,m))})),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(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)||V(e)?te:T).test(ze(e))}(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.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},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.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))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.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},Oe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(pe||Ae),string:new Ce}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},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 Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.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&&Le(new de(new ArrayBuffer(1)))!=w||pe&&Le(new pe)!=c||he&&Le(he.resolve())!=p||ge&&Le(new ge)!=g||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==d?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 p;case Ee:return g;case De:return m}return t});var He=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!We(e)}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==s||t==l}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(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 a in e)!t&&!Q.call(e,a)||o&&("length"==a||Re(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 _v(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Pv=0;function jv(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}function Nv(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=jv(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Iv=(Bv=function(e){return"__private_"+Pv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Bv,{value:Lv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(_v(this,Bv)[Bv],this):_v(this,Bv)[Bv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(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 Nv(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 Nv(n,t)}});function Lv(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 Rv=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};let{urlAlphabet:Mv}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},zv=e=>crypto.getRandomValues(new Uint8Array(e)),$v=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Hv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>$v(e,t,zv),customRandom:$v,urlAlphabet:Mv,random:zv},Vv=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 Uv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Uv.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 Wv=/[\/\+\.]/,Gv=0;var qv=function(e){return"__private_"+Gv+++"_"+e}("publish");class Kv{constructor(){Object.defineProperty(this,qv,{value:Yv}),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,qv)[qv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Yv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Kv.VERSION="2.0.3";var Xv=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)}},Zv={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",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 Jv(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Qv=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!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};function ey(e){return e<10?`0${e}`:e.toString()}var ty=function(){const e=new Date;return`${ey(e.getHours())}:${ey(e.getMinutes())}:${ey(e.getSeconds())}`},ny={justErrorsLogger:{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] [${ty()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${ty()}]`,...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] [${ty()}]`,...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] [${ty()}]`,...t)}}},ry={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",backToSearch:"Back to 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}"}}},oy=Hv;let iy,ay;function uy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sy=0;function ly(e){return"__private_"+sy+++"_"+e}const{nanoid:cy}=oy,{justErrorsLogger:fy,debugLogger:dy}=ny;class py extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class hy extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var gy=ly("plugins"),vy=ly("storeUnsubscribe"),yy=ly("emitter"),my=ly("preProcessors"),by=ly("uploaders"),wy=ly("postProcessors"),Ey=ly("checkRestrictions"),Dy=ly("checkMinNumberOfFiles"),Sy=ly("checkRequiredMetaFieldsOnFile"),xy=ly("checkRequiredMetaFields"),Cy=ly("showOrLogErrorAndThrow"),Ay=ly("assertNewUploadAllowed"),Oy=ly("checkAndCreateFileStateObject"),ky=ly("startIfAutoProceed"),By=ly("addListeners"),Fy=ly("updateOnlineStatus"),Ty=ly("createUpload"),_y=ly("getUpload"),Py=ly("removeUpload"),jy=ly("runUpload");iy=Symbol.for("uppy test: getPlugins"),ay=Symbol.for("uppy test: createUpload");class Ny{constructor(e){Object.defineProperty(this,jy,{value:Ky}),Object.defineProperty(this,Py,{value:qy}),Object.defineProperty(this,_y,{value:Gy}),Object.defineProperty(this,Ty,{value:Wy}),Object.defineProperty(this,By,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,Cy,{value:zy}),Object.defineProperty(this,xy,{value:My}),Object.defineProperty(this,Sy,{value:Ry}),Object.defineProperty(this,Dy,{value:Ly}),Object.defineProperty(this,Ey,{value:Iy}),Object.defineProperty(this,gy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,vy,{writable:!0,value:void 0}),Object.defineProperty(this,yy,{writable:!0,value:Rv()}),Object.defineProperty(this,my,{writable:!0,value:new Set}),Object.defineProperty(this,by,{writable:!0,value:new Set}),Object.defineProperty(this,wy,{writable:!0,value:new Set}),Object.defineProperty(this,Fy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ry;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Kv,logger:fy,infoTimeout:5e3};if(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=dy),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Mh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Qv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),uy(this,vy)[vy]=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),uy(this,By)[By]()}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];uy(this,yy)[yy].emit(e,...n)}on(e,t){return uy(this,yy)[yy].on(e,t),this}once(e,t){return uy(this,yy)[yy].once(e,t),this}off(e,t){return uy(this,yy)[yy].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 Iv([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){uy(this,my)[my].add(e)}removePreProcessor(e){return uy(this,my)[my].delete(e)}addPostProcessor(e){uy(this,wy)[wy].add(e)}removePostProcessor(e){return uy(this,wy)[wy].delete(e)}addUploader(e){uy(this,by)[by].add(e)}removeUploader(e){return uy(this,by)[by].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)),l=r.filter((e=>e.progress.uploadComplete)),c=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:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return uy(this,Ey)[Ey](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){uy(this,Ay)[Ay](e);const{files:t}=this.getState();let n=uy(this,Oy)[Oy](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}`),uy(this,ky)[ky](),n.id}addFiles(e){uy(this,Ay)[Ay]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=uy(this,Oy)[Oy](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&&uy(this,ky)[ky](),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);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));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 l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.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=uy(this,Ty)[Ty](t,{forceAllowNewUpload:!0});return uy(this,jy)[jy](n)}cancelAll(){this.emit("cancel-all");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=uy(this,Ty)[Ty]([e],{forceAllowNewUpload:!0});return uy(this,jy)[jy](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${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 uy(this,gy)[gy]?uy(this,gy)[gy][n.type].push(n):uy(this,gy)[gy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(uy(this,gy)[gy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[iy](e){return uy(this,gy)[gy][e]}iteratePlugins(e){Object.values(uy(this,gy)[gy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=uy(this,gy)[gy][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(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),uy(this,vy)[vy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",uy(this,Fy)[Fy]),window.removeEventListener("offline",uy(this,Fy)[Fy]))}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]?uy(this,jy)[jy](e):(uy(this,Py)[Py](e),Promise.reject(new Error("Nonexistent upload")))}[ay](){return uy(this,Ty)[Ty](...arguments)}addResultData(e,t){if(!uy(this,_y)[_y](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=uy(this,gy)[gy].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((()=>{uy(this,Dy)[Dy](t),uy(this,xy)[xy](t)})).catch((e=>{uy(this,Cy)[Cy](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=uy(this,Ty)[Ty](r);return uy(this,jy)[jy](o)})).catch((e=>{uy(this,Cy)[Cy](e,{showInformer:!1})})))}}function Iy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new py(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Uv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,Wv);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new py(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new py(this.i18n("exceedsSize",{size:Vv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new py(this.i18n("exceedsSize",{size:Vv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new py(this.i18n("inferiorSize",{size:Vv(r)}))}function Ly(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new py(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Ry(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new py(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),uy(this,Cy)[Cy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function My(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return uy(this,Sy)[Sy](t)}));if(t.length)throw new hy(t,`${this.i18n("missingRequiredMetaField")}`)}function zy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function $y(e){const{allowNewUpload:t}=this.getState();!1===t&&uy(this,Cy)[Cy](new py(this.i18n("noMoreFilesAllowed")),{file:e})}function Hy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Xv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Zv?Zv[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=Xv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Jv(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Jv(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 py(this.i18n("noDuplicates",{fileName:r}));uy(this,Cy)[Cy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={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 c=this.opts.onBeforeFileAdded(l,e);!1===c?uy(this,Cy)[Cy](new py("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));uy(this,Ey)[Ey](l,t)}catch(e){uy(this,Cy)[Cy](e,{file:l})}return l}function Vy(){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 Uy(){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:t.name}),uy(this,Cy)[Cy](e,{throwErr:!1})}else uy(this,Cy)[Cy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(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: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:uy(this,wy)[wy].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)=>{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: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${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)=>{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: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${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&&uy(this,Sy)[Sy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",uy(this,Fy)[Fy]),window.addEventListener("offline",uy(this,Fy)[Fy]),setTimeout(uy(this,Fy)[Fy],3e3))}function Wy(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=cy();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 Gy(e){const{currentUploads:t}=this.getState();return t[e]}function qy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Ky(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...uy(this,my)[my],...uy(this,by)[by],...uy(this,wy)[wy]];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 this.emit("error",t),uy(this,Py)[Py](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),uy(this,Py)[Py](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ny.VERSION="2.1.3";var Yy=Ny,Xy=i((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(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 v(e,u,o,i,null)}function v(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,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+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?b(e):null}function w(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 w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,S=D.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=D[d])||h&&g.key==h.key&&g.type===h.type)D[d]=void 0;else for(p=0;p<S;p++){if((h=D[p])&&g.key==h.key&&g.type===h.type){D[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=x(g,s,e):s=C(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=S;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),j(D[d],D[d]));if(E)for(d=0;d<E.length;d++)P(E[d],E[++d],E[++d])}function x(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):C(n,r,r,o,r.__e,t));return t}function C(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(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||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,D,x,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(w=t.props,E=(c=C.contextType)&&o[c.__c],D=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(w,D):(t.__c=f=new m(w,D),f.constructor=C,f.render=N),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=D,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,D),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,D)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,D),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=D,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),x=null!=c&&c.type===y&&null==c.key?c.props.children:c,S(e,Array.isArray(x)?x:[x],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){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 _(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(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]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Zy=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 Iv([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 Jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Qy=0;const{render:em}=Xy;var tm=function(e){return"__private_"+Qy+++"_"+e}("updateUI");class nm extends Zy{constructor(){super(...arguments),Object.defineProperty(this,tm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Jy(this,tm)[tm]=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)&&(em(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),em(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof nm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}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=Jy(this,tm))[tm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var rm=nm;const{debugLogger:om}=ny;var im=Yy,am=Yy,um=rm,sm=Zy,lm=om;im.Uppy=am,im.UIPlugin=um,im.BasePlugin=sm,im.debugLogger=lm;class cm 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 fm=cm,dm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new fm(e)}))};class pm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var hm,gm,vm,ym,mm,bm=pm;function wm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Em=0;function Dm(e){return"__private_"+Em+++"_"+e}async function Sm(e){if(401===e.status)throw new bm;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 xm=(gm=Dm("getPostResponseFunc"),vm=Dm("getUrl"),ym=Dm("errorHandler"),mm=hm=class e{constructor(e,t){Object.defineProperty(this,ym,{value:Am}),Object.defineProperty(this,vm,{value:Cm}),Object.defineProperty(this,gm,{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}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}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(wm(this,vm)[vm](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=>dm(wm(this,vm)[vm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(wm(this,gm)[gm](t)).then(Sm).catch(wm(this,ym)[ym]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>dm(wm(this,vm)[vm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(wm(this,gm)[gm](n)).then(Sm).catch(wm(this,ym)[ym](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>dm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(wm(this,gm)[gm](n)).then(Sm).catch(wm(this,ym)[ym](r,e))}},hm.VERSION="2.0.4",hm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${hm.VERSION}`},mm);function Cm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Am(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${wm(this,vm)[vm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Om,km,Bm,Fm,Tm,_m={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let Pm,jm;function Nm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Im=0;function Lm(e){return"__private_"+Im+++"_"+e}var Rm,Mm,zm=(Om=Lm("queued"),km=Lm("emitter"),Bm=Lm("isOpen"),Fm=Lm("socket"),Tm=Lm("handleMessage"),Pm=Symbol.for("uppy test: getSocket"),jm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Om,{writable:!0,value:[]}),Object.defineProperty(this,km,{writable:!0,value:Rv()}),Object.defineProperty(this,Bm,{writable:!0,value:!1}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Object.defineProperty(this,Tm,{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 Nm(this,Bm)[Bm]}[Pm](){return Nm(this,Fm)[Fm]}[jm](){return Nm(this,Om)[Om]}open(){Nm(this,Fm)[Fm]=new WebSocket(this.opts.target),Nm(this,Fm)[Fm].onopen=()=>{for(Nm(this,Bm)[Bm]=!0;Nm(this,Om)[Om].length>0&&Nm(this,Bm)[Bm];){const e=Nm(this,Om)[Om].shift();this.send(e.action,e.payload)}},Nm(this,Fm)[Fm].onclose=()=>{Nm(this,Bm)[Bm]=!1},Nm(this,Fm)[Fm].onmessage=Nm(this,Tm)[Tm]}close(){var e;null==(e=Nm(this,Fm)[Fm])||e.close()}send(e,t){Nm(this,Bm)[Bm]?Nm(this,Fm)[Fm].send(JSON.stringify({action:e,payload:t})):Nm(this,Om)[Om].push({action:e,payload:t})}on(e,t){Nm(this,km)[km].on(e,t)}emit(e,t){Nm(this,km)[km].emit(e,t)}once(e,t){Nm(this,km)[km].once(e,t)}}),$m={RequestClient:xm,Provider:class extends xm{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)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}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||_m}},SearchProvider:class extends xm{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 t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:zm},Hm=Mh((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 Vm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Um=0;function Wm(e){return"__private_"+Um+++"_"+e}var Gm=(Rm=Wm("emitter"),Mm=Wm("events"),class{constructor(e){Object.defineProperty(this,Rm,{writable:!0,value:void 0}),Object.defineProperty(this,Mm,{writable:!0,value:[]}),Vm(this,Rm)[Rm]=e}on(e,t){return Vm(this,Mm)[Mm].push([e,t]),Vm(this,Rm)[Rm].on(e,t)}remove(){for(const[e,t]of Vm(this,Mm)[Mm].splice(0))Vm(this,Rm)[Rm].off(e,t)}});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("aliveTimer"),Zm=Ym("isDone"),Jm=Ym("onTimedOut"),Qm=Ym("timeout"),eb=class{constructor(e,t){Object.defineProperty(this,Xm,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:!1}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:void 0}),qm(this,Qm)[Qm]=e,qm(this,Jm)[Jm]=t}progress(){qm(this,Zm)[Zm]||qm(this,Qm)[Qm]>0&&(clearTimeout(qm(this,Xm)[Xm]),qm(this,Xm)[Xm]=setTimeout(qm(this,Jm)[Jm],qm(this,Qm)[Qm]))}done(){qm(this,Zm)[Zm]||(clearTimeout(qm(this,Xm)[Xm]),qm(this,Xm)[Xm]=null,qm(this,Zm)[Zm]=!0)}};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 nb=0;function rb(e){return"__private_"+nb+++"_"+e}function ob(){return new Error("Cancelled")}var ib=rb("activeRequests"),ab=rb("queuedHandlers"),ub=rb("call"),sb=rb("queueNext"),lb=rb("next"),cb=rb("queue"),fb=rb("dequeue");function db(e){tb(this,ib)[ib]+=1;let t,n=!1;try{t=e()}catch(e){throw tb(this,ib)[ib]-=1,e}return{abort:()=>{n||(n=!0,tb(this,ib)[ib]-=1,t(),tb(this,sb)[sb]())},done:()=>{n||(n=!0,tb(this,ib)[ib]-=1,tb(this,sb)[sb]())}}}function pb(){queueMicrotask((()=>tb(this,lb)[lb]()))}function hb(){if(tb(this,ib)[ib]>=this.limit)return;if(0===tb(this,ab)[ab].length)return;const e=tb(this,ab)[ab].shift(),t=tb(this,ub)[ub](e.fn);e.abort=t.abort,e.done=t.done}function gb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{tb(this,fb)[fb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=tb(this,ab)[ab].findIndex((e=>n.priority>e.priority));return-1===r?tb(this,ab)[ab].push(n):tb(this,ab)[ab].splice(r,0,n),n}function vb(e){const t=tb(this,ab)[ab].indexOf(e);-1!==t&&tb(this,ab)[ab].splice(t,1)}var yb,mb,bb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,fb,{value:vb}),Object.defineProperty(this,cb,{value:gb}),Object.defineProperty(this,lb,{value:hb}),Object.defineProperty(this,sb,{value:pb}),Object.defineProperty(this,ub,{value:db}),Object.defineProperty(this,ib,{writable:!0,value:0}),Object.defineProperty(this,ab,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return tb(this,ib)[ib]<this.limit?tb(this,ub)[ub](e):tb(this,cb)[cb](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=ob()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},wb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Eb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Db}=oy,{Provider:Sb,RequestClient:xb,Socket:Cb}=$m,{RateLimitedQueue:Ab,internalRateLimitedQueue:Ob}=bb;function kb(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})),wb(e)?(n=new fm(n,e),n):(n.request=e,n)}function Bb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Fb=(mb=yb=class extends Zy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Eb;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 wb(t)&&(n=new fm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Ob in this.opts?this.requests=this.opts[Ob]:this.requests=new Ab(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=Bb(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=Bb(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;this.uploaderEvents[e.id]=new Gm(this.uppy);const a=new eb(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Db();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=kb(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=kb(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);const s=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),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.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?Sb:xb)(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 Cb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Gm(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{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=>Hm(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)}));const 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=new eb(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.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(s.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,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.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){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Ob]||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)}},yb.VERSION="2.0.6",mb),Tb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function _b(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pb,jb,Nb=function(e){return e&&e.Math==Math&&e},Ib=Nb("object"==typeof globalThis&&globalThis)||Nb("object"==typeof window&&window)||Nb("object"==typeof self&&self)||Nb("object"==typeof Tb&&Tb)||function(){return this}()||Function("return this")(),Lb=Object.defineProperty,Rb=function(e,t){try{Lb(Ib,e,{value:t,configurable:!0,writable:!0})}catch(n){Ib[e]=t}return t},Mb=Ib["__core-js_shared__"]||Rb("__core-js_shared__",{}),zb=_b((function(e){(e.exports=function(e,t){return Mb[e]||(Mb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$b=Function.prototype,Hb=$b.bind,Vb=$b.call,Ub=Hb&&Hb.bind(Vb),Wb=Hb?function(e){return e&&Ub(Vb,e)}:function(e){return e&&function(){return Vb.apply(e,arguments)}},Gb=Ib.TypeError,qb=function(e){if(null==e)throw Gb("Can't call method on "+e);return e},Kb=Ib.Object,Yb=function(e){return Kb(qb(e))},Xb=Wb({}.hasOwnProperty),Zb=Object.hasOwn||function(e,t){return Xb(Yb(e),t)},Jb=0,Qb=Math.random(),ew=Wb(1..toString),tw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ew(++Jb+Qb,36)},nw=function(e){return"function"==typeof e},rw=function(e){return nw(e)?e:void 0},ow=function(e,t){return arguments.length<2?rw(Ib[e]):Ib[e]&&Ib[e][t]},iw=ow("navigator","userAgent")||"",aw=Ib.process,uw=Ib.Deno,sw=aw&&aw.versions||uw&&uw.version,lw=sw&&sw.v8;lw&&(jb=(Pb=lw.split("."))[0]>0&&Pb[0]<4?1:+(Pb[0]+Pb[1])),!jb&&iw&&(!(Pb=iw.match(/Edge\/(\d+)/))||Pb[1]>=74)&&(Pb=iw.match(/Chrome\/(\d+)/))&&(jb=+Pb[1]);var cw=jb,fw=function(e){try{return!!e()}catch(e){return!0}},dw=!!Object.getOwnPropertySymbols&&!fw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cw&&cw<41})),pw=dw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,hw=zb("wks"),gw=Ib.Symbol,vw=gw&&gw.for,yw=pw?gw:gw&&gw.withoutSetter||tw,mw=function(e){if(!Zb(hw,e)||!dw&&"string"!=typeof hw[e]){var t="Symbol."+e;dw&&Zb(gw,e)?hw[e]=gw[e]:hw[e]=pw&&vw?vw(t):yw(t)}return hw[e]},bw={};bw[mw("toStringTag")]="z";var ww="[object z]"===String(bw),Ew=!fw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dw=function(e){return"object"==typeof e?null!==e:nw(e)},Sw=Ib.document,xw=Dw(Sw)&&Dw(Sw.createElement),Cw=function(e){return xw?Sw.createElement(e):{}},Aw=!Ew&&!fw((function(){return 7!=Object.defineProperty(Cw("div"),"a",{get:function(){return 7}}).a})),Ow=Ib.String,kw=Ib.TypeError,Bw=function(e){if(Dw(e))return e;throw kw(Ow(e)+" is not an object")},Fw=Function.prototype.call,Tw=Fw.bind?Fw.bind(Fw):function(){return Fw.apply(Fw,arguments)},_w=Wb({}.isPrototypeOf),Pw=Ib.Object,jw=pw?function(e){return"symbol"==typeof e}:function(e){var t=ow("Symbol");return nw(t)&&_w(t.prototype,Pw(e))},Nw=Ib.String,Iw=function(e){try{return Nw(e)}catch(e){return"Object"}},Lw=Ib.TypeError,Rw=function(e){if(nw(e))return e;throw Lw(Iw(e)+" is not a function")},Mw=function(e,t){var n=e[t];return null==n?void 0:Rw(n)},zw=Ib.TypeError,$w=Ib.TypeError,Hw=mw("toPrimitive"),Vw=function(e){var t=function(e,t){if(!Dw(e)||jw(e))return e;var n,r=Mw(e,Hw);if(r){if(void 0===t&&(t="default"),n=Tw(r,e,t),!Dw(n)||jw(n))return n;throw $w("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&nw(n=e.toString)&&!Dw(r=Tw(n,e)))return r;if(nw(n=e.valueOf)&&!Dw(r=Tw(n,e)))return r;if("string"!==t&&nw(n=e.toString)&&!Dw(r=Tw(n,e)))return r;throw zw("Can't convert object to primitive value")}(e,t)}(e,"string");return jw(t)?t:t+""},Uw=Ib.TypeError,Ww=Object.defineProperty,Gw={f:Ew?Ww:function(e,t,n){if(Bw(e),t=Vw(t),Bw(n),Aw)try{return Ww(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Uw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Kw=Ew?function(e,t,n){return Gw.f(e,t,qw(1,n))}:function(e,t,n){return e[t]=n,e},Yw=Wb(Function.toString);nw(Mb.inspectSource)||(Mb.inspectSource=function(e){return Yw(e)});var Xw,Zw,Jw,Qw=Mb.inspectSource,eE=Ib.WeakMap,tE=nw(eE)&&/native code/.test(Qw(eE)),nE=zb("keys"),rE=function(e){return nE[e]||(nE[e]=tw(e))},oE={},iE=Ib.TypeError,aE=Ib.WeakMap;if(tE||Mb.state){var uE=Mb.state||(Mb.state=new aE),sE=Wb(uE.get),lE=Wb(uE.has),cE=Wb(uE.set);Xw=function(e,t){if(lE(uE,e))throw new iE("Object already initialized");return t.facade=e,cE(uE,e,t),t},Zw=function(e){return sE(uE,e)||{}},Jw=function(e){return lE(uE,e)}}else{var fE=rE("state");oE[fE]=!0,Xw=function(e,t){if(Zb(e,fE))throw new iE("Object already initialized");return t.facade=e,Kw(e,fE,t),t},Zw=function(e){return Zb(e,fE)?e[fE]:{}},Jw=function(e){return Zb(e,fE)}}var dE={set:Xw,get:Zw,has:Jw,enforce:function(e){return Jw(e)?Zw(e):Xw(e,{})},getterFor:function(e){return function(t){var n;if(!Dw(t)||(n=Zw(t)).type!==e)throw iE("Incompatible receiver, "+e+" required");return n}}},pE=Function.prototype,hE=Ew&&Object.getOwnPropertyDescriptor,gE=Zb(pE,"name"),vE={EXISTS:gE,PROPER:gE&&"something"===function(){}.name,CONFIGURABLE:gE&&(!Ew||Ew&&hE(pE,"name").configurable)},yE=_b((function(e){var t=vE.CONFIGURABLE,n=dE.get,r=dE.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;nw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zb(i,"name")||t&&i.name!==f)&&Kw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ib?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Kw(e,n,i)):l?e[n]=i:Rb(n,i)})(Function.prototype,"toString",(function(){return nw(this)&&n(this).source||Qw(this)}))})),mE=Wb({}.toString),bE=Wb("".slice),wE=function(e){return bE(mE(e),8,-1)},EE=mw("toStringTag"),DE=Ib.Object,SE="Arguments"==wE(function(){return arguments}()),xE=ww?wE: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=DE(e),EE))?n:SE?wE(t):"Object"==(r=wE(t))&&nw(t.callee)?"Arguments":r},CE=ww?{}.toString:function(){return"[object "+xE(this)+"]"};ww||yE(Object.prototype,"toString",CE,{unsafe:!0});var AE={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},OE=Cw("span").classList,kE=OE&&OE.constructor&&OE.constructor.prototype,BE=kE===Object.prototype?void 0:kE,FE=Wb(Wb.bind),TE=function(e,t){return Rw(e),void 0===t?e:FE?FE(e,t):function(){return e.apply(t,arguments)}},_E=Ib.Object,PE=Wb("".split),jE=fw((function(){return!_E("z").propertyIsEnumerable(0)}))?function(e){return"String"==wE(e)?PE(e,""):_E(e)}:_E,NE=Math.ceil,IE=Math.floor,LE=function(e){var t=+e;return t!=t||0===t?0:(t>0?IE:NE)(t)},RE=Math.min,ME=function(e){return e>0?RE(LE(e),9007199254740991):0},zE=function(e){return ME(e.length)},$E=Array.isArray||function(e){return"Array"==wE(e)},HE=function(){},VE=[],UE=ow("Reflect","construct"),WE=/^\s*(?:class|function)\b/,GE=Wb(WE.exec),qE=!WE.exec(HE),KE=function(e){if(!nw(e))return!1;try{return UE(HE,VE,e),!0}catch(e){return!1}},YE=!UE||fw((function(){var e;return KE(KE.call)||!KE(Object)||!KE((function(){e=!0}))||e}))?function(e){if(!nw(e))return!1;switch(xE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qE||!!GE(WE,Qw(e))}:KE,XE=mw("species"),ZE=Ib.Array,JE=function(e,t){return new(function(e){var t;return $E(e)&&(t=e.constructor,(YE(t)&&(t===ZE||$E(t.prototype))||Dw(t)&&null===(t=t[XE]))&&(t=void 0)),void 0===t?ZE:t}(e))(0===t?0:t)},QE=Wb([].push),eD=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,l,c,f){for(var d,p,h=Yb(s),g=jE(h),v=TE(l,c),y=zE(g),m=0,b=f||JE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:QE(w,d)}else switch(e){case 4:return!1;case 7:QE(w,d)}return i?-1:r||o?o:w}},tD={forEach:eD(0),map:eD(1),filter:eD(2),some:eD(3),every:eD(4),find:eD(5),findIndex:eD(6),filterReject:eD(7)},nD=function(e,t){var n=[][e];return!!n&&fw((function(){n.call(null,t||function(){throw 1},1)}))},rD=tD.forEach,oD=nD("forEach")?[].forEach:function(e){return rD(this,e,arguments.length>1?arguments[1]:void 0)},iD=function(e){if(e&&e.forEach!==oD)try{Kw(e,"forEach",oD)}catch(t){e.forEach=oD}};for(var aD in AE)AE[aD]&&iD(Ib[aD]&&Ib[aD].prototype);iD(BE);var uD={}.propertyIsEnumerable,sD=Object.getOwnPropertyDescriptor,lD=sD&&!uD.call({1:2},1)?function(e){var t=sD(this,e);return!!t&&t.enumerable}:uD,cD={f:lD},fD=function(e){return jE(qb(e))},dD=Object.getOwnPropertyDescriptor,pD={f:Ew?dD:function(e,t){if(e=fD(e),t=Vw(t),Aw)try{return dD(e,t)}catch(e){}if(Zb(e,t))return qw(!Tw(cD.f,e,t),e[t])}},hD=Math.max,gD=Math.min,vD=function(e,t){var n=LE(e);return n<0?hD(n+t,0):gD(n,t)},yD=function(e){return function(t,n,r){var o,i=fD(t),a=zE(i),u=vD(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},mD={includes:yD(!0),indexOf:yD(!1)},bD=mD.indexOf,wD=Wb([].push),ED=function(e,t){var n,r=fD(e),o=0,i=[];for(n in r)!Zb(oE,n)&&Zb(r,n)&&wD(i,n);for(;t.length>o;)Zb(r,n=t[o++])&&(~bD(i,n)||wD(i,n));return i},DD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SD=DD.concat("length","prototype"),xD={f:Object.getOwnPropertyNames||function(e){return ED(e,SD)}},CD={f:Object.getOwnPropertySymbols},AD=Wb([].concat),OD=ow("Reflect","ownKeys")||function(e){var t=xD.f(Bw(e)),n=CD.f;return n?AD(t,n(e)):t},kD=function(e,t){for(var n=OD(t),r=Gw.f,o=pD.f,i=0;i<n.length;i++){var a=n[i];Zb(e,a)||r(e,a,o(t,a))}},BD=/#|\.prototype\./,FD=function(e,t){var n=_D[TD(e)];return n==jD||n!=PD&&(nw(t)?fw(t):!!t)},TD=FD.normalize=function(e){return String(e).replace(BD,".").toLowerCase()},_D=FD.data={},PD=FD.NATIVE="N",jD=FD.POLYFILL="P",ND=FD,ID=pD.f,LD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ib:l?Ib[u]||Rb(u,{}):(Ib[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ID(n,r))&&a.value:n[r],!ND(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;kD(i,o)}(e.sham||o&&o.sham)&&Kw(i,"sham",!0),yE(n,r,i,e)}},RD=Object.keys||function(e){return ED(e,DD)},MD=fw((function(){RD(1)}));function zD(e){return"[object Object]"===Object.prototype.toString.call(e)}LD({target:"Object",stat:!0,forced:MD},{keys:function(e){return RD(Yb(e))}});var $D={isHistory(e){return!1!==zD(t=e)&&(void 0===(n=t.constructor)||!1!==zD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||jf.isOperationList(e.redos[0]))&&(0===e.undos.length||jf.isOperationList(e.undos[0]));var t,n,r}},HD=new WeakMap,VD=new WeakMap,UD={isHistoryEditor:e=>$D.isHistory(e.history)&&Af.isEditor(e),isMerging:e=>VD.get(e),isSaving:e=>HD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=UD.isMerging(e);VD.set(e,!1),t(),VD.set(e,n)},withoutSaving(e,t){var n=UD.isSaving(e);HD.set(e,!1),t(),HD.set(e,n)}},WD=Ib.String,GD=function(e){if("Symbol"===xE(e))throw TypeError("Cannot convert a Symbol value to a string");return WD(e)},qD=function(){var e=Bw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},KD=vE.PROPER,YD=RegExp.prototype,XD=YD.toString,ZD=Wb(qD),JD=fw((function(){return"/a/b"!=XD.call({source:"a",flags:"b"})})),QD=KD&&"toString"!=XD.name;(JD||QD)&&yE(RegExp.prototype,"toString",(function(){var e=Bw(this),t=GD(e.source),n=e.flags;return"/"+t+"/"+GD(void 0===n&&_w(YD,e)&&!("flags"in YD)?ZD(e):n)}),{unsafe:!0});var eS,tS=Ew?Object.defineProperties:function(e,t){Bw(e);for(var n,r=fD(t),o=RD(t),i=o.length,a=0;i>a;)Gw.f(e,n=o[a++],r[n]);return e},nS=ow("document","documentElement"),rS=rE("IE_PROTO"),oS=function(){},iS=function(e){return"<script>"+e+"<\/script>"},aS=function(e){e.write(iS("")),e.close();var t=e.parentWindow.Object;return e=null,t},uS=function(){try{eS=new ActiveXObject("htmlfile")}catch(e){}var e,t;uS="undefined"!=typeof document?document.domain&&eS?aS(eS):((t=Cw("iframe")).style.display="none",nS.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iS("document.F=Object")),e.close(),e.F):aS(eS);for(var n=DD.length;n--;)delete uS.prototype[DD[n]];return uS()};oE[rS]=!0;var sS=Object.create||function(e,t){var n;return null!==e?(oS.prototype=Bw(e),n=new oS,oS.prototype=null,n[rS]=e):n=uS(),void 0===t?n:tS(n,t)},lS=mw("unscopables"),cS=Array.prototype;null==cS[lS]&&Gw.f(cS,lS,{configurable:!0,value:sS(null)});var fS=function(e){cS[lS][e]=!0},dS=mD.includes;LD({target:"Array",proto:!0},{includes:function(e){return dS(this,e,arguments.length>1?arguments[1]:void 0)}}),fS("includes");var pS=mw("match"),hS=function(e){var t;return Dw(e)&&(void 0!==(t=e[pS])?!!t:"RegExp"==wE(e))},gS=Ib.TypeError,vS=function(e){if(hS(e))throw gS("The method doesn't accept regular expressions");return e},yS=mw("match"),mS=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[yS]=!1,"/./"[e](t)}catch(e){}}return!1},bS=Wb("".indexOf);LD({target:"String",proto:!0,forced:!mS("includes")},{includes:function(e){return!!~bS(GD(qb(this)),GD(vS(e)),arguments.length>1?arguments[1]:void 0)}});var wS=/"/g,ES=Wb("".replace);LD({target:"String",proto:!0,forced:fw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=GD(qb(this)),r="<a",(r+=' name="'+ES(GD(t),wS,""")+'"')+">"+n+"</a>";var t,n,r}});var DS=function(e,t,n){var r,o;Bw(e);try{if(!(r=Mw(e,"return"))){if("throw"===t)throw n;return n}r=Tw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Bw(r),n},SS=function(e,t,n,r){try{return r?t(Bw(n)[0],n[1]):t(n)}catch(t){DS(e,"throw",t)}},xS={},CS=mw("iterator"),AS=Array.prototype,OS=function(e){return void 0!==e&&(xS.Array===e||AS[CS]===e)},kS=function(e,t,n){var r=Vw(t);r in e?Gw.f(e,r,qw(0,n)):e[r]=n},BS=mw("iterator"),FS=function(e){if(null!=e)return Mw(e,BS)||Mw(e,"@@iterator")||xS[xE(e)]},TS=Ib.TypeError,_S=function(e,t){var n=arguments.length<2?FS(e):t;if(Rw(n))return Bw(Tw(n,e));throw TS(Iw(e)+" is not iterable")},PS=Ib.Array,jS=mw("iterator"),NS=!1;try{var IS=0,LS={next:function(){return{done:!!IS++}},return:function(){NS=!0}};LS[jS]=function(){return this},Array.from(LS,(function(){throw 2}))}catch(uO){}var RS=function(e,t){if(!t&&!NS)return!1;var n=!1;try{var r={};r[jS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},MS=!RS((function(e){Array.from(e)}));LD({target:"Array",stat:!0,forced:MS},{from:function(e){var t=Yb(e),n=YE(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=TE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=FS(t),p=0;if(!d||this==PS&&OS(d))for(a=zE(t),u=n?new this(a):PS(a);a>p;p++)f=i?o(t[p],p):t[p],kS(u,p,f);else for(c=(l=_S(t,d)).next,u=n?new this:[];!(s=Tw(c,l)).done;p++)f=i?SS(l,o,[s.value,p],!0):s.value,kS(u,p,f);return u.length=p,u}});var zS,$S,HS,VS=Wb("".charAt),US=Wb("".charCodeAt),WS=Wb("".slice),GS=function(e){return function(t,n){var r,o,i=GD(qb(t)),a=LE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=US(i,a))<55296||r>56319||a+1===u||(o=US(i,a+1))<56320||o>57343?e?VS(i,a):r:e?WS(i,a,a+2):o-56320+(r-55296<<10)+65536}},qS={codeAt:GS(!1),charAt:GS(!0)},KS=!fw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),YS=rE("IE_PROTO"),XS=Ib.Object,ZS=XS.prototype,JS=KS?XS.getPrototypeOf:function(e){var t=Yb(e);if(Zb(t,YS))return t[YS];var n=t.constructor;return nw(n)&&t instanceof n?n.prototype:t instanceof XS?ZS:null},QS=mw("iterator"),ex=!1;[].keys&&("next"in(HS=[].keys())?($S=JS(JS(HS)))!==Object.prototype&&(zS=$S):ex=!0);var tx=null==zS||fw((function(){var e={};return zS[QS].call(e)!==e}));tx&&(zS={}),nw(zS[QS])||yE(zS,QS,(function(){return this}));var nx={IteratorPrototype:zS,BUGGY_SAFARI_ITERATORS:ex},rx=Gw.f,ox=mw("toStringTag"),ix=function(e,t,n){e&&!Zb(e=n?e:e.prototype,ox)&&rx(e,ox,{configurable:!0,value:t})},ax=nx.IteratorPrototype,ux=function(){return this},sx=Ib.String,lx=Ib.TypeError,cx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Wb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Bw(n),function(e){if("object"==typeof e||nw(e))return e;throw lx("Can't set "+sx(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),fx=vE.PROPER,dx=vE.CONFIGURABLE,px=nx.IteratorPrototype,hx=nx.BUGGY_SAFARI_ITERATORS,gx=mw("iterator"),vx=function(){return this},yx=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=sS(ax,{next:qw(1,n)}),ix(e,o,!1),xS[o]=ux}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!hx&&e in p)return p[e];switch(e){case"keys":case"values":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[gx]||p["@@iterator"]||o&&p[o],g=!hx&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=JS(v.call(new e)))!==Object.prototype&&u.next&&(JS(u)!==px&&(cx?cx(u,px):nw(u[gx])||yE(u,gx,vx)),ix(u,f,!0)),fx&&"values"==o&&h&&"values"!==h.name&&(dx?Kw(p,"name","values"):(d=!0,g=function(){return Tw(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(hx||d||!(l in p))&&yE(p,l,s[l]);else LD({target:t,proto:!0,forced:hx||d},s);return p[gx]!==g&&yE(p,gx,g,{name:o}),xS[t]=g,s},mx=qS.charAt,bx=dE.set,wx=dE.getterFor("String Iterator");yx(String,"String",(function(e){bx(this,{type:"String Iterator",string:GD(e),index:0})}),(function(){var e,t=wx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mx(n,r),t.index+=e.length,{value:e,done:!1})}));var Ex,Dx=pD.f,Sx=Wb("".endsWith),xx=Wb("".slice),Cx=Math.min,Ax=mS("endsWith"),Ox=!(Ax||(Ex=Dx(String.prototype,"endsWith"),!Ex||Ex.writable));LD({target:"String",proto:!0,forced:!Ox&&!Ax},{endsWith:function(e){var t=GD(qb(this));vS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Cx(ME(n),r),i=GD(e);return Sx?Sx(t,i,o):xx(t,o-i.length,o)===i}});var kx=Wb([].join),Bx=jE!=Object,Fx=nD("join",",");LD({target:"Array",proto:!0,forced:Bx||!Fx},{join:function(e){return kx(fD(this),void 0===e?",":e)}});var Tx=mw("species"),_x=function(e){return cw>=51||!fw((function(){var t=[];return(t.constructor={})[Tx]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Px=tD.map,jx=_x("map");LD({target:"Array",proto:!0,forced:!jx},{map:function(e){return Px(this,e,arguments.length>1?arguments[1]:void 0)}});var Nx=Ib.RegExp,Ix=fw((function(){var e=Nx("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Lx=Ix||fw((function(){return!Nx("a","y").sticky})),Rx={BROKEN_CARET:Ix||fw((function(){var e=Nx("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Lx,UNSUPPORTED_Y:Ix},Mx=Ib.RegExp,zx=fw((function(){var e=Mx(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$x=Ib.RegExp,Hx=fw((function(){var e=$x("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vx=dE.get,Ux=zb("native-string-replace",String.prototype.replace),Wx=RegExp.prototype.exec,Gx=Wx,qx=Wb("".charAt),Kx=Wb("".indexOf),Yx=Wb("".replace),Xx=Wb("".slice),Zx=function(){var e=/a/,t=/b*/g;return Tw(Wx,e,"a"),Tw(Wx,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Jx=Rx.BROKEN_CARET,Qx=void 0!==/()??/.exec("")[1];(Zx||Qx||Jx||zx||Hx)&&(Gx=function(e){var t,n,r,o,i,a,u,s=this,l=Vx(s),c=GD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tw(Gx,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Jx&&s.sticky,h=Tw(qD,s),g=s.source,v=0,y=c;if(p&&(h=Yx(h,"y",""),-1===Kx(h,"g")&&(h+="g"),y=Xx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qx(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Qx&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Zx&&(r=s.lastIndex),o=Tw(Wx,p?n:s,y),p?o?(o.input=Xx(o.input,v),o[0]=Xx(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Zx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Qx&&o&&o.length>1&&Tw(Ux,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=sS(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var eC=Gx;LD({target:"RegExp",proto:!0,forced:/./.exec!==eC},{exec:eC});var tC=Function.prototype,nC=tC.apply,rC=tC.bind,oC=tC.call,iC="object"==typeof Reflect&&Reflect.apply||(rC?oC.bind(nC):function(){return oC.apply(nC,arguments)}),aC=mw("species"),uC=RegExp.prototype,sC=function(e,t,n,r){var o=mw(e),i=!fw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!fw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[aC]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Wb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Wb(e),s=t.exec;return s===eC||s===uC.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));yE(String.prototype,e,s[0]),yE(uC,o,s[1])}r&&Kw(uC[o],"sham",!0)},lC=qS.charAt,cC=function(e,t,n){return t+(n?lC(e,t).length:1)},fC=Math.floor,dC=Wb("".charAt),pC=Wb("".replace),hC=Wb("".slice),gC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vC=/\$([$&'`]|\d{1,2})/g,yC=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=vC;return void 0!==o&&(o=Yb(o),s=gC),pC(i,s,(function(i,s){var l;switch(dC(s,0)){case"$":return"$";case"&":return e;case"`":return hC(t,0,n);case"'":return hC(t,a);case"<":l=o[hC(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=fC(c/10);return 0===f?i:f<=u?void 0===r[f-1]?dC(s,1):r[f-1]+dC(s,1):i}l=r[c-1]}return void 0===l?"":l}))},mC=Ib.TypeError,bC=function(e,t){var n=e.exec;if(nw(n)){var r=Tw(n,e,t);return null!==r&&Bw(r),r}if("RegExp"===wE(e))return Tw(eC,e,t);throw mC("RegExp#exec called on incompatible receiver")},wC=mw("replace"),EC=Math.max,DC=Math.min,SC=Wb([].concat),xC=Wb([].push),CC=Wb("".indexOf),AC=Wb("".slice),OC="$0"==="a".replace(/./,"$0"),kC=!!/./[wC]&&""===/./[wC]("a","$0");sC("replace",(function(e,t,n){var r=kC?"$":"$0";return[function(e,n){var r=qb(this),o=null==e?void 0:Mw(e,wC);return o?Tw(o,e,r,n):Tw(t,GD(r),e,n)},function(e,o){var i=Bw(this),a=GD(e);if("string"==typeof o&&-1===CC(o,r)&&-1===CC(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=nw(o);s||(o=GD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=bC(i,a);if(null===d)break;if(xC(f,d),!l)break;""===GD(d[0])&&(i.lastIndex=cC(a,ME(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=GD((d=f[v])[0]),m=EC(DC(LE(d.index),a.length),0),b=[],w=1;w<d.length;w++)xC(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=SC([y],b,m,a);void 0!==E&&xC(D,E);var S=GD(iC(o,void 0,D))}else S=yC(y,a,m,b,E,o);m>=g&&(h+=AC(a,g,m)+S,g=m+y.length)}return h+AC(a,g)}]}),!!fw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!OC||kC);var BC=function(e,t){return BC=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])},BC(e,t)};function FC(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}BC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var TC=function(){return TC=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},TC.apply(this,arguments)};function _C(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 PC(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 jC(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var NC=0,IC=function(){this.id=""+NC++},LC=dE.set,RC=dE.getterFor("Array Iterator"),MC=yx(Array,"Array",(function(e,t){LC(this,{type:"Array Iterator",target:fD(e),index:0,kind:t})}),(function(){var e=RC(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");xS.Arguments=xS.Array,fS("keys"),fS("values"),fS("entries");var zC=function(e,t,n){for(var r in t)yE(e,r,t[r],n);return e},$C=Ib.Array,HC=Math.max,VC=function(e,t,n){for(var r=zE(e),o=vD(t,r),i=vD(void 0===n?r:n,r),a=$C(HC(i-o,0)),u=0;o<i;o++,u++)kS(a,u,e[o]);return a.length=u,a},UC=xD.f,WC="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GC={f:function(e){return WC&&"Window"==wE(e)?function(e){try{return UC(e)}catch(e){return VC(WC)}}(e):UC(fD(e))}},qC=fw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),KC=Object.isExtensible,YC=fw((function(){KC(1)}))||qC?function(e){return!!Dw(e)&&(!qC||"ArrayBuffer"!=wE(e))&&(!KC||KC(e))}:KC,XC=!fw((function(){return Object.isExtensible(Object.preventExtensions({}))})),ZC=_b((function(e){var t=Gw.f,n=!1,r=tw("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=xD.f,t=Wb([].splice),o={};o[r]=1,e(o).length&&(xD.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},LD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:GC.f}))},fastKey:function(e,t){if(!Dw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Zb(e,r)){if(!YC(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Zb(e,r)){if(!YC(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return XC&&n&&YC(e)&&!Zb(e,r)&&i(e),e}};oE[r]=!0})),JC=Ib.TypeError,QC=function(e,t){this.stopped=e,this.result=t},eA=QC.prototype,tA=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=TE(t,c),g=function(e){return r&&DS(r,"normal",e),new QC(!0,e)},v=function(e){return f?(Bw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=FS(e)))throw JC(Iw(e)+" is not iterable");if(OS(o)){for(i=0,a=zE(e);a>i;i++)if((u=v(e[i]))&&_w(eA,u))return u;return new QC(!1)}r=_S(e,o)}for(s=r.next;!(l=Tw(s,r)).done;){try{u=v(l.value)}catch(e){DS(r,"throw",e)}if("object"==typeof u&&u&&_w(eA,u))return u}return new QC(!1)},nA=Ib.TypeError,rA=function(e,t){if(_w(t,e))return e;throw nA("Incorrect invocation")},oA=function(e,t,n){var r,o;return cx&&nw(r=t.constructor)&&r!==n&&Dw(o=r.prototype)&&o!==n.prototype&&cx(e,o),e},iA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Ib[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Wb(u[e]);yE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Dw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(ND(e,!nw(a)||!(o||u.forEach&&!fw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ZC.enable();else if(ND(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=fw((function(){f.has(1)})),h=RS((function(e){new a(e)})),g=!o&&fw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){rA(e,u);var n=oA(new a,e,s);return null!=t&&tA(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,LD({global:!0,forced:s!=a},l),ix(s,e),o||n.setStrong(s,e,r),s},aA=ZC.getWeakData,uA=dE.set,sA=dE.getterFor,lA=tD.find,cA=tD.findIndex,fA=Wb([].splice),dA=0,pA=function(e){return e.frozen||(e.frozen=new hA)},hA=function(){this.entries=[]},gA=function(e,t){return lA(e.entries,(function(e){return e[0]===t}))};hA.prototype={get:function(e){var t=gA(this,e);if(t)return t[1]},has:function(e){return!!gA(this,e)},set:function(e,t){var n=gA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=cA(this.entries,(function(t){return t[0]===e}));return~t&&fA(this.entries,t,1),!!~t}};var vA,yA={getConstructor:function(e,t,n,r){var o=e((function(e,o){rA(e,i),uA(e,{type:t,id:dA++,frozen:void 0}),null!=o&&tA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=sA(t),u=function(e,t,n){var r=a(e),o=aA(Bw(t),!0);return!0===o?pA(r).set(t,n):o[r.id]=n,e};return zC(i,{delete:function(e){var t=a(this);if(!Dw(e))return!1;var n=aA(e);return!0===n?pA(t).delete(e):n&&Zb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Dw(e))return!1;var n=aA(e);return!0===n?pA(t).has(e):n&&Zb(n,t.id)}}),zC(i,n?{get:function(e){var t=a(this);if(Dw(e)){var n=aA(e);return!0===n?pA(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},mA=dE.enforce,bA=!Ib.ActiveXObject&&"ActiveXObject"in Ib,wA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EA=iA("WeakMap",wA,yA);if(tE&&bA){vA=yA.getConstructor(wA,"WeakMap",!0),ZC.enable();var DA=EA.prototype,SA=Wb(DA.delete),xA=Wb(DA.has),CA=Wb(DA.get),AA=Wb(DA.set);zC(DA,{delete:function(e){if(Dw(e)&&!YC(e)){var t=mA(this);return t.frozen||(t.frozen=new vA),SA(this,e)||t.frozen.delete(e)}return SA(this,e)},has:function(e){if(Dw(e)&&!YC(e)){var t=mA(this);return t.frozen||(t.frozen=new vA),xA(this,e)||t.frozen.has(e)}return xA(this,e)},get:function(e){if(Dw(e)&&!YC(e)){var t=mA(this);return t.frozen||(t.frozen=new vA),xA(this,e)?CA(this,e):t.frozen.get(e)}return CA(this,e)},set:function(e,t){if(Dw(e)&&!YC(e)){var n=mA(this);n.frozen||(n.frozen=new vA),xA(this,e)?AA(this,e,t):n.frozen.set(e,t)}else AA(this,e,t);return this}})}var OA=mw("iterator"),kA=mw("toStringTag"),BA=MC.values,FA=function(e,t){if(e){if(e[OA]!==BA)try{Kw(e,OA,BA)}catch(t){e[OA]=BA}if(e[kA]||Kw(e,kA,t),AE[t])for(var n in MC)if(e[n]!==MC[n])try{Kw(e,n,MC[n])}catch(t){e[n]=MC[n]}}};for(var TA in AE)FA(Ib[TA]&&Ib[TA].prototype,TA);FA(BE,"DOMTokenList");var _A=new WeakMap,PA=new WeakMap,jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=new WeakMap,MA=new WeakMap,zA=new WeakMap,$A=new WeakMap,HA=new WeakMap,VA=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap,qA=new WeakMap,KA=new WeakMap,YA=new WeakMap,XA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,QA=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=tD.find,oO=!0;"find"in[]&&Array(1).find((function(){oO=!1})),LD({target:"Array",proto:!0,forced:oO},{find:function(e){return rO(this,e,arguments.length>1?arguments[1]:void 0)}}),fS("find"),LD({global:!0},{globalThis:Ib});const iO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Up&&(Bp.fn.css=Up),Xp&&(Bp.fn.append=Xp),Fp&&(Bp.fn.addClass=Fp),Tp&&(Bp.fn.removeClass=Tp),_p&&(Bp.fn.hasClass=_p),Lp&&(Bp.fn.on=Lp),uh&&(Bp.fn.focus=uh),Pp&&(Bp.fn.attr=Pp),jp&&(Bp.fn.removeAttr=jp),Hp&&(Bp.fn.hide=Hp),Vp&&(Bp.fn.show=Vp),$p&&(Bp.fn.offset=$p),Mp&&(Bp.fn.width=Mp),zp&&(Bp.fn.height=zp),Jp&&(Bp.fn.parent=Jp),Qp&&(Bp.fn.parents=Qp),Yp&&(Bp.fn.is=Yp),Np&&(Bp.fn.dataset=Np),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),th&&(Bp.fn.children=th),nh&&(Bp.fn.remove=nh),eh&&(Bp.fn.find=eh),Wp&&(Bp.fn.each=Wp),rh&&(Bp.fn.empty=rh);var aO,uO,sO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},lO=function(e){return cO(e)&&1===e.nodeType},cO=function(e){var t=sO(e);return!!t&&e instanceof t.Node},fO=function(e){var t=e&&e.anchorNode&&sO(e.anchorNode);return!!t&&e instanceof t.Selection},dO=function(e){return cO(e)&&3===e.nodeType},pO=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},hO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(cO(r=i)&&8===r.nodeType||lO(i)&&0===i.childNodes.length||lO(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]},gO=function(e,t,n){return PC(hO(e,t,n),1)[0]},vO=function e(t){var n,r,o="";if(dO(t)&&t.nodeValue)return t.nodeValue;if(lO(t)){try{for(var i=_C(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function yO(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||yO(o,t)}}function mO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==aO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(uO=aO||(aO={}))[uO.ELEMENT_NODE=1]="ELEMENT_NODE",uO[uO.TEXT_NODE=3]="TEXT_NODE",uO[uO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",uO[uO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",uO[uO.COMMENT_NODE=8]="COMMENT_NODE",uO[uO.DOCUMENT_NODE=9]="DOCUMENT_NODE",uO[uO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",uO[uO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var bO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),wO="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 EO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),DO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),SO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),xO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var CO=!SO&&!DO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,AO={getWindow:function(e){var t=JA.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=ZA.get(t);return n||(n=new IC,ZA.set(t,n)),n},setNewKey:function(e){var t=new IC;ZA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=GA.get(r);if(null==o){if(Af.isEditor(r))return n;break}var i=WA.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=AO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return GA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=AO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[AO.findPath(e,t)[0]];return Tf.get(e,n)},toDOMNode:function(e,t){var n;if(Af.isEditor(t))n=qA.get(e);else{var r=AO.findKey(e,t);n=YA.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=AO.toDOMNode(e,e);try{r=lO(t)?t:t.parentElement}catch(e){if(!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"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Vf.isBackward(t),i=AO.toDOMPoint(e,n),a=Vf.isCollapsed(t)?i:AO.toDOMPoint(e,r),u=AO.getWindow(e).document.createRange(),s=PC(o?a:i,2),l=s[0],c=s[1],f=PC(o?i:a,2),d=f[0],p=f[1],h=!!(lO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(lO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=PC(Af.node(e,t.path),1)[0],a=AO.toDOMNode(e,i);Af.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 l=_C(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}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=lO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?KA.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=AO.toSlateNode(e,t.target),u=AO.findPath(e,a);if(Af.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Af.point(e,u,{edge:l?"start":"end"}),f=l?Af.before(e,c):Af.after(e,c);if(f)return Af.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 AO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((fO(t)?t.anchorNode:t.startContainer)&&(fO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=xO&&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 c=AO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:AO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Vf.isExpanded(d)&&Vf.isForward(d)&&lO(i)&&Af.void(e,{at:d.focus,mode:"highest"})&&(d=Af.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=PC(o?t:function(e){var t,n=PC(e,2),r=n[0],o=n[1];if(lO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=PC(hO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;lO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=gO(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],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=AO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();jC(jC([],PC(hp(v.querySelectorAll("[data-slate-zero-width]")))),PC(hp(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=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&&(l.hasAttribute("data-slate-zero-width")||wO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=AO.toSlateNode(e,c);return{path:AO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Af.hasPath(e,n.path)&&Af.hasPath(e,r.path)},getNodeType:function(e){return wf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Tf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Af.nodes(e,{universal:!0});try{for(var i=_C(o),a=i.next();!a.done;a=i.next()){var u=PC(a.value,1)[0];wf.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=PC(Af.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=PC(Af.nodes(e,{match:function(e){return Xf.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=PC(Af.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&PC(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Af.isEnd(e,n.anchor,t)||Af.isEnd(e,n.focus,t))},getTextarea:function(e){var t=_A.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return NA.get(e)||null},getHoverbar:function(e){return LA.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)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=AO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=_C(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Af.nodes(e,{match:function(t){return!(!wf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=_C(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];yO(AO.toDOMNode(e,h),(function(e,t){var n=Bp(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=Af.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=_C(r),a=i.next();!a.done;a=i.next())a.value,o++}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(Vf.isExpanded(t))return!1;var n=AO.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=Af.node(e,t);if(null==n)return!1;var r=PC(n,1)[0].children;return 1===r.length&&""===r[0].text}},OO=1,kO={},BO={},FO=tD.filter,TO=_x("filter");LD({target:"Array",proto:!0,forced:!TO},{filter:function(e){return FO(this,e,arguments.length>1?arguments[1]:void 0)}});var _O="\t\n\v\f\r \u2028\u2029\ufeff",PO=Wb("".replace),jO="["+_O+"]",NO=RegExp("^"+jO+jO+"*"),IO=RegExp(jO+jO+"*$"),LO=function(e){return function(t){var n=GD(qb(t));return 1&e&&(n=PO(n,NO,"")),2&e&&(n=PO(n,IO,"")),n}},RO={start:LO(1),end:LO(2),trim:LO(3)},MO=vE.PROPER,zO=RO.trim;LD({target:"String",proto:!0,forced:function(e){return fw((function(){return!!_O[e]()||"
"!=="
"[e]()||MO&&_O[e].name!==e}))}("trim")},{trim:function(){return zO(this)}});var $O=[],HO={};function VO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var UO,WO,GO,qO,KO=Ib.Promise,YO=mw("species"),XO=function(e){var t=ow(e),n=Gw.f;Ew&&t&&!t[YO]&&n(t,YO,{configurable:!0,get:function(){return this}})},ZO=Ib.TypeError,JO=mw("species"),QO=function(e,t){var n,r=Bw(e).constructor;return void 0===r||null==(n=Bw(r)[JO])?t:function(e){if(YE(e))return e;throw ZO(Iw(e)+" is not a constructor")}(n)},ek=Wb([].slice),tk=/(?:ipad|iphone|ipod).*applewebkit/i.test(iw),nk="process"==wE(Ib.process),rk=Ib.setImmediate,ok=Ib.clearImmediate,ik=Ib.process,ak=Ib.Dispatch,uk=Ib.Function,sk=Ib.MessageChannel,lk=Ib.String,ck=0,fk={};try{UO=Ib.location}catch(uO){}var dk=function(e){if(Zb(fk,e)){var t=fk[e];delete fk[e],t()}},pk=function(e){return function(){dk(e)}},hk=function(e){dk(e.data)},gk=function(e){Ib.postMessage(lk(e),UO.protocol+"//"+UO.host)};rk&&ok||(rk=function(e){var t=ek(arguments,1);return fk[++ck]=function(){iC(nw(e)?e:uk(e),void 0,t)},WO(ck),ck},ok=function(e){delete fk[e]},nk?WO=function(e){ik.nextTick(pk(e))}:ak&&ak.now?WO=function(e){ak.now(pk(e))}:sk&&!tk?(qO=(GO=new sk).port2,GO.port1.onmessage=hk,WO=TE(qO.postMessage,qO)):Ib.addEventListener&&nw(Ib.postMessage)&&!Ib.importScripts&&UO&&"file:"!==UO.protocol&&!fw(gk)?(WO=gk,Ib.addEventListener("message",hk,!1)):WO="onreadystatechange"in Cw("script")?function(e){nS.appendChild(Cw("script")).onreadystatechange=function(){nS.removeChild(this),dk(e)}}:function(e){setTimeout(pk(e),0)});var vk,yk,mk,bk,wk,Ek,Dk,Sk,xk={set:rk,clear:ok},Ck=/ipad|iphone|ipod/i.test(iw)&&void 0!==Ib.Pebble,Ak=/web0s(?!.*chrome)/i.test(iw),Ok=pD.f,kk=xk.set,Bk=Ib.MutationObserver||Ib.WebKitMutationObserver,Fk=Ib.document,Tk=Ib.process,_k=Ib.Promise,Pk=Ok(Ib,"queueMicrotask"),jk=Pk&&Pk.value;jk||(vk=function(){var e,t;for(nk&&(e=Tk.domain)&&e.exit();yk;){t=yk.fn,yk=yk.next;try{t()}catch(e){throw yk?bk():mk=void 0,e}}mk=void 0,e&&e.enter()},tk||nk||Ak||!Bk||!Fk?!Ck&&_k&&_k.resolve?((Dk=_k.resolve(void 0)).constructor=_k,Sk=TE(Dk.then,Dk),bk=function(){Sk(vk)}):nk?bk=function(){Tk.nextTick(vk)}:(kk=TE(kk,Ib),bk=function(){kk(vk)}):(wk=!0,Ek=Fk.createTextNode(""),new Bk(vk).observe(Ek,{characterData:!0}),bk=function(){Ek.data=wk=!wk}));var Nk,Ik,Lk,Rk,Mk=jk||function(e){var t={fn:e,next:void 0};mk&&(mk.next=t),yk||(yk=t,bk()),mk=t},zk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Rw(t),this.reject=Rw(n)},$k={f:function(e){return new zk(e)}},Hk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Vk="object"==typeof window,Uk=xk.set,Wk=mw("species"),Gk="Promise",qk=dE.getterFor(Gk),Kk=dE.set,Yk=dE.getterFor(Gk),Xk=KO&&KO.prototype,Zk=KO,Jk=Xk,Qk=Ib.TypeError,eB=Ib.document,tB=Ib.process,nB=$k.f,rB=nB,oB=!!(eB&&eB.createEvent&&Ib.dispatchEvent),iB=nw(Ib.PromiseRejectionEvent),aB=!1,uB=ND(Gk,(function(){var e=Qw(Zk),t=e!==String(Zk);if(!t&&66===cw)return!0;if(cw>=51&&/native code/.test(e))return!1;var n=new Zk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Wk]=r,!(aB=n.then((function(){}))instanceof r)||!t&&Vk&&!iB})),sB=uB||!RS((function(e){Zk.all(e).catch((function(){}))})),lB=function(e){var t;return!(!Dw(e)||!nw(t=e.then))&&t},cB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Mk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&hB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Qk("Promise-chain cycle")):(u=lB(a))?Tw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&dB(e)}))}},fB=function(e,t,n){var r,o;oB?((r=eB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Ib.dispatchEvent(r)):r={promise:t,reason:n},!iB&&(o=Ib["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Ib.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},dB=function(e){Tw(Uk,Ib,(function(){var t,n=e.facade,r=e.value;if(pB(e)&&(t=Hk((function(){nk?tB.emit("unhandledRejection",r,n):fB("unhandledrejection",n,r)})),e.rejection=nk||pB(e)?2:1,t.error))throw t.value}))},pB=function(e){return 1!==e.rejection&&!e.parent},hB=function(e){Tw(Uk,Ib,(function(){var t=e.facade;nk?tB.emit("rejectionHandled",t):fB("rejectionhandled",t,e.value)}))},gB=function(e,t,n){return function(r){e(t,r,n)}},vB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,cB(e,!0))},yB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Qk("Promise can't be resolved itself");var r=lB(t);r?Mk((function(){var n={done:!1};try{Tw(r,t,gB(yB,n,e),gB(vB,n,e))}catch(t){vB(n,t,e)}})):(e.value=t,e.state=1,cB(e,!1))}catch(t){vB({done:!1},t,e)}}};if(uB&&(Jk=(Zk=function(e){rA(this,Jk),Rw(e),Tw(Nk,this);var t=qk(this);try{e(gB(yB,t),gB(vB,t))}catch(e){vB(t,e)}}).prototype,(Nk=function(e){Kk(this,{type:Gk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zC(Jk,{then:function(e,t){var n=Yk(this),r=n.reactions,o=nB(QO(this,Zk));return o.ok=!nw(e)||e,o.fail=nw(t)&&t,o.domain=nk?tB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&cB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ik=function(){var e=new Nk,t=qk(e);this.promise=e,this.resolve=gB(yB,t),this.reject=gB(vB,t)},$k.f=nB=function(e){return e===Zk||e===Lk?new Ik(e):rB(e)},nw(KO)&&Xk!==Object.prototype)){Rk=Xk.then,aB||(yE(Xk,"then",(function(e,t){var n=this;return new Zk((function(e,t){Tw(Rk,n,e,t)})).then(e,t)}),{unsafe:!0}),yE(Xk,"catch",Jk.catch,{unsafe:!0}));try{delete Xk.constructor}catch(uO){}cx&&cx(Xk,Jk)}LD({global:!0,wrap:!0,forced:uB},{Promise:Zk}),ix(Zk,Gk,!1),XO(Gk),Lk=ow(Gk),LD({target:Gk,stat:!0,forced:uB},{reject:function(e){var t=nB(this);return Tw(t.reject,void 0,e),t.promise}}),LD({target:Gk,stat:!0,forced:uB},{resolve:function(e){return function(e,t){if(Bw(e),Dw(t)&&t.constructor===e)return t;var n=$k.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),LD({target:Gk,stat:!0,forced:sB},{all:function(e){var t=this,n=nB(t),r=n.resolve,o=n.reject,i=Hk((function(){var n=Rw(t.resolve),i=[],a=0,u=1;tA(e,(function(e){var s=a++,l=!1;u++,Tw(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=nB(t),r=n.reject,o=Hk((function(){var o=Rw(t.resolve);tA(e,(function(e){Tw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var mB=Rx.UNSUPPORTED_Y,bB=Math.min,wB=[].push,EB=Wb(/./.exec),DB=Wb(wB),SB=Wb("".slice);function xB(e){Promise.resolve().then(e)}function CB(e,t){return wf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Af.isVoid(t,e),u="";a||(u=i.map((function(e){return CB(e,t)})).join(""));var s=function(e){return HO[e]||VO}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||$O.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(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=AO.getParentsNodes(t,e).some((function(e){return"pre"===AO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=AO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return $O.forEach((function(t){return r=t(e,r)})),r}(e,t)}function AB(e){return"w-e-element-"+e}sC("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=GD(qb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!hS(e))return Tw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Tw(eC,f,r))&&!((a=f.lastIndex)>c&&(DB(s,SB(r,c,i.index)),i.length>1&&i.index<r.length&&iC(wB,s,VC(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&EB(f,"")||DB(s,""):DB(s,SB(r,c)),s.length>o?VC(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Tw(t,this,e,n)}:t,[function(t,n){var o=qb(this),i=null==t?void 0:Mw(t,e);return i?Tw(i,t,o,n):Tw(r,GD(o),t,n)},function(e,o){var i=Bw(this),a=GD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=QO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mB?"g":"y"),f=new s(mB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===bC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=mB?0:h;var v,y=bC(f,mB?SB(a,h):a);if(null===y||(v=bB(ME(f.lastIndex+(mB?h:0)),a.length))===p)h=cC(a,h,l);else{if(DB(g,SB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(DB(g,y[m]),g.length===d)return g;h=p=v}}return DB(g,SB(a,p)),g}]}),!!fw((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]})),mB);var OB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},kB=function(e,t,n){var r=AO.toDOMRange(e,t).getBoundingClientRect(),o=AO.toDOMRange(e,n).getBoundingClientRect();return OB(r,o)&&OB(o,r)},BB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],FB=[],TB=[],_B={},PB=Gw.f,jB=xD.f,NB=dE.enforce,IB=mw("match"),LB=Ib.RegExp,RB=LB.prototype,MB=Ib.SyntaxError,zB=Wb(qD),$B=Wb(RB.exec),HB=Wb("".charAt),VB=Wb("".replace),UB=Wb("".indexOf),WB=Wb("".slice),GB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qB=/a/g,KB=/a/g,YB=new LB(qB)!==qB,XB=Rx.MISSED_STICKY,ZB=Rx.UNSUPPORTED_Y,JB=Ew&&(!YB||XB||zx||Hx||fw((function(){return KB[IB]=!1,LB(qB)!=qB||LB(KB)==KB||"/a/i"!=LB(qB,"i")})));if(ND("RegExp",JB)){for(var QB=function(e,t){var n,r,o,i,a,u,s=_w(RB,this),l=hS(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===QB)return e;if((l||_w(RB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:zB(d))),e=void 0===e?"":GD(e),t=void 0===t?"":GD(t),d=e,zx&&"dotAll"in qB&&(r=!!t&&UB(t,"s")>-1)&&(t=VB(t,/s/g,"")),n=t,XB&&"sticky"in qB&&(o=!!t&&UB(t,"y")>-1)&&ZB&&(t=VB(t,/y/g,"")),Hx&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=HB(e,r)))t+=HB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:$B(GB,WB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Zb(a,c))throw new MB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=oA(LB(e,t),s?this:RB,QB),(r||o||f.length)&&(u=NB(a),r&&(u.dotAll=!0,u.raw=QB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=HB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+HB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Kw(a,"source",""===d?"(?:)":d)}catch(e){}return a},eF=function(e){e in QB||PB(QB,e,{configurable:!0,get:function(){return LB[e]},set:function(t){LB[e]=t}})},tF=jB(LB),nF=0;tF.length>nF;)eF(tF[nF++]);RB.constructor=QB,QB.prototype=RB,yE(Ib,"RegExp",QB)}XO("RegExp");var rF=new RegExp(String.fromCharCode(160),"g");function oF(e){return e.replace(rF," ")}function iF(e,t){var n=e.length;if(n){var r=e[n-1];if(Xf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function aF(e,t,n){return{type:"paragraph",children:[{text:Bp(e).text().replace(/\s+/gm," ")}]}}function uF(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!==aO.ELEMENT_NODE)if(e.nodeType!==aO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=oF(r),iF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(iF(n,"\n")||n.push({text:"\n"}));var o=lF(Bp(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 _B)if(e[0].matches(t))return _B[t];return aF}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Af.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),TB.forEach((function(n){r=n(e[0],r,t)})))})),o}function sF(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=oF(n)};return TB.forEach((function(n){r=n(e[0],r,t)})),r}function lF(e,t){FB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Bp(r(e[0])))}));var n=mO(e);return"span"===n?e.attr("data-w-e-type")?uF(e,t):sF(e,t):"code"===n?"pre"===mO(e.parent())?uF(e,t):sF(e,t):BB.includes(n)?sF(e,t):uF(e,t)}function cF(e,t,n){var r=Bp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function fF(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=Bp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=lF(Bp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var dF=Gw.f,pF=ZC.fastKey,hF=dE.set,gF=dE.getterFor,vF={getConstructor:function(e,t,n,r){var o=e((function(e,o){rA(e,i),hF(e,{type:t,index:sS(null),first:void 0,last:void 0,size:0}),Ew||(e.size=0),null!=o&&tA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=gF(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=pF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Ew?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=pF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return zC(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Ew?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),Ew?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=TE(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)}}),zC(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)}}),Ew&&dF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=gF(t),i=gF(r);yx(e,t,(function(e,t){hF(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(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)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),XO(t)}};iA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),vF);var yF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function mF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):hd.insertNodes(e,t,{mode:"highest"})}var bF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=PC(Vf.edges(n),2),o=r[0],i=r[1],a=Af.void(t,{at:o.path}),u=Af.void(t,{at:i.path});if(!Vf.isCollapsed(n)||a){var s=AO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=PC(u,1)[0],d=s.cloneRange(),p=AO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),dO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",vO(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=_C(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&hd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},wF=function(e){return null!=e},EF={object:!0,function:!0,undefined:!0},DF=/^\s*class[\s{/}]/,SF=Function.prototype.toString,xF=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!!wF(e)&&hasOwnProperty.call(EF,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!DF.test(SF.call(e))},CF=function(e){return null!=e},AF=Object.keys,OF=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return AF(CF(e)?Object(e):e)},kF=function(e){if(!CF(e))throw new TypeError("Cannot use null or undefined");return e},BF=Math.max,FF=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=BF(arguments.length,2);for(e=Object(kF(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)OF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},TF=Array.prototype.forEach,_F=Object.create,PF=function(e,t){var n;for(n in e)t[n]=e[n]},jF=function(e){var t=_F(null);return TF.call(arguments,(function(e){CF(e)&&PF(Object(e),t)})),t},NF="razdwatrzy",IF=String.prototype.indexOf,LF="function"==typeof NF.contains&&!0===NF.contains("dwa")&&!1===NF.contains("foo")?String.prototype.contains:function(e){return IF.call(this,e,arguments[1])>-1},RF=_b((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],wF(e)?(n=LF.call(e,"c"),r=LF.call(e,"e"),o=LF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?FF(jF(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],wF(t)?xF(t)?wF(n)?xF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,wF(e)?(r=LF.call(e,"c"),o=LF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?FF(jF(i),a):a}})),MF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},zF=_b((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return MF(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.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 MF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(MF(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)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.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];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:RF(n),once:RF(r),off:RF(o),emit:RF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function $F(e){var t=tO.get(e);return null==t&&(t=zF(),tO.set(e,t)),t}var HF=new WeakMap;function VF(e,t){var n=HF.get(e);null==n&&(n=new Set,HF.set(e,n)),n.add(t)}function UF(e){return HF.get(e)||new Set}function WF(e){HF.set(e,new Set)}function GF(e){var t=AO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function qF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=GF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=AO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function KF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=wf.isElement(t)&&e.isVoid(t),i=wf.isElement(t)&&e.isInline(t),a=XA.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=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(iO.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,c=p.height}}var h=GF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,D=l-y;if("bar"===n)return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?D>(m-f)/2?w.right=m-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function YF(e,t){xB((function(){var n=GF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.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(g.indexOf("right")>=0&&c<0){var D=t.css("right"),S=parseInt(D.toString())-Math.abs(c);t.css("right",S+"px")}}}))}var XF=_x("slice"),ZF=mw("species"),JF=Ib.Array,QF=Math.max;LD({target:"Array",proto:!0,forced:!XF},{slice:function(e,t){var n,r,o,i=fD(this),a=zE(i),u=vD(e,a),s=vD(void 0===t?a:t,a);if($E(i)&&(n=i.constructor,(YE(n)&&(n===JF||$E(n.prototype))||Dw(n)&&null===(n=n[ZF]))&&(n=void 0),n===JF||void 0===n))return ek(i,u,s);for(r=new(void 0===n?JF:n)(QF(s-u,0)),o=0;u<s;u++,o++)u in i&&kS(r,o,i[u]);return r.length=o,r}});var eT=pD.f,tT=Wb("".startsWith),nT=Wb("".slice),rT=Math.min,oT=mS("startsWith"),iT=!oT&&!!function(){var e=eT(String.prototype,"startsWith");return e&&!e.writable}();LD({target:"String",proto:!0,forced:!iT&&!oT},{startsWith:function(e){var t=GD(qb(this));vS(e);var n=ME(rT(arguments.length>1?arguments[1]:void 0,t.length)),r=GD(e);return tT?tT(t,r,n):nT(t,n,n+r.length)===r}});var aT=Object.assign,uT=Object.defineProperty,sT=Wb([].concat),lT=!aT||fw((function(){if(Ew&&1!==aT({b:1},aT(uT({},"a",{enumerable:!0,get:function(){uT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=aT({},e)[n]||RD(aT({},t)).join("")!=r}))?function(e,t){for(var n=Yb(e),r=arguments.length,o=1,i=CD.f,a=cD.f;r>o;)for(var u,s=jE(arguments[o++]),l=i?sT(RD(s),i(s)):RD(s),c=l.length,f=0;c>f;)u=l[f++],Ew&&!Tw(a,s,u)||(n[u]=s[u]);return n}:aT;LD({target:"Object",stat:!0,forced:Object.assign!==lT},{assign:lT});var cT=["props","attrs","style","dataset","on","hook"];function fT(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(!cT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ov(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&&fT(e)}))}var dT=[],pT={};function hT(e,t,n){return mg(n.isInline(e)?"span":"div",null,t)}function gT(e,t){return void 0===t&&(t=!1),mg("span",{"data-slate-string":!0},t?e+"\n":e)}function vT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),mg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?mg("br",null):null)}function yT(e,t,n,r){return WA.set(e,t),GA.set(e,n),wf.isElement(e)?function(e,t){var n,r=AO.findKey(t,e),o=t.isInline(e),i=Af.isVoid(t,e),a=AB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return pT[e]||hT}(s);n=i?null:c.map((function(n,r){return yT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=PC(Tf.texts(e),1),g=PC(h[0],1)[0],v=mg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},yT(g,0,e,t));d=mg(p,{style:{position:"relative"}},d,v),WA.set(g,0),GA.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return dT.forEach((function(r){n=r(e,t)})),n}(e,d)),xB((function(){var t=pO(a);null!=t&&(YA.set(r,t),XA.set(e,t),KA.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=AO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=AO.findPath(n,e),a=o([e,i]),u=Xf.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=AO.findPath(o,n),u=Nf.parent(a);if(Af.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?vT(Tf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Af.string(o,u)?""===i?vT():t&&"\n"===i.slice(-1)?gT(i,!0):gT(i):vT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return dT.forEach((function(t){n=t(e,n)})),n}(r,i),mg("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=mg("span",{"data-slate-node":"text",id:l,key:r.id},s);return xB((function(){var t=pO(l);null!=t&&(YA.set(r,t),XA.set(e,t),KA.set(t,e))})),c}(e,n,r)}function mT(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),Jh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=yT(e,n,t,t);return fT(r),r}));var c=HA.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Bp('<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=Xh([ng,fg,vg,ig,lg,eg]))(n,s),HA.set(e,!1),VA.set(e,p)}else{var d=UA.get(e),p=VA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=pO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=sO(n);h&&JA.set(t,h)}qA.set(t,n),XA.set(t,n),KA.set(n,t),UA.set(e,s)}}function bT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function wT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ET(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return wT(n.overflowY,t)||wT(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 DT(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}function ST(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(!bT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;bT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ET(f)&&!ET(document.documentElement)||null!=f&&ET(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,D=v.left,S="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,x="center"===i?D+m/2:"end"===i?w:D,C=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=T&&E<=P&&D>=j&&w<=_)return C;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?S:"end"===o?S-p:"nearest"===o?DT(g,g+p,p,L,M,g+S,g+S+y,y):S-p/2,$="start"===i?x:"center"===i?x-d/2:"end"===i?x-d:DT(h,h+d,d,I,R,h+x,h+x+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?S-T-L:"end"===o?S-P+M+V:"nearest"===o?DT(T,P,B,L,M+V,S,S+y,y):S-(T+B/2)+V/2,$="start"===i?x-j-I:"center"===i?x-(j+F/2)+H/2:"end"===i?x-_+R+H:DT(j,_,F,I,R+H,x,x+m,m);var U=O.scrollLeft,W=O.scrollTop;S+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),x+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}C.push({el:O,top:z,left:$})}return C}function xT(e){return e===Object(e)&&0!==Object.keys(e).length}function CT(e,t){return cO(t)&&AO.hasDOMNode(e,t,{editable:!0})}function AT(e,t){if(e.getConfig().readOnly)return!1;var n=OT(e,t)&&AO.toSlateNode(e,t);return Af.isVoid(e,n)}function OT(e,t){return cO(t)&&AO.hasDOMNode(e,t)}function kT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=AO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=qA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=AO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Vf.equals(l,r)){var c=!0;if(Vf.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")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||AO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&AO.toDOMRange(t,r);if(g){Vf.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(xT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:ST(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:xT(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)}))}(ST(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&wO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=AO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var BT=new WeakMap,FT=new WeakMap,TT={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"},_T={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"},PT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},jT=function(e){var t=TT[e],n=_T[e],r=PT[e],o=t&&hv(t),i=n&&hv(n),a=r&&hv(r);return function(e){return!(!o||!o(e))||!!(bO&&i&&i(e))||!(bO||!a||!a(e))}},NT={isBold:jT("bold"),isCompose:jT("compose"),isMoveBackward:jT("moveBackward"),isMoveForward:jT("moveForward"),isDeleteBackward:jT("deleteBackward"),isDeleteForward:jT("deleteForward"),isDeleteLineBackward:jT("deleteLineBackward"),isDeleteLineForward:jT("deleteLineForward"),isDeleteWordBackward:jT("deleteWordBackward"),isDeleteWordForward:jT("deleteWordForward"),isExtendBackward:jT("extendBackward"),isExtendForward:jT("extendForward"),isExtendLineBackward:jT("extendLineBackward"),isExtendLineForward:jT("extendLineForward"),isItalic:jT("italic"),isMoveLineBackward:jT("moveLineBackward"),isMoveLineForward:jT("moveLineForward"),isMoveWordBackward:jT("moveWordBackward"),isMoveWordForward:jT("moveWordForward"),isRedo:jT("redo"),isSplitBlock:jT("splitBlock"),isTransposeCharacter:jT("transposeCharacter"),isUndo:jT("undo"),isTab:jT("tab"),isSelectAll:jT("selectAll")};function IT(e){e.preventDefault()}var LT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(CO&&!o&&CT(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=PC(r.getTargetRanges(),1)[0];if(s){var l=AO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Vf.equals(i,l)||hd.select(n,l)}}if(i&&Vf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Af.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Af.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Af.deleteForward(n);break;case"deleteContentBackward":Af.deleteBackward(n);break;case"deleteEntireSoftLine":Af.deleteBackward(n,{unit:"line"}),Af.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Af.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Af.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Af.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Af.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Af.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Af.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Af.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!nO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Af.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&CT(n,r.target)){var a=AO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===AO.toDOMNode(n,n)||lO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&cO(u)&&AO.hasDOMNode(n,u)){var s=AO.toSlateNode(n,u);if(wf.isElement(s)&&!n.isVoid(s))return}if(EO){var l=a.getSelection();null==l||l.removeAllRanges()}QA.delete(n)}}}},focus:function(e,t,n){var r=AO.toDOMNode(n,n),o=AO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,wO&&e.target!==r?r.focus():QA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&OT(n,e.target)&&cO(e.target)){var r=AO.toSlateNode(n,e.target),o=AO.findPath(n,r);if(Af.hasPath(n,o)&&Tf.get(n,o)===r){var i=Af.start(n,o),a=Af.end(n,o),u=Af.void(n,{at:i}),s=Af.void(n,{at:a});if(u&&s&&Nf.equals(u[1],s[1])){var l=Af.range(n,i);hd.select(n,l)}}}},compositionstart:function(e,t,n){if(CT(n,e.target)){var r=n.selection;if(r&&Vf.isExpanded(r)&&(Af.deleteFragment(n),Promise.resolve().then((function(){kT(t,n,!0)}))),r&&Vf.isCollapsed(r)){var o=AO.toDOMRange(n,r).startContainer,i=o.textContent||"";BT.set(n,i),FT.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(CT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(xO||wO)&&AO.cleanExposedTexNodeInSelectionBlock(n);for(var i=Vf.isBackward(o)?o.focus:o.anchor,a=PC(Af.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=PC(Af.node(n,i.path.slice(0,u+1)),1)[0];if(wf.isElement(s)&&((EO||wO)&&"link"===s.type||"code"===s.type)){AO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=AO.getLeftLengthOfMaxLength(n);c<l.length?(AO.toDOMRange(n,o).startContainer.textContent=BT.get(n)||"",c>0&&Af.insertText(n,l.slice(0,c)),t.changeViewState()):Af.insertText(n,l)}else Af.insertText(n,l);EO||setTimeout((function(){var e=n.selection;if(null!=e){var t=FT.get(n);null!=t&&AO.toDOMRange(n,e).startContainer!==t&&(t.textContent=BT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){CT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&CT(n,r.target)){if(function(e,t){var n=NA.get(e),r=n&&n.getMenus(),o=LA.get(e),i=o&&o.getMenus(),a=TC(TC({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&pv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),NT.isTab(r))return IT(r),void n.handleTab();if(NT.isRedo(r))return IT(r),void("function"==typeof n.redo&&n.redo());if(NT.isUndo(r))return IT(r),void("function"==typeof n.undo&&n.undo());if(NT.isMoveLineBackward(r))return IT(r),void hd.move(n,{unit:"line",reverse:!0});if(NT.isMoveLineForward(r))return IT(r),void hd.move(n,{unit:"line"});if(NT.isExtendLineBackward(r))return IT(r),void hd.move(n,{unit:"line",edge:"focus",reverse:!0});if(NT.isExtendLineForward(r))return IT(r),void hd.move(n,{unit:"line",edge:"focus"});if(NT.isMoveBackward(r))return IT(r),void(o&&Vf.isCollapsed(o)?hd.move(n,{reverse:!0}):hd.collapse(n,{edge:"start"}));if(NT.isMoveForward(r))return IT(r),void(o&&Vf.isCollapsed(o)?hd.move(n):hd.collapse(n,{edge:"end"}));if(NT.isMoveWordBackward(r))return IT(r),o&&Vf.isExpanded(o)&&hd.collapse(n,{edge:"focus"}),void hd.move(n,{unit:"word",reverse:!0});if(NT.isMoveWordForward(r))return IT(r),o&&Vf.isExpanded(o)&&hd.collapse(n,{edge:"focus"}),void hd.move(n,{unit:"word"});if(NT.isSelectAll(r))return IT(r),void n.selectAll();if(CO){if((xO||EO)&&o&&(NT.isDeleteBackward(r)||NT.isDeleteForward(r))&&Vf.isCollapsed(o)){var i=Tf.parent(n,o.anchor.path);if(wf.isElement(i)&&Af.isVoid(n,i)&&Af.isInline(n,i))return r.preventDefault(),void hd.delete(n,{unit:"block"})}}else{if(NT.isBold(r)||NT.isItalic(r)||NT.isTransposeCharacter(r))return void IT(r);if(NT.isSplitBlock(r))return IT(r),void Af.insertBreak(n);if(NT.isDeleteBackward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n));if(NT.isDeleteForward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n));if(NT.isDeleteLineBackward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n,{unit:"line"}));if(NT.isDeleteLineForward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n,{unit:"line"}));if(NT.isDeleteWordBackward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n,{unit:"word"}));if(NT.isDeleteWordForward(r))return IT(r),void(o&&Vf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!CO&&!n.getConfig().readOnly&&CT(n,e.target)){e.preventDefault();var r=e.key;Af.insertText(n,r)}},copy:function(e,t,n){var r=e;if(CT(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&&CT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Vf.isExpanded(o))Af.deleteFragment(n);else{var a=Tf.parent(n,o.anchor.path);Af.isVoid(n,a)&&hd.delete(n)}}},paste:function(e,t,n){nO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&CT(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void nO.set(n,!1);if(!CO||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(OT(n,e.target)){var r=AO.toSlateNode(n,e.target);Af.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(OT(n,r.target)&&!n.getConfig().readOnly){var o=AO.toSlateNode(n,r.target),i=AO.findPath(n,o);if(Af.isVoid(n,o)||Af.void(n,{at:i,voids:!0})){var a=Af.range(n,i);hd.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&&OT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&OT(n,r.target)&&null!=o&&!(CO&&EO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=AO.findEventRange(n,r);hd.select(n,a),t.isDraggingInternally&&(i&&hd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},RT=1,MT=function(){function e(e){var t=this;this.id=RT++,this.$textArea=null,this.$progressBar=Bp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Bp('<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=Mh((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=AO.findDocumentOrShadowRoot(t),a=i.activeElement,u=AO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,QA.set(t,!0)):QA.delete(t),!s)return hd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=CT(t,l)||AT(t,l),d=CT(t,c)||AT(t,c);if(f&&d){var p=AO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});hd.select(t,p)}else hd.deselect(t)}}(t,e)}),100);var n=Bp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Bp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Bp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,xB((function(){var e=t.editorInstance,n=AO.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=PA.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&&(Sh(LT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Mh((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-AO.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;mT(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=Bp('<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),xB((function(){kT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function zT(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&&zT(t)}function $T(){return Bp('<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 HT(){return Bp('<div class="w-e-bar-divider"></div>')}function VT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=bO?"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")}}}sC("match",(function(e,t,n){return[function(t){var n=qb(this),r=null==t?void 0:Mw(t,e);return r?Tw(r,t,n):new RegExp(t)[e](GD(n))},function(e){var r=Bw(this),o=GD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return bC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=bC(r,o));){var c=GD(u[0]);s[l]=c,""===c&&(r.lastIndex=cC(o,ME(r.lastIndex),a)),l++}return 0===l?null:s}]}));var UT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<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,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Bp(c);zT(d),f.append(d)}else f.text(a);VT(f,c,a,s,n),n&&c&&f.append(Bp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),xB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),r_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=r_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=r_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=r_(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}(),WT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return FC(t,e),t.prototype.onButtonClick=function(){},t}(UT),GT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=MA.get(e);null==t&&(t=new Set,MA.set(e,t)),t.add(this),zA.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=zA.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=zA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),qT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Bp('<div class="w-e-drop-panel"></div>'),n}return FC(t,e),t.prototype.genSelfElem=function(){return null},t}(GT),KT=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=$T();o.$button.append(i)}return o}return FC(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=r_(this);if(null==this.dropPanel){var n=new qT(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}(UT),YT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Bp('<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 FC(t,e),t.prototype.genSelfElem=function(){var e=this,t=Bp('<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=zA.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}(GT);function XT(e,t,n){var r=Bp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Bp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function ZT(e,t){var n=Bp('<div class="button-container"></div>'),r=Bp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var JT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Bp("body"),o.modal=null,o.menu=n,o}return FC(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=r_(this),t=this.menu.getModalPositionNode(e);return wf.isElement(t)?KF(e,t,"modal"):qF(e)},t.prototype.handleModal=function(){var e=r_(this),t=this.menu;if(null==this.modal){var n=new YT(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=r_(this),r=this.menu;if(null!=r.getModalContentElem){var o=AO.getTextarea(n),i=AO.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||YF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(UT),QT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Bp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return FC(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Bp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Bp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Bp('<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(Bp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(GT),e_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<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,l=t.hotkey,c=void 0===l?"":l;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),VT(f,s,i,c,n),this.$elem.append(f),this.menu=t,xB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),r_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=r_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new QT(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=Bp(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=r_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=r_(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=$T();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=r_(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}(),t_=function(){function e(e){this.$elem=Bp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Bp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Bp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Bp(n);zT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=$T();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}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){Bp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),n_=new WeakMap;function r_(e){var t=RA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function o_(e,t,n){void 0===n&&(n=!1);var r=n_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new KT(e,t,n):a?new JT(e,t,n):new WT(e,t,n)}if("select"===o&&(r=new e_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return n_.set(t,r),r}function i_(e,t){var n=e.selection;return null!=n&&!Vf.isCollapsed(n)&&!AO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Xf.isText(t)}var a_=function(){function e(){var e=this;this.$elem=Bp('<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=Fv((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&&wf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),xB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),AO.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;xB((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=HT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=BO[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=o_(e,r);this.hoverbarItems.push(i),RA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),wf.isElement(e)){var r=KF(t,e,"bar");return n.css(r),void YF(t,n)}if(Xf.isText(e))return r=qF(t),n.css(r),void YF(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,l=a||function(e,t){return AO.checkNodeType(t,o)},c=PC(Af.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[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=IA.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=i_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=AO.findPath(null,e),r=AO.findPath(null,t);return Nf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function u_(e,t,n,r){if(WA.set(e,t),GA.set(e,n),wf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return u_(t,n,e,r)})),Af.isVoid(r,e)){var i=PC(Tf.texts(e),1),a=PC(i[0],1)[0];WA.set(a,0),GA.set(a,e)}}}function s_(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,l=(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];UD.withoutSaving(t,(()=>{Af.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];UD.withoutSaving(t,(()=>{Af.withoutNormalizing(t,(()=>{var e=r.map(jf.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),l=UD.isSaving(t),c=UD.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=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||!Nf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Nf.equals(e.path,t.path)))(e,u)||s)),a&&c)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=AO.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=AO.getLeftLengthOfMaxLength(t);n<=0||n<Tf.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(AO.getLeftLengthOfMaxLength(t)<Tf.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=AO.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===aO.TEXT_NODE?e+(t.textContent||""):n===aO.ELEMENT_NODE?yF.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=$F(t);if(r.on(e,n),"destroyed"===e&&VF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),VF(t,o)}},t.once=function(e,n){$F(t).once(e,n)},t.off=function(e,n){$F(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=$F(t);o.emit.apply(o,jC([e],PC(n))),"destroyed"===e&&(UF(t).forEach((function(e){return o.off("destroyed",e)})),WF(t))},t}(function(e){var t=e;return t.select=function(e){hd.select(t,e)},t.deselect=function(){var n=t.selection,r=AO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&hd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||hd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=eO.get(t);null!=e&&(t.focus(),hd.select(t,e))},t.getSelectionPosition=function(){return qF(t)},t.getNodePosition=function(e){return KF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=PC(Vf.edges(e),2),r=n[0],o=n[1],i=PC(Af.edges(t,[]),2),a=i[0],u=i[1];return!(!Mf.equals(r,a)||!Mf.equals(o,u))},t.selectAll=function(){var e=Af.start(t,[]),n=Af.end(t,[]);hd.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,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=_C(Af.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=PC(p.value,2),g=h[0],v=h[1],y=AO.findKey(t,g);f.push([v,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=_C(Af.levels(t,{at:Nf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=PC(b.value,2);g=w[0],v=w[1],y=AO.findKey(t,g),f.push([v,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=_C(Af.levels(t,{at:Nf.common(Nf.parent(e.path),Nf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var S=PC(D.value,2);g=S[0],v=S[1],y=AO.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var x=_C(f),C=x.next();!C.done;C=x.next()){var A=PC(C.value,2);v=A[0],y=A[1],g=PC(Af.node(t,v),1)[0],ZA.set(g,y)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Vf.isCollapsed(e.selection)){var r=Af.above(e,{match:function(t){return Af.isBlock(e,t)},at:e.selection});if(r){var o=PC(r,2)[1],a=Af.range(e,o,e.selection.anchor),u=function(e,t){var n=Af.range(e,Vf.end(t)),r=Array.from(Af.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(kB(e,Af.range(e,r[o]),n))return Af.range(e,r[o],n);if(r.length<2)return Af.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)kB(e,Af.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Af.range(e,r[i],n)}(t,a);Vf.isCollapsed(u)||hd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&eO.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 CB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Tf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Af.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Af.nodes(t,{at:[],universal:!0});try{for(var u=_C(a),s=u.next();!s.done;s=u.next()){var l=PC(s.value,1)[0];if(wf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=AB(AO.findKey(t,l).id);i.push(TC(TC({},l),{id:c}))}}}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(wf.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(Xf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){hd.delete(t,{at:{anchor:Af.start(t,[]),focus:Af.end(t,[])}}),0===t.children.length&&hd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return AO.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===aO.TEXT_NODE||t===aO.ELEMENT_NODE&&!yF.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;AO.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!==aO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(BB.includes(r.toLowerCase()))s=!0;else for(var l in _B)if(a.matches(l)){s=!0;break}if(s){var c=lF(Bp(a),t);return Array.isArray(c)?(c.forEach((function(e){return mF(t,e)})),u++):(mF(t,c),u++),void(AO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;AO.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&&AO.isEmptyPath(t,a)&&hd.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=fF(t,e);if(hd.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(Af.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in BO)e.push(t);return e},t.getConfig=function(){var e=$A.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=bF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Af.pathRefs(e))If.transform(n,t);for(var r of Af.pointRefs(e))zf.transform(r,t);for(var o of Af.rangeRefs(e))Uf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Nc.get(e)||[],l=Vc(t);for(var c of s)u(Nf.transform(c,t));for(var f of l)u(f);Nc.set(e,a),hd.transform(e,t),e.operations.push(t),Af.normalize(e),"set_selection"===t.type&&(e.marks=null),Ic.get(e)||(Ic.set(e,!0),Promise.resolve().then((()=>{Ic.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Vf.isExpanded(r))hd.setNodes(e,{[t]:n},{match:Xf.isText,split:!0});else{var o=Hc(Hc({},Af.marks(e)||{}),{},{[t]:n});e.marks=o,Ic.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Vf.isCollapsed(n)&&hd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Vf.isCollapsed(n)&&hd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Vf.isExpanded(n)&&hd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Tf.fragment(e,t):[]},insertBreak:()=>{hd.splitNodes(e,{always:!0})},insertFragment:t=>{hd.insertFragment(e,t)},insertNode:t=>{hd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Hc({text:t},r);hd.insertNodes(e,o)}else hd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Xf.isText(n))if(wf.isElement(n)&&0===n.children.length)hd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Af.isEditor(n)&&wf.isElement(n)&&(e.isInline(n)||0===n.children.length||Xf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Tf.get(e,r);if(!Xf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Xf.isText(s)||wf.isElement(s)&&e.isInline(s))!==o?(hd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):wf.isElement(s)?e.isInline(s)&&(null!=l&&Xf.isText(l)?c&&(hd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(hd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Xf.isText(l)&&(Xf.equals(s,l,{loose:!0})?(hd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(hd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(hd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Vf.isExpanded(n))hd.unsetNodes(e,t,{match:Xf.isText,split:!0});else{var r=Hc({},Af.marks(e)||{});delete r[t],e.marks=r,Ic.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+OO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(AO.toDOMNode(t,t).focus({preventScroll:!0}),QA.set(t,!0),e){var n=Af.end(t,[]);hd.select(t,n)}else{var r=eO.get(t);r?hd.select(t,r):hd.select(t,Af.start(t,[]))}},t.isFocused=function(){return!!QA.get(t)},t.blur=function(){AO.toDOMNode(t,t).blur(),hd.deselect(t),QA.set(t,!1)},t.updateView=function(){AO.getTextarea(t).changeViewState();var e=AO.getToolbar(t);e&&e.changeToolbarState();var n=AO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=AO.getTextarea(t);e.destroy(),_A.delete(t),PA.delete(e);var n=AO.getToolbar(t);n&&(n.destroy(),NA.delete(t),jA.delete(n));var r=AO.getHoverbar(t);r&&(r.destroy(),LA.delete(t),IA.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=Bp("#"+e);if(0!==r.length){var o=r[0];if(!AO.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=AO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||AO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=MA.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 AO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=AO.getToolbar(t);n&&(e=n.$box);var r=AO.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=AO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return AO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return cF(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Tv(kO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Sh(t,(function(e,t){n[t]=TC(TC({},e),o[t]||{})})),delete e.MENU_CONF,TC({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);$A.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=fF(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),AO.normalizeContent(l),n){var p=new MT(n);_A.set(l,p),PA.set(p,l),p.changeViewState(),xB((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 a_,IA.set(h,l),LA.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return u_(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),xB((function(){return l.emit("created")})),l}var l_=_x("splice"),c_=Ib.TypeError,f_=Math.max,d_=Math.min;LD({target:"Array",proto:!0,forced:!l_},{splice:function(e,t){var n,r,o,i,a,u,s=Yb(this),l=zE(s),c=vD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=d_(f_(LE(t),0),l-c)),l+n-r>9007199254740991)throw c_("Maximum allowed length exceeded");for(o=JE(s,r),i=0;i<r;i++)(a=c+i)in s&&kS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var p_=function(){function e(e,t){var n=this;this.$toolbar=Bp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Fv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Bp(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),xB((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,l=void 0===s?[]:s,c=Tv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.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=HT();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 t_(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 t_,o=this.menus,i=o[e];if(null==i){var a=BO[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=o_(e,i,r);this.toolbarItems.push(u),RA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=jA.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}(),h_=vE.EXISTS,g_=Gw.f,v_=Function.prototype,y_=Wb(v_.toString),m_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,b_=Wb(m_.exec);function w_(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,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,D=void 0===E?function(e,t){}:E,S=e.onError,x=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,C=e.onProgress,A=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=PC(e.split("#"),2),r=n[0],o=n[1],i=[];Sh(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}(O,c));var k=new im({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Fb,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{D(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{x(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{x(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function E_(e){return E_="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},E_(e)}function D_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S_(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){D_(e,t,n[t])}))}return e}function x_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C_(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,r.key,r)}}function A_(e,t,n){return t&&C_(e.prototype,t),n&&C_(e,n),e}function O_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){if(t&&("object"===E_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O_(e)}function B_(e){return B_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B_(e)}function F_(e,t){return F_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F_(e,t)}function T_(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}}),t&&F_(e,t)}Ew&&!h_&&g_(v_,"name",{configurable:!0,get:function(){try{return b_(m_,y_(this))[1]}catch(e){return""}}});var __={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)}},P_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x_(this,e),this.init(t,n)}return A_(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||__,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,S_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),j_=function(){function e(){x_(this,e),this.observers={}}return A_(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];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function N_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function I_(e){return null==e?"":""+e}function L_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function R_(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 M_(e,t,n){var r=R_(e,t,Object);r.obj[r.k]=n}function z_(e,t){var n=R_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function $_(e,t,n){var r=z_(e,n);return void 0!==r?r:z_(t,n)}function H_(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]):H_(e[r],t[r],n):e[r]=t[r]);return e}function V_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var U_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function W_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return U_[e]})):e}var G_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function q_(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 l=r.slice(i+a).join(n);return l?q_(s,l,n):void 0}o=o[r[i]]}return o}}var K_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return x_(this,t),n=k_(this,B_(t).call(this)),G_&&j_.call(O_(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return T_(t,j_),A_(t,[{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=z_(this.data,a);return u||!i||"string"!=typeof n?u:q_(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),M_(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=z_(this.data,a)||{};r?H_(u,n,o):u=S_({},u,n),M_(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?S_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),Y_={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}},X_={},Z_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x_(this,t),n=k_(this,B_(t).call(this)),G_&&j_.call(O_(n)),L_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,O_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=P_.create("translator"),n}return T_(t,j_),A_(t,[{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(e,n,r){var o=this;if("object"!==E_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[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(g,h,S_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,S=D?[]:{},x=D?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var A="".concat(x).concat(i).concat(C);S[C]=this.translate(A,S_({},n,{joinArrays:!1,ns:s})),S[C]===A&&(S[C]=h[C])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,S_({},n,{keySeparator:!1}));I&&I.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 L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&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(S_({},n,{interpolation:S_({},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 l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=S_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.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=Y_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?S_({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),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.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);c.forEach((function(e){a.isValidLookup(t)||(i=e,!X_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(X_["".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,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=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){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function J_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Q_=function(){function e(t){x_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P_.create("languageUtils")}return A_(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}(),eP=[{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}],tP={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)}};function nP(){var e={};return eP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:tP[t.fc]}}))})),e}var rP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x_(this,e),this.languageUtils=t,this.options=n,this.logger=P_.create("pluralResolver"),this.rules=nP()}return A_(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}(),oP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x_(this,e),this.logger=P_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return A_(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:W_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?V_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?V_(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?V_(t.nestingPrefix):t.nestingPrefixEscaped||V_("$t("),this.nestingSuffix=t.nestingSuffix?V_(t.nestingSuffix):t.nestingSuffixEscaped||V_(")"),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 l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=$_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,S_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format($_(t,s,a),l,n,S_({},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 l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(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=I_(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=S_({},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=S_({},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=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=I_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,S_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),iP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x_(this,t),o=k_(this,B_(t).call(this)),G_&&j_.call(O_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=P_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return T_(t,j_),A_(t,[{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,r){var o=R_(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].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,S_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function aP(){return{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"===E_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===E_(e[2])||"object"===E_(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}}}function uP(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 sP(){}var lP=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(x_(this,t),e=k_(this,B_(t).call(this)),G_&&j_.call(O_(e)),e.options=uP(n),e.services={},e.logger=P_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),k_(e,O_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return T_(t,j_),A_(t,[{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=S_({},aP(),this.options,uP(t)),this.format=this.options.interpolation.format,n||(n=sP),!this.options.isClone){this.modules.logger?P_.init(r(this.modules.logger),this.options):P_.init(null,this.options);var o=new Q_(this.options);this.store=new K_(this.options.resources,this.options);var i=this.services;i.logger=P_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new rP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new oP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new iP(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 Z_(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");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=N_(),c=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),l.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?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sP,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=N_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=sP),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&&Y_.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=N_();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"!==E_(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=S_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,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=N_();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=N_();"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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sP,o=S_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=S_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Z_(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}}}]),t}(),cP=new lP;function fP(e,t){cP.addResourceBundle(e,"translation",t,!0,!0)}cP.init({lng:"zh-CN",resources:{}});var dP=cP.t.bind(cP);fP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),fP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var pP=ta?{}.toString:function(){return"[object "+ia(this)+"]"};ta||Di(Object.prototype,"toString",pP,{unsafe:!0});var hP=Array.isArray||function(e){return"Array"==Ur(e)},gP=function(){},vP=[],yP=eo("Reflect","construct"),mP=/^\s*(?:class|function)\b/,bP=$r(mP.exec),wP=!mP.exec(gP),EP=function(e){if(!Zr(e))return!1;try{return yP(gP,vP,e),!0}catch(e){return!1}},DP=!yP||kr((function(){var e;return EP(EP.call)||!EP(Object)||!EP((function(){e=!0}))||e}))?function(e){if(!Zr(e))return!1;switch(ia(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wP||!!bP(mP,oi(e))}:EP,SP=No("species"),xP=Or.Array,CP=function(e,t){return new(function(e){var t;return hP(e)&&(t=e.constructor,(DP(t)&&(t===xP||hP(t.prototype))||Jr(t)&&null===(t=t[SP]))&&(t=void 0)),void 0===t?xP:t}(e))(0===t?0:t)},AP=$r([].push),OP=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,l,c,f){for(var d,p,h=xo(s),g=qr(h),v=yu(l,c),y=Ti(g),m=0,b=f||CP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:AP(w,d)}else switch(e){case 4:return!1;case 7:AP(w,d)}return i?-1:r||o?o:w}},kP=[OP(0),OP(1),OP(2),OP(3),OP(4),OP(5),OP(6),OP(7)][0],BP=function(e,t){var n=[].forEach;return!!n&&kr((function(){n.call(null,(function(){throw 1}),1)}))}(),FP=BP?[].forEach:function(e){return kP(this,e,arguments.length>1?arguments[1]:void 0)},TP=function(e){if(e&&e.forEach!==FP)try{Qo(e,"forEach",FP)}catch(t){e.forEach=FP}};for(var _P in fs)fs[_P]&&TP(Or[_P]&&Or[_P].prototype);TP(hs),fP("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"}}),fP("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 PP={type:"paragraph",renderElem:function(e,t,n){return mg("p",null,t)}},jP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function NP(e){var t={exports:{}};return e(t,t.exports),t.exports}var IP,LP,RP=function(e){return e&&e.Math==Math&&e},MP=RP("object"==typeof globalThis&&globalThis)||RP("object"==typeof window&&window)||RP("object"==typeof self&&self)||RP("object"==typeof jP&&jP)||function(){return this}()||Function("return this")(),zP=function(e){try{return!!e()}catch(e){return!0}},$P=!zP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),HP=Function.prototype.call,VP=HP.bind?HP.bind(HP):function(){return HP.apply(HP,arguments)},UP={}.propertyIsEnumerable,WP=Object.getOwnPropertyDescriptor,GP=WP&&!UP.call({1:2},1)?function(e){var t=WP(this,e);return!!t&&t.enumerable}:UP,qP={f:GP},KP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YP=Function.prototype,XP=YP.bind,ZP=YP.call,JP=XP&&XP.bind(ZP),QP=XP?function(e){return e&&JP(ZP,e)}:function(e){return e&&function(){return ZP.apply(e,arguments)}},ej=QP({}.toString),tj=QP("".slice),nj=function(e){return tj(ej(e),8,-1)},rj=MP.Object,oj=QP("".split),ij=zP((function(){return!rj("z").propertyIsEnumerable(0)}))?function(e){return"String"==nj(e)?oj(e,""):rj(e)}:rj,aj=MP.TypeError,uj=function(e){if(null==e)throw aj("Can't call method on "+e);return e},sj=function(e){return ij(uj(e))},lj=function(e){return"function"==typeof e},cj=function(e){return"object"==typeof e?null!==e:lj(e)},fj=function(e){return lj(e)?e:void 0},dj=function(e,t){return arguments.length<2?fj(MP[e]):MP[e]&&MP[e][t]},pj=QP({}.isPrototypeOf),hj=dj("navigator","userAgent")||"",gj=MP.process,vj=MP.Deno,yj=gj&&gj.versions||vj&&vj.version,mj=yj&&yj.v8;mj&&(LP=(IP=mj.split("."))[0]>0&&IP[0]<4?1:+(IP[0]+IP[1])),!LP&&hj&&(!(IP=hj.match(/Edge\/(\d+)/))||IP[1]>=74)&&(IP=hj.match(/Chrome\/(\d+)/))&&(LP=+IP[1]);var bj=LP,wj=!!Object.getOwnPropertySymbols&&!zP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bj&&bj<41})),Ej=wj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dj=MP.Object,Sj=Ej?function(e){return"symbol"==typeof e}:function(e){var t=dj("Symbol");return lj(t)&&pj(t.prototype,Dj(e))},xj=MP.String,Cj=function(e){try{return xj(e)}catch(e){return"Object"}},Aj=MP.TypeError,Oj=function(e){if(lj(e))return e;throw Aj(Cj(e)+" is not a function")},kj=function(e,t){var n=e[t];return null==n?void 0:Oj(n)},Bj=MP.TypeError,Fj=Object.defineProperty,Tj=function(e,t){try{Fj(MP,e,{value:t,configurable:!0,writable:!0})}catch(n){MP[e]=t}return t},_j=MP["__core-js_shared__"]||Tj("__core-js_shared__",{}),Pj=NP((function(e){(e.exports=function(e,t){return _j[e]||(_j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jj=MP.Object,Nj=function(e){return jj(uj(e))},Ij=QP({}.hasOwnProperty),Lj=Object.hasOwn||function(e,t){return Ij(Nj(e),t)},Rj=0,Mj=Math.random(),zj=QP(1..toString),$j=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zj(++Rj+Mj,36)},Hj=Pj("wks"),Vj=MP.Symbol,Uj=Vj&&Vj.for,Wj=Ej?Vj:Vj&&Vj.withoutSetter||$j,Gj=function(e){if(!Lj(Hj,e)||!wj&&"string"!=typeof Hj[e]){var t="Symbol."+e;wj&&Lj(Vj,e)?Hj[e]=Vj[e]:Hj[e]=Ej&&Uj?Uj(t):Wj(t)}return Hj[e]},qj=MP.TypeError,Kj=Gj("toPrimitive"),Yj=function(e){var t=function(e,t){if(!cj(e)||Sj(e))return e;var n,r=kj(e,Kj);if(r){if(void 0===t&&(t="default"),n=VP(r,e,t),!cj(n)||Sj(n))return n;throw qj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&lj(n=e.toString)&&!cj(r=VP(n,e)))return r;if(lj(n=e.valueOf)&&!cj(r=VP(n,e)))return r;if("string"!==t&&lj(n=e.toString)&&!cj(r=VP(n,e)))return r;throw Bj("Can't convert object to primitive value")}(e,t)}(e,"string");return Sj(t)?t:t+""},Xj=MP.document,Zj=cj(Xj)&&cj(Xj.createElement),Jj=function(e){return Zj?Xj.createElement(e):{}},Qj=!$P&&!zP((function(){return 7!=Object.defineProperty(Jj("div"),"a",{get:function(){return 7}}).a})),eN=Object.getOwnPropertyDescriptor,tN={f:$P?eN:function(e,t){if(e=sj(e),t=Yj(t),Qj)try{return eN(e,t)}catch(e){}if(Lj(e,t))return KP(!VP(qP.f,e,t),e[t])}},nN=MP.String,rN=MP.TypeError,oN=function(e){if(cj(e))return e;throw rN(nN(e)+" is not an object")},iN=MP.TypeError,aN=Object.defineProperty,uN={f:$P?aN:function(e,t,n){if(oN(e),t=Yj(t),oN(n),Qj)try{return aN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw iN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sN=$P?function(e,t,n){return uN.f(e,t,KP(1,n))}:function(e,t,n){return e[t]=n,e},lN=QP(Function.toString);lj(_j.inspectSource)||(_j.inspectSource=function(e){return lN(e)});var cN,fN,dN,pN=_j.inspectSource,hN=MP.WeakMap,gN=lj(hN)&&/native code/.test(pN(hN)),vN=Pj("keys"),yN=function(e){return vN[e]||(vN[e]=$j(e))},mN={},bN=MP.TypeError,wN=MP.WeakMap;if(gN||_j.state){var EN=_j.state||(_j.state=new wN),DN=QP(EN.get),SN=QP(EN.has),xN=QP(EN.set);cN=function(e,t){if(SN(EN,e))throw new bN("Object already initialized");return t.facade=e,xN(EN,e,t),t},fN=function(e){return DN(EN,e)||{}},dN=function(e){return SN(EN,e)}}else{var CN=yN("state");mN[CN]=!0,cN=function(e,t){if(Lj(e,CN))throw new bN("Object already initialized");return t.facade=e,sN(e,CN,t),t},fN=function(e){return Lj(e,CN)?e[CN]:{}},dN=function(e){return Lj(e,CN)}}var AN={set:cN,get:fN,has:dN,enforce:function(e){return dN(e)?fN(e):cN(e,{})},getterFor:function(e){return function(t){var n;if(!cj(t)||(n=fN(t)).type!==e)throw bN("Incompatible receiver, "+e+" required");return n}}},ON=Function.prototype,kN=$P&&Object.getOwnPropertyDescriptor,BN=Lj(ON,"name"),FN={EXISTS:BN,PROPER:BN&&"something"===function(){}.name,CONFIGURABLE:BN&&(!$P||$P&&kN(ON,"name").configurable)},TN=NP((function(e){var t=FN.CONFIGURABLE,n=AN.get,r=AN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;lj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Lj(i,"name")||t&&i.name!==f)&&sN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==MP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:sN(e,n,i)):l?e[n]=i:Tj(n,i)})(Function.prototype,"toString",(function(){return lj(this)&&n(this).source||pN(this)}))})),_N=Math.ceil,PN=Math.floor,jN=function(e){var t=+e;return t!=t||0===t?0:(t>0?PN:_N)(t)},NN=Math.max,IN=Math.min,LN=function(e,t){var n=jN(e);return n<0?NN(n+t,0):IN(n,t)},RN=Math.min,MN=function(e){return e>0?RN(jN(e),9007199254740991):0},zN=function(e){return MN(e.length)},$N=function(e){return function(t,n,r){var o,i=sj(t),a=zN(i),u=LN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},HN={includes:$N(!0),indexOf:$N(!1)},VN=HN.indexOf,UN=QP([].push),WN=function(e,t){var n,r=sj(e),o=0,i=[];for(n in r)!Lj(mN,n)&&Lj(r,n)&&UN(i,n);for(;t.length>o;)Lj(r,n=t[o++])&&(~VN(i,n)||UN(i,n));return i},GN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qN=GN.concat("length","prototype"),KN={f:Object.getOwnPropertyNames||function(e){return WN(e,qN)}},YN={f:Object.getOwnPropertySymbols},XN=QP([].concat),ZN=dj("Reflect","ownKeys")||function(e){var t=KN.f(oN(e)),n=YN.f;return n?XN(t,n(e)):t},JN=function(e,t){for(var n=ZN(t),r=uN.f,o=tN.f,i=0;i<n.length;i++){var a=n[i];Lj(e,a)||r(e,a,o(t,a))}},QN=/#|\.prototype\./,eI=function(e,t){var n=nI[tI(e)];return n==oI||n!=rI&&(lj(t)?zP(t):!!t)},tI=eI.normalize=function(e){return String(e).replace(QN,".").toLowerCase()},nI=eI.data={},rI=eI.NATIVE="N",oI=eI.POLYFILL="P",iI=eI,aI=tN.f,uI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?MP:l?MP[u]||Tj(u,{}):(MP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aI(n,r))&&a.value:n[r],!iI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;JN(i,o)}(e.sham||o&&o.sham)&&sN(i,"sham",!0),TN(n,r,i,e)}},sI=QP(QP.bind),lI=Array.isArray||function(e){return"Array"==nj(e)},cI={};cI[Gj("toStringTag")]="z";var fI="[object z]"===String(cI),dI=Gj("toStringTag"),pI=MP.Object,hI="Arguments"==nj(function(){return arguments}()),gI=fI?nj: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=pI(e),dI))?n:hI?nj(t):"Object"==(r=nj(t))&&lj(t.callee)?"Arguments":r},vI=function(){},yI=[],mI=dj("Reflect","construct"),bI=/^\s*(?:class|function)\b/,wI=QP(bI.exec),EI=!bI.exec(vI),DI=function(e){if(!lj(e))return!1;try{return mI(vI,yI,e),!0}catch(e){return!1}},SI=!mI||zP((function(){var e;return DI(DI.call)||!DI(Object)||!DI((function(){e=!0}))||e}))?function(e){if(!lj(e))return!1;switch(gI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return EI||!!wI(bI,pN(e))}:DI,xI=Gj("species"),CI=MP.Array,AI=function(e,t){return new(function(e){var t;return lI(e)&&(t=e.constructor,(SI(t)&&(t===CI||lI(t.prototype))||cj(t)&&null===(t=t[xI]))&&(t=void 0)),void 0===t?CI:t}(e))(0===t?0:t)},OI=QP([].push),kI=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,l,c,f){for(var d,p,h=Nj(s),g=ij(h),v=function(e,t){return Oj(e),void 0===t?e:sI?sI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=zN(g),m=0,b=f||AI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:OI(w,d)}else switch(e){case 4:return!1;case 7:OI(w,d)}return i?-1:r||o?o:w}},BI={forEach:kI(0),map:kI(1),filter:kI(2),some:kI(3),every:kI(4),find:kI(5),findIndex:kI(6),filterReject:kI(7)},FI=Gj("species"),TI=function(e){return bj>=51||!zP((function(){var t=[];return(t.constructor={})[FI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},_I=BI.filter;uI({target:"Array",proto:!0,forced:!TI("filter")},{filter:function(e){return _I(this,e,arguments.length>1?arguments[1]:void 0)}});var PI=fI?{}.toString:function(){return"[object "+gI(this)+"]"};fI||TN(Object.prototype,"toString",PI,{unsafe:!0});var jI,NI=MP.String,II=function(e){if("Symbol"===gI(e))throw TypeError("Cannot convert a Symbol value to a string");return NI(e)},LI=function(){var e=oN(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},RI=MP.RegExp,MI=zP((function(){var e=RI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),zI=MI||zP((function(){return!RI("a","y").sticky})),$I={BROKEN_CARET:MI||zP((function(){var e=RI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:zI,UNSUPPORTED_Y:MI},HI=Object.keys||function(e){return WN(e,GN)},VI=$P?Object.defineProperties:function(e,t){oN(e);for(var n,r=sj(t),o=HI(t),i=o.length,a=0;i>a;)uN.f(e,n=o[a++],r[n]);return e},UI=dj("document","documentElement"),WI=yN("IE_PROTO"),GI=function(){},qI=function(e){return"<script>"+e+"<\/script>"},KI=function(e){e.write(qI("")),e.close();var t=e.parentWindow.Object;return e=null,t},YI=function(){try{jI=new ActiveXObject("htmlfile")}catch(e){}var e,t;YI="undefined"!=typeof document?document.domain&&jI?KI(jI):((t=Jj("iframe")).style.display="none",UI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qI("document.F=Object")),e.close(),e.F):KI(jI);for(var n=GN.length;n--;)delete YI.prototype[GN[n]];return YI()};mN[WI]=!0;var XI,ZI,JI=Object.create||function(e,t){var n;return null!==e?(GI.prototype=oN(e),n=new GI,GI.prototype=null,n[WI]=e):n=YI(),void 0===t?n:VI(n,t)},QI=MP.RegExp,eL=zP((function(){var e=QI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),tL=MP.RegExp,nL=zP((function(){var e=tL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),rL=AN.get,oL=Pj("native-string-replace",String.prototype.replace),iL=RegExp.prototype.exec,aL=iL,uL=QP("".charAt),sL=QP("".indexOf),lL=QP("".replace),cL=QP("".slice),fL=(ZI=/b*/g,VP(iL,XI=/a/,"a"),VP(iL,ZI,"a"),0!==XI.lastIndex||0!==ZI.lastIndex),dL=$I.BROKEN_CARET,pL=void 0!==/()??/.exec("")[1];(fL||pL||dL||eL||nL)&&(aL=function(e){var t,n,r,o,i,a,u,s=this,l=rL(s),c=II(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=VP(aL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dL&&s.sticky,h=VP(LI,s),g=s.source,v=0,y=c;if(p&&(h=lL(h,"y",""),-1===sL(h,"g")&&(h+="g"),y=cL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==uL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),pL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),fL&&(r=s.lastIndex),o=VP(iL,p?n:s,y),p?o?(o.input=cL(o.input,v),o[0]=cL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),pL&&o&&o.length>1&&VP(oL,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=JI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var hL=aL;uI({target:"RegExp",proto:!0,forced:/./.exec!==hL},{exec:hL});var gL=Function.prototype,vL=gL.apply,yL=gL.bind,mL=gL.call,bL="object"==typeof Reflect&&Reflect.apply||(yL?mL.bind(vL):function(){return mL.apply(vL,arguments)}),wL=Gj("species"),EL=RegExp.prototype,DL=function(e,t,n,r){var o=Gj(e),i=!zP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!zP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[wL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=QP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=QP(e),s=t.exec;return s===hL||s===EL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));TN(String.prototype,e,s[0]),TN(EL,o,s[1])}r&&sN(EL[o],"sham",!0)},SL=QP("".charAt),xL=QP("".charCodeAt),CL=QP("".slice),AL=function(e){return function(t,n){var r,o,i=II(uj(t)),a=jN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xL(i,a))<55296||r>56319||a+1===u||(o=xL(i,a+1))<56320||o>57343?e?SL(i,a):r:e?CL(i,a,a+2):o-56320+(r-55296<<10)+65536}},OL=(AL(!1),AL(!0)),kL=function(e,t,n){return t+(n?OL(e,t).length:1)},BL=Math.floor,FL=QP("".charAt),TL=QP("".replace),_L=QP("".slice),PL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jL=/\$([$&'`]|\d{1,2})/g,NL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=jL;return void 0!==o&&(o=Nj(o),s=PL),TL(i,s,(function(i,s){var l;switch(FL(s,0)){case"$":return"$";case"&":return e;case"`":return _L(t,0,n);case"'":return _L(t,a);case"<":l=o[_L(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=BL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?FL(s,1):r[f-1]+FL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},IL=MP.TypeError,LL=function(e,t){var n=e.exec;if(lj(n)){var r=VP(n,e,t);return null!==r&&oN(r),r}if("RegExp"===nj(e))return VP(hL,e,t);throw IL("RegExp#exec called on incompatible receiver")},RL=Gj("replace"),ML=Math.max,zL=Math.min,$L=QP([].concat),HL=QP([].push),VL=QP("".indexOf),UL=QP("".slice),WL="$0"==="a".replace(/./,"$0"),GL=!!/./[RL]&&""===/./[RL]("a","$0");DL("replace",(function(e,t,n){var r=GL?"$":"$0";return[function(e,n){var r=uj(this),o=null==e?void 0:kj(e,RL);return o?VP(o,e,r,n):VP(t,II(r),e,n)},function(e,o){var i=oN(this),a=II(e);if("string"==typeof o&&-1===VL(o,r)&&-1===VL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=lj(o);s||(o=II(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=LL(i,a);if(null===d)break;if(HL(f,d),!l)break;""===II(d[0])&&(i.lastIndex=kL(a,MN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=II((d=f[v])[0]),m=ML(zL(jN(d.index),a.length),0),b=[],w=1;w<d.length;w++)HL(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=$L([y],b,m,a);void 0!==E&&HL(D,E);var S=II(bL(o,void 0,D))}else S=NL(y,a,m,b,E,o);m>=g&&(h+=UL(a,g,m)+S,g=m+y.length)}return h+UL(a,g)}]}),!!zP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!WL||GL);var qL=Gj("unscopables"),KL=Array.prototype;null==KL[qL]&&uN.f(KL,qL,{configurable:!0,value:JI(null)});var YL=function(e){KL[qL][e]=!0},XL=BI.find,ZL=!0;"find"in[]&&Array(1).find((function(){ZL=!1})),uI({target:"Array",proto:!0,forced:ZL},{find:function(e){return XL(this,e,arguments.length>1?arguments[1]:void 0)}}),YL("find");var JL=Gj("match"),QL=function(e){var t;return cj(e)&&(void 0!==(t=e[JL])?!!t:"RegExp"==nj(e))},eR=MP.TypeError,tR=Gj("species"),nR=function(e,t,n){var r=Yj(t);r in e?uN.f(e,r,KP(0,n)):e[r]=n},rR=MP.Array,oR=Math.max,iR=function(e,t,n){for(var r=zN(e),o=LN(t,r),i=LN(void 0===n?r:n,r),a=rR(oR(i-o,0)),u=0;o<i;o++,u++)nR(a,u,e[o]);return a.length=u,a},aR=$I.UNSUPPORTED_Y,uR=Math.min,sR=[].push,lR=QP(/./.exec),cR=QP(sR),fR=QP("".slice);DL("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=II(uj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!QL(e))return VP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=VP(hL,f,r))&&!((a=f.lastIndex)>c&&(cR(s,fR(r,c,i.index)),i.length>1&&i.index<r.length&&bL(sR,s,iR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&lR(f,"")||cR(s,""):cR(s,fR(r,c)),s.length>o?iR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:VP(t,this,e,n)}:t,[function(t,n){var o=uj(this),i=null==t?void 0:kj(t,e);return i?VP(i,t,o,n):VP(r,II(o),t,n)},function(e,o){var i=oN(this),a=II(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=oN(e).constructor;return void 0===r||null==(n=oN(r)[tR])?t:function(e){if(SI(e))return e;throw eR(Cj(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(aR?"g":"y"),f=new s(aR?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===LL(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=aR?0:h;var v,y=LL(f,aR?fR(a,h):a);if(null===y||(v=uR(MN(f.lastIndex+(aR?h:0)),a.length))===p)h=kL(a,h,l);else{if(cR(g,fR(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(cR(g,y[m]),g.length===d)return g;h=p=v}}return cR(g,fR(a,p)),g}]}),!!zP((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]})),aR);var dR="\t\n\v\f\r \u2028\u2029\ufeff",pR=QP("".replace),hR="["+dR+"]",gR=RegExp("^"+hR+hR+"*"),vR=RegExp(hR+hR+"*$"),yR=function(e){return function(t){var n=II(uj(t));return 1&e&&(n=pR(n,gR,"")),2&e&&(n=pR(n,vR,"")),n}},mR={start:yR(1),end:yR(2),trim:yR(3)},bR=FN.PROPER,wR=mR.trim;function ER(e){return 0===Bp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function DR(e){return 0===e.length?"":e[0].outerHTML}function SR(e){return e.length?e[0].tagName.toLowerCase():""}function xR(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}uI({target:"String",proto:!0,forced:zP((function(){return!!dR.trim()||"
"!=="
".trim()||bR&&"trim"!==dR.trim.name}))},{trim:function(){return wR(this)}}),uI({global:!0},{globalThis:MP}),Up&&(Bp.fn.css=Up),Xp&&(Bp.fn.append=Xp),Zp&&(Bp.fn.prepend=Zp),Fp&&(Bp.fn.addClass=Fp),Tp&&(Bp.fn.removeClass=Tp),_p&&(Bp.fn.hasClass=_p),Lp&&(Bp.fn.on=Lp),Rp&&(Bp.fn.off=Rp),uh&&(Bp.fn.focus=uh),Pp&&(Bp.fn.attr=Pp),jp&&(Bp.fn.removeAttr=jp),Hp&&(Bp.fn.hide=Hp),Vp&&(Bp.fn.show=Vp),Qp&&(Bp.fn.parents=Qp),Np&&(Bp.fn.dataset=Np),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),th&&(Bp.fn.children=th),nh&&(Bp.fn.remove=nh),eh&&(Bp.fn.find=eh),Mp&&(Bp.fn.width=Mp),zp&&(Bp.fn.height=zp),Gp&&(Bp.fn.filter=Gp),rh&&(Bp.fn.empty=rh);var CR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},AR=function(e,t){return AR=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])},AR(e,t)};function OR(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}AR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var kR=function(){return kR=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},kR.apply(this,arguments)};function BR(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 FR(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 TR(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 _R(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 PR(e){var t=_R(Af.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!wf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Tf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Xf.isText(o[0])&&(hd.setNodes(e,{type:"paragraph"}),!0)}var jR={renderElems:[PP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[CR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){PR(r)||t(e)},r.deleteForward=function(e){PR(r)||n(e)},r}},NR=/"/g,IR=QP("".replace),LR=function(e,t,n,r){var o=II(uj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+IR(II(r),NR,""")+'"'),i+">"+o+"</"+t+">"},RR=function(e){return zP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function MR(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 zR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}uI({target:"String",proto:!0,forced:RR("bold")},{bold:function(){return LR(this,"b","","")}}),uI({target:"String",proto:!0,forced:RR("italics")},{italics:function(){return LR(this,"i","","")}}),uI({target:"String",proto:!0,forced:RR("sub")},{sub:function(){return LR(this,"sub","","")}}),uI({target:"String",proto:!0,forced:RR("sup")},{sup:function(){return LR(this,"sup","","")}});var $R={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},HR=Jj("span").classList,VR=HR&&HR.constructor&&HR.constructor.prototype,UR=VR===Object.prototype?void 0:VR,WR=function(e,t){var n=[][e];return!!n&&zP((function(){n.call(null,t||function(){throw 1},1)}))},GR=BI.forEach,qR=WR("forEach")?[].forEach:function(e){return GR(this,e,arguments.length>1?arguments[1]:void 0)},KR=function(e){if(e&&e.forEach!==qR)try{sN(e,"forEach",qR)}catch(t){e.forEach=qR}};for(var YR in $R)$R[YR]&&KR(MP[YR]&&MP[YR].prototype);function XR(e,t){return null==e.selection||!!_R(Af.nodes(e,{match:function(t){return"pre"===AO.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]}function ZR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Af.removeMark(e,t)}))}KR(UR),uI({target:"Object",stat:!0,forced:zP((function(){HI(1)}))},{keys:function(e){return HI(Nj(e))}});var JR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Af.marks(e);return n?n[t]:!!_R(Af.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 XR(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}(),QR='<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>',eM='<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>',tM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',nM='<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>',rM='<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>',oM='<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>',iM='<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>',aM='<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>',uM='<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>',sM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',lM='<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>',cM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',fM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',dM='<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>',pM='<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>',hM='<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>',gM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',vM='<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>',yM='<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>',mM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=dP("textStyle.bold"),t.iconSvg=QR,t.hotkey="mod+b",t}return OR(t,e),t}(JR),bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=dP("textStyle.code"),t.iconSvg=rM,t.hotkey="mod+e",t}return OR(t,e),t}(JR),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=dP("textStyle.italic"),t.iconSvg=tM,t.hotkey="mod+i",t}return OR(t,e),t}(JR),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=dP("textStyle.through"),t.iconSvg=nM,t.hotkey="mod+shift+x",t}return OR(t,e),t}(JR),DM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=dP("textStyle.underline"),t.iconSvg=eM,t.hotkey="mod+u",t}return OR(t,e),t}(JR),SM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=dP("textStyle.sub"),t.iconSvg=yM,t.hotkey="",t}return OR(t,e),t}(JR),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=dP("textStyle.sup"),t.iconSvg=vM,t.hotkey="",t}return OR(t,e),t}(JR),CM=function(){function e(){this.title=dP("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 XR(e)},e.prototype.exec=function(e,t){var n,r,o=Af.nodes(e,{match:function(e){return Xf.isText(e)},universal:!0});try{for(var i=TR(o),a=i.next();!a.done;a=i.next())ZR(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}(),AM={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,l=n.sup,c=t;return r&&(c=mg("strong",null,c)),a&&(c=mg("code",null,c)),o&&(c=mg("em",null,c)),i&&(c=mg("u",null,c)),u&&(c=mg("s",null,c)),s&&(c=mg("sub",null,c)),l&&(c=mg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new mM}},{key:"underline",factory:function(){return new DM}},{key:"italic",factory:function(){return new wM}},{key:"through",factory:function(){return new EM}},{key:"code",factory:function(){return new bM}},{key:"sub",factory:function(){return new SM}},{key:"sup",factory:function(){return new xM}},{key:"clearStyle",factory:function(){return new CM}}],styleToHtml:function(e,t){if(!Xf.isText(e))return t;if(ER(t))return MR(e,t);var n=Bp(t);if("br"===SR(n))return MR(e,"<br>");var r=n.html();return r=MR(e,r),n.html(r),DR(n)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Xf.isText(t))return t;var o=t;return zR(r,"b,strong")&&(o.bold=!0),zR(r,"i,em")&&(o.italic=!0),zR(r,"u")&&(o.underline=!0),zR(r,"s,strike")&&(o.through=!0),zR(r,"sub")&&(o.sub=!0),zR(r,"sup")&&(o.sup=!0),zR(r,"code")&&(o.code=!0),o}};function OM(e){return function(t,n,r){return mg("h"+e,null,n)}}var kM={type:"header1",renderElem:OM(1)},BM={type:"header2",renderElem:OM(2)},FM={type:"header3",renderElem:OM(3)},TM={type:"header4",renderElem:OM(4)},_M={type:"header5",renderElem:OM(5)},PM=FN.PROPER,jM=RegExp.prototype,NM=jM.toString,IM=QP(LI),LM=zP((function(){return"/a/b"!=NM.call({source:"a",flags:"b"})})),RM=PM&&"toString"!=NM.name;(LM||RM)&&TN(RegExp.prototype,"toString",(function(){var e=oN(this),t=II(e.source),n=e.flags;return"/"+t+"/"+II(void 0===n&&pj(jM,e)&&!("flags"in jM)?IM(e):n)}),{unsafe:!0});var MM,zM=MP.TypeError,$M=function(e){if(QL(e))throw zM("The method doesn't accept regular expressions");return e},HM=Gj("match"),VM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[HM]=!1,"/./"[e](t)}catch(e){}}return!1},UM=tN.f,WM=QP("".startsWith),GM=QP("".slice),qM=Math.min,KM=VM("startsWith");function YM(e){var t=_R(Af.nodes(e,{match:function(e){return AO.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=_R(n,1)[0];return AO.getNodeType(r)}function XM(e){return null==e.selection||!_R(Af.nodes(e,{match:function(e){var t=AO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function ZM(e,t){t&&hd.setNodes(e,{type:t})}uI({target:"String",proto:!0,forced:!(!KM&&(MM=UM(String.prototype,"startsWith"),MM&&!MM.writable)||KM)},{startsWith:function(e){var t=II(uj(this));$M(e);var n=MN(qM(arguments.length>1?arguments[1]:void 0,t.length)),r=II(e);return WM?WM(t,r,n):GM(t,n,n+r.length)===r}});var JM=function(){function e(){this.title=dP("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:dP("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 YM(e)},e.prototype.isDisabled=function(e){return XM(e)},e.prototype.exec=function(e,t){ZM(e,t.toString())},e}(),QM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return YM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return XM(e)},e.prototype.exec=function(e,t){var n=this.type;ZM(e,t===n?"paragraph":n)},e}(),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return OR(t,e),t}(QM),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return OR(t,e),t}(QM),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return OR(t,e),t}(QM),rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return OR(t,e),t}(QM),oz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return OR(t,e),t}(QM),iz={key:"headerSelect",factory:function(){return new JM}},az={key:"header1",factory:function(){return new ez}},uz={key:"header2",factory:function(){return new tz}},sz={key:"header3",factory:function(){return new nz}},lz={key:"header4",factory:function(){return new rz}},cz={key:"header5",factory:function(){return new oz}};function fz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function dz(e){return function(t,n,r){var o=Bp(t);return 0===(n=n.filter((function(e){return!!Xf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var pz={renderElems:[kM,BM,FM,TM,_M],elemsToHtml:[{type:"header1",elemToHtml:fz(1)},{type:"header2",elemToHtml:fz(2)},{type:"header3",elemToHtml:fz(3)},{type:"header4",elemToHtml:fz(4)},{type:"header5",elemToHtml:fz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:dz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:dz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:dz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:dz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:dz(5)}],menus:[iz,az,uz,sz,lz,cz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=_R(Af.nodes(n,{match:function(e){return AO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&AO.isSelectionAtLineEnd(e,r[1])?hd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},hz=Object.assign,gz=Object.defineProperty,vz=QP([].concat),yz=!hz||zP((function(){if($P&&1!==hz({b:1},hz(gz({},"a",{enumerable:!0,get:function(){gz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=hz({},e)[n]||HI(hz({},t)).join("")!=r}))?function(e,t){for(var n=Nj(e),r=arguments.length,o=1,i=YN.f,a=qP.f;r>o;)for(var u,s=ij(arguments[o++]),l=i?vz(HI(s),i(s)):HI(s),c=l.length,f=0;c>f;)u=l[f++],$P&&!VP(a,s,u)||(n[u]=s[u]);return n}:hz;function mz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}uI({target:"Object",stat:!0,forced:Object.assign!==yz},{assign:yz});var bz={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==SR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},wz=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=Af.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||!!_R(Af.nodes(e,{match:function(t){return"pre"===AO.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Bp('<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=Bp(r).attr("data-value");"0"===o?Af.removeMark(e,t):Af.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=Bp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Bp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=dP("color.default")),"bgColor"===t&&(a=dP("color.clear"));var u=Bp('\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}(),Ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("color.color"),t.iconSvg=aM,t.mark="color",t}return OR(t,e),t}(wz),Dz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("color.bgColor"),t.iconSvg=uM,t.mark="bgColor",t}return OR(t,e),t}(wz),Sz=["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)"],xz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&mz(i,{color:r}),o&&mz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Xf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((ER(t)||"span"!==SR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),DR(n)):t},preParseHtml:[bz],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Xf.isText(t))return t;var o=t,i=xR(r,"color");i&&(o.color=i);var a=xR(r,"background-color");return a||(a=xR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Ez},config:{colors:Sz}},{key:"bgColor",factory:function(){return new Dz},config:{colors:Sz}}]},Cz=/^(?:\w+:)?\/\/(\S+)$/,Az=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Oz=/^[^\s\.]+\.\S{2,}$/,kz=HN.includes;function Bz(e){return void 0===e&&(e="r"),e+"-"+xh()}function Fz(e){return e.replace(/</g,"<").replace(/>/g,">")}function Tz(e,t,n,r){return BR(this,void 0,void 0,(function(){var o,i;return FR(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 _z(e,t,n){return BR(this,void 0,void 0,(function(){var r;return FR(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 Pz(e){return null==e.selection||!!AO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function jz(e,t){return{type:"link",url:Fz(e),children:t?[{text:t}]:[]}}function Nz(e,t,n){return BR(this,void 0,void 0,(function(){var r,o,i;return FR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Pz(e)?[2]:[4,Tz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,_z("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Vf.isCollapsed(o)?(e.insertText(" "),i=jz(r,t),hd.insertNodes(e,i),e.insertFragment([{text:" "}])):Af.string(e,o)!==t?(e.deleteFragment(),i=jz(r,t),hd.insertNodes(e,i)):(i=jz(r),hd.wrapNodes(e,i,{split:!0}),hd.collapse(e,{edge:"end"}))),[2]}}))}))}uI({target:"Array",proto:!0},{includes:function(e){return kz(this,e,arguments.length>1?arguments[1]:void 0)}}),YL("includes");var Iz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return mg("a",{href:o,target:void 0===i?"_blank":i},t)}},Lz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Xf.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 Rz(){return Bz("w-e-insert-link")}var Mz=function(){function e(){this.title=dP("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=Rz(),this.urlInputId=Rz(),this.buttonId=Rz()}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 Pz(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=_R(XT(dP("link.text"),r),2),u=a[0],s=Bp(a[1]),l=_R(XT(dP("link.url"),o),2),c=l[0],f=Bp(l[1]),d=_R(ZT(i,dP("common.ok")),1)[0];if(null==this.$content){var p=Bp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Nz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Vf.isCollapsed(t))s.val("");else{var g=Af.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function zz(){return Bz("w-e-update-link")}var $z=function(){function e(){this.title=dP("link.edit"),this.iconSvg=oM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=zz(),this.buttonId=zz()}return e.prototype.getSelectedLinkElem=function(e){var t=AO.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 AO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=_R(XT(dP("link.url"),t),2),o=r[0],i=Bp(r[1]),a=_R(ZT(n,dP("common.ok")),1)[0];if(null==this.$content){var u=Bp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=AO.getSelectedNodeByType(e,"link"),o=r?Tf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){BR(this,void 0,void 0,(function(){var r,o;return FR(this,(function(i){switch(i.label){case 0:return n?[4,Tz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,_z("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Fz(r)},hd.setNodes(e,o,{match:function(e){return AO.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 l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),Hz=function(){function e(){this.title=dP("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==AO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||hd.unwrapNodes(e,{match:function(e){return AO.checkNodeType(e,"link")}})},e}(),Vz=function(){function e(){this.title=dP("link.view"),this.iconSvg=iM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=AO.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}(),Uz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Wz={renderElems:[Iz],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:[Lz],menus:[{key:"insertLink",factory:function(){return new Mz},config:Uz},{key:"editLink",factory:function(){return new $z},config:Uz},{key:"unLink",factory:function(){return new Hz}},{key:"viewLink",factory:function(){return new Vz}}],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(Cz);if(!t)return!1;var n=t[1];return!(!n||!Az.test(n)&&!Oz.test(n))}(t)){if(!Pz(o)){var r=o.selection;if(null!=r){var i=Af.string(o,r);Nz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=_R(e,2),n=t[0],i=t[1];return"link"!==AO.getNodeType(n)?r([n,i]):""===Tf.string(n)?hd.removeNodes(o,{at:i}):r([n,i])},o}},Gz=QP(1..valueOf),qz=MP.RangeError,Kz=MP.RangeError,Yz=MP.String,Xz=Math.floor,Zz=QP((function(e){var t=II(uj(this)),n="",r=jN(e);if(r<0||r==1/0)throw qz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Jz=QP("".slice),Qz=QP(1..toFixed),e$=function(e,t,n){return 0===t?n:t%2==1?e$(e,t-1,n*e):e$(e*e,t/2,n)},t$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Xz(o/1e7)},n$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Xz(r/t),r=r%t*1e7},r$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Yz(e[t]);n=""===n?r:n+Zz("0",7-r.length)+r}return n};function o$(e,t){return"w-e-image-container-"+AO.findKey(e,t).id}uI({target:"Number",proto:!0,forced:zP((function(){return"0.000"!==Qz(8e-5,3)||"1"!==Qz(.9,0)||"1.25"!==Qz(1.255,2)||"1000000000000000128"!==Qz(0xde0b6b3a7640080,0)}))||!zP((function(){Qz({})}))},{toFixed:function(e){var t,n,r,o,i=Gz(this),a=jN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Kz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Yz(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*e$(2,69,1))-69)<0?i*e$(2,-t,1):i/e$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(t$(u,0,n),r=a;r>=7;)t$(u,1e7,0),r-=7;for(t$(u,e$(10,r,1),0),r=t-1;r>=23;)n$(u,1<<23),r-=23;n$(u,1<<r),t$(u,1,1),n$(u,2),l=r$(u)}else t$(u,0,n),t$(u,1<<-t,0),l=r$(u)+Zz("0",a);return a>0?s+((o=l.length)<=a?"0."+Zz("0",a-o)+l:Jz(l,0,o-a)+"."+Jz(l,o-a)):s+l}});var i$={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,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=AO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=mg("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=Bp("body"),i=o$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=Bp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=AO.getHoverbar(e);r&&r.hideAndClean()}var h=Mh((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:kR(kR({},t.style),{width:r+"px",height:i+"px"})};hd.setNodes(e,a,{at:AO.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),mg("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Bp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,mg("div",{className:"w-e-image-dragger left-top"}),mg("div",{className:"w-e-image-dragger right-top"}),mg("div",{className:"w-e-image-dragger left-bottom"}),mg("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),mg("div",{id:o$(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},a$={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:xR(r,"width"),height:xR(r,"height")},children:[{text:""}]}}};function u$(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),BR(this,void 0,void 0,(function(){var i,a;return FR(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 s$(e,t,n){return BR(this,void 0,void 0,(function(){var r;return FR(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 l$(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),BR(this,void 0,void 0,(function(){var o,i,a;return FR(this,(function(u){switch(u.label){case 0:return[4,u$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,s$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Fz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),AO.getSelectedNodeByType(e,"image")&&e.move(1),c$(e)||(hd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function c$(e){var t=e.selection;return null==t||!Vf.isCollapsed(t)||!!_R(Af.nodes(e,{match:function(t){var n=AO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Af.isVoid(e,t)},universal:!0}),1)[0]}function f$(){return Bz("w-e-insert-image")}var d$=function(){function e(){this.title=dP("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=f$(),this.altInputId=f$(),this.hrefInputId=f$(),this.buttonId=f$()}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 c$(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=_R(XT(dP("image.src"),r),2),s=u[0],l=Bp(u[1]),c=_R(XT(dP("image.desc"),o),2),f=c[0],d=Bp(c[1]),p=_R(XT(dP("image.link"),i),2),h=p[0],g=Bp(p[1]),v=_R(ZT(a,dP("common.ok")),1)[0];if(null==this.$content){var y=Bp("<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(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.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)||l$(e,t,n,r))},e}(),p$=function(){function e(){this.title=dP("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==AO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||hd.removeNodes(e,{match:function(e){return AO.checkNodeType(e,"image")}})},e}();function h$(){return Bz("w-e-edit-image")}var g$=function(){function e(){this.title=dP("image.edit"),this.iconSvg=oM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=h$(),this.altInputId=h$(),this.hrefInputId=h$(),this.buttonId=h$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return AO.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||!Vf.isCollapsed(t)||null==AO.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=_R(XT(dP("image.src"),r),2),l=s[0],c=Bp(s[1]),f=_R(XT(dP("image.desc"),o),2),d=f[0],p=Bp(f[1]),h=_R(XT(dP("image.link"),i),2),g=h[0],v=Bp(h[1]),y=_R(ZT(a,dP("common.ok")),1)[0];if(null==this.$content){var m=Bp("<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(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,D=w.alt,S=void 0===D?"":D,x=w.href,C=void 0===x?"":x;return c.val(E),p.val(S),v.val(C),setTimeout((function(){c.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={}),BR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return FR(this,(function(f){switch(f.label){case 0:return[4,u$("editImage",e,t,n,r)];case 1:return f.sent()?[4,s$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=AO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:kR(kR({},void 0===u?{}:u),o)},hd.setNodes(e,s,{match:function(e){return AO.checkNodeType(e,"image")}}),l=AO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),v$=function(){function e(){this.title=dP("image.viewLink"),this.iconSvg=iM,this.tag="button"}return e.prototype.getValue=function(e){var t=AO.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}(),y$=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 AO.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=AO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:kR(kR({},void 0===o?{}:o),{width:this.value,height:""})};hd.setNodes(e,i,{match:function(e){return AO.checkNodeType(e,"image")}})}}},e}(),m$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return OR(t,e),t}(y$),b$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return OR(t,e),t}(y$),w$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return OR(t,e),t}(y$),E$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},D$={renderElems:[i$],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,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.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:[a$],menus:[{key:"insertImage",factory:function(){return new d$},config:E$},{key:"deleteImage",factory:function(){return new p$}},{key:"editImage",factory:function(){return new g$},config:E$},{key:"viewImageLink",factory:function(){return new v$}},{key:"imageWidth30",factory:function(){return new m$}},{key:"imageWidth50",factory:function(){return new b$}},{key:"imageWidth100",factory:function(){return new w$}}],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}},S$={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=mg("div",{style:{margin:"5px 0"}},mg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},mg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=AO.findPath(n,e),o={checked:t.target.checked};hd.setNodes(n,o,{at:r})}}})),mg("span",null,t));return o}},x$=function(){function e(){this.title=dP("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!!AO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!AO.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.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);hd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),C$={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Bp(e);0===(t=t.filter((function(e){return!!Xf.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}}},A$={renderElems:[S$],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=Bp(e).find("li"),n=Bp('<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:[C$],menus:[{key:"todo",factory:function(){return new x$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Vf.isCollapsed(r)){var o=AO.getSelectedNodeByType(e,"todo");if(o&&0===Tf.string(o).length)return void hd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},O$={type:"blockquote",renderElem:function(e,t,n){return mg("blockquote",null,t)}},k$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},B$=function(){function e(){this.title=dP("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!!AO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!_R(Af.nodes(e,{match:function(e){var t=AO.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";hd.setNodes(e,{type:n},{mode:"highest"})}},e}(),F$={key:"blockquote",factory:function(){return new B$}},T$=QP([].slice),_$=TI("slice"),P$=Gj("species"),j$=MP.Array,N$=Math.max;uI({target:"Array",proto:!0,forced:!_$},{slice:function(e,t){var n,r,o,i=sj(this),a=zN(i),u=LN(e,a),s=LN(void 0===t?a:t,a);if(lI(i)&&(n=i.constructor,(SI(n)&&(n===j$||lI(n.prototype))||cj(n)&&null===(n=n[P$]))&&(n=void 0),n===j$||void 0===n))return T$(i,u,s);for(r=new(void 0===n?j$:n)(N$(s-u,0)),o=0;u<s;u++,o++)u in i&&nR(r,o,i[u]);return r.length=o,r}});var I$={renderElems:[O$],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[k$],menus:[F$],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=_R(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=AO.findPath(e,a),s=Af.end(e,u);if(Mf.equals(s,o.focus)){var l=Tf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void hd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},L$=function(){function e(){this.title=dP("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||!!_R(Af.nodes(e,{match:function(t){return"pre"===AO.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Bp('<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=Bp(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=Bp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),R$={menus:[{key:"emotion",factory:function(){return new L$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},M$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},z$={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==SR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",M$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},$$=QP("".indexOf);uI({target:"String",proto:!0,forced:!VM("includes")},{includes:function(e){return!!~$$(II(uj(this)),II($M(e)),arguments.length>1?arguments[1]:void 0)}});var H$,V$,U$=function(e){return e&&e.Math==Math&&e},W$=U$("object"==typeof globalThis&&globalThis)||U$("object"==typeof window&&window)||U$("object"==typeof self&&self)||U$("object"==typeof jP&&jP)||function(){return this}()||Function("return this")(),G$=Function.prototype,q$=G$.apply,K$=G$.bind,Y$=G$.call,X$="object"==typeof Reflect&&Reflect.apply||(K$?Y$.bind(q$):function(){return Y$.apply(q$,arguments)}),Z$=Function.prototype,J$=Z$.bind,Q$=Z$.call,eH=J$&&J$.bind(Q$),tH=J$?function(e){return e&&eH(Q$,e)}:function(e){return e&&function(){return Q$.apply(e,arguments)}},nH=function(e){return"function"==typeof e},rH=function(e){try{return!!e()}catch(e){return!0}},oH=!rH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),iH=Function.prototype.call,aH=iH.bind?iH.bind(iH):function(){return iH.apply(iH,arguments)},uH={}.propertyIsEnumerable,sH=Object.getOwnPropertyDescriptor,lH=sH&&!uH.call({1:2},1)?function(e){var t=sH(this,e);return!!t&&t.enumerable}:uH,cH={f:lH},fH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dH=tH({}.toString),pH=tH("".slice),hH=function(e){return pH(dH(e),8,-1)},gH=W$.Object,vH=tH("".split),yH=rH((function(){return!gH("z").propertyIsEnumerable(0)}))?function(e){return"String"==hH(e)?vH(e,""):gH(e)}:gH,mH=W$.TypeError,bH=function(e){if(null==e)throw mH("Can't call method on "+e);return e},wH=function(e){return yH(bH(e))},EH=function(e){return"object"==typeof e?null!==e:nH(e)},DH={},SH=function(e){return nH(e)?e:void 0},xH=function(e,t){return arguments.length<2?SH(DH[e])||SH(W$[e]):DH[e]&&DH[e][t]||W$[e]&&W$[e][t]},CH=tH({}.isPrototypeOf),AH=xH("navigator","userAgent")||"",OH=W$.process,kH=W$.Deno,BH=OH&&OH.versions||kH&&kH.version,FH=BH&&BH.v8;FH&&(V$=(H$=FH.split("."))[0]>0&&H$[0]<4?1:+(H$[0]+H$[1])),!V$&&AH&&(!(H$=AH.match(/Edge\/(\d+)/))||H$[1]>=74)&&(H$=AH.match(/Chrome\/(\d+)/))&&(V$=+H$[1]);var TH=V$,_H=!!Object.getOwnPropertySymbols&&!rH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&TH&&TH<41})),PH=_H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jH=W$.Object,NH=PH?function(e){return"symbol"==typeof e}:function(e){var t=xH("Symbol");return nH(t)&&CH(t.prototype,jH(e))},IH=W$.String,LH=W$.TypeError,RH=function(e){if(nH(e))return e;throw LH(function(e){try{return IH(e)}catch(e){return"Object"}}(e)+" is not a function")},MH=W$.TypeError,zH=Object.defineProperty,$H=W$["__core-js_shared__"]||function(e,t){try{zH(W$,e,{value:t,configurable:!0,writable:!0})}catch(n){W$[e]=t}return t}("__core-js_shared__",{}),HH=NP((function(e){(e.exports=function(e,t){return $H[e]||($H[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),VH=W$.Object,UH=function(e){return VH(bH(e))},WH=tH({}.hasOwnProperty),GH=Object.hasOwn||function(e,t){return WH(UH(e),t)},qH=0,KH=Math.random(),YH=tH(1..toString),XH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+YH(++qH+KH,36)},ZH=HH("wks"),JH=W$.Symbol,QH=JH&&JH.for,eV=PH?JH:JH&&JH.withoutSetter||XH,tV=function(e){if(!GH(ZH,e)||!_H&&"string"!=typeof ZH[e]){var t="Symbol."+e;_H&&GH(JH,e)?ZH[e]=JH[e]:ZH[e]=PH&&QH?QH(t):eV(t)}return ZH[e]},nV=W$.TypeError,rV=tV("toPrimitive"),oV=function(e){var t=function(e,t){if(!EH(e)||NH(e))return e;var n,r,o=null==(n=e[rV])?void 0:RH(n);if(o){if(void 0===t&&(t="default"),r=aH(o,e,t),!EH(r)||NH(r))return r;throw nV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&nH(n=e.toString)&&!EH(r=aH(n,e)))return r;if(nH(n=e.valueOf)&&!EH(r=aH(n,e)))return r;if("string"!==t&&nH(n=e.toString)&&!EH(r=aH(n,e)))return r;throw MH("Can't convert object to primitive value")}(e,t)}(e,"string");return NH(t)?t:t+""},iV=W$.document,aV=EH(iV)&&EH(iV.createElement),uV=function(e){return aV?iV.createElement(e):{}},sV=!oH&&!rH((function(){return 7!=Object.defineProperty(uV("div"),"a",{get:function(){return 7}}).a})),lV=Object.getOwnPropertyDescriptor,cV={f:oH?lV:function(e,t){if(e=wH(e),t=oV(t),sV)try{return lV(e,t)}catch(e){}if(GH(e,t))return fH(!aH(cH.f,e,t),e[t])}},fV=/#|\.prototype\./,dV=function(e,t){var n=hV[pV(e)];return n==vV||n!=gV&&(nH(t)?rH(t):!!t)},pV=dV.normalize=function(e){return String(e).replace(fV,".").toLowerCase()},hV=dV.data={},gV=dV.NATIVE="N",vV=dV.POLYFILL="P",yV=dV,mV=tH(tH.bind),bV=function(e,t){return RH(e),void 0===t?e:mV?mV(e,t):function(){return e.apply(t,arguments)}},wV=W$.String,EV=W$.TypeError,DV=function(e){if(EH(e))return e;throw EV(wV(e)+" is not an object")},SV=W$.TypeError,xV=Object.defineProperty,CV={f:oH?xV:function(e,t,n){if(DV(e),t=oV(t),DV(n),sV)try{return xV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw SV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},AV=oH?function(e,t,n){return CV.f(e,t,fH(1,n))}:function(e,t,n){return e[t]=n,e},OV=cV.f,kV=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 X$(e,this,arguments)};return t.prototype=e.prototype,t},BV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?W$:d?W$[c]:(W$[c]||{}).prototype,g=f?DH:DH[c]||AV(DH,c,{})[c],v=g.prototype;for(o in t)n=!yV(f?o:c+(d?".":"#")+o,e.forced)&&h&&GH(h,o),a=g[o],n&&(u=e.noTargetGet?(l=OV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?bV(i,W$):e.wrap&&n?kV(i):p&&nH(i)?tH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&AV(s,"sham",!0),AV(g,o,s),p&&(GH(DH,r=c+"Prototype")||AV(DH,r,{}),AV(DH[r],o,i),e.real&&v&&!v[o]&&AV(v,o,i)))},FV=Array.isArray||function(e){return"Array"==hH(e)},TV=Math.ceil,_V=Math.floor,PV=function(e){var t=+e;return t!=t||0===t?0:(t>0?_V:TV)(t)},jV=Math.min,NV=function(e){return(t=e.length)>0?jV(PV(t),9007199254740991):0;var t},IV=function(e,t,n){var r=oV(t);r in e?CV.f(e,r,fH(0,n)):e[r]=n},LV={};LV[tV("toStringTag")]="z";var RV="[object z]"===String(LV),MV=tV("toStringTag"),zV=W$.Object,$V="Arguments"==hH(function(){return arguments}()),HV=RV?hH: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=zV(e),MV))?n:$V?hH(t):"Object"==(r=hH(t))&&nH(t.callee)?"Arguments":r},VV=tH(Function.toString);nH($H.inspectSource)||($H.inspectSource=function(e){return VV(e)});var UV=$H.inspectSource,WV=function(){},GV=[],qV=xH("Reflect","construct"),KV=/^\s*(?:class|function)\b/,YV=tH(KV.exec),XV=!KV.exec(WV),ZV=function(e){if(!nH(e))return!1;try{return qV(WV,GV,e),!0}catch(e){return!1}},JV=!qV||rH((function(){var e;return ZV(ZV.call)||!ZV(Object)||!ZV((function(){e=!0}))||e}))?function(e){if(!nH(e))return!1;switch(HV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XV||!!YV(KV,UV(e))}:ZV,QV=tV("species"),eU=W$.Array,tU=function(e,t){return new(function(e){var t;return FV(e)&&(t=e.constructor,(JV(t)&&(t===eU||FV(t.prototype))||EH(t)&&null===(t=t[QV]))&&(t=void 0)),void 0===t?eU:t}(e))(0===t?0:t)},nU=tV("species"),rU=tV("isConcatSpreadable"),oU=W$.TypeError,iU=TH>=51||!rH((function(){var e=[];return e[rU]=!1,e.concat()[0]!==e})),aU=TH>=51||!rH((function(){var e=[];return(e.constructor={})[nU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),uU=function(e){if(!EH(e))return!1;var t=e[rU];return void 0!==t?!!t:FV(e)};BV({target:"Array",proto:!0,forced:!iU||!aU},{concat:function(e){var t,n,r,o,i,a=UH(this),u=tU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(uU(i=-1===t?a:arguments[t])){if(s+(o=NV(i))>9007199254740991)throw oU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&IV(u,s,i[n])}else{if(s>=9007199254740991)throw oU("Maximum allowed index exceeded");IV(u,s++,i)}return u.length=s,u}});var sU,lU=W$.String,cU=function(e){if("Symbol"===HV(e))throw TypeError("Cannot convert a Symbol value to a string");return lU(e)},fU=Math.max,dU=Math.min,pU=function(e,t){var n=PV(e);return n<0?fU(n+t,0):dU(n,t)},hU=function(e){return function(t,n,r){var o,i=wH(t),a=NV(i),u=pU(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gU={includes:hU(!0),indexOf:hU(!1)},vU={},yU=gU.indexOf,mU=tH([].push),bU=function(e,t){var n,r=wH(e),o=0,i=[];for(n in r)!GH(vU,n)&&GH(r,n)&&mU(i,n);for(;t.length>o;)GH(r,n=t[o++])&&(~yU(i,n)||mU(i,n));return i},wU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EU=Object.keys||function(e){return bU(e,wU)},DU=oH?Object.defineProperties:function(e,t){DV(e);for(var n,r=wH(t),o=EU(t),i=o.length,a=0;i>a;)CV.f(e,n=o[a++],r[n]);return e},SU=xH("document","documentElement"),xU=HH("keys"),CU=function(e){return xU[e]||(xU[e]=XH(e))},AU=CU("IE_PROTO"),OU=function(){},kU=function(e){return"<script>"+e+"<\/script>"},BU=function(e){e.write(kU("")),e.close();var t=e.parentWindow.Object;return e=null,t},FU=function(){try{sU=new ActiveXObject("htmlfile")}catch(e){}var e,t;FU="undefined"!=typeof document?document.domain&&sU?BU(sU):((t=uV("iframe")).style.display="none",SU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kU("document.F=Object")),e.close(),e.F):BU(sU);for(var n=wU.length;n--;)delete FU.prototype[wU[n]];return FU()};vU[AU]=!0;var TU,_U,PU,jU=Object.create||function(e,t){var n;return null!==e?(OU.prototype=DV(e),n=new OU,OU.prototype=null,n[AU]=e):n=FU(),void 0===t?n:DU(n,t)},NU=wU.concat("length","prototype"),IU={f:Object.getOwnPropertyNames||function(e){return bU(e,NU)}},LU=W$.Array,RU=Math.max,MU=IU.f,zU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$U={f:function(e){return zU&&"Window"==hH(e)?function(e){try{return MU(e)}catch(e){return function(e,t,n){for(var r=NV(e),o=pU(void 0,r),i=pU(r,r),a=LU(RU(i-o,0)),u=0;o<i;o++,u++)IV(a,u,e[o]);return a.length=u,a}(zU)}}(e):MU(wH(e))}},HU={f:Object.getOwnPropertySymbols},VU=tH([].slice),UU=function(e,t,n,r){r&&r.enumerable?e[t]=n:AV(e,t,n)},WU={f:tV},GU=CV.f,qU=function(e){var t=DH.Symbol||(DH.Symbol={});GH(t,e)||GU(t,e,{value:WU.f(e)})},KU=RV?{}.toString:function(){return"[object "+HV(this)+"]"},YU=CV.f,XU=tV("toStringTag"),ZU=function(e,t,n,r){if(e){var o=n?e:e.prototype;GH(o,XU)||YU(o,XU,{configurable:!0,value:t}),r&&!RV&&AV(o,"toString",KU)}},JU=W$.WeakMap,QU=nH(JU)&&/native code/.test(UV(JU)),eW=W$.TypeError,tW=W$.WeakMap;if(QU||$H.state){var nW=$H.state||($H.state=new tW),rW=tH(nW.get),oW=tH(nW.has),iW=tH(nW.set);TU=function(e,t){if(oW(nW,e))throw new eW("Object already initialized");return t.facade=e,iW(nW,e,t),t},_U=function(e){return rW(nW,e)||{}},PU=function(e){return oW(nW,e)}}else{var aW=CU("state");vU[aW]=!0,TU=function(e,t){if(GH(e,aW))throw new eW("Object already initialized");return t.facade=e,AV(e,aW,t),t},_U=function(e){return GH(e,aW)?e[aW]:{}},PU=function(e){return GH(e,aW)}}var uW={set:TU,get:_U,has:PU,enforce:function(e){return PU(e)?_U(e):TU(e,{})},getterFor:function(e){return function(t){var n;if(!EH(t)||(n=_U(t)).type!==e)throw eW("Incompatible receiver, "+e+" required");return n}}},sW=tH([].push),lW=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,l,c,f){for(var d,p,h=UH(s),g=yH(h),v=bV(l,c),y=NV(g),m=0,b=f||tU,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:sW(w,d)}else switch(e){case 4:return!1;case 7:sW(w,d)}return i?-1:r||o?o:w}},cW=[lW(0),lW(1),lW(2),lW(3),lW(4),lW(5),lW(6),lW(7)][0],fW=CU("hidden"),dW=tV("toPrimitive"),pW=uW.set,hW=uW.getterFor("Symbol"),gW=Object.prototype,vW=W$.Symbol,yW=vW&&vW.prototype,mW=W$.TypeError,bW=W$.QObject,wW=xH("JSON","stringify"),EW=cV.f,DW=CV.f,SW=$U.f,xW=cH.f,CW=tH([].push),AW=HH("symbols"),OW=HH("op-symbols"),kW=HH("string-to-symbol-registry"),BW=HH("symbol-to-string-registry"),FW=HH("wks"),TW=!bW||!bW.prototype||!bW.prototype.findChild,_W=oH&&rH((function(){return 7!=jU(DW({},"a",{get:function(){return DW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=EW(gW,t);r&&delete gW[t],DW(e,t,n),r&&e!==gW&&DW(gW,t,r)}:DW,PW=function(e,t){var n=AW[e]=jU(yW);return pW(n,{type:"Symbol",tag:e,description:t}),oH||(n.description=t),n},jW=function(e,t,n){e===gW&&jW(OW,t,n),DV(e);var r=oV(t);return DV(n),GH(AW,r)?(n.enumerable?(GH(e,fW)&&e[fW][r]&&(e[fW][r]=!1),n=jU(n,{enumerable:fH(0,!1)})):(GH(e,fW)||DW(e,fW,fH(1,{})),e[fW][r]=!0),_W(e,r,n)):DW(e,r,n)},NW=function(e,t){DV(e);var n=wH(t),r=EU(n).concat(MW(n));return cW(r,(function(t){oH&&!aH(IW,n,t)||jW(e,t,n[t])})),e},IW=function(e){var t=oV(e),n=aH(xW,this,t);return!(this===gW&&GH(AW,t)&&!GH(OW,t))&&(!(n||!GH(this,t)||!GH(AW,t)||GH(this,fW)&&this[fW][t])||n)},LW=function(e,t){var n=wH(e),r=oV(t);if(n!==gW||!GH(AW,r)||GH(OW,r)){var o=EW(n,r);return!o||!GH(AW,r)||GH(n,fW)&&n[fW][r]||(o.enumerable=!0),o}},RW=function(e){var t=SW(wH(e)),n=[];return cW(t,(function(e){GH(AW,e)||GH(vU,e)||CW(n,e)})),n},MW=function(e){var t=e===gW,n=SW(t?OW:wH(e)),r=[];return cW(n,(function(e){!GH(AW,e)||t&&!GH(gW,e)||CW(r,AW[e])})),r};if(_H||(yW=(vW=function(){if(CH(yW,this))throw mW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?cU(arguments[0]):void 0,t=XH(e),n=function(e){this===gW&&aH(n,OW,e),GH(this,fW)&&GH(this[fW],t)&&(this[fW][t]=!1),_W(this,t,fH(1,e))};return oH&&TW&&_W(gW,t,{configurable:!0,set:n}),PW(t,e)}).prototype,UU(yW,"toString",(function(){return hW(this).tag})),UU(vW,"withoutSetter",(function(e){return PW(XH(e),e)})),cH.f=IW,CV.f=jW,cV.f=LW,IU.f=$U.f=RW,HU.f=MW,WU.f=function(e){return PW(tV(e),e)},oH&&DW(yW,"description",{configurable:!0,get:function(){return hW(this).description}})),BV({global:!0,wrap:!0,forced:!_H,sham:!_H},{Symbol:vW}),cW(EU(FW),(function(e){qU(e)})),BV({target:"Symbol",stat:!0,forced:!_H},{for:function(e){var t=cU(e);if(GH(kW,t))return kW[t];var n=vW(t);return kW[t]=n,BW[n]=t,n},keyFor:function(e){if(!NH(e))throw mW(e+" is not a symbol");if(GH(BW,e))return BW[e]},useSetter:function(){TW=!0},useSimple:function(){TW=!1}}),BV({target:"Object",stat:!0,forced:!_H,sham:!oH},{create:function(e,t){return void 0===t?jU(e):NW(jU(e),t)},defineProperty:jW,defineProperties:NW,getOwnPropertyDescriptor:LW}),BV({target:"Object",stat:!0,forced:!_H},{getOwnPropertyNames:RW,getOwnPropertySymbols:MW}),BV({target:"Object",stat:!0,forced:rH((function(){HU.f(1)}))},{getOwnPropertySymbols:function(e){return HU.f(UH(e))}}),wW){var zW=!_H||rH((function(){var e=vW();return"[null]"!=wW([e])||"{}"!=wW({a:e})||"{}"!=wW(Object(e))}));BV({target:"JSON",stat:!0,forced:zW},{stringify:function(e,t,n){var r=VU(arguments),o=t;if((EH(t)||void 0!==e)&&!NH(e))return FV(t)||(t=function(e,t){if(nH(o)&&(t=aH(o,this,e,t)),!NH(t))return t}),r[1]=t,X$(wW,null,r)}})}if(!yW[dW]){var $W=yW.valueOf;UU(yW,dW,(function(e){return aH($W,this)}))}ZU(vW,"Symbol"),vU[fW]=!0,qU("asyncIterator"),qU("hasInstance"),qU("isConcatSpreadable"),qU("iterator"),qU("match"),qU("matchAll"),qU("replace"),qU("search"),qU("species"),qU("split"),qU("toPrimitive"),qU("toStringTag"),qU("unscopables"),ZU(W$.JSON,"JSON",!0);var HW,VW,UW,WW=DH.Symbol,GW={},qW=Function.prototype,KW=oH&&Object.getOwnPropertyDescriptor,YW=GH(qW,"name"),XW={EXISTS:YW,PROPER:YW&&"something"===function(){}.name,CONFIGURABLE:YW&&(!oH||oH&&KW(qW,"name").configurable)},ZW=!rH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),JW=CU("IE_PROTO"),QW=W$.Object,eG=QW.prototype,tG=ZW?QW.getPrototypeOf:function(e){var t=UH(e);if(GH(t,JW))return t[JW];var n=t.constructor;return nH(n)&&t instanceof n?n.prototype:t instanceof QW?eG:null},nG=tV("iterator"),rG=!1;[].keys&&("next"in(UW=[].keys())?(VW=tG(tG(UW)))!==Object.prototype&&(HW=VW):rG=!0);var oG=null==HW||rH((function(){var e={};return HW[nG].call(e)!==e}));HW=oG?{}:jU(HW),nH(HW[nG])||UU(HW,nG,(function(){return this}));var iG={IteratorPrototype:HW,BUGGY_SAFARI_ITERATORS:rG},aG=iG.IteratorPrototype,uG=function(){return this};W$.String,W$.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{tH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var sG=XW.PROPER,lG=iG.BUGGY_SAFARI_ITERATORS,cG=tV("iterator"),fG=function(){return this},dG=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=jU(aG,{next:fH(1,n)}),ZU(e,o,!1,!0),GW[o]=uG}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!lG&&e in p)return p[e];switch(e){case"keys":case"values":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[cG]||p["@@iterator"]||o&&p[o],g=!lG&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=tG(v.call(new e)))!==Object.prototype&&u.next&&(ZU(u,f,!0,!0),GW[f]=fG),sG&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return aH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(lG||d||!(l in p))&&UU(p,l,s[l]);else BV({target:t,proto:!0,forced:lG||d},s);return a&&p[cG]!==g&&UU(p,cG,g,{name:o}),GW[t]=g,s},pG=uW.set,hG=uW.getterFor("Array Iterator");dG(Array,"Array",(function(e,t){pG(this,{type:"Array Iterator",target:wH(e),index:0,kind:t})}),(function(){var e=hG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),GW.Arguments=GW.Array;var gG=tV("toStringTag");for(var vG 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}){var yG=W$[vG],mG=yG&&yG.prototype;mG&&HV(mG)!==gG&&AV(mG,gG,vG),GW[vG]=GW.Array}var bG=WW;qU("asyncDispose"),qU("dispose"),qU("matcher"),qU("metadata"),qU("observable"),qU("patternMatch"),qU("replaceAll");var wG=bG,EG=tH("".charAt),DG=tH("".charCodeAt),SG=tH("".slice),xG=function(e){return function(t,n){var r,o,i=cU(bH(t)),a=PV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DG(i,a))<55296||r>56319||a+1===u||(o=DG(i,a+1))<56320||o>57343?e?EG(i,a):r:e?SG(i,a,a+2):o-56320+(r-55296<<10)+65536}},CG=(xG(!1),xG(!0)),AG=uW.set,OG=uW.getterFor("String Iterator");dG(String,"String",(function(e){AG(this,{type:"String Iterator",string:cU(e),index:0})}),(function(){var e,t=OG(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=CG(n,r),t.index+=e.length,{value:e,done:!1})}));var kG=WU.f("iterator"),BG=NP((function(e){function t(n){return"function"==typeof wG&&"symbol"==typeof kG?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof wG&&e.constructor===wG&&e!==wG.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),FG=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(BG),TG=FN.EXISTS,_G=uN.f,PG=Function.prototype,jG=QP(PG.toString),NG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,IG=QP(NG.exec);$P&&!TG&&_G(PG,"name",{configurable:!0,get:function(){try{return IG(NG,jG(this))[1]}catch(e){return""}}});var LG=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=Af.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!_R(Af.nodes(e,{match:function(t){return"pre"===AO.getNodeType(t)||!!Af.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}(),RG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("fontSize.title"),t.iconSvg=sM,t.mark="fontSize",t}return OR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:dP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===FG(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}(LG),MG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("fontFamily.title"),t.iconSvg=lM,t.mark="fontFamily",t.selectPanelWidth=150,t}return OR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:dP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===FG(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}(LG),zG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&mz(i,{fontSize:r}),o&&mz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Xf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((ER(t)||"span"!==SR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),DR(n)):t},preParseHtml:[z$],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Xf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=xR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=xR(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new RG},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 MG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},$G={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Bp(e),n=xR(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]}},HG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=_R(Af.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":_R(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=_R(Af.nodes(e,{match:function(e){var t=AO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),VG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("indent.decrease"),t.iconSvg=cM,t}return OR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){hd.setNodes(e,{indent:null},{match:function(e){return wf.isElement(e)}})},t}(HG),UG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("indent.increase"),t.iconSvg=fM,t}return OR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){hd.setNodes(e,{indent:"2em"},{match:function(e){return wf.isElement(e)},mode:"highest"})},t}(HG),WG={renderStyle:function(e,t){if(!wf.isElement(e))return t;var n=e.indent,r=t;return n&&mz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!wf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Bp(t);return r.css("text-indent",n),DR(r)},preParseHtml:[$G],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!wf.isElement(t))return t;var o=t,i=xR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new UG}},{key:"delIndent",factory:function(){return new VG}}]},GG=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=_R(Af.nodes(e,{match:function(e){var t=AO.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||!!AO.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),qG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("justify.left"),t.iconSvg=dM,t}return OR(t,e),t.prototype.exec=function(e,t){hd.setNodes(e,{textAlign:"left"},{match:function(t){return wf.isElement(t)&&!e.isInline(t)}})},t}(GG),KG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("justify.right"),t.iconSvg=pM,t}return OR(t,e),t.prototype.exec=function(e,t){hd.setNodes(e,{textAlign:"right"},{match:function(t){return wf.isElement(t)&&!e.isInline(t)}})},t}(GG),YG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("justify.center"),t.iconSvg=hM,t}return OR(t,e),t.prototype.exec=function(e,t){hd.setNodes(e,{textAlign:"center"},{match:function(t){return wf.isElement(t)&&!e.isInline(t)}})},t}(GG),XG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dP("justify.justify"),t.iconSvg=gM,t}return OR(t,e),t.prototype.exec=function(e,t){hd.setNodes(e,{textAlign:"justify"},{match:function(t){return wf.isElement(t)&&!e.isInline(t)}})},t}(GG),ZG={renderStyle:function(e,t){if(!wf.isElement(e))return t;var n=e.textAlign,r=t;return n&&mz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!wf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Bp(t);return r.css("text-align",n),DR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!wf.isElement(t))return t;var o=t,i=xR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new qG}},{key:"justifyRight",factory:function(){return new KG}},{key:"justifyCenter",factory:function(){return new YG}},{key:"justifyJustify",factory:function(){return new XG}}]},JG=function(){function e(){this.title=dP("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:dP("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=_R(Af.nodes(e,{match:function(e){var t=AO.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?"":wf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){hd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),QG={renderStyle:function(e,t){if(!wf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&mz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!wf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Bp(t);return r.css("line-height",n),DR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!wf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=xR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new JG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},eq=function(){function e(){this.title=dP("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}(),tq=function(){function e(){this.title=dP("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}(),nq={menus:[{key:"redo",factory:function(){return new eq}},{key:"undo",factory:function(){return new tq}}]},rq={type:"divider",renderElem:function(e,t,n){return Jh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:AO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Jh("hr")])}},oq=function(){function e(){this.title=dP("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||!!AO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=AO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){hd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),iq={renderElems:[rq],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 oq}}],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=_R(e,2),o=t[0],i=t[1];if("divider"!==AO.getNodeType(o))return n([o,i]);AO.isLastNode(r,o)&&hd.insertNodes(r,AO.genEmptyParagraph(),{at:[i[0]+1]})},r}},aq=BI.map;uI({target:"Array",proto:!0,forced:!TI("map")},{map:function(e){return aq(this,e,arguments.length>1?arguments[1]:void 0)}});var uq=QP([].join),sq=ij!=Object,lq=WR("join",",");uI({target:"Array",proto:!0,forced:sq||!lq},{join:function(e){return uq(sj(this),void 0===e?",":e)}});var cq=function(){function e(){this.title=dP("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=AO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=AO.getParentNode(e,t);return null==n||"pre"!==AO.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=AO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=AO.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=Tf.string(t);hd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));hd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Af.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=TR(i),u=a.next();!u.done;u=a.next()){var s=_R(u.value,1)[0];s&&o.push(Tf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}hd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};hd.insertNodes(e,l,{mode:"highest"})},e}(),fq={key:"codeBlock",factory:function(){return new cq}};uI({target:"String",proto:!0,forced:RR("anchor")},{anchor:function(e){return LR(this,"a","name",e)}}),DL("match",(function(e,t,n){return[function(t){var n=uj(this),r=null==t?void 0:kj(t,e);return r?VP(r,t,n):new RegExp(t)[e](II(n))},function(e){var r=oN(this),o=II(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return LL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=LL(r,o));){var c=II(u[0]);s[l]=c,""===c&&(r.lastIndex=kL(o,MN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var dq={type:"pre",renderElem:function(e,t,n){return mg("pre",null,t)}},pq={type:"code",renderElem:function(e,t,n){return mg("code",null,t)}},hq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return"code"===AO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===AO.getNodeType(e)}))}}},gq={menus:[fq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=AO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Tf.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=_R(e,2),r=t[0],i=t[1],a=AO.getNodeType(r);return"code"===a&&i.length<=1&&hd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(AO.isLastNode(o,r)&&hd.insertNodes(o,AO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==AO.getNodeType(r.children[0])&&(hd.unwrapNodes(o),hd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=AO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Af.insertText(o,t)}else r(e)},o},renderElems:[dq,pq],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=Bp(e);if("code"!==SR(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:Bp(e)[0].textContent||""}]}}},hq]},vq=function(){function e(){this.title=dP("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}(),yq={menus:[{key:"fullScreen",factory:function(){return new vq}}]},mq=function(){function e(){this.title=dP("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||!!Vf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];hd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Af.start(e,r))}},e}(),bq=[AM,xz,zG,WG,ZG,QG,D$,iq,R$,Wz,gq,I$,pz,jR,A$,nq,yq,{menus:[{key:"enter",factory:function(){return new mq}}]}];fP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),fP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var wq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Eq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Dq,Sq,xq=function(e){return e&&e.Math==Math&&e},Cq=xq("object"==typeof globalThis&&globalThis)||xq("object"==typeof window&&window)||xq("object"==typeof self&&self)||xq("object"==typeof wq&&wq)||function(){return this}()||Function("return this")(),Aq=Function.prototype,Oq=Aq.bind,kq=Aq.call,Bq=Oq&&Oq.bind(kq),Fq=Oq?function(e){return e&&Bq(kq,e)}:function(e){return e&&function(){return kq.apply(e,arguments)}},Tq=function(e){try{return!!e()}catch(e){return!0}},_q=Fq({}.toString),Pq=Fq("".slice),jq=function(e){return Pq(_q(e),8,-1)},Nq=Cq.Object,Iq=Fq("".split),Lq=Tq((function(){return!Nq("z").propertyIsEnumerable(0)}))?function(e){return"String"==jq(e)?Iq(e,""):Nq(e)}:Nq,Rq=Cq.TypeError,Mq=function(e){if(null==e)throw Rq("Can't call method on "+e);return e},zq=function(e){return Lq(Mq(e))},$q=Object.defineProperty,Hq=function(e,t){try{$q(Cq,e,{value:t,configurable:!0,writable:!0})}catch(n){Cq[e]=t}return t},Vq=Cq["__core-js_shared__"]||Hq("__core-js_shared__",{}),Uq=Eq((function(e){(e.exports=function(e,t){return Vq[e]||(Vq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Wq=Cq.Object,Gq=function(e){return Wq(Mq(e))},qq=Fq({}.hasOwnProperty),Kq=Object.hasOwn||function(e,t){return qq(Gq(e),t)},Yq=0,Xq=Math.random(),Zq=Fq(1..toString),Jq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Zq(++Yq+Xq,36)},Qq=function(e){return"function"==typeof e},eK=function(e){return Qq(e)?e:void 0},tK=function(e,t){return arguments.length<2?eK(Cq[e]):Cq[e]&&Cq[e][t]},nK=tK("navigator","userAgent")||"",rK=Cq.process,oK=Cq.Deno,iK=rK&&rK.versions||oK&&oK.version,aK=iK&&iK.v8;aK&&(Sq=(Dq=aK.split("."))[0]>0&&Dq[0]<4?1:+(Dq[0]+Dq[1])),!Sq&&nK&&(!(Dq=nK.match(/Edge\/(\d+)/))||Dq[1]>=74)&&(Dq=nK.match(/Chrome\/(\d+)/))&&(Sq=+Dq[1]);var uK,sK=Sq,lK=!!Object.getOwnPropertySymbols&&!Tq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sK&&sK<41})),cK=lK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fK=Uq("wks"),dK=Cq.Symbol,pK=dK&&dK.for,hK=cK?dK:dK&&dK.withoutSetter||Jq,gK=function(e){if(!Kq(fK,e)||!lK&&"string"!=typeof fK[e]){var t="Symbol."+e;lK&&Kq(dK,e)?fK[e]=dK[e]:fK[e]=cK&&pK?pK(t):hK(t)}return fK[e]},vK=function(e){return"object"==typeof e?null!==e:Qq(e)},yK=Cq.String,mK=Cq.TypeError,bK=function(e){if(vK(e))return e;throw mK(yK(e)+" is not an object")},wK=!Tq((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),EK=Cq.document,DK=vK(EK)&&vK(EK.createElement),SK=function(e){return DK?EK.createElement(e):{}},xK=!wK&&!Tq((function(){return 7!=Object.defineProperty(SK("div"),"a",{get:function(){return 7}}).a})),CK=Function.prototype.call,AK=CK.bind?CK.bind(CK):function(){return CK.apply(CK,arguments)},OK=Fq({}.isPrototypeOf),kK=Cq.Object,BK=cK?function(e){return"symbol"==typeof e}:function(e){var t=tK("Symbol");return Qq(t)&&OK(t.prototype,kK(e))},FK=Cq.String,TK=function(e){try{return FK(e)}catch(e){return"Object"}},_K=Cq.TypeError,PK=function(e){if(Qq(e))return e;throw _K(TK(e)+" is not a function")},jK=function(e,t){var n=e[t];return null==n?void 0:PK(n)},NK=Cq.TypeError,IK=Cq.TypeError,LK=gK("toPrimitive"),RK=function(e){var t=function(e,t){if(!vK(e)||BK(e))return e;var n,r=jK(e,LK);if(r){if(void 0===t&&(t="default"),n=AK(r,e,t),!vK(n)||BK(n))return n;throw IK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qq(n=e.toString)&&!vK(r=AK(n,e)))return r;if(Qq(n=e.valueOf)&&!vK(r=AK(n,e)))return r;if("string"!==t&&Qq(n=e.toString)&&!vK(r=AK(n,e)))return r;throw NK("Can't convert object to primitive value")}(e,t)}(e,"string");return BK(t)?t:t+""},MK=Cq.TypeError,zK=Object.defineProperty,$K={f:wK?zK:function(e,t,n){if(bK(e),t=RK(t),bK(n),xK)try{return zK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw MK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},HK=Math.ceil,VK=Math.floor,UK=function(e){var t=+e;return t!=t||0===t?0:(t>0?VK:HK)(t)},WK=Math.max,GK=Math.min,qK=function(e,t){var n=UK(e);return n<0?WK(n+t,0):GK(n,t)},KK=Math.min,YK=function(e){return e>0?KK(UK(e),9007199254740991):0},XK=function(e){return YK(e.length)},ZK=function(e){return function(t,n,r){var o,i=zq(t),a=XK(i),u=qK(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},JK={includes:ZK(!0),indexOf:ZK(!1)},QK={},eY=JK.indexOf,tY=Fq([].push),nY=function(e,t){var n,r=zq(e),o=0,i=[];for(n in r)!Kq(QK,n)&&Kq(r,n)&&tY(i,n);for(;t.length>o;)Kq(r,n=t[o++])&&(~eY(i,n)||tY(i,n));return i},rY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oY=Object.keys||function(e){return nY(e,rY)},iY=wK?Object.defineProperties:function(e,t){bK(e);for(var n,r=zq(t),o=oY(t),i=o.length,a=0;i>a;)$K.f(e,n=o[a++],r[n]);return e},aY=tK("document","documentElement"),uY=Uq("keys"),sY=function(e){return uY[e]||(uY[e]=Jq(e))},lY=sY("IE_PROTO"),cY=function(){},fY=function(e){return"<script>"+e+"<\/script>"},dY=function(e){e.write(fY("")),e.close();var t=e.parentWindow.Object;return e=null,t},pY=function(){try{uK=new ActiveXObject("htmlfile")}catch(e){}var e,t;pY="undefined"!=typeof document?document.domain&&uK?dY(uK):((t=SK("iframe")).style.display="none",aY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fY("document.F=Object")),e.close(),e.F):dY(uK);for(var n=rY.length;n--;)delete pY.prototype[rY[n]];return pY()};QK[lY]=!0;var hY=Object.create||function(e,t){var n;return null!==e?(cY.prototype=bK(e),n=new cY,cY.prototype=null,n[lY]=e):n=pY(),void 0===t?n:iY(n,t)},gY=gK("unscopables"),vY=Array.prototype;null==vY[gY]&&$K.f(vY,gY,{configurable:!0,value:hY(null)});var yY=function(e){vY[gY][e]=!0},mY={},bY=Fq(Function.toString);Qq(Vq.inspectSource)||(Vq.inspectSource=function(e){return bY(e)});var wY,EY,DY,SY=Vq.inspectSource,xY=Cq.WeakMap,CY=Qq(xY)&&/native code/.test(SY(xY)),AY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},OY=wK?function(e,t,n){return $K.f(e,t,AY(1,n))}:function(e,t,n){return e[t]=n,e},kY=Cq.TypeError,BY=Cq.WeakMap;if(CY||Vq.state){var FY=Vq.state||(Vq.state=new BY),TY=Fq(FY.get),_Y=Fq(FY.has),PY=Fq(FY.set);wY=function(e,t){if(_Y(FY,e))throw new kY("Object already initialized");return t.facade=e,PY(FY,e,t),t},EY=function(e){return TY(FY,e)||{}},DY=function(e){return _Y(FY,e)}}else{var jY=sY("state");QK[jY]=!0,wY=function(e,t){if(Kq(e,jY))throw new kY("Object already initialized");return t.facade=e,OY(e,jY,t),t},EY=function(e){return Kq(e,jY)?e[jY]:{}},DY=function(e){return Kq(e,jY)}}var NY,IY,LY,RY={set:wY,get:EY,has:DY,enforce:function(e){return DY(e)?EY(e):wY(e,{})},getterFor:function(e){return function(t){var n;if(!vK(t)||(n=EY(t)).type!==e)throw kY("Incompatible receiver, "+e+" required");return n}}},MY={}.propertyIsEnumerable,zY=Object.getOwnPropertyDescriptor,$Y={f:zY&&!MY.call({1:2},1)?function(e){var t=zY(this,e);return!!t&&t.enumerable}:MY},HY=Object.getOwnPropertyDescriptor,VY={f:wK?HY:function(e,t){if(e=zq(e),t=RK(t),xK)try{return HY(e,t)}catch(e){}if(Kq(e,t))return AY(!AK($Y.f,e,t),e[t])}},UY=Function.prototype,WY=wK&&Object.getOwnPropertyDescriptor,GY=Kq(UY,"name"),qY={EXISTS:GY,PROPER:GY&&"something"===function(){}.name,CONFIGURABLE:GY&&(!wK||wK&&WY(UY,"name").configurable)},KY=Eq((function(e){var t=qY.CONFIGURABLE,n=RY.get,r=RY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Qq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kq(i,"name")||t&&i.name!==f)&&OY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Cq?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:OY(e,n,i)):l?e[n]=i:Hq(n,i)})(Function.prototype,"toString",(function(){return Qq(this)&&n(this).source||SY(this)}))})),YY=rY.concat("length","prototype"),XY={f:Object.getOwnPropertyNames||function(e){return nY(e,YY)}},ZY={f:Object.getOwnPropertySymbols},JY=Fq([].concat),QY=tK("Reflect","ownKeys")||function(e){var t=XY.f(bK(e)),n=ZY.f;return n?JY(t,n(e)):t},eX=function(e,t){for(var n=QY(t),r=$K.f,o=VY.f,i=0;i<n.length;i++){var a=n[i];Kq(e,a)||r(e,a,o(t,a))}},tX=/#|\.prototype\./,nX=function(e,t){var n=oX[rX(e)];return n==aX||n!=iX&&(Qq(t)?Tq(t):!!t)},rX=nX.normalize=function(e){return String(e).replace(tX,".").toLowerCase()},oX=nX.data={},iX=nX.NATIVE="N",aX=nX.POLYFILL="P",uX=nX,sX=VY.f,lX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Cq:l?Cq[u]||Hq(u,{}):(Cq[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sX(n,r))&&a.value:n[r],!uX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eX(i,o)}(e.sham||o&&o.sham)&&OY(i,"sham",!0),KY(n,r,i,e)}},cX=!Tq((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fX=sY("IE_PROTO"),dX=Cq.Object,pX=dX.prototype,hX=cX?dX.getPrototypeOf:function(e){var t=Gq(e);if(Kq(t,fX))return t[fX];var n=t.constructor;return Qq(n)&&t instanceof n?n.prototype:t instanceof dX?pX:null},gX=gK("iterator"),vX=!1;[].keys&&("next"in(LY=[].keys())?(IY=hX(hX(LY)))!==Object.prototype&&(NY=IY):vX=!0);var yX=null==NY||Tq((function(){var e={};return NY[gX].call(e)!==e}));yX&&(NY={}),Qq(NY[gX])||KY(NY,gX,(function(){return this}));var mX={IteratorPrototype:NY,BUGGY_SAFARI_ITERATORS:vX},bX=$K.f,wX=gK("toStringTag"),EX=function(e,t,n){e&&!Kq(e=n?e:e.prototype,wX)&&bX(e,wX,{configurable:!0,value:t})},DX=mX.IteratorPrototype,SX=function(){return this},xX=Cq.String,CX=Cq.TypeError,AX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Fq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return bK(n),function(e){if("object"==typeof e||Qq(e))return e;throw CX("Can't set "+xX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),OX=qY.PROPER,kX=qY.CONFIGURABLE,BX=mX.IteratorPrototype,FX=mX.BUGGY_SAFARI_ITERATORS,TX=gK("iterator"),_X=function(){return this},PX=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=hY(DX,{next:AY(1,n)}),EX(e,o,!1),mY[o]=SX}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!FX&&e in p)return p[e];switch(e){case"keys":case"values":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[TX]||p["@@iterator"]||o&&p[o],g=!FX&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=hX(v.call(new e)))!==Object.prototype&&u.next&&(hX(u)!==BX&&(AX?AX(u,BX):Qq(u[TX])||KY(u,TX,_X)),EX(u,f,!0)),OX&&"values"==o&&h&&"values"!==h.name&&(kX?OY(p,"name","values"):(d=!0,g=function(){return AK(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(FX||d||!(l in p))&&KY(p,l,s[l]);else lX({target:t,proto:!0,forced:FX||d},s);return p[TX]!==g&&KY(p,TX,g,{name:o}),mY[t]=g,s},jX=RY.set,NX=RY.getterFor("Array Iterator"),IX=PX(Array,"Array",(function(e,t){jX(this,{type:"Array Iterator",target:zq(e),index:0,kind:t})}),(function(){var e=NX(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mY.Arguments=mY.Array,yY("keys"),yY("values"),yY("entries");var LX={};LX[gK("toStringTag")]="z";var RX="[object z]"===String(LX),MX=gK("toStringTag"),zX=Cq.Object,$X="Arguments"==jq(function(){return arguments}()),HX=RX?jq: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=zX(e),MX))?n:$X?jq(t):"Object"==(r=jq(t))&&Qq(t.callee)?"Arguments":r},VX=RX?{}.toString:function(){return"[object "+HX(this)+"]"};RX||KY(Object.prototype,"toString",VX,{unsafe:!0});var UX=Cq.String,WX=function(e){if("Symbol"===HX(e))throw TypeError("Cannot convert a Symbol value to a string");return UX(e)},GX=Fq("".charAt),qX=Fq("".charCodeAt),KX=Fq("".slice),YX=function(e){return function(t,n){var r,o,i=WX(Mq(t)),a=UK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qX(i,a))<55296||r>56319||a+1===u||(o=qX(i,a+1))<56320||o>57343?e?GX(i,a):r:e?KX(i,a,a+2):o-56320+(r-55296<<10)+65536}},XX={codeAt:YX(!1),charAt:YX(!0)},ZX=XX.charAt,JX=RY.set,QX=RY.getterFor("String Iterator");PX(String,"String",(function(e){JX(this,{type:"String Iterator",string:WX(e),index:0})}),(function(){var e,t=QX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ZX(n,r),t.index+=e.length,{value:e,done:!1})}));var eZ=function(e,t,n){for(var r in t)KY(e,r,t[r],n);return e},tZ=Cq.Array,nZ=Math.max,rZ=XY.f,oZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iZ={f:function(e){return oZ&&"Window"==jq(e)?function(e){try{return rZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=XK(e),s=qK(void 0,u),l=qK(u,u),c=tZ(nZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=RK(o))in r?$K.f(r,a,AY(0,i)):r[a]=i;return c.length=f,c}(oZ)}}(e):rZ(zq(e))}},aZ=Tq((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),uZ=Object.isExtensible,sZ=Tq((function(){uZ(1)}))||aZ?function(e){return!!vK(e)&&(!aZ||"ArrayBuffer"!=jq(e))&&(!uZ||uZ(e))}:uZ,lZ=!Tq((function(){return Object.isExtensible(Object.preventExtensions({}))})),cZ=Eq((function(e){var t=$K.f,n=!1,r=Jq("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=XY.f,t=Fq([].splice),o={};o[r]=1,e(o).length&&(XY.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},lX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:iZ.f}))},fastKey:function(e,t){if(!vK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Kq(e,r)){if(!sZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Kq(e,r)){if(!sZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return lZ&&n&&sZ(e)&&!Kq(e,r)&&i(e),e}};QK[r]=!0})),fZ=Fq(Fq.bind),dZ=function(e,t){return PK(e),void 0===t?e:fZ?fZ(e,t):function(){return e.apply(t,arguments)}},pZ=gK("iterator"),hZ=Array.prototype,gZ=gK("iterator"),vZ=function(e){if(null!=e)return jK(e,gZ)||jK(e,"@@iterator")||mY[HX(e)]},yZ=Cq.TypeError,mZ=function(e,t,n){var r,o;bK(e);try{if(!(r=jK(e,"return"))){if("throw"===t)throw n;return n}r=AK(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return bK(r),n},bZ=Cq.TypeError,wZ=function(e,t){this.stopped=e,this.result=t},EZ=wZ.prototype,DZ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=dZ(t,f),v=function(e){return r&&mZ(r,"normal",e),new wZ(!0,e)},y=function(e){return d?(bK(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=vZ(e)))throw bZ(TK(e)+" is not iterable");if(void 0!==(c=o)&&(mY.Array===c||hZ[pZ]===c)){for(i=0,a=XK(e);a>i;i++)if((u=y(e[i]))&&OK(EZ,u))return u;return new wZ(!1)}r=function(e,t){var n=arguments.length<2?vZ(e):t;if(PK(n))return bK(AK(n,e));throw yZ(TK(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=AK(s,r)).done;){try{u=y(l.value)}catch(e){mZ(r,"throw",e)}if("object"==typeof u&&u&&OK(EZ,u))return u}return new wZ(!1)},SZ=Cq.TypeError,xZ=function(e,t){if(OK(t,e))return e;throw SZ("Incorrect invocation")},CZ=gK("iterator"),AZ=!1;try{var OZ=0,kZ={next:function(){return{done:!!OZ++}},return:function(){AZ=!0}};kZ[CZ]=function(){return this},Array.from(kZ,(function(){throw 2}))}catch(Rl){}var BZ=Array.isArray||function(e){return"Array"==jq(e)},FZ=function(){},TZ=[],_Z=tK("Reflect","construct"),PZ=/^\s*(?:class|function)\b/,jZ=Fq(PZ.exec),NZ=!PZ.exec(FZ),IZ=function(e){if(!Qq(e))return!1;try{return _Z(FZ,TZ,e),!0}catch(e){return!1}},LZ=!_Z||Tq((function(){var e;return IZ(IZ.call)||!IZ(Object)||!IZ((function(){e=!0}))||e}))?function(e){if(!Qq(e))return!1;switch(HX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return NZ||!!jZ(PZ,SY(e))}:IZ,RZ=gK("species"),MZ=Cq.Array,zZ=function(e,t){return new(function(e){var t;return BZ(e)&&(t=e.constructor,(LZ(t)&&(t===MZ||BZ(t.prototype))||vK(t)&&null===(t=t[RZ]))&&(t=void 0)),void 0===t?MZ:t}(e))(0===t?0:t)},$Z=Fq([].push),HZ=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,l,c,f){for(var d,p,h=Gq(s),g=Lq(h),v=dZ(l,c),y=XK(g),m=0,b=f||zZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:$Z(w,d)}else switch(e){case 4:return!1;case 7:$Z(w,d)}return i?-1:r||o?o:w}},VZ={forEach:HZ(0),map:HZ(1),filter:HZ(2),some:HZ(3),every:HZ(4),find:HZ(5),findIndex:HZ(6),filterReject:HZ(7)},UZ=cZ.getWeakData,WZ=RY.set,GZ=RY.getterFor,qZ=VZ.find,KZ=VZ.findIndex,YZ=Fq([].splice),XZ=0,ZZ=function(e){return e.frozen||(e.frozen=new JZ)},JZ=function(){this.entries=[]},QZ=function(e,t){return qZ(e.entries,(function(e){return e[0]===t}))};JZ.prototype={get:function(e){var t=QZ(this,e);if(t)return t[1]},has:function(e){return!!QZ(this,e)},set:function(e,t){var n=QZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=KZ(this.entries,(function(t){return t[0]===e}));return~t&&YZ(this.entries,t,1),!!~t}};var eJ,tJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){xZ(e,i),WZ(e,{type:t,id:XZ++,frozen:void 0}),null!=o&&DZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=GZ(t),u=function(e,t,n){var r=a(e),o=UZ(bK(t),!0);return!0===o?ZZ(r).set(t,n):o[r.id]=n,e};return eZ(i,{delete:function(e){var t=a(this);if(!vK(e))return!1;var n=UZ(e);return!0===n?ZZ(t).delete(e):n&&Kq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!vK(e))return!1;var n=UZ(e);return!0===n?ZZ(t).has(e):n&&Kq(n,t.id)}}),eZ(i,n?{get:function(e){var t=a(this);if(vK(e)){var n=UZ(e);return!0===n?ZZ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},nJ=RY.enforce,rJ=!Cq.ActiveXObject&&"ActiveXObject"in Cq,oJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Cq[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Fq(u[e]);KY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!vK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!vK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!vK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(uX(e,!Qq(a)||!(o||u.forEach&&!Tq((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),cZ.enable();else if(uX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Tq((function(){f.has(1)})),h=function(e,t){if(!AZ)return!1;var n=!1;try{var r={};r[CZ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&Tq((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){xZ(e,u);var n=function(e,t,n){var r,o;return AX&&Qq(r=t.constructor)&&r!==n&&vK(o=r.prototype)&&o!==n.prototype&&AX(e,o),e}(new a,e,s);return null!=t&&DZ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,lX({global:!0,forced:s!=a},l),EX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",oJ,tJ);if(CY&&rJ){eJ=tJ.getConstructor(oJ,"WeakMap",!0),cZ.enable();var aJ=iJ.prototype,uJ=Fq(aJ.delete),sJ=Fq(aJ.has),lJ=Fq(aJ.get),cJ=Fq(aJ.set);eZ(aJ,{delete:function(e){if(vK(e)&&!sZ(e)){var t=nJ(this);return t.frozen||(t.frozen=new eJ),uJ(this,e)||t.frozen.delete(e)}return uJ(this,e)},has:function(e){if(vK(e)&&!sZ(e)){var t=nJ(this);return t.frozen||(t.frozen=new eJ),sJ(this,e)||t.frozen.has(e)}return sJ(this,e)},get:function(e){if(vK(e)&&!sZ(e)){var t=nJ(this);return t.frozen||(t.frozen=new eJ),sJ(this,e)?lJ(this,e):t.frozen.get(e)}return lJ(this,e)},set:function(e,t){if(vK(e)&&!sZ(e)){var n=nJ(this);n.frozen||(n.frozen=new eJ),sJ(this,e)?cJ(this,e,t):n.frozen.set(e,t)}else cJ(this,e,t);return this}})}var fJ={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},dJ=SK("span").classList,pJ=dJ&&dJ.constructor&&dJ.constructor.prototype,hJ=pJ===Object.prototype?void 0:pJ,gJ=gK("iterator"),vJ=gK("toStringTag"),yJ=IX.values,mJ=function(e,t){if(e){if(e[gJ]!==yJ)try{OY(e,gJ,yJ)}catch(t){e[gJ]=yJ}if(e[vJ]||OY(e,vJ,t),fJ[t])for(var n in IX)if(e[n]!==IX[n])try{OY(e,n,IX[n])}catch(t){e[n]=IX[n]}}};for(var bJ in fJ)mJ(Cq[bJ]&&Cq[bJ].prototype,bJ);mJ(hJ,"DOMTokenList");var wJ=new WeakMap,EJ={type:"list-item",renderElem:function(e,t,n){wJ.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 l=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,l=t,c=AO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Nf.previous(c),d=Af.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}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 c=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];Xf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return mg("div",{style:u},mg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),mg("span",null,t))}},DJ=function(e,t){return DJ=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])},DJ(e,t)};function SJ(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}DJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function xJ(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 CJ(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 AJ(e){return Af.nodes(e,{at:e.selection||void 0,match:function(t){return 1===AO.findPath(e,t).length}})}var OJ=JK.includes;lX({target:"Array",proto:!0},{includes:function(e){return OJ(this,e,arguments.length>1?arguments[1]:void 0)}}),yY("includes");var kJ,BJ,FJ=function(){var e=bK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},TJ=Cq.RegExp,_J=Tq((function(){var e=TJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),PJ=_J||Tq((function(){return!TJ("a","y").sticky})),jJ={BROKEN_CARET:_J||Tq((function(){var e=TJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:PJ,UNSUPPORTED_Y:_J},NJ=Cq.RegExp,IJ=Tq((function(){var e=NJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),LJ=Cq.RegExp,RJ=Tq((function(){var e=LJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),MJ=RY.get,zJ=Uq("native-string-replace",String.prototype.replace),$J=RegExp.prototype.exec,HJ=$J,VJ=Fq("".charAt),UJ=Fq("".indexOf),WJ=Fq("".replace),GJ=Fq("".slice),qJ=(BJ=/b*/g,AK($J,kJ=/a/,"a"),AK($J,BJ,"a"),0!==kJ.lastIndex||0!==BJ.lastIndex),KJ=jJ.BROKEN_CARET,YJ=void 0!==/()??/.exec("")[1];(qJ||YJ||KJ||IJ||RJ)&&(HJ=function(e){var t,n,r,o,i,a,u,s=this,l=MJ(s),c=WX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=AK(HJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=KJ&&s.sticky,h=AK(FJ,s),g=s.source,v=0,y=c;if(p&&(h=WJ(h,"y",""),-1===UJ(h,"g")&&(h+="g"),y=GJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==VJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),YJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),qJ&&(r=s.lastIndex),o=AK($J,p?n:s,y),p?o?(o.input=GJ(o.input,v),o[0]=GJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),YJ&&o&&o.length>1&&AK(zJ,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=hY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var XJ=HJ;lX({target:"RegExp",proto:!0,forced:/./.exec!==XJ},{exec:XJ});var ZJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return AO.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||!!AO.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.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)?hd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):hd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),JJ='<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>',QJ='<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>',eQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=dP("listModule.unOrderedList"),t.iconSvg=JJ,t}return SJ(t,e),t}(ZJ),tQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=dP("listModule.orderedList"),t.iconSvg=QJ,t}return SJ(t,e),t}(ZJ),nQ={key:"bulletedList",factory:function(){return new eQ}},rQ={key:"numberedList",factory:function(){return new tQ}},oQ=[],iQ={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=wJ.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=AO.findPath(t,e);if(0===s[0])return u+1;var l=Nf.previous(s),c=Af.node(t,l);if(!c)return 0;var f=CJ(c,1)[0];if(AO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",oQ.push(i);var s=function(e){var t=wJ.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=AO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Nf.next(s),c=Af.node(t,l);if(!c)return 0;var f=CJ(c,1)[0];if(AO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+oQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},aQ=gK("species"),uQ=VZ.filter,sQ=sK>=51||!Tq((function(){var e=[];return(e.constructor={})[aQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));lX({target:"Array",proto:!0,forced:!sQ},{filter:function(e){return uQ(this,e,arguments.length>1?arguments[1]:void 0)}});var lQ=Function.prototype,cQ=lQ.apply,fQ=lQ.bind,dQ=lQ.call,pQ="object"==typeof Reflect&&Reflect.apply||(fQ?dQ.bind(cQ):function(){return dQ.apply(cQ,arguments)}),hQ=(gK("species"),RegExp.prototype),gQ=XX.charAt,vQ=function(e,t,n){return t+(n?gQ(e,t).length:1)},yQ=Math.floor,mQ=Fq("".charAt),bQ=Fq("".replace),wQ=Fq("".slice),EQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,DQ=/\$([$&'`]|\d{1,2})/g,SQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=DQ;return void 0!==o&&(o=Gq(o),s=EQ),bQ(i,s,(function(i,s){var l;switch(mQ(s,0)){case"$":return"$";case"&":return e;case"`":return wQ(t,0,n);case"'":return wQ(t,a);case"<":l=o[wQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=yQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?mQ(s,1):r[f-1]+mQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},xQ=Cq.TypeError,CQ=function(e,t){var n=e.exec;if(Qq(n)){var r=AK(n,e,t);return null!==r&&bK(r),r}if("RegExp"===jq(e))return AK(XJ,e,t);throw xQ("RegExp#exec called on incompatible receiver")},AQ=gK("replace"),OQ=Math.max,kQ=Math.min,BQ=Fq([].concat),FQ=Fq([].push),TQ=Fq("".indexOf),_Q=Fq("".slice),PQ="$0"==="a".replace(/./,"$0"),jQ=!!/./[AQ]&&""===/./[AQ]("a","$0");!function(e,t,n,r){var o=gK(e),i=!Tq((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Tq((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Fq(/./[o]),s=function(e,t,n){var r=jQ?"$":"$0";return[function(e,n){var r=Mq(this),o=null==e?void 0:jK(e,AQ);return o?AK(o,e,r,n):AK(t,WX(r),e,n)},function(e,o){var i=bK(this),a=WX(e);if("string"==typeof o&&-1===TQ(o,r)&&-1===TQ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Qq(o);s||(o=WX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=CQ(i,a);if(null===d)break;if(FQ(f,d),!l)break;""===WX(d[0])&&(i.lastIndex=vQ(a,YK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=WX((d=f[v])[0]),m=OQ(kQ(UK(d.index),a.length),0),b=[],w=1;w<d.length;w++)FQ(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=BQ([y],b,m,a);void 0!==E&&FQ(D,E);var S=WX(pQ(o,void 0,D))}else S=SQ(y,a,m,b,E,o);m>=g&&(h+=_Q(a,g,m)+S,g=m+y.length)}return h+_Q(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=Fq(e),s=t.exec;return s===XJ||s===hQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));KY(String.prototype,e,s[0]),KY(hQ,o,s[1])}}("replace",0,!!Tq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!PQ||jQ);var NQ=Cq.TypeError,IQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&dZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&BZ(s))l=XK(s),c=IQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw NQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},LQ=IQ;function RQ(e){return e.length?e[0].tagName.toLowerCase():""}lX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Gq(this),n=XK(t),r=zZ(t,0);return r.length=LQ(r,t,t,n,0,void 0===e?1:UK(e)),r}}),yY("flat"),lX({global:!0},{globalThis:Cq}),Xp&&(Bp.fn.append=Xp),Pp&&(Bp.fn.attr=Pp),Jp&&(Bp.fn.parent=Jp);var MQ={renderElems:[EJ],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(Vf.isExpanded(n))t(e);else{var r=AO.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?hd.setNodes(o,{level:a-1}):hd.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(Vf.isCollapsed(a)){var u=AO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void hd.setNodes(o,{level:l+1})}}if(Vf.isExpanded(a)){var c=0,f=!1;try{for(var d=xJ(AJ(o)),p=d.next();!p.done;p=d.next()){var h=CJ(p.value,1)[0];"list-item"===AO.getNodeType(h)?c++: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||c<=1)return void n();try{for(var g=xJ(AJ(o)),v=g.next();!v.done;v=g.next()){var y=CJ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,hd.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=CJ(e,2),n=t[0],i=t[1],a=AO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||hd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[nQ,rQ],elemsToHtml:[iQ],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=Bp(e);0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===RQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=RQ(n);"ul"===r||"ol"===r;)r=RQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},zQ=i((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[b]=S[u]=S[w]=S[s]=S[l]=S[c]=S[f]=S[d]=S[p]=S[g]=S[v]=S[y]=S[m]=!1;var x="object"==typeof o&&o&&o.Object===Object&&o,C="object"==typeof self&&self&&self.Object===Object&&self,A=x||C||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&x.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,$=R.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ce(A,"DataView"),te=Ce(A,"Map"),ne=Ce(A,"Promise"),re=Ce(A,"Set"),oe=Ce(A,"WeakMap"),ie=Ce(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return V.call(e)}(e)}function we(e){return Le(e)&&be(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=_e(e),m=_e(t),E=h?a:Oe(e),D=m?a:Oe(t),S=(E=E==i?p:E)==p,x=(D=D==i?p:D)==p,C=E==D;if(C&&Pe(e)){if(!Pe(t))return!1;h=!0,S=!1}if(C&&!S)return c||(c=new ye),h||Re(e)?De(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return Fe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=De(c(e),c(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,E,n,r,o,c);if(!(1&n)){var A=S&&$.call(e,"__wrapped__"),O=x&&$.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return c||(c=new ye),o(k,B,n,r,c)}}return!!C&&(c||(c=new ye),function(e,t,n,r,o,i){var a=1&n,u=Se(e),s=u.length;if(s!=Se(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:$.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,c))}(e,t,n,r,Ee,o))}function De(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Se(e){return function(e,t,n){var r=t(e);return _e(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,Me,Ae)}function xe(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 Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!H&&H in e}(e))&&(je(e)?U:E).test(Be(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:$.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return xe(this,e).get(e)},ge.prototype.has=function(e){return xe(this,e).has(e)},ge.prototype.set=function(e,t){var n=xe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Oe=be;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=f||ne&&Oe(ne.resolve())!=h||re&&Oe(new re)!=v||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&$.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!S[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}}));fP("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"}}),fP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var $Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function HQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var VQ,UQ,WQ=function(e){return e&&e.Math==Math&&e},GQ=WQ("object"==typeof globalThis&&globalThis)||WQ("object"==typeof window&&window)||WQ("object"==typeof self&&self)||WQ("object"==typeof $Q&&$Q)||function(){return this}()||Function("return this")(),qQ=function(e){try{return!!e()}catch(e){return!0}},KQ=!qQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),YQ=Function.prototype.call,XQ=YQ.bind?YQ.bind(YQ):function(){return YQ.apply(YQ,arguments)},ZQ={}.propertyIsEnumerable,JQ=Object.getOwnPropertyDescriptor,QQ={f:JQ&&!ZQ.call({1:2},1)?function(e){var t=JQ(this,e);return!!t&&t.enumerable}:ZQ},e0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},t0=Function.prototype,n0=t0.bind,r0=t0.call,o0=n0&&n0.bind(r0),i0=n0?function(e){return e&&o0(r0,e)}:function(e){return e&&function(){return r0.apply(e,arguments)}},a0=i0({}.toString),u0=i0("".slice),s0=function(e){return u0(a0(e),8,-1)},l0=GQ.Object,c0=i0("".split),f0=qQ((function(){return!l0("z").propertyIsEnumerable(0)}))?function(e){return"String"==s0(e)?c0(e,""):l0(e)}:l0,d0=GQ.TypeError,p0=function(e){if(null==e)throw d0("Can't call method on "+e);return e},h0=function(e){return f0(p0(e))},g0=function(e){return"function"==typeof e},v0=function(e){return"object"==typeof e?null!==e:g0(e)},y0=function(e){return g0(e)?e:void 0},m0=function(e,t){return arguments.length<2?y0(GQ[e]):GQ[e]&&GQ[e][t]},b0=i0({}.isPrototypeOf),w0=m0("navigator","userAgent")||"",E0=GQ.process,D0=GQ.Deno,S0=E0&&E0.versions||D0&&D0.version,x0=S0&&S0.v8;x0&&(UQ=(VQ=x0.split("."))[0]>0&&VQ[0]<4?1:+(VQ[0]+VQ[1])),!UQ&&w0&&(!(VQ=w0.match(/Edge\/(\d+)/))||VQ[1]>=74)&&(VQ=w0.match(/Chrome\/(\d+)/))&&(UQ=+VQ[1]);var C0=UQ,A0=!!Object.getOwnPropertySymbols&&!qQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&C0&&C0<41})),O0=A0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,k0=GQ.Object,B0=O0?function(e){return"symbol"==typeof e}:function(e){var t=m0("Symbol");return g0(t)&&b0(t.prototype,k0(e))},F0=GQ.String,T0=function(e){try{return F0(e)}catch(e){return"Object"}},_0=GQ.TypeError,P0=function(e){if(g0(e))return e;throw _0(T0(e)+" is not a function")},j0=function(e,t){var n=e[t];return null==n?void 0:P0(n)},N0=GQ.TypeError,I0=Object.defineProperty,L0=function(e,t){try{I0(GQ,e,{value:t,configurable:!0,writable:!0})}catch(n){GQ[e]=t}return t},R0=GQ["__core-js_shared__"]||L0("__core-js_shared__",{}),M0=HQ((function(e){(e.exports=function(e,t){return R0[e]||(R0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),z0=GQ.Object,$0=function(e){return z0(p0(e))},H0=i0({}.hasOwnProperty),V0=Object.hasOwn||function(e,t){return H0($0(e),t)},U0=0,W0=Math.random(),G0=i0(1..toString),q0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+G0(++U0+W0,36)},K0=M0("wks"),Y0=GQ.Symbol,X0=Y0&&Y0.for,Z0=O0?Y0:Y0&&Y0.withoutSetter||q0,J0=function(e){if(!V0(K0,e)||!A0&&"string"!=typeof K0[e]){var t="Symbol."+e;A0&&V0(Y0,e)?K0[e]=Y0[e]:K0[e]=O0&&X0?X0(t):Z0(t)}return K0[e]},Q0=GQ.TypeError,e1=J0("toPrimitive"),t1=function(e){var t=function(e,t){if(!v0(e)||B0(e))return e;var n,r=j0(e,e1);if(r){if(void 0===t&&(t="default"),n=XQ(r,e,t),!v0(n)||B0(n))return n;throw Q0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&g0(n=e.toString)&&!v0(r=XQ(n,e)))return r;if(g0(n=e.valueOf)&&!v0(r=XQ(n,e)))return r;if("string"!==t&&g0(n=e.toString)&&!v0(r=XQ(n,e)))return r;throw N0("Can't convert object to primitive value")}(e,t)}(e,"string");return B0(t)?t:t+""},n1=GQ.document,r1=v0(n1)&&v0(n1.createElement),o1=function(e){return r1?n1.createElement(e):{}},i1=!KQ&&!qQ((function(){return 7!=Object.defineProperty(o1("div"),"a",{get:function(){return 7}}).a})),a1=Object.getOwnPropertyDescriptor,u1={f:KQ?a1:function(e,t){if(e=h0(e),t=t1(t),i1)try{return a1(e,t)}catch(e){}if(V0(e,t))return e0(!XQ(QQ.f,e,t),e[t])}},s1=GQ.String,l1=GQ.TypeError,c1=function(e){if(v0(e))return e;throw l1(s1(e)+" is not an object")},f1=GQ.TypeError,d1=Object.defineProperty,p1={f:KQ?d1:function(e,t,n){if(c1(e),t=t1(t),c1(n),i1)try{return d1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw f1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},h1=KQ?function(e,t,n){return p1.f(e,t,e0(1,n))}:function(e,t,n){return e[t]=n,e},g1=i0(Function.toString);g0(R0.inspectSource)||(R0.inspectSource=function(e){return g1(e)});var v1,y1,m1,b1=R0.inspectSource,w1=GQ.WeakMap,E1=g0(w1)&&/native code/.test(b1(w1)),D1=M0("keys"),S1=function(e){return D1[e]||(D1[e]=q0(e))},x1={},C1=GQ.TypeError,A1=GQ.WeakMap;if(E1||R0.state){var O1=R0.state||(R0.state=new A1),k1=i0(O1.get),B1=i0(O1.has),F1=i0(O1.set);v1=function(e,t){if(B1(O1,e))throw new C1("Object already initialized");return t.facade=e,F1(O1,e,t),t},y1=function(e){return k1(O1,e)||{}},m1=function(e){return B1(O1,e)}}else{var T1=S1("state");x1[T1]=!0,v1=function(e,t){if(V0(e,T1))throw new C1("Object already initialized");return t.facade=e,h1(e,T1,t),t},y1=function(e){return V0(e,T1)?e[T1]:{}},m1=function(e){return V0(e,T1)}}var _1={set:v1,get:y1,has:m1,enforce:function(e){return m1(e)?y1(e):v1(e,{})},getterFor:function(e){return function(t){var n;if(!v0(t)||(n=y1(t)).type!==e)throw C1("Incompatible receiver, "+e+" required");return n}}},P1=Function.prototype,j1=KQ&&Object.getOwnPropertyDescriptor,N1=V0(P1,"name"),I1={EXISTS:N1,PROPER:N1&&"something"===function(){}.name,CONFIGURABLE:N1&&(!KQ||KQ&&j1(P1,"name").configurable)},L1=HQ((function(e){var t=I1.CONFIGURABLE,n=_1.get,r=_1.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;g0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!V0(i,"name")||t&&i.name!==f)&&h1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==GQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:h1(e,n,i)):l?e[n]=i:L0(n,i)})(Function.prototype,"toString",(function(){return g0(this)&&n(this).source||b1(this)}))})),R1=Math.ceil,M1=Math.floor,z1=function(e){var t=+e;return t!=t||0===t?0:(t>0?M1:R1)(t)},$1=Math.max,H1=Math.min,V1=function(e,t){var n=z1(e);return n<0?$1(n+t,0):H1(n,t)},U1=Math.min,W1=function(e){return e>0?U1(z1(e),9007199254740991):0},G1=function(e){return W1(e.length)},q1=function(e){return function(t,n,r){var o,i=h0(t),a=G1(i),u=V1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},K1=(q1(!0),q1(!1)),Y1=i0([].push),X1=function(e,t){var n,r=h0(e),o=0,i=[];for(n in r)!V0(x1,n)&&V0(r,n)&&Y1(i,n);for(;t.length>o;)V0(r,n=t[o++])&&(~K1(i,n)||Y1(i,n));return i},Z1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J1=Z1.concat("length","prototype"),Q1={f:Object.getOwnPropertyNames||function(e){return X1(e,J1)}},e2={f:Object.getOwnPropertySymbols},t2=i0([].concat),n2=m0("Reflect","ownKeys")||function(e){var t=Q1.f(c1(e)),n=e2.f;return n?t2(t,n(e)):t},r2=function(e,t){for(var n=n2(t),r=p1.f,o=u1.f,i=0;i<n.length;i++){var a=n[i];V0(e,a)||r(e,a,o(t,a))}},o2=/#|\.prototype\./,i2=function(e,t){var n=u2[a2(e)];return n==l2||n!=s2&&(g0(t)?qQ(t):!!t)},a2=i2.normalize=function(e){return String(e).replace(o2,".").toLowerCase()},u2=i2.data={},s2=i2.NATIVE="N",l2=i2.POLYFILL="P",c2=i2,f2=u1.f,d2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?GQ:l?GQ[u]||L0(u,{}):(GQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=f2(n,r))&&a.value:n[r],!c2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;r2(i,o)}(e.sham||o&&o.sham)&&h1(i,"sham",!0),L1(n,r,i,e)}},p2={};p2[J0("toStringTag")]="z";var h2="[object z]"===String(p2),g2=J0("toStringTag"),v2=GQ.Object,y2="Arguments"==s0(function(){return arguments}()),m2=h2?s0: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=v2(e),g2))?n:y2?s0(t):"Object"==(r=s0(t))&&g0(t.callee)?"Arguments":r},b2=GQ.String,w2=function(e){if("Symbol"===m2(e))throw TypeError("Cannot convert a Symbol value to a string");return b2(e)},E2=/"/g,D2=i0("".replace);d2({target:"String",proto:!0,forced:qQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=w2(p0(this)),r="<a",(r+=' name="'+D2(w2(t),E2,""")+'"')+">"+n+"</a>";var t,n,r}});var S2,x2=function(){var e=c1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},C2=GQ.RegExp,A2=qQ((function(){var e=C2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),O2=A2||qQ((function(){return!C2("a","y").sticky})),k2={BROKEN_CARET:A2||qQ((function(){var e=C2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:O2,UNSUPPORTED_Y:A2},B2=Object.keys||function(e){return X1(e,Z1)},F2=KQ?Object.defineProperties:function(e,t){c1(e);for(var n,r=h0(t),o=B2(t),i=o.length,a=0;i>a;)p1.f(e,n=o[a++],r[n]);return e},T2=m0("document","documentElement"),_2=S1("IE_PROTO"),P2=function(){},j2=function(e){return"<script>"+e+"<\/script>"},N2=function(e){e.write(j2("")),e.close();var t=e.parentWindow.Object;return e=null,t},I2=function(){try{S2=new ActiveXObject("htmlfile")}catch(e){}var e,t;I2="undefined"!=typeof document?document.domain&&S2?N2(S2):((t=o1("iframe")).style.display="none",T2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(j2("document.F=Object")),e.close(),e.F):N2(S2);for(var n=Z1.length;n--;)delete I2.prototype[Z1[n]];return I2()};x1[_2]=!0;var L2,R2,M2=Object.create||function(e,t){var n;return null!==e?(P2.prototype=c1(e),n=new P2,P2.prototype=null,n[_2]=e):n=I2(),void 0===t?n:F2(n,t)},z2=GQ.RegExp,$2=qQ((function(){var e=z2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),H2=GQ.RegExp,V2=qQ((function(){var e=H2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),U2=_1.get,W2=M0("native-string-replace",String.prototype.replace),G2=RegExp.prototype.exec,q2=G2,K2=i0("".charAt),Y2=i0("".indexOf),X2=i0("".replace),Z2=i0("".slice),J2=(R2=/b*/g,XQ(G2,L2=/a/,"a"),XQ(G2,R2,"a"),0!==L2.lastIndex||0!==R2.lastIndex),Q2=k2.BROKEN_CARET,e4=void 0!==/()??/.exec("")[1];(J2||e4||Q2||$2||V2)&&(q2=function(e){var t,n,r,o,i,a,u,s=this,l=U2(s),c=w2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=XQ(q2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Q2&&s.sticky,h=XQ(x2,s),g=s.source,v=0,y=c;if(p&&(h=X2(h,"y",""),-1===Y2(h,"g")&&(h+="g"),y=Z2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==K2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),e4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),J2&&(r=s.lastIndex),o=XQ(G2,p?n:s,y),p?o?(o.input=Z2(o.input,v),o[0]=Z2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:J2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),e4&&o&&o.length>1&&XQ(W2,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=M2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var t4=q2;d2({target:"RegExp",proto:!0,forced:/./.exec!==t4},{exec:t4});var n4=Array.isArray||function(e){return"Array"==s0(e)},r4=function(){},o4=[],i4=m0("Reflect","construct"),a4=/^\s*(?:class|function)\b/,u4=i0(a4.exec),s4=!a4.exec(r4),l4=function(e){if(!g0(e))return!1;try{return i4(r4,o4,e),!0}catch(e){return!1}},c4=!i4||qQ((function(){var e;return l4(l4.call)||!l4(Object)||!l4((function(){e=!0}))||e}))?function(e){if(!g0(e))return!1;switch(m2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s4||!!u4(a4,b1(e))}:l4,f4=function(e,t,n){var r=t1(t);r in e?p1.f(e,r,e0(0,n)):e[r]=n},d4=J0("species"),p4=function(e){return C0>=51||!qQ((function(){var t=[];return(t.constructor={})[d4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},h4=i0([].slice),g4=p4("slice"),v4=J0("species"),y4=GQ.Array,m4=Math.max;function b4(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 w4(e){var t=e.selection;if(null==t)return!1;var n=b4(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=b4(n,2)[1],o=Af.start(e,r);if(Mf.equals(t.anchor,o))return!0}return!1}function E4(e,t){var n,r,o=Af.nodes(e,{at:t,match:function(e){return"table"===AO.getNodeType(e)}}),i=!1;try{for(var a=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.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}d2({target:"Array",proto:!0,forced:!g4},{slice:function(e,t){var n,r,o,i=h0(this),a=G1(i),u=V1(e,a),s=V1(void 0===t?a:t,a);if(n4(i)&&(n=i.constructor,(c4(n)&&(n===y4||n4(n.prototype))||v0(n)&&null===(n=n[v4]))&&(n=void 0),n===y4||void 0===n))return h4(i,u,s);for(r=new(void 0===n?y4:n)(m4(s-u,0)),o=0;u<s;u++,o++)u in i&&f4(r,o,i[u]);return r.length=o,r}});var D4=i0(i0.bind),S4=J0("species"),x4=GQ.Array,C4=function(e,t){return new(function(e){var t;return n4(e)&&(t=e.constructor,(c4(t)&&(t===x4||n4(t.prototype))||v0(t)&&null===(t=t[S4]))&&(t=void 0)),void 0===t?x4:t}(e))(0===t?0:t)},A4=i0([].push),O4=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,l,c,f){for(var d,p,h=$0(s),g=f0(h),v=function(e,t){return P0(e),void 0===t?e:D4?D4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=G1(g),m=0,b=f||C4,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:A4(w,d)}else switch(e){case 4:return!1;case 7:A4(w,d)}return i?-1:r||o?o:w}},k4={forEach:O4(0),map:O4(1),filter:O4(2),some:O4(3),every:O4(4),find:O4(5),findIndex:O4(6),filterReject:O4(7)},B4=k4.map;d2({target:"Array",proto:!0,forced:!p4("map")},{map:function(e){return B4(this,e,arguments.length>1?arguments[1]:void 0)}});var F4=h2?{}.toString:function(){return"[object "+m2(this)+"]"};function T4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function _4(e){return T4(e).every((function(e){return!!e.isHeader}))}h2||L1(Object.prototype,"toString",F4,{unsafe:!0});var P4=I1.PROPER,j4=RegExp.prototype,N4=j4.toString,I4=i0(x2),L4=qQ((function(){return"/a/b"!=N4.call({source:"a",flags:"b"})})),R4=P4&&"toString"!=N4.name;(L4||R4)&&L1(RegExp.prototype,"toString",(function(){var e=c1(this),t=w2(e.source),n=e.flags;return"/"+t+"/"+w2(void 0===n&&b0(j4,e)&&!("flags"in j4)?I4(e):n)}),{unsafe:!0});var M4=J0("unscopables"),z4=Array.prototype;null==z4[M4]&&p1.f(z4,M4,{configurable:!0,value:M2(null)});var $4=k4.find,H4=!0;"find"in[]&&Array(1).find((function(){H4=!1})),d2({target:"Array",proto:!0,forced:H4},{find:function(e){return $4(this,e,arguments.length>1?arguments[1]:void 0)}}),z4[M4].find=!0;var V4=Function.prototype,U4=V4.apply,W4=V4.bind,G4=V4.call,q4="object"==typeof Reflect&&Reflect.apply||(W4?G4.bind(U4):function(){return G4.apply(U4,arguments)}),K4=J0("species"),Y4=RegExp.prototype,X4=function(e,t,n,r){var o=J0(e),i=!qQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!qQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[K4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=i0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=i0(e),s=t.exec;return s===t4||s===Y4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));L1(String.prototype,e,s[0]),L1(Y4,o,s[1])}r&&h1(Y4[o],"sham",!0)},Z4=J0("match"),J4=GQ.TypeError,Q4=J0("species"),e6=i0("".charAt),t6=i0("".charCodeAt),n6=i0("".slice),r6=function(e){return function(t,n){var r,o,i=w2(p0(t)),a=z1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=t6(i,a))<55296||r>56319||a+1===u||(o=t6(i,a+1))<56320||o>57343?e?e6(i,a):r:e?n6(i,a,a+2):o-56320+(r-55296<<10)+65536}},o6=(r6(!1),r6(!0)),i6=function(e,t,n){return t+(n?o6(e,t).length:1)},a6=GQ.Array,u6=Math.max,s6=function(e,t,n){for(var r=G1(e),o=V1(t,r),i=V1(void 0===n?r:n,r),a=a6(u6(i-o,0)),u=0;o<i;o++,u++)f4(a,u,e[o]);return a.length=u,a},l6=GQ.TypeError,c6=function(e,t){var n=e.exec;if(g0(n)){var r=XQ(n,e,t);return null!==r&&c1(r),r}if("RegExp"===s0(e))return XQ(t4,e,t);throw l6("RegExp#exec called on incompatible receiver")},f6=k2.UNSUPPORTED_Y,d6=Math.min,p6=[].push,h6=i0(/./.exec),g6=i0(p6),v6=i0("".slice);X4("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=w2(p0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!v0(r=e)||!(void 0!==(o=r[Z4])?o:"RegExp"==s0(r)))return XQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=XQ(t4,p,i))&&!((s=p.lastIndex)>d&&(g6(c,v6(i,d,u.index)),u.length>1&&u.index<i.length&&q4(p6,c,s6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&h6(p,"")||g6(c,""):g6(c,v6(i,d)),c.length>a?s6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:XQ(t,this,e,n)}:t,[function(t,n){var o=p0(this),i=null==t?void 0:j0(t,e);return i?XQ(i,t,o,n):XQ(r,w2(o),t,n)},function(e,o){var i=c1(this),a=w2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=c1(e).constructor;return void 0===r||null==(n=c1(r)[Q4])?t:function(e){if(c4(e))return e;throw J4(T0(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(f6?"g":"y"),f=new s(f6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===c6(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=f6?0:h;var v,y=c6(f,f6?v6(a,h):a);if(null===y||(v=d6(W1(f.lastIndex+(f6?h:0)),a.length))===p)h=i6(a,h,l);else{if(g6(g,v6(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g6(g,y[m]),g.length===d)return g;h=p=v}}return g6(g,v6(a,p)),g}]}),!!qQ((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]})),f6);var y6="\t\n\v\f\r \u2028\u2029\ufeff",m6=i0("".replace),b6="["+y6+"]",w6=RegExp("^"+b6+b6+"*"),E6=RegExp(b6+b6+"*$"),D6=function(e){return function(t){var n=w2(p0(t));return 1&e&&(n=m6(n,w6,"")),2&e&&(n=m6(n,E6,"")),n}},S6={start:D6(1),end:D6(2),trim:D6(3)},x6=I1.PROPER,C6=S6.trim;function A6(e){return e.length?e[0].tagName.toLowerCase():""}d2({target:"String",proto:!0,forced:function(e){return qQ((function(){return!!y6[e]()||"
"!=="
"[e]()||x6&&y6[e].name!==e}))}("trim")},{trim:function(){return C6(this)}}),d2({global:!0},{globalThis:GQ}),Xp&&(Bp.fn.append=Xp),Lp&&(Bp.fn.on=Lp),uh&&(Bp.fn.focus=uh),Pp&&(Bp.fn.attr=Pp),Ip&&(Bp.fn.val=Ip),qp&&(Bp.fn.html=qp),Np&&(Bp.fn.dataset=Np),Fp&&(Bp.fn.addClass=Fp),Tp&&(Bp.fn.removeClass=Tp),th&&(Bp.fn.children=th),Wp&&(Bp.fn.each=Wp),eh&&(Bp.fn.find=eh);var O6=!1,k6=0,B6=0,F6=null,T6=null,_6=Bp("body");function P6(e){O6=!1,T6=null,F6=null,_6.off("mousemove",j6),_6.off("mouseup",P6)}_6.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),O6=!0;var n=e.clientX;k6=n;var r=t.getBoundingClientRect().width;B6=r,_6.on("mousemove",j6),_6.on("mouseup",P6)}}));var j6=Mh((function(e){if(O6&&null!=T6&&null!=F6){e.preventDefault();var t=e.clientX,n=B6+(t-k6);(n=Math.floor(100*n)/100)<30&&(n=30),hd.setNodes(T6,{width:n.toString()},{at:F6})}}),100),N6={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(Vf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=AO.findPath(e,t),a=Af.start(e,i),u=Af.end(e,i),s=Mf.compare(r,u)<=0&&Mf.compare(r,a)>=0,l=Mf.compare(o,u)<=0&&Mf.compare(o,a)>=0;return!!(s&&l&&Nf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=mg("div",{className:"table-container","data-selected":AO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=AO.findPath(n,e),o=Af.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},mg("table",{width:i,contentEditable:r},mg("colgroup",null,T4(e).map((function(e){var t=e.width;return mg("col",{width:void 0===t?"auto":t})}))),mg("tbody",null,t)));return a}},I6={type:"table-row",renderElem:function(e,t,n){return mg("tr",null,t)}},L6={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=AO.getParentNode(e,t);if(null==n)return!1;var r=AO.getParentNode(e,n);return null!=r&&T4(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,l=o.isHeader,c=void 0!==l&&l;if(!r)return mg("td",{colSpan:a,rowSpan:s},t);var f=mg(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Mh((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;O6||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",T6=n,F6=AO.findPath(n,e)):O6||(r.style.cursor="auto",T6=null,F6=null))}}),100)}},t);return f}},R6={selector:"table",preParseHtml:function(e){var t=Bp(e);if("table"!==A6(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]}},M6=k4.filter;d2({target:"Array",proto:!0,forced:!p4("filter")},{filter:function(e){return M6(this,e,arguments.length>1?arguments[1]:void 0)}});var z6=Math.floor,$6=i0("".charAt),H6=i0("".replace),V6=i0("".slice),U6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W6=/\$([$&'`]|\d{1,2})/g,G6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=W6;return void 0!==o&&(o=$0(o),s=U6),H6(i,s,(function(i,s){var l;switch($6(s,0)){case"$":return"$";case"&":return e;case"`":return V6(t,0,n);case"'":return V6(t,a);case"<":l=o[V6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=z6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?$6(s,1):r[f-1]+$6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},q6=J0("replace"),K6=Math.max,Y6=Math.min,X6=i0([].concat),Z6=i0([].push),J6=i0("".indexOf),Q6=i0("".slice),e3="$0"==="a".replace(/./,"$0"),t3=!!/./[q6]&&""===/./[q6]("a","$0");X4("replace",(function(e,t,n){var r=t3?"$":"$0";return[function(e,n){var r=p0(this),o=null==e?void 0:j0(e,q6);return o?XQ(o,e,r,n):XQ(t,w2(r),e,n)},function(e,o){var i=c1(this),a=w2(e);if("string"==typeof o&&-1===J6(o,r)&&-1===J6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=g0(o);s||(o=w2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=c6(i,a);if(null===d)break;if(Z6(f,d),!l)break;""===w2(d[0])&&(i.lastIndex=i6(a,W1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=w2((d=f[v])[0]),m=K6(Y6(z1(d.index),a.length),0),b=[],w=1;w<d.length;w++)Z6(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=X6([y],b,m,a);void 0!==E&&Z6(D,E);var S=w2(q4(o,void 0,D))}else S=G6(y,a,m,b,E,o);m>=g&&(h+=Q6(a,g,m)+S,g=m+y.length)}return h+Q6(a,g)}]}),!!qQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!e3||t3);var n3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===A6(r),colSpan:o,rowSpan:i,width:a,children:t}}},r3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===AO.getNodeType(e)}))}}},o3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e),o="auto";return"100%"===function(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(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===AO.getNodeType(e)}))}}},i3=function(){function e(){this.title=dP("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||!Vf.isCollapsed(t)||!!AO.getSelectedElems(e).some((function(t){var n=AO.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=Bp('<div class="w-e-panel-content-table"></div>'),r=Bp("<span>0 × 0</span>"),o=Bp("<table></table>"),i=0;i<10;i++){for(var a=Bp("<tr></tr>"),u=0;u<10;u++){var s=Bp("<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=Bp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Bp(e).children().each((function(e){var t=Bp(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=Bp(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)){AO.isSelectedEmptyParagraph(e)&&hd.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);hd.insertNodes(e,i,{mode:"highest"})}},e}(),a3=function(){function e(){this.title=dP("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==AO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||hd.removeNodes(e,{mode:"highest"})},e}(),u3=function(){function e(){this.title=dP("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||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=b4(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"table-cell")},universal:!0}),1),r=b4(n[0],2),o=r[0],i=r[1],a=AO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Nf.parent(i),f=Nf.next(c);hd.insertNodes(e,s,{at:f})}}},e}(),s3=function(){function e(){this.title=dP("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||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=b4(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"table-row")},universal:!0}),1),r=b4(n[0],2),o=r[0],i=r[1],a=AO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?hd.removeNodes(e,{mode:"highest"}):hd.removeNodes(e,{at:i})}},e}(),l3={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},c3=o1("span").classList,f3=c3&&c3.constructor&&c3.constructor.prototype,d3=f3===Object.prototype?void 0:f3,p3=k4.forEach,h3=function(e,t){var n=[].forEach;return!!n&&qQ((function(){n.call(null,(function(){throw 1}),1)}))}(),g3=h3?[].forEach:function(e){return p3(this,e,arguments.length>1?arguments[1]:void 0)},v3=function(e){if(e&&e.forEach!==g3)try{h1(e,"forEach",g3)}catch(t){e.forEach=g3}};for(var y3 in l3)l3[y3]&&v3(GQ[y3]&&GQ[y3].prototype);v3(d3);var m3=function(){function e(){this.title=dP("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||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=b4(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"table-cell")},universal:!0}),1),r=b4(n[0],2),o=r[0],i=r[1],a=AO.getParentNode(e,o);if(null!=a){var u=AO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){wf.isElement(t)&&(t.children||[]).forEach((function(t){var r=AO.findPath(e,t);if(r.length===i.length&&zQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&_4(u)&&(o.isHeader=!0),hd.insertNodes(e,o,{at:r})}}))}))}}},e}(),b3=function(){function e(){this.title=dP("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||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=b4(Af.nodes(e,{match:function(e){return AO.checkNodeType(e,"table-cell")},universal:!0}),1),r=b4(n[0],2),o=r[0],i=r[1],a=AO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)hd.removeNodes(e,{mode:"highest"});else{var s=AO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){wf.isElement(t)&&(t.children||[]).forEach((function(t){var n=AO.findPath(e,t);n.length===i.length&&zQ(n.slice(-1),i.slice(-1))&&hd.removeNodes(e,{at:n})}))}))}}},e}(),w3=function(){function e(){this.title=dP("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=AO.getSelectedNodeByType(e,"table");return null!=t&&_4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=AO.getSelectedNodeByType(e,"table");null!=r&&T4(r).forEach((function(t){return hd.setNodes(e,{isHeader:n},{at:AO.findPath(e,t)})}))}},e}(),E3=function(){function e(){this.title=dP("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=AO.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||!Vf.isCollapsed(t)||null==AO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};hd.setNodes(e,n,{mode:"highest"})}},e}(),D3={renderElems:[N6,I6,L6],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><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,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[R6],parseElemsHtml:[n3,r3,o3],menus:[{key:"insertTable",factory:function(){return new i3}},{key:"deleteTable",factory:function(){return new a3}},{key:"insertTableRow",factory:function(){return new u3}},{key:"deleteTableRow",factory:function(){return new s3}},{key:"insertTableCol",factory:function(){return new m3}},{key:"deleteTableCol",factory:function(){return new b3}},{key:"tableHeader",factory:function(){return new w3}},{key:"tableFullWidth",factory:function(){return new E3}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==AO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!w4(s)){var t=s.selection;if(t){var r=Af.before(s,t);if(r){var o=E4(s,r),i=E4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(AO.getSelectedNodeByType(s,"table")){var n=Af.above(e);AO.checkNodeType(n[0],"table-cell")&&hd.select(e,n[1]);var r=Af.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Af.above(e,{at:r[1]}))&&void 0!==t?t:r),hd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(AO.checkNodeType(o[i-1],"table")){var u=AO.genEmptyParagraph();hd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){w4(s)||r(e)},s.normalizeNode=function(e){var t=b4(e,2),n=t[0],r=t[1];if("table"!==AO.getNodeType(n))return o([n,r]);if(AO.isLastNode(s,n)){var i=AO.genEmptyParagraph();hd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=AO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Af.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=AO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Nf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Tf.string(t).length){var o=AO.findPath(s,t),i={anchor:Af.start(s,o),focus:Af.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};fP("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"}}),fP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var S3=function(){return S3=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},S3.apply(this,arguments)};function x3(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 C3(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 A3(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 O3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function k3(e){var t={exports:{}};return e(t,t.exports),t.exports}var B3,F3,T3=function(e){return e&&e.Math==Math&&e},_3=T3("object"==typeof globalThis&&globalThis)||T3("object"==typeof window&&window)||T3("object"==typeof self&&self)||T3("object"==typeof O3&&O3)||function(){return this}()||Function("return this")(),P3=function(e){try{return!!e()}catch(e){return!0}},j3=!P3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N3=Function.prototype.call,I3=N3.bind?N3.bind(N3):function(){return N3.apply(N3,arguments)},L3={}.propertyIsEnumerable,R3=Object.getOwnPropertyDescriptor,M3={f:R3&&!L3.call({1:2},1)?function(e){var t=R3(this,e);return!!t&&t.enumerable}:L3},z3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$3=Function.prototype,H3=$3.bind,V3=$3.call,U3=H3&&H3.bind(V3),W3=H3?function(e){return e&&U3(V3,e)}:function(e){return e&&function(){return V3.apply(e,arguments)}},G3=W3({}.toString),q3=W3("".slice),K3=function(e){return q3(G3(e),8,-1)},Y3=_3.Object,X3=W3("".split),Z3=P3((function(){return!Y3("z").propertyIsEnumerable(0)}))?function(e){return"String"==K3(e)?X3(e,""):Y3(e)}:Y3,J3=_3.TypeError,Q3=function(e){if(null==e)throw J3("Can't call method on "+e);return e},e5=function(e){return Z3(Q3(e))},t5=function(e){return"function"==typeof e},n5=function(e){return"object"==typeof e?null!==e:t5(e)},r5=function(e){return t5(e)?e:void 0},o5=function(e,t){return arguments.length<2?r5(_3[e]):_3[e]&&_3[e][t]},i5=W3({}.isPrototypeOf),a5=o5("navigator","userAgent")||"",u5=_3.process,s5=_3.Deno,l5=u5&&u5.versions||s5&&s5.version,c5=l5&&l5.v8;c5&&(F3=(B3=c5.split("."))[0]>0&&B3[0]<4?1:+(B3[0]+B3[1])),!F3&&a5&&(!(B3=a5.match(/Edge\/(\d+)/))||B3[1]>=74)&&(B3=a5.match(/Chrome\/(\d+)/))&&(F3=+B3[1]);var f5=F3,d5=!!Object.getOwnPropertySymbols&&!P3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&f5&&f5<41})),p5=d5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,h5=_3.Object,g5=p5?function(e){return"symbol"==typeof e}:function(e){var t=o5("Symbol");return t5(t)&&i5(t.prototype,h5(e))},v5=_3.String,y5=function(e){try{return v5(e)}catch(e){return"Object"}},m5=_3.TypeError,b5=function(e){if(t5(e))return e;throw m5(y5(e)+" is not a function")},w5=function(e,t){var n=e[t];return null==n?void 0:b5(n)},E5=_3.TypeError,D5=Object.defineProperty,S5=function(e,t){try{D5(_3,e,{value:t,configurable:!0,writable:!0})}catch(n){_3[e]=t}return t},x5=_3["__core-js_shared__"]||S5("__core-js_shared__",{}),C5=k3((function(e){(e.exports=function(e,t){return x5[e]||(x5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),A5=_3.Object,O5=function(e){return A5(Q3(e))},k5=W3({}.hasOwnProperty),B5=Object.hasOwn||function(e,t){return k5(O5(e),t)},F5=0,T5=Math.random(),_5=W3(1..toString),P5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_5(++F5+T5,36)},j5=C5("wks"),N5=_3.Symbol,I5=N5&&N5.for,L5=p5?N5:N5&&N5.withoutSetter||P5,R5=function(e){if(!B5(j5,e)||!d5&&"string"!=typeof j5[e]){var t="Symbol."+e;d5&&B5(N5,e)?j5[e]=N5[e]:j5[e]=p5&&I5?I5(t):L5(t)}return j5[e]},M5=_3.TypeError,z5=R5("toPrimitive"),$5=function(e){var t=function(e,t){if(!n5(e)||g5(e))return e;var n,r=w5(e,z5);if(r){if(void 0===t&&(t="default"),n=I3(r,e,t),!n5(n)||g5(n))return n;throw M5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&t5(n=e.toString)&&!n5(r=I3(n,e)))return r;if(t5(n=e.valueOf)&&!n5(r=I3(n,e)))return r;if("string"!==t&&t5(n=e.toString)&&!n5(r=I3(n,e)))return r;throw E5("Can't convert object to primitive value")}(e,t)}(e,"string");return g5(t)?t:t+""},H5=_3.document,V5=n5(H5)&&n5(H5.createElement),U5=function(e){return V5?H5.createElement(e):{}},W5=!j3&&!P3((function(){return 7!=Object.defineProperty(U5("div"),"a",{get:function(){return 7}}).a})),G5=Object.getOwnPropertyDescriptor,q5={f:j3?G5:function(e,t){if(e=e5(e),t=$5(t),W5)try{return G5(e,t)}catch(e){}if(B5(e,t))return z3(!I3(M3.f,e,t),e[t])}},K5=_3.String,Y5=_3.TypeError,X5=function(e){if(n5(e))return e;throw Y5(K5(e)+" is not an object")},Z5=_3.TypeError,J5=Object.defineProperty,Q5={f:j3?J5:function(e,t,n){if(X5(e),t=$5(t),X5(n),W5)try{return J5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Z5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},e8=j3?function(e,t,n){return Q5.f(e,t,z3(1,n))}:function(e,t,n){return e[t]=n,e},t8=W3(Function.toString);t5(x5.inspectSource)||(x5.inspectSource=function(e){return t8(e)});var n8,r8,o8,i8=x5.inspectSource,a8=_3.WeakMap,u8=t5(a8)&&/native code/.test(i8(a8)),s8=C5("keys"),l8=function(e){return s8[e]||(s8[e]=P5(e))},c8={},f8=_3.TypeError,d8=_3.WeakMap;if(u8||x5.state){var p8=x5.state||(x5.state=new d8),h8=W3(p8.get),g8=W3(p8.has),v8=W3(p8.set);n8=function(e,t){if(g8(p8,e))throw new f8("Object already initialized");return t.facade=e,v8(p8,e,t),t},r8=function(e){return h8(p8,e)||{}},o8=function(e){return g8(p8,e)}}else{var y8=l8("state");c8[y8]=!0,n8=function(e,t){if(B5(e,y8))throw new f8("Object already initialized");return t.facade=e,e8(e,y8,t),t},r8=function(e){return B5(e,y8)?e[y8]:{}},o8=function(e){return B5(e,y8)}}var m8={set:n8,get:r8,has:o8,enforce:function(e){return o8(e)?r8(e):n8(e,{})},getterFor:function(e){return function(t){var n;if(!n5(t)||(n=r8(t)).type!==e)throw f8("Incompatible receiver, "+e+" required");return n}}},b8=Function.prototype,w8=j3&&Object.getOwnPropertyDescriptor,E8=B5(b8,"name"),D8={EXISTS:E8,PROPER:E8&&"something"===function(){}.name,CONFIGURABLE:E8&&(!j3||j3&&w8(b8,"name").configurable)},S8=k3((function(e){var t=D8.CONFIGURABLE,n=m8.get,r=m8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;t5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!B5(i,"name")||t&&i.name!==f)&&e8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==_3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:e8(e,n,i)):l?e[n]=i:S5(n,i)})(Function.prototype,"toString",(function(){return t5(this)&&n(this).source||i8(this)}))})),x8=Math.ceil,C8=Math.floor,A8=function(e){var t=+e;return t!=t||0===t?0:(t>0?C8:x8)(t)},O8=Math.max,k8=Math.min,B8=function(e,t){var n=A8(e);return n<0?O8(n+t,0):k8(n,t)},F8=Math.min,T8=function(e){return e>0?F8(A8(e),9007199254740991):0},_8=function(e){return T8(e.length)},P8=function(e){return function(t,n,r){var o,i=e5(t),a=_8(i),u=B8(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},j8={includes:P8(!0),indexOf:P8(!1)},N8=j8.indexOf,I8=W3([].push),L8=function(e,t){var n,r=e5(e),o=0,i=[];for(n in r)!B5(c8,n)&&B5(r,n)&&I8(i,n);for(;t.length>o;)B5(r,n=t[o++])&&(~N8(i,n)||I8(i,n));return i},R8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],M8=R8.concat("length","prototype"),z8={f:Object.getOwnPropertyNames||function(e){return L8(e,M8)}},$8={f:Object.getOwnPropertySymbols},H8=W3([].concat),V8=o5("Reflect","ownKeys")||function(e){var t=z8.f(X5(e)),n=$8.f;return n?H8(t,n(e)):t},U8=function(e,t){for(var n=V8(t),r=Q5.f,o=q5.f,i=0;i<n.length;i++){var a=n[i];B5(e,a)||r(e,a,o(t,a))}},W8=/#|\.prototype\./,G8=function(e,t){var n=K8[q8(e)];return n==X8||n!=Y8&&(t5(t)?P3(t):!!t)},q8=G8.normalize=function(e){return String(e).replace(W8,".").toLowerCase()},K8=G8.data={},Y8=G8.NATIVE="N",X8=G8.POLYFILL="P",Z8=G8,J8=q5.f,Q8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_3:l?_3[u]||S5(u,{}):(_3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=J8(n,r))&&a.value:n[r],!Z8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;U8(i,o)}(e.sham||o&&o.sham)&&e8(i,"sham",!0),S8(n,r,i,e)}},e7={};e7[R5("toStringTag")]="z";var t7="[object z]"===String(e7),n7=R5("toStringTag"),r7=_3.Object,o7="Arguments"==K3(function(){return arguments}()),i7=t7?K3: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=r7(e),n7))?n:o7?K3(t):"Object"==(r=K3(t))&&t5(t.callee)?"Arguments":r},a7=_3.String,u7=function(e){if("Symbol"===i7(e))throw TypeError("Cannot convert a Symbol value to a string");return a7(e)},s7="\t\n\v\f\r \u2028\u2029\ufeff",l7=W3("".replace),c7="["+s7+"]",f7=RegExp("^"+c7+c7+"*"),d7=RegExp(c7+c7+"*$"),p7=function(e){return function(t){var n=u7(Q3(t));return 1&e&&(n=l7(n,f7,"")),2&e&&(n=l7(n,d7,"")),n}},h7={start:p7(1),end:p7(2),trim:p7(3)},g7=D8.PROPER,v7=h7.trim;function y7(e){return e.length?e[0].tagName.toLowerCase():""}function m7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Bp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Q8({target:"String",proto:!0,forced:P3((function(){return!!s7.trim()||"
"!=="
".trim()||g7&&"trim"!==s7.trim.name}))},{trim:function(){return v7(this)}}),Q8({global:!0},{globalThis:_3}),Xp&&(Bp.fn.append=Xp),Lp&&(Bp.fn.on=Lp),uh&&(Bp.fn.focus=uh),Pp&&(Bp.fn.attr=Pp),Ip&&(Bp.fn.val=Ip),qp&&(Bp.fn.html=qp),Jp&&(Bp.fn.parent=Jp),_p&&(Bp.fn.hasClass=_p),rh&&(Bp.fn.empty=rh);var b7,w7={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,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=AO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=mg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:m7(a,c,d)});else{var h=mg("video",{poster:s,controls:!0},mg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=mg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Jh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},E7={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,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=m7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},D7=Object.keys||function(e){return L8(e,R8)},S7=j3?Object.defineProperties:function(e,t){X5(e);for(var n,r=e5(t),o=D7(t),i=o.length,a=0;i>a;)Q5.f(e,n=o[a++],r[n]);return e},x7=o5("document","documentElement"),C7=l8("IE_PROTO"),A7=function(){},O7=function(e){return"<script>"+e+"<\/script>"},k7=function(e){e.write(O7("")),e.close();var t=e.parentWindow.Object;return e=null,t},B7=function(){try{b7=new ActiveXObject("htmlfile")}catch(e){}var e,t;B7="undefined"!=typeof document?document.domain&&b7?k7(b7):((t=U5("iframe")).style.display="none",x7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(O7("document.F=Object")),e.close(),e.F):k7(b7);for(var n=R8.length;n--;)delete B7.prototype[R8[n]];return B7()};c8[C7]=!0;var F7=Object.create||function(e,t){var n;return null!==e?(A7.prototype=X5(e),n=new A7,A7.prototype=null,n[C7]=e):n=B7(),void 0===t?n:S7(n,t)},T7=R5("unscopables"),_7=Array.prototype;null==_7[T7]&&Q5.f(_7,T7,{configurable:!0,value:F7(null)});var P7=function(e){_7[T7][e]=!0},j7=j8.includes;Q8({target:"Array",proto:!0},{includes:function(e){return j7(this,e,arguments.length>1?arguments[1]:void 0)}}),P7("includes");var N7={selector:"iframe,video,p",preParseHtml:function(e){var t=Bp(e),n=t;if("p"===y7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Bp(o))}}var a=y7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Bp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},I7=W3(W3.bind),L7=function(e,t){return b5(e),void 0===t?e:I7?I7(e,t):function(){return e.apply(t,arguments)}},R7=Array.isArray||function(e){return"Array"==K3(e)},M7=function(){},z7=[],$7=o5("Reflect","construct"),H7=/^\s*(?:class|function)\b/,V7=W3(H7.exec),U7=!H7.exec(M7),W7=function(e){if(!t5(e))return!1;try{return $7(M7,z7,e),!0}catch(e){return!1}},G7=!$7||P3((function(){var e;return W7(W7.call)||!W7(Object)||!W7((function(){e=!0}))||e}))?function(e){if(!t5(e))return!1;switch(i7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U7||!!V7(H7,i8(e))}:W7,q7=R5("species"),K7=_3.Array,Y7=function(e,t){return new(function(e){var t;return R7(e)&&(t=e.constructor,(G7(t)&&(t===K7||R7(t.prototype))||n5(t)&&null===(t=t[q7]))&&(t=void 0)),void 0===t?K7:t}(e))(0===t?0:t)},X7=W3([].push),Z7=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,l,c,f){for(var d,p,h=O5(s),g=Z3(h),v=L7(l,c),y=_8(g),m=0,b=f||Y7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:X7(w,d)}else switch(e){case 4:return!1;case 7:X7(w,d)}return i?-1:r||o?o:w}},J7={forEach:Z7(0),map:Z7(1),filter:Z7(2),some:Z7(3),every:Z7(4),find:Z7(5),findIndex:Z7(6),filterReject:Z7(7)},Q7=J7.find,e9=!0;"find"in[]&&Array(1).find((function(){e9=!1})),Q8({target:"Array",proto:!0,forced:e9},{find:function(e){return Q7(this,e,arguments.length>1?arguments[1]:void 0)}}),P7("find");var t9=t7?{}.toString:function(){return"[object "+i7(this)+"]"};function n9(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:""}]}}t7||S8(Object.prototype,"toString",t9,{unsafe:!0});var r9,o9,i9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Bp(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",n9(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",n9(o,i=l.attr("poster")||"",a,u)}},a9=function(){var e=X5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},u9=_3.RegExp,s9=P3((function(){var e=u9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),l9=s9||P3((function(){return!u9("a","y").sticky})),c9={BROKEN_CARET:s9||P3((function(){var e=u9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:l9,UNSUPPORTED_Y:s9},f9=_3.RegExp,d9=P3((function(){var e=f9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),p9=_3.RegExp,h9=P3((function(){var e=p9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),g9=m8.get,v9=C5("native-string-replace",String.prototype.replace),y9=RegExp.prototype.exec,m9=y9,b9=W3("".charAt),w9=W3("".indexOf),E9=W3("".replace),D9=W3("".slice),S9=(o9=/b*/g,I3(y9,r9=/a/,"a"),I3(y9,o9,"a"),0!==r9.lastIndex||0!==o9.lastIndex),x9=c9.BROKEN_CARET,C9=void 0!==/()??/.exec("")[1];(S9||C9||x9||d9||h9)&&(m9=function(e){var t,n,r,o,i,a,u,s=this,l=g9(s),c=u7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=I3(m9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=x9&&s.sticky,h=I3(a9,s),g=s.source,v=0,y=c;if(p&&(h=E9(h,"y",""),-1===w9(h,"g")&&(h+="g"),y=D9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==b9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),C9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),S9&&(r=s.lastIndex),o=I3(y9,p?n:s,y),p?o?(o.input=D9(o.input,v),o[0]=D9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:S9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),C9&&o&&o.length>1&&I3(v9,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=F7(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var A9=m9;Q8({target:"RegExp",proto:!0,forced:/./.exec!==A9},{exec:A9});var O9=Function.prototype,k9=O9.apply,B9=O9.bind,F9=O9.call,T9="object"==typeof Reflect&&Reflect.apply||(B9?F9.bind(k9):function(){return F9.apply(k9,arguments)}),_9=(R5("species"),RegExp.prototype),P9=W3("".charAt),j9=W3("".charCodeAt),N9=W3("".slice),I9=function(e){return function(t,n){var r,o,i=u7(Q3(t)),a=A8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=j9(i,a))<55296||r>56319||a+1===u||(o=j9(i,a+1))<56320||o>57343?e?P9(i,a):r:e?N9(i,a,a+2):o-56320+(r-55296<<10)+65536}},L9={codeAt:I9(!1),charAt:I9(!0)},R9=L9.charAt,M9=function(e,t,n){return t+(n?R9(e,t).length:1)},z9=Math.floor,$9=W3("".charAt),H9=W3("".replace),V9=W3("".slice),U9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W9=/\$([$&'`]|\d{1,2})/g,G9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=W9;return void 0!==o&&(o=O5(o),s=U9),H9(i,s,(function(i,s){var l;switch($9(s,0)){case"$":return"$";case"&":return e;case"`":return V9(t,0,n);case"'":return V9(t,a);case"<":l=o[V9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=z9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?$9(s,1):r[f-1]+$9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},q9=_3.TypeError,K9=function(e,t){var n=e.exec;if(t5(n)){var r=I3(n,e,t);return null!==r&&X5(r),r}if("RegExp"===K3(e))return I3(A9,e,t);throw q9("RegExp#exec called on incompatible receiver")},Y9=R5("replace"),X9=Math.max,Z9=Math.min,J9=W3([].concat),Q9=W3([].push),eee=W3("".indexOf),tee=W3("".slice),nee="$0"==="a".replace(/./,"$0"),ree=!!/./[Y9]&&""===/./[Y9]("a","$0");function oee(e){return void 0===e&&(e="r"),e+"-"+xh()}!function(e,t,n,r){var o=R5(e),i=!P3((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!P3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=W3(/./[o]),s=function(e,t,n){var r=ree?"$":"$0";return[function(e,n){var r=Q3(this),o=null==e?void 0:w5(e,Y9);return o?I3(o,e,r,n):I3(t,u7(r),e,n)},function(e,o){var i=X5(this),a=u7(e);if("string"==typeof o&&-1===eee(o,r)&&-1===eee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=t5(o);s||(o=u7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=K9(i,a);if(null===d)break;if(Q9(f,d),!l)break;""===u7(d[0])&&(i.lastIndex=M9(a,T8(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=u7((d=f[v])[0]),m=X9(Z9(A8(d.index),a.length),0),b=[],w=1;w<d.length;w++)Q9(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=J9([y],b,m,a);void 0!==E&&Q9(D,E);var S=u7(T9(o,void 0,D))}else S=G9(y,a,m,b,E,o);m>=g&&(h+=tee(a,g,m)+S,g=m+y.length)}return h+tee(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=W3(e),s=t.exec;return s===A9||s===_9.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));S8(String.prototype,e,s[0]),S8(_9,o,s[1])}}("replace",0,!!P3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nee||ree);var iee=_3.Promise,aee=function(e,t,n){for(var r in t)S8(e,r,t[r],n);return e},uee=_3.String,see=_3.TypeError,lee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=W3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return X5(n),function(e){if("object"==typeof e||t5(e))return e;throw see("Can't set "+uee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),cee=Q5.f,fee=R5("toStringTag"),dee=function(e,t,n){e&&!B5(e=n?e:e.prototype,fee)&&cee(e,fee,{configurable:!0,value:t})},pee=R5("species"),hee=_3.TypeError,gee=function(e,t){if(i5(t,e))return e;throw hee("Incorrect invocation")},vee={},yee=R5("iterator"),mee=Array.prototype,bee=R5("iterator"),wee=function(e){if(null!=e)return w5(e,bee)||w5(e,"@@iterator")||vee[i7(e)]},Eee=_3.TypeError,Dee=function(e,t,n){var r,o;X5(e);try{if(!(r=w5(e,"return"))){if("throw"===t)throw n;return n}r=I3(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return X5(r),n},See=_3.TypeError,xee=function(e,t){this.stopped=e,this.result=t},Cee=xee.prototype,Aee=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=L7(t,f),v=function(e){return r&&Dee(r,"normal",e),new xee(!0,e)},y=function(e){return d?(X5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=wee(e)))throw See(y5(e)+" is not iterable");if(void 0!==(c=o)&&(vee.Array===c||mee[yee]===c)){for(i=0,a=_8(e);a>i;i++)if((u=y(e[i]))&&i5(Cee,u))return u;return new xee(!1)}r=function(e,t){var n=arguments.length<2?wee(e):t;if(b5(n))return X5(I3(n,e));throw Eee(y5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=I3(s,r)).done;){try{u=y(l.value)}catch(e){Dee(r,"throw",e)}if("object"==typeof u&&u&&i5(Cee,u))return u}return new xee(!1)},Oee=R5("iterator"),kee=!1;try{var Bee=0,Fee={next:function(){return{done:!!Bee++}},return:function(){kee=!0}};Fee[Oee]=function(){return this},Array.from(Fee,(function(){throw 2}))}catch(Rl){}var Tee,_ee,Pee,jee,Nee=function(e,t){if(!t&&!kee)return!1;var n=!1;try{var r={};r[Oee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Iee=_3.TypeError,Lee=R5("species"),Ree=W3([].slice),Mee=/(?:ipad|iphone|ipod).*applewebkit/i.test(a5),zee="process"==K3(_3.process),$ee=_3.setImmediate,Hee=_3.clearImmediate,Vee=_3.process,Uee=_3.Dispatch,Wee=_3.Function,Gee=_3.MessageChannel,qee=_3.String,Kee=0,Yee={};try{Tee=_3.location}catch(Rl){}var Xee=function(e){if(B5(Yee,e)){var t=Yee[e];delete Yee[e],t()}},Zee=function(e){return function(){Xee(e)}},Jee=function(e){Xee(e.data)},Qee=function(e){_3.postMessage(qee(e),Tee.protocol+"//"+Tee.host)};$ee&&Hee||($ee=function(e){var t=Ree(arguments,1);return Yee[++Kee]=function(){T9(t5(e)?e:Wee(e),void 0,t)},_ee(Kee),Kee},Hee=function(e){delete Yee[e]},zee?_ee=function(e){Vee.nextTick(Zee(e))}:Uee&&Uee.now?_ee=function(e){Uee.now(Zee(e))}:Gee&&!Mee?(jee=(Pee=new Gee).port2,Pee.port1.onmessage=Jee,_ee=L7(jee.postMessage,jee)):_3.addEventListener&&t5(_3.postMessage)&&!_3.importScripts&&Tee&&"file:"!==Tee.protocol&&!P3(Qee)?(_ee=Qee,_3.addEventListener("message",Jee,!1)):_ee="onreadystatechange"in U5("script")?function(e){x7.appendChild(U5("script")).onreadystatechange=function(){x7.removeChild(this),Xee(e)}}:function(e){setTimeout(Zee(e),0)});var ete,tte,nte,rte,ote,ite,ate,ute,ste={set:$ee,clear:Hee},lte=/ipad|iphone|ipod/i.test(a5)&&void 0!==_3.Pebble,cte=/web0s(?!.*chrome)/i.test(a5),fte=q5.f,dte=ste.set,pte=_3.MutationObserver||_3.WebKitMutationObserver,hte=_3.document,gte=_3.process,vte=_3.Promise,yte=fte(_3,"queueMicrotask"),mte=yte&&yte.value;mte||(ete=function(){var e,t;for(zee&&(e=gte.domain)&&e.exit();tte;){t=tte.fn,tte=tte.next;try{t()}catch(e){throw tte?rte():nte=void 0,e}}nte=void 0,e&&e.enter()},Mee||zee||cte||!pte||!hte?!lte&&vte&&vte.resolve?((ate=vte.resolve(void 0)).constructor=vte,ute=L7(ate.then,ate),rte=function(){ute(ete)}):zee?rte=function(){gte.nextTick(ete)}:(dte=L7(dte,_3),rte=function(){dte(ete)}):(ote=!0,ite=hte.createTextNode(""),new pte(ete).observe(ite,{characterData:!0}),rte=function(){ite.data=ote=!ote}));var bte,wte,Ete,Dte,Ste=mte||function(e){var t={fn:e,next:void 0};nte&&(nte.next=t),tte||(tte=t,rte()),nte=t},xte=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=b5(t),this.reject=b5(n)},Cte={f:function(e){return new xte(e)}},Ate=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ote="object"==typeof window,kte=ste.set,Bte=R5("species"),Fte="Promise",Tte=m8.getterFor(Fte),_te=m8.set,Pte=m8.getterFor(Fte),jte=iee&&iee.prototype,Nte=iee,Ite=jte,Lte=_3.TypeError,Rte=_3.document,Mte=_3.process,zte=Cte.f,$te=zte,Hte=!!(Rte&&Rte.createEvent&&_3.dispatchEvent),Vte=t5(_3.PromiseRejectionEvent),Ute=!1,Wte=Z8(Fte,(function(){var e=i8(Nte),t=e!==String(Nte);if(!t&&66===f5)return!0;if(f5>=51&&/native code/.test(e))return!1;var n=new Nte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Bte]=r,!(Ute=n.then((function(){}))instanceof r)||!t&&Ote&&!Vte})),Gte=Wte||!Nee((function(e){Nte.all(e).catch((function(){}))})),qte=function(e){var t;return!(!n5(e)||!t5(t=e.then))&&t},Kte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ste((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Jte(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Lte("Promise-chain cycle")):(u=qte(a))?I3(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Xte(e)}))}},Yte=function(e,t,n){var r,o;Hte?((r=Rte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),_3.dispatchEvent(r)):r={promise:t,reason:n},!Vte&&(o=_3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=_3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Xte=function(e){I3(kte,_3,(function(){var t,n=e.facade,r=e.value;if(Zte(e)&&(t=Ate((function(){zee?Mte.emit("unhandledRejection",r,n):Yte("unhandledrejection",n,r)})),e.rejection=zee||Zte(e)?2:1,t.error))throw t.value}))},Zte=function(e){return 1!==e.rejection&&!e.parent},Jte=function(e){I3(kte,_3,(function(){var t=e.facade;zee?Mte.emit("rejectionHandled",t):Yte("rejectionhandled",t,e.value)}))},Qte=function(e,t,n){return function(r){e(t,r,n)}},ene=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kte(e,!0))},tne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Lte("Promise can't be resolved itself");var r=qte(t);r?Ste((function(){var n={done:!1};try{I3(r,t,Qte(tne,n,e),Qte(ene,n,e))}catch(t){ene(n,t,e)}})):(e.value=t,e.state=1,Kte(e,!1))}catch(t){ene({done:!1},t,e)}}};if(Wte&&(Ite=(Nte=function(e){gee(this,Ite),b5(e),I3(bte,this);var t=Tte(this);try{e(Qte(tne,t),Qte(ene,t))}catch(e){ene(t,e)}}).prototype,(bte=function(e){_te(this,{type:Fte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=aee(Ite,{then:function(e,t){var n=Pte(this),r=n.reactions,o=zte(function(e,t){var n,r=X5(e).constructor;return void 0===r||null==(n=X5(r)[Lee])?t:function(e){if(G7(e))return e;throw Iee(y5(e)+" is not a constructor")}(n)}(this,Nte));return o.ok=!t5(e)||e,o.fail=t5(t)&&t,o.domain=zee?Mte.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Kte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),wte=function(){var e=new bte,t=Tte(e);this.promise=e,this.resolve=Qte(tne,t),this.reject=Qte(ene,t)},Cte.f=zte=function(e){return e===Nte||e===Ete?new wte(e):$te(e)},t5(iee)&&jte!==Object.prototype)){Dte=jte.then,Ute||(S8(jte,"then",(function(e,t){var n=this;return new Nte((function(e,t){I3(Dte,n,e,t)})).then(e,t)}),{unsafe:!0}),S8(jte,"catch",Ite.catch,{unsafe:!0}));try{delete jte.constructor}catch(Rl){}lee&&lee(jte,Ite)}function nne(e,t,n){return void 0===n&&(n=""),x3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return C3(this,(function(c){switch(c.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=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){hd.insertNodes(e,l)})),o(l),[2]}}))}))}function rne(){return oee("w-e-insert-video")}Q8({global:!0,wrap:!0,forced:Wte},{Promise:Nte}),dee(Nte,Fte,!1),function(e){var t=o5("Promise"),n=Q5.f;j3&&t&&!t[pee]&&n(t,pee,{configurable:!0,get:function(){return this}})}(),Ete=o5(Fte),Q8({target:Fte,stat:!0,forced:Wte},{reject:function(e){var t=zte(this);return I3(t.reject,void 0,e),t.promise}}),Q8({target:Fte,stat:!0,forced:Wte},{resolve:function(e){return function(e,t){if(X5(e),n5(t)&&t.constructor===e)return t;var n=Cte.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Q8({target:Fte,stat:!0,forced:Gte},{all:function(e){var t=this,n=zte(t),r=n.resolve,o=n.reject,i=Ate((function(){var n=b5(t.resolve),i=[],a=0,u=1;Aee(e,(function(e){var s=a++,l=!1;u++,I3(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=zte(t),r=n.reject,o=Ate((function(){var o=b5(t.resolve);Aee(e,(function(e){I3(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var one=function(){function e(){this.title=dP("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=rne(),this.posterInputId=rne(),this.buttonId=rne()}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||!Vf.isCollapsed(t)||!!AO.getSelectedElems(e).some((function(t){var n=AO.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=A3(XT(dP("videoModule.videoSrc"),r,dP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=A3(XT(dP("videoModule.videoPoster"),o,dP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Bp(s),p=Bp(f),h=A3(ZT(i,dP("videoModule.ok")),1)[0];if(null==this.$content){var g=Bp("<div></div>");g.on("click","#"+i,(function(n){return x3(t,void 0,void 0,(function(){var t,i;return C3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,nne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),ine=W3([].join),ane=Z3!=Object,une=function(e,t){var n=[].join;return!!n&&P3((function(){n.call(null,",",1)}))}();Q8({target:"Array",proto:!0,forced:ane||!une},{join:function(e){return ine(e5(this),void 0===e?",":e)}});var sne,lne,cne,fne=!P3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),dne=l8("IE_PROTO"),pne=_3.Object,hne=pne.prototype,gne=fne?pne.getPrototypeOf:function(e){var t=O5(e);if(B5(t,dne))return t[dne];var n=t.constructor;return t5(n)&&t instanceof n?n.prototype:t instanceof pne?hne:null},vne=R5("iterator"),yne=!1;[].keys&&("next"in(cne=[].keys())?(lne=gne(gne(cne)))!==Object.prototype&&(sne=lne):yne=!0);var mne=null==sne||P3((function(){var e={};return sne[vne].call(e)!==e}));mne&&(sne={}),t5(sne[vne])||S8(sne,vne,(function(){return this}));var bne={IteratorPrototype:sne,BUGGY_SAFARI_ITERATORS:yne},wne=bne.IteratorPrototype,Ene=function(){return this},Dne=D8.PROPER,Sne=D8.CONFIGURABLE,xne=bne.IteratorPrototype,Cne=bne.BUGGY_SAFARI_ITERATORS,Ane=R5("iterator"),One=function(){return this},kne=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=F7(wne,{next:z3(1,n)}),dee(e,o,!1),vee[o]=Ene}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Cne&&e in p)return p[e];switch(e){case"keys":case"values":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[Ane]||p["@@iterator"]||o&&p[o],g=!Cne&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=gne(v.call(new e)))!==Object.prototype&&u.next&&(gne(u)!==xne&&(lee?lee(u,xne):t5(u[Ane])||S8(u,Ane,One)),dee(u,f,!0)),Dne&&"values"==o&&h&&"values"!==h.name&&(Sne?e8(p,"name","values"):(d=!0,g=function(){return I3(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Cne||d||!(l in p))&&S8(p,l,s[l]);else Q8({target:t,proto:!0,forced:Cne||d},s);return p[Ane]!==g&&S8(p,Ane,g,{name:o}),vee[t]=g,s},Bne=m8.set,Fne=m8.getterFor("Array Iterator"),Tne=kne(Array,"Array",(function(e,t){Bne(this,{type:"Array Iterator",target:e5(e),index:0,kind:t})}),(function(){var e=Fne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");vee.Arguments=vee.Array,P7("keys"),P7("values"),P7("entries");var _ne=L9.charAt,Pne=m8.set,jne=m8.getterFor("String Iterator");kne(String,"String",(function(e){Pne(this,{type:"String Iterator",string:u7(e),index:0})}),(function(){var e,t=jne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_ne(n,r),t.index+=e.length,{value:e,done:!1})}));var Nne=function(e,t,n){var r=$5(t);r in e?Q5.f(e,r,z3(0,n)):e[r]=n},Ine=_3.Array,Lne=Math.max,Rne=z8.f,Mne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zne={f:function(e){return Mne&&"Window"==K3(e)?function(e){try{return Rne(e)}catch(e){return function(e,t,n){for(var r=_8(e),o=B8(void 0,r),i=B8(r,r),a=Ine(Lne(i-o,0)),u=0;o<i;o++,u++)Nne(a,u,e[o]);return a.length=u,a}(Mne)}}(e):Rne(e5(e))}},$ne=P3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Hne=Object.isExtensible,Vne=P3((function(){Hne(1)}))||$ne?function(e){return!!n5(e)&&(!$ne||"ArrayBuffer"!=K3(e))&&(!Hne||Hne(e))}:Hne,Une=!P3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wne=k3((function(e){var t=Q5.f,n=!1,r=P5("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=z8.f,t=W3([].splice),o={};o[r]=1,e(o).length&&(z8.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},Q8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zne.f}))},fastKey:function(e,t){if(!n5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!B5(e,r)){if(!Vne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!B5(e,r)){if(!Vne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Une&&n&&Vne(e)&&!B5(e,r)&&i(e),e}};c8[r]=!0})),Gne=Wne.getWeakData,qne=m8.set,Kne=m8.getterFor,Yne=J7.find,Xne=J7.findIndex,Zne=W3([].splice),Jne=0,Qne=function(e){return e.frozen||(e.frozen=new ere)},ere=function(){this.entries=[]},tre=function(e,t){return Yne(e.entries,(function(e){return e[0]===t}))};ere.prototype={get:function(e){var t=tre(this,e);if(t)return t[1]},has:function(e){return!!tre(this,e)},set:function(e,t){var n=tre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Xne(this.entries,(function(t){return t[0]===e}));return~t&&Zne(this.entries,t,1),!!~t}};var nre,rre={getConstructor:function(e,t,n,r){var o=e((function(e,o){gee(e,i),qne(e,{type:t,id:Jne++,frozen:void 0}),null!=o&&Aee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Kne(t),u=function(e,t,n){var r=a(e),o=Gne(X5(t),!0);return!0===o?Qne(r).set(t,n):o[r.id]=n,e};return aee(i,{delete:function(e){var t=a(this);if(!n5(e))return!1;var n=Gne(e);return!0===n?Qne(t).delete(e):n&&B5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!n5(e))return!1;var n=Gne(e);return!0===n?Qne(t).has(e):n&&B5(n,t.id)}}),aee(i,n?{get:function(e){var t=a(this);if(n5(e)){var n=Gne(e);return!0===n?Qne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ore=m8.enforce,ire=!_3.ActiveXObject&&"ActiveXObject"in _3,are=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ure=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=_3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=W3(u[e]);S8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!n5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!n5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!n5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Z8(e,!t5(a)||!(o||u.forEach&&!P3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Wne.enable();else if(Z8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=P3((function(){f.has(1)})),h=Nee((function(e){new a(e)})),g=!o&&P3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){gee(e,u);var n=function(e,t,n){var r,o;return lee&&t5(r=t.constructor)&&r!==n&&n5(o=r.prototype)&&o!==n.prototype&&lee(e,o),e}(new a,e,s);return null!=t&&Aee(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Q8({global:!0,forced:s!=a},l),dee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",are,rre);if(u8&&ire){nre=rre.getConstructor(are,"WeakMap",!0),Wne.enable();var sre=ure.prototype,lre=W3(sre.delete),cre=W3(sre.has),fre=W3(sre.get),dre=W3(sre.set);aee(sre,{delete:function(e){if(n5(e)&&!Vne(e)){var t=ore(this);return t.frozen||(t.frozen=new nre),lre(this,e)||t.frozen.delete(e)}return lre(this,e)},has:function(e){if(n5(e)&&!Vne(e)){var t=ore(this);return t.frozen||(t.frozen=new nre),cre(this,e)||t.frozen.has(e)}return cre(this,e)},get:function(e){if(n5(e)&&!Vne(e)){var t=ore(this);return t.frozen||(t.frozen=new nre),cre(this,e)?fre(this,e):t.frozen.get(e)}return fre(this,e)},set:function(e,t){if(n5(e)&&!Vne(e)){var n=ore(this);n.frozen||(n.frozen=new nre),cre(this,e)?dre(this,e,t):n.frozen.set(e,t)}else dre(this,e,t);return this}})}var pre={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},hre=U5("span").classList,gre=hre&&hre.constructor&&hre.constructor.prototype,vre=gre===Object.prototype?void 0:gre,yre=R5("iterator"),mre=R5("toStringTag"),bre=Tne.values,wre=function(e,t){if(e){if(e[yre]!==bre)try{e8(e,yre,bre)}catch(t){e[yre]=bre}if(e[mre]||e8(e,mre,t),pre[t])for(var n in Tne)if(e[n]!==Tne[n])try{e8(e,n,Tne[n])}catch(t){e[n]=Tne[n]}}};for(var Ere in pre)wre(_3[Ere]&&_3[Ere].prototype,Ere);wre(vre,"DOMTokenList");var Dre=D8.EXISTS,Sre=Q5.f,xre=Function.prototype,Cre=W3(xre.toString),Are=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ore=W3(Are.exec);j3&&!Dre&&Sre(xre,"name",{configurable:!0,get:function(){try{return Ore(Are,Cre(this))[1]}catch(e){return""}}});var kre=R5("species"),Bre=f5>=51||!P3((function(){var e=[];return(e.constructor={})[kre]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Fre=R5("species"),Tre=_3.Array,_re=Math.max;function Pre(e){return e.getMenuConfig("uploadVideo")}Q8({target:"Array",proto:!0,forced:!Bre},{slice:function(e,t){var n,r,o,i=e5(this),a=_8(i),u=B8(e,a),s=B8(void 0===t?a:t,a);if(R7(i)&&(n=i.constructor,(G7(n)&&(n===Tre||R7(n.prototype))||n5(n)&&null===(n=n[Fre]))&&(n=void 0),n===Tre||void 0===n))return Ree(i,u,s);for(r=new(void 0===n?Tre:n)(_re(s-u,0)),o=0;u<s;u++,o++)u in i&&Nne(r,o,i[u]);return r.length=o,r}});var jre=new WeakMap;function Nre(e,t){return x3(this,void 0,void 0,(function(){var n,r,o,i;return C3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=jre.get(e);if(null!=t)return t;var n=Pre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=w_(S3(S3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return nne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;nne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),jre.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 Ire=function(){function e(){this.title=dP("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 nne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<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;x3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return C3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Pre(e).customUpload,c.label=1;case 1:c.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),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return nne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Nre(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.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||!Vf.isCollapsed(t)||!!AO.getSelectedElems(e).some((function(t){var n=AO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Lre=D8.PROPER,Rre=RegExp.prototype,Mre=Rre.toString,zre=W3(a9),$re=P3((function(){return"/a/b"!=Mre.call({source:"a",flags:"b"})})),Hre=Lre&&"toString"!=Mre.name;function Vre(){return oee("w-e-insert-video")}($re||Hre)&&S8(RegExp.prototype,"toString",(function(){var e=X5(this),t=u7(e.source),n=e.flags;return"/"+t+"/"+u7(void 0===n&&i5(Rre,e)&&!("flags"in Rre)?zre(e):n)}),{unsafe:!0});var Ure=function(){function e(){this.title=dP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Vre(),this.heightInputId=Vre(),this.buttonId=Vre()}return e.prototype.getSelectedVideoNode=function(e){return AO.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=A3(XT(dP("videoModule.width"),n,"auto"),2),a=i[0],u=Bp(i[1]),s=A3(XT(dP("videoModule.height"),r,"auto"),2),l=s[0],c=Bp(s[1]),f=A3(ZT(o,dP("videoModule.ok")),1)[0];if(null==this.$content){var d=Bp("<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",l=u?u.toString():"auto";e.restoreSelection(),hd.setNodes(e,{width:s,height:l},{match:function(e){return AO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Wre={renderElems:[w7],elemsToHtml:[E7],preParseHtml:[N7],parseElemsHtml:[i9],menus:[{key:"insertVideo",factory:function(){return new one},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Ire},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 Ure}}],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=A3(e,2),o=t[0],i=t[1];return"video"===AO.getNodeType(o)&&AO.isLastNode(r,o)&&hd.insertNodes(r,AO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};fP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),fP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Gre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function qre(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kre,Yre,Xre=function(e){return e&&e.Math==Math&&e},Zre=Xre("object"==typeof globalThis&&globalThis)||Xre("object"==typeof window&&window)||Xre("object"==typeof self&&self)||Xre("object"==typeof Gre&&Gre)||function(){return this}()||Function("return this")(),Jre=function(e){try{return!!e()}catch(e){return!0}},Qre=!Jre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),eoe=Function.prototype.call,toe=eoe.bind?eoe.bind(eoe):function(){return eoe.apply(eoe,arguments)},noe={}.propertyIsEnumerable,roe=Object.getOwnPropertyDescriptor,ooe={f:roe&&!noe.call({1:2},1)?function(e){var t=roe(this,e);return!!t&&t.enumerable}:noe},ioe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},aoe=Function.prototype,uoe=aoe.bind,soe=aoe.call,loe=uoe&&uoe.bind(soe),coe=uoe?function(e){return e&&loe(soe,e)}:function(e){return e&&function(){return soe.apply(e,arguments)}},foe=coe({}.toString),doe=coe("".slice),poe=function(e){return doe(foe(e),8,-1)},hoe=Zre.Object,goe=coe("".split),voe=Jre((function(){return!hoe("z").propertyIsEnumerable(0)}))?function(e){return"String"==poe(e)?goe(e,""):hoe(e)}:hoe,yoe=Zre.TypeError,moe=function(e){if(null==e)throw yoe("Can't call method on "+e);return e},boe=function(e){return voe(moe(e))},woe=function(e){return"function"==typeof e},Eoe=function(e){return"object"==typeof e?null!==e:woe(e)},Doe=function(e){return woe(e)?e:void 0},Soe=function(e,t){return arguments.length<2?Doe(Zre[e]):Zre[e]&&Zre[e][t]},xoe=coe({}.isPrototypeOf),Coe=Soe("navigator","userAgent")||"",Aoe=Zre.process,Ooe=Zre.Deno,koe=Aoe&&Aoe.versions||Ooe&&Ooe.version,Boe=koe&&koe.v8;Boe&&(Yre=(Kre=Boe.split("."))[0]>0&&Kre[0]<4?1:+(Kre[0]+Kre[1])),!Yre&&Coe&&(!(Kre=Coe.match(/Edge\/(\d+)/))||Kre[1]>=74)&&(Kre=Coe.match(/Chrome\/(\d+)/))&&(Yre=+Kre[1]);var Foe=Yre,Toe=!!Object.getOwnPropertySymbols&&!Jre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Foe&&Foe<41})),_oe=Toe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Poe=Zre.Object,joe=_oe?function(e){return"symbol"==typeof e}:function(e){var t=Soe("Symbol");return woe(t)&&xoe(t.prototype,Poe(e))},Noe=Zre.String,Ioe=function(e){try{return Noe(e)}catch(e){return"Object"}},Loe=Zre.TypeError,Roe=function(e){if(woe(e))return e;throw Loe(Ioe(e)+" is not a function")},Moe=function(e,t){var n=e[t];return null==n?void 0:Roe(n)},zoe=Zre.TypeError,$oe=Object.defineProperty,Hoe=function(e,t){try{$oe(Zre,e,{value:t,configurable:!0,writable:!0})}catch(n){Zre[e]=t}return t},Voe=Zre["__core-js_shared__"]||Hoe("__core-js_shared__",{}),Uoe=qre((function(e){(e.exports=function(e,t){return Voe[e]||(Voe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Woe=Zre.Object,Goe=function(e){return Woe(moe(e))},qoe=coe({}.hasOwnProperty),Koe=Object.hasOwn||function(e,t){return qoe(Goe(e),t)},Yoe=0,Xoe=Math.random(),Zoe=coe(1..toString),Joe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Zoe(++Yoe+Xoe,36)},Qoe=Uoe("wks"),eie=Zre.Symbol,tie=eie&&eie.for,nie=_oe?eie:eie&&eie.withoutSetter||Joe,rie=function(e){if(!Koe(Qoe,e)||!Toe&&"string"!=typeof Qoe[e]){var t="Symbol."+e;Toe&&Koe(eie,e)?Qoe[e]=eie[e]:Qoe[e]=_oe&&tie?tie(t):nie(t)}return Qoe[e]},oie=Zre.TypeError,iie=rie("toPrimitive"),aie=function(e){var t=function(e,t){if(!Eoe(e)||joe(e))return e;var n,r=Moe(e,iie);if(r){if(void 0===t&&(t="default"),n=toe(r,e,t),!Eoe(n)||joe(n))return n;throw oie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&woe(n=e.toString)&&!Eoe(r=toe(n,e)))return r;if(woe(n=e.valueOf)&&!Eoe(r=toe(n,e)))return r;if("string"!==t&&woe(n=e.toString)&&!Eoe(r=toe(n,e)))return r;throw zoe("Can't convert object to primitive value")}(e,t)}(e,"string");return joe(t)?t:t+""},uie=Zre.document,sie=Eoe(uie)&&Eoe(uie.createElement),lie=function(e){return sie?uie.createElement(e):{}},cie=!Qre&&!Jre((function(){return 7!=Object.defineProperty(lie("div"),"a",{get:function(){return 7}}).a})),fie=Object.getOwnPropertyDescriptor,die={f:Qre?fie:function(e,t){if(e=boe(e),t=aie(t),cie)try{return fie(e,t)}catch(e){}if(Koe(e,t))return ioe(!toe(ooe.f,e,t),e[t])}},pie=Zre.String,hie=Zre.TypeError,gie=function(e){if(Eoe(e))return e;throw hie(pie(e)+" is not an object")},vie=Zre.TypeError,yie=Object.defineProperty,mie={f:Qre?yie:function(e,t,n){if(gie(e),t=aie(t),gie(n),cie)try{return yie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bie=Qre?function(e,t,n){return mie.f(e,t,ioe(1,n))}:function(e,t,n){return e[t]=n,e},wie=coe(Function.toString);woe(Voe.inspectSource)||(Voe.inspectSource=function(e){return wie(e)});var Eie,Die,Sie,xie=Voe.inspectSource,Cie=Zre.WeakMap,Aie=woe(Cie)&&/native code/.test(xie(Cie)),Oie=Uoe("keys"),kie=function(e){return Oie[e]||(Oie[e]=Joe(e))},Bie={},Fie=Zre.TypeError,Tie=Zre.WeakMap;if(Aie||Voe.state){var _ie=Voe.state||(Voe.state=new Tie),Pie=coe(_ie.get),jie=coe(_ie.has),Nie=coe(_ie.set);Eie=function(e,t){if(jie(_ie,e))throw new Fie("Object already initialized");return t.facade=e,Nie(_ie,e,t),t},Die=function(e){return Pie(_ie,e)||{}},Sie=function(e){return jie(_ie,e)}}else{var Iie=kie("state");Bie[Iie]=!0,Eie=function(e,t){if(Koe(e,Iie))throw new Fie("Object already initialized");return t.facade=e,bie(e,Iie,t),t},Die=function(e){return Koe(e,Iie)?e[Iie]:{}},Sie=function(e){return Koe(e,Iie)}}var Lie={set:Eie,get:Die,has:Sie,enforce:function(e){return Sie(e)?Die(e):Eie(e,{})},getterFor:function(e){return function(t){var n;if(!Eoe(t)||(n=Die(t)).type!==e)throw Fie("Incompatible receiver, "+e+" required");return n}}},Rie=Function.prototype,Mie=Qre&&Object.getOwnPropertyDescriptor,zie=Koe(Rie,"name"),$ie={EXISTS:zie,PROPER:zie&&"something"===function(){}.name,CONFIGURABLE:zie&&(!Qre||Qre&&Mie(Rie,"name").configurable)},Hie=qre((function(e){var t=$ie.CONFIGURABLE,n=Lie.get,r=Lie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;woe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Koe(i,"name")||t&&i.name!==f)&&bie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Zre?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:bie(e,n,i)):l?e[n]=i:Hoe(n,i)})(Function.prototype,"toString",(function(){return woe(this)&&n(this).source||xie(this)}))})),Vie=Math.ceil,Uie=Math.floor,Wie=function(e){var t=+e;return t!=t||0===t?0:(t>0?Uie:Vie)(t)},Gie=Math.max,qie=Math.min,Kie=function(e,t){var n=Wie(e);return n<0?Gie(n+t,0):qie(n,t)},Yie=Math.min,Xie=function(e){return e>0?Yie(Wie(e),9007199254740991):0},Zie=function(e){return Xie(e.length)},Jie=function(e){return function(t,n,r){var o,i=boe(t),a=Zie(i),u=Kie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Qie=(Jie(!0),Jie(!1)),eae=coe([].push),tae=function(e,t){var n,r=boe(e),o=0,i=[];for(n in r)!Koe(Bie,n)&&Koe(r,n)&&eae(i,n);for(;t.length>o;)Koe(r,n=t[o++])&&(~Qie(i,n)||eae(i,n));return i},nae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rae=nae.concat("length","prototype"),oae={f:Object.getOwnPropertyNames||function(e){return tae(e,rae)}},iae={f:Object.getOwnPropertySymbols},aae=coe([].concat),uae=Soe("Reflect","ownKeys")||function(e){var t=oae.f(gie(e)),n=iae.f;return n?aae(t,n(e)):t},sae=function(e,t){for(var n=uae(t),r=mie.f,o=die.f,i=0;i<n.length;i++){var a=n[i];Koe(e,a)||r(e,a,o(t,a))}},lae=/#|\.prototype\./,cae=function(e,t){var n=dae[fae(e)];return n==hae||n!=pae&&(woe(t)?Jre(t):!!t)},fae=cae.normalize=function(e){return String(e).replace(lae,".").toLowerCase()},dae=cae.data={},pae=cae.NATIVE="N",hae=cae.POLYFILL="P",gae=cae,vae=die.f,yae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Zre:l?Zre[u]||Hoe(u,{}):(Zre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=vae(n,r))&&a.value:n[r],!gae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;sae(i,o)}(e.sham||o&&o.sham)&&bie(i,"sham",!0),Hie(n,r,i,e)}},mae=Array.isArray||function(e){return"Array"==poe(e)},bae={};bae[rie("toStringTag")]="z";var wae="[object z]"===String(bae),Eae=rie("toStringTag"),Dae=Zre.Object,Sae="Arguments"==poe(function(){return arguments}()),xae=wae?poe: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=Dae(e),Eae))?n:Sae?poe(t):"Object"==(r=poe(t))&&woe(t.callee)?"Arguments":r},Cae=function(){},Aae=[],Oae=Soe("Reflect","construct"),kae=/^\s*(?:class|function)\b/,Bae=coe(kae.exec),Fae=!kae.exec(Cae),Tae=function(e){if(!woe(e))return!1;try{return Oae(Cae,Aae,e),!0}catch(e){return!1}},_ae=!Oae||Jre((function(){var e;return Tae(Tae.call)||!Tae(Object)||!Tae((function(){e=!0}))||e}))?function(e){if(!woe(e))return!1;switch(xae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fae||!!Bae(kae,xie(e))}:Tae,Pae=function(e,t,n){var r=aie(t);r in e?mie.f(e,r,ioe(0,n)):e[r]=n},jae=rie("species"),Nae=coe([].slice),Iae=Foe>=51||!Jre((function(){var e=[];return(e.constructor={})[jae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Lae=rie("species"),Rae=Zre.Array,Mae=Math.max;yae({target:"Array",proto:!0,forced:!Iae},{slice:function(e,t){var n,r,o,i=boe(this),a=Zie(i),u=Kie(e,a),s=Kie(void 0===t?a:t,a);if(mae(i)&&(n=i.constructor,(_ae(n)&&(n===Rae||mae(n.prototype))||Eoe(n)&&null===(n=n[Lae]))&&(n=void 0),n===Rae||void 0===n))return Nae(i,u,s);for(r=new(void 0===n?Rae:n)(Mae(s-u,0)),o=0;u<s;u++,o++)u in i&&Pae(r,o,i[u]);return r.length=o,r}});var zae=wae?{}.toString:function(){return"[object "+xae(this)+"]"};wae||Hie(Object.prototype,"toString",zae,{unsafe:!0});var $ae,Hae=Zre.String,Vae=function(e){if("Symbol"===xae(e))throw TypeError("Cannot convert a Symbol value to a string");return Hae(e)},Uae=function(){var e=gie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Wae=Zre.RegExp,Gae=Jre((function(){var e=Wae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qae=Gae||Jre((function(){return!Wae("a","y").sticky})),Kae={BROKEN_CARET:Gae||Jre((function(){var e=Wae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:qae,UNSUPPORTED_Y:Gae},Yae=Object.keys||function(e){return tae(e,nae)},Xae=Qre?Object.defineProperties:function(e,t){gie(e);for(var n,r=boe(t),o=Yae(t),i=o.length,a=0;i>a;)mie.f(e,n=o[a++],r[n]);return e},Zae=Soe("document","documentElement"),Jae=kie("IE_PROTO"),Qae=function(){},eue=function(e){return"<script>"+e+"<\/script>"},tue=function(e){e.write(eue("")),e.close();var t=e.parentWindow.Object;return e=null,t},nue=function(){try{$ae=new ActiveXObject("htmlfile")}catch(e){}var e,t;nue="undefined"!=typeof document?document.domain&&$ae?tue($ae):((t=lie("iframe")).style.display="none",Zae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(eue("document.F=Object")),e.close(),e.F):tue($ae);for(var n=nae.length;n--;)delete nue.prototype[nae[n]];return nue()};Bie[Jae]=!0;var rue,oue,iue=Object.create||function(e,t){var n;return null!==e?(Qae.prototype=gie(e),n=new Qae,Qae.prototype=null,n[Jae]=e):n=nue(),void 0===t?n:Xae(n,t)},aue=Zre.RegExp,uue=Jre((function(){var e=aue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),sue=Zre.RegExp,lue=Jre((function(){var e=sue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),cue=Lie.get,fue=Uoe("native-string-replace",String.prototype.replace),due=RegExp.prototype.exec,pue=due,hue=coe("".charAt),gue=coe("".indexOf),vue=coe("".replace),yue=coe("".slice),mue=(oue=/b*/g,toe(due,rue=/a/,"a"),toe(due,oue,"a"),0!==rue.lastIndex||0!==oue.lastIndex),bue=Kae.BROKEN_CARET,wue=void 0!==/()??/.exec("")[1];(mue||wue||bue||uue||lue)&&(pue=function(e){var t,n,r,o,i,a,u,s=this,l=cue(s),c=Vae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=toe(pue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bue&&s.sticky,h=toe(Uae,s),g=s.source,v=0,y=c;if(p&&(h=vue(h,"y",""),-1===gue(h,"g")&&(h+="g"),y=yue(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==hue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),wue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),mue&&(r=s.lastIndex),o=toe(due,p?n:s,y),p?o?(o.input=yue(o.input,v),o[0]=yue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:mue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),wue&&o&&o.length>1&&toe(fue,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=iue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Eue=pue;yae({target:"RegExp",proto:!0,forced:/./.exec!==Eue},{exec:Eue});var Due=Function.prototype,Sue=Due.apply,xue=Due.bind,Cue=Due.call,Aue="object"==typeof Reflect&&Reflect.apply||(xue?Cue.bind(Sue):function(){return Cue.apply(Sue,arguments)}),Oue=rie("species"),kue=RegExp.prototype,Bue=rie("match"),Fue=Zre.TypeError,Tue=rie("species"),_ue=function(e,t){var n,r=gie(e).constructor;return void 0===r||null==(n=gie(r)[Tue])?t:function(e){if(_ae(e))return e;throw Fue(Ioe(e)+" is not a constructor")}(n)},Pue=coe("".charAt),jue=coe("".charCodeAt),Nue=coe("".slice),Iue=function(e){return function(t,n){var r,o,i=Vae(moe(t)),a=Wie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=jue(i,a))<55296||r>56319||a+1===u||(o=jue(i,a+1))<56320||o>57343?e?Pue(i,a):r:e?Nue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Lue={codeAt:Iue(!1),charAt:Iue(!0)},Rue=Lue.charAt,Mue=function(e,t,n){return t+(n?Rue(e,t).length:1)},zue=Zre.Array,$ue=Math.max,Hue=function(e,t,n){for(var r=Zie(e),o=Kie(t,r),i=Kie(void 0===n?r:n,r),a=zue($ue(i-o,0)),u=0;o<i;o++,u++)Pae(a,u,e[o]);return a.length=u,a},Vue=Zre.TypeError,Uue=function(e,t){var n=e.exec;if(woe(n)){var r=toe(n,e,t);return null!==r&&gie(r),r}if("RegExp"===poe(e))return toe(Eue,e,t);throw Vue("RegExp#exec called on incompatible receiver")},Wue=Kae.UNSUPPORTED_Y,Gue=Math.min,que=[].push,Kue=coe(/./.exec),Yue=coe(que),Xue=coe("".slice);!function(e,t,n,r){var o=rie(e),i=!Jre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Jre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Oue]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=coe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Vae(moe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Eoe(r=e)||!(void 0!==(o=r[Bue])?o:"RegExp"==poe(r)))return toe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=toe(Eue,p,i))&&!((s=p.lastIndex)>d&&(Yue(c,Xue(i,d,u.index)),u.length>1&&u.index<i.length&&Aue(que,c,Hue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Kue(p,"")||Yue(c,""):Yue(c,Xue(i,d)),c.length>a?Hue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:toe(t,this,e,n)}:t,[function(t,n){var o=moe(this),i=null==t?void 0:Moe(t,e);return i?toe(i,t,o,n):toe(r,Vae(o),t,n)},function(e,o){var i=gie(this),a=Vae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=_ue(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Wue?"g":"y"),f=new s(Wue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Uue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Wue?0:h;var v,y=Uue(f,Wue?Xue(a,h):a);if(null===y||(v=Gue(Xie(f.lastIndex+(Wue?h:0)),a.length))===p)h=Mue(a,h,l);else{if(Yue(g,Xue(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Yue(g,y[m]),g.length===d)return g;h=p=v}}return Yue(g,Xue(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=coe(e),s=t.exec;return s===Eue||s===kue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Hie(String.prototype,e,s[0]),Hie(kue,o,s[1])}r&&bie(kue[o],"sham",!0)}("split",0,!!Jre((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]})),Wue);var Zue=function(){return Zue=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},Zue.apply(this,arguments)};function Jue(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 Que(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 ese=rie("unscopables"),tse=Array.prototype;null==tse[ese]&&mie.f(tse,ese,{configurable:!0,value:iue(null)});var nse,rse,ose,ise=function(e){tse[ese][e]=!0},ase={},use=!Jre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sse=kie("IE_PROTO"),lse=Zre.Object,cse=lse.prototype,fse=use?lse.getPrototypeOf:function(e){var t=Goe(e);if(Koe(t,sse))return t[sse];var n=t.constructor;return woe(n)&&t instanceof n?n.prototype:t instanceof lse?cse:null},dse=rie("iterator"),pse=!1;[].keys&&("next"in(ose=[].keys())?(rse=fse(fse(ose)))!==Object.prototype&&(nse=rse):pse=!0);var hse=null==nse||Jre((function(){var e={};return nse[dse].call(e)!==e}));hse&&(nse={}),woe(nse[dse])||Hie(nse,dse,(function(){return this}));var gse={IteratorPrototype:nse,BUGGY_SAFARI_ITERATORS:pse},vse=mie.f,yse=rie("toStringTag"),mse=function(e,t,n){e&&!Koe(e=n?e:e.prototype,yse)&&vse(e,yse,{configurable:!0,value:t})},bse=gse.IteratorPrototype,wse=function(){return this},Ese=Zre.String,Dse=Zre.TypeError,Sse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=coe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return gie(n),function(e){if("object"==typeof e||woe(e))return e;throw Dse("Can't set "+Ese(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),xse=$ie.PROPER,Cse=$ie.CONFIGURABLE,Ase=gse.IteratorPrototype,Ose=gse.BUGGY_SAFARI_ITERATORS,kse=rie("iterator"),Bse=function(){return this},Fse=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=iue(bse,{next:ioe(1,n)}),mse(e,o,!1),ase[o]=wse}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Ose&&e in p)return p[e];switch(e){case"keys":case"values":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[kse]||p["@@iterator"]||o&&p[o],g=!Ose&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=fse(v.call(new e)))!==Object.prototype&&u.next&&(fse(u)!==Ase&&(Sse?Sse(u,Ase):woe(u[kse])||Hie(u,kse,Bse)),mse(u,f,!0)),xse&&"values"==o&&h&&"values"!==h.name&&(Cse?bie(p,"name","values"):(d=!0,g=function(){return toe(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Ose||d||!(l in p))&&Hie(p,l,s[l]);else yae({target:t,proto:!0,forced:Ose||d},s);return p[kse]!==g&&Hie(p,kse,g,{name:o}),ase[t]=g,s},Tse=Lie.set,_se=Lie.getterFor("Array Iterator"),Pse=Fse(Array,"Array",(function(e,t){Tse(this,{type:"Array Iterator",target:boe(e),index:0,kind:t})}),(function(){var e=_se(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ase.Arguments=ase.Array,ise("keys"),ise("values"),ise("entries");var jse=Lue.charAt,Nse=Lie.set,Ise=Lie.getterFor("String Iterator");Fse(String,"String",(function(e){Nse(this,{type:"String Iterator",string:Vae(e),index:0})}),(function(){var e,t=Ise(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jse(n,r),t.index+=e.length,{value:e,done:!1})}));var Lse=function(e,t,n){for(var r in t)Hie(e,r,t[r],n);return e},Rse=oae.f,Mse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zse={f:function(e){return Mse&&"Window"==poe(e)?function(e){try{return Rse(e)}catch(e){return Hue(Mse)}}(e):Rse(boe(e))}},$se=Jre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Hse=Object.isExtensible,Vse=Jre((function(){Hse(1)}))||$se?function(e){return!!Eoe(e)&&(!$se||"ArrayBuffer"!=poe(e))&&(!Hse||Hse(e))}:Hse,Use=!Jre((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wse=qre((function(e){var t=mie.f,n=!1,r=Joe("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=oae.f,t=coe([].splice),o={};o[r]=1,e(o).length&&(oae.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},yae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zse.f}))},fastKey:function(e,t){if(!Eoe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Koe(e,r)){if(!Vse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Koe(e,r)){if(!Vse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Use&&n&&Vse(e)&&!Koe(e,r)&&i(e),e}};Bie[r]=!0})),Gse=coe(coe.bind),qse=function(e,t){return Roe(e),void 0===t?e:Gse?Gse(e,t):function(){return e.apply(t,arguments)}},Kse=rie("iterator"),Yse=Array.prototype,Xse=rie("iterator"),Zse=function(e){if(null!=e)return Moe(e,Xse)||Moe(e,"@@iterator")||ase[xae(e)]},Jse=Zre.TypeError,Qse=function(e,t,n){var r,o;gie(e);try{if(!(r=Moe(e,"return"))){if("throw"===t)throw n;return n}r=toe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return gie(r),n},ele=Zre.TypeError,tle=function(e,t){this.stopped=e,this.result=t},nle=tle.prototype,rle=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=qse(t,f),v=function(e){return r&&Qse(r,"normal",e),new tle(!0,e)},y=function(e){return d?(gie(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Zse(e)))throw ele(Ioe(e)+" is not iterable");if(void 0!==(c=o)&&(ase.Array===c||Yse[Kse]===c)){for(i=0,a=Zie(e);a>i;i++)if((u=y(e[i]))&&xoe(nle,u))return u;return new tle(!1)}r=function(e,t){var n=arguments.length<2?Zse(e):t;if(Roe(n))return gie(toe(n,e));throw Jse(Ioe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=toe(s,r)).done;){try{u=y(l.value)}catch(e){Qse(r,"throw",e)}if("object"==typeof u&&u&&xoe(nle,u))return u}return new tle(!1)},ole=Zre.TypeError,ile=function(e,t){if(xoe(t,e))return e;throw ole("Incorrect invocation")},ale=rie("iterator"),ule=!1;try{var sle=0,lle={next:function(){return{done:!!sle++}},return:function(){ule=!0}};lle[ale]=function(){return this},Array.from(lle,(function(){throw 2}))}catch(Rl){}var cle=function(e,t){if(!t&&!ule)return!1;var n=!1;try{var r={};r[ale]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},fle=rie("species"),dle=Zre.Array,ple=function(e,t){return new(function(e){var t;return mae(e)&&(t=e.constructor,(_ae(t)&&(t===dle||mae(t.prototype))||Eoe(t)&&null===(t=t[fle]))&&(t=void 0)),void 0===t?dle:t}(e))(0===t?0:t)},hle=coe([].push),gle=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,l,c,f){for(var d,p,h=Goe(s),g=voe(h),v=qse(l,c),y=Zie(g),m=0,b=f||ple,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:hle(w,d)}else switch(e){case 4:return!1;case 7:hle(w,d)}return i?-1:r||o?o:w}},vle={forEach:gle(0),map:gle(1),filter:gle(2),some:gle(3),every:gle(4),find:gle(5),findIndex:gle(6),filterReject:gle(7)},yle=Wse.getWeakData,mle=Lie.set,ble=Lie.getterFor,wle=vle.find,Ele=vle.findIndex,Dle=coe([].splice),Sle=0,xle=function(e){return e.frozen||(e.frozen=new Cle)},Cle=function(){this.entries=[]},Ale=function(e,t){return wle(e.entries,(function(e){return e[0]===t}))};Cle.prototype={get:function(e){var t=Ale(this,e);if(t)return t[1]},has:function(e){return!!Ale(this,e)},set:function(e,t){var n=Ale(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ele(this.entries,(function(t){return t[0]===e}));return~t&&Dle(this.entries,t,1),!!~t}};var Ole,kle={getConstructor:function(e,t,n,r){var o=e((function(e,o){ile(e,i),mle(e,{type:t,id:Sle++,frozen:void 0}),null!=o&&rle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=ble(t),u=function(e,t,n){var r=a(e),o=yle(gie(t),!0);return!0===o?xle(r).set(t,n):o[r.id]=n,e};return Lse(i,{delete:function(e){var t=a(this);if(!Eoe(e))return!1;var n=yle(e);return!0===n?xle(t).delete(e):n&&Koe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Eoe(e))return!1;var n=yle(e);return!0===n?xle(t).has(e):n&&Koe(n,t.id)}}),Lse(i,n?{get:function(e){var t=a(this);if(Eoe(e)){var n=yle(e);return!0===n?xle(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Ble=Lie.enforce,Fle=!Zre.ActiveXObject&&"ActiveXObject"in Zre,Tle=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_le=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Zre[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=coe(u[e]);Hie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Eoe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Eoe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Eoe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(gae(e,!woe(a)||!(o||u.forEach&&!Jre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Wse.enable();else if(gae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Jre((function(){f.has(1)})),h=cle((function(e){new a(e)})),g=!o&&Jre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){ile(e,u);var n=function(e,t,n){var r,o;return Sse&&woe(r=t.constructor)&&r!==n&&Eoe(o=r.prototype)&&o!==n.prototype&&Sse(e,o),e}(new a,e,s);return null!=t&&rle(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,yae({global:!0,forced:s!=a},l),mse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Tle,kle);if(Aie&&Fle){Ole=kle.getConstructor(Tle,"WeakMap",!0),Wse.enable();var Ple=_le.prototype,jle=coe(Ple.delete),Nle=coe(Ple.has),Ile=coe(Ple.get),Lle=coe(Ple.set);Lse(Ple,{delete:function(e){if(Eoe(e)&&!Vse(e)){var t=Ble(this);return t.frozen||(t.frozen=new Ole),jle(this,e)||t.frozen.delete(e)}return jle(this,e)},has:function(e){if(Eoe(e)&&!Vse(e)){var t=Ble(this);return t.frozen||(t.frozen=new Ole),Nle(this,e)||t.frozen.has(e)}return Nle(this,e)},get:function(e){if(Eoe(e)&&!Vse(e)){var t=Ble(this);return t.frozen||(t.frozen=new Ole),Nle(this,e)?Ile(this,e):t.frozen.get(e)}return Ile(this,e)},set:function(e,t){if(Eoe(e)&&!Vse(e)){var n=Ble(this);n.frozen||(n.frozen=new Ole),Nle(this,e)?Lle(this,e,t):n.frozen.set(e,t)}else Lle(this,e,t);return this}})}var Rle={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},Mle=lie("span").classList,zle=Mle&&Mle.constructor&&Mle.constructor.prototype,$le=zle===Object.prototype?void 0:zle,Hle=rie("iterator"),Vle=rie("toStringTag"),Ule=Pse.values,Wle=function(e,t){if(e){if(e[Hle]!==Ule)try{bie(e,Hle,Ule)}catch(t){e[Hle]=Ule}if(e[Vle]||bie(e,Vle,t),Rle[t])for(var n in Pse)if(e[n]!==Pse[n])try{bie(e,n,Pse[n])}catch(t){e[n]=Pse[n]}}};for(var Gle in Rle)Wle(Zre[Gle]&&Zre[Gle].prototype,Gle);Wle($le,"DOMTokenList");var qle=function(e,t){var n=[][e];return!!n&&Jre((function(){n.call(null,t||function(){throw 1},1)}))},Kle=vle.forEach,Yle=qle("forEach")?[].forEach:function(e){return Kle(this,e,arguments.length>1?arguments[1]:void 0)},Xle=function(e){if(e&&e.forEach!==Yle)try{bie(e,"forEach",Yle)}catch(t){e.forEach=Yle}};for(var Zle in Rle)Rle[Zle]&&Xle(Zre[Zle]&&Zre[Zle].prototype);Xle($le);var Jle,Qle,ece,tce,nce=Zre.Promise,rce=rie("species"),oce=/(?:ipad|iphone|ipod).*applewebkit/i.test(Coe),ice="process"==poe(Zre.process),ace=Zre.setImmediate,uce=Zre.clearImmediate,sce=Zre.process,lce=Zre.Dispatch,cce=Zre.Function,fce=Zre.MessageChannel,dce=Zre.String,pce=0,hce={};try{Jle=Zre.location}catch(Rl){}var gce=function(e){if(Koe(hce,e)){var t=hce[e];delete hce[e],t()}},vce=function(e){return function(){gce(e)}},yce=function(e){gce(e.data)},mce=function(e){Zre.postMessage(dce(e),Jle.protocol+"//"+Jle.host)};ace&&uce||(ace=function(e){var t=Nae(arguments,1);return hce[++pce]=function(){Aue(woe(e)?e:cce(e),void 0,t)},Qle(pce),pce},uce=function(e){delete hce[e]},ice?Qle=function(e){sce.nextTick(vce(e))}:lce&&lce.now?Qle=function(e){lce.now(vce(e))}:fce&&!oce?(tce=(ece=new fce).port2,ece.port1.onmessage=yce,Qle=qse(tce.postMessage,tce)):Zre.addEventListener&&woe(Zre.postMessage)&&!Zre.importScripts&&Jle&&"file:"!==Jle.protocol&&!Jre(mce)?(Qle=mce,Zre.addEventListener("message",yce,!1)):Qle="onreadystatechange"in lie("script")?function(e){Zae.appendChild(lie("script")).onreadystatechange=function(){Zae.removeChild(this),gce(e)}}:function(e){setTimeout(vce(e),0)});var bce,wce,Ece,Dce,Sce,xce,Cce,Ace,Oce={set:ace,clear:uce},kce=/ipad|iphone|ipod/i.test(Coe)&&void 0!==Zre.Pebble,Bce=/web0s(?!.*chrome)/i.test(Coe),Fce=die.f,Tce=Oce.set,_ce=Zre.MutationObserver||Zre.WebKitMutationObserver,Pce=Zre.document,jce=Zre.process,Nce=Zre.Promise,Ice=Fce(Zre,"queueMicrotask"),Lce=Ice&&Ice.value;Lce||(bce=function(){var e,t;for(ice&&(e=jce.domain)&&e.exit();wce;){t=wce.fn,wce=wce.next;try{t()}catch(e){throw wce?Dce():Ece=void 0,e}}Ece=void 0,e&&e.enter()},oce||ice||Bce||!_ce||!Pce?!kce&&Nce&&Nce.resolve?((Cce=Nce.resolve(void 0)).constructor=Nce,Ace=qse(Cce.then,Cce),Dce=function(){Ace(bce)}):ice?Dce=function(){jce.nextTick(bce)}:(Tce=qse(Tce,Zre),Dce=function(){Tce(bce)}):(Sce=!0,xce=Pce.createTextNode(""),new _ce(bce).observe(xce,{characterData:!0}),Dce=function(){xce.data=Sce=!Sce}));var Rce,Mce,zce,$ce,Hce=Lce||function(e){var t={fn:e,next:void 0};Ece&&(Ece.next=t),wce||(wce=t,Dce()),Ece=t},Vce=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Roe(t),this.reject=Roe(n)},Uce={f:function(e){return new Vce(e)}},Wce=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Gce="object"==typeof window,qce=Oce.set,Kce=rie("species"),Yce="Promise",Xce=Lie.getterFor(Yce),Zce=Lie.set,Jce=Lie.getterFor(Yce),Qce=nce&&nce.prototype,efe=nce,tfe=Qce,nfe=Zre.TypeError,rfe=Zre.document,ofe=Zre.process,ife=Uce.f,afe=ife,ufe=!!(rfe&&rfe.createEvent&&Zre.dispatchEvent),sfe=woe(Zre.PromiseRejectionEvent),lfe=!1,cfe=gae(Yce,(function(){var e=xie(efe),t=e!==String(efe);if(!t&&66===Foe)return!0;if(Foe>=51&&/native code/.test(e))return!1;var n=new efe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Kce]=r,!(lfe=n.then((function(){}))instanceof r)||!t&&Gce&&!sfe})),ffe=cfe||!cle((function(e){efe.all(e).catch((function(){}))})),dfe=function(e){var t;return!(!Eoe(e)||!woe(t=e.then))&&t},pfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hce((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&yfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(nfe("Promise-chain cycle")):(u=dfe(a))?toe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&gfe(e)}))}},hfe=function(e,t,n){var r,o;ufe?((r=rfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Zre.dispatchEvent(r)):r={promise:t,reason:n},!sfe&&(o=Zre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Zre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},gfe=function(e){toe(qce,Zre,(function(){var t,n=e.facade,r=e.value;if(vfe(e)&&(t=Wce((function(){ice?ofe.emit("unhandledRejection",r,n):hfe("unhandledrejection",n,r)})),e.rejection=ice||vfe(e)?2:1,t.error))throw t.value}))},vfe=function(e){return 1!==e.rejection&&!e.parent},yfe=function(e){toe(qce,Zre,(function(){var t=e.facade;ice?ofe.emit("rejectionHandled",t):hfe("rejectionhandled",t,e.value)}))},mfe=function(e,t,n){return function(r){e(t,r,n)}},bfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pfe(e,!0))},wfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nfe("Promise can't be resolved itself");var r=dfe(t);r?Hce((function(){var n={done:!1};try{toe(r,t,mfe(wfe,n,e),mfe(bfe,n,e))}catch(t){bfe(n,t,e)}})):(e.value=t,e.state=1,pfe(e,!1))}catch(t){bfe({done:!1},t,e)}}};if(cfe&&(tfe=(efe=function(e){ile(this,tfe),Roe(e),toe(Rce,this);var t=Xce(this);try{e(mfe(wfe,t),mfe(bfe,t))}catch(e){bfe(t,e)}}).prototype,(Rce=function(e){Zce(this,{type:Yce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lse(tfe,{then:function(e,t){var n=Jce(this),r=n.reactions,o=ife(_ue(this,efe));return o.ok=!woe(e)||e,o.fail=woe(t)&&t,o.domain=ice?ofe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&pfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Mce=function(){var e=new Rce,t=Xce(e);this.promise=e,this.resolve=mfe(wfe,t),this.reject=mfe(bfe,t)},Uce.f=ife=function(e){return e===efe||e===zce?new Mce(e):afe(e)},woe(nce)&&Qce!==Object.prototype)){$ce=Qce.then,lfe||(Hie(Qce,"then",(function(e,t){var n=this;return new efe((function(e,t){toe($ce,n,e,t)})).then(e,t)}),{unsafe:!0}),Hie(Qce,"catch",tfe.catch,{unsafe:!0}));try{delete Qce.constructor}catch(Rl){}Sse&&Sse(Qce,tfe)}yae({global:!0,wrap:!0,forced:cfe},{Promise:efe}),mse(efe,Yce,!1),function(e){var t=Soe("Promise"),n=mie.f;Qre&&t&&!t[rce]&&n(t,rce,{configurable:!0,get:function(){return this}})}(),zce=Soe(Yce),yae({target:Yce,stat:!0,forced:cfe},{reject:function(e){var t=ife(this);return toe(t.reject,void 0,e),t.promise}}),yae({target:Yce,stat:!0,forced:cfe},{resolve:function(e){return function(e,t){if(gie(e),Eoe(t)&&t.constructor===e)return t;var n=Uce.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),yae({target:Yce,stat:!0,forced:ffe},{all:function(e){var t=this,n=ife(t),r=n.resolve,o=n.reject,i=Wce((function(){var n=Roe(t.resolve),i=[],a=0,u=1;rle(e,(function(e){var s=a++,l=!1;u++,toe(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ife(t),r=n.reject,o=Wce((function(){var o=Roe(t.resolve);rle(e,(function(e){toe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Efe=$ie.PROPER,Dfe=RegExp.prototype,Sfe=Dfe.toString,xfe=coe(Uae),Cfe=Jre((function(){return"/a/b"!=Sfe.call({source:"a",flags:"b"})})),Afe=Efe&&"toString"!=Sfe.name;(Cfe||Afe)&&Hie(RegExp.prototype,"toString",(function(){var e=gie(this),t=Vae(e.source),n=e.flags;return"/"+t+"/"+Vae(void 0===n&&xoe(Dfe,e)&&!("flags"in Dfe)?xfe(e):n)}),{unsafe:!0});var Ofe=$ie.EXISTS,kfe=mie.f,Bfe=Function.prototype,Ffe=coe(Bfe.toString),Tfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_fe=coe(Tfe.exec);Qre&&!Ofe&&kfe(Bfe,"name",{configurable:!0,get:function(){try{return _fe(Tfe,Ffe(this))[1]}catch(e){return""}}});var Pfe=new WeakMap;function jfe(e){return e.getMenuConfig("uploadImage")}function Nfe(e,t){return Jue(this,void 0,void 0,(function(){return Que(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;l$(e,i,t.name,a),n("ok")}}}))]}))}))}function Ife(e,t){return Jue(this,void 0,void 0,(function(){var n,r,o,i;return Que(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Pfe.get(e);if(null!=t)return t;var n=jfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=w_(Zue(Zue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return l$(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;l$(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;l$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Pfe.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 Lfe(e,t){var n,r;return Jue(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Que(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=jfe(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(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Nfe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return l$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Ife(e,c)];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]),l&&!l.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 Rfe=coe([].join),Mfe=voe!=Object,zfe=qle("join",",");yae({target:"Array",proto:!0,forced:Mfe||!zfe},{join:function(e){return Rfe(boe(this),void 0===e?",":e)}}),Xp&&(Bp.fn.append=Xp),Lp&&(Bp.fn.on=Lp),nh&&(Bp.fn.remove=nh),Ip&&(Bp.fn.val=Ip),ah&&(Bp.fn.click=ah),Hp&&(Bp.fn.hide=Hp);var $fe=function(){function e(){this.title=dP("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 c$(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 l$(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Lfe(e,t)}))}},e}(),Hfe={menus:[{key:"uploadImage",factory:function(){return new $fe},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(c$(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]}))?Lfe(e,o):t(r)}},n}};fP("en",{highLightModule:{selectLang:"Language"}}),fP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Vfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Ufe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wfe,Gfe,qfe=function(e){return e&&e.Math==Math&&e},Kfe=qfe("object"==typeof globalThis&&globalThis)||qfe("object"==typeof window&&window)||qfe("object"==typeof self&&self)||qfe("object"==typeof Vfe&&Vfe)||function(){return this}()||Function("return this")(),Yfe=Object.defineProperty,Xfe=function(e,t){try{Yfe(Kfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Kfe[e]=t}return t},Zfe=Kfe["__core-js_shared__"]||Xfe("__core-js_shared__",{}),Jfe=Ufe((function(e){(e.exports=function(e,t){return Zfe[e]||(Zfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Qfe=Function.prototype,ede=Qfe.bind,tde=Qfe.call,nde=ede&&ede.bind(tde),rde=ede?function(e){return e&&nde(tde,e)}:function(e){return e&&function(){return tde.apply(e,arguments)}},ode=Kfe.TypeError,ide=function(e){if(null==e)throw ode("Can't call method on "+e);return e},ade=Kfe.Object,ude=function(e){return ade(ide(e))},sde=rde({}.hasOwnProperty),lde=Object.hasOwn||function(e,t){return sde(ude(e),t)},cde=0,fde=Math.random(),dde=rde(1..toString),pde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dde(++cde+fde,36)},hde=function(e){return"function"==typeof e},gde=function(e){return hde(e)?e:void 0},vde=function(e,t){return arguments.length<2?gde(Kfe[e]):Kfe[e]&&Kfe[e][t]},yde=vde("navigator","userAgent")||"",mde=Kfe.process,bde=Kfe.Deno,wde=mde&&mde.versions||bde&&bde.version,Ede=wde&&wde.v8;Ede&&(Gfe=(Wfe=Ede.split("."))[0]>0&&Wfe[0]<4?1:+(Wfe[0]+Wfe[1])),!Gfe&&yde&&(!(Wfe=yde.match(/Edge\/(\d+)/))||Wfe[1]>=74)&&(Wfe=yde.match(/Chrome\/(\d+)/))&&(Gfe=+Wfe[1]);var Dde=Gfe,Sde=function(e){try{return!!e()}catch(e){return!0}},xde=!!Object.getOwnPropertySymbols&&!Sde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Dde&&Dde<41})),Cde=xde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ade=Jfe("wks"),Ode=Kfe.Symbol,kde=Ode&&Ode.for,Bde=Cde?Ode:Ode&&Ode.withoutSetter||pde,Fde=function(e){if(!lde(Ade,e)||!xde&&"string"!=typeof Ade[e]){var t="Symbol."+e;xde&&lde(Ode,e)?Ade[e]=Ode[e]:Ade[e]=Cde&&kde?kde(t):Bde(t)}return Ade[e]},Tde={};Tde[Fde("toStringTag")]="z";var _de="[object z]"===String(Tde),Pde=!Sde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jde=function(e){return"object"==typeof e?null!==e:hde(e)},Nde=Kfe.document,Ide=jde(Nde)&&jde(Nde.createElement),Lde=function(e){return Ide?Nde.createElement(e):{}},Rde=!Pde&&!Sde((function(){return 7!=Object.defineProperty(Lde("div"),"a",{get:function(){return 7}}).a})),Mde=Kfe.String,zde=Kfe.TypeError,$de=function(e){if(jde(e))return e;throw zde(Mde(e)+" is not an object")},Hde=Function.prototype.call,Vde=Hde.bind?Hde.bind(Hde):function(){return Hde.apply(Hde,arguments)},Ude=rde({}.isPrototypeOf),Wde=Kfe.Object,Gde=Cde?function(e){return"symbol"==typeof e}:function(e){var t=vde("Symbol");return hde(t)&&Ude(t.prototype,Wde(e))},qde=Kfe.String,Kde=function(e){try{return qde(e)}catch(e){return"Object"}},Yde=Kfe.TypeError,Xde=function(e){if(hde(e))return e;throw Yde(Kde(e)+" is not a function")},Zde=function(e,t){var n=e[t];return null==n?void 0:Xde(n)},Jde=Kfe.TypeError,Qde=Kfe.TypeError,epe=Fde("toPrimitive"),tpe=function(e){var t=function(e,t){if(!jde(e)||Gde(e))return e;var n,r=Zde(e,epe);if(r){if(void 0===t&&(t="default"),n=Vde(r,e,t),!jde(n)||Gde(n))return n;throw Qde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&hde(n=e.toString)&&!jde(r=Vde(n,e)))return r;if(hde(n=e.valueOf)&&!jde(r=Vde(n,e)))return r;if("string"!==t&&hde(n=e.toString)&&!jde(r=Vde(n,e)))return r;throw Jde("Can't convert object to primitive value")}(e,t)}(e,"string");return Gde(t)?t:t+""},npe=Kfe.TypeError,rpe=Object.defineProperty,ope={f:Pde?rpe:function(e,t,n){if($de(e),t=tpe(t),$de(n),Rde)try{return rpe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw npe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ipe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ape=Pde?function(e,t,n){return ope.f(e,t,ipe(1,n))}:function(e,t,n){return e[t]=n,e},upe=rde(Function.toString);hde(Zfe.inspectSource)||(Zfe.inspectSource=function(e){return upe(e)});var spe,lpe,cpe,fpe=Zfe.inspectSource,dpe=Kfe.WeakMap,ppe=hde(dpe)&&/native code/.test(fpe(dpe)),hpe=Jfe("keys"),gpe=function(e){return hpe[e]||(hpe[e]=pde(e))},vpe={},ype=Kfe.TypeError,mpe=Kfe.WeakMap;if(ppe||Zfe.state){var bpe=Zfe.state||(Zfe.state=new mpe),wpe=rde(bpe.get),Epe=rde(bpe.has),Dpe=rde(bpe.set);spe=function(e,t){if(Epe(bpe,e))throw new ype("Object already initialized");return t.facade=e,Dpe(bpe,e,t),t},lpe=function(e){return wpe(bpe,e)||{}},cpe=function(e){return Epe(bpe,e)}}else{var Spe=gpe("state");vpe[Spe]=!0,spe=function(e,t){if(lde(e,Spe))throw new ype("Object already initialized");return t.facade=e,ape(e,Spe,t),t},lpe=function(e){return lde(e,Spe)?e[Spe]:{}},cpe=function(e){return lde(e,Spe)}}var xpe={set:spe,get:lpe,has:cpe,enforce:function(e){return cpe(e)?lpe(e):spe(e,{})},getterFor:function(e){return function(t){var n;if(!jde(t)||(n=lpe(t)).type!==e)throw ype("Incompatible receiver, "+e+" required");return n}}},Cpe=Function.prototype,Ape=Pde&&Object.getOwnPropertyDescriptor,Ope=lde(Cpe,"name"),kpe={EXISTS:Ope,PROPER:Ope&&"something"===function(){}.name,CONFIGURABLE:Ope&&(!Pde||Pde&&Ape(Cpe,"name").configurable)},Bpe=Ufe((function(e){var t=kpe.CONFIGURABLE,n=xpe.get,r=xpe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;hde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!lde(i,"name")||t&&i.name!==f)&&ape(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kfe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ape(e,n,i)):l?e[n]=i:Xfe(n,i)})(Function.prototype,"toString",(function(){return hde(this)&&n(this).source||fpe(this)}))})),Fpe=rde({}.toString),Tpe=rde("".slice),_pe=function(e){return Tpe(Fpe(e),8,-1)},Ppe=Fde("toStringTag"),jpe=Kfe.Object,Npe="Arguments"==_pe(function(){return arguments}()),Ipe=_de?_pe: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=jpe(e),Ppe))?n:Npe?_pe(t):"Object"==(r=_pe(t))&&hde(t.callee)?"Arguments":r},Lpe=_de?{}.toString:function(){return"[object "+Ipe(this)+"]"};_de||Bpe(Object.prototype,"toString",Lpe,{unsafe:!0});var Rpe,Mpe={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},zpe=Lde("span").classList,$pe=zpe&&zpe.constructor&&zpe.constructor.prototype,Hpe=$pe===Object.prototype?void 0:$pe,Vpe=rde(rde.bind),Upe=Kfe.Object,Wpe=rde("".split),Gpe=Sde((function(){return!Upe("z").propertyIsEnumerable(0)}))?function(e){return"String"==_pe(e)?Wpe(e,""):Upe(e)}:Upe,qpe=Math.ceil,Kpe=Math.floor,Ype=function(e){var t=+e;return t!=t||0===t?0:(t>0?Kpe:qpe)(t)},Xpe=Math.min,Zpe=function(e){return e>0?Xpe(Ype(e),9007199254740991):0},Jpe=function(e){return Zpe(e.length)},Qpe=Array.isArray||function(e){return"Array"==_pe(e)},ehe=function(){},the=[],nhe=vde("Reflect","construct"),rhe=/^\s*(?:class|function)\b/,ohe=rde(rhe.exec),ihe=!rhe.exec(ehe),ahe=function(e){if(!hde(e))return!1;try{return nhe(ehe,the,e),!0}catch(e){return!1}},uhe=!nhe||Sde((function(){var e;return ahe(ahe.call)||!ahe(Object)||!ahe((function(){e=!0}))||e}))?function(e){if(!hde(e))return!1;switch(Ipe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ihe||!!ohe(rhe,fpe(e))}:ahe,she=Fde("species"),lhe=Kfe.Array,che=function(e,t){return new(function(e){var t;return Qpe(e)&&(t=e.constructor,(uhe(t)&&(t===lhe||Qpe(t.prototype))||jde(t)&&null===(t=t[she]))&&(t=void 0)),void 0===t?lhe:t}(e))(0===t?0:t)},fhe=rde([].push),dhe=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,l,c,f){for(var d,p,h=ude(s),g=Gpe(h),v=function(e,t){return Xde(e),void 0===t?e:Vpe?Vpe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Jpe(g),m=0,b=f||che,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[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:fhe(w,d)}else switch(e){case 4:return!1;case 7:fhe(w,d)}return i?-1:r||o?o:w}},phe=[dhe(0),dhe(1),dhe(2),dhe(3),dhe(4),dhe(5),dhe(6),dhe(7)][0],hhe=(Rpe=[].forEach)&&Sde((function(){Rpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return phe(this,e,arguments.length>1?arguments[1]:void 0)},ghe=function(e){if(e&&e.forEach!==hhe)try{ape(e,"forEach",hhe)}catch(t){e.forEach=hhe}};for(var vhe in Mpe)Mpe[vhe]&&ghe(Kfe[vhe]&&Kfe[vhe].prototype);ghe(Hpe);var yhe={}.propertyIsEnumerable,mhe=Object.getOwnPropertyDescriptor,bhe={f:mhe&&!yhe.call({1:2},1)?function(e){var t=mhe(this,e);return!!t&&t.enumerable}:yhe},whe=function(e){return Gpe(ide(e))},Ehe=Object.getOwnPropertyDescriptor,Dhe={f:Pde?Ehe:function(e,t){if(e=whe(e),t=tpe(t),Rde)try{return Ehe(e,t)}catch(e){}if(lde(e,t))return ipe(!Vde(bhe.f,e,t),e[t])}},She=Math.max,xhe=Math.min,Che=function(e,t){var n=Ype(e);return n<0?She(n+t,0):xhe(n,t)},Ahe=function(e){return function(t,n,r){var o,i=whe(t),a=Jpe(i),u=Che(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ohe=(Ahe(!0),Ahe(!1)),khe=rde([].push),Bhe=function(e,t){var n,r=whe(e),o=0,i=[];for(n in r)!lde(vpe,n)&&lde(r,n)&&khe(i,n);for(;t.length>o;)lde(r,n=t[o++])&&(~Ohe(i,n)||khe(i,n));return i},Fhe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],The=Fhe.concat("length","prototype"),_he={f:Object.getOwnPropertyNames||function(e){return Bhe(e,The)}},Phe={f:Object.getOwnPropertySymbols},jhe=rde([].concat),Nhe=vde("Reflect","ownKeys")||function(e){var t=_he.f($de(e)),n=Phe.f;return n?jhe(t,n(e)):t},Ihe=function(e,t){for(var n=Nhe(t),r=ope.f,o=Dhe.f,i=0;i<n.length;i++){var a=n[i];lde(e,a)||r(e,a,o(t,a))}},Lhe=/#|\.prototype\./,Rhe=function(e,t){var n=zhe[Mhe(e)];return n==Hhe||n!=$he&&(hde(t)?Sde(t):!!t)},Mhe=Rhe.normalize=function(e){return String(e).replace(Lhe,".").toLowerCase()},zhe=Rhe.data={},$he=Rhe.NATIVE="N",Hhe=Rhe.POLYFILL="P",Vhe=Rhe,Uhe=Dhe.f,Whe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Kfe:l?Kfe[u]||Xfe(u,{}):(Kfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Uhe(n,r))&&a.value:n[r],!Vhe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ihe(i,o)}(e.sham||o&&o.sham)&&ape(i,"sham",!0),Bpe(n,r,i,e)}},Ghe=Object.keys||function(e){return Bhe(e,Fhe)},qhe=Object.assign,Khe=Object.defineProperty,Yhe=rde([].concat),Xhe=!qhe||Sde((function(){if(Pde&&1!==qhe({b:1},qhe(Khe({},"a",{enumerable:!0,get:function(){Khe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qhe({},e)[n]||Ghe(qhe({},t)).join("")!=r}))?function(e,t){for(var n=ude(e),r=arguments.length,o=1,i=Phe.f,a=bhe.f;r>o;)for(var u,s=Gpe(arguments[o++]),l=i?Yhe(Ghe(s),i(s)):Ghe(s),c=l.length,f=0;c>f;)u=l[f++],Pde&&!Vde(a,s,u)||(n[u]=s[u]);return n}:qhe;Whe({target:"Object",stat:!0,forced:Object.assign!==Xhe},{assign:Xhe});var Zhe=Ufe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/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&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},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 l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&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],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||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(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),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 l(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 g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,D=r.next,S=s;D!==t.tail&&!(f&&S>=f.reach);S+=D.value.length,D=D.next){var x=D.value;if(t.length>e.length)return;if(!(x instanceof i)){var C,A=1;if(m){if(!(C=a(E,S,e,y)))break;var O=C.index,k=C.index+C[0].length,B=S;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(S=B-=D.value.length,D.value instanceof i)continue;for(var F=D;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,x=e.slice(S,B),C.index-=S}else if(!(C=a(E,0,x,y)))continue;O=C.index;var T=C[0],_=x.slice(0,O),P=x.slice(O+T.length),j=S+x.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(_&&(N=l(t,N,_),S+=_.length),c(t,N,A),D=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,D,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,D.prev,S,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 l(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 c(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:{});e.exports&&(e.exports=t),void 0!==Vfe&&(Vfe.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"},/"|'/]}},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:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,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|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\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])*(?=\.(?:prototype|constructor))/,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:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,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]+/}}}),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='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!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>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,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),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},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(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|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;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"},/"|'/]}},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:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,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(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),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|(?=\{))/i,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(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/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(?:__halt_compiler|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|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\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])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),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},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|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",{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],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}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\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+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|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(?:True|False|None)\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?\b/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|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=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(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",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.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}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),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:/[?&|]/}},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|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_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|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(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\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 l=s(i),c=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),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),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]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"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,[l,v,g,D,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:S},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 O=C+"|"+x,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),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 _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),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:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,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)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\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)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],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},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(?:_INSERT|COL)?|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(?:S|ING)?|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(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|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)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],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(?:true|false)\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|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(?:true|false)\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}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};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+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},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|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|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|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|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|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|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|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|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;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\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","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.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:/^---|---$/,"font-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],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)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),c,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:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|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:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Jhe=["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 Qhe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Qhe(t)}),0)}var ege,tge=Kfe.String,nge=function(e){if("Symbol"===Ipe(e))throw TypeError("Cannot convert a Symbol value to a string");return tge(e)},rge=function(){var e=$de(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},oge=Kfe.RegExp,ige=Sde((function(){var e=oge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),age=ige||Sde((function(){return!oge("a","y").sticky})),uge={BROKEN_CARET:ige||Sde((function(){var e=oge("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:age,UNSUPPORTED_Y:ige},sge=Pde?Object.defineProperties:function(e,t){$de(e);for(var n,r=whe(t),o=Ghe(t),i=o.length,a=0;i>a;)ope.f(e,n=o[a++],r[n]);return e},lge=vde("document","documentElement"),cge=gpe("IE_PROTO"),fge=function(){},dge=function(e){return"<script>"+e+"<\/script>"},pge=function(e){e.write(dge("")),e.close();var t=e.parentWindow.Object;return e=null,t},hge=function(){try{ege=new ActiveXObject("htmlfile")}catch(e){}var e,t;hge="undefined"!=typeof document?document.domain&&ege?pge(ege):((t=Lde("iframe")).style.display="none",lge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(dge("document.F=Object")),e.close(),e.F):pge(ege);for(var n=Fhe.length;n--;)delete hge.prototype[Fhe[n]];return hge()};vpe[cge]=!0;var gge,vge,yge=Object.create||function(e,t){var n;return null!==e?(fge.prototype=$de(e),n=new fge,fge.prototype=null,n[cge]=e):n=hge(),void 0===t?n:sge(n,t)},mge=Kfe.RegExp,bge=Sde((function(){var e=mge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),wge=Kfe.RegExp,Ege=Sde((function(){var e=wge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Dge=xpe.get,Sge=Jfe("native-string-replace",String.prototype.replace),xge=RegExp.prototype.exec,Cge=xge,Age=rde("".charAt),Oge=rde("".indexOf),kge=rde("".replace),Bge=rde("".slice),Fge=(vge=/b*/g,Vde(xge,gge=/a/,"a"),Vde(xge,vge,"a"),0!==gge.lastIndex||0!==vge.lastIndex),Tge=uge.BROKEN_CARET,_ge=void 0!==/()??/.exec("")[1];(Fge||_ge||Tge||bge||Ege)&&(Cge=function(e){var t,n,r,o,i,a,u,s=this,l=Dge(s),c=nge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Vde(Cge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Tge&&s.sticky,h=Vde(rge,s),g=s.source,v=0,y=c;if(p&&(h=kge(h,"y",""),-1===Oge(h,"g")&&(h+="g"),y=Bge(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Age(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),_ge&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Fge&&(r=s.lastIndex),o=Vde(xge,p?n:s,y),p?o?(o.input=Bge(o.input,v),o[0]=Bge(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Fge&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_ge&&o&&o.length>1&&Vde(Sge,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=yge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Pge=Cge;Whe({target:"RegExp",proto:!0,forced:/./.exec!==Pge},{exec:Pge});var jge=Function.prototype,Nge=jge.apply,Ige=jge.bind,Lge=jge.call,Rge="object"==typeof Reflect&&Reflect.apply||(Ige?Lge.bind(Nge):function(){return Lge.apply(Nge,arguments)}),Mge=Fde("species"),zge=RegExp.prototype,$ge=Fde("match"),Hge=Kfe.TypeError,Vge=Fde("species"),Uge=rde("".charAt),Wge=rde("".charCodeAt),Gge=rde("".slice),qge=function(e){return function(t,n){var r,o,i=nge(ide(t)),a=Ype(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Wge(i,a))<55296||r>56319||a+1===u||(o=Wge(i,a+1))<56320||o>57343?e?Uge(i,a):r:e?Gge(i,a,a+2):o-56320+(r-55296<<10)+65536}},Kge=(qge(!1),qge(!0)),Yge=function(e,t,n){return t+(n?Kge(e,t).length:1)},Xge=Kfe.Array,Zge=Math.max,Jge=function(e,t,n){for(var r,o,i,a,u=Jpe(e),s=Che(t,u),l=Che(void 0===n?u:n,u),c=Xge(Zge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=tpe(o))in r?ope.f(r,a,ipe(0,i)):r[a]=i;return c.length=f,c},Qge=Kfe.TypeError,eve=function(e,t){var n=e.exec;if(hde(n)){var r=Vde(n,e,t);return null!==r&&$de(r),r}if("RegExp"===_pe(e))return Vde(Pge,e,t);throw Qge("RegExp#exec called on incompatible receiver")},tve=uge.UNSUPPORTED_Y,nve=Math.min,rve=[].push,ove=rde(/./.exec),ive=rde(rve),ave=rde("".slice);!function(e,t,n,r){var o=Fde(e),i=!Sde((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Sde((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Mge]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=rde(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=nge(ide(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!jde(r=e)||!(void 0!==(o=r[$ge])?o:"RegExp"==_pe(r)))return Vde(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Vde(Pge,p,i))&&!((s=p.lastIndex)>d&&(ive(c,ave(i,d,u.index)),u.length>1&&u.index<i.length&&Rge(rve,c,Jge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&ove(p,"")||ive(c,""):ive(c,ave(i,d)),c.length>a?Jge(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Vde(t,this,e,n)}:t,[function(t,n){var o=ide(this),i=null==t?void 0:Zde(t,e);return i?Vde(i,t,o,n):Vde(r,nge(o),t,n)},function(e,o){var i=$de(this),a=nge(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=$de(e).constructor;return void 0===r||null==(n=$de(r)[Vge])?t:function(e){if(uhe(e))return e;throw Hge(Kde(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(tve?"g":"y"),f=new s(tve?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===eve(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=tve?0:h;var v,y=eve(f,tve?ave(a,h):a);if(null===y||(v=nve(Zpe(f.lastIndex+(tve?h:0)),a.length))===p)h=Yge(a,h,l);else{if(ive(g,ave(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(ive(g,y[m]),g.length===d)return g;h=p=v}}return ive(g,ave(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=rde(e),s=t.exec;return s===Pge||s===zge.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Bpe(String.prototype,e,s[0]),Bpe(zge,o,s[1])}r&&ape(zge[o],"sham",!0)}("split",0,!!Sde((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]})),tve),Whe({global:!0},{globalThis:Kfe}),Pp&&(Bp.fn.attr=Pp);var uve=kpe.PROPER,sve=RegExp.prototype,lve=sve.toString,cve=rde(rge),fve=Sde((function(){return"/a/b"!=lve.call({source:"a",flags:"b"})})),dve=uve&&"toString"!=lve.name;(fve||dve)&&Bpe(RegExp.prototype,"toString",(function(){var e=$de(this),t=nge(e.source),n=e.flags;return"/"+t+"/"+nge(void 0===n&&Ude(sve,e)&&!("flags"in sve)?cve(e):n)}),{unsafe:!0});var pve=function(){function e(){this.title=dP("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(!wf.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()};hd.setNodes(e,n,{match:function(e){return AO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=AO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=AO.getParentNode(e,t);return wf.isElement(n)?"pre"!==n.type?null:t:null},e}(),hve={renderStyle:function(e,t){var n=e,r=t,o="";return Jhe.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=Bp(e);if(!wf.isElement(t))return t;if("code"!==AO.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 pve},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>"}}]},gve=/"/g,vve=rde("".replace);Whe({target:"String",proto:!0,forced:Sde((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=nge(ide(this)),r="<a",(r+=' name="'+vve(nge(t),gve,""")+'"')+">"+n+"</a>";var t,n,r}});var yve=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(!Xf.isText(e))return null;var t=AO.getParentNode(null,e);if(t&&"code"===AO.getNodeType(t)){var n=AO.getParentNode(null,t);if(n&&"pre"===AO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Zhe.languages[t];return n?Zhe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=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 g=h.value,v=d+Qhe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},mve=function(){return mve=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},mve.apply(this,arguments)},bve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=mve(mve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=mve(mve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=mve(mve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=mve(mve({},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=TC(TC({},o),t||{});if(null!=BO[n])throw new Error("Duplicated key '"+n+"' in menu items");BO[n]=r,function(e,t){null!=t&&(kO[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;pT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){dT.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;HO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){$O.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){FB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;_B[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){TB.push(e)}(e)},e.registerModule=function(e){wve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function wve(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,l=e.editorPlugin;t&&t.forEach((function(e){return bve.registerMenu(e)})),n&&n.forEach((function(e){return bve.registerRenderElem(e)})),r&&bve.registerRenderStyle(r),o&&o.forEach((function(e){return bve.registerElemToHtml(e)})),i&&bve.registerStyleToHtml(i),a&&a.forEach((function(e){return bve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return bve.registerParseElemHtml(e)})),s&&bve.registerParseStyleHtml(s),l&&bve.registerPlugin(l)}bq.forEach((function(e){return wve(e)})),wve(MQ),wve(D3),wve(Wre),wve(Hfe),wve(hve);var Eve='<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>',Dve={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"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Sve={hoverbarKeys:mve(mve({},Dve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};bve.setEditorConfig(mve(mve({},Sve),{decorate:yve}));var xve={hoverbarKeys:Dve};bve.setSimpleEditorConfig(mve(mve({},xve),{decorate:yve}));var Cve={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:dP("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:dP("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:dP("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:dP("editor.image"),iconSvg:Eve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:dP("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"]};bve.setToolbarConfig(Cve);var Ave={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:dP("editor.image"),iconSvg:Eve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};bve.setSimpleToolbarConfig(Ave);var Ove=function(){return Ove=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},Ove.apply(this,arguments)};function kve(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 Bve(e){var t=e.defaultContent,n=void 0===t?[]:t,o=e.onCreated,i=e.defaultHtml,a=void 0===i?"":i,u=e.value,s=void 0===u?"":u,l=e.onChange,c=e.defaultConfig,f=void 0===c?{}:c,d=e.mode,p=void 0===d?"default":d,h=e.style,g=void 0===h?{}:h,v=e.className,y=(0,r.useRef)(null),m=kve((0,r.useState)(null),2),b=m[0],w=m[1],E=kve((0,r.useState)(""),2),D=E[0],S=E[1],x=function(e){o&&o(e);var t=f.onCreated;t&&t(e)},C=function(e){S(e.getHtml()),l&&l(e);var t=f.onChange;t&&t(e)},A=function(e){var t=f.onDestroyed;w(null),t&&t(e)};return(0,r.useEffect)((function(){if(null!=b&&s!==D)try{b.setHtml(s)}catch(e){console.error(e)}}),[s]),(0,r.useEffect)((function(){var e;if(null!=y.current&&null==b&&!(null===(e=y.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=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,l="simple"===(void 0===s?"default":s)?bve.simpleEditorConfig:bve.editorConfig,c=mve(mve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return s_({selector:n,config:mve(mve(mve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:bve.plugins})}({selector:y.current,config:Ove(Ove({},f),{onCreated:x,onChange:C,onDestroyed:A}),content:n,html:a||s,mode:p});w(t)}}),[b]),r.createElement("div",{style:g,ref:y,className:v})}function Fve(e){var t=e.editor,n=e.defaultConfig,o=void 0===n?{}:n,i=e.mode,a=void 0===i?"default":i,u=e.style,s=void 0===u?{}:u,l=e.className,c=(0,r.useRef)(null);return(0,r.useEffect)((function(){null!=c.current&&null!=t&&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?bve.simpleToolbarConfig:bve.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 cF(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=TC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new p_(n,i);return jA.set(a,e),NA.set(e,a),a}(n,{selector:t,config:mve(mve({},u),o)})}({editor:t,selector:c.current,config:o,mode:a})}),[t]),r.createElement("div",{style:s,ref:c,className:l})}}}]);
|