123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- /*!
- * build: Vue Admin Plus
- * copyright: vue-admin-beautiful.com
- * time: 2024-08-14 16:40:30
- */
- "use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[972],{34606:function(e,t,n){n.d(t,{Ej:function(){return tk},Jh:function(){return oye},k5:function(){return iye}});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,u,s=function(e){return e&&e.Math==Math&&e},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),c=Function.prototype,f=c.apply,d=c.bind,p=c.call,h="object"==typeof Reflect&&Reflect.apply||(d?p.bind(f):function(){return p.apply(f,arguments)}),g=Function.prototype,v=g.bind,y=g.call,m=v&&v.bind(y),b=v?function(e){return e&&m(y,e)}:function(e){return e&&function(){return y.apply(e,arguments)}},w=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},D=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=Function.prototype.call,x=S.bind?S.bind(S):function(){return S.apply(S,arguments)},C={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,O=A&&!C.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:C,k={f:O},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F=b({}.toString),T=b("".slice),_=function(e){return T(F(e),8,-1)},P=l.Object,j=b("".split),N=E((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?j(e,""):P(e)}:P,I=l.TypeError,L=function(e){if(null==e)throw I("Can't call method on "+e);return e},R=function(e){return N(L(e))},M=function(e){return"object"==typeof e?null!==e:w(e)},z={},$=function(e){return w(e)?e:void 0},H=function(e,t){return arguments.length<2?$(z[e])||$(l[e]):z[e]&&z[e][t]||l[e]&&l[e][t]},V=b({}.isPrototypeOf),U=H("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(u=(a=K.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!u&&U&&(!(a=U.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=U.match(/Chrome\/(\d+)/))&&(u=+a[1]);var Y,X=u,Z=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),J=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=l.Object,ee=J?function(e){return"symbol"==typeof e}:function(e){var t=H("Symbol");return w(t)&&V(t.prototype,Q(e))},te=l.String,ne=function(e){try{return te(e)}catch(e){return"Object"}},re=l.TypeError,oe=function(e){if(w(e))return e;throw re(ne(e)+" is not a function")},ie=function(e,t){var n=e[t];return null==n?void 0:oe(n)},ae=l.TypeError,ue=Object.defineProperty,se=l["__core-js_shared__"]||function(e,t){try{ue(l,e,{value:t,configurable:!0,writable:!0})}catch(i){l[e]=t}return t}("__core-js_shared__",{}),le=i((function(e){(e.exports=function(e,t){return se[e]||(se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ce=l.Object,fe=function(e){return ce(L(e))},de=b({}.hasOwnProperty),pe=Object.hasOwn||function(e,t){return de(fe(e),t)},he=0,ge=Math.random(),ve=b(1..toString),ye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ve(++he+ge,36)},me=le("wks"),be=l.Symbol,we=be&&be.for,Ee=J?be:be&&be.withoutSetter||ye,De=function(e){if(!pe(me,e)||!Z&&"string"!=typeof me[e]){var t="Symbol."+e;Z&&pe(be,e)?me[e]=be[e]:me[e]=J&&we?we(t):Ee(t)}return me[e]},Se=l.TypeError,xe=De("toPrimitive"),Ce=function(e,t){if(!M(e)||ee(e))return e;var n,r=ie(e,xe);if(r){if(void 0===t&&(t="default"),n=x(r,e,t),!M(n)||ee(n))return n;throw Se("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&w(n=e.toString)&&!M(r=x(n,e)))return r;if(w(n=e.valueOf)&&!M(r=x(n,e)))return r;if("string"!==t&&w(n=e.toString)&&!M(r=x(n,e)))return r;throw ae("Can't convert object to primitive value")}(e,t)},Ae=function(e){var t=Ce(e,"string");return ee(t)?t:t+""},Oe=l.document,ke=M(Oe)&&M(Oe.createElement),Be=function(e){return ke?Oe.createElement(e):{}},Fe=!D&&!E((function(){return 7!=Object.defineProperty(Be("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,_e=D?Te:function(e,t){if(e=R(e),t=Ae(t),Fe)try{return Te(e,t)}catch(e){}if(pe(e,t))return B(!x(k.f,e,t),e[t])},Pe={f:_e},je=/#|\.prototype\./,Ne=function(e,t){var n=Le[Ie(e)];return n==Me||n!=Re&&(w(t)?E(t):!!t)},Ie=Ne.normalize=function(e){return String(e).replace(je,".").toLowerCase()},Le=Ne.data={},Re=Ne.NATIVE="N",Me=Ne.POLYFILL="P",ze=Ne,$e=b(b.bind),He=function(e,t){return oe(e),void 0===t?e:$e?$e(e,t):function(){return e.apply(t,arguments)}},Ve=l.String,Ue=l.TypeError,We=function(e){if(M(e))return e;throw Ue(Ve(e)+" is not an object")},Ge=l.TypeError,qe=Object.defineProperty,Ke=D?qe:function(e,t,n){if(We(e),t=Ae(t),We(n),Fe)try{return qe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ye={f:Ke},Xe=D?function(e,t,n){return Ye.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},Ze=Pe.f,Je=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return h(e,this,arguments)};return t.prototype=e.prototype,t},Qe=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?l:p?l[f]:(l[f]||{}).prototype,v=d?z:z[f]||Xe(z,f,{})[f],y=v.prototype;for(o in t)n=!ze(d?o:f+(p?".":"#")+o,e.forced)&&g&&pe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=Ze(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?He(i,l):e.wrap&&n?Je(i):h&&w(i)?b(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Xe(s,"sham",!0),Xe(v,o,s),h&&(pe(z,r=f+"Prototype")||Xe(z,r,{}),Xe(z[r],o,i),e.real&&y&&!y[o]&&Xe(y,o,i)))},et=le("keys"),tt=function(e){return et[e]||(et[e]=ye(e))},nt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),ot=l.Object,it=ot.prototype,at=nt?ot.getPrototypeOf:function(e){var t=fe(e);if(pe(t,rt))return t[rt];var n=t.constructor;return w(n)&&t instanceof n?n.prototype:t instanceof ot?it:null},ut=l.String,st=l.TypeError,lt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return We(n),function(e){if("object"==typeof e||w(e))return e;throw st("Can't set "+ut(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ct=Math.ceil,ft=Math.floor,dt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:ct)(t)},pt=Math.max,ht=Math.min,gt=function(e,t){var n=dt(e);return n<0?pt(n+t,0):ht(n,t)},vt=Math.min,yt=function(e){return(t=e.length)>0?vt(dt(t),9007199254740991):0;var t},mt=function(e){return function(t,n,r){var o,i=R(t),a=yt(i),u=gt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bt={includes:mt(!0),indexOf:mt(!1)},wt={},Et=bt.indexOf,Dt=b([].push),St=function(e,t){var n,r=R(e),o=0,i=[];for(n in r)!pe(wt,n)&&pe(r,n)&&Dt(i,n);for(;t.length>o;)pe(r,n=t[o++])&&(~Et(i,n)||Dt(i,n));return i},xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=xt.concat("length","prototype"),At=Object.getOwnPropertyNames||function(e){return St(e,Ct)},Ot={f:At},kt={f:Object.getOwnPropertySymbols},Bt=b([].concat),Ft=H("Reflect","ownKeys")||function(e){var t=Ot.f(We(e)),n=kt.f;return n?Bt(t,n(e)):t},Tt=Object.keys||function(e){return St(e,xt)},_t=D?Object.defineProperties:function(e,t){We(e);for(var n,r=R(t),o=Tt(t),i=o.length,a=0;i>a;)Ye.f(e,n=o[a++],r[n]);return e},Pt=H("document","documentElement"),jt=tt("IE_PROTO"),Nt=function(){},It=function(e){return"<script>"+e+"<\/script>"},Lt=function(e){e.write(It("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&Y?Lt(Y):((t=Be("iframe")).style.display="none",Pt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(It("document.F=Object")),e.close(),e.F):Lt(Y);for(var n=xt.length;n--;)delete Rt.prototype[xt[n]];return Rt()};wt[jt]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(Nt.prototype=We(e),n=new Nt,Nt.prototype=null,n[jt]=e):n=Rt(),void 0===t?n:_t(n,t)},zt=function(e,t,n){var r=Ae(t);r in e?Ye.f(e,r,B(0,n)):e[r]=n},$t=l.Array,Ht=Math.max,Vt=function(e,t,n){for(var r=yt(e),o=gt(t,r),i=gt(void 0===n?r:n,r),a=$t(Ht(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Ut=b("".replace),Wt=b("".split),Gt=b([].join),qt=String(Error("zxcasd").stack),Kt=/\n\s*at [^:]*:[^\n]*/,Yt=Kt.test(qt),Xt=/@[^\n]*\n/.test(qt)&&!/zxcasd/.test(qt),Zt=function(e,t){if("string"!=typeof e)return e;if(Yt)for(;t--;)e=Ut(e,Kt,"");else if(Xt)return Gt(Vt(Wt(e,"\n"),t),"\n");return e},Jt=function(e,t){M(t)&&"cause"in t&&Xe(e,"cause",t.cause)},Qt={},en=De("iterator"),tn=Array.prototype,nn={};nn[De("toStringTag")]="z";var rn="[object z]"===String(nn),on=De("toStringTag"),an=l.Object,un="Arguments"==_(function(){return arguments}()),sn=rn?_:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:un?_(t):"Object"==(r=_(t))&&w(t.callee)?"Arguments":r},ln=De("iterator"),cn=function(e){if(null!=e)return ie(e,ln)||ie(e,"@@iterator")||Qt[sn(e)]},fn=l.TypeError,dn=function(e,t,n){var r,o;We(e);try{if(!(r=ie(e,"return"))){if("throw"===t)throw n;return n}r=x(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return We(r),n},pn=l.TypeError,hn=function(e,t){this.stopped=e,this.result=t},gn=hn.prototype,vn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=He(t,c),g=function(e){return r&&dn(r,"normal",e),new hn(!0,e)},v=function(e){return f?(We(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=cn(e)))throw pn(ne(e)+" is not iterable");if(function(e){return void 0!==e&&(Qt.Array===e||tn[en]===e)}(o)){for(i=0,a=yt(e);a>i;i++)if((u=v(e[i]))&&V(gn,u))return u;return new hn(!1)}r=function(e,t){var n=arguments.length<2?cn(e):t;if(oe(n))return We(x(n,e));throw fn(ne(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=x(s,r)).done;){try{u=v(l.value)}catch(e){dn(r,"throw",e)}if("object"==typeof u&&u&&V(gn,u))return u}return new hn(!1)},yn=l.String,mn=function(e){if("Symbol"===sn(e))throw TypeError("Cannot convert a Symbol value to a string");return yn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:mn(e)},wn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",B(1,7)),7!==e.stack)})),En=De("toStringTag"),Dn=l.Error,Sn=[].push,xn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=V(Cn,this);lt?n=lt(new Dn(void 0),o?at(this):Cn):(n=o?this:Mt(Cn),Xe(n,En,"Error")),Xe(n,"message",bn(t,"")),wn&&Xe(n,"stack",Zt(n.stack,1)),Jt(n,r);var i=[];return vn(e,Sn,{that:i}),Xe(n,"errors",i),n};lt?lt(xn,Dn):function(e,t){for(var n=Ft(t),r=Ye.f,o=Pe.f,i=0;i<n.length;i++){var a=n[i];pe(e,a)||r(e,a,o(t,a))}}(xn,Dn);var Cn=xn.prototype=Mt(Dn.prototype,{constructor:B(1,xn),message:B(1,""),name:B(1,"AggregateError")});Qe({global:!0},{AggregateError:xn});var An=b(Function.toString);w(se.inspectSource)||(se.inspectSource=function(e){return An(e)});var On,kn,Bn,Fn=se.inspectSource,Tn=l.WeakMap,_n=w(Tn)&&/native code/.test(Fn(Tn)),Pn=l.TypeError,jn=l.WeakMap;if(_n||se.state){var Nn=se.state||(se.state=new jn),In=b(Nn.get),Ln=b(Nn.has),Rn=b(Nn.set);On=function(e,t){if(Ln(Nn,e))throw new Pn("Object already initialized");return t.facade=e,Rn(Nn,e,t),t},kn=function(e){return In(Nn,e)||{}},Bn=function(e){return Ln(Nn,e)}}else{var Mn=tt("state");wt[Mn]=!0,On=function(e,t){if(pe(e,Mn))throw new Pn("Object already initialized");return t.facade=e,Xe(e,Mn,t),t},kn=function(e){return pe(e,Mn)?e[Mn]:{}},Bn=function(e){return pe(e,Mn)}}var zn,$n,Hn,Vn={set:On,get:kn,has:Bn,enforce:function(e){return Bn(e)?kn(e):On(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=kn(t)).type!==e)throw Pn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,Wn=D&&Object.getOwnPropertyDescriptor,Gn=pe(Un,"name"),qn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!D||D&&Wn(Un,"name").configurable)},Kn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Xe(e,t,n)},Yn=De("iterator"),Xn=!1;[].keys&&("next"in(Hn=[].keys())?($n=at(at(Hn)))!==Object.prototype&&(zn=$n):Xn=!0);var Zn=null==zn||E((function(){var e={};return zn[Yn].call(e)!==e}));zn=Zn?{}:Mt(zn),w(zn[Yn])||Kn(zn,Yn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Xn},Qn=rn?{}.toString:function(){return"[object "+sn(this)+"]"},er=Ye.f,tr=De("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;pe(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!rn&&Xe(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=qn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=De("iterator"),sr=function(){return this},lr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(rr,{next:B(+!r,n)}),nr(e,o,!1,!0),Qt[o]=or}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ar&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ur]||p["@@iterator"]||o&&p[o],g=!ar&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=at(v.call(new e)))!==Object.prototype&&u.next&&(nr(u,f,!0,!0),Qt[f]=sr),ir&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return x(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ar||d||!(l in p))&&Kn(p,l,s[l]);else Qe({target:t,proto:!0,forced:ar||d},s);return a&&p[ur]!==g&&Kn(p,ur,g,{name:o}),Qt[t]=g,s},cr=Vn.set,fr=Vn.getterFor("Array Iterator");lr(Array,"Array",(function(e,t){cr(this,{type:"Array Iterator",target:R(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Qt.Arguments=Qt.Array;var dr=b("".charAt),pr=b("".charCodeAt),hr=b("".slice),gr=function(e){return function(t,n){var r,o,i=mn(L(t)),a=dt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pr(i,a))<55296||r>56319||a+1===u||(o=pr(i,a+1))<56320||o>57343?e?dr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},vr={codeAt:gr(!1),charAt:gr(!0)}.charAt,yr=Vn.set,mr=Vn.getterFor("String Iterator");lr(String,"String",(function(e){yr(this,{type:"String Iterator",string:mn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=z.AggregateError,wr=De("toStringTag");for(var Er 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 Dr=l[Er],Sr=Dr&&Dr.prototype;Sr&&sn(Sr)!==wr&&Xe(Sr,wr,Er),Qt[Er]=Qt.Array}var xr,Cr,Ar=br,Or=function(e){return e&&e.Math==Math&&e},kr=Or("object"==typeof globalThis&&globalThis)||Or("object"==typeof window&&window)||Or("object"==typeof self&&self)||Or("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Br=function(e){try{return!!e()}catch(e){return!0}},Fr=!Br((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,_r=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},Pr={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Nr=jr&&!Pr.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Pr,Ir={f:Nr},Lr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,Mr=Rr.bind,zr=Rr.call,$r=Mr&&Mr.bind(zr),Hr=Mr?function(e){return e&&$r(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},Vr=Hr({}.toString),Ur=Hr("".slice),Wr=function(e){return Ur(Vr(e),8,-1)},Gr=kr.Object,qr=Hr("".split),Kr=Br((function(){return!Gr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Wr(e)?qr(e,""):Gr(e)}:Gr,Yr=kr.TypeError,Xr=function(e){if(null==e)throw Yr("Can't call method on "+e);return e},Zr=function(e){return Kr(Xr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e){return Jr(e)?e:void 0},to=function(e,t){return arguments.length<2?eo(kr[e]):kr[e]&&kr[e][t]},no=Hr({}.isPrototypeOf),ro=to("navigator","userAgent")||"",oo=kr.process,io=kr.Deno,ao=oo&&oo.versions||io&&io.version,uo=ao&&ao.v8;uo&&(Cr=(xr=uo.split("."))[0]>0&&xr[0]<4?1:+(xr[0]+xr[1])),!Cr&&ro&&(!(xr=ro.match(/Edge\/(\d+)/))||xr[1]>=74)&&(xr=ro.match(/Chrome\/(\d+)/))&&(Cr=+xr[1]);var so=Cr,lo=!!Object.getOwnPropertySymbols&&!Br((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&so&&so<41})),co=lo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fo=kr.Object,po=co?function(e){return"symbol"==typeof e}:function(e){var t=to("Symbol");return Jr(t)&&no(t.prototype,fo(e))},ho=kr.String,go=function(e){try{return ho(e)}catch(e){return"Object"}},vo=kr.TypeError,yo=function(e){if(Jr(e))return e;throw vo(go(e)+" is not a function")},mo=function(e,t){var n=e[t];return null==n?void 0:yo(n)},bo=kr.TypeError,wo=Object.defineProperty,Eo=function(e,t){try{wo(kr,e,{value:t,configurable:!0,writable:!0})}catch(i){kr[e]=t}return t},Do=kr["__core-js_shared__"]||Eo("__core-js_shared__",{}),So=i((function(e){(e.exports=function(e,t){return Do[e]||(Do[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xo=kr.Object,Co=function(e){return xo(Xr(e))},Ao=Hr({}.hasOwnProperty),Oo=Object.hasOwn||function(e,t){return Ao(Co(e),t)},ko=0,Bo=Math.random(),Fo=Hr(1..toString),To=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fo(++ko+Bo,36)},_o=So("wks"),Po=kr.Symbol,jo=Po&&Po.for,No=co?Po:Po&&Po.withoutSetter||To,Io=function(e){if(!Oo(_o,e)||!lo&&"string"!=typeof _o[e]){var t="Symbol."+e;lo&&Oo(Po,e)?_o[e]=Po[e]:_o[e]=co&&jo?jo(t):No(t)}return _o[e]},Lo=kr.TypeError,Ro=Io("toPrimitive"),Mo=function(e,t){if(!Qr(e)||po(e))return e;var n,r=mo(e,Ro);if(r){if(void 0===t&&(t="default"),n=_r(r,e,t),!Qr(n)||po(n))return n;throw Lo("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=_r(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=_r(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=_r(n,e)))return r;throw bo("Can't convert object to primitive value")}(e,t)},zo=function(e){var t=Mo(e,"string");return po(t)?t:t+""},$o=kr.document,Ho=Qr($o)&&Qr($o.createElement),Vo=function(e){return Ho?$o.createElement(e):{}},Uo=!Fr&&!Br((function(){return 7!=Object.defineProperty(Vo("div"),"a",{get:function(){return 7}}).a})),Wo=Object.getOwnPropertyDescriptor,Go=Fr?Wo:function(e,t){if(e=Zr(e),t=zo(t),Uo)try{return Wo(e,t)}catch(e){}if(Oo(e,t))return Lr(!_r(Ir.f,e,t),e[t])},qo={f:Go},Ko=kr.String,Yo=kr.TypeError,Xo=function(e){if(Qr(e))return e;throw Yo(Ko(e)+" is not an object")},Zo=kr.TypeError,Jo=Object.defineProperty,Qo=Fr?Jo:function(e,t,n){if(Xo(e),t=zo(t),Xo(n),Uo)try{return Jo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Zo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ei={f:Qo},ti=Fr?function(e,t,n){return ei.f(e,t,Lr(1,n))}:function(e,t,n){return e[t]=n,e},ni=Hr(Function.toString);Jr(Do.inspectSource)||(Do.inspectSource=function(e){return ni(e)});var ri,oi,ii,ai=Do.inspectSource,ui=kr.WeakMap,si=Jr(ui)&&/native code/.test(ai(ui)),li=So("keys"),ci=function(e){return li[e]||(li[e]=To(e))},fi={},di=kr.TypeError,pi=kr.WeakMap;if(si||Do.state){var hi=Do.state||(Do.state=new pi),gi=Hr(hi.get),vi=Hr(hi.has),yi=Hr(hi.set);ri=function(e,t){if(vi(hi,e))throw new di("Object already initialized");return t.facade=e,yi(hi,e,t),t},oi=function(e){return gi(hi,e)||{}},ii=function(e){return vi(hi,e)}}else{var mi=ci("state");fi[mi]=!0,ri=function(e,t){if(Oo(e,mi))throw new di("Object already initialized");return t.facade=e,ti(e,mi,t),t},oi=function(e){return Oo(e,mi)?e[mi]:{}},ii=function(e){return Oo(e,mi)}}var bi={set:ri,get:oi,has:ii,enforce:function(e){return ii(e)?oi(e):ri(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=oi(t)).type!==e)throw di("Incompatible receiver, "+e+" required");return n}}},wi=Function.prototype,Ei=Fr&&Object.getOwnPropertyDescriptor,Di=Oo(wi,"name"),Si={EXISTS:Di,PROPER:Di&&"something"===function(){}.name,CONFIGURABLE:Di&&(!Fr||Fr&&Ei(wi,"name").configurable)},xi=i((function(e){var t=Si.CONFIGURABLE,n=bi.get,r=bi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Oo(i,"name")||t&&i.name!==f)&&ti(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==kr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ti(e,n,i)):l?e[n]=i:Eo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||ai(this)}))})),Ci=Math.ceil,Ai=Math.floor,Oi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ai:Ci)(t)},ki=Math.max,Bi=Math.min,Fi=function(e,t){var n=Oi(e);return n<0?ki(n+t,0):Bi(n,t)},Ti=Math.min,_i=function(e){return e>0?Ti(Oi(e),9007199254740991):0},Pi=function(e){return _i(e.length)},ji=function(e){return function(t,n,r){var o,i=Zr(t),a=Pi(i),u=Fi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ni={includes:ji(!0),indexOf:ji(!1)}.indexOf,Ii=Hr([].push),Li=function(e,t){var n,r=Zr(e),o=0,i=[];for(n in r)!Oo(fi,n)&&Oo(r,n)&&Ii(i,n);for(;t.length>o;)Oo(r,n=t[o++])&&(~Ni(i,n)||Ii(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mi=Ri.concat("length","prototype"),zi=Object.getOwnPropertyNames||function(e){return Li(e,Mi)},$i={f:zi},Hi={f:Object.getOwnPropertySymbols},Vi=Hr([].concat),Ui=to("Reflect","ownKeys")||function(e){var t=$i.f(Xo(e)),n=Hi.f;return n?Vi(t,n(e)):t},Wi=function(e,t){for(var n=Ui(t),r=ei.f,o=qo.f,i=0;i<n.length;i++){var a=n[i];Oo(e,a)||r(e,a,o(t,a))}},Gi=/#|\.prototype\./,qi=function(e,t){var n=Yi[Ki(e)];return n==Zi||n!=Xi&&(Jr(t)?Br(t):!!t)},Ki=qi.normalize=function(e){return String(e).replace(Gi,".").toLowerCase()},Yi=qi.data={},Xi=qi.NATIVE="N",Zi=qi.POLYFILL="P",Ji=qi,Qi=qo.f,ea=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?kr:l?kr[u]||Eo(u,{}):(kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Qi(n,r))&&a.value:n[r],!Ji(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wi(i,o)}(e.sham||o&&o.sham)&&ti(i,"sham",!0),xi(n,r,i,e)}},ta={};ta[Io("toStringTag")]="z";var na,ra="[object z]"===String(ta),oa=Io("toStringTag"),ia=kr.Object,aa="Arguments"==Wr(function(){return arguments}()),ua=ra?Wr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ia(e),oa))?n:aa?Wr(t):"Object"==(r=Wr(t))&&Jr(t.callee)?"Arguments":r},sa=kr.String,la=function(e){if("Symbol"===ua(e))throw TypeError("Cannot convert a Symbol value to a string");return sa(e)},ca=function(){var e=Xo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fa=kr.RegExp,da=Br((function(){var e=fa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pa=da||Br((function(){return!fa("a","y").sticky})),ha=da||Br((function(){var e=fa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ga={BROKEN_CARET:ha,MISSED_STICKY:pa,UNSUPPORTED_Y:da},va=Object.keys||function(e){return Li(e,Ri)},ya=Fr?Object.defineProperties:function(e,t){Xo(e);for(var n,r=Zr(t),o=va(t),i=o.length,a=0;i>a;)ei.f(e,n=o[a++],r[n]);return e},ma=to("document","documentElement"),ba=ci("IE_PROTO"),wa=function(){},Ea=function(e){return"<script>"+e+"<\/script>"},Da=function(e){e.write(Ea("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sa=function(){try{na=new ActiveXObject("htmlfile")}catch(e){}var e,t;Sa="undefined"!=typeof document?document.domain&&na?Da(na):((t=Vo("iframe")).style.display="none",ma.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ea("document.F=Object")),e.close(),e.F):Da(na);for(var n=Ri.length;n--;)delete Sa.prototype[Ri[n]];return Sa()};fi[ba]=!0;var xa,Ca,Aa=Object.create||function(e,t){var n;return null!==e?(wa.prototype=Xo(e),n=new wa,wa.prototype=null,n[ba]=e):n=Sa(),void 0===t?n:ya(n,t)},Oa=kr.RegExp,ka=Br((function(){var e=Oa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ba=kr.RegExp,Fa=Br((function(){var e=Ba("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=bi.get,_a=So("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,ja=Pa,Na=Hr("".charAt),Ia=Hr("".indexOf),La=Hr("".replace),Ra=Hr("".slice),Ma=(Ca=/b*/g,_r(Pa,xa=/a/,"a"),_r(Pa,Ca,"a"),0!==xa.lastIndex||0!==Ca.lastIndex),za=ga.BROKEN_CARET,$a=void 0!==/()??/.exec("")[1];(Ma||$a||za||ka||Fa)&&(ja=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=la(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_r(ja,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=za&&s.sticky,h=_r(ca,s),g=s.source,v=0,y=c;if(p&&(h=La(h,"y",""),-1===Ia(h,"g")&&(h+="g"),y=Ra(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Na(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),$a&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ma&&(r=s.lastIndex),o=_r(Pa,p?n:s,y),p?o?(o.input=Ra(o.input,v),o[0]=Ra(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ma&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$a&&o&&o.length>1&&_r(_a,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Aa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ha=ja;ea({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});var Va=Io("species"),Ua=RegExp.prototype,Wa=Hr("".charAt),Ga=Hr("".charCodeAt),qa=Hr("".slice),Ka=function(e){return function(t,n){var r,o,i=la(Xr(t)),a=Oi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ga(i,a))<55296||r>56319||a+1===u||(o=Ga(i,a+1))<56320||o>57343?e?Wa(i,a):r:e?qa(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ya={codeAt:Ka(!1),charAt:Ka(!0)},Xa=Ya.charAt,Za=function(e,t,n){return t+(n?Xa(e,t).length:1)},Ja=kr.TypeError,Qa=function(e,t){var n=e.exec;if(Jr(n)){var r=_r(n,e,t);return null!==r&&Xo(r),r}if("RegExp"===Wr(e))return _r(Ha,e,t);throw Ja("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Io(e),i=!Br((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Br((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Va]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Hr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Hr(e),s=t.exec;return s===Ha||s===Ua.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));xi(String.prototype,e,s[0]),xi(Ua,o,s[1])}r&&ti(Ua[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=Xr(this),r=null==t?void 0:mo(t,e);return r?_r(r,t,n):new RegExp(t)[e](la(n))},function(e){var r=Xo(this),o=la(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Qa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Qa(r,o));){var c=la(u[0]);s[l]=c,""===c&&(r.lastIndex=Za(o,_i(r.lastIndex),a)),l++}return 0===l?null:s}]})),ea({global:!0},{globalThis:kr});var eu=!Br((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tu=ci("IE_PROTO"),nu=kr.Object,ru=nu.prototype,ou=eu?nu.getPrototypeOf:function(e){var t=Co(e);if(Oo(t,tu))return t[tu];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof nu?ru:null},iu=kr.String,au=kr.TypeError,uu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Hr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Xo(n),function(e){if("object"==typeof e||Jr(e))return e;throw au("Can't set "+iu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),su=kr.Array,lu=Math.max,cu=Hr("".replace),fu=Hr("".split),du=Hr([].join),pu=String(Error("zxcasd").stack),hu=/\n\s*at [^:]*:[^\n]*/,gu=hu.test(pu),vu=/@[^\n]*\n/.test(pu)&&!/zxcasd/.test(pu),yu=function(e,t){if("string"!=typeof e)return e;if(gu)for(;t--;)e=cu(e,hu,"");else if(vu)return du(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=Fi(t,u),l=Fi(void 0===n?u:n,u),c=su(lu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=zo(o))in r?ei.f(r,a,Lr(0,i)):r[a]=i;return c.length=f,c}(fu(e,"\n"),t),"\n");return e},mu=function(e,t){Qr(t)&&"cause"in t&&ti(e,"cause",t.cause)},bu=Hr(Hr.bind),wu=function(e,t){return yo(e),void 0===t?e:bu?bu(e,t):function(){return e.apply(t,arguments)}},Eu={},Du=Io("iterator"),Su=Array.prototype,xu=Io("iterator"),Cu=function(e){if(null!=e)return mo(e,xu)||mo(e,"@@iterator")||Eu[ua(e)]},Au=kr.TypeError,Ou=function(e,t,n){var r,o;Xo(e);try{if(!(r=mo(e,"return"))){if("throw"===t)throw n;return n}r=_r(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Xo(r),n},ku=kr.TypeError,Bu=function(e,t){this.stopped=e,this.result=t},Fu=Bu.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=wu(t,c),g=function(e){return r&&Ou(r,"normal",e),new Bu(!0,e)},v=function(e){return f?(Xo(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=Cu(e)))throw ku(go(e)+" is not iterable");if(function(e){return void 0!==e&&(Eu.Array===e||Su[Du]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=v(e[i]))&&no(Fu,u))return u;return new Bu(!1)}r=function(e,t){var n=arguments.length<2?Cu(e):t;if(yo(n))return Xo(_r(n,e));throw Au(go(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=_r(s,r)).done;){try{u=v(l.value)}catch(e){Ou(r,"throw",e)}if("object"==typeof u&&u&&no(Fu,u))return u}return new Bu(!1)},_u=function(e,t){return void 0===e?arguments.length<2?"":t:la(e)},Pu=!Br((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Lr(1,7)),7!==e.stack)})),ju=Io("toStringTag"),Nu=kr.Error,Iu=[].push,Lu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=no(Ru,this);uu?n=uu(new Nu(void 0),o?ou(this):Ru):(n=o?this:Aa(Ru),ti(n,ju,"Error")),ti(n,"message",_u(t,"")),Pu&&ti(n,"stack",yu(n.stack,1)),mu(n,r);var i=[];return Tu(e,Iu,{that:i}),ti(n,"errors",i),n};uu?uu(Lu,Nu):Wi(Lu,Nu);var Ru=Lu.prototype=Aa(Nu.prototype,{constructor:Lr(1,Lu),message:Lr(1,""),name:Lr(1,"AggregateError")});ea({global:!0},{AggregateError:Lu});var Mu=Io("unscopables"),zu=Array.prototype;null==zu[Mu]&&ei.f(zu,Mu,{configurable:!0,value:Aa(null)});var $u,Hu,Vu,Uu=function(e){zu[Mu][e]=!0},Wu=Io("iterator"),Gu=!1;[].keys&&("next"in(Vu=[].keys())?(Hu=ou(ou(Vu)))!==Object.prototype&&($u=Hu):Gu=!0);var qu=null==$u||Br((function(){var e={};return $u[Wu].call(e)!==e}));qu&&($u={}),Jr($u[Wu])||xi($u,Wu,(function(){return this}));var Ku={IteratorPrototype:$u,BUGGY_SAFARI_ITERATORS:Gu},Yu=ei.f,Xu=Io("toStringTag"),Zu=function(e,t,n){e&&!Oo(e=n?e:e.prototype,Xu)&&Yu(e,Xu,{configurable:!0,value:t})},Ju=Ku.IteratorPrototype,Qu=function(){return this},es=Si.PROPER,ts=Si.CONFIGURABLE,ns=Ku.IteratorPrototype,rs=Ku.BUGGY_SAFARI_ITERATORS,os=Io("iterator"),is=function(){return this},as=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Aa(Ju,{next:Lr(+!r,n)}),Zu(e,o,!1),Eu[o]=Qu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!rs&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[os]||p["@@iterator"]||o&&p[o],g=!rs&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=ou(v.call(new e)))!==Object.prototype&&u.next&&(ou(u)!==ns&&(uu?uu(u,ns):Jr(u[os])||xi(u,os,is)),Zu(u,f,!0)),es&&"values"==o&&h&&"values"!==h.name&&(ts?ti(p,"name","values"):(d=!0,g=function(){return _r(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(rs||d||!(l in p))&&xi(p,l,s[l]);else ea({target:t,proto:!0,forced:rs||d},s);return p[os]!==g&&xi(p,os,g,{name:o}),Eu[t]=g,s},us=bi.set,ss=bi.getterFor("Array Iterator"),ls=as(Array,"Array",(function(e,t){us(this,{type:"Array Iterator",target:Zr(e),index:0,kind:t})}),(function(){var e=ss(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Eu.Arguments=Eu.Array,Uu("keys"),Uu("values"),Uu("entries");var cs=Ya.charAt,fs=bi.set,ds=bi.getterFor("String Iterator");as(String,"String",(function(e){fs(this,{type:"String Iterator",string:la(e),index:0})}),(function(){var e,t=ds(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cs(n,r),t.index+=e.length,{value:e,done:!1})}));var ps,hs={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},gs=Vo("span").classList,vs=gs&&gs.constructor&&gs.constructor.prototype,ys=vs===Object.prototype?void 0:vs,ms=Io("iterator"),bs=Io("toStringTag"),ws=ls.values,Es=function(e,t){if(e){if(e[ms]!==ws)try{ti(e,ms,ws)}catch(t){e[ms]=ws}if(e[bs]||ti(e,bs,t),hs[t])for(var n in ls)if(e[n]!==ls[n])try{ti(e,n,ls[n])}catch(t){e[n]=ls[n]}}};for(var Ds in hs)Es(kr[Ds]&&kr[Ds].prototype,Ds);function Ss(){"undefined"==typeof globalThis&&(window.globalThis=window)}function xs(){void 0===Ar&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Es(ys,"DOMTokenList"),"undefined"==typeof n.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Ss(),xs()):n.g&&(null===(ps=n.g.navigator)||void 0===ps?void 0:ps.userAgent.match("QQBrowser"))&&(Ss(),xs());var Cs,As=Array.isArray||function(e){return"Array"==_(e)},Os=function(){},ks=[],Bs=H("Reflect","construct"),Fs=/^\s*(?:class|function)\b/,Ts=b(Fs.exec),_s=!Fs.exec(Os),Ps=function(e){if(!w(e))return!1;try{return Bs(Os,ks,e),!0}catch(e){return!1}},js=!Bs||E((function(){var e;return Ps(Ps.call)||!Ps(Object)||!Ps((function(){e=!0}))||e}))?function(e){if(!w(e))return!1;switch(sn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _s||!!Ts(Fs,Fn(e))}:Ps,Ns=De("species"),Is=l.Array,Ls=function(e,t){return new(function(e){var t;return As(e)&&(t=e.constructor,(js(t)&&(t===Is||As(t.prototype))||M(t)&&null===(t=t[Ns]))&&(t=void 0)),void 0===t?Is:t}(e))(0===t?0:t)},Rs=De("species"),Ms=De("isConcatSpreadable"),zs=l.TypeError,$s=X>=51||!E((function(){var e=[];return e[Ms]=!1,e.concat()[0]!==e})),Hs=(Cs="concat",X>=51||!E((function(){var e=[];return(e.constructor={})[Rs]=function(){return{foo:1}},1!==e[Cs](Boolean).foo}))),Vs=function(e){if(!M(e))return!1;var t=e[Ms];return void 0!==t?!!t:As(e)};Qe({target:"Array",proto:!0,forced:!$s||!Hs},{concat:function(e){var t,n,r,o,i,a=fe(this),u=Ls(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Vs(i=-1===t?a:arguments[t])){if(s+(o=yt(i))>9007199254740991)throw zs("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=9007199254740991)throw zs("Maximum allowed index exceeded");zt(u,s++,i)}return u.length=s,u}});var Us=Ot.f,Ws="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gs={f:function(e){return Ws&&"Window"==_(e)?function(e){try{return Us(e)}catch(e){return Vt(Ws)}}(e):Us(R(e))}},qs=b([].slice),Ks={f:De},Ys=Ye.f,Xs=function(e){var t=z.Symbol||(z.Symbol={});pe(t,e)||Ys(t,e,{value:Ks.f(e)})},Zs=b([].push),Js=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=fe(s),g=N(h),v=He(l,c),y=yt(g),m=0,b=f||Ls,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Zs(w,d)}else switch(e){case 4:return!1;case 7:Zs(w,d)}return i?-1:r||o?o:w}},Qs={forEach:Js(0),map:Js(1),filter:Js(2),some:Js(3),every:Js(4),find:Js(5),findIndex:Js(6),filterReject:Js(7)}.forEach,el=tt("hidden"),tl=De("toPrimitive"),nl=Vn.set,rl=Vn.getterFor("Symbol"),ol=Object.prototype,il=l.Symbol,al=il&&il.prototype,ul=l.TypeError,sl=l.QObject,ll=H("JSON","stringify"),cl=Pe.f,fl=Ye.f,dl=Gs.f,pl=k.f,hl=b([].push),gl=le("symbols"),vl=le("op-symbols"),yl=le("string-to-symbol-registry"),ml=le("symbol-to-string-registry"),bl=le("wks"),wl=!sl||!sl.prototype||!sl.prototype.findChild,El=D&&E((function(){return 7!=Mt(fl({},"a",{get:function(){return fl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=cl(ol,t);r&&delete ol[t],fl(e,t,n),r&&e!==ol&&fl(ol,t,r)}:fl,Dl=function(e,t){var n=gl[e]=Mt(al);return nl(n,{type:"Symbol",tag:e,description:t}),D||(n.description=t),n},Sl=function(e,t,n){e===ol&&Sl(vl,t,n),We(e);var r=Ae(t);return We(n),pe(gl,r)?(n.enumerable?(pe(e,el)&&e[el][r]&&(e[el][r]=!1),n=Mt(n,{enumerable:B(0,!1)})):(pe(e,el)||fl(e,el,B(1,{})),e[el][r]=!0),El(e,r,n)):fl(e,r,n)},xl=function(e,t){We(e);var n=R(t),r=Tt(n).concat(kl(n));return Qs(r,(function(t){D&&!x(Cl,n,t)||Sl(e,t,n[t])})),e},Cl=function(e){var t=Ae(e),n=x(pl,this,t);return!(this===ol&&pe(gl,t)&&!pe(vl,t))&&(!(n||!pe(this,t)||!pe(gl,t)||pe(this,el)&&this[el][t])||n)},Al=function(e,t){var n=R(e),r=Ae(t);if(n!==ol||!pe(gl,r)||pe(vl,r)){var o=cl(n,r);return!o||!pe(gl,r)||pe(n,el)&&n[el][r]||(o.enumerable=!0),o}},Ol=function(e){var t=dl(R(e)),n=[];return Qs(t,(function(e){pe(gl,e)||pe(wt,e)||hl(n,e)})),n},kl=function(e){var t=e===ol,n=dl(t?vl:R(e)),r=[];return Qs(n,(function(e){!pe(gl,e)||t&&!pe(ol,e)||hl(r,gl[e])})),r};if(Z||(al=(il=function(){if(V(al,this))throw ul("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?mn(arguments[0]):void 0,t=ye(e),n=function(e){this===ol&&x(n,vl,e),pe(this,el)&&pe(this[el],t)&&(this[el][t]=!1),El(this,t,B(1,e))};return D&&wl&&El(ol,t,{configurable:!0,set:n}),Dl(t,e)}).prototype,Kn(al,"toString",(function(){return rl(this).tag})),Kn(il,"withoutSetter",(function(e){return Dl(ye(e),e)})),k.f=Cl,Ye.f=Sl,Pe.f=Al,Ot.f=Gs.f=Ol,kt.f=kl,Ks.f=function(e){return Dl(De(e),e)},D&&fl(al,"description",{configurable:!0,get:function(){return rl(this).description}})),Qe({global:!0,wrap:!0,forced:!Z,sham:!Z},{Symbol:il}),Qs(Tt(bl),(function(e){Xs(e)})),Qe({target:"Symbol",stat:!0,forced:!Z},{for:function(e){var t=mn(e);if(pe(yl,t))return yl[t];var n=il(t);return yl[t]=n,ml[n]=t,n},keyFor:function(e){if(!ee(e))throw ul(e+" is not a symbol");if(pe(ml,e))return ml[e]},useSetter:function(){wl=!0},useSimple:function(){wl=!1}}),Qe({target:"Object",stat:!0,forced:!Z,sham:!D},{create:function(e,t){return void 0===t?Mt(e):xl(Mt(e),t)},defineProperty:Sl,defineProperties:xl,getOwnPropertyDescriptor:Al}),Qe({target:"Object",stat:!0,forced:!Z},{getOwnPropertyNames:Ol,getOwnPropertySymbols:kl}),Qe({target:"Object",stat:!0,forced:E((function(){kt.f(1)}))},{getOwnPropertySymbols:function(e){return kt.f(fe(e))}}),ll){var Bl=!Z||E((function(){var e=il();return"[null]"!=ll([e])||"{}"!=ll({a:e})||"{}"!=ll(Object(e))}));Qe({target:"JSON",stat:!0,forced:Bl},{stringify:function(e,t,n){var r=qs(arguments),o=t;if((M(t)||void 0!==e)&&!ee(e))return As(t)||(t=function(e,t){if(w(o)&&(t=x(o,this,e,t)),!ee(t))return t}),r[1]=t,h(ll,null,r)}})}if(!al[tl]){var Fl=al.valueOf;Kn(al,tl,(function(e){return x(Fl,this)}))}nr(il,"Symbol"),wt[el]=!0,Xs("asyncIterator"),Xs("hasInstance"),Xs("isConcatSpreadable"),Xs("iterator"),Xs("match"),Xs("matchAll"),Xs("replace"),Xs("search"),Xs("species"),Xs("split"),Xs("toPrimitive"),Xs("toStringTag"),Xs("unscopables"),nr(l.JSON,"JSON",!0);var Tl=z.Symbol;Xs("asyncDispose"),Xs("dispose"),Xs("matcher"),Xs("metadata"),Xs("observable"),Xs("patternMatch"),Xs("replaceAll");var _l=Tl,Pl=Ks.f("iterator"),jl=i((function(e){function t(n){return"function"==typeof _l&&"symbol"==typeof Pl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof _l&&e.constructor===_l&&e!==_l.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Nl=o(jl),Il=qo.f,Ll=Br((function(){Il(1)}));if(ea({target:"Object",stat:!0,forced:!Fr||Ll,sham:!Fr},{getOwnPropertyDescriptor:function(e,t){return Il(Zr(e),t)}}),"object"===("undefined"==typeof n.g?"undefined":Nl(n.g))){var Rl=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!Rl.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=n.g.document&&null==n.g.document.getElementsByTagName&&(n.g.document.getElementsByTagName=function(){return[]})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Ml(e){return"[object Object]"===Object.prototype.toString.call(e)}function zl(e){var t,n;return!1!==Ml(e)&&(void 0===(t=e.constructor)||!1!==Ml(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function $l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Hl(e){return!!e&&!!e[Oc]}function Vl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===kc}(e)||Array.isArray(e)||!!e[Ac]||!!e.constructor[Ac]||Kl(e)||Yl(e))}function Ul(e,t,n){void 0===n&&(n=!1),0===Wl(e)?(n?Object.keys:Bc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Wl(e){var t=e[Oc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Kl(e)?2:Yl(e)?3:0}function Gl(e,t){return 2===Wl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ql(e,t,n){var r=Wl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Kl(e){return Dc&&e instanceof Map}function Yl(e){return Sc&&e instanceof Set}function Xl(e){return e.o||e.t}function Zl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Fc(e);delete t[Oc];for(var n=Bc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Jl(e,t){return void 0===t&&(t=!1),ec(e)||Hl(e)||!Vl(e)||(Wl(e)>1&&(e.set=e.add=e.clear=e.delete=Ql),Object.freeze(e),t&&Ul(e,(function(e,t){return Jl(t,!0)}),!0)),e}function Ql(){$l(2)}function ec(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tc(e){var t=Tc[e];return t||$l(18,e),t}function nc(){return wc}function rc(e,t){t&&(tc("Patches"),e.u=[],e.s=[],e.v=t)}function oc(e){ic(e),e.p.forEach(uc),e.p=null}function ic(e){e===wc&&(wc=e.l)}function ac(e){return wc={p:[],l:wc,h:e,m:!0,_:0}}function uc(e){var t=e[Oc];0===t.i||1===t.i?t.j():t.O=!0}function sc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||tc("ES5").S(t,e,r),r?(n[Oc].P&&(oc(t),$l(4)),Vl(e)&&(e=lc(t,e),t.l||fc(t,e)),t.u&&tc("Patches").M(n[Oc],e,t.u,t.s)):e=lc(t,n,[]),oc(t),t.u&&t.v(t.u,t.s),e!==Cc?e:void 0}function lc(e,t,n){if(ec(t))return t;var r=t[Oc];if(!r)return Ul(t,(function(o,i){return cc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return fc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Zl(r.k):r.o;Ul(3===r.i?new Set(o):o,(function(t,i){return cc(e,r,o,t,i,n)})),fc(e,o,!1),n&&e.u&&tc("Patches").R(r,n,e.u,e.s)}return r.o}function cc(e,t,n,r,o,i){if(Hl(o)){var a=lc(e,o,i&&t&&3!==t.i&&!Gl(t.D,r)?i.concat(r):void 0);if(ql(n,r,a),!Hl(a))return;e.m=!1}if(Vl(o)&&!ec(o)){if(!e.h.F&&e._<1)return;lc(e,o),t&&t.A.l||fc(e,o)}}function fc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Jl(t,n)}function dc(e,t){var n=e[Oc];return(n?Xl(n):e)[t]}function pc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function hc(e){e.P||(e.P=!0,e.l&&hc(e.l))}function gc(e){e.o||(e.o=Zl(e.t))}function vc(e,t,n){var r=Kl(t)?tc("MapSet").N(t,n):Yl(t)?tc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:nc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=_c;n&&(o=[r],i=Pc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):tc("ES5").J(t,n);return(n?n.A:nc()).p.push(r),r}function yc(e){return Hl(e)||$l(22,e),function e(t){if(!Vl(t))return t;var n,r=t[Oc],o=Wl(t);if(r){if(!r.P&&(r.i<4||!tc("ES5").K(r)))return r.t;r.I=!0,n=mc(t,o),r.I=!1}else n=mc(t,o);return Ul(n,(function(t,o){r&&function(e,t){return 2===Wl(e)?e.get(t):e[t]}(r.t,t)===o||ql(n,t,e(o))})),3===o?new Set(n):n}(e)}function mc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Zl(e)}var bc,wc,Ec="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Dc="undefined"!=typeof Map,Sc="undefined"!=typeof Set,xc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Cc=Ec?Symbol.for("immer-nothing"):((bc={})["immer-nothing"]=!0,bc),Ac=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",Oc=Ec?Symbol.for("immer-state"):"__$immer_state",kc=""+Object.prototype.constructor,Bc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Fc=Object.getOwnPropertyDescriptors||function(e){var t={};return Bc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Tc={},_c={get:function(e,t){if(t===Oc)return e;var n=Xl(e);if(!Gl(n,t))return function(e,t,n){var r,o=pc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Vl(r)?r:r===dc(e.t,t)?(gc(e),e.o[t]=vc(e.A.h,r,e)):r},has:function(e,t){return t in Xl(e)},ownKeys:function(e){return Reflect.ownKeys(Xl(e))},set:function(e,t,n){var r=pc(Xl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=dc(Xl(e),t),i=null==o?void 0:o[Oc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Gl(e.t,t)))return!0;gc(e),hc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dc(e.t,t)||t in e.t?(e.D[t]=!1,gc(e),hc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Xl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){$l(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){$l(12)}},Pc={};Ul(_c,(function(e,t){Pc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Pc.deleteProperty=function(e,t){return _c.deleteProperty.call(this,e[0],t)},Pc.set=function(e,t,n){return _c.set.call(this,e[0],t,n,e[0])};var jc=function(){function e(e){var t=this;this.g=xc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&$l(6),void 0!==r&&"function"!=typeof r&&$l(7),Vl(e)){var u=ac(t),s=vc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?oc(u):ic(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return rc(u,r),sc(e,u)}),(function(e){throw oc(u),e})):(rc(u,r),sc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Cc)return;return void 0===a&&(a=e),t.F&&Jl(a,!0),a}$l(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Vl(e)||$l(8),Hl(e)&&(e=yc(e));var t=ac(this),n=vc(this,e,void 0);return n[Oc].C=!0,ic(t),n},t.finishDraft=function(e,t){var n=(e&&e[Oc]).A;return rc(n,t),sc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!xc&&$l(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=tc("Patches").$;return Hl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Nc=new jc,Ic=Nc.produce;Nc.produceWithPatches.bind(Nc),Nc.setAutoFreeze.bind(Nc),Nc.setUseProxies.bind(Nc),Nc.applyPatches.bind(Nc);var Lc=Nc.createDraft.bind(Nc),Rc=Nc.finishDraft.bind(Nc);function Mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zc=new WeakMap,$c=new WeakMap,Hc=new WeakMap,Vc=new WeakMap,Uc=new WeakMap,Wc=new WeakMap;function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of _f.pathRefs(e))Hf.transform(n,t);for(var r of _f.pointRefs(e))Gf.transform(r,t);for(var o of _f.rangeRefs(e))Xf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=zc.get(e)||[],l=Yc(t);for(var c of s)u($f.transform(c,t));for(var f of l)u(f);zc.set(e,a),wd.transform(e,t),e.operations.push(t),_f.normalize(e),"set_selection"===t.type&&(e.marks=null),$c.get(e)||($c.set(e,!0),Promise.resolve().then((()=>{$c.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Yf.isExpanded(r))wd.setNodes(e,{[t]:n},{match:nd.isText,split:!0});else{var o=qc(qc({},_f.marks(e)||{}),{},{[t]:n});e.marks=o,$c.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Yf.isCollapsed(n)&&wd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Yf.isCollapsed(n)&&wd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Yf.isExpanded(n)&&wd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Lf.fragment(e,t):[]},insertBreak:()=>{wd.splitNodes(e,{always:!0})},insertFragment:t=>{wd.insertFragment(e,t)},insertNode:t=>{wd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=qc({text:t},r);wd.insertNodes(e,o)}else wd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!nd.isText(n))if(Af.isElement(n)&&0===n.children.length)wd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!_f.isEditor(n)&&Af.isElement(n)&&(e.isInline(n)||0===n.children.length||nd.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Lf.get(e,r);if(!nd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(nd.isText(s)||Af.isElement(s)&&e.isInline(s))!==o?(wd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Af.isElement(s)?e.isInline(s)&&(null!=l&&nd.isText(l)?c&&(wd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(wd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&nd.isText(l)&&(nd.equals(s,l,{loose:!0})?(wd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(wd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(wd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Yf.isExpanded(n))wd.unsetNodes(e,t,{match:nd.isText,split:!0});else{var r=qc({},_f.marks(e)||{});delete r[t],e.marks=r,$c.get(e)||e.onChange()}}};return e},Yc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return $f.levels(t);case"insert_node":var{node:n,path:r}=e,o=$f.levels(r),i=nd.isText(n)?[]:Array.from(Lf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...$f.ancestors(a),$f.previous(a)];case"move_node":var{path:u,newPath:s}=e;if($f.equals(u,s))return[];var l=[],c=[];for(var f of $f.ancestors(u)){var d=$f.transform(f,e);l.push(d)}for(var p of $f.ancestors(s)){var h=$f.transform(p,e);c.push(h)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...$f.ancestors(m)];case"split_node":var{path:b}=e;return[...$f.levels(b),$f.next(b)];default:return[]}};function Xc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Zc,Jc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?of(e):e,o=Zc.None,i=Zc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=yf(s,l);if([o,i]=n?[i,c]:[c,o],mf(o,Zc.ZWJ)&&mf(i,Zc.ExtPict)&&!Df(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(mf(o,Zc.RI)&&mf(i,Zc.RI)&&!(u=null!==u?!u:!!n||xf(e.substring(0,e.length-a))))break;if(o!==Zc.None&&i!==Zc.None&&wf(o,i))break;a+=s.length}return a||1},Qc=/\s/,ef=/[\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]/,tf=/['\u2018\u2019]/,nf=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},rf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Qc.test(t))return!1;if(tf.test(t)){var o=Jc(n,r),[i,a]=nf(n,o,r);if(e(i,a,r))return!0}return!ef.test(t)},of=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(uf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(af(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},af=e=>e>=55296&&e<=56319,uf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Zc||(Zc={}));var sf=/^(?:[\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])$/,lf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,cf=/^(?:[\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])$/,ff=/^[\u1100-\u115F\uA960-\uA97C]$/,df=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,hf=/^[\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]$/,gf=/^[\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]$/,vf=/^(?:[\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])$/,yf=(e,t)=>{var n=Zc.Any;return-1!==e.search(sf)&&(n|=Zc.Extend),8205===t&&(n|=Zc.ZWJ),t>=127462&&t<=127487&&(n|=Zc.RI),-1!==e.search(lf)&&(n|=Zc.Prepend),-1!==e.search(cf)&&(n|=Zc.SpacingMark),-1!==e.search(ff)&&(n|=Zc.L),-1!==e.search(df)&&(n|=Zc.V),-1!==e.search(pf)&&(n|=Zc.T),-1!==e.search(hf)&&(n|=Zc.LV),-1!==e.search(gf)&&(n|=Zc.LVT),-1!==e.search(vf)&&(n|=Zc.ExtPict),n};function mf(e,t){return 0!=(e&t)}var bf=[[Zc.L,Zc.L|Zc.V|Zc.LV|Zc.LVT],[Zc.LV|Zc.V,Zc.V|Zc.T],[Zc.LVT|Zc.T,Zc.T],[Zc.Any,Zc.Extend|Zc.ZWJ],[Zc.Any,Zc.SpacingMark],[Zc.Prepend,Zc.Any],[Zc.ZWJ,Zc.ExtPict],[Zc.RI,Zc.RI]];function wf(e,t){return-1===bf.findIndex((n=>mf(e,n[0])&&mf(t,n[1])))}var Ef=/(?:[\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$/,Df=e=>-1!==e.search(Ef),Sf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,xf=e=>{var t=e.match(Sf);return null!==t&&t[0].length/2%2==1},Cf=e=>zl(e)&&Lf.isNodeList(e.children)&&!_f.isEditor(e),Af={isAncestor:e=>zl(e)&&Lf.isNodeList(e.children),isElement:Cf,isElementList:e=>Array.isArray(e)&&e.every((e=>Af.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Cf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Of=["text"],kf=["text"];function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=new WeakMap,_f={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=_f.path(e,o),u="lowest"===r;for(var[s,l]of _f.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!nd.isText(s)&&!$f.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:_f.point(e,t,{edge:"end"}),focus:_f.end(e,[])},{distance:i=1}=r,a=0;for(var u of _f.positions(e,Ff(Ff({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:_f.start(e,[]),focus:_f.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of _f.positions(e,Ff(Ff({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[_f.start(e,t),_f.end(e,t)],end:(e,t)=>_f.point(e,t,{edge:"end"}),first(e,t){var n=_f.path(e,t,{edge:"start"});return _f.node(e,n)},fragment(e,t){var n=_f.range(e,t);return Lf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>_f.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>nd.isText(t)||_f.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>nd.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Af.isElement(t)&&!e.isInline(t),isEditor(e){if(!zl(e))return!1;var t=Tf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||zl(e.marks))&&(null===e.selection||Yf.isRange(e.selection))&&Lf.isNodeList(e.children)&&zf.isOperationList(e.operations);return Tf.set(e,n),n},isEnd(e,t,n){var r=_f.end(e,n);return Wf.equals(t,r)},isEdge:(e,t,n)=>_f.isStart(e,t,n)||_f.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&nd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Af.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Hc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=_f.start(e,n);return Wf.equals(t,r)},isVoid:(e,t)=>Af.isElement(t)&&e.isVoid(t),last(e,t){var n=_f.path(e,t,{edge:"end"});return _f.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_f.path(e,t,n);return[Lf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=_f.path(e,n);for(var[s,l]of Lf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&_f.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Yf.isExpanded(n)){var[r]=_f.nodes(e,{match:nd.isText});if(r){var[o]=r;return Xc(o,Of)}return{}}var{anchor:i}=n,{path:a}=i,[u]=_f.leaf(e,a);if(0===i.offset){var s=_f.previous(e,{at:a,match:nd.isText}),l=_f.above(e,{match:t=>_f.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;$f.isAncestor(d,f)&&(u=c)}}return Xc(u,kf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=_f.after(e,i,{voids:r});if(a){var[,u]=_f.last(e,[]),s=[a.path,u];if($f.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if($f.isPath(i)){var[l]=_f.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=_f.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_f.path(e,t,n);return[Lf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Pf.isSpan(n))s=n[0],l=n[1];else{var c=_f.path(e,n,{edge:"start"}),f=_f.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Lf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&_f.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===$f.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&nd.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>zc.get(e)||[];if(_f.isNormalizing(e)){if(n){var o=Array.from(Lf.nodes(e),(e=>{var[,t]=e;return t}));zc.set(e,o)}0!==r(e).length&&_f.withoutNormalizing(e,(()=>{for(var t of r(e))if(Lf.has(e,t)){var n=_f.node(e,t),[o,i]=n;Af.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Lf.has(e,s)){var l=_f.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_f.path(e,t,n),o=$f.parent(r);return _f.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if($f.isPath(t))if("start"===o){var[,i]=Lf.first(e,t);t=i}else if("end"===o){var[,a]=Lf.last(e,t);t=a}return Yf.isRange(t)&&(t="start"===o?Yf.start(t):"end"===o?Yf.end(t):$f.common(t.anchor.path,t.focus.path)),Wf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Lf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return _f.pathRefs(e).delete(o),o.current=null,t}};return _f.pathRefs(e).add(o),o},pathRefs(e){var t=Vc.get(e);return t||(t=new Set,Vc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if($f.isPath(t)){var o;if("end"===r){var[,i]=Lf.last(e,t);o=i}else{var[,a]=Lf.first(e,t);o=a}var u=Lf.get(e,o);if(!nd.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Yf.isRange(t)){var[s,l]=Yf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return _f.pointRefs(e).delete(o),o.current=null,t}};return _f.pointRefs(e).add(o),o},pointRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=_f.range(e,n),[u,s]=Yf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of _f.nodes(e,{at:n,reverse:o,voids:i})){if(Af.isElement(g)){if(!i&&e.isVoid(g)){yield _f.start(e,v);continue}if(e.isInline(g))continue;if(_f.hasInlines(e,g)){var y=$f.isAncestor(v,s.path)?s:_f.end(e,v),m=$f.isAncestor(v,u.path)?u:_f.start(e,v);f=_f.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(nd.isText(g)){var b=$f.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=nf(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Jc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Jc(e,t),[i,a]=nf(e,o,t);if(rf(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=_f.before(e,i,{voids:r});if(a){var[,u]=_f.first(e,[]),s=[a.path,u];if($f.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if($f.isPath(i)){var[l]=_f.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=_f.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Yf.isRange(t)&&!n?t:{anchor:_f.start(e,t),focus:_f.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return _f.rangeRefs(e).delete(o),o.current=null,t}};return _f.rangeRefs(e).add(o),o},rangeRefs(e){var t=Wc.get(e);return t||(t=new Set,Wc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Hc.set(e,t)},start:(e,t)=>_f.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=_f.range(e,t),[i,a]=Yf.edges(o),u="";for(var[s,l]of _f.nodes(e,{at:o,match:nd.isText,voids:r})){var c=s.text;$f.equals(l,a.path)&&(c=c.slice(0,a.offset)),$f.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Yf.edges(t);if(0!==o.offset||0!==i.offset||Yf.isCollapsed(t))return t;var a=_f.above(e,{at:i,match:t=>_f.isBlock(e,t)}),u=a?a[1]:[],s={anchor:_f.start(e,[]),focus:i},l=!0;for(var[c,f]of _f.nodes(e,{at:s,match:nd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||$f.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _f.above(e,Ff(Ff({},t),{},{match:t=>_f.isVoid(e,t)}))},withoutNormalizing(e,t){var n=_f.isNormalizing(e);_f.setNormalizing(e,!1);try{t()}finally{_f.setNormalizing(e,n)}_f.normalize(e)}},Pf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every($f.isPath)},jf=["children"],Nf=["text"],If=new WeakMap,Lf={ancestor(e,t){var n=Lf.get(e,t);if(nd.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of $f.ancestors(t,n)){var o=[Lf.ancestor(e,r),r];yield o}},child(e,t){if(nd.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Lf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Lf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=$f.common(t,n);return[Lf.get(e,r),r]},descendant(e,t){var n=Lf.get(e,t);if(_f.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Lf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Lf.nodes(e,t))Af.isElement(n)&&(yield[n,r])},extractProps:e=>Af.isAncestor(e)?Xc(e,jf):Xc(e,Nf),first(e,t){for(var n=t.slice(),r=Lf.get(e,n);r&&!nd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(nd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Ic({children:e.children},(e=>{var[n,r]=Yf.edges(t),o=Lf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Yf.includes(t,n)}});for(var[,i]of o){if(!Yf.includes(t,i)){var a=Lf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if($f.equals(i,r.path)){var s=Lf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if($f.equals(i,n.path)){var l=Lf.leaf(e,i);l.text=l.text.slice(n.offset)}}_f.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(nd.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(nd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>nd.isText(e)||Af.isElement(e)||_f.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=If.get(e);if(void 0!==t)return t;var n=e.every((e=>Lf.isNode(e)));return If.set(e,n),n},last(e,t){for(var n=t.slice(),r=Lf.get(e,n);r&&!nd.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Lf.get(e,t);if(!nd.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of $f.levels(t,n)){var o=Lf.get(e,r);yield[o,r]}},matches:(e,t)=>Af.isElement(e)&&Af.isElementProps(t)&&Af.matches(e,t)||nd.isText(e)&&nd.isTextProps(t)&&nd.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?$f.isBefore(u,i):$f.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||nd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=$f.next(u);if(Lf.has(e,l)){u=l,s=Lf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=$f.previous(u),s=Lf.get(e,u)):(u=$f.parent(u),s=Lf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;$f.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Lf.get(e,u)}},parent(e,t){var n=$f.parent(t),r=Lf.get(e,n);if(nd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>nd.isText(e)?e.text:e.children.map(Lf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Lf.nodes(e,t))nd.isText(n)&&(yield[n,r])}};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf={isNodeOperation:e=>zf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!zl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return $f.isPath(e.path)&&Lf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&$f.isPath(e.path);case"merge_node":return"number"==typeof e.position&&$f.isPath(e.path)&&zl(e.properties);case"move_node":return $f.isPath(e.path)&&$f.isPath(e.newPath);case"set_node":return $f.isPath(e.path)&&zl(e.properties)&&zl(e.newProperties);case"set_selection":return null===e.properties&&Yf.isRange(e.newProperties)||null===e.newProperties&&Yf.isRange(e.properties)||zl(e.properties)&&zl(e.newProperties);case"split_node":return $f.isPath(e.path)&&"number"==typeof e.position&&zl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>zf.isOperation(e))),isSelectionOperation:e=>zf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>zf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Mf(Mf({},e),{},{type:"remove_node"});case"insert_text":return Mf(Mf({},e),{},{type:"remove_text"});case"merge_node":return Mf(Mf({},e),{},{type:"split_node",path:$f.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if($f.equals(t,n))return e;if($f.isSibling(n,t))return Mf(Mf({},e),{},{path:t,newPath:n});var r=$f.transform(n,e),o=$f.transform($f.next(n),e);return Mf(Mf({},e),{},{path:r,newPath:o});case"remove_node":return Mf(Mf({},e),{},{type:"insert_node"});case"remove_text":return Mf(Mf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Mf(Mf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Mf(Mf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Mf(Mf({},e),{},{type:"merge_node",path:$f.next(e.path)})}}},$f={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=$f.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return $f.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return $f.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return $f.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===$f.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===$f.compare(e,t),isBefore:(e,t)=>-1===$f.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===$f.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===$f.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===$f.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===$f.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&$f.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!$f.isAncestor(t,e)&&!$f.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ic(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;($f.equals(i,r)||$f.endsBefore(i,r)||$f.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if($f.equals(a,r)||$f.isAncestor(a,r))return null;$f.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;$f.equals(u,r)||$f.endsBefore(u,r)?r[u.length-1]-=1:$f.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if($f.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else $f.endsBefore(l,r)?r[l.length-1]+=1:$f.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if($f.equals(f,d))return;if($f.isAncestor(f,r)||$f.equals(f,r)){var p=d.slice();return $f.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}$f.isSibling(f,d)&&($f.isAncestor(d,r)||$f.equals(d,r))?$f.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:$f.endsBefore(d,r)||$f.equals(d,r)||$f.isAncestor(d,r)?($f.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):$f.endsBefore(f,r)&&($f.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Hf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wf={compare(e,t){var n=$f.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Wf.compare(e,t),isBefore:(e,t)=>-1===Wf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&$f.equals(e.path,t.path),isPoint:e=>zl(e)&&"number"==typeof e.offset&&$f.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ic(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=$f.transform(o,t,n);break;case"insert_text":$f.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":$f.equals(t.path,o)&&(e.offset+=t.position),e.path=$f.transform(o,t,n);break;case"remove_text":$f.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if($f.equals(t.path,o)||$f.isAncestor(t.path,o))return null;e.path=$f.transform(o,t,n);break;case"split_node":if($f.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=$f.transform(o,t,Uf(Uf({},n),{},{affinity:"forward"})))}else e.path=$f.transform(o,t,n)}}))}},Gf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Wf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},qf=["anchor","focus"];function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Yf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Yf.edges(e);return t},equals:(e,t)=>Wf.equals(e.anchor,t.anchor)&&Wf.equals(e.focus,t.focus),includes(e,t){if(Yf.isRange(t)){if(Yf.includes(e,t.anchor)||Yf.includes(e,t.focus))return!0;var[n,r]=Yf.edges(e),[o,i]=Yf.edges(t);return Wf.isBefore(n,o)&&Wf.isAfter(r,i)}var[a,u]=Yf.edges(e),s=!1,l=!1;return Wf.isPoint(t)?(s=Wf.compare(t,a)>=0,l=Wf.compare(t,u)<=0):(s=$f.compare(t,a.path)>=0,l=$f.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Xc(e,qf),[r,o]=Yf.edges(e),[i,a]=Yf.edges(t),u=Wf.isBefore(r,i)?i:r,s=Wf.isBefore(o,a)?o:a;return Wf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Wf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Wf.equals(t,n)},isExpanded:e=>!Yf.isCollapsed(e),isForward:e=>!Yf.isBackward(e),isRange:e=>zl(e)&&Wf.isPoint(e.anchor)&&Wf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Yf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ic(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Yf.isCollapsed(e);Yf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Yf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Wf.transform(e.anchor,t,{affinity:r}),s=Wf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Xf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Yf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Zf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(zl(r)&&zl(o)){if(!Zf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Jf=["text"],Qf=["anchor","focus"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Xc(e,Jf)}return Zf(r?o(e):e,r?o(t):t)},isText:e=>zl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>nd.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[td({},e)];for(var r of t){var o=Xc(r,Qf),[i,a]=Yf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=td(td({},d),{},{text:d.text.slice(g)}),d=td(td({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=td(td({},d),{},{text:d.text.slice(0,v)}),d=td(td({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var id={transform(e,t){e.children=Lc(e.children);var n=e.selection&&Lc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Lf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Yf.points(t))t[s]=Wf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Lf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Yf.points(t))t[v]=Wf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Lf.get(e,y),b=$f.previous(y),w=Lf.get(e,b),E=Lf.parent(e,y),D=y[y.length-1];if(nd.isText(m)&&nd.isText(w))w.text+=m.text;else{if(nd.isText(m)||nd.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(D,1),t)for(var[S,x]of Yf.points(t))t[x]=Wf.transform(S,n);break;case"move_node":var{path:C,newPath:A}=n;if($f.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Lf.get(e,C),k=Lf.parent(e,C),B=C[C.length-1];k.children.splice(B,1);var F=$f.transform(C,n),T=Lf.get(e,$f.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Yf.points(t))t[j]=Wf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Lf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Yf.points(t)){var M=Wf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Lf.texts(e)){if(-1!==$f.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=$f.equals($[1],N)?!$f.hasPrevious($[1]):$f.common(z[1],N).length<$f.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Lf.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of Yf.points(t))t[J]=Wf.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Lf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Yf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=od({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Lf.get(e,le),he=Lf.parent(e,le),ge=le[le.length-1];if(nd.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=od(od({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=od(od({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Yf.points(t))t[Ee]=Wf.transform(we,n)}return t})(e,n,t)}finally{e.children=Rc(e.children),e.selection=n?Hl(n)?Rc(n):n:null}}},ad=["text"],ud=["children"];function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Lf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?_f.end(e,[]):[0],s=!0),null==s&&(s=!1),Yf.isRange(a))if(r||(a=_f.unhangRange(e,a)),Yf.isCollapsed(a))a=a.anchor;else{var[,c]=Yf.edges(a),f=_f.pointRef(e,c);wd.delete(e,{at:a}),a=f.unref()}if(Wf.isPoint(a)){null==u&&(u=nd.isText(l)?e=>nd.isText(e):e.isInline(l)?t=>nd.isText(t)||_f.isInline(e,t):t=>_f.isBlock(e,t));var[d]=_f.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=_f.pathRef(e,p),g=_f.isEnd(e,a,p);wd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?$f.next(v):v}var y=$f.parent(a),m=a[a.length-1];if(o||!_f.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=$f.next(a)}if(a=$f.previous(a),s){var E=_f.end(e,a);E&&wd.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=$f.isPath(n)?pd(e,n):t=>_f.isBlock(e,t)),n){var a=_f.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return _f.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=_f.node(e,$f.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=$f.next(d);wd.moveNodes(e,{at:l,to:g,voids:o}),wd.removeNodes(e,{at:d,voids:o})}else if(0===p)wd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=$f.next(d);wd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=$f.next(l),m=$f.next(d);wd.splitNodes(e,{at:y,voids:o}),wd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if($f.isPath(r)){var[u]=_f.parent(e,r);n=e=>u.children.includes(e)}else n=t=>_f.isBlock(e,t);if(!o&&Yf.isRange(r)&&(r=_f.unhangRange(e,r)),Yf.isRange(r))if(Yf.isCollapsed(r))r=r.anchor;else{var[,s]=Yf.edges(r),l=_f.pointRef(e,s);wd.delete(e,{at:r}),r=l.unref(),null==t.at&&wd.select(e,r)}var[c]=_f.nodes(e,{at:r,match:n,voids:i,mode:a}),f=_f.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=$f.next(g),b=$f.common(p,g),w=$f.isSibling(p,g),E=Array.from(_f.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=_f.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&fd(e,t)}),S=D&&_f.pathRef(e,D[1]);if(nd.isText(d)&&nd.isText(h)){var x=Xc(d,ad);y=h.text.length,v=x}else{if(!Af.isElement(d)||!Af.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));x=Xc(d,ud),y=h.children.length,v=x}w||wd.moveNodes(e,{at:p,to:m,voids:i}),S&&wd.removeNodes(e,{at:S.current,voids:i}),Af.isElement(h)&&_f.isEmpty(e,h)||nd.isText(h)&&""===h.text&&0!==g[g.length-1]?wd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),S&&S.unref()}}}}))},moveNodes(e,t){_f.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=$f.isPath(r)?pd(e,r):t=>_f.isBlock(e,t));var u=_f.pathRef(e,n),s=_f.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return _f.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&$f.isSibling(d,f)&&$f.isAfter(d,f)&&(u.current=$f.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$f.isPath(i)?pd(e,i):t=>_f.isBlock(e,t)),!n&&Yf.isRange(i)&&(i=_f.unhangRange(e,i));var u=_f.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return _f.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=_f.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=$f.isPath(o)?pd(e,o):t=>_f.isBlock(e,t)),!i&&Yf.isRange(o)&&(o=_f.unhangRange(e,o)),u&&Yf.isRange(o)){if(Yf.isCollapsed(o)&&_f.leaf(e,o.anchor)[0].text.length>0)return;var l=_f.rangeRef(e,o,{affinity:"inward"}),[c,f]=Yf.edges(o),d="lowest"===a?"lowest":"highest",p=_f.isEnd(e,f,f.path);wd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=_f.isStart(e,c,c.path);wd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&wd.select(e,o)}for(var[g,v]of _f.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>_f.isBlock(e,t)),Yf.isRange(i)&&(i=dd(e,i)),$f.isPath(i)){var s=i,l=_f.point(e,s),[c]=_f.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=_f.pointRef(e,i,{affinity:"backward"}),[d]=_f.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=_f.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Af.isElement(h)&&e.isInline(h)){var v=_f.after(e,g);if(!v){var y=$f.next(g);wd.insertNodes(e,{text:""},{at:y,voids:r}),v=_f.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=_f.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),D=0===a?i.offset:i.path[b]+0;for(var[S,x]of _f.levels(e,{at:E,reverse:!0,voids:r})){var C=!1;if(x.length<w.length||0===x.length||!r&&_f.isVoid(e,S))break;var A=f.current,O=_f.isEnd(e,A,x);if(u||!f||!_f.isEdge(e,A,x)){C=!0;var k=Lf.extractProps(S);e.apply({type:"split_node",path:x,position:D,properties:k})}D=x[x.length-1]+(C||O?1:0)}if(null==t.at){var B=m.current||_f.end(e,[]);wd.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;wd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$f.isPath(i)?pd(e,i):t=>_f.isBlock(e,t)),$f.isPath(i)&&(i=_f.range(e,i));var u=Yf.isRange(i)?_f.rangeRef(e,i):null,s=_f.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return _f.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=_f.node(e,n),a=_f.range(e,n);r&&u&&(a=Yf.intersection(u.current,a)),wd.liftNodes(e,{at:a,match:e=>Af.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=$f.isPath(u)?pd(e,u):e.isInline(t)?t=>_f.isInline(e,t)||nd.isText(t):t=>_f.isBlock(e,t)),o&&Yf.isRange(u)){var[s,l]=Yf.edges(u),c=_f.rangeRef(e,u,{affinity:"inward"});wd.splitNodes(e,{at:l,match:a,voids:i}),wd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&wd.select(e,u)}var f=Array.from(_f.nodes(e,{at:u,match:e.isInline(t)?t=>_f.isBlock(e,t):e=>_f.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Yf.isRange(u)?Yf.intersection(u,_f.range(e,d)):u;if(p){var h=Array.from(_f.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=$f.equals(o,a)?$f.parent(o):$f.common(o,a),s=_f.range(e,o,a),l=_f.node(e,u),[c]=l,f=u.length+1,d=$f.next(a.slice(0,f)),p=ld(ld({},t),{},{children:[]});wd.insertNodes(e,p,{at:d,voids:i}),wd.moveNodes(e,{at:s,match:e=>Af.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},fd=(e,t)=>{if(Af.isElement(t)){var n=t;return!!_f.isVoid(e,t)||1===n.children.length&&fd(e,n.children[0])}return!_f.isEditor(t)},dd=(e,t)=>{if(Yf.isCollapsed(t))return t.anchor;var[,n]=Yf.edges(t),r=_f.pointRef(e,n);return wd.delete(e,{at:t}),r.unref()},pd=(e,t)=>{var[n]=_f.node(e,t);return e=>e===n};function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)wd.select(e,r.anchor);else if("focus"===n)wd.select(e,r.focus);else if("start"===n){var[o]=Yf.edges(r);wd.select(e,o)}else if("end"===n){var[,i]=Yf.edges(r);wd.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Yf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Yf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?_f.before(e,u,l):_f.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?_f.before(e,s,l):_f.after(e,s,l);d&&(c.focus=d)}wd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=_f.range(e,t),n)wd.setSelection(e,t);else{if(!Yf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Yf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Yf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;wd.setSelection(e,{["anchor"===o?"anchor":"focus"]:gd(gd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Wf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Wf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},yd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_f.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Yf.isRange(a)&&Yf.isCollapsed(a)&&(a=a.anchor),Wf.isPoint(a)){var s=_f.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?_f.before(e,a,c)||_f.start(e,[]):_f.after(e,a,c)||_f.end(e,[])},u=!0}}if($f.isPath(a))wd.removeNodes(e,{at:a,voids:i});else if(!Yf.isCollapsed(a)){if(!u){var[,f]=Yf.edges(a),d=_f.end(e,[]);Wf.equals(f,d)||(a=_f.unhangRange(e,a,{voids:i}))}var[p,h]=Yf.edges(a),g=_f.above(e,{match:t=>_f.isBlock(e,t),at:p,voids:i}),v=_f.above(e,{match:t=>_f.isBlock(e,t),at:h,voids:i}),y=g&&v&&!$f.equals(g[1],v[1]),m=$f.equals(p.path,h.path),b=i?null:_f.void(e,{at:p,mode:"highest"}),w=i?null:_f.void(e,{at:h,mode:"highest"});if(b){var E=_f.before(e,p);E&&g&&$f.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=_f.after(e,h);D&&v&&$f.isAncestor(v[1],D.path)&&(h=D)}var S,x=[];for(var C of _f.nodes(e,{at:a,voids:i})){var[A,O]=C;S&&0===$f.compare(O,S)||(!i&&_f.isVoid(e,A)||!$f.isCommon(O,p.path)&&!$f.isCommon(O,h.path))&&(x.push(C),S=O)}var k=Array.from(x,(t=>{var[,n]=t;return _f.pathRef(e,n)})),B=_f.pointRef(e,p),F=_f.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=_f.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();wd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=_f.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&wd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&wd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Yf.isRange(i))if(r||(i=_f.unhangRange(e,i)),Yf.isCollapsed(i))i=i.anchor;else{var[,a]=Yf.edges(i);if(!o&&_f.void(e,{at:a}))return;var u=_f.pointRef(e,a);wd.delete(e,{at:i}),i=u.unref()}else $f.isPath(i)&&(i=_f.start(e,i));if(o||!_f.void(e,{at:i})){var s=_f.above(e,{at:i,match:t=>_f.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;_f.isEnd(e,i,l)?i=_f.after(e,l):_f.isStart(e,i,l)&&(i=_f.before(e,l))}var c=_f.above(e,{match:t=>_f.isBlock(e,t),at:i,voids:o}),[,f]=c,d=_f.isStart(e,i,f),p=_f.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Lf.first({children:t},[]),[,m]=Lf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(g&&$f.isAncestor(r,y)&&Af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&$f.isAncestor(r,m)&&Af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Lf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],S=[],x=[],C=!0,A=!1;for(var[O]of b)Af.isElement(O)&&!e.isInline(O)?(C=!1,A=!0,S.push(O)):C?D.push(O):x.push(O);var[k]=_f.nodes(e,{at:i,match:t=>nd.isText(t)||_f.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=_f.isStart(e,i,B),T=_f.isEnd(e,i,B),_=_f.pathRef(e,p?$f.next(f):f),P=_f.pathRef(e,T?$f.next(B):B),j=_f.pathRef(e,f);wd.splitNodes(e,{at:i,match:t=>A?_f.isBlock(e,t):nd.isText(t)||_f.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=_f.pathRef(e,!F||F&&T?$f.next(B):B);if(wd.insertNodes(e,D,{at:N.current,match:t=>nd.isText(t)||_f.isInline(e,t),mode:"highest",voids:o}),h&&S.length&&wd.delete(e,{at:j.unref(),voids:o}),wd.insertNodes(e,S,{at:_.current,match:t=>_f.isBlock(e,t),mode:"lowest",voids:o}),wd.insertNodes(e,x,{at:P.current,match:t=>nd.isText(t)||_f.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=x.length>0?$f.previous(P.current):S.length>0?$f.previous(_.current):$f.previous(N.current);var L=_f.end(e,I);wd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if($f.isPath(o)&&(o=_f.range(e,o)),Yf.isRange(o))if(Yf.isCollapsed(o))o=o.anchor;else{var i=Yf.end(o);if(!r&&_f.void(e,{at:i}))return;var a=_f.pointRef(e,i);wd.delete(e,{at:o,voids:r}),o=a.unref(),wd.setSelection(e,{anchor:o,focus:o})}if(r||!_f.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wd=bd(bd(bd(bd({},id),cd),vd),yd),Ed="[object Map]",Dd="[object Set]",Sd=/^\[object .+?Constructor\]$/,xd=/^(?:0|[1-9]\d*)$/,Cd="[\\ud800-\\udfff]",Ad="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Od="\\ud83c[\\udffb-\\udfff]",kd="[^\\ud800-\\udfff]",Bd="(?:\\ud83c[\\udde6-\\uddff]){2}",Fd="[\\ud800-\\udbff][\\udc00-\\udfff]",Td="(?:"+Ad+"|"+Od+")?",_d="[\\ufe0e\\ufe0f]?"+Td+"(?:\\u200d(?:"+[kd,Bd,Fd].join("|")+")[\\ufe0e\\ufe0f]?"+Td+")*",Pd="(?:"+[kd+Ad+"?",Ad,Bd,Fd,Cd].join("|")+")",jd=RegExp(Od+"(?="+Od+")|"+Pd+_d,"g"),Nd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Id="object"==typeof r&&r&&r.Object===Object&&r,Ld="object"==typeof self&&self&&self.Object===Object&&self,Rd=Id||Ld||Function("return this")();function Md(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function zd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function $d(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Hd(e){return function(e){return Nd.test(e)}(e)?function(e){return e.match(jd)||[]}(e):function(e){return e.split("")}(e)}var Vd,Ud,Wd=Function.prototype,Gd=Object.prototype,qd=Rd["__core-js_shared__"],Kd=function(){var e=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Yd=Wd.toString,Xd=Gd.hasOwnProperty,Zd=Gd.toString,Jd=RegExp("^"+Yd.call(Xd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qd=Rd.Symbol,ep=Qd?Qd.iterator:void 0,tp=Gd.propertyIsEnumerable,np=(Vd=Object.keys,Ud=Object,function(e){return Vd(Ud(e))}),rp=vp(Rd,"DataView"),op=vp(Rd,"Map"),ip=vp(Rd,"Promise"),ap=vp(Rd,"Set"),up=vp(Rd,"WeakMap"),sp=bp(rp),lp=bp(op),cp=bp(ip),fp=bp(ap),dp=bp(up);function pp(e,t){var n=wp(e)||function(e){return function(e){return xp(e)&&Ep(e)}(e)&&Xd.call(e,"callee")&&(!tp.call(e,"callee")||"[object Arguments]"==Zd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Xd.call(e,i)||o&&("length"==i||mp(i,r))||n.push(i);return n}function hp(e){if(!Sp(e)||function(e){return!!Kd&&Kd in e}(e))return!1;var t=Dp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Jd:Sd;return t.test(bp(e))}function gp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Gd,t!==r)return np(e);var t,n,r,o=[];for(var i in Object(e))Xd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function vp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return hp(n)?n:void 0}var yp=function(e){return Zd.call(e)};function mp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||xd.test(e))&&e>-1&&e%1==0&&e<t}function bp(e){if(null!=e){try{return Yd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(rp&&"[object DataView]"!=yp(new rp(new ArrayBuffer(1)))||op&&yp(new op)!=Ed||ip&&"[object Promise]"!=yp(ip.resolve())||ap&&yp(new ap)!=Dd||up&&"[object WeakMap]"!=yp(new up))&&(yp=function(e){var t=Zd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?bp(n):void 0;if(r)switch(r){case sp:return"[object DataView]";case lp:return Ed;case cp:return"[object Promise]";case fp:return Dd;case dp:return"[object WeakMap]"}return t});var wp=Array.isArray;function Ep(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Dp(e)}function Dp(e){var t=Sp(e)?Zd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Sp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xp(e){return!!e&&"object"==typeof e}function Cp(e){return e?Md(e,function(e){return Ep(e)?pp(e):gp(e)}(e)):[]}var Ap=function(e){if(!e)return[];if(Ep(e))return function(e){return"string"==typeof e||!wp(e)&&xp(e)&&"[object String]"==Zd.call(e)}(e)?Hd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(ep&&e[ep])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ep]());var t=yp(e);return(t==Ed?zd:t==Dd?$d:Cp)(e)};function Op(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function kp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Op(t[n])&&Op(e[n])&&Object.keys(t[n]).length>0&&kp(e[n],t[n])}))}var Bp={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 Fp(){var e="undefined"!=typeof document?document:{};return kp(e,Bp),e}var Tp={document:Bp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function _p(){var e="undefined"!=typeof window?window:{};return kp(e,Tp),e}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pp(e)}function jp(e,t){return jp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jp(e,t)}function Np(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function Ip(e,t,n){return Ip=Np()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&jp(o,n.prototype),o},Ip.apply(null,arguments)}function Lp(e){var t="function"==typeof Map?new Map:void 0;return Lp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ip(e,arguments,Pp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),jp(n,e)},Lp(e)}var Rp=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Lp(Array));function Mp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Mp(e)):t.push(e)})),t}function zp(e,t){return Array.prototype.filter.call(e,t)}function $p(e,t){var n=_p(),r=Fp(),o=[];if(!t&&e instanceof Rp)return e;if(!e)return new Rp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Rp)return e;o=e}return new Rp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return zp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Wp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Gp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function qp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Kp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),$p(t).is(o))i.apply(t,n);else for(var r=$p(t).parents(),a=0;a<r.length;a+=1)$p(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Zp(){var e=_p();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Jp(){var e=_p();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Qp(){if(this.length>0){var e=_p(),t=Fp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function eh(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function th(){for(var e=_p(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function nh(e,t){var n,r=_p();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function rh(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function oh(e){return $p(zp(this,e))}function ih(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function ah(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function uh(e){var t,n,r=_p(),o=Fp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=$p(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Rp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function sh(){for(var e,t=Fp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Rp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function lh(e){var t,n,r=Fp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Rp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function ch(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?$p(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return $p(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?$p(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return $p(t)}function dh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return $p(t)}function ph(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!$p(r[o]).is(e)||t.push(r[o]);return $p(t)}function hh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function gh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}$p.fn=Rp.prototype;var vh="resize scroll".split(" ");function yh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)vh.indexOf(e)<0&&(e in this[o]?this[o][e]():$p(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var mh=yh("click"),bh=yh("focus"),wh="[object GeneratorFunction]",Eh=/^(?:0|[1-9]\d*)$/;function Dh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Sh=Object.prototype,xh=Sh.hasOwnProperty,Ch=Sh.toString,Ah=Sh.propertyIsEnumerable,Oh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function kh(e,t){var n=Nh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ih(e)}(e)&&xh.call(e,"callee")&&(!Ah.call(e,"callee")||"[object Arguments]"==Ch.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!xh.call(e,i)||o&&("length"==i||jh(i,r))||n.push(i);return n}var Bh,Fh,Th=(Bh=function(e,t){return e&&_h(e,t,Lh)},function(e,t){if(null==e)return e;if(!Ih(e))return Bh(e,t);for(var n=e.length,r=Fh?n:-1,o=Object(e);(Fh?r--:++r<n)&&!1!==t(o[r],r,o););return e}),_h=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function Ph(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Sh,t!==r)return Oh(e);var t,n,r,o=[];for(var i in Object(e))xh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function jh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Eh.test(e))&&e>-1&&e%1==0&&e<t}var Nh=Array.isArray;function Ih(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Ch.call(e):"";return"[object Function]"==t||t==wh}(e)}function Lh(e){return Ih(e)?kh(e):Ph(e)}function Rh(e){return e}var Mh=function(e,t){return(Nh(e)?Dh:Th)(e,"function"==typeof t?t:Rh)};let zh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var $h=/^\s+|\s+$/g,Hh=/^[-+]0x[0-9a-f]+$/i,Vh=/^0b[01]+$/i,Uh=/^0o[0-7]+$/i,Wh=parseInt,Gh="object"==typeof r&&r&&r.Object===Object&&r,qh="object"==typeof self&&self&&self.Object===Object&&self,Kh=Gh||qh||Function("return this")(),Yh=Object.prototype.toString,Xh=Math.max,Zh=Math.min,Jh=function(){return Kh.Date.now()};function Qh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Jh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Zh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Jh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=tg(t)||0,eg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Xh(tg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Jh())},m}function eg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Yh.call(e)}(e))return NaN;if(eg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($h,"");var n=Vh.test(e);return n||Uh.test(e)?Wh(e.slice(2),n?2:8):Hh.test(e)?NaN:+e}var ng=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return eg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Qh(e,t,{leading:r,maxWait:t,trailing:o})};const rg={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function og(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const ig=Array.isArray;function ag(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function ug(e){return void 0===e}function sg(e){return void 0!==e}const lg=og("",{},[],void 0,void 0);function cg(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function fg(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const dg=["create","update","remove","destroy","pre","post"];function pg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:rg;for(const f of dg)for(const t of e){const e=t[f];void 0!==e&&n[f].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return og(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;sg(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)ug(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=sg(s)&&sg(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](lg,e);if(ig(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,a(e,t))}else ag(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;sg(v)&&(null===(i=v.create)||void 0===i||i.call(v,lg,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(sg(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;sg(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}ug(t.text)?sg(v)&&sg(y)?v!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:cg(v,b)?(c(v,b,o),v=t[++p],b=n[++h]):cg(y,w)?(c(y,w,o),y=t[--g],w=n[--m]):cg(v,w)?(c(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):cg(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===i&&(i=fg(t,p,g)),s=i[b.key],ug(s)?r.insertBefore(e,a(b,o),v.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,g))}(g,v,y,o):sg(y)?(sg(e.text)&&r.setTextContent(g,""),u(g,null,y,0,y.length-1,o)):sg(v)?l(g,v,0,v.length-1):sg(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(sg(v)&&l(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),cg(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function hg(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&hg(e,t[r].children,t[r].sel)}}function gg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),ig(n)?r=n:ag(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(ig(t)?r=t:ag(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ag(r[i])&&(r[i]=og(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||hg(a,r,e),og(e,a,r,o,void 0)}function vg(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const yg={create:vg,update:vg};function mg(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const bg={create:mg,update:mg},wg=/[A-Z]/g;function Eg(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(wg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(wg,"-$&").toLowerCase(),i[r]))}const Dg={create:Eg,update:Eg};function Sg(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Sg(e[r],t,n)}function xg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Sg(r[n],t,e)}function Cg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){xg(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Ag={create:Cg,update:Cg,destroy:Cg};function Og(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const kg={create:Og,update:Og},Bg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Fg=!1;function Tg(e,t,n){!function(e){Bg((function(){Bg(e)}))}((function(){e[t]=n}))}function _g(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Tg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Pg={pre:function(){Fg=!1},create:_g,update:_g,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Fg||(e.elm.offsetLeft,Fg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function jg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?jg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(og(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ng(e,t,...n){const r=jg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?gg(e,t,r[0].text):gg(e,t,r)}Ng||(Ng={});var Ig,Lg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mg="\\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",zg="[\\ud800-\\udfff]",$g="["+Mg+"]",Hg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Vg="\\d+",Ug="[\\u2700-\\u27bf]",Wg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Gg="[^\\ud800-\\udfff"+Mg+Vg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",qg="\\ud83c[\\udffb-\\udfff]",Kg="[^\\ud800-\\udfff]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",Xg="[\\ud800-\\udbff][\\udc00-\\udfff]",Zg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Jg="(?:"+Wg+"|"+Gg+")",Qg="(?:"+Zg+"|"+Gg+")",ev="(?:"+Hg+"|"+qg+")?",tv="[\\ufe0e\\ufe0f]?"+ev+"(?:\\u200d(?:"+[Kg,Yg,Xg].join("|")+")[\\ufe0e\\ufe0f]?"+ev+")*",nv="(?:"+[Ug,Yg,Xg].join("|")+")"+tv,rv="(?:"+[Kg+Hg+"?",Hg,Yg,Xg,zg].join("|")+")",ov=RegExp("['’]","g"),iv=RegExp(Hg,"g"),av=RegExp(qg+"(?="+qg+")|"+rv+tv,"g"),uv=RegExp([Zg+"?"+Wg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[$g,Zg,"$"].join("|")+")",Qg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[$g,Zg+Jg,"$"].join("|")+")",Zg+"?"+Jg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Zg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Vg,nv].join("|"),"g"),sv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),lv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cv="object"==typeof r&&r&&r.Object===Object&&r,fv="object"==typeof self&&self&&self.Object===Object&&self,dv=cv||fv||Function("return this")(),pv=(Ig={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==Ig?void 0:Ig[e]});function hv(e){return sv.test(e)}function gv(e){return hv(e)?function(e){return e.match(av)||[]}(e):function(e){return e.split("")}(e)}var vv=Object.prototype.toString,yv=dv.Symbol,mv=yv?yv.prototype:void 0,bv=mv?mv.toString:void 0;function wv(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==vv.call(e)}(e))return bv?bv.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ev(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function Dv(e){return null==e?"":wv(e)}for(var Sv,xv,Cv=(Sv=function(e,t,n){return t=t.toLowerCase(),e+(n?Av(Dv(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Dv(e),void 0===(t=n?void 0:t)?function(e){return lv.test(e)}(e)?function(e){return e.match(uv)||[]}(e):function(e){return e.match(Lg)||[]}(e):e.match(t)||[]}(function(e){return(e=Dv(e))&&e.replace(Rg,pv).replace(iv,"")}(e).replace(ov,"")),Sv,"")}),Av=(xv="toUpperCase",function(e){var t=hv(e=Dv(e))?gv(e):void 0,n=t?t[0]:e.charAt(0),r=t?Ev(t,1).join(""):e.slice(1);return n[xv]()+r}),Ov=Cv,kv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Bv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Fv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:kv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Tv={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},_v=1;_v<20;_v++)Tv["f"+_v]=111+_v;function Pv(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Bv)r[Bv[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Nv(d),g=Bv[h];if(d.length>1&&!g&&!Fv[d]&&!Tv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=jv(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function jv(e){return e=Nv(e),Tv[e]||e.toUpperCase().charCodeAt(0)}function Nv(e){return e=e.toLowerCase(),Fv[e]||e}var Iv=Pv,Lv=function(e,t){return Pv(e,{byKey:!0},t)},Rv=/^\s+|\s+$/g,Mv=/^[-+]0x[0-9a-f]+$/i,zv=/^0b[01]+$/i,$v=/^0o[0-7]+$/i,Hv=parseInt,Vv="object"==typeof r&&r&&r.Object===Object&&r,Uv="object"==typeof self&&self&&self.Object===Object&&self,Wv=Vv||Uv||Function("return this")(),Gv=Object.prototype.toString,qv=Math.max,Kv=Math.min,Yv=function(){return Wv.Date.now()};function Xv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Zv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Gv.call(e)}(e))return NaN;if(Xv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Rv,"");var n=zv.test(e);return n||$v.test(e)?Hv(e.slice(2),n?2:8):Mv.test(e)?NaN:+e}var Jv,Qv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Yv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Kv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Yv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Zv(t)||0,Xv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?qv(Zv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Yv())},m},ey=i((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[E]=P[D]=P[S]=P[x]=P[C]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Le(I,"DataView"),pe=Le(I,"Map"),he=Le(I,"Promise"),ge=Le(I,"Set"),ve=Le(I,"WeakMap"),ye=Le(Object,"create"),me=He(de),be=He(pe),we=He(he),Ee=He(ge),De=He(ve),Se=re?re.prototype:void 0,xe=Se?Se.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t){var n=Ue(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function Fe(e,t,n){var r=e[t];Q.call(e,t)&&Ve(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function _e(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ke(e))return e;var _=Ue(e);if(_){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Me(e),N=j==s||j==l;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||N&&!p){if(V(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(N?{}:e),!t)return function(e,t){return Ne(e,Re(e),t)}(e,function(e,t){return e&&Ne(t,Ye(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return je(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case D:case S:case x:case C:case A:case O:case k:case B:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case y:return function(e){return xe?Object(xe.call(e)):{}}(e)}}(e,j,_e,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,Re)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),Fe(T,i,_e(o,t,n,r,i,e,m))})),T}function Pe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||V(e)?te:T).test(He(e))}function je(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Fe(n,a,void 0===u?e[a]:u)}return n}function Ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Ae.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Te(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(pe||Ae),string:new Ce}},Oe.prototype.delete=function(e){return Ie(this,e).delete(e)},Oe.prototype.get=function(e){return Ie(this,e).get(e)},Oe.prototype.has=function(e){return Ie(this,e).has(e)},Oe.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Re=le?W(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function He(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=w||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ge&&Me(new ge)!=g||ve&&Me(new ve)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Ee:return g;case De:return m}return t});var Ue=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var Ge=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return We(e)?Be(e):function(e){if(!$e(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return _e(e,!0,!0)}}));function ty(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ny=0;function ry(e){return"__private_"+ny+++"_"+e}function oy(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
- /**
- * 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 iy(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=oy(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var ay=(Jv=ry("apply"),class{constructor(e){Object.defineProperty(this,Jv,{value:uy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(ty(this,Jv)[Jv],this):ty(this,Jv)[Jv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return iy(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return iy(n,t)}});function uy(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var sy=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},ly={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:cy}=ly,fy=e=>crypto.getRandomValues(new Uint8Array(e)),dy=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var py={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>dy(e,t,fy),customRandom:dy,urlAlphabet:cy,random:fy},hy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function gy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}gy.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var vy=/[\/\+\.]/,yy=function(e,t){function n(t){var n=function(e,t,n){var r=new gy(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,vy);return n&&n.length>=2}return t?n(t.split(";")[0]):n},my=0;function by(e){return"__private_"+my+++"_"+e}var wy=by("publish");class Ey{constructor(){Object.defineProperty(this,wy,{value:Dy}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,wy)[wy](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Dy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Ey.VERSION="2.0.3";var Sy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},xy={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 Cy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Ay=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Oy(e){return e<10?`0${e}`:e.toString()}var ky=function(){const e=new Date;return`${Oy(e.getHours())}:${Oy(e.getMinutes())}:${Oy(e.getSeconds())}`},By={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ky()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${ky()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${ky()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ky()}]`,...t)}}},Fy={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}"}}},Ty=py;let _y,Py;function jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ny=0;function Iy(e){return"__private_"+Ny+++"_"+e}const{nanoid:Ly}=Ty,{justErrorsLogger:Ry,debugLogger:My}=By;class zy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class $y extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Hy=Iy("plugins"),Vy=Iy("storeUnsubscribe"),Uy=Iy("emitter"),Wy=Iy("preProcessors"),Gy=Iy("uploaders"),qy=Iy("postProcessors"),Ky=Iy("checkRestrictions"),Yy=Iy("checkMinNumberOfFiles"),Xy=Iy("checkRequiredMetaFieldsOnFile"),Zy=Iy("checkRequiredMetaFields"),Jy=Iy("showOrLogErrorAndThrow"),Qy=Iy("assertNewUploadAllowed"),em=Iy("checkAndCreateFileStateObject"),tm=Iy("startIfAutoProceed"),nm=Iy("addListeners"),rm=Iy("updateOnlineStatus"),om=Iy("createUpload"),im=Iy("getUpload"),am=Iy("removeUpload"),um=Iy("runUpload");_y=Symbol.for("uppy test: getPlugins"),Py=Symbol.for("uppy test: createUpload");class sm{constructor(e){Object.defineProperty(this,um,{value:Em}),Object.defineProperty(this,am,{value:wm}),Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,nm,{value:ym}),Object.defineProperty(this,tm,{value:vm}),Object.defineProperty(this,em,{value:gm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,Hy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Vy,{writable:!0,value:void 0}),Object.defineProperty(this,Uy,{writable:!0,value:sy()}),Object.defineProperty(this,Wy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,qy,{writable:!0,value:new Set}),Object.defineProperty(this,rm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Fy;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Ey,logger:Ry,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=My),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ng(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ay(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),jy(this,Vy)[Vy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),jy(this,nm)[nm]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];jy(this,Uy)[Uy].emit(e,...n)}on(e,t){return jy(this,Uy)[Uy].on(e,t),this}once(e,t){return jy(this,Uy)[Uy].once(e,t),this}off(e,t){return jy(this,Uy)[Uy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new ay([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){jy(this,Wy)[Wy].add(e)}removePreProcessor(e){return jy(this,Wy)[Wy].delete(e)}addPostProcessor(e){jy(this,qy)[qy].add(e)}removePostProcessor(e){return jy(this,qy)[qy].delete(e)}addUploader(e){jy(this,Gy)[Gy].add(e)}removeUploader(e){return jy(this,Gy)[Gy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return jy(this,Ky)[Ky](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){jy(this,Qy)[Qy](e);const{files:t}=this.getState();let n=jy(this,em)[em](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),jy(this,tm)[tm](),n.id}addFiles(e){jy(this,Qy)[Qy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=jy(this,em)[em](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&jy(this,tm)[tm](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=jy(this,om)[om](t,{forceAllowNewUpload:!0});return jy(this,um)[um](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=jy(this,om)[om]([e],{forceAllowNewUpload:!0});return jy(this,um)[um](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in jy(this,Hy)[Hy]?jy(this,Hy)[Hy][n.type].push(n):jy(this,Hy)[Hy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(jy(this,Hy)[Hy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[_y](e){return jy(this,Hy)[Hy][e]}iteratePlugins(e){Object.values(jy(this,Hy)[Hy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=jy(this,Hy)[Hy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),jy(this,Vy)[Vy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",jy(this,rm)[rm]),window.removeEventListener("offline",jy(this,rm)[rm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?jy(this,um)[um](e):(jy(this,am)[am](e),Promise.reject(new Error("Nonexistent upload")))}[Py](){return jy(this,om)[om](...arguments)}addResultData(e,t){if(!jy(this,im)[im](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=jy(this,Hy)[Hy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{jy(this,Yy)[Yy](t),jy(this,Zy)[Zy](t)})).catch((e=>{jy(this,Jy)[Jy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=jy(this,om)[om](r);return jy(this,um)[um](o)})).catch((e=>{jy(this,Jy)[Jy](e,{showInformer:!1})})))}}function lm(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new zy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&yy(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new zy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new zy(this.i18n("exceedsSize",{size:hy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new zy(this.i18n("exceedsSize",{size:hy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new zy(this.i18n("inferiorSize",{size:hy(r)}))}function cm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new zy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function fm(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new zy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),jy(this,Jy)[Jy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function dm(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return jy(this,Xy)[Xy](t)}));if(t.length)throw new $y(t,`${this.i18n("missingRequiredMetaField")}`)}function pm(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function hm(e){const{allowNewUpload:t}=this.getState();!1===t&&jy(this,Jy)[Jy](new zy(this.i18n("noMoreFilesAllowed")),{file:e})}function gm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Sy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in xy?xy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Sy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Cy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Cy(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new zy(this.i18n("noDuplicates",{fileName:r}));jy(this,Jy)[Jy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?jy(this,Jy)[Jy](new zy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));jy(this,Ky)[Ky](l,t)}catch(e){jy(this,Jy)[Jy](e,{file:l})}return l}function vm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function ym(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),jy(this,Jy)[Jy](e,{throwErr:!1})}else jy(this,Jy)[Jy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:jy(this,qy)[qy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&jy(this,Xy)[Xy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",jy(this,rm)[rm]),window.addEventListener("offline",jy(this,rm)[rm]),setTimeout(jy(this,rm)[rm],3e3))}function mm(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Ly();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function bm(e){const{currentUploads:t}=this.getState();return t[e]}function wm(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Em(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...jy(this,Wy)[Wy],...jy(this,Gy)[Gy],...jy(this,qy)[qy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),jy(this,am)[am](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),jy(this,am)[am](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}sm.VERSION="2.1.3";var Dm=sm,Sm=i((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,S=D.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=D[d])||h&&g.key==h.key&&g.type===h.type)D[d]=void 0;else for(p=0;p<S;p++){if((h=D[p])&&g.key==h.key&&g.type===h.type){D[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=x(g,s,e):s=C(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=S;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),j(D[d],D[d]));if(E)for(d=0;d<E.length;d++)P(E[d],E[++d],E[++d])}function x(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):C(n,r,r,o,r.__e,t));return t}function C(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,D,x,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(w=t.props,E=(c=C.contextType)&&o[c.__c],D=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(w,D):(t.__c=f=new m(w,D),f.constructor=C,f.render=N),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=D,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,D),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,D)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,D),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=D,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),x=null!=c&&c.type===y&&null==c.key?c.props.children:c,S(e,Array.isArray(x)?x:[x],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function _(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),xm=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Cm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new ay([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Am(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Om=0;function km(e){return"__private_"+Om+++"_"+e}const{render:Bm}=Sm;var Fm=km("updateUI");class Tm extends Cm{constructor(){super(...arguments),Object.defineProperty(this,Fm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=xm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Am(this,Fm)[Fm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Bm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Bm(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Tm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Am(this,Fm))[Fm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var _m=Tm;const{debugLogger:Pm}=By;var jm=Dm,Nm=Dm,Im=_m,Lm=Cm,Rm=Pm;jm.Uppy=Nm,jm.UIPlugin=Im,jm.BasePlugin=Lm,jm.debugLogger=Rm;class Mm extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var zm=Mm,$m=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new zm(e)}))};class Hm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Vm,Um,Wm,Gm,qm,Km=Hm;function Ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xm=0;function Zm(e){return"__private_"+Xm+++"_"+e}async function Jm(e){if(401===e.status)throw new Km;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Qm=(Um=Zm("getPostResponseFunc"),Wm=Zm("getUrl"),Gm=Zm("errorHandler"),qm=Vm=class e{constructor(e,t){Object.defineProperty(this,Gm,{value:tb}),Object.defineProperty(this,Wm,{value:eb}),Object.defineProperty(this,Um,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Ym(this,Wm)[Wm](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>$m(Ym(this,Wm)[Wm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Ym(this,Um)[Um](t)).then(Jm).catch(Ym(this,Gm)[Gm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>$m(Ym(this,Wm)[Wm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Ym(this,Um)[Um](n)).then(Jm).catch(Ym(this,Gm)[Gm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>$m(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Ym(this,Um)[Um](n)).then(Jm).catch(Ym(this,Gm)[Gm](r,e))}},Vm.VERSION="2.0.4",Vm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Vm.VERSION}`},qm);function eb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function tb(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Ym(this,Wm)[Wm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var nb,rb,ob,ib,ab,ub={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let sb,lb;function cb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fb=0;function db(e){return"__private_"+fb+++"_"+e}var pb,hb,gb=(nb=db("queued"),rb=db("emitter"),ob=db("isOpen"),ib=db("socket"),ab=db("handleMessage"),sb=Symbol.for("uppy test: getSocket"),lb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,nb,{writable:!0,value:[]}),Object.defineProperty(this,rb,{writable:!0,value:sy()}),Object.defineProperty(this,ob,{writable:!0,value:!1}),Object.defineProperty(this,ib,{writable:!0,value:void 0}),Object.defineProperty(this,ab,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return cb(this,ob)[ob]}[sb](){return cb(this,ib)[ib]}[lb](){return cb(this,nb)[nb]}open(){cb(this,ib)[ib]=new WebSocket(this.opts.target),cb(this,ib)[ib].onopen=()=>{for(cb(this,ob)[ob]=!0;cb(this,nb)[nb].length>0&&cb(this,ob)[ob];){const e=cb(this,nb)[nb].shift();this.send(e.action,e.payload)}},cb(this,ib)[ib].onclose=()=>{cb(this,ob)[ob]=!1},cb(this,ib)[ib].onmessage=cb(this,ab)[ab]}close(){var e;null==(e=cb(this,ib)[ib])||e.close()}send(e,t){cb(this,ob)[ob]?cb(this,ib)[ib].send(JSON.stringify({action:e,payload:t})):cb(this,nb)[nb].push({action:e,payload:t})}on(e,t){cb(this,rb)[rb].on(e,t)}emit(e,t){cb(this,rb)[rb].emit(e,t)}once(e,t){cb(this,rb)[rb].once(e,t)}}),vb={RequestClient:Qm,Provider:class extends Qm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.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((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||ub}},SearchProvider:class extends Qm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:gb},yb=ng((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function mb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bb=0;function wb(e){return"__private_"+bb+++"_"+e}var Eb=(pb=wb("emitter"),hb=wb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),mb(this,pb)[pb]=e}on(e,t){return mb(this,hb)[hb].push([e,t]),mb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of mb(this,hb)[hb].splice(0))mb(this,pb)[pb].off(e,t)}});function Db(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Sb=0;function xb(e){return"__private_"+Sb+++"_"+e}var Cb=xb("aliveTimer"),Ab=xb("isDone"),Ob=xb("onTimedOut"),kb=xb("timeout"),Bb=class{constructor(e,t){Object.defineProperty(this,Cb,{writable:!0,value:void 0}),Object.defineProperty(this,Ab,{writable:!0,value:!1}),Object.defineProperty(this,Ob,{writable:!0,value:void 0}),Object.defineProperty(this,kb,{writable:!0,value:void 0}),Db(this,kb)[kb]=e,Db(this,Ob)[Ob]=t}progress(){Db(this,Ab)[Ab]||Db(this,kb)[kb]>0&&(clearTimeout(Db(this,Cb)[Cb]),Db(this,Cb)[Cb]=setTimeout(Db(this,Ob)[Ob],Db(this,kb)[kb]))}done(){Db(this,Ab)[Ab]||(clearTimeout(Db(this,Cb)[Cb]),Db(this,Cb)[Cb]=null,Db(this,Ab)[Ab]=!0)}};function Fb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tb=0;function _b(e){return"__private_"+Tb+++"_"+e}function Pb(){return new Error("Cancelled")}var jb=_b("activeRequests"),Nb=_b("queuedHandlers"),Ib=_b("call"),Lb=_b("queueNext"),Rb=_b("next"),Mb=_b("queue"),zb=_b("dequeue");function $b(e){Fb(this,jb)[jb]+=1;let t,n=!1;try{t=e()}catch(e){throw Fb(this,jb)[jb]-=1,e}return{abort:()=>{n||(n=!0,Fb(this,jb)[jb]-=1,t(),Fb(this,Lb)[Lb]())},done:()=>{n||(n=!0,Fb(this,jb)[jb]-=1,Fb(this,Lb)[Lb]())}}}function Hb(){queueMicrotask((()=>Fb(this,Rb)[Rb]()))}function Vb(){if(Fb(this,jb)[jb]>=this.limit)return;if(0===Fb(this,Nb)[Nb].length)return;const e=Fb(this,Nb)[Nb].shift(),t=Fb(this,Ib)[Ib](e.fn);e.abort=t.abort,e.done=t.done}function Ub(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Fb(this,zb)[zb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Fb(this,Nb)[Nb].findIndex((e=>n.priority>e.priority));return-1===r?Fb(this,Nb)[Nb].push(n):Fb(this,Nb)[Nb].splice(r,0,n),n}function Wb(e){const t=Fb(this,Nb)[Nb].indexOf(e);-1!==t&&Fb(this,Nb)[Nb].splice(t,1)}var Gb,qb,Kb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,zb,{value:Wb}),Object.defineProperty(this,Mb,{value:Ub}),Object.defineProperty(this,Rb,{value:Vb}),Object.defineProperty(this,Lb,{value:Hb}),Object.defineProperty(this,Ib,{value:$b}),Object.defineProperty(this,jb,{writable:!0,value:0}),Object.defineProperty(this,Nb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Fb(this,jb)[jb]<this.limit?Fb(this,Ib)[Ib](e):Fb(this,Mb)[Mb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=Pb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Yb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Xb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Zb}=Ty,{Provider:Jb,RequestClient:Qb,Socket:ew}=vb,{RateLimitedQueue:tw,internalRateLimitedQueue:nw}=Kb;function rw(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Yb(e)?(n=new zm(n,e),n):(n.request=e,n)}function ow(e){return e.data.slice(0,e.data.size,e.meta.type)}var iw=(qb=Gb=class extends Cm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Xb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Yb(t)&&(n=new zm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),nw in this.opts?this.requests=this.opts[nw]:this.requests=new tw(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=ow(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=ow(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Eb(this.uppy);const a=new Bb(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Zb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=rw(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=rw(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Jb:Qb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new ew({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Eb(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>yb(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Bb(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[nw]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Gb.VERSION="2.0.6",qb),aw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function uw(e){var t={exports:{}};return e(t,t.exports),t.exports}var sw,lw,cw=function(e){return e&&e.Math==Math&&e},fw=cw("object"==typeof globalThis&&globalThis)||cw("object"==typeof window&&window)||cw("object"==typeof self&&self)||cw("object"==typeof aw&&aw)||function(){return this}()||Function("return this")(),dw=Object.defineProperty,pw=function(e,t){try{dw(fw,e,{value:t,configurable:!0,writable:!0})}catch(i){fw[e]=t}return t},hw=fw["__core-js_shared__"]||pw("__core-js_shared__",{}),gw=uw((function(e){(e.exports=function(e,t){return hw[e]||(hw[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vw=Function.prototype,yw=vw.bind,mw=vw.call,bw=yw&&yw.bind(mw),ww=yw?function(e){return e&&bw(mw,e)}:function(e){return e&&function(){return mw.apply(e,arguments)}},Ew=fw.TypeError,Dw=function(e){if(null==e)throw Ew("Can't call method on "+e);return e},Sw=fw.Object,xw=function(e){return Sw(Dw(e))},Cw=ww({}.hasOwnProperty),Aw=Object.hasOwn||function(e,t){return Cw(xw(e),t)},Ow=0,kw=Math.random(),Bw=ww(1..toString),Fw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bw(++Ow+kw,36)},Tw=function(e){return"function"==typeof e},_w=function(e){return Tw(e)?e:void 0},Pw=function(e,t){return arguments.length<2?_w(fw[e]):fw[e]&&fw[e][t]},jw=Pw("navigator","userAgent")||"",Nw=fw.process,Iw=fw.Deno,Lw=Nw&&Nw.versions||Iw&&Iw.version,Rw=Lw&&Lw.v8;Rw&&(lw=(sw=Rw.split("."))[0]>0&&sw[0]<4?1:+(sw[0]+sw[1])),!lw&&jw&&(!(sw=jw.match(/Edge\/(\d+)/))||sw[1]>=74)&&(sw=jw.match(/Chrome\/(\d+)/))&&(lw=+sw[1]);var Mw=lw,zw=function(e){try{return!!e()}catch(e){return!0}},$w=!!Object.getOwnPropertySymbols&&!zw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mw&&Mw<41})),Hw=$w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vw=gw("wks"),Uw=fw.Symbol,Ww=Uw&&Uw.for,Gw=Hw?Uw:Uw&&Uw.withoutSetter||Fw,qw=function(e){if(!Aw(Vw,e)||!$w&&"string"!=typeof Vw[e]){var t="Symbol."+e;$w&&Aw(Uw,e)?Vw[e]=Uw[e]:Vw[e]=Hw&&Ww?Ww(t):Gw(t)}return Vw[e]},Kw={};Kw[qw("toStringTag")]="z";var Yw="[object z]"===String(Kw),Xw=!zw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Zw=function(e){return"object"==typeof e?null!==e:Tw(e)},Jw=fw.document,Qw=Zw(Jw)&&Zw(Jw.createElement),eE=function(e){return Qw?Jw.createElement(e):{}},tE=!Xw&&!zw((function(){return 7!=Object.defineProperty(eE("div"),"a",{get:function(){return 7}}).a})),nE=fw.String,rE=fw.TypeError,oE=function(e){if(Zw(e))return e;throw rE(nE(e)+" is not an object")},iE=Function.prototype.call,aE=iE.bind?iE.bind(iE):function(){return iE.apply(iE,arguments)},uE=ww({}.isPrototypeOf),sE=fw.Object,lE=Hw?function(e){return"symbol"==typeof e}:function(e){var t=Pw("Symbol");return Tw(t)&&uE(t.prototype,sE(e))},cE=fw.String,fE=function(e){try{return cE(e)}catch(e){return"Object"}},dE=fw.TypeError,pE=function(e){if(Tw(e))return e;throw dE(fE(e)+" is not a function")},hE=function(e,t){var n=e[t];return null==n?void 0:pE(n)},gE=fw.TypeError,vE=fw.TypeError,yE=qw("toPrimitive"),mE=function(e){var t=function(e,t){if(!Zw(e)||lE(e))return e;var n,r=hE(e,yE);if(r){if(void 0===t&&(t="default"),n=aE(r,e,t),!Zw(n)||lE(n))return n;throw vE("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Tw(n=e.toString)&&!Zw(r=aE(n,e)))return r;if(Tw(n=e.valueOf)&&!Zw(r=aE(n,e)))return r;if("string"!==t&&Tw(n=e.toString)&&!Zw(r=aE(n,e)))return r;throw gE("Can't convert object to primitive value")}(e,t)}(e,"string");return lE(t)?t:t+""},bE=fw.TypeError,wE=Object.defineProperty,EE={f:Xw?wE:function(e,t,n){if(oE(e),t=mE(t),oE(n),tE)try{return wE(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bE("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},DE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SE=Xw?function(e,t,n){return EE.f(e,t,DE(1,n))}:function(e,t,n){return e[t]=n,e},xE=ww(Function.toString);Tw(hw.inspectSource)||(hw.inspectSource=function(e){return xE(e)});var CE,AE,OE,kE=hw.inspectSource,BE=fw.WeakMap,FE=Tw(BE)&&/native code/.test(kE(BE)),TE=gw("keys"),_E=function(e){return TE[e]||(TE[e]=Fw(e))},PE={},jE=fw.TypeError,NE=fw.WeakMap;if(FE||hw.state){var IE=hw.state||(hw.state=new NE),LE=ww(IE.get),RE=ww(IE.has),ME=ww(IE.set);CE=function(e,t){if(RE(IE,e))throw new jE("Object already initialized");return t.facade=e,ME(IE,e,t),t},AE=function(e){return LE(IE,e)||{}},OE=function(e){return RE(IE,e)}}else{var zE=_E("state");PE[zE]=!0,CE=function(e,t){if(Aw(e,zE))throw new jE("Object already initialized");return t.facade=e,SE(e,zE,t),t},AE=function(e){return Aw(e,zE)?e[zE]:{}},OE=function(e){return Aw(e,zE)}}var $E={set:CE,get:AE,has:OE,enforce:function(e){return OE(e)?AE(e):CE(e,{})},getterFor:function(e){return function(t){var n;if(!Zw(t)||(n=AE(t)).type!==e)throw jE("Incompatible receiver, "+e+" required");return n}}},HE=Function.prototype,VE=Xw&&Object.getOwnPropertyDescriptor,UE=Aw(HE,"name"),WE={EXISTS:UE,PROPER:UE&&"something"===function(){}.name,CONFIGURABLE:UE&&(!Xw||Xw&&VE(HE,"name").configurable)},GE=uw((function(e){var t=WE.CONFIGURABLE,n=$E.get,r=$E.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Tw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Aw(i,"name")||t&&i.name!==f)&&SE(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fw?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:SE(e,n,i)):l?e[n]=i:pw(n,i)})(Function.prototype,"toString",(function(){return Tw(this)&&n(this).source||kE(this)}))})),qE=ww({}.toString),KE=ww("".slice),YE=function(e){return KE(qE(e),8,-1)},XE=qw("toStringTag"),ZE=fw.Object,JE="Arguments"==YE(function(){return arguments}()),QE=Yw?YE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ZE(e),XE))?n:JE?YE(t):"Object"==(r=YE(t))&&Tw(t.callee)?"Arguments":r},eD=Yw?{}.toString:function(){return"[object "+QE(this)+"]"};Yw||GE(Object.prototype,"toString",eD,{unsafe:!0});var tD={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},nD=eE("span").classList,rD=nD&&nD.constructor&&nD.constructor.prototype,oD=rD===Object.prototype?void 0:rD,iD=ww(ww.bind),aD=function(e,t){return pE(e),void 0===t?e:iD?iD(e,t):function(){return e.apply(t,arguments)}},uD=fw.Object,sD=ww("".split),lD=zw((function(){return!uD("z").propertyIsEnumerable(0)}))?function(e){return"String"==YE(e)?sD(e,""):uD(e)}:uD,cD=Math.ceil,fD=Math.floor,dD=function(e){var t=+e;return t!=t||0===t?0:(t>0?fD:cD)(t)},pD=Math.min,hD=function(e){return e>0?pD(dD(e),9007199254740991):0},gD=function(e){return hD(e.length)},vD=Array.isArray||function(e){return"Array"==YE(e)},yD=function(){},mD=[],bD=Pw("Reflect","construct"),wD=/^\s*(?:class|function)\b/,ED=ww(wD.exec),DD=!wD.exec(yD),SD=function(e){if(!Tw(e))return!1;try{return bD(yD,mD,e),!0}catch(e){return!1}},xD=!bD||zw((function(){var e;return SD(SD.call)||!SD(Object)||!SD((function(){e=!0}))||e}))?function(e){if(!Tw(e))return!1;switch(QE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return DD||!!ED(wD,kE(e))}:SD,CD=qw("species"),AD=fw.Array,OD=function(e,t){return new(function(e){var t;return vD(e)&&(t=e.constructor,(xD(t)&&(t===AD||vD(t.prototype))||Zw(t)&&null===(t=t[CD]))&&(t=void 0)),void 0===t?AD:t}(e))(0===t?0:t)},kD=ww([].push),BD=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=xw(s),g=lD(h),v=aD(l,c),y=gD(g),m=0,b=f||OD,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:kD(w,d)}else switch(e){case 4:return!1;case 7:kD(w,d)}return i?-1:r||o?o:w}},FD={forEach:BD(0),map:BD(1),filter:BD(2),some:BD(3),every:BD(4),find:BD(5),findIndex:BD(6),filterReject:BD(7)},TD=function(e,t){var n=[][e];return!!n&&zw((function(){n.call(null,t||function(){throw 1},1)}))},_D=FD.forEach,PD=TD("forEach")?[].forEach:function(e){return _D(this,e,arguments.length>1?arguments[1]:void 0)},jD=function(e){if(e&&e.forEach!==PD)try{SE(e,"forEach",PD)}catch(o){e.forEach=PD}};for(var ND in tD)tD[ND]&&jD(fw[ND]&&fw[ND].prototype);jD(oD);var ID={}.propertyIsEnumerable,LD=Object.getOwnPropertyDescriptor,RD=LD&&!ID.call({1:2},1)?function(e){var t=LD(this,e);return!!t&&t.enumerable}:ID,MD={f:RD},zD=function(e){return lD(Dw(e))},$D=Object.getOwnPropertyDescriptor,HD={f:Xw?$D:function(e,t){if(e=zD(e),t=mE(t),tE)try{return $D(e,t)}catch(e){}if(Aw(e,t))return DE(!aE(MD.f,e,t),e[t])}},VD=Math.max,UD=Math.min,WD=function(e,t){var n=dD(e);return n<0?VD(n+t,0):UD(n,t)},GD=function(e){return function(t,n,r){var o,i=zD(t),a=gD(i),u=WD(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},qD={includes:GD(!0),indexOf:GD(!1)},KD=qD.indexOf,YD=ww([].push),XD=function(e,t){var n,r=zD(e),o=0,i=[];for(n in r)!Aw(PE,n)&&Aw(r,n)&&YD(i,n);for(;t.length>o;)Aw(r,n=t[o++])&&(~KD(i,n)||YD(i,n));return i},ZD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JD=ZD.concat("length","prototype"),QD={f:Object.getOwnPropertyNames||function(e){return XD(e,JD)}},eS={f:Object.getOwnPropertySymbols},tS=ww([].concat),nS=Pw("Reflect","ownKeys")||function(e){var t=QD.f(oE(e)),n=eS.f;return n?tS(t,n(e)):t},rS=function(e,t){for(var n=nS(t),r=EE.f,o=HD.f,i=0;i<n.length;i++){var a=n[i];Aw(e,a)||r(e,a,o(t,a))}},oS=/#|\.prototype\./,iS=function(e,t){var n=uS[aS(e)];return n==lS||n!=sS&&(Tw(t)?zw(t):!!t)},aS=iS.normalize=function(e){return String(e).replace(oS,".").toLowerCase()},uS=iS.data={},sS=iS.NATIVE="N",lS=iS.POLYFILL="P",cS=iS,fS=HD.f,dS=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fw:l?fw[u]||pw(u,{}):(fw[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fS(n,r))&&a.value:n[r],!cS(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;rS(i,o)}(e.sham||o&&o.sham)&&SE(i,"sham",!0),GE(n,r,i,e)}},pS=Object.keys||function(e){return XD(e,ZD)},hS=zw((function(){pS(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function gS(e){return"[object Object]"===Object.prototype.toString.call(e)}dS({target:"Object",stat:!0,forced:hS},{keys:function(e){return pS(xw(e))}});var vS={isHistory(e){return!1!==gS(t=e)&&(void 0===(n=t.constructor)||!1!==gS(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||zf.isOperationList(e.redos[0]))&&(0===e.undos.length||zf.isOperationList(e.undos[0]));var t,n,r}},yS=new WeakMap,mS=new WeakMap,bS={isHistoryEditor:e=>vS.isHistory(e.history)&&_f.isEditor(e),isMerging:e=>mS.get(e),isSaving:e=>yS.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=bS.isMerging(e);mS.set(e,!1),t(),mS.set(e,n)},withoutSaving(e,t){var n=bS.isSaving(e);yS.set(e,!1),t(),yS.set(e,n)}},wS=fw.String,ES=function(e){if("Symbol"===QE(e))throw TypeError("Cannot convert a Symbol value to a string");return wS(e)},DS=function(){var e=oE(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},SS=WE.PROPER,xS=RegExp.prototype,CS=xS.toString,AS=ww(DS),OS=zw((function(){return"/a/b"!=CS.call({source:"a",flags:"b"})})),kS=SS&&"toString"!=CS.name;(OS||kS)&&GE(RegExp.prototype,"toString",(function(){var e=oE(this),t=ES(e.source),n=e.flags;return"/"+t+"/"+ES(void 0===n&&uE(xS,e)&&!("flags"in xS)?AS(e):n)}),{unsafe:!0});var BS,FS=Xw?Object.defineProperties:function(e,t){oE(e);for(var n,r=zD(t),o=pS(t),i=o.length,a=0;i>a;)EE.f(e,n=o[a++],r[n]);return e},TS=Pw("document","documentElement"),_S=_E("IE_PROTO"),PS=function(){},jS=function(e){return"<script>"+e+"<\/script>"},NS=function(e){e.write(jS("")),e.close();var t=e.parentWindow.Object;return e=null,t},IS=function(){try{BS=new ActiveXObject("htmlfile")}catch(e){}var e,t;IS="undefined"!=typeof document?document.domain&&BS?NS(BS):((t=eE("iframe")).style.display="none",TS.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jS("document.F=Object")),e.close(),e.F):NS(BS);for(var n=ZD.length;n--;)delete IS.prototype[ZD[n]];return IS()};PE[_S]=!0;var LS=Object.create||function(e,t){var n;return null!==e?(PS.prototype=oE(e),n=new PS,PS.prototype=null,n[_S]=e):n=IS(),void 0===t?n:FS(n,t)},RS=qw("unscopables"),MS=Array.prototype;null==MS[RS]&&EE.f(MS,RS,{configurable:!0,value:LS(null)});var zS=function(e){MS[RS][e]=!0},$S=qD.includes;dS({target:"Array",proto:!0},{includes:function(e){return $S(this,e,arguments.length>1?arguments[1]:void 0)}}),zS("includes");var HS=qw("match"),VS=function(e){var t;return Zw(e)&&(void 0!==(t=e[HS])?!!t:"RegExp"==YE(e))},US=fw.TypeError,WS=function(e){if(VS(e))throw US("The method doesn't accept regular expressions");return e},GS=qw("match"),qS=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[GS]=!1,"/./"[e](t)}catch(e){}}return!1},KS=ww("".indexOf);dS({target:"String",proto:!0,forced:!qS("includes")},{includes:function(e){return!!~KS(ES(Dw(this)),ES(WS(e)),arguments.length>1?arguments[1]:void 0)}});var YS=/"/g,XS=ww("".replace);dS({target:"String",proto:!0,forced:zw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=ES(Dw(this)),r="<a",(r+=' name="'+XS(ES(t),YS,""")+'"')+">"+n+"</a>";var t,n,r}});var ZS=function(e,t,n){var r,o;oE(e);try{if(!(r=hE(e,"return"))){if("throw"===t)throw n;return n}r=aE(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return oE(r),n},JS=function(e,t,n,r){try{return r?t(oE(n)[0],n[1]):t(n)}catch(t){ZS(e,"throw",t)}},QS={},ex=qw("iterator"),tx=Array.prototype,nx=function(e){return void 0!==e&&(QS.Array===e||tx[ex]===e)},rx=function(e,t,n){var r=mE(t);r in e?EE.f(e,r,DE(0,n)):e[r]=n},ox=qw("iterator"),ix=function(e){if(null!=e)return hE(e,ox)||hE(e,"@@iterator")||QS[QE(e)]},ax=fw.TypeError,ux=function(e,t){var n=arguments.length<2?ix(e):t;if(pE(n))return oE(aE(n,e));throw ax(fE(e)+" is not iterable")},sx=fw.Array,lx=qw("iterator"),cx=!1;try{var fx=0,dx={next:function(){return{done:!!fx++}},return:function(){cx=!0}};dx[lx]=function(){return this},Array.from(dx,(function(){throw 2}))}catch(IO){}var px=function(e,t){if(!t&&!cx)return!1;var n=!1;try{var r={};r[lx]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},hx=!px((function(e){Array.from(e)}));dS({target:"Array",stat:!0,forced:hx},{from:function(e){var t=xw(e),n=xD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=aD(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=ix(t),p=0;if(!d||this==sx&&nx(d))for(a=gD(t),u=n?new this(a):sx(a);a>p;p++)f=i?o(t[p],p):t[p],rx(u,p,f);else for(c=(l=ux(t,d)).next,u=n?new this:[];!(s=aE(c,l)).done;p++)f=i?JS(l,o,[s.value,p],!0):s.value,rx(u,p,f);return u.length=p,u}});var gx,vx,yx,mx=ww("".charAt),bx=ww("".charCodeAt),wx=ww("".slice),Ex=function(e){return function(t,n){var r,o,i=ES(Dw(t)),a=dD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=bx(i,a))<55296||r>56319||a+1===u||(o=bx(i,a+1))<56320||o>57343?e?mx(i,a):r:e?wx(i,a,a+2):o-56320+(r-55296<<10)+65536}},Dx={codeAt:Ex(!1),charAt:Ex(!0)},Sx=!zw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xx=_E("IE_PROTO"),Cx=fw.Object,Ax=Cx.prototype,Ox=Sx?Cx.getPrototypeOf:function(e){var t=xw(e);if(Aw(t,xx))return t[xx];var n=t.constructor;return Tw(n)&&t instanceof n?n.prototype:t instanceof Cx?Ax:null},kx=qw("iterator"),Bx=!1;[].keys&&("next"in(yx=[].keys())?(vx=Ox(Ox(yx)))!==Object.prototype&&(gx=vx):Bx=!0);var Fx=null==gx||zw((function(){var e={};return gx[kx].call(e)!==e}));Fx&&(gx={}),Tw(gx[kx])||GE(gx,kx,(function(){return this}));var Tx={IteratorPrototype:gx,BUGGY_SAFARI_ITERATORS:Bx},_x=EE.f,Px=qw("toStringTag"),jx=function(e,t,n){e&&!Aw(e=n?e:e.prototype,Px)&&_x(e,Px,{configurable:!0,value:t})},Nx=Tx.IteratorPrototype,Ix=function(){return this},Lx=fw.String,Rx=fw.TypeError,Mx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ww(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return oE(n),function(e){if("object"==typeof e||Tw(e))return e;throw Rx("Can't set "+Lx(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zx=WE.PROPER,$x=WE.CONFIGURABLE,Hx=Tx.IteratorPrototype,Vx=Tx.BUGGY_SAFARI_ITERATORS,Ux=qw("iterator"),Wx=function(){return this},Gx=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=LS(Nx,{next:DE(1,n)}),jx(e,o,!1),QS[o]=Ix}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Vx&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ux]||p["@@iterator"]||o&&p[o],g=!Vx&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Ox(v.call(new e)))!==Object.prototype&&u.next&&(Ox(u)!==Hx&&(Mx?Mx(u,Hx):Tw(u[Ux])||GE(u,Ux,Wx)),jx(u,f,!0)),zx&&"values"==o&&h&&"values"!==h.name&&($x?SE(p,"name","values"):(d=!0,g=function(){return aE(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vx||d||!(l in p))&&GE(p,l,s[l]);else dS({target:t,proto:!0,forced:Vx||d},s);return p[Ux]!==g&&GE(p,Ux,g,{name:o}),QS[t]=g,s},qx=Dx.charAt,Kx=$E.set,Yx=$E.getterFor("String Iterator");Gx(String,"String",(function(e){Kx(this,{type:"String Iterator",string:ES(e),index:0})}),(function(){var e,t=Yx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qx(n,r),t.index+=e.length,{value:e,done:!1})}));var Xx,Zx=HD.f,Jx=ww("".endsWith),Qx=ww("".slice),eC=Math.min,tC=qS("endsWith"),nC=!(tC||(Xx=Zx(String.prototype,"endsWith"),!Xx||Xx.writable));dS({target:"String",proto:!0,forced:!nC&&!tC},{endsWith:function(e){var t=ES(Dw(this));WS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:eC(hD(n),r),i=ES(e);return Jx?Jx(t,i,o):Qx(t,o-i.length,o)===i}});var rC=ww([].join),oC=lD!=Object,iC=TD("join",",");dS({target:"Array",proto:!0,forced:oC||!iC},{join:function(e){return rC(zD(this),void 0===e?",":e)}});var aC=qw("species"),uC=function(e){return Mw>=51||!zw((function(){var t=[];return(t.constructor={})[aC]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sC=FD.map,lC=uC("map");dS({target:"Array",proto:!0,forced:!lC},{map:function(e){return sC(this,e,arguments.length>1?arguments[1]:void 0)}});var cC=fw.RegExp,fC=zw((function(){var e=cC("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dC=fC||zw((function(){return!cC("a","y").sticky})),pC={BROKEN_CARET:fC||zw((function(){var e=cC("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dC,UNSUPPORTED_Y:fC},hC=fw.RegExp,gC=zw((function(){var e=hC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),vC=fw.RegExp,yC=zw((function(){var e=vC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),mC=$E.get,bC=gw("native-string-replace",String.prototype.replace),wC=RegExp.prototype.exec,EC=wC,DC=ww("".charAt),SC=ww("".indexOf),xC=ww("".replace),CC=ww("".slice),AC=function(){var e=/a/,t=/b*/g;return aE(wC,e,"a"),aE(wC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),OC=pC.BROKEN_CARET,kC=void 0!==/()??/.exec("")[1];(AC||kC||OC||gC||yC)&&(EC=function(e){var t,n,r,o,i,a,u,s=this,l=mC(s),c=ES(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=aE(EC,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=OC&&s.sticky,h=aE(DS,s),g=s.source,v=0,y=c;if(p&&(h=xC(h,"y",""),-1===SC(h,"g")&&(h+="g"),y=CC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==DC(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),kC&&(n=new RegExp("^"+g+"$(?!\\s)",h)),AC&&(r=s.lastIndex),o=aE(wC,p?n:s,y),p?o?(o.input=CC(o.input,v),o[0]=CC(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),kC&&o&&o.length>1&&aE(bC,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=LS(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var BC=EC;dS({target:"RegExp",proto:!0,forced:/./.exec!==BC},{exec:BC});var FC=Function.prototype,TC=FC.apply,_C=FC.bind,PC=FC.call,jC="object"==typeof Reflect&&Reflect.apply||(_C?PC.bind(TC):function(){return PC.apply(TC,arguments)}),NC=qw("species"),IC=RegExp.prototype,LC=function(e,t,n,r){var o=qw(e),i=!zw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!zw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[NC]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ww(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=ww(e),s=t.exec;return s===BC||s===IC.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));GE(String.prototype,e,s[0]),GE(IC,o,s[1])}r&&SE(IC[o],"sham",!0)},RC=Dx.charAt,MC=function(e,t,n){return t+(n?RC(e,t).length:1)},zC=Math.floor,$C=ww("".charAt),HC=ww("".replace),VC=ww("".slice),UC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,WC=/\$([$&'`]|\d{1,2})/g,GC=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=WC;return void 0!==o&&(o=xw(o),s=UC),HC(i,s,(function(i,s){var l;switch($C(s,0)){case"$":return"$";case"&":return e;case"`":return VC(t,0,n);case"'":return VC(t,a);case"<":l=o[VC(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=zC(c/10);return 0===f?i:f<=u?void 0===r[f-1]?$C(s,1):r[f-1]+$C(s,1):i}l=r[c-1]}return void 0===l?"":l}))},qC=fw.TypeError,KC=function(e,t){var n=e.exec;if(Tw(n)){var r=aE(n,e,t);return null!==r&&oE(r),r}if("RegExp"===YE(e))return aE(BC,e,t);throw qC("RegExp#exec called on incompatible receiver")},YC=qw("replace"),XC=Math.max,ZC=Math.min,JC=ww([].concat),QC=ww([].push),eA=ww("".indexOf),tA=ww("".slice),nA="$0"==="a".replace(/./,"$0"),rA=!!/./[YC]&&""===/./[YC]("a","$0");LC("replace",(function(e,t,n){var r=rA?"$":"$0";return[function(e,n){var r=Dw(this),o=null==e?void 0:hE(e,YC);return o?aE(o,e,r,n):aE(t,ES(r),e,n)},function(e,o){var i=oE(this),a=ES(e);if("string"==typeof o&&-1===eA(o,r)&&-1===eA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Tw(o);s||(o=ES(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=KC(i,a);if(null===d)break;if(QC(f,d),!l)break;""===ES(d[0])&&(i.lastIndex=MC(a,hD(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=ES((d=f[v])[0]),m=XC(ZC(dD(d.index),a.length),0),b=[],w=1;w<d.length;w++)QC(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=JC([y],b,m,a);void 0!==E&&QC(D,E);var S=ES(jC(o,void 0,D))}else S=GC(y,a,m,b,E,o);m>=g&&(h+=tA(a,g,m)+S,g=m+y.length)}return h+tA(a,g)}]}),!!zw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nA||rA);
- /*! *****************************************************************************
- 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 oA=function(e,t){return oA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},oA(e,t)};function iA(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}oA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aA=function(){return aA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aA.apply(this,arguments)};function uA(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sA(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var cA=0,fA=function(){this.id=""+cA++},dA=$E.set,pA=$E.getterFor("Array Iterator"),hA=Gx(Array,"Array",(function(e,t){dA(this,{type:"Array Iterator",target:zD(e),index:0,kind:t})}),(function(){var e=pA(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");QS.Arguments=QS.Array,zS("keys"),zS("values"),zS("entries");var gA=function(e,t,n){for(var r in t)GE(e,r,t[r],n);return e},vA=fw.Array,yA=Math.max,mA=function(e,t,n){for(var r=gD(e),o=WD(t,r),i=WD(void 0===n?r:n,r),a=vA(yA(i-o,0)),u=0;o<i;o++,u++)rx(a,u,e[o]);return a.length=u,a},bA=QD.f,wA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],EA={f:function(e){return wA&&"Window"==YE(e)?function(e){try{return bA(e)}catch(e){return mA(wA)}}(e):bA(zD(e))}},DA=zw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),SA=Object.isExtensible,xA=zw((function(){SA(1)}))||DA?function(e){return!!Zw(e)&&(!DA||"ArrayBuffer"!=YE(e))&&(!SA||SA(e))}:SA,CA=!zw((function(){return Object.isExtensible(Object.preventExtensions({}))})),AA=uw((function(e){var t=EE.f,n=!1,r=Fw("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=QD.f,t=ww([].splice),o={};o[r]=1,e(o).length&&(QD.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},dS({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:EA.f}))},fastKey:function(e,t){if(!Zw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Aw(e,r)){if(!xA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Aw(e,r)){if(!xA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return CA&&n&&xA(e)&&!Aw(e,r)&&i(e),e}};PE[r]=!0})),OA=fw.TypeError,kA=function(e,t){this.stopped=e,this.result=t},BA=kA.prototype,FA=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=aD(t,c),g=function(e){return r&&ZS(r,"normal",e),new kA(!0,e)},v=function(e){return f?(oE(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=ix(e)))throw OA(fE(e)+" is not iterable");if(nx(o)){for(i=0,a=gD(e);a>i;i++)if((u=v(e[i]))&&uE(BA,u))return u;return new kA(!1)}r=ux(e,o)}for(s=r.next;!(l=aE(s,r)).done;){try{u=v(l.value)}catch(e){ZS(r,"throw",e)}if("object"==typeof u&&u&&uE(BA,u))return u}return new kA(!1)},TA=fw.TypeError,_A=function(e,t){if(uE(t,e))return e;throw TA("Incorrect invocation")},PA=function(e,t,n){var r,o;return Mx&&Tw(r=t.constructor)&&r!==n&&Zw(o=r.prototype)&&o!==n.prototype&&Mx(e,o),e},jA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=fw[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=ww(u[e]);GE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Zw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Zw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Zw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(cS(e,!Tw(a)||!(o||u.forEach&&!zw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),AA.enable();else if(cS(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=zw((function(){f.has(1)})),h=px((function(e){new a(e)})),g=!o&&zw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){_A(e,u);var n=PA(new a,e,s);return null!=t&&FA(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,dS({global:!0,forced:s!=a},l),jx(s,e),o||n.setStrong(s,e,r),s},NA=AA.getWeakData,IA=$E.set,LA=$E.getterFor,RA=FD.find,MA=FD.findIndex,zA=ww([].splice),$A=0,HA=function(e){return e.frozen||(e.frozen=new VA)},VA=function(){this.entries=[]},UA=function(e,t){return RA(e.entries,(function(e){return e[0]===t}))};VA.prototype={get:function(e){var t=UA(this,e);if(t)return t[1]},has:function(e){return!!UA(this,e)},set:function(e,t){var n=UA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=MA(this.entries,(function(t){return t[0]===e}));return~t&&zA(this.entries,t,1),!!~t}};var WA,GA={getConstructor:function(e,t,n,r){var o=e((function(e,o){_A(e,i),IA(e,{type:t,id:$A++,frozen:void 0}),null!=o&&FA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=LA(t),u=function(e,t,n){var r=a(e),o=NA(oE(t),!0);return!0===o?HA(r).set(t,n):o[r.id]=n,e};return gA(i,{delete:function(e){var t=a(this);if(!Zw(e))return!1;var n=NA(e);return!0===n?HA(t).delete(e):n&&Aw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Zw(e))return!1;var n=NA(e);return!0===n?HA(t).has(e):n&&Aw(n,t.id)}}),gA(i,n?{get:function(e){var t=a(this);if(Zw(e)){var n=NA(e);return!0===n?HA(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},qA=$E.enforce,KA=!fw.ActiveXObject&&"ActiveXObject"in fw,YA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XA=jA("WeakMap",YA,GA);if(FE&&KA){WA=GA.getConstructor(YA,"WeakMap",!0),AA.enable();var ZA=XA.prototype,JA=ww(ZA.delete),QA=ww(ZA.has),eO=ww(ZA.get),tO=ww(ZA.set);gA(ZA,{delete:function(e){if(Zw(e)&&!xA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),JA(this,e)||t.frozen.delete(e)}return JA(this,e)},has:function(e){if(Zw(e)&&!xA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),QA(this,e)||t.frozen.has(e)}return QA(this,e)},get:function(e){if(Zw(e)&&!xA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),QA(this,e)?eO(this,e):t.frozen.get(e)}return eO(this,e)},set:function(e,t){if(Zw(e)&&!xA(e)){var n=qA(this);n.frozen||(n.frozen=new WA),QA(this,e)?tO(this,e,t):n.frozen.set(e,t)}else tO(this,e,t);return this}})}var nO=qw("iterator"),rO=qw("toStringTag"),oO=hA.values,iO=function(e,t){if(e){if(e[nO]!==oO)try{SE(e,nO,oO)}catch(t){e[nO]=oO}if(e[rO]||SE(e,rO,t),tD[t])for(var n in hA)if(e[n]!==hA[n])try{SE(e,n,hA[n])}catch(t){e[n]=hA[n]}}};for(var aO in tD)iO(fw[aO]&&fw[aO].prototype,aO);iO(oD,"DOMTokenList");var uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,wO=new WeakMap,EO=new WeakMap,DO=new WeakMap,SO=new WeakMap,xO=new WeakMap,CO=new WeakMap,AO=new WeakMap,OO=new WeakMap,kO=new WeakMap,BO=new WeakMap,FO=new WeakMap,TO=new WeakMap,_O=FD.find,PO=!0;"find"in[]&&Array(1).find((function(){PO=!1})),dS({target:"Array",proto:!0,forced:PO},{find:function(e){return _O(this,e,arguments.length>1?arguments[1]:void 0)}}),zS("find"),dS({global:!0},{globalThis:fw});const jO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];nh&&($p.fn.css=nh),sh&&($p.fn.append=sh),Hp&&($p.fn.addClass=Hp),Vp&&($p.fn.removeClass=Vp),Up&&($p.fn.hasClass=Up),Yp&&($p.fn.on=Yp),bh&&($p.fn.focus=bh),Wp&&($p.fn.attr=Wp),Gp&&($p.fn.removeAttr=Gp),eh&&($p.fn.hide=eh),th&&($p.fn.show=th),Qp&&($p.fn.offset=Qp),Zp&&($p.fn.width=Zp),Jp&&($p.fn.height=Jp),ch&&($p.fn.parent=ch),fh&&($p.fn.parents=fh),uh&&($p.fn.is=uh),qp&&($p.fn.dataset=qp),Kp&&($p.fn.val=Kp),ah&&($p.fn.text=ah),ih&&($p.fn.html=ih),ph&&($p.fn.children=ph),hh&&($p.fn.remove=hh),dh&&($p.fn.find=dh),rh&&($p.fn.each=rh),gh&&($p.fn.empty=gh);var NO,IO,LO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},RO=function(e){return MO(e)&&1===e.nodeType},MO=function(e){var t=LO(e);return!!t&&e instanceof t.Node},zO=function(e){var t=e&&e.anchorNode&&LO(e.anchorNode);return!!t&&e instanceof t.Selection},$O=function(e){return MO(e)&&3===e.nodeType},HO=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},VO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(MO(r=i)&&8===r.nodeType||RO(i)&&0===i.childNodes.length||RO(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},UO=function(e,t,n){return sA(VO(e,t,n),1)[0]},WO=function e(t){var n,r,o="";if($O(t)&&t.nodeValue)return t.nodeValue;if(RO(t)){try{for(var i=uA(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function GO(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||GO(o,t)}}function qO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==NO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(IO=NO||(NO={}))[IO.ELEMENT_NODE=1]="ELEMENT_NODE",IO[IO.TEXT_NODE=3]="TEXT_NODE",IO[IO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",IO[IO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",IO[IO.COMMENT_NODE=8]="COMMENT_NODE",IO[IO.DOCUMENT_NODE=9]="DOCUMENT_NODE",IO[IO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",IO[IO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var KO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),YO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var XO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ZO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),JO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),QO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var ek=!JO&&!ZO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,tk={getWindow:function(e){var t=OO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=AO.get(t);return n||(n=new fA,AO.set(t,n)),n},setNewKey:function(e){var t=new fA;AO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=EO.get(r);if(null==o){if(_f.isEditor(r))return n;break}var i=wO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=tk.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return EO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=tk.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[tk.findPath(e,t)[0]];return Lf.get(e,n)},toDOMNode:function(e,t){var n;if(_f.isEditor(t))n=DO.get(e);else{var r=tk.findKey(e,t);n=xO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=tk.toDOMNode(e,e);try{r=RO(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Yf.isBackward(t),i=tk.toDOMPoint(e,n),a=Yf.isCollapsed(t)?i:tk.toDOMPoint(e,r),u=tk.getWindow(e).document.createRange(),s=sA(o?a:i,2),l=s[0],c=s[1],f=sA(o?i:a,2),d=f[0],p=f[1],h=!!(RO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(RO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=sA(_f.node(e,t.path),1)[0],a=tk.toDOMNode(e,i);_f.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=uA(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=RO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?SO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=tk.toSlateNode(e,t.target),u=tk.findPath(e,a);if(_f.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=_f.point(e,u,{edge:l?"start":"end"}),f=l?_f.before(e,c):_f.after(e,c);if(f)return _f.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return tk.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((zO(t)?t.anchorNode:t.startContainer)&&(zO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=QO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=tk.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:tk.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Yf.isExpanded(d)&&Yf.isForward(d)&&RO(i)&&_f.void(e,{at:d.focus,mode:"highest"})&&(d=_f.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=sA(o?t:function(e){var t,n=sA(e,2),r=n[0],o=n[1];if(RO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=sA(VO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;RO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=UO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=tk.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();lA(lA([],sA(Ap(v.querySelectorAll("[data-slate-zero-width]")))),sA(Ap(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||YO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=tk.toSlateNode(e,c);return{path:tk.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return _f.hasPath(e,n.path)&&_f.hasPath(e,r.path)},getNodeType:function(e){return Af.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Lf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=_f.nodes(e,{universal:!0});try{for(var i=uA(o),a=i.next();!a.done;a=i.next()){var u=sA(a.value,1)[0];Af.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=sA(_f.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=sA(_f.nodes(e,{match:function(e){return nd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=sA(_f.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&sA(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(_f.isEnd(e,n.anchor,t)||_f.isEnd(e,n.focus,t))},getTextarea:function(e){var t=uO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return cO.get(e)||null},getHoverbar:function(e){return dO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=tk.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=uA(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=_f.nodes(e,{match:function(t){return!(!Af.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=uA(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];GO(tk.toDOMNode(e,h),(function(e,t){var n=$p(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=_f.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=uA(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Yf.isExpanded(t))return!1;var n=tk.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=_f.node(e,t);if(null==n)return!1;var r=sA(n,1)[0].children;return 1===r.length&&""===r[0].text}},nk=1,rk={},ok={},ik=FD.filter,ak=uC("filter");dS({target:"Array",proto:!0,forced:!ak},{filter:function(e){return ik(this,e,arguments.length>1?arguments[1]:void 0)}});var uk="\t\n\v\f\r \u2028\u2029\ufeff",sk=ww("".replace),lk="["+uk+"]",ck=RegExp("^"+lk+lk+"*"),fk=RegExp(lk+lk+"*$"),dk=function(e){return function(t){var n=ES(Dw(t));return 1&e&&(n=sk(n,ck,"")),2&e&&(n=sk(n,fk,"")),n}},pk={start:dk(1),end:dk(2),trim:dk(3)},hk=WE.PROPER,gk=pk.trim;dS({target:"String",proto:!0,forced:function(e){return zw((function(){return!!uk[e]()||"
"!=="
"[e]()||hk&&uk[e].name!==e}))}("trim")},{trim:function(){return gk(this)}});var vk=[],yk={};function mk(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var bk,wk,Ek,Dk,Sk=fw.Promise,xk=qw("species"),Ck=function(e){var t=Pw(e),n=EE.f;Xw&&t&&!t[xk]&&n(t,xk,{configurable:!0,get:function(){return this}})},Ak=fw.TypeError,Ok=qw("species"),kk=function(e,t){var n,r=oE(e).constructor;return void 0===r||null==(n=oE(r)[Ok])?t:function(e){if(xD(e))return e;throw Ak(fE(e)+" is not a constructor")}(n)},Bk=ww([].slice),Fk=/(?:ipad|iphone|ipod).*applewebkit/i.test(jw),Tk="process"==YE(fw.process),_k=fw.setImmediate,Pk=fw.clearImmediate,jk=fw.process,Nk=fw.Dispatch,Ik=fw.Function,Lk=fw.MessageChannel,Rk=fw.String,Mk=0,zk={};try{bk=fw.location}catch(IO){}var $k=function(e){if(Aw(zk,e)){var t=zk[e];delete zk[e],t()}},Hk=function(e){return function(){$k(e)}},Vk=function(e){$k(e.data)},Uk=function(e){fw.postMessage(Rk(e),bk.protocol+"//"+bk.host)};_k&&Pk||(_k=function(e){var t=Bk(arguments,1);return zk[++Mk]=function(){jC(Tw(e)?e:Ik(e),void 0,t)},wk(Mk),Mk},Pk=function(e){delete zk[e]},Tk?wk=function(e){jk.nextTick(Hk(e))}:Nk&&Nk.now?wk=function(e){Nk.now(Hk(e))}:Lk&&!Fk?(Dk=(Ek=new Lk).port2,Ek.port1.onmessage=Vk,wk=aD(Dk.postMessage,Dk)):fw.addEventListener&&Tw(fw.postMessage)&&!fw.importScripts&&bk&&"file:"!==bk.protocol&&!zw(Uk)?(wk=Uk,fw.addEventListener("message",Vk,!1)):wk="onreadystatechange"in eE("script")?function(e){TS.appendChild(eE("script")).onreadystatechange=function(){TS.removeChild(this),$k(e)}}:function(e){setTimeout(Hk(e),0)});var Wk,Gk,qk,Kk,Yk,Xk,Zk,Jk,Qk={set:_k,clear:Pk},eB=/ipad|iphone|ipod/i.test(jw)&&void 0!==fw.Pebble,tB=/web0s(?!.*chrome)/i.test(jw),nB=HD.f,rB=Qk.set,oB=fw.MutationObserver||fw.WebKitMutationObserver,iB=fw.document,aB=fw.process,uB=fw.Promise,sB=nB(fw,"queueMicrotask"),lB=sB&&sB.value;lB||(Wk=function(){var e,t;for(Tk&&(e=aB.domain)&&e.exit();Gk;){t=Gk.fn,Gk=Gk.next;try{t()}catch(e){throw Gk?Kk():qk=void 0,e}}qk=void 0,e&&e.enter()},Fk||Tk||tB||!oB||!iB?!eB&&uB&&uB.resolve?((Zk=uB.resolve(void 0)).constructor=uB,Jk=aD(Zk.then,Zk),Kk=function(){Jk(Wk)}):Tk?Kk=function(){aB.nextTick(Wk)}:(rB=aD(rB,fw),Kk=function(){rB(Wk)}):(Yk=!0,Xk=iB.createTextNode(""),new oB(Wk).observe(Xk,{characterData:!0}),Kk=function(){Xk.data=Yk=!Yk}));var cB,fB,dB,pB,hB=lB||function(e){var t={fn:e,next:void 0};qk&&(qk.next=t),Gk||(Gk=t,Kk()),qk=t},gB=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=pE(t),this.reject=pE(n)},vB={f:function(e){return new gB(e)}},yB=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},mB="object"==typeof window,bB=Qk.set,wB=qw("species"),EB="Promise",DB=$E.getterFor(EB),SB=$E.set,xB=$E.getterFor(EB),CB=Sk&&Sk.prototype,AB=Sk,OB=CB,kB=fw.TypeError,BB=fw.document,FB=fw.process,TB=vB.f,_B=TB,PB=!!(BB&&BB.createEvent&&fw.dispatchEvent),jB=Tw(fw.PromiseRejectionEvent),NB=!1,IB=cS(EB,(function(){var e=kE(AB),t=e!==String(AB);if(!t&&66===Mw)return!0;if(Mw>=51&&/native code/.test(e))return!1;var n=new AB((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[wB]=r,!(NB=n.then((function(){}))instanceof r)||!t&&mB&&!jB})),LB=IB||!px((function(e){AB.all(e).catch((function(){}))})),RB=function(e){var t;return!(!Zw(e)||!Tw(t=e.then))&&t},MB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hB((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&VB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(kB("Promise-chain cycle")):(u=RB(a))?aE(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&$B(e)}))}},zB=function(e,t,n){var r,o;PB?((r=BB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),fw.dispatchEvent(r)):r={promise:t,reason:n},!jB&&(o=fw["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=fw.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},$B=function(e){aE(bB,fw,(function(){var t,n=e.facade,r=e.value;if(HB(e)&&(t=yB((function(){Tk?FB.emit("unhandledRejection",r,n):zB("unhandledrejection",n,r)})),e.rejection=Tk||HB(e)?2:1,t.error))throw t.value}))},HB=function(e){return 1!==e.rejection&&!e.parent},VB=function(e){aE(bB,fw,(function(){var t=e.facade;Tk?FB.emit("rejectionHandled",t):zB("rejectionhandled",t,e.value)}))},UB=function(e,t,n){return function(r){e(t,r,n)}},WB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,MB(e,!0))},GB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw kB("Promise can't be resolved itself");var r=RB(t);r?hB((function(){var n={done:!1};try{aE(r,t,UB(GB,n,e),UB(WB,n,e))}catch(t){WB(n,t,e)}})):(e.value=t,e.state=1,MB(e,!1))}catch(t){WB({done:!1},t,e)}}};if(IB&&(OB=(AB=function(e){_A(this,OB),pE(e),aE(cB,this);var t=DB(this);try{e(UB(GB,t),UB(WB,t))}catch(e){WB(t,e)}}).prototype,(cB=function(e){SB(this,{type:EB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gA(OB,{then:function(e,t){var n=xB(this),r=n.reactions,o=TB(kk(this,AB));return o.ok=!Tw(e)||e,o.fail=Tw(t)&&t,o.domain=Tk?FB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&MB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),fB=function(){var e=new cB,t=DB(e);this.promise=e,this.resolve=UB(GB,t),this.reject=UB(WB,t)},vB.f=TB=function(e){return e===AB||e===dB?new fB(e):_B(e)},Tw(Sk)&&CB!==Object.prototype)){pB=CB.then,NB||(GE(CB,"then",(function(e,t){var n=this;return new AB((function(e,t){aE(pB,n,e,t)})).then(e,t)}),{unsafe:!0}),GE(CB,"catch",OB.catch,{unsafe:!0}));try{delete CB.constructor}catch(IO){}Mx&&Mx(CB,OB)}dS({global:!0,wrap:!0,forced:IB},{Promise:AB}),jx(AB,EB,!1),Ck(EB),dB=Pw(EB),dS({target:EB,stat:!0,forced:IB},{reject:function(e){var t=TB(this);return aE(t.reject,void 0,e),t.promise}}),dS({target:EB,stat:!0,forced:IB},{resolve:function(e){return function(e,t){if(oE(e),Zw(t)&&t.constructor===e)return t;var n=vB.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),dS({target:EB,stat:!0,forced:LB},{all:function(e){var t=this,n=TB(t),r=n.resolve,o=n.reject,i=yB((function(){var n=pE(t.resolve),i=[],a=0,u=1;FA(e,(function(e){var s=a++,l=!1;u++,aE(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=TB(t),r=n.reject,o=yB((function(){var o=pE(t.resolve);FA(e,(function(e){aE(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var qB=pC.UNSUPPORTED_Y,KB=Math.min,YB=[].push,XB=ww(/./.exec),ZB=ww(YB),JB=ww("".slice);function QB(e){Promise.resolve().then(e)}function eF(e,t){return Af.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=_f.isVoid(t,e),u="";a||(u=i.map((function(e){return eF(e,t)})).join(""));var s=function(e){return yk[e]||mk}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||vk.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=tk.getParentsNodes(t,e).some((function(e){return"pre"===tk.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=tk.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return vk.forEach((function(t){return r=t(e,r)})),r}(e,t)}function tF(e){return"w-e-element-"+e}LC("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=ES(Dw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!VS(e))return aE(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=aE(BC,f,r))&&!((a=f.lastIndex)>c&&(ZB(s,JB(r,c,i.index)),i.length>1&&i.index<r.length&&jC(YB,s,mA(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&XB(f,"")||ZB(s,""):ZB(s,JB(r,c)),s.length>o?mA(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:aE(t,this,e,n)}:t,[function(t,n){var o=Dw(this),i=null==t?void 0:hE(t,e);return i?aE(i,t,o,n):aE(r,ES(o),t,n)},function(e,o){var i=oE(this),a=ES(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=kk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(qB?"g":"y"),f=new s(qB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===KC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=qB?0:h;var v,y=KC(f,qB?JB(a,h):a);if(null===y||(v=KB(hD(f.lastIndex+(qB?h:0)),a.length))===p)h=MC(a,h,l);else{if(ZB(g,JB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(ZB(g,y[m]),g.length===d)return g;h=p=v}}return ZB(g,JB(a,p)),g}]}),!!zw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),qB);var nF=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},rF=function(e,t,n){var r=tk.toDOMRange(e,t).getBoundingClientRect(),o=tk.toDOMRange(e,n).getBoundingClientRect();return nF(r,o)&&nF(o,r)},oF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],iF=[],aF=[],uF={},sF=EE.f,lF=QD.f,cF=$E.enforce,fF=qw("match"),dF=fw.RegExp,pF=dF.prototype,hF=fw.SyntaxError,gF=ww(DS),vF=ww(pF.exec),yF=ww("".charAt),mF=ww("".replace),bF=ww("".indexOf),wF=ww("".slice),EF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,DF=/a/g,SF=/a/g,xF=new dF(DF)!==DF,CF=pC.MISSED_STICKY,AF=pC.UNSUPPORTED_Y,OF=Xw&&(!xF||CF||gC||yC||zw((function(){return SF[fF]=!1,dF(DF)!=DF||dF(SF)==SF||"/a/i"!=dF(DF,"i")})));if(cS("RegExp",OF)){for(var kF=function(e,t){var n,r,o,i,a,u,s=uE(pF,this),l=VS(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===kF)return e;if((l||uE(pF,e))&&(e=e.source,c&&(t="flags"in d?d.flags:gF(d))),e=void 0===e?"":ES(e),t=void 0===t?"":ES(t),d=e,gC&&"dotAll"in DF&&(r=!!t&&bF(t,"s")>-1)&&(t=mF(t,/s/g,"")),n=t,CF&&"sticky"in DF&&(o=!!t&&bF(t,"y")>-1)&&AF&&(t=mF(t,/y/g,"")),yC&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=yF(e,r)))t+=yF(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:vF(EF,wF(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Aw(a,c))throw new hF("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=PA(dF(e,t),s?this:pF,kF),(r||o||f.length)&&(u=cF(a),r&&(u.dotAll=!0,u.raw=kF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=yF(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+yF(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{SE(a,"source",""===d?"(?:)":d)}catch(e){}return a},BF=function(e){e in kF||sF(kF,e,{configurable:!0,get:function(){return dF[e]},set:function(t){dF[e]=t}})},FF=lF(dF),TF=0;FF.length>TF;)BF(FF[TF++]);pF.constructor=kF,kF.prototype=pF,GE(fw,"RegExp",kF)}Ck("RegExp");var _F=new RegExp(String.fromCharCode(160),"g");function PF(e){return e.replace(_F," ")}function jF(e,t){var n=e.length;if(n){var r=e[n-1];if(nd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function NF(e,t,n){return{type:"paragraph",children:[{text:$p(e).text().replace(/\s+/gm," ")}]}}function IF(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==NO.ELEMENT_NODE)if(e.nodeType!==NO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=PF(r),jF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(jF(n,"\n")||n.push({text:"\n"}));var o=RF($p(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in uF)if(e[0].matches(t))return uF[t];return NF}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){_f.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),aF.forEach((function(n){r=n(e[0],r,t)})))})),o}function LF(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=PF(n)};return aF.forEach((function(n){r=n(e[0],r,t)})),r}function RF(e,t){iF.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=$p(r(e[0])))}));var n=qO(e);return"span"===n?e.attr("data-w-e-type")?IF(e,t):LF(e,t):"code"===n?"pre"===qO(e.parent())?IF(e,t):LF(e,t):oF.includes(n)?LF(e,t):IF(e,t)}function MF(e,t,n){var r=$p(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function zF(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=$p("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=RF($p(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var $F=EE.f,HF=AA.fastKey,VF=$E.set,UF=$E.getterFor,WF={getConstructor:function(e,t,n,r){var o=e((function(e,o){_A(e,i),VF(e,{type:t,index:LS(null),first:void 0,last:void 0,size:0}),Xw||(e.size=0),null!=o&&FA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=UF(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=HF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Xw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=HF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return gA(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Xw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Xw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=aD(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),gA(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Xw&&$F(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=UF(t),i=UF(r);Gx(e,t,(function(e,t){VF(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),Ck(t)}};jA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),WF);var GF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function qF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):wd.insertNodes(e,t,{mode:"highest"})}var KF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=sA(Yf.edges(n),2),o=r[0],i=r[1],a=_f.void(t,{at:o.path}),u=_f.void(t,{at:i.path});if(!Yf.isCollapsed(n)||a){var s=tk.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=sA(u,1)[0],d=s.cloneRange(),p=tk.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),$O(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",WO(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=uA(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&wd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},YF=function(e){return null!=e},XF={object:!0,function:!0,undefined:!0},ZF=/^\s*class[\s{/}]/,JF=Function.prototype.toString,QF=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!YF(e)&&hasOwnProperty.call(XF,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!ZF.test(JF.call(e))},eT=function(e){return null!=e},tT=Object.keys,nT=function(){try{return Object.keys("primitive"),!0}catch(r){return!1}}()?Object.keys:function(e){return tT(eT(e)?Object(e):e)},rT=function(e){if(!eT(e))throw new TypeError("Cannot use null or undefined");return e},oT=Math.max,iT=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=oT(arguments.length,2);for(e=Object(rT(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)nT(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},aT=Array.prototype.forEach,uT=Object.create,sT=function(e,t){var n;for(n in e)t[n]=e[n]},lT=function(e){var t=uT(null);return aT.call(arguments,(function(e){eT(e)&&sT(Object(e),t)})),t},cT="razdwatrzy",fT=String.prototype.indexOf,dT="function"==typeof cT.contains&&!0===cT.contains("dwa")&&!1===cT.contains("foo")?String.prototype.contains:function(e){return fT.call(this,e,arguments[1])>-1},pT=uw((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],YF(e)?(n=dT.call(e,"c"),r=dT.call(e,"e"),o=dT.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?iT(lT(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],YF(t)?QF(t)?YF(n)?QF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,YF(e)?(r=dT.call(e,"c"),o=dT.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?iT(lT(i),a):a}})),hT=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},gT=uw((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return hT(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return hT(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(hT(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:pT(n),once:pT(r),off:pT(o),emit:pT(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function vT(e){var t=FO.get(e);return null==t&&(t=gT(),FO.set(e,t)),t}var yT=new WeakMap;function mT(e,t){var n=yT.get(e);null==n&&(n=new Set,yT.set(e,n)),n.add(t)}function bT(e){return yT.get(e)||new Set}function wT(e){yT.set(e,new Set)}function ET(e){var t=tk.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function DT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=ET(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=tk.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function ST(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Af.isElement(t)&&e.isVoid(t),i=Af.isElement(t)&&e.isInline(t),a=CO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(jO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=ET(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,D=l-y;if("bar"===n)return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?D>(m-f)/2?w.right=m-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function xT(e,t){QB((function(){var n=ET(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var D=t.css("right"),S=parseInt(D.toString())-Math.abs(c);t.css("right",S+"px")}}}))}var CT=uC("slice"),AT=qw("species"),OT=fw.Array,kT=Math.max;dS({target:"Array",proto:!0,forced:!CT},{slice:function(e,t){var n,r,o,i=zD(this),a=gD(i),u=WD(e,a),s=WD(void 0===t?a:t,a);if(vD(i)&&(n=i.constructor,(xD(n)&&(n===OT||vD(n.prototype))||Zw(n)&&null===(n=n[AT]))&&(n=void 0),n===OT||void 0===n))return Bk(i,u,s);for(r=new(void 0===n?OT:n)(kT(s-u,0)),o=0;u<s;u++,o++)u in i&&rx(r,o,i[u]);return r.length=o,r}});var BT=HD.f,FT=ww("".startsWith),TT=ww("".slice),_T=Math.min,PT=qS("startsWith"),jT=!PT&&!!function(){var e=BT(String.prototype,"startsWith");return e&&!e.writable}();dS({target:"String",proto:!0,forced:!jT&&!PT},{startsWith:function(e){var t=ES(Dw(this));WS(e);var n=hD(_T(arguments.length>1?arguments[1]:void 0,t.length)),r=ES(e);return FT?FT(t,r,n):TT(t,n,n+r.length)===r}});var NT=Object.assign,IT=Object.defineProperty,LT=ww([].concat),RT=!NT||zw((function(){if(Xw&&1!==NT({b:1},NT(IT({},"a",{enumerable:!0,get:function(){IT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=NT({},e)[n]||pS(NT({},t)).join("")!=r}))?function(e,t){for(var n=xw(e),r=arguments.length,o=1,i=eS.f,a=MD.f;r>o;)for(var u,s=lD(arguments[o++]),l=i?LT(pS(s),i(s)):pS(s),c=l.length,f=0;c>f;)u=l[f++],Xw&&!aE(a,s,u)||(n[u]=s[u]);return n}:NT;dS({target:"Object",stat:!0,forced:Object.assign!==RT},{assign:RT});var MT=["props","attrs","style","dataset","on","hook"];function zT(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!MT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Ov(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&zT(e)}))}var $T=[],HT={};function VT(e,t,n){return Ng(n.isInline(e)?"span":"div",null,t)}function UT(e,t){return void 0===t&&(t=!1),Ng("span",{"data-slate-string":!0},t?e+"\n":e)}function WT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Ng("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Ng("br",null):null)}function GT(e,t,n,r){return wO.set(e,t),EO.set(e,n),Af.isElement(e)?function(e,t){var n,r=tk.findKey(t,e),o=t.isInline(e),i=_f.isVoid(t,e),a=tF(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return HT[e]||VT}(s);n=i?null:c.map((function(n,r){return GT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=sA(Lf.texts(e),1),g=sA(h[0],1)[0],v=Ng(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},GT(g,0,e,t));d=Ng(p,{style:{position:"relative"}},d,v),wO.set(g,0),EO.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return $T.forEach((function(r){n=r(e,t)})),n}(e,d)),QB((function(){var t=HO(a);null!=t&&(xO.set(r,t),CO.set(e,t),SO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=tk.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=tk.findPath(n,e),a=o([e,i]),u=nd.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=tk.findPath(o,n),u=$f.parent(a);if(_f.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?WT(Lf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==_f.string(o,u)?""===i?WT():t&&"\n"===i.slice(-1)?UT(i,!0):UT(i):WT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return $T.forEach((function(t){n=t(e,n)})),n}(r,i),Ng("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Ng("span",{"data-slate-node":"text",id:l,key:r.id},s);return QB((function(){var t=HO(l);null!=t&&(xO.set(r,t),CO.set(e,t),SO.set(t,e))})),c}(e,n,r)}function qT(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),gg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=GT(e,n,t,t);return zT(r),r}));var c=yO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return $p('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=pg([bg,kg,Pg,Dg,Ag,yg]))(n,s),yO.set(e,!1),mO.set(e,p)}else{var d=bO.get(e),p=mO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=HO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=LO(n);h&&OO.set(t,h)}DO.set(t,n),CO.set(t,n),SO.set(n,t),bO.set(e,s)}}function KT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function YT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function XT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return YT(n.overflowY,t)||YT(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ZT(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function JT(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!KT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;KT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&XT(f)&&!XT(document.documentElement)||null!=f&&XT(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,D=v.left,S="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,x="center"===i?D+m/2:"end"===i?w:D,C=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=T&&E<=P&&D>=j&&w<=_)return C;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?S:"end"===o?S-p:"nearest"===o?ZT(g,g+p,p,L,M,g+S,g+S+y,y):S-p/2,$="start"===i?x:"center"===i?x-d/2:"end"===i?x-d:ZT(h,h+d,d,I,R,h+x,h+x+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?S-T-L:"end"===o?S-P+M+V:"nearest"===o?ZT(T,P,B,L,M+V,S,S+y,y):S-(T+B/2)+V/2,$="start"===i?x-j-I:"center"===i?x-(j+F/2)+H/2:"end"===i?x-_+R+H:ZT(j,_,F,I,R+H,x,x+m,m);var U=O.scrollLeft,W=O.scrollTop;S+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),x+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}C.push({el:O,top:z,left:$})}return C}function QT(e){return e===Object(e)&&0!==Object.keys(e).length}function e_(e,t){return MO(t)&&tk.hasDOMNode(e,t,{editable:!0})}function t_(e,t){if(e.getConfig().readOnly)return!1;var n=n_(e,t)&&tk.toSlateNode(e,t);return _f.isVoid(e,n)}function n_(e,t){return MO(t)&&tk.hasDOMNode(e,t)}function r_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=tk.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=DO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=tk.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Yf.equals(l,r)){var c=!0;if(Yf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||tk.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&tk.toDOMRange(t,r);if(g){Yf.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(QT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:JT(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:QT(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(JT(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&YO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=tk.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var o_=new WeakMap,i_=new WeakMap,a_={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"},u_={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"},s_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},l_=function(e){var t=a_[e],n=u_[e],r=s_[e],o=t&&Lv(t),i=n&&Lv(n),a=r&&Lv(r);return function(e){return!(!o||!o(e))||!!(KO&&i&&i(e))||!(KO||!a||!a(e))}},c_={isBold:l_("bold"),isCompose:l_("compose"),isMoveBackward:l_("moveBackward"),isMoveForward:l_("moveForward"),isDeleteBackward:l_("deleteBackward"),isDeleteForward:l_("deleteForward"),isDeleteLineBackward:l_("deleteLineBackward"),isDeleteLineForward:l_("deleteLineForward"),isDeleteWordBackward:l_("deleteWordBackward"),isDeleteWordForward:l_("deleteWordForward"),isExtendBackward:l_("extendBackward"),isExtendForward:l_("extendForward"),isExtendLineBackward:l_("extendLineBackward"),isExtendLineForward:l_("extendLineForward"),isItalic:l_("italic"),isMoveLineBackward:l_("moveLineBackward"),isMoveLineForward:l_("moveLineForward"),isMoveWordBackward:l_("moveWordBackward"),isMoveWordForward:l_("moveWordForward"),isRedo:l_("redo"),isSplitBlock:l_("splitBlock"),isTransposeCharacter:l_("transposeCharacter"),isUndo:l_("undo"),isTab:l_("tab"),isSelectAll:l_("selectAll")};function f_(e){e.preventDefault()}var d_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(ek&&!o&&e_(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=sA(r.getTargetRanges(),1)[0];if(s){var l=tk.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Yf.equals(i,l)||wd.select(n,l)}}if(i&&Yf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";_f.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":_f.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":_f.deleteForward(n);break;case"deleteContentBackward":_f.deleteBackward(n);break;case"deleteEntireSoftLine":_f.deleteBackward(n,{unit:"line"}),_f.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":_f.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":_f.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":_f.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":_f.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":_f.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":_f.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":_f.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!TO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&_f.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&e_(n,r.target)){var a=tk.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===tk.toDOMNode(n,n)||RO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&MO(u)&&tk.hasDOMNode(n,u)){var s=tk.toSlateNode(n,u);if(Af.isElement(s)&&!n.isVoid(s))return}if(XO){var l=a.getSelection();null==l||l.removeAllRanges()}kO.delete(n)}}}},focus:function(e,t,n){var r=tk.toDOMNode(n,n),o=tk.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,YO&&e.target!==r?r.focus():kO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&n_(n,e.target)&&MO(e.target)){var r=tk.toSlateNode(n,e.target),o=tk.findPath(n,r);if(_f.hasPath(n,o)&&Lf.get(n,o)===r){var i=_f.start(n,o),a=_f.end(n,o),u=_f.void(n,{at:i}),s=_f.void(n,{at:a});if(u&&s&&$f.equals(u[1],s[1])){var l=_f.range(n,i);wd.select(n,l)}}}},compositionstart:function(e,t,n){if(e_(n,e.target)){var r=n.selection;if(r&&Yf.isExpanded(r)&&(_f.deleteFragment(n),Promise.resolve().then((function(){r_(t,n,!0)}))),r&&Yf.isCollapsed(r)){var o=tk.toDOMRange(n,r).startContainer,i=o.textContent||"";o_.set(n,i),i_.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(e_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(QO||YO)&&tk.cleanExposedTexNodeInSelectionBlock(n);for(var i=Yf.isBackward(o)?o.focus:o.anchor,a=sA(_f.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=sA(_f.node(n,i.path.slice(0,u+1)),1)[0];if(Af.isElement(s)&&((XO||YO)&&"link"===s.type||"code"===s.type)){tk.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=tk.getLeftLengthOfMaxLength(n);c<l.length?(tk.toDOMRange(n,o).startContainer.textContent=o_.get(n)||"",c>0&&_f.insertText(n,l.slice(0,c)),t.changeViewState()):_f.insertText(n,l)}else _f.insertText(n,l);XO||setTimeout((function(){var e=n.selection;if(null!=e){var t=i_.get(n);null!=t&&tk.toDOMRange(n,e).startContainer!==t&&(t.textContent=o_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){e_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&e_(n,r.target)){if(function(e,t){var n=cO.get(e),r=n&&n.getMenus(),o=dO.get(e),i=o&&o.getMenus(),a=aA(aA({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Iv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),c_.isTab(r))return f_(r),void n.handleTab();if(c_.isRedo(r))return f_(r),void("function"==typeof n.redo&&n.redo());if(c_.isUndo(r))return f_(r),void("function"==typeof n.undo&&n.undo());if(c_.isMoveLineBackward(r))return f_(r),void wd.move(n,{unit:"line",reverse:!0});if(c_.isMoveLineForward(r))return f_(r),void wd.move(n,{unit:"line"});if(c_.isExtendLineBackward(r))return f_(r),void wd.move(n,{unit:"line",edge:"focus",reverse:!0});if(c_.isExtendLineForward(r))return f_(r),void wd.move(n,{unit:"line",edge:"focus"});if(c_.isMoveBackward(r))return f_(r),void(o&&Yf.isCollapsed(o)?wd.move(n,{reverse:!0}):wd.collapse(n,{edge:"start"}));if(c_.isMoveForward(r))return f_(r),void(o&&Yf.isCollapsed(o)?wd.move(n):wd.collapse(n,{edge:"end"}));if(c_.isMoveWordBackward(r))return f_(r),o&&Yf.isExpanded(o)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word",reverse:!0});if(c_.isMoveWordForward(r))return f_(r),o&&Yf.isExpanded(o)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word"});if(c_.isSelectAll(r))return f_(r),void n.selectAll();if(ek){if((QO||XO)&&o&&(c_.isDeleteBackward(r)||c_.isDeleteForward(r))&&Yf.isCollapsed(o)){var i=Lf.parent(n,o.anchor.path);if(Af.isElement(i)&&_f.isVoid(n,i)&&_f.isInline(n,i))return r.preventDefault(),void wd.delete(n,{unit:"block"})}}else{if(c_.isBold(r)||c_.isItalic(r)||c_.isTransposeCharacter(r))return void f_(r);if(c_.isSplitBlock(r))return f_(r),void _f.insertBreak(n);if(c_.isDeleteBackward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"backward"}):_f.deleteBackward(n));if(c_.isDeleteForward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"forward"}):_f.deleteForward(n));if(c_.isDeleteLineBackward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"backward"}):_f.deleteBackward(n,{unit:"line"}));if(c_.isDeleteLineForward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"forward"}):_f.deleteForward(n,{unit:"line"}));if(c_.isDeleteWordBackward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"backward"}):_f.deleteBackward(n,{unit:"word"}));if(c_.isDeleteWordForward(r))return f_(r),void(o&&Yf.isExpanded(o)?_f.deleteFragment(n,{direction:"forward"}):_f.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!ek&&!n.getConfig().readOnly&&e_(n,e.target)){e.preventDefault();var r=e.key;_f.insertText(n,r)}},copy:function(e,t,n){var r=e;if(e_(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&e_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Yf.isExpanded(o))_f.deleteFragment(n);else{var a=Lf.parent(n,o.anchor.path);_f.isVoid(n,a)&&wd.delete(n)}}},paste:function(e,t,n){TO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&e_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void TO.set(n,!1);if(!ek||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(n_(n,e.target)){var r=tk.toSlateNode(n,e.target);_f.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(n_(n,r.target)&&!n.getConfig().readOnly){var o=tk.toSlateNode(n,r.target),i=tk.findPath(n,o);if(_f.isVoid(n,o)||_f.void(n,{at:i,voids:!0})){var a=_f.range(n,i);wd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&n_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&n_(n,r.target)&&null!=o&&!(ek&&XO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=tk.findEventRange(n,r);wd.select(n,a),t.isDraggingInternally&&(i&&wd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},p_=1,h_=function(){function e(e){var t=this;this.id=p_++,this.$textArea=null,this.$progressBar=$p('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=$p('<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=ng((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=tk.findDocumentOrShadowRoot(t),a=i.activeElement,u=tk.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,kO.set(t,!0)):kO.delete(t),!s)return wd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=e_(t,l)||t_(t,l),d=e_(t,c)||t_(t,c);if(f&&d){var p=tk.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});wd.select(t,p)}else wd.deselect(t)}}(t,e)}),100);var n=$p(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=$p('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=$p('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,QB((function(){var e=t.editorInstance,n=tk.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=sO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Mh(d_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ng((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-tk.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;qT(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=$p('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),QB((function(){r_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function g_(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&g_(t)}function v_(){return $p('<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 y_(){return $p('<div class="w-e-bar-divider"></div>')}function m_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=KO?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}LC("match",(function(e,t,n){return[function(t){var n=Dw(this),r=null==t?void 0:hE(t,e);return r?aE(r,t,n):new RegExp(t)[e](ES(n))},function(e){var r=oE(this),o=ES(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return KC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=KC(r,o));){var c=ES(u[0]);s[l]=c,""===c&&(r.lastIndex=MC(o,hD(r.lastIndex),a)),l++}return 0===l?null:s}]}));var b_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=$p('<div class="w-e-bar-item"></div>'),this.$button=$p('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=$p(c);g_(d),f.append(d)}else f.text(a);m_(f,c,a,s,n),n&&c&&f.append($p('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),QB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),__(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=__(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=__(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=__(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),w_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return iA(t,e),t.prototype.onButtonClick=function(){},t}(b_),E_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=hO.get(e);null==t&&(t=new Set,hO.set(e,t)),t.add(this),gO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=gO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=gO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),D_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=$p('<div class="w-e-drop-panel"></div>'),n}return iA(t,e),t.prototype.genSelfElem=function(){return null},t}(E_),S_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=v_();o.$button.append(i)}return o}return iA(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=__(this);if(null==this.dropPanel){var n=new D_(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(b_),x_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=$p('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return iA(t,e),t.prototype.genSelfElem=function(){var e=this,t=$p('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=gO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(E_);function C_(e,t,n){var r=$p('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=$p('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function A_(e,t){var n=$p('<div class="button-container"></div>'),r=$p('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var O_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=$p("body"),o.modal=null,o.menu=n,o}return iA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=__(this),t=this.menu.getModalPositionNode(e);return Af.isElement(t)?ST(e,t,"modal"):DT(e)},t.prototype.handleModal=function(){var e=__(this),t=this.menu;if(null==this.modal){var n=new x_(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=__(this),r=this.menu;if(null!=r.getModalContentElem){var o=tk.getTextarea(n),i=tk.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||xT(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(b_),k_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=$p('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return iA(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=$p("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=$p('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=$p('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append($p('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(E_),B_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=$p('<div class="w-e-bar-item"></div>'),this.$button=$p('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),m_(f,s,i,c,n),this.$elem.append(f),this.menu=t,QB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),__(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=__(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new k_(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=$p(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=__(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=__(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=v_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=__(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),F_=function(){function e(e){this.$elem=$p('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=$p('<div class="w-e-bar-item-menus-container"></div>'),this.$button=$p('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=$p(n);g_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=v_();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){$p(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),T_=new WeakMap;function __(e){var t=pO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function P_(e,t,n){void 0===n&&(n=!1);var r=T_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new S_(e,t,n):a?new O_(e,t,n):new w_(e,t,n)}if("select"===o&&(r=new B_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return T_.set(t,r),r}function j_(e,t){var n=e.selection;return null!=n&&!Yf.isCollapsed(n)&&!tk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!nd.isText(t)}var N_=function(){function e(){var e=this;this.$elem=$p('<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=Qv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Af.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),QB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),tk.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;QB((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=y_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=ok[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=P_(e,r);this.hoverbarItems.push(i),pO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Af.isElement(e)){var r=ST(t,e,"bar");return n.css(r),void xT(t,n)}if(nd.isText(e))return r=DT(t),n.css(r),void xT(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return tk.checkNodeType(t,o)},c=sA(_f.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=fO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=j_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=tk.findPath(null,e),r=tk.findPath(null,t);return $f.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function I_(e,t,n,r){if(wO.set(e,t),EO.set(e,n),Af.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return I_(t,n,e,r)})),_f.isVoid(r,e)){var i=sA(Lf.texts(e),1),a=sA(i[0],1)[0];wO.set(a,0),EO.set(a,e)}}}function L_(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];bS.withoutSaving(t,(()=>{_f.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];bS.withoutSaving(t,(()=>{_f.withoutNormalizing(t,(()=>{var e=r.map(zf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=bS.isSaving(t),c=bS.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!$f.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!$f.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=tk.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=tk.getLeftLengthOfMaxLength(t);n<=0||n<Lf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(tk.getLeftLengthOfMaxLength(t)<Lf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=tk.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===NO.TEXT_NODE?e+(t.textContent||""):n===NO.ELEMENT_NODE?GF.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=vT(t);if(r.on(e,n),"destroyed"===e&&mT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),mT(t,o)}},t.once=function(e,n){vT(t).once(e,n)},t.off=function(e,n){vT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=vT(t);o.emit.apply(o,lA([e],sA(n))),"destroyed"===e&&(bT(t).forEach((function(e){return o.off("destroyed",e)})),wT(t))},t}(function(e){var t=e;return t.select=function(e){wd.select(t,e)},t.deselect=function(){var n=t.selection,r=tk.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&wd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||wd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=BO.get(t);null!=e&&(t.focus(),wd.select(t,e))},t.getSelectionPosition=function(){return DT(t)},t.getNodePosition=function(e){return ST(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=sA(Yf.edges(e),2),r=n[0],o=n[1],i=sA(_f.edges(t,[]),2),a=i[0],u=i[1];return!(!Wf.equals(r,a)||!Wf.equals(o,u))},t.selectAll=function(){var e=_f.start(t,[]),n=_f.end(t,[]);wd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=uA(_f.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=sA(p.value,2),g=h[0],v=h[1],y=tk.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=uA(_f.levels(t,{at:$f.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=sA(b.value,2);g=w[0],v=w[1],y=tk.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=uA(_f.levels(t,{at:$f.common($f.parent(e.path),$f.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var S=sA(D.value,2);g=S[0],v=S[1],y=tk.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var x=uA(f),C=x.next();!C.done;C=x.next()){var A=sA(C.value,2);v=A[0],y=A[1],g=sA(_f.node(t,v),1)[0],AO.set(g,y)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Yf.isCollapsed(e.selection)){var r=_f.above(e,{match:function(t){return _f.isBlock(e,t)},at:e.selection});if(r){var o=sA(r,2)[1],a=_f.range(e,o,e.selection.anchor),u=function(e,t){var n=_f.range(e,Yf.end(t)),r=Array.from(_f.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(rF(e,_f.range(e,r[o]),n))return _f.range(e,r[o],n);if(r.length<2)return _f.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)rF(e,_f.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return _f.range(e,r[i],n)}(t,a);Yf.isCollapsed(u)||wd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&BO.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return eF(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Lf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":_f.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=_f.nodes(t,{at:[],universal:!0});try{for(var u=uA(a),s=u.next();!s.done;s=u.next()){var l=sA(s.value,1)[0];if(Af.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=tF(tk.findKey(t,l).id);i.push(aA(aA({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Af.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(nd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){wd.delete(t,{at:{anchor:_f.start(t,[]),focus:_f.end(t,[])}}),0===t.children.length&&wd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return tk.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===NO.TEXT_NODE||t===NO.ELEMENT_NODE&&!GF.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;tk.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==NO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(oF.includes(r.toLowerCase()))s=!0;else for(var l in uF)if(a.matches(l)){s=!0;break}if(s){var c=RF($p(a),t);return Array.isArray(c)?(c.forEach((function(e){return qF(t,e)})),u++):(qF(t,c),u++),void(tk.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;tk.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&tk.isEmptyPath(t,a)&&wd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=zF(t,e);if(wd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(_f.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in ok)e.push(t);return e},t.getConfig=function(){var e=vO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=KF(Kc());return t.id="wangEditor-"+nk++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(tk.toDOMNode(t,t).focus({preventScroll:!0}),kO.set(t,!0),e){var n=_f.end(t,[]);wd.select(t,n)}else{var r=BO.get(t);r?wd.select(t,r):wd.select(t,_f.start(t,[]))}},t.isFocused=function(){return!!kO.get(t)},t.blur=function(){tk.toDOMNode(t,t).blur(),wd.deselect(t),kO.set(t,!1)},t.updateView=function(){tk.getTextarea(t).changeViewState();var e=tk.getToolbar(t);e&&e.changeToolbarState();var n=tk.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=tk.getTextarea(t);e.destroy(),uO.delete(t),sO.delete(e);var n=tk.getToolbar(t);n&&(n.destroy(),cO.delete(t),lO.delete(n));var r=tk.getHoverbar(t);r&&(r.destroy(),dO.delete(t),fO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=$p("#"+e);if(0!==r.length){var o=r[0];if(!tk.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=tk.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||tk.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=hO.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return tk.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=tk.getToolbar(t);n&&(e=n.$box);var r=tk.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=tk.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return tk.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return MF(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=ey(rk),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Mh(t,(function(e,t){n[t]=aA(aA({},e),o[t]||{})})),delete e.MENU_CONF,aA({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);vO.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=zF(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),tk.normalizeContent(l),n){var p=new h_(n);uO.set(l,p),sO.set(p,l),p.changeViewState(),QB((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new N_,fO.set(h,l),dO.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return I_(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),QB((function(){return l.emit("created")})),l}var R_=uC("splice"),M_=fw.TypeError,z_=Math.max,$_=Math.min;dS({target:"Array",proto:!0,forced:!R_},{splice:function(e,t){var n,r,o,i,a,u,s=xw(this),l=gD(s),c=WD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=$_(z_(dD(t),0),l-c)),l+n-r>9007199254740991)throw M_("Maximum allowed length exceeded");for(o=OD(s,r),i=0;i<r;i++)(a=c+i)in s&&rx(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 H_=function(){function e(e,t){var n=this;this.$toolbar=$p('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Qv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=$p(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),QB((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=ey(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=y_();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new F_(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof F_,o=this.menus,i=o[e];if(null==i){var a=ok[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=P_(e,i,r);this.toolbarItems.push(u),pO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=lO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),V_=WE.EXISTS,U_=EE.f,W_=Function.prototype,G_=ww(W_.toString),q_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,K_=ww(q_.exec);function Y_(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,D=void 0===E?function(e,t){}:E,S=e.onError,x=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,C=e.onProgress,A=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=sA(e.split("#"),2),r=n[0],o=n[1],i=[];Mh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new jm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(iw,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{D(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{x(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{x(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function X_(e){return X_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X_(e)}function Z_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Z_(e,t,n[t])}))}return e}function Q_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tP(e,t,n){return t&&eP(e.prototype,t),n&&eP(e,n),e}function nP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rP(e,t){if(t&&("object"===X_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nP(e)}function oP(e){return oP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oP(e)}function iP(e,t){return iP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},iP(e,t)}function aP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iP(e,t)}Xw&&!V_&&U_(W_,"name",{configurable:!0,get:function(){try{return K_(q_,G_(this))[1]}catch(r){return""}}});var uP={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},sP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q_(this,e),this.init(t,n)}return tP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||uP,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,J_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),lP=function(){function e(){Q_(this,e),this.observers={}}return tP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function cP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function fP(e){return null==e?"":""+e}function dP(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function pP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function hP(e,t,n){var r=pP(e,t,Object);r.obj[r.k]=n}function gP(e,t){var n=pP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function vP(e,t,n){var r=gP(e,n);return void 0!==r?r:gP(t,n)}function yP(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):yP(e[r],t[r],n):e[r]=t[r]);return e}function mP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var bP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function wP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return bP[e]})):e}var EP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function DP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?DP(s,l,n):void 0}o=o[r[i]]}return o}}var SP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Q_(this,t),n=rP(this,oP(t).call(this)),EP&&lP.call(nP(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return aP(t,lP),tP(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=gP(this.data,a);return u||!i||"string"!=typeof n?u:DP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),hP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=gP(this.data,a)||{};r?yP(u,n,o):u=J_({},u,n),hP(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?J_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),xP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},CP={},AP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q_(this,t),n=rP(this,oP(t).call(this)),EP&&lP.call(nP(n)),dP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,nP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=sP.create("translator"),n}return aP(t,lP),tP(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==X_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,J_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,S=D?[]:{},x=D?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var A="".concat(x).concat(i).concat(C);S[C]=this.translate(A,J_({},n,{joinArrays:!1,ns:s})),S[C]===A&&(S[C]=h[C])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,J_({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(J_({},n,{interpolation:J_({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=J_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=xP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?J_({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!CP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(CP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function OP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kP=function(){function e(t){Q_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sP.create("languageUtils")}return tP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OP(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=OP(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),BP=[{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}],FP={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function TP(){var e={};return BP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:FP[t.fc]}}))})),e}var _P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q_(this,e),this.languageUtils=t,this.options=n,this.logger=sP.create("pluralResolver"),this.rules=TP()}return tP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),PP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Q_(this,e),this.logger=sP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return tP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:wP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?mP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?mP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?mP(t.nestingPrefix):t.nestingPrefixEscaped||mP("$t("),this.nestingSuffix=t.nestingSuffix?mP(t.nestingSuffix):t.nestingSuffixEscaped||mP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=vP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,J_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(vP(t,s,a),l,n,J_({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=fP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=J_({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=J_({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=fP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,J_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),jP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Q_(this,t),o=rP(this,oP(t).call(this)),EP&&lP.call(nP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=sP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return aP(t,lP),tP(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=pP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,J_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function NP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===X_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===X_(e[2])||"object"===X_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function IP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function LP(){}var RP=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Q_(this,t),e=rP(this,oP(t).call(this)),EP&&lP.call(nP(e)),e.options=IP(n),e.services={},e.logger=sP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),rP(e,nP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return aP(t,lP),tP(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=J_({},NP(),this.options,IP(t)),this.format=this.options.interpolation.format,n||(n=LP),!this.options.isClone){this.modules.logger?sP.init(r(this.modules.logger),this.options):sP.init(null,this.options);var o=new kP(this.options);this.store=new SP(this.options.resources,this.options);var i=this.services;i.logger=sP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new _P(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new PP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new jP(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new AP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=cP(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:LP,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=cP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=LP),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&xP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=cP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==X_(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=J_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=cP();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=cP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:LP,o=J_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=J_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new AP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),MP=new RP;function zP(e,t){MP.addResourceBundle(e,"translation",t,!0,!0)}MP.init({lng:"zh-CN",resources:{}});var $P=MP.t.bind(MP);zP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),zP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var HP=ra?{}.toString:function(){return"[object "+ua(this)+"]"};ra||xi(Object.prototype,"toString",HP,{unsafe:!0});var VP=Array.isArray||function(e){return"Array"==Wr(e)},UP=function(){},WP=[],GP=to("Reflect","construct"),qP=/^\s*(?:class|function)\b/,KP=Hr(qP.exec),YP=!qP.exec(UP),XP=function(e){if(!Jr(e))return!1;try{return GP(UP,WP,e),!0}catch(e){return!1}},ZP=!GP||Br((function(){var e;return XP(XP.call)||!XP(Object)||!XP((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(ua(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YP||!!KP(qP,ai(e))}:XP,JP=Io("species"),QP=kr.Array,ej=function(e,t){return new(function(e){var t;return VP(e)&&(t=e.constructor,(ZP(t)&&(t===QP||VP(t.prototype))||Qr(t)&&null===(t=t[JP]))&&(t=void 0)),void 0===t?QP:t}(e))(0===t?0:t)},tj=Hr([].push),nj=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Co(s),g=Kr(h),v=wu(l,c),y=Pi(g),m=0,b=f||ej,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tj(w,d)}else switch(e){case 4:return!1;case 7:tj(w,d)}return i?-1:r||o?o:w}},rj={forEach:nj(0),map:nj(1),filter:nj(2),some:nj(3),every:nj(4),find:nj(5),findIndex:nj(6),filterReject:nj(7)}.forEach,oj=function(e,t){var n=[][e];return!!n&&Br((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),ij=oj?[].forEach:function(e){return rj(this,e,arguments.length>1?arguments[1]:void 0)},aj=function(e){if(e&&e.forEach!==ij)try{ti(e,"forEach",ij)}catch(o){e.forEach=ij}};for(var uj in hs)hs[uj]&&aj(kr[uj]&&kr[uj].prototype);aj(ys),zP("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"}}),zP("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 sj={type:"paragraph",renderElem:function(e,t,n){return Ng("p",null,t)}},lj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function cj(e){var t={exports:{}};return e(t,t.exports),t.exports}var fj,dj,pj=function(e){return e&&e.Math==Math&&e},hj=pj("object"==typeof globalThis&&globalThis)||pj("object"==typeof window&&window)||pj("object"==typeof self&&self)||pj("object"==typeof lj&&lj)||function(){return this}()||Function("return this")(),gj=function(e){try{return!!e()}catch(e){return!0}},vj=!gj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yj=Function.prototype.call,mj=yj.bind?yj.bind(yj):function(){return yj.apply(yj,arguments)},bj={}.propertyIsEnumerable,wj=Object.getOwnPropertyDescriptor,Ej=wj&&!bj.call({1:2},1)?function(e){var t=wj(this,e);return!!t&&t.enumerable}:bj,Dj={f:Ej},Sj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xj=Function.prototype,Cj=xj.bind,Aj=xj.call,Oj=Cj&&Cj.bind(Aj),kj=Cj?function(e){return e&&Oj(Aj,e)}:function(e){return e&&function(){return Aj.apply(e,arguments)}},Bj=kj({}.toString),Fj=kj("".slice),Tj=function(e){return Fj(Bj(e),8,-1)},_j=hj.Object,Pj=kj("".split),jj=gj((function(){return!_j("z").propertyIsEnumerable(0)}))?function(e){return"String"==Tj(e)?Pj(e,""):_j(e)}:_j,Nj=hj.TypeError,Ij=function(e){if(null==e)throw Nj("Can't call method on "+e);return e},Lj=function(e){return jj(Ij(e))},Rj=function(e){return"function"==typeof e},Mj=function(e){return"object"==typeof e?null!==e:Rj(e)},zj=function(e){return Rj(e)?e:void 0},$j=function(e,t){return arguments.length<2?zj(hj[e]):hj[e]&&hj[e][t]},Hj=kj({}.isPrototypeOf),Vj=$j("navigator","userAgent")||"",Uj=hj.process,Wj=hj.Deno,Gj=Uj&&Uj.versions||Wj&&Wj.version,qj=Gj&&Gj.v8;qj&&(dj=(fj=qj.split("."))[0]>0&&fj[0]<4?1:+(fj[0]+fj[1])),!dj&&Vj&&(!(fj=Vj.match(/Edge\/(\d+)/))||fj[1]>=74)&&(fj=Vj.match(/Chrome\/(\d+)/))&&(dj=+fj[1]);var Kj=dj,Yj=!!Object.getOwnPropertySymbols&&!gj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Kj&&Kj<41})),Xj=Yj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zj=hj.Object,Jj=Xj?function(e){return"symbol"==typeof e}:function(e){var t=$j("Symbol");return Rj(t)&&Hj(t.prototype,Zj(e))},Qj=hj.String,eN=function(e){try{return Qj(e)}catch(e){return"Object"}},tN=hj.TypeError,nN=function(e){if(Rj(e))return e;throw tN(eN(e)+" is not a function")},rN=function(e,t){var n=e[t];return null==n?void 0:nN(n)},oN=hj.TypeError,iN=Object.defineProperty,aN=function(e,t){try{iN(hj,e,{value:t,configurable:!0,writable:!0})}catch(i){hj[e]=t}return t},uN=hj["__core-js_shared__"]||aN("__core-js_shared__",{}),sN=cj((function(e){(e.exports=function(e,t){return uN[e]||(uN[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),lN=hj.Object,cN=function(e){return lN(Ij(e))},fN=kj({}.hasOwnProperty),dN=Object.hasOwn||function(e,t){return fN(cN(e),t)},pN=0,hN=Math.random(),gN=kj(1..toString),vN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+gN(++pN+hN,36)},yN=sN("wks"),mN=hj.Symbol,bN=mN&&mN.for,wN=Xj?mN:mN&&mN.withoutSetter||vN,EN=function(e){if(!dN(yN,e)||!Yj&&"string"!=typeof yN[e]){var t="Symbol."+e;Yj&&dN(mN,e)?yN[e]=mN[e]:yN[e]=Xj&&bN?bN(t):wN(t)}return yN[e]},DN=hj.TypeError,SN=EN("toPrimitive"),xN=function(e){var t=function(e,t){if(!Mj(e)||Jj(e))return e;var n,r=rN(e,SN);if(r){if(void 0===t&&(t="default"),n=mj(r,e,t),!Mj(n)||Jj(n))return n;throw DN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Rj(n=e.toString)&&!Mj(r=mj(n,e)))return r;if(Rj(n=e.valueOf)&&!Mj(r=mj(n,e)))return r;if("string"!==t&&Rj(n=e.toString)&&!Mj(r=mj(n,e)))return r;throw oN("Can't convert object to primitive value")}(e,t)}(e,"string");return Jj(t)?t:t+""},CN=hj.document,AN=Mj(CN)&&Mj(CN.createElement),ON=function(e){return AN?CN.createElement(e):{}},kN=!vj&&!gj((function(){return 7!=Object.defineProperty(ON("div"),"a",{get:function(){return 7}}).a})),BN=Object.getOwnPropertyDescriptor,FN={f:vj?BN:function(e,t){if(e=Lj(e),t=xN(t),kN)try{return BN(e,t)}catch(e){}if(dN(e,t))return Sj(!mj(Dj.f,e,t),e[t])}},TN=hj.String,_N=hj.TypeError,PN=function(e){if(Mj(e))return e;throw _N(TN(e)+" is not an object")},jN=hj.TypeError,NN=Object.defineProperty,IN={f:vj?NN:function(e,t,n){if(PN(e),t=xN(t),PN(n),kN)try{return NN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw jN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},LN=vj?function(e,t,n){return IN.f(e,t,Sj(1,n))}:function(e,t,n){return e[t]=n,e},RN=kj(Function.toString);Rj(uN.inspectSource)||(uN.inspectSource=function(e){return RN(e)});var MN,zN,$N,HN=uN.inspectSource,VN=hj.WeakMap,UN=Rj(VN)&&/native code/.test(HN(VN)),WN=sN("keys"),GN=function(e){return WN[e]||(WN[e]=vN(e))},qN={},KN=hj.TypeError,YN=hj.WeakMap;if(UN||uN.state){var XN=uN.state||(uN.state=new YN),ZN=kj(XN.get),JN=kj(XN.has),QN=kj(XN.set);MN=function(e,t){if(JN(XN,e))throw new KN("Object already initialized");return t.facade=e,QN(XN,e,t),t},zN=function(e){return ZN(XN,e)||{}},$N=function(e){return JN(XN,e)}}else{var eI=GN("state");qN[eI]=!0,MN=function(e,t){if(dN(e,eI))throw new KN("Object already initialized");return t.facade=e,LN(e,eI,t),t},zN=function(e){return dN(e,eI)?e[eI]:{}},$N=function(e){return dN(e,eI)}}var tI={set:MN,get:zN,has:$N,enforce:function(e){return $N(e)?zN(e):MN(e,{})},getterFor:function(e){return function(t){var n;if(!Mj(t)||(n=zN(t)).type!==e)throw KN("Incompatible receiver, "+e+" required");return n}}},nI=Function.prototype,rI=vj&&Object.getOwnPropertyDescriptor,oI=dN(nI,"name"),iI={EXISTS:oI,PROPER:oI&&"something"===function(){}.name,CONFIGURABLE:oI&&(!vj||vj&&rI(nI,"name").configurable)},aI=cj((function(e){var t=iI.CONFIGURABLE,n=tI.get,r=tI.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Rj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!dN(i,"name")||t&&i.name!==f)&&LN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==hj?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:LN(e,n,i)):l?e[n]=i:aN(n,i)})(Function.prototype,"toString",(function(){return Rj(this)&&n(this).source||HN(this)}))})),uI=Math.ceil,sI=Math.floor,lI=function(e){var t=+e;return t!=t||0===t?0:(t>0?sI:uI)(t)},cI=Math.max,fI=Math.min,dI=function(e,t){var n=lI(e);return n<0?cI(n+t,0):fI(n,t)},pI=Math.min,hI=function(e){return e>0?pI(lI(e),9007199254740991):0},gI=function(e){return hI(e.length)},vI=function(e){return function(t,n,r){var o,i=Lj(t),a=gI(i),u=dI(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},yI={includes:vI(!0),indexOf:vI(!1)},mI=yI.indexOf,bI=kj([].push),wI=function(e,t){var n,r=Lj(e),o=0,i=[];for(n in r)!dN(qN,n)&&dN(r,n)&&bI(i,n);for(;t.length>o;)dN(r,n=t[o++])&&(~mI(i,n)||bI(i,n));return i},EI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],DI=EI.concat("length","prototype"),SI={f:Object.getOwnPropertyNames||function(e){return wI(e,DI)}},xI={f:Object.getOwnPropertySymbols},CI=kj([].concat),AI=$j("Reflect","ownKeys")||function(e){var t=SI.f(PN(e)),n=xI.f;return n?CI(t,n(e)):t},OI=function(e,t){for(var n=AI(t),r=IN.f,o=FN.f,i=0;i<n.length;i++){var a=n[i];dN(e,a)||r(e,a,o(t,a))}},kI=/#|\.prototype\./,BI=function(e,t){var n=TI[FI(e)];return n==PI||n!=_I&&(Rj(t)?gj(t):!!t)},FI=BI.normalize=function(e){return String(e).replace(kI,".").toLowerCase()},TI=BI.data={},_I=BI.NATIVE="N",PI=BI.POLYFILL="P",jI=BI,NI=FN.f,II=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?hj:l?hj[u]||aN(u,{}):(hj[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=NI(n,r))&&a.value:n[r],!jI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;OI(i,o)}(e.sham||o&&o.sham)&&LN(i,"sham",!0),aI(n,r,i,e)}},LI=kj(kj.bind),RI=Array.isArray||function(e){return"Array"==Tj(e)},MI={};MI[EN("toStringTag")]="z";var zI="[object z]"===String(MI),$I=EN("toStringTag"),HI=hj.Object,VI="Arguments"==Tj(function(){return arguments}()),UI=zI?Tj:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=HI(e),$I))?n:VI?Tj(t):"Object"==(r=Tj(t))&&Rj(t.callee)?"Arguments":r},WI=function(){},GI=[],qI=$j("Reflect","construct"),KI=/^\s*(?:class|function)\b/,YI=kj(KI.exec),XI=!KI.exec(WI),ZI=function(e){if(!Rj(e))return!1;try{return qI(WI,GI,e),!0}catch(e){return!1}},JI=!qI||gj((function(){var e;return ZI(ZI.call)||!ZI(Object)||!ZI((function(){e=!0}))||e}))?function(e){if(!Rj(e))return!1;switch(UI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XI||!!YI(KI,HN(e))}:ZI,QI=EN("species"),eL=hj.Array,tL=function(e,t){return new(function(e){var t;return RI(e)&&(t=e.constructor,(JI(t)&&(t===eL||RI(t.prototype))||Mj(t)&&null===(t=t[QI]))&&(t=void 0)),void 0===t?eL:t}(e))(0===t?0:t)},nL=kj([].push),rL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=cN(s),g=jj(h),v=function(e,t){return nN(e),void 0===t?e:LI?LI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=gI(g),m=0,b=f||tL,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nL(w,d)}else switch(e){case 4:return!1;case 7:nL(w,d)}return i?-1:r||o?o:w}},oL={forEach:rL(0),map:rL(1),filter:rL(2),some:rL(3),every:rL(4),find:rL(5),findIndex:rL(6),filterReject:rL(7)},iL=EN("species"),aL=function(e){return Kj>=51||!gj((function(){var t=[];return(t.constructor={})[iL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},uL=oL.filter;II({target:"Array",proto:!0,forced:!aL("filter")},{filter:function(e){return uL(this,e,arguments.length>1?arguments[1]:void 0)}});var sL=zI?{}.toString:function(){return"[object "+UI(this)+"]"};zI||aI(Object.prototype,"toString",sL,{unsafe:!0});var lL,cL=hj.String,fL=function(e){if("Symbol"===UI(e))throw TypeError("Cannot convert a Symbol value to a string");return cL(e)},dL=function(){var e=PN(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},pL=hj.RegExp,hL=gj((function(){var e=pL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),gL=hL||gj((function(){return!pL("a","y").sticky})),vL={BROKEN_CARET:hL||gj((function(){var e=pL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:gL,UNSUPPORTED_Y:hL},yL=Object.keys||function(e){return wI(e,EI)},mL=vj?Object.defineProperties:function(e,t){PN(e);for(var n,r=Lj(t),o=yL(t),i=o.length,a=0;i>a;)IN.f(e,n=o[a++],r[n]);return e},bL=$j("document","documentElement"),wL=GN("IE_PROTO"),EL=function(){},DL=function(e){return"<script>"+e+"<\/script>"},SL=function(e){e.write(DL("")),e.close();var t=e.parentWindow.Object;return e=null,t},xL=function(){try{lL=new ActiveXObject("htmlfile")}catch(e){}var e,t;xL="undefined"!=typeof document?document.domain&&lL?SL(lL):((t=ON("iframe")).style.display="none",bL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(DL("document.F=Object")),e.close(),e.F):SL(lL);for(var n=EI.length;n--;)delete xL.prototype[EI[n]];return xL()};qN[wL]=!0;var CL,AL,OL=Object.create||function(e,t){var n;return null!==e?(EL.prototype=PN(e),n=new EL,EL.prototype=null,n[wL]=e):n=xL(),void 0===t?n:mL(n,t)},kL=hj.RegExp,BL=gj((function(){var e=kL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),FL=hj.RegExp,TL=gj((function(){var e=FL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),_L=tI.get,PL=sN("native-string-replace",String.prototype.replace),jL=RegExp.prototype.exec,NL=jL,IL=kj("".charAt),LL=kj("".indexOf),RL=kj("".replace),ML=kj("".slice),zL=(AL=/b*/g,mj(jL,CL=/a/,"a"),mj(jL,AL,"a"),0!==CL.lastIndex||0!==AL.lastIndex),$L=vL.BROKEN_CARET,HL=void 0!==/()??/.exec("")[1];(zL||HL||$L||BL||TL)&&(NL=function(e){var t,n,r,o,i,a,u,s=this,l=_L(s),c=fL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mj(NL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=$L&&s.sticky,h=mj(dL,s),g=s.source,v=0,y=c;if(p&&(h=RL(h,"y",""),-1===LL(h,"g")&&(h+="g"),y=ML(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==IL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),HL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),zL&&(r=s.lastIndex),o=mj(jL,p?n:s,y),p?o?(o.input=ML(o.input,v),o[0]=ML(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:zL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),HL&&o&&o.length>1&&mj(PL,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=OL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var VL=NL;II({target:"RegExp",proto:!0,forced:/./.exec!==VL},{exec:VL});var UL=Function.prototype,WL=UL.apply,GL=UL.bind,qL=UL.call,KL="object"==typeof Reflect&&Reflect.apply||(GL?qL.bind(WL):function(){return qL.apply(WL,arguments)}),YL=EN("species"),XL=RegExp.prototype,ZL=function(e,t,n,r){var o=EN(e),i=!gj((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[YL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=kj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=kj(e),s=t.exec;return s===VL||s===XL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));aI(String.prototype,e,s[0]),aI(XL,o,s[1])}r&&LN(XL[o],"sham",!0)},JL=kj("".charAt),QL=kj("".charCodeAt),eR=kj("".slice),tR=function(e){return function(t,n){var r,o,i=fL(Ij(t)),a=lI(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=QL(i,a))<55296||r>56319||a+1===u||(o=QL(i,a+1))<56320||o>57343?e?JL(i,a):r:e?eR(i,a,a+2):o-56320+(r-55296<<10)+65536}},nR=(tR(!1),tR(!0)),rR=function(e,t,n){return t+(n?nR(e,t).length:1)},oR=Math.floor,iR=kj("".charAt),aR=kj("".replace),uR=kj("".slice),sR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lR=/\$([$&'`]|\d{1,2})/g,cR=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=lR;return void 0!==o&&(o=cN(o),s=sR),aR(i,s,(function(i,s){var l;switch(iR(s,0)){case"$":return"$";case"&":return e;case"`":return uR(t,0,n);case"'":return uR(t,a);case"<":l=o[uR(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=oR(c/10);return 0===f?i:f<=u?void 0===r[f-1]?iR(s,1):r[f-1]+iR(s,1):i}l=r[c-1]}return void 0===l?"":l}))},fR=hj.TypeError,dR=function(e,t){var n=e.exec;if(Rj(n)){var r=mj(n,e,t);return null!==r&&PN(r),r}if("RegExp"===Tj(e))return mj(VL,e,t);throw fR("RegExp#exec called on incompatible receiver")},pR=EN("replace"),hR=Math.max,gR=Math.min,vR=kj([].concat),yR=kj([].push),mR=kj("".indexOf),bR=kj("".slice),wR="$0"==="a".replace(/./,"$0"),ER=!!/./[pR]&&""===/./[pR]("a","$0");ZL("replace",(function(e,t,n){var r=ER?"$":"$0";return[function(e,n){var r=Ij(this),o=null==e?void 0:rN(e,pR);return o?mj(o,e,r,n):mj(t,fL(r),e,n)},function(e,o){var i=PN(this),a=fL(e);if("string"==typeof o&&-1===mR(o,r)&&-1===mR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Rj(o);s||(o=fL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=dR(i,a);if(null===d)break;if(yR(f,d),!l)break;""===fL(d[0])&&(i.lastIndex=rR(a,hI(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=fL((d=f[v])[0]),m=hR(gR(lI(d.index),a.length),0),b=[],w=1;w<d.length;w++)yR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=vR([y],b,m,a);void 0!==E&&yR(D,E);var S=fL(KL(o,void 0,D))}else S=cR(y,a,m,b,E,o);m>=g&&(h+=bR(a,g,m)+S,g=m+y.length)}return h+bR(a,g)}]}),!!gj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!wR||ER);var DR=EN("unscopables"),SR=Array.prototype;null==SR[DR]&&IN.f(SR,DR,{configurable:!0,value:OL(null)});var xR=function(e){SR[DR][e]=!0},CR=oL.find,AR=!0;"find"in[]&&Array(1).find((function(){AR=!1})),II({target:"Array",proto:!0,forced:AR},{find:function(e){return CR(this,e,arguments.length>1?arguments[1]:void 0)}}),xR("find");var OR=EN("match"),kR=function(e){var t;return Mj(e)&&(void 0!==(t=e[OR])?!!t:"RegExp"==Tj(e))},BR=hj.TypeError,FR=EN("species"),TR=function(e,t,n){var r=xN(t);r in e?IN.f(e,r,Sj(0,n)):e[r]=n},_R=hj.Array,PR=Math.max,jR=function(e,t,n){for(var r=gI(e),o=dI(t,r),i=dI(void 0===n?r:n,r),a=_R(PR(i-o,0)),u=0;o<i;o++,u++)TR(a,u,e[o]);return a.length=u,a},NR=vL.UNSUPPORTED_Y,IR=Math.min,LR=[].push,RR=kj(/./.exec),MR=kj(LR),zR=kj("".slice);ZL("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=fL(Ij(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!kR(e))return mj(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=mj(VL,f,r))&&!((a=f.lastIndex)>c&&(MR(s,zR(r,c,i.index)),i.length>1&&i.index<r.length&&KL(LR,s,jR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&RR(f,"")||MR(s,""):MR(s,zR(r,c)),s.length>o?jR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:mj(t,this,e,n)}:t,[function(t,n){var o=Ij(this),i=null==t?void 0:rN(t,e);return i?mj(i,t,o,n):mj(r,fL(o),t,n)},function(e,o){var i=PN(this),a=fL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=PN(e).constructor;return void 0===r||null==(n=PN(r)[FR])?t:function(e){if(JI(e))return e;throw BR(eN(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(NR?"g":"y"),f=new s(NR?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===dR(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=NR?0:h;var v,y=dR(f,NR?zR(a,h):a);if(null===y||(v=IR(hI(f.lastIndex+(NR?h:0)),a.length))===p)h=rR(a,h,l);else{if(MR(g,zR(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(MR(g,y[m]),g.length===d)return g;h=p=v}}return MR(g,zR(a,p)),g}]}),!!gj((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),NR);var $R="\t\n\v\f\r \u2028\u2029\ufeff",HR=kj("".replace),VR="["+$R+"]",UR=RegExp("^"+VR+VR+"*"),WR=RegExp(VR+VR+"*$"),GR=function(e){return function(t){var n=fL(Ij(t));return 1&e&&(n=HR(n,UR,"")),2&e&&(n=HR(n,WR,"")),n}},qR={start:GR(1),end:GR(2),trim:GR(3)},KR=iI.PROPER,YR=qR.trim;function XR(e){return 0===$p("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function ZR(e){return 0===e.length?"":e[0].outerHTML}function JR(e){return e.length?e[0].tagName.toLowerCase():""}function QR(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}II({target:"String",proto:!0,forced:gj((function(){return!!$R.trim()||"
"!=="
".trim()||KR&&"trim"!==$R.trim.name}))},{trim:function(){return YR(this)}}),II({global:!0},{globalThis:hj}),nh&&($p.fn.css=nh),sh&&($p.fn.append=sh),lh&&($p.fn.prepend=lh),Hp&&($p.fn.addClass=Hp),Vp&&($p.fn.removeClass=Vp),Up&&($p.fn.hasClass=Up),Yp&&($p.fn.on=Yp),Xp&&($p.fn.off=Xp),bh&&($p.fn.focus=bh),Wp&&($p.fn.attr=Wp),Gp&&($p.fn.removeAttr=Gp),eh&&($p.fn.hide=eh),th&&($p.fn.show=th),fh&&($p.fn.parents=fh),qp&&($p.fn.dataset=qp),Kp&&($p.fn.val=Kp),ah&&($p.fn.text=ah),ih&&($p.fn.html=ih),ph&&($p.fn.children=ph),hh&&($p.fn.remove=hh),dh&&($p.fn.find=dh),Zp&&($p.fn.width=Zp),Jp&&($p.fn.height=Jp),oh&&($p.fn.filter=oh),gh&&($p.fn.empty=gh);var eM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},tM=function(e,t){return tM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},tM(e,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 nM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rM=function(){return rM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rM.apply(this,arguments)};function oM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function iM(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function aM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function uM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function sM(e){var t=uM(_f.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Af.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Lf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!nd.isText(o[0])&&(wd.setNodes(e,{type:"paragraph"}),!0)}var lM={renderElems:[sj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[eM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){sM(r)||t(e)},r.deleteForward=function(e){sM(r)||n(e)},r}},cM=/"/g,fM=kj("".replace),dM=function(e,t,n,r){var o=fL(Ij(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+fM(fL(r),cM,""")+'"'),i+">"+o+"</"+t+">"},pM=function(e){return gj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function hM(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function gM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}II({target:"String",proto:!0,forced:pM("bold")},{bold:function(){return dM(this,"b","","")}}),II({target:"String",proto:!0,forced:pM("italics")},{italics:function(){return dM(this,"i","","")}}),II({target:"String",proto:!0,forced:pM("sub")},{sub:function(){return dM(this,"sub","","")}}),II({target:"String",proto:!0,forced:pM("sup")},{sup:function(){return dM(this,"sup","","")}});var vM={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},yM=ON("span").classList,mM=yM&&yM.constructor&&yM.constructor.prototype,bM=mM===Object.prototype?void 0:mM,wM=function(e,t){var n=[][e];return!!n&&gj((function(){n.call(null,t||function(){throw 1},1)}))},EM=oL.forEach,DM=wM("forEach")?[].forEach:function(e){return EM(this,e,arguments.length>1?arguments[1]:void 0)},SM=function(e){if(e&&e.forEach!==DM)try{LN(e,"forEach",DM)}catch(o){e.forEach=DM}};for(var xM in vM)vM[xM]&&SM(hj[xM]&&hj[xM].prototype);function CM(e,t){return null==e.selection||!!uM(_f.nodes(e,{match:function(t){return"pre"===tk.getNodeType(t)||!!_f.isVoid(e,t)},universal:!0}),1)[0]}function AM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&_f.removeMark(e,t)}))}SM(bM),II({target:"Object",stat:!0,forced:gj((function(){yL(1)}))},{keys:function(e){return yL(cN(e))}});var OM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=_f.marks(e);return n?n[t]:!!uM(_f.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return CM(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),kM='<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>',BM='<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>',FM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',TM='<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>',_M='<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>',PM='<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>',jM='<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>',NM='<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>',IM='<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>',LM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',RM='<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>',MM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',$M='<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>',HM='<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>',VM='<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>',UM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',WM='<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>',GM='<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>',qM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=$P("textStyle.bold"),t.iconSvg=kM,t.hotkey="mod+b",t}return nM(t,e),t}(OM),KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=$P("textStyle.code"),t.iconSvg=_M,t.hotkey="mod+e",t}return nM(t,e),t}(OM),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=$P("textStyle.italic"),t.iconSvg=FM,t.hotkey="mod+i",t}return nM(t,e),t}(OM),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=$P("textStyle.through"),t.iconSvg=TM,t.hotkey="mod+shift+x",t}return nM(t,e),t}(OM),ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=$P("textStyle.underline"),t.iconSvg=BM,t.hotkey="mod+u",t}return nM(t,e),t}(OM),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=$P("textStyle.sub"),t.iconSvg=GM,t.hotkey="",t}return nM(t,e),t}(OM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=$P("textStyle.sup"),t.iconSvg=WM,t.hotkey="",t}return nM(t,e),t}(OM),ez=function(){function e(){this.title=$P("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return CM(e)},e.prototype.exec=function(e,t){var n,r,o=_f.nodes(e,{match:function(e){return nd.isText(e)},universal:!0});try{for(var i=aM(o),a=i.next();!a.done;a=i.next())AM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),tz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Ng("strong",null,c)),a&&(c=Ng("code",null,c)),o&&(c=Ng("em",null,c)),i&&(c=Ng("u",null,c)),u&&(c=Ng("s",null,c)),s&&(c=Ng("sub",null,c)),l&&(c=Ng("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new qM}},{key:"underline",factory:function(){return new ZM}},{key:"italic",factory:function(){return new YM}},{key:"through",factory:function(){return new XM}},{key:"code",factory:function(){return new KM}},{key:"sub",factory:function(){return new JM}},{key:"sup",factory:function(){return new QM}},{key:"clearStyle",factory:function(){return new ez}}],styleToHtml:function(e,t){if(!nd.isText(e))return t;if(XR(t))return hM(e,t);var n=$p(t);if("br"===JR(n))return hM(e,"<br>");var r=n.html();return r=hM(e,r),n.html(r),ZR(n)},parseStyleHtml:function(e,t,n){var r=$p(e);if(!nd.isText(t))return t;var o=t;return gM(r,"b,strong")&&(o.bold=!0),gM(r,"i,em")&&(o.italic=!0),gM(r,"u")&&(o.underline=!0),gM(r,"s,strike")&&(o.through=!0),gM(r,"sub")&&(o.sub=!0),gM(r,"sup")&&(o.sup=!0),gM(r,"code")&&(o.code=!0),o}};function nz(e){return function(t,n,r){return Ng("h"+e,null,n)}}var rz={type:"header1",renderElem:nz(1)},oz={type:"header2",renderElem:nz(2)},iz={type:"header3",renderElem:nz(3)},az={type:"header4",renderElem:nz(4)},uz={type:"header5",renderElem:nz(5)},sz=iI.PROPER,lz=RegExp.prototype,cz=lz.toString,fz=kj(dL),dz=gj((function(){return"/a/b"!=cz.call({source:"a",flags:"b"})})),pz=sz&&"toString"!=cz.name;(dz||pz)&&aI(RegExp.prototype,"toString",(function(){var e=PN(this),t=fL(e.source),n=e.flags;return"/"+t+"/"+fL(void 0===n&&Hj(lz,e)&&!("flags"in lz)?fz(e):n)}),{unsafe:!0});var hz,gz=hj.TypeError,vz=function(e){if(kR(e))throw gz("The method doesn't accept regular expressions");return e},yz=EN("match"),mz=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[yz]=!1,"/./"[e](t)}catch(e){}}return!1},bz=FN.f,wz=kj("".startsWith),Ez=kj("".slice),Dz=Math.min,Sz=mz("startsWith");function xz(e){var t=uM(_f.nodes(e,{match:function(e){return tk.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=uM(n,1)[0];return tk.getNodeType(r)}function Cz(e){return null==e.selection||!uM(_f.nodes(e,{match:function(e){var t=tk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Az(e,t){t&&wd.setNodes(e,{type:t})}II({target:"String",proto:!0,forced:!(!Sz&&(hz=bz(String.prototype,"startsWith"),hz&&!hz.writable)||Sz)},{startsWith:function(e){var t=fL(Ij(this));vz(e);var n=hI(Dz(arguments.length>1?arguments[1]:void 0,t.length)),r=fL(e);return wz?wz(t,r,n):Ez(t,n,n+r.length)===r}});var Oz=function(){function e(){this.title=$P("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:$P("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return xz(e)},e.prototype.isDisabled=function(e){return Cz(e)},e.prototype.exec=function(e,t){Az(e,t.toString())},e}(),kz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return xz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return Cz(e)},e.prototype.exec=function(e,t){var n=this.type;Az(e,t===n?"paragraph":n)},e}(),Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return nM(t,e),t}(kz),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return nM(t,e),t}(kz),Tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return nM(t,e),t}(kz),_z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return nM(t,e),t}(kz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return nM(t,e),t}(kz),jz={key:"headerSelect",factory:function(){return new Oz}},Nz={key:"header1",factory:function(){return new Bz}},Iz={key:"header2",factory:function(){return new Fz}},Lz={key:"header3",factory:function(){return new Tz}},Rz={key:"header4",factory:function(){return new _z}},Mz={key:"header5",factory:function(){return new Pz}};function zz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function $z(e){return function(t,n,r){var o=$p(t);return 0===(n=n.filter((function(e){return!!nd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Hz={renderElems:[rz,oz,iz,az,uz],elemsToHtml:[{type:"header1",elemToHtml:zz(1)},{type:"header2",elemToHtml:zz(2)},{type:"header3",elemToHtml:zz(3)},{type:"header4",elemToHtml:zz(4)},{type:"header5",elemToHtml:zz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:$z(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:$z(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:$z(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:$z(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:$z(5)}],menus:[jz,Nz,Iz,Lz,Rz,Mz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=uM(_f.nodes(n,{match:function(e){return tk.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&tk.isSelectionAtLineEnd(e,r[1])?wd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Vz=Object.assign,Uz=Object.defineProperty,Wz=kj([].concat),Gz=!Vz||gj((function(){if(vj&&1!==Vz({b:1},Vz(Uz({},"a",{enumerable:!0,get:function(){Uz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Vz({},e)[n]||yL(Vz({},t)).join("")!=r}))?function(e,t){for(var n=cN(e),r=arguments.length,o=1,i=xI.f,a=Dj.f;r>o;)for(var u,s=jj(arguments[o++]),l=i?Wz(yL(s),i(s)):yL(s),c=l.length,f=0;c>f;)u=l[f++],vj&&!mj(a,s,u)||(n[u]=s[u]);return n}:Vz;function qz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}II({target:"Object",stat:!0,forced:Object.assign!==Gz},{assign:Gz});var Kz={selector:"font",preParseHtml:function(e){var t=$p(e);if("font"!==JR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Yz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=_f.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!uM(_f.nodes(e,{match:function(t){return"pre"===tk.getNodeType(t)||!!_f.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=$p('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=$p(r).attr("data-value");"0"===o?_f.removeMark(e,t):_f.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=$p('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=$p('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=$P("color.default")),"bgColor"===t&&(a=$P("color.clear"));var u=$p('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),Xz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("color.color"),t.iconSvg=NM,t.mark="color",t}return nM(t,e),t}(Yz),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("color.bgColor"),t.iconSvg=IM,t.mark="bgColor",t}return nM(t,e),t}(Yz),Jz=["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)"],Qz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&qz(i,{color:r}),o&&qz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!nd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((XR(t)||"span"!==JR(n=$p(t)))&&(n=$p("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),ZR(n)):t},preParseHtml:[Kz],parseStyleHtml:function(e,t,n){var r=$p(e);if(!nd.isText(t))return t;var o=t,i=QR(r,"color");i&&(o.color=i);var a=QR(r,"background-color");return a||(a=QR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Xz},config:{colors:Jz}},{key:"bgColor",factory:function(){return new Zz},config:{colors:Jz}}]},e$=/^(?:\w+:)?\/\/(\S+)$/,t$=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n$=/^[^\s\.]+\.\S{2,}$/,r$=yI.includes;function o$(e){return void 0===e&&(e="r"),e+"-"+zh()}function i$(e){return e.replace(/</g,"<").replace(/>/g,">")}function a$(e,t,n,r){return oM(this,void 0,void 0,(function(){var o,i;return iM(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function u$(e,t,n){return oM(this,void 0,void 0,(function(){var r;return iM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function s$(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function l$(e,t){return{type:"link",url:i$(e),children:t?[{text:t}]:[]}}function c$(e,t,n){return oM(this,void 0,void 0,(function(){var r,o,i;return iM(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),s$(e)?[2]:[4,a$("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,u$("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Yf.isCollapsed(o)?(e.insertText(" "),i=l$(r,t),wd.insertNodes(e,i),e.insertFragment([{text:" "}])):_f.string(e,o)!==t?(e.deleteFragment(),i=l$(r,t),wd.insertNodes(e,i)):(i=l$(r),wd.wrapNodes(e,i,{split:!0}),wd.collapse(e,{edge:"end"}))),[2]}}))}))}II({target:"Array",proto:!0},{includes:function(e){return r$(this,e,arguments.length>1?arguments[1]:void 0)}}),xR("includes");var f$={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Ng("a",{href:o,target:void 0===i?"_blank":i},t)}},d$={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function p$(){return o$("w-e-insert-link")}var h$=function(){function e(){this.title=$P("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=p$(),this.urlInputId=p$(),this.buttonId=p$()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return s$(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=uM(C_($P("link.text"),r),2),u=a[0],s=$p(a[1]),l=uM(C_($P("link.url"),o),2),c=l[0],f=$p(l[1]),d=uM(A_(i,$P("common.ok")),1)[0];if(null==this.$content){var p=$p("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();c$(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Yf.isCollapsed(t))s.val("");else{var g=_f.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function g$(){return o$("w-e-update-link")}var v$=function(){function e(){this.title=$P("link.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=g$(),this.buttonId=g$()}return e.prototype.getSelectedLinkElem=function(e){var t=tk.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return tk.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=uM(C_($P("link.url"),t),2),o=r[0],i=$p(r[1]),a=uM(A_(n,$P("common.ok")),1)[0];if(null==this.$content){var u=$p("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=tk.getSelectedNodeByType(e,"link"),o=r?Lf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){oM(this,void 0,void 0,(function(){var r,o;return iM(this,(function(i){switch(i.label){case 0:return n?[4,a$("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,u$("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:i$(r)},wd.setNodes(e,o,{match:function(e){return tk.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),y$=function(){function e(){this.title=$P("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tk.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.unwrapNodes(e,{match:function(e){return tk.checkNodeType(e,"link")}})},e}(),m$=function(){function e(){this.title=$P("link.view"),this.iconSvg=jM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=tk.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),b$={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},w$={renderElems:[f$],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[d$],menus:[{key:"insertLink",factory:function(){return new h$},config:b$},{key:"editLink",factory:function(){return new v$},config:b$},{key:"unLink",factory:function(){return new y$}},{key:"viewLink",factory:function(){return new m$}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(e$);if(!t)return!1;var n=t[1];return!(!n||!t$.test(n)&&!n$.test(n))}(t)){if(!s$(o)){var r=o.selection;if(null!=r){var i=_f.string(o,r);c$(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=uM(e,2),n=t[0],i=t[1];return"link"!==tk.getNodeType(n)?r([n,i]):""===Lf.string(n)?wd.removeNodes(o,{at:i}):r([n,i])},o}},E$=kj(1..valueOf),D$=hj.RangeError,S$=hj.RangeError,x$=hj.String,C$=Math.floor,A$=kj((function(e){var t=fL(Ij(this)),n="",r=lI(e);if(r<0||r==1/0)throw D$("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),O$=kj("".slice),k$=kj(1..toFixed),B$=function(e,t,n){return 0===t?n:t%2==1?B$(e,t-1,n*e):B$(e*e,t/2,n)},F$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=C$(o/1e7)},T$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=C$(r/t),r=r%t*1e7},_$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=x$(e[t]);n=""===n?r:n+A$("0",7-r.length)+r}return n};function P$(e,t){return"w-e-image-container-"+tk.findKey(e,t).id}II({target:"Number",proto:!0,forced:gj((function(){return"0.000"!==k$(8e-5,3)||"1"!==k$(.9,0)||"1.25"!==k$(1.255,2)||"1000000000000000128"!==k$(0xde0b6b3a7640080,0)}))||!gj((function(){k$({})}))},{toFixed:function(e){var t,n,r,o,i=E$(this),a=lI(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw S$("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return x$(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*B$(2,69,1))-69)<0?i*B$(2,-t,1):i/B$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(F$(u,0,n),r=a;r>=7;)F$(u,1e7,0),r-=7;for(F$(u,B$(10,r,1),0),r=t-1;r>=23;)T$(u,1<<23),r-=23;T$(u,1<<r),F$(u,1,1),T$(u,2),l=_$(u)}else F$(u,0,n),F$(u,1<<-t,0),l=_$(u)+A$("0",a);return a>0?s+((o=l.length)<=a?"0."+A$("0",a-o)+l:O$(l,0,o-a)+"."+O$(l,o-a)):s+l}});var j$={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=tk.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=Ng("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=$p("body"),i=P$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=$p("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=tk.getHoverbar(e);r&&r.hideAndClean()}var h=ng((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:rM(rM({},t.style),{width:r+"px",height:i+"px"})};wd.setNodes(e,a,{at:tk.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),Ng("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=$p(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Ng("div",{className:"w-e-image-dragger left-top"}),Ng("div",{className:"w-e-image-dragger right-top"}),Ng("div",{className:"w-e-image-dragger left-bottom"}),Ng("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Ng("div",{id:P$(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},N$={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:QR(r,"width"),height:QR(r,"height")},children:[{text:""}]}}};function I$(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),oM(this,void 0,void 0,(function(){var i,a;return iM(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function L$(e,t,n){return oM(this,void 0,void 0,(function(){var r;return iM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function R$(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),oM(this,void 0,void 0,(function(){var o,i,a;return iM(this,(function(u){switch(u.label){case 0:return[4,I$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,L$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:i$(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),tk.getSelectedNodeByType(e,"image")&&e.move(1),M$(e)||(wd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function M$(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!uM(_f.nodes(e,{match:function(t){var n=tk.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!_f.isVoid(e,t)},universal:!0}),1)[0]}function z$(){return o$("w-e-insert-image")}var $$=function(){function e(){this.title=$P("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=z$(),this.altInputId=z$(),this.hrefInputId=z$(),this.buttonId=z$()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return M$(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=uM(C_($P("image.src"),r),2),s=u[0],l=$p(u[1]),c=uM(C_($P("image.desc"),o),2),f=c[0],d=$p(c[1]),p=uM(C_($P("image.link"),i),2),h=p[0],g=$p(p[1]),v=uM(A_(a,$P("common.ok")),1)[0];if(null==this.$content){var y=$p("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||R$(e,t,n,r))},e}(),H$=function(){function e(){this.title=$P("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tk.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{match:function(e){return tk.checkNodeType(e,"image")}})},e}();function V$(){return o$("w-e-edit-image")}var U$=function(){function e(){this.title=$P("image.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=V$(),this.altInputId=V$(),this.hrefInputId=V$(),this.buttonId=V$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return tk.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=uM(C_($P("image.src"),r),2),l=s[0],c=$p(s[1]),f=uM(C_($P("image.desc"),o),2),d=f[0],p=$p(f[1]),h=uM(C_($P("image.link"),i),2),g=h[0],v=$p(h[1]),y=uM(A_(a,$P("common.ok")),1)[0];if(null==this.$content){var m=$p("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,D=w.alt,S=void 0===D?"":D,x=w.href,C=void 0===x?"":x;return c.val(E),p.val(S),v.val(C),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),oM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return iM(this,(function(f){switch(f.label){case 0:return[4,I$("editImage",e,t,n,r)];case 1:return f.sent()?[4,L$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=tk.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:rM(rM({},void 0===u?{}:u),o)},wd.setNodes(e,s,{match:function(e){return tk.checkNodeType(e,"image")}}),l=tk.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),W$=function(){function e(){this.title=$P("image.viewLink"),this.iconSvg=jM,this.tag="button"}return e.prototype.getValue=function(e){var t=tk.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),G$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return tk.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=tk.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:rM(rM({},void 0===o?{}:o),{width:this.value,height:""})};wd.setNodes(e,i,{match:function(e){return tk.checkNodeType(e,"image")}})}}},e}(),q$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return nM(t,e),t}(G$),K$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return nM(t,e),t}(G$),Y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return nM(t,e),t}(G$),X$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Z$={renderElems:[j$],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[N$],menus:[{key:"insertImage",factory:function(){return new $$},config:X$},{key:"deleteImage",factory:function(){return new H$}},{key:"editImage",factory:function(){return new U$},config:X$},{key:"viewImageLink",factory:function(){return new W$}},{key:"imageWidth30",factory:function(){return new q$}},{key:"imageWidth50",factory:function(){return new K$}},{key:"imageWidth100",factory:function(){return new Y$}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},J$={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Ng("div",{style:{margin:"5px 0"}},Ng("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ng("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=tk.findPath(n,e),o={checked:t.target.checked};wd.setNodes(n,o,{at:r})}}})),Ng("span",null,t));return o}},Q$=function(){function e(){this.title=$P("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!tk.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){if(_f.isVoid(e,t)&&_f.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);wd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),eH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=$p(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},tH={renderElems:[J$],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=$p(e).find("li"),n=$p('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[eH],menus:[{key:"todo",factory:function(){return new Q$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Yf.isCollapsed(r)){var o=tk.getSelectedNodeByType(e,"todo");if(o&&0===Lf.string(o).length)return void wd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},nH={type:"blockquote",renderElem:function(e,t,n){return Ng("blockquote",null,t)}},rH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},oH=function(){function e(){this.title=$P("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!tk.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!uM(_f.nodes(e,{match:function(e){var t=tk.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";wd.setNodes(e,{type:n},{mode:"highest"})}},e}(),iH={key:"blockquote",factory:function(){return new oH}},aH=kj([].slice),uH=aL("slice"),sH=EN("species"),lH=hj.Array,cH=Math.max;II({target:"Array",proto:!0,forced:!uH},{slice:function(e,t){var n,r,o,i=Lj(this),a=gI(i),u=dI(e,a),s=dI(void 0===t?a:t,a);if(RI(i)&&(n=i.constructor,(JI(n)&&(n===lH||RI(n.prototype))||Mj(n)&&null===(n=n[sH]))&&(n=void 0),n===lH||void 0===n))return aH(i,u,s);for(r=new(void 0===n?lH:n)(cH(s-u,0)),o=0;u<s;u++,o++)u in i&&TR(r,o,i[u]);return r.length=o,r}});var fH={renderElems:[nH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[rH],menus:[iH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=uM(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=tk.findPath(e,a),s=_f.end(e,u);if(Wf.equals(s,o.focus)){var l=Lf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void wd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},dH=function(){function e(){this.title=$P("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!uM(_f.nodes(e,{match:function(t){return"pre"===tk.getNodeType(t)||!!_f.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=$p('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=$p(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=$p("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),pH={menus:[{key:"emotion",factory:function(){return new dH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},hH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},gH={selector:"font",preParseHtml:function(e){var t=$p(e);if("font"!==JR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",hH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},vH=kj("".indexOf);II({target:"String",proto:!0,forced:!mz("includes")},{includes:function(e){return!!~vH(fL(Ij(this)),fL(vz(e)),arguments.length>1?arguments[1]:void 0)}});var yH,mH,bH=function(e){return e&&e.Math==Math&&e},wH=bH("object"==typeof globalThis&&globalThis)||bH("object"==typeof window&&window)||bH("object"==typeof self&&self)||bH("object"==typeof lj&&lj)||function(){return this}()||Function("return this")(),EH=Function.prototype,DH=EH.apply,SH=EH.bind,xH=EH.call,CH="object"==typeof Reflect&&Reflect.apply||(SH?xH.bind(DH):function(){return xH.apply(DH,arguments)}),AH=Function.prototype,OH=AH.bind,kH=AH.call,BH=OH&&OH.bind(kH),FH=OH?function(e){return e&&BH(kH,e)}:function(e){return e&&function(){return kH.apply(e,arguments)}},TH=function(e){return"function"==typeof e},_H=function(e){try{return!!e()}catch(e){return!0}},PH=!_H((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jH=Function.prototype.call,NH=jH.bind?jH.bind(jH):function(){return jH.apply(jH,arguments)},IH={}.propertyIsEnumerable,LH=Object.getOwnPropertyDescriptor,RH=LH&&!IH.call({1:2},1)?function(e){var t=LH(this,e);return!!t&&t.enumerable}:IH,MH={f:RH},zH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$H=FH({}.toString),HH=FH("".slice),VH=function(e){return HH($H(e),8,-1)},UH=wH.Object,WH=FH("".split),GH=_H((function(){return!UH("z").propertyIsEnumerable(0)}))?function(e){return"String"==VH(e)?WH(e,""):UH(e)}:UH,qH=wH.TypeError,KH=function(e){if(null==e)throw qH("Can't call method on "+e);return e},YH=function(e){return GH(KH(e))},XH=function(e){return"object"==typeof e?null!==e:TH(e)},ZH={},JH=function(e){return TH(e)?e:void 0},QH=function(e,t){return arguments.length<2?JH(ZH[e])||JH(wH[e]):ZH[e]&&ZH[e][t]||wH[e]&&wH[e][t]},eV=FH({}.isPrototypeOf),tV=QH("navigator","userAgent")||"",nV=wH.process,rV=wH.Deno,oV=nV&&nV.versions||rV&&rV.version,iV=oV&&oV.v8;iV&&(mH=(yH=iV.split("."))[0]>0&&yH[0]<4?1:+(yH[0]+yH[1])),!mH&&tV&&(!(yH=tV.match(/Edge\/(\d+)/))||yH[1]>=74)&&(yH=tV.match(/Chrome\/(\d+)/))&&(mH=+yH[1]);var aV=mH,uV=!!Object.getOwnPropertySymbols&&!_H((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aV&&aV<41})),sV=uV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lV=wH.Object,cV=sV?function(e){return"symbol"==typeof e}:function(e){var t=QH("Symbol");return TH(t)&&eV(t.prototype,lV(e))},fV=wH.String,dV=wH.TypeError,pV=function(e){if(TH(e))return e;throw dV(function(e){try{return fV(e)}catch(e){return"Object"}}(e)+" is not a function")},hV=wH.TypeError,gV=Object.defineProperty,vV=wH["__core-js_shared__"]||function(e,t){try{gV(wH,e,{value:t,configurable:!0,writable:!0})}catch(i){wH[e]=t}return t}("__core-js_shared__",{}),yV=cj((function(e){(e.exports=function(e,t){return vV[e]||(vV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),mV=wH.Object,bV=function(e){return mV(KH(e))},wV=FH({}.hasOwnProperty),EV=Object.hasOwn||function(e,t){return wV(bV(e),t)},DV=0,SV=Math.random(),xV=FH(1..toString),CV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xV(++DV+SV,36)},AV=yV("wks"),OV=wH.Symbol,kV=OV&&OV.for,BV=sV?OV:OV&&OV.withoutSetter||CV,FV=function(e){if(!EV(AV,e)||!uV&&"string"!=typeof AV[e]){var t="Symbol."+e;uV&&EV(OV,e)?AV[e]=OV[e]:AV[e]=sV&&kV?kV(t):BV(t)}return AV[e]},TV=wH.TypeError,_V=FV("toPrimitive"),PV=function(e){var t=function(e,t){if(!XH(e)||cV(e))return e;var n,r,o=null==(n=e[_V])?void 0:pV(n);if(o){if(void 0===t&&(t="default"),r=NH(o,e,t),!XH(r)||cV(r))return r;throw TV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&TH(n=e.toString)&&!XH(r=NH(n,e)))return r;if(TH(n=e.valueOf)&&!XH(r=NH(n,e)))return r;if("string"!==t&&TH(n=e.toString)&&!XH(r=NH(n,e)))return r;throw hV("Can't convert object to primitive value")}(e,t)}(e,"string");return cV(t)?t:t+""},jV=wH.document,NV=XH(jV)&&XH(jV.createElement),IV=function(e){return NV?jV.createElement(e):{}},LV=!PH&&!_H((function(){return 7!=Object.defineProperty(IV("div"),"a",{get:function(){return 7}}).a})),RV=Object.getOwnPropertyDescriptor,MV={f:PH?RV:function(e,t){if(e=YH(e),t=PV(t),LV)try{return RV(e,t)}catch(e){}if(EV(e,t))return zH(!NH(MH.f,e,t),e[t])}},zV=/#|\.prototype\./,$V=function(e,t){var n=VV[HV(e)];return n==WV||n!=UV&&(TH(t)?_H(t):!!t)},HV=$V.normalize=function(e){return String(e).replace(zV,".").toLowerCase()},VV=$V.data={},UV=$V.NATIVE="N",WV=$V.POLYFILL="P",GV=$V,qV=FH(FH.bind),KV=function(e,t){return pV(e),void 0===t?e:qV?qV(e,t):function(){return e.apply(t,arguments)}},YV=wH.String,XV=wH.TypeError,ZV=function(e){if(XH(e))return e;throw XV(YV(e)+" is not an object")},JV=wH.TypeError,QV=Object.defineProperty,eU={f:PH?QV:function(e,t,n){if(ZV(e),t=PV(t),ZV(n),LV)try{return QV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw JV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tU=PH?function(e,t,n){return eU.f(e,t,zH(1,n))}:function(e,t,n){return e[t]=n,e},nU=MV.f,rU=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return CH(e,this,arguments)};return t.prototype=e.prototype,t},oU=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?wH:d?wH[c]:(wH[c]||{}).prototype,g=f?ZH:ZH[c]||tU(ZH,c,{})[c],v=g.prototype;for(o in t)n=!GV(f?o:c+(d?".":"#")+o,e.forced)&&h&&EV(h,o),a=g[o],n&&(u=e.noTargetGet?(l=nU(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?KV(i,wH):e.wrap&&n?rU(i):p&&TH(i)?FH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&tU(s,"sham",!0),tU(g,o,s),p&&(EV(ZH,r=c+"Prototype")||tU(ZH,r,{}),tU(ZH[r],o,i),e.real&&v&&!v[o]&&tU(v,o,i)))},iU=Array.isArray||function(e){return"Array"==VH(e)},aU=Math.ceil,uU=Math.floor,sU=function(e){var t=+e;return t!=t||0===t?0:(t>0?uU:aU)(t)},lU=Math.min,cU=function(e){return(t=e.length)>0?lU(sU(t),9007199254740991):0;var t},fU=function(e,t,n){var r=PV(t);r in e?eU.f(e,r,zH(0,n)):e[r]=n},dU={};dU[FV("toStringTag")]="z";var pU="[object z]"===String(dU),hU=FV("toStringTag"),gU=wH.Object,vU="Arguments"==VH(function(){return arguments}()),yU=pU?VH:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=gU(e),hU))?n:vU?VH(t):"Object"==(r=VH(t))&&TH(t.callee)?"Arguments":r},mU=FH(Function.toString);TH(vV.inspectSource)||(vV.inspectSource=function(e){return mU(e)});var bU=vV.inspectSource,wU=function(){},EU=[],DU=QH("Reflect","construct"),SU=/^\s*(?:class|function)\b/,xU=FH(SU.exec),CU=!SU.exec(wU),AU=function(e){if(!TH(e))return!1;try{return DU(wU,EU,e),!0}catch(e){return!1}},OU=!DU||_H((function(){var e;return AU(AU.call)||!AU(Object)||!AU((function(){e=!0}))||e}))?function(e){if(!TH(e))return!1;switch(yU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return CU||!!xU(SU,bU(e))}:AU,kU=FV("species"),BU=wH.Array,FU=function(e,t){return new(function(e){var t;return iU(e)&&(t=e.constructor,(OU(t)&&(t===BU||iU(t.prototype))||XH(t)&&null===(t=t[kU]))&&(t=void 0)),void 0===t?BU:t}(e))(0===t?0:t)},TU=FV("species"),_U=FV("isConcatSpreadable"),PU=wH.TypeError,jU=aV>=51||!_H((function(){var e=[];return e[_U]=!1,e.concat()[0]!==e})),NU=aV>=51||!_H((function(){var e=[];return(e.constructor={})[TU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),IU=function(e){if(!XH(e))return!1;var t=e[_U];return void 0!==t?!!t:iU(e)};oU({target:"Array",proto:!0,forced:!jU||!NU},{concat:function(e){var t,n,r,o,i,a=bV(this),u=FU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(IU(i=-1===t?a:arguments[t])){if(s+(o=cU(i))>9007199254740991)throw PU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&fU(u,s,i[n])}else{if(s>=9007199254740991)throw PU("Maximum allowed index exceeded");fU(u,s++,i)}return u.length=s,u}});var LU,RU=wH.String,MU=function(e){if("Symbol"===yU(e))throw TypeError("Cannot convert a Symbol value to a string");return RU(e)},zU=Math.max,$U=Math.min,HU=function(e,t){var n=sU(e);return n<0?zU(n+t,0):$U(n,t)},VU=function(e){return function(t,n,r){var o,i=YH(t),a=cU(i),u=HU(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},UU={includes:VU(!0),indexOf:VU(!1)},WU={},GU=UU.indexOf,qU=FH([].push),KU=function(e,t){var n,r=YH(e),o=0,i=[];for(n in r)!EV(WU,n)&&EV(r,n)&&qU(i,n);for(;t.length>o;)EV(r,n=t[o++])&&(~GU(i,n)||qU(i,n));return i},YU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XU=Object.keys||function(e){return KU(e,YU)},ZU=PH?Object.defineProperties:function(e,t){ZV(e);for(var n,r=YH(t),o=XU(t),i=o.length,a=0;i>a;)eU.f(e,n=o[a++],r[n]);return e},JU=QH("document","documentElement"),QU=yV("keys"),eW=function(e){return QU[e]||(QU[e]=CV(e))},tW=eW("IE_PROTO"),nW=function(){},rW=function(e){return"<script>"+e+"<\/script>"},oW=function(e){e.write(rW("")),e.close();var t=e.parentWindow.Object;return e=null,t},iW=function(){try{LU=new ActiveXObject("htmlfile")}catch(e){}var e,t;iW="undefined"!=typeof document?document.domain&&LU?oW(LU):((t=IV("iframe")).style.display="none",JU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rW("document.F=Object")),e.close(),e.F):oW(LU);for(var n=YU.length;n--;)delete iW.prototype[YU[n]];return iW()};WU[tW]=!0;var aW,uW,sW,lW=Object.create||function(e,t){var n;return null!==e?(nW.prototype=ZV(e),n=new nW,nW.prototype=null,n[tW]=e):n=iW(),void 0===t?n:ZU(n,t)},cW=YU.concat("length","prototype"),fW={f:Object.getOwnPropertyNames||function(e){return KU(e,cW)}},dW=wH.Array,pW=Math.max,hW=fW.f,gW="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vW={f:function(e){return gW&&"Window"==VH(e)?function(e){try{return hW(e)}catch(e){return function(e,t,n){for(var r=cU(e),o=HU(void 0,r),i=HU(r,r),a=dW(pW(i-o,0)),u=0;o<i;o++,u++)fU(a,u,e[o]);return a.length=u,a}(gW)}}(e):hW(YH(e))}},yW={f:Object.getOwnPropertySymbols},mW=FH([].slice),bW=function(e,t,n,r){r&&r.enumerable?e[t]=n:tU(e,t,n)},wW={f:FV},EW=eU.f,DW=function(e){var t=ZH.Symbol||(ZH.Symbol={});EV(t,e)||EW(t,e,{value:wW.f(e)})},SW=pU?{}.toString:function(){return"[object "+yU(this)+"]"},xW=eU.f,CW=FV("toStringTag"),AW=function(e,t,n,r){if(e){var o=n?e:e.prototype;EV(o,CW)||xW(o,CW,{configurable:!0,value:t}),r&&!pU&&tU(o,"toString",SW)}},OW=wH.WeakMap,kW=TH(OW)&&/native code/.test(bU(OW)),BW=wH.TypeError,FW=wH.WeakMap;if(kW||vV.state){var TW=vV.state||(vV.state=new FW),_W=FH(TW.get),PW=FH(TW.has),jW=FH(TW.set);aW=function(e,t){if(PW(TW,e))throw new BW("Object already initialized");return t.facade=e,jW(TW,e,t),t},uW=function(e){return _W(TW,e)||{}},sW=function(e){return PW(TW,e)}}else{var NW=eW("state");WU[NW]=!0,aW=function(e,t){if(EV(e,NW))throw new BW("Object already initialized");return t.facade=e,tU(e,NW,t),t},uW=function(e){return EV(e,NW)?e[NW]:{}},sW=function(e){return EV(e,NW)}}var IW={set:aW,get:uW,has:sW,enforce:function(e){return sW(e)?uW(e):aW(e,{})},getterFor:function(e){return function(t){var n;if(!XH(t)||(n=uW(t)).type!==e)throw BW("Incompatible receiver, "+e+" required");return n}}},LW=FH([].push),RW=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=bV(s),g=GH(h),v=KV(l,c),y=cU(g),m=0,b=f||FU,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:LW(w,d)}else switch(e){case 4:return!1;case 7:LW(w,d)}return i?-1:r||o?o:w}},MW=[RW(0),RW(1),RW(2),RW(3),RW(4),RW(5),RW(6),RW(7)][0],zW=eW("hidden"),$W=FV("toPrimitive"),HW=IW.set,VW=IW.getterFor("Symbol"),UW=Object.prototype,WW=wH.Symbol,GW=WW&&WW.prototype,qW=wH.TypeError,KW=wH.QObject,YW=QH("JSON","stringify"),XW=MV.f,ZW=eU.f,JW=vW.f,QW=MH.f,eG=FH([].push),tG=yV("symbols"),nG=yV("op-symbols"),rG=yV("string-to-symbol-registry"),oG=yV("symbol-to-string-registry"),iG=yV("wks"),aG=!KW||!KW.prototype||!KW.prototype.findChild,uG=PH&&_H((function(){return 7!=lW(ZW({},"a",{get:function(){return ZW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=XW(UW,t);r&&delete UW[t],ZW(e,t,n),r&&e!==UW&&ZW(UW,t,r)}:ZW,sG=function(e,t){var n=tG[e]=lW(GW);return HW(n,{type:"Symbol",tag:e,description:t}),PH||(n.description=t),n},lG=function(e,t,n){e===UW&&lG(nG,t,n),ZV(e);var r=PV(t);return ZV(n),EV(tG,r)?(n.enumerable?(EV(e,zW)&&e[zW][r]&&(e[zW][r]=!1),n=lW(n,{enumerable:zH(0,!1)})):(EV(e,zW)||ZW(e,zW,zH(1,{})),e[zW][r]=!0),uG(e,r,n)):ZW(e,r,n)},cG=function(e,t){ZV(e);var n=YH(t),r=XU(n).concat(hG(n));return MW(r,(function(t){PH&&!NH(fG,n,t)||lG(e,t,n[t])})),e},fG=function(e){var t=PV(e),n=NH(QW,this,t);return!(this===UW&&EV(tG,t)&&!EV(nG,t))&&(!(n||!EV(this,t)||!EV(tG,t)||EV(this,zW)&&this[zW][t])||n)},dG=function(e,t){var n=YH(e),r=PV(t);if(n!==UW||!EV(tG,r)||EV(nG,r)){var o=XW(n,r);return!o||!EV(tG,r)||EV(n,zW)&&n[zW][r]||(o.enumerable=!0),o}},pG=function(e){var t=JW(YH(e)),n=[];return MW(t,(function(e){EV(tG,e)||EV(WU,e)||eG(n,e)})),n},hG=function(e){var t=e===UW,n=JW(t?nG:YH(e)),r=[];return MW(n,(function(e){!EV(tG,e)||t&&!EV(UW,e)||eG(r,tG[e])})),r};if(uV||(GW=(WW=function(){if(eV(GW,this))throw qW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?MU(arguments[0]):void 0,t=CV(e),n=function(e){this===UW&&NH(n,nG,e),EV(this,zW)&&EV(this[zW],t)&&(this[zW][t]=!1),uG(this,t,zH(1,e))};return PH&&aG&&uG(UW,t,{configurable:!0,set:n}),sG(t,e)}).prototype,bW(GW,"toString",(function(){return VW(this).tag})),bW(WW,"withoutSetter",(function(e){return sG(CV(e),e)})),MH.f=fG,eU.f=lG,MV.f=dG,fW.f=vW.f=pG,yW.f=hG,wW.f=function(e){return sG(FV(e),e)},PH&&ZW(GW,"description",{configurable:!0,get:function(){return VW(this).description}})),oU({global:!0,wrap:!0,forced:!uV,sham:!uV},{Symbol:WW}),MW(XU(iG),(function(e){DW(e)})),oU({target:"Symbol",stat:!0,forced:!uV},{for:function(e){var t=MU(e);if(EV(rG,t))return rG[t];var n=WW(t);return rG[t]=n,oG[n]=t,n},keyFor:function(e){if(!cV(e))throw qW(e+" is not a symbol");if(EV(oG,e))return oG[e]},useSetter:function(){aG=!0},useSimple:function(){aG=!1}}),oU({target:"Object",stat:!0,forced:!uV,sham:!PH},{create:function(e,t){return void 0===t?lW(e):cG(lW(e),t)},defineProperty:lG,defineProperties:cG,getOwnPropertyDescriptor:dG}),oU({target:"Object",stat:!0,forced:!uV},{getOwnPropertyNames:pG,getOwnPropertySymbols:hG}),oU({target:"Object",stat:!0,forced:_H((function(){yW.f(1)}))},{getOwnPropertySymbols:function(e){return yW.f(bV(e))}}),YW){var gG=!uV||_H((function(){var e=WW();return"[null]"!=YW([e])||"{}"!=YW({a:e})||"{}"!=YW(Object(e))}));oU({target:"JSON",stat:!0,forced:gG},{stringify:function(e,t,n){var r=mW(arguments),o=t;if((XH(t)||void 0!==e)&&!cV(e))return iU(t)||(t=function(e,t){if(TH(o)&&(t=NH(o,this,e,t)),!cV(t))return t}),r[1]=t,CH(YW,null,r)}})}if(!GW[$W]){var vG=GW.valueOf;bW(GW,$W,(function(e){return NH(vG,this)}))}AW(WW,"Symbol"),WU[zW]=!0,DW("asyncIterator"),DW("hasInstance"),DW("isConcatSpreadable"),DW("iterator"),DW("match"),DW("matchAll"),DW("replace"),DW("search"),DW("species"),DW("split"),DW("toPrimitive"),DW("toStringTag"),DW("unscopables"),AW(wH.JSON,"JSON",!0);var yG,mG,bG,wG=ZH.Symbol,EG={},DG=Function.prototype,SG=PH&&Object.getOwnPropertyDescriptor,xG=EV(DG,"name"),CG={EXISTS:xG,PROPER:xG&&"something"===function(){}.name,CONFIGURABLE:xG&&(!PH||PH&&SG(DG,"name").configurable)},AG=!_H((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),OG=eW("IE_PROTO"),kG=wH.Object,BG=kG.prototype,FG=AG?kG.getPrototypeOf:function(e){var t=bV(e);if(EV(t,OG))return t[OG];var n=t.constructor;return TH(n)&&t instanceof n?n.prototype:t instanceof kG?BG:null},TG=FV("iterator"),_G=!1;[].keys&&("next"in(bG=[].keys())?(mG=FG(FG(bG)))!==Object.prototype&&(yG=mG):_G=!0);var PG=null==yG||_H((function(){var e={};return yG[TG].call(e)!==e}));yG=PG?{}:lW(yG),TH(yG[TG])||bW(yG,TG,(function(){return this}));var jG={IteratorPrototype:yG,BUGGY_SAFARI_ITERATORS:_G},NG=jG.IteratorPrototype,IG=function(){return this};wH.String,wH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{FH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var LG=CG.PROPER,RG=jG.BUGGY_SAFARI_ITERATORS,MG=FV("iterator"),zG=function(){return this},$G=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=lW(NG,{next:zH(1,n)}),AW(e,o,!1,!0),EG[o]=IG}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!RG&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[MG]||p["@@iterator"]||o&&p[o],g=!RG&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=FG(v.call(new e)))!==Object.prototype&&u.next&&(AW(u,f,!0,!0),EG[f]=zG),LG&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return NH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(RG||d||!(l in p))&&bW(p,l,s[l]);else oU({target:t,proto:!0,forced:RG||d},s);return a&&p[MG]!==g&&bW(p,MG,g,{name:o}),EG[t]=g,s},HG=IW.set,VG=IW.getterFor("Array Iterator");$G(Array,"Array",(function(e,t){HG(this,{type:"Array Iterator",target:YH(e),index:0,kind:t})}),(function(){var e=VG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),EG.Arguments=EG.Array;var UG=FV("toStringTag");for(var WG 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 GG=wH[WG],qG=GG&&GG.prototype;qG&&yU(qG)!==UG&&tU(qG,UG,WG),EG[WG]=EG.Array}var KG=wG;DW("asyncDispose"),DW("dispose"),DW("matcher"),DW("metadata"),DW("observable"),DW("patternMatch"),DW("replaceAll");var YG=KG,XG=FH("".charAt),ZG=FH("".charCodeAt),JG=FH("".slice),QG=function(e){return function(t,n){var r,o,i=MU(KH(t)),a=sU(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZG(i,a))<55296||r>56319||a+1===u||(o=ZG(i,a+1))<56320||o>57343?e?XG(i,a):r:e?JG(i,a,a+2):o-56320+(r-55296<<10)+65536}},eq=(QG(!1),QG(!0)),tq=IW.set,nq=IW.getterFor("String Iterator");$G(String,"String",(function(e){tq(this,{type:"String Iterator",string:MU(e),index:0})}),(function(){var e,t=nq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=eq(n,r),t.index+=e.length,{value:e,done:!1})}));var rq=wW.f("iterator"),oq=cj((function(e){function t(n){return"function"==typeof YG&&"symbol"==typeof rq?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof YG&&e.constructor===YG&&e!==YG.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),iq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(oq),aq=iI.EXISTS,uq=IN.f,sq=Function.prototype,lq=kj(sq.toString),cq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,fq=kj(cq.exec);vj&&!aq&&uq(sq,"name",{configurable:!0,get:function(){try{return fq(cq,lq(this))[1]}catch(r){return""}}});var dq=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=_f.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!uM(_f.nodes(e,{match:function(t){return"pre"===tk.getNodeType(t)||!!_f.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),pq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("fontSize.title"),t.iconSvg=LM,t.mark="fontSize",t}return nM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:$P("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===iq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(dq),hq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("fontFamily.title"),t.iconSvg=RM,t.mark="fontFamily",t.selectPanelWidth=150,t}return nM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:$P("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===iq(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(dq),gq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&qz(i,{fontSize:r}),o&&qz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!nd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((XR(t)||"span"!==JR(n=$p(t)))&&(n=$p("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),ZR(n)):t},preParseHtml:[gH],parseStyleHtml:function(e,t,n){var r=$p(e);if(!nd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=QR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=QR(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new pq},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 hq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},vq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=$p(e),n=QR(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},yq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=uM(_f.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":uM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=uM(_f.nodes(e,{match:function(e){var t=tk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),mq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("indent.decrease"),t.iconSvg=MM,t}return nM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:null},{match:function(e){return Af.isElement(e)}})},t}(yq),bq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("indent.increase"),t.iconSvg=zM,t}return nM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:"2em"},{match:function(e){return Af.isElement(e)},mode:"highest"})},t}(yq),wq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.indent,r=t;return n&&qz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.indent;if(!n)return t;var r=$p(t);return r.css("text-indent",n),ZR(r)},preParseHtml:[vq],parseStyleHtml:function(e,t,n){var r=$p(e);if(!Af.isElement(t))return t;var o=t,i=QR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new bq}},{key:"delIndent",factory:function(){return new mq}}]},Eq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=uM(_f.nodes(e,{match:function(e){var t=tk.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){if(_f.isVoid(e,t)&&_f.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),Dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("justify.left"),t.iconSvg=$M,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"left"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Sq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("justify.right"),t.iconSvg=HM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"right"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("justify.center"),t.iconSvg=VM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"center"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Cq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=$P("justify.justify"),t.iconSvg=UM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"justify"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Aq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.textAlign,r=t;return n&&qz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=$p(t);return r.css("text-align",n),ZR(r)},parseStyleHtml:function(e,t,n){var r=$p(e);if(!Af.isElement(t))return t;var o=t,i=QR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Dq}},{key:"justifyRight",factory:function(){return new Sq}},{key:"justifyCenter",factory:function(){return new xq}},{key:"justifyJustify",factory:function(){return new Cq}}]},Oq=function(){function e(){this.title=$P("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:$P("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=uM(_f.nodes(e,{match:function(e){var t=tk.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Af.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){wd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),kq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.lineHeight,r=t;return n&&qz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=$p(t);return r.css("line-height",n),ZR(r)},parseStyleHtml:function(e,t,n){var r=$p(e);if(!Af.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=QR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Oq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Bq=function(){function e(){this.title=$P("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),Fq=function(){function e(){this.title=$P("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Tq={menus:[{key:"redo",factory:function(){return new Bq}},{key:"undo",factory:function(){return new Fq}}]},_q={type:"divider",renderElem:function(e,t,n){return gg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:tk.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[gg("hr")])}},Pq=function(){function e(){this.title=$P("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=tk.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){wd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),jq={renderElems:[_q],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Pq}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=uM(e,2),o=t[0],i=t[1];if("divider"!==tk.getNodeType(o))return n([o,i]);tk.isLastNode(r,o)&&wd.insertNodes(r,tk.genEmptyParagraph(),{at:[i[0]+1]})},r}},Nq=oL.map;II({target:"Array",proto:!0,forced:!aL("map")},{map:function(e){return Nq(this,e,arguments.length>1?arguments[1]:void 0)}});var Iq=kj([].join),Lq=jj!=Object,Rq=wM("join",",");II({target:"Array",proto:!0,forced:Lq||!Rq},{join:function(e){return Iq(Lj(this),void 0===e?",":e)}});var Mq=function(){function e(){this.title=$P("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=tk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tk.getParentNode(e,t);return null==n||"pre"!==tk.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=tk.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=tk.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Lf.string(t);wd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));wd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=_f.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=aM(i),u=a.next();!u.done;u=a.next()){var s=uM(u.value,1)[0];s&&o.push(Lf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}wd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};wd.insertNodes(e,l,{mode:"highest"})},e}(),zq={key:"codeBlock",factory:function(){return new Mq}};II({target:"String",proto:!0,forced:pM("anchor")},{anchor:function(e){return dM(this,"a","name",e)}}),ZL("match",(function(e,t,n){return[function(t){var n=Ij(this),r=null==t?void 0:rN(t,e);return r?mj(r,t,n):new RegExp(t)[e](fL(n))},function(e){var r=PN(this),o=fL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return dR(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=dR(r,o));){var c=fL(u[0]);s[l]=c,""===c&&(r.lastIndex=rR(o,hI(r.lastIndex),a)),l++}return 0===l?null:s}]}));var $q={type:"pre",renderElem:function(e,t,n){return Ng("pre",null,t)}},Hq={type:"code",renderElem:function(e,t,n){return Ng("code",null,t)}},Vq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);return 0===(t=t.filter((function(e){return"code"===tk.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===tk.getNodeType(e)}))}}},Uq={menus:[zq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=tk.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Lf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=uM(e,2),r=t[0],i=t[1],a=tk.getNodeType(r);return"code"===a&&i.length<=1&&wd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(tk.isLastNode(o,r)&&wd.insertNodes(o,tk.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==tk.getNodeType(r.children[0])&&(wd.unwrapNodes(o),wd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=tk.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");_f.insertText(o,t)}else r(e)},o},renderElems:[$q,Hq],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=$p(e);if("code"!==JR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:$p(e)[0].textContent||""}]}}},Vq]},Wq=function(){function e(){this.title=$P("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Gq={menus:[{key:"fullScreen",factory:function(){return new Wq}}]},qq=function(){function e(){this.title=$P("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Yf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];wd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(_f.start(e,r))}},e}(),Kq=[tz,Qz,gq,wq,Aq,kq,Z$,jq,pH,w$,Uq,fH,Hz,lM,tH,Tq,Gq,{menus:[{key:"enter",factory:function(){return new qq}}]}];zP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),zP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Yq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Xq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zq,Jq,Qq=function(e){return e&&e.Math==Math&&e},eK=Qq("object"==typeof globalThis&&globalThis)||Qq("object"==typeof window&&window)||Qq("object"==typeof self&&self)||Qq("object"==typeof Yq&&Yq)||function(){return this}()||Function("return this")(),tK=Function.prototype,nK=tK.bind,rK=tK.call,oK=nK&&nK.bind(rK),iK=nK?function(e){return e&&oK(rK,e)}:function(e){return e&&function(){return rK.apply(e,arguments)}},aK=function(e){try{return!!e()}catch(e){return!0}},uK=iK({}.toString),sK=iK("".slice),lK=function(e){return sK(uK(e),8,-1)},cK=eK.Object,fK=iK("".split),dK=aK((function(){return!cK("z").propertyIsEnumerable(0)}))?function(e){return"String"==lK(e)?fK(e,""):cK(e)}:cK,pK=eK.TypeError,hK=function(e){if(null==e)throw pK("Can't call method on "+e);return e},gK=function(e){return dK(hK(e))},vK=Object.defineProperty,yK=function(e,t){try{vK(eK,e,{value:t,configurable:!0,writable:!0})}catch(i){eK[e]=t}return t},mK=eK["__core-js_shared__"]||yK("__core-js_shared__",{}),bK=Xq((function(e){(e.exports=function(e,t){return mK[e]||(mK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wK=eK.Object,EK=function(e){return wK(hK(e))},DK=iK({}.hasOwnProperty),SK=Object.hasOwn||function(e,t){return DK(EK(e),t)},xK=0,CK=Math.random(),AK=iK(1..toString),OK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+AK(++xK+CK,36)},kK=function(e){return"function"==typeof e},BK=function(e){return kK(e)?e:void 0},FK=function(e,t){return arguments.length<2?BK(eK[e]):eK[e]&&eK[e][t]},TK=FK("navigator","userAgent")||"",_K=eK.process,PK=eK.Deno,jK=_K&&_K.versions||PK&&PK.version,NK=jK&&jK.v8;NK&&(Jq=(Zq=NK.split("."))[0]>0&&Zq[0]<4?1:+(Zq[0]+Zq[1])),!Jq&&TK&&(!(Zq=TK.match(/Edge\/(\d+)/))||Zq[1]>=74)&&(Zq=TK.match(/Chrome\/(\d+)/))&&(Jq=+Zq[1]);var IK,LK=Jq,RK=!!Object.getOwnPropertySymbols&&!aK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&LK&&LK<41})),MK=RK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zK=bK("wks"),$K=eK.Symbol,HK=$K&&$K.for,VK=MK?$K:$K&&$K.withoutSetter||OK,UK=function(e){if(!SK(zK,e)||!RK&&"string"!=typeof zK[e]){var t="Symbol."+e;RK&&SK($K,e)?zK[e]=$K[e]:zK[e]=MK&&HK?HK(t):VK(t)}return zK[e]},WK=function(e){return"object"==typeof e?null!==e:kK(e)},GK=eK.String,qK=eK.TypeError,KK=function(e){if(WK(e))return e;throw qK(GK(e)+" is not an object")},YK=!aK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),XK=eK.document,ZK=WK(XK)&&WK(XK.createElement),JK=function(e){return ZK?XK.createElement(e):{}},QK=!YK&&!aK((function(){return 7!=Object.defineProperty(JK("div"),"a",{get:function(){return 7}}).a})),eY=Function.prototype.call,tY=eY.bind?eY.bind(eY):function(){return eY.apply(eY,arguments)},nY=iK({}.isPrototypeOf),rY=eK.Object,oY=MK?function(e){return"symbol"==typeof e}:function(e){var t=FK("Symbol");return kK(t)&&nY(t.prototype,rY(e))},iY=eK.String,aY=function(e){try{return iY(e)}catch(e){return"Object"}},uY=eK.TypeError,sY=function(e){if(kK(e))return e;throw uY(aY(e)+" is not a function")},lY=function(e,t){var n=e[t];return null==n?void 0:sY(n)},cY=eK.TypeError,fY=eK.TypeError,dY=UK("toPrimitive"),pY=function(e){var t=function(e,t){if(!WK(e)||oY(e))return e;var n,r=lY(e,dY);if(r){if(void 0===t&&(t="default"),n=tY(r,e,t),!WK(n)||oY(n))return n;throw fY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&kK(n=e.toString)&&!WK(r=tY(n,e)))return r;if(kK(n=e.valueOf)&&!WK(r=tY(n,e)))return r;if("string"!==t&&kK(n=e.toString)&&!WK(r=tY(n,e)))return r;throw cY("Can't convert object to primitive value")}(e,t)}(e,"string");return oY(t)?t:t+""},hY=eK.TypeError,gY=Object.defineProperty,vY={f:YK?gY:function(e,t,n){if(KK(e),t=pY(t),KK(n),QK)try{return gY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw hY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yY=Math.ceil,mY=Math.floor,bY=function(e){var t=+e;return t!=t||0===t?0:(t>0?mY:yY)(t)},wY=Math.max,EY=Math.min,DY=function(e,t){var n=bY(e);return n<0?wY(n+t,0):EY(n,t)},SY=Math.min,xY=function(e){return e>0?SY(bY(e),9007199254740991):0},CY=function(e){return xY(e.length)},AY=function(e){return function(t,n,r){var o,i=gK(t),a=CY(i),u=DY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},OY={includes:AY(!0),indexOf:AY(!1)},kY={},BY=OY.indexOf,FY=iK([].push),TY=function(e,t){var n,r=gK(e),o=0,i=[];for(n in r)!SK(kY,n)&&SK(r,n)&&FY(i,n);for(;t.length>o;)SK(r,n=t[o++])&&(~BY(i,n)||FY(i,n));return i},_Y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PY=Object.keys||function(e){return TY(e,_Y)},jY=YK?Object.defineProperties:function(e,t){KK(e);for(var n,r=gK(t),o=PY(t),i=o.length,a=0;i>a;)vY.f(e,n=o[a++],r[n]);return e},NY=FK("document","documentElement"),IY=bK("keys"),LY=function(e){return IY[e]||(IY[e]=OK(e))},RY=LY("IE_PROTO"),MY=function(){},zY=function(e){return"<script>"+e+"<\/script>"},$Y=function(e){e.write(zY("")),e.close();var t=e.parentWindow.Object;return e=null,t},HY=function(){try{IK=new ActiveXObject("htmlfile")}catch(e){}var e,t;HY="undefined"!=typeof document?document.domain&&IK?$Y(IK):((t=JK("iframe")).style.display="none",NY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zY("document.F=Object")),e.close(),e.F):$Y(IK);for(var n=_Y.length;n--;)delete HY.prototype[_Y[n]];return HY()};kY[RY]=!0;var VY=Object.create||function(e,t){var n;return null!==e?(MY.prototype=KK(e),n=new MY,MY.prototype=null,n[RY]=e):n=HY(),void 0===t?n:jY(n,t)},UY=UK("unscopables"),WY=Array.prototype;null==WY[UY]&&vY.f(WY,UY,{configurable:!0,value:VY(null)});var GY=function(e){WY[UY][e]=!0},qY={},KY=iK(Function.toString);kK(mK.inspectSource)||(mK.inspectSource=function(e){return KY(e)});var YY,XY,ZY,JY=mK.inspectSource,QY=eK.WeakMap,eX=kK(QY)&&/native code/.test(JY(QY)),tX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nX=YK?function(e,t,n){return vY.f(e,t,tX(1,n))}:function(e,t,n){return e[t]=n,e},rX=eK.TypeError,oX=eK.WeakMap;if(eX||mK.state){var iX=mK.state||(mK.state=new oX),aX=iK(iX.get),uX=iK(iX.has),sX=iK(iX.set);YY=function(e,t){if(uX(iX,e))throw new rX("Object already initialized");return t.facade=e,sX(iX,e,t),t},XY=function(e){return aX(iX,e)||{}},ZY=function(e){return uX(iX,e)}}else{var lX=LY("state");kY[lX]=!0,YY=function(e,t){if(SK(e,lX))throw new rX("Object already initialized");return t.facade=e,nX(e,lX,t),t},XY=function(e){return SK(e,lX)?e[lX]:{}},ZY=function(e){return SK(e,lX)}}var cX,fX,dX,pX={set:YY,get:XY,has:ZY,enforce:function(e){return ZY(e)?XY(e):YY(e,{})},getterFor:function(e){return function(t){var n;if(!WK(t)||(n=XY(t)).type!==e)throw rX("Incompatible receiver, "+e+" required");return n}}},hX={}.propertyIsEnumerable,gX=Object.getOwnPropertyDescriptor,vX={f:gX&&!hX.call({1:2},1)?function(e){var t=gX(this,e);return!!t&&t.enumerable}:hX},yX=Object.getOwnPropertyDescriptor,mX={f:YK?yX:function(e,t){if(e=gK(e),t=pY(t),QK)try{return yX(e,t)}catch(e){}if(SK(e,t))return tX(!tY(vX.f,e,t),e[t])}},bX=Function.prototype,wX=YK&&Object.getOwnPropertyDescriptor,EX=SK(bX,"name"),DX={EXISTS:EX,PROPER:EX&&"something"===function(){}.name,CONFIGURABLE:EX&&(!YK||YK&&wX(bX,"name").configurable)},SX=Xq((function(e){var t=DX.CONFIGURABLE,n=pX.get,r=pX.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;kK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!SK(i,"name")||t&&i.name!==f)&&nX(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==eK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:nX(e,n,i)):l?e[n]=i:yK(n,i)})(Function.prototype,"toString",(function(){return kK(this)&&n(this).source||JY(this)}))})),xX=_Y.concat("length","prototype"),CX={f:Object.getOwnPropertyNames||function(e){return TY(e,xX)}},AX={f:Object.getOwnPropertySymbols},OX=iK([].concat),kX=FK("Reflect","ownKeys")||function(e){var t=CX.f(KK(e)),n=AX.f;return n?OX(t,n(e)):t},BX=function(e,t){for(var n=kX(t),r=vY.f,o=mX.f,i=0;i<n.length;i++){var a=n[i];SK(e,a)||r(e,a,o(t,a))}},FX=/#|\.prototype\./,TX=function(e,t){var n=PX[_X(e)];return n==NX||n!=jX&&(kK(t)?aK(t):!!t)},_X=TX.normalize=function(e){return String(e).replace(FX,".").toLowerCase()},PX=TX.data={},jX=TX.NATIVE="N",NX=TX.POLYFILL="P",IX=TX,LX=mX.f,RX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?eK:l?eK[u]||yK(u,{}):(eK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=LX(n,r))&&a.value:n[r],!IX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;BX(i,o)}(e.sham||o&&o.sham)&&nX(i,"sham",!0),SX(n,r,i,e)}},MX=!aK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zX=LY("IE_PROTO"),$X=eK.Object,HX=$X.prototype,VX=MX?$X.getPrototypeOf:function(e){var t=EK(e);if(SK(t,zX))return t[zX];var n=t.constructor;return kK(n)&&t instanceof n?n.prototype:t instanceof $X?HX:null},UX=UK("iterator"),WX=!1;[].keys&&("next"in(dX=[].keys())?(fX=VX(VX(dX)))!==Object.prototype&&(cX=fX):WX=!0);var GX=null==cX||aK((function(){var e={};return cX[UX].call(e)!==e}));GX&&(cX={}),kK(cX[UX])||SX(cX,UX,(function(){return this}));var qX={IteratorPrototype:cX,BUGGY_SAFARI_ITERATORS:WX},KX=vY.f,YX=UK("toStringTag"),XX=function(e,t,n){e&&!SK(e=n?e:e.prototype,YX)&&KX(e,YX,{configurable:!0,value:t})},ZX=qX.IteratorPrototype,JX=function(){return this},QX=eK.String,eZ=eK.TypeError,tZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=iK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return KK(n),function(e){if("object"==typeof e||kK(e))return e;throw eZ("Can't set "+QX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),nZ=DX.PROPER,rZ=DX.CONFIGURABLE,oZ=qX.IteratorPrototype,iZ=qX.BUGGY_SAFARI_ITERATORS,aZ=UK("iterator"),uZ=function(){return this},sZ=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=VY(ZX,{next:tX(1,n)}),XX(e,o,!1),qY[o]=JX}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!iZ&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[aZ]||p["@@iterator"]||o&&p[o],g=!iZ&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=VX(v.call(new e)))!==Object.prototype&&u.next&&(VX(u)!==oZ&&(tZ?tZ(u,oZ):kK(u[aZ])||SX(u,aZ,uZ)),XX(u,f,!0)),nZ&&"values"==o&&h&&"values"!==h.name&&(rZ?nX(p,"name","values"):(d=!0,g=function(){return tY(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(iZ||d||!(l in p))&&SX(p,l,s[l]);else RX({target:t,proto:!0,forced:iZ||d},s);return p[aZ]!==g&&SX(p,aZ,g,{name:o}),qY[t]=g,s},lZ=pX.set,cZ=pX.getterFor("Array Iterator"),fZ=sZ(Array,"Array",(function(e,t){lZ(this,{type:"Array Iterator",target:gK(e),index:0,kind:t})}),(function(){var e=cZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");qY.Arguments=qY.Array,GY("keys"),GY("values"),GY("entries");var dZ={};dZ[UK("toStringTag")]="z";var pZ="[object z]"===String(dZ),hZ=UK("toStringTag"),gZ=eK.Object,vZ="Arguments"==lK(function(){return arguments}()),yZ=pZ?lK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=gZ(e),hZ))?n:vZ?lK(t):"Object"==(r=lK(t))&&kK(t.callee)?"Arguments":r},mZ=pZ?{}.toString:function(){return"[object "+yZ(this)+"]"};pZ||SX(Object.prototype,"toString",mZ,{unsafe:!0});var bZ=eK.String,wZ=function(e){if("Symbol"===yZ(e))throw TypeError("Cannot convert a Symbol value to a string");return bZ(e)},EZ=iK("".charAt),DZ=iK("".charCodeAt),SZ=iK("".slice),xZ=function(e){return function(t,n){var r,o,i=wZ(hK(t)),a=bY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DZ(i,a))<55296||r>56319||a+1===u||(o=DZ(i,a+1))<56320||o>57343?e?EZ(i,a):r:e?SZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},CZ={codeAt:xZ(!1),charAt:xZ(!0)},AZ=CZ.charAt,OZ=pX.set,kZ=pX.getterFor("String Iterator");sZ(String,"String",(function(e){OZ(this,{type:"String Iterator",string:wZ(e),index:0})}),(function(){var e,t=kZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=AZ(n,r),t.index+=e.length,{value:e,done:!1})}));var BZ=function(e,t,n){for(var r in t)SX(e,r,t[r],n);return e},FZ=eK.Array,TZ=Math.max,_Z=CX.f,PZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jZ={f:function(e){return PZ&&"Window"==lK(e)?function(e){try{return _Z(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=CY(e),s=DY(void 0,u),l=DY(u,u),c=FZ(TZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=pY(o))in r?vY.f(r,a,tX(0,i)):r[a]=i;return c.length=f,c}(PZ)}}(e):_Z(gK(e))}},NZ=aK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),IZ=Object.isExtensible,LZ=aK((function(){IZ(1)}))||NZ?function(e){return!!WK(e)&&(!NZ||"ArrayBuffer"!=lK(e))&&(!IZ||IZ(e))}:IZ,RZ=!aK((function(){return Object.isExtensible(Object.preventExtensions({}))})),MZ=Xq((function(e){var t=vY.f,n=!1,r=OK("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=CX.f,t=iK([].splice),o={};o[r]=1,e(o).length&&(CX.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},RX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jZ.f}))},fastKey:function(e,t){if(!WK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!SK(e,r)){if(!LZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!SK(e,r)){if(!LZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return RZ&&n&&LZ(e)&&!SK(e,r)&&i(e),e}};kY[r]=!0})),zZ=iK(iK.bind),$Z=function(e,t){return sY(e),void 0===t?e:zZ?zZ(e,t):function(){return e.apply(t,arguments)}},HZ=UK("iterator"),VZ=Array.prototype,UZ=UK("iterator"),WZ=function(e){if(null!=e)return lY(e,UZ)||lY(e,"@@iterator")||qY[yZ(e)]},GZ=eK.TypeError,qZ=function(e,t,n){var r,o;KK(e);try{if(!(r=lY(e,"return"))){if("throw"===t)throw n;return n}r=tY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return KK(r),n},KZ=eK.TypeError,YZ=function(e,t){this.stopped=e,this.result=t},XZ=YZ.prototype,ZZ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=$Z(t,f),v=function(e){return r&&qZ(r,"normal",e),new YZ(!0,e)},y=function(e){return d?(KK(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=WZ(e)))throw KZ(aY(e)+" is not iterable");if(void 0!==(c=o)&&(qY.Array===c||VZ[HZ]===c)){for(i=0,a=CY(e);a>i;i++)if((u=y(e[i]))&&nY(XZ,u))return u;return new YZ(!1)}r=function(e,t){var n=arguments.length<2?WZ(e):t;if(sY(n))return KK(tY(n,e));throw GZ(aY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=tY(s,r)).done;){try{u=y(l.value)}catch(e){qZ(r,"throw",e)}if("object"==typeof u&&u&&nY(XZ,u))return u}return new YZ(!1)},JZ=eK.TypeError,QZ=function(e,t){if(nY(t,e))return e;throw JZ("Incorrect invocation")},eJ=UK("iterator"),tJ=!1;try{var nJ=0,rJ={next:function(){return{done:!!nJ++}},return:function(){tJ=!0}};rJ[eJ]=function(){return this},Array.from(rJ,(function(){throw 2}))}catch(Hl){}var oJ=Array.isArray||function(e){return"Array"==lK(e)},iJ=function(){},aJ=[],uJ=FK("Reflect","construct"),sJ=/^\s*(?:class|function)\b/,lJ=iK(sJ.exec),cJ=!sJ.exec(iJ),fJ=function(e){if(!kK(e))return!1;try{return uJ(iJ,aJ,e),!0}catch(e){return!1}},dJ=!uJ||aK((function(){var e;return fJ(fJ.call)||!fJ(Object)||!fJ((function(){e=!0}))||e}))?function(e){if(!kK(e))return!1;switch(yZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cJ||!!lJ(sJ,JY(e))}:fJ,pJ=UK("species"),hJ=eK.Array,gJ=function(e,t){return new(function(e){var t;return oJ(e)&&(t=e.constructor,(dJ(t)&&(t===hJ||oJ(t.prototype))||WK(t)&&null===(t=t[pJ]))&&(t=void 0)),void 0===t?hJ:t}(e))(0===t?0:t)},vJ=iK([].push),yJ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=EK(s),g=dK(h),v=$Z(l,c),y=CY(g),m=0,b=f||gJ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:vJ(w,d)}else switch(e){case 4:return!1;case 7:vJ(w,d)}return i?-1:r||o?o:w}},mJ={forEach:yJ(0),map:yJ(1),filter:yJ(2),some:yJ(3),every:yJ(4),find:yJ(5),findIndex:yJ(6),filterReject:yJ(7)},bJ=MZ.getWeakData,wJ=pX.set,EJ=pX.getterFor,DJ=mJ.find,SJ=mJ.findIndex,xJ=iK([].splice),CJ=0,AJ=function(e){return e.frozen||(e.frozen=new OJ)},OJ=function(){this.entries=[]},kJ=function(e,t){return DJ(e.entries,(function(e){return e[0]===t}))};OJ.prototype={get:function(e){var t=kJ(this,e);if(t)return t[1]},has:function(e){return!!kJ(this,e)},set:function(e,t){var n=kJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=SJ(this.entries,(function(t){return t[0]===e}));return~t&&xJ(this.entries,t,1),!!~t}};var BJ,FJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){QZ(e,i),wJ(e,{type:t,id:CJ++,frozen:void 0}),null!=o&&ZZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=EJ(t),u=function(e,t,n){var r=a(e),o=bJ(KK(t),!0);return!0===o?AJ(r).set(t,n):o[r.id]=n,e};return BZ(i,{delete:function(e){var t=a(this);if(!WK(e))return!1;var n=bJ(e);return!0===n?AJ(t).delete(e):n&&SK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!WK(e))return!1;var n=bJ(e);return!0===n?AJ(t).has(e):n&&SK(n,t.id)}}),BZ(i,n?{get:function(e){var t=a(this);if(WK(e)){var n=bJ(e);return!0===n?AJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},TJ=pX.enforce,_J=!eK.ActiveXObject&&"ActiveXObject"in eK,PJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=eK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=iK(u[e]);SX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!WK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!WK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!WK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(IX(e,!kK(a)||!(o||u.forEach&&!aK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),MZ.enable();else if(IX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=aK((function(){f.has(1)})),h=function(e,t){if(!tJ)return!1;var n=!1;try{var r={};r[eJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&aK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){QZ(e,u);var n=function(e,t,n){var r,o;return tZ&&kK(r=t.constructor)&&r!==n&&WK(o=r.prototype)&&o!==n.prototype&&tZ(e,o),e}(new a,e,s);return null!=t&&ZZ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,RX({global:!0,forced:s!=a},l),XX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",PJ,FJ);if(eX&&_J){BJ=FJ.getConstructor(PJ,"WeakMap",!0),MZ.enable();var NJ=jJ.prototype,IJ=iK(NJ.delete),LJ=iK(NJ.has),RJ=iK(NJ.get),MJ=iK(NJ.set);BZ(NJ,{delete:function(e){if(WK(e)&&!LZ(e)){var t=TJ(this);return t.frozen||(t.frozen=new BJ),IJ(this,e)||t.frozen.delete(e)}return IJ(this,e)},has:function(e){if(WK(e)&&!LZ(e)){var t=TJ(this);return t.frozen||(t.frozen=new BJ),LJ(this,e)||t.frozen.has(e)}return LJ(this,e)},get:function(e){if(WK(e)&&!LZ(e)){var t=TJ(this);return t.frozen||(t.frozen=new BJ),LJ(this,e)?RJ(this,e):t.frozen.get(e)}return RJ(this,e)},set:function(e,t){if(WK(e)&&!LZ(e)){var n=TJ(this);n.frozen||(n.frozen=new BJ),LJ(this,e)?MJ(this,e,t):n.frozen.set(e,t)}else MJ(this,e,t);return this}})}var zJ={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},$J=JK("span").classList,HJ=$J&&$J.constructor&&$J.constructor.prototype,VJ=HJ===Object.prototype?void 0:HJ,UJ=UK("iterator"),WJ=UK("toStringTag"),GJ=fZ.values,qJ=function(e,t){if(e){if(e[UJ]!==GJ)try{nX(e,UJ,GJ)}catch(t){e[UJ]=GJ}if(e[WJ]||nX(e,WJ,t),zJ[t])for(var n in fZ)if(e[n]!==fZ[n])try{nX(e,n,fZ[n])}catch(t){e[n]=fZ[n]}}};for(var KJ in zJ)qJ(eK[KJ]&&eK[KJ].prototype,KJ);qJ(VJ,"DOMTokenList");var YJ=new WeakMap,XJ={type:"list-item",renderElem:function(e,t,n){YJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=tk.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=$f.previous(c),d=_f.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];nd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Ng("div",{style:u},Ng("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Ng("span",null,t))}},ZJ=function(e,t){return ZJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ZJ(e,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 JJ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ZJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function QJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function tQ(e){return _f.nodes(e,{at:e.selection||void 0,match:function(t){return 1===tk.findPath(e,t).length}})}var nQ=OY.includes;RX({target:"Array",proto:!0},{includes:function(e){return nQ(this,e,arguments.length>1?arguments[1]:void 0)}}),GY("includes");var rQ,oQ,iQ=function(){var e=KK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},aQ=eK.RegExp,uQ=aK((function(){var e=aQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),sQ=uQ||aK((function(){return!aQ("a","y").sticky})),lQ={BROKEN_CARET:uQ||aK((function(){var e=aQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:sQ,UNSUPPORTED_Y:uQ},cQ=eK.RegExp,fQ=aK((function(){var e=cQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),dQ=eK.RegExp,pQ=aK((function(){var e=dQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hQ=pX.get,gQ=bK("native-string-replace",String.prototype.replace),vQ=RegExp.prototype.exec,yQ=vQ,mQ=iK("".charAt),bQ=iK("".indexOf),wQ=iK("".replace),EQ=iK("".slice),DQ=(oQ=/b*/g,tY(vQ,rQ=/a/,"a"),tY(vQ,oQ,"a"),0!==rQ.lastIndex||0!==oQ.lastIndex),SQ=lQ.BROKEN_CARET,xQ=void 0!==/()??/.exec("")[1];(DQ||xQ||SQ||fQ||pQ)&&(yQ=function(e){var t,n,r,o,i,a,u,s=this,l=hQ(s),c=wZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tY(yQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=SQ&&s.sticky,h=tY(iQ,s),g=s.source,v=0,y=c;if(p&&(h=wQ(h,"y",""),-1===bQ(h,"g")&&(h+="g"),y=EQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==mQ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),xQ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),DQ&&(r=s.lastIndex),o=tY(vQ,p?n:s,y),p?o?(o.input=EQ(o.input,v),o[0]=EQ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:DQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xQ&&o&&o.length>1&&tY(gQ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=VY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var CQ=yQ;RX({target:"RegExp",proto:!0,forced:/./.exec!==CQ},{exec:CQ});var AQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return tk.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){if(_f.isVoid(e,t)&&_f.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?wd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):wd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),OQ='<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>',kQ='<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>',BQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=$P("listModule.unOrderedList"),t.iconSvg=OQ,t}return JJ(t,e),t}(AQ),FQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=$P("listModule.orderedList"),t.iconSvg=kQ,t}return JJ(t,e),t}(AQ),TQ={key:"bulletedList",factory:function(){return new BQ}},_Q={key:"numberedList",factory:function(){return new FQ}},PQ=[],jQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=YJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tk.findPath(t,e);if(0===s[0])return u+1;var l=$f.previous(s),c=_f.node(t,l);if(!c)return 0;var f=eQ(c,1)[0];if(tk.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",PQ.push(i);var s=function(e){var t=YJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tk.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=$f.next(s),c=_f.node(t,l);if(!c)return 0;var f=eQ(c,1)[0];if(tk.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+PQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},NQ=UK("species"),IQ=mJ.filter,LQ=LK>=51||!aK((function(){var e=[];return(e.constructor={})[NQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));RX({target:"Array",proto:!0,forced:!LQ},{filter:function(e){return IQ(this,e,arguments.length>1?arguments[1]:void 0)}});var RQ=Function.prototype,MQ=RQ.apply,zQ=RQ.bind,$Q=RQ.call,HQ="object"==typeof Reflect&&Reflect.apply||(zQ?$Q.bind(MQ):function(){return $Q.apply(MQ,arguments)}),VQ=(UK("species"),RegExp.prototype),UQ=CZ.charAt,WQ=function(e,t,n){return t+(n?UQ(e,t).length:1)},GQ=Math.floor,qQ=iK("".charAt),KQ=iK("".replace),YQ=iK("".slice),XQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZQ=/\$([$&'`]|\d{1,2})/g,JQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=ZQ;return void 0!==o&&(o=EK(o),s=XQ),KQ(i,s,(function(i,s){var l;switch(qQ(s,0)){case"$":return"$";case"&":return e;case"`":return YQ(t,0,n);case"'":return YQ(t,a);case"<":l=o[YQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=GQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?qQ(s,1):r[f-1]+qQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},QQ=eK.TypeError,e0=function(e,t){var n=e.exec;if(kK(n)){var r=tY(n,e,t);return null!==r&&KK(r),r}if("RegExp"===lK(e))return tY(CQ,e,t);throw QQ("RegExp#exec called on incompatible receiver")},t0=UK("replace"),n0=Math.max,r0=Math.min,o0=iK([].concat),i0=iK([].push),a0=iK("".indexOf),u0=iK("".slice),s0="$0"==="a".replace(/./,"$0"),l0=!!/./[t0]&&""===/./[t0]("a","$0");!function(e,t,n,r){var o=UK(e),i=!aK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!aK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=iK(/./[o]),s=function(e,t,n){var r=l0?"$":"$0";return[function(e,n){var r=hK(this),o=null==e?void 0:lY(e,t0);return o?tY(o,e,r,n):tY(t,wZ(r),e,n)},function(e,o){var i=KK(this),a=wZ(e);if("string"==typeof o&&-1===a0(o,r)&&-1===a0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=kK(o);s||(o=wZ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=e0(i,a);if(null===d)break;if(i0(f,d),!l)break;""===wZ(d[0])&&(i.lastIndex=WQ(a,xY(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=wZ((d=f[v])[0]),m=n0(r0(bY(d.index),a.length),0),b=[],w=1;w<d.length;w++)i0(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=o0([y],b,m,a);void 0!==E&&i0(D,E);var S=wZ(HQ(o,void 0,D))}else S=JQ(y,a,m,b,E,o);m>=g&&(h+=u0(a,g,m)+S,g=m+y.length)}return h+u0(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=iK(e),s=t.exec;return s===CQ||s===VQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));SX(String.prototype,e,s[0]),SX(VQ,o,s[1])}}("replace",0,!!aK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!s0||l0);var c0=eK.TypeError,f0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&$Z(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&oJ(s))l=CY(s),c=f0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw c0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},d0=f0;function p0(e){return e.length?e[0].tagName.toLowerCase():""}RX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=EK(this),n=CY(t),r=gJ(t,0);return r.length=d0(r,t,t,n,0,void 0===e?1:bY(e)),r}}),GY("flat"),RX({global:!0},{globalThis:eK}),sh&&($p.fn.append=sh),Wp&&($p.fn.attr=Wp),ch&&($p.fn.parent=ch);var h0={renderElems:[XJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Yf.isExpanded(n))t(e);else{var r=tk.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?wd.setNodes(o,{level:a-1}):wd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Yf.isCollapsed(a)){var u=tk.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void wd.setNodes(o,{level:l+1})}}if(Yf.isExpanded(a)){var c=0,f=!1;try{for(var d=QJ(tQ(o)),p=d.next();!p.done;p=d.next()){var h=eQ(p.value,1)[0];"list-item"===tk.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=QJ(tQ(o)),v=g.next();!v.done;v=g.next()){var y=eQ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,wd.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=eQ(e,2),n=t[0],i=t[1],a=tk.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||wd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[TQ,_Q],elemsToHtml:[jQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===p0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=p0(n);"ul"===r||"ol"===r;)r=p0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},g0=i((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",E="[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[i]=x[a]=x[w]=x[u]=x[E]=x[s]=x[l]=x[c]=x[f]=x[d]=x[p]=x[g]=x[v]=x[y]=x[b]=!1;var C="object"==typeof r&&r&&r.Object===Object&&r,A="object"==typeof self&&self&&self.Object===Object&&self,O=C||A||Function("return this")(),k=t&&!t.nodeType&&t,B=k&&e&&!e.nodeType&&e,F=B&&B.exports===k,T=F&&C.process,_=function(){try{return T&&T.binding&&T.binding("util")}catch(r){}}(),P=_&&_.isTypedArray;function j(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L=Array.prototype,R=Function.prototype,M=Object.prototype,z=O["__core-js_shared__"],$=R.toString,H=M.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U=M.toString,W=RegExp("^"+$.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=F?O.Buffer:void 0,q=O.Symbol,K=O.Uint8Array,Y=M.propertyIsEnumerable,X=L.splice,Z=q?q.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=G?G.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Be(O,"DataView"),ne=Be(O,"Map"),re=Be(O,"Promise"),oe=Be(O,"Set"),ie=Be(O,"WeakMap"),ae=Be(Object,"create"),ue=Pe(te),se=Pe(ne),le=Pe(re),ce=Pe(oe),fe=Pe(ie),de=q?q.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ge(e);this.size=t.size}function be(e,t){var n=Ie(e),r=!n&&Ne(e),o=!n&&!r&&Le(e),i=!n&&!r&&!o&&He(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!H.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_e(l,s))||u.push(l);return u}function we(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=H.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[Z]=n:delete e[Z]),o}(e):function(e){return U.call(e)}(e)}function De(e){return $e(e)&&Ee(e)==i}function Se(e,t,n,r,o){return e===t||(null==e||null==t||!$e(e)&&!$e(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Ie(e),b=Ie(t),D=h?a:Te(e),S=b?a:Te(t),x=(D=D==i?p:D)==p,C=(S=S==i?p:S)==p,A=D==S;if(A&&Le(e)){if(!Le(t))return!1;h=!0,x=!1}if(A&&!x)return c||(c=new me),h||He(e)?Ae(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case u:case s:case d:return je(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=N;case v:var p=1&r;if(c||(c=I),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ae(c(e),c(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,D,n,r,o,c);if(!(1&n)){var O=x&&H.call(e,"__wrapped__"),k=C&&H.call(t,"__wrapped__");if(O||k){var B=O?e.value():e,F=k?t.value():t;return c||(c=new me),o(B,F,n,r,c)}}return!!A&&(c||(c=new me),function(e,t,n,r,o,i){var a=1&n,u=Oe(e),s=u.length,l=Oe(t).length;if(s!=l&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in t:H.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var g=e[f=u[c]],v=t[f];if(r)var y=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,c))}(e,t,n,r,Se,o))}function xe(e){return!(!ze(e)||function(e){return!!V&&V in e}(e))&&(Re(e)?W:D).test(Pe(e))}function Ce(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||M,t!==r)return ee(e);var t,n,r,o=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ae(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!j(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Oe(e){return function(e,t,n){var r=t(e);return Ie(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ve,Fe)}function ke(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:H.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ge),string:new he}},ve.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return ke(this,e).get(e)},ve.prototype.has=function(e){return ke(this,e).has(e)},ve.prototype.set=function(e,t){var n=ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ge,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Fe=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(J(e),(function(t){return Y.call(e,t)})))}:function(){return[]},Te=Ee;function _e(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(te&&Te(new te(new ArrayBuffer(1)))!=E||ne&&Te(new ne)!=f||re&&Te(re.resolve())!=h||oe&&Te(new oe)!=v||ie&&Te(new ie)!=b)&&(Te=function(e){var t=Ee(e),n=t==p?e.constructor:void 0,r=n?Pe(n):"";if(r)switch(r){case ue:return E;case se:return f;case le:return h;case ce:return v;case fe:return b}return t});var Ne=De(function(){return arguments}())?De:function(e){return $e(e)&&H.call(e,"callee")&&!Y.call(e,"callee")},Ie=Array.isArray,Le=Q||function(){return!1};function Re(e){if(!ze(e))return!1;var t=Ee(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function $e(e){return null!=e&&"object"==typeof e}var He=P?function(e){return function(t){return e(t)}}(P):function(e){return $e(e)&&Me(e.length)&&!!x[Ee(e)]};function Ve(e){return null!=(t=e)&&Me(t.length)&&!Re(t)?be(e):Ce(e);var t}e.exports=function(e,t){return Se(e,t)}}));zP("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"}}),zP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var v0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function y0(e){var t={exports:{}};return e(t,t.exports),t.exports}var m0,b0,w0=function(e){return e&&e.Math==Math&&e},E0=w0("object"==typeof globalThis&&globalThis)||w0("object"==typeof window&&window)||w0("object"==typeof self&&self)||w0("object"==typeof v0&&v0)||function(){return this}()||Function("return this")(),D0=function(e){try{return!!e()}catch(e){return!0}},S0=!D0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x0=Function.prototype.call,C0=x0.bind?x0.bind(x0):function(){return x0.apply(x0,arguments)},A0={}.propertyIsEnumerable,O0=Object.getOwnPropertyDescriptor,k0={f:O0&&!A0.call({1:2},1)?function(e){var t=O0(this,e);return!!t&&t.enumerable}:A0},B0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F0=Function.prototype,T0=F0.bind,_0=F0.call,P0=T0&&T0.bind(_0),j0=T0?function(e){return e&&P0(_0,e)}:function(e){return e&&function(){return _0.apply(e,arguments)}},N0=j0({}.toString),I0=j0("".slice),L0=function(e){return I0(N0(e),8,-1)},R0=E0.Object,M0=j0("".split),z0=D0((function(){return!R0("z").propertyIsEnumerable(0)}))?function(e){return"String"==L0(e)?M0(e,""):R0(e)}:R0,$0=E0.TypeError,H0=function(e){if(null==e)throw $0("Can't call method on "+e);return e},V0=function(e){return z0(H0(e))},U0=function(e){return"function"==typeof e},W0=function(e){return"object"==typeof e?null!==e:U0(e)},G0=function(e){return U0(e)?e:void 0},q0=function(e,t){return arguments.length<2?G0(E0[e]):E0[e]&&E0[e][t]},K0=j0({}.isPrototypeOf),Y0=q0("navigator","userAgent")||"",X0=E0.process,Z0=E0.Deno,J0=X0&&X0.versions||Z0&&Z0.version,Q0=J0&&J0.v8;Q0&&(b0=(m0=Q0.split("."))[0]>0&&m0[0]<4?1:+(m0[0]+m0[1])),!b0&&Y0&&(!(m0=Y0.match(/Edge\/(\d+)/))||m0[1]>=74)&&(m0=Y0.match(/Chrome\/(\d+)/))&&(b0=+m0[1]);var e1=b0,t1=!!Object.getOwnPropertySymbols&&!D0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e1&&e1<41})),n1=t1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,r1=E0.Object,o1=n1?function(e){return"symbol"==typeof e}:function(e){var t=q0("Symbol");return U0(t)&&K0(t.prototype,r1(e))},i1=E0.String,a1=function(e){try{return i1(e)}catch(e){return"Object"}},u1=E0.TypeError,s1=function(e){if(U0(e))return e;throw u1(a1(e)+" is not a function")},l1=function(e,t){var n=e[t];return null==n?void 0:s1(n)},c1=E0.TypeError,f1=Object.defineProperty,d1=function(e,t){try{f1(E0,e,{value:t,configurable:!0,writable:!0})}catch(i){E0[e]=t}return t},p1=E0["__core-js_shared__"]||d1("__core-js_shared__",{}),h1=y0((function(e){(e.exports=function(e,t){return p1[e]||(p1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),g1=E0.Object,v1=function(e){return g1(H0(e))},y1=j0({}.hasOwnProperty),m1=Object.hasOwn||function(e,t){return y1(v1(e),t)},b1=0,w1=Math.random(),E1=j0(1..toString),D1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+E1(++b1+w1,36)},S1=h1("wks"),x1=E0.Symbol,C1=x1&&x1.for,A1=n1?x1:x1&&x1.withoutSetter||D1,O1=function(e){if(!m1(S1,e)||!t1&&"string"!=typeof S1[e]){var t="Symbol."+e;t1&&m1(x1,e)?S1[e]=x1[e]:S1[e]=n1&&C1?C1(t):A1(t)}return S1[e]},k1=E0.TypeError,B1=O1("toPrimitive"),F1=function(e){var t=function(e,t){if(!W0(e)||o1(e))return e;var n,r=l1(e,B1);if(r){if(void 0===t&&(t="default"),n=C0(r,e,t),!W0(n)||o1(n))return n;throw k1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&U0(n=e.toString)&&!W0(r=C0(n,e)))return r;if(U0(n=e.valueOf)&&!W0(r=C0(n,e)))return r;if("string"!==t&&U0(n=e.toString)&&!W0(r=C0(n,e)))return r;throw c1("Can't convert object to primitive value")}(e,t)}(e,"string");return o1(t)?t:t+""},T1=E0.document,_1=W0(T1)&&W0(T1.createElement),P1=function(e){return _1?T1.createElement(e):{}},j1=!S0&&!D0((function(){return 7!=Object.defineProperty(P1("div"),"a",{get:function(){return 7}}).a})),N1=Object.getOwnPropertyDescriptor,I1={f:S0?N1:function(e,t){if(e=V0(e),t=F1(t),j1)try{return N1(e,t)}catch(e){}if(m1(e,t))return B0(!C0(k0.f,e,t),e[t])}},L1=E0.String,R1=E0.TypeError,M1=function(e){if(W0(e))return e;throw R1(L1(e)+" is not an object")},z1=E0.TypeError,$1=Object.defineProperty,H1={f:S0?$1:function(e,t,n){if(M1(e),t=F1(t),M1(n),j1)try{return $1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw z1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},V1=S0?function(e,t,n){return H1.f(e,t,B0(1,n))}:function(e,t,n){return e[t]=n,e},U1=j0(Function.toString);U0(p1.inspectSource)||(p1.inspectSource=function(e){return U1(e)});var W1,G1,q1,K1=p1.inspectSource,Y1=E0.WeakMap,X1=U0(Y1)&&/native code/.test(K1(Y1)),Z1=h1("keys"),J1=function(e){return Z1[e]||(Z1[e]=D1(e))},Q1={},e2=E0.TypeError,t2=E0.WeakMap;if(X1||p1.state){var n2=p1.state||(p1.state=new t2),r2=j0(n2.get),o2=j0(n2.has),i2=j0(n2.set);W1=function(e,t){if(o2(n2,e))throw new e2("Object already initialized");return t.facade=e,i2(n2,e,t),t},G1=function(e){return r2(n2,e)||{}},q1=function(e){return o2(n2,e)}}else{var a2=J1("state");Q1[a2]=!0,W1=function(e,t){if(m1(e,a2))throw new e2("Object already initialized");return t.facade=e,V1(e,a2,t),t},G1=function(e){return m1(e,a2)?e[a2]:{}},q1=function(e){return m1(e,a2)}}var u2={set:W1,get:G1,has:q1,enforce:function(e){return q1(e)?G1(e):W1(e,{})},getterFor:function(e){return function(t){var n;if(!W0(t)||(n=G1(t)).type!==e)throw e2("Incompatible receiver, "+e+" required");return n}}},s2=Function.prototype,l2=S0&&Object.getOwnPropertyDescriptor,c2=m1(s2,"name"),f2={EXISTS:c2,PROPER:c2&&"something"===function(){}.name,CONFIGURABLE:c2&&(!S0||S0&&l2(s2,"name").configurable)},d2=y0((function(e){var t=f2.CONFIGURABLE,n=u2.get,r=u2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;U0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!m1(i,"name")||t&&i.name!==f)&&V1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==E0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:V1(e,n,i)):l?e[n]=i:d1(n,i)})(Function.prototype,"toString",(function(){return U0(this)&&n(this).source||K1(this)}))})),p2=Math.ceil,h2=Math.floor,g2=function(e){var t=+e;return t!=t||0===t?0:(t>0?h2:p2)(t)},v2=Math.max,y2=Math.min,m2=function(e,t){var n=g2(e);return n<0?v2(n+t,0):y2(n,t)},b2=Math.min,w2=function(e){return e>0?b2(g2(e),9007199254740991):0},E2=function(e){return w2(e.length)},D2=function(e){return function(t,n,r){var o,i=V0(t),a=E2(i),u=m2(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},S2=(D2(!0),D2(!1)),x2=j0([].push),C2=function(e,t){var n,r=V0(e),o=0,i=[];for(n in r)!m1(Q1,n)&&m1(r,n)&&x2(i,n);for(;t.length>o;)m1(r,n=t[o++])&&(~S2(i,n)||x2(i,n));return i},A2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],O2=A2.concat("length","prototype"),k2={f:Object.getOwnPropertyNames||function(e){return C2(e,O2)}},B2={f:Object.getOwnPropertySymbols},F2=j0([].concat),T2=q0("Reflect","ownKeys")||function(e){var t=k2.f(M1(e)),n=B2.f;return n?F2(t,n(e)):t},_2=function(e,t){for(var n=T2(t),r=H1.f,o=I1.f,i=0;i<n.length;i++){var a=n[i];m1(e,a)||r(e,a,o(t,a))}},P2=/#|\.prototype\./,j2=function(e,t){var n=I2[N2(e)];return n==R2||n!=L2&&(U0(t)?D0(t):!!t)},N2=j2.normalize=function(e){return String(e).replace(P2,".").toLowerCase()},I2=j2.data={},L2=j2.NATIVE="N",R2=j2.POLYFILL="P",M2=j2,z2=I1.f,$2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?E0:l?E0[u]||d1(u,{}):(E0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=z2(n,r))&&a.value:n[r],!M2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_2(i,o)}(e.sham||o&&o.sham)&&V1(i,"sham",!0),d2(n,r,i,e)}},H2={};H2[O1("toStringTag")]="z";var V2="[object z]"===String(H2),U2=O1("toStringTag"),W2=E0.Object,G2="Arguments"==L0(function(){return arguments}()),q2=V2?L0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=W2(e),U2))?n:G2?L0(t):"Object"==(r=L0(t))&&U0(t.callee)?"Arguments":r},K2=E0.String,Y2=function(e){if("Symbol"===q2(e))throw TypeError("Cannot convert a Symbol value to a string");return K2(e)},X2=/"/g,Z2=j0("".replace);$2({target:"String",proto:!0,forced:D0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Y2(H0(this)),r="<a",(r+=' name="'+Z2(Y2(t),X2,""")+'"')+">"+n+"</a>";var t,n,r}});var J2,Q2=function(){var e=M1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},e4=E0.RegExp,t4=D0((function(){var e=e4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),n4=t4||D0((function(){return!e4("a","y").sticky})),r4={BROKEN_CARET:t4||D0((function(){var e=e4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:n4,UNSUPPORTED_Y:t4},o4=Object.keys||function(e){return C2(e,A2)},i4=S0?Object.defineProperties:function(e,t){M1(e);for(var n,r=V0(t),o=o4(t),i=o.length,a=0;i>a;)H1.f(e,n=o[a++],r[n]);return e},a4=q0("document","documentElement"),u4=J1("IE_PROTO"),s4=function(){},l4=function(e){return"<script>"+e+"<\/script>"},c4=function(e){e.write(l4("")),e.close();var t=e.parentWindow.Object;return e=null,t},f4=function(){try{J2=new ActiveXObject("htmlfile")}catch(e){}var e,t;f4="undefined"!=typeof document?document.domain&&J2?c4(J2):((t=P1("iframe")).style.display="none",a4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(l4("document.F=Object")),e.close(),e.F):c4(J2);for(var n=A2.length;n--;)delete f4.prototype[A2[n]];return f4()};Q1[u4]=!0;var d4,p4,h4=Object.create||function(e,t){var n;return null!==e?(s4.prototype=M1(e),n=new s4,s4.prototype=null,n[u4]=e):n=f4(),void 0===t?n:i4(n,t)},g4=E0.RegExp,v4=D0((function(){var e=g4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),y4=E0.RegExp,m4=D0((function(){var e=y4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),b4=u2.get,w4=h1("native-string-replace",String.prototype.replace),E4=RegExp.prototype.exec,D4=E4,S4=j0("".charAt),x4=j0("".indexOf),C4=j0("".replace),A4=j0("".slice),O4=(p4=/b*/g,C0(E4,d4=/a/,"a"),C0(E4,p4,"a"),0!==d4.lastIndex||0!==p4.lastIndex),k4=r4.BROKEN_CARET,B4=void 0!==/()??/.exec("")[1];(O4||B4||k4||v4||m4)&&(D4=function(e){var t,n,r,o,i,a,u,s=this,l=b4(s),c=Y2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=C0(D4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=k4&&s.sticky,h=C0(Q2,s),g=s.source,v=0,y=c;if(p&&(h=C4(h,"y",""),-1===x4(h,"g")&&(h+="g"),y=A4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==S4(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),B4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),O4&&(r=s.lastIndex),o=C0(E4,p?n:s,y),p?o?(o.input=A4(o.input,v),o[0]=A4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:O4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),B4&&o&&o.length>1&&C0(w4,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=h4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var F4=D4;$2({target:"RegExp",proto:!0,forced:/./.exec!==F4},{exec:F4});var T4=Array.isArray||function(e){return"Array"==L0(e)},_4=function(){},P4=[],j4=q0("Reflect","construct"),N4=/^\s*(?:class|function)\b/,I4=j0(N4.exec),L4=!N4.exec(_4),R4=function(e){if(!U0(e))return!1;try{return j4(_4,P4,e),!0}catch(e){return!1}},M4=!j4||D0((function(){var e;return R4(R4.call)||!R4(Object)||!R4((function(){e=!0}))||e}))?function(e){if(!U0(e))return!1;switch(q2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L4||!!I4(N4,K1(e))}:R4,z4=function(e,t,n){var r=F1(t);r in e?H1.f(e,r,B0(0,n)):e[r]=n},$4=O1("species"),H4=function(e){return e1>=51||!D0((function(){var t=[];return(t.constructor={})[$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},V4=j0([].slice),U4=H4("slice"),W4=O1("species"),G4=E0.Array,q4=Math.max;function K4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Y4(e){var t=e.selection;if(null==t)return!1;var n=K4(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=K4(n,2)[1],o=_f.start(e,r);if(Wf.equals(t.anchor,o))return!0}return!1}function X4(e,t){var n,r,o=_f.nodes(e,{at:t,match:function(e){return"table"===tk.getNodeType(e)}}),i=!1;try{for(var a=
- /*! *****************************************************************************
- 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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}$2({target:"Array",proto:!0,forced:!U4},{slice:function(e,t){var n,r,o,i=V0(this),a=E2(i),u=m2(e,a),s=m2(void 0===t?a:t,a);if(T4(i)&&(n=i.constructor,(M4(n)&&(n===G4||T4(n.prototype))||W0(n)&&null===(n=n[W4]))&&(n=void 0),n===G4||void 0===n))return V4(i,u,s);for(r=new(void 0===n?G4:n)(q4(s-u,0)),o=0;u<s;u++,o++)u in i&&z4(r,o,i[u]);return r.length=o,r}});var Z4=j0(j0.bind),J4=O1("species"),Q4=E0.Array,e6=function(e,t){return new(function(e){var t;return T4(e)&&(t=e.constructor,(M4(t)&&(t===Q4||T4(t.prototype))||W0(t)&&null===(t=t[J4]))&&(t=void 0)),void 0===t?Q4:t}(e))(0===t?0:t)},t6=j0([].push),n6=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=v1(s),g=z0(h),v=function(e,t){return s1(e),void 0===t?e:Z4?Z4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=E2(g),m=0,b=f||e6,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:t6(w,d)}else switch(e){case 4:return!1;case 7:t6(w,d)}return i?-1:r||o?o:w}},r6={forEach:n6(0),map:n6(1),filter:n6(2),some:n6(3),every:n6(4),find:n6(5),findIndex:n6(6),filterReject:n6(7)},o6=r6.map;$2({target:"Array",proto:!0,forced:!H4("map")},{map:function(e){return o6(this,e,arguments.length>1?arguments[1]:void 0)}});var i6=V2?{}.toString:function(){return"[object "+q2(this)+"]"};function a6(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function u6(e){return a6(e).every((function(e){return!!e.isHeader}))}V2||d2(Object.prototype,"toString",i6,{unsafe:!0});var s6=f2.PROPER,l6=RegExp.prototype,c6=l6.toString,f6=j0(Q2),d6=D0((function(){return"/a/b"!=c6.call({source:"a",flags:"b"})})),p6=s6&&"toString"!=c6.name;(d6||p6)&&d2(RegExp.prototype,"toString",(function(){var e=M1(this),t=Y2(e.source),n=e.flags;return"/"+t+"/"+Y2(void 0===n&&K0(l6,e)&&!("flags"in l6)?f6(e):n)}),{unsafe:!0});var h6=O1("unscopables"),g6=Array.prototype;null==g6[h6]&&H1.f(g6,h6,{configurable:!0,value:h4(null)});var v6=r6.find,y6=!0;"find"in[]&&Array(1).find((function(){y6=!1})),$2({target:"Array",proto:!0,forced:y6},{find:function(e){return v6(this,e,arguments.length>1?arguments[1]:void 0)}}),g6[h6].find=!0;var m6=Function.prototype,b6=m6.apply,w6=m6.bind,E6=m6.call,D6="object"==typeof Reflect&&Reflect.apply||(w6?E6.bind(b6):function(){return E6.apply(b6,arguments)}),S6=O1("species"),x6=RegExp.prototype,C6=function(e,t,n,r){var o=O1(e),i=!D0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!D0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[S6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=j0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=j0(e),s=t.exec;return s===F4||s===x6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));d2(String.prototype,e,s[0]),d2(x6,o,s[1])}r&&V1(x6[o],"sham",!0)},A6=O1("match"),O6=E0.TypeError,k6=O1("species"),B6=j0("".charAt),F6=j0("".charCodeAt),T6=j0("".slice),_6=function(e){return function(t,n){var r,o,i=Y2(H0(t)),a=g2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=F6(i,a))<55296||r>56319||a+1===u||(o=F6(i,a+1))<56320||o>57343?e?B6(i,a):r:e?T6(i,a,a+2):o-56320+(r-55296<<10)+65536}},P6=(_6(!1),_6(!0)),j6=function(e,t,n){return t+(n?P6(e,t).length:1)},N6=E0.Array,I6=Math.max,L6=function(e,t,n){for(var r=E2(e),o=m2(t,r),i=m2(void 0===n?r:n,r),a=N6(I6(i-o,0)),u=0;o<i;o++,u++)z4(a,u,e[o]);return a.length=u,a},R6=E0.TypeError,M6=function(e,t){var n=e.exec;if(U0(n)){var r=C0(n,e,t);return null!==r&&M1(r),r}if("RegExp"===L0(e))return C0(F4,e,t);throw R6("RegExp#exec called on incompatible receiver")},z6=r4.UNSUPPORTED_Y,$6=Math.min,H6=[].push,V6=j0(/./.exec),U6=j0(H6),W6=j0("".slice);C6("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Y2(H0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!W0(r=e)||!(void 0!==(o=r[A6])?o:"RegExp"==L0(r)))return C0(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=C0(F4,p,i))&&!((s=p.lastIndex)>d&&(U6(c,W6(i,d,u.index)),u.length>1&&u.index<i.length&&D6(H6,c,L6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&V6(p,"")||U6(c,""):U6(c,W6(i,d)),c.length>a?L6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:C0(t,this,e,n)}:t,[function(t,n){var o=H0(this),i=null==t?void 0:l1(t,e);return i?C0(i,t,o,n):C0(r,Y2(o),t,n)},function(e,o){var i=M1(this),a=Y2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=M1(e).constructor;return void 0===r||null==(n=M1(r)[k6])?t:function(e){if(M4(e))return e;throw O6(a1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(z6?"g":"y"),f=new s(z6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===M6(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=z6?0:h;var v,y=M6(f,z6?W6(a,h):a);if(null===y||(v=$6(w2(f.lastIndex+(z6?h:0)),a.length))===p)h=j6(a,h,l);else{if(U6(g,W6(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(U6(g,y[m]),g.length===d)return g;h=p=v}}return U6(g,W6(a,p)),g}]}),!!D0((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),z6);var G6="\t\n\v\f\r \u2028\u2029\ufeff",q6=j0("".replace),K6="["+G6+"]",Y6=RegExp("^"+K6+K6+"*"),X6=RegExp(K6+K6+"*$"),Z6=function(e){return function(t){var n=Y2(H0(t));return 1&e&&(n=q6(n,Y6,"")),2&e&&(n=q6(n,X6,"")),n}},J6={start:Z6(1),end:Z6(2),trim:Z6(3)},Q6=f2.PROPER,e3=J6.trim;function t3(e){return e.length?e[0].tagName.toLowerCase():""}$2({target:"String",proto:!0,forced:function(e){return D0((function(){return!!G6[e]()||"
"!=="
"[e]()||Q6&&G6[e].name!==e}))}("trim")},{trim:function(){return e3(this)}}),$2({global:!0},{globalThis:E0}),sh&&($p.fn.append=sh),Yp&&($p.fn.on=Yp),bh&&($p.fn.focus=bh),Wp&&($p.fn.attr=Wp),Kp&&($p.fn.val=Kp),ih&&($p.fn.html=ih),qp&&($p.fn.dataset=qp),Hp&&($p.fn.addClass=Hp),Vp&&($p.fn.removeClass=Vp),ph&&($p.fn.children=ph),rh&&($p.fn.each=rh),dh&&($p.fn.find=dh);var n3=!1,r3=0,o3=0,i3=null,a3=null,u3=$p("body");function s3(e){n3=!1,a3=null,i3=null,u3.off("mousemove",l3),u3.off("mouseup",s3)}u3.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),n3=!0;var n=e.clientX;r3=n;var r=t.getBoundingClientRect().width;o3=r,u3.on("mousemove",l3),u3.on("mouseup",s3)}}));var l3=ng((function(e){if(n3&&null!=a3&&null!=i3){e.preventDefault();var t=e.clientX,n=o3+(t-r3);(n=Math.floor(100*n)/100)<30&&(n=30),wd.setNodes(a3,{width:n.toString()},{at:i3})}}),100),c3={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Yf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=tk.findPath(e,t),a=_f.start(e,i),u=_f.end(e,i),s=Wf.compare(r,u)<=0&&Wf.compare(r,a)>=0,l=Wf.compare(o,u)<=0&&Wf.compare(o,a)>=0;return!!(s&&l&&$f.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Ng("div",{className:"table-container","data-selected":tk.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=tk.findPath(n,e),o=_f.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Ng("table",{width:i,contentEditable:r},Ng("colgroup",null,a6(e).map((function(e){var t=e.width;return Ng("col",{width:void 0===t?"auto":t})}))),Ng("tbody",null,t)));return a}},f3={type:"table-row",renderElem:function(e,t,n){return Ng("tr",null,t)}},d3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=tk.getParentNode(e,t);if(null==n)return!1;var r=tk.getParentNode(e,n);return null!=r&&a6(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l;if(!r)return Ng("td",{colSpan:a,rowSpan:s},t);var f=Ng(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ng((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;n3||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",a3=n,i3=tk.findPath(n,e)):n3||(r.style.cursor="auto",a3=null,i3=null))}}),100)}},t);return f}},p3={selector:"table",preParseHtml:function(e){var t=$p(e);if("table"!==t3(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},h3=r6.filter;$2({target:"Array",proto:!0,forced:!H4("filter")},{filter:function(e){return h3(this,e,arguments.length>1?arguments[1]:void 0)}});var g3=Math.floor,v3=j0("".charAt),y3=j0("".replace),m3=j0("".slice),b3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,w3=/\$([$&'`]|\d{1,2})/g,E3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=w3;return void 0!==o&&(o=v1(o),s=b3),y3(i,s,(function(i,s){var l;switch(v3(s,0)){case"$":return"$";case"&":return e;case"`":return m3(t,0,n);case"'":return m3(t,a);case"<":l=o[m3(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=g3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?v3(s,1):r[f-1]+v3(s,1):i}l=r[c-1]}return void 0===l?"":l}))},D3=O1("replace"),S3=Math.max,x3=Math.min,C3=j0([].concat),A3=j0([].push),O3=j0("".indexOf),k3=j0("".slice),B3="$0"==="a".replace(/./,"$0"),F3=!!/./[D3]&&""===/./[D3]("a","$0");C6("replace",(function(e,t,n){var r=F3?"$":"$0";return[function(e,n){var r=H0(this),o=null==e?void 0:l1(e,D3);return o?C0(o,e,r,n):C0(t,Y2(r),e,n)},function(e,o){var i=M1(this),a=Y2(e);if("string"==typeof o&&-1===O3(o,r)&&-1===O3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=U0(o);s||(o=Y2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=M6(i,a);if(null===d)break;if(A3(f,d),!l)break;""===Y2(d[0])&&(i.lastIndex=j6(a,w2(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=Y2((d=f[v])[0]),m=S3(x3(g2(d.index),a.length),0),b=[],w=1;w<d.length;w++)A3(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=C3([y],b,m,a);void 0!==E&&A3(D,E);var S=Y2(D6(o,void 0,D))}else S=E3(y,a,m,b,E,o);m>=g&&(h+=k3(a,g,m)+S,g=m+y.length)}return h+k3(a,g)}]}),!!D0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!B3||F3);var T3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===t3(r),colSpan:o,rowSpan:i,width:a,children:t}}},_3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===tk.getNodeType(e)}))}}},P3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=$p(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===tk.getNodeType(e)}))}}},j3=function(){function e(){this.title=$P("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tk.getSelectedElems(e).some((function(t){var n=tk.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=$p('<div class="w-e-panel-content-table"></div>'),r=$p("<span>0 × 0</span>"),o=$p("<table></table>"),i=0;i<10;i++){for(var a=$p("<tr></tr>"),u=0;u<10;u++){var s=$p("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=$p(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){$p(e).children().each((function(e){var t=$p(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=$p(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){tk.isSelectedEmptyParagraph(e)&&wd.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);wd.insertNodes(e,i,{mode:"highest"})}},e}(),N3=function(){function e(){this.title=$P("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{mode:"highest"})},e}(),I3=function(){function e(){this.title=$P("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tk.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=$f.parent(i),f=$f.next(c);wd.insertNodes(e,s,{at:f})}}},e}(),L3=function(){function e(){this.title=$P("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"table-row")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tk.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?wd.removeNodes(e,{mode:"highest"}):wd.removeNodes(e,{at:i})}},e}(),R3={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},M3=P1("span").classList,z3=M3&&M3.constructor&&M3.constructor.prototype,$3=z3===Object.prototype?void 0:z3,H3=r6.forEach,V3=function(e,t){var n=[].forEach;return!!n&&D0((function(){n.call(null,(function(){throw 1}),1)}))}(),U3=V3?[].forEach:function(e){return H3(this,e,arguments.length>1?arguments[1]:void 0)},W3=function(e){if(e&&e.forEach!==U3)try{V1(e,"forEach",U3)}catch(o){e.forEach=U3}};for(var G3 in R3)R3[G3]&&W3(E0[G3]&&E0[G3].prototype);W3($3);var q3=function(){function e(){this.title=$P("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tk.getParentNode(e,o);if(null!=a){var u=tk.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Af.isElement(t)&&(t.children||[]).forEach((function(t){var r=tk.findPath(e,t);if(r.length===i.length&&g0(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&u6(u)&&(o.isHeader=!0),wd.insertNodes(e,o,{at:r})}}))}))}}},e}(),K3=function(){function e(){this.title=$P("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(_f.nodes(e,{match:function(e){return tk.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tk.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)wd.removeNodes(e,{mode:"highest"});else{var s=tk.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Af.isElement(t)&&(t.children||[]).forEach((function(t){var n=tk.findPath(e,t);n.length===i.length&&g0(n.slice(-1),i.slice(-1))&&wd.removeNodes(e,{at:n})}))}))}}},e}(),Y3=function(){function e(){this.title=$P("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tk.getSelectedNodeByType(e,"table");return null!=t&&u6(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=tk.getSelectedNodeByType(e,"table");null!=r&&a6(r).forEach((function(t){return wd.setNodes(e,{isHeader:n},{at:tk.findPath(e,t)})}))}},e}(),X3=function(){function e(){this.title=$P("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tk.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};wd.setNodes(e,n,{mode:"highest"})}},e}(),Z3={renderElems:[c3,f3,d3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[p3],parseElemsHtml:[T3,_3,P3],menus:[{key:"insertTable",factory:function(){return new j3}},{key:"deleteTable",factory:function(){return new N3}},{key:"insertTableRow",factory:function(){return new I3}},{key:"deleteTableRow",factory:function(){return new L3}},{key:"insertTableCol",factory:function(){return new q3}},{key:"deleteTableCol",factory:function(){return new K3}},{key:"tableHeader",factory:function(){return new Y3}},{key:"tableFullWidth",factory:function(){return new X3}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==tk.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!Y4(s)){var t=s.selection;if(t){var r=_f.before(s,t);if(r){var o=X4(s,r),i=X4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(tk.getSelectedNodeByType(s,"table")){var n=_f.above(e);tk.checkNodeType(n[0],"table-cell")&&wd.select(e,n[1]);var r=_f.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=_f.above(e,{at:r[1]}))&&void 0!==t?t:r),wd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(tk.checkNodeType(o[i-1],"table")){var u=tk.genEmptyParagraph();wd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){Y4(s)||r(e)},s.normalizeNode=function(e){var t=K4(e,2),n=t[0],r=t[1];if("table"!==tk.getNodeType(n))return o([n,r]);if(tk.isLastNode(s,n)){var i=tk.genEmptyParagraph();wd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=tk.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):_f.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=tk.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if($f.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Lf.string(t).length){var o=tk.findPath(s,t),i={anchor:_f.start(s,o),focus:_f.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};zP("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"}}),zP("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 J3=function(){return J3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J3.apply(this,arguments)};function Q3(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function e5(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function t5(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function n5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var r5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function o5(e){var t={exports:{}};return e(t,t.exports),t.exports}var i5,a5,u5=function(e){return e&&e.Math==Math&&e},s5=u5("object"==typeof globalThis&&globalThis)||u5("object"==typeof window&&window)||u5("object"==typeof self&&self)||u5("object"==typeof r5&&r5)||function(){return this}()||Function("return this")(),l5=function(e){try{return!!e()}catch(e){return!0}},c5=!l5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f5=Function.prototype.call,d5=f5.bind?f5.bind(f5):function(){return f5.apply(f5,arguments)},p5={}.propertyIsEnumerable,h5=Object.getOwnPropertyDescriptor,g5={f:h5&&!p5.call({1:2},1)?function(e){var t=h5(this,e);return!!t&&t.enumerable}:p5},v5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y5=Function.prototype,m5=y5.bind,b5=y5.call,w5=m5&&m5.bind(b5),E5=m5?function(e){return e&&w5(b5,e)}:function(e){return e&&function(){return b5.apply(e,arguments)}},D5=E5({}.toString),S5=E5("".slice),x5=function(e){return S5(D5(e),8,-1)},C5=s5.Object,A5=E5("".split),O5=l5((function(){return!C5("z").propertyIsEnumerable(0)}))?function(e){return"String"==x5(e)?A5(e,""):C5(e)}:C5,k5=s5.TypeError,B5=function(e){if(null==e)throw k5("Can't call method on "+e);return e},F5=function(e){return O5(B5(e))},T5=function(e){return"function"==typeof e},_5=function(e){return"object"==typeof e?null!==e:T5(e)},P5=function(e){return T5(e)?e:void 0},j5=function(e,t){return arguments.length<2?P5(s5[e]):s5[e]&&s5[e][t]},N5=E5({}.isPrototypeOf),I5=j5("navigator","userAgent")||"",L5=s5.process,R5=s5.Deno,M5=L5&&L5.versions||R5&&R5.version,z5=M5&&M5.v8;z5&&(a5=(i5=z5.split("."))[0]>0&&i5[0]<4?1:+(i5[0]+i5[1])),!a5&&I5&&(!(i5=I5.match(/Edge\/(\d+)/))||i5[1]>=74)&&(i5=I5.match(/Chrome\/(\d+)/))&&(a5=+i5[1]);var $5=a5,H5=!!Object.getOwnPropertySymbols&&!l5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$5&&$5<41})),V5=H5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,U5=s5.Object,W5=V5?function(e){return"symbol"==typeof e}:function(e){var t=j5("Symbol");return T5(t)&&N5(t.prototype,U5(e))},G5=s5.String,q5=function(e){try{return G5(e)}catch(e){return"Object"}},K5=s5.TypeError,Y5=function(e){if(T5(e))return e;throw K5(q5(e)+" is not a function")},X5=function(e,t){var n=e[t];return null==n?void 0:Y5(n)},Z5=s5.TypeError,J5=Object.defineProperty,Q5=function(e,t){try{J5(s5,e,{value:t,configurable:!0,writable:!0})}catch(i){s5[e]=t}return t},e8=s5["__core-js_shared__"]||Q5("__core-js_shared__",{}),t8=o5((function(e){(e.exports=function(e,t){return e8[e]||(e8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),n8=s5.Object,r8=function(e){return n8(B5(e))},o8=E5({}.hasOwnProperty),i8=Object.hasOwn||function(e,t){return o8(r8(e),t)},a8=0,u8=Math.random(),s8=E5(1..toString),l8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s8(++a8+u8,36)},c8=t8("wks"),f8=s5.Symbol,d8=f8&&f8.for,p8=V5?f8:f8&&f8.withoutSetter||l8,h8=function(e){if(!i8(c8,e)||!H5&&"string"!=typeof c8[e]){var t="Symbol."+e;H5&&i8(f8,e)?c8[e]=f8[e]:c8[e]=V5&&d8?d8(t):p8(t)}return c8[e]},g8=s5.TypeError,v8=h8("toPrimitive"),y8=function(e){var t=function(e,t){if(!_5(e)||W5(e))return e;var n,r=X5(e,v8);if(r){if(void 0===t&&(t="default"),n=d5(r,e,t),!_5(n)||W5(n))return n;throw g8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&T5(n=e.toString)&&!_5(r=d5(n,e)))return r;if(T5(n=e.valueOf)&&!_5(r=d5(n,e)))return r;if("string"!==t&&T5(n=e.toString)&&!_5(r=d5(n,e)))return r;throw Z5("Can't convert object to primitive value")}(e,t)}(e,"string");return W5(t)?t:t+""},m8=s5.document,b8=_5(m8)&&_5(m8.createElement),w8=function(e){return b8?m8.createElement(e):{}},E8=!c5&&!l5((function(){return 7!=Object.defineProperty(w8("div"),"a",{get:function(){return 7}}).a})),D8=Object.getOwnPropertyDescriptor,S8={f:c5?D8:function(e,t){if(e=F5(e),t=y8(t),E8)try{return D8(e,t)}catch(e){}if(i8(e,t))return v5(!d5(g5.f,e,t),e[t])}},x8=s5.String,C8=s5.TypeError,A8=function(e){if(_5(e))return e;throw C8(x8(e)+" is not an object")},O8=s5.TypeError,k8=Object.defineProperty,B8={f:c5?k8:function(e,t,n){if(A8(e),t=y8(t),A8(n),E8)try{return k8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw O8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},F8=c5?function(e,t,n){return B8.f(e,t,v5(1,n))}:function(e,t,n){return e[t]=n,e},T8=E5(Function.toString);T5(e8.inspectSource)||(e8.inspectSource=function(e){return T8(e)});var _8,P8,j8,N8=e8.inspectSource,I8=s5.WeakMap,L8=T5(I8)&&/native code/.test(N8(I8)),R8=t8("keys"),M8=function(e){return R8[e]||(R8[e]=l8(e))},z8={},$8=s5.TypeError,H8=s5.WeakMap;if(L8||e8.state){var V8=e8.state||(e8.state=new H8),U8=E5(V8.get),W8=E5(V8.has),G8=E5(V8.set);_8=function(e,t){if(W8(V8,e))throw new $8("Object already initialized");return t.facade=e,G8(V8,e,t),t},P8=function(e){return U8(V8,e)||{}},j8=function(e){return W8(V8,e)}}else{var q8=M8("state");z8[q8]=!0,_8=function(e,t){if(i8(e,q8))throw new $8("Object already initialized");return t.facade=e,F8(e,q8,t),t},P8=function(e){return i8(e,q8)?e[q8]:{}},j8=function(e){return i8(e,q8)}}var K8={set:_8,get:P8,has:j8,enforce:function(e){return j8(e)?P8(e):_8(e,{})},getterFor:function(e){return function(t){var n;if(!_5(t)||(n=P8(t)).type!==e)throw $8("Incompatible receiver, "+e+" required");return n}}},Y8=Function.prototype,X8=c5&&Object.getOwnPropertyDescriptor,Z8=i8(Y8,"name"),J8={EXISTS:Z8,PROPER:Z8&&"something"===function(){}.name,CONFIGURABLE:Z8&&(!c5||c5&&X8(Y8,"name").configurable)},Q8=o5((function(e){var t=J8.CONFIGURABLE,n=K8.get,r=K8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;T5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i8(i,"name")||t&&i.name!==f)&&F8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==s5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:F8(e,n,i)):l?e[n]=i:Q5(n,i)})(Function.prototype,"toString",(function(){return T5(this)&&n(this).source||N8(this)}))})),e7=Math.ceil,t7=Math.floor,n7=function(e){var t=+e;return t!=t||0===t?0:(t>0?t7:e7)(t)},r7=Math.max,o7=Math.min,i7=function(e,t){var n=n7(e);return n<0?r7(n+t,0):o7(n,t)},a7=Math.min,u7=function(e){return e>0?a7(n7(e),9007199254740991):0},s7=function(e){return u7(e.length)},l7=function(e){return function(t,n,r){var o,i=F5(t),a=s7(i),u=i7(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},c7={includes:l7(!0),indexOf:l7(!1)},f7=c7.indexOf,d7=E5([].push),p7=function(e,t){var n,r=F5(e),o=0,i=[];for(n in r)!i8(z8,n)&&i8(r,n)&&d7(i,n);for(;t.length>o;)i8(r,n=t[o++])&&(~f7(i,n)||d7(i,n));return i},h7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g7=h7.concat("length","prototype"),v7={f:Object.getOwnPropertyNames||function(e){return p7(e,g7)}},y7={f:Object.getOwnPropertySymbols},m7=E5([].concat),b7=j5("Reflect","ownKeys")||function(e){var t=v7.f(A8(e)),n=y7.f;return n?m7(t,n(e)):t},w7=function(e,t){for(var n=b7(t),r=B8.f,o=S8.f,i=0;i<n.length;i++){var a=n[i];i8(e,a)||r(e,a,o(t,a))}},E7=/#|\.prototype\./,D7=function(e,t){var n=x7[S7(e)];return n==A7||n!=C7&&(T5(t)?l5(t):!!t)},S7=D7.normalize=function(e){return String(e).replace(E7,".").toLowerCase()},x7=D7.data={},C7=D7.NATIVE="N",A7=D7.POLYFILL="P",O7=D7,k7=S8.f,B7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?s5:l?s5[u]||Q5(u,{}):(s5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=k7(n,r))&&a.value:n[r],!O7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;w7(i,o)}(e.sham||o&&o.sham)&&F8(i,"sham",!0),Q8(n,r,i,e)}},F7={};F7[h8("toStringTag")]="z";var T7="[object z]"===String(F7),_7=h8("toStringTag"),P7=s5.Object,j7="Arguments"==x5(function(){return arguments}()),N7=T7?x5:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=P7(e),_7))?n:j7?x5(t):"Object"==(r=x5(t))&&T5(t.callee)?"Arguments":r},I7=s5.String,L7=function(e){if("Symbol"===N7(e))throw TypeError("Cannot convert a Symbol value to a string");return I7(e)},R7="\t\n\v\f\r \u2028\u2029\ufeff",M7=E5("".replace),z7="["+R7+"]",$7=RegExp("^"+z7+z7+"*"),H7=RegExp(z7+z7+"*$"),V7=function(e){return function(t){var n=L7(B5(t));return 1&e&&(n=M7(n,$7,"")),2&e&&(n=M7(n,H7,"")),n}},U7={start:V7(1),end:V7(2),trim:V7(3)},W7=J8.PROPER,G7=U7.trim;function q7(e){return e.length?e[0].tagName.toLowerCase():""}function K7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=$p(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}B7({target:"String",proto:!0,forced:l5((function(){return!!R7.trim()||"
"!=="
".trim()||W7&&"trim"!==R7.trim.name}))},{trim:function(){return G7(this)}}),B7({global:!0},{globalThis:s5}),sh&&($p.fn.append=sh),Yp&&($p.fn.on=Yp),bh&&($p.fn.focus=bh),Wp&&($p.fn.attr=Wp),Kp&&($p.fn.val=Kp),ih&&($p.fn.html=ih),ch&&($p.fn.parent=ch),Up&&($p.fn.hasClass=Up),gh&&($p.fn.empty=gh);var Y7,X7={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=tk.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Ng("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:K7(a,c,d)});else{var h=Ng("video",{poster:s,controls:!0},Ng("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=Ng("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return gg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Z7={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=K7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},J7=Object.keys||function(e){return p7(e,h7)},Q7=c5?Object.defineProperties:function(e,t){A8(e);for(var n,r=F5(t),o=J7(t),i=o.length,a=0;i>a;)B8.f(e,n=o[a++],r[n]);return e},e9=j5("document","documentElement"),t9=M8("IE_PROTO"),n9=function(){},r9=function(e){return"<script>"+e+"<\/script>"},o9=function(e){e.write(r9("")),e.close();var t=e.parentWindow.Object;return e=null,t},i9=function(){try{Y7=new ActiveXObject("htmlfile")}catch(e){}var e,t;i9="undefined"!=typeof document?document.domain&&Y7?o9(Y7):((t=w8("iframe")).style.display="none",e9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(r9("document.F=Object")),e.close(),e.F):o9(Y7);for(var n=h7.length;n--;)delete i9.prototype[h7[n]];return i9()};z8[t9]=!0;var a9=Object.create||function(e,t){var n;return null!==e?(n9.prototype=A8(e),n=new n9,n9.prototype=null,n[t9]=e):n=i9(),void 0===t?n:Q7(n,t)},u9=h8("unscopables"),s9=Array.prototype;null==s9[u9]&&B8.f(s9,u9,{configurable:!0,value:a9(null)});var l9=function(e){s9[u9][e]=!0},c9=c7.includes;B7({target:"Array",proto:!0},{includes:function(e){return c9(this,e,arguments.length>1?arguments[1]:void 0)}}),l9("includes");var f9={selector:"iframe,video,p",preParseHtml:function(e){var t=$p(e),n=t;if("p"===q7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=$p(o))}}var a=q7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=$p('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},d9=E5(E5.bind),p9=function(e,t){return Y5(e),void 0===t?e:d9?d9(e,t):function(){return e.apply(t,arguments)}},h9=Array.isArray||function(e){return"Array"==x5(e)},g9=function(){},v9=[],y9=j5("Reflect","construct"),m9=/^\s*(?:class|function)\b/,b9=E5(m9.exec),w9=!m9.exec(g9),E9=function(e){if(!T5(e))return!1;try{return y9(g9,v9,e),!0}catch(e){return!1}},D9=!y9||l5((function(){var e;return E9(E9.call)||!E9(Object)||!E9((function(){e=!0}))||e}))?function(e){if(!T5(e))return!1;switch(N7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return w9||!!b9(m9,N8(e))}:E9,S9=h8("species"),x9=s5.Array,C9=function(e,t){return new(function(e){var t;return h9(e)&&(t=e.constructor,(D9(t)&&(t===x9||h9(t.prototype))||_5(t)&&null===(t=t[S9]))&&(t=void 0)),void 0===t?x9:t}(e))(0===t?0:t)},A9=E5([].push),O9=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=r8(s),g=O5(h),v=p9(l,c),y=s7(g),m=0,b=f||C9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:A9(w,d)}else switch(e){case 4:return!1;case 7:A9(w,d)}return i?-1:r||o?o:w}},k9={forEach:O9(0),map:O9(1),filter:O9(2),some:O9(3),every:O9(4),find:O9(5),findIndex:O9(6),filterReject:O9(7)},B9=k9.find,F9=!0;"find"in[]&&Array(1).find((function(){F9=!1})),B7({target:"Array",proto:!0,forced:F9},{find:function(e){return B9(this,e,arguments.length>1?arguments[1]:void 0)}}),l9("find");var T9=T7?{}.toString:function(){return"[object "+N7(this)+"]"};function _9(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}T7||Q8(Object.prototype,"toString",T9,{unsafe:!0});var P9,j9,N9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=$p(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",_9(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",_9(o,i=l.attr("poster")||"",a,u)}},I9=function(){var e=A8(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},L9=s5.RegExp,R9=l5((function(){var e=L9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),M9=R9||l5((function(){return!L9("a","y").sticky})),z9={BROKEN_CARET:R9||l5((function(){var e=L9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:M9,UNSUPPORTED_Y:R9},$9=s5.RegExp,H9=l5((function(){var e=$9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),V9=s5.RegExp,U9=l5((function(){var e=V9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),W9=K8.get,G9=t8("native-string-replace",String.prototype.replace),q9=RegExp.prototype.exec,K9=q9,Y9=E5("".charAt),X9=E5("".indexOf),Z9=E5("".replace),J9=E5("".slice),Q9=(j9=/b*/g,d5(q9,P9=/a/,"a"),d5(q9,j9,"a"),0!==P9.lastIndex||0!==j9.lastIndex),eee=z9.BROKEN_CARET,tee=void 0!==/()??/.exec("")[1];(Q9||tee||eee||H9||U9)&&(K9=function(e){var t,n,r,o,i,a,u,s=this,l=W9(s),c=L7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=d5(K9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=eee&&s.sticky,h=d5(I9,s),g=s.source,v=0,y=c;if(p&&(h=Z9(h,"y",""),-1===X9(h,"g")&&(h+="g"),y=J9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Y9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),tee&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Q9&&(r=s.lastIndex),o=d5(q9,p?n:s,y),p?o?(o.input=J9(o.input,v),o[0]=J9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Q9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tee&&o&&o.length>1&&d5(G9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=a9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var nee=K9;B7({target:"RegExp",proto:!0,forced:/./.exec!==nee},{exec:nee});var ree=Function.prototype,oee=ree.apply,iee=ree.bind,aee=ree.call,uee="object"==typeof Reflect&&Reflect.apply||(iee?aee.bind(oee):function(){return aee.apply(oee,arguments)}),see=(h8("species"),RegExp.prototype),lee=E5("".charAt),cee=E5("".charCodeAt),fee=E5("".slice),dee=function(e){return function(t,n){var r,o,i=L7(B5(t)),a=n7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cee(i,a))<55296||r>56319||a+1===u||(o=cee(i,a+1))<56320||o>57343?e?lee(i,a):r:e?fee(i,a,a+2):o-56320+(r-55296<<10)+65536}},pee={codeAt:dee(!1),charAt:dee(!0)},hee=pee.charAt,gee=function(e,t,n){return t+(n?hee(e,t).length:1)},vee=Math.floor,yee=E5("".charAt),mee=E5("".replace),bee=E5("".slice),wee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Eee=/\$([$&'`]|\d{1,2})/g,Dee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Eee;return void 0!==o&&(o=r8(o),s=wee),mee(i,s,(function(i,s){var l;switch(yee(s,0)){case"$":return"$";case"&":return e;case"`":return bee(t,0,n);case"'":return bee(t,a);case"<":l=o[bee(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=vee(c/10);return 0===f?i:f<=u?void 0===r[f-1]?yee(s,1):r[f-1]+yee(s,1):i}l=r[c-1]}return void 0===l?"":l}))},See=s5.TypeError,xee=function(e,t){var n=e.exec;if(T5(n)){var r=d5(n,e,t);return null!==r&&A8(r),r}if("RegExp"===x5(e))return d5(nee,e,t);throw See("RegExp#exec called on incompatible receiver")},Cee=h8("replace"),Aee=Math.max,Oee=Math.min,kee=E5([].concat),Bee=E5([].push),Fee=E5("".indexOf),Tee=E5("".slice),_ee="$0"==="a".replace(/./,"$0"),Pee=!!/./[Cee]&&""===/./[Cee]("a","$0");function jee(e){return void 0===e&&(e="r"),e+"-"+zh()}!function(e,t,n,r){var o=h8(e),i=!l5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!l5((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=E5(/./[o]),s=function(e,t,n){var r=Pee?"$":"$0";return[function(e,n){var r=B5(this),o=null==e?void 0:X5(e,Cee);return o?d5(o,e,r,n):d5(t,L7(r),e,n)},function(e,o){var i=A8(this),a=L7(e);if("string"==typeof o&&-1===Fee(o,r)&&-1===Fee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=T5(o);s||(o=L7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=xee(i,a);if(null===d)break;if(Bee(f,d),!l)break;""===L7(d[0])&&(i.lastIndex=gee(a,u7(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=L7((d=f[v])[0]),m=Aee(Oee(n7(d.index),a.length),0),b=[],w=1;w<d.length;w++)Bee(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=kee([y],b,m,a);void 0!==E&&Bee(D,E);var S=L7(uee(o,void 0,D))}else S=Dee(y,a,m,b,E,o);m>=g&&(h+=Tee(a,g,m)+S,g=m+y.length)}return h+Tee(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=E5(e),s=t.exec;return s===nee||s===see.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Q8(String.prototype,e,s[0]),Q8(see,o,s[1])}}("replace",0,!!l5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!_ee||Pee);var Nee=s5.Promise,Iee=function(e,t,n){for(var r in t)Q8(e,r,t[r],n);return e},Lee=s5.String,Ree=s5.TypeError,Mee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=E5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A8(n),function(e){if("object"==typeof e||T5(e))return e;throw Ree("Can't set "+Lee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zee=B8.f,$ee=h8("toStringTag"),Hee=function(e,t,n){e&&!i8(e=n?e:e.prototype,$ee)&&zee(e,$ee,{configurable:!0,value:t})},Vee=h8("species"),Uee=s5.TypeError,Wee=function(e,t){if(N5(t,e))return e;throw Uee("Incorrect invocation")},Gee={},qee=h8("iterator"),Kee=Array.prototype,Yee=h8("iterator"),Xee=function(e){if(null!=e)return X5(e,Yee)||X5(e,"@@iterator")||Gee[N7(e)]},Zee=s5.TypeError,Jee=function(e,t,n){var r,o;A8(e);try{if(!(r=X5(e,"return"))){if("throw"===t)throw n;return n}r=d5(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return A8(r),n},Qee=s5.TypeError,ete=function(e,t){this.stopped=e,this.result=t},tte=ete.prototype,nte=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=p9(t,f),v=function(e){return r&&Jee(r,"normal",e),new ete(!0,e)},y=function(e){return d?(A8(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Xee(e)))throw Qee(q5(e)+" is not iterable");if(void 0!==(c=o)&&(Gee.Array===c||Kee[qee]===c)){for(i=0,a=s7(e);a>i;i++)if((u=y(e[i]))&&N5(tte,u))return u;return new ete(!1)}r=function(e,t){var n=arguments.length<2?Xee(e):t;if(Y5(n))return A8(d5(n,e));throw Zee(q5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=d5(s,r)).done;){try{u=y(l.value)}catch(e){Jee(r,"throw",e)}if("object"==typeof u&&u&&N5(tte,u))return u}return new ete(!1)},rte=h8("iterator"),ote=!1;try{var ite=0,ate={next:function(){return{done:!!ite++}},return:function(){ote=!0}};ate[rte]=function(){return this},Array.from(ate,(function(){throw 2}))}catch(Hl){}var ute,ste,lte,cte,fte=function(e,t){if(!t&&!ote)return!1;var n=!1;try{var r={};r[rte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},dte=s5.TypeError,pte=h8("species"),hte=E5([].slice),gte=/(?:ipad|iphone|ipod).*applewebkit/i.test(I5),vte="process"==x5(s5.process),yte=s5.setImmediate,mte=s5.clearImmediate,bte=s5.process,wte=s5.Dispatch,Ete=s5.Function,Dte=s5.MessageChannel,Ste=s5.String,xte=0,Cte={};try{ute=s5.location}catch(Hl){}var Ate=function(e){if(i8(Cte,e)){var t=Cte[e];delete Cte[e],t()}},Ote=function(e){return function(){Ate(e)}},kte=function(e){Ate(e.data)},Bte=function(e){s5.postMessage(Ste(e),ute.protocol+"//"+ute.host)};yte&&mte||(yte=function(e){var t=hte(arguments,1);return Cte[++xte]=function(){uee(T5(e)?e:Ete(e),void 0,t)},ste(xte),xte},mte=function(e){delete Cte[e]},vte?ste=function(e){bte.nextTick(Ote(e))}:wte&&wte.now?ste=function(e){wte.now(Ote(e))}:Dte&&!gte?(cte=(lte=new Dte).port2,lte.port1.onmessage=kte,ste=p9(cte.postMessage,cte)):s5.addEventListener&&T5(s5.postMessage)&&!s5.importScripts&&ute&&"file:"!==ute.protocol&&!l5(Bte)?(ste=Bte,s5.addEventListener("message",kte,!1)):ste="onreadystatechange"in w8("script")?function(e){e9.appendChild(w8("script")).onreadystatechange=function(){e9.removeChild(this),Ate(e)}}:function(e){setTimeout(Ote(e),0)});var Fte,Tte,_te,Pte,jte,Nte,Ite,Lte,Rte={set:yte,clear:mte},Mte=/ipad|iphone|ipod/i.test(I5)&&void 0!==s5.Pebble,zte=/web0s(?!.*chrome)/i.test(I5),$te=S8.f,Hte=Rte.set,Vte=s5.MutationObserver||s5.WebKitMutationObserver,Ute=s5.document,Wte=s5.process,Gte=s5.Promise,qte=$te(s5,"queueMicrotask"),Kte=qte&&qte.value;Kte||(Fte=function(){var e,t;for(vte&&(e=Wte.domain)&&e.exit();Tte;){t=Tte.fn,Tte=Tte.next;try{t()}catch(e){throw Tte?Pte():_te=void 0,e}}_te=void 0,e&&e.enter()},gte||vte||zte||!Vte||!Ute?!Mte&&Gte&&Gte.resolve?((Ite=Gte.resolve(void 0)).constructor=Gte,Lte=p9(Ite.then,Ite),Pte=function(){Lte(Fte)}):vte?Pte=function(){Wte.nextTick(Fte)}:(Hte=p9(Hte,s5),Pte=function(){Hte(Fte)}):(jte=!0,Nte=Ute.createTextNode(""),new Vte(Fte).observe(Nte,{characterData:!0}),Pte=function(){Nte.data=jte=!jte}));var Yte,Xte,Zte,Jte,Qte=Kte||function(e){var t={fn:e,next:void 0};_te&&(_te.next=t),Tte||(Tte=t,Pte()),_te=t},ene=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Y5(t),this.reject=Y5(n)},tne={f:function(e){return new ene(e)}},nne=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},rne="object"==typeof window,one=Rte.set,ine=h8("species"),ane="Promise",une=K8.getterFor(ane),sne=K8.set,lne=K8.getterFor(ane),cne=Nee&&Nee.prototype,fne=Nee,dne=cne,pne=s5.TypeError,hne=s5.document,gne=s5.process,vne=tne.f,yne=vne,mne=!!(hne&&hne.createEvent&&s5.dispatchEvent),bne=T5(s5.PromiseRejectionEvent),wne=!1,Ene=O7(ane,(function(){var e=N8(fne),t=e!==String(fne);if(!t&&66===$5)return!0;if($5>=51&&/native code/.test(e))return!1;var n=new fne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[ine]=r,!(wne=n.then((function(){}))instanceof r)||!t&&rne&&!bne})),Dne=Ene||!fte((function(e){fne.all(e).catch((function(){}))})),Sne=function(e){var t;return!(!_5(e)||!T5(t=e.then))&&t},xne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Qte((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&kne(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(pne("Promise-chain cycle")):(u=Sne(a))?d5(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ane(e)}))}},Cne=function(e,t,n){var r,o;mne?((r=hne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s5.dispatchEvent(r)):r={promise:t,reason:n},!bne&&(o=s5["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=s5.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ane=function(e){d5(one,s5,(function(){var t,n=e.facade,r=e.value;if(One(e)&&(t=nne((function(){vte?gne.emit("unhandledRejection",r,n):Cne("unhandledrejection",n,r)})),e.rejection=vte||One(e)?2:1,t.error))throw t.value}))},One=function(e){return 1!==e.rejection&&!e.parent},kne=function(e){d5(one,s5,(function(){var t=e.facade;vte?gne.emit("rejectionHandled",t):Cne("rejectionhandled",t,e.value)}))},Bne=function(e,t,n){return function(r){e(t,r,n)}},Fne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,xne(e,!0))},Tne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pne("Promise can't be resolved itself");var r=Sne(t);r?Qte((function(){var n={done:!1};try{d5(r,t,Bne(Tne,n,e),Bne(Fne,n,e))}catch(t){Fne(n,t,e)}})):(e.value=t,e.state=1,xne(e,!1))}catch(t){Fne({done:!1},t,e)}}};if(Ene&&(dne=(fne=function(e){Wee(this,dne),Y5(e),d5(Yte,this);var t=une(this);try{e(Bne(Tne,t),Bne(Fne,t))}catch(e){Fne(t,e)}}).prototype,(Yte=function(e){sne(this,{type:ane,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Iee(dne,{then:function(e,t){var n=lne(this),r=n.reactions,o=vne(function(e,t){var n,r=A8(e).constructor;return void 0===r||null==(n=A8(r)[pte])?t:function(e){if(D9(e))return e;throw dte(q5(e)+" is not a constructor")}(n)}(this,fne));return o.ok=!T5(e)||e,o.fail=T5(t)&&t,o.domain=vte?gne.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&xne(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Xte=function(){var e=new Yte,t=une(e);this.promise=e,this.resolve=Bne(Tne,t),this.reject=Bne(Fne,t)},tne.f=vne=function(e){return e===fne||e===Zte?new Xte(e):yne(e)},T5(Nee)&&cne!==Object.prototype)){Jte=cne.then,wne||(Q8(cne,"then",(function(e,t){var n=this;return new fne((function(e,t){d5(Jte,n,e,t)})).then(e,t)}),{unsafe:!0}),Q8(cne,"catch",dne.catch,{unsafe:!0}));try{delete cne.constructor}catch(Hl){}Mee&&Mee(cne,dne)}function _ne(e,t,n){return void 0===n&&(n=""),Q3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return e5(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){wd.insertNodes(e,l)})),o(l),[2]}}))}))}function Pne(){return jee("w-e-insert-video")}B7({global:!0,wrap:!0,forced:Ene},{Promise:fne}),Hee(fne,ane,!1),function(e){var t=j5("Promise"),n=B8.f;c5&&t&&!t[Vee]&&n(t,Vee,{configurable:!0,get:function(){return this}})}(),Zte=j5(ane),B7({target:ane,stat:!0,forced:Ene},{reject:function(e){var t=vne(this);return d5(t.reject,void 0,e),t.promise}}),B7({target:ane,stat:!0,forced:Ene},{resolve:function(e){return function(e,t){if(A8(e),_5(t)&&t.constructor===e)return t;var n=tne.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),B7({target:ane,stat:!0,forced:Dne},{all:function(e){var t=this,n=vne(t),r=n.resolve,o=n.reject,i=nne((function(){var n=Y5(t.resolve),i=[],a=0,u=1;nte(e,(function(e){var s=a++,l=!1;u++,d5(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=vne(t),r=n.reject,o=nne((function(){var o=Y5(t.resolve);nte(e,(function(e){d5(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jne=function(){function e(){this.title=$P("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=Pne(),this.posterInputId=Pne(),this.buttonId=Pne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tk.getSelectedElems(e).some((function(t){var n=tk.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=t5(C_($P("videoModule.videoSrc"),r,$P("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=t5(C_($P("videoModule.videoPoster"),o,$P("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=$p(s),p=$p(f),h=t5(A_(i,$P("videoModule.ok")),1)[0];if(null==this.$content){var g=$p("<div></div>");g.on("click","#"+i,(function(n){return Q3(t,void 0,void 0,(function(){var t,i;return e5(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,_ne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Nne=E5([].join),Ine=O5!=Object,Lne=function(e,t){var n=[].join;return!!n&&l5((function(){n.call(null,",",1)}))}();B7({target:"Array",proto:!0,forced:Ine||!Lne},{join:function(e){return Nne(F5(this),void 0===e?",":e)}});var Rne,Mne,zne,$ne=!l5((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hne=M8("IE_PROTO"),Vne=s5.Object,Une=Vne.prototype,Wne=$ne?Vne.getPrototypeOf:function(e){var t=r8(e);if(i8(t,Hne))return t[Hne];var n=t.constructor;return T5(n)&&t instanceof n?n.prototype:t instanceof Vne?Une:null},Gne=h8("iterator"),qne=!1;[].keys&&("next"in(zne=[].keys())?(Mne=Wne(Wne(zne)))!==Object.prototype&&(Rne=Mne):qne=!0);var Kne=null==Rne||l5((function(){var e={};return Rne[Gne].call(e)!==e}));Kne&&(Rne={}),T5(Rne[Gne])||Q8(Rne,Gne,(function(){return this}));var Yne={IteratorPrototype:Rne,BUGGY_SAFARI_ITERATORS:qne},Xne=Yne.IteratorPrototype,Zne=function(){return this},Jne=J8.PROPER,Qne=J8.CONFIGURABLE,ere=Yne.IteratorPrototype,tre=Yne.BUGGY_SAFARI_ITERATORS,nre=h8("iterator"),rre=function(){return this},ore=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=a9(Xne,{next:v5(1,n)}),Hee(e,o,!1),Gee[o]=Zne}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!tre&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[nre]||p["@@iterator"]||o&&p[o],g=!tre&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Wne(v.call(new e)))!==Object.prototype&&u.next&&(Wne(u)!==ere&&(Mee?Mee(u,ere):T5(u[nre])||Q8(u,nre,rre)),Hee(u,f,!0)),Jne&&"values"==o&&h&&"values"!==h.name&&(Qne?F8(p,"name","values"):(d=!0,g=function(){return d5(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(tre||d||!(l in p))&&Q8(p,l,s[l]);else B7({target:t,proto:!0,forced:tre||d},s);return p[nre]!==g&&Q8(p,nre,g,{name:o}),Gee[t]=g,s},ire=K8.set,are=K8.getterFor("Array Iterator"),ure=ore(Array,"Array",(function(e,t){ire(this,{type:"Array Iterator",target:F5(e),index:0,kind:t})}),(function(){var e=are(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Gee.Arguments=Gee.Array,l9("keys"),l9("values"),l9("entries");var sre=pee.charAt,lre=K8.set,cre=K8.getterFor("String Iterator");ore(String,"String",(function(e){lre(this,{type:"String Iterator",string:L7(e),index:0})}),(function(){var e,t=cre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=sre(n,r),t.index+=e.length,{value:e,done:!1})}));var fre=function(e,t,n){var r=y8(t);r in e?B8.f(e,r,v5(0,n)):e[r]=n},dre=s5.Array,pre=Math.max,hre=v7.f,gre="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vre={f:function(e){return gre&&"Window"==x5(e)?function(e){try{return hre(e)}catch(e){return function(e,t,n){for(var r=s7(e),o=i7(void 0,r),i=i7(r,r),a=dre(pre(i-o,0)),u=0;o<i;o++,u++)fre(a,u,e[o]);return a.length=u,a}(gre)}}(e):hre(F5(e))}},yre=l5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),mre=Object.isExtensible,bre=l5((function(){mre(1)}))||yre?function(e){return!!_5(e)&&(!yre||"ArrayBuffer"!=x5(e))&&(!mre||mre(e))}:mre,wre=!l5((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ere=o5((function(e){var t=B8.f,n=!1,r=l8("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=v7.f,t=E5([].splice),o={};o[r]=1,e(o).length&&(v7.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},B7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vre.f}))},fastKey:function(e,t){if(!_5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i8(e,r)){if(!bre(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!i8(e,r)){if(!bre(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return wre&&n&&bre(e)&&!i8(e,r)&&i(e),e}};z8[r]=!0})),Dre=Ere.getWeakData,Sre=K8.set,xre=K8.getterFor,Cre=k9.find,Are=k9.findIndex,Ore=E5([].splice),kre=0,Bre=function(e){return e.frozen||(e.frozen=new Fre)},Fre=function(){this.entries=[]},Tre=function(e,t){return Cre(e.entries,(function(e){return e[0]===t}))};Fre.prototype={get:function(e){var t=Tre(this,e);if(t)return t[1]},has:function(e){return!!Tre(this,e)},set:function(e,t){var n=Tre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Are(this.entries,(function(t){return t[0]===e}));return~t&&Ore(this.entries,t,1),!!~t}};var _re,Pre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Wee(e,i),Sre(e,{type:t,id:kre++,frozen:void 0}),null!=o&&nte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=xre(t),u=function(e,t,n){var r=a(e),o=Dre(A8(t),!0);return!0===o?Bre(r).set(t,n):o[r.id]=n,e};return Iee(i,{delete:function(e){var t=a(this);if(!_5(e))return!1;var n=Dre(e);return!0===n?Bre(t).delete(e):n&&i8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!_5(e))return!1;var n=Dre(e);return!0===n?Bre(t).has(e):n&&i8(n,t.id)}}),Iee(i,n?{get:function(e){var t=a(this);if(_5(e)){var n=Dre(e);return!0===n?Bre(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},jre=K8.enforce,Nre=!s5.ActiveXObject&&"ActiveXObject"in s5,Ire=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=s5[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=E5(u[e]);Q8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!_5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!_5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!_5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(O7(e,!T5(a)||!(o||u.forEach&&!l5((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ere.enable();else if(O7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=l5((function(){f.has(1)})),h=fte((function(e){new a(e)})),g=!o&&l5((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Wee(e,u);var n=function(e,t,n){var r,o;return Mee&&T5(r=t.constructor)&&r!==n&&_5(o=r.prototype)&&o!==n.prototype&&Mee(e,o),e}(new a,e,s);return null!=t&&nte(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,B7({global:!0,forced:s!=a},l),Hee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Ire,Pre);if(L8&&Nre){_re=Pre.getConstructor(Ire,"WeakMap",!0),Ere.enable();var Rre=Lre.prototype,Mre=E5(Rre.delete),zre=E5(Rre.has),$re=E5(Rre.get),Hre=E5(Rre.set);Iee(Rre,{delete:function(e){if(_5(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new _re),Mre(this,e)||t.frozen.delete(e)}return Mre(this,e)},has:function(e){if(_5(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new _re),zre(this,e)||t.frozen.has(e)}return zre(this,e)},get:function(e){if(_5(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new _re),zre(this,e)?$re(this,e):t.frozen.get(e)}return $re(this,e)},set:function(e,t){if(_5(e)&&!bre(e)){var n=jre(this);n.frozen||(n.frozen=new _re),zre(this,e)?Hre(this,e,t):n.frozen.set(e,t)}else Hre(this,e,t);return this}})}var Vre={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},Ure=w8("span").classList,Wre=Ure&&Ure.constructor&&Ure.constructor.prototype,Gre=Wre===Object.prototype?void 0:Wre,qre=h8("iterator"),Kre=h8("toStringTag"),Yre=ure.values,Xre=function(e,t){if(e){if(e[qre]!==Yre)try{F8(e,qre,Yre)}catch(t){e[qre]=Yre}if(e[Kre]||F8(e,Kre,t),Vre[t])for(var n in ure)if(e[n]!==ure[n])try{F8(e,n,ure[n])}catch(t){e[n]=ure[n]}}};for(var Zre in Vre)Xre(s5[Zre]&&s5[Zre].prototype,Zre);Xre(Gre,"DOMTokenList");var Jre=J8.EXISTS,Qre=B8.f,eoe=Function.prototype,toe=E5(eoe.toString),noe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,roe=E5(noe.exec);c5&&!Jre&&Qre(eoe,"name",{configurable:!0,get:function(){try{return roe(noe,toe(this))[1]}catch(r){return""}}});var ooe=h8("species"),ioe=$5>=51||!l5((function(){var e=[];return(e.constructor={})[ooe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),aoe=h8("species"),uoe=s5.Array,soe=Math.max;function loe(e){return e.getMenuConfig("uploadVideo")}B7({target:"Array",proto:!0,forced:!ioe},{slice:function(e,t){var n,r,o,i=F5(this),a=s7(i),u=i7(e,a),s=i7(void 0===t?a:t,a);if(h9(i)&&(n=i.constructor,(D9(n)&&(n===uoe||h9(n.prototype))||_5(n)&&null===(n=n[aoe]))&&(n=void 0),n===uoe||void 0===n))return hte(i,u,s);for(r=new(void 0===n?uoe:n)(soe(s-u,0)),o=0;u<s;u++,o++)u in i&&fre(r,o,i[u]);return r.length=o,r}});var coe=new WeakMap;function foe(e,t){return Q3(this,void 0,void 0,(function(){var n,r,o,i;return e5(this,(function(a){switch(a.label){case 0:return n=function(e){var t=coe.get(e);if(null!=t)return t;var n=loe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Y_(J3(J3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return _ne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;_ne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),coe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var doe=function(){function e(){this.title=$P("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return _ne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=$p("body"),s=$p('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;Q3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return e5(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=loe(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=n5(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return _ne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,foe(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tk.getSelectedElems(e).some((function(t){var n=tk.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),poe=J8.PROPER,hoe=RegExp.prototype,goe=hoe.toString,voe=E5(I9),yoe=l5((function(){return"/a/b"!=goe.call({source:"a",flags:"b"})})),moe=poe&&"toString"!=goe.name;function boe(){return jee("w-e-insert-video")}(yoe||moe)&&Q8(RegExp.prototype,"toString",(function(){var e=A8(this),t=L7(e.source),n=e.flags;return"/"+t+"/"+L7(void 0===n&&N5(hoe,e)&&!("flags"in hoe)?voe(e):n)}),{unsafe:!0});var woe=function(){function e(){this.title=$P("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=boe(),this.heightInputId=boe(),this.buttonId=boe()}return e.prototype.getSelectedVideoNode=function(e){return tk.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=t5(C_($P("videoModule.width"),n,"auto"),2),a=i[0],u=$p(i[1]),s=t5(C_($P("videoModule.height"),r,"auto"),2),l=s[0],c=$p(s[1]),f=t5(A_(o,$P("videoModule.ok")),1)[0];if(null==this.$content){var d=$p("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),wd.setNodes(e,{width:s,height:l},{match:function(e){return tk.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Eoe={renderElems:[X7],elemsToHtml:[Z7],preParseHtml:[f9],parseElemsHtml:[N9],menus:[{key:"insertVideo",factory:function(){return new jne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new doe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new woe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=t5(e,2),o=t[0],i=t[1];return"video"===tk.getNodeType(o)&&tk.isLastNode(r,o)&&wd.insertNodes(r,tk.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};zP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),zP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Doe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Soe(e){var t={exports:{}};return e(t,t.exports),t.exports}var xoe,Coe,Aoe=function(e){return e&&e.Math==Math&&e},Ooe=Aoe("object"==typeof globalThis&&globalThis)||Aoe("object"==typeof window&&window)||Aoe("object"==typeof self&&self)||Aoe("object"==typeof Doe&&Doe)||function(){return this}()||Function("return this")(),koe=function(e){try{return!!e()}catch(e){return!0}},Boe=!koe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Foe=Function.prototype.call,Toe=Foe.bind?Foe.bind(Foe):function(){return Foe.apply(Foe,arguments)},_oe={}.propertyIsEnumerable,Poe=Object.getOwnPropertyDescriptor,joe={f:Poe&&!_oe.call({1:2},1)?function(e){var t=Poe(this,e);return!!t&&t.enumerable}:_oe},Noe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ioe=Function.prototype,Loe=Ioe.bind,Roe=Ioe.call,Moe=Loe&&Loe.bind(Roe),zoe=Loe?function(e){return e&&Moe(Roe,e)}:function(e){return e&&function(){return Roe.apply(e,arguments)}},$oe=zoe({}.toString),Hoe=zoe("".slice),Voe=function(e){return Hoe($oe(e),8,-1)},Uoe=Ooe.Object,Woe=zoe("".split),Goe=koe((function(){return!Uoe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Voe(e)?Woe(e,""):Uoe(e)}:Uoe,qoe=Ooe.TypeError,Koe=function(e){if(null==e)throw qoe("Can't call method on "+e);return e},Yoe=function(e){return Goe(Koe(e))},Xoe=function(e){return"function"==typeof e},Zoe=function(e){return"object"==typeof e?null!==e:Xoe(e)},Joe=function(e){return Xoe(e)?e:void 0},Qoe=function(e,t){return arguments.length<2?Joe(Ooe[e]):Ooe[e]&&Ooe[e][t]},eie=zoe({}.isPrototypeOf),tie=Qoe("navigator","userAgent")||"",nie=Ooe.process,rie=Ooe.Deno,oie=nie&&nie.versions||rie&&rie.version,iie=oie&&oie.v8;iie&&(Coe=(xoe=iie.split("."))[0]>0&&xoe[0]<4?1:+(xoe[0]+xoe[1])),!Coe&&tie&&(!(xoe=tie.match(/Edge\/(\d+)/))||xoe[1]>=74)&&(xoe=tie.match(/Chrome\/(\d+)/))&&(Coe=+xoe[1]);var aie=Coe,uie=!!Object.getOwnPropertySymbols&&!koe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aie&&aie<41})),sie=uie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lie=Ooe.Object,cie=sie?function(e){return"symbol"==typeof e}:function(e){var t=Qoe("Symbol");return Xoe(t)&&eie(t.prototype,lie(e))},fie=Ooe.String,die=function(e){try{return fie(e)}catch(e){return"Object"}},pie=Ooe.TypeError,hie=function(e){if(Xoe(e))return e;throw pie(die(e)+" is not a function")},gie=function(e,t){var n=e[t];return null==n?void 0:hie(n)},vie=Ooe.TypeError,yie=Object.defineProperty,mie=function(e,t){try{yie(Ooe,e,{value:t,configurable:!0,writable:!0})}catch(i){Ooe[e]=t}return t},bie=Ooe["__core-js_shared__"]||mie("__core-js_shared__",{}),wie=Soe((function(e){(e.exports=function(e,t){return bie[e]||(bie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Eie=Ooe.Object,Die=function(e){return Eie(Koe(e))},Sie=zoe({}.hasOwnProperty),xie=Object.hasOwn||function(e,t){return Sie(Die(e),t)},Cie=0,Aie=Math.random(),Oie=zoe(1..toString),kie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oie(++Cie+Aie,36)},Bie=wie("wks"),Fie=Ooe.Symbol,Tie=Fie&&Fie.for,_ie=sie?Fie:Fie&&Fie.withoutSetter||kie,Pie=function(e){if(!xie(Bie,e)||!uie&&"string"!=typeof Bie[e]){var t="Symbol."+e;uie&&xie(Fie,e)?Bie[e]=Fie[e]:Bie[e]=sie&&Tie?Tie(t):_ie(t)}return Bie[e]},jie=Ooe.TypeError,Nie=Pie("toPrimitive"),Iie=function(e){var t=function(e,t){if(!Zoe(e)||cie(e))return e;var n,r=gie(e,Nie);if(r){if(void 0===t&&(t="default"),n=Toe(r,e,t),!Zoe(n)||cie(n))return n;throw jie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Xoe(n=e.toString)&&!Zoe(r=Toe(n,e)))return r;if(Xoe(n=e.valueOf)&&!Zoe(r=Toe(n,e)))return r;if("string"!==t&&Xoe(n=e.toString)&&!Zoe(r=Toe(n,e)))return r;throw vie("Can't convert object to primitive value")}(e,t)}(e,"string");return cie(t)?t:t+""},Lie=Ooe.document,Rie=Zoe(Lie)&&Zoe(Lie.createElement),Mie=function(e){return Rie?Lie.createElement(e):{}},zie=!Boe&&!koe((function(){return 7!=Object.defineProperty(Mie("div"),"a",{get:function(){return 7}}).a})),$ie=Object.getOwnPropertyDescriptor,Hie={f:Boe?$ie:function(e,t){if(e=Yoe(e),t=Iie(t),zie)try{return $ie(e,t)}catch(e){}if(xie(e,t))return Noe(!Toe(joe.f,e,t),e[t])}},Vie=Ooe.String,Uie=Ooe.TypeError,Wie=function(e){if(Zoe(e))return e;throw Uie(Vie(e)+" is not an object")},Gie=Ooe.TypeError,qie=Object.defineProperty,Kie={f:Boe?qie:function(e,t,n){if(Wie(e),t=Iie(t),Wie(n),zie)try{return qie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yie=Boe?function(e,t,n){return Kie.f(e,t,Noe(1,n))}:function(e,t,n){return e[t]=n,e},Xie=zoe(Function.toString);Xoe(bie.inspectSource)||(bie.inspectSource=function(e){return Xie(e)});var Zie,Jie,Qie,eae=bie.inspectSource,tae=Ooe.WeakMap,nae=Xoe(tae)&&/native code/.test(eae(tae)),rae=wie("keys"),oae=function(e){return rae[e]||(rae[e]=kie(e))},iae={},aae=Ooe.TypeError,uae=Ooe.WeakMap;if(nae||bie.state){var sae=bie.state||(bie.state=new uae),lae=zoe(sae.get),cae=zoe(sae.has),fae=zoe(sae.set);Zie=function(e,t){if(cae(sae,e))throw new aae("Object already initialized");return t.facade=e,fae(sae,e,t),t},Jie=function(e){return lae(sae,e)||{}},Qie=function(e){return cae(sae,e)}}else{var dae=oae("state");iae[dae]=!0,Zie=function(e,t){if(xie(e,dae))throw new aae("Object already initialized");return t.facade=e,Yie(e,dae,t),t},Jie=function(e){return xie(e,dae)?e[dae]:{}},Qie=function(e){return xie(e,dae)}}var pae={set:Zie,get:Jie,has:Qie,enforce:function(e){return Qie(e)?Jie(e):Zie(e,{})},getterFor:function(e){return function(t){var n;if(!Zoe(t)||(n=Jie(t)).type!==e)throw aae("Incompatible receiver, "+e+" required");return n}}},hae=Function.prototype,gae=Boe&&Object.getOwnPropertyDescriptor,vae=xie(hae,"name"),yae={EXISTS:vae,PROPER:vae&&"something"===function(){}.name,CONFIGURABLE:vae&&(!Boe||Boe&&gae(hae,"name").configurable)},mae=Soe((function(e){var t=yae.CONFIGURABLE,n=pae.get,r=pae.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Xoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xie(i,"name")||t&&i.name!==f)&&Yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ooe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Yie(e,n,i)):l?e[n]=i:mie(n,i)})(Function.prototype,"toString",(function(){return Xoe(this)&&n(this).source||eae(this)}))})),bae=Math.ceil,wae=Math.floor,Eae=function(e){var t=+e;return t!=t||0===t?0:(t>0?wae:bae)(t)},Dae=Math.max,Sae=Math.min,xae=function(e,t){var n=Eae(e);return n<0?Dae(n+t,0):Sae(n,t)},Cae=Math.min,Aae=function(e){return e>0?Cae(Eae(e),9007199254740991):0},Oae=function(e){return Aae(e.length)},kae=function(e){return function(t,n,r){var o,i=Yoe(t),a=Oae(i),u=xae(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Bae=(kae(!0),kae(!1)),Fae=zoe([].push),Tae=function(e,t){var n,r=Yoe(e),o=0,i=[];for(n in r)!xie(iae,n)&&xie(r,n)&&Fae(i,n);for(;t.length>o;)xie(r,n=t[o++])&&(~Bae(i,n)||Fae(i,n));return i},_ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pae=_ae.concat("length","prototype"),jae={f:Object.getOwnPropertyNames||function(e){return Tae(e,Pae)}},Nae={f:Object.getOwnPropertySymbols},Iae=zoe([].concat),Lae=Qoe("Reflect","ownKeys")||function(e){var t=jae.f(Wie(e)),n=Nae.f;return n?Iae(t,n(e)):t},Rae=function(e,t){for(var n=Lae(t),r=Kie.f,o=Hie.f,i=0;i<n.length;i++){var a=n[i];xie(e,a)||r(e,a,o(t,a))}},Mae=/#|\.prototype\./,zae=function(e,t){var n=Hae[$ae(e)];return n==Uae||n!=Vae&&(Xoe(t)?koe(t):!!t)},$ae=zae.normalize=function(e){return String(e).replace(Mae,".").toLowerCase()},Hae=zae.data={},Vae=zae.NATIVE="N",Uae=zae.POLYFILL="P",Wae=zae,Gae=Hie.f,qae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ooe:l?Ooe[u]||mie(u,{}):(Ooe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Gae(n,r))&&a.value:n[r],!Wae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Rae(i,o)}(e.sham||o&&o.sham)&&Yie(i,"sham",!0),mae(n,r,i,e)}},Kae=Array.isArray||function(e){return"Array"==Voe(e)},Yae={};Yae[Pie("toStringTag")]="z";var Xae="[object z]"===String(Yae),Zae=Pie("toStringTag"),Jae=Ooe.Object,Qae="Arguments"==Voe(function(){return arguments}()),eue=Xae?Voe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Jae(e),Zae))?n:Qae?Voe(t):"Object"==(r=Voe(t))&&Xoe(t.callee)?"Arguments":r},tue=function(){},nue=[],rue=Qoe("Reflect","construct"),oue=/^\s*(?:class|function)\b/,iue=zoe(oue.exec),aue=!oue.exec(tue),uue=function(e){if(!Xoe(e))return!1;try{return rue(tue,nue,e),!0}catch(e){return!1}},sue=!rue||koe((function(){var e;return uue(uue.call)||!uue(Object)||!uue((function(){e=!0}))||e}))?function(e){if(!Xoe(e))return!1;switch(eue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aue||!!iue(oue,eae(e))}:uue,lue=function(e,t,n){var r=Iie(t);r in e?Kie.f(e,r,Noe(0,n)):e[r]=n},cue=Pie("species"),fue=zoe([].slice),due=aie>=51||!koe((function(){var e=[];return(e.constructor={})[cue]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),pue=Pie("species"),hue=Ooe.Array,gue=Math.max;qae({target:"Array",proto:!0,forced:!due},{slice:function(e,t){var n,r,o,i=Yoe(this),a=Oae(i),u=xae(e,a),s=xae(void 0===t?a:t,a);if(Kae(i)&&(n=i.constructor,(sue(n)&&(n===hue||Kae(n.prototype))||Zoe(n)&&null===(n=n[pue]))&&(n=void 0),n===hue||void 0===n))return fue(i,u,s);for(r=new(void 0===n?hue:n)(gue(s-u,0)),o=0;u<s;u++,o++)u in i&&lue(r,o,i[u]);return r.length=o,r}});var vue=Xae?{}.toString:function(){return"[object "+eue(this)+"]"};Xae||mae(Object.prototype,"toString",vue,{unsafe:!0});var yue,mue=Ooe.String,bue=function(e){if("Symbol"===eue(e))throw TypeError("Cannot convert a Symbol value to a string");return mue(e)},wue=function(){var e=Wie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Eue=Ooe.RegExp,Due=koe((function(){var e=Eue("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Sue=Due||koe((function(){return!Eue("a","y").sticky})),xue={BROKEN_CARET:Due||koe((function(){var e=Eue("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Sue,UNSUPPORTED_Y:Due},Cue=Object.keys||function(e){return Tae(e,_ae)},Aue=Boe?Object.defineProperties:function(e,t){Wie(e);for(var n,r=Yoe(t),o=Cue(t),i=o.length,a=0;i>a;)Kie.f(e,n=o[a++],r[n]);return e},Oue=Qoe("document","documentElement"),kue=oae("IE_PROTO"),Bue=function(){},Fue=function(e){return"<script>"+e+"<\/script>"},Tue=function(e){e.write(Fue("")),e.close();var t=e.parentWindow.Object;return e=null,t},_ue=function(){try{yue=new ActiveXObject("htmlfile")}catch(e){}var e,t;_ue="undefined"!=typeof document?document.domain&&yue?Tue(yue):((t=Mie("iframe")).style.display="none",Oue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Fue("document.F=Object")),e.close(),e.F):Tue(yue);for(var n=_ae.length;n--;)delete _ue.prototype[_ae[n]];return _ue()};iae[kue]=!0;var Pue,jue,Nue=Object.create||function(e,t){var n;return null!==e?(Bue.prototype=Wie(e),n=new Bue,Bue.prototype=null,n[kue]=e):n=_ue(),void 0===t?n:Aue(n,t)},Iue=Ooe.RegExp,Lue=koe((function(){var e=Iue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Rue=Ooe.RegExp,Mue=koe((function(){var e=Rue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zue=pae.get,$ue=wie("native-string-replace",String.prototype.replace),Hue=RegExp.prototype.exec,Vue=Hue,Uue=zoe("".charAt),Wue=zoe("".indexOf),Gue=zoe("".replace),que=zoe("".slice),Kue=(jue=/b*/g,Toe(Hue,Pue=/a/,"a"),Toe(Hue,jue,"a"),0!==Pue.lastIndex||0!==jue.lastIndex),Yue=xue.BROKEN_CARET,Xue=void 0!==/()??/.exec("")[1];(Kue||Xue||Yue||Lue||Mue)&&(Vue=function(e){var t,n,r,o,i,a,u,s=this,l=zue(s),c=bue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Toe(Vue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Yue&&s.sticky,h=Toe(wue,s),g=s.source,v=0,y=c;if(p&&(h=Gue(h,"y",""),-1===Wue(h,"g")&&(h+="g"),y=que(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Uue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Xue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Kue&&(r=s.lastIndex),o=Toe(Hue,p?n:s,y),p?o?(o.input=que(o.input,v),o[0]=que(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Kue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Xue&&o&&o.length>1&&Toe($ue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Nue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zue=Vue;qae({target:"RegExp",proto:!0,forced:/./.exec!==Zue},{exec:Zue});var Jue=Function.prototype,Que=Jue.apply,ese=Jue.bind,tse=Jue.call,nse="object"==typeof Reflect&&Reflect.apply||(ese?tse.bind(Que):function(){return tse.apply(Que,arguments)}),rse=Pie("species"),ose=RegExp.prototype,ise=Pie("match"),ase=Ooe.TypeError,use=Pie("species"),sse=function(e,t){var n,r=Wie(e).constructor;return void 0===r||null==(n=Wie(r)[use])?t:function(e){if(sue(e))return e;throw ase(die(e)+" is not a constructor")}(n)},lse=zoe("".charAt),cse=zoe("".charCodeAt),fse=zoe("".slice),dse=function(e){return function(t,n){var r,o,i=bue(Koe(t)),a=Eae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cse(i,a))<55296||r>56319||a+1===u||(o=cse(i,a+1))<56320||o>57343?e?lse(i,a):r:e?fse(i,a,a+2):o-56320+(r-55296<<10)+65536}},pse={codeAt:dse(!1),charAt:dse(!0)},hse=pse.charAt,gse=function(e,t,n){return t+(n?hse(e,t).length:1)},vse=Ooe.Array,yse=Math.max,mse=function(e,t,n){for(var r=Oae(e),o=xae(t,r),i=xae(void 0===n?r:n,r),a=vse(yse(i-o,0)),u=0;o<i;o++,u++)lue(a,u,e[o]);return a.length=u,a},bse=Ooe.TypeError,wse=function(e,t){var n=e.exec;if(Xoe(n)){var r=Toe(n,e,t);return null!==r&&Wie(r),r}if("RegExp"===Voe(e))return Toe(Zue,e,t);throw bse("RegExp#exec called on incompatible receiver")},Ese=xue.UNSUPPORTED_Y,Dse=Math.min,Sse=[].push,xse=zoe(/./.exec),Cse=zoe(Sse),Ase=zoe("".slice);!function(e,t,n,r){var o=Pie(e),i=!koe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!koe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[rse]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=zoe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=bue(Koe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Zoe(r=e)||!(void 0!==(o=r[ise])?o:"RegExp"==Voe(r)))return Toe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Toe(Zue,p,i))&&!((s=p.lastIndex)>d&&(Cse(c,Ase(i,d,u.index)),u.length>1&&u.index<i.length&&nse(Sse,c,mse(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&xse(p,"")||Cse(c,""):Cse(c,Ase(i,d)),c.length>a?mse(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Toe(t,this,e,n)}:t,[function(t,n){var o=Koe(this),i=null==t?void 0:gie(t,e);return i?Toe(i,t,o,n):Toe(r,bue(o),t,n)},function(e,o){var i=Wie(this),a=bue(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=sse(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ese?"g":"y"),f=new s(Ese?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===wse(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Ese?0:h;var v,y=wse(f,Ese?Ase(a,h):a);if(null===y||(v=Dse(Aae(f.lastIndex+(Ese?h:0)),a.length))===p)h=gse(a,h,l);else{if(Cse(g,Ase(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Cse(g,y[m]),g.length===d)return g;h=p=v}}return Cse(g,Ase(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=zoe(e),s=t.exec;return s===Zue||s===ose.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));mae(String.prototype,e,s[0]),mae(ose,o,s[1])}r&&Yie(ose[o],"sham",!0)}("split",0,!!koe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ese);
- /*! *****************************************************************************
- 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 Ose=function(){return Ose=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ose.apply(this,arguments)};function kse(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Bse(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Fse(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var Tse=Pie("unscopables"),_se=Array.prototype;null==_se[Tse]&&Kie.f(_se,Tse,{configurable:!0,value:Nue(null)});var Pse,jse,Nse,Ise=function(e){_se[Tse][e]=!0},Lse={},Rse=!koe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mse=oae("IE_PROTO"),zse=Ooe.Object,$se=zse.prototype,Hse=Rse?zse.getPrototypeOf:function(e){var t=Die(e);if(xie(t,Mse))return t[Mse];var n=t.constructor;return Xoe(n)&&t instanceof n?n.prototype:t instanceof zse?$se:null},Vse=Pie("iterator"),Use=!1;[].keys&&("next"in(Nse=[].keys())?(jse=Hse(Hse(Nse)))!==Object.prototype&&(Pse=jse):Use=!0);var Wse=null==Pse||koe((function(){var e={};return Pse[Vse].call(e)!==e}));Wse&&(Pse={}),Xoe(Pse[Vse])||mae(Pse,Vse,(function(){return this}));var Gse={IteratorPrototype:Pse,BUGGY_SAFARI_ITERATORS:Use},qse=Kie.f,Kse=Pie("toStringTag"),Yse=function(e,t,n){e&&!xie(e=n?e:e.prototype,Kse)&&qse(e,Kse,{configurable:!0,value:t})},Xse=Gse.IteratorPrototype,Zse=function(){return this},Jse=Ooe.String,Qse=Ooe.TypeError,ele=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zoe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Wie(n),function(e){if("object"==typeof e||Xoe(e))return e;throw Qse("Can't set "+Jse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tle=yae.PROPER,nle=yae.CONFIGURABLE,rle=Gse.IteratorPrototype,ole=Gse.BUGGY_SAFARI_ITERATORS,ile=Pie("iterator"),ale=function(){return this},ule=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Nue(Xse,{next:Noe(1,n)}),Yse(e,o,!1),Lse[o]=Zse}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ole&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ile]||p["@@iterator"]||o&&p[o],g=!ole&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Hse(v.call(new e)))!==Object.prototype&&u.next&&(Hse(u)!==rle&&(ele?ele(u,rle):Xoe(u[ile])||mae(u,ile,ale)),Yse(u,f,!0)),tle&&"values"==o&&h&&"values"!==h.name&&(nle?Yie(p,"name","values"):(d=!0,g=function(){return Toe(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ole||d||!(l in p))&&mae(p,l,s[l]);else qae({target:t,proto:!0,forced:ole||d},s);return p[ile]!==g&&mae(p,ile,g,{name:o}),Lse[t]=g,s},sle=pae.set,lle=pae.getterFor("Array Iterator"),cle=ule(Array,"Array",(function(e,t){sle(this,{type:"Array Iterator",target:Yoe(e),index:0,kind:t})}),(function(){var e=lle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Lse.Arguments=Lse.Array,Ise("keys"),Ise("values"),Ise("entries");var fle=pse.charAt,dle=pae.set,ple=pae.getterFor("String Iterator");ule(String,"String",(function(e){dle(this,{type:"String Iterator",string:bue(e),index:0})}),(function(){var e,t=ple(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fle(n,r),t.index+=e.length,{value:e,done:!1})}));var hle=function(e,t,n){for(var r in t)mae(e,r,t[r],n);return e},gle=jae.f,vle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yle={f:function(e){return vle&&"Window"==Voe(e)?function(e){try{return gle(e)}catch(e){return mse(vle)}}(e):gle(Yoe(e))}},mle=koe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ble=Object.isExtensible,wle=koe((function(){ble(1)}))||mle?function(e){return!!Zoe(e)&&(!mle||"ArrayBuffer"!=Voe(e))&&(!ble||ble(e))}:ble,Ele=!koe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Dle=Soe((function(e){var t=Kie.f,n=!1,r=kie("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=jae.f,t=zoe([].splice),o={};o[r]=1,e(o).length&&(jae.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},qae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yle.f}))},fastKey:function(e,t){if(!Zoe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!xie(e,r)){if(!wle(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!xie(e,r)){if(!wle(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ele&&n&&wle(e)&&!xie(e,r)&&i(e),e}};iae[r]=!0})),Sle=zoe(zoe.bind),xle=function(e,t){return hie(e),void 0===t?e:Sle?Sle(e,t):function(){return e.apply(t,arguments)}},Cle=Pie("iterator"),Ale=Array.prototype,Ole=Pie("iterator"),kle=function(e){if(null!=e)return gie(e,Ole)||gie(e,"@@iterator")||Lse[eue(e)]},Ble=Ooe.TypeError,Fle=function(e,t,n){var r,o;Wie(e);try{if(!(r=gie(e,"return"))){if("throw"===t)throw n;return n}r=Toe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Wie(r),n},Tle=Ooe.TypeError,_le=function(e,t){this.stopped=e,this.result=t},Ple=_le.prototype,jle=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=xle(t,f),v=function(e){return r&&Fle(r,"normal",e),new _le(!0,e)},y=function(e){return d?(Wie(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=kle(e)))throw Tle(die(e)+" is not iterable");if(void 0!==(c=o)&&(Lse.Array===c||Ale[Cle]===c)){for(i=0,a=Oae(e);a>i;i++)if((u=y(e[i]))&&eie(Ple,u))return u;return new _le(!1)}r=function(e,t){var n=arguments.length<2?kle(e):t;if(hie(n))return Wie(Toe(n,e));throw Ble(die(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Toe(s,r)).done;){try{u=y(l.value)}catch(e){Fle(r,"throw",e)}if("object"==typeof u&&u&&eie(Ple,u))return u}return new _le(!1)},Nle=Ooe.TypeError,Ile=function(e,t){if(eie(t,e))return e;throw Nle("Incorrect invocation")},Lle=Pie("iterator"),Rle=!1;try{var Mle=0,zle={next:function(){return{done:!!Mle++}},return:function(){Rle=!0}};zle[Lle]=function(){return this},Array.from(zle,(function(){throw 2}))}catch(Hl){}var $le=function(e,t){if(!t&&!Rle)return!1;var n=!1;try{var r={};r[Lle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Hle=Pie("species"),Vle=Ooe.Array,Ule=function(e,t){return new(function(e){var t;return Kae(e)&&(t=e.constructor,(sue(t)&&(t===Vle||Kae(t.prototype))||Zoe(t)&&null===(t=t[Hle]))&&(t=void 0)),void 0===t?Vle:t}(e))(0===t?0:t)},Wle=zoe([].push),Gle=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Die(s),g=Goe(h),v=xle(l,c),y=Oae(g),m=0,b=f||Ule,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Wle(w,d)}else switch(e){case 4:return!1;case 7:Wle(w,d)}return i?-1:r||o?o:w}},qle={forEach:Gle(0),map:Gle(1),filter:Gle(2),some:Gle(3),every:Gle(4),find:Gle(5),findIndex:Gle(6),filterReject:Gle(7)},Kle=Dle.getWeakData,Yle=pae.set,Xle=pae.getterFor,Zle=qle.find,Jle=qle.findIndex,Qle=zoe([].splice),ece=0,tce=function(e){return e.frozen||(e.frozen=new nce)},nce=function(){this.entries=[]},rce=function(e,t){return Zle(e.entries,(function(e){return e[0]===t}))};nce.prototype={get:function(e){var t=rce(this,e);if(t)return t[1]},has:function(e){return!!rce(this,e)},set:function(e,t){var n=rce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jle(this.entries,(function(t){return t[0]===e}));return~t&&Qle(this.entries,t,1),!!~t}};var oce,ice={getConstructor:function(e,t,n,r){var o=e((function(e,o){Ile(e,i),Yle(e,{type:t,id:ece++,frozen:void 0}),null!=o&&jle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Xle(t),u=function(e,t,n){var r=a(e),o=Kle(Wie(t),!0);return!0===o?tce(r).set(t,n):o[r.id]=n,e};return hle(i,{delete:function(e){var t=a(this);if(!Zoe(e))return!1;var n=Kle(e);return!0===n?tce(t).delete(e):n&&xie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Zoe(e))return!1;var n=Kle(e);return!0===n?tce(t).has(e):n&&xie(n,t.id)}}),hle(i,n?{get:function(e){var t=a(this);if(Zoe(e)){var n=Kle(e);return!0===n?tce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ace=pae.enforce,uce=!Ooe.ActiveXObject&&"ActiveXObject"in Ooe,sce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Ooe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=zoe(u[e]);mae(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Zoe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Zoe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Zoe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Wae(e,!Xoe(a)||!(o||u.forEach&&!koe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Dle.enable();else if(Wae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=koe((function(){f.has(1)})),h=$le((function(e){new a(e)})),g=!o&&koe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Ile(e,u);var n=function(e,t,n){var r,o;return ele&&Xoe(r=t.constructor)&&r!==n&&Zoe(o=r.prototype)&&o!==n.prototype&&ele(e,o),e}(new a,e,s);return null!=t&&jle(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,qae({global:!0,forced:s!=a},l),Yse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sce,ice);if(nae&&uce){oce=ice.getConstructor(sce,"WeakMap",!0),Dle.enable();var cce=lce.prototype,fce=zoe(cce.delete),dce=zoe(cce.has),pce=zoe(cce.get),hce=zoe(cce.set);hle(cce,{delete:function(e){if(Zoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),fce(this,e)||t.frozen.delete(e)}return fce(this,e)},has:function(e){if(Zoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)||t.frozen.has(e)}return dce(this,e)},get:function(e){if(Zoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)?pce(this,e):t.frozen.get(e)}return pce(this,e)},set:function(e,t){if(Zoe(e)&&!wle(e)){var n=ace(this);n.frozen||(n.frozen=new oce),dce(this,e)?hce(this,e,t):n.frozen.set(e,t)}else hce(this,e,t);return this}})}var gce={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},vce=Mie("span").classList,yce=vce&&vce.constructor&&vce.constructor.prototype,mce=yce===Object.prototype?void 0:yce,bce=Pie("iterator"),wce=Pie("toStringTag"),Ece=cle.values,Dce=function(e,t){if(e){if(e[bce]!==Ece)try{Yie(e,bce,Ece)}catch(t){e[bce]=Ece}if(e[wce]||Yie(e,wce,t),gce[t])for(var n in cle)if(e[n]!==cle[n])try{Yie(e,n,cle[n])}catch(t){e[n]=cle[n]}}};for(var Sce in gce)Dce(Ooe[Sce]&&Ooe[Sce].prototype,Sce);Dce(mce,"DOMTokenList");var xce=function(e,t){var n=[][e];return!!n&&koe((function(){n.call(null,t||function(){throw 1},1)}))},Cce=qle.forEach,Ace=xce("forEach")?[].forEach:function(e){return Cce(this,e,arguments.length>1?arguments[1]:void 0)},Oce=function(e){if(e&&e.forEach!==Ace)try{Yie(e,"forEach",Ace)}catch(o){e.forEach=Ace}};for(var kce in gce)gce[kce]&&Oce(Ooe[kce]&&Ooe[kce].prototype);Oce(mce);var Bce,Fce,Tce,_ce,Pce=Ooe.Promise,jce=Pie("species"),Nce=/(?:ipad|iphone|ipod).*applewebkit/i.test(tie),Ice="process"==Voe(Ooe.process),Lce=Ooe.setImmediate,Rce=Ooe.clearImmediate,Mce=Ooe.process,zce=Ooe.Dispatch,$ce=Ooe.Function,Hce=Ooe.MessageChannel,Vce=Ooe.String,Uce=0,Wce={};try{Bce=Ooe.location}catch(Hl){}var Gce=function(e){if(xie(Wce,e)){var t=Wce[e];delete Wce[e],t()}},qce=function(e){return function(){Gce(e)}},Kce=function(e){Gce(e.data)},Yce=function(e){Ooe.postMessage(Vce(e),Bce.protocol+"//"+Bce.host)};Lce&&Rce||(Lce=function(e){var t=fue(arguments,1);return Wce[++Uce]=function(){nse(Xoe(e)?e:$ce(e),void 0,t)},Fce(Uce),Uce},Rce=function(e){delete Wce[e]},Ice?Fce=function(e){Mce.nextTick(qce(e))}:zce&&zce.now?Fce=function(e){zce.now(qce(e))}:Hce&&!Nce?(_ce=(Tce=new Hce).port2,Tce.port1.onmessage=Kce,Fce=xle(_ce.postMessage,_ce)):Ooe.addEventListener&&Xoe(Ooe.postMessage)&&!Ooe.importScripts&&Bce&&"file:"!==Bce.protocol&&!koe(Yce)?(Fce=Yce,Ooe.addEventListener("message",Kce,!1)):Fce="onreadystatechange"in Mie("script")?function(e){Oue.appendChild(Mie("script")).onreadystatechange=function(){Oue.removeChild(this),Gce(e)}}:function(e){setTimeout(qce(e),0)});var Xce,Zce,Jce,Qce,efe,tfe,nfe,rfe,ofe={set:Lce,clear:Rce},ife=/ipad|iphone|ipod/i.test(tie)&&void 0!==Ooe.Pebble,afe=/web0s(?!.*chrome)/i.test(tie),ufe=Hie.f,sfe=ofe.set,lfe=Ooe.MutationObserver||Ooe.WebKitMutationObserver,cfe=Ooe.document,ffe=Ooe.process,dfe=Ooe.Promise,pfe=ufe(Ooe,"queueMicrotask"),hfe=pfe&&pfe.value;hfe||(Xce=function(){var e,t;for(Ice&&(e=ffe.domain)&&e.exit();Zce;){t=Zce.fn,Zce=Zce.next;try{t()}catch(e){throw Zce?Qce():Jce=void 0,e}}Jce=void 0,e&&e.enter()},Nce||Ice||afe||!lfe||!cfe?!ife&&dfe&&dfe.resolve?((nfe=dfe.resolve(void 0)).constructor=dfe,rfe=xle(nfe.then,nfe),Qce=function(){rfe(Xce)}):Ice?Qce=function(){ffe.nextTick(Xce)}:(sfe=xle(sfe,Ooe),Qce=function(){sfe(Xce)}):(efe=!0,tfe=cfe.createTextNode(""),new lfe(Xce).observe(tfe,{characterData:!0}),Qce=function(){tfe.data=efe=!efe}));var gfe,vfe,yfe,mfe,bfe=hfe||function(e){var t={fn:e,next:void 0};Jce&&(Jce.next=t),Zce||(Zce=t,Qce()),Jce=t},wfe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=hie(t),this.reject=hie(n)},Efe={f:function(e){return new wfe(e)}},Dfe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Sfe="object"==typeof window,xfe=ofe.set,Cfe=Pie("species"),Afe="Promise",Ofe=pae.getterFor(Afe),kfe=pae.set,Bfe=pae.getterFor(Afe),Ffe=Pce&&Pce.prototype,Tfe=Pce,_fe=Ffe,Pfe=Ooe.TypeError,jfe=Ooe.document,Nfe=Ooe.process,Ife=Efe.f,Lfe=Ife,Rfe=!!(jfe&&jfe.createEvent&&Ooe.dispatchEvent),Mfe=Xoe(Ooe.PromiseRejectionEvent),zfe=!1,$fe=Wae(Afe,(function(){var e=eae(Tfe),t=e!==String(Tfe);if(!t&&66===aie)return!0;if(aie>=51&&/native code/.test(e))return!1;var n=new Tfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Cfe]=r,!(zfe=n.then((function(){}))instanceof r)||!t&&Sfe&&!Mfe})),Hfe=$fe||!$le((function(e){Tfe.all(e).catch((function(){}))})),Vfe=function(e){var t;return!(!Zoe(e)||!Xoe(t=e.then))&&t},Ufe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bfe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Kfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Pfe("Promise-chain cycle")):(u=Vfe(a))?Toe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Gfe(e)}))}},Wfe=function(e,t,n){var r,o;Rfe?((r=jfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Ooe.dispatchEvent(r)):r={promise:t,reason:n},!Mfe&&(o=Ooe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Ooe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Gfe=function(e){Toe(xfe,Ooe,(function(){var t,n=e.facade,r=e.value;if(qfe(e)&&(t=Dfe((function(){Ice?Nfe.emit("unhandledRejection",r,n):Wfe("unhandledrejection",n,r)})),e.rejection=Ice||qfe(e)?2:1,t.error))throw t.value}))},qfe=function(e){return 1!==e.rejection&&!e.parent},Kfe=function(e){Toe(xfe,Ooe,(function(){var t=e.facade;Ice?Nfe.emit("rejectionHandled",t):Wfe("rejectionhandled",t,e.value)}))},Yfe=function(e,t,n){return function(r){e(t,r,n)}},Xfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ufe(e,!0))},Zfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Pfe("Promise can't be resolved itself");var r=Vfe(t);r?bfe((function(){var n={done:!1};try{Toe(r,t,Yfe(Zfe,n,e),Yfe(Xfe,n,e))}catch(t){Xfe(n,t,e)}})):(e.value=t,e.state=1,Ufe(e,!1))}catch(t){Xfe({done:!1},t,e)}}};if($fe&&(_fe=(Tfe=function(e){Ile(this,_fe),hie(e),Toe(gfe,this);var t=Ofe(this);try{e(Yfe(Zfe,t),Yfe(Xfe,t))}catch(e){Xfe(t,e)}}).prototype,(gfe=function(e){kfe(this,{type:Afe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hle(_fe,{then:function(e,t){var n=Bfe(this),r=n.reactions,o=Ife(sse(this,Tfe));return o.ok=!Xoe(e)||e,o.fail=Xoe(t)&&t,o.domain=Ice?Nfe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Ufe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vfe=function(){var e=new gfe,t=Ofe(e);this.promise=e,this.resolve=Yfe(Zfe,t),this.reject=Yfe(Xfe,t)},Efe.f=Ife=function(e){return e===Tfe||e===yfe?new vfe(e):Lfe(e)},Xoe(Pce)&&Ffe!==Object.prototype)){mfe=Ffe.then,zfe||(mae(Ffe,"then",(function(e,t){var n=this;return new Tfe((function(e,t){Toe(mfe,n,e,t)})).then(e,t)}),{unsafe:!0}),mae(Ffe,"catch",_fe.catch,{unsafe:!0}));try{delete Ffe.constructor}catch(Hl){}ele&&ele(Ffe,_fe)}qae({global:!0,wrap:!0,forced:$fe},{Promise:Tfe}),Yse(Tfe,Afe,!1),function(e){var t=Qoe("Promise"),n=Kie.f;Boe&&t&&!t[jce]&&n(t,jce,{configurable:!0,get:function(){return this}})}(),yfe=Qoe(Afe),qae({target:Afe,stat:!0,forced:$fe},{reject:function(e){var t=Ife(this);return Toe(t.reject,void 0,e),t.promise}}),qae({target:Afe,stat:!0,forced:$fe},{resolve:function(e){return function(e,t){if(Wie(e),Zoe(t)&&t.constructor===e)return t;var n=Efe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),qae({target:Afe,stat:!0,forced:Hfe},{all:function(e){var t=this,n=Ife(t),r=n.resolve,o=n.reject,i=Dfe((function(){var n=hie(t.resolve),i=[],a=0,u=1;jle(e,(function(e){var s=a++,l=!1;u++,Toe(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ife(t),r=n.reject,o=Dfe((function(){var o=hie(t.resolve);jle(e,(function(e){Toe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jfe=yae.PROPER,Qfe=RegExp.prototype,ede=Qfe.toString,tde=zoe(wue),nde=koe((function(){return"/a/b"!=ede.call({source:"a",flags:"b"})})),rde=Jfe&&"toString"!=ede.name;(nde||rde)&&mae(RegExp.prototype,"toString",(function(){var e=Wie(this),t=bue(e.source),n=e.flags;return"/"+t+"/"+bue(void 0===n&&eie(Qfe,e)&&!("flags"in Qfe)?tde(e):n)}),{unsafe:!0});var ode=yae.EXISTS,ide=Kie.f,ade=Function.prototype,ude=zoe(ade.toString),sde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,lde=zoe(sde.exec);Boe&&!ode&&ide(ade,"name",{configurable:!0,get:function(){try{return lde(sde,ude(this))[1]}catch(r){return""}}});var cde=new WeakMap;function fde(e){return e.getMenuConfig("uploadImage")}function dde(e,t){return kse(this,void 0,void 0,(function(){return Bse(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;R$(e,i,t.name,a),n("ok")}}}))]}))}))}function pde(e,t){return kse(this,void 0,void 0,(function(){var n,r,o,i;return Bse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=cde.get(e);if(null!=t)return t;var n=fde(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Y_(Ose(Ose({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return R$(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;R$(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;R$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),cde.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function hde(e,t){var n,r;return kse(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Bse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=fde(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Fse(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,dde(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return R$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,pde(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var gde=zoe([].join),vde=Goe!=Object,yde=xce("join",",");qae({target:"Array",proto:!0,forced:vde||!yde},{join:function(e){return gde(Yoe(this),void 0===e?",":e)}}),sh&&($p.fn.append=sh),Yp&&($p.fn.on=Yp),hh&&($p.fn.remove=hh),Kp&&($p.fn.val=Kp),mh&&($p.fn.click=mh),eh&&($p.fn.hide=eh);var mde=function(){function e(){this.title=$P("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return M$(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return R$(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=$p("body"),s=$p('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;hde(e,t)}))}},e}(),bde={menus:[{key:"uploadImage",factory:function(){return new mde},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(M$(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?hde(e,o):t(r)}},n}};zP("en",{highLightModule:{selectLang:"Language"}}),zP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var wde="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Ede(e){var t={exports:{}};return e(t,t.exports),t.exports}var Dde,Sde,xde=function(e){return e&&e.Math==Math&&e},Cde=xde("object"==typeof globalThis&&globalThis)||xde("object"==typeof window&&window)||xde("object"==typeof self&&self)||xde("object"==typeof wde&&wde)||function(){return this}()||Function("return this")(),Ade=Object.defineProperty,Ode=function(e,t){try{Ade(Cde,e,{value:t,configurable:!0,writable:!0})}catch(i){Cde[e]=t}return t},kde=Cde["__core-js_shared__"]||Ode("__core-js_shared__",{}),Bde=Ede((function(e){(e.exports=function(e,t){return kde[e]||(kde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Fde=Function.prototype,Tde=Fde.bind,_de=Fde.call,Pde=Tde&&Tde.bind(_de),jde=Tde?function(e){return e&&Pde(_de,e)}:function(e){return e&&function(){return _de.apply(e,arguments)}},Nde=Cde.TypeError,Ide=function(e){if(null==e)throw Nde("Can't call method on "+e);return e},Lde=Cde.Object,Rde=function(e){return Lde(Ide(e))},Mde=jde({}.hasOwnProperty),zde=Object.hasOwn||function(e,t){return Mde(Rde(e),t)},$de=0,Hde=Math.random(),Vde=jde(1..toString),Ude=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Vde(++$de+Hde,36)},Wde=function(e){return"function"==typeof e},Gde=function(e){return Wde(e)?e:void 0},qde=function(e,t){return arguments.length<2?Gde(Cde[e]):Cde[e]&&Cde[e][t]},Kde=qde("navigator","userAgent")||"",Yde=Cde.process,Xde=Cde.Deno,Zde=Yde&&Yde.versions||Xde&&Xde.version,Jde=Zde&&Zde.v8;Jde&&(Sde=(Dde=Jde.split("."))[0]>0&&Dde[0]<4?1:+(Dde[0]+Dde[1])),!Sde&&Kde&&(!(Dde=Kde.match(/Edge\/(\d+)/))||Dde[1]>=74)&&(Dde=Kde.match(/Chrome\/(\d+)/))&&(Sde=+Dde[1]);var Qde=Sde,epe=function(e){try{return!!e()}catch(e){return!0}},tpe=!!Object.getOwnPropertySymbols&&!epe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qde&&Qde<41})),npe=tpe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rpe=Bde("wks"),ope=Cde.Symbol,ipe=ope&&ope.for,ape=npe?ope:ope&&ope.withoutSetter||Ude,upe=function(e){if(!zde(rpe,e)||!tpe&&"string"!=typeof rpe[e]){var t="Symbol."+e;tpe&&zde(ope,e)?rpe[e]=ope[e]:rpe[e]=npe&&ipe?ipe(t):ape(t)}return rpe[e]},spe={};spe[upe("toStringTag")]="z";var lpe="[object z]"===String(spe),cpe=!epe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),fpe=function(e){return"object"==typeof e?null!==e:Wde(e)},dpe=Cde.document,ppe=fpe(dpe)&&fpe(dpe.createElement),hpe=function(e){return ppe?dpe.createElement(e):{}},gpe=!cpe&&!epe((function(){return 7!=Object.defineProperty(hpe("div"),"a",{get:function(){return 7}}).a})),vpe=Cde.String,ype=Cde.TypeError,mpe=function(e){if(fpe(e))return e;throw ype(vpe(e)+" is not an object")},bpe=Function.prototype.call,wpe=bpe.bind?bpe.bind(bpe):function(){return bpe.apply(bpe,arguments)},Epe=jde({}.isPrototypeOf),Dpe=Cde.Object,Spe=npe?function(e){return"symbol"==typeof e}:function(e){var t=qde("Symbol");return Wde(t)&&Epe(t.prototype,Dpe(e))},xpe=Cde.String,Cpe=function(e){try{return xpe(e)}catch(e){return"Object"}},Ape=Cde.TypeError,Ope=function(e){if(Wde(e))return e;throw Ape(Cpe(e)+" is not a function")},kpe=function(e,t){var n=e[t];return null==n?void 0:Ope(n)},Bpe=Cde.TypeError,Fpe=Cde.TypeError,Tpe=upe("toPrimitive"),_pe=function(e){var t=function(e,t){if(!fpe(e)||Spe(e))return e;var n,r=kpe(e,Tpe);if(r){if(void 0===t&&(t="default"),n=wpe(r,e,t),!fpe(n)||Spe(n))return n;throw Fpe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Wde(n=e.toString)&&!fpe(r=wpe(n,e)))return r;if(Wde(n=e.valueOf)&&!fpe(r=wpe(n,e)))return r;if("string"!==t&&Wde(n=e.toString)&&!fpe(r=wpe(n,e)))return r;throw Bpe("Can't convert object to primitive value")}(e,t)}(e,"string");return Spe(t)?t:t+""},Ppe=Cde.TypeError,jpe=Object.defineProperty,Npe={f:cpe?jpe:function(e,t,n){if(mpe(e),t=_pe(t),mpe(n),gpe)try{return jpe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ppe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ipe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Lpe=cpe?function(e,t,n){return Npe.f(e,t,Ipe(1,n))}:function(e,t,n){return e[t]=n,e},Rpe=jde(Function.toString);Wde(kde.inspectSource)||(kde.inspectSource=function(e){return Rpe(e)});var Mpe,zpe,$pe,Hpe=kde.inspectSource,Vpe=Cde.WeakMap,Upe=Wde(Vpe)&&/native code/.test(Hpe(Vpe)),Wpe=Bde("keys"),Gpe=function(e){return Wpe[e]||(Wpe[e]=Ude(e))},qpe={},Kpe=Cde.TypeError,Ype=Cde.WeakMap;if(Upe||kde.state){var Xpe=kde.state||(kde.state=new Ype),Zpe=jde(Xpe.get),Jpe=jde(Xpe.has),Qpe=jde(Xpe.set);Mpe=function(e,t){if(Jpe(Xpe,e))throw new Kpe("Object already initialized");return t.facade=e,Qpe(Xpe,e,t),t},zpe=function(e){return Zpe(Xpe,e)||{}},$pe=function(e){return Jpe(Xpe,e)}}else{var ehe=Gpe("state");qpe[ehe]=!0,Mpe=function(e,t){if(zde(e,ehe))throw new Kpe("Object already initialized");return t.facade=e,Lpe(e,ehe,t),t},zpe=function(e){return zde(e,ehe)?e[ehe]:{}},$pe=function(e){return zde(e,ehe)}}var the={set:Mpe,get:zpe,has:$pe,enforce:function(e){return $pe(e)?zpe(e):Mpe(e,{})},getterFor:function(e){return function(t){var n;if(!fpe(t)||(n=zpe(t)).type!==e)throw Kpe("Incompatible receiver, "+e+" required");return n}}},nhe=Function.prototype,rhe=cpe&&Object.getOwnPropertyDescriptor,ohe=zde(nhe,"name"),ihe={EXISTS:ohe,PROPER:ohe&&"something"===function(){}.name,CONFIGURABLE:ohe&&(!cpe||cpe&&rhe(nhe,"name").configurable)},ahe=Ede((function(e){var t=ihe.CONFIGURABLE,n=the.get,r=the.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Wde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zde(i,"name")||t&&i.name!==f)&&Lpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Cde?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Lpe(e,n,i)):l?e[n]=i:Ode(n,i)})(Function.prototype,"toString",(function(){return Wde(this)&&n(this).source||Hpe(this)}))})),uhe=jde({}.toString),she=jde("".slice),lhe=function(e){return she(uhe(e),8,-1)},che=upe("toStringTag"),fhe=Cde.Object,dhe="Arguments"==lhe(function(){return arguments}()),phe=lpe?lhe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fhe(e),che))?n:dhe?lhe(t):"Object"==(r=lhe(t))&&Wde(t.callee)?"Arguments":r},hhe=lpe?{}.toString:function(){return"[object "+phe(this)+"]"};lpe||ahe(Object.prototype,"toString",hhe,{unsafe:!0});var ghe,vhe={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},yhe=hpe("span").classList,mhe=yhe&&yhe.constructor&&yhe.constructor.prototype,bhe=mhe===Object.prototype?void 0:mhe,whe=jde(jde.bind),Ehe=Cde.Object,Dhe=jde("".split),She=epe((function(){return!Ehe("z").propertyIsEnumerable(0)}))?function(e){return"String"==lhe(e)?Dhe(e,""):Ehe(e)}:Ehe,xhe=Math.ceil,Che=Math.floor,Ahe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Che:xhe)(t)},Ohe=Math.min,khe=function(e){return e>0?Ohe(Ahe(e),9007199254740991):0},Bhe=function(e){return khe(e.length)},Fhe=Array.isArray||function(e){return"Array"==lhe(e)},The=function(){},_he=[],Phe=qde("Reflect","construct"),jhe=/^\s*(?:class|function)\b/,Nhe=jde(jhe.exec),Ihe=!jhe.exec(The),Lhe=function(e){if(!Wde(e))return!1;try{return Phe(The,_he,e),!0}catch(e){return!1}},Rhe=!Phe||epe((function(){var e;return Lhe(Lhe.call)||!Lhe(Object)||!Lhe((function(){e=!0}))||e}))?function(e){if(!Wde(e))return!1;switch(phe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ihe||!!Nhe(jhe,Hpe(e))}:Lhe,Mhe=upe("species"),zhe=Cde.Array,$he=function(e,t){return new(function(e){var t;return Fhe(e)&&(t=e.constructor,(Rhe(t)&&(t===zhe||Fhe(t.prototype))||fpe(t)&&null===(t=t[Mhe]))&&(t=void 0)),void 0===t?zhe:t}(e))(0===t?0:t)},Hhe=jde([].push),Vhe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Rde(s),g=She(h),v=function(e,t){return Ope(e),void 0===t?e:whe?whe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Bhe(g),m=0,b=f||$he,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Hhe(w,d)}else switch(e){case 4:return!1;case 7:Hhe(w,d)}return i?-1:r||o?o:w}},Uhe=[Vhe(0),Vhe(1),Vhe(2),Vhe(3),Vhe(4),Vhe(5),Vhe(6),Vhe(7)][0],Whe=(ghe=[].forEach)&&epe((function(){ghe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Uhe(this,e,arguments.length>1?arguments[1]:void 0)},Ghe=function(e){if(e&&e.forEach!==Whe)try{Lpe(e,"forEach",Whe)}catch(o){e.forEach=Whe}};for(var qhe in vhe)vhe[qhe]&&Ghe(Cde[qhe]&&Cde[qhe].prototype);Ghe(bhe);var Khe={}.propertyIsEnumerable,Yhe=Object.getOwnPropertyDescriptor,Xhe={f:Yhe&&!Khe.call({1:2},1)?function(e){var t=Yhe(this,e);return!!t&&t.enumerable}:Khe},Zhe=function(e){return She(Ide(e))},Jhe=Object.getOwnPropertyDescriptor,Qhe={f:cpe?Jhe:function(e,t){if(e=Zhe(e),t=_pe(t),gpe)try{return Jhe(e,t)}catch(e){}if(zde(e,t))return Ipe(!wpe(Xhe.f,e,t),e[t])}},ege=Math.max,tge=Math.min,nge=function(e,t){var n=Ahe(e);return n<0?ege(n+t,0):tge(n,t)},rge=function(e){return function(t,n,r){var o,i=Zhe(t),a=Bhe(i),u=nge(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},oge=(rge(!0),rge(!1)),ige=jde([].push),age=function(e,t){var n,r=Zhe(e),o=0,i=[];for(n in r)!zde(qpe,n)&&zde(r,n)&&ige(i,n);for(;t.length>o;)zde(r,n=t[o++])&&(~oge(i,n)||ige(i,n));return i},uge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sge=uge.concat("length","prototype"),lge={f:Object.getOwnPropertyNames||function(e){return age(e,sge)}},cge={f:Object.getOwnPropertySymbols},fge=jde([].concat),dge=qde("Reflect","ownKeys")||function(e){var t=lge.f(mpe(e)),n=cge.f;return n?fge(t,n(e)):t},pge=function(e,t){for(var n=dge(t),r=Npe.f,o=Qhe.f,i=0;i<n.length;i++){var a=n[i];zde(e,a)||r(e,a,o(t,a))}},hge=/#|\.prototype\./,gge=function(e,t){var n=yge[vge(e)];return n==bge||n!=mge&&(Wde(t)?epe(t):!!t)},vge=gge.normalize=function(e){return String(e).replace(hge,".").toLowerCase()},yge=gge.data={},mge=gge.NATIVE="N",bge=gge.POLYFILL="P",wge=gge,Ege=Qhe.f,Dge=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Cde:l?Cde[u]||Ode(u,{}):(Cde[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ege(n,r))&&a.value:n[r],!wge(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pge(i,o)}(e.sham||o&&o.sham)&&Lpe(i,"sham",!0),ahe(n,r,i,e)}},Sge=Object.keys||function(e){return age(e,uge)},xge=Object.assign,Cge=Object.defineProperty,Age=jde([].concat),Oge=!xge||epe((function(){if(cpe&&1!==xge({b:1},xge(Cge({},"a",{enumerable:!0,get:function(){Cge(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=xge({},e)[n]||Sge(xge({},t)).join("")!=r}))?function(e,t){for(var n=Rde(e),r=arguments.length,o=1,i=cge.f,a=Xhe.f;r>o;)for(var u,s=She(arguments[o++]),l=i?Age(Sge(s),i(s)):Sge(s),c=l.length,f=0;c>f;)u=l[f++],cpe&&!wpe(a,s,u)||(n[u]=s[u]);return n}:xge;Dge({target:"Object",stat:!0,forced:Object.assign!==Oge},{assign:Oge});var kge=Ede((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,D=r.next,S=s;D!==t.tail&&!(f&&S>=f.reach);S+=D.value.length,D=D.next){var x=D.value;if(t.length>e.length)return;if(!(x instanceof i)){var C,A=1;if(m){if(!(C=a(E,S,e,y)))break;var O=C.index,k=C.index+C[0].length,B=S;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(S=B-=D.value.length,D.value instanceof i)continue;for(var F=D;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,x=e.slice(S,B),C.index-=S}else if(!(C=a(E,0,x,y)))continue;O=C.index;var T=C[0],_=x.slice(0,O),P=x.slice(O+T.length),j=S+x.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(_&&(N=l(t,N,_),S+=_.length),c(t,N,A),D=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,D,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,D.prev,S,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==wde&&(wde.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,D,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=C+"|"+x,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Bge=["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 Fge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Fge(t)}),0)}var Tge,_ge=Cde.String,Pge=function(e){if("Symbol"===phe(e))throw TypeError("Cannot convert a Symbol value to a string");return _ge(e)},jge=function(){var e=mpe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Nge=Cde.RegExp,Ige=epe((function(){var e=Nge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Lge=Ige||epe((function(){return!Nge("a","y").sticky})),Rge={BROKEN_CARET:Ige||epe((function(){var e=Nge("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Lge,UNSUPPORTED_Y:Ige},Mge=cpe?Object.defineProperties:function(e,t){mpe(e);for(var n,r=Zhe(t),o=Sge(t),i=o.length,a=0;i>a;)Npe.f(e,n=o[a++],r[n]);return e},zge=qde("document","documentElement"),$ge=Gpe("IE_PROTO"),Hge=function(){},Vge=function(e){return"<script>"+e+"<\/script>"},Uge=function(e){e.write(Vge("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wge=function(){try{Tge=new ActiveXObject("htmlfile")}catch(e){}var e,t;Wge="undefined"!=typeof document?document.domain&&Tge?Uge(Tge):((t=hpe("iframe")).style.display="none",zge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Vge("document.F=Object")),e.close(),e.F):Uge(Tge);for(var n=uge.length;n--;)delete Wge.prototype[uge[n]];return Wge()};qpe[$ge]=!0;var Gge,qge,Kge=Object.create||function(e,t){var n;return null!==e?(Hge.prototype=mpe(e),n=new Hge,Hge.prototype=null,n[$ge]=e):n=Wge(),void 0===t?n:Mge(n,t)},Yge=Cde.RegExp,Xge=epe((function(){var e=Yge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zge=Cde.RegExp,Jge=epe((function(){var e=Zge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qge=the.get,eve=Bde("native-string-replace",String.prototype.replace),tve=RegExp.prototype.exec,nve=tve,rve=jde("".charAt),ove=jde("".indexOf),ive=jde("".replace),ave=jde("".slice),uve=(qge=/b*/g,wpe(tve,Gge=/a/,"a"),wpe(tve,qge,"a"),0!==Gge.lastIndex||0!==qge.lastIndex),sve=Rge.BROKEN_CARET,lve=void 0!==/()??/.exec("")[1];(uve||lve||sve||Xge||Jge)&&(nve=function(e){var t,n,r,o,i,a,u,s=this,l=Qge(s),c=Pge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=wpe(nve,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sve&&s.sticky,h=wpe(jge,s),g=s.source,v=0,y=c;if(p&&(h=ive(h,"y",""),-1===ove(h,"g")&&(h+="g"),y=ave(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rve(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),lve&&(n=new RegExp("^"+g+"$(?!\\s)",h)),uve&&(r=s.lastIndex),o=wpe(tve,p?n:s,y),p?o?(o.input=ave(o.input,v),o[0]=ave(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uve&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lve&&o&&o.length>1&&wpe(eve,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Kge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var cve=nve;Dge({target:"RegExp",proto:!0,forced:/./.exec!==cve},{exec:cve});var fve=Function.prototype,dve=fve.apply,pve=fve.bind,hve=fve.call,gve="object"==typeof Reflect&&Reflect.apply||(pve?hve.bind(dve):function(){return hve.apply(dve,arguments)}),vve=upe("species"),yve=RegExp.prototype,mve=upe("match"),bve=Cde.TypeError,wve=upe("species"),Eve=jde("".charAt),Dve=jde("".charCodeAt),Sve=jde("".slice),xve=function(e){return function(t,n){var r,o,i=Pge(Ide(t)),a=Ahe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Dve(i,a))<55296||r>56319||a+1===u||(o=Dve(i,a+1))<56320||o>57343?e?Eve(i,a):r:e?Sve(i,a,a+2):o-56320+(r-55296<<10)+65536}},Cve=(xve(!1),xve(!0)),Ave=function(e,t,n){return t+(n?Cve(e,t).length:1)},Ove=Cde.Array,kve=Math.max,Bve=function(e,t,n){for(var r,o,i,a,u=Bhe(e),s=nge(t,u),l=nge(void 0===n?u:n,u),c=Ove(kve(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=_pe(o))in r?Npe.f(r,a,Ipe(0,i)):r[a]=i;return c.length=f,c},Fve=Cde.TypeError,Tve=function(e,t){var n=e.exec;if(Wde(n)){var r=wpe(n,e,t);return null!==r&&mpe(r),r}if("RegExp"===lhe(e))return wpe(cve,e,t);throw Fve("RegExp#exec called on incompatible receiver")},_ve=Rge.UNSUPPORTED_Y,Pve=Math.min,jve=[].push,Nve=jde(/./.exec),Ive=jde(jve),Lve=jde("".slice);!function(e,t,n,r){var o=upe(e),i=!epe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!epe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[vve]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=jde(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Pge(Ide(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!fpe(r=e)||!(void 0!==(o=r[mve])?o:"RegExp"==lhe(r)))return wpe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=wpe(cve,p,i))&&!((s=p.lastIndex)>d&&(Ive(c,Lve(i,d,u.index)),u.length>1&&u.index<i.length&&gve(jve,c,Bve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Nve(p,"")||Ive(c,""):Ive(c,Lve(i,d)),c.length>a?Bve(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:wpe(t,this,e,n)}:t,[function(t,n){var o=Ide(this),i=null==t?void 0:kpe(t,e);return i?wpe(i,t,o,n):wpe(r,Pge(o),t,n)},function(e,o){var i=mpe(this),a=Pge(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=mpe(e).constructor;return void 0===r||null==(n=mpe(r)[wve])?t:function(e){if(Rhe(e))return e;throw bve(Cpe(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_ve?"g":"y"),f=new s(_ve?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Tve(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=_ve?0:h;var v,y=Tve(f,_ve?Lve(a,h):a);if(null===y||(v=Pve(khe(f.lastIndex+(_ve?h:0)),a.length))===p)h=Ave(a,h,l);else{if(Ive(g,Lve(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Ive(g,y[m]),g.length===d)return g;h=p=v}}return Ive(g,Lve(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=jde(e),s=t.exec;return s===cve||s===yve.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ahe(String.prototype,e,s[0]),ahe(yve,o,s[1])}r&&Lpe(yve[o],"sham",!0)}("split",0,!!epe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_ve),Dge({global:!0},{globalThis:Cde}),Wp&&($p.fn.attr=Wp);var Rve=ihe.PROPER,Mve=RegExp.prototype,zve=Mve.toString,$ve=jde(jge),Hve=epe((function(){return"/a/b"!=zve.call({source:"a",flags:"b"})})),Vve=Rve&&"toString"!=zve.name;(Hve||Vve)&&ahe(RegExp.prototype,"toString",(function(){var e=mpe(this),t=Pge(e.source),n=e.flags;return"/"+t+"/"+Pge(void 0===n&&Epe(Mve,e)&&!("flags"in Mve)?$ve(e):n)}),{unsafe:!0});var Uve=function(){function e(){this.title=$P("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Af.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};wd.setNodes(e,n,{match:function(e){return tk.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=tk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tk.getParentNode(e,t);return Af.isElement(n)?"pre"!==n.type?null:t:null},e}(),Wve={renderStyle:function(e,t){var n=e,r=t,o="";return Bge.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=$p(e);if(!Af.isElement(t))return t;if("code"!==tk.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Uve},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Gve=/"/g,qve=jde("".replace);Dge({target:"String",proto:!0,forced:epe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Pge(Ide(this)),r="<a",(r+=' name="'+qve(Pge(t),Gve,""")+'"')+">"+n+"</a>";var t,n,r}});var Kve=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!nd.isText(e))return null;var t=tk.getParentNode(null,e);if(t&&"code"===tk.getNodeType(t)){var n=tk.getParentNode(null,t);if(n&&"pre"===tk.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=kge.languages[t];return n?kge.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
- /*! *****************************************************************************
- 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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+Fge(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Yve=function(){return Yve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yve.apply(this,arguments)},Xve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Yve(Yve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Yve(Yve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Yve(Yve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Yve(Yve({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=aA(aA({},o),t||{});if(null!=ok[n])throw new Error("Duplicated key '"+n+"' in menu items");ok[n]=r,function(e,t){null!=t&&(rk[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;HT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){$T.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;yk[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){vk.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){iF.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;uF[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){aF.push(e)}(e)},e.registerModule=function(e){Zve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],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 Zve(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Xve.registerMenu(e)})),n&&n.forEach((function(e){return Xve.registerRenderElem(e)})),r&&Xve.registerRenderStyle(r),o&&o.forEach((function(e){return Xve.registerElemToHtml(e)})),i&&Xve.registerStyleToHtml(i),a&&a.forEach((function(e){return Xve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Xve.registerParseElemHtml(e)})),s&&Xve.registerParseStyleHtml(s),l&&Xve.registerPlugin(l)}Kq.forEach((function(e){return Zve(e)})),Zve(h0),Zve(Z3),Zve(Eoe),Zve(bde),Zve(Wve);var Jve='<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>',Qve={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"]}},eye={hoverbarKeys:Yve(Yve({},Qve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Xve.setEditorConfig(Yve(Yve({},eye),{decorate:Kve}));var tye={hoverbarKeys:Qve};Xve.setSimpleEditorConfig(Yve(Yve({},tye),{decorate:Kve}));var nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:$P("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:$P("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:$P("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:$P("editor.image"),iconSvg:Jve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:$P("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"]};Xve.setToolbarConfig(nye);var rye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:$P("editor.image"),iconSvg:Jve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function oye(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Xve.simpleEditorConfig:Xve.editorConfig,c=Yve(Yve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return L_({selector:n,config:Yve(Yve(Yve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Xve.plugins})}function iye(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Xve.simpleToolbarConfig:Xve.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return MF(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=aA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new H_(n,i);return lO.set(a,e),cO.set(e,a),a}(n,{selector:t,config:Yve(Yve({},u),o)});return s}Xve.setSimpleToolbarConfig(rye)}}]);
|