jobsys-newbie
Version:
Enhanced component based on ant-design-vue
186 lines • 811 kB
JavaScript
var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qz(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function is(t){var e={exports:{}};return t(e,e.exports),e.exports}var yi,z0,Bh=function(t){return t&&t.Math==Math&&t},kt=Bh(typeof globalThis=="object"&&globalThis)||Bh(typeof window=="object"&&window)||Bh(typeof self=="object"&&self)||Bh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),X3=Function.prototype,fS=X3.apply,Kz=X3.bind,dS=X3.call,Q_=typeof Reflect=="object"&&Reflect.apply||(Kz?dS.bind(fS):function(){return dS.apply(fS,arguments)}),tP=Function.prototype,p4=tP.bind,h4=tP.call,Yz=p4&&p4.bind(h4),ge=p4?function(t){return t&&Yz(h4,t)}:function(t){return t&&function(){return h4.apply(t,arguments)}},sn=function(t){return typeof t=="function"},Gn=function(t){try{return!!t()}catch{return!0}},Hn=!Gn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Oc=Function.prototype.call,zn=Oc.bind?Oc.bind(Oc):function(){return Oc.apply(Oc,arguments)},pS={}.propertyIsEnumerable,hS=Object.getOwnPropertyDescriptor,Xz=hS&&!pS.call({1:2},1)?function(t){var e=hS(this,t);return!!e&&e.enumerable}:pS,Z3={f:Xz},Yr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Zz=ge({}.toString),Jz=ge("".slice),wu=function(t){return Jz(Zz(t),8,-1)},zy=kt.Object,Qz=ge("".split),eP=Gn(function(){return!zy("z").propertyIsEnumerable(0)})?function(t){return wu(t)=="String"?Qz(t,""):zy(t)}:zy,t$=kt.TypeError,J3=function(t){if(t==null)throw t$("Can't call method on "+t);return t},Po=function(t){return eP(J3(t))},tr=function(t){return typeof t=="object"?t!==null:sn(t)},Qn={},gS=function(t){return sn(t)?t:void 0},rc=function(t,e){return arguments.length<2?gS(Qn[t])||gS(kt[t]):Qn[t]&&Qn[t][e]||kt[t]&&kt[t][e]},Td=ge({}.isPrototypeOf),$y=rc("navigator","userAgent")||"",vS=kt.process,yS=kt.Deno,mS=vS&&vS.versions||yS&&yS.version,bS=mS&&mS.v8;bS&&(z0=(yi=bS.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!z0&&$y&&(!(yi=$y.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=$y.match(/Chrome\/(\d+)/))&&(z0=+yi[1]);var Fh,wg=z0,po=!!Object.getOwnPropertySymbols&&!Gn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wg&&wg<41}),Q3=po&&!Symbol.sham&&typeof Symbol.iterator=="symbol",e$=kt.Object,dl=Q3?function(t){return typeof t=="symbol"}:function(t){var e=rc("Symbol");return sn(e)&&Td(e.prototype,e$(t))},n$=kt.String,g4=function(t){try{return n$(t)}catch{return"Object"}},r$=kt.TypeError,t5=function(t){if(sn(t))return t;throw r$(g4(t)+" is not a function")},Eg=function(t,e){var n=t[e];return n==null?void 0:t5(n)},o$=kt.TypeError,i$=Object.defineProperty,Qi=kt["__core-js_shared__"]||function(t,e){try{i$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),as=is(function(t){(t.exports=function(e,n){return Qi[e]||(Qi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),a$=kt.Object,Bp=function(t){return a$(J3(t))},u$=ge({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return u$(Bp(t),e)},s$=0,l$=Math.random(),c$=ge(1 .toString),Dg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+c$(++s$+l$,36)},kc=as("wks"),Eu=kt.Symbol,wS=Eu&&Eu.for,f$=Q3?Eu:Eu&&Eu.withoutSetter||Dg,Bn=function(t){if(!Vt(kc,t)||!po&&typeof kc[t]!="string"){var e="Symbol."+t;po&&Vt(Eu,t)?kc[t]=Eu[t]:kc[t]=Q3&&wS?wS(e):f$(e)}return kc[t]},d$=kt.TypeError,p$=Bn("toPrimitive"),h$=function(t,e){if(!tr(t)||dl(t))return t;var n,r=Eg(t,p$);if(r){if(e===void 0&&(e="default"),n=zn(r,t,e),!tr(n)||dl(n))return n;throw d$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&sn(a=o.toString)&&!tr(u=zn(a,o))||sn(a=o.valueOf)&&!tr(u=zn(a,o))||i!=="string"&&sn(a=o.toString)&&!tr(u=zn(a,o)))return u;throw o$("Can't convert object to primitive value")}(t,e)},oc=function(t){var e=h$(t,"string");return dl(e)?e:e+""},v4=kt.document,g$=tr(v4)&&tr(v4.createElement),nP=function(t){return g$?v4.createElement(t):{}},rP=!Hn&&!Gn(function(){return Object.defineProperty(nP("div"),"a",{get:function(){return 7}}).a!=7}),ES=Object.getOwnPropertyDescriptor,v$=Hn?ES:function(t,e){if(t=Po(t),e=oc(e),rP)try{return ES(t,e)}catch{}if(Vt(t,e))return Yr(!zn(Z3.f,t,e),t[e])},T1={f:v$},y$=/#|\.prototype\./,Fp=function(t,e){var n=b$[m$(t)];return n==E$||n!=w$&&(sn(e)?Gn(e):!!e)},m$=Fp.normalize=function(t){return String(t).replace(y$,".").toLowerCase()},b$=Fp.data={},w$=Fp.NATIVE="N",E$=Fp.POLYFILL="P",D$=Fp,DS=ge(ge.bind),e5=function(t,e){return t5(t),e===void 0?t:DS?DS(t,e):function(){return t.apply(e,arguments)}},x$=kt.String,S$=kt.TypeError,ar=function(t){if(tr(t))return t;throw S$(x$(t)+" is not an object")},C$=kt.TypeError,xS=Object.defineProperty,A$=Hn?xS:function(t,e,n){if(ar(t),e=oc(e),ar(n),rP)try{return xS(t,e,n)}catch{}if("get"in n||"set"in n)throw C$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Pa={f:A$},_n=Hn?function(t,e,n){return Pa.f(t,e,Yr(1,n))}:function(t,e,n){return t[e]=n,t},O$=T1.f,k$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return Q_(t,this,arguments)};return e.prototype=t.prototype,e},qo=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?kt:p?kt[c]:(kt[c]||{}).prototype,g=f?Qn:Qn[c]||_n(Qn,c,{})[c],v=g.prototype;for(o in e)n=!D$(f?o:c+(p?".":"#")+o,t.forced)&&y&&Vt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=O$(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?e5(i,kt):t.wrap&&n?k$(i):d&&sn(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&_n(s,"sham",!0),_n(g,o,s),d&&(Vt(Qn,r=c+"Prototype")||_n(Qn,r,{}),_n(Qn[r],o,i),t.real&&v&&!v[o]&&_n(v,o,i)))},SS=as("keys"),_1=function(t){return SS[t]||(SS[t]=Dg(t))},B$=!Gn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),CS=_1("IE_PROTO"),y4=kt.Object,F$=y4.prototype,xg=B$?y4.getPrototypeOf:function(t){var e=Bp(t);if(Vt(e,CS))return e[CS];var n=e.constructor;return sn(n)&&e instanceof n?n.prototype:e instanceof y4?F$:null},T$=kt.String,_$=kt.TypeError,Sg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return ar(r),function(i){if(typeof i=="object"||sn(i))return i;throw _$("Can't set "+T$(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),P$=Math.ceil,j$=Math.floor,n5=function(t){var e=+t;return e!=e||e===0?0:(e>0?j$:P$)(e)},N$=Math.max,I$=Math.min,m4=function(t,e){var n=n5(t);return n<0?N$(n+e,0):I$(n,e)},L$=Math.min,Tp=function(t){return(e=t.length)>0?L$(n5(e),9007199254740991):0;var e},AS=function(t){return function(e,n,r){var o,i=Po(e),a=Tp(i),u=m4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},R$={includes:AS(!0),indexOf:AS(!1)},_p={},M$=R$.indexOf,OS=ge([].push),oP=function(t,e){var n,r=Po(t),o=0,i=[];for(n in r)!Vt(_p,n)&&Vt(r,n)&&OS(i,n);for(;e.length>o;)Vt(r,n=e[o++])&&(~M$(i,n)||OS(i,n));return i},Cg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],z$=Cg.concat("length","prototype"),$$=Object.getOwnPropertyNames||function(t){return oP(t,z$)},r5={f:$$},$0={f:Object.getOwnPropertySymbols},H$=ge([].concat),V$=rc("Reflect","ownKeys")||function(t){var e=r5.f(ar(t)),n=$0.f;return n?H$(e,n(t)):e},o5=Object.keys||function(t){return oP(t,Cg)},U$=Hn?Object.defineProperties:function(t,e){ar(t);for(var n,r=Po(e),o=o5(e),i=o.length,a=0;i>a;)Pa.f(t,n=o[a++],r[n]);return t},W$=rc("document","documentElement"),iP=_1("IE_PROTO"),Hy=function(){},aP=function(t){return"<script>"+t+"<\/script>"},kS=function(t){t.write(aP("")),t.close();var e=t.parentWindow.Object;return t=null,e},H0=function(){try{Fh=new ActiveXObject("htmlfile")}catch{}var t,e;H0=typeof document<"u"?document.domain&&Fh?kS(Fh):((e=nP("iframe")).style.display="none",W$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(aP("document.F=Object")),t.close(),t.F):kS(Fh);for(var n=Cg.length;n--;)delete H0.prototype[Cg[n]];return H0()};_p[iP]=!0;var oi=Object.create||function(t,e){var n;return t!==null?(Hy.prototype=ar(t),n=new Hy,Hy.prototype=null,n[iP]=t):n=H0(),e===void 0?n:U$(n,e)},b4=function(t,e,n){var r=oc(e);r in t?Pa.f(t,r,Yr(0,n)):t[r]=n},G$=kt.Array,q$=Math.max,uP=function(t,e,n){for(var r=Tp(t),o=m4(e,r),i=m4(n===void 0?r:n,r),a=G$(q$(i-o,0)),u=0;o<i;o++,u++)b4(a,u,t[o]);return a.length=u,a},K$=ge("".replace),Y$=ge("".split),X$=ge([].join),w4=String(Error("zxcasd").stack),sP=/\n\s*at [^:]*:[^\n]*/,Z$=sP.test(w4),J$=/@[^\n]*\n/.test(w4)&&!/zxcasd/.test(w4),Q$=function(t,e){if(typeof t!="string")return t;if(Z$)for(;e--;)t=K$(t,sP,"");else if(J$)return X$(uP(Y$(t,`
`),e),`
`);return t},tH=function(t,e){tr(e)&&"cause"in e&&_n(t,"cause",e.cause)},ti={},eH=Bn("iterator"),nH=Array.prototype,lP={};lP[Bn("toStringTag")]="z";var i5=String(lP)==="[object z]",rH=Bn("toStringTag"),oH=kt.Object,iH=wu(function(){return arguments}())=="Arguments",Pp=i5?wu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=oH(t),rH))=="string"?n:iH?wu(e):(r=wu(e))=="Object"&&sn(e.callee)?"Arguments":r},aH=Bn("iterator"),BS=function(t){if(t!=null)return Eg(t,aH)||Eg(t,"@@iterator")||ti[Pp(t)]},uH=kt.TypeError,FS=function(t,e,n){var r,o;ar(t);try{if(!(r=Eg(t,"return"))){if(e==="throw")throw n;return n}r=zn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ar(r),n},sH=kt.TypeError,V0=function(t,e){this.stopped=t,this.result=e},TS=V0.prototype,lH=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=e5(e,c),g=function(m){return r&&FS(r,"normal",m),new V0(!0,m)},v=function(m){return f?(ar(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=BS(t)))throw sH(g4(t)+" is not iterable");if(function(m){return m!==void 0&&(ti.Array===m||nH[eH]===m)}(o)){for(i=0,a=Tp(t);a>i;i++)if((u=v(t[i]))&&Td(TS,u))return u;return new V0(!1)}r=function(m,h){var b=arguments.length<2?BS(m):h;if(t5(b))return ar(zn(b,m));throw uH(g4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=zn(s,r)).done;){try{u=v(l.value)}catch(m){FS(r,"throw",m)}if(typeof u=="object"&&u&&Td(TS,u))return u}return new V0(!1)},cH=kt.String,_d=function(t){if(Pp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cH(t)},fH=function(t,e){return t===void 0?arguments.length<2?"":e:_d(t)},dH=!Gn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Yr(1,7)),t.stack!==7)}),pH=Bn("toStringTag"),Ag=kt.Error,hH=[].push,Pd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Td(Vy,this);Sg?n=Sg(new Ag(void 0),o?xg(this):Vy):(n=o?this:oi(Vy),_n(n,pH,"Error")),_n(n,"message",fH(e,"")),dH&&_n(n,"stack",Q$(n.stack,1)),tH(n,r);var i=[];return lH(t,hH,{that:i}),_n(n,"errors",i),n};Sg?Sg(Pd,Ag):function(t,e){for(var n=V$(e),r=Pa.f,o=T1.f,i=0;i<n.length;i++){var a=n[i];Vt(t,a)||r(t,a,o(e,a))}}(Pd,Ag);var Vy=Pd.prototype=oi(Ag.prototype,{constructor:Yr(1,Pd),message:Yr(1,""),name:Yr(1,"AggregateError")});qo({global:!0},{AggregateError:Pd});var gH=ge(Function.toString);sn(Qi.inspectSource)||(Qi.inspectSource=function(t){return gH(t)});var Og,od,kg,cP=Qi.inspectSource,_S=kt.WeakMap,vH=sn(_S)&&/native code/.test(cP(_S)),E4=kt.TypeError,yH=kt.WeakMap;if(vH||Qi.state){var Wa=Qi.state||(Qi.state=new yH),mH=ge(Wa.get),PS=ge(Wa.has),bH=ge(Wa.set);Og=function(t,e){if(PS(Wa,t))throw new E4("Object already initialized");return e.facade=t,bH(Wa,t,e),e},od=function(t){return mH(Wa,t)||{}},kg=function(t){return PS(Wa,t)}}else{var Ds=_1("state");_p[Ds]=!0,Og=function(t,e){if(Vt(t,Ds))throw new E4("Object already initialized");return e.facade=t,_n(t,Ds,e),e},od=function(t){return Vt(t,Ds)?t[Ds]:{}},kg=function(t){return Vt(t,Ds)}}var qi,jS,NS,ic={set:Og,get:od,has:kg,enforce:function(t){return kg(t)?od(t):Og(t,{})},getterFor:function(t){return function(e){var n;if(!tr(e)||(n=od(e)).type!==t)throw E4("Incompatible receiver, "+t+" required");return n}}},fP=Function.prototype,wH=Hn&&Object.getOwnPropertyDescriptor,Uy=Vt(fP,"name"),EH={EXISTS:Uy,PROPER:Uy&&(function(){}).name==="something",CONFIGURABLE:Uy&&(!Hn||Hn&&wH(fP,"name").configurable)},Cl=function(t,e,n,r){r&&r.enumerable?t[e]=n:_n(t,e,n)},D4=Bn("iterator"),dP=!1;[].keys&&("next"in(NS=[].keys())?(jS=xg(xg(NS)))!==Object.prototype&&(qi=jS):dP=!0);var DH=qi==null||Gn(function(){var t={};return qi[D4].call(t)!==t});qi=DH?{}:oi(qi),sn(qi[D4])||Cl(qi,D4,function(){return this});var pP={IteratorPrototype:qi,BUGGY_SAFARI_ITERATORS:dP},xH=i5?{}.toString:function(){return"[object "+Pp(this)+"]"},SH=Pa.f,IS=Bn("toStringTag"),Bg=function(t,e,n,r){if(t){var o=n?t:t.prototype;Vt(o,IS)||SH(o,IS,{configurable:!0,value:e}),r&&!i5&&_n(o,"toString",xH)}},CH=pP.IteratorPrototype,AH=function(){return this},OH=EH.PROPER,Th=pP.BUGGY_SAFARI_ITERATORS,Wy=Bn("iterator"),kH=function(){return this},hP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=oi(CH,{next:Yr(+!w,b)}),Bg(m,D,!1,!0),ti[D]=AH})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Th&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Wy]||d["@@iterator"]||o&&d[o],g=!Th&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=xg(v.call(new t)))!==Object.prototype&&u.next&&(Bg(u,f,!0,!0),ti[f]=kH),OH&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return zn(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Th||p||!(l in d))&&Cl(d,l,s[l]);else qo({target:e,proto:!0,forced:Th||p},s);return a&&d[Wy]!==g&&Cl(d,Wy,g,{name:o}),ti[e]=g,s},BH=ic.set,FH=ic.getterFor("Array Iterator");hP(Array,"Array",function(t,e){BH(this,{type:"Array Iterator",target:Po(t),index:0,kind:e})},function(){var t=FH(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ti.Arguments=ti.Array;var TH=ge("".charAt),LS=ge("".charCodeAt),_H=ge("".slice),RS=function(t){return function(e,n){var r,o,i=_d(J3(e)),a=n5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=LS(i,a))<55296||r>56319||a+1===u||(o=LS(i,a+1))<56320||o>57343?t?TH(i,a):r:t?_H(i,a,a+2):o-56320+(r-55296<<10)+65536}},PH={codeAt:RS(!1),charAt:RS(!0)}.charAt,jH=ic.set,NH=ic.getterFor("String Iterator");hP(String,"String",function(t){jH(this,{type:"String Iterator",string:_d(t),index:0})},function(){var t,e=NH(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=PH(n,r),e.index+=t.length,{value:t,done:!1})});var IH=Qn.AggregateError,MS=Bn("toStringTag");for(var Gy 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 zS=kt[Gy],qy=zS&&zS.prototype;qy&&Pp(qy)!==MS&&_n(qy,MS,Gy),ti[Gy]=ti.Array}var mi,U0,LH=IH,_h=function(t){return t&&t.Math==Math&&t},Et=_h(typeof globalThis=="object"&&globalThis)||_h(typeof window=="object"&&window)||_h(typeof self=="object"&&self)||_h(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),cn=function(t){try{return!!t()}catch{return!0}},Ao=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bc=Function.prototype.call,un=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},$S={}.propertyIsEnumerable,HS=Object.getOwnPropertyDescriptor,RH=HS&&!$S.call({1:2},1)?function(t){var e=HS(this,t);return!!e&&e.enumerable}:$S,MH={f:RH},ta=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},gP=Function.prototype,x4=gP.bind,S4=gP.call,zH=x4&&x4.bind(S4),ie=x4?function(t){return t&&zH(S4,t)}:function(t){return t&&function(){return S4.apply(t,arguments)}},$H=ie({}.toString),HH=ie("".slice),Du=function(t){return HH($H(t),8,-1)},Ky=Et.Object,VH=ie("".split),vP=cn(function(){return!Ky("z").propertyIsEnumerable(0)})?function(t){return Du(t)=="String"?VH(t,""):Ky(t)}:Ky,UH=Et.TypeError,P1=function(t){if(t==null)throw UH("Can't call method on "+t);return t},ac=function(t){return vP(P1(t))},Ge=function(t){return typeof t=="function"},Vr=function(t){return typeof t=="object"?t!==null:Ge(t)},WH=function(t){return Ge(t)?t:void 0},jp=function(t,e){return arguments.length<2?WH(Et[t]):Et[t]&&Et[t][e]},Fg=ie({}.isPrototypeOf),Yy=jp("navigator","userAgent")||"",VS=Et.process,US=Et.Deno,WS=VS&&VS.versions||US&&US.version,GS=WS&&WS.v8;GS&&(U0=(mi=GS.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!U0&&Yy&&(!(mi=Yy.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Yy.match(/Chrome\/(\d+)/))&&(U0=+mi[1]);var qS=U0,C4=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&qS&&qS<41}),a5=C4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",GH=Et.Object,A4=a5?function(t){return typeof t=="symbol"}:function(t){var e=jp("Symbol");return Ge(e)&&Fg(e.prototype,GH(t))},qH=Et.String,O4=function(t){try{return qH(t)}catch{return"Object"}},KH=Et.TypeError,u5=function(t){if(Ge(t))return t;throw KH(O4(t)+" is not a function")},jd=function(t,e){var n=t[e];return n==null?void 0:u5(n)},YH=Et.TypeError,XH=Object.defineProperty,s5=function(t,e){try{XH(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},ea=Et["__core-js_shared__"]||s5("__core-js_shared__",{}),l5=is(function(t){(t.exports=function(e,n){return ea[e]||(ea[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ZH=Et.Object,c5=function(t){return ZH(P1(t))},JH=ie({}.hasOwnProperty),Vn=Object.hasOwn||function(t,e){return JH(c5(t),e)},QH=0,tV=Math.random(),eV=ie(1 .toString),yP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+eV(++QH+tV,36)},Fc=l5("wks"),xu=Et.Symbol,KS=xu&&xu.for,nV=a5?xu:xu&&xu.withoutSetter||yP,Nn=function(t){if(!Vn(Fc,t)||!C4&&typeof Fc[t]!="string"){var e="Symbol."+t;C4&&Vn(xu,t)?Fc[t]=xu[t]:Fc[t]=a5&&KS?KS(e):nV(e)}return Fc[t]},rV=Et.TypeError,oV=Nn("toPrimitive"),iV=function(t,e){if(!Vr(t)||A4(t))return t;var n,r=jd(t,oV);if(r){if(e===void 0&&(e="default"),n=un(r,t,e),!Vr(n)||A4(n))return n;throw rV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ge(a=o.toString)&&!Vr(u=un(a,o))||Ge(a=o.valueOf)&&!Vr(u=un(a,o))||i!=="string"&&Ge(a=o.toString)&&!Vr(u=un(a,o)))return u;throw YH("Can't convert object to primitive value")}(t,e)},f5=function(t){var e=iV(t,"string");return A4(e)?e:e+""},k4=Et.document,aV=Vr(k4)&&Vr(k4.createElement),d5=function(t){return aV?k4.createElement(t):{}},mP=!Ao&&!cn(function(){return Object.defineProperty(d5("div"),"a",{get:function(){return 7}}).a!=7}),YS=Object.getOwnPropertyDescriptor,uV=Ao?YS:function(t,e){if(t=ac(t),e=f5(e),mP)try{return YS(t,e)}catch{}if(Vn(t,e))return ta(!un(MH.f,t,e),t[e])},p5={f:uV},sV=Et.String,lV=Et.TypeError,ur=function(t){if(Vr(t))return t;throw lV(sV(t)+" is not an object")},cV=Et.TypeError,XS=Object.defineProperty,fV=Ao?XS:function(t,e,n){if(ur(t),e=f5(e),ur(n),mP)try{return XS(t,e,n)}catch{}if("get"in n||"set"in n)throw cV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},uc={f:fV},jn=Ao?function(t,e,n){return uc.f(t,e,ta(1,n))}:function(t,e,n){return t[e]=n,t},dV=ie(Function.toString);Ge(ea.inspectSource)||(ea.inspectSource=function(t){return dV(t)});var Tg,id,_g,h5=ea.inspectSource,ZS=Et.WeakMap,pV=Ge(ZS)&&/native code/.test(h5(ZS)),JS=l5("keys"),g5=function(t){return JS[t]||(JS[t]=yP(t))},v5={},B4=Et.TypeError,hV=Et.WeakMap;if(pV||ea.state){var Ga=ea.state||(ea.state=new hV),gV=ie(Ga.get),QS=ie(Ga.has),vV=ie(Ga.set);Tg=function(t,e){if(QS(Ga,t))throw new B4("Object already initialized");return e.facade=t,vV(Ga,t,e),e},id=function(t){return gV(Ga,t)||{}},_g=function(t){return QS(Ga,t)}}else{var xs=g5("state");v5[xs]=!0,Tg=function(t,e){if(Vn(t,xs))throw new B4("Object already initialized");return e.facade=t,jn(t,xs,e),e},id=function(t){return Vn(t,xs)?t[xs]:{}},_g=function(t){return Vn(t,xs)}}var Uu={set:Tg,get:id,has:_g,enforce:function(t){return _g(t)?id(t):Tg(t,{})},getterFor:function(t){return function(e){var n;if(!Vr(e)||(n=id(e)).type!==t)throw B4("Incompatible receiver, "+t+" required");return n}}},bP=Function.prototype,yV=Ao&&Object.getOwnPropertyDescriptor,Xy=Vn(bP,"name"),y5={EXISTS:Xy,PROPER:Xy&&(function(){}).name==="something",CONFIGURABLE:Xy&&(!Ao||Ao&&yV(bP,"name").configurable)},na=is(function(t){var e=y5.CONFIGURABLE,n=Uu.get,r=Uu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ge(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vn(u,"name")||e&&u.name!==d)&&jn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:jn(i,a,u)):f?i[a]=u:s5(a,u)})(Function.prototype,"toString",function(){return Ge(this)&&n(this).source||h5(this)})}),mV=Math.ceil,bV=Math.floor,m5=function(t){var e=+t;return e!=e||e===0?0:(e>0?bV:mV)(e)},wV=Math.max,EV=Math.min,F4=function(t,e){var n=m5(t);return n<0?wV(n+e,0):EV(n,e)},DV=Math.min,wP=function(t){return t>0?DV(m5(t),9007199254740991):0},j1=function(t){return wP(t.length)},tC=function(t){return function(e,n,r){var o,i=ac(e),a=j1(i),u=F4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},xV={includes:tC(!0),indexOf:tC(!1)}.indexOf,eC=ie([].push),EP=function(t,e){var n,r=ac(t),o=0,i=[];for(n in r)!Vn(v5,n)&&Vn(r,n)&&eC(i,n);for(;e.length>o;)Vn(r,n=e[o++])&&(~xV(i,n)||eC(i,n));return i},Pg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SV=Pg.concat("length","prototype"),CV=Object.getOwnPropertyNames||function(t){return EP(t,SV)},AV={f:CV},OV={f:Object.getOwnPropertySymbols},kV=ie([].concat),BV=jp("Reflect","ownKeys")||function(t){var e=AV.f(ur(t)),n=OV.f;return n?kV(e,n(t)):e},DP=function(t,e){for(var n=BV(e),r=uc.f,o=p5.f,i=0;i<n.length;i++){var a=n[i];Vn(t,a)||r(t,a,o(e,a))}},FV=/#|\.prototype\./,Np=function(t,e){var n=_V[TV(t)];return n==jV||n!=PV&&(Ge(e)?cn(e):!!e)},TV=Np.normalize=function(t){return String(t).replace(FV,".").toLowerCase()},_V=Np.data={},PV=Np.NATIVE="N",jV=Np.POLYFILL="P",NV=Np,IV=p5.f,Ip=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||s5(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=IV(n,r))&&a.value:n[r],!NV(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;DP(i,o)}(t.sham||o&&o.sham)&&jn(i,"sham",!0),na(n,r,i,t)}},xP={};xP[Nn("toStringTag")]="z";var Ph,b5=String(xP)==="[object z]",LV=Nn("toStringTag"),RV=Et.Object,MV=Du(function(){return arguments}())=="Arguments",N1=b5?Du:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=RV(t),LV))=="string"?n:MV?Du(e):(r=Du(e))=="Object"&&Ge(e.callee)?"Arguments":r},zV=Et.String,Su=function(t){if(N1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zV(t)},$V=function(){var t=ur(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},w5=Et.RegExp,E5=cn(function(){var t=w5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),HV=E5||cn(function(){return!w5("a","y").sticky}),VV=E5||cn(function(){var t=w5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UV={BROKEN_CARET:VV,MISSED_STICKY:HV,UNSUPPORTED_Y:E5},WV=Object.keys||function(t){return EP(t,Pg)},GV=Ao?Object.defineProperties:function(t,e){ur(t);for(var n,r=ac(e),o=WV(e),i=o.length,a=0;i>a;)uc.f(t,n=o[a++],r[n]);return t},qV=jp("document","documentElement"),SP=g5("IE_PROTO"),Zy=function(){},CP=function(t){return"<script>"+t+"<\/script>"},nC=function(t){t.write(CP("")),t.close();var e=t.parentWindow.Object;return t=null,e},W0=function(){try{Ph=new ActiveXObject("htmlfile")}catch{}var t,e;W0=typeof document<"u"?document.domain&&Ph?nC(Ph):((e=d5("iframe")).style.display="none",qV.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(CP("document.F=Object")),t.close(),t.F):nC(Ph);for(var n=Pg.length;n--;)delete W0.prototype[Pg[n]];return W0()};v5[SP]=!0;var rC,Jy,Lp=Object.create||function(t,e){var n;return t!==null?(Zy.prototype=ur(t),n=new Zy,Zy.prototype=null,n[SP]=t):n=W0(),e===void 0?n:GV(n,e)},KV=Et.RegExp,YV=cn(function(){var t=KV(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),XV=Et.RegExp,ZV=cn(function(){var t=XV("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),JV=Uu.get,QV=l5("native-string-replace",String.prototype.replace),jg=RegExp.prototype.exec,T4=jg,tU=ie("".charAt),eU=ie("".indexOf),nU=ie("".replace),Qy=ie("".slice),tm=(Jy=/b*/g,un(jg,rC=/a/,"a"),un(jg,Jy,"a"),rC.lastIndex!==0||Jy.lastIndex!==0),oC=UV.BROKEN_CARET,em=/()??/.exec("")[1]!==void 0;(tm||em||oC||YV||ZV)&&(T4=function(t){var e,n,r,o,i,a,u,s=this,l=JV(s),c=Su(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(T4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=oC&&s.sticky,y=un($V,s),g=s.source,v=0,m=c;if(d&&(y=nU(y,"y",""),eU(y,"g")===-1&&(y+="g"),m=Qy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tU(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),em&&(n=new RegExp("^"+g+"$(?!\\s)",y)),tm&&(r=s.lastIndex),o=un(jg,d?n:s,m),d?o?(o.input=Qy(o.input,v),o[0]=Qy(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:tm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),em&&o&&o.length>1&&un(QV,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Lp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ng=T4;Ip({target:"RegExp",proto:!0,forced:/./.exec!==Ng},{exec:Ng});var rU=Nn("species"),nm=RegExp.prototype,oU=ie("".charAt),iC=ie("".charCodeAt),iU=ie("".slice),aC=function(t){return function(e,n){var r,o,i=Su(P1(e)),a=m5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=iC(i,a))<55296||r>56319||a+1===u||(o=iC(i,a+1))<56320||o>57343?t?oU(i,a):r:t?iU(i,a,a+2):o-56320+(r-55296<<10)+65536}},AP={codeAt:aC(!1),charAt:aC(!0)},aU=AP.charAt,uU=function(t,e,n){return e+(n?aU(t,e).length:1)},sU=Et.TypeError,uC=function(t,e){var n=t.exec;if(Ge(n)){var r=un(n,t,e);return r!==null&&ur(r),r}if(Du(t)==="RegExp")return un(Ng,t,e);throw sU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Nn(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[rU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ie(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ie(l),g=c.exec;return g===Ng||g===nm.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});na(String.prototype,t,s[0]),na(nm,o,s[1])}r&&jn(nm[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=P1(this),i=r==null?void 0:jd(r,t);return i?un(i,r,o):new RegExp(r)[t](Su(o))},function(r){var o=ur(this),i=Su(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return uC(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=uC(o,i))!==null;){var f=Su(s[0]);l[c]=f,f===""&&(o.lastIndex=uU(i,wP(o.lastIndex),u)),c++}return c===0?null:l}]}),Ip({global:!0},{globalThis:Et});var lU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),sC=g5("IE_PROTO"),_4=Et.Object,cU=_4.prototype,Nd=lU?_4.getPrototypeOf:function(t){var e=c5(t);if(Vn(e,sC))return e[sC];var n=e.constructor;return Ge(n)&&e instanceof n?n.prototype:e instanceof _4?cU:null},fU=Et.String,dU=Et.TypeError,Al=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return ur(r),function(i){if(typeof i=="object"||Ge(i))return i;throw dU("Can't set "+fU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),pU=Et.Array,hU=Math.max,gU=ie("".replace),vU=ie("".split),yU=ie([].join),P4=String(Error("zxcasd").stack),OP=/\n\s*at [^:]*:[^\n]*/,mU=OP.test(P4),bU=/@[^\n]*\n/.test(P4)&&!/zxcasd/.test(P4),wU=function(t,e){if(typeof t!="string")return t;if(mU)for(;e--;)t=gU(t,OP,"");else if(bU)return yU(function(n,r,o){for(var i,a,u,s,l=j1(n),c=F4(r,l),f=F4(o===void 0?l:o,l),p=pU(hU(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=f5(a))in i?uc.f(i,s,ta(0,u)):i[s]=u;return p.length=d,p}(vU(t,`
`),e),`
`);return t},EU=function(t,e){Vr(e)&&"cause"in e&&jn(t,"cause",e.cause)},lC=ie(ie.bind),kP=function(t,e){return u5(t),e===void 0?t:lC?lC(t,e):function(){return t.apply(e,arguments)}},Ol={},DU=Nn("iterator"),xU=Array.prototype,SU=Nn("iterator"),cC=function(t){if(t!=null)return jd(t,SU)||jd(t,"@@iterator")||Ol[N1(t)]},CU=Et.TypeError,fC=function(t,e,n){var r,o;ur(t);try{if(!(r=jd(t,"return"))){if(e==="throw")throw n;return n}r=un(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ur(r),n},AU=Et.TypeError,G0=function(t,e){this.stopped=t,this.result=e},dC=G0.prototype,OU=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=kP(e,c),g=function(m){return r&&fC(r,"normal",m),new G0(!0,m)},v=function(m){return f?(ur(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=cC(t)))throw AU(O4(t)+" is not iterable");if(function(m){return m!==void 0&&(Ol.Array===m||xU[DU]===m)}(o)){for(i=0,a=j1(t);a>i;i++)if((u=v(t[i]))&&Fg(dC,u))return u;return new G0(!1)}r=function(m,h){var b=arguments.length<2?cC(m):h;if(u5(b))return ur(un(b,m));throw CU(O4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=un(s,r)).done;){try{u=v(l.value)}catch(m){fC(r,"throw",m)}if(typeof u=="object"&&u&&Fg(dC,u))return u}return new G0(!1)},kU=function(t,e){return t===void 0?arguments.length<2?"":e:Su(t)},BU=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ta(1,7)),t.stack!==7)}),FU=Nn("toStringTag"),Ig=Et.Error,TU=[].push,Id=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Fg(rm,this);Al?n=Al(new Ig(void 0),o?Nd(this):rm):(n=o?this:Lp(rm),jn(n,FU,"Error")),jn(n,"message",kU(e,"")),BU&&jn(n,"stack",wU(n.stack,1)),EU(n,r);var i=[];return OU(t,TU,{that:i}),jn(n,"errors",i),n};Al?Al(Id,Ig):DP(Id,Ig);var rm=Id.prototype=Lp(Ig.prototype,{constructor:ta(1,Id),message:ta(1,""),name:ta(1,"AggregateError")});Ip({global:!0},{AggregateError:Id});var j4=Nn("unscopables"),N4=Array.prototype;N4[j4]==null&&uc.f(N4,j4,{configurable:!0,value:Lp(null)});var Cu,pC,hC,om=function(t){N4[j4][t]=!0},I4=Nn("iterator"),BP=!1;[].keys&&("next"in(hC=[].keys())?(pC=Nd(Nd(hC)))!==Object.prototype&&(Cu=pC):BP=!0);var _U=Cu==null||cn(function(){var t={};return Cu[I4].call(t)!==t});_U&&(Cu={}),Ge(Cu[I4])||na(Cu,I4,function(){return this});var D5={IteratorPrototype:Cu,BUGGY_SAFARI_ITERATORS:BP},PU=uc.f,gC=Nn("toStringTag"),vC=function(t,e,n){t&&!Vn(t=n?t:t.prototype,gC)&&PU(t,gC,{configurable:!0,value:e})},jU=D5.IteratorPrototype,NU=function(){return this},IU=y5.PROPER,LU=y5.CONFIGURABLE,yC=D5.IteratorPrototype,jh=D5.BUGGY_SAFARI_ITERATORS,Tc=Nn("iterator"),RU=function(){return this},FP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Lp(jU,{next:ta(+!w,b)}),vC(m,D,!1),Ol[D]=NU})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!jh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Tc]||d["@@iterator"]||o&&d[o],g=!jh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Nd(v.call(new t)))!==Object.prototype&&u.next&&(Nd(u)!==yC&&(Al?Al(u,yC):Ge(u[Tc])||na(u,Tc,RU)),vC(u,f,!0)),IU&&o=="values"&&y&&y.name!=="values"&&(LU?jn(d,"name","values"):(p=!0,g=function(){return un(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(jh||p||!(l in d))&&na(d,l,s[l]);else Ip({target:e,proto:!0,forced:jh||p},s);return d[Tc]!==g&&na(d,Tc,g,{name:o}),Ol[e]=g,s},MU=Uu.set,zU=Uu.getterFor("Array Iterator"),Kf=FP(Array,"Array",function(t,e){MU(this,{type:"Array Iterator",target:ac(t),index:0,kind:e})},function(){var t=zU(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ol.Arguments=Ol.Array,om("keys"),om("values"),om("entries");var $U=AP.charAt,HU=Uu.set,VU=Uu.getterFor("String Iterator");FP(String,"String",function(t){HU(this,{type:"String Iterator",string:Su(t),index:0})},function(){var t,e=VU(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$U(n,r),e.index+=t.length,{value:t,done:!1})});var im,Lg={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},am=d5("span").classList,mC=am&&am.constructor&&am.constructor.prototype,TP=mC===Object.prototype?void 0:mC,um=Nn("iterator"),bC=Nn("toStringTag"),sm=Kf.values,_P=function(t,e){if(t){if(t[um]!==sm)try{jn(t,um,sm)}catch{t[um]=sm}if(t[bC]||jn(t,bC,e),Lg[e]){for(var n in Kf)if(t[n]!==Kf[n])try{jn(t,n,Kf[n])}catch{t[n]=Kf[n]}}}};for(var lm in Lg)_P(Et[lm]&&Et[lm].prototype,lm);_P(TP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),wC(),EC()):global&&(!((im=global.navigator)===null||im===void 0)&&im.userAgent.match("QQBrowser"))&&(wC(),EC());function wC(){typeof globalThis>"u"&&(window.globalThis=window)}function EC(){LH===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var DC,Rg=Array.isArray||function(t){return wu(t)=="Array"},PP=function(){},UU=[],jP=rc("Reflect","construct"),x5=/^\s*(?:class|function)\b/,WU=ge(x5.exec),GU=!x5.exec(PP),_c=function(t){if(!sn(t))return!1;try{return jP(PP,UU,t),!0}catch{return!1}},qU=!jP||Gn(function(){var t;return _c(_c.call)||!_c(Object)||!_c(function(){t=!0})||t})?function(t){if(!sn(t))return!1;switch(Pp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return GU||!!WU(x5,cP(t))}:_c,KU=Bn("species"),xC=kt.Array,NP=function(t,e){return new(function(n){var r;return Rg(n)&&(r=n.constructor,(qU(r)&&(r===xC||Rg(r.prototype))||tr(r)&&(r=r[KU])===null)&&(r=void 0)),r===void 0?xC:r}(t))(e===0?0:e)},YU=Bn("species"),IP=Bn("isConcatSpreadable"),SC=kt.TypeError,XU=wg>=51||!Gn(function(){var t=[];return t[IP]=!1,t.concat()[0]!==t}),ZU=(DC="concat",wg>=51||!Gn(function(){var t=[];return(t.constructor={})[YU]=function(){return{foo:1}},t[DC](Boolean).foo!==1})),JU=function(t){if(!tr(t))return!1;var e=t[IP];return e!==void 0?!!e:Rg(t)};qo({target:"Array",proto:!0,forced:!XU||!ZU},{concat:function(t){var e,n,r,o,i,a=Bp(this),u=NP(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(JU(i=e===-1?a:arguments[e])){if(s+(o=Tp(i))>9007199254740991)throw SC("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&b4(u,s,i[n])}else{if(s>=9007199254740991)throw SC("Maximum allowed index exceeded");b4(u,s++,i)}return u.length=s,u}});var CC=r5.f,AC=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],LP={f:function(t){return AC&&wu(t)=="Window"?function(e){try{return CC(e)}catch{return uP(AC)}}(t):CC(Po(t))}},QU=ge([].slice),S5={f:Bn},tW=Pa.f,je=function(t){var e=Qn.Symbol||(Qn.Symbol={});Vt(e,t)||tW(e,t,{value:S5.f(t)})},OC=ge([].push),bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Bp(s),g=eP(y),v=e5(l,c),m=Tp(g),h=0,b=f||NP,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:OC(w,p)}else switch(t){case 4:return!1;case 7:OC(w,p)}return i?-1:r||o?o:w}},I1={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)}.forEach,Rn=_1("hidden"),kC=Bn("toPrimitive"),eW=ic.set,BC=ic.getterFor("Symbol"),Gr=Object.prototype,Vi=kt.Symbol,Ki=Vi&&Vi.prototype,FC=kt.TypeError,cm=kt.QObject,Pc=rc("JSON","stringify"),RP=T1.f,Ui=Pa.f,MP=LP.f,nW=Z3.f,zP=ge([].push),ii=as("symbols"),Rp=as("op-symbols"),fm=as("string-to-symbol-registry"),dm=as("symbol-to-string-registry"),rW=as("wks"),pm=!cm||!cm.prototype||!cm.prototype.findChild,L4=Hn&&Gn(function(){return oi(Ui({},"a",{get:function(){return Ui(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=RP(Gr,e);r&&delete Gr[e],Ui(t,e,n),r&&t!==Gr&&Ui(Gr,e,r)}:Ui,hm=function(t,e){var n=ii[t]=oi(Ki);return eW(n,{type:"Symbol",tag:t,description:e}),Hn||(n.description=e),n},Mg=function(t,e,n){t===Gr&&Mg(Rp,e,n),ar(t);var r=oc(e);return ar(n),Vt(ii,r)?(n.enumerable?(Vt(t,Rn)&&t[Rn][r]&&(t[Rn][r]=!1),n=oi(n,{enumerable:Yr(0,!1)})):(Vt(t,Rn)||Ui(t,Rn,Yr(1,{})),t[Rn][r]=!0),L4(t,r,n)):Ui(t,r,n)},TC=function(t,e){ar(t);var n=Po(e),r=o5(n).concat(R4(n));return I1(r,function(o){Hn&&!zn($P,n,o)||Mg(t,o,n[o])}),t},$P=function(t){var e=oc(t),n=zn(nW,this,e);return!(this===Gr&&Vt(ii,e)&&!Vt(Rp,e))&&(!(n||!Vt(this,e)||!Vt(ii,e)||Vt(this,Rn)&&this[Rn][e])||n)},_C=function(t,e){var n=Po(t),r=oc(e);if(n!==Gr||!Vt(ii,r)||Vt(Rp,r)){var o=RP(n,r);return!o||!Vt(ii,r)||Vt(n,Rn)&&n[Rn][r]||(o.enumerable=!0),o}},PC=function(t){var e=MP(Po(t)),n=[];return I1(e,function(r){Vt(ii,r)||Vt(_p,r)||zP(n,r)}),n},R4=function(t){var e=t===Gr,n=MP(e?Rp:Po(t)),r=[];return I1(n,function(o){!Vt(ii,o)||e&&!Vt(Gr,o)||zP(r,ii[o])}),r};if(po||(Ki=(Vi=function(){if(Td(Ki,this))throw FC("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?_d(arguments[0]):void 0,e=Dg(t),n=function(r){this===Gr&&zn(n,Rp,r),Vt(this,Rn)&&Vt(this[Rn],e)&&(this[Rn][e]=!1),L4(this,e,Yr(1,r))};return Hn&&pm&&L4(Gr,e,{configurable:!0,set:n}),hm(e,t)}).prototype,Cl(Ki,"toString",function(){return BC(this).tag}),Cl(Vi,"withoutSetter",function(t){return hm(Dg(t),t)}),Z3.f=$P,Pa.f=Mg,T1.f=_C,r5.f=LP.f=PC,$0.f=R4,S5.f=function(t){return hm(Bn(t),t)},Hn&&Ui(Ki,"description",{configurable:!0,get:function(){return BC(this).description}})),qo({global:!0,wrap:!0,forced:!po,sham:!po},{Symbol:Vi}),I1(o5(rW),function(t){je(t)}),qo({target:"Symbol",stat:!0,forced:!po},{for:function(t){var e=_d(t);if(Vt(fm,e))return fm[e];var n=Vi(e);return fm[e]=n,dm[n]=e,n},keyFor:function(t){if(!dl(t))throw FC(t+" is not a symbol");if(Vt(dm,t))return dm[t]},useSetter:function(){pm=!0},useSimple:function(){pm=!1}}),qo({target:"Object",stat:!0,forced:!po,sham:!Hn},{create:function(t,e){return e===void 0?oi(t):TC(oi(t),e)},defineProperty:Mg,defineProperties:TC,getOwnPropertyDescriptor:_C}),qo({target:"Object",stat:!0,forced:!po},{getOwnPropertyNames:PC,getOwnPropertySymbols:R4}),qo({target:"Object",stat:!0,forced:Gn(function(){$0.f(1)})},{getOwnPropertySymbols:function(t){return $0.f(Bp(t))}}),Pc){var oW=!po||Gn(function(){var t=Vi();return Pc([t])!="[null]"||Pc({a:t})!="{}"||Pc(Object(t))!="{}"});qo({target:"JSON",stat:!0,forced:oW},{stringify:function(t,e,n){var r=QU(arguments),o=e;if((tr(e)||t!==void 0)&&!dl(t))return Rg(e)||(e=function(i,a){if(sn(o)&&(a=zn(o,this,i,a)),!dl(a))return a}),r[1]=e,Q_(Pc,null,r)}})}if(!Ki[kC]){var iW=Ki.valueOf;Cl(Ki,kC,function(t){return zn(iW,this)})}Bg(Vi,"Symbol"),_p[Rn]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),Bg(kt.JSON,"JSON",!0);var aW=Qn.Symbol;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var Nh=aW,uW=S5.f("iterator"),sW=is(function(t){function e(n){return typeof Nh=="function"&&typeof uW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof Nh=="function"&&r.constructor===Nh&&r!==Nh.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),lW=qz(sW),HP=p5.f,cW=cn(function(){HP(1)});if(Ip({target:"Object",stat:!0,forced:!Ao||cW,sham:!Ao},{getOwnPropertyDescriptor:function(t,e){return HP(ac(t),e)}}),(typeof global>"u"?"undefined":lW(global))==="object"){var fW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!fW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function jC(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cn(t){var e,n;return jC(t)!==!1&&((e=t.constructor)===void 0||jC(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Ur(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Wu(t){return!!t&&!!t[sr]}function Gu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===yW}(t)||Array.isArray(t)||!!t[HC]||!!t.constructor[HC]||C5(t)||A5(t))}function Ld(t,e,n){n===void 0&&(n=!1),kl(t)===0?(n?Object.keys:T5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function kl(t){var e=t[sr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:C5(t)?2:A5(t)?3:0}function M4(t,e){return kl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function VP(t,e,n){var r=kl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function C5(t){return gW&&t instanceof Map}function A5(t){return vW&&t instanceof Set}function ou(t){return t.o||t.t}function O5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=mW(t);delete e[sr];for(var n=T5(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function k5(t,e){return e===void 0&&(e=!1),B5(t)||Wu(t)||!Gu(t)||(kl(t)>1&&(t.set=t.add=t.clear=t.delete=dW),Object.freeze(t),e&&Ld(t,function(n,r){return k5(r,!0)},!0)),t}function dW(){Ur(2)}function B5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ei(t){var e=bW[t];return e||Ur(18,t),e}function NC(){return Rd}function gm(t,e){e&&(ei("Patches"),t.u=[],t.s=[],t.v=e)}function zg(t){z4(t),t.p.forEach(pW),t.p=null}function z4(t){t===Rd&&(Rd=t.l)}function IC(t){return Rd={p:[],l:Rd,h:t,m:!0,_:0}}function pW(t){var e=t[sr];e.i===0||e.i===1?e.j():e.O=!0}function vm(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ei("ES5").S(e,t,r),r?(n[sr].P&&(zg(e),Ur(4)),Gu(t)&&(t=$g(e,t),e.l||Hg(e,t)),e.u&&ei("Patches").M(n[sr],t,e.u,e.s)):t=$g(e,n,[]),zg(e),e.u&&e.v(e.u,e.s),t!==UP?t:void 0}function $g(t,e,n){if(B5(e))return e;var r=e[sr];if(!r)return Ld(e,function(i,a){return LC(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Hg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=O5(r.k):r.o;Ld(r.i===3?new Set(o):o,function(i,a){return LC(t,r,o,i,a,n)}),Hg(t,o,!1),n&&t.u&&ei("Patches").R(r,n,t.u,t.s)}return r.o}function LC(t,e,n,r,o,i){if(Wu(o)){var a=$g(t,o,i&&e&&e.i!==3&&!M4(e.D,r)?i.concat(r):void 0);if(VP(n,r,a),!Wu(a))return;t.m=!1}if(Gu(o)&&!B5(o)){if(!t.h.F&&t._<1)return;$g(t,o),e&&e.A.l||Hg(t,o)}}function Hg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&k5(e,n)}function ym(t,e){var n=t[sr];return(n?ou(n):t)[e]}function RC(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function $4(t){t.P||(t.P=!0,t.l&&$4(t.l))}function mm(t){t.o||(t.o=O5(t.t))}function H4(t,e,n){var r=C5(e)?ei("MapSet").N(e,n):A5(e)?ei("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:NC(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=q0;a&&(s=[u],l=K0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ei("ES5").J(e,n);return(n?n.A:NC()).p.push(r),r}function hW(t){return Wu(t)||Ur(22,t),function e(n){if(!Gu(n))return n;var r,o=n[sr],i=kl(n);if(o){if(!o.P&&(o.i<4||!ei("ES5").K(o)))return o.t;o.I=!0,r=MC(n,i),o.I=!1}else r=MC(n,i);return Ld(r,function(a,u){o&&function(s,l){return kl(s)===2?s.get(l):s[l]}(o.t,a)===u||VP(r,a,e(u))}),i===3?new Set(r):r}(t)}function MC(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return O5(t)}var zC,Rd,F5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gW=typeof Map<"u",vW=typeof Set<"u",$C=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",UP=F5?Symbol.for("immer-nothing"):((zC={})["immer-nothing"]=!0,zC),HC=F5?Symbol.for("immer-draftable"):"__$immer_draftable",sr=F5?Symbol.for("immer-state"):"__$immer_state",yW=""+Object.prototype.constructor,T5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,mW=Object.getOwnPropertyDescriptors||function(t){var e={};return T5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},bW={},q0={get:function(t,e){if(e===sr)return t;var n=ou(t);if(!M4(n,e))return function(o,i,a){var u,s=RC(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Gu(r)?r:r===ym(t.t,e)?(mm(t),t.o[e]=H4(t.A.h,r,t)):r},has:function(t,e){return e in ou(t)},ownKeys:function(t){return Reflect.ownKeys(ou(t))},set:function(t,e,n){var r=RC(ou(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=ym(ou(t),e),i=o==null?void 0:o[sr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||M4(t.t,e)))return!0;mm(t),$4(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return ym(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,mm(t),$4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=ou(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ur(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ur(12)}},K0={};Ld(q0,function(t,e){K0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),K0.deleteProperty=function(t,e){return q0.deleteProperty.call(this,t[0],e)},K0.set=function(t,e,n){return q0.set.call(this,t[0],e,n,t[0])};var wW=function(){function t(n){var r=this;this.g=$C,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m<g;m++)v[m-1]=arguments[m];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[y,h].concat(v))})}}var l;if(typeof i!="function"&&Ur(6),a!==void 0&&typeof a!="function"&&Ur(7),Gu(o)){var c=IC(r),f=H4(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?zg(c):z4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return gm(c,a),vm(d,c)},function(d){throw zg(c),d}):(gm(c,a),vm(l,c))}if(!o||typeof o!="object")return(l=i(o))===UP?void 0:(l===void 0&&(l=o),r.F&&k5(l,!0),l);Ur(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Gu(n)||Ur(8),Wu(n)&&(n=hW(n));var r=IC(this),o=H4(this,n,void 0);return o[sr].C=!0,z4(r),o},e.finishDraft=function(n,r){var o=(n&&n[sr]).A;return gm(o,r),vm(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!$C&&Ur(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ei("Patches").$;return Wu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),Zn=new wW,L1=Zn.produce;Zn.produceWithPatches.bind(Zn),Zn.setAutoFreeze.bind(Zn),Zn.setUseProxies.bind(Zn),Zn.applyPatches.bind(Zn);var VC=Zn.createDraft.bind(Zn),UC=Zn.finishDraft.bind(Zn);function jo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vg=new WeakMap,jc=new WeakMap,WC=new WeakMap,GC=new WeakMap,qC=new WeakMap,KC=new WeakMap;function YC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ih(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?YC(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var EW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))ZW.transform(n,e);for(var r of E.pointRefs(t))JW.transform(r,e);for(var o of E.rangeRefs(t))tG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=Vg.get(t)||[],l=DW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Vg.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),jc.get(t)||(jc.set(t,!0),Promise.resolve().then(()=>{jc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:ot.isText,split:!0});else{var o=Ih(Ih({},E.marks(t)||{}),{},{[e]:n});t.marks=o,jc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=Ih({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ot.isText(n))if(ct.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ct.isElement(n)&&(t.isInline(n)||n.children.length===0||ot.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!ot.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(ot.isText(s)||ct.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ct.isElement(s)?t.isInline(s)&&(l!=null&&ot.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&ot.isText(l)&&(ot.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:ot.isText,split:!0});else{var r=Ih({},E.marks(t)||{});delete r[e],t.marks=r,jc.get(t)||t.onChange()}}};return t},DW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=ot.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var y=j.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function ai(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var St,V4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?OW(t):t,o=St.None,i=St.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=MW(s,l);if([o,i]=n?[i,c]:[c,o],al(o,St.ZWJ)&&al(i,St.ExtPict)&&!VW(n?t.substring(0,a):t.substring(0,t.length-a))||al(o,St.RI)&&al(i,St.RI)&&!(u=u!==null?!u:!!n||WW(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&$W(o,i))break;a+=s.length}return a||1},xW=/\s/,SW=/[\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]/,CW=/['\u2018\u2019]/,U4=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},AW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(xW.test(e))return!1;if(CW.test(e)){var o=V4(n,r),[i,a]=U4(n,o,r);if(t(i,a,r))return!0}return!SW.test(e)},OW=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(BW(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(kW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},kW=t=>t>=55296&&t<=56319,BW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(St||(St={}));var FW=/^(?:[\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])$/,TW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,_W=/^(?:[\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])$/,PW=/^[\u1100-\u115F\uA960-\uA97C]$/,jW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,NW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,IW=/^[\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]$/,LW=/^[\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]$/,RW=/^(?:[\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])$/,MW=(t,e)=>{var n=St.Any;return t.search(FW)!==-1&&(n|=St.Extend),e===8205&&(n|=St.ZWJ),e>=127462&&e<=127487&&(n|=St.RI),t.search(TW)!==-1&&(n|=St.Prepend),t.search(_W)!==-1&&(n|=St.SpacingMark),t.search(PW)!==-1&&(n|=St.L),t.search(jW)!==-1&&(n|=St.V),t.search(NW)!==-1&&(n|=St.T),t.search(IW)!==-1&&(n|=St.LV),t.search(LW)!==-1&&(n|=St.LVT),t.search(RW)!==-1&&(n|=St.ExtPict),n};function al(t,e){return(t&e)!=0}var zW=[[St.L,St.L|St.V|St.LV|St.LVT],[St.LV|St.V,St.V|St.T],[St.LVT|St.T,St.T],[St.Any,St.Extend|St.ZWJ],[St.Any,St.SpacingMark],[St.Prepend,St.Any],[St.ZWJ,St.ExtPict],[St.RI,St.RI]];function $W(t,e){return zW.findIndex(n=>al(t,n[0])&&al(e,n[1]))===-1}var HW=/(?:[\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$/,VW=t=>t.search(HW)!==-1,UW=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,WW=t=>{var e=t.match(UW);return e!==null&&e[0].length/2%2==1},XC=t=>Cn(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ct={isAncestor:t=>Cn(t)&&Q.isNodeList(t.children),isElement:XC,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return XC(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},GW=["text"],qW=["text"];function ZC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZC(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZC(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var JC=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ot.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ss(Ss({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ss(Ss({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ot.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ot.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ct.isElement(e)&&!t.isInline(e),isEditor(t){if(!Cn(t))return!1;var e=JC.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Cn(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&Yi.isOperationList(t.operations);return JC.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Bt.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ot.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=WC.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Bt.equals(e,r)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=E.nodes(t,{match:ot.isText});if(r){var[o]=r;return ai(o,GW)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:ot.isText}),l=E.above(t,{match:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return ai(u,qW)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(KW.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),y=[];for(var[g,v]of d){var m=p&&j.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&ot.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Vg.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Vg.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=E.node(t,i),[u,s]=a;ct.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var f=r(t).pop();if(Q.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=j.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Bt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=GC.get(t);return e||(e=new Set,GC.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=qC.get(t);return e||(e=new Set,qC.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,v);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var m=j.isAncestor(v,s.path)?s:E.end(t,v),h=j.isAncestor(v,u.path)?u:E.start(t,v);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(ot.isText(g)){var b=j.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=U4(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function w(D,S,x){return S==="character"?V4(D,x):S==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=V4(O,T),[K,U]=U4(O,M,T);if(AW(K,U,T))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,x):S==="line"||S==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=KC.get(t);return e||(e=new Set,KC.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){WC.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ot.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:p=>E.isBlock(t,p)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:ot.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,Ss(Ss({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},jyt={isLocation:t=>j.isPath(t)||Bt.isPoint(t)||L.isRange(t)},KW={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},YW=["children"],XW=["text"],QC=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(ot.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(ot.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ct.isElement(n)&&(yield[n,r])},extractProps:t=>ct.isAncestor(t)?ai(t,YW):ai(t,XW),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(ot.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=L1({children:t.children},r=>{var[o,i]=L.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>ot.isText(t)||ct.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=QC.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return QC.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!ot.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ct.isElement(t)&&ct.isElementProps(e)&&ct.matches(t,e)||ot.isText(t)&&ot.isTextProps(e)&&ot.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ot.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(ot.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ot.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ot.isText(n)&&(yield[n,r])}};function tA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Yi={isNodeOperation:t=>Yi.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Cn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&Cn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Cn(t.properties)&&Cn(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||Cn(t.properties)&&Cn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Cn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Yi.isOperation(e)),isSelectionOperation:t=>Yi.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Yi.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return ze(ze({},t),{},{type:"remove_node"});case"insert_text":return ze(ze({},t),{},{type:"remove_text"});case"merge_node":return ze(ze({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return ze(ze({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return ze(ze({},t),{},{path:r,newPath:o});case"remove_node":return ze(ze({},t),{},{type:"insert_node"});case"remove_text":return ze(ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return ze(ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return ze(ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ze(ze({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},ZW={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function eA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function nA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Bt={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Bt.compare(t,e)===1,isBefore:(t,e)=>Bt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Cn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,nA(nA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},JW={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Bt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},QW=["anchor","focus"];function rA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Bt.equals(t.anchor,e.anchor)&&Bt.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Bt.isBefore(n,o)&&Bt.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Bt.isPoint(e)?(s=Bt.compare(e,a)>=0,l=Bt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=ai(t,QW),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Bt.isBefore(r,i)?i:r,s=Bt.isBefore(o,a)?o:a;return Bt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?rA(Object(f),!0).forEach(function(p){jo(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):rA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Bt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Bt.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>Cn(t)&&Bt.isPoint(t.anchor)&&Bt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Bt.transform(r.anchor,e,{affinity:o}),l=Bt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},tG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},WP=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Cn(r)&&Cn(o)){if(!WP(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 e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},eG=["text"],nG=["anchor","focus"];function oA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ot={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ai(i,eG)}return WP(r?o(t):t,r?o(e):e)},isText:t=>Cn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ot.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ho({},t)];for(var r of e){var o=ai(r,nG),[i,a]=L.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&&f!==0)u.push(l);else{var p=l,d=void 0,y=void 0;if(a.offset<s){var g=a.offset-f;y=Ho(Ho({},p),{},{text:p.text.slice(g)}),p=Ho(Ho({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;d=Ho(Ho({},p),{},{text:p.text.slice(0,v)}),p=Ho(Ho({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function iA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?iA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var rG={transform(t,e){t.children=VC(t.children);var n=t.selection&&VC(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Bt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=Q.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,b]of L.points(o))o[b]=Bt.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),S=j.previous(w),x=Q.get(r,S),O=Q.parent(r,w),T=w[w.length-1];if(ot.isText(D)&&ot.isText(x))x.text+=D.text;else{if(ot.isText(D)||ot.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(x));x.children.push(...D.children)}if(O.children.splice(T,1),o)for(var[R,H]of L.points(o))o[H]=Bt.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(r,M),W=Q.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var nt=j.transform(M,i),lt=Q.get(r,j.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,U),o)for(var[at,k]of L.points(o))o[k]=Bt.transform(at,i);break;case"remove_node":var{path:C}=i,P=C[C.length-1];if(Q.parent(r,C).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Bt.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var it=void 0,gt=void 0;for(var[vt,Dt]of Q.texts(r)){if(j.compare(Dt,C)!==-1){gt=[vt,Dt];break}it=[vt,Dt]}var G=!1;it&>&&(G=j.equals(gt[1],C)?!j.hasPrevious(gt[1]):j.common(it[1],C).length<j.common(gt[1],C).length),it&&!G?($.path=it[1],$.offset=it[0].text.length):gt?($.path=gt[1],$.offset=0):o=null}}break;case"remove_text":var{path:It,offset:At,text:dt}=i;if(dt.length===0)break;var Ot=Q.leaf(r,It),Be=Ot.text.slice(0,At),$t=Ot.text.slice(At+dt.length);if(Ot.text=Be+$t,o)for(var[te,ye]of L.points(o))o[ye]=Bt.transform(te,i);break;case"set_node":var{path:mn,properties:zt,newProperties:In}=i;if(mn.length===0)throw new Error("Cannot set properties on the root node!");var Ir=Q.get(r,mn);for(var oo in In){if(oo==="children"||oo==="text")throw new Error('Cannot set the "'.concat(oo,'" property of nodes!'));var ys=In[oo];ys==null?delete Ir[oo]:Ir[oo]=ys}for(var $a in zt)In.hasOwnProperty($a)||delete Ir[$a];break;case"set_selection":var{newProperties:Lr}=i;if(Lr==null)o=Lr;else{if(o==null){if(!L.isRange(Lr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Lr)," when there is no current selection."));o=Nc({},Lr)}for(var io in Lr){var Io=Lr[io];if(Io==null){if(io==="anchor"||io==="focus")throw new Error('Cannot remove the "'.concat(io,'" selection property'));delete o[io]}else o[io]=Io}}break;case"split_node":var{path:bn,position:wn,properties:En}=i;if(bn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(bn,"] because the root node cannot be split."));var Fn,rn=Q.get(r,bn),hr=Q.parent(r,bn),xc=bn[bn.length-1];if(ot.isText(rn)){var di=rn.text.slice(0,wn),Lo=rn.text.slice(wn);rn.text=di,Fn=Nc(Nc({},En),{},{text:Lo})}else{var ms=rn.children.slice(0,wn),Ha=rn.children.slice(wn);rn.children=ms,Fn=Nc(Nc({},En),{},{children:Ha})}if(hr.children.splice(xc+1,0,Fn),o)for(var[bs,Rr]of L.points(o))o[Rr]=Bt.transform(bs,i)}return o})(t,n,e)}finally{t.children=UC(t.children),t.selection=n?Wu(n)?UC(n):n:null}}},oG=["text"],iG=["children"];function aA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function uA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var aG={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Bt.isPoint(a)){u==null&&(u=ot.isText(l)?S=>ot.isText(S):t.isInline(l)?S=>ot.isText(S)||E.isInline(t,S):S=>E.isBlock(t,S));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=E.pathRef(t,d),g=E.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?j.next(v):v}var m=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Cs(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});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=E.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=j.next(p);N.moveNodes(t,{at:l,to:v,voids:o})}else{var m=j.next(l),h=j.next(p);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=E.parent(t,r);n=T=>u.children.includes(T)}else n=T=>E.isBlock(t,T);if(!o&&L.isRange(r)&&(r=E.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),D=Array.from(E.levels(t,{at:d}),T=>{var[R]=T;return R}).slice(b.length).slice(0,-1),S=E.above(t,{at:d,mode:"highest",match:T=>D.includes(T)&&GP(t,T)}),x=S&&E.pathRef(t,S[1]);if(ot.isText(p)&&ot.isText(y)){var O=ai(p,oG);m=y.text.length,v=O}else{if(!ct.isElement(p)||!ct.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));O=ai(p,iG),m=y.children.length,v=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),x&&N.removeNodes(t,{at:x.current,voids:i}),ct.isElement(y)&&E.isEmpty(t,y)||ot.isText(y)&&y.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),x&&x.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Cs(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return E.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Cs(t,i):p=>E.isBlock(t,p)),!n&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Cs(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,v]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>E.isBlock(t,U)),L.isRange(i)&&(i=uG(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(ct.isElement(y)&&t.isInline(y)){var v=E.after(t,g);if(!v){var m=j.next(g);N.insertNodes(t,{text:""},{at:m,voids:r}),v=E.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=p,D=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[x,O]of E.levels(t,{at:D,reverse:!0,voids:r})){var T=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(t,x))break;var R=f.current,H=E.isEnd(t,R,O);if(u||!f||!E.isEdge(t,R,O)){T=!0;var M=Q.extractProps(x);t.apply({type:"split_node",path:O,position:S,properties:M})}S=O[O.length-1]+(T||H?1:0)}if(e.at==null){var K=h.current||E.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Cs(t,i):p=>E.isBlock(t,p)),j.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=E.node(t,d),g=E.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:v=>ct.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Cs(t,u):t.isInline(e)?v=>E.isInline(t,v)||ot.isText(v):v=>E.isBlock(t,v)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?v=>E.isBlock(t,v):v=>E.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,E.range(t,p)):u;if(d){var y=Array.from(E.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),S=E.node(t,w),[x]=S,O=w.length+1,T=j.next(b.slice(0,O)),R=uA(uA({},e),{},{children:[]});N.insertNodes(t,R,{at:T,voids:i}),N.moveNodes(t,{at:D,match:H=>ct.isAncestor(x)&&x.children.includes(H),to:T.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},GP=(t,e)=>{if(ct.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&GP(t,n.children[0])}return!E.isEditor(e)},uG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Cs=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function sA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var sG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)N.setSelection(t,e);else{if(!L.isRange(e))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(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:lA(lA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Bt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Bt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},lG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Bt.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=E.end(t,[]);Bt.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,y]=L.edges(a),g=E.above(t,{match:gt=>E.isBlock(t,gt),at:d,voids:i}),v=E.above(t,{match:gt=>E.isBlock(t,gt),at:y,voids:i}),m=g&&v&&!j.equals(g[1],v[1]),h=j.equals(d.path,y.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:y,mode:"highest"});if(b){var D=E.before(t,d);D&&g&&j.isAncestor(g[1],D.path)&&(d=D)}if(w){var S=E.after(t,y);S&&v&&j.isAncestor(v[1],S.path)&&(y=S)}var x,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[R,H]=T;x&&j.compare(H,x)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,d.path)&&!j.isCommon(H,y.path))&&(O.push(T),x=H)}var M=Array.from(O,gt=>{var[,vt]=gt;return E.pathRef(t,vt)}),K=E.pointRef(t,d),U=E.pointRef(t,y);if(!h&&!b){var W=K.current,[q]=E.leaf(t,W),{path:nt}=W,{offset:lt}=d,st=q.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}for(var at of M){var k=at.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var C=U.current,[P]=E.leaf(t,C),{path:$}=C,Y=h?d.offset:0,V=P.text.slice(Y,y.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var it=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&it&&N.select(t,it)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:C=>E.isInline(t,C),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:C=>E.isBlock(t,C),at:i,voids:o}),[,f]=c,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=C=>{var[P,$]=C;return $.length!==0&&(!!y||!(g&&j.isAncestor($,m)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(v&&j.isAncestor($,h)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var S=[],x=[],O=[],T=!0,R=!1;for(var[H]of b)ct.isElement(H)&&!t.isInline(H)?(T=!1,R=!0,x.push(H)):T?S.push(H):O.push(H);var[M]=E.nodes(t,{at:i,match:C=>ot.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),[,K]=M,U=E.isStart(t,i,K),W=E.isEnd(t,i,K),q=E.pathRef(t,d?j.next(f):f),nt=E.pathRef(t,W?j.next(K):K),lt=E.pathRef(t,f);N.splitNodes(t,{at:i,match:C=>R?E.isBlock(t,C):ot.isText(C)||E.isInline(t,C),mode:R?"lowest":"highest",voids:o});var st=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,S,{at:st.current,match:C=>ot.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),y&&x.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,x,{at:q.current,match:C=>E.isBlock(t,C),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:nt.current,match:C=>ot.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),!n.at){var at;at=O.length>0?j.previous(nt.current):x.length>0?j.previous(q.current):j.previous(st.current);var k=E.end(t,at);N.select(t,k)}st.unref(),q.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function cA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Lh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cA(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var N=Lh(Lh(Lh(Lh({},rG),aG),sG),lG),W4="[object Map]",G4="[object Set]",cG=/^\[object .+?Constructor\]$/,fG=/^(?:0|[1-9]\d*)$/,dG="[\\ud800-\\udfff]",q4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",K4="\\ud83c[\\udffb-\\udfff]",qP="[^\\ud800-\\udfff]",KP="(?:\\ud83c[\\udde6-\\uddff]){2}",YP="[\\ud800-\\udbff][\\udc00-\\udfff]",fA="(?:"+q4+"|"+K4+")?",pG="[\\ufe0e\\ufe0f]?"+fA+("(?:\\u200d(?:"+[qP,KP,YP].join("|")+")[\\ufe0e\\ufe0f]?"+fA+")*"),hG="(?:"+[qP+q4+"?",q4,KP,YP,dG].join("|")+")",gG=RegExp(K4+"(?="+K4+")|"+hG+pG,"g"),vG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),yG=typeof se=="object"&&se&&se.Object===Object&&se,mG=typeof self=="object"&&self&&self.Object===Object&&self,us=yG||mG||Function("return this")();function bG(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function wG(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function EG(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function DG(t){return function(e){return vG.test(e)}(t)?function(e){return e.match(gG)||[]}(t):function(e){return e.split("")}(t)}var dA,pA,xG=Function.prototype,R1=Object.prototype,bm=us["__core-js_shared__"],hA=function(){var t=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),XP=xG.toString,Ug=R1.hasOwnProperty,Mp=R1.toString,SG=RegExp("^"+XP.call(Ug).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gA=us.Symbol,wm=gA?gA.iterator:void 0,CG=R1.propertyIsEnumerable,AG=(dA=Object.keys,pA=Object,function(t){return dA(pA(t))}),Y4=zp(us,"DataView"),X4=zp(us,"Map"),Z4=zp(us,"Promise"),J4=zp(us,"Set"),Q4=zp(us,"WeakMap"),OG=ss(Y4),kG=ss(X4),BG=ss(Z4),FG=ss(J4),TG=ss(Q4);function _G(t,e){var n=ZP(t)||function(a){return function(u){return tj(u)&&_5(u)}(a)&&Ug.call(a,"callee")&&(!CG.call(a,"callee")||Mp.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Ug.call(t,i)||o&&(i=="length"||NG(i,r))||n.push(i);return n}function PG(t){if(!QP(t)||function(n){return!!hA&&hA in n}(t))return!1;var e=JP(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?SG:cG;return e.test(ss(t))}function jG(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||R1,e!==r)return AG(t);var e,n,r,o=[];for(var i in Object(t))Ug.call(t,i)&&i!="constructor"&&o.push(i);return o}function zp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return PG(n)?n:void 0}var iu=function(t){return Mp.call(t)};function NG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||fG.test(t))&&t>-1&&t%1==0&&t<e}function ss(t){if(t!=null){try{return XP.call(t)}catch{}try{return t+""}catch{}}return""}(Y4&&iu(new Y4(new ArrayBuffer(1)))!="[object DataView]"||X4&&iu(new X4)!=W4||Z4&&iu(Z4.resolve())!="[object Promise]"||J4&&iu(new J4)!=G4||Q4&&iu(new Q4)!="[object WeakMap]")&&(iu=function(t){var e=Mp.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?ss(n):void 0;if(r)switch(r){case OG:return"[object DataView]";case kG:return W4;case BG:return"[object Promise]";case FG:return G4;case TG:return"[object WeakMap]"}return e});var ZP=Array.isArray;function _5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!JP(t)}function JP(t){var e=QP(t)?Mp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function QP(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function tj(t){return!!t&&typeof t=="object"}function IG(t){return t?bG(t,function(e){return _5(e)?_G(e):jG(e)}(t)):[]}var vA=function(t){if(!t)return[];if(_5(t))return function(n){return typeof n=="string"||!ZP(n)&&tj(n)&&Mp.call(n)=="[object String]"}(t)?DG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(wm&&t[wm])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[wm]());var e=iu(t);return(e==W4?wG:e==G4?EG:IG)(t)};function yA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function P5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:yA(e[n])&&yA(t[n])&&Object.keys(e[n]).length>0&&P5(t[n],e[n])})}var ej={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 $p(){var t=typeof document<"u"?document:{};return P5(t,ej),t}var LG={document:ej,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function ls(){var t=typeof window<"u"?window:{};return P5(t,LG),t}function tE(t){return tE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tE(t)}function Wg(t,e){return Wg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Wg(t,e)}function RG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function eE(t,e,n){return eE=RG()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Wg(u,i.prototype),u},eE.apply(null,arguments)}function nE(t){var e=typeof Map=="function"?new Map:void 0;return nE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return eE(n,arguments,tE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Wg(r,n)},nE(t)}var Xi=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(nE(Array));function M1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,M1(n)):e.push(n)}),e}function nj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=ls(),r=$p(),o=[];if(!e&&t instanceof Xi)return t;if(!t)return new Xi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(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(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof Xi)return t;o=t}return new Xi(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function Bl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=M1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Fl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=M1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Tl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=M1(e.map(function(o){return o.split(" ")}));return nj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Fr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function Gg(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function _l(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Oo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function ko(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(g){var v=g.target;if(v){var m=g.target.dom7EventData||[];if(m.indexOf(g)<0&&m.unshift(g),B(v).is(o))i.apply(v,m);else for(var h=B(v).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(g){var v=g&&g.target&&g.target.dom7EventData||[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var y=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[y]||(p.dom7Listeners[y]=[]),p.dom7Listeners[y].push({listener:i,proxyListener:s}),p.addEventListener(y,s,a)}}return this}function mA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[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],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function qg(){var t=ls();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Kg(){var t=ls();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function bA(){if(this.length>0){var t=ls(),e=$p(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Pl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Yg(){for(var t=ls(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Xg(t,e){var n,r=ls();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function Zg(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function wA(t){return B(nj(this,t))}function Ea(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function Jg(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function EA(t){var e,n,r=ls(),o=$p(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof Xi){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Tr(){for(var t,e=$p(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof Xi)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function DA(t){var e,n,r=$p();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof Xi)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function jl(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function Qg(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function Nl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function Il(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function Ll(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Rl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=Xi.prototype;var MG="resize scroll".split(" ");function rj(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)MG.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var xA=rj("click"),Da=rj("focus"),zG="[object GeneratorFunction]",$G=/^(?:0|[1-9]\d*)$/;function HG(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var z1=Object.prototype,rE=z1.hasOwnProperty,oj=z1.toString,VG=z1.propertyIsEnumerable,UG=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function WG(t,e){var n=ij(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&j5(u)}(a)&&rE.call(a,"callee")&&(!VG.call(a,"callee")||oj.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!rE.call(t,i)||o&&(i=="length"||YG(i,r))||n.push(i);return n}var SA,GG=(SA=function(t,e){return t&&qG(t,e,XG)},function(t,e){if(t==null)return t;if(!j5(t))return SA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),qG=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function KG(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||z1,e!==r)return UG(t);var e,n,r,o=[];for(var i in Object(t))rE.call(t,i)&&i!="constructor"&&o.push(i);return o}function YG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||$G.test(t))&&t>-1&&t%1==0&&t<e}var ij=Array.isArray;function j5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?oj.call(e):"";return n=="[object Function]"||n==zG}(t)}function XG(t){return j5(t)?WG(t):KG(t)}function ZG(t){return t}var N5=function(t,e){return(ij(t)?HG:GG)(t,typeof e=="function"?e:ZG)};let aj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var JG=/^\s+|\s+$/g,QG=/^[-+]0x[0-9a-f]+$/i,tq=/^0b[01]+$/i,eq=/^0o[0-7]+$/i,nq=parseInt,rq=typeof se=="object"&&se&&se.Object===Object&&se,oq=typeof self=="object"&&self&&self.Object===Object&&self,iq=rq||oq||Function("return this")(),aq=Object.prototype.toString,uq=Math.max,sq=Math.min,Em=function(){return iq.Date.now()};function lq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Em();if(g(b))return m(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?sq(D,i-(w-l)):D}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Em(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=CA(e)||0,tv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?uq(CA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Em())},h}function tv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function CA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&aq.call(r)=="[object Symbol]"}(t))return NaN;if(tv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=tv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(JG,"");var n=tq.test(t);return n||eq.test(t)?nq(t.slice(2),n?2:8):QG.test(t)?NaN:+t}var qu=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return tv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),lq(t,e,{leading:r,maxWait:e,trailing:o})};const cq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Md(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const oE=Array.isArray;function Y0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Dm(t){return t===void 0}function Xn(t){return t!==void 0}const AA=Md("",{},[],void 0,void 0);function Ic(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function fq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const dq=["create","update","remove","destroy","pre","post"];function pq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:cq;for(const f of dq)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return Md(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;Xn(b)&&(b(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")Dm(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,S=w>0?w:h.length,x=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,O=f.elm=Xn(v)&&Xn(g=v.ns)?r.createElementNS(g,x,v):r.createElement(x,v);for(D<S&&O.setAttribute("id",h.slice(D+1,S)),w>0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](AA,f);if(oE(m))for(g=0;g<m.length;++g){const R=m[g];R!=null&&r.appendChild(O,a(R,p))}else Y0(f.text)&&r.appendChild(O,r.createTextNode(f.text));const T=f.data.hook;Xn(T)&&((y=T.create)===null||y===void 0||y.call(T,AA,f),T.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,y,g,v){for(;y<=g;++y){const m=d[y];m!=null&&r.insertBefore(f,a(m,v),p)}}function s(f){var p,d;const y=f.data;if(y!==void 0){(d=(p=y==null?void 0:y.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const v=f.children[g];v!=null&&typeof v!="string"&&s(v)}}}function l(f,p,d,y){for(var g,v;d<=y;++d){let m,h;const b=p[d];if(b!=null)if(Xn(b.sel)){s(b),m=n.remove.length+1,h=i(b.elm,m);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(v=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;Xn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var y,g,v,m,h;const b=(y=p.data)===null||y===void 0?void 0:y.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,D=f.children,S=p.children;if(f!==p){if(p.data!==void 0){for(let x=0;x<n.update.length;++x)n.update[x](f,p);(m=(v=p.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,f,p)}Dm(p.text)?Xn(D)&&Xn(S)?D!==S&&function(x,O,T,R){let H,M,K,U,W=0,q=0,nt=O.length-1,lt=O[0],st=O[nt],at=T.length-1,k=T[0],C=T[at];for(;W<=nt&&q<=at;)lt==null?lt=O[++W]:st==null?st=O[--nt]:k==null?k=T[++q]:C==null?C=T[--at]:Ic(lt,k)?(c(lt,k,R),lt=O[++W],k=T[++q]):Ic(st,C)?(c(st,C,R),st=O[--nt],C=T[--at]):Ic(lt,C)?(c(lt,C,R),r.insertBefore(x,lt.elm,r.nextSibling(st.elm)),lt=O[++W],C=T[--at]):Ic(st,k)?(c(st,k,R),r.insertBefore(x,st.elm,lt.elm),st=O[--nt],k=T[++q]):(H===void 0&&(H=fq(O,W,nt)),M=H[k.key],Dm(M)?r.insertBefore(x,a(k,R),lt.elm):(K=O[M],K.sel!==k.sel?r.insertBefore(x,a(k,R),lt.elm):(c(K,k,R),O[M]=void 0,r.insertBefore(x,K.elm,lt.elm))),k=T[++q]);(W<=nt||q<=at)&&(W>nt?(U=T[at+1]==null?null:T[at+1].elm,u(x,U,T,q,at,R)):l(x,O,W,nt))}(w,D,S,d):Xn(S)?(Xn(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,d)):Xn(D)?l(w,D,0,D.length-1):Xn(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Xn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),Ic(f,p)?c(f,p,v):(y=f.elm,g=r.parentNode(y),a(p,v),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(y)),l(g,[f],0,0))),d=0;d<v.length;++d)v[d].data.hook.insert(v[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function uj(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&uj(o,e[r].children,e[r].sel)}}function Ml(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),oE(n)?r=n:Y0(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(oE(e)?r=e:Y0(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)Y0(r[i])&&(r[i]=Md(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||uj(a,r,t),Md(t,a,r,o,void 0)}function OA(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const hq={create:OA,update:OA};function kA(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.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 gq={create:kA,update:kA},BA=/[A-Z]/g;function FA(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||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(BA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(BA,"-$&").toLowerCase(),i[r]))}const vq={create:FA,update:FA};function sj(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)sj(t[r],e,n)}function yq(t,e){const n=t.type,r=e.data.on;r&&r[n]&&sj(r[n],e,t)}function xm(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.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 s=e.listener=t.listener||function l(c){yq(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const mq={create:xm,update:xm,destroy:xm};function TA(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const bq={create:TA,update:TA},_A=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Sm=!1;function wq(t,e,n){(function(r){_A(function(){_A(r)})})(function(){t[e]=n})}function PA(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||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],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||wq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const Eq={pre:function(){Sm=!1},create:PA,update:PA,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Sm||(t.elm.offsetLeft,Sm=!0);const o=t.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)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function lj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?lj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(Md(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function bt(t,e,...n){const r=lj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Ml(t,e,r[0].text):Ml(t,e,r)}bt||(bt={});var Dq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cj="\\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",Sq="[\\ud800-\\udfff]",jA="["+cj+"]",ev="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",fj="\\d+",Cq="[\\u2700-\\u27bf]",dj="[a-z\\xdf-\\xf6\\xf8-\\xff]",pj="[^\\ud800-\\udfff"+cj+fj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",iE="\\ud83c[\\udffb-\\udfff]",hj="[^\\ud800-\\udfff]",I5="(?:\\ud83c[\\udde6-\\uddff]){2}",L5="[\\ud800-\\udbff][\\udc00-\\udfff]",tl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",NA="(?:"+dj+"|"+pj+")",Aq="(?:"+tl+"|"+pj+")",IA="(?:"+ev+"|"+iE+")?",gj="[\\ufe0e\\ufe0f]?"+IA+("(?:\\u200d(?:"+[hj,I5,L5].join("|")+")[\\ufe0e\\ufe0f]?"+IA+")*"),Oq="(?:"+[Cq,I5,L5].join("|")+")"+gj,kq="(?:"+[hj+ev+"?",ev,I5,L5,Sq].join("|")+")",Bq=RegExp("['’]","g"),Fq=RegExp(ev,"g"),Tq=RegExp(iE+"(?="+iE+")|"+kq+gj,"g"),_q=RegExp([tl+"?"+dj+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[jA,tl,"$"].join("|")+")",Aq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[jA,tl+NA,"$"].join("|")+")",tl+"?"+NA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",tl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",fj,Oq].join("|"),"g"),Pq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),jq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nq=typeof se=="object"&&se&&se.Object===Object&&se,Iq=typeof self=="object"&&self&&self.Object===Object&&self,Lq=Nq||Iq||Function("return this")(),Cm,Rq=(Cm={À:"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(t){return Cm==null?void 0:Cm[t]});function vj(t){return Pq.test(t)}function Mq(t){return vj(t)?function(e){return e.match(Tq)||[]}(t):function(e){return e.split("")}(t)}var zq=Object.prototype.toString,LA=Lq.Symbol,RA=LA?LA.prototype:void 0,MA=RA?RA.toString:void 0;function $q(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&zq.call(n)=="[object Symbol]"}(t))return MA?MA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Hq(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,n)}function X0(t){return t==null?"":$q(t)}var zA,Vq=(zA=function(t,e,n){return e=e.toLowerCase(),t+(n?Uq(X0(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=X0(e),(n=r?void 0:n)===void 0?function(o){return jq.test(o)}(e)?function(o){return o.match(_q)||[]}(e):function(o){return o.match(Dq)||[]}(e):e.match(n)||[]}(function(e){return(e=X0(e))&&e.replace(xq,Rq).replace(Fq,"")}(t).replace(Bq,"")),zA,"")}),$A,Uq=($A="toUpperCase",function(t){var e=vj(t=X0(t))?Mq(t):void 0,n=e?e[0]:t.charAt(0),r=e?Hq(e,1).join(""):t.slice(1);return n[$A]()+r});for(var Wq=Vq,Gq=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Am={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},yj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Gq?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},R5={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},Rh=1;Rh<20;Rh++)R5["f"+Rh]=111+Rh;function mj(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in Am)l[Am[p]]=!1;var d=!0,y=!1,g=void 0;try{for(var v,m=c[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var h=v.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=bj(h),D=Am[w];if(h.length>1&&!D&&!yj[h]&&!R5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=qq(h)),D&&(l[D]=!b||null)}}catch(S){y=!0,g=S}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function qq(t){return t=bj(t),R5[t]||t.toUpperCase().charCodeAt(0)}function bj(t){return t=t.toLowerCase(),t=yj[t]||t}var Kq=mj,Om=function(t,e){return mj(t,{byKey:!0},e)},Yq=/^\s+|\s+$/g,Xq=/^[-+]0x[0-9a-f]+$/i,Zq=/^0b[01]+$/i,Jq=/^0o[0-7]+$/i,Qq=parseInt,tK=typeof se=="object"&&se&&se.Object===Object&&se,eK=typeof self=="object"&&self&&self.Object===Object&&self,nK=tK||eK||Function("return this")(),rK=Object.prototype.toString,oK=Math.max,iK=Math.min,km=function(){return nK.Date.now()};function aE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function HA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&rK.call(r)=="[object Symbol]"}(t))return NaN;if(aE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=aE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Yq,"");var n=Zq.test(t);return n||Jq.test(t)?Qq(t.slice(2),n?2:8):Xq.test(t)?NaN:+t}var As,wj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=km();if(g(b))return m(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?iK(D,i-(w-l)):D}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=km(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=HA(e)||0,aE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?oK(HA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(km())},h},Ej=is(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[S]=q[x]=q[O]=q[l]=q[c]=q[f]=q[d]=q[y]=q[g]=q[v]=q[T]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var nt=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,C=k&&k.exports===at;function P(F,z){return F.set(z[0],z[1]),F}function $(F,z){return F.add(z),F}function Y(F,z,J,ut){var Mt=-1,pe=F?F.length:0;for(ut&&pe&&(J=F[++Mt]);++Mt<pe;)J=z(J,F[Mt],Mt,F);return J}function V(F){var z=!1;if(F!=null&&typeof F.toString!="function")try{z=!!(F+"")}catch{}return z}function it(F){var z=-1,J=Array(F.size);return F.forEach(function(ut,Mt){J[++z]=[Mt,ut]}),J}function gt(F,z){return function(J){return F(z(J))}}function vt(F){var z=-1,J=Array(F.size);return F.forEach(function(ut){J[++z]=ut}),J}var Dt=Array.prototype,G=Function.prototype,It=Object.prototype,At=st["__core-js_shared__"],dt=function(){var F=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),Ot=G.toString,Be=It.hasOwnProperty,$t=It.toString,te=RegExp("^"+Ot.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=C?st.Buffer:void 0,mn=st.Symbol,zt=st.Uint8Array,In=gt(Object.getPrototypeOf,Object),Ir=Object.create,oo=It.propertyIsEnumerable,ys=Dt.splice,$a=Object.getOwnPropertySymbols,Lr=ye?ye.isBuffer:void 0,io=gt(Object.keys,Object),Io=ao(st,"DataView"),bn=ao(st,"Map"),wn=ao(st,"Promise"),En=ao(st,"Set"),Fn=ao(st,"WeakMap"),rn=ao(Object,"create"),hr=so(Io),xc=so(bn),di=so(wn),Lo=so(En),ms=so(Fn),Ha=mn?mn.prototype:void 0,bs=Ha?Ha.valueOf:void 0;function Rr(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var ut=F[z];this.set(ut[0],ut[1])}}function gr(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var ut=F[z];this.set(ut[0],ut[1])}}function Ro(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var ut=F[z];this.set(ut[0],ut[1])}}function Mr(F){this.__data__=new gr(F)}function pi(F,z){var J=_(F)||function(ne){return function(Wt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Wt)&&I(Wt)}(ne)&&Be.call(ne,"callee")&&(!oo.call(ne,"callee")||$t.call(ne)==o)}(F)?function(ne,Wt){for(var Ze=-1,Dn=Array(ne);++Ze<ne;)Dn[Ze]=Wt(Ze);return Dn}(F.length,String):[],ut=J.length,Mt=!!ut;for(var pe in F)!z&&!Be.call(F,pe)||Mt&&(pe=="length"||Eh(pe,ut))||J.push(pe);return J}function bh(F,z,J){var ut=F[z];Be.call(F,z)&&Dh(ut,J)&&(J!==void 0||z in F)||(F[z]=J)}function Yn(F,z){for(var J=F.length;J--;)if(Dh(F[J][0],z))return J;return-1}function Sc(F,z,J,ut,Mt,pe,ne){var Wt;if(ut&&(Wt=pe?ut(F,Mt,pe,ne):ut(F)),Wt!==void 0)return Wt;if(!ee(F))return F;var Ze=_(F);if(Ze){if(Wt=function(mt){var Xt=mt.length,Pe=mt.constructor(Xt);return Xt&&typeof mt[0]=="string"&&Be.call(mt,"index")&&(Pe.index=mt.index,Pe.input=mt.input),Pe}(F),!z)return function(mt,Xt){var Pe=-1,Lt=mt.length;for(Xt||(Xt=Array(Lt));++Pe<Lt;)Xt[Pe]=mt[Pe];return Xt}(F,Wt)}else{var Dn=uo(F),Va=Dn==u||Dn==s;if(Z(F))return function(mt,Xt){if(Xt)return mt.slice();var Pe=new mt.constructor(mt.length);return mt.copy(Pe),Pe}(F,z);if(Dn==f||Dn==o||Va&&!pe){if(V(F))return pe?F:{};if(Wt=function(mt){return typeof mt.constructor!="function"||hi(mt)?{}:(Xt=In(mt),ee(Xt)?Ir(Xt):{});var Xt}(Va?{}:F),!z)return function(mt,Xt){return wh(mt,Cc(mt),Xt)}(F,function(mt,Xt){return mt&&wh(Xt,Pt(Xt),mt)}(Wt,F))}else{if(!q[Dn])return pe?F:{};Wt=function(mt,Xt,Pe,Lt){var Gt=mt.constructor;switch(Xt){case h:return ws(mt);case i:case a:return new Gt(+mt);case b:return function(qt,Fe){var Tn=Fe?ws(qt.buffer):qt.buffer;return new qt.constructor(Tn,qt.byteOffset,qt.byteLength)}(mt,Lt);case w:case D:case S:case x:case O:case T:case R:case H:case M:return function(qt,Fe){var Tn=Fe?ws(qt.buffer):qt.buffer;return new qt.constructor(Tn,qt.byteOffset,qt.length)}(mt,Lt);case l:return function(qt,Fe,Tn){return Y(Fe?Tn(it(qt),!0):it(qt),P,new qt.constructor)}(mt,Lt,Pe);case c:case g:return new Gt(mt);case d:return function(qt){var Fe=new qt.constructor(qt.source,K.exec(qt));return Fe.lastIndex=qt.lastIndex,Fe}(mt);case y:return function(qt,Fe,Tn){return Y(Fe?Tn(vt(qt),!0):vt(qt),$,new qt.constructor)}(mt,Lt,Pe);case v:return function(qt){return bs?Object(bs.call(qt)):{}}(mt)}}(F,Dn,Sc,z)}}ne||(ne=new Mr);var $o=ne.get(F);if($o)return $o;if(ne.set(F,Wt),!Ze)var gi=J?function(mt){return function(Xt,Pe,Lt){var Gt=Pe(Xt);return _(Xt)?Gt:function(qt,Fe){for(var Tn=-1,Ln=Fe.length,zr=qt.length;++Tn<Ln;)qt[zr+Tn]=Fe[Tn];return qt}(Gt,Lt(Xt))}(mt,Pt,Cc)}(F):Pt(F);return function(mt,Xt){for(var Pe=-1,Lt=mt?mt.length:0;++Pe<Lt&&Xt(mt[Pe],Pe,mt)!==!1;);}(gi||F,function(mt,Xt){gi&&(mt=F[Xt=mt]),bh(Wt,Xt,Sc(mt,z,J,ut,Xt,F,ne))}),Wt}function Mo(F){return!(!ee(F)||function(z){return!!dt&&dt in z}(F))&&(ht(F)||V(F)?te:U).test(so(F))}function ws(F){var z=new F.constructor(F.byteLength);return new zt(z).set(new zt(F)),z}function wh(F,z,J,ut){J||(J={});for(var Mt=-1,pe=z.length;++Mt<pe;){var ne=z[Mt],Wt=ut?ut(J[ne],F[ne],ne,J,F):void 0;bh(J,ne,Wt===void 0?F[ne]:Wt)}return J}function zo(F,z){var J,ut,Mt=F.__data__;return((ut=typeof(J=z))=="string"||ut=="number"||ut=="symbol"||ut=="boolean"?J!=="__proto__":J===null)?Mt[typeof z=="string"?"string":"hash"]:Mt.map}function ao(F,z){var J=function(ut,Mt){return ut==null?void 0:ut[Mt]}(F,z);return Mo(J)?J:void 0}Rr.prototype.clear=function(){this.__data__=rn?rn(null):{}},Rr.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Rr.prototype.get=function(F){var z=this.__data__;if(rn){var J=z[F];return J===n?void 0:J}return Be.call(z,F)?z[F]:void 0},Rr.prototype.has=function(F){var z=this.__data__;return rn?z[F]!==void 0:Be.call(z,F)},Rr.prototype.set=function(F,z){return this.__data__[F]=rn&&z===void 0?n:z,this},gr.prototype.clear=function(){this.__data__=[]},gr.prototype.delete=function(F){var z=this.__data__,J=Yn(z,F);return!(J<0)&&(J==z.length-1?z.pop():ys.call(z,J,1),!0)},gr.prototype.get=function(F){var z=this.__data__,J=Yn(z,F);return J<0?void 0:z[J][1]},gr.prototype.has=function(F){return Yn(this.__data__,F)>-1},gr.prototype.set=function(F,z){var J=this.__data__,ut=Yn(J,F);return ut<0?J.push([F,z]):J[ut][1]=z,this},Ro.prototype.clear=function(){this.__data__={hash:new Rr,map:new(bn||gr),string:new Rr}},Ro.prototype.delete=function(F){return zo(this,F).delete(F)},Ro.prototype.get=function(F){return zo(this,F).get(F)},Ro.prototype.has=function(F){return zo(this,F).has(F)},Ro.prototype.set=function(F,z){return zo(this,F).set(F,z),this},Mr.prototype.clear=function(){this.__data__=new gr},Mr.prototype.delete=function(F){return this.__data__.delete(F)},Mr.prototype.get=function(F){return this.__data__.get(F)},Mr.prototype.has=function(F){return this.__data__.has(F)},Mr.prototype.set=function(F,z){var J=this.__data__;if(J instanceof gr){var ut=J.__data__;if(!bn||ut.length<199)return ut.push([F,z]),this;J=this.__data__=new Ro(ut)}return J.set(F,z),this};var Cc=$a?gt($a,Object):function(){return[]},uo=function(F){return $t.call(F)};function Eh(F,z){return!!(z=z??r)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F<z}function hi(F){var z=F&&F.constructor;return F===(typeof z=="function"&&z.prototype||It)}function so(F){if(F!=null){try{return Ot.call(F)}catch{}try{return F+""}catch{}}return""}function Dh(F,z){return F===z||F!=F&&z!=z}(Io&&uo(new Io(new ArrayBuffer(1)))!=b||bn&&uo(new bn)!=l||wn&&uo(wn.resolve())!=p||En&&uo(new En)!=y||Fn&&uo(new Fn)!=m)&&(uo=function(F){var z=$t.call(F),J=z==f?F.constructor:void 0,ut=J?so(J):void 0;if(ut)switch(ut){case hr:return b;case xc:return l;case di:return p;case Lo:return y;case ms:return m}return z});var _=Array.isArray;function I(F){return F!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(F.length)&&!ht(F)}var Z=Lr||function(){return!1};function ht(F){var z=ee(F)?$t.call(F):"";return z==u||z==s}function ee(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function Pt(F){return I(F)?pi(F):function(z){if(!hi(z))return io(z);var J=[];for(var ut in Object(z))Be.call(z,ut)&&ut!="constructor"&&J.push(ut);return J}(F)}t.exports=function(F){return Sc(F,!0,!0)}});function VA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var aK=0;function uK(t){return"__private_"+aK+++"_"+t}function sK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function UA(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=sK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var Dj=(As=uK("apply"),class{constructor(t){Object.defineProperty(this,As,{value:lK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(VA(this,As)[As],this):VA(this,As)[As](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return UA(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return UA(n,e)}});function lK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var xj=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;g<v;g++){var m=y[g];if(m==="*"&&(f=f.concat(e[m])),d.length===2&&d[0]===m){f=f.concat(e[m]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,y=f.length;d<y&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},cK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:fK}=cK,WA=t=>crypto.getRandomValues(new Uint8Array(t)),GA=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var dK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>GA(t,e,WA),customRandom:GA,urlAlphabet:fK,random:WA},Bm=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function Sj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Sj.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var pK=/[\/\+\.]/,hK=function(t,e){function n(r){var o=function(i,a,u){var s=new Sj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,pK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},gK=0;function vK(t){return"__private_"+gK+++"_"+t}var Fm=vK("publish");class Cj{constructor(){Object.defineProperty(this,Fm,{value:yK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,Fm)[Fm](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function yK(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Cj.VERSION="2.0.3";var qA=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},KA={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 YA(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var mK=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function Tm(t){return t<10?`0${t}`:t.toString()}var Mh=function(){const t=new Date;return`${Tm(t.getHours())}:${Tm(t.getMinutes())}:${Tm(t.getSeconds())}`},Aj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Mh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Mh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Mh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Mh()}]`,...e)}}},bK={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}"}}},Oj=dK;let kj,Bj;function ft(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var wK=0;function Xe(t){return"__private_"+wK+++"_"+t}const{nanoid:EK}=Oj,{justErrorsLogger:DK,debugLogger:xK}=Aj;class yo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class SK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pn=Xe("plugins"),Lc=Xe("storeUnsubscribe"),Vo=Xe("emitter"),cu=Xe("preProcessors"),fu=Xe("uploaders"),Yo=Xe("postProcessors"),ad=Xe("checkRestrictions"),_m=Xe("checkMinNumberOfFiles"),zd=Xe("checkRequiredMetaFieldsOnFile"),Pm=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Rc=Xe("assertNewUploadAllowed"),Mc=Xe("checkAndCreateFileStateObject"),zc=Xe("startIfAutoProceed"),jm=Xe("addListeners"),Hr=Xe("updateOnlineStatus"),Uo=Xe("createUpload"),Nm=Xe("getUpload"),gu=Xe("removeUpload"),Wo=Xe("runUpload");kj=Symbol.for("uppy test: getPlugins"),Bj=Symbol.for("uppy test: createUpload");class Fj{constructor(e){Object.defineProperty(this,Wo,{value:LK}),Object.defineProperty(this,gu,{value:IK}),Object.defineProperty(this,Nm,{value:NK}),Object.defineProperty(this,Uo,{value:jK}),Object.defineProperty(this,jm,{value:PK}),Object.defineProperty(this,zc,{value:_K}),Object.defineProperty(this,Mc,{value:TK}),Object.defineProperty(this,Rc,{value:FK}),Object.defineProperty(this,Je,{value:BK}),Object.defineProperty(this,Pm,{value:kK}),Object.defineProperty(this,zd,{value:OK}),Object.defineProperty(this,_m,{value:AK}),Object.defineProperty(this,ad,{value:CK}),Object.defineProperty(this,pn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Lc,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:xj()}),Object.defineProperty(this,cu,{writable:!0,value:new Set}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,Yo,{writable:!0,value:new Set}),Object.defineProperty(this,Hr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=bK;const n={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:r=>r,onBeforeUpload:r=>r,store:new Cj,logger:DK,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.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=xK),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=qu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:mK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,Lc)[Lc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,jm)[jm]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ft(this,Vo)[Vo].emit(e,...r)}on(e,n){return ft(this,Vo)[Vo].on(e,n),this}once(e,n){return ft(this,Vo)[Vo].once(e,n),this}off(e,n){return ft(this,Vo)[Vo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){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],...n}}})}i18nInit(){const e=new Dj([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(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,cu)[cu].add(e)}removePreProcessor(e){return ft(this,cu)[cu].delete(e)}addPostProcessor(e){ft(this,Yo)[Yo].add(e)}removePostProcessor(e){return ft(this,Yo)[Yo].delete(e)}addUploader(e){ft(this,fu)[fu].add(e)}removeUploader(e){return ft(this,fu)[fu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(e,n){try{return ft(this,ad)[ad](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ft(this,Rc)[Rc](e);const{files:n}=this.getState();let r=ft(this,Mc)[Mc](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ft(this,zc)[zc](),r.id}addFiles(e){ft(this,Rc)[Rc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=ft(this,Mc)[Mc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
id: ${r[i].id}
type: ${r[i].type}`)}),r.length>0&&ft(this,zc)[zc](),o.length>0){let i=`Multiple errors occurred while adding files:
`;if(o.forEach(a=>{i+=`
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ft(this,Uo)[Uo](n,{forceAllowNewUpload:!0});return ft(this,Wo)[Wo](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"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 n=ft(this,Uo)[Uo]([e],{forceAllowNewUpload:!0});return ft(this,Wo)[Wo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||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,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in ft(this,pn)[pn]?ft(this,pn)[pn][r.type].push(r):ft(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,pn)[pn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[kj](e){return ft(this,pn)[pn][e]}iteratePlugins(e){Object.values(ft(this,pn)[pn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,pn)[pn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ft(this,Lc)[Lc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Hr)[Hr]),window.removeEventListener("offline",ft(this,Hr)[Hr]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ft(this,Wo)[Wo](e):(ft(this,gu)[gu](e),Promise.reject(new Error("Nonexistent upload")))}[Bj](){return ft(this,Uo)[Uo](...arguments)}addResultData(e,n){if(!ft(this,Nm)[Nm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,pn)[pn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ft(this,_m)[_m](n),ft(this,Pm)[Pm](n)}).catch(o=>{ft(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Uo)[Uo](a);return ft(this,Wo)[Wo](u)}).catch(o=>{ft(this,Je)[Je](o,{showInformer:!1})}))}}function CK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new yo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&hK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new yo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new yo(this.i18n("exceedsSize",{size:Bm(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new yo(this.i18n("exceedsSize",{size:Bm(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new yo(this.i18n("inferiorSize",{size:Bm(r)}))}function AK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new yo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function OK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new yo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ft(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function kK(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return ft(this,zd)[zd](r)});if(e.length)throw new SK(e,`${this.i18n("missingRequiredMetaField")}`)}function BK(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function FK(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,Je)[Je](new yo(this.i18n("noMoreFilesAllowed")),{file:t})}function TK(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=qA(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in KA?KA[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=qA(r).extension,i=!!e.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${YA(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${YA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new yo(this.i18n("noDuplicates",{fileName:r}));ft(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ft(this,Je)[Je](new yo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);ft(this,ad)[ad](l,f)}catch(f){ft(this,Je)[Je](f,{file:l})}return l}function _K(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function PK(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,Je)[Je](o,{throwErr:!1})}else ft(this,Je)[Je](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,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ft(this,Yo)[Yo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):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 n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):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 n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,zd)[zd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,Hr)[Hr]),window.addEventListener("offline",ft(this,Hr)[Hr]),setTimeout(ft(this,Hr)[Hr],3e3))}function jK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=EK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function NK(t){const{currentUploads:e}=this.getState();return e[t]}function IK(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function LK(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ft(this,cu)[cu],...ft(this,fu)[fu],...ft(this,Yo)[Yo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),ft(this,gu)[gu](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ft(this,gu)[gu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}Fj.VERSION="2.1.3";var Tj=Fj,RK=is(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(k,C){for(var P in C)k[P]=C[P];return k}function y(k){var C=k.parentNode;C&&C.removeChild(k)}function g(k,C,P){var $,Y,V,it={};for(V in C)V=="key"?$=C[V]:V=="ref"?Y=C[V]:it[V]=C[V];if(arguments.length>2&&(it.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)it[V]===void 0&&(it[V]=k.defaultProps[V]);return v(k,it,$,Y,null)}function v(k,C,P,$,Y){var V={type:k,props:C,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(V),V}function m(k){return k.children}function h(k,C){this.props=k,this.context=C}function b(k,C){if(C==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;C<k.__k.length;C++)if((P=k.__k[C])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var C,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,C=0;C<k.__k.length;C++)if((P=k.__k[C])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function D(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var k;S.__r=a.length;)k=a.sort(function(C,P){return C.__v.__b-P.__v.__b}),a=[],k.some(function(C){var P,$,Y,V,it,gt;C.__d&&(it=(V=(P=C).__v).__e,(gt=P.__P)&&($=[],(Y=d({},V)).__v=V.__v+1,U(gt,V,Y,P.__n,gt.ownerSVGElement!==void 0,V.__h!=null?[it]:null,$,it??b(V),V.__h),W($,V),V.__e!=it&&w(V)))})}function x(k,C,P,$,Y,V,it,gt,vt,Dt){var G,It,At,dt,Ot,Be,$t,te=$&&$.__k||f,ye=te.length;for(P.__k=[],G=0;G<C.length;G++)if((dt=P.__k[G]=(dt=C[G])==null||typeof dt=="boolean"?null:typeof dt=="string"||typeof dt=="number"||typeof dt=="bigint"?v(null,dt,null,null,dt):Array.isArray(dt)?v(m,{children:dt},null,null,null):dt.__b>0?v(dt.type,dt.props,dt.key,null,dt.__v):dt)!=null){if(dt.__=P,dt.__b=P.__b+1,(At=te[G])===null||At&&dt.key==At.key&&dt.type===At.type)te[G]=void 0;else for(It=0;It<ye;It++){if((At=te[It])&&dt.key==At.key&&dt.type===At.type){te[It]=void 0;break}At=null}U(k,dt,At=At||c,Y,V,it,gt,vt,Dt),Ot=dt.__e,(It=dt.ref)&&At.ref!=It&&($t||($t=[]),At.ref&&$t.push(At.ref,null,dt),$t.push(It,dt.__c||Ot,dt)),Ot!=null?(Be==null&&(Be=Ot),typeof dt.type=="function"&&dt.__k===At.__k?dt.__d=vt=O(dt,vt,k):vt=T(k,dt,At,te,Ot,vt),typeof P.type=="function"&&(P.__d=vt)):vt&&At.__e==vt&&vt.parentNode!=k&&(vt=b(At))}for(P.__e=Be,G=ye;G--;)te[G]!=null&&(typeof P.type=="function"&&te[G].__e!=null&&te[G].__e==P.__d&&(P.__d=b($,G+1)),lt(te[G],te[G]));if($t)for(G=0;G<$t.length;G++)nt($t[G],$t[++G],$t[++G])}function O(k,C,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,C=typeof $.type=="function"?O($,C,P):T(P,$,$,Y,$.__e,C));return C}function T(k,C,P,$,Y,V){var it,gt,vt;if(C.__d!==void 0)it=C.__d,C.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),it=null;else{for(gt=V,vt=0;(gt=gt.nextSibling)&&vt<$.length;vt+=2)if(gt==Y)break t;k.insertBefore(Y,V),it=V}return it!==void 0?it:Y.nextSibling}function R(k,C,P){C[0]==="-"?k.setProperty(C,P):k[C]=P==null?"":typeof P!="number"||p.test(C)?P:P+"px"}function H(k,C,P,$,Y){var V;t:if(C==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(C in $)P&&C in P||R(k.style,C,"");if(P)for(C in P)$&&P[C]===$[C]||R(k.style,C,P[C])}else if(C[0]==="o"&&C[1]==="n")V=C!==(C=C.replace(/Capture$/,"")),C=C.toLowerCase()in k?C.toLowerCase().slice(2):C.slice(2),k.l||(k.l={}),k.l[C+V]=P,P?$||k.addEventListener(C,V?K:M,V):k.removeEventListener(C,V?K:M,V);else if(C!=="dangerouslySetInnerHTML"){if(Y)C=C.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(C!=="href"&&C!=="list"&&C!=="form"&&C!=="tabIndex"&&C!=="download"&&C in k)try{k[C]=P??"";break t}catch{}typeof P=="function"||(P!=null&&(P!==!1||C[0]==="a"&&C[1]==="r")?k.setAttribute(C,P):k.removeAttribute(C))}}function M(k){this.l[k.type+!1](r.event?r.event(k):k)}function K(k){this.l[k.type+!0](r.event?r.event(k):k)}function U(k,C,P,$,Y,V,it,gt,vt){var Dt,G,It,At,dt,Ot,Be,$t,te,ye,mn,zt=C.type;if(C.constructor!==void 0)return null;P.__h!=null&&(vt=P.__h,gt=C.__e=P.__e,C.__h=null,V=[gt]),(Dt=r.__b)&&Dt(C);try{t:if(typeof zt=="function"){if($t=C.props,te=(Dt=zt.contextType)&&$[Dt.__c],ye=Dt?te?te.props.value:Dt.__:$,P.__c?Be=(G=C.__c=P.__c).__=G.__E:("prototype"in zt&&zt.prototype.render?C.__c=G=new zt($t,ye):(C.__c=G=new h($t,ye),G.constructor=zt,G.render=st),te&&te.sub(G),G.props=$t,G.state||(G.state={}),G.context=ye,G.__n=$,It=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),zt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=d({},G.__s)),d(G.__s,zt.getDerivedStateFromProps($t,G.__s))),At=G.props,dt=G.state,It)zt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&$t!==At&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps($t,ye),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate($t,G.__s,ye)===!1||C.__v===P.__v){G.props=$t,G.state=G.__s,C.__v!==P.__v&&(G.__d=!1),G.__v=C,C.__e=P.__e,C.__k=P.__k,C.__k.forEach(function(In){In&&(In.__=C)}),G.__h.length&&it.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate($t,G.__s,ye),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(At,dt,Ot)})}G.context=ye,G.props=$t,G.state=G.__s,(Dt=r.__r)&&Dt(C),G.__d=!1,G.__v=C,G.__P=k,Dt=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=d(d({},$),G.getChildContext())),It||G.getSnapshotBeforeUpdate==null||(Ot=G.getSnapshotBeforeUpdate(At,dt)),mn=Dt!=null&&Dt.type===m&&Dt.key==null?Dt.props.children:Dt,x(k,Array.isArray(mn)?mn:[mn],C,P,$,Y,V,it,gt,vt),G.base=C.__e,C.__h=null,G.__h.length&&it.push(G),Be&&(G.__E=G.__=null),G.__e=!1}else V==null&&C.__v===P.__v?(C.__k=P.__k,C.__e=P.__e):C.__e=q(P.__e,C,P,$,Y,V,it,vt);(Dt=r.diffed)&&Dt(C)}catch(In){C.__v=null,(vt||V!=null)&&(C.__e=gt,C.__h=!!vt,V[V.indexOf(gt)]=null),r.__e(In,C,P)}}function W(k,C){r.__c&&r.__c(C,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){r.__e($,P.__v)}})}function q(k,C,P,$,Y,V,it,gt){var vt,Dt,G,It=P.props,At=C.props,dt=C.type,Ot=0;if(dt==="svg"&&(Y=!0),V!=null){for(;Ot<V.length;Ot++)if((vt=V[Ot])&&"setAttribute"in vt==!!dt&&(dt?vt.localName===dt:vt.nodeType===3)){k=vt,V[Ot]=null;break}}if(k==null){if(dt===null)return document.createTextNode(At);k=Y?document.createElementNS("http://www.w3.org/2000/svg",dt):document.createElement(dt,At.is&&At),V=null,gt=!1}if(dt===null)It===At||gt&&k.data===At||(k.data=At);else{if(V=V&&n.call(k.childNodes),Dt=(It=P.props||c).dangerouslySetInnerHTML,G=At.dangerouslySetInnerHTML,!gt){if(V!=null)for(It={},Ot=0;Ot<k.attributes.length;Ot++)It[k.attributes[Ot].name]=k.attributes[Ot].value;(G||Dt)&&(G&&(Dt&&G.__html==Dt.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Be,$t,te,ye,mn){var zt;for(zt in te)zt==="children"||zt==="key"||zt in $t||H(Be,zt,null,te[zt],ye);for(zt in $t)mn&&typeof $t[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||te[zt]===$t[zt]||H(Be,zt,$t[zt],te[zt],ye)}(k,At,It,Y,gt),G)C.__k=[];else if(Ot=C.props.children,x(k,Array.isArray(Ot)?Ot:[Ot],C,P,$,Y&&dt!=="foreignObject",V,it,V?V[0]:P.__k&&b(P,0),gt),V!=null)for(Ot=V.length;Ot--;)V[Ot]!=null&&y(V[Ot]);gt||("value"in At&&(Ot=At.value)!==void 0&&(Ot!==It.value||Ot!==k.value||dt==="progress"&&!Ot)&&H(k,"value",Ot,It.value,!1),"checked"in At&&(Ot=At.checked)!==void 0&&Ot!==k.checked&&H(k,"checked",Ot,It.checked,!1))}return k}function nt(k,C,P){try{typeof k=="function"?k(C):k.current=C}catch($){r.__e($,P)}}function lt(k,C,P){var $,Y;if(r.unmount&&r.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||nt($,null,C)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,C)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&<($[Y],C,typeof k.type!="function");P||k.__e==null||y(k.__e),k.__e=k.__d=void 0}function st(k,C,P){return this.constructor(k,P)}function at(k,C,P){var $,Y,V;r.__&&r.__(k,C),Y=($=typeof P=="function")?null:P&&P.__k||C.__k,V=[],U(C,k=(!$&&P||C).__k=g(m,null,[k]),Y||c,c,C.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:C.firstChild?n.call(C.childNodes):null,V,!$&&P?P:Y?Y.__e:C.firstChild,$),W(V,k)}n=f.slice,r={__e:function(k,C){for(var P,$,Y;C=C.__;)if((P=C.__c)&&!P.__)try{if(($=P.constructor)&&$.getDerivedStateFromError!=null&&(P.setState($.getDerivedStateFromError(k)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),Y=P.__d),Y)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,C){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof k=="function"&&(k=k(d({},P),this.props)),k&&d(P,k),k!=null&&this.__v&&(C&&this.__h.push(C),D(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),D(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,C,P){var $,Y,V,it=d({},k.props);for(V in C)V=="key"?$=C[V]:V=="ref"?Y=C[V]:it[V]=C[V];return arguments.length>2&&(it.children=arguments.length>3?n.call(arguments,2):P),v(k.type,it,$||k.key,Y||k.ref,null)},e.createContext=function(k,C){var P={__c:C="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[C]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(it){this.props.value!==it.value&&Y.some(D)},this.sub=function(it){Y.push(it);var gt=it.componentWillUnmount;it.componentWillUnmount=function(){Y.splice(Y.indexOf(it),1),gt&>.call(it)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(C,P){at(C,P,k)},e.isValidElement=i,e.options=r,e.render=at,e.toChildArray=function k(C,P){return P=P||[],C==null||typeof C=="boolean"||(Array.isArray(C)?C.some(function($){k($,P)}):P.push(C)),P}}),MK=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},M5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new Dj([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),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 XA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var zK=0;function $K(t){return"__private_"+zK+++"_"+t}const{render:ZA}=RK;var $c=$K("updateUI");class z5 extends M5{constructor(){super(...arguments),Object.defineProperty(this,$c,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=MK(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return XA(this,$c)[$c]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(ZA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),ZA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof z5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" 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(a)}update(e){var n,r;this.el!=null&&((n=(r=XA(this,$c))[$c])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var HK=z5;const{debugLogger:VK}=Aj;var Yf=Tj,UK=Tj,WK=HK,GK=M5,qK=VK;Yf.Uppy=UK,Yf.UIPlugin=WK,Yf.BasePlugin=GK,Yf.debugLogger=qK;class KK extends Error{constructor(e,n){n===void 0&&(n=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=n}}var $5=KK,Im=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new $5(t)})};class YK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var zh,wi,fo,Ei,JA,XK=YK;function co(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ZK=0;function Lm(t){return"__private_"+ZK+++"_"+t}async function Rm(t){if(t.status===401)throw new XK;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var Mm=(wi=Lm("getPostResponseFunc"),fo=Lm("getUrl"),Ei=Lm("errorHandler"),JA=zh=class _j{constructor(e,n){Object.defineProperty(this,Ei,{value:QK}),Object.defineProperty(this,fo,{value:JK}),Object.defineProperty(this,wi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,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(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({..._j.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(co(this,fo)[fo](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>Im(co(this,fo)[fo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(co(this,wi)[wi](n)).then(Rm).catch(co(this,Ei)[Ei]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Im(co(this,fo)[fo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(co(this,wi)[wi](r)).then(Rm).catch(co(this,Ei)[Ei](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>Im(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(co(this,wi)[wi](r)).then(Rm).catch(co(this,Ei)[Ei](o,e))}},zh.VERSION="2.0.4",zh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${zh.VERSION}`},JA);function JK(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function QK(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${co(this,fo)[fo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var tY={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},lo,Di,vr,xn,$h;let QA,t7;function $e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var eY=0;function Hc(t){return"__private_"+eY+++"_"+t}var nY=(lo=Hc("queued"),Di=Hc("emitter"),vr=Hc("isOpen"),xn=Hc("socket"),$h=Hc("handleMessage"),QA=Symbol.for("uppy test: getSocket"),t7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,lo,{writable:!0,value:[]}),Object.defineProperty(this,Di,{writable:!0,value:xj()}),Object.defineProperty(this,vr,{writable:!0,value:!1}),Object.defineProperty(this,xn,{writable:!0,value:void 0}),Object.defineProperty(this,$h,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return $e(this,vr)[vr]}[QA](){return $e(this,xn)[xn]}[t7](){return $e(this,lo)[lo]}open(){$e(this,xn)[xn]=new WebSocket(this.opts.target),$e(this,xn)[xn].onopen=()=>{for($e(this,vr)[vr]=!0;$e(this,lo)[lo].length>0&&$e(this,vr)[vr];){const t=$e(this,lo)[lo].shift();this.send(t.action,t.payload)}},$e(this,xn)[xn].onclose=()=>{$e(this,vr)[vr]=!1},$e(this,xn)[xn].onmessage=$e(this,$h)[$h]}close(){var t;(t=$e(this,xn)[xn])==null||t.close()}send(t,e){$e(this,vr)[vr]?$e(this,xn)[xn].send(JSON.stringify({action:t,payload:e})):$e(this,lo)[lo].push({action:t,payload:e})}on(t,e){$e(this,Di)[Di].on(t,e)}emit(t,e){$e(this,Di)[Di].emit(t,e)}once(t,e){$e(this,Di)[Di].once(t,e)}}),rY={RequestClient:Mm,Provider:class extends Mm{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),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(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.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(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||tY}},SearchProvider:class extends Mm{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:nY},xi,Os,oY=qu(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Vc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var iY=0;function e7(t){return"__private_"+iY+++"_"+t}var n7=(xi=e7("emitter"),Os=e7("events"),class{constructor(t){Object.defineProperty(this,xi,{writable:!0,value:void 0}),Object.defineProperty(this,Os,{writable:!0,value:[]}),Vc(this,xi)[xi]=t}on(t,e){return Vc(this,Os)[Os].push([t,e]),Vc(this,xi)[xi].on(t,e)}remove(){for(const[t,e]of Vc(this,Os)[Os].splice(0))Vc(this,xi)[xi].off(t,e)}});function yr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var aY=0;function $1(t){return"__private_"+aY+++"_"+t}var Go=$1("aliveTimer"),qa=$1("isDone"),Uc=$1("onTimedOut"),Ka=$1("timeout"),r7=class{constructor(t,e){Object.defineProperty(this,Go,{writable:!0,value:void 0}),Object.defineProperty(this,qa,{writable:!0,value:!1}),Object.defineProperty(this,Uc,{writable:!0,value:void 0}),Object.defineProperty(this,Ka,{writable:!0,value:void 0}),yr(this,Ka)[Ka]=t,yr(this,Uc)[Uc]=e}progress(){yr(this,qa)[qa]||yr(this,Ka)[Ka]>0&&(clearTimeout(yr(this,Go)[Go]),yr(this,Go)[Go]=setTimeout(yr(this,Uc)[Uc],yr(this,Ka)[Ka]))}done(){yr(this,qa)[qa]||(clearTimeout(yr(this,Go)[Go]),yr(this,Go)[Go]=null,yr(this,qa)[qa]=!0)}};function Ue(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var uY=0;function cs(t){return"__private_"+uY+++"_"+t}function sY(){return new Error("Cancelled")}var Jn=cs("activeRequests"),Pn=cs("queuedHandlers"),ud=cs("call"),Xf=cs("queueNext"),uE=cs("next"),zm=cs("queue"),sE=cs("dequeue");function lY(t){Ue(this,Jn)[Jn]+=1;let e,n=!1;try{e=t()}catch(r){throw Ue(this,Jn)[Jn]-=1,r}return{abort:()=>{n||(n=!0,Ue(this,Jn)[Jn]-=1,e(),Ue(this,Xf)[Xf]())},done:()=>{n||(n=!0,Ue(this,Jn)[Jn]-=1,Ue(this,Xf)[Xf]())}}}function cY(){queueMicrotask(()=>Ue(this,uE)[uE]())}function fY(){if(Ue(this,Jn)[Jn]>=this.limit||Ue(this,Pn)[Pn].length===0)return;const t=Ue(this,Pn)[Pn].shift(),e=Ue(this,ud)[ud](t.fn);t.abort=e.abort,t.done=e.done}function dY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ue(this,sE)[sE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ue(this,Pn)[Pn].findIndex(o=>n.priority>o.priority);return r===-1?Ue(this,Pn)[Pn].push(n):Ue(this,Pn)[Pn].splice(r,0,n),n}function pY(t){const e=Ue(this,Pn)[Pn].indexOf(t);e!==-1&&Ue(this,Pn)[Pn].splice(e,1)}var hY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,sE,{value:pY}),Object.defineProperty(this,zm,{value:dY}),Object.defineProperty(this,uE,{value:fY}),Object.defineProperty(this,Xf,{value:cY}),Object.defineProperty(this,ud,{value:lY}),Object.defineProperty(this,Jn,{writable:!0,value:0}),Object.defineProperty(this,Pn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ue(this,Jn)[Jn]<this.limit?Ue(this,ud)[ud](t):Ue(this,zm)[zm](t,e)}wrapPromiseFunction(t,e){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((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=sY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},o7,i7,Pj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},gY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:vY}=Oj,{Provider:yY,RequestClient:mY,Socket:bY}=rY,{RateLimitedQueue:wY,internalRateLimitedQueue:$m}=hY;function a7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Pj(t)?(n=new $5(n,t),n):(n.request=t,n)}function u7(t){return t.data.slice(0,t.data.size,t.meta.type)}var EY=(i7=o7=class extends M5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=gY;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Pj(o)&&(i=new $5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),$m in this.opts?this.requests=this.opts[$m]:this.requests=new wY(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(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=u7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=u7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new n7(this.uppy);const s=new r7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=vY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),v=g[r.responseUrlFieldName],m={status:f.target.status,body:g,uploadURL:v};return this.uppy.emit("upload-success",t,m),v&&this.uppy.log(`Download ${t.name} from ${v}`),o(t)}const p=r.getResponseData(u.responseText,u),d=a7(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,y),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=a7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?yY:mY)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new bY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new n7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>oY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new r7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(y=>{this.uppy.emit("upload-success",y,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),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(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[$m]||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 e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},o7.VERSION="2.0.6",i7),s7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hp(t){var e={exports:{}};return t(e,e.exports),e.exports}var Si,Z0,Hh=function(t){return t&&t.Math==Math&&t},X=Hh(typeof globalThis=="object"&&globalThis)||Hh(typeof window=="object"&&window)||Hh(typeof self=="object"&&self)||Hh(typeof s7=="object"&&s7)||function(){return this}()||Function("return this")(),DY=Object.defineProperty,H5=function(t,e){try{DY(X,t,{value:e,configurable:!0,writable:!0})}catch{X[t]=e}return e},ra=X["__core-js_shared__"]||H5("__core-js_shared__",{}),V5=Hp(function(t){(t.exports=function(e,n){return ra[e]||(ra[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jj=Function.prototype,lE=jj.bind,cE=jj.call,xY=lE&&lE.bind(cE),pt=lE?function(t){return t&&xY(cE,t)}:function(t){return t&&function(){return cE.apply(t,arguments)}},SY=X.TypeError,_r=function(t){if(t==null)throw SY("Can't call method on "+t);return t},CY=X.Object,ja=function(t){return CY(_r(t))},AY=pt({}.hasOwnProperty),Ie=Object.hasOwn||function(t,e){return AY(ja(t),e)},OY=0,kY=Math.random(),BY=pt(1 .toString),U5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+BY(++OY+kY,36)},re=function(t){return typeof t=="function"},FY=function(t){return re(t)?t:void 0},fs=function(t,e){return arguments.length<2?FY(X[t]):X[t]&&X[t][e]},pl=fs("navigator","userAgent")||"",l7=X.process,c7=X.Deno,f7=l7&&l7.versions||c7&&c7.version,d7=f7&&f7.v8;d7&&(Z0=(Si=d7.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!Z0&&pl&&(!(Si=pl.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=pl.match(/Chrome\/(\d+)/))&&(Z0=+Si[1]);var $d=Z0,Zt=function(t){try{return!!t()}catch{return!0}},fE=!!Object.getOwnPropertySymbols&&!Zt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$d&&$d<41}),W5=fE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wc=V5("wks"),Au=X.Symbol,p7=Au&&Au.for,TY=W5?Au:Au&&Au.withoutSetter||U5,Se=function(t){if(!Ie(Wc,t)||!fE&&typeof Wc[t]!="string"){var e="Symbol."+t;fE&&Ie(Au,t)?Wc[t]=Au[t]:Wc[t]=W5&&p7?p7(e):TY(e)}return Wc[t]},Nj={};Nj[Se("toStringTag")]="z";var G5=String(Nj)==="[object z]",an=!Zt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ce=function(t){return typeof t=="object"?t!==null:re(t)},dE=X.document,_Y=ce(dE)&&ce(dE.createElement),Hd=function(t){return _Y?dE.createElement(t):{}},Ij=!an&&!Zt(function(){return Object.defineProperty(Hd("div"),"a",{get:function(){return 7}}).a!=7}),PY=X.String,jY=X.TypeError,Le=function(t){if(ce(t))return t;throw jY(PY(t)+" is not an object")},Gc=Function.prototype.call,Ut=Gc.bind?Gc.bind(Gc):function(){return Gc.apply(Gc,arguments)},Ku=pt({}.isPrototypeOf),NY=X.Object,Hm=W5?function(t){return typeof t=="symbol"}:function(t){var e=fs("Symbol");return re(e)&&Ku(e.prototype,NY(t))},IY=X.String,H1=function(t){try{return IY(t)}catch{return"Object"}},LY=X.TypeError,xa=function(t){if(re(t))return t;throw LY(H1(t)+" is not a function")},Yu=function(t,e){var n=t[e];return n==null?void 0:xa(n)},RY=X.TypeError,MY=X.TypeError,zY=Se("toPrimitive"),q5=function(t){var e=function(n,r){if(!ce(n)||Hm(n))return n;var o,i=Yu(n,zY);if(i){if(r===void 0&&(r="default"),o=Ut(i,n,r),!ce(o)||Hm(o))return o;throw MY("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&re(s=a.toString)&&!ce(l=Ut(s,a))||re(s=a.valueOf)&&!ce(l=Ut(s,a))||u!=="string"&&re(s=a.toString)&&!ce(l=Ut(s,a)))return l;throw RY("Can't convert object to primitive value")}(n,r)}(t,"string");return Hm(e)?e:e+""},$Y=X.TypeError,h7=Object.defineProperty,ro={f:an?h7:function(t,e,n){if(Le(t),e=q5(e),Le(n),Ij)try{return h7(t,e,n)}catch{}if("get"in n||"set"in n)throw $Y("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},V1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Xr=an?function(t,e,n){return ro.f(t,e,V1(1,n))}:function(t,e,n){return t[e]=n,t},HY=pt(Function.toString);re(ra.inspectSource)||(ra.inspectSource=function(t){return HY(t)});var nv,sd,rv,U1=ra.inspectSource,g7=X.WeakMap,Lj=re(g7)&&/native code/.test(U1(g7)),v7=V5("keys"),K5=function(t){return v7[t]||(v7[t]=U5(t))},W1={},pE=X.TypeError,VY=X.WeakMap;if(Lj||ra.state){var Ya=ra.state||(ra.state=new VY),UY=pt(Ya.get),y7=pt(Ya.has),WY=pt(Ya.set);nv=function(t,e){if(y7(Ya,t))throw new pE("Object already initialized");return e.facade=t,WY(Ya,t,e),e},sd=function(t){return UY(Ya,t)||{}},rv=function(t){return y7(Ya,t)}}else{var ks=K5("state");W1[ks]=!0,nv=function(t,e){if(Ie(t,ks))throw new pE("Object already initialized");return e.facade=t,Xr(t,ks,e),e},sd=function(t){return Ie(t,ks)?t[ks]:{}},rv=function(t){return Ie(t,ks)}}var kn={set:nv,get:sd,has:rv,enforce:function(t){return rv(t)?sd(t):nv(t,{})},getterFor:function(t){return function(e){var n;if(!ce(e)||(n=sd(e)).type!==t)throw pE("Incompatible receiver, "+t+" required");return n}}},Rj=Function.prototype,GY=an&&Object.getOwnPropertyDescriptor,Vm=Ie(Rj,"name"),sc={EXISTS:Vm,PROPER:Vm&&(function(){}).name==="something",CONFIGURABLE:Vm&&(!an||an&&GY(Rj,"name").configurable)},Un=Hp(function(t){var e=sc.CONFIGURABLE,n=kn.get,r=kn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;re(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ie(u,"name")||e&&u.name!==d)&&Xr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==X?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Xr(i,a,u)):f?i[a]=u:H5(a,u)})(Function.prototype,"toString",function(){return re(this)&&n(this).source||U1(this)})}),qY=pt({}.toString),KY=pt("".slice),Zr=function(t){return KY(qY(t),8,-1)},YY=Se("toStringTag"),XY=X.Object,ZY=Zr(function(){return arguments}())=="Arguments",G1=G5?Zr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=XY(t),YY))=="string"?n:ZY?Zr(e):(r=Zr(e))=="Object"&&re(e.callee)?"Arguments":r},JY=G5?{}.toString:function(){return"[object "+G1(this)+"]"};G5||Un(Object.prototype,"toString",JY,{unsafe:!0});var ov={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},Um=Hd("span").classList,m7=Um&&Um.constructor&&Um.constructor.prototype,Mj=m7===Object.prototype?void 0:m7,b7=pt(pt.bind),Xu=function(t,e){return xa(t),e===void 0?t:b7?b7(t,e):function(){return t.apply(e,arguments)}},Wm=X.Object,QY=pt("".split),q1=Zt(function(){return!Wm("z").propertyIsEnumerable(0)})?function(t){return Zr(t)=="String"?QY(t,""):Wm(t)}:Wm,tX=Math.ceil,eX=Math.floor,Vp=function(t){var e=+t;return e!=e||e===0?0:(e>0?eX:tX)(e)},nX=Math.min,lc=function(t){return t>0?nX(Vp(t),9007199254740991):0},ds=function(t){return lc(t.length)},iv=Array.isArray||function(t){return Zr(t)=="Array"},zj=function(){},rX=[],$j=fs("Reflect","construct"),Y5=/^\s*(?:class|function)\b/,oX=pt(Y5.exec),iX=!Y5.exec(zj),qc=function(t){if(!re(t))return!1;try{return $j(zj,rX,t),!0}catch{return!1}},K1=!$j||Zt(function(){var t;return qc(qc.call)||!qc(Object)||!qc(function(){t=!0})||t})?function(t){if(!re(t))return!1;switch(G1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iX||!!oX(Y5,U1(t))}:qc,aX=Se("species"),w7=X.Array,Hj=function(t,e){return new(function(n){var r;return iv(n)&&(r=n.constructor,(K1(r)&&(r===w7||iv(r.prototype))||ce(r)&&(r=r[aX])===null)&&(r=void 0)),r===void 0?w7:r}(t))(e===0?0:e)},E7=pt([].push),Ci=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=ja(s),g=q1(y),v=Xu(l,c),m=ds(g),h=0,b=f||Hj,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:E7(w,p)}else switch(t){case 4:return!1;case 7:E7(w,p)}return i?-1:r||o?o:w}},cc={forEach:Ci(0),map:Ci(1),filter:Ci(2),some:Ci(3),every:Ci(4),find:Ci(5),findIndex:Ci(6),filterReject:Ci(7)},Vj=function(t,e){var n=[][t];return!!n&&Zt(function(){n.call(null,e||function(){throw 1},1)})},uX=cc.forEach,Gm=Vj("forEach")?[].forEach:function(t){return uX(this,t,arguments.length>1?arguments[1]:void 0)},Uj=function(t){if(t&&t.forEach!==Gm)try{Xr(t,"forEach",Gm)}catch{t.forEach=Gm}};for(var qm in ov)ov[qm]&&Uj(X[qm]&&X[qm].prototype);Uj(Mj);var D7={}.propertyIsEnumerable,x7=Object.getOwnPropertyDescriptor,sX=x7&&!D7.call({1:2},1)?function(t){var e=x7(this,t);return!!e&&e.enumerable}:D7,Wj={f:sX},Na=function(t){return q1(_r(t))},S7=Object.getOwnPropertyDescriptor,Up={f:an?S7:function(t,e){if(t=Na(t),e=q5(e),Ij)try{return S7(t,e)}catch{}if(Ie(t,e))return V1(!Ut(Wj.f,t,e),t[e])}},lX=Math.max,cX=Math.min,zl=function(t,e){var n=Vp(t);return n<0?lX(n+e,0):cX(n,e)},C7=function(t){return function(e,n,r){var o,i=Na(e),a=ds(i),u=zl(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Gj={includes:C7(!0),indexOf:C7(!1)},fX=Gj.indexOf,A7=pt([].push),qj=function(t,e){var n,r=Na(t),o=0,i=[];for(n in r)!Ie(W1,n)&&Ie(r,n)&&A7(i,n);for(;e.length>o;)Ie(r,n=e[o++])&&(~fX(i,n)||A7(i,n));return i},av=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dX=av.concat("length","prototype"),Vd={f:Object.getOwnPropertyNames||function(t){return qj(t,dX)}},Kj={f:Object.getOwnPropertySymbols},pX=pt([].concat),hX=fs("Reflect","ownKeys")||function(t){var e=Vd.f(Le(t)),n=Kj.f;return n?pX(e,n(t)):e},gX=function(t,e){for(var n=hX(e),r=ro.f,o=Up.f,i=0;i<n.length;i++){var a=n[i];Ie(t,a)||r(t,a,o(e,a))}},vX=/#|\.prototype\./,Wp=function(t,e){var n=mX[yX(t)];return n==wX||n!=bX&&(re(e)?Zt(e):!!e)},yX=Wp.normalize=function(t){return String(t).replace(vX,".").toLowerCase()},mX=Wp.data={},bX=Wp.NATIVE="N",wX=Wp.POLYFILL="P",Ud=Wp,EX=Up.f,De=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?X:l?X[u]||H5(u,{}):(X[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=EX(n,r))&&a.value:n[r],!Ud(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;gX(i,o)}(t.sham||o&&o.sham)&&Xr(i,"sham",!0),Un(n,r,i,t)}},hl=Object.keys||function(t){return qj(t,av)},DX=Zt(function(){hl(1)});/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function O7(t){return Object.prototype.toString.call(t)==="[object Object]"}De({target:"Object",stat:!0,forced:DX},{keys:function(t){return hl(ja(t))}});var xX={isHistory(t){return O7(e=t)!==!1&&((n=e.constructor)===void 0||O7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Yi.isOperationList(t.redos[0]))&&(t.undos.length===0||Yi.isOperationList(t.undos[0]));var e,n,r}},Km=new WeakMap,Ym=new WeakMap,ul={isHistoryEditor:t=>xX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>Ym.get(t),isSaving:t=>Km.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=ul.isMerging(t);Ym.set(t,!1),e(),Ym.set(t,n)},withoutSaving(t,e){var n=ul.isSaving(t);Km.set(t,!1),e(),Km.set(t,n)}},SX=X.String,ue=function(t){if(G1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return SX(t)},X5=function(){var t=Le(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},CX=sc.PROPER,hE=RegExp.prototype,Yj=hE.toString,AX=pt(X5),OX=Zt(function(){return Yj.call({source:"a",flags:"b"})!="/a/b"}),kX=CX&&Yj.name!="toString";(OX||kX)&&Un(RegExp.prototype,"toString",function(){var t=Le(this),e=ue(t.source),n=t.flags;return"/"+e+"/"+ue(n===void 0&&Ku(hE,t)&&!("flags"in hE)?AX(t):n)},{unsafe:!0});var Vh,BX=an?Object.defineProperties:function(t,e){Le(t);for(var n,r=Na(e),o=hl(e),i=o.length,a=0;i>a;)ro.f(t,n=o[a++],r[n]);return t},gE=fs("document","documentElement"),Xj=K5("IE_PROTO"),Xm=function(){},Zj=function(t){return"<script>"+t+"<\/script>"},k7=function(t){t.write(Zj("")),t.close();var e=t.parentWindow.Object;return t=null,e},J0=function(){try{Vh=new ActiveXObject("htmlfile")}catch{}var t,e;J0=typeof document<"u"?document.domain&&Vh?k7(Vh):((e=Hd("iframe")).style.display="none",gE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Zj("document.F=Object")),t.close(),t.F):k7(Vh);for(var n=av.length;n--;)delete J0.prototype[av[n]];return J0()};W1[Xj]=!0;var Y1=Object.create||function(t,e){var n;return t!==null?(Xm.prototype=Le(t),n=new Xm,Xm.prototype=null,n[Xj]=t):n=J0(),e===void 0?n:BX(n,e)},vE=Se("unscopables"),yE=Array.prototype;yE[vE]==null&&ro.f(yE,vE,{configurable:!0,value:Y1(null)});var ld=function(t){yE[vE][t]=!0},FX=Gj.includes;De({target:"Array",proto:!0},{includes:function(t){return FX(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("includes");var TX=Se("match"),Z5=function(t){var e;return ce(t)&&((e=t[TX])!==void 0?!!e:Zr(t)=="RegExp")},_X=X.TypeError,J5=function(t){if(Z5(t))throw _X("The method doesn't accept regular expressions");return t},PX=Se("match"),Q5=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[PX]=!1,"/./"[t](e)}catch{}}return!1},jX=pt("".indexOf);De({target:"String",proto:!0,forced:!Q5("includes")},{includes:function(t){return!!~jX(ue(_r(this)),ue(J5(t)),arguments.length>1?arguments[1]:void 0)}});var NX=/"/g,IX=pt("".replace);De({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ue(_r(this)),r="<a",(r+=' name="'+IX(ue(e),NX,""")+'"')+">"+n+"</a>";var e,n,r}});var mE=function(t,e,n){var r,o;Le(t);try{if(!(r=Yu(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},LX=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){mE(t,"throw",o)}},$l={},RX=Se("iterator"),MX=Array.prototype,Jj=function(t){return t!==void 0&&($l.Array===t||MX[RX]===t)},Wd=function(t,e,n){var r=q5(e);r in t?ro.f(t,r,V1(0,n)):t[r]=n},zX=Se("iterator"),tD=function(t){if(t!=null)return Yu(t,zX)||Yu(t,"@@iterator")||$l[G1(t)]},$X=X.TypeError,Qj=function(t,e){var n=arguments.length<2?tD(t):e;if(xa(n))return Le(Ut(n,t));throw $X(H1(t)+" is not iterable")},B7=X.Array,tN=Se("iterator"),eN=!1;try{var HX=0,F7={next:function(){return{done:!!HX++}},return:function(){eN=!0}};F7[tN]=function(){return this},Array.from(F7,function(){throw 2})}catch{}var eD=function(t,e){if(!e&&!eN)return!1;var n=!1;try{var r={};r[tN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},VX=!eD(function(t){Array.from(t)});De({target:"Array",stat:!0,forced:VX},{from:function(t){var e=ja(t),n=K1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Xu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=tD(e),d=0;if(!p||this==B7&&Jj(p))for(a=ds(e),u=n?new this(a):B7(a);a>d;d++)f=i?o(e[d],d):e[d],Wd(u,d,f);else for(c=(l=Qj(e,p)).next,u=n?new this:[];!(s=Ut(c,l)).done;d++)f=i?LX(l,o,[s.value,d],!0):s.value,Wd(u,d,f);return u.length=d,u}});var Ou,T7,_7,UX=pt("".charAt),P7=pt("".charCodeAt),WX=pt("".slice),j7=function(t){return function(e,n){var r,o,i=ue(_r(e)),a=Vp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=P7(i,a))<55296||r>56319||a+1===u||(o=P7(i,a+1))<56320||o>57343?t?UX(i,a):r:t?WX(i,a,a+2):o-56320+(r-55296<<10)+65536}},nN={codeAt:j7(!1),charAt:j7(!0)},GX=!Zt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),N7=K5("IE_PROTO"),bE=X.Object,qX=bE.prototype,uv=GX?bE.getPrototypeOf:function(t){var e=ja(t);if(Ie(e,N7))return e[N7];var n=e.constructor;return re(n)&&e instanceof n?n.prototype:e instanceof bE?qX:null},wE=Se("iterator"),rN=!1;[].keys&&("next"in(_7=[].keys())?(T7=uv(uv(_7)))!==Object.prototype&&(Ou=T7):rN=!0);var KX=Ou==null||Zt(function(){var t={};return Ou[wE].call(t)!==t});KX&&(Ou={}),re(Ou[wE])||Un(Ou,wE,function(){return this});var nD={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:rN},YX=ro.f,I7=Se("toStringTag"),sv=function(t,e,n){t&&!Ie(t=n?t:t.prototype,I7)&&YX(t,I7,{configurable:!0,value:e})},XX=nD.IteratorPrototype,ZX=function(){return this},JX=X.String,QX=X.TypeError,Hl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Le(r),function(i){if(typeof i=="object"||re(i))return i;throw QX("Can't set "+JX(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),tZ=sc.PROPER,eZ=sc.CONFIGURABLE,L7=nD.IteratorPrototype,Uh=nD.BUGGY_SAFARI_ITERATORS,Kc=Se("iterator"),nZ=function(){return this},rD=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Y1(XX,{next:V1(1,b)}),sv(m,D,!1),$l[D]=ZX})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Uh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Kc]||d["@@iterator"]||o&&d[o],g=!Uh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=uv(v.call(new t)))!==Object.prototype&&u.next&&(uv(u)!==L7&&(Hl?Hl(u,L7):re(u[Kc])||Un(u,Kc,nZ)),sv(u,f,!0)),tZ&&o=="values"&&y&&y.name!=="values"&&(eZ?Xr(d,"name","values"):(p=!0,g=function(){return Ut(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Uh||p||!(l in d))&&Un(d,l,s[l]);else De({target:e,proto:!0,forced:Uh||p},s);return d[Kc]!==g&&Un(d,Kc,g,{name:o}),$l[e]=g,s},rZ=nN.charAt,oZ=kn.set,iZ=kn.getterFor("String Iterator");rD(String,"String",function(t){oZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=iZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=rZ(n,r),e.index+=t.length,{value:t,done:!1})});var Zm,aZ=Up.f,R7=pt("".endsWith),uZ=pt("".slice),sZ=Math.min,oN=Q5("endsWith"),lZ=!(oN||(Zm=aZ(String.prototype,"endsWith"),!Zm||Zm.writable));De({target:"String",proto:!0,forced:!lZ&&!oN},{endsWith:function(t){var e=ue(_r(this));J5(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:sZ(lc(n),r),i=ue(t);return R7?R7(e,i,o):uZ(e,o-i.length,o)===i}});var cZ=pt([].join),fZ=q1!=Object,dZ=Vj("join",",");De({target:"Array",proto:!0,forced:fZ||!dZ},{join:function(t){return cZ(Na(this),t===void 0?",":t)}});var pZ=Se("species"),X1=function(t){return $d>=51||!Zt(function(){var e=[];return(e.constructor={})[pZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},hZ=cc.map,gZ=X1("map");De({target:"Array",proto:!0,forced:!gZ},{map:function(t){return hZ(this,t,arguments.length>1?arguments[1]:void 0)}});var oD=X.RegExp,EE=Zt(function(){var t=oD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),vZ=EE||Zt(function(){return!oD("a","y").sticky}),Z1={BROKEN_CARET:EE||Zt(function(){var t=oD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:vZ,UNSUPPORTED_Y:EE},yZ=X.RegExp,iD=Zt(function(){var t=yZ(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),mZ=X.RegExp,aD=Zt(function(){var t=mZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),bZ=kn.get,wZ=V5("native-string-replace",String.prototype.replace),lv=RegExp.prototype.exec,DE=lv,EZ=pt("".charAt),DZ=pt("".indexOf),xZ=pt("".replace),Jm=pt("".slice),Qm=function(){var t=/a/,e=/b*/g;return Ut(lv,t,"a"),Ut(lv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),M7=Z1.BROKEN_CARET,tb=/()??/.exec("")[1]!==void 0;(Qm||tb||M7||iD||aD)&&(DE=function(t){var e,n,r,o,i,a,u,s=this,l=bZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(DE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=M7&&s.sticky,y=Ut(X5,s),g=s.source,v=0,m=c;if(d&&(y=xZ(y,"y",""),DZ(y,"g")===-1&&(y+="g"),m=Jm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&EZ(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),tb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Qm&&(r=s.lastIndex),o=Ut(lv,d?n:s,m),d?o?(o.input=Jm(o.input,v),o[0]=Jm(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tb&&o&&o.length>1&&Ut(wZ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Y1(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Gd=DE;De({target:"RegExp",proto:!0,forced:/./.exec!==Gd},{exec:Gd});var uD=Function.prototype,z7=uD.apply,SZ=uD.bind,$7=uD.call,sD=typeof Reflect=="object"&&Reflect.apply||(SZ?$7.bind(z7):function(){return $7.apply(z7,arguments)}),CZ=Se("species"),eb=RegExp.prototype,lD=function(t,e,n,r){var o=Se(t),i=!Zt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Zt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[CZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=pt(l),g=c.exec;return g===Gd||g===eb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Un(String.prototype,t,s[0]),Un(eb,o,s[1])}r&&Xr(eb[o],"sham",!0)},AZ=nN.charAt,cD=function(t,e,n){return e+(n?AZ(t,e).length:1)},OZ=Math.floor,nb=pt("".charAt),kZ=pt("".replace),rb=pt("".slice),BZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,FZ=/\$([$&'`]|\d{1,2})/g,TZ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=FZ;return o!==void 0&&(o=ja(o),s=BZ),kZ(i,s,function(l,c){var f;switch(nb(c,0)){case"$":return"$";case"&":return t;case"`":return rb(e,0,n);case"'":return rb(e,a);case"<":f=o[rb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=OZ(p/10);return d===0?l:d<=u?r[d-1]===void 0?nb(c,1):r[d-1]+nb(c,1):l}f=r[p-1]}return f===void 0?"":f})},_Z=X.TypeError,qd=function(t,e){var n=t.exec;if(re(n)){var r=Ut(n,t,e);return r!==null&&Le(r),r}if(Zr(t)==="RegExp")return Ut(Gd,t,e);throw _Z("RegExp#exec called on incompatible receiver")},xE=Se("replace"),PZ=Math.max,jZ=Math.min,NZ=pt([].concat),ob=pt([].push),H7=pt("".indexOf),V7=pt("".slice),IZ="a".replace(/./,"$0")==="$0",U7=!!/./[xE]&&/./[xE]("a","$0")==="";lD("replace",function(t,e,n){var r=U7?"$":"$0";return[function(o,i){var a=_r(this),u=o==null?void 0:Yu(o,xE);return u?Ut(u,o,a,i):Ut(e,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o);if(typeof i=="string"&&H7(i,r)===-1&&H7(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=re(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=qd(a,u);if(d===null||(ob(p,d),!c))break;ue(d[0])===""&&(a.lastIndex=cD(u,lc(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=ue((d=p[m])[0]),b=PZ(jZ(Vp(d.index),u.length),0),w=[],D=1;D<d.length;D++)ob(w,(y=d[D])===void 0?y:String(y));var S=d.groups;if(l){var x=NZ([h],w,b,u);S!==void 0&&ob(x,S);var O=ue(sD(i,void 0,x))}else O=TZ(h,u,b,w,S,i);b>=v&&(g+=V7(u,v,b)+O,v=b+h.length)}return g+V7(u,v)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!IZ||U7);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var SE=function(t,e){return SE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},SE(t,e)};function fc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}SE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Er=function(){return Er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Er.apply(this,arguments)};function Dr(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function CE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var LZ=0,W7=function(){this.id=""+LZ++},RZ=kn.set,MZ=kn.getterFor("Array Iterator"),Zf=rD(Array,"Array",function(t,e){RZ(this,{type:"Array Iterator",target:Na(t),index:0,kind:e})},function(){var t=MZ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");$l.Arguments=$l.Array,ld("keys"),ld("values"),ld("entries");var Vl=function(t,e,n){for(var r in e)Un(t,r,e[r],n);return t},zZ=X.Array,$Z=Math.max,AE=function(t,e,n){for(var r=ds(t),o=zl(e,r),i=zl(n===void 0?r:n,r),a=zZ($Z(i-o,0)),u=0;o<i;o++,u++)Wd(a,u,t[o]);return a.length=u,a},G7=Vd.f,q7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],HZ={f:function(t){return q7&&Zr(t)=="Window"?function(e){try{return G7(e)}catch{return AE(q7)}}(t):G7(Na(t))}},K7=Zt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Wh=Object.isExtensible,vu=Zt(function(){Wh(1)})||K7?function(t){return!!ce(t)&&(!K7||Zr(t)!="ArrayBuffer")&&(!Wh||Wh(t))}:Wh,VZ=!Zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),J1=Hp(function(t){var e=ro.f,n=!1,r=U5("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Vd.f,s=pt([].splice),l={};l[r]=1,u(l).length&&(Vd.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},De({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:HZ.f}))},fastKey:function(u,s){if(!ce(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ie(u,r)){if(!vu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ie(u,r)){if(!vu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return VZ&&n&&vu(u)&&!Ie(u,r)&&i(u),u}};W1[r]=!0}),UZ=X.TypeError,Q0=function(t,e){this.stopped=t,this.result=e},Y7=Q0.prototype,Kd=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=Xu(e,c),g=function(m){return r&&mE(r,"normal",m),new Q0(!0,m)},v=function(m){return f?(Le(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=tD(t)))throw UZ(H1(t)+" is not iterable");if(Jj(o)){for(i=0,a=ds(t);a>i;i++)if((u=v(t[i]))&&Ku(Y7,u))return u;return new Q0(!1)}r=Qj(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=v(l.value)}catch(m){mE(r,"throw",m)}if(typeof u=="object"&&u&&Ku(Y7,u))return u}return new Q0(!1)},WZ=X.TypeError,Q1=function(t,e){if(Ku(e,t))return t;throw WZ("Incorrect invocation")},iN=function(t,e,n){var r,o;return Hl&&re(r=e.constructor)&&r!==n&&ce(o=r.prototype)&&o!==n.prototype&&Hl(t,o),t},aN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=pt(u[v]);Un(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!ce(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Ud(t,!re(a)||!(o||u.forEach&&!Zt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),J1.enable();else if(Ud(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Zt(function(){f.has(1)}),y=eD(function(v){new a(v)}),g=!o&&Zt(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){Q1(v,u);var h=iN(new a,v,s);return m!=null&&Kd(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,De({global:!0,forced:s!=a},l),sv(s,t),o||n.setStrong(s,t,r),s},Gh=J1.getWeakData,GZ=kn.set,qZ=kn.getterFor,KZ=cc.find,YZ=cc.findIndex,XZ=pt([].splice),ZZ=0,qh=function(t){return t.frozen||(t.frozen=new uN)},uN=function(){this.entries=[]},ib=function(t,e){return KZ(t.entries,function(n){return n[0]===e})};uN.prototype={get:function(t){var e=ib(this,t);if(e)return e[1]},has:function(t){return!!ib(this,t)},set:function(t,e){var n=ib(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=YZ(this.entries,function(n){return n[0]===t});return~e&&XZ(this.entries,e,1),!!~e}};var Yc,sN={getConstructor:function(t,e,n,r){var o=t(function(s,l){Q1(s,i),GZ(s,{type:e,id:ZZ++,frozen:void 0}),l!=null&&Kd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=qZ(e),u=function(s,l,c){var f=a(s),p=Gh(Le(l),!0);return p===!0?qh(f).set(l,c):p[f.id]=c,s};return Vl(i,{delete:function(s){var l=a(this);if(!ce(s))return!1;var c=Gh(s);return c===!0?qh(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ce(s))return!1;var c=Gh(s);return c===!0?qh(l).has(s):c&&Ie(c,l.id)}}),Vl(i,n?{get:function(s){var l=a(this);if(ce(s)){var c=Gh(s);return c===!0?qh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Kh=kn.enforce,JZ=!X.ActiveXObject&&"ActiveXObject"in X,lN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},QZ=aN("WeakMap",lN,sN);if(Lj&&JZ){Yc=sN.getConstructor(lN,"WeakMap",!0),J1.enable();var Xc=QZ.prototype,X7=pt(Xc.delete),Yh=pt(Xc.has),Z7=pt(Xc.get),J7=pt(Xc.set);Vl(Xc,{delete:function(t){if(ce(t)&&!vu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),X7(this,t)||e.frozen.delete(t)}return X7(this,t)},has:function(t){if(ce(t)&&!vu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),Yh(this,t)||e.frozen.has(t)}return Yh(this,t)},get:function(t){if(ce(t)&&!vu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),Yh(this,t)?Z7(this,t):e.frozen.get(t)}return Z7(this,t)},set:function(t,e){if(ce(t)&&!vu(t)){var n=Kh(this);n.frozen||(n.frozen=new Yc),Yh(this,t)?J7(this,t,e):n.frozen.set(t,e)}else J7(this,t,e);return this}})}var ab=Se("iterator"),Q7=Se("toStringTag"),ub=Zf.values,cN=function(t,e){if(t){if(t[ab]!==ub)try{Xr(t,ab,ub)}catch{t[ab]=ub}if(t[Q7]||Xr(t,Q7,e),ov[e]){for(var n in Zf)if(t[n]!==Zf[n])try{Xr(t,n,Zf[n])}catch{t[n]=Zf[n]}}}};for(var sb in ov)cN(X[sb]&&X[sb].prototype,sb);cN(Mj,"DOMTokenList");var OE=new WeakMap,kE=new WeakMap,fD=new WeakMap,ty=new WeakMap,BE=new WeakMap,cv=new WeakMap,dD=new WeakMap,FE=new WeakMap,tg=new WeakMap,t9=new WeakMap,e9=new WeakMap,n9=new WeakMap,r9=new WeakMap,Yd=new WeakMap,Ul=new WeakMap,pD=new WeakMap,fv=new WeakMap,TE=new WeakMap,dv=new WeakMap,eg=new WeakMap,fN=new WeakMap,ku=new WeakMap,lb=new WeakMap,o9=new WeakMap,cb=new WeakMap,tJ=cc.find,i9=!0;"find"in[]&&Array(1).find(function(){i9=!1}),De({target:"Array",proto:!0,forced:i9},{find:function(t){return tJ(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("find"),De({global:!0},{globalThis:X});const eJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Xg&&(B.fn.css=Xg),Tr&&(B.fn.append=Tr),Bl&&(B.fn.addClass=Bl),Fl&&(B.fn.removeClass=Fl),Tl&&(B.fn.hasClass=Tl),ko&&(B.fn.on=ko),Da&&(B.fn.focus=Da),Fr&&(B.fn.attr=Fr),Gg&&(B.fn.removeAttr=Gg),Pl&&(B.fn.hide=Pl),Yg&&(B.fn.show=Yg),bA&&(B.fn.offset=bA),qg&&(B.fn.width=qg),Kg&&(B.fn.height=Kg),jl&&(B.fn.parent=jl),Qg&&(B.fn.parents=Qg),EA&&(B.fn.is=EA),_l&&(B.fn.dataset=_l),Oo&&(B.fn.val=Oo),Jg&&(B.fn.text=Jg),Ea&&(B.fn.html=Ea),Il&&(B.fn.children=Il),Ll&&(B.fn.remove=Ll),Nl&&(B.fn.find=Nl),Zg&&(B.fn.each=Zg),Rl&&(B.fn.empty=Rl);var mo,Sn,hD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},$r=function(t){return Zu(t)&&t.nodeType===1},Zu=function(t){var e=hD(t);return!!e&&t instanceof e.Node},a9=function(t){var e=t&&t.anchorNode&&hD(t.anchorNode);return!!e&&t instanceof e.Selection},dN=function(t){return Zu(t)&&t.nodeType===3},_E=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},pN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Zu(r=i)&&r.nodeType===8||$r(i)&&i.childNodes.length===0||$r(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},nJ=function(t,e,n){return Ht(pN(t,e,n),1)[0]},rJ=function t(e){var n,r,o="";if(dN(e)&&e.nodeValue)return e.nodeValue;if($r(e)){try{for(var i=Dr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
`)}return o};function hN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||hN(o,e)}}function u9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==mo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Sn=mo||(mo={}))[Sn.ELEMENT_NODE=1]="ELEMENT_NODE",Sn[Sn.TEXT_NODE=3]="TEXT_NODE",Sn[Sn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Sn[Sn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Sn[Sn.COMMENT_NODE=8]="COMMENT_NODE",Sn[Sn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Sn[Sn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Sn[Sn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var PE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),cd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),oJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),iJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Jc=!iJ&&!oJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=fN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=eg.get(e);return n||(n=new W7,eg.set(e,n)),n},setNewKey:function(t){var e=new W7;eg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Ul.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Yd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Ul.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=pD.get(t);else{var r=A.findKey(t,e);n=TE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=$r(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),p=f[0],d=f[1],y=!!($r(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!($r(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Ht(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Dr(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}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(e));return o},toSlateNode:function(t,e){var n=$r(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?fv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((a9(e)?e.anchorNode:e.startContainer)&&(a9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=jE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&$r(i)&&E.void(t,{at:p.focus,mode:"highest"})&&(p=E.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ht(o?e:function(h){var b,w=Ht(h,2),D=w[0],S=w[1];if($r(D)&&D.childNodes.length){var x=S===D.childNodes.length,O=x?S-1:S;for(D=(b=Ht(pN(D,O,x?"backward":"forward"),2))[0],x=(O=b[1])<S;$r(D)&&D.childNodes.length;){var T=x?D.childNodes.length-1:0;D=nJ(D,T,x?"backward":"forward")}S=x&&D.textContent!=null?D.textContent.length:0}return[D,S]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),y=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();CE(CE([],Ht(vA(v.querySelectorAll("[data-slate-zero-width]")))),Ht(vA(v.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=v.textContent.length,y=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(y=d).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);y&&f===y.textContent.length&&(l.hasAttribute("data-slate-zero-width")||cd&&(!((r=y.textContent)===null||r===void 0)&&r.endsWith(`
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.path)},getNodeType:function(t){return ct.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=Dr(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ct.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Ht(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(E.nodes(t,{match:function(r){return ot.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ht(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ht(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=OE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return ty.get(t)||null},getHoverbar:function(t){return cv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Dr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(g){return!(!ct.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=Dr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var y=d[0];hN(A.toDOMNode(t,y),function(g,v){var m=B(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||v.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Dr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Ht(n,1)[0].children;return r.length===1&&r[0].text===""}},aJ=1,gN={},Xd={},uJ=cc.filter,sJ=X1("filter");De({target:"Array",proto:!0,forced:!sJ},{filter:function(t){return uJ(this,t,arguments.length>1?arguments[1]:void 0)}});var NE=`
\v\f\r \u2028\u2029\uFEFF`,s9=pt("".replace),pv="["+NE+"]",lJ=RegExp("^"+pv+pv+"*"),cJ=RegExp(pv+pv+"*$"),fb=function(t){return function(e){var n=ue(_r(e));return 1&t&&(n=s9(n,lJ,"")),2&t&&(n=s9(n,cJ,"")),n}},fJ={start:fb(1),end:fb(2),trim:fb(3)},dJ=sc.PROPER,pJ=fJ.trim;De({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!NE[t]()||"
"[t]()!=="
"||dJ&&NE[t].name!==t})}("trim")},{trim:function(){return pJ(this)}});var IE=[],vN={};function hJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Zd,Bs,l9,db,hv=X.Promise,c9=Se("species"),gD=function(t){var e=fs(t),n=ro.f;an&&e&&!e[c9]&&n(e,c9,{configurable:!0,get:function(){return this}})},gJ=X.TypeError,vJ=Se("species"),yN=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[vJ])==null?e:function(o){if(K1(o))return o;throw gJ(H1(o)+" is not a constructor")}(n)},mN=pt([].slice),bN=/(?:ipad|iphone|ipod).*applewebkit/i.test(pl),oa=Zr(X.process)=="process",LE=X.setImmediate,RE=X.clearImmediate,yJ=X.process,pb=X.Dispatch,mJ=X.Function,f9=X.MessageChannel,bJ=X.String,hb=0,fd={};try{Zd=X.location}catch{}var vD=function(t){if(Ie(fd,t)){var e=fd[t];delete fd[t],e()}},gb=function(t){return function(){vD(t)}},d9=function(t){vD(t.data)},p9=function(t){X.postMessage(bJ(t),Zd.protocol+"//"+Zd.host)};LE&&RE||(LE=function(t){var e=mN(arguments,1);return fd[++hb]=function(){sD(re(t)?t:mJ(t),void 0,e)},Bs(hb),hb},RE=function(t){delete fd[t]},oa?Bs=function(t){yJ.nextTick(gb(t))}:pb&&pb.now?Bs=function(t){pb.now(gb(t))}:f9&&!bN?(db=(l9=new f9).port2,l9.port1.onmessage=d9,Bs=Xu(db.postMessage,db)):X.addEventListener&&re(X.postMessage)&&!X.importScripts&&Zd&&Zd.protocol!=="file:"&&!Zt(p9)?(Bs=p9,X.addEventListener("message",d9,!1)):Bs="onreadystatechange"in Hd("script")?function(t){gE.appendChild(Hd("script")).onreadystatechange=function(){gE.removeChild(this),vD(t)}}:function(t){setTimeout(gb(t),0)});var Qc,du,dd,el,vb,yb,mb,h9,wN={set:LE,clear:RE},wJ=/ipad|iphone|ipod/i.test(pl)&&X.Pebble!==void 0,EJ=/web0s(?!.*chrome)/i.test(pl),DJ=Up.f,bb=wN.set,g9=X.MutationObserver||X.WebKitMutationObserver,v9=X.document,y9=X.process,Xh=X.Promise,m9=DJ(X,"queueMicrotask"),EN=m9&&m9.value;EN||(Qc=function(){var t,e;for(oa&&(t=y9.domain)&&t.exit();du;){e=du.fn,du=du.next;try{e()}catch(n){throw du?el():dd=void 0,n}}dd=void 0,t&&t.enter()},bN||oa||EJ||!g9||!v9?!wJ&&Xh&&Xh.resolve?((mb=Xh.resolve(void 0)).constructor=Xh,h9=Xu(mb.then,mb),el=function(){h9(Qc)}):oa?el=function(){y9.nextTick(Qc)}:(bb=Xu(bb,X),el=function(){bb(Qc)}):(vb=!0,yb=v9.createTextNode(""),new g9(Qc).observe(yb,{characterData:!0}),el=function(){yb.data=vb=!vb}));var wb,b9,DN,w9,xN=EN||function(t){var e={fn:t,next:void 0};dd&&(dd.next=e),du||(du=e,el()),dd=e},xJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=xa(e),this.reject=xa(n)},yD={f:function(t){return new xJ(t)}},ME=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},SJ=typeof window=="object",SN=wN.set,CJ=Se("species"),go="Promise",E9=kn.getterFor(go),AJ=kn.set,OJ=kn.getterFor(go),au=hv&&hv.prototype,bo=hv,tf=au,CN=X.TypeError,zE=X.document,mD=X.process,gl=yD.f,kJ=gl,BJ=!!(zE&&zE.createEvent&&X.dispatchEvent),AN=re(X.PromiseRejectionEvent),ON=!1,pd=Ud(go,function(){var t=U1(bo),e=t!==String(bo);if(!e&&$d===66)return!0;if($d>=51&&/native code/.test(t))return!1;var n=new bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[CJ]=r,!(ON=n.then(function(){})instanceof r)||!e&&SJ&&!AN}),FJ=pd||!eD(function(t){bo.all(t).catch(function(){})}),kN=function(t){var e;return!(!ce(t)||!re(e=t.then))&&e},bD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;xN(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&_J(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(CN("Promise-chain cycle")):(u=kN(a))?Ut(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&TJ(t)})}},BN=function(t,e,n){var r,o;BJ?((r=zE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!AN&&(o=X["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},TJ=function(t){Ut(SN,X,function(){var e,n=t.facade,r=t.value;if(D9(t)&&(e=ME(function(){oa?mD.emit("unhandledRejection",r,n):BN("unhandledrejection",n,r)}),t.rejection=oa||D9(t)?2:1,e.error))throw e.value})},D9=function(t){return t.rejection!==1&&!t.parent},_J=function(t){Ut(SN,X,function(){var e=t.facade;oa?mD.emit("rejectionHandled",e):BN("rejectionhandled",e,t.value)})},sl=function(t,e,n){return function(r){t(e,r,n)}},vl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,bD(t,!0))},$E=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw CN("Promise can't be resolved itself");var r=kN(e);r?xN(function(){var o={done:!1};try{Ut(r,e,sl($E,o,t),sl(vl,o,t))}catch(i){vl(o,i,t)}}):(t.value=e,t.state=1,bD(t,!1))}catch(o){vl({done:!1},o,t)}}};if(pd&&(tf=(bo=function(t){Q1(this,tf),xa(t),Ut(wb,this);var e=E9(this);try{t(sl($E,e),sl(vl,e))}catch(n){vl(e,n)}}).prototype,(wb=function(t){AJ(this,{type:go,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Vl(tf,{then:function(t,e){var n=OJ(this),r=n.reactions,o=gl(yN(this,bo));return o.ok=!re(t)||t,o.fail=re(e)&&e,o.domain=oa?mD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&bD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),b9=function(){var t=new wb,e=E9(t);this.promise=t,this.resolve=sl($E,e),this.reject=sl(vl,e)},yD.f=gl=function(t){return t===bo||t===DN?new b9(t):kJ(t)},re(hv)&&au!==Object.prototype)){w9=au.then,ON||(Un(au,"then",function(t,e){var n=this;return new bo(function(r,o){Ut(w9,n,r,o)}).then(t,e)},{unsafe:!0}),Un(au,"catch",tf.catch,{unsafe:!0}));try{delete au.constructor}catch{}Hl&&Hl(au,tf)}De({global:!0,wrap:!0,forced:pd},{Promise:bo}),sv(bo,go,!1),gD(go),DN=fs(go),De({target:go,stat:!0,forced:pd},{reject:function(t){var e=gl(this);return Ut(e.reject,void 0,t),e.promise}}),De({target:go,stat:!0,forced:pd},{resolve:function(t){return function(e,n){if(Le(e),ce(n)&&n.constructor===e)return n;var r=yD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),De({target:go,stat:!0,forced:FJ},{all:function(t){var e=this,n=gl(e),r=n.resolve,o=n.reject,i=ME(function(){var a=xa(e.resolve),u=[],s=0,l=1;Kd(t,function(c){var f=s++,p=!1;l++,Ut(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=gl(e),r=n.reject,o=ME(function(){var i=xa(e.resolve);Kd(t,function(a){Ut(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Fs=Z1.UNSUPPORTED_Y,PJ=Math.min,FN=[].push,jJ=pt(/./.exec),Ts=pt(FN),ef=pt("".slice);function Pr(t){Promise.resolve().then(t)}function TN(t,e){return ct.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(m){return TN(m,r)}).join(""));var c=function(m){return vN[m]||hJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||IE.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return IE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function _N(t){return"w-e-element-"+t}lD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(_r(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!Z5(o))return Ut(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Ut(Gd,y,a))&&!((l=y.lastIndex)>d&&(Ts(f,ef(a,d,s.index)),s.length>1&&s.index<a.length&&sD(FN,f,AE(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&jJ(y,"")||Ts(f,""):Ts(f,ef(a,d)),f.length>u?AE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ut(e,this,o,i)}:e,[function(o,i){var a=_r(this),u=o==null?void 0:Yu(o,t);return u?Ut(u,o,a,i):Ut(r,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=yN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Fs?"g":"y"),p=new l(Fs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return qd(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Fs?0:g;var m,h=qd(p,Fs?ef(u,g):u);if(h===null||(m=PJ(lc(p.lastIndex+(Fs?g:0)),u.length))===y)g=cD(u,g,c);else{if(Ts(v,ef(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Ts(v,h[b]),v.length===d)return v;g=y=m}}return Ts(v,ef(u,y)),v}]},!!Zt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Fs);var x9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},S9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return x9(r,o)&&x9(o,r)},PN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],jN=[],wD=[],gv={},NJ=ro.f,IJ=Vd.f,LJ=kn.enforce,RJ=Se("match"),Jo=X.RegExp,nl=Jo.prototype,MJ=X.SyntaxError,zJ=pt(X5),$J=pt(nl.exec),Zh=pt("".charAt),C9=pt("".replace),A9=pt("".indexOf),HJ=pt("".slice),VJ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Bu=/a/g,Eb=/a/g,UJ=new Jo(Bu)!==Bu,NN=Z1.MISSED_STICKY,WJ=Z1.UNSUPPORTED_Y,GJ=an&&(!UJ||NN||iD||aD||Zt(function(){return Eb[RJ]=!1,Jo(Bu)!=Bu||Jo(Eb)==Eb||Jo(Bu,"i")!="/a/i"}));if(Ud("RegExp",GJ)){for(var Ai=function(t,e){var n,r,o,i,a,u,s=Ku(nl,this),l=Z5(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Ai)return t;if((l||Ku(nl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:zJ(p))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),p=t,iD&&"dotAll"in Bu&&(r=!!e&&A9(e,"s")>-1)&&(e=C9(e,/s/g,"")),n=e,NN&&"sticky"in Bu&&(o=!!e&&A9(e,"y")>-1)&&WJ&&(e=C9(e,/y/g,"")),aD&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],b={},w=!1,D=!1,S=0,x="";v<=g;v++){if((y=Zh(d,v))==="\\")y+=Zh(d,++v);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":$J(VJ,HJ(d,v+1))&&(v+=2,D=!0),m+=y,S++;continue;case(y===">"&&D):if(x===""||Ie(b,x))throw new MJ("Invalid capture group name");b[x]=!0,h[h.length]=[x,S],D=!1,x="";continue}D?x+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=iN(Jo(t,e),s?this:nl,Ai),(r||o||f.length)&&(u=LJ(a),r&&(u.dotAll=!0,u.raw=Ai(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=Zh(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+Zh(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Xr(a,"source",p===""?"(?:)":p)}catch{}return a},qJ=function(t){t in Ai||NJ(Ai,t,{configurable:!0,get:function(){return Jo[t]},set:function(e){Jo[t]=e}})},O9=IJ(Jo),k9=0;O9.length>k9;)qJ(O9[k9++]);nl.constructor=Ai,Ai.prototype=nl,Un(X,"RegExp",Ai)}gD("RegExp");var KJ=new RegExp(String.fromCharCode(160),"g");function IN(t){return t.replace(KJ," ")}function B9(t,e){var n=t.length;if(n){var r=t[n-1];if(ot.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function YJ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function Db(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==mo.ELEMENT_NODE){if(l.nodeType===mo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
`)>=0)return;c&&(c=IN(c),B9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(B9(u,`
`)||u.push({text:`
`}));var f=ED(B(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in gv)if(i[0].matches(a))return gv[a];return YJ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),wD.forEach(function(a){i=a(t[0],i,e)}))}),o}function xb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=IN(n)};return wD.forEach(function(o){r=o(t[0],r,e)}),r}function ED(t,e){jN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=u9(t);return n==="span"?t.attr("data-w-e-type")?Db(t,e):xb(t,e):n==="code"?u9(t.parent())==="pre"?Db(t,e):xb(t,e):PN.includes(n)?xb(t,e):Db(t,e)}function LN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function F9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=ED(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var XJ=ro.f,T9=J1.fastKey,_9=kn.set,Sb=kn.getterFor,ZJ={getConstructor:function(t,e,n,r){var o=t(function(l,c){Q1(l,i),_9(l,{type:e,index:Y1(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Kd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Sb(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=T9(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),an?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=T9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Vl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,an?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),an?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=Xu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Vl(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),an&&XJ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Sb(e),i=Sb(r);rD(t,e,function(a,u){_9(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),gD(e)}};aN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ZJ);var P9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function j9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var JJ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ht(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Ht(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var S=D.getAttribute("data-slate-zero-width")==="n";D.textContent=S?`
`:""}),dN(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",rJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Dr(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},Jf=function(t){return t!=null},QJ={object:!0,function:!0,undefined:!0},tQ=/^\s*class[\s{/}]/,eQ=Function.prototype.toString,N9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!Jf(r)&&hasOwnProperty.call(QJ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!tQ.test(eQ.call(t))},DD=function(t){return t!=null},nQ=Object.keys,rQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return nQ(DD(t)?Object(t):t)},oQ=function(t){if(!DD(t))throw new TypeError("Cannot use null or undefined");return t},iQ=Math.max,I9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=iQ(arguments.length,2);for(t=Object(oQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)rQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},aQ=Array.prototype.forEach,uQ=Object.create,sQ=function(t,e){var n;for(n in t)e[n]=t[n]},L9=function(t){var e=uQ(null);return aQ.call(arguments,function(n){DD(n)&&sQ(Object(n),e)}),e},Cb="razdwatrzy",lQ=String.prototype.indexOf,nf=typeof Cb.contains=="function"&&Cb.contains("dwa")===!0&&Cb.contains("foo")===!1?String.prototype.contains:function(t){return lQ.call(this,t,arguments[1])>-1},Jh=Hp(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Jf(n)?(o=nf.call(n,"c"),i=nf.call(n,"e"),a=nf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?I9(L9(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Jf(r)?N9(r)?Jf(o)?N9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Jf(n)?(i=nf.call(n,"c"),a=nf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?I9(L9(u),s):s}}),Ab=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},cQ=Hp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return Ab(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,b;return Ab(m),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,b,w,D;if(Ab(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[v]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,b,w,D;if(y.call(this,"__ee__")&&(w=this.__ee__[v]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:Jh(n),once:Jh(r),off:Jh(o),emit:Jh(i)},s=d({},u),t.exports=e=function(v){return v==null?f(s):d(Object(v),u)},e.methods=a});function Qh(t){var e=o9.get(t);return e==null&&(e=cQ(),o9.set(t,e)),e}var vv=new WeakMap;function R9(t,e){var n=vv.get(t);n==null&&(n=new Set,vv.set(t,n)),n.add(e)}function fQ(t){return vv.get(t)||new Set}function dQ(t){vv.set(t,new Set)}function xD(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function SD(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=xD(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function CD(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=dv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(x){var O=[];O.push(x);for(var T=0;O.length>0;){var R=O.pop();if(R==null||++T>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(eJ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=xD(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,b=y.height,w={},D=s-v,S=l-m;if(n==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((g=D)<0&&(g=0),w.top=g+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((g=D+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function HE(t,e){Pr(function(){var n=xD(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(g.indexOf("right")>=0&&c<0){var S=e.css("right"),x=parseInt(S.toString())-Math.abs(c);e.css("right",x+"px")}}})}var pQ=X1("slice"),hQ=Se("species"),Ob=X.Array,gQ=Math.max;De({target:"Array",proto:!0,forced:!pQ},{slice:function(t,e){var n,r,o,i=Na(this),a=ds(i),u=zl(t,a),s=zl(e===void 0?a:e,a);if(iv(i)&&(n=i.constructor,(K1(n)&&(n===Ob||iv(n.prototype))||ce(n)&&(n=n[hQ])===null)&&(n=void 0),n===Ob||n===void 0))return mN(i,u,s);for(r=new(n===void 0?Ob:n)(gQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Wd(r,o,i[u]);return r.length=o,r}});var vQ=Up.f,M9=pt("".startsWith),yQ=pt("".slice),mQ=Math.min,RN=Q5("startsWith"),bQ=!RN&&!!function(){var t=vQ(String.prototype,"startsWith");return t&&!t.writable}();De({target:"String",proto:!0,forced:!bQ&&!RN},{startsWith:function(t){var e=ue(_r(this));J5(t);var n=lc(mQ(arguments.length>1?arguments[1]:void 0,e.length)),r=ue(t);return M9?M9(e,r,n):yQ(e,n,n+r.length)===r}});var _s=Object.assign,z9=Object.defineProperty,wQ=pt([].concat),$9=!_s||Zt(function(){if(an&&_s({b:1},_s(z9({},"a",{enumerable:!0,get:function(){z9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),_s({},t)[n]!=7||hl(_s({},e)).join("")!=r})?function(t,e){for(var n=ja(t),r=arguments.length,o=1,i=Kj.f,a=Wj.f;r>o;)for(var u,s=q1(arguments[o++]),l=i?wQ(hl(s),i(s)):hl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Ut(a,s,u)||(n[u]=s[u]);return n}:_s;De({target:"Object",stat:!0,forced:Object.assign!==$9},{assign:$9});var EQ=["props","attrs","style","dataset","on","hook"];function MN(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!EQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Wq(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&MN(i)})}var VE=[],zN={};function DQ(t,e,n){return bt(n.isInline(t)?"span":"div",null,e)}function H9(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+`
`:t)}function kb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function UE(t,e,n,r){return Yd.set(t,e),Ul.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=_N(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(D){return zN[D]||DQ}(p);a=l?null:y.map(function(D,S){return UE(D,S,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Ht(Q.texts(o),1),b=Ht(h[0],1)[0],w=bt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},UE(b,0,o,i));v=bt(m,{style:{position:"relative"}},v,w),Yd.set(b,0),Ul.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(D,S){var x=S;return VE.forEach(function(O){x=O(D,S)}),x}(o,v)),Pr(function(){var D=_E(c);D!=null&&(TE.set(u,D),dv.set(o,D),fv.set(D,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ot.decorations(o,c),p=f.map(function(g,v){var m=function(h,b,w,D,S){b===void 0&&(b=!1);var x=h.text,O=A.findPath(S,w),T=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?kb(Q.string(D).length):x!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,T)!==""?x===""?kb():b&&x.slice(-1)===`
`?H9(x,!0):H9(x):kb(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,b){var w=b;return VE.forEach(function(D){w=D(h,w)}),w}(g,m),bt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Pr(function(){var g=_E(d);g!=null&&(TE.set(u,g),dv.set(o,g),fv.set(g,o))}),y}(t,n,r)}function xQ(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),Ml("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=UE(g,v,e,e);return MN(m),m});var c=e9.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return B(`<div
id="`+g+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=pq([gq,bq,Eq,vq,mq,hq]))(n,s),e9.set(t,!1),n9.set(t,d)}else{var p=r9.get(t),d=n9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=_E(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=hD(n);y&&fN.set(e,y)}pD.set(e,n),dv.set(e,n),fv.set(n,e),r9.set(t,s)}}function V9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function U9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Bb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return U9(n.overflowY,e)||U9(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function t0(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function W9(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Dt){return Dt!==a};if(!V9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;V9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Bb(f)&&!Bb(document.documentElement)||f!=null&&Bb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,b=v.top,w=v.right,D=v.bottom,S=v.left,x=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?S+h/2:i==="end"?w:S,T=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,nt=M.bottom,lt=M.left;if(r==="if-needed"&&b>=0&&S>=0&&D<=d&&w<=p&&b>=W&&D<=nt&&S>=lt&&w<=q)return T;var st=getComputedStyle(H),at=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),C=parseInt(st.borderRightWidth,10),P=parseInt(st.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-at-C:0,it="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?x:o==="end"?x-d:o==="nearest"?t0(g,g+d,d,k,P,g+x,g+x+m,m):x-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:t0(y,y+p,p,at,C,y+O,y+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+y);else{$=o==="start"?x-W-k:o==="end"?x-nt+P+it:o==="nearest"?t0(W,nt,K,k,P+it,x,x+m,m):x-(W+K/2)+it/2,Y=i==="start"?O-lt-at:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+C+V:t0(lt,q,U,at,C+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;x+=vt-($=Math.max(0,Math.min(vt+$,H.scrollHeight-K+it))),O+=gt-(Y=Math.max(0,Math.min(gt+Y,H.scrollWidth-U+V)))}T.push({el:H,top:$,left:Y})}return T}function G9(t){return t===Object(t)&&Object.keys(t).length!==0}function mr(t,e){return Zu(e)&&A.hasDOMNode(t,e,{editable:!0})}function q9(t,e){if(t.getConfig().readOnly)return!1;var n=rl(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function rl(t,e){return Zu(e)&&A.hasDOMNode(t,e)}function $N(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=pD.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){L.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 m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(G9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:W9(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:G9(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,x){x===void 0&&(x="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(T){var R=T.el,H=T.top,M=T.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:x}):(R.scrollTop=H,R.scrollLeft=M)})})(W9(h,D),D.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&cd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Fb=new WeakMap,K9=new WeakMap,SQ={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"},CQ={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"},AQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},me=function(t){var e=SQ[t],n=CQ[t],r=AQ[t],o=e&&Om(e),i=n&&Om(n),a=r&&Om(r);return function(u){return!(!o||!o(u))||!!(PE&&i&&i(u))||!(PE||!a||!a(u))}},we={isBold:me("bold"),isCompose:me("compose"),isMoveBackward:me("moveBackward"),isMoveForward:me("moveForward"),isDeleteBackward:me("deleteBackward"),isDeleteForward:me("deleteForward"),isDeleteLineBackward:me("deleteLineBackward"),isDeleteLineForward:me("deleteLineForward"),isDeleteWordBackward:me("deleteWordBackward"),isDeleteWordForward:me("deleteWordForward"),isExtendBackward:me("extendBackward"),isExtendForward:me("extendForward"),isExtendLineBackward:me("extendLineBackward"),isExtendLineForward:me("extendLineForward"),isItalic:me("italic"),isMoveLineBackward:me("moveLineBackward"),isMoveLineForward:me("moveLineForward"),isMoveWordBackward:me("moveWordBackward"),isMoveWordForward:me("moveWordForward"),isRedo:me("redo"),isSplitBlock:me("splitBlock"),isTransposeCharacter:me("transposeCharacter"),isUndo:me("undo"),isTab:me("tab"),isSelectAll:me("selectAll")};function He(t){t.preventDefault()}var OQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Jc&&!o&&mr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!cb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&mr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||$r(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Zu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ct.isElement(s)&&!n.isVoid(s))return}if(Zc){var l=a.getSelection();l==null||l.removeAllRanges()}ku.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,cd&&t.target!==r?r.focus():ku.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&rl(n,t.target)&&Zu(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(mr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){$N(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Fb.set(n,i),K9.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(mr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(jE||cd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ht(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ht(E.node(n,i.path.slice(0,u+1)),1)[0];if(ct.isElement(s)&&((Zc||cd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Fb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Zc||setTimeout(function(){var f=n.selection;if(f!=null){var p=K9.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Fb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){mr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&mr(n,r.target)){if(function(a,u){var s=ty.get(a),l=s&&s.getMenus(),c=cv.get(a),f=c&&c.getMenus(),p=Er(Er({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&Kq(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),we.isTab(r))return He(r),void n.handleTab();if(we.isRedo(r))return He(r),void(typeof n.redo=="function"&&n.redo());if(we.isUndo(r))return He(r),void(typeof n.undo=="function"&&n.undo());if(we.isMoveLineBackward(r))return He(r),void N.move(n,{unit:"line",reverse:!0});if(we.isMoveLineForward(r))return He(r),void N.move(n,{unit:"line"});if(we.isExtendLineBackward(r))return He(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(we.isExtendLineForward(r))return He(r),void N.move(n,{unit:"line",edge:"focus"});if(we.isMoveBackward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(we.isMoveForward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(we.isMoveWordBackward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(we.isMoveWordForward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(we.isSelectAll(r))return He(r),void n.selectAll();if(Jc){if((jE||Zc)&&o&&(we.isDeleteBackward(r)||we.isDeleteForward(r))&&L.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ct.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(we.isBold(r)||we.isItalic(r)||we.isTransposeCharacter(r))return void He(r);if(we.isSplitBlock(r))return He(r),void E.insertBreak(n);if(we.isDeleteBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(we.isDeleteForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(we.isDeleteLineBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(we.isDeleteLineForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(we.isDeleteWordBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(we.isDeleteWordForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Jc&&!n.getConfig().readOnly&&mr(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(mr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&mr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){cb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&mr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void cb.set(n,!1);if(!Jc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(rl(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(rl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&rl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&rl(n,r.target)&&o!=null&&!(Jc&&Zc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},kQ=1,BQ=function(){function t(e){var n=this;this.id=kQ++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<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=qu(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,ku.set(s,!0)):ku.delete(s),!g)return N.deselect(s);var v=g.anchorNode,m=g.focusNode,h=mr(s,v)||q9(s,v),b=mr(s,m)||q9(s,m);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Pr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=kE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(N5(OQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",qu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;xQ(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Pr(function(){$N(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function AD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&AD(e)}function OD(){return B('<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 HN(){return B('<div class="w-e-bar-divider"></div>')}function VN(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=PE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
`+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}lD("match",function(t,e,n){return[function(r){var o=_r(this),i=r==null?void 0:Yu(r,t);return i?Ut(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Le(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return qd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=qd(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=cD(i,lc(o.lastIndex),u)),c++}return c===0?null:l}]});var kD=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=B(f);AD(d),p.append(d)}else p.text(u);VN(p,f,u,l,r),r&&f&&p.append(B('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Pr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=er(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=er(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=er(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),FQ=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return fc(e,t),e.prototype.onButtonClick=function(){},e}(kD),BD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=FE.get(e);n==null&&(n=new Set,FE.set(e,n)),n.add(this),tg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=tg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=tg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),TQ=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return fc(e,t),e.prototype.genSelfElem=function(){return null},e}(BD),_Q=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=OD();i.$button.append(a)}return i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=er(this);if(this.dropPanel==null){var o=new TQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(kD),PQ=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return fc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<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>'),o=tg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(BD);function nr(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function Nyt(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<textarea type="text" id="'+e+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function dc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var jQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=er(this),r=this.menu.getModalPositionNode(n);return ct.isElement(r)?CD(n,r,"modal"):SD(n)},e.prototype.handleModal=function(){var n=er(this),r=this.menu;if(this.modal==null){var o=new PQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=er(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||HE(o,n.$elem),setTimeout(function(){o.blur()})}},e}(kD),NQ=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return fc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<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>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(BD),IQ=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),VN(p,l,a,f,r),this.$elem.append(p),this.menu=n,Pr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=er(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new NQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=er(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=er(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=OD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=er(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),Y9=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);AD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=OD();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),X9=new WeakMap;function er(t){var e=dD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function UN(t,e,n){n===void 0&&(n=!1);var r=X9.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new _Q(t,e,n):a?new jQ(t,e,n):new FQ(t,e,n)}if(o==="select"&&(r=new IQ(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return X9.set(e,r),r}function LQ(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var RQ=function(){function t(){var e=this;this.$elem=B('<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=wj(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Pr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.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},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Pr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=HN();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Xd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=UN(e,o);this.hoverbarItems.push(a),dD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ct.isElement(e)){var o=CD(n,e,"bar");return r.css(o),void HE(n,r)}if(ot.isText(e))return o=SD(n),r.css(o),void HE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=Ht(E.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=BE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=LQ),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function WN(t,e,n,r){if(Yd.set(t,e),Ul.set(t,n),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return WN(u,s,t,r)}),E.isVoid(r,t)){var i=Ht(Q.texts(t),1),a=Ht(i[0],1)[0];Yd.set(a,0),Ul.set(a,t)}}}function MQ(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var S=D[D.length-1];ul.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var x of S)h.apply(x)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var S=D[D.length-1];ul.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var x=S.map(Yi.inverse).reverse();for(var O of x)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:x}=S,O=x[x.length-1],T=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,T),H=ul.isSaving(h),M=ul.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,T)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];x.push(K)}for(;x.length>100;)x.shift();(U=>U.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,D=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<x.length?b(x.slice(0,O)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Q.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach(function(T){h.insertNode(T)});else{var O=x[0];if(A.getLeftLengthOfMaxLength(h)<Q.string(O).length)return;D(x)}else D(x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x)if(h.getConfig().maxLength){var T=A.getLeftLengthOfMaxLength(h);if(!(T<=0)){var R=document.createElement("div");R.innerHTML=x;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===mo.TEXT_NODE?M+(K.textContent||""):U===mo.ELEMENT_NODE?P9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");T<H.length||S(x,O)}}else S(x,O)},h}(function(m){var h=m;return h.on=function(b,w){var D=Qh(h);if(D.on(b,w),b==="destroyed"&&R9(h,w),b!=="destroyed"){var S=function(){return D.off(b,w)};D.on("destroyed",S),R9(h,S)}},h.once=function(b,w){Qh(h).once(b,w)},h.off=function(b,w){Qh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var S=Qh(h);S.emit.apply(S,CE([b],Ht(w))),b==="destroyed"&&(fQ(h).forEach(function(x){return S.off("destroyed",x)}),dQ(h))},h}(function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=lb.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return SD(h)},h.getNodePosition=function(b){return CD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ht(L.edges(b),2),D=w[0],S=w[1],x=Ht(E.edges(h,[]),2),O=x[0],T=x[1];return!(!Bt.equals(D,O)||!Bt.equals(S,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,S=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var O,T,R,H,M,K,U,W,q=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Dr(E.levels(h,{at:x.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Ht(lt.value,2),at=st[0],k=st[1],C=A.findKey(h,at);q.push([k,C])}}catch(It){O={error:It}}finally{try{lt&&!lt.done&&(T=nt.return)&&T.call(nt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Dr(E.levels(h,{at:j.parent(x.path)})),$=P.next();!$.done;$=P.next()){var Y=Ht($.value,2);at=Y[0],k=Y[1],C=A.findKey(h,at),q.push([k,C])}}catch(It){R={error:It}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=Dr(E.levels(h,{at:j.common(j.parent(x.path),j.parent(x.newPath))})),it=V.next();!it.done;it=V.next()){var gt=Ht(it.value,2);at=gt[0],k=gt[1],C=A.findKey(h,at),q.push([k,C])}}catch(It){M={error:It}}finally{try{it&&!it.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(x);try{for(var vt=Dr(q),Dt=vt.next();!Dt.done;Dt=vt.next()){var G=Ht(Dt.value,2);k=G[0],C=G[1],at=Ht(E.node(h,k),1)[0],eg.set(at,C)}}catch(It){U={error:It}}finally{try{Dt&&!Dt.done&&(W=vt.return)&&W.call(vt)}finally{if(U)throw U.error}}},h.deleteBackward=function(x){if(x!=="line")return S(x);if(m.selection&&L.isCollapsed(m.selection)){var O=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var T=Ht(O,2)[1],R=E.range(m,T,m.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,nt=W.length,lt=Math.floor(nt/2);if(S9(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;lt!==W.length&<!==q;)S9(M,E.range(M,W[lt]),U)?nt=lt:q=lt,lt=Math.floor((q+nt)/2);return E.range(M,W[nt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var x=h.selection;x!=null&&lb.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return TN(O,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return Q.string(O)}).join(`
`)},h.getSelectionText=function(){var x=h.selection;return x==null?"":E.string(m,x)},h.getElemsByType=function(x,O){var T,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=Dr(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(x)>=0:W.type===x)){var q=_N(A.findKey(h,W).id);H.push(Er(Er({},W),{id:q}))}}}catch(nt){T={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(T)throw T.error}}return H},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,O=x===void 0?[]:x;if(O.length>1)return!1;var T=O[0];if(T==null)return!0;if(ct.isElement(T)&&T.type==="paragraph"){var R=T.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||ot.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x){var T=document.createElement("div");T.innerHTML=x;var R=Array.from(T.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===mo.TEXT_NODE||W===mo.ELEMENT_NODE&&!P9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==mo.TEXT_NODE)if(q!=="BR"){var st=U,at=!1;if(PN.includes(q.toLowerCase()))at=!0;else for(var k in gv)if(st.matches(k)){at=!0;break}if(at){var C=ED(B(st),h);return Array.isArray(C)?(C.forEach(function($){return j9(h,$)}),K++):(j9(h,C),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
`);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),T.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var O=h.isDisabled(),T=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=F9(h,x);if(N.insertFragment(h,H),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in Xd)b.push(w);return b},h.getConfig=function(){var b=t9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(m){var h=JJ(EW());return h.id="wangEditor-"+aJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),ku.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=lb.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!ku.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),ku.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),OE.delete(h),kE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),ty.delete(h),fD.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),cv.delete(h),BE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var S=D[0];if(!A.hasDOMNode(h,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var x=A.getTextarea(h),O=x.$textAreaContainer,T=x.$scroll,R=D.offset().top,H=O.offset().top;T[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=FE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var S=D.css("z-index");D.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return LN(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=Ej(gN),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return N5(h,function(S,x){b[x]=Er(Er({},S),D[x]||{})}),delete m.MENU_CONF,Er({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,x){window.alert(x+`:
`+S)}},m)}(o);t9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=F9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new BQ(n);OE.set(l,d),kE.set(d,l),d.changeViewState(),Pr(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new RQ,BE.set(y,l),cv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return WN(m,h,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)}),Pr(function(){return l.emit("created")}),l}var zQ=X1("splice"),$Q=X.TypeError,HQ=Math.max,VQ=Math.min;De({target:"Array",proto:!0,forced:!zQ},{splice:function(t,e){var n,r,o,i,a,u,s=ja(this),l=ds(s),c=zl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=VQ(HQ(Vp(e),0),l-c)),l+n-r>9007199254740991)throw $Q("Maximum allowed length exceeded");for(o=Hj(s,r),i=0;i<r;i++)(a=c+i)in s&&Wd(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 UQ=function(){function t(e,n){var r=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=wj(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Pr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=Ej(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=HN();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new Y9(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof Y9,i=this.menus,a=i[e];if(a==null){var u=Xd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
重复注册了菜单栏 menu '`+e+"'");var s=UN(e,a,o);this.toolbarItems.push(s),dD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=fD.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),WQ=sc.EXISTS,GQ=ro.f,GN=Function.prototype,qQ=pt(GN.toString),qN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KQ=pt(qN.exec);function KN(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,S=D===void 0?function(K,U){}:D,x=t.onError,O=x===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:x,T=t.onProgress,R=T===void 0?function(K){}:T;if(!n)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var H=n;p&&(H=function(K,U){var W=Ht(K.split("#"),2),q=W[0],nt=W[1],lt=[];N5(U,function(at,k){lt.push(k+"="+at)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,nt?q+"#"+nt:q}(H,c));var M=new Yf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(EY,{endpoint:H,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{S(K,q)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function ia(t){return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(t)}function YQ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){YQ(t,o,n[o])})}return t}function si(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function li(t,e,n){return e&&Z9(t.prototype,e),n&&Z9(t,n),t}function Ju(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jd(t,e){if(e&&(ia(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ju(t)}function Wl(t){return Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(t)}function WE(t,e){return WE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},WE(t,e)}function ey(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&WE(t,e)}an&&!WQ&&GQ(GN,"name",{configurable:!0,get:function(){try{return KQ(qN,qQ(this))[1]}catch{return""}}});var XQ={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Qo=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.init(e,n)}return li(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||XQ,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,Ve({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Sa=function(){function t(){si(this,t),this.observers={}}return li(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function rf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function J9(t){return t==null?"":""+t}function ZQ(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function FD(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function Q9(t,e,n){var r=FD(t,e,Object);r.obj[r.k]=n}function yv(t,e){var n=FD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function tO(t,e,n){var r=yv(t,n);return r!==void 0?r:yv(e,n)}function YN(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):YN(t[r],e[r],n):t[r]=e[r]);return t}function Ps(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var JQ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function QQ(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return JQ[e]}):t}var ny=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function XN(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?XN(s,l,n):void 0}o=o[r[i]]}return o}}var ttt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,e),r=Jd(this,Wl(e).call(this)),ny&&Sa.call(Ju(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return ey(e,Sa),li(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=yv(this.data,s);return l||!u||typeof o!="string"?l:XN(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),Q9(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=yv(this.data,s)||{};i?YN(l,o,a):l=Ve({},l,o),Q9(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ve({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),ZN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},eO={},nO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,e),r=Jd(this,Wl(e).call(this)),ny&&Sa.call(Ju(r)),ZQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ju(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Qo.create("translator"),r}return ey(e,Sa),li(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(ia(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(D&&g&&S&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,Ve({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",O=x?[]:{},T=x?m:v;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var H="".concat(T).concat(a).concat(R);O[R]=this.translate(H,Ve({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=g[R])}g=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(g)&&W&&(M=!0,g=nt),this.isValidLookup(g)||(K=!0,g=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:g,at=W&&nt!==g&&this.options.updateMissing;if(K||M||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?nt:g),a){var k=this.resolve(s,Ve({},r,{keySeparator:!1}));k&&k.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 C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$<P.length;$++)C.push(P[$]);else this.options.saveMissingTo==="all"?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var Y=function(V,it,gt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,it,at?gt:st,at,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,it,at?gt:st,at,r),i.emit("missingKey",V,c,it,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?C.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(it){Y([V],s+it,r["defaultValue".concat(it)]||nt)})}):Y(C,s,nt))}g=this.extendTranslation(g,n,r,y,o),K&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ve({},o,{interpolation:Ve({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Ve({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,y=typeof d=="string"?[d]:d;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=ZN.handle(y,n,r,this.options&&this.options.postProcessPassResolved?Ve({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!eO["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(eO["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=p,S=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,p,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&S.push(D+b),g&&S.push(D+="".concat(s.options.contextSeparator).concat(l.context)),y&&S.push(D+=b));w=S.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function Tb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ett=function(){function t(e){si(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return li(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tb(r[2].toLowerCase()))),r.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(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),ntt=[{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}],rtt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function ott(){var t={};return ntt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:rtt[e.fc]}})}),t}var itt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.languageUtils=e,this.options=n,this.logger=Qo.create("pluralResolver"),this.rules=ott()}return li(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),att=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,t),this.logger=Qo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return li(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:QQ,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Ps(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ps(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ps(n.nestingPrefix):n.nestingPrefixEscaped||Ps("$t("),this.nestingSuffix=n.nestingSuffix?Ps(n.nestingSuffix):n.nestingSuffixEscaped||Ps(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.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 n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=tO(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,Ve({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(tO(n,l,h),b,r,Ve({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=J9(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ve({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=Ve({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=J9(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ve({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),utt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,e),i=Jd(this,Wl(e).call(this)),ny&&Sa.call(Ju(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Qo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return ey(e,Sa),li(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var y=FD(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Ve({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function stt(){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(t){var e={};if(ia(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ia(t[2])==="object"||ia(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function rO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function e0(){}var ltt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,e),n=Jd(this,Wl(e).call(this)),ny&&Sa.call(Ju(n)),n.options=rO(r),n.services={},n.logger=Qo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Jd(n,Ju(n));setTimeout(function(){n.init(r,o)},0)}return n}return ey(e,Sa),li(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=Ve({},stt(),this.options,rO(r)),this.format=this.options.interpolation.format,o||(o=e0),!this.options.isClone){this.modules.logger?Qo.init(i(this.modules.logger),this.options):Qo.init(null,this.options);var a=new ett(this.options);this.store=new ttt(this.options.resources,this.options);var u=this.services;u.logger=Qo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new itt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new att(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new utt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new nO(this.services,this.options),this.translator.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=rf(),p=function(){var d=function(y,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=rf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=e0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&ZN.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=rf();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(ia(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=Ve({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",g=o?"".concat(o).concat(y).concat(s):s;return i.t(g,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?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 i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=rf();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=rf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0,i=Ve({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ve({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new nO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Gl=new ltt;function qn(t,e){Gl.addResourceBundle(t,"translation",e,!0,!0)}function Iyt(t){Gl.changeLanguage(t)}function Lyt(t){return Gl.getResourceBundle(t,"translation")}Gl.init({lng:"zh-CN",resources:{}});var tt=Gl.t.bind(Gl);qn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var ctt=b5?{}.toString:function(){return"[object "+N1(this)+"]"};b5||na(Object.prototype,"toString",ctt,{unsafe:!0});var oO=Array.isArray||function(t){return Du(t)=="Array"},JN=function(){},ftt=[],QN=jp("Reflect","construct"),TD=/^\s*(?:class|function)\b/,dtt=ie(TD.exec),ptt=!TD.exec(JN),of=function(t){if(!Ge(t))return!1;try{return QN(JN,ftt,t),!0}catch{return!1}},htt=!QN||cn(function(){var t;return of(of.call)||!of(Object)||!of(function(){t=!0})||t})?function(t){if(!Ge(t))return!1;switch(N1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ptt||!!dtt(TD,h5(t))}:of,gtt=Nn("species"),iO=Et.Array,vtt=function(t,e){return new(function(n){var r;return oO(n)&&(r=n.constructor,(htt(r)&&(r===iO||oO(r.prototype))||Vr(r)&&(r=r[gtt])===null)&&(r=void 0)),r===void 0?iO:r}(t))(e===0?0:e)},aO=ie([].push),Oi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=c5(s),g=vP(y),v=kP(l,c),m=j1(g),h=0,b=f||vtt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:aO(w,p)}else switch(t){case 4:return!1;case 7:aO(w,p)}return i?-1:r||o?o:w}},ytt={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)}.forEach,mtt=function(t,e){var n=[][t];return!!n&&cn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),_b=mtt?[].forEach:function(t){return ytt(this,t,arguments.length>1?arguments[1]:void 0)},tI=function(t){if(t&&t.forEach!==_b)try{jn(t,"forEach",_b)}catch{t.forEach=_b}};for(var Pb in Lg)Lg[Pb]&&tI(Et[Pb]&&Et[Pb].prototype);tI(TP),qn("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"}}),qn("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 btt={type:"paragraph",renderElem:function(t,e,n){return bt("p",null,e)}},mv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ry(t){var e={exports:{}};return t(e,e.exports),e.exports}var ki,ng,n0=function(t){return t&&t.Math==Math&&t},Ct=n0(typeof globalThis=="object"&&globalThis)||n0(typeof window=="object"&&window)||n0(typeof self=="object"&&self)||n0(typeof mv=="object"&&mv)||function(){return this}()||Function("return this")(),xe=function(t){try{return!!t()}catch{return!0}},eo=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Te=af.bind?af.bind(af):function(){return af.apply(af,arguments)},uO={}.propertyIsEnumerable,sO=Object.getOwnPropertyDescriptor,wtt=sO&&!uO.call({1:2},1)?function(t){var e=sO(this,t);return!!e&&e.enumerable}:uO,eI={f:wtt},_D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nI=Function.prototype,GE=nI.bind,qE=nI.call,Ett=GE&&GE.bind(qE),yt=GE?function(t){return t&&Ett(qE,t)}:function(t){return t&&function(){return qE.apply(t,arguments)}},Dtt=yt({}.toString),xtt=yt("".slice),aa=function(t){return xtt(Dtt(t),8,-1)},jb=Ct.Object,Stt=yt("".split),oy=xe(function(){return!jb("z").propertyIsEnumerable(0)})?function(t){return aa(t)=="String"?Stt(t,""):jb(t)}:jb,Ctt=Ct.TypeError,jr=function(t){if(t==null)throw Ctt("Can't call method on "+t);return t},pc=function(t){return oy(jr(t))},hn=function(t){return typeof t=="function"},xr=function(t){return typeof t=="object"?t!==null:hn(t)},Att=function(t){return hn(t)?t:void 0},Gp=function(t,e){return arguments.length<2?Att(Ct[t]):Ct[t]&&Ct[t][e]},rI=yt({}.isPrototypeOf),Nb=Gp("navigator","userAgent")||"",lO=Ct.process,cO=Ct.Deno,fO=lO&&lO.versions||cO&&cO.version,dO=fO&&fO.v8;dO&&(ng=(ki=dO.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!ng&&Nb&&(!(ki=Nb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Nb.match(/Chrome\/(\d+)/))&&(ng=+ki[1]);var KE=ng,YE=!!Object.getOwnPropertySymbols&&!xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&KE&&KE<41}),PD=YE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ott=Ct.Object,Ib=PD?function(t){return typeof t=="symbol"}:function(t){var e=Gp("Symbol");return hn(e)&&rI(e.prototype,Ott(t))},ktt=Ct.String,oI=function(t){try{return ktt(t)}catch{return"Object"}},Btt=Ct.TypeError,iI=function(t){if(hn(t))return t;throw Btt(oI(t)+" is not a function")},iy=function(t,e){var n=t[e];return n==null?void 0:iI(n)},Ftt=Ct.TypeError,Ttt=Object.defineProperty,jD=function(t,e){try{Ttt(Ct,t,{value:e,configurable:!0,writable:!0})}catch{Ct[t]=e}return e},ua=Ct["__core-js_shared__"]||jD("__core-js_shared__",{}),ND=ry(function(t){(t.exports=function(e,n){return ua[e]||(ua[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_tt=Ct.Object,qp=function(t){return _tt(jr(t))},Ptt=yt({}.hasOwnProperty),Ar=Object.hasOwn||function(t,e){return Ptt(qp(t),e)},jtt=0,Ntt=Math.random(),Itt=yt(1 .toString),aI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Itt(++jtt+Ntt,36)},uf=ND("wks"),Fu=Ct.Symbol,pO=Fu&&Fu.for,Ltt=PD?Fu:Fu&&Fu.withoutSetter||aI,dr=function(t){if(!Ar(uf,t)||!YE&&typeof uf[t]!="string"){var e="Symbol."+t;YE&&Ar(Fu,t)?uf[t]=Fu[t]:uf[t]=PD&&pO?pO(e):Ltt(e)}return uf[t]},Rtt=Ct.TypeError,Mtt=dr("toPrimitive"),ID=function(t){var e=function(n,r){if(!xr(n)||Ib(n))return n;var o,i=iy(n,Mtt);if(i){if(r===void 0&&(r="default"),o=Te(i,n,r),!xr(o)||Ib(o))return o;throw Rtt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&hn(s=a.toString)&&!xr(l=Te(s,a))||hn(s=a.valueOf)&&!xr(l=Te(s,a))||u!=="string"&&hn(s=a.toString)&&!xr(l=Te(s,a)))return l;throw Ftt("Can't convert object to primitive value")}(n,r)}(t,"string");return Ib(e)?e:e+""},XE=Ct.document,ztt=xr(XE)&&xr(XE.createElement),LD=function(t){return ztt?XE.createElement(t):{}},uI=!eo&&!xe(function(){return Object.defineProperty(LD("div"),"a",{get:function(){return 7}}).a!=7}),hO=Object.getOwnPropertyDescriptor,RD={f:eo?hO:function(t,e){if(t=pc(t),e=ID(e),uI)try{return hO(t,e)}catch{}if(Ar(t,e))return _D(!Te(eI.f,t,e),t[e])}},$tt=Ct.String,Htt=Ct.TypeError,rr=function(t){if(xr(t))return t;throw Htt($tt(t)+" is not an object")},Vtt=Ct.TypeError,gO=Object.defineProperty,hc={f:eo?gO:function(t,e,n){if(rr(t),e=ID(e),rr(n),uI)try{return gO(t,e,n)}catch{}if("get"in n||"set"in n)throw Vtt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ql=eo?function(t,e,n){return hc.f(t,e,_D(1,n))}:function(t,e,n){return t[e]=n,t},Utt=yt(Function.toString);hn(ua.inspectSource)||(ua.inspectSource=function(t){return Utt(t)});var bv,hd,wv,MD=ua.inspectSource,vO=Ct.WeakMap,Wtt=hn(vO)&&/native code/.test(MD(vO)),yO=ND("keys"),sI=function(t){return yO[t]||(yO[t]=aI(t))},zD={},ZE=Ct.TypeError,Gtt=Ct.WeakMap;if(Wtt||ua.state){var Xa=ua.state||(ua.state=new Gtt),qtt=yt(Xa.get),mO=yt(Xa.has),Ktt=yt(Xa.set);bv=function(t,e){if(mO(Xa,t))throw new ZE("Object already initialized");return e.facade=t,Ktt(Xa,t,e),e},hd=function(t){return qtt(Xa,t)||{}},wv=function(t){return mO(Xa,t)}}else{var js=sI("state");zD[js]=!0,bv=function(t,e){if(Ar(t,js))throw new ZE("Object already initialized");return e.facade=t,ql(t,js,e),e},hd=function(t){return Ar(t,js)?t[js]:{}},wv=function(t){return Ar(t,js)}}var JE={set:bv,get:hd,has:wv,enforce:function(t){return wv(t)?hd(t):bv(t,{})},getterFor:function(t){return function(e){var n;if(!xr(e)||(n=hd(e)).type!==t)throw ZE("Incompatible receiver, "+t+" required");return n}}},lI=Function.prototype,Ytt=eo&&Object.getOwnPropertyDescriptor,Lb=Ar(lI,"name"),ay={EXISTS:Lb,PROPER:Lb&&(function(){}).name==="something",CONFIGURABLE:Lb&&(!eo||eo&&Ytt(lI,"name").configurable)},Qd=ry(function(t){var e=ay.CONFIGURABLE,n=JE.get,r=JE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;hn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||e&&u.name!==d)&&ql(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ct?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:jD(a,u)})(Function.prototype,"toString",function(){return hn(this)&&n(this).source||MD(this)})}),Xtt=Math.ceil,Ztt=Math.floor,gc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Ztt:Xtt)(e)},Jtt=Math.max,Qtt=Math.min,tp=function(t,e){var n=gc(t);return n<0?Jtt(n+e,0):Qtt(n,e)},tet=Math.min,Kp=function(t){return t>0?tet(gc(t),9007199254740991):0},uy=function(t){return Kp(t.length)},bO=function(t){return function(e,n,r){var o,i=pc(e),a=uy(i),u=tp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},cI={includes:bO(!0),indexOf:bO(!1)},eet=cI.indexOf,wO=yt([].push),fI=function(t,e){var n,r=pc(t),o=0,i=[];for(n in r)!Ar(zD,n)&&Ar(r,n)&&wO(i,n);for(;e.length>o;)Ar(r,n=e[o++])&&(~eet(i,n)||wO(i,n));return i},Ev=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],net=Ev.concat("length","prototype"),ret={f:Object.getOwnPropertyNames||function(t){return fI(t,net)}},dI={f:Object.getOwnPropertySymbols},oet=yt([].concat),iet=Gp("Reflect","ownKeys")||function(t){var e=ret.f(rr(t)),n=dI.f;return n?oet(e,n(t)):e},aet=function(t,e){for(var n=iet(e),r=hc.f,o=RD.f,i=0;i<n.length;i++){var a=n[i];Ar(t,a)||r(t,a,o(e,a))}},uet=/#|\.prototype\./,Yp=function(t,e){var n=cet[set(t)];return n==det||n!=fet&&(hn(e)?xe(e):!!e)},set=Yp.normalize=function(t){return String(t).replace(uet,".").toLowerCase()},cet=Yp.data={},fet=Yp.NATIVE="N",det=Yp.POLYFILL="P",pet=Yp,het=RD.f,tn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Ct:l?Ct[u]||jD(u,{}):(Ct[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=het(n,r))&&a.value:n[r],!pet(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;aet(i,o)}(t.sham||o&&o.sham)&&ql(i,"sham",!0),Qd(n,r,i,t)}},EO=yt(yt.bind),Dv=Array.isArray||function(t){return aa(t)=="Array"},pI={};pI[dr("toStringTag")]="z";var $D=String(pI)==="[object z]",get=dr("toStringTag"),vet=Ct.Object,yet=aa(function(){return arguments}())=="Arguments",HD=$D?aa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=vet(t),get))=="string"?n:yet?aa(e):(r=aa(e))=="Object"&&hn(e.callee)?"Arguments":r},hI=function(){},met=[],gI=Gp("Reflect","construct"),VD=/^\s*(?:class|function)\b/,bet=yt(VD.exec),wet=!VD.exec(hI),sf=function(t){if(!hn(t))return!1;try{return gI(hI,met,t),!0}catch{return!1}},UD=!gI||xe(function(){var t;return sf(sf.call)||!sf(Object)||!sf(function(){t=!0})||t})?function(t){if(!hn(t))return!1;switch(HD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wet||!!bet(VD,MD(t))}:sf,Eet=dr("species"),DO=Ct.Array,Det=function(t,e){return new(function(n){var r;return Dv(n)&&(r=n.constructor,(UD(r)&&(r===DO||Dv(r.prototype))||xr(r)&&(r=r[Eet])===null)&&(r=void 0)),r===void 0?DO:r}(t))(e===0?0:e)},xO=yt([].push),Bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=qp(s),g=oy(y),v=function(D,S){return iI(D),S===void 0?D:EO?EO(D,S):function(){return D.apply(S,arguments)}}(l,c),m=uy(g),h=0,b=f||Det,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:xO(w,p)}else switch(t){case 4:return!1;case 7:xO(w,p)}return i?-1:r||o?o:w}},sy={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)},xet=dr("species"),WD=function(t){return KE>=51||!xe(function(){var e=[];return(e.constructor={})[xet]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Cet=sy.filter;tn({target:"Array",proto:!0,forced:!WD("filter")},{filter:function(t){return Cet(this,t,arguments.length>1?arguments[1]:void 0)}});var Aet=$D?{}.toString:function(){return"[object "+HD(this)+"]"};$D||Qd(Object.prototype,"toString",Aet,{unsafe:!0});var r0,Oet=Ct.String,Ee=function(t){if(HD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Oet(t)},vI=function(){var t=rr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},GD=Ct.RegExp,QE=xe(function(){var t=GD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ket=QE||xe(function(){return!GD("a","y").sticky}),yI={BROKEN_CARET:QE||xe(function(){var t=GD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ket,UNSUPPORTED_Y:QE},yl=Object.keys||function(t){return fI(t,Ev)},Bet=eo?Object.defineProperties:function(t,e){rr(t);for(var n,r=pc(e),o=yl(e),i=o.length,a=0;i>a;)hc.f(t,n=o[a++],r[n]);return t},Fet=Gp("document","documentElement"),mI=sI("IE_PROTO"),Rb=function(){},bI=function(t){return"<script>"+t+"<\/script>"},SO=function(t){t.write(bI("")),t.close();var e=t.parentWindow.Object;return t=null,e},rg=function(){try{r0=new ActiveXObject("htmlfile")}catch{}var t,e;rg=typeof document<"u"?document.domain&&r0?SO(r0):((e=LD("iframe")).style.display="none",Fet.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(bI("document.F=Object")),t.close(),t.F):SO(r0);for(var n=Ev.length;n--;)delete rg.prototype[Ev[n]];return rg()};zD[mI]=!0;var CO,Mb,wI=Object.create||function(t,e){var n;return t!==null?(Rb.prototype=rr(t),n=new Rb,Rb.prototype=null,n[mI]=t):n=rg(),e===void 0?n:Bet(n,e)},Tet=Ct.RegExp,_et=xe(function(){var t=Tet(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Pet=Ct.RegExp,jet=xe(function(){var t=Pet("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Net=JE.get,Iet=ND("native-string-replace",String.prototype.replace),xv=RegExp.prototype.exec,t6=xv,Let=yt("".charAt),Ret=yt("".indexOf),Met=yt("".replace),zb=yt("".slice),$b=(Mb=/b*/g,Te(xv,CO=/a/,"a"),Te(xv,Mb,"a"),CO.lastIndex!==0||Mb.lastIndex!==0),AO=yI.BROKEN_CARET,Hb=/()??/.exec("")[1]!==void 0;($b||Hb||AO||_et||jet)&&(t6=function(t){var e,n,r,o,i,a,u,s=this,l=Net(s),c=Ee(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Te(t6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=AO&&s.sticky,y=Te(vI,s),g=s.source,v=0,m=c;if(d&&(y=Met(y,"y",""),Ret(y,"g")===-1&&(y+="g"),m=zb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Let(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Hb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),$b&&(r=s.lastIndex),o=Te(xv,d?n:s,m),d?o?(o.input=zb(o.input,v),o[0]=zb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$b&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Hb&&o&&o.length>1&&Te(Iet,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=wI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ep=t6;tn({target:"RegExp",proto:!0,forced:/./.exec!==ep},{exec:ep});var qD=Function.prototype,OO=qD.apply,zet=qD.bind,kO=qD.call,EI=typeof Reflect=="object"&&Reflect.apply||(zet?kO.bind(OO):function(){return kO.apply(OO,arguments)}),$et=dr("species"),Vb=RegExp.prototype,KD=function(t,e,n,r){var o=dr(t),i=!xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[$et]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=yt(l),g=c.exec;return g===ep||g===Vb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Qd(String.prototype,t,s[0]),Qd(Vb,o,s[1])}r&&ql(Vb[o],"sham",!0)},Het=yt("".charAt),BO=yt("".charCodeAt),Vet=yt("".slice),Uet=function(t){return function(e,n){var r,o,i=Ee(jr(e)),a=gc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=BO(i,a))<55296||r>56319||a+1===u||(o=BO(i,a+1))<56320||o>57343?t?Het(i,a):r:t?Vet(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wet=Uet(!0),YD=function(t,e,n){return e+(n?Wet(t,e).length:1)},Get=Math.floor,Ub=yt("".charAt),qet=yt("".replace),Wb=yt("".slice),Ket=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yet=/\$([$&'`]|\d{1,2})/g,Xet=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Yet;return o!==void 0&&(o=qp(o),s=Ket),qet(i,s,function(l,c){var f;switch(Ub(c,0)){case"$":return"$";case"&":return t;case"`":return Wb(e,0,n);case"'":return Wb(e,a);case"<":f=o[Wb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Get(p/10);return d===0?l:d<=u?r[d-1]===void 0?Ub(c,1):r[d-1]+Ub(c,1):l}f=r[p-1]}return f===void 0?"":f})},Zet=Ct.TypeError,np=function(t,e){var n=t.exec;if(hn(n)){var r=Te(n,t,e);return r!==null&&rr(r),r}if(aa(t)==="RegExp")return Te(ep,t,e);throw Zet("RegExp#exec called on incompatible receiver")},e6=dr("replace"),Jet=Math.max,Qet=Math.min,tnt=yt([].concat),Gb=yt([].push),FO=yt("".indexOf),TO=yt("".slice),ent="a".replace(/./,"$0")==="$0",_O=!!/./[e6]&&/./[e6]("a","$0")==="";KD("replace",function(t,e,n){var r=_O?"$":"$0";return[function(o,i){var a=jr(this),u=o==null?void 0:iy(o,e6);return u?Te(u,o,a,i):Te(e,Ee(a),o,i)},function(o,i){var a=rr(this),u=Ee(o);if(typeof i=="string"&&FO(i,r)===-1&&FO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=hn(i);l||(i=Ee(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=np(a,u);if(d===null||(Gb(p,d),!c))break;Ee(d[0])===""&&(a.lastIndex=YD(u,Kp(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Ee((d=p[m])[0]),b=Jet(Qet(gc(d.index),u.length),0),w=[],D=1;D<d.length;D++)Gb(w,(y=d[D])===void 0?y:String(y));var S=d.groups;if(l){var x=tnt([h],w,b,u);S!==void 0&&Gb(x,S);var O=Ee(EI(i,void 0,x))}else O=Xet(h,u,b,w,S,i);b>=v&&(g+=TO(u,v,b)+O,v=b+h.length)}return g+TO(u,v)}]},!!xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!ent||_O);var n6=dr("unscopables"),r6=Array.prototype;r6[n6]==null&&hc.f(r6,n6,{configurable:!0,value:wI(null)});var DI=function(t){r6[n6][t]=!0},nnt=sy.find,PO=!0;"find"in[]&&Array(1).find(function(){PO=!1}),tn({target:"Array",proto:!0,forced:PO},{find:function(t){return nnt(this,t,arguments.length>1?arguments[1]:void 0)}}),DI("find");var rnt=dr("match"),xI=function(t){var e;return xr(t)&&((e=t[rnt])!==void 0?!!e:aa(t)=="RegExp")},ont=Ct.TypeError,int=dr("species"),SI=function(t,e,n){var r=ID(e);r in t?hc.f(t,r,_D(0,n)):t[r]=n},ant=Ct.Array,unt=Math.max,jO=function(t,e,n){for(var r=uy(t),o=tp(e,r),i=tp(n===void 0?r:n,r),a=ant(unt(i-o,0)),u=0;o<i;o++,u++)SI(a,u,t[o]);return a.length=u,a},Ns=yI.UNSUPPORTED_Y,snt=Math.min,CI=[].push,lnt=yt(/./.exec),Is=yt(CI),lf=yt("".slice);KD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ee(jr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!xI(o))return Te(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Te(ep,y,a))&&!((l=y.lastIndex)>d&&(Is(f,lf(a,d,s.index)),s.length>1&&s.index<a.length&&EI(CI,f,jO(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&lnt(y,"")||Is(f,""):Is(f,lf(a,d)),f.length>u?jO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Te(e,this,o,i)}:e,[function(o,i){var a=jr(this),u=o==null?void 0:iy(o,t);return u?Te(u,o,a,i):Te(r,Ee(a),o,i)},function(o,i){var a=rr(this),u=Ee(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,x=rr(w).constructor;return x===void 0||(S=rr(x)[int])==null?D:function(O){if(UD(O))return O;throw ont(oI(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),p=new l(Ns?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return np(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Ns?0:g;var m,h=np(p,Ns?lf(u,g):u);if(h===null||(m=snt(Kp(p.lastIndex+(Ns?g:0)),u.length))===y)g=YD(u,g,c);else{if(Is(v,lf(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Is(v,h[b]),v.length===d)return v;g=y=m}}return Is(v,lf(u,y)),v}]},!!xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ns);var o6=`
\v\f\r \u2028\u2029\uFEFF`,NO=yt("".replace),Sv="["+o6+"]",cnt=RegExp("^"+Sv+Sv+"*"),fnt=RegExp(Sv+Sv+"*$"),qb=function(t){return function(e){var n=Ee(jr(e));return 1&t&&(n=NO(n,cnt,"")),2&t&&(n=NO(n,fnt,"")),n}},dnt={start:qb(1),end:qb(2),trim:qb(3)},pnt=ay.PROPER,hnt=dnt.trim;function XD(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function vc(t){return t.length===0?"":t[0].outerHTML}function yc(t){return t.length?t[0].tagName.toLowerCase():""}function Jr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}tn({target:"String",proto:!0,forced:xe(function(){return!!o6.trim()||"
".trim()!=="
"||pnt&&o6.trim.name!=="trim"})},{trim:function(){return hnt(this)}}),tn({global:!0},{globalThis:Ct}),Xg&&(B.fn.css=Xg),Tr&&(B.fn.append=Tr),DA&&(B.fn.prepend=DA),Bl&&(B.fn.addClass=Bl),Fl&&(B.fn.removeClass=Fl),Tl&&(B.fn.hasClass=Tl),ko&&(B.fn.on=ko),mA&&(B.fn.off=mA),Da&&(B.fn.focus=Da),Fr&&(B.fn.attr=Fr),Gg&&(B.fn.removeAttr=Gg),Pl&&(B.fn.hide=Pl),Yg&&(B.fn.show=Yg),Qg&&(B.fn.parents=Qg),_l&&(B.fn.dataset=_l),Oo&&(B.fn.val=Oo),Jg&&(B.fn.text=Jg),Ea&&(B.fn.html=Ea),Il&&(B.fn.children=Il),Ll&&(B.fn.remove=Ll),Nl&&(B.fn.find=Nl),qg&&(B.fn.width=qg),Kg&&(B.fn.height=Kg),wA&&(B.fn.filter=wA),Rl&&(B.fn.empty=Rl);var gnt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},i6=function(t,e){return i6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ca=function(){return Ca=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ca.apply(this,arguments)};function Ia(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function La(t,e){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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function AI(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function IO(t){var e=Yt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ct.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var vnt={renderElems:[btt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[gnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){IO(r)||e(o)},r.deleteForward=function(o){IO(r)||n(o)},r}},ynt=/"/g,mnt=yt("".replace),Qf=function(t,e,n,r){var o=Ee(jr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+mnt(Ee(r),ynt,""")+'"'),i+">"+o+"</"+e+">"},td=function(t){return xe(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Kb(t,e){var n=e,r=t,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 Za(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:td("bold")},{bold:function(){return Qf(this,"b","","")}}),tn({target:"String",proto:!0,forced:td("italics")},{italics:function(){return Qf(this,"i","","")}}),tn({target:"String",proto:!0,forced:td("sub")},{sub:function(){return Qf(this,"sub","","")}}),tn({target:"String",proto:!0,forced:td("sup")},{sup:function(){return Qf(this,"sup","","")}});var LO={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},Yb=LD("span").classList,RO=Yb&&Yb.constructor&&Yb.constructor.prototype,bnt=RO===Object.prototype?void 0:RO,OI=function(t,e){var n=[][t];return!!n&&xe(function(){n.call(null,e||function(){throw 1},1)})},wnt=sy.forEach,Xb=OI("forEach")?[].forEach:function(t){return wnt(this,t,arguments.length>1?arguments[1]:void 0)},kI=function(t){if(t&&t.forEach!==Xb)try{ql(t,"forEach",Xb)}catch{t.forEach=Xb}};for(var Zb in LO)LO[Zb]&&kI(Ct[Zb]&&Ct[Zb].prototype);function BI(t,e){return t.selection==null||!!Yt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Ent(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}kI(bnt),tn({target:"Object",stat:!0,forced:xe(function(){yl(1)})},{keys:function(t){return yl(qp(t))}});var ps=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Yt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return BI(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Dnt='<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>',xnt='<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>',Snt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Cnt='<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>',Ant='<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>',FI='<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>',TI='<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>',Ont='<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>',knt='<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>',Bnt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Fnt='<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>',Tnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',_nt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Pnt='<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>',jnt='<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>',Nnt='<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>',Int='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Lnt='<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>',Rnt='<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>',Mnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=Dnt,n.hotkey="mod+b",n}return be(e,t),e}(ps),znt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=Ant,n.hotkey="mod+e",n}return be(e,t),e}(ps),$nt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=Snt,n.hotkey="mod+i",n}return be(e,t),e}(ps),Hnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=Cnt,n.hotkey="mod+shift+x",n}return be(e,t),e}(ps),Vnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=xnt,n.hotkey="mod+u",n}return be(e,t),e}(ps),Unt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=Rnt,n.hotkey="",n}return be(e,t),e}(ps),Wnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=Lnt,n.hotkey="",n}return be(e,t),e}(ps),Gnt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return BI(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=AI(i),u=a.next();!u.done;u=a.next())Ent(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),qnt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Mnt}},{key:"underline",factory:function(){return new Vnt}},{key:"italic",factory:function(){return new $nt}},{key:"through",factory:function(){return new Hnt}},{key:"code",factory:function(){return new znt}},{key:"sub",factory:function(){return new Unt}},{key:"sup",factory:function(){return new Wnt}},{key:"clearStyle",factory:function(){return new Gnt}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(XD(e))return Kb(t,e);var n=B(e);if(yc(n)==="br")return Kb(t,"<br>");var r=n.html();return r=Kb(t,r),n.html(r),vc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e;return Za(r,"b,strong")&&(o.bold=!0),Za(r,"i,em")&&(o.italic=!0),Za(r,"u")&&(o.underline=!0),Za(r,"s,strike")&&(o.through=!0),Za(r,"sub")&&(o.sub=!0),Za(r,"sup")&&(o.sup=!0),Za(r,"code")&&(o.code=!0),o}};function Xp(t){return function(e,n,r){return bt("h"+t,null,n)}}var Knt={type:"header1",renderElem:Xp(1)},Ynt={type:"header2",renderElem:Xp(2)},Xnt={type:"header3",renderElem:Xp(3)},Znt={type:"header4",renderElem:Xp(4)},Jnt={type:"header5",renderElem:Xp(5)},Qnt=ay.PROPER,a6=RegExp.prototype,_I=a6.toString,trt=yt(vI),ert=xe(function(){return _I.call({source:"a",flags:"b"})!="/a/b"}),nrt=Qnt&&_I.name!="toString";(ert||nrt)&&Qd(RegExp.prototype,"toString",function(){var t=rr(this),e=Ee(t.source),n=t.flags;return"/"+e+"/"+Ee(n===void 0&&rI(a6,t)&&!("flags"in a6)?trt(t):n)},{unsafe:!0});var Jb,rrt=Ct.TypeError,PI=function(t){if(xI(t))throw rrt("The method doesn't accept regular expressions");return t},ort=dr("match"),jI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[ort]=!1,"/./"[t](e)}catch{}}return!1},irt=RD.f,MO=yt("".startsWith),art=yt("".slice),urt=Math.min,zO=jI("startsWith");function NI(t){var e=Yt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Yt(n,1)[0];return A.getNodeType(r)}function II(t){return t.selection==null||!Yt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function LI(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!zO&&(Jb=irt(String.prototype,"startsWith"),Jb&&!Jb.writable)||zO)},{startsWith:function(t){var e=Ee(jr(this));PI(t);var n=Kp(urt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ee(t);return MO?MO(e,r,n):art(e,n,n+r.length)===r}});var srt=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var n=[{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:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return NI(e)},t.prototype.isDisabled=function(e){return II(e)},t.prototype.exec=function(e,n){LI(e,n.toString())},t}(),Zp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return NI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return II(e)},t.prototype.exec=function(e,n){var r=this.type;LI(e,n===r?"paragraph":r)},t}(),lrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return be(e,t),e}(Zp),crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return be(e,t),e}(Zp),frt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return be(e,t),e}(Zp),drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return be(e,t),e}(Zp),prt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return be(e,t),e}(Zp),hrt={key:"headerSelect",factory:function(){return new srt}},grt={key:"header1",factory:function(){return new lrt}},vrt={key:"header2",factory:function(){return new crt}},yrt={key:"header3",factory:function(){return new frt}},mrt={key:"header4",factory:function(){return new drt}},brt={key:"header5",factory:function(){return new prt}};function cf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function ff(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var wrt={renderElems:[Knt,Ynt,Xnt,Znt,Jnt],elemsToHtml:[{type:"header1",elemToHtml:cf(1)},{type:"header2",elemToHtml:cf(2)},{type:"header3",elemToHtml:cf(3)},{type:"header4",elemToHtml:cf(4)},{type:"header5",elemToHtml:cf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:ff(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:ff(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:ff(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:ff(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:ff(5)}],menus:[hrt,grt,vrt,yrt,mrt,brt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Yt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Ls=Object.assign,$O=Object.defineProperty,Ert=yt([].concat),HO=!Ls||xe(function(){if(eo&&Ls({b:1},Ls($O({},"a",{enumerable:!0,get:function(){$O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ls({},t)[n]!=7||yl(Ls({},e)).join("")!=r})?function(t,e){for(var n=qp(t),r=arguments.length,o=1,i=dI.f,a=eI.f;r>o;)for(var u,s=oy(arguments[o++]),l=i?Ert(yl(s),i(s)):yl(s),c=l.length,f=0;c>f;)u=l[f++],eo&&!Te(a,s,u)||(n[u]=s[u]);return n}:Ls;function Qu(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==HO},{assign:HO});var Drt={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},RI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(`
<li data-value="0" class="clear">
<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>
`+u+`
</li>
`);return o.prepend(s),o[0]},t}(),xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Ont,n.mark="color",n}return be(e,t),e}(RI),Srt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=knt,n.mark="bgColor",n}return be(e,t),e}(RI),VO=["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)"],Crt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&Qu(i,{color:r}),o&&Qu(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((XD(e)||yc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),vc(n)):e},preParseHtml:[Drt],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=Jr(r,"color");i&&(o.color=i);var a=Jr(r,"background-color");return a||(a=Jr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new xrt},config:{colors:VO}},{key:"bgColor",factory:function(){return new Srt},config:{colors:VO}}]},Art=/^(?:\w+:)?\/\/(\S+)$/,Ort=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,krt=/^[^\s\.]+\.\S{2,}$/,Brt=cI.includes;function ly(t){return t===void 0&&(t="r"),t+"-"+aj()}function ZD(t){return t.replace(/</g,"<").replace(/>/g,">")}function MI(t,e,n,r){return Ia(this,void 0,void 0,function(){var o,i;return La(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function zI(t,e,n){return Ia(this,void 0,void 0,function(){var r;return La(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function JD(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function Qb(t,e){return{type:"link",url:ZD(t),children:e?[{text:e}]:[]}}function $I(t,e,n){return Ia(this,void 0,void 0,function(){var r,o,i;return La(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),JD(t)?[2]:[4,MI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,zI("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=Qb(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=Qb(r,e),N.insertNodes(t,i)):(i=Qb(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return Brt(this,t,arguments.length>1?arguments[1]:void 0)}}),DI("includes");var Frt={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},Trt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function t2(){return ly("w-e-insert-link")}var _rt=function(){function t(){this.title=tt("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=t2(),this.urlInputId=t2(),this.buttonId=t2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return JD(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Yt(nr(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Yt(nr(tt("link.url"),i),2),f=c[0],p=B(c[1]),d=Yt(dc(a,tt("common.ok")),1)[0];if(this.$content==null){var y=B("<div></div>");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();$I(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var v=E.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function UO(){return ly("w-e-update-link")}var Prt=function(){function t(){this.title=tt("link.edit"),this.iconSvg=FI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=UO(),this.buttonId=UO()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Yt(nr(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Yt(dc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",y=s.find("#"+n).val();(function(g,v,m){Ia(this,void 0,void 0,function(){var h,b;return La(this,function(w){switch(w.label){case 0:return m?[4,MI("editLink",g,v,m)]:[2];case 1:return w.sent()?[4,zI("editLink",g,m)]:[2];case 2:return h=w.sent(),b={url:ZD(h)},N.setNodes(g,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),jrt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),Nrt=function(){function t(){this.title=tt("link.view"),this.iconSvg=TI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),WO={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Irt={renderElems:[Frt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[Trt],menus:[{key:"insertLink",factory:function(){return new _rt},config:WO},{key:"editLink",factory:function(){return new Prt},config:WO},{key:"unLink",factory:function(){return new jrt}},{key:"viewLink",factory:function(){return new Nrt}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Art);if(!c)return!1;var f=c[1];return!(!f||!Ort.test(f)&&!krt.test(f))}(a)){if(!JD(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);$I(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},Lrt=yt(1 .valueOf),Rrt=Ct.RangeError,Mrt=Ct.RangeError,HI=Ct.String,VI=Math.floor,u6=yt(function(t){var e=Ee(jr(this)),n="",r=gc(t);if(r<0||r==1/0)throw Rrt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),GO=yt("".slice),df=yt(1 .toFixed),ll=function(t,e,n){return e===0?n:e%2==1?ll(t,e-1,n*t):ll(t*t,e/2,n)},Rs=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=VI(o/1e7)},e2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=VI(r/e),r=r%e*1e7},qO=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=HI(t[e]);n=n===""?r:n+u6("0",7-r.length)+r}return n};function KO(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tn({target:"Number",proto:!0,forced:xe(function(){return df(8e-5,3)!=="0.000"||df(.9,0)!=="1"||df(1.255,2)!=="1.25"||df(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!xe(function(){df({})})},{toFixed:function(t){var e,n,r,o,i=Lrt(this),a=gc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Mrt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return HI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*ll(2,69,1))-69)<0?i*ll(2,-e,1):i/ll(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Rs(u,0,n),r=a;r>=7;)Rs(u,1e7,0),r-=7;for(Rs(u,ll(10,r,1),0),r=e-1;r>=23;)e2(u,1<<23),r-=23;e2(u,1<<r),Rs(u,1,1),e2(u,2),l=qO(u)}else Rs(u,0,n),Rs(u,1<<-e,0),l=qO(u)+u6("0",a);return a>0?s+((o=l.length)<=a?"0."+u6("0",a-o)+l:GO(l,0,o-a)+"."+GO(l,o-a)):s+l}});var zrt={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=bt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,D,S){var x=B("body"),O=KO(b,w),T=S.width,R=S.height,H=0,M=0,K=0,U=!1,W=null;function q(at){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=at;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),x.on("mousemove",nt),x.on("mouseup",lt);var C=A.getHoverbar(b);C&&C.hideAndClean()}var nt=qu(function(at){at.preventDefault();var k=at.clientX,C=M+(U?H-k:k-H),P=K*(C/M);W!=null&&(C<=15||P<=15||(W.css("width",C+"px"),W.css("height",P+"px")))},100);function lt(at){if(x.off("mousemove",nt),W!=null){var k=W.width().toFixed(2),C=W.height().toFixed(2),P={style:Ca(Ca({},w.style),{width:k+"px",height:C+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),x.off("mouseup",lt)}}var st={};return T&&(st.width=T),R&&(st.height=R),bt("div",{id:O,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var k=B(at.target);k.hasClass("w-e-image-dragger")&&(at.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(at.clientX))}}},D,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(b,w,D,S){var x=S.width,O=S.height,T={};return x&&(T.width=x),O&&(T.height=O),bt("div",{id:KO(b,w),style:T,className:"w-e-image-container"},D)}(n,t,m,{width:p,height:y})}},$rt={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Jr(r,"width"),height:Jr(r,"height")},children:[{text:""}]}}};function UI(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ia(this,void 0,void 0,function(){var i,a;return La(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function WI(t,e,n){return Ia(this,void 0,void 0,function(){var r;return La(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Tu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ia(this,void 0,void 0,function(){var o,i,a;return La(this,function(u){switch(u.label){case 0:return[4,UI("insertImage",t,e,n,r)];case 1:return u.sent()?[4,WI("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:ZD(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),cy(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function cy(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Yt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function o0(){return ly("w-e-insert-image")}var Hrt=function(){function t(){this.title=tt("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=o0(),this.altInputId=o0(),this.hrefInputId=o0(),this.buttonId=o0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return cy(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Yt(nr(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Yt(nr(tt("image.desc"),i),2),p=f[0],d=B(f[1]),y=Yt(nr(tt("image.link"),a),2),g=y[0],v=B(y[1]),m=Yt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();n.insertImage(e,D,S,x),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Tu(e,n,r,o))},t}(),Vrt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function i0(){return ly("w-e-edit-image")}var Urt=function(){function t(){this.title=tt("image.edit"),this.iconSvg=FI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=i0(),this.altInputId=i0(),this.hrefInputId=i0(),this.buttonId=i0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Yt(nr(tt("image.src"),o),2),c=l[0],f=B(l[1]),p=Yt(nr(tt("image.desc"),i),2),d=p[0],y=B(p[1]),g=Yt(nr(tt("image.link"),a),2),v=g[0],m=B(g[1]),h=Yt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var D=s,S=D.src,x=D.alt,O=x===void 0?"":x,T=D.href,R=T===void 0?"":T;return f.val(S),y.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ia(this,void 0,void 0,function(){var f,p,d,y,g,v;return La(this,function(m){switch(m.label){case 0:return[4,UI("editImage",a,u,s,l)];case 1:return m.sent()?[4,WI("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:Ca(Ca({},d===void 0?{}:d),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),Wrt=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=TI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),QD=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Ca(Ca({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),Grt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return be(e,t),e}(QD),qrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return be(e,t),e}(QD),Krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return be(e,t),e}(QD),YO={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Yrt={renderElems:[zrt],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[$rt],menus:[{key:"insertImage",factory:function(){return new Hrt},config:YO},{key:"deleteImage",factory:function(){return new Vrt}},{key:"editImage",factory:function(){return new Urt},config:YO},{key:"viewImageLink",factory:function(){return new Wrt}},{key:"imageWidth30",factory:function(){return new Grt}},{key:"imageWidth50",factory:function(){return new qrt}},{key:"imageWidth100",factory:function(){return new Krt}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Xrt={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),bt("span",null,e));return o}},Zrt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Jrt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Qrt={renderElems:[Xrt],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[Jrt],menus:[{key:"todo",factory:function(){return new Zrt}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},tot={type:"blockquote",renderElem:function(t,e,n){return bt("blockquote",null,e)}},eot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},not=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Yt(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),rot={key:"blockquote",factory:function(){return new not}},oot=yt([].slice),iot=WD("slice"),aot=dr("species"),n2=Ct.Array,uot=Math.max;tn({target:"Array",proto:!0,forced:!iot},{slice:function(t,e){var n,r,o,i=pc(this),a=uy(i),u=tp(t,a),s=tp(e===void 0?a:e,a);if(Dv(i)&&(n=i.constructor,(UD(n)&&(n===n2||Dv(n.prototype))||xr(n)&&(n=n[aot])===null)&&(n=void 0),n===n2||n===void 0))return oot(i,u,s);for(r=new(n===void 0?n2:n)(uot(s-u,0)),o=0;u<s;u++,o++)u in i&&SI(r,o,i[u]);return r.length=o,r}});var sot={renderElems:[tot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[eot],menus:[rot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Yt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Bt.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
`)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},lot=function(){function t(){this.title=tt("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 t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),cot={menus:[{key:"emotion",factory:function(){return new lot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},fot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},dot={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",fot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},pot=yt("".indexOf);tn({target:"String",proto:!0,forced:!jI("includes")},{includes:function(t){return!!~pot(Ee(jr(this)),Ee(PI(t)),arguments.length>1?arguments[1]:void 0)}});var Fi,og,a0=function(t){return t&&t.Math==Math&&t},Ft=a0(typeof globalThis=="object"&&globalThis)||a0(typeof window=="object"&&window)||a0(typeof self=="object"&&self)||a0(typeof mv=="object"&&mv)||function(){return this}()||Function("return this")(),t8=Function.prototype,XO=t8.apply,hot=t8.bind,ZO=t8.call,GI=typeof Reflect=="object"&&Reflect.apply||(hot?ZO.bind(XO):function(){return ZO.apply(XO,arguments)}),qI=Function.prototype,s6=qI.bind,l6=qI.call,got=s6&&s6.bind(l6),_e=s6?function(t){return t&&got(l6,t)}:function(t){return t&&function(){return l6.apply(t,arguments)}},gn=function(t){return typeof t=="function"},lr=function(t){try{return!!t()}catch{return!0}},Wn=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pf=Function.prototype.call,qr=pf.bind?pf.bind(pf):function(){return pf.apply(pf,arguments)},JO={}.propertyIsEnumerable,QO=Object.getOwnPropertyDescriptor,vot=QO&&!JO.call({1:2},1)?function(t){var e=QO(this,t);return!!e&&e.enumerable}:JO,e8={f:vot},ts=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},yot=_e({}.toString),mot=_e("".slice),_u=function(t){return mot(yot(t),8,-1)},r2=Ft.Object,bot=_e("".split),KI=lr(function(){return!r2("z").propertyIsEnumerable(0)})?function(t){return _u(t)=="String"?bot(t,""):r2(t)}:r2,wot=Ft.TypeError,n8=function(t){if(t==null)throw wot("Can't call method on "+t);return t},No=function(t){return KI(n8(t))},Sr=function(t){return typeof t=="object"?t!==null:gn(t)},br={},tk=function(t){return gn(t)?t:void 0},Jp=function(t,e){return arguments.length<2?tk(br[t])||tk(Ft[t]):br[t]&&br[t][e]||Ft[t]&&Ft[t][e]},YI=_e({}.isPrototypeOf),o2=Jp("navigator","userAgent")||"",ek=Ft.process,nk=Ft.Deno,rk=ek&&ek.versions||nk&&nk.version,ok=rk&&rk.v8;ok&&(og=(Fi=ok.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!og&&o2&&(!(Fi=o2.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=o2.match(/Chrome\/(\d+)/))&&(og=+Fi[1]);var Cv=og,ho=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Cv&&Cv<41}),r8=ho&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Eot=Ft.Object,ml=r8?function(t){return typeof t=="symbol"}:function(t){var e=Jp("Symbol");return gn(e)&&YI(e.prototype,Eot(t))},Dot=Ft.String,xot=Ft.TypeError,XI=function(t){if(gn(t))return t;throw xot(function(e){try{return Dot(e)}catch{return"Object"}}(t)+" is not a function")},Sot=Ft.TypeError,Cot=Object.defineProperty,sa=Ft["__core-js_shared__"]||function(t,e){try{Cot(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),hs=ry(function(t){(t.exports=function(e,n){return sa[e]||(sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Aot=Ft.Object,Qp=function(t){return Aot(n8(t))},Oot=_e({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Oot(Qp(t),e)},kot=0,Bot=Math.random(),Fot=_e(1 .toString),Av=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Fot(++kot+Bot,36)},hf=hs("wks"),Pu=Ft.Symbol,ik=Pu&&Pu.for,Tot=r8?Pu:Pu&&Pu.withoutSetter||Av,pr=function(t){if(!Kt(hf,t)||!ho&&typeof hf[t]!="string"){var e="Symbol."+t;ho&&Kt(Pu,t)?hf[t]=Pu[t]:hf[t]=r8&&ik?ik(e):Tot(e)}return hf[t]},_ot=Ft.TypeError,Pot=pr("toPrimitive"),mc=function(t){var e=function(n,r){if(!Sr(n)||ml(n))return n;var o,i,a=(o=n[Pot])==null?void 0:XI(o);if(a){if(r===void 0&&(r="default"),i=qr(a,n,r),!Sr(i)||ml(i))return i;throw _ot("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u))||gn(l=u.valueOf)&&!Sr(c=qr(l,u))||s!=="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u)))return c;throw Sot("Can't convert object to primitive value")}(n,r)}(t,"string");return ml(e)?e:e+""},c6=Ft.document,jot=Sr(c6)&&Sr(c6.createElement),ZI=function(t){return jot?c6.createElement(t):{}},JI=!Wn&&!lr(function(){return Object.defineProperty(ZI("div"),"a",{get:function(){return 7}}).a!=7}),ak=Object.getOwnPropertyDescriptor,o8={f:Wn?ak:function(t,e){if(t=No(t),e=mc(e),JI)try{return ak(t,e)}catch{}if(Kt(t,e))return ts(!qr(e8.f,t,e),t[e])}},Not=/#|\.prototype\./,th=function(t,e){var n=Lot[Iot(t)];return n==Mot||n!=Rot&&(gn(e)?lr(e):!!e)},Iot=th.normalize=function(t){return String(t).replace(Not,".").toLowerCase()},Lot=th.data={},Rot=th.NATIVE="N",Mot=th.POLYFILL="P",zot=th,uk=_e(_e.bind),QI=function(t,e){return XI(t),e===void 0?t:uk?uk(t,e):function(){return t.apply(e,arguments)}},$ot=Ft.String,Hot=Ft.TypeError,es=function(t){if(Sr(t))return t;throw Hot($ot(t)+" is not an object")},Vot=Ft.TypeError,sk=Object.defineProperty,gs={f:Wn?sk:function(t,e,n){if(es(t),e=mc(e),es(n),JI)try{return sk(t,e,n)}catch{}if("get"in n||"set"in n)throw Vot("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},vo=Wn?function(t,e,n){return gs.f(t,e,ts(1,n))}:function(t,e,n){return t[e]=n,t},Uot=o8.f,Wot=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return GI(t,this,arguments)};return e.prototype=t.prototype,e},Hi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Ft:p?Ft[c]:(Ft[c]||{}).prototype,g=f?br:br[c]||vo(br,c,{})[c],v=g.prototype;for(o in e)n=!zot(f?o:c+(p?".":"#")+o,t.forced)&&y&&Kt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=Uot(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?QI(i,Ft):t.wrap&&n?Wot(i):d&&gn(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&vo(s,"sham",!0),vo(g,o,s),d&&(Kt(br,r=c+"Prototype")||vo(br,r,{}),vo(br[r],o,i),t.real&&v&&!v[o]&&vo(v,o,i)))},Ov=Array.isArray||function(t){return _u(t)=="Array"},Got=Math.ceil,qot=Math.floor,i8=function(t){var e=+t;return e!=e||e===0?0:(e>0?qot:Got)(e)},Kot=Math.min,fy=function(t){return(e=t.length)>0?Kot(i8(e),9007199254740991):0;var e},f6=function(t,e,n){var r=mc(e);r in t?gs.f(t,r,ts(0,n)):t[r]=n},tL={};tL[pr("toStringTag")]="z";var a8=String(tL)==="[object z]",Yot=pr("toStringTag"),Xot=Ft.Object,Zot=_u(function(){return arguments}())=="Arguments",dy=a8?_u:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Xot(t),Yot))=="string"?n:Zot?_u(e):(r=_u(e))=="Object"&&gn(e.callee)?"Arguments":r},Jot=_e(Function.toString);gn(sa.inspectSource)||(sa.inspectSource=function(t){return Jot(t)});var eL=sa.inspectSource,nL=function(){},Qot=[],rL=Jp("Reflect","construct"),u8=/^\s*(?:class|function)\b/,tit=_e(u8.exec),eit=!u8.exec(nL),gf=function(t){if(!gn(t))return!1;try{return rL(nL,Qot,t),!0}catch{return!1}},nit=!rL||lr(function(){var t;return gf(gf.call)||!gf(Object)||!gf(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(dy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eit||!!tit(u8,eL(t))}:gf,rit=pr("species"),lk=Ft.Array,oL=function(t,e){return new(function(n){var r;return Ov(n)&&(r=n.constructor,(nit(r)&&(r===lk||Ov(r.prototype))||Sr(r)&&(r=r[rit])===null)&&(r=void 0)),r===void 0?lk:r}(t))(e===0?0:e)},oit=pr("species"),iL=pr("isConcatSpreadable"),ck=Ft.TypeError,iit=Cv>=51||!lr(function(){var t=[];return t[iL]=!1,t.concat()[0]!==t}),ait=Cv>=51||!lr(function(){var t=[];return(t.constructor={})[oit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),uit=function(t){if(!Sr(t))return!1;var e=t[iL];return e!==void 0?!!e:Ov(t)};Hi({target:"Array",proto:!0,forced:!iit||!ait},{concat:function(t){var e,n,r,o,i,a=Qp(this),u=oL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(uit(i=e===-1?a:arguments[e])){if(s+(o=fy(i))>9007199254740991)throw ck("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&f6(u,s,i[n])}else{if(s>=9007199254740991)throw ck("Maximum allowed index exceeded");f6(u,s++,i)}return u.length=s,u}});var u0,sit=Ft.String,kv=function(t){if(dy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sit(t)},lit=Math.max,cit=Math.min,d6=function(t,e){var n=i8(t);return n<0?lit(n+e,0):cit(n,e)},fk=function(t){return function(e,n,r){var o,i=No(e),a=fy(i),u=d6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},fit={includes:fk(!0),indexOf:fk(!1)},eh={},dit=fit.indexOf,dk=_e([].push),aL=function(t,e){var n,r=No(t),o=0,i=[];for(n in r)!Kt(eh,n)&&Kt(r,n)&&dk(i,n);for(;e.length>o;)Kt(r,n=e[o++])&&(~dit(i,n)||dk(i,n));return i},Bv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],s8=Object.keys||function(t){return aL(t,Bv)},pit=Wn?Object.defineProperties:function(t,e){es(t);for(var n,r=No(e),o=s8(e),i=o.length,a=0;i>a;)gs.f(t,n=o[a++],r[n]);return t},hit=Jp("document","documentElement"),pk=hs("keys"),py=function(t){return pk[t]||(pk[t]=Av(t))},uL=py("IE_PROTO"),i2=function(){},sL=function(t){return"<script>"+t+"<\/script>"},hk=function(t){t.write(sL("")),t.close();var e=t.parentWindow.Object;return t=null,e},ig=function(){try{u0=new ActiveXObject("htmlfile")}catch{}var t,e;ig=typeof document<"u"?document.domain&&u0?hk(u0):((e=ZI("iframe")).style.display="none",hit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(sL("document.F=Object")),t.close(),t.F):hk(u0);for(var n=Bv.length;n--;)delete ig.prototype[Bv[n]];return ig()};eh[uL]=!0;var Fv,gd,Tv,ns=Object.create||function(t,e){var n;return t!==null?(i2.prototype=es(t),n=new i2,i2.prototype=null,n[uL]=t):n=ig(),e===void 0?n:pit(n,e)},git=Bv.concat("length","prototype"),lL={f:Object.getOwnPropertyNames||function(t){return aL(t,git)}},vit=Ft.Array,yit=Math.max,gk=lL.f,vk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cL={f:function(t){return vk&&_u(t)=="Window"?function(e){try{return gk(e)}catch{return function(r,o,i){for(var a=fy(r),u=d6(void 0,a),s=d6(a,a),l=vit(yit(s-u,0)),c=0;u<s;u++,c++)f6(l,c,r[u]);return l.length=c,l}(vk)}}(t):gk(No(t))}},a2={f:Object.getOwnPropertySymbols},mit=_e([].slice),Kl=function(t,e,n,r){r&&r.enumerable?t[e]=n:vo(t,e,n)},l8={f:pr},bit=gs.f,Ne=function(t){var e=br.Symbol||(br.Symbol={});Kt(e,t)||bit(e,t,{value:l8.f(t)})},wit=a8?{}.toString:function(){return"[object "+dy(this)+"]"},Eit=gs.f,yk=pr("toStringTag"),_v=function(t,e,n,r){if(t){var o=n?t:t.prototype;Kt(o,yk)||Eit(o,yk,{configurable:!0,value:e}),r&&!a8&&vo(o,"toString",wit)}},mk=Ft.WeakMap,Dit=gn(mk)&&/native code/.test(eL(mk)),p6=Ft.TypeError,xit=Ft.WeakMap;if(Dit||sa.state){var Ja=sa.state||(sa.state=new xit),Sit=_e(Ja.get),bk=_e(Ja.has),Cit=_e(Ja.set);Fv=function(t,e){if(bk(Ja,t))throw new p6("Object already initialized");return e.facade=t,Cit(Ja,t,e),e},gd=function(t){return Sit(Ja,t)||{}},Tv=function(t){return bk(Ja,t)}}else{var Ms=py("state");eh[Ms]=!0,Fv=function(t,e){if(Kt(t,Ms))throw new p6("Object already initialized");return e.facade=t,vo(t,Ms,e),e},gd=function(t){return Kt(t,Ms)?t[Ms]:{}},Tv=function(t){return Kt(t,Ms)}}var bc={set:Fv,get:gd,has:Tv,enforce:function(t){return Tv(t)?gd(t):Fv(t,{})},getterFor:function(t){return function(e){var n;if(!Sr(e)||(n=gd(e)).type!==t)throw p6("Incompatible receiver, "+t+" required");return n}}},wk=_e([].push),Ti=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Qp(s),g=KI(y),v=QI(l,c),m=fy(g),h=0,b=f||oL,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:wk(w,p)}else switch(t){case 4:return!1;case 7:wk(w,p)}return i?-1:r||o?o:w}},hy=[Ti(0),Ti(1),Ti(2),Ti(3),Ti(4),Ti(5),Ti(6),Ti(7)][0],Mn=py("hidden"),Ek=pr("toPrimitive"),Ait=bc.set,Dk=bc.getterFor("Symbol"),Kr=Object.prototype,Wi=Ft.Symbol,Zi=Wi&&Wi.prototype,xk=Ft.TypeError,u2=Ft.QObject,vf=Jp("JSON","stringify"),fL=o8.f,Gi=gs.f,dL=cL.f,Oit=e8.f,pL=_e([].push),ui=hs("symbols"),nh=hs("op-symbols"),s2=hs("string-to-symbol-registry"),l2=hs("symbol-to-string-registry"),kit=hs("wks"),c2=!u2||!u2.prototype||!u2.prototype.findChild,h6=Wn&&lr(function(){return ns(Gi({},"a",{get:function(){return Gi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=fL(Kr,e);r&&delete Kr[e],Gi(t,e,n),r&&t!==Kr&&Gi(Kr,e,r)}:Gi,f2=function(t,e){var n=ui[t]=ns(Zi);return Ait(n,{type:"Symbol",tag:t,description:e}),Wn||(n.description=e),n},Pv=function(t,e,n){t===Kr&&Pv(nh,e,n),es(t);var r=mc(e);return es(n),Kt(ui,r)?(n.enumerable?(Kt(t,Mn)&&t[Mn][r]&&(t[Mn][r]=!1),n=ns(n,{enumerable:ts(0,!1)})):(Kt(t,Mn)||Gi(t,Mn,ts(1,{})),t[Mn][r]=!0),h6(t,r,n)):Gi(t,r,n)},Sk=function(t,e){es(t);var n=No(e),r=s8(n).concat(g6(n));return hy(r,function(o){Wn&&!qr(hL,n,o)||Pv(t,o,n[o])}),t},hL=function(t){var e=mc(t),n=qr(Oit,this,e);return!(this===Kr&&Kt(ui,e)&&!Kt(nh,e))&&(!(n||!Kt(this,e)||!Kt(ui,e)||Kt(this,Mn)&&this[Mn][e])||n)},Ck=function(t,e){var n=No(t),r=mc(e);if(n!==Kr||!Kt(ui,r)||Kt(nh,r)){var o=fL(n,r);return!o||!Kt(ui,r)||Kt(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},Ak=function(t){var e=dL(No(t)),n=[];return hy(e,function(r){Kt(ui,r)||Kt(eh,r)||pL(n,r)}),n},g6=function(t){var e=t===Kr,n=dL(e?nh:No(t)),r=[];return hy(n,function(o){!Kt(ui,o)||e&&!Kt(Kr,o)||pL(r,ui[o])}),r};if(ho||(Zi=(Wi=function(){if(YI(Zi,this))throw xk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?kv(arguments[0]):void 0,e=Av(t),n=function(r){this===Kr&&qr(n,nh,r),Kt(this,Mn)&&Kt(this[Mn],e)&&(this[Mn][e]=!1),h6(this,e,ts(1,r))};return Wn&&c2&&h6(Kr,e,{configurable:!0,set:n}),f2(e,t)}).prototype,Kl(Zi,"toString",function(){return Dk(this).tag}),Kl(Wi,"withoutSetter",function(t){return f2(Av(t),t)}),e8.f=hL,gs.f=Pv,o8.f=Ck,lL.f=cL.f=Ak,a2.f=g6,l8.f=function(t){return f2(pr(t),t)},Wn&&Gi(Zi,"description",{configurable:!0,get:function(){return Dk(this).description}})),Hi({global:!0,wrap:!0,forced:!ho,sham:!ho},{Symbol:Wi}),hy(s8(kit),function(t){Ne(t)}),Hi({target:"Symbol",stat:!0,forced:!ho},{for:function(t){var e=kv(t);if(Kt(s2,e))return s2[e];var n=Wi(e);return s2[e]=n,l2[n]=e,n},keyFor:function(t){if(!ml(t))throw xk(t+" is not a symbol");if(Kt(l2,t))return l2[t]},useSetter:function(){c2=!0},useSimple:function(){c2=!1}}),Hi({target:"Object",stat:!0,forced:!ho,sham:!Wn},{create:function(t,e){return e===void 0?ns(t):Sk(ns(t),e)},defineProperty:Pv,defineProperties:Sk,getOwnPropertyDescriptor:Ck}),Hi({target:"Object",stat:!0,forced:!ho},{getOwnPropertyNames:Ak,getOwnPropertySymbols:g6}),Hi({target:"Object",stat:!0,forced:lr(function(){a2.f(1)})},{getOwnPropertySymbols:function(t){return a2.f(Qp(t))}}),vf){var Bit=!ho||lr(function(){var t=Wi();return vf([t])!="[null]"||vf({a:t})!="{}"||vf(Object(t))!="{}"});Hi({target:"JSON",stat:!0,forced:Bit},{stringify:function(t,e,n){var r=mit(arguments),o=e;if((Sr(e)||t!==void 0)&&!ml(t))return Ov(e)||(e=function(i,a){if(gn(o)&&(a=qr(o,this,i,a)),!ml(a))return a}),r[1]=e,GI(vf,null,r)}})}if(!Zi[Ek]){var Fit=Zi.valueOf;Kl(Zi,Ek,function(t){return qr(Fit,this)})}_v(Wi,"Symbol"),eh[Mn]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),_v(Ft.JSON,"JSON",!0);var Ji,Ok,kk,Tit=br.Symbol,ju={},gL=Function.prototype,_it=Wn&&Object.getOwnPropertyDescriptor,d2=Kt(gL,"name"),Pit={EXISTS:d2,PROPER:d2&&(function(){}).name==="something",CONFIGURABLE:d2&&(!Wn||Wn&&_it(gL,"name").configurable)},jit=!lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Bk=py("IE_PROTO"),v6=Ft.Object,Nit=v6.prototype,y6=jit?v6.getPrototypeOf:function(t){var e=Qp(t);if(Kt(e,Bk))return e[Bk];var n=e.constructor;return gn(n)&&e instanceof n?n.prototype:e instanceof v6?Nit:null},m6=pr("iterator"),vL=!1;[].keys&&("next"in(kk=[].keys())?(Ok=y6(y6(kk)))!==Object.prototype&&(Ji=Ok):vL=!0);var Iit=Ji==null||lr(function(){var t={};return Ji[m6].call(t)!==t});Ji=Iit?{}:ns(Ji),gn(Ji[m6])||Kl(Ji,m6,function(){return this});var yL={IteratorPrototype:Ji,BUGGY_SAFARI_ITERATORS:vL},Lit=yL.IteratorPrototype,Rit=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Mit=Pit.PROPER,s0=yL.BUGGY_SAFARI_ITERATORS,p2=pr("iterator"),zit=function(){return this},mL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=ns(Lit,{next:ts(1,b)}),_v(m,D,!1,!0),ju[D]=Rit})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!s0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[p2]||d["@@iterator"]||o&&d[o],g=!s0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=y6(v.call(new t)))!==Object.prototype&&u.next&&(_v(u,f,!0,!0),ju[f]=zit),Mit&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return qr(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(s0||p||!(l in d))&&Kl(d,l,s[l]);else Hi({target:e,proto:!0,forced:s0||p},s);return a&&d[p2]!==g&&Kl(d,p2,g,{name:o}),ju[e]=g,s},$it=bc.set,Hit=bc.getterFor("Array Iterator");mL(Array,"Array",function(t,e){$it(this,{type:"Array Iterator",target:No(t),index:0,kind:e})},function(){var t=Hit(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ju.Arguments=ju.Array;var Fk=pr("toStringTag");for(var h2 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 Tk=Ft[h2],g2=Tk&&Tk.prototype;g2&&dy(g2)!==Fk&&vo(g2,Fk,h2),ju[h2]=ju.Array}var Vit=Tit;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var l0=Vit,Uit=_e("".charAt),_k=_e("".charCodeAt),Wit=_e("".slice),Git=function(t){return function(e,n){var r,o,i=kv(n8(e)),a=i8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=_k(i,a))<55296||r>56319||a+1===u||(o=_k(i,a+1))<56320||o>57343?t?Uit(i,a):r:t?Wit(i,a,a+2):o-56320+(r-55296<<10)+65536}},qit=Git(!0),Kit=bc.set,Yit=bc.getterFor("String Iterator");mL(String,"String",function(t){Kit(this,{type:"String Iterator",string:kv(t),index:0})},function(){var t,e=Yit(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=qit(n,r),e.index+=t.length,{value:t,done:!1})});var Xit=l8.f("iterator"),Zit=ry(function(t){function e(n){return typeof l0=="function"&&typeof Xit=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof l0=="function"&&r.constructor===l0&&r!==l0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),bL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Zit),Jit=ay.EXISTS,Qit=hc.f,wL=Function.prototype,tat=yt(wL.toString),EL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,eat=yt(EL.exec);eo&&!Jit&&Qit(wL,"name",{configurable:!0,get:function(){try{return eat(EL,tat(this))[1]}catch{return""}}});var DL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),nat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=Bnt,n.mark="fontSize",n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(bL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(DL),rat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=Fnt,n.mark="fontFamily",n.selectPanelWidth=150,n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(bL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(DL),oat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&Qu(i,{fontSize:r}),o&&Qu(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((XD(e)||yc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),vc(n)):e},preParseHtml:[dot],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Jr(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Jr(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new nat},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 rat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},iat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=Jr(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},xL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Yt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Yt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),aat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=Tnt,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ct.isElement(o)}})},e}(xL),uat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=_nt,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}(xL),sat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.indent,r=e;return n&&Qu(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),vc(r)},preParseHtml:[iat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=Jr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new uat}},{key:"delIndent",factory:function(){return new aat}}]},gy=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),lat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=Pnt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(gy),cat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=jnt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(gy),fat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=Nnt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(gy),dat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=Int,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(gy),pat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign,r=e;return n&&Qu(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=Jr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new lat}},{key:"justifyRight",factory:function(){return new cat}},{key:"justifyCenter",factory:function(){return new fat}},{key:"justifyJustify",factory:function(){return new dat}}]},hat=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ct.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),gat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight,r=e;return n&&Qu(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Jr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new hat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},vat=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),yat=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),mat={menus:[{key:"redo",factory:function(){return new vat}},{key:"undo",factory:function(){return new yat}}]},bat={type:"divider",renderElem:function(t,e,n){return Ml("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Ml("hr")])}},wat=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Eat={renderElems:[bat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new wat}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Yt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Dat=sy.map;tn({target:"Array",proto:!0,forced:!WD("map")},{map:function(t){return Dat(this,t,arguments.length>1?arguments[1]:void 0)}});var xat=yt([].join),Sat=oy!=Object,Cat=OI("join",",");tn({target:"Array",proto:!0,forced:Sat||!Cat},{join:function(t){return xat(pc(this),t===void 0?",":t)}});var Aat=function(){function t(){this.title=tt("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 t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=AI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Oat={key:"codeBlock",factory:function(){return new Aat}};tn({target:"String",proto:!0,forced:td("anchor")},{anchor:function(t){return Qf(this,"a","name",t)}}),KD("match",function(t,e,n){return[function(r){var o=jr(this),i=r==null?void 0:iy(r,t);return i?Te(i,r,o):new RegExp(r)[t](Ee(o))},function(r){var o=rr(this),i=Ee(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return np(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=np(o,i))!==null;){var f=Ee(s[0]);l[c]=f,f===""&&(o.lastIndex=YD(i,Kp(o.lastIndex),u)),c++}return c===0?null:l}]});var kat={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},Bat={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},Fat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Tat={menus:[Oat],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=Q.string(l),d=f.anchor.offset,y=p.slice(0,d).split(`
`),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
`+s)}}o.insertText(`
`)}else e()},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[kat,Bat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(yc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},Fat]},_at=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Pat={menus:[{key:"fullScreen",factory:function(){return new _at}}]},jat=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Nat=[qnt,Crt,oat,sat,pat,gat,Yrt,Eat,cot,Irt,Tat,sot,wrt,vnt,Qrt,mat,Pat,{menus:[{key:"enter",factory:function(){return new jat}}]}];qn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Pk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c8(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,ag,c0=function(t){return t&&t.Math==Math&&t},wt=c0(typeof globalThis=="object"&&globalThis)||c0(typeof window=="object"&&window)||c0(typeof self=="object"&&self)||c0(typeof Pk=="object"&&Pk)||function(){return this}()||Function("return this")(),SL=Function.prototype,b6=SL.bind,w6=SL.call,Iat=b6&&b6.bind(w6),jt=b6?function(t){return t&&Iat(w6,t)}:function(t){return t&&function(){return w6.apply(t,arguments)}},Oe=function(t){try{return!!t()}catch{return!0}},Lat=jt({}.toString),Rat=jt("".slice),ni=function(t){return Rat(Lat(t),8,-1)},v2=wt.Object,Mat=jt("".split),CL=Oe(function(){return!v2("z").propertyIsEnumerable(0)})?function(t){return ni(t)=="String"?Mat(t,""):v2(t)}:v2,zat=wt.TypeError,vy=function(t){if(t==null)throw zat("Can't call method on "+t);return t},wc=function(t){return CL(vy(t))},$at=Object.defineProperty,f8=function(t,e){try{$at(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},la=wt["__core-js_shared__"]||f8("__core-js_shared__",{}),d8=c8(function(t){(t.exports=function(e,n){return la[e]||(la[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hat=wt.Object,rh=function(t){return Hat(vy(t))},Vat=jt({}.hasOwnProperty),nn=Object.hasOwn||function(t,e){return Vat(rh(t),e)},Uat=0,Wat=Math.random(),Gat=jt(1 .toString),p8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Gat(++Uat+Wat,36)},ke=function(t){return typeof t=="function"},qat=function(t){return ke(t)?t:void 0},oh=function(t,e){return arguments.length<2?qat(wt[t]):wt[t]&&wt[t][e]},y2=oh("navigator","userAgent")||"",jk=wt.process,Nk=wt.Deno,Ik=jk&&jk.versions||Nk&&Nk.version,Lk=Ik&&Ik.v8;Lk&&(ag=(_i=Lk.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!ag&&y2&&(!(_i=y2.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=y2.match(/Chrome\/(\d+)/))&&(ag=+_i[1]);var f0,E6=ag,D6=!!Object.getOwnPropertySymbols&&!Oe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&E6&&E6<41}),h8=D6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yf=d8("wks"),Nu=wt.Symbol,Rk=Nu&&Nu.for,Kat=h8?Nu:Nu&&Nu.withoutSetter||p8,yn=function(t){if(!nn(yf,t)||!D6&&typeof yf[t]!="string"){var e="Symbol."+t;D6&&nn(Nu,t)?yf[t]=Nu[t]:yf[t]=h8&&Rk?Rk(e):Kat(e)}return yf[t]},Ae=function(t){return typeof t=="object"?t!==null:ke(t)},Yat=wt.String,Xat=wt.TypeError,Kn=function(t){if(Ae(t))return t;throw Xat(Yat(t)+" is not an object")},Aa=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),x6=wt.document,Zat=Ae(x6)&&Ae(x6.createElement),g8=function(t){return Zat?x6.createElement(t):{}},AL=!Aa&&!Oe(function(){return Object.defineProperty(g8("div"),"a",{get:function(){return 7}}).a!=7}),mf=Function.prototype.call,en=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},jv=jt({}.isPrototypeOf),Jat=wt.Object,m2=h8?function(t){return typeof t=="symbol"}:function(t){var e=oh("Symbol");return ke(e)&&jv(e.prototype,Jat(t))},Qat=wt.String,S6=function(t){try{return Qat(t)}catch{return"Object"}},tut=wt.TypeError,v8=function(t){if(ke(t))return t;throw tut(S6(t)+" is not a function")},rp=function(t,e){var n=t[e];return n==null?void 0:v8(n)},eut=wt.TypeError,nut=wt.TypeError,rut=yn("toPrimitive"),y8=function(t){var e=function(n,r){if(!Ae(n)||m2(n))return n;var o,i=rp(n,rut);if(i){if(r===void 0&&(r="default"),o=en(i,n,r),!Ae(o)||m2(o))return o;throw nut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ke(s=a.toString)&&!Ae(l=en(s,a))||ke(s=a.valueOf)&&!Ae(l=en(s,a))||u!=="string"&&ke(s=a.toString)&&!Ae(l=en(s,a)))return l;throw eut("Can't convert object to primitive value")}(n,r)}(t,"string");return m2(e)?e:e+""},out=wt.TypeError,Mk=Object.defineProperty,vs={f:Aa?Mk:function(t,e,n){if(Kn(t),e=y8(e),Kn(n),AL)try{return Mk(t,e,n)}catch{}if("get"in n||"set"in n)throw out("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},iut=Math.ceil,aut=Math.floor,ih=function(t){var e=+t;return e!=e||e===0?0:(e>0?aut:iut)(e)},uut=Math.max,sut=Math.min,C6=function(t,e){var n=ih(t);return n<0?uut(n+e,0):sut(n,e)},lut=Math.min,OL=function(t){return t>0?lut(ih(t),9007199254740991):0},Ec=function(t){return OL(t.length)},zk=function(t){return function(e,n,r){var o,i=wc(e),a=Ec(i),u=C6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},kL={includes:zk(!0),indexOf:zk(!1)},yy={},cut=kL.indexOf,$k=jt([].push),BL=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!nn(yy,n)&&nn(r,n)&&$k(i,n);for(;e.length>o;)nn(r,n=e[o++])&&(~cut(i,n)||$k(i,n));return i},Nv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fut=Object.keys||function(t){return BL(t,Nv)},dut=Aa?Object.defineProperties:function(t,e){Kn(t);for(var n,r=wc(e),o=fut(e),i=o.length,a=0;i>a;)vs.f(t,n=o[a++],r[n]);return t},put=oh("document","documentElement"),Hk=d8("keys"),m8=function(t){return Hk[t]||(Hk[t]=p8(t))},FL=m8("IE_PROTO"),b2=function(){},TL=function(t){return"<script>"+t+"<\/script>"},Vk=function(t){t.write(TL("")),t.close();var e=t.parentWindow.Object;return t=null,e},ug=function(){try{f0=new ActiveXObject("htmlfile")}catch{}var t,e;ug=typeof document<"u"?document.domain&&f0?Vk(f0):((e=g8("iframe")).style.display="none",put.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(TL("document.F=Object")),t.close(),t.F):Vk(f0);for(var n=Nv.length;n--;)delete ug.prototype[Nv[n]];return ug()};yy[FL]=!0;var b8=Object.create||function(t,e){var n;return t!==null?(b2.prototype=Kn(t),n=new b2,b2.prototype=null,n[FL]=t):n=ug(),e===void 0?n:dut(n,e)},A6=yn("unscopables"),O6=Array.prototype;O6[A6]==null&&vs.f(O6,A6,{configurable:!0,value:b8(null)});var vd=function(t){O6[A6][t]=!0},Yl={},hut=jt(Function.toString);ke(la.inspectSource)||(la.inspectSource=function(t){return hut(t)});var Iv,yd,Lv,w8=la.inspectSource,Uk=wt.WeakMap,_L=ke(Uk)&&/native code/.test(w8(Uk)),my=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ca=Aa?function(t,e,n){return vs.f(t,e,my(1,n))}:function(t,e,n){return t[e]=n,t},k6=wt.TypeError,gut=wt.WeakMap;if(_L||la.state){var Qa=la.state||(la.state=new gut),vut=jt(Qa.get),Wk=jt(Qa.has),yut=jt(Qa.set);Iv=function(t,e){if(Wk(Qa,t))throw new k6("Object already initialized");return e.facade=t,yut(Qa,t,e),e},yd=function(t){return vut(Qa,t)||{}},Lv=function(t){return Wk(Qa,t)}}else{var zs=m8("state");yy[zs]=!0,Iv=function(t,e){if(nn(t,zs))throw new k6("Object already initialized");return e.facade=t,ca(t,zs,e),e},yd=function(t){return nn(t,zs)?t[zs]:{}},Lv=function(t){return nn(t,zs)}}var Iu,Gk,qk,Bo={set:Iv,get:yd,has:Lv,enforce:function(t){return Lv(t)?yd(t):Iv(t,{})},getterFor:function(t){return function(e){var n;if(!Ae(e)||(n=yd(e)).type!==t)throw k6("Incompatible receiver, "+t+" required");return n}}},Kk={}.propertyIsEnumerable,Yk=Object.getOwnPropertyDescriptor,mut={f:Yk&&!Kk.call({1:2},1)?function(t){var e=Yk(this,t);return!!e&&e.enumerable}:Kk},Xk=Object.getOwnPropertyDescriptor,PL={f:Aa?Xk:function(t,e){if(t=wc(t),e=y8(e),AL)try{return Xk(t,e)}catch{}if(nn(t,e))return my(!en(mut.f,t,e),t[e])}},jL=Function.prototype,but=Aa&&Object.getOwnPropertyDescriptor,w2=nn(jL,"name"),E8={EXISTS:w2,PROPER:w2&&(function(){}).name==="something",CONFIGURABLE:w2&&(!Aa||Aa&&but(jL,"name").configurable)},xo=c8(function(t){var e=E8.CONFIGURABLE,n=Bo.get,r=Bo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nn(u,"name")||e&&u.name!==d)&&ca(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==wt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ca(i,a,u)):f?i[a]=u:f8(a,u)})(Function.prototype,"toString",function(){return ke(this)&&n(this).source||w8(this)})}),wut=Nv.concat("length","prototype"),Rv={f:Object.getOwnPropertyNames||function(t){return BL(t,wut)}},Eut={f:Object.getOwnPropertySymbols},Dut=jt([].concat),xut=oh("Reflect","ownKeys")||function(t){var e=Rv.f(Kn(t)),n=Eut.f;return n?Dut(e,n(t)):e},Sut=function(t,e){for(var n=xut(e),r=vs.f,o=PL.f,i=0;i<n.length;i++){var a=n[i];nn(t,a)||r(t,a,o(e,a))}},Cut=/#|\.prototype\./,ah=function(t,e){var n=Out[Aut(t)];return n==But||n!=kut&&(ke(e)?Oe(e):!!e)},Aut=ah.normalize=function(t){return String(t).replace(Cut,".").toLowerCase()},Out=ah.data={},kut=ah.NATIVE="N",But=ah.POLYFILL="P",B6=ah,Fut=PL.f,Oa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?wt:l?wt[u]||f8(u,{}):(wt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Fut(n,r))&&a.value:n[r],!B6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Sut(i,o)}(t.sham||o&&o.sham)&&ca(i,"sham",!0),xo(n,r,i,t)}},Tut=!Oe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Zk=m8("IE_PROTO"),F6=wt.Object,_ut=F6.prototype,Mv=Tut?F6.getPrototypeOf:function(t){var e=rh(t);if(nn(e,Zk))return e[Zk];var n=e.constructor;return ke(n)&&e instanceof n?n.prototype:e instanceof F6?_ut:null},T6=yn("iterator"),NL=!1;[].keys&&("next"in(qk=[].keys())?(Gk=Mv(Mv(qk)))!==Object.prototype&&(Iu=Gk):NL=!0);var Put=Iu==null||Oe(function(){var t={};return Iu[T6].call(t)!==t});Put&&(Iu={}),ke(Iu[T6])||xo(Iu,T6,function(){return this});var D8={IteratorPrototype:Iu,BUGGY_SAFARI_ITERATORS:NL},jut=vs.f,Jk=yn("toStringTag"),_6=function(t,e,n){t&&!nn(t=n?t:t.prototype,Jk)&&jut(t,Jk,{configurable:!0,value:e})},Nut=D8.IteratorPrototype,Iut=function(){return this},Lut=wt.String,Rut=wt.TypeError,zv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Kn(r),function(i){if(typeof i=="object"||ke(i))return i;throw Rut("Can't set "+Lut(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Mut=E8.PROPER,zut=E8.CONFIGURABLE,Qk=D8.IteratorPrototype,d0=D8.BUGGY_SAFARI_ITERATORS,bf=yn("iterator"),$ut=function(){return this},IL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=b8(Nut,{next:my(1,b)}),_6(m,D,!1),Yl[D]=Iut})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!d0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[bf]||d["@@iterator"]||o&&d[o],g=!d0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Mv(v.call(new t)))!==Object.prototype&&u.next&&(Mv(u)!==Qk&&(zv?zv(u,Qk):ke(u[bf])||xo(u,bf,$ut)),_6(u,f,!0)),Mut&&o=="values"&&y&&y.name!=="values"&&(zut?ca(d,"name","values"):(p=!0,g=function(){return en(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(d0||p||!(l in d))&&xo(d,l,s[l]);else Oa({target:e,proto:!0,forced:d0||p},s);return d[bf]!==g&&xo(d,bf,g,{name:o}),Yl[e]=g,s},Hut=Bo.set,Vut=Bo.getterFor("Array Iterator"),ed=IL(Array,"Array",function(t,e){Hut(this,{type:"Array Iterator",target:wc(t),index:0,kind:e})},function(){var t=Vut(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Yl.Arguments=Yl.Array,vd("keys"),vd("values"),vd("entries");var LL={};LL[yn("toStringTag")]="z";var x8=String(LL)==="[object z]",Uut=yn("toStringTag"),Wut=wt.Object,Gut=ni(function(){return arguments}())=="Arguments",by=x8?ni:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Wut(t),Uut))=="string"?n:Gut?ni(e):(r=ni(e))=="Object"&&ke(e.callee)?"Arguments":r},qut=x8?{}.toString:function(){return"[object "+by(this)+"]"};x8||xo(Object.prototype,"toString",qut,{unsafe:!0});var Kut=wt.String,Ko=function(t){if(by(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Kut(t)},Yut=jt("".charAt),tB=jt("".charCodeAt),Xut=jt("".slice),eB=function(t){return function(e,n){var r,o,i=Ko(vy(e)),a=ih(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=tB(i,a))<55296||r>56319||a+1===u||(o=tB(i,a+1))<56320||o>57343?t?Yut(i,a):r:t?Xut(i,a,a+2):o-56320+(r-55296<<10)+65536}},RL={codeAt:eB(!1),charAt:eB(!0)},Zut=RL.charAt,Jut=Bo.set,Qut=Bo.getterFor("String Iterator");IL(String,"String",function(t){Jut(this,{type:"String Iterator",string:Ko(t),index:0})},function(){var t,e=Qut(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Zut(n,r),e.index+=t.length,{value:t,done:!1})});var P6=function(t,e,n){for(var r in e)xo(t,r,e[r],n);return t},tst=wt.Array,est=Math.max,nB=Rv.f,rB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nst={f:function(t){return rB&&ni(t)=="Window"?function(e){try{return nB(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Ec(r),f=C6(void 0,c),p=C6(c,c),d=tst(est(p-f,0)),y=0;f<p;f++,y++)a=d,u=y,s=r[f],(l=y8(u))in a?vs.f(a,l,my(0,s)):a[l]=s;return d.length=y,d}(rB)}}(t):nB(wc(t))}},oB=Oe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),p0=Object.isExtensible,yu=Oe(function(){p0(1)})||oB?function(t){return!!Ae(t)&&(!oB||ni(t)!="ArrayBuffer")&&(!p0||p0(t))}:p0,rst=!Oe(function(){return Object.isExtensible(Object.preventExtensions({}))}),S8=c8(function(t){var e=vs.f,n=!1,r=p8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Rv.f,s=jt([].splice),l={};l[r]=1,u(l).length&&(Rv.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Oa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nst.f}))},fastKey:function(u,s){if(!Ae(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!nn(u,r)){if(!yu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!nn(u,r)){if(!yu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return rst&&n&&yu(u)&&!nn(u,r)&&i(u),u}};yy[r]=!0}),iB=jt(jt.bind),C8=function(t,e){return v8(t),e===void 0?t:iB?iB(t,e):function(){return t.apply(e,arguments)}},ost=yn("iterator"),ist=Array.prototype,ast=yn("iterator"),aB=function(t){if(t!=null)return rp(t,ast)||rp(t,"@@iterator")||Yl[by(t)]},ust=wt.TypeError,uB=function(t,e,n){var r,o;Kn(t);try{if(!(r=rp(t,"return"))){if(e==="throw")throw n;return n}r=en(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Kn(r),n},sst=wt.TypeError,sg=function(t,e){this.stopped=t,this.result=e},sB=sg.prototype,ML=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=C8(e,f),v=function(h){return r&&uB(r,"normal",h),new sg(!0,h)},m=function(h){return p?(Kn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=aB(t)))throw sst(S6(t)+" is not iterable");if((c=o)!==void 0&&(Yl.Array===c||ist[ost]===c)){for(i=0,a=Ec(t);a>i;i++)if((u=m(t[i]))&&jv(sB,u))return u;return new sg(!1)}r=function(h,b){var w=arguments.length<2?aB(h):b;if(v8(w))return Kn(en(w,h));throw ust(S6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=en(s,r)).done;){try{u=m(l.value)}catch(h){uB(r,"throw",h)}if(typeof u=="object"&&u&&jv(sB,u))return u}return new sg(!1)},lst=wt.TypeError,zL=function(t,e){if(jv(e,t))return t;throw lst("Incorrect invocation")},$L=yn("iterator"),HL=!1;try{var cst=0,lB={next:function(){return{done:!!cst++}},return:function(){HL=!0}};lB[$L]=function(){return this},Array.from(lB,function(){throw 2})}catch{}var j6=Array.isArray||function(t){return ni(t)=="Array"},VL=function(){},fst=[],UL=oh("Reflect","construct"),A8=/^\s*(?:class|function)\b/,dst=jt(A8.exec),pst=!A8.exec(VL),wf=function(t){if(!ke(t))return!1;try{return UL(VL,fst,t),!0}catch{return!1}},hst=!UL||Oe(function(){var t;return wf(wf.call)||!wf(Object)||!wf(function(){t=!0})||t})?function(t){if(!ke(t))return!1;switch(by(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pst||!!dst(A8,w8(t))}:wf,gst=yn("species"),cB=wt.Array,WL=function(t,e){return new(function(n){var r;return j6(n)&&(r=n.constructor,(hst(r)&&(r===cB||j6(r.prototype))||Ae(r)&&(r=r[gst])===null)&&(r=void 0)),r===void 0?cB:r}(t))(e===0?0:e)},fB=jt([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=rh(s),g=CL(y),v=C8(l,c),m=Ec(g),h=0,b=f||WL,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:fB(w,p)}else switch(t){case 4:return!1;case 7:fB(w,p)}return i?-1:r||o?o:w}},O8={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},h0=S8.getWeakData,vst=Bo.set,yst=Bo.getterFor,mst=O8.find,bst=O8.findIndex,wst=jt([].splice),Est=0,g0=function(t){return t.frozen||(t.frozen=new GL)},GL=function(){this.entries=[]},E2=function(t,e){return mst(t.entries,function(n){return n[0]===e})};GL.prototype={get:function(t){var e=E2(this,t);if(e)return e[1]},has:function(t){return!!E2(this,t)},set:function(t,e){var n=E2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=bst(this.entries,function(n){return n[0]===t});return~e&&wst(this.entries,e,1),!!~e}};var Ef,qL={getConstructor:function(t,e,n,r){var o=t(function(s,l){zL(s,i),vst(s,{type:e,id:Est++,frozen:void 0}),l!=null&&ML(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=yst(e),u=function(s,l,c){var f=a(s),p=h0(Kn(l),!0);return p===!0?g0(f).set(l,c):p[f.id]=c,s};return P6(i,{delete:function(s){var l=a(this);if(!Ae(s))return!1;var c=h0(s);return c===!0?g0(l).delete(s):c&&nn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ae(s))return!1;var c=h0(s);return c===!0?g0(l).has(s):c&&nn(c,l.id)}}),P6(i,n?{get:function(s){var l=a(this);if(Ae(s)){var c=h0(s);return c===!0?g0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},v0=Bo.enforce,Dst=!wt.ActiveXObject&&"ActiveXObject"in wt,KL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xst=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=jt(u[v]);xo(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Ae(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(B6(t,!ke(a)||!(o||u.forEach&&!Oe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),S8.enable();else if(B6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Oe(function(){f.has(1)}),y=function(v,m){if(!HL)return!1;var h=!1;try{var b={};b[$L]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),g=!o&&Oe(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){zL(v,u);var h=function(b,w,D){var S,x;return zv&&ke(S=w.constructor)&&S!==D&&Ae(x=S.prototype)&&x!==D.prototype&&zv(b,x),b}(new a,v,s);return m!=null&&ML(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Oa({global:!0,forced:s!=a},l),_6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",KL,qL);if(_L&&Dst){Ef=qL.getConstructor(KL,"WeakMap",!0),S8.enable();var Df=xst.prototype,dB=jt(Df.delete),y0=jt(Df.has),pB=jt(Df.get),hB=jt(Df.set);P6(Df,{delete:function(t){if(Ae(t)&&!yu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),dB(this,t)||e.frozen.delete(t)}return dB(this,t)},has:function(t){if(Ae(t)&&!yu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),y0(this,t)||e.frozen.has(t)}return y0(this,t)},get:function(t){if(Ae(t)&&!yu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),y0(this,t)?pB(this,t):e.frozen.get(t)}return pB(this,t)},set:function(t,e){if(Ae(t)&&!yu(t)){var n=v0(this);n.frozen||(n.frozen=new Ef),y0(this,t)?hB(this,t,e):n.frozen.set(t,e)}else hB(this,t,e);return this}})}var YL={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},D2=g8("span").classList,gB=D2&&D2.constructor&&D2.constructor.prototype,Sst=gB===Object.prototype?void 0:gB,x2=yn("iterator"),vB=yn("toStringTag"),S2=ed.values,XL=function(t,e){if(t){if(t[x2]!==S2)try{ca(t,x2,S2)}catch{t[x2]=S2}if(t[vB]||ca(t,vB,e),YL[e]){for(var n in ed)if(t[n]!==ed[n])try{ca(t,n,ed[n])}catch{t[n]=ed[n]}}}};for(var C2 in YL)XL(wt[C2]&&wt[C2].prototype,C2);XL(Sst,"DOMTokenList");var N6=new WeakMap,Cst={type:"list-item",renderElem:function(t,e,n){N6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=p,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var S=j.previous(D),x=E.node(f,S);if(x==null)break;var O=x[0],T=O.level,R=T===void 0?0:T,H=O.type,M=O.ordered;if(H!==y||R<v)break;if(R===v){if(M!==h)break;b++}w=O,D=S}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],y=d.length;if(y===0)return"";for(var g=0;g<y&&!p;g++){var v=d[g];ot.isText(v)&&(p=v)}return p==null?"":p.color||""}(t);return bt("div",{style:u},bt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),bt("span",null,e))}},I6=function(t,e){return I6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},I6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function ZL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}I6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function yB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function md(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function mB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Ast=kL.includes;Oa({target:"Array",proto:!0},{includes:function(t){return Ast(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("includes");var bB,A2,Ost=function(){var t=Kn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},k8=wt.RegExp,L6=Oe(function(){var t=k8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kst=L6||Oe(function(){return!k8("a","y").sticky}),Bst={BROKEN_CARET:L6||Oe(function(){var t=k8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kst,UNSUPPORTED_Y:L6},Fst=wt.RegExp,Tst=Oe(function(){var t=Fst(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),_st=wt.RegExp,Pst=Oe(function(){var t=_st("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),jst=Bo.get,Nst=d8("native-string-replace",String.prototype.replace),$v=RegExp.prototype.exec,R6=$v,Ist=jt("".charAt),Lst=jt("".indexOf),Rst=jt("".replace),O2=jt("".slice),k2=(A2=/b*/g,en($v,bB=/a/,"a"),en($v,A2,"a"),bB.lastIndex!==0||A2.lastIndex!==0),wB=Bst.BROKEN_CARET,B2=/()??/.exec("")[1]!==void 0;(k2||B2||wB||Tst||Pst)&&(R6=function(t){var e,n,r,o,i,a,u,s=this,l=jst(s),c=Ko(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(R6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=wB&&s.sticky,y=en(Ost,s),g=s.source,v=0,m=c;if(d&&(y=Rst(y,"y",""),Lst(y,"g")===-1&&(y+="g"),m=O2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ist(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),B2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),k2&&(r=s.lastIndex),o=en($v,d?n:s,m),d?o?(o.input=O2(o.input,v),o[0]=O2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:k2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),B2&&o&&o.length>1&&en(Nst,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=b8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Hv=R6;Oa({target:"RegExp",proto:!0,forced:/./.exec!==Hv},{exec:Hv});var JL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Mst='<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>',zst='<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>',$st=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=Mst,n}return ZL(e,t),e}(JL),Hst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=zst,n}return ZL(e,t),e}(JL),Vst={key:"bulletedList",factory:function(){return new $st}},Ust={key:"numberedList",factory:function(){return new Hst}},EB=[],Wst={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=N6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===0)return v+1;var h=j.previous(m),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,x=S!==void 0&&S,O=D.level,T=O===void 0?0:O;return T<v?v-T:T>v?0:T===v?x===y?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",EB.push(i);var s=function(l){var c=N6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=j.next(m),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,x=S!==void 0&&S,O=D.level,T=O===void 0?0:O;return T<v?v-T:T>v?0:T===v?x===y?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+EB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},Gst=yn("species"),qst=O8.filter,Kst=E6>=51||!Oe(function(){var t=[];return(t.constructor={})[Gst]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Oa({target:"Array",proto:!0,forced:!Kst},{filter:function(t){return qst(this,t,arguments.length>1?arguments[1]:void 0)}});var B8=Function.prototype,DB=B8.apply,Yst=B8.bind,xB=B8.call,Xst=typeof Reflect=="object"&&Reflect.apply||(Yst?xB.bind(DB):function(){return xB.apply(DB,arguments)}),SB=(yn("species"),RegExp.prototype),Zst=RL.charAt,Jst=function(t,e,n){return e+(n?Zst(t,e).length:1)},Qst=Math.floor,F2=jt("".charAt),tlt=jt("".replace),T2=jt("".slice),elt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nlt=/\$([$&'`]|\d{1,2})/g,rlt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=nlt;return o!==void 0&&(o=rh(o),s=elt),tlt(i,s,function(l,c){var f;switch(F2(c,0)){case"$":return"$";case"&":return t;case"`":return T2(e,0,n);case"'":return T2(e,a);case"<":f=o[T2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Qst(p/10);return d===0?l:d<=u?r[d-1]===void 0?F2(c,1):r[d-1]+F2(c,1):l}f=r[p-1]}return f===void 0?"":f})},olt=wt.TypeError,ilt=function(t,e){var n=t.exec;if(ke(n)){var r=en(n,t,e);return r!==null&&Kn(r),r}if(ni(t)==="RegExp")return en(Hv,t,e);throw olt("RegExp#exec called on incompatible receiver")},M6=yn("replace"),alt=Math.max,ult=Math.min,slt=jt([].concat),_2=jt([].push),CB=jt("".indexOf),AB=jt("".slice),llt="a".replace(/./,"$0")==="$0",OB=!!/./[M6]&&/./[M6]("a","$0")==="";(function(t,e,n,r){var o=yn(t),i=!Oe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Oe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=jt(/./[o]),s=function(l,c,f){var p=OB?"$":"$0";return[function(d,y){var g=vy(this),v=d==null?void 0:rp(d,M6);return v?en(v,d,g,y):en(c,Ko(g),d,y)},function(d,y){var g=Kn(this),v=Ko(d);if(typeof y=="string"&&CB(y,p)===-1&&CB(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=ke(y);h||(y=Ko(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=ilt(g,v);if(S===null||(_2(D,S),!b))break;Ko(S[0])===""&&(g.lastIndex=Jst(v,OL(g.lastIndex),w))}for(var x,O="",T=0,R=0;R<D.length;R++){for(var H=Ko((S=D[R])[0]),M=alt(ult(ih(S.index),v.length),0),K=[],U=1;U<S.length;U++)_2(K,(x=S[U])===void 0?x:String(x));var W=S.groups;if(h){var q=slt([H],K,M,v);W!==void 0&&_2(q,W);var nt=Ko(Xst(y,void 0,q))}else nt=rlt(H,v,M,K,W,y);M>=T&&(O+=AB(v,T,M)+nt,T=M+H.length)}return O+AB(v,T)}]}(0,""[t],function(l,c,f,p,d){var y=jt(l),g=c.exec;return g===Hv||g===SB.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});xo(String.prototype,t,s[0]),xo(SB,o,s[1])}})("replace",0,!!Oe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!llt||OB);var clt=wt.TypeError,QL=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&C8(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&j6(s))l=Ec(s),c=QL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw clt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},flt=QL;function P2(t){return t.length?t[0].tagName.toLowerCase():""}Oa({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=rh(this),n=Ec(e),r=WL(e,0);return r.length=flt(r,e,e,n,0,t===void 0?1:ih(t)),r}}),vd("flat"),Oa({global:!0},{globalThis:wt}),Tr&&(B.fn.append=Tr),Fr&&(B.fn.attr=Fr),jl&&(B.fn.parent=jl);var dlt={renderElems:[Cst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,y=!1;try{for(var g=yB(mB(o)),v=g.next();!v.done;v=g.next()){var m=md(v.value,1)[0];A.getNodeType(m)==="list-item"?d++:y=!0}}catch(x){i={error:x}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=yB(mB(o)),b=h.next();!b.done;b=h.next()){var w=md(b.value,2),D=(m=w[0],w[1]),S=m.level;p=S===void 0?0:S,N.setNodes(o,{level:p+1},{at:D})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=md(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Vst,Ust],elemsToHtml:[Wst],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!ot.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return P2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=P2(s);l==="ul"||l==="ol";)l=P2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},tR=is(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[p]=x[y]=x[g]=x[v]=x[h]=!1;var O=typeof se=="object"&&se&&se.Object===Object&&se,T=typeof self=="object"&&self&&self.Object===Object&&self,R=O||T||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch{}}(),q=W&&W.isTypedArray;function nt(_,I){for(var Z=-1,ht=_==null?0:_.length;++Z<ht;)if(I(_[Z],Z,_))return!0;return!1}function lt(_){var I=-1,Z=Array(_.size);return _.forEach(function(ht,ee){Z[++I]=[ee,ht]}),Z}function st(_){var I=-1,Z=Array(_.size);return _.forEach(function(ht){Z[++I]=ht}),Z}var at=Array.prototype,k=Function.prototype,C=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=C.hasOwnProperty,V=function(){var _=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),it=C.toString,gt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=K?R.Buffer:void 0,Dt=R.Symbol,G=R.Uint8Array,It=C.propertyIsEnumerable,At=at.splice,dt=Dt?Dt.toStringTag:void 0,Ot=Object.getOwnPropertySymbols,Be=vt?vt.isBuffer:void 0,$t=function(_,I){return function(Z){return _(I(Z))}}(Object.keys,Object),te=pi(R,"DataView"),ye=pi(R,"Map"),mn=pi(R,"Promise"),zt=pi(R,"Set"),In=pi(R,"WeakMap"),Ir=pi(Object,"create"),oo=Mo(te),ys=Mo(ye),$a=Mo(mn),Lr=Mo(zt),io=Mo(In),Io=Dt?Dt.prototype:void 0,bn=Io?Io.valueOf:void 0;function wn(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function En(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function Fn(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function rn(_){var I=-1,Z=_==null?0:_.length;for(this.__data__=new Fn;++I<Z;)this.add(_[I])}function hr(_){var I=this.__data__=new En(_);this.size=I.size}function xc(_,I){var Z=zo(_),ht=!Z&&wh(_),ee=!Z&&!ht&&ao(_),Pt=!Z&&!ht&&!ee&&so(_),F=Z||ht||ee||Pt,z=F?function(Mt,pe){for(var ne=-1,Wt=Array(Mt);++ne<Mt;)Wt[ne]=pe(ne);return Wt}(_.length,String):[],J=z.length;for(var ut in _)!I&&!Y.call(_,ut)||F&&(ut=="length"||ee&&(ut=="offset"||ut=="parent")||Pt&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||Sc(ut,J))||z.push(ut);return z}function di(_,I){for(var Z=_.length;Z--;)if(ws(_[Z][0],I))return Z;return-1}function Lo(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":dt&&dt in Object(_)?function(I){var Z=Y.call(I,dt),ht=I[dt];try{I[dt]=void 0;var ee=!0}catch{}var Pt=it.call(I);return ee&&(Z?I[dt]=ht:delete I[dt]),Pt}(_):function(I){return it.call(I)}(_)}function ms(_){return hi(_)&&Lo(_)==o}function Ha(_,I,Z,ht,ee){return _===I||(_==null||I==null||!hi(_)&&!hi(I)?_!=_&&I!=I:function(Pt,F,z,J,ut,Mt){var pe=zo(Pt),ne=zo(F),Wt=pe?i:Yn(Pt),Ze=ne?i:Yn(F),Dn=(Wt=Wt==o?p:Wt)==p,Va=(Ze=Ze==o?p:Ze)==p,$o=Wt==Ze;if($o&&ao(Pt)){if(!ao(F))return!1;pe=!0,Dn=!1}if($o&&!Dn)return Mt||(Mt=new hr),pe||so(Pt)?gr(Pt,F,z,J,ut,Mt):function(Lt,Gt,qt,Fe,Tn,Ln,zr){switch(qt){case w:if(Lt.byteLength!=Gt.byteLength||Lt.byteOffset!=Gt.byteOffset)return!1;Lt=Lt.buffer,Gt=Gt.buffer;case b:return!(Lt.byteLength!=Gt.byteLength||!Ln(new G(Lt),new G(Gt)));case a:case u:case f:return ws(+Lt,+Gt);case s:return Lt.name==Gt.name&&Lt.message==Gt.message;case y:case v:return Lt==Gt+"";case c:var vi=lt;case g:var Ac=1&Fe;if(vi||(vi=st),Lt.size!=Gt.size&&!Ac)return!1;var xh=zr.get(Lt);if(xh)return xh==Gt;Fe|=2,zr.set(Lt,Gt);var Es=gr(vi(Lt),vi(Gt),Fe,Tn,Ln,zr);return zr.delete(Lt),Es;case m:if(bn)return bn.call(Lt)==bn.call(Gt)}return!1}(Pt,F,Wt,z,J,ut,Mt);if(!(1&z)){var gi=Dn&&Y.call(Pt,"__wrapped__"),mt=Va&&Y.call(F,"__wrapped__");if(gi||mt){var Xt=gi?Pt.value():Pt,Pe=mt?F.value():F;return Mt||(Mt=new hr),ut(Xt,Pe,z,J,Mt)}}return $o?(Mt||(Mt=new hr),function(Lt,Gt,qt,Fe,Tn,Ln){var zr=1&qt,vi=Ro(Lt),Ac=vi.length,xh=Ro(Gt).length;if(Ac!=xh&&!zr)return!1;for(var Es=Ac;Es--;){var Ua=vi[Es];if(!(zr?Ua in Gt:Y.call(Gt,Ua)))return!1}var lS=Ln.get(Lt);if(lS&&Ln.get(Gt))return lS==Gt;var Sh=!0;Ln.set(Lt,Gt),Ln.set(Gt,Lt);for(var My=zr;++Es<Ac;){var Ch=Lt[Ua=vi[Es]],Ah=Gt[Ua];if(Fe)var cS=zr?Fe(Ah,Ch,Ua,Gt,Lt,Ln):Fe(Ch,Ah,Ua,Lt,Gt,Ln);if(!(cS===void 0?Ch===Ah||Tn(Ch,Ah,qt,Fe,Ln):cS)){Sh=!1;break}My||(My=Ua=="constructor")}if(Sh&&!My){var Oh=Lt.constructor,kh=Gt.constructor;Oh==kh||!("constructor"in Lt)||!("constructor"in Gt)||typeof Oh=="function"&&Oh instanceof Oh&&typeof kh=="function"&&kh instanceof kh||(Sh=!1)}return Ln.delete(Lt),Ln.delete(Gt),Sh}(Pt,F,z,J,ut,Mt)):!1}(_,I,Z,ht,Ha,ee))}function bs(_){return!(!Eh(_)||function(I){return!!V&&V in I}(_))&&(Cc(_)?gt:D).test(Mo(_))}function Rr(_){if(Z=(I=_)&&I.constructor,ht=typeof Z=="function"&&Z.prototype||C,I!==ht)return $t(_);var I,Z,ht,ee=[];for(var Pt in Object(_))Y.call(_,Pt)&&Pt!="constructor"&&ee.push(Pt);return ee}function gr(_,I,Z,ht,ee,Pt){var F=1&Z,z=_.length,J=I.length;if(z!=J&&!(F&&J>z))return!1;var ut=Pt.get(_);if(ut&&Pt.get(I))return ut==I;var Mt=-1,pe=!0,ne=2&Z?new rn:void 0;for(Pt.set(_,I),Pt.set(I,_);++Mt<z;){var Wt=_[Mt],Ze=I[Mt];if(ht)var Dn=F?ht(Ze,Wt,Mt,I,_,Pt):ht(Wt,Ze,Mt,_,I,Pt);if(Dn!==void 0){if(Dn)continue;pe=!1;break}if(ne){if(!nt(I,function(Va,$o){if(gi=$o,!ne.has(gi)&&(Wt===Va||ee(Wt,Va,Z,ht,Pt)))return ne.push($o);var gi})){pe=!1;break}}else if(Wt!==Ze&&!ee(Wt,Ze,Z,ht,Pt)){pe=!1;break}}return Pt.delete(_),Pt.delete(I),pe}function Ro(_){return function(I,Z,ht){var ee=Z(I);return zo(I)?ee:function(Pt,F){for(var z=-1,J=F.length,ut=Pt.length;++z<J;)Pt[ut+z]=F[z];return Pt}(ee,ht(I))}(_,Dh,bh)}function Mr(_,I){var Z,ht,ee=_.__data__;return((ht=typeof(Z=I))=="string"||ht=="number"||ht=="symbol"||ht=="boolean"?Z!=="__proto__":Z===null)?ee[typeof I=="string"?"string":"hash"]:ee.map}function pi(_,I){var Z=function(ht,ee){return ht==null?void 0:ht[ee]}(_,I);return bs(Z)?Z:void 0}wn.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},wn.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},wn.prototype.get=function(_){var I=this.__data__;if(Ir){var Z=I[_];return Z===n?void 0:Z}return Y.call(I,_)?I[_]:void 0},wn.prototype.has=function(_){var I=this.__data__;return Ir?I[_]!==void 0:Y.call(I,_)},wn.prototype.set=function(_,I){var Z=this.__data__;return this.size+=this.has(_)?0:1,Z[_]=Ir&&I===void 0?n:I,this},En.prototype.clear=function(){this.__data__=[],this.size=0},En.prototype.delete=function(_){var I=this.__data__,Z=di(I,_);return!(Z<0)&&(Z==I.length-1?I.pop():At.call(I,Z,1),--this.size,!0)},En.prototype.get=function(_){var I=this.__data__,Z=di(I,_);return Z<0?void 0:I[Z][1]},En.prototype.has=function(_){return di(this.__data__,_)>-1},En.prototype.set=function(_,I){var Z=this.__data__,ht=di(Z,_);return ht<0?(++this.size,Z.push([_,I])):Z[ht][1]=I,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(ye||En),string:new wn}},Fn.prototype.delete=function(_){var I=Mr(this,_).delete(_);return this.size-=I?1:0,I},Fn.prototype.get=function(_){return Mr(this,_).get(_)},Fn.prototype.has=function(_){return Mr(this,_).has(_)},Fn.prototype.set=function(_,I){var Z=Mr(this,_),ht=Z.size;return Z.set(_,I),this.size+=Z.size==ht?0:1,this},rn.prototype.add=rn.prototype.push=function(_){return this.__data__.set(_,n),this},rn.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.clear=function(){this.__data__=new En,this.size=0},hr.prototype.delete=function(_){var I=this.__data__,Z=I.delete(_);return this.size=I.size,Z},hr.prototype.get=function(_){return this.__data__.get(_)},hr.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.set=function(_,I){var Z=this.__data__;if(Z instanceof En){var ht=Z.__data__;if(!ye||ht.length<199)return ht.push([_,I]),this.size=++Z.size,this;Z=this.__data__=new Fn(ht)}return Z.set(_,I),this.size=Z.size,this};var bh=Ot?function(_){return _==null?[]:(_=Object(_),function(I,Z){for(var ht=-1,ee=I==null?0:I.length,Pt=0,F=[];++ht<ee;){var z=I[ht];Z(z,ht,I)&&(F[Pt++]=z)}return F}(Ot(_),function(I){return It.call(_,I)}))}:function(){return[]},Yn=Lo;function Sc(_,I){return!!(I=I??r)&&(typeof _=="number"||S.test(_))&&_>-1&&_%1==0&&_<I}function Mo(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function ws(_,I){return _===I||_!=_&&I!=I}(te&&Yn(new te(new ArrayBuffer(1)))!=w||ye&&Yn(new ye)!=c||mn&&Yn(mn.resolve())!=d||zt&&Yn(new zt)!=g||In&&Yn(new In)!=h)&&(Yn=function(_){var I=Lo(_),Z=I==p?_.constructor:void 0,ht=Z?Mo(Z):"";if(ht)switch(ht){case oo:return w;case ys:return c;case $a:return d;case Lr:return g;case io:return h}return I});var wh=ms(function(){return arguments}())?ms:function(_){return hi(_)&&Y.call(_,"callee")&&!It.call(_,"callee")},zo=Array.isArray,ao=Be||function(){return!1};function Cc(_){if(!Eh(_))return!1;var I=Lo(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function uo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Eh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function hi(_){return _!=null&&typeof _=="object"}var so=q?function(_){return function(I){return _(I)}}(q):function(_){return hi(_)&&uo(_.length)&&!!x[Lo(_)]};function Dh(_){return(I=_)!=null&&uo(I.length)&&!Cc(I)?xc(_):Rr(_);var I}t.exports=function(_,I){return Ha(_,I)}});qn("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"}}),qn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var kB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eR(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,lg,m0=function(t){return t&&t.Math==Math&&t},_t=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof kB=="object"&&kB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},ka=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xf=Function.prototype.call,We=xf.bind?xf.bind(xf):function(){return xf.apply(xf,arguments)},BB={}.propertyIsEnumerable,FB=Object.getOwnPropertyDescriptor,plt={f:FB&&!BB.call({1:2},1)?function(t){var e=FB(this,t);return!!e&&e.enumerable}:BB},F8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nR=Function.prototype,z6=nR.bind,$6=nR.call,hlt=z6&&z6.bind($6),Rt=z6?function(t){return t&&hlt($6,t)}:function(t){return t&&function(){return $6.apply(t,arguments)}},glt=Rt({}.toString),vlt=Rt("".slice),fa=function(t){return vlt(glt(t),8,-1)},j2=_t.Object,ylt=Rt("".split),rR=Ye(function(){return!j2("z").propertyIsEnumerable(0)})?function(t){return fa(t)=="String"?ylt(t,""):j2(t)}:j2,mlt=_t.TypeError,Ba=function(t){if(t==null)throw mlt("Can't call method on "+t);return t},uh=function(t){return rR(Ba(t))},vn=function(t){return typeof t=="function"},Cr=function(t){return typeof t=="object"?t!==null:vn(t)},blt=function(t){return vn(t)?t:void 0},sh=function(t,e){return arguments.length<2?blt(_t[t]):_t[t]&&_t[t][e]},oR=Rt({}.isPrototypeOf),N2=sh("navigator","userAgent")||"",TB=_t.process,_B=_t.Deno,PB=TB&&TB.versions||_B&&_B.version,jB=PB&&PB.v8;jB&&(lg=(ji=jB.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!lg&&N2&&(!(ji=N2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=N2.match(/Chrome\/(\d+)/))&&(lg=+ji[1]);var H6=lg,V6=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&H6&&H6<41}),T8=V6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wlt=_t.Object,I2=T8?function(t){return typeof t=="symbol"}:function(t){var e=sh("Symbol");return vn(e)&&oR(e.prototype,wlt(t))},Elt=_t.String,iR=function(t){try{return Elt(t)}catch{return"Object"}},Dlt=_t.TypeError,aR=function(t){if(vn(t))return t;throw Dlt(iR(t)+" is not a function")},_8=function(t,e){var n=t[e];return n==null?void 0:aR(n)},xlt=_t.TypeError,Slt=Object.defineProperty,P8=function(t,e){try{Slt(_t,t,{value:e,configurable:!0,writable:!0})}catch{_t[t]=e}return e},da=_t["__core-js_shared__"]||P8("__core-js_shared__",{}),j8=eR(function(t){(t.exports=function(e,n){return da[e]||(da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Clt=_t.Object,N8=function(t){return Clt(Ba(t))},Alt=Rt({}.hasOwnProperty),Or=Object.hasOwn||function(t,e){return Alt(N8(t),e)},Olt=0,klt=Math.random(),Blt=Rt(1 .toString),uR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Blt(++Olt+klt,36)},Sf=j8("wks"),Lu=_t.Symbol,NB=Lu&&Lu.for,Flt=T8?Lu:Lu&&Lu.withoutSetter||uR,Nr=function(t){if(!Or(Sf,t)||!V6&&typeof Sf[t]!="string"){var e="Symbol."+t;V6&&Or(Lu,t)?Sf[t]=Lu[t]:Sf[t]=T8&&NB?NB(e):Flt(e)}return Sf[t]},Tlt=_t.TypeError,_lt=Nr("toPrimitive"),I8=function(t){var e=function(n,r){if(!Cr(n)||I2(n))return n;var o,i=_8(n,_lt);if(i){if(r===void 0&&(r="default"),o=We(i,n,r),!Cr(o)||I2(o))return o;throw Tlt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&vn(s=a.toString)&&!Cr(l=We(s,a))||vn(s=a.valueOf)&&!Cr(l=We(s,a))||u!=="string"&&vn(s=a.toString)&&!Cr(l=We(s,a)))return l;throw xlt("Can't convert object to primitive value")}(n,r)}(t,"string");return I2(e)?e:e+""},U6=_t.document,Plt=Cr(U6)&&Cr(U6.createElement),L8=function(t){return Plt?U6.createElement(t):{}},sR=!ka&&!Ye(function(){return Object.defineProperty(L8("div"),"a",{get:function(){return 7}}).a!=7}),IB=Object.getOwnPropertyDescriptor,lR={f:ka?IB:function(t,e){if(t=uh(t),e=I8(e),sR)try{return IB(t,e)}catch{}if(Or(t,e))return F8(!We(plt.f,t,e),t[e])}},jlt=_t.String,Nlt=_t.TypeError,kr=function(t){if(Cr(t))return t;throw Nlt(jlt(t)+" is not an object")},Ilt=_t.TypeError,LB=Object.defineProperty,lh={f:ka?LB:function(t,e,n){if(kr(t),e=I8(e),kr(n),sR)try{return LB(t,e,n)}catch{}if("get"in n||"set"in n)throw Ilt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Xl=ka?function(t,e,n){return lh.f(t,e,F8(1,n))}:function(t,e,n){return t[e]=n,t},Llt=Rt(Function.toString);vn(da.inspectSource)||(da.inspectSource=function(t){return Llt(t)});var Vv,bd,Uv,R8=da.inspectSource,RB=_t.WeakMap,Rlt=vn(RB)&&/native code/.test(R8(RB)),MB=j8("keys"),cR=function(t){return MB[t]||(MB[t]=uR(t))},M8={},W6=_t.TypeError,Mlt=_t.WeakMap;if(Rlt||da.state){var tu=da.state||(da.state=new Mlt),zlt=Rt(tu.get),zB=Rt(tu.has),$lt=Rt(tu.set);Vv=function(t,e){if(zB(tu,t))throw new W6("Object already initialized");return e.facade=t,$lt(tu,t,e),e},bd=function(t){return zlt(tu,t)||{}},Uv=function(t){return zB(tu,t)}}else{var $s=cR("state");M8[$s]=!0,Vv=function(t,e){if(Or(t,$s))throw new W6("Object already initialized");return e.facade=t,Xl(t,$s,e),e},bd=function(t){return Or(t,$s)?t[$s]:{}},Uv=function(t){return Or(t,$s)}}var G6={set:Vv,get:bd,has:Uv,enforce:function(t){return Uv(t)?bd(t):Vv(t,{})},getterFor:function(t){return function(e){var n;if(!Cr(e)||(n=bd(e)).type!==t)throw W6("Incompatible receiver, "+t+" required");return n}}},fR=Function.prototype,Hlt=ka&&Object.getOwnPropertyDescriptor,L2=Or(fR,"name"),z8={EXISTS:L2,PROPER:L2&&(function(){}).name==="something",CONFIGURABLE:L2&&(!ka||ka&&Hlt(fR,"name").configurable)},op=eR(function(t){var e=z8.CONFIGURABLE,n=G6.get,r=G6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;vn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(u,"name")||e&&u.name!==d)&&Xl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==_t?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Xl(i,a,u)):f?i[a]=u:P8(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||R8(this)})}),Vlt=Math.ceil,Ult=Math.floor,wy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Ult:Vlt)(e)},Wlt=Math.max,Glt=Math.min,ip=function(t,e){var n=wy(t);return n<0?Wlt(n+e,0):Glt(n,e)},qlt=Math.min,$8=function(t){return t>0?qlt(wy(t),9007199254740991):0},Ey=function(t){return $8(t.length)},Klt=function(t){return function(e,n,r){var o,i=uh(e),a=Ey(i),u=ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Ylt=Klt(!1),$B=Rt([].push),dR=function(t,e){var n,r=uh(t),o=0,i=[];for(n in r)!Or(M8,n)&&Or(r,n)&&$B(i,n);for(;e.length>o;)Or(r,n=e[o++])&&(~Ylt(i,n)||$B(i,n));return i},Wv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xlt=Wv.concat("length","prototype"),Zlt={f:Object.getOwnPropertyNames||function(t){return dR(t,Xlt)}},Jlt={f:Object.getOwnPropertySymbols},Qlt=Rt([].concat),tct=sh("Reflect","ownKeys")||function(t){var e=Zlt.f(kr(t)),n=Jlt.f;return n?Qlt(e,n(t)):e},ect=function(t,e){for(var n=tct(e),r=lh.f,o=lR.f,i=0;i<n.length;i++){var a=n[i];Or(t,a)||r(t,a,o(e,a))}},nct=/#|\.prototype\./,ch=function(t,e){var n=oct[rct(t)];return n==act||n!=ict&&(vn(e)?Ye(e):!!e)},rct=ch.normalize=function(t){return String(t).replace(nct,".").toLowerCase()},oct=ch.data={},ict=ch.NATIVE="N",act=ch.POLYFILL="P",uct=ch,sct=lR.f,Fa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?_t:l?_t[u]||P8(u,{}):(_t[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=sct(n,r))&&a.value:n[r],!uct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ect(i,o)}(t.sham||o&&o.sham)&&Xl(i,"sham",!0),op(n,r,i,t)}},pR={};pR[Nr("toStringTag")]="z";var H8=String(pR)==="[object z]",lct=Nr("toStringTag"),cct=_t.Object,fct=fa(function(){return arguments}())=="Arguments",V8=H8?fa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=cct(t),lct))=="string"?n:fct?fa(e):(r=fa(e))=="Object"&&vn(e.callee)?"Arguments":r},dct=_t.String,An=function(t){if(V8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return dct(t)},pct=/"/g,hct=Rt("".replace);Fa({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=An(Ba(this)),r="<a",(r+=' name="'+hct(An(e),pct,""")+'"')+">"+n+"</a>";var e,n,r}});var b0,hR=function(){var t=kr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},U8=_t.RegExp,q6=Ye(function(){var t=U8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),gct=q6||Ye(function(){return!U8("a","y").sticky}),gR={BROKEN_CARET:q6||Ye(function(){var t=U8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:gct,UNSUPPORTED_Y:q6},vct=Object.keys||function(t){return dR(t,Wv)},yct=ka?Object.defineProperties:function(t,e){kr(t);for(var n,r=uh(e),o=vct(e),i=o.length,a=0;i>a;)lh.f(t,n=o[a++],r[n]);return t},mct=sh("document","documentElement"),vR=cR("IE_PROTO"),R2=function(){},yR=function(t){return"<script>"+t+"<\/script>"},HB=function(t){t.write(yR("")),t.close();var e=t.parentWindow.Object;return t=null,e},cg=function(){try{b0=new ActiveXObject("htmlfile")}catch{}var t,e;cg=typeof document<"u"?document.domain&&b0?HB(b0):((e=L8("iframe")).style.display="none",mct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(yR("document.F=Object")),t.close(),t.F):HB(b0);for(var n=Wv.length;n--;)delete cg.prototype[Wv[n]];return cg()};M8[vR]=!0;var VB,M2,mR=Object.create||function(t,e){var n;return t!==null?(R2.prototype=kr(t),n=new R2,R2.prototype=null,n[vR]=t):n=cg(),e===void 0?n:yct(n,e)},bct=_t.RegExp,wct=Ye(function(){var t=bct(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Ect=_t.RegExp,Dct=Ye(function(){var t=Ect("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),xct=G6.get,Sct=j8("native-string-replace",String.prototype.replace),Gv=RegExp.prototype.exec,K6=Gv,Cct=Rt("".charAt),Act=Rt("".indexOf),Oct=Rt("".replace),z2=Rt("".slice),$2=(M2=/b*/g,We(Gv,VB=/a/,"a"),We(Gv,M2,"a"),VB.lastIndex!==0||M2.lastIndex!==0),UB=gR.BROKEN_CARET,H2=/()??/.exec("")[1]!==void 0;($2||H2||UB||wct||Dct)&&(K6=function(t){var e,n,r,o,i,a,u,s=this,l=xct(s),c=An(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=We(K6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=UB&&s.sticky,y=We(hR,s),g=s.source,v=0,m=c;if(d&&(y=Oct(y,"y",""),Act(y,"g")===-1&&(y+="g"),m=z2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Cct(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),H2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),$2&&(r=s.lastIndex),o=We(Gv,d?n:s,m),d?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:$2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),H2&&o&&o.length>1&&We(Sct,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=mR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ap=K6;Fa({target:"RegExp",proto:!0,forced:/./.exec!==ap},{exec:ap});var qv=Array.isArray||function(t){return fa(t)=="Array"},bR=function(){},kct=[],wR=sh("Reflect","construct"),W8=/^\s*(?:class|function)\b/,Bct=Rt(W8.exec),Fct=!W8.exec(bR),Cf=function(t){if(!vn(t))return!1;try{return wR(bR,kct,t),!0}catch{return!1}},G8=!wR||Ye(function(){var t;return Cf(Cf.call)||!Cf(Object)||!Cf(function(){t=!0})||t})?function(t){if(!vn(t))return!1;switch(V8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fct||!!Bct(W8,R8(t))}:Cf,ER=function(t,e,n){var r=I8(e);r in t?lh.f(t,r,F8(0,n)):t[r]=n},Tct=Nr("species"),q8=function(t){return H6>=51||!Ye(function(){var e=[];return(e.constructor={})[Tct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},_ct=Rt([].slice),Pct=q8("slice"),jct=Nr("species"),V2=_t.Array,Nct=Math.max;function no(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WB(t){var e=t.selection;if(e==null)return!1;var n=no(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=no(n,2)[1],o=E.start(t,r);if(Bt.equals(e.anchor,o))return!0}return!1}function GB(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Fa({target:"Array",proto:!0,forced:!Pct},{slice:function(t,e){var n,r,o,i=uh(this),a=Ey(i),u=ip(t,a),s=ip(e===void 0?a:e,a);if(qv(i)&&(n=i.constructor,(G8(n)&&(n===V2||qv(n.prototype))||Cr(n)&&(n=n[jct])===null)&&(n=void 0),n===V2||n===void 0))return _ct(i,u,s);for(r=new(n===void 0?V2:n)(Nct(s-u,0)),o=0;u<s;u++,o++)u in i&&ER(r,o,i[u]);return r.length=o,r}});var qB=Rt(Rt.bind),Ict=Nr("species"),KB=_t.Array,Lct=function(t,e){return new(function(n){var r;return qv(n)&&(r=n.constructor,(G8(r)&&(r===KB||qv(r.prototype))||Cr(r)&&(r=r[Ict])===null)&&(r=void 0)),r===void 0?KB:r}(t))(e===0?0:e)},YB=Rt([].push),Ni=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=N8(s),g=rR(y),v=function(D,S){return aR(D),S===void 0?D:qB?qB(D,S):function(){return D.apply(S,arguments)}}(l,c),m=Ey(g),h=0,b=f||Lct,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:YB(w,p)}else switch(t){case 4:return!1;case 7:YB(w,p)}return i?-1:r||o?o:w}},Dy={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)},Rct=Dy.map;Fa({target:"Array",proto:!0,forced:!q8("map")},{map:function(t){return Rct(this,t,arguments.length>1?arguments[1]:void 0)}});var Mct=H8?{}.toString:function(){return"[object "+V8(this)+"]"};function xy(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function DR(t){return xy(t).every(function(e){return!!e.isHeader})}H8||op(Object.prototype,"toString",Mct,{unsafe:!0});var zct=z8.PROPER,Y6=RegExp.prototype,xR=Y6.toString,$ct=Rt(hR),Hct=Ye(function(){return xR.call({source:"a",flags:"b"})!="/a/b"}),Vct=zct&&xR.name!="toString";(Hct||Vct)&&op(RegExp.prototype,"toString",function(){var t=kr(this),e=An(t.source),n=t.flags;return"/"+e+"/"+An(n===void 0&&oR(Y6,t)&&!("flags"in Y6)?$ct(t):n)},{unsafe:!0});var X6=Nr("unscopables"),Z6=Array.prototype;Z6[X6]==null&&lh.f(Z6,X6,{configurable:!0,value:mR(null)});var Uct=Dy.find,XB=!0;"find"in[]&&Array(1).find(function(){XB=!1}),Fa({target:"Array",proto:!0,forced:XB},{find:function(t){return Uct(this,t,arguments.length>1?arguments[1]:void 0)}}),Z6[X6].find=!0;var K8=Function.prototype,ZB=K8.apply,Wct=K8.bind,JB=K8.call,SR=typeof Reflect=="object"&&Reflect.apply||(Wct?JB.bind(ZB):function(){return JB.apply(ZB,arguments)}),Gct=Nr("species"),U2=RegExp.prototype,CR=function(t,e,n,r){var o=Nr(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Gct]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=Rt(l),g=c.exec;return g===ap||g===U2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});op(String.prototype,t,s[0]),op(U2,o,s[1])}r&&Xl(U2[o],"sham",!0)},qct=Nr("match"),Kct=_t.TypeError,Yct=Nr("species"),Xct=Rt("".charAt),QB=Rt("".charCodeAt),Zct=Rt("".slice),Jct=function(t){return function(e,n){var r,o,i=An(Ba(e)),a=wy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=QB(i,a))<55296||r>56319||a+1===u||(o=QB(i,a+1))<56320||o>57343?t?Xct(i,a):r:t?Zct(i,a,a+2):o-56320+(r-55296<<10)+65536}},Qct=Jct(!0),AR=function(t,e,n){return e+(n?Qct(t,e).length:1)},tft=_t.Array,eft=Math.max,tF=function(t,e,n){for(var r=Ey(t),o=ip(e,r),i=ip(n===void 0?r:n,r),a=tft(eft(i-o,0)),u=0;o<i;o++,u++)ER(a,u,t[o]);return a.length=u,a},nft=_t.TypeError,J6=function(t,e){var n=t.exec;if(vn(n)){var r=We(n,t,e);return r!==null&&kr(r),r}if(fa(t)==="RegExp")return We(ap,t,e);throw nft("RegExp#exec called on incompatible receiver")},Hs=gR.UNSUPPORTED_Y,rft=Math.min,OR=[].push,oft=Rt(/./.exec),Vs=Rt(OR),Af=Rt("".slice);CR("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=An(Ba(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Cr(a=o)||!((u=a[qct])!==void 0?u:fa(a)=="RegExp"))return We(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=We(ap,v,s))&&!((f=v.lastIndex)>g&&(Vs(d,Af(s,g,c.index)),c.length>1&&c.index<s.length&&SR(OR,d,tF(c,1)),p=c[0].length,g=f,d.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&oft(v,"")||Vs(d,""):Vs(d,Af(s,g)),d.length>l?tF(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:We(e,this,o,i)}:e,[function(o,i){var a=Ba(this),u=o==null?void 0:_8(o,t);return u?We(u,o,a,i):We(r,An(a),o,i)},function(o,i){var a=kr(this),u=An(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,x=kr(w).constructor;return x===void 0||(S=kr(x)[Yct])==null?D:function(O){if(G8(O))return O;throw Kct(iR(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Hs?"g":"y"),p=new l(Hs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return J6(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Hs?0:g;var m,h=J6(p,Hs?Af(u,g):u);if(h===null||(m=rft($8(p.lastIndex+(Hs?g:0)),u.length))===y)g=AR(u,g,c);else{if(Vs(v,Af(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Vs(v,h[b]),v.length===d)return v;g=y=m}}return Vs(v,Af(u,y)),v}]},!!Ye(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Hs);var Q6=`
\v\f\r \u2028\u2029\uFEFF`,eF=Rt("".replace),Kv="["+Q6+"]",ift=RegExp("^"+Kv+Kv+"*"),aft=RegExp(Kv+Kv+"*$"),W2=function(t){return function(e){var n=An(Ba(e));return 1&t&&(n=eF(n,ift,"")),2&t&&(n=eF(n,aft,"")),n}},uft={start:W2(1),end:W2(2),trim:W2(3)},sft=z8.PROPER,lft=uft.trim;function kR(t){return t.length?t[0].tagName.toLowerCase():""}Fa({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!Q6[t]()||"
"[t]()!=="
"||sft&&Q6[t].name!==t})}("trim")},{trim:function(){return lft(this)}}),Fa({global:!0},{globalThis:_t}),Tr&&(B.fn.append=Tr),ko&&(B.fn.on=ko),Da&&(B.fn.focus=Da),Fr&&(B.fn.attr=Fr),Oo&&(B.fn.val=Oo),Ea&&(B.fn.html=Ea),_l&&(B.fn.dataset=_l),Bl&&(B.fn.addClass=Bl),Fl&&(B.fn.removeClass=Fl),Il&&(B.fn.children=Il),Zg&&(B.fn.each=Zg),Nl&&(B.fn.find=Nl);var up=!1,BR=0,FR=0,sp=null,lp=null,wd=B("body");function TR(t){up=!1,lp=null,sp=null,wd.off("mousemove",_R),wd.off("mouseup",TR)}wd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),up=!0;var n=t.clientX;BR=n;var r=e.getBoundingClientRect().width;FR=r,wd.on("mousemove",_R),wd.on("mouseup",TR)}});var _R=qu(function(t){if(up&&lp!=null&&sp!=null){t.preventDefault();var e=t.clientX,n=FR+(e-BR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(lp,{width:n.toString()},{at:sp})}},100),cft={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=E.start(u,p),y=E.end(u,p),g=Bt.compare(c,y)<=0&&Bt.compare(c,d)>=0,v=Bt.compare(f,y)<=0&&Bt.compare(f,d)>=0;return!!(g&&v&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,xy(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},fft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},dft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&xy(g).some(function(v){return v===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:qu(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,b=p.clientX,w=p.clientY;up||(b>g+v-5&&b<g+v&&w>m&&w<m+h?(d.style.cursor="col-resize",lp=n,sp=A.findPath(n,t)):up||(d.style.cursor="auto",lp=null,sp=null))}},100)}},e);return f}},pft={selector:"table",preParseHtml:function(t){var e=B(t);if(kR(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},hft=Dy.filter;Fa({target:"Array",proto:!0,forced:!q8("filter")},{filter:function(t){return hft(this,t,arguments.length>1?arguments[1]:void 0)}});var gft=Math.floor,G2=Rt("".charAt),vft=Rt("".replace),q2=Rt("".slice),yft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mft=/\$([$&'`]|\d{1,2})/g,bft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=mft;return o!==void 0&&(o=N8(o),s=yft),vft(i,s,function(l,c){var f;switch(G2(c,0)){case"$":return"$";case"&":return t;case"`":return q2(e,0,n);case"'":return q2(e,a);case"<":f=o[q2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=gft(p/10);return d===0?l:d<=u?r[d-1]===void 0?G2(c,1):r[d-1]+G2(c,1):l}f=r[p-1]}return f===void 0?"":f})},t3=Nr("replace"),wft=Math.max,Eft=Math.min,Dft=Rt([].concat),K2=Rt([].push),nF=Rt("".indexOf),rF=Rt("".slice),xft="a".replace(/./,"$0")==="$0",oF=!!/./[t3]&&/./[t3]("a","$0")==="";CR("replace",function(t,e,n){var r=oF?"$":"$0";return[function(o,i){var a=Ba(this),u=o==null?void 0:_8(o,t3);return u?We(u,o,a,i):We(e,An(a),o,i)},function(o,i){var a=kr(this),u=An(o);if(typeof i=="string"&&nF(i,r)===-1&&nF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=An(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=J6(a,u);if(d===null||(K2(p,d),!c))break;An(d[0])===""&&(a.lastIndex=AR(u,$8(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=An((d=p[m])[0]),b=wft(Eft(wy(d.index),u.length),0),w=[],D=1;D<d.length;D++)K2(w,(y=d[D])===void 0?y:String(y));var S=d.groups;if(l){var x=Dft([h],w,b,u);S!==void 0&&K2(x,S);var O=An(SR(i,void 0,x))}else O=bft(h,u,b,w,S,i);b>=v&&(g+=rF(u,v,b)+O,v=b+h.length)}return g+rF(u,v)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!xft||oF);var Sft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!ot.isText(u)||!!n.isInline(u)})).length===0&&(e=[{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:kR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Cft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Aft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Oft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 × 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){B(g).children().each(function(v){var m=B(v),h=m.dataset(),b=h.x,w=h.y;b<=d&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),kft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),Bft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),p=j.next(f);N.insertNodes(e,l,{at:p})}}},t}(),Fft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),iF={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},Y2=L8("span").classList,aF=Y2&&Y2.constructor&&Y2.constructor.prototype,Tft=aF===Object.prototype?void 0:aF,_ft=Dy.forEach,Pft=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),X2=Pft?[].forEach:function(t){return _ft(this,t,arguments.length>1?arguments[1]:void 0)},PR=function(t){if(t&&t.forEach!==X2)try{Xl(t,"forEach",X2)}catch{t.forEach=X2}};for(var Z2 in iF)iF[Z2]&&PR(_t[Z2]&&_t[Z2].prototype);PR(Tft);var jft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ct.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&tR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&DR(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),Nft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ct.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&tR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),Ift=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&DR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&xy(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),Lft=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),Rft={renderElems:[cft,fft,dft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[pft],parseElemsHtml:[Sft,Cft,Aft],menus:[{key:"insertTable",factory:function(){return new Oft}},{key:"deleteTable",factory:function(){return new kft}},{key:"insertTableRow",factory:function(){return new Bft}},{key:"deleteTableRow",factory:function(){return new Fft}},{key:"insertTableCol",factory:function(){return new jft}},{key:"deleteTableCol",factory:function(){return new Nft}},{key:"tableHeader",factory:function(){return new Ift}},{key:"tableFullWidth",factory:function(){return new Lft}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
`)},s.deleteBackward=function(l){if(!WB(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=GB(s,f),d=GB(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){WB(s)||r(l)},s.normalizeNode=function(l){var c=no(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=A.findPath(s,c),y={anchor:E.start(s,d),focus:E.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};qn("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"}}),qn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Yv=function(){return Yv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yv.apply(this,arguments)};function Sy(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Cy(t,e){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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Ru(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Mft(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var uF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,fg,w0=function(t){return t&&t.Math==Math&&t},rt=w0(typeof globalThis=="object"&&globalThis)||w0(typeof window=="object"&&window)||w0(typeof self=="object"&&self)||w0(typeof uF=="object"&&uF)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch{return!0}},Fo=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Of=Function.prototype.call,le=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},sF={}.propertyIsEnumerable,lF=Object.getOwnPropertyDescriptor,zft={f:lF&&!sF.call({1:2},1)?function(t){var e=lF(this,t);return!!e&&e.enumerable}:sF},Ay=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},jR=Function.prototype,e3=jR.bind,n3=jR.call,$ft=e3&&e3.bind(n3),xt=e3?function(t){return t&&$ft(n3,t)}:function(t){return t&&function(){return n3.apply(t,arguments)}},Hft=xt({}.toString),Vft=xt("".slice),So=function(t){return Vft(Hft(t),8,-1)},J2=rt.Object,Uft=xt("".split),X8=de(function(){return!J2("z").propertyIsEnumerable(0)})?function(t){return So(t)=="String"?Uft(t,""):J2(t)}:J2,Wft=rt.TypeError,fh=function(t){if(t==null)throw Wft("Can't call method on "+t);return t},Ra=function(t){return X8(fh(t))},oe=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:oe(t)},Gft=function(t){return oe(t)?t:void 0},rs=function(t,e){return arguments.length<2?Gft(rt[t]):rt[t]&&rt[t][e]},cp=xt({}.isPrototypeOf),bl=rs("navigator","userAgent")||"",cF=rt.process,fF=rt.Deno,dF=cF&&cF.versions||fF&&fF.version,pF=dF&&dF.v8;pF&&(fg=(Ii=pF.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!fg&&bl&&(!(Ii=bl.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=bl.match(/Chrome\/(\d+)/))&&(fg=+Ii[1]);var fp=fg,r3=!!Object.getOwnPropertySymbols&&!de(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&fp&&fp<41}),Z8=r3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qft=rt.Object,Q2=Z8?function(t){return typeof t=="symbol"}:function(t){var e=rs("Symbol");return oe(e)&&cp(e.prototype,qft(t))},Kft=rt.String,Xv=function(t){try{return Kft(t)}catch{return"Object"}},Yft=rt.TypeError,Ta=function(t){if(oe(t))return t;throw Yft(Xv(t)+" is not a function")},dp=function(t,e){var n=t[e];return n==null?void 0:Ta(n)},Xft=rt.TypeError,Zft=Object.defineProperty,J8=function(t,e){try{Zft(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},pa=rt["__core-js_shared__"]||J8("__core-js_shared__",{}),Q8=Y8(function(t){(t.exports=function(e,n){return pa[e]||(pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Jft=rt.Object,Oy=function(t){return Jft(fh(t))},Qft=xt({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Qft(Oy(t),e)},tdt=0,edt=Math.random(),ndt=xt(1 .toString),tx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ndt(++tdt+edt,36)},kf=Q8("wks"),Mu=rt.Symbol,hF=Mu&&Mu.for,rdt=Z8?Mu:Mu&&Mu.withoutSetter||tx,Re=function(t){if(!qe(kf,t)||!r3&&typeof kf[t]!="string"){var e="Symbol."+t;r3&&qe(Mu,t)?kf[t]=Mu[t]:kf[t]=Z8&&hF?hF(e):rdt(e)}return kf[t]},odt=rt.TypeError,idt=Re("toPrimitive"),ex=function(t){var e=function(n,r){if(!he(n)||Q2(n))return n;var o,i=dp(n,idt);if(i){if(r===void 0&&(r="default"),o=le(i,n,r),!he(o)||Q2(o))return o;throw odt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&oe(s=a.toString)&&!he(l=le(s,a))||oe(s=a.valueOf)&&!he(l=le(s,a))||u!=="string"&&oe(s=a.toString)&&!he(l=le(s,a)))return l;throw Xft("Can't convert object to primitive value")}(n,r)}(t,"string");return Q2(e)?e:e+""},o3=rt.document,adt=he(o3)&&he(o3.createElement),pp=function(t){return adt?o3.createElement(t):{}},NR=!Fo&&!de(function(){return Object.defineProperty(pp("div"),"a",{get:function(){return 7}}).a!=7}),gF=Object.getOwnPropertyDescriptor,nx={f:Fo?gF:function(t,e){if(t=Ra(t),e=ex(e),NR)try{return gF(t,e)}catch{}if(qe(t,e))return Ay(!le(zft.f,t,e),t[e])}},udt=rt.String,sdt=rt.TypeError,fn=function(t){if(he(t))return t;throw sdt(udt(t)+" is not an object")},ldt=rt.TypeError,vF=Object.defineProperty,ci={f:Fo?vF:function(t,e,n){if(fn(t),e=ex(e),fn(n),NR)try{return vF(t,e,n)}catch{}if("get"in n||"set"in n)throw ldt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ha=Fo?function(t,e,n){return ci.f(t,e,Ay(1,n))}:function(t,e,n){return t[e]=n,t},cdt=xt(Function.toString);oe(pa.inspectSource)||(pa.inspectSource=function(t){return cdt(t)});var Zv,Ed,Jv,ky=pa.inspectSource,yF=rt.WeakMap,IR=oe(yF)&&/native code/.test(ky(yF)),mF=Q8("keys"),rx=function(t){return mF[t]||(mF[t]=tx(t))},By={},i3=rt.TypeError,fdt=rt.WeakMap;if(IR||pa.state){var eu=pa.state||(pa.state=new fdt),ddt=xt(eu.get),bF=xt(eu.has),pdt=xt(eu.set);Zv=function(t,e){if(bF(eu,t))throw new i3("Object already initialized");return e.facade=t,pdt(eu,t,e),e},Ed=function(t){return ddt(eu,t)||{}},Jv=function(t){return bF(eu,t)}}else{var Us=rx("state");By[Us]=!0,Zv=function(t,e){if(qe(t,Us))throw new i3("Object already initialized");return e.facade=t,ha(t,Us,e),e},Ed=function(t){return qe(t,Us)?t[Us]:{}},Jv=function(t){return qe(t,Us)}}var cr={set:Zv,get:Ed,has:Jv,enforce:function(t){return Jv(t)?Ed(t):Zv(t,{})},getterFor:function(t){return function(e){var n;if(!he(e)||(n=Ed(e)).type!==t)throw i3("Incompatible receiver, "+t+" required");return n}}},LR=Function.prototype,hdt=Fo&&Object.getOwnPropertyDescriptor,tw=qe(LR,"name"),Dc={EXISTS:tw,PROPER:tw&&(function(){}).name==="something",CONFIGURABLE:tw&&(!Fo||Fo&&hdt(LR,"name").configurable)},or=Y8(function(t){var e=Dc.CONFIGURABLE,n=cr.get,r=cr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;oe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==d)&&ha(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ha(i,a,u)):f?i[a]=u:J8(a,u)})(Function.prototype,"toString",function(){return oe(this)&&n(this).source||ky(this)})}),gdt=Math.ceil,vdt=Math.floor,Fy=function(t){var e=+t;return e!=e||e===0?0:(e>0?vdt:gdt)(e)},ydt=Math.max,mdt=Math.min,hp=function(t,e){var n=Fy(t);return n<0?ydt(n+e,0):mdt(n,e)},bdt=Math.min,RR=function(t){return t>0?bdt(Fy(t),9007199254740991):0},dh=function(t){return RR(t.length)},wF=function(t){return function(e,n,r){var o,i=Ra(e),a=dh(i),u=hp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},MR={includes:wF(!0),indexOf:wF(!1)},wdt=MR.indexOf,EF=xt([].push),zR=function(t,e){var n,r=Ra(t),o=0,i=[];for(n in r)!qe(By,n)&&qe(r,n)&&EF(i,n);for(;e.length>o;)qe(r,n=e[o++])&&(~wdt(i,n)||EF(i,n));return i},Qv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Edt=Qv.concat("length","prototype"),t1={f:Object.getOwnPropertyNames||function(t){return zR(t,Edt)}},Ddt={f:Object.getOwnPropertySymbols},xdt=xt([].concat),Sdt=rs("Reflect","ownKeys")||function(t){var e=t1.f(fn(t)),n=Ddt.f;return n?xdt(e,n(t)):e},Cdt=function(t,e){for(var n=Sdt(e),r=ci.f,o=nx.f,i=0;i<n.length;i++){var a=n[i];qe(t,a)||r(t,a,o(e,a))}},Adt=/#|\.prototype\./,ph=function(t,e){var n=kdt[Odt(t)];return n==Fdt||n!=Bdt&&(oe(e)?de(e):!!e)},Odt=ph.normalize=function(t){return String(t).replace(Adt,".").toLowerCase()},kdt=ph.data={},Bdt=ph.NATIVE="N",Fdt=ph.POLYFILL="P",e1=ph,Tdt=nx.f,$n=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||J8(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Tdt(n,r))&&a.value:n[r],!e1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Cdt(i,o)}(t.sham||o&&o.sham)&&ha(i,"sham",!0),or(n,r,i,t)}},$R={};$R[Re("toStringTag")]="z";var ox=String($R)==="[object z]",_dt=Re("toStringTag"),Pdt=rt.Object,jdt=So(function(){return arguments}())=="Arguments",Ty=ox?So:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Pdt(t),_dt))=="string"?n:jdt?So(e):(r=So(e))=="Object"&&oe(e.callee)?"Arguments":r},Ndt=rt.String,wr=function(t){if(Ty(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ndt(t)},a3=`
\v\f\r \u2028\u2029\uFEFF`,DF=xt("".replace),n1="["+a3+"]",Idt=RegExp("^"+n1+n1+"*"),Ldt=RegExp(n1+n1+"*$"),ew=function(t){return function(e){var n=wr(fh(e));return 1&t&&(n=DF(n,Idt,"")),2&t&&(n=DF(n,Ldt,"")),n}},Rdt={start:ew(1),end:ew(2),trim:ew(3)},Mdt=Dc.PROPER,zdt=Rdt.trim;function xF(t){return t.length?t[0].tagName.toLowerCase():""}function HR(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}$n({target:"String",proto:!0,forced:de(function(){return!!a3.trim()||"
".trim()!=="
"||Mdt&&a3.trim.name!=="trim"})},{trim:function(){return zdt(this)}}),$n({global:!0},{globalThis:rt}),Tr&&(B.fn.append=Tr),ko&&(B.fn.on=ko),Da&&(B.fn.focus=Da),Fr&&(B.fn.attr=Fr),Oo&&(B.fn.val=Oo),Ea&&(B.fn.html=Ea),jl&&(B.fn.parent=jl),Tl&&(B.fn.hasClass=Tl),Rl&&(B.fn.empty=Rl);var E0,$dt={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:HR(a,c,p)});else{var y=bt("video",{poster:s,controls:!0},bt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(y.data.width=c),p!=="auto"&&(y.data.height=p),r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},y)}return Ml("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},Hdt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=HR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},Vdt=Object.keys||function(t){return zR(t,Qv)},Udt=Fo?Object.defineProperties:function(t,e){fn(t);for(var n,r=Ra(e),o=Vdt(e),i=o.length,a=0;i>a;)ci.f(t,n=o[a++],r[n]);return t},u3=rs("document","documentElement"),VR=rx("IE_PROTO"),nw=function(){},UR=function(t){return"<script>"+t+"<\/script>"},SF=function(t){t.write(UR("")),t.close();var e=t.parentWindow.Object;return t=null,e},dg=function(){try{E0=new ActiveXObject("htmlfile")}catch{}var t,e;dg=typeof document<"u"?document.domain&&E0?SF(E0):((e=pp("iframe")).style.display="none",u3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(UR("document.F=Object")),t.close(),t.F):SF(E0);for(var n=Qv.length;n--;)delete dg.prototype[Qv[n]];return dg()};By[VR]=!0;var ix=Object.create||function(t,e){var n;return t!==null?(nw.prototype=fn(t),n=new nw,nw.prototype=null,n[VR]=t):n=dg(),e===void 0?n:Udt(n,e)},s3=Re("unscopables"),l3=Array.prototype;l3[s3]==null&&ci.f(l3,s3,{configurable:!0,value:ix(null)});var Dd=function(t){l3[s3][t]=!0},Wdt=MR.includes;$n({target:"Array",proto:!0},{includes:function(t){return Wdt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dd("includes");var Gdt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(xF(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=xF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},CF=xt(xt.bind),gp=function(t,e){return Ta(t),e===void 0?t:CF?CF(t,e):function(){return t.apply(e,arguments)}},r1=Array.isArray||function(t){return So(t)=="Array"},WR=function(){},qdt=[],GR=rs("Reflect","construct"),ax=/^\s*(?:class|function)\b/,Kdt=xt(ax.exec),Ydt=!ax.exec(WR),Bf=function(t){if(!oe(t))return!1;try{return GR(WR,qdt,t),!0}catch{return!1}},ux=!GR||de(function(){var t;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(Ty(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ydt||!!Kdt(ax,ky(t))}:Bf,Xdt=Re("species"),AF=rt.Array,Zdt=function(t,e){return new(function(n){var r;return r1(n)&&(r=n.constructor,(ux(r)&&(r===AF||r1(r.prototype))||he(r)&&(r=r[Xdt])===null)&&(r=void 0)),r===void 0?AF:r}(t))(e===0?0:e)},OF=xt([].push),Li=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Oy(s),g=X8(y),v=gp(l,c),m=dh(g),h=0,b=f||Zdt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:OF(w,p)}else switch(t){case 4:return!1;case 7:OF(w,p)}return i?-1:r||o?o:w}},sx={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},Jdt=sx.find,kF=!0;"find"in[]&&Array(1).find(function(){kF=!1}),$n({target:"Array",proto:!0,forced:kF},{find:function(t){return Jdt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dd("find");var Qdt=ox?{}.toString:function(){return"[object "+Ty(this)+"]"};function BF(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}ox||or(Object.prototype,"toString",Qdt,{unsafe:!0});var FF,rw,tpt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),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",BF(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",BF(o,i=l.attr("poster")||"",a,u)}},qR=function(){var t=fn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},lx=rt.RegExp,c3=de(function(){var t=lx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ept=c3||de(function(){return!lx("a","y").sticky}),npt={BROKEN_CARET:c3||de(function(){var t=lx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ept,UNSUPPORTED_Y:c3},rpt=rt.RegExp,opt=de(function(){var t=rpt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),ipt=rt.RegExp,apt=de(function(){var t=ipt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),upt=cr.get,spt=Q8("native-string-replace",String.prototype.replace),o1=RegExp.prototype.exec,f3=o1,lpt=xt("".charAt),cpt=xt("".indexOf),fpt=xt("".replace),ow=xt("".slice),iw=(rw=/b*/g,le(o1,FF=/a/,"a"),le(o1,rw,"a"),FF.lastIndex!==0||rw.lastIndex!==0),TF=npt.BROKEN_CARET,aw=/()??/.exec("")[1]!==void 0;(iw||aw||TF||opt||apt)&&(f3=function(t){var e,n,r,o,i,a,u,s=this,l=upt(s),c=wr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=le(f3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=TF&&s.sticky,y=le(qR,s),g=s.source,v=0,m=c;if(d&&(y=fpt(y,"y",""),cpt(y,"g")===-1&&(y+="g"),m=ow(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&lpt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),aw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),iw&&(r=s.lastIndex),o=le(o1,d?n:s,m),d?o?(o.input=ow(o.input,v),o[0]=ow(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:iw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),aw&&o&&o.length>1&&le(spt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=ix(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var i1=f3;$n({target:"RegExp",proto:!0,forced:/./.exec!==i1},{exec:i1});var cx=Function.prototype,_F=cx.apply,dpt=cx.bind,PF=cx.call,KR=typeof Reflect=="object"&&Reflect.apply||(dpt?PF.bind(_F):function(){return PF.apply(_F,arguments)}),jF=(Re("species"),RegExp.prototype),ppt=xt("".charAt),NF=xt("".charCodeAt),hpt=xt("".slice),IF=function(t){return function(e,n){var r,o,i=wr(fh(e)),a=Fy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=NF(i,a))<55296||r>56319||a+1===u||(o=NF(i,a+1))<56320||o>57343?t?ppt(i,a):r:t?hpt(i,a,a+2):o-56320+(r-55296<<10)+65536}},YR={codeAt:IF(!1),charAt:IF(!0)},gpt=YR.charAt,vpt=function(t,e,n){return e+(n?gpt(t,e).length:1)},ypt=Math.floor,uw=xt("".charAt),mpt=xt("".replace),sw=xt("".slice),bpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wpt=/\$([$&'`]|\d{1,2})/g,Ept=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=wpt;return o!==void 0&&(o=Oy(o),s=bpt),mpt(i,s,function(l,c){var f;switch(uw(c,0)){case"$":return"$";case"&":return t;case"`":return sw(e,0,n);case"'":return sw(e,a);case"<":f=o[sw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ypt(p/10);return d===0?l:d<=u?r[d-1]===void 0?uw(c,1):r[d-1]+uw(c,1):l}f=r[p-1]}return f===void 0?"":f})},Dpt=rt.TypeError,xpt=function(t,e){var n=t.exec;if(oe(n)){var r=le(n,t,e);return r!==null&&fn(r),r}if(So(t)==="RegExp")return le(i1,t,e);throw Dpt("RegExp#exec called on incompatible receiver")},d3=Re("replace"),Spt=Math.max,Cpt=Math.min,Apt=xt([].concat),lw=xt([].push),LF=xt("".indexOf),RF=xt("".slice),Opt="a".replace(/./,"$0")==="$0",MF=!!/./[d3]&&/./[d3]("a","$0")==="";function XR(t){return t===void 0&&(t="r"),t+"-"+aj()}(function(t,e,n,r){var o=Re(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=xt(/./[o]),s=function(l,c,f){var p=MF?"$":"$0";return[function(d,y){var g=fh(this),v=d==null?void 0:dp(d,d3);return v?le(v,d,g,y):le(c,wr(g),d,y)},function(d,y){var g=fn(this),v=wr(d);if(typeof y=="string"&&LF(y,p)===-1&&LF(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=oe(y);h||(y=wr(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=xpt(g,v);if(S===null||(lw(D,S),!b))break;wr(S[0])===""&&(g.lastIndex=vpt(v,RR(g.lastIndex),w))}for(var x,O="",T=0,R=0;R<D.length;R++){for(var H=wr((S=D[R])[0]),M=Spt(Cpt(Fy(S.index),v.length),0),K=[],U=1;U<S.length;U++)lw(K,(x=S[U])===void 0?x:String(x));var W=S.groups;if(h){var q=Apt([H],K,M,v);W!==void 0&&lw(q,W);var nt=wr(KR(y,void 0,q))}else nt=Ept(H,v,M,K,W,y);M>=T&&(O+=RF(v,T,M)+nt,T=M+H.length)}return O+RF(v,T)}]}(0,""[t],function(l,c,f,p,d){var y=xt(l),g=c.exec;return g===i1||g===jF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});or(String.prototype,t,s[0]),or(jF,o,s[1])}})("replace",0,!!de(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Opt||MF);var a1=rt.Promise,u1=function(t,e,n){for(var r in e)or(t,r,e[r],n);return t},kpt=rt.String,Bpt=rt.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||oe(i))return i;throw Bpt("Can't set "+kpt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Fpt=ci.f,zF=Re("toStringTag"),s1=function(t,e,n){t&&!qe(t=n?t:t.prototype,zF)&&Fpt(t,zF,{configurable:!0,value:e})},$F=Re("species"),Tpt=rt.TypeError,fx=function(t,e){if(cp(e,t))return t;throw Tpt("Incorrect invocation")},Jl={},_pt=Re("iterator"),Ppt=Array.prototype,jpt=Re("iterator"),HF=function(t){if(t!=null)return dp(t,jpt)||dp(t,"@@iterator")||Jl[Ty(t)]},Npt=rt.TypeError,VF=function(t,e,n){var r,o;fn(t);try{if(!(r=dp(t,"return"))){if(e==="throw")throw n;return n}r=le(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return fn(r),n},Ipt=rt.TypeError,pg=function(t,e){this.stopped=t,this.result=e},UF=pg.prototype,l1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=gp(e,f),v=function(h){return r&&VF(r,"normal",h),new pg(!0,h)},m=function(h){return p?(fn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=HF(t)))throw Ipt(Xv(t)+" is not iterable");if((c=o)!==void 0&&(Jl.Array===c||Ppt[_pt]===c)){for(i=0,a=dh(t);a>i;i++)if((u=m(t[i]))&&cp(UF,u))return u;return new pg(!1)}r=function(h,b){var w=arguments.length<2?HF(h):b;if(Ta(w))return fn(le(w,h));throw Npt(Xv(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=le(s,r)).done;){try{u=m(l.value)}catch(h){VF(r,"throw",h)}if(typeof u=="object"&&u&&cp(UF,u))return u}return new pg(!1)},ZR=Re("iterator"),JR=!1;try{var Lpt=0,WF={next:function(){return{done:!!Lpt++}},return:function(){JR=!0}};WF[ZR]=function(){return this},Array.from(WF,function(){throw 2})}catch{}var vp,Ws,GF,cw,QR=function(t,e){if(!e&&!JR)return!1;var n=!1;try{var r={};r[ZR]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Rpt=rt.TypeError,Mpt=Re("species"),tM=xt([].slice),eM=/(?:ipad|iphone|ipod).*applewebkit/i.test(bl),ga=So(rt.process)=="process",p3=rt.setImmediate,h3=rt.clearImmediate,zpt=rt.process,fw=rt.Dispatch,$pt=rt.Function,qF=rt.MessageChannel,Hpt=rt.String,dw=0,xd={};try{vp=rt.location}catch{}var dx=function(t){if(qe(xd,t)){var e=xd[t];delete xd[t],e()}},pw=function(t){return function(){dx(t)}},KF=function(t){dx(t.data)},YF=function(t){rt.postMessage(Hpt(t),vp.protocol+"//"+vp.host)};p3&&h3||(p3=function(t){var e=tM(arguments,1);return xd[++dw]=function(){KR(oe(t)?t:$pt(t),void 0,e)},Ws(dw),dw},h3=function(t){delete xd[t]},ga?Ws=function(t){zpt.nextTick(pw(t))}:fw&&fw.now?Ws=function(t){fw.now(pw(t))}:qF&&!eM?(cw=(GF=new qF).port2,GF.port1.onmessage=KF,Ws=gp(cw.postMessage,cw)):rt.addEventListener&&oe(rt.postMessage)&&!rt.importScripts&&vp&&vp.protocol!=="file:"&&!de(YF)?(Ws=YF,rt.addEventListener("message",KF,!1)):Ws="onreadystatechange"in pp("script")?function(t){u3.appendChild(pp("script")).onreadystatechange=function(){u3.removeChild(this),dx(t)}}:function(t){setTimeout(pw(t),0)});var Ff,pu,Sd,ol,hw,gw,vw,XF,nM={set:p3,clear:h3},Vpt=/ipad|iphone|ipod/i.test(bl)&&rt.Pebble!==void 0,Upt=/web0s(?!.*chrome)/i.test(bl),Wpt=nx.f,yw=nM.set,ZF=rt.MutationObserver||rt.WebKitMutationObserver,JF=rt.document,QF=rt.process,D0=rt.Promise,tT=Wpt(rt,"queueMicrotask"),rM=tT&&tT.value;rM||(Ff=function(){var t,e;for(ga&&(t=QF.domain)&&t.exit();pu;){e=pu.fn,pu=pu.next;try{e()}catch(n){throw pu?ol():Sd=void 0,n}}Sd=void 0,t&&t.enter()},eM||ga||Upt||!ZF||!JF?!Vpt&&D0&&D0.resolve?((vw=D0.resolve(void 0)).constructor=D0,XF=gp(vw.then,vw),ol=function(){XF(Ff)}):ga?ol=function(){QF.nextTick(Ff)}:(yw=gp(yw,rt),ol=function(){yw(Ff)}):(hw=!0,gw=JF.createTextNode(""),new ZF(Ff).observe(gw,{characterData:!0}),ol=function(){gw.data=hw=!hw}));var mw,eT,oM,nT,iM=rM||function(t){var e={fn:t,next:void 0};Sd&&(Sd.next=e),pu||(pu=e,ol()),Sd=e},Gpt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ta(e),this.reject=Ta(n)},px={f:function(t){return new Gpt(t)}},g3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},qpt=typeof window=="object",aM=nM.set,Kpt=Re("species"),Xo="Promise",rT=cr.getterFor(Xo),Ypt=cr.set,Xpt=cr.getterFor(Xo),uu=a1&&a1.prototype,wo=a1,Tf=uu,uM=rt.TypeError,v3=rt.document,hx=rt.process,wl=px.f,Zpt=wl,Jpt=!!(v3&&v3.createEvent&&rt.dispatchEvent),sM=oe(rt.PromiseRejectionEvent),lM=!1,Cd=e1(Xo,function(){var t=ky(wo),e=t!==String(wo);if(!e&&fp===66)return!0;if(fp>=51&&/native code/.test(t))return!1;var n=new wo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Kpt]=r,!(lM=n.then(function(){})instanceof r)||!e&&qpt&&!sM}),Qpt=Cd||!QR(function(t){wo.all(t).catch(function(){})}),cM=function(t){var e;return!(!he(t)||!oe(e=t.then))&&e},gx=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;iM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&eht(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(uM("Promise-chain cycle")):(u=cM(a))?le(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&tht(t)})}},fM=function(t,e,n){var r,o;Jpt?((r=v3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!sM&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},tht=function(t){le(aM,rt,function(){var e,n=t.facade,r=t.value;if(oT(t)&&(e=g3(function(){ga?hx.emit("unhandledRejection",r,n):fM("unhandledrejection",n,r)}),t.rejection=ga||oT(t)?2:1,e.error))throw e.value})},oT=function(t){return t.rejection!==1&&!t.parent},eht=function(t){le(aM,rt,function(){var e=t.facade;ga?hx.emit("rejectionHandled",e):fM("rejectionhandled",e,t.value)})},cl=function(t,e,n){return function(r){t(e,r,n)}},El=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,gx(t,!0))},y3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw uM("Promise can't be resolved itself");var r=cM(e);r?iM(function(){var o={done:!1};try{le(r,e,cl(y3,o,t),cl(El,o,t))}catch(i){El(o,i,t)}}):(t.value=e,t.state=1,gx(t,!1))}catch(o){El({done:!1},o,t)}}};if(Cd&&(Tf=(wo=function(t){fx(this,Tf),Ta(t),le(mw,this);var e=rT(this);try{t(cl(y3,e),cl(El,e))}catch(n){El(e,n)}}).prototype,(mw=function(t){Ypt(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=u1(Tf,{then:function(t,e){var n=Xpt(this),r=n.reactions,o=wl(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[Mpt])==null?a:function(l){if(ux(l))return l;throw Rpt(Xv(l)+" is not a constructor")}(u)}(this,wo));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=ga?hx.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&gx(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),eT=function(){var t=new mw,e=rT(t);this.promise=t,this.resolve=cl(y3,e),this.reject=cl(El,e)},px.f=wl=function(t){return t===wo||t===oM?new eT(t):Zpt(t)},oe(a1)&&uu!==Object.prototype)){nT=uu.then,lM||(or(uu,"then",function(t,e){var n=this;return new wo(function(r,o){le(nT,n,r,o)}).then(t,e)},{unsafe:!0}),or(uu,"catch",Tf.catch,{unsafe:!0}));try{delete uu.constructor}catch{}Zl&&Zl(uu,Tf)}function yp(t,e,n){return n===void 0&&(n=""),Sy(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return Cy(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function bw(){return XR("w-e-insert-video")}$n({global:!0,wrap:!0,forced:Cd},{Promise:wo}),s1(wo,Xo,!1),function(t){var e=rs("Promise"),n=ci.f;Fo&&e&&!e[$F]&&n(e,$F,{configurable:!0,get:function(){return this}})}(),oM=rs(Xo),$n({target:Xo,stat:!0,forced:Cd},{reject:function(t){var e=wl(this);return le(e.reject,void 0,t),e.promise}}),$n({target:Xo,stat:!0,forced:Cd},{resolve:function(t){return function(e,n){if(fn(e),he(n)&&n.constructor===e)return n;var r=px.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),$n({target:Xo,stat:!0,forced:Qpt},{all:function(t){var e=this,n=wl(e),r=n.resolve,o=n.reject,i=g3(function(){var a=Ta(e.resolve),u=[],s=0,l=1;l1(t,function(c){var f=s++,p=!1;l++,le(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=wl(e),r=n.reject,o=g3(function(){var i=Ta(e.resolve);l1(t,function(a){le(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var nht=function(){function t(){this.title=tt("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=bw(),this.posterInputId=bw(),this.buttonId=bw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Ru(nr(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Ru(nr(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),y=B(p),g=Ru(dc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(h){return Sy(n,void 0,void 0,function(){var b,w;return Cy(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=v.find("#"+o).val().trim(),w=v.find("#"+i).val().trim(),[4,yp(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(g),d.val(""),y.val(""),setTimeout(function(){d.focus()}),m[0]},t}(),rht=xt([].join),oht=X8!=Object,iht=function(t,e){var n=[].join;return!!n&&de(function(){n.call(null,",",1)})}();$n({target:"Array",proto:!0,forced:oht||!iht},{join:function(t){return rht(Ra(this),t===void 0?",":t)}});var zu,iT,aT,aht=!de(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),uT=rx("IE_PROTO"),m3=rt.Object,uht=m3.prototype,c1=aht?m3.getPrototypeOf:function(t){var e=Oy(t);if(qe(e,uT))return e[uT];var n=e.constructor;return oe(n)&&e instanceof n?n.prototype:e instanceof m3?uht:null},b3=Re("iterator"),dM=!1;[].keys&&("next"in(aT=[].keys())?(iT=c1(c1(aT)))!==Object.prototype&&(zu=iT):dM=!0);var sht=zu==null||de(function(){var t={};return zu[b3].call(t)!==t});sht&&(zu={}),oe(zu[b3])||or(zu,b3,function(){return this});var vx={IteratorPrototype:zu,BUGGY_SAFARI_ITERATORS:dM},lht=vx.IteratorPrototype,cht=function(){return this},fht=Dc.PROPER,dht=Dc.CONFIGURABLE,sT=vx.IteratorPrototype,x0=vx.BUGGY_SAFARI_ITERATORS,_f=Re("iterator"),pht=function(){return this},pM=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=ix(lht,{next:Ay(1,b)}),s1(m,D,!1),Jl[D]=cht})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!x0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[_f]||d["@@iterator"]||o&&d[o],g=!x0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=c1(v.call(new t)))!==Object.prototype&&u.next&&(c1(u)!==sT&&(Zl?Zl(u,sT):oe(u[_f])||or(u,_f,pht)),s1(u,f,!0)),fht&&o=="values"&&y&&y.name!=="values"&&(dht?ha(d,"name","values"):(p=!0,g=function(){return le(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(x0||p||!(l in d))&&or(d,l,s[l]);else $n({target:e,proto:!0,forced:x0||p},s);return d[_f]!==g&&or(d,_f,g,{name:o}),Jl[e]=g,s},hht=cr.set,ght=cr.getterFor("Array Iterator"),nd=pM(Array,"Array",function(t,e){hht(this,{type:"Array Iterator",target:Ra(t),index:0,kind:e})},function(){var t=ght(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Jl.Arguments=Jl.Array,Dd("keys"),Dd("values"),Dd("entries");var vht=YR.charAt,yht=cr.set,mht=cr.getterFor("String Iterator");pM(String,"String",function(t){yht(this,{type:"String Iterator",string:wr(t),index:0})},function(){var t,e=mht(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=vht(n,r),e.index+=t.length,{value:t,done:!1})});var hM=function(t,e,n){var r=ex(e);r in t?ci.f(t,r,Ay(0,n)):t[r]=n},bht=rt.Array,wht=Math.max,lT=t1.f,cT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Eht={f:function(t){return cT&&So(t)=="Window"?function(e){try{return lT(e)}catch{return function(r,o,i){for(var a=dh(r),u=hp(void 0,a),s=hp(a,a),l=bht(wht(s-u,0)),c=0;u<s;u++,c++)hM(l,c,r[u]);return l.length=c,l}(cT)}}(t):lT(Ra(t))}},fT=de(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),S0=Object.isExtensible,mu=de(function(){S0(1)})||fT?function(t){return!!he(t)&&(!fT||So(t)!="ArrayBuffer")&&(!S0||S0(t))}:S0,Dht=!de(function(){return Object.isExtensible(Object.preventExtensions({}))}),yx=Y8(function(t){var e=ci.f,n=!1,r=tx("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=t1.f,s=xt([].splice),l={};l[r]=1,u(l).length&&(t1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},$n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Eht.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,r)){if(!mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!qe(u,r)){if(!mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Dht&&n&&mu(u)&&!qe(u,r)&&i(u),u}};By[r]=!0}),C0=yx.getWeakData,xht=cr.set,Sht=cr.getterFor,Cht=sx.find,Aht=sx.findIndex,Oht=xt([].splice),kht=0,A0=function(t){return t.frozen||(t.frozen=new gM)},gM=function(){this.entries=[]},ww=function(t,e){return Cht(t.entries,function(n){return n[0]===e})};gM.prototype={get:function(t){var e=ww(this,t);if(e)return e[1]},has:function(t){return!!ww(this,t)},set:function(t,e){var n=ww(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Aht(this.entries,function(n){return n[0]===t});return~e&&Oht(this.entries,e,1),!!~e}};var Pf,vM={getConstructor:function(t,e,n,r){var o=t(function(s,l){fx(s,i),xht(s,{type:e,id:kht++,frozen:void 0}),l!=null&&l1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Sht(e),u=function(s,l,c){var f=a(s),p=C0(fn(l),!0);return p===!0?A0(f).set(l,c):p[f.id]=c,s};return u1(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=C0(s);return c===!0?A0(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=C0(s);return c===!0?A0(l).has(s):c&&qe(c,l.id)}}),u1(i,n?{get:function(s){var l=a(this);if(he(s)){var c=C0(s);return c===!0?A0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},O0=cr.enforce,Bht=!rt.ActiveXObject&&"ActiveXObject"in rt,yM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fht=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=xt(u[v]);or(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!he(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(e1(t,!oe(a)||!(o||u.forEach&&!de(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),yx.enable();else if(e1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=de(function(){f.has(1)}),y=QR(function(v){new a(v)}),g=!o&&de(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){fx(v,u);var h=function(b,w,D){var S,x;return Zl&&oe(S=w.constructor)&&S!==D&&he(x=S.prototype)&&x!==D.prototype&&Zl(b,x),b}(new a,v,s);return m!=null&&l1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,$n({global:!0,forced:s!=a},l),s1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",yM,vM);if(IR&&Bht){Pf=vM.getConstructor(yM,"WeakMap",!0),yx.enable();var jf=Fht.prototype,dT=xt(jf.delete),k0=xt(jf.has),pT=xt(jf.get),hT=xt(jf.set);u1(jf,{delete:function(t){if(he(t)&&!mu(t)){var e=O0(this);return e.frozen||(e.frozen=new Pf),dT(this,t)||e.frozen.delete(t)}return dT(this,t)},has:function(t){if(he(t)&&!mu(t)){var e=O0(this);return e.frozen||(e.frozen=new Pf),k0(this,t)||e.frozen.has(t)}return k0(this,t)},get:function(t){if(he(t)&&!mu(t)){var e=O0(this);return e.frozen||(e.frozen=new Pf),k0(this,t)?pT(this,t):e.frozen.get(t)}return pT(this,t)},set:function(t,e){if(he(t)&&!mu(t)){var n=O0(this);n.frozen||(n.frozen=new Pf),k0(this,t)?hT(this,t,e):n.frozen.set(t,e)}else hT(this,t,e);return this}})}var mM={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},Ew=pp("span").classList,gT=Ew&&Ew.constructor&&Ew.constructor.prototype,Tht=gT===Object.prototype?void 0:gT,Dw=Re("iterator"),vT=Re("toStringTag"),xw=nd.values,bM=function(t,e){if(t){if(t[Dw]!==xw)try{ha(t,Dw,xw)}catch{t[Dw]=xw}if(t[vT]||ha(t,vT,e),mM[e]){for(var n in nd)if(t[n]!==nd[n])try{ha(t,n,nd[n])}catch{t[n]=nd[n]}}}};for(var Sw in mM)bM(rt[Sw]&&rt[Sw].prototype,Sw);bM(Tht,"DOMTokenList");var _ht=Dc.EXISTS,Pht=ci.f,wM=Function.prototype,jht=xt(wM.toString),EM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Nht=xt(EM.exec);Fo&&!_ht&&Pht(wM,"name",{configurable:!0,get:function(){try{return Nht(EM,jht(this))[1]}catch{return""}}});var Iht=Re("species"),Lht=fp>=51||!de(function(){var t=[];return(t.constructor={})[Iht]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Rht=Re("species"),Cw=rt.Array,Mht=Math.max;function DM(t){return t.getMenuConfig("uploadVideo")}$n({target:"Array",proto:!0,forced:!Lht},{slice:function(t,e){var n,r,o,i=Ra(this),a=dh(i),u=hp(t,a),s=hp(e===void 0?a:e,a);if(r1(i)&&(n=i.constructor,(ux(n)&&(n===Cw||r1(n.prototype))||he(n)&&(n=n[Rht])===null)&&(n=void 0),n===Cw||n===void 0))return tM(i,u,s);for(r=new(n===void 0?Cw:n)(Mht(s-u,0)),o=0;u<s;u++,o++)u in i&&hM(r,o,i[u]);return r.length=o,r}});var yT=new WeakMap;function zht(t,e){return Sy(this,void 0,void 0,function(){var n,r,o,i;return Cy(this,function(a){switch(a.label){case 0:return n=function(u){var s=yT.get(u);if(s!=null)return s;var l=DM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=KN(Yv(Yv({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(O,T){return yp(u,O,T)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){var D=w.url,S=D===void 0?"":D,x=w.poster;yp(u,S,x===void 0?"":x),c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),yT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var $ht=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return yp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,y;Sy(this,void 0,void 0,function(){var g,v,m,h,b,w;return Cy(this,function(D){switch(D.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),v=DM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),m=Mft(g),D.label=2;case 2:return[4,m.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,v?[4,v(b,function(S,x){return yp(f,S,x)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,zht(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),d={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(y=m.return)?[4,y.call(m)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Hht=Dc.PROPER,w3=RegExp.prototype,xM=w3.toString,Vht=xt(qR),Uht=de(function(){return xM.call({source:"a",flags:"b"})!="/a/b"}),Wht=Hht&&xM.name!="toString";function Aw(){return XR("w-e-insert-video")}(Uht||Wht)&&or(RegExp.prototype,"toString",function(){var t=fn(this),e=wr(t.source),n=t.flags;return"/"+e+"/"+wr(n===void 0&&cp(w3,t)&&!("flags"in w3)?Vht(t):n)},{unsafe:!0});var Ght=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Aw(),this.heightInputId=Aw(),this.buttonId=Aw()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Ru(nr(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=Ru(nr(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=Ru(dc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var D=d.find("#"+r).val().trim(),S=d.find("#"+o).val().trim(),x=parseInt(D),O=parseInt(S),T=x?x.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:T,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=d}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return y[0];var v=g.width,m=v===void 0?"auto":v,h=g.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),y[0]},t}(),qht={renderElems:[$dt],elemsToHtml:[Hdt],preParseHtml:[Gdt],parseElemsHtml:[tpt],menus:[{key:"insertVideo",factory:function(){return new nht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new $ht},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new Ght}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=Ru(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};qn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var mT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mx(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,hg,B0=function(t){return t&&t.Math==Math&&t},et=B0(typeof globalThis=="object"&&globalThis)||B0(typeof window=="object"&&window)||B0(typeof self=="object"&&self)||B0(typeof mT=="object"&&mT)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch{return!0}},To=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nf=Function.prototype.call,Jt=Nf.bind?Nf.bind(Nf):function(){return Nf.apply(Nf,arguments)},bT={}.propertyIsEnumerable,wT=Object.getOwnPropertyDescriptor,Kht={f:wT&&!bT.call({1:2},1)?function(t){var e=wT(this,t);return!!e&&e.enumerable}:bT},_y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},SM=Function.prototype,E3=SM.bind,D3=SM.call,Yht=E3&&E3.bind(D3),Tt=E3?function(t){return t&&Yht(D3,t)}:function(t){return t&&function(){return D3.apply(t,arguments)}},Xht=Tt({}.toString),Zht=Tt("".slice),Qr=function(t){return Zht(Xht(t),8,-1)},Ow=et.Object,Jht=Tt("".split),bx=ve(function(){return!Ow("z").propertyIsEnumerable(0)})?function(t){return Qr(t)=="String"?Jht(t,""):Ow(t)}:Ow,Qht=et.TypeError,mp=function(t){if(t==null)throw Qht("Can't call method on "+t);return t},Ma=function(t){return bx(mp(t))},ae=function(t){return typeof t=="function"},fe=function(t){return typeof t=="object"?t!==null:ae(t)},t0t=function(t){return ae(t)?t:void 0},os=function(t,e){return arguments.length<2?t0t(et[t]):et[t]&&et[t][e]},bp=Tt({}.isPrototypeOf),Dl=os("navigator","userAgent")||"",ET=et.process,DT=et.Deno,xT=ET&&ET.versions||DT&&DT.version,ST=xT&&xT.v8;ST&&(hg=(Ri=ST.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!hg&&Dl&&(!(Ri=Dl.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=Dl.match(/Chrome\/(\d+)/))&&(hg=+Ri[1]);var wp=hg,x3=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wp&&wp<41}),wx=x3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",e0t=et.Object,kw=wx?function(t){return typeof t=="symbol"}:function(t){var e=os("Symbol");return ae(e)&&bp(e.prototype,e0t(t))},n0t=et.String,f1=function(t){try{return n0t(t)}catch{return"Object"}},r0t=et.TypeError,_a=function(t){if(ae(t))return t;throw r0t(f1(t)+" is not a function")},Ep=function(t,e){var n=t[e];return n==null?void 0:_a(n)},o0t=et.TypeError,i0t=Object.defineProperty,Ex=function(t,e){try{i0t(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},va=et["__core-js_shared__"]||Ex("__core-js_shared__",{}),Dx=mx(function(t){(t.exports=function(e,n){return va[e]||(va[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),a0t=et.Object,xx=function(t){return a0t(mp(t))},u0t=Tt({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return u0t(xx(t),e)},s0t=0,l0t=Math.random(),c0t=Tt(1 .toString),Sx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+c0t(++s0t+l0t,36)},If=Dx("wks"),$u=et.Symbol,CT=$u&&$u.for,f0t=wx?$u:$u&&$u.withoutSetter||Sx,Me=function(t){if(!Ke(If,t)||!x3&&typeof If[t]!="string"){var e="Symbol."+t;x3&&Ke($u,t)?If[t]=$u[t]:If[t]=wx&&CT?CT(e):f0t(e)}return If[t]},d0t=et.TypeError,p0t=Me("toPrimitive"),Cx=function(t){var e=function(n,r){if(!fe(n)||kw(n))return n;var o,i=Ep(n,p0t);if(i){if(r===void 0&&(r="default"),o=Jt(i,n,r),!fe(o)||kw(o))return o;throw d0t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ae(s=a.toString)&&!fe(l=Jt(s,a))||ae(s=a.valueOf)&&!fe(l=Jt(s,a))||u!=="string"&&ae(s=a.toString)&&!fe(l=Jt(s,a)))return l;throw o0t("Can't convert object to primitive value")}(n,r)}(t,"string");return kw(e)?e:e+""},S3=et.document,h0t=fe(S3)&&fe(S3.createElement),Dp=function(t){return h0t?S3.createElement(t):{}},CM=!To&&!ve(function(){return Object.defineProperty(Dp("div"),"a",{get:function(){return 7}}).a!=7}),AT=Object.getOwnPropertyDescriptor,Ax={f:To?AT:function(t,e){if(t=Ma(t),e=Cx(e),CM)try{return AT(t,e)}catch{}if(Ke(t,e))return _y(!Jt(Kht.f,t,e),t[e])}},g0t=et.String,v0t=et.TypeError,dn=function(t){if(fe(t))return t;throw v0t(g0t(t)+" is not an object")},y0t=et.TypeError,OT=Object.defineProperty,fi={f:To?OT:function(t,e,n){if(dn(t),e=Cx(e),dn(n),CM)try{return OT(t,e,n)}catch{}if("get"in n||"set"in n)throw y0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Co=To?function(t,e,n){return fi.f(t,e,_y(1,n))}:function(t,e,n){return t[e]=n,t},m0t=Tt(Function.toString);ae(va.inspectSource)||(va.inspectSource=function(t){return m0t(t)});var d1,Ad,p1,Py=va.inspectSource,kT=et.WeakMap,AM=ae(kT)&&/native code/.test(Py(kT)),BT=Dx("keys"),Ox=function(t){return BT[t]||(BT[t]=Sx(t))},jy={},C3=et.TypeError,b0t=et.WeakMap;if(AM||va.state){var nu=va.state||(va.state=new b0t),w0t=Tt(nu.get),FT=Tt(nu.has),E0t=Tt(nu.set);d1=function(t,e){if(FT(nu,t))throw new C3("Object already initialized");return e.facade=t,E0t(nu,t,e),e},Ad=function(t){return w0t(nu,t)||{}},p1=function(t){return FT(nu,t)}}else{var Gs=Ox("state");jy[Gs]=!0,d1=function(t,e){if(Ke(t,Gs))throw new C3("Object already initialized");return e.facade=t,Co(t,Gs,e),e},Ad=function(t){return Ke(t,Gs)?t[Gs]:{}},p1=function(t){return Ke(t,Gs)}}var fr={set:d1,get:Ad,has:p1,enforce:function(t){return p1(t)?Ad(t):d1(t,{})},getterFor:function(t){return function(e){var n;if(!fe(e)||(n=Ad(e)).type!==t)throw C3("Incompatible receiver, "+t+" required");return n}}},OM=Function.prototype,D0t=To&&Object.getOwnPropertyDescriptor,Bw=Ke(OM,"name"),hh={EXISTS:Bw,PROPER:Bw&&(function(){}).name==="something",CONFIGURABLE:Bw&&(!To||To&&D0t(OM,"name").configurable)},ir=mx(function(t){var e=hh.CONFIGURABLE,n=fr.get,r=fr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==d)&&Co(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Co(i,a,u)):f?i[a]=u:Ex(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||Py(this)})}),x0t=Math.ceil,S0t=Math.floor,kx=function(t){var e=+t;return e!=e||e===0?0:(e>0?S0t:x0t)(e)},C0t=Math.max,A0t=Math.min,xp=function(t,e){var n=kx(t);return n<0?C0t(n+e,0):A0t(n,e)},O0t=Math.min,kM=function(t){return t>0?O0t(kx(t),9007199254740991):0},gh=function(t){return kM(t.length)},k0t=function(t){return function(e,n,r){var o,i=Ma(e),a=gh(i),u=xp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},B0t=k0t(!1),TT=Tt([].push),BM=function(t,e){var n,r=Ma(t),o=0,i=[];for(n in r)!Ke(jy,n)&&Ke(r,n)&&TT(i,n);for(;e.length>o;)Ke(r,n=e[o++])&&(~B0t(i,n)||TT(i,n));return i},h1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],F0t=h1.concat("length","prototype"),g1={f:Object.getOwnPropertyNames||function(t){return BM(t,F0t)}},T0t={f:Object.getOwnPropertySymbols},_0t=Tt([].concat),P0t=os("Reflect","ownKeys")||function(t){var e=g1.f(dn(t)),n=T0t.f;return n?_0t(e,n(t)):e},j0t=function(t,e){for(var n=P0t(e),r=fi.f,o=Ax.f,i=0;i<n.length;i++){var a=n[i];Ke(t,a)||r(t,a,o(e,a))}},N0t=/#|\.prototype\./,vh=function(t,e){var n=L0t[I0t(t)];return n==M0t||n!=R0t&&(ae(e)?ve(e):!!e)},I0t=vh.normalize=function(t){return String(t).replace(N0t,".").toLowerCase()},L0t=vh.data={},R0t=vh.NATIVE="N",M0t=vh.POLYFILL="P",v1=vh,z0t=Ax.f,Eo=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?et:l?et[u]||Ex(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=z0t(n,r))&&a.value:n[r],!v1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;j0t(i,o)}(t.sham||o&&o.sham)&&Co(i,"sham",!0),ir(n,r,i,t)}},y1=Array.isArray||function(t){return Qr(t)=="Array"},FM={};FM[Me("toStringTag")]="z";var Bx=String(FM)==="[object z]",$0t=Me("toStringTag"),H0t=et.Object,V0t=Qr(function(){return arguments}())=="Arguments",Ny=Bx?Qr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=H0t(t),$0t))=="string"?n:V0t?Qr(e):(r=Qr(e))=="Object"&&ae(e.callee)?"Arguments":r},TM=function(){},U0t=[],_M=os("Reflect","construct"),Fx=/^\s*(?:class|function)\b/,W0t=Tt(Fx.exec),G0t=!Fx.exec(TM),Lf=function(t){if(!ae(t))return!1;try{return _M(TM,U0t,t),!0}catch{return!1}},Tx=!_M||ve(function(){var t;return Lf(Lf.call)||!Lf(Object)||!Lf(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(Ny(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return G0t||!!W0t(Fx,Py(t))}:Lf,PM=function(t,e,n){var r=Cx(e);r in t?fi.f(t,r,_y(0,n)):t[r]=n},q0t=Me("species"),jM=Tt([].slice),K0t=wp>=51||!ve(function(){var t=[];return(t.constructor={})[q0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Y0t=Me("species"),Fw=et.Array,X0t=Math.max;Eo({target:"Array",proto:!0,forced:!K0t},{slice:function(t,e){var n,r,o,i=Ma(this),a=gh(i),u=xp(t,a),s=xp(e===void 0?a:e,a);if(y1(i)&&(n=i.constructor,(Tx(n)&&(n===Fw||y1(n.prototype))||fe(n)&&(n=n[Y0t])===null)&&(n=void 0),n===Fw||n===void 0))return jM(i,u,s);for(r=new(n===void 0?Fw:n)(X0t(s-u,0)),o=0;u<s;u++,o++)u in i&&PM(r,o,i[u]);return r.length=o,r}});var Z0t=Bx?{}.toString:function(){return"[object "+Ny(this)+"]"};Bx||ir(Object.prototype,"toString",Z0t,{unsafe:!0});var F0,J0t=et.String,ya=function(t){if(Ny(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return J0t(t)},NM=function(){var t=dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},_x=et.RegExp,A3=ve(function(){var t=_x("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Q0t=A3||ve(function(){return!_x("a","y").sticky}),IM={BROKEN_CARET:A3||ve(function(){var t=_x("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Q0t,UNSUPPORTED_Y:A3},tgt=Object.keys||function(t){return BM(t,h1)},egt=To?Object.defineProperties:function(t,e){dn(t);for(var n,r=Ma(e),o=tgt(e),i=o.length,a=0;i>a;)fi.f(t,n=o[a++],r[n]);return t},O3=os("document","documentElement"),LM=Ox("IE_PROTO"),Tw=function(){},RM=function(t){return"<script>"+t+"<\/script>"},_T=function(t){t.write(RM("")),t.close();var e=t.parentWindow.Object;return t=null,e},gg=function(){try{F0=new ActiveXObject("htmlfile")}catch{}var t,e;gg=typeof document<"u"?document.domain&&F0?_T(F0):((e=Dp("iframe")).style.display="none",O3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(RM("document.F=Object")),t.close(),t.F):_T(F0);for(var n=h1.length;n--;)delete gg.prototype[h1[n]];return gg()};jy[LM]=!0;var PT,_w,Px=Object.create||function(t,e){var n;return t!==null?(Tw.prototype=dn(t),n=new Tw,Tw.prototype=null,n[LM]=t):n=gg(),e===void 0?n:egt(n,e)},ngt=et.RegExp,rgt=ve(function(){var t=ngt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),ogt=et.RegExp,igt=ve(function(){var t=ogt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),agt=fr.get,ugt=Dx("native-string-replace",String.prototype.replace),m1=RegExp.prototype.exec,k3=m1,sgt=Tt("".charAt),lgt=Tt("".indexOf),cgt=Tt("".replace),Pw=Tt("".slice),jw=(_w=/b*/g,Jt(m1,PT=/a/,"a"),Jt(m1,_w,"a"),PT.lastIndex!==0||_w.lastIndex!==0),jT=IM.BROKEN_CARET,Nw=/()??/.exec("")[1]!==void 0;(jw||Nw||jT||rgt||igt)&&(k3=function(t){var e,n,r,o,i,a,u,s=this,l=agt(s),c=ya(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Jt(k3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=jT&&s.sticky,y=Jt(NM,s),g=s.source,v=0,m=c;if(d&&(y=cgt(y,"y",""),lgt(y,"g")===-1&&(y+="g"),m=Pw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&sgt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Nw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),jw&&(r=s.lastIndex),o=Jt(m1,d?n:s,m),d?o?(o.input=Pw(o.input,v),o[0]=Pw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:jw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Nw&&o&&o.length>1&&Jt(ugt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Px(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Sp=k3;Eo({target:"RegExp",proto:!0,forced:/./.exec!==Sp},{exec:Sp});var jx=Function.prototype,NT=jx.apply,fgt=jx.bind,IT=jx.call,MM=typeof Reflect=="object"&&Reflect.apply||(fgt?IT.bind(NT):function(){return IT.apply(NT,arguments)}),dgt=Me("species"),Iw=RegExp.prototype,pgt=Me("match"),hgt=et.TypeError,ggt=Me("species"),zM=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[ggt])==null?e:function(o){if(Tx(o))return o;throw hgt(f1(o)+" is not a constructor")}(n)},vgt=Tt("".charAt),LT=Tt("".charCodeAt),ygt=Tt("".slice),RT=function(t){return function(e,n){var r,o,i=ya(mp(e)),a=kx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=LT(i,a))<55296||r>56319||a+1===u||(o=LT(i,a+1))<56320||o>57343?t?vgt(i,a):r:t?ygt(i,a,a+2):o-56320+(r-55296<<10)+65536}},$M={codeAt:RT(!1),charAt:RT(!0)},mgt=$M.charAt,bgt=function(t,e,n){return e+(n?mgt(t,e).length:1)},wgt=et.Array,Egt=Math.max,B3=function(t,e,n){for(var r=gh(t),o=xp(e,r),i=xp(n===void 0?r:n,r),a=wgt(Egt(i-o,0)),u=0;o<i;o++,u++)PM(a,u,t[o]);return a.length=u,a},Dgt=et.TypeError,MT=function(t,e){var n=t.exec;if(ae(n)){var r=Jt(n,t,e);return r!==null&&dn(r),r}if(Qr(t)==="RegExp")return Jt(Sp,t,e);throw Dgt("RegExp#exec called on incompatible receiver")},qs=IM.UNSUPPORTED_Y,xgt=Math.min,HM=[].push,Sgt=Tt(/./.exec),Ks=Tt(HM),Rf=Tt("".slice);(function(t,e,n,r){var o=Me(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[dgt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Tt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=ya(mp(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!fe(g=d)||!((v=g[pgt])!==void 0?v:Qr(g)=="RegExp"))return Jt(c,m,d,h);for(var b,w,D,S=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,T=new RegExp(d.source,x+"g");(b=Jt(Sp,T,m))&&!((w=T.lastIndex)>O&&(Ks(S,Rf(m,O,b.index)),b.length>1&&b.index<m.length&&MM(HM,S,B3(b,1)),D=b[0].length,O=w,S.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&Sgt(T,"")||Ks(S,""):Ks(S,Rf(m,O)),S.length>h?B3(S,0,h):S}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:Jt(c,this,d,y)}:c,[function(d,y){var g=mp(this),v=d==null?void 0:Ep(d,l);return v?Jt(v,d,g,y):Jt(p,ya(g),d,y)},function(d,y){var g=dn(this),v=ya(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=zM(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(qs?"g":"y"),D=new h(qs?"^(?:"+g.source+")":g,w),S=y===void 0?4294967295:y>>>0;if(S===0)return[];if(v.length===0)return MT(D,v)===null?[v]:[];for(var x=0,O=0,T=[];O<v.length;){D.lastIndex=qs?0:O;var R,H=MT(D,qs?Rf(v,O):v);if(H===null||(R=xgt(kM(D.lastIndex+(qs?O:0)),v.length))===x)O=bgt(v,O,b);else{if(Ks(T,Rf(v,x,O)),T.length===S)return T;for(var M=1;M<=H.length-1;M++)if(Ks(T,H[M]),T.length===S)return T;O=x=R}}return Ks(T,Rf(v,x)),T}]}(o,""[t],function(l,c,f,p,d){var y=Tt(l),g=c.exec;return g===Sp||g===Iw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ir(String.prototype,t,s[0]),ir(Iw,o,s[1])}r&&Co(Iw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),qs);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var b1=function(){return b1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},b1.apply(this,arguments)};function Nx(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Ix(t,e){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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Cgt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var F3=Me("unscopables"),T3=Array.prototype;T3[F3]==null&&fi.f(T3,F3,{configurable:!0,value:Px(null)});var Hu,zT,$T,Lw=function(t){T3[F3][t]=!0},Ql={},Agt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),HT=Ox("IE_PROTO"),_3=et.Object,Ogt=_3.prototype,w1=Agt?_3.getPrototypeOf:function(t){var e=xx(t);if(Ke(e,HT))return e[HT];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof _3?Ogt:null},P3=Me("iterator"),VM=!1;[].keys&&("next"in($T=[].keys())?(zT=w1(w1($T)))!==Object.prototype&&(Hu=zT):VM=!0);var kgt=Hu==null||ve(function(){var t={};return Hu[P3].call(t)!==t});kgt&&(Hu={}),ae(Hu[P3])||ir(Hu,P3,function(){return this});var Lx={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:VM},Bgt=fi.f,VT=Me("toStringTag"),E1=function(t,e,n){t&&!Ke(t=n?t:t.prototype,VT)&&Bgt(t,VT,{configurable:!0,value:e})},Fgt=Lx.IteratorPrototype,Tgt=function(){return this},_gt=et.String,Pgt=et.TypeError,tc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||ae(i))return i;throw Pgt("Can't set "+_gt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),jgt=hh.PROPER,Ngt=hh.CONFIGURABLE,UT=Lx.IteratorPrototype,T0=Lx.BUGGY_SAFARI_ITERATORS,Mf=Me("iterator"),Igt=function(){return this},UM=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Px(Fgt,{next:_y(1,b)}),E1(m,D,!1),Ql[D]=Tgt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!T0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Mf]||d["@@iterator"]||o&&d[o],g=!T0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=w1(v.call(new t)))!==Object.prototype&&u.next&&(w1(u)!==UT&&(tc?tc(u,UT):ae(u[Mf])||ir(u,Mf,Igt)),E1(u,f,!0)),jgt&&o=="values"&&y&&y.name!=="values"&&(Ngt?Co(d,"name","values"):(p=!0,g=function(){return Jt(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(T0||p||!(l in d))&&ir(d,l,s[l]);else Eo({target:e,proto:!0,forced:T0||p},s);return d[Mf]!==g&&ir(d,Mf,g,{name:o}),Ql[e]=g,s},Lgt=fr.set,Rgt=fr.getterFor("Array Iterator"),rd=UM(Array,"Array",function(t,e){Lgt(this,{type:"Array Iterator",target:Ma(t),index:0,kind:e})},function(){var t=Rgt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ql.Arguments=Ql.Array,Lw("keys"),Lw("values"),Lw("entries");var Mgt=$M.charAt,zgt=fr.set,$gt=fr.getterFor("String Iterator");UM(String,"String",function(t){zgt(this,{type:"String Iterator",string:ya(t),index:0})},function(){var t,e=$gt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Mgt(n,r),e.index+=t.length,{value:t,done:!1})});var D1=function(t,e,n){for(var r in e)ir(t,r,e[r],n);return t},WT=g1.f,GT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hgt={f:function(t){return GT&&Qr(t)=="Window"?function(e){try{return WT(e)}catch{return B3(GT)}}(t):WT(Ma(t))}},qT=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),_0=Object.isExtensible,bu=ve(function(){_0(1)})||qT?function(t){return!!fe(t)&&(!qT||Qr(t)!="ArrayBuffer")&&(!_0||_0(t))}:_0,Vgt=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),Rx=mx(function(t){var e=fi.f,n=!1,r=Sx("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=g1.f,s=Tt([].splice),l={};l[r]=1,u(l).length&&(g1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Eo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hgt.f}))},fastKey:function(u,s){if(!fe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,r)){if(!bu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ke(u,r)){if(!bu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Vgt&&n&&bu(u)&&!Ke(u,r)&&i(u),u}};jy[r]=!0}),KT=Tt(Tt.bind),Cp=function(t,e){return _a(t),e===void 0?t:KT?KT(t,e):function(){return t.apply(e,arguments)}},Ugt=Me("iterator"),Wgt=Array.prototype,Ggt=Me("iterator"),YT=function(t){if(t!=null)return Ep(t,Ggt)||Ep(t,"@@iterator")||Ql[Ny(t)]},qgt=et.TypeError,XT=function(t,e,n){var r,o;dn(t);try{if(!(r=Ep(t,"return"))){if(e==="throw")throw n;return n}r=Jt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return dn(r),n},Kgt=et.TypeError,vg=function(t,e){this.stopped=t,this.result=e},ZT=vg.prototype,x1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Cp(e,f),v=function(h){return r&&XT(r,"normal",h),new vg(!0,h)},m=function(h){return p?(dn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=YT(t)))throw Kgt(f1(t)+" is not iterable");if((c=o)!==void 0&&(Ql.Array===c||Wgt[Ugt]===c)){for(i=0,a=gh(t);a>i;i++)if((u=m(t[i]))&&bp(ZT,u))return u;return new vg(!1)}r=function(h,b){var w=arguments.length<2?YT(h):b;if(_a(w))return dn(Jt(w,h));throw qgt(f1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=Jt(s,r)).done;){try{u=m(l.value)}catch(h){XT(r,"throw",h)}if(typeof u=="object"&&u&&bp(ZT,u))return u}return new vg(!1)},Ygt=et.TypeError,Mx=function(t,e){if(bp(e,t))return t;throw Ygt("Incorrect invocation")},WM=Me("iterator"),GM=!1;try{var Xgt=0,JT={next:function(){return{done:!!Xgt++}},return:function(){GM=!0}};JT[WM]=function(){return this},Array.from(JT,function(){throw 2})}catch{}var qM=function(t,e){if(!e&&!GM)return!1;var n=!1;try{var r={};r[WM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Zgt=Me("species"),QT=et.Array,Jgt=function(t,e){return new(function(n){var r;return y1(n)&&(r=n.constructor,(Tx(r)&&(r===QT||y1(r.prototype))||fe(r)&&(r=r[Zgt])===null)&&(r=void 0)),r===void 0?QT:r}(t))(e===0?0:e)},t_=Tt([].push),Mi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=xx(s),g=bx(y),v=Cp(l,c),m=gh(g),h=0,b=f||Jgt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:t_(w,p)}else switch(t){case 4:return!1;case 7:t_(w,p)}return i?-1:r||o?o:w}},zx={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},P0=Rx.getWeakData,Qgt=fr.set,tvt=fr.getterFor,evt=zx.find,nvt=zx.findIndex,rvt=Tt([].splice),ovt=0,j0=function(t){return t.frozen||(t.frozen=new KM)},KM=function(){this.entries=[]},Rw=function(t,e){return evt(t.entries,function(n){return n[0]===e})};KM.prototype={get:function(t){var e=Rw(this,t);if(e)return e[1]},has:function(t){return!!Rw(this,t)},set:function(t,e){var n=Rw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=nvt(this.entries,function(n){return n[0]===t});return~e&&rvt(this.entries,e,1),!!~e}};var zf,YM={getConstructor:function(t,e,n,r){var o=t(function(s,l){Mx(s,i),Qgt(s,{type:e,id:ovt++,frozen:void 0}),l!=null&&x1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=tvt(e),u=function(s,l,c){var f=a(s),p=P0(dn(l),!0);return p===!0?j0(f).set(l,c):p[f.id]=c,s};return D1(i,{delete:function(s){var l=a(this);if(!fe(s))return!1;var c=P0(s);return c===!0?j0(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!fe(s))return!1;var c=P0(s);return c===!0?j0(l).has(s):c&&Ke(c,l.id)}}),D1(i,n?{get:function(s){var l=a(this);if(fe(s)){var c=P0(s);return c===!0?j0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},N0=fr.enforce,ivt=!et.ActiveXObject&&"ActiveXObject"in et,XM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},avt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Tt(u[v]);ir(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!fe(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(v1(t,!ae(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),Rx.enable();else if(v1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ve(function(){f.has(1)}),y=qM(function(v){new a(v)}),g=!o&&ve(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){Mx(v,u);var h=function(b,w,D){var S,x;return tc&&ae(S=w.constructor)&&S!==D&&fe(x=S.prototype)&&x!==D.prototype&&tc(b,x),b}(new a,v,s);return m!=null&&x1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Eo({global:!0,forced:s!=a},l),E1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",XM,YM);if(AM&&ivt){zf=YM.getConstructor(XM,"WeakMap",!0),Rx.enable();var $f=avt.prototype,e_=Tt($f.delete),I0=Tt($f.has),n_=Tt($f.get),r_=Tt($f.set);D1($f,{delete:function(t){if(fe(t)&&!bu(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),e_(this,t)||e.frozen.delete(t)}return e_(this,t)},has:function(t){if(fe(t)&&!bu(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),I0(this,t)||e.frozen.has(t)}return I0(this,t)},get:function(t){if(fe(t)&&!bu(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),I0(this,t)?n_(this,t):e.frozen.get(t)}return n_(this,t)},set:function(t,e){if(fe(t)&&!bu(t)){var n=N0(this);n.frozen||(n.frozen=new zf),I0(this,t)?r_(this,t,e):n.frozen.set(t,e)}else r_(this,t,e);return this}})}var S1={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},Mw=Dp("span").classList,o_=Mw&&Mw.constructor&&Mw.constructor.prototype,ZM=o_===Object.prototype?void 0:o_,zw=Me("iterator"),i_=Me("toStringTag"),$w=rd.values,JM=function(t,e){if(t){if(t[zw]!==$w)try{Co(t,zw,$w)}catch{t[zw]=$w}if(t[i_]||Co(t,i_,e),S1[e]){for(var n in rd)if(t[n]!==rd[n])try{Co(t,n,rd[n])}catch{t[n]=rd[n]}}}};for(var Hw in S1)JM(et[Hw]&&et[Hw].prototype,Hw);JM(ZM,"DOMTokenList");var QM=function(t,e){var n=[][t];return!!n&&ve(function(){n.call(null,e||function(){throw 1},1)})},uvt=zx.forEach,Vw=QM("forEach")?[].forEach:function(t){return uvt(this,t,arguments.length>1?arguments[1]:void 0)},tz=function(t){if(t&&t.forEach!==Vw)try{Co(t,"forEach",Vw)}catch{t.forEach=Vw}};for(var Uw in S1)S1[Uw]&&tz(et[Uw]&&et[Uw].prototype);tz(ZM);var Ap,Ys,a_,Ww,C1=et.Promise,u_=Me("species"),ez=/(?:ipad|iphone|ipod).*applewebkit/i.test(Dl),ma=Qr(et.process)=="process",j3=et.setImmediate,N3=et.clearImmediate,svt=et.process,Gw=et.Dispatch,lvt=et.Function,s_=et.MessageChannel,cvt=et.String,qw=0,Od={};try{Ap=et.location}catch{}var $x=function(t){if(Ke(Od,t)){var e=Od[t];delete Od[t],e()}},Kw=function(t){return function(){$x(t)}},l_=function(t){$x(t.data)},c_=function(t){et.postMessage(cvt(t),Ap.protocol+"//"+Ap.host)};j3&&N3||(j3=function(t){var e=jM(arguments,1);return Od[++qw]=function(){MM(ae(t)?t:lvt(t),void 0,e)},Ys(qw),qw},N3=function(t){delete Od[t]},ma?Ys=function(t){svt.nextTick(Kw(t))}:Gw&&Gw.now?Ys=function(t){Gw.now(Kw(t))}:s_&&!ez?(Ww=(a_=new s_).port2,a_.port1.onmessage=l_,Ys=Cp(Ww.postMessage,Ww)):et.addEventListener&&ae(et.postMessage)&&!et.importScripts&&Ap&&Ap.protocol!=="file:"&&!ve(c_)?(Ys=c_,et.addEventListener("message",l_,!1)):Ys="onreadystatechange"in Dp("script")?function(t){O3.appendChild(Dp("script")).onreadystatechange=function(){O3.removeChild(this),$x(t)}}:function(t){setTimeout(Kw(t),0)});var Hf,hu,kd,il,Yw,Xw,Zw,f_,nz={set:j3,clear:N3},fvt=/ipad|iphone|ipod/i.test(Dl)&&et.Pebble!==void 0,dvt=/web0s(?!.*chrome)/i.test(Dl),pvt=Ax.f,Jw=nz.set,d_=et.MutationObserver||et.WebKitMutationObserver,p_=et.document,h_=et.process,L0=et.Promise,g_=pvt(et,"queueMicrotask"),rz=g_&&g_.value;rz||(Hf=function(){var t,e;for(ma&&(t=h_.domain)&&t.exit();hu;){e=hu.fn,hu=hu.next;try{e()}catch(n){throw hu?il():kd=void 0,n}}kd=void 0,t&&t.enter()},ez||ma||dvt||!d_||!p_?!fvt&&L0&&L0.resolve?((Zw=L0.resolve(void 0)).constructor=L0,f_=Cp(Zw.then,Zw),il=function(){f_(Hf)}):ma?il=function(){h_.nextTick(Hf)}:(Jw=Cp(Jw,et),il=function(){Jw(Hf)}):(Yw=!0,Xw=p_.createTextNode(""),new d_(Hf).observe(Xw,{characterData:!0}),il=function(){Xw.data=Yw=!Yw}));var Qw,v_,oz,y_,iz=rz||function(t){var e={fn:t,next:void 0};kd&&(kd.next=e),hu||(hu=e,il()),kd=e},hvt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=_a(e),this.reject=_a(n)},Hx={f:function(t){return new hvt(t)}},I3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},gvt=typeof window=="object",az=nz.set,vvt=Me("species"),Zo="Promise",m_=fr.getterFor(Zo),yvt=fr.set,mvt=fr.getterFor(Zo),su=C1&&C1.prototype,Do=C1,Vf=su,uz=et.TypeError,L3=et.document,Vx=et.process,xl=Hx.f,bvt=xl,wvt=!!(L3&&L3.createEvent&&et.dispatchEvent),sz=ae(et.PromiseRejectionEvent),lz=!1,Bd=v1(Zo,function(){var t=Py(Do),e=t!==String(Do);if(!e&&wp===66)return!0;if(wp>=51&&/native code/.test(t))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[vvt]=r,!(lz=n.then(function(){})instanceof r)||!e&&gvt&&!sz}),Evt=Bd||!qM(function(t){Do.all(t).catch(function(){})}),cz=function(t){var e;return!(!fe(t)||!ae(e=t.then))&&e},Ux=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;iz(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&xvt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(uz("Promise-chain cycle")):(u=cz(a))?Jt(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Dvt(t)})}},fz=function(t,e,n){var r,o;wvt?((r=L3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!sz&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Dvt=function(t){Jt(az,et,function(){var e,n=t.facade,r=t.value;if(b_(t)&&(e=I3(function(){ma?Vx.emit("unhandledRejection",r,n):fz("unhandledrejection",n,r)}),t.rejection=ma||b_(t)?2:1,e.error))throw e.value})},b_=function(t){return t.rejection!==1&&!t.parent},xvt=function(t){Jt(az,et,function(){var e=t.facade;ma?Vx.emit("rejectionHandled",e):fz("rejectionhandled",e,t.value)})},fl=function(t,e,n){return function(r){t(e,r,n)}},Sl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Ux(t,!0))},R3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw uz("Promise can't be resolved itself");var r=cz(e);r?iz(function(){var o={done:!1};try{Jt(r,e,fl(R3,o,t),fl(Sl,o,t))}catch(i){Sl(o,i,t)}}):(t.value=e,t.state=1,Ux(t,!1))}catch(o){Sl({done:!1},o,t)}}};if(Bd&&(Vf=(Do=function(t){Mx(this,Vf),_a(t),Jt(Qw,this);var e=m_(this);try{t(fl(R3,e),fl(Sl,e))}catch(n){Sl(e,n)}}).prototype,(Qw=function(t){yvt(this,{type:Zo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=D1(Vf,{then:function(t,e){var n=mvt(this),r=n.reactions,o=xl(zM(this,Do));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=ma?Vx.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&Ux(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),v_=function(){var t=new Qw,e=m_(t);this.promise=t,this.resolve=fl(R3,e),this.reject=fl(Sl,e)},Hx.f=xl=function(t){return t===Do||t===oz?new v_(t):bvt(t)},ae(C1)&&su!==Object.prototype)){y_=su.then,lz||(ir(su,"then",function(t,e){var n=this;return new Do(function(r,o){Jt(y_,n,r,o)}).then(t,e)},{unsafe:!0}),ir(su,"catch",Vf.catch,{unsafe:!0}));try{delete su.constructor}catch{}tc&&tc(su,Vf)}Eo({global:!0,wrap:!0,forced:Bd},{Promise:Do}),E1(Do,Zo,!1),function(t){var e=os("Promise"),n=fi.f;To&&e&&!e[u_]&&n(e,u_,{configurable:!0,get:function(){return this}})}(),oz=os(Zo),Eo({target:Zo,stat:!0,forced:Bd},{reject:function(t){var e=xl(this);return Jt(e.reject,void 0,t),e.promise}}),Eo({target:Zo,stat:!0,forced:Bd},{resolve:function(t){return function(e,n){if(dn(e),fe(n)&&n.constructor===e)return n;var r=Hx.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Eo({target:Zo,stat:!0,forced:Evt},{all:function(t){var e=this,n=xl(e),r=n.resolve,o=n.reject,i=I3(function(){var a=_a(e.resolve),u=[],s=0,l=1;x1(t,function(c){var f=s++,p=!1;l++,Jt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=xl(e),r=n.reject,o=I3(function(){var i=_a(e.resolve);x1(t,function(a){Jt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Svt=hh.PROPER,M3=RegExp.prototype,dz=M3.toString,Cvt=Tt(NM),Avt=ve(function(){return dz.call({source:"a",flags:"b"})!="/a/b"}),Ovt=Svt&&dz.name!="toString";(Avt||Ovt)&&ir(RegExp.prototype,"toString",function(){var t=dn(this),e=ya(t.source),n=t.flags;return"/"+e+"/"+ya(n===void 0&&bp(M3,t)&&!("flags"in M3)?Cvt(t):n)},{unsafe:!0});var kvt=hh.EXISTS,Bvt=fi.f,pz=Function.prototype,Fvt=Tt(pz.toString),hz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Tvt=Tt(hz.exec);To&&!kvt&&Bvt(pz,"name",{configurable:!0,get:function(){try{return Tvt(hz,Fvt(this))[1]}catch{return""}}});var w_=new WeakMap;function gz(t){return t.getMenuConfig("uploadImage")}function _vt(t,e){return Nx(this,void 0,void 0,function(){return Ix(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Tu(t,a,e.name,u),r("ok")}}})]})})}function Pvt(t,e){return Nx(this,void 0,void 0,function(){var n,r,o,i;return Ix(this,function(a){switch(a.label){case 0:return n=function(u){var s=w_.get(u);if(s!=null)return s;var l=gz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=KN(b1(b1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(R,H,M){return Tu(u,R,H,M)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Tu(u,M,U,W===void 0?"":W)});else{var D=w.url,S=D===void 0?"":D,x=w.alt,O=x===void 0?"":x,T=w.href;Tu(u,S,O,T===void 0?"":T)}c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),w_.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function vz(t,e){var n,r;return Nx(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return Ix(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=gz(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=Cgt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,_vt(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(y,g,v){return Tu(t,y,g,v)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,Pvt(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.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 jvt=Tt([].join),Nvt=bx!=Object,Ivt=QM("join",",");Eo({target:"Array",proto:!0,forced:Nvt||!Ivt},{join:function(t){return jvt(Ma(this),t===void 0?",":t)}}),Tr&&(B.fn.append=Tr),ko&&(B.fn.on=ko),Ll&&(B.fn.remove=Ll),Oo&&(B.fn.val=Oo),xA&&(B.fn.click=xA),Pl&&(B.fn.hide=Pl);var Lvt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return cy(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return Tu(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;vz(e,c)})}},t}(),Rvt={menus:[{key:"uploadImage",factory:function(){return new Lvt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(cy(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?vz(t,o):e(r)}},n}};qn("en",{highLightModule:{selectLang:"Language"}}),qn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var A1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wx(t){var e={exports:{}};return t(e,e.exports),e.exports}var zi,yg,R0=function(t){return t&&t.Math==Math&&t},Nt=R0(typeof globalThis=="object"&&globalThis)||R0(typeof window=="object"&&window)||R0(typeof self=="object"&&self)||R0(typeof A1=="object"&&A1)||function(){return this}()||Function("return this")(),Mvt=Object.defineProperty,Gx=function(t,e){try{Mvt(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},ba=Nt["__core-js_shared__"]||Gx("__core-js_shared__",{}),qx=Wx(function(t){(t.exports=function(e,n){return ba[e]||(ba[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yz=Function.prototype,z3=yz.bind,$3=yz.call,zvt=z3&&z3.bind($3),Qt=z3?function(t){return t&&zvt($3,t)}:function(t){return t&&function(){return $3.apply(t,arguments)}},$vt=Nt.TypeError,ec=function(t){if(t==null)throw $vt("Can't call method on "+t);return t},Hvt=Nt.Object,Kx=function(t){return Hvt(ec(t))},Vvt=Qt({}.hasOwnProperty),Br=Object.hasOwn||function(t,e){return Vvt(Kx(t),e)},Uvt=0,Wvt=Math.random(),Gvt=Qt(1 .toString),mz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Gvt(++Uvt+Wvt,36)},On=function(t){return typeof t=="function"},qvt=function(t){return On(t)?t:void 0},yh=function(t,e){return arguments.length<2?qvt(Nt[t]):Nt[t]&&Nt[t][e]},t4=yh("navigator","userAgent")||"",E_=Nt.process,D_=Nt.Deno,x_=E_&&E_.versions||D_&&D_.version,S_=x_&&x_.v8;S_&&(yg=(zi=S_.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!yg&&t4&&(!(zi=t4.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=t4.match(/Chrome\/(\d+)/))&&(yg=+zi[1]);var C_=yg,ln=function(t){try{return!!t()}catch{return!0}},H3=!!Object.getOwnPropertySymbols&&!ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&C_&&C_<41}),Yx=H3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=qx("wks"),Vu=Nt.Symbol,A_=Vu&&Vu.for,Kvt=Yx?Vu:Vu&&Vu.withoutSetter||mz,za=function(t){if(!Br(Uf,t)||!H3&&typeof Uf[t]!="string"){var e="Symbol."+t;H3&&Br(Vu,t)?Uf[t]=Vu[t]:Uf[t]=Yx&&A_?A_(e):Kvt(e)}return Uf[t]},bz={};bz[za("toStringTag")]="z";var Xx=String(bz)==="[object z]",_o=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Wr=function(t){return typeof t=="object"?t!==null:On(t)},V3=Nt.document,Yvt=Wr(V3)&&Wr(V3.createElement),Zx=function(t){return Yvt?V3.createElement(t):{}},wz=!_o&&!ln(function(){return Object.defineProperty(Zx("div"),"a",{get:function(){return 7}}).a!=7}),Xvt=Nt.String,Zvt=Nt.TypeError,to=function(t){if(Wr(t))return t;throw Zvt(Xvt(t)+" is not an object")},Wf=Function.prototype.call,Qe=Wf.bind?Wf.bind(Wf):function(){return Wf.apply(Wf,arguments)},Ez=Qt({}.isPrototypeOf),Jvt=Nt.Object,e4=Yx?function(t){return typeof t=="symbol"}:function(t){var e=yh("Symbol");return On(e)&&Ez(e.prototype,Jvt(t))},Qvt=Nt.String,Dz=function(t){try{return Qvt(t)}catch{return"Object"}},t1t=Nt.TypeError,xz=function(t){if(On(t))return t;throw t1t(Dz(t)+" is not a function")},Sz=function(t,e){var n=t[e];return n==null?void 0:xz(n)},e1t=Nt.TypeError,n1t=Nt.TypeError,r1t=za("toPrimitive"),Jx=function(t){var e=function(n,r){if(!Wr(n)||e4(n))return n;var o,i=Sz(n,r1t);if(i){if(r===void 0&&(r="default"),o=Qe(i,n,r),!Wr(o)||e4(o))return o;throw n1t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&On(s=a.toString)&&!Wr(l=Qe(s,a))||On(s=a.valueOf)&&!Wr(l=Qe(s,a))||u!=="string"&&On(s=a.toString)&&!Wr(l=Qe(s,a)))return l;throw e1t("Can't convert object to primitive value")}(n,r)}(t,"string");return e4(e)?e:e+""},o1t=Nt.TypeError,O_=Object.defineProperty,Iy={f:_o?O_:function(t,e,n){if(to(t),e=Jx(e),to(n),wz)try{return O_(t,e,n)}catch{}if("get"in n||"set"in n)throw o1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Qx=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nc=_o?function(t,e,n){return Iy.f(t,e,Qx(1,n))}:function(t,e,n){return t[e]=n,t},i1t=Qt(Function.toString);On(ba.inspectSource)||(ba.inspectSource=function(t){return i1t(t)});var O1,Fd,k1,tS=ba.inspectSource,k_=Nt.WeakMap,a1t=On(k_)&&/native code/.test(tS(k_)),B_=qx("keys"),Cz=function(t){return B_[t]||(B_[t]=mz(t))},eS={},U3=Nt.TypeError,u1t=Nt.WeakMap;if(a1t||ba.state){var ru=ba.state||(ba.state=new u1t),s1t=Qt(ru.get),F_=Qt(ru.has),l1t=Qt(ru.set);O1=function(t,e){if(F_(ru,t))throw new U3("Object already initialized");return e.facade=t,l1t(ru,t,e),e},Fd=function(t){return s1t(ru,t)||{}},k1=function(t){return F_(ru,t)}}else{var Xs=Cz("state");eS[Xs]=!0,O1=function(t,e){if(Br(t,Xs))throw new U3("Object already initialized");return e.facade=t,nc(t,Xs,e),e},Fd=function(t){return Br(t,Xs)?t[Xs]:{}},k1=function(t){return Br(t,Xs)}}var W3={set:O1,get:Fd,has:k1,enforce:function(t){return k1(t)?Fd(t):O1(t,{})},getterFor:function(t){return function(e){var n;if(!Wr(e)||(n=Fd(e)).type!==t)throw U3("Incompatible receiver, "+t+" required");return n}}},Az=Function.prototype,c1t=_o&&Object.getOwnPropertyDescriptor,n4=Br(Az,"name"),Oz={EXISTS:n4,PROPER:n4&&(function(){}).name==="something",CONFIGURABLE:n4&&(!_o||_o&&c1t(Az,"name").configurable)},Op=Wx(function(t){var e=Oz.CONFIGURABLE,n=W3.get,r=W3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;On(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Br(u,"name")||e&&u.name!==d)&&nc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:nc(i,a,u)):f?i[a]=u:Gx(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||tS(this)})}),f1t=Qt({}.toString),d1t=Qt("".slice),wa=function(t){return d1t(f1t(t),8,-1)},p1t=za("toStringTag"),h1t=Nt.Object,g1t=wa(function(){return arguments}())=="Arguments",nS=Xx?wa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=h1t(t),p1t))=="string"?n:g1t?wa(e):(r=wa(e))=="Object"&&On(e.callee)?"Arguments":r},v1t=Xx?{}.toString:function(){return"[object "+nS(this)+"]"};Xx||Op(Object.prototype,"toString",v1t,{unsafe:!0});var T_,__={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},r4=Zx("span").classList,P_=r4&&r4.constructor&&r4.constructor.prototype,y1t=P_===Object.prototype?void 0:P_,j_=Qt(Qt.bind),o4=Nt.Object,m1t=Qt("".split),rS=ln(function(){return!o4("z").propertyIsEnumerable(0)})?function(t){return wa(t)=="String"?m1t(t,""):o4(t)}:o4,b1t=Math.ceil,w1t=Math.floor,oS=function(t){var e=+t;return e!=e||e===0?0:(e>0?w1t:b1t)(e)},E1t=Math.min,kz=function(t){return t>0?E1t(oS(t),9007199254740991):0},iS=function(t){return kz(t.length)},N_=Array.isArray||function(t){return wa(t)=="Array"},Bz=function(){},D1t=[],Fz=yh("Reflect","construct"),aS=/^\s*(?:class|function)\b/,x1t=Qt(aS.exec),S1t=!aS.exec(Bz),Gf=function(t){if(!On(t))return!1;try{return Fz(Bz,D1t,t),!0}catch{return!1}},Tz=!Fz||ln(function(){var t;return Gf(Gf.call)||!Gf(Object)||!Gf(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(nS(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return S1t||!!x1t(aS,tS(t))}:Gf,C1t=za("species"),I_=Nt.Array,A1t=function(t,e){return new(function(n){var r;return N_(n)&&(r=n.constructor,(Tz(r)&&(r===I_||N_(r.prototype))||Wr(r)&&(r=r[C1t])===null)&&(r=void 0)),r===void 0?I_:r}(t))(e===0?0:e)},L_=Qt([].push),$i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Kx(s),g=rS(y),v=function(D,S){return xz(D),S===void 0?D:j_?j_(D,S):function(){return D.apply(S,arguments)}}(l,c),m=iS(g),h=0,b=f||A1t,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:L_(w,p)}else switch(t){case 4:return!1;case 7:L_(w,p)}return i?-1:r||o?o:w}},O1t=[$i(0),$i(1),$i(2),$i(3),$i(4),$i(5),$i(6),$i(7)][0],i4=(T_=[].forEach)&&ln(function(){T_.call(null,function(){throw 1},1)})?[].forEach:function(t){return O1t(this,t,arguments.length>1?arguments[1]:void 0)},_z=function(t){if(t&&t.forEach!==i4)try{nc(t,"forEach",i4)}catch{t.forEach=i4}};for(var a4 in __)__[a4]&&_z(Nt[a4]&&Nt[a4].prototype);_z(y1t);var R_={}.propertyIsEnumerable,M_=Object.getOwnPropertyDescriptor,Pz={f:M_&&!R_.call({1:2},1)?function(t){var e=M_(this,t);return!!e&&e.enumerable}:R_},Ly=function(t){return rS(ec(t))},z_=Object.getOwnPropertyDescriptor,jz={f:_o?z_:function(t,e){if(t=Ly(t),e=Jx(e),wz)try{return z_(t,e)}catch{}if(Br(t,e))return Qx(!Qe(Pz.f,t,e),t[e])}},k1t=Math.max,B1t=Math.min,G3=function(t,e){var n=oS(t);return n<0?k1t(n+e,0):B1t(n,e)},F1t=function(t){return function(e,n,r){var o,i=Ly(e),a=iS(i),u=G3(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},T1t=F1t(!1),$_=Qt([].push),Nz=function(t,e){var n,r=Ly(t),o=0,i=[];for(n in r)!Br(eS,n)&&Br(r,n)&&$_(i,n);for(;e.length>o;)Br(r,n=e[o++])&&(~T1t(i,n)||$_(i,n));return i},B1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_1t=B1.concat("length","prototype"),P1t={f:Object.getOwnPropertyNames||function(t){return Nz(t,_1t)}},Iz={f:Object.getOwnPropertySymbols},j1t=Qt([].concat),N1t=yh("Reflect","ownKeys")||function(t){var e=P1t.f(to(t)),n=Iz.f;return n?j1t(e,n(t)):e},I1t=function(t,e){for(var n=N1t(e),r=Iy.f,o=jz.f,i=0;i<n.length;i++){var a=n[i];Br(t,a)||r(t,a,o(e,a))}},L1t=/#|\.prototype\./,mh=function(t,e){var n=M1t[R1t(t)];return n==$1t||n!=z1t&&(On(e)?ln(e):!!e)},R1t=mh.normalize=function(t){return String(t).replace(L1t,".").toLowerCase()},M1t=mh.data={},z1t=mh.NATIVE="N",$1t=mh.POLYFILL="P",H1t=mh,V1t=jz.f,Ry=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Nt:l?Nt[u]||Gx(u,{}):(Nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=V1t(n,r))&&a.value:n[r],!H1t(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;I1t(i,o)}(t.sham||o&&o.sham)&&nc(i,"sham",!0),Op(n,r,i,t)}},mg=Object.keys||function(t){return Nz(t,B1)},Zs=Object.assign,H_=Object.defineProperty,U1t=Qt([].concat),V_=!Zs||ln(function(){if(_o&&Zs({b:1},Zs(H_({},"a",{enumerable:!0,get:function(){H_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Zs({},t)[n]!=7||mg(Zs({},e)).join("")!=r})?function(t,e){for(var n=Kx(t),r=arguments.length,o=1,i=Iz.f,a=Pz.f;r>o;)for(var u,s=rS(arguments[o++]),l=i?U1t(mg(s),i(s)):mg(s),c=l.length,f=0;c>f;)u=l[f++],_o&&!Qe(a,s,u)||(n[u]=s[u]);return n}:Zs;Ry({target:"Object",stat:!0,forced:Object.assign!==V_},{assign:V_});var U_=Wx(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(m){return m instanceof u?new u(m.type,v(m.content),m.alias):Array.isArray(m)?m.map(v):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var D in b={},h[w]=b,m)m.hasOwnProperty(D)&&(b[D]=v(m[D],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(S,x){b[x]=v(S,h)}),b);default:return m}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(v){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==v)return m[h]}return null}},isActive:function(v,m,h){for(var b="no-"+m;v;){var w=v.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;v=v.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,m){var h=a.util.clone(a.languages[v]);for(var b in m)h[b]=m[b];return h},insertBefore:function(v,m,h,b){var w=(b=b||a.languages)[v],D={};for(var S in w)if(w.hasOwnProperty(S)){if(S==m)for(var x in h)h.hasOwnProperty(x)&&(D[x]=h[x]);h.hasOwnProperty(S)||(D[S]=w[S])}var O=b[v];return b[v]=D,a.languages.DFS(a.languages,function(T,R){R===O&&T!=v&&(this[T]=D)}),D},DFS:function v(m,h,b,w){w=w||{};var D=a.util.objId;for(var S in m)if(m.hasOwnProperty(S)){h.call(m,S,m[S],b||S);var x=m[S],O=a.util.type(x);O!=="Object"||w[D(x)]?O!=="Array"||w[D(x)]||(w[D(x)]=!0,v(x,h,S,w)):(w[D(x)]=!0,v(x,h,null,w))}}},plugins:{},highlightAll:function(v,m){a.highlightAllUnder(document,v,m)},highlightAllUnder:function(v,m,h){var b={callback:h,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(v,m,h){var b=a.util.getLanguage(v),w=a.languages[b];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=v.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:v,language:b,grammar:w,code:v.textContent};function x(T){S.highlightedCode=T,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(D=S.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(m&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(T){x(T.data)},O.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else x(a.highlight(S.code,S.grammar,S.language));else x(a.util.encode(S.code))},highlight:function(v,m,h){var b={code:v,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(v,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,v),l(v,w,m,w.head,0),function(D){for(var S=[],x=D.head.next;x!==D.tail;)S.push(x.value),x=x.next;return S}(w)},hooks:{all:{},add:function(v,m){var h=a.hooks.all;h[v]=h[v]||[],h[v].push(m)},run:function(v,m){var h=a.hooks.all[v];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(v,m,h,b){this.type=v,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(v,m,h,b){v.lastIndex=m;var w=v.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(v,m,h,b,w,D){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var x=h[S];x=Array.isArray(x)?x:[x];for(var O=0;O<x.length;++O){if(D&&D.cause==S+","+O)return;var T=x[O],R=T.inside,H=!!T.lookbehind,M=!!T.greedy,K=T.alias;if(M&&!T.pattern.global){var U=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,U+"g")}for(var W=T.pattern||T,q=b.next,nt=w;q!==m.tail&&!(D&&nt>=D.reach);nt+=q.value.length,q=q.next){var lt=q.value;if(m.length>v.length)return;if(!(lt instanceof u)){var st,at=1;if(M){if(!(st=s(W,nt,v,H)))break;var k=st.index,C=st.index+st[0].length,P=nt;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(nt=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<C||typeof $.value=="string");$=$.next)at++,P+=$.value.length;at--,lt=v.slice(nt,P),st.index-=nt}else if(!(st=s(W,0,lt,H)))continue;k=st.index;var Y=st[0],V=lt.slice(0,k),it=lt.slice(k+Y.length),gt=nt+lt.length;D&>>D.reach&&(D.reach=gt);var vt=q.prev;if(V&&(vt=f(m,vt,V),nt+=V.length),p(m,vt,at),q=f(m,vt,new u(S,R?a.tokenize(Y,R):Y,K,Y)),it&&f(m,q,it),at>1){var Dt={cause:S+","+O,reach:gt};l(v,m,h,q.prev,nt,Dt),D&&Dt.reach>D.reach&&(D.reach=Dt.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},m={value:null,prev:v,next:null};v.next=m,this.head=v,this.tail=m,this.length=0}function f(v,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,v.length++,w}function p(v,m,h){for(var b=m.next,w=0;w<h&&b!==v.tail;w++)b=b.next;m.next=b,b.prev=m,v.length-=w}if(n.Prism=a,u.stringify=function v(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=v(O,h)}),b}var w={type:m.type,content:v(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},D=m.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var S="";for(var x in w.attributes)S+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var m=JSON.parse(v.data),h=m.language,b=m.code,w=m.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/t.exports&&(t.exports=e),A1!==void 0&&(A1.Prism=e),e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.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:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var y=e.plugins.autoloader;y&&y.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="✖ Error "+g.status+" while fetching file: "+g.statusText:c.textContent="✖ Error: File does not exist or is empty"))},g.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/\/\*[\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=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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:t.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}}];t.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:e,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"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"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(t){var e=/\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:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.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:e,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 e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\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 e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.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:e,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/}),t.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}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(C,P){return C.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+P[+Y]+")"})}function n(C,P,$){return RegExp(e(C,P),$||"")}function r(C,P){for(var $=0;$<P;$++)C=C.replace(/<<self>>/g,function(){return"(?:"+C+")"});return C.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(C){return"\\b(?:"+C.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,y,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,m,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,S]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,p,g]),inside:x}],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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.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,[y]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,m]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:x}}},"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,S,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,y]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:x},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 H=T+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,nt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,q]),st=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,q]);function k(C,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[C]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,nt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:k(at,st)}]})}(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(t){t.languages.ruby=t.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 e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.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:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],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:t.languages.ruby}}}),t.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)/}),t.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:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{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:e}},{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:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.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]*)?(?:\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(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\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("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),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("\\$?"+e),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=t.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]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}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;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.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:t.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:t.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(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var y=f[p];if(y.type==="code"){var g=y.content[1],v=y.content[3];if(g&&v&&g.type==="code-language"&&v.type==="code-block"&&typeof g.content=="string"){var m=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]}}else c(y.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],y=/language-(.+)/.exec(d);if(y){c=y[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(v);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var W1t=["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 Lz(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+Lz(n)},0)}var M0,G1t=Nt.String,ri=function(t){if(nS(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return G1t(t)},Rz=function(){var t=to(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},uS=Nt.RegExp,q3=ln(function(){var t=uS("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),q1t=q3||ln(function(){return!uS("a","y").sticky}),Mz={BROKEN_CARET:q3||ln(function(){var t=uS("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:q1t,UNSUPPORTED_Y:q3},K1t=_o?Object.defineProperties:function(t,e){to(t);for(var n,r=Ly(e),o=mg(e),i=o.length,a=0;i>a;)Iy.f(t,n=o[a++],r[n]);return t},Y1t=yh("document","documentElement"),zz=Cz("IE_PROTO"),u4=function(){},$z=function(t){return"<script>"+t+"<\/script>"},W_=function(t){t.write($z("")),t.close();var e=t.parentWindow.Object;return t=null,e},bg=function(){try{M0=new ActiveXObject("htmlfile")}catch{}var t,e;bg=typeof document<"u"?document.domain&&M0?W_(M0):((e=Zx("iframe")).style.display="none",Y1t.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write($z("document.F=Object")),t.close(),t.F):W_(M0);for(var n=B1.length;n--;)delete bg.prototype[B1[n]];return bg()};eS[zz]=!0;var G_,s4,X1t=Object.create||function(t,e){var n;return t!==null?(u4.prototype=to(t),n=new u4,u4.prototype=null,n[zz]=t):n=bg(),e===void 0?n:K1t(n,e)},Z1t=Nt.RegExp,J1t=ln(function(){var t=Z1t(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Q1t=Nt.RegExp,tyt=ln(function(){var t=Q1t("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),eyt=W3.get,nyt=qx("native-string-replace",String.prototype.replace),F1=RegExp.prototype.exec,K3=F1,ryt=Qt("".charAt),oyt=Qt("".indexOf),iyt=Qt("".replace),l4=Qt("".slice),c4=(s4=/b*/g,Qe(F1,G_=/a/,"a"),Qe(F1,s4,"a"),G_.lastIndex!==0||s4.lastIndex!==0),q_=Mz.BROKEN_CARET,f4=/()??/.exec("")[1]!==void 0;(c4||f4||q_||J1t||tyt)&&(K3=function(t){var e,n,r,o,i,a,u,s=this,l=eyt(s),c=ri(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(K3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=q_&&s.sticky,y=Qe(Rz,s),g=s.source,v=0,m=c;if(d&&(y=iyt(y,"y",""),oyt(y,"g")===-1&&(y+="g"),m=l4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ryt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),f4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),c4&&(r=s.lastIndex),o=Qe(F1,d?n:s,m),d?o?(o.input=l4(o.input,v),o[0]=l4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:c4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),f4&&o&&o.length>1&&Qe(nyt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=X1t(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var kp=K3;Ry({target:"RegExp",proto:!0,forced:/./.exec!==kp},{exec:kp});var sS=Function.prototype,K_=sS.apply,ayt=sS.bind,Y_=sS.call,uyt=typeof Reflect=="object"&&Reflect.apply||(ayt?Y_.bind(K_):function(){return Y_.apply(K_,arguments)}),syt=za("species"),d4=RegExp.prototype,lyt=za("match"),cyt=Nt.TypeError,fyt=za("species"),dyt=Qt("".charAt),X_=Qt("".charCodeAt),pyt=Qt("".slice),hyt=function(t){return function(e,n){var r,o,i=ri(ec(e)),a=oS(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=X_(i,a))<55296||r>56319||a+1===u||(o=X_(i,a+1))<56320||o>57343?t?dyt(i,a):r:t?pyt(i,a,a+2):o-56320+(r-55296<<10)+65536}},gyt=hyt(!0),vyt=function(t,e,n){return e+(n?gyt(t,e).length:1)},yyt=Nt.Array,myt=Math.max,Z_=function(t,e,n){for(var r,o,i,a,u=iS(t),s=G3(e,u),l=G3(n===void 0?u:n,u),c=yyt(myt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=Jx(o))in r?Iy.f(r,a,Qx(0,i)):r[a]=i;return c.length=f,c},byt=Nt.TypeError,J_=function(t,e){var n=t.exec;if(On(n)){var r=Qe(n,t,e);return r!==null&&to(r),r}if(wa(t)==="RegExp")return Qe(kp,t,e);throw byt("RegExp#exec called on incompatible receiver")},Js=Mz.UNSUPPORTED_Y,wyt=Math.min,Hz=[].push,Eyt=Qt(/./.exec),Qs=Qt(Hz),qf=Qt("".slice);(function(t,e,n,r){var o=za(t),i=!ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[syt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Qt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=ri(ec(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!Wr(g=d)||!((v=g[lyt])!==void 0?v:wa(g)=="RegExp"))return Qe(c,m,d,h);for(var b,w,D,S=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,T=new RegExp(d.source,x+"g");(b=Qe(kp,T,m))&&!((w=T.lastIndex)>O&&(Qs(S,qf(m,O,b.index)),b.length>1&&b.index<m.length&&uyt(Hz,S,Z_(b,1)),D=b[0].length,O=w,S.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&Eyt(T,"")||Qs(S,""):Qs(S,qf(m,O)),S.length>h?Z_(S,0,h):S}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:Qe(c,this,d,y)}:c,[function(d,y){var g=ec(this),v=d==null?void 0:Sz(d,l);return v?Qe(v,d,g,y):Qe(p,ri(g),d,y)},function(d,y){var g=to(this),v=ri(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=function(K,U){var W,q=to(K).constructor;return q===void 0||(W=to(q)[fyt])==null?U:function(nt){if(Tz(nt))return nt;throw cyt(Dz(nt)+" is not a constructor")}(W)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Js?"g":"y"),D=new h(Js?"^(?:"+g.source+")":g,w),S=y===void 0?4294967295:y>>>0;if(S===0)return[];if(v.length===0)return J_(D,v)===null?[v]:[];for(var x=0,O=0,T=[];O<v.length;){D.lastIndex=Js?0:O;var R,H=J_(D,Js?qf(v,O):v);if(H===null||(R=wyt(kz(D.lastIndex+(Js?O:0)),v.length))===x)O=vyt(v,O,b);else{if(Qs(T,qf(v,x,O)),T.length===S)return T;for(var M=1;M<=H.length-1;M++)if(Qs(T,H[M]),T.length===S)return T;O=x=R}}return Qs(T,qf(v,x)),T}]}(o,""[t],function(l,c,f,p,d){var y=Qt(l),g=c.exec;return g===kp||g===d4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Op(String.prototype,t,s[0]),Op(d4,o,s[1])}r&&nc(d4[o],"sham",!0)})("split",0,!!ln(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Js),Ry({global:!0},{globalThis:Nt}),Fr&&(B.fn.attr=Fr);var Dyt=Oz.PROPER,Y3=RegExp.prototype,Vz=Y3.toString,xyt=Qt(Rz),Syt=ln(function(){return Vz.call({source:"a",flags:"b"})!="/a/b"}),Cyt=Dyt&&Vz.name!="toString";(Syt||Cyt)&&Op(RegExp.prototype,"toString",function(){var t=to(this),e=ri(t.source),n=t.flags;return"/"+e+"/"+ri(n===void 0&&Ez(Y3,t)&&!("flags"in Y3)?xyt(t):n)},{unsafe:!0});var Ayt=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ct.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ct.isElement(r)?r.type!=="pre"?null:n:null},t}(),Oyt={renderStyle:function(t,e){var n=t,r=e,o="";return W1t.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Ayt},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(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},kyt=/"/g,Byt=Qt("".replace);Ry({target:"String",proto:!0,forced:ln(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ri(ec(this)),r="<a",(r+=' name="'+Byt(ri(e),kyt,""")+'"')+">"+n+"</a>";var e,n,r}});var Uz=function(t){var e,n,r,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,D,S=b.call(m),x=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)x.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(D)throw D.error}}return x}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!ot.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=U_.languages[h];return b?U_.tokenize(m.text,b):[]}(i,c),p=0;try{for(var d=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),y=d.next();!y.done;y=d.next()){var g=y.value,v=p+Lz(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:v},r)),p=v}}catch(m){e={error:m}}finally{try{y&&!y.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Ce=function(){return Ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ce.apply(this,arguments)},on=function(){function t(){throw new Error(`不能实例化
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Ce(Ce({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Ce(Ce({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Ce(Ce({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Ce(Ce({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=Er(Er({},u),o||{});if(Xd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Xd[i]=a,function(l,c){c!=null&&(gN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;zN[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){VE.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;vN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){IE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){jN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;gv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){wD.push(n)})(e)},t.registerModule=function(e){lu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function lu(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}Nat.forEach(function(t){return lu(t)}),lu(dlt),lu(Rft),lu(qht),lu(Rvt),lu(Oyt);var Wz='<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>',Gz={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"]}},Fyt={hoverbarKeys:Ce(Ce({},Gz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(Ce(Ce({},Fyt),{decorate:Uz}));var Tyt={hoverbarKeys:Gz};on.setSimpleEditorConfig(Ce(Ce({},Tyt),{decorate:Uz}));var _yt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("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:tt("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:tt("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:tt("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("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"]};on.setToolbarConfig(_yt);var Pyt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Ryt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?on.simpleEditorConfig:on.editorConfig,c=Ce(Ce({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return MQ({selector:n,config:Ce(Ce(Ce({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:on.plugins})}function Myt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?on.simpleToolbarConfig:on.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(v,m){return LN(v,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=Er({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new UQ(f,y);return fD.set(g,l),ty.set(l,g),g}(n,{selector:e,config:Ce(Ce({},u),o)});return s}on.setSimpleToolbarConfig(Pyt);var zyt={};export{on as Boot,A as DomEditor,E as SlateEditor,ct as SlateElement,jyt as SlateLocation,Q as SlateNode,j as SlatePath,Bt as SlatePoint,L as SlateRange,ot as SlateText,N as SlateTransforms,UQ as Toolbar,Ryt as createEditor,Myt as createToolbar,KN as createUploader,zyt as default,dc as genModalButtonElems,nr as genModalInputElems,Nyt as genModalTextareaElems,qn as i18nAddResources,Iyt as i18nChangeLanguage,Lyt as i18nGetResources,tt as t};