@wangeditor-next/upload-image-module 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@wangeditor-next/core"),require("@wangeditor-next/basic-modules"),require("dom7")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","@wangeditor-next/basic-modules","dom7"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorUploadImageModule=e(t.core,t.basicModules,t.$)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(n);t.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),t.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var a,c,f=function(t){return t&&t.Math===Math&&t},s=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof i&&i)||f("object"==typeof i&&i)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},p=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,h=d?v.bind(v):function(){return v.apply(v,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m={f:g&&!y.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:y},b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,S=w.call,O=d&&w.bind.bind(S,S),E=d?O:function(t){return function(){return S.apply(t,arguments)}},j=E({}.toString),x=E("".slice),I=function(t){return x(j(t),8,-1)},T=Object,P=E("".split),R=l((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"===I(t)?P(t,""):T(t)}:T,A=function(t){return null==t},C=TypeError,N=function(t){if(A(t))throw new C("Can't call method on "+t);return t},k=function(t){return R(N(t))},M="object"==typeof document&&document.all,L=void 0===M&&void 0!==M?function(t){return"function"==typeof t||t===M}:function(t){return"function"==typeof t},D=function(t){return"object"==typeof t?null!==t:L(t)},F=function(t,e){return arguments.length<2?(n=s[t],L(n)?n:void 0):s[t]&&s[t][e];var n},z=E({}.isPrototypeOf),_=s.navigator,U=_&&_.userAgent,B=U?String(U):"",G=s.process,W=s.Deno,V=G&&G.versions||W&&W.version,H=V&&V.v8;H&&(c=(a=H.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!c&&B&&(!(a=B.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=B.match(/Chrome\/(\d+)/))&&(c=+a[1]);var q=c,K=s.String,X=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol("symbol detection");return!K(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,J=Y?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return L(e)&&z(e.prototype,$(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return"Object"}},tt=TypeError,et=function(t){if(L(t))return t;throw new tt(Z(t)+" is not a function")},nt=function(t,e){var n=t[e];return A(n)?void 0:et(n)},rt=TypeError,ot=Object.defineProperty,it=function(t,e){try{ot(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ut=u((function(t){var e="__core-js_shared__",n=t.exports=s[e]||it(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=function(t,e){return ut[t]||(ut[t]=e||{})},ct=Object,ft=function(t){return ct(N(t))},st=E({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},pt=0,dt=Math.random(),vt=E(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++pt+dt,36)},yt=s.Symbol,gt=at("wks"),mt=Y?yt.for||yt:yt&&yt.withoutSetter||ht,bt=function(t){return lt(gt,t)||(gt[t]=X&&lt(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,St=bt("toPrimitive"),Ot=function(t,e){if(!D(t)||J(t))return t;var n,r=nt(t,St);if(r){if(void 0===e&&(e="default"),n=h(r,t,e),!D(n)||J(n))return n;throw new wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=h(n,t)))return r;if(L(n=t.valueOf)&&!D(r=h(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=h(n,t)))return r;throw new rt("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=Ot(t,"string");return J(e)?e:e+""},jt=s.document,xt=D(jt)&&D(jt.createElement),It=function(t){return xt?jt.createElement(t):{}},Tt=!p&&!l((function(){return 7!==Object.defineProperty(It("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Rt={f:p?Pt:function(t,e){if(t=k(t),e=Et(e),Tt)try{return Pt(t,e)}catch(t){}if(lt(t,e))return b(!h(m.f,t,e),t[e])}},At=p&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Nt=TypeError,kt=function(t){if(D(t))return t;throw new Nt(Ct(t)+" is not an object")},Mt=TypeError,Lt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ft="enumerable",zt="configurable",_t="writable",Ut={f:p?At?function(t,e,n){if(kt(t),e=Et(e),kt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&_t in n&&!n[_t]){var r=Dt(t,e);r&&r[_t]&&(t[e]=n.value,n={configurable:zt in n?n[zt]:r[zt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return Lt(t,e,n)}:Lt:function(t,e,n){if(kt(t),e=Et(e),kt(n),Tt)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Mt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bt=p?function(t,e,n){return Ut.f(t,e,b(1,n))}:function(t,e,n){return t[e]=n,t},Gt=Function.prototype,Wt=p&&Object.getOwnPropertyDescriptor,Vt=lt(Gt,"name"),Ht={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!p||p&&Wt(Gt,"name").configurable)},qt=E(Function.toString);L(ut.inspectSource)||(ut.inspectSource=function(t){return qt(t)});var Kt,Xt,Yt,$t=ut.inspectSource,Jt=s.WeakMap,Qt=L(Jt)&&/native code/.test(String(Jt)),Zt=at("keys"),te=function(t){return Zt[t]||(Zt[t]=ht(t))},ee={},ne="Object already initialized",re=s.TypeError,oe=s.WeakMap;if(Qt||ut.state){var ie=ut.state||(ut.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Kt=function(t,e){if(ie.has(t))throw new re(ne);return e.facade=t,ie.set(t,e),e},Xt=function(t){return ie.get(t)||{}},Yt=function(t){return ie.has(t)}}else{var ue=te("state");ee[ue]=!0,Kt=function(t,e){if(lt(t,ue))throw new re(ne);return e.facade=t,Bt(t,ue,e),e},Xt=function(t){return lt(t,ue)?t[ue]:{}},Yt=function(t){return lt(t,ue)}}var ae={set:Kt,get:Xt,has:Yt,enforce:function(t){return Yt(t)?Xt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Xt(e)).type!==t)throw new re("Incompatible receiver, "+t+" required");return n}}},ce=u((function(t){var e=Ht.CONFIGURABLE,n=ae.enforce,r=ae.get,o=String,i=Object.defineProperty,u=E("".slice),a=E("".replace),c=E([].join),f=p&&!l((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),d=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(p?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&lt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&lt(l,"constructor")&&l.constructor?p&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var d=n(t);return lt(d,"source")||(d.source=c(s,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return L(this)&&r(this).source||$t(this)}),"toString")})),fe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&ce(n,i,r),r.global)o?t[e]=n:it(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},se=Math.ceil,le=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?le:se)(e)},de=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ve=Math.max,he=Math.min,ye=function(t,e){var n=de(t);return n<0?ve(n+e,0):he(n,e)},ge=Math.min,me=function(t){return e=t.length,(n=de(e))>0?ge(n,9007199254740991):0;var e,n},be=function(t){return function(e,n,r){var o=k(e),i=me(o);if(0===i)return!t&&-1;var u,a=ye(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},we={includes:be(!0),indexOf:be(!1)}.indexOf,Se=E([].push),Oe=function(t,e){var n,r=k(t),o=0,i=[];for(n in r)!lt(ee,n)&&lt(r,n)&&Se(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~we(i,n)||Se(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ee.concat("length","prototype"),xe={f:Object.getOwnPropertyNames||function(t){return Oe(t,je)}},Ie={f:Object.getOwnPropertySymbols},Te=E([].concat),Pe=F("Reflect","ownKeys")||function(t){var e=xe.f(kt(t)),n=Ie.f;return n?Te(e,n(t)):e},Re=function(t,e,n){for(var r=Pe(e),o=Ut.f,i=Rt.f,u=0;u<r.length;u++){var a=r[u];lt(t,a)||n&&lt(n,a)||o(t,a,i(e,a))}},Ae=/#|\.prototype\./,Ce=function(t,e){var n=ke[Ne(t)];return n===Le||n!==Me&&(L(e)?l(e):!!e)},Ne=Ce.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},ke=Ce.data={},Me=Ce.NATIVE="N",Le=Ce.POLYFILL="P",De=Ce,Fe=Rt.f,ze=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,f=t.stat;if(n=c?s:f?s[a]||it(a,{}):s[a]&&s[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Fe(n,r))&&u.value:n[r],!De(c?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Re(i,o)}(t.sham||o&&o.sham)&&Bt(i,"sham",!0),fe(n,r,i,t)}},_e=Array.isArray||function(t){return"Array"===I(t)},Ue={};Ue[bt("toStringTag")]="z";var Be="[object z]"===String(Ue),Ge=bt("toStringTag"),We=Object,Ve="Arguments"===I(function(){return arguments}()),He=Be?I:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=We(t),Ge))?n:Ve?I(e):"Object"===(r=I(e))&&L(e.callee)?"Arguments":r},qe=function(){},Ke=F("Reflect","construct"),Xe=/^\s*(?:class|function)\b/,Ye=E(Xe.exec),$e=!Xe.test(qe),Je=function(t){if(!L(t))return!1;try{return Ke(qe,[],t),!0}catch(t){return!1}},Qe=function(t){if(!L(t))return!1;switch(He(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $e||!!Ye(Xe,$t(t))}catch(t){return!0}};Qe.sham=!0;var Ze,tn=!Ke||l((function(){var t;return Je(Je.call)||!Je(Object)||!Je((function(){t=!0}))||t}))?Qe:Je,en=bt("species"),nn=E([].slice),rn=(Ze="slice",q>=51||!l((function(){var t=[];return(t.constructor={})[en]=function(){return{foo:1}},1!==t[Ze](Boolean).foo}))),on=bt("species"),un=Array,an=Math.max;ze({target:"Array",proto:!0,forced:!rn},{slice:function(t,e){var n,r,o,i,u,a,c=k(this),f=me(c),s=ye(t,f),l=ye(void 0===e?f:e,f);if(_e(c)&&(n=c.constructor,(tn(n)&&(n===un||_e(n.prototype))||D(n)&&null===(n=n[on]))&&(n=void 0),n===un||void 0===n))return nn(c,s,l);for(r=new(void 0===n?un:n)(an(l-s,0)),o=0;s<l;s++,o++)s in c&&(i=r,u=o,a=c[s],p?Ut.f(i,u,b(0,a)):i[u]=a);return r.length=o,r}});var cn=Be?{}.toString:function(){return"[object "+He(this)+"]"};Be||fe(Object.prototype,"toString",cn,{unsafe:!0});var fn=function(){return fn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fn.apply(this,arguments)};function sn(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))}function ln(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function pn(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=pn(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var vn,hn=Object.keys||function(t){return Oe(t,Ee)},yn=p&&!At?Object.defineProperties:function(t,e){kt(t);for(var n,r=k(e),o=hn(e),i=o.length,u=0;i>u;)Ut.f(t,n=o[u++],r[n]);return t},gn={f:yn},mn=F("document","documentElement"),bn="prototype",wn="script",Sn=te("IE_PROTO"),On=function(){},En=function(t){return"<"+wn+">"+t+"</"+wn+">"},jn=function(t){t.write(En("")),t.close();var e=t.parentWindow.Object;return t=null,e},xn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;xn="undefined"!=typeof document?document.domain&&vn?jn(vn):(e=It("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(En("document.F=Object")),t.close(),t.F):jn(vn);for(var r=Ee.length;r--;)delete xn[bn][Ee[r]];return xn()};ee[Sn]=!0;var In=Object.create||function(t,e){var n;return null!==t?(On[bn]=kt(t),n=new On,On[bn]=null,n[Sn]=t):n=xn(),void 0===e?n:gn.f(n,e)},Tn=Ut.f,Pn=bt("unscopables"),Rn=Array.prototype;void 0===Rn[Pn]&&Tn(Rn,Pn,{configurable:!0,value:In(null)});var An,Cn,Nn,kn=function(t){Rn[Pn][t]=!0},Mn={},Ln=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dn=te("IE_PROTO"),Fn=Object,zn=Fn.prototype,_n=Ln?Fn.getPrototypeOf:function(t){var e=ft(t);if(lt(e,Dn))return e[Dn];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof Fn?zn:null},Un=bt("iterator"),Bn=!1;[].keys&&("next"in(Nn=[].keys())?(Cn=_n(_n(Nn)))!==Object.prototype&&(An=Cn):Bn=!0);var Gn=!D(An)||l((function(){var t={};return An[Un].call(t)!==t}));Gn&&(An={}),L(An[Un])||fe(An,Un,(function(){return this}));var Wn={IteratorPrototype:An,BUGGY_SAFARI_ITERATORS:Bn},Vn=Ut.f,Hn=bt("toStringTag"),qn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Hn)&&Vn(t,Hn,{configurable:!0,value:e})},Kn=Wn.IteratorPrototype,Xn=function(){return this},Yn=String,$n=TypeError,Jn=function(t){if(function(t){return D(t)||null===t}(t))return t;throw new $n("Can't set "+Yn(t)+" as a prototype")},Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(et(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return N(n),Jn(r),D(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Zn=Ht.PROPER,tr=Ht.CONFIGURABLE,er=Wn.IteratorPrototype,nr=Wn.BUGGY_SAFARI_ITERATORS,rr=bt("iterator"),or="keys",ir="values",ur="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Kn,{next:b(+!r,n)}),qn(t,o,!1),Mn[o]=Xn}(n,e,r);var a,c,f,s=function(t){if(t===o&&y)return y;if(!nr&&t&&t in d)return d[t];switch(t){case or:case ir:case ur:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[rr]||d["@@iterator"]||o&&d[o],y=!nr&&v||s(o),g="Array"===e&&d.entries||v;if(g&&(a=_n(g.call(new t)))!==Object.prototype&&a.next&&(_n(a)!==er&&(Qn?Qn(a,er):L(a[rr])||fe(a,rr,ar)),qn(a,l,!0)),Zn&&o===ir&&v&&v.name!==ir&&(tr?Bt(d,"name",ir):(p=!0,y=function(){return h(v,this)})),o)if(c={values:s(ir),keys:i?y:s(or),entries:s(ur)},u)for(f in c)(nr||p||!(f in d))&&fe(d,f,c[f]);else ze({target:e,proto:!0,forced:nr||p},c);return d[rr]!==y&&fe(d,rr,y,{name:o}),Mn[e]=y,c},fr=function(t,e){return{value:t,done:e}},sr=Ut.f,lr="Array Iterator",pr=ae.set,dr=ae.getterFor(lr),vr=cr(Array,"Array",(function(t,e){pr(this,{type:lr,target:k(t),index:0,kind:e})}),(function(){var t=dr(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,fr(void 0,!0);switch(t.kind){case"keys":return fr(n,!1);case"values":return fr(e[n],!1)}return fr([n,e[n]],!1)}),"values"),hr=Mn.Arguments=Mn.Array;if(kn("keys"),kn("values"),kn("entries"),p&&"values"!==hr.name)try{sr(hr,"name",{value:"values"})}catch(t){}var yr=function(t,e,n){return n.get&&ce(n.get,e,{getter:!0}),n.set&&ce(n.set,e,{setter:!0}),Ut.f(t,e,n)},gr=Ht.EXISTS,mr=Function.prototype,br=E(mr.toString),wr=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sr=E(wr.exec);p&&!gr&&yr(mr,"name",{configurable:!0,get:function(){try{return Sr(wr,br(this))[1]}catch(t){return""}}});var Or,Er,jr,xr,Ir=function(t){return B.slice(0,t.length)===t},Tr=Ir("Bun/")?"BUN":Ir("Cloudflare-Workers")?"CLOUDFLARE":Ir("Deno/")?"DENO":Ir("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===I(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST",Pr="NODE"===Tr,Rr=bt("species"),Ar=TypeError,Cr=function(t,e){if(z(e,t))return t;throw new Ar("Incorrect invocation")},Nr=TypeError,kr=bt("species"),Mr=function(t,e){var n,r=kt(t).constructor;return void 0===r||A(n=kt(r)[kr])?e:function(t){if(tn(t))return t;throw new Nr(Z(t)+" is not a constructor")}(n)},Lr=Function.prototype,Dr=Lr.apply,Fr=Lr.call,zr="object"==typeof Reflect&&Reflect.apply||(d?Fr.bind(Dr):function(){return Fr.apply(Dr,arguments)}),_r=function(t){if("Function"===I(t))return E(t)},Ur=_r(_r.bind),Br=function(t,e){return et(t),void 0===e?t:d?Ur(t,e):function(){return t.apply(e,arguments)}},Gr=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(B),Vr=s.setImmediate,Hr=s.clearImmediate,qr=s.process,Kr=s.Dispatch,Xr=s.Function,Yr=s.MessageChannel,$r=s.String,Jr=0,Qr={},Zr="onreadystatechange";l((function(){Or=s.location}));var to=function(t){if(lt(Qr,t)){var e=Qr[t];delete Qr[t],e()}},eo=function(t){return function(){to(t)}},no=function(t){to(t.data)},ro=function(t){s.postMessage($r(t),Or.protocol+"//"+Or.host)};Vr&&Hr||(Vr=function(t){!function(t,e){if(t<e)throw new Gr("Not enough arguments")}(arguments.length,1);var e=L(t)?t:Xr(t),n=nn(arguments,1);return Qr[++Jr]=function(){zr(e,void 0,n)},Er(Jr),Jr},Hr=function(t){delete Qr[t]},Pr?Er=function(t){qr.nextTick(eo(t))}:Kr&&Kr.now?Er=function(t){Kr.now(eo(t))}:Yr&&!Wr?(xr=(jr=new Yr).port2,jr.port1.onmessage=no,Er=Br(xr.postMessage,xr)):s.addEventListener&&L(s.postMessage)&&!s.importScripts&&Or&&"file:"!==Or.protocol&&!l(ro)?(Er=ro,s.addEventListener("message",no,!1)):Er=Zr in It("script")?function(t){mn.appendChild(It("script"))[Zr]=function(){mn.removeChild(this),to(t)}}:function(t){setTimeout(eo(t),0)});var oo={set:Vr,clear:Hr},io=Object.getOwnPropertyDescriptor,uo=function(){this.head=null,this.tail=null};uo.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ao,co,fo,so,lo,po=uo,vo=/ipad|iphone|ipod/i.test(B)&&"undefined"!=typeof Pebble,ho=/web0s(?!.*chrome)/i.test(B),yo=oo.set,go=s.MutationObserver||s.WebKitMutationObserver,mo=s.document,bo=s.process,wo=s.Promise,So=function(t){if(!p)return s[t];var e=io(s,t);return e&&e.value}("queueMicrotask");if(!So){var Oo=new po,Eo=function(){var t,e;for(Pr&&(t=bo.domain)&&t.exit();e=Oo.get();)try{e()}catch(t){throw Oo.head&&ao(),t}t&&t.enter()};Wr||Pr||ho||!go||!mo?!vo&&wo&&wo.resolve?((so=wo.resolve(void 0)).constructor=wo,lo=Br(so.then,so),ao=function(){lo(Eo)}):Pr?ao=function(){bo.nextTick(Eo)}:(yo=Br(yo,s),ao=function(){yo(Eo)}):(co=!0,fo=mo.createTextNode(""),new go(Eo).observe(fo,{characterData:!0}),ao=function(){fo.data=co=!co}),So=function(t){Oo.head||ao(),Oo.add(t)}}var jo=So,xo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Io=s.Promise;Io&&Io.prototype;var To,Po,Ro,Ao,Co=bt("species"),No=!1,ko=L(s.PromiseRejectionEvent),Mo=De("Promise",(function(){var t=$t(Io),e=t!==String(Io);if(!e&&66===q)return!0;if(!q||q<51||!/native code/.test(t)){var n=new Io((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Co]=r,!(No=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==Tr&&"DENO"!==Tr||ko)})),Lo={CONSTRUCTOR:Mo,REJECTION_EVENT:ko,SUBCLASSING:No},Do=TypeError,Fo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Do("Bad Promise constructor");e=t,n=r})),this.resolve=et(e),this.reject=et(n)},zo={f:function(t){return new Fo(t)}},_o=oo.set,Uo="Promise",Bo=Lo.CONSTRUCTOR,Go=Lo.REJECTION_EVENT,Wo=Lo.SUBCLASSING,Vo=ae.getterFor(Uo),Ho=ae.set,qo=Io&&Io.prototype,Ko=Io,Xo=qo,Yo=s.TypeError,$o=s.document,Jo=s.process,Qo=zo.f,Zo=Qo,ti=!!($o&&$o.createEvent&&s.dispatchEvent),ei="unhandledrejection",ni=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},ri=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{a?(u||(2===e.rejection&&ci(e),e.rejection=1),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===t.promise?f(new Yo("Promise-chain cycle")):(r=ni(n))?h(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},oi=function(t,e){t.notified||(t.notified=!0,jo((function(){for(var n,r=t.reactions;n=r.get();)ri(n,t);t.notified=!1,e&&!t.rejection&&ui(t)})))},ii=function(t,e,n){var r,o;ti?((r=$o.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Go&&(o=s["on"+t])?o(r):t===ei&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ui=function(t){h(_o,s,(function(){var e,n=t.facade,r=t.value;if(ai(t)&&(e=xo((function(){Pr?Jo.emit("unhandledRejection",r,n):ii(ei,n,r)})),t.rejection=Pr||ai(t)?2:1,e.error))throw e.value}))},ai=function(t){return 1!==t.rejection&&!t.parent},ci=function(t){h(_o,s,(function(){var e=t.facade;Pr?Jo.emit("rejectionHandled",e):ii("rejectionhandled",e,t.value)}))},fi=function(t,e,n){return function(r){t(e,r,n)}},si=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,oi(t,!0))},li=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Yo("Promise can't be resolved itself");var r=ni(e);r?jo((function(){var n={done:!1};try{h(r,e,fi(li,n,t),fi(si,n,t))}catch(e){si(n,e,t)}})):(t.value=e,t.state=1,oi(t,!1))}catch(e){si({done:!1},e,t)}}};if(Bo&&(Xo=(Ko=function(t){Cr(this,Xo),et(t),h(To,this);var e=Vo(this);try{t(fi(li,e),fi(si,e))}catch(t){si(e,t)}}).prototype,(To=function(t){Ho(this,{type:Uo,done:!1,notified:!1,parent:!1,reactions:new po,rejection:!1,state:0,value:null})}).prototype=fe(Xo,"then",(function(t,e){var n=Vo(this),r=Qo(Mr(this,Ko));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Pr?Jo.domain:void 0,0===n.state?n.reactions.add(r):jo((function(){ri(r,n)})),r.promise})),Po=function(){var t=new To,e=Vo(t);this.promise=t,this.resolve=fi(li,e),this.reject=fi(si,e)},zo.f=Qo=function(t){return t===Ko||undefined===t?new Po(t):Zo(t)},L(Io)&&qo!==Object.prototype)){Ro=qo.then,Wo||fe(qo,"then",(function(t,e){var n=this;return new Ko((function(t,e){h(Ro,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete qo.constructor}catch(t){}Qn&&Qn(qo,Xo)}ze({global:!0,constructor:!0,wrap:!0,forced:Bo},{Promise:Ko}),qn(Ko,Uo,!1),Ao=F(Uo),p&&Ao&&!Ao[Rr]&&yr(Ao,Rr,{configurable:!0,get:function(){return this}});var pi=bt("iterator"),di=Array.prototype,vi=bt("iterator"),hi=function(t){if(!A(t))return nt(t,vi)||nt(t,"@@iterator")||Mn[He(t)]},yi=TypeError,gi=function(t,e,n){var r,o;kt(t);try{if(!(r=nt(t,"return"))){if("throw"===e)throw n;return n}r=h(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return kt(r),n},mi=TypeError,bi=function(t,e){this.stopped=t,this.result=e},wi=bi.prototype,Si=function(t,e,n){var r,o,i,u,a,c,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Br(e,l),m=function(t){return r&&gi(r,"normal",t),new bi(!0,t)},b=function(t){return p?(kt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw new mi(Z(t)+" is not iterable");if(void 0!==(s=o)&&(Mn.Array===s||di[pi]===s)){for(i=0,u=me(t);u>i;i++)if((a=b(t[i]))&&z(wi,a))return a;return new bi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(et(n))return kt(h(n,t));throw new yi(Z(t)+" is not iterable")}(t,o)}for(c=d?t.next:r.next;!(f=h(c,r)).done;){try{a=b(f.value)}catch(t){gi(r,"throw",t)}if("object"==typeof a&&a&&z(wi,a))return a}return new bi(!1)},Oi=bt("iterator"),Ei=!1;try{var ji=0,xi={next:function(){return{done:!!ji++}},return:function(){Ei=!0}};xi[Oi]=function(){return this},Array.from(xi,(function(){throw 2}))}catch(t){}var Ii=function(t,e){try{if(!e&&!Ei)return!1}catch(t){return!1}var n=!1;try{var r={};r[Oi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Ti=Lo.CONSTRUCTOR||!Ii((function(t){Io.all(t).then(void 0,(function(){}))}));ze({target:"Promise",stat:!0,forced:Ti},{all:function(t){var e=this,n=zo.f(e),r=n.resolve,o=n.reject,i=xo((function(){var n=et(e.resolve),i=[],u=0,a=1;Si(t,(function(t){var c=u++,f=!1;a++,h(n,e,t).then((function(t){f||(f=!0,i[c]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=Lo.CONSTRUCTOR,Ri=Io&&Io.prototype;if(ze({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Io)){var Ai=F("Promise").prototype.catch;Ri.catch!==Ai&&fe(Ri,"catch",Ai,{unsafe:!0})}ze({target:"Promise",stat:!0,forced:Ti},{race:function(t){var e=this,n=zo.f(e),r=n.reject,o=xo((function(){var o=et(e.resolve);Si(t,(function(t){h(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ze({target:"Promise",stat:!0,forced:Lo.CONSTRUCTOR},{reject:function(t){var e=zo.f(this);return(0,e.reject)(t),e.promise}});var Ci=Lo.CONSTRUCTOR;F("Promise"),ze({target:"Promise",stat:!0,forced:Ci},{resolve:function(t){return function(t,e){if(kt(t),D(e)&&e.constructor===t)return e;var n=zo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ni=String,ki=function(t){if("Symbol"===He(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Mi=function(){var t=kt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Li=RegExp.prototype,Di=Ht.PROPER,Fi="toString",zi=RegExp.prototype,_i=zi[Fi],Ui=l((function(){return"/a/b"!==_i.call({source:"a",flags:"b"})})),Bi=Di&&_i.name!==Fi;(Ui||Bi)&&fe(zi,Fi,(function(){var t=kt(this),e=ki(t.source),n=ki(function(t){var e=t.flags;return void 0!==e||"flags"in Li||lt(t,"flags")||!z(Li,t)?e:h(Mi,t)}(t));return"/"+e+"/"+n}),{unsafe:!0});var Gi=E("".charAt),Wi=E("".charCodeAt),Vi=E("".slice),Hi=function(t){return function(e,n){var r,o,i=ki(N(e)),u=de(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Wi(i,u))<55296||r>56319||u+1===a||(o=Wi(i,u+1))<56320||o>57343?t?Gi(i,u):r:t?Vi(i,u,u+2):o-56320+(r-55296<<10)+65536}},qi={codeAt:Hi(!1),charAt:Hi(!0)}.charAt,Ki="String Iterator",Xi=ae.set,Yi=ae.getterFor(Ki);cr(String,"String",(function(t){Xi(this,{type:Ki,string:ki(t),index:0})}),(function(){var t,e=Yi(this),n=e.string,r=e.index;return r>=n.length?fr(void 0,!0):(t=qi(n,r),e.index+=t.length,fr(t,!1))}));var $i=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ji=function(t,e,n){for(var r in e)fe(t,r,e[r],n);return t},Qi=xe.f,Zi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tu={f:function(t){return Zi&&"Window"===I(t)?function(t){try{return Qi(t)}catch(t){return nn(Zi)}}(t):Qi(k(t))}},eu=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),nu=Object.isExtensible,ru=l((function(){nu(1)}))||eu?function(t){return!!D(t)&&((!eu||"ArrayBuffer"!==I(t))&&(!nu||nu(t)))}:nu,ou=u((function(t){var e=Ut.f,n=!1,r=ht("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=xe.f,e=E([].splice),o={};o[r]=1,t(o).length&&(xe.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},ze({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tu.f}))},fastKey:function(t,e){if(!D(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,r)){if(!ru(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!lt(t,r)){if(!ru(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return $i&&n&&ru(t)&&!lt(t,r)&&i(t),t}};ee[r]=!0})),iu=bt("species"),uu=Array,au=function(t,e){return new(function(t){var e;return _e(t)&&(e=t.constructor,(tn(e)&&(e===uu||_e(e.prototype))||D(e)&&null===(e=e[iu]))&&(e=void 0)),void 0===e?uu:e}(t))(0===e?0:e)},cu=E([].push),fu=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var p,d,v=ft(c),h=R(v),y=me(h),g=Br(f,s),m=0,b=l||au,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(d=g(p=h[m],m,v),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:cu(w,p)}else switch(t){case 4:return!1;case 7:cu(w,p)}return i?-1:r||o?o:w}},su={forEach:fu(0),map:fu(1),filter:fu(2),some:fu(3),every:fu(4),find:fu(5),findIndex:fu(6),filterReject:fu(7)},lu=ou.getWeakData,pu=ae.set,du=ae.getterFor,vu=su.find,hu=su.findIndex,yu=E([].splice),gu=0,mu=function(t){return t.frozen||(t.frozen=new bu)},bu=function(){this.entries=[]},wu=function(t,e){return vu(t.entries,(function(t){return t[0]===e}))};bu.prototype={get:function(t){var e=wu(this,t);if(e)return e[1]},has:function(t){return!!wu(this,t)},set:function(t,e){var n=wu(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=hu(this.entries,(function(e){return e[0]===t}));return~e&&yu(this.entries,e,1),!!~e}};var Su,Ou={getConstructor:function(t,e,n,r){var o=t((function(t,o){Cr(t,i),pu(t,{type:e,id:gu++,frozen:null}),A(o)||Si(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=du(e),a=function(t,e,n){var r=u(t),o=lu(kt(e),!0);return!0===o?mu(r).set(e,n):o[r.id]=n,t};return Ji(i,{delete:function(t){var e=u(this);if(!D(t))return!1;var n=lu(t);return!0===n?mu(e).delete(t):n&&lt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!D(t))return!1;var n=lu(t);return!0===n?mu(e).has(t):n&&lt(n,e.id)}}),Ji(i,n?{get:function(t){var e=u(this);if(D(t)){var n=lu(t);if(!0===n)return mu(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eu=ae.enforce,ju=Object,xu=Array.isArray,Iu=ju.isExtensible,Tu=ju.isFrozen,Pu=ju.isSealed,Ru=ju.freeze,Au=ju.seal,Cu=!s.ActiveXObject&&"ActiveXObject"in s,Nu=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ku=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=s[t],a=u&&u.prototype,c=u,f={},p=function(t){var e=E(a[t]);fe(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!D(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!D(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!D(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(De(t,!L(u)||!(o||a.forEach&&!l((function(){(new u).entries().next()})))))c=n.getConstructor(e,t,r,i),ou.enable();else if(De(t,!0)){var d=new c,v=d[i](o?{}:-0,1)!==d,h=l((function(){d.has(1)})),y=Ii((function(t){new u(t)})),g=!o&&l((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));y||((c=e((function(t,e){Cr(t,a);var n=function(t,e,n){var r,o;return Qn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&Qn(t,o),t}(new u,t,c);return A(e)||Si(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(h||g)&&(p("delete"),p("has"),r&&p("get")),(g||v)&&p(i),o&&a.clear&&delete a.clear}return f[t]=c,ze({global:!0,constructor:!0,forced:c!==u},f),qn(c,t),o||n.setStrong(c,t,r),c}("WeakMap",Nu,Ou),Mu=ku.prototype,Lu=E(Mu.set);if(Qt)if(Cu){Su=Ou.getConstructor(Nu,"WeakMap",!0),ou.enable();var Du=E(Mu.delete),Fu=E(Mu.has),zu=E(Mu.get);Ji(Mu,{delete:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Du(this,t)||e.frozen.delete(t)}return Du(this,t)},has:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Fu(this,t)||e.frozen.has(t)}return Fu(this,t)},get:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Fu(this,t)?zu(this,t):e.frozen.get(t)}return zu(this,t)},set:function(t,e){if(D(t)&&!Iu(t)){var n=Eu(this);n.frozen||(n.frozen=new Su),Fu(this,t)?Lu(this,t,e):n.frozen.set(t,e)}else Lu(this,t,e);return this}})}else $i&&l((function(){var t=Ru([]);return Lu(new ku,t,1),!Tu(t)}))&&Ji(Mu,{set:function(t,e){var n;return xu(t)&&(Tu(t)?n=Ru:Pu(t)&&(n=Au)),Lu(this,t,e),n&&n(t),this}});var _u={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},Uu=It("span").classList,Bu=Uu&&Uu.constructor&&Uu.constructor.prototype,Gu=Bu===Object.prototype?void 0:Bu,Wu=function(t,e){var n=[][t];return!!n&&l((function(){n.call(null,e||function(){return 1},1)}))},Vu=su.forEach,Hu=Wu("forEach")?[].forEach:function(t){return Vu(this,t,arguments.length>1?arguments[1]:void 0)},qu=function(t){if(t&&t.forEach!==Hu)try{Bt(t,"forEach",Hu)}catch(e){t.forEach=Hu}};for(var Ku in _u)_u[Ku]&&qu(s[Ku]&&s[Ku].prototype);qu(Gu);var Xu=bt("iterator"),Yu=vr.values,$u=function(t,e){if(t){if(t[Xu]!==Yu)try{Bt(t,Xu,Yu)}catch(e){t[Xu]=Yu}if(qn(t,e,!0),_u[e])for(var n in vr)if(t[n]!==vr[n])try{Bt(t,n,vr[n])}catch(e){t[n]=vr[n]}}};for(var Ju in _u)$u(s[Ju]&&s[Ju].prototype,Ju);$u(Gu,"DOMTokenList");var Qu=new WeakMap;function Zu(t){return t.getMenuConfig("uploadImage")}function ta(t,n){return sn(this,void 0,void 0,(function(){return ln(this,(function(r){return[2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),a=0===u.indexOf("data:image")?"":u;e.insertImageNode(t,u,n.name,a),r("ok")}}}))]}))}))}function ea(n,r){return sn(this,void 0,void 0,(function(){var o,i,u,a;return ln(this,(function(c){switch(c.label){case 0:return o=function(n){var r=Qu.get(n);if(null!=r)return r;var o=Zu(n),i=o.onSuccess,u=o.onProgress,a=o.onFailed,c=o.customInsert,f=o.onError;return r=t.createUploader(fn(fn({},o),{onProgress:function(t){n.showProgressBar(t),u&&u(t)},onSuccess:function(t,r){if(c)return c(r,(function(t,r,o){return e.insertImageNode(n,t,r,o)})),void i(t,r);var o=r.errno,u=void 0===o?1:o,f=r.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach((function(t){var r=t.url,o=void 0===r?"":r,i=t.alt,u=void 0===i?"":i,a=t.href,c=void 0===a?"":a;e.insertImageNode(n,o,u,c)}));else{var l=s.url,p=void 0===l?"":l,d=s.alt,v=void 0===d?"":d,h=s.href,y=void 0===h?"":h;e.insertImageNode(n,p,v,y)}i(t,r)}else a(t,r)},onError:function(t,e,n){f(t,e,n)}})),Qu.set(n,r),r}(n),i=r.name,u=r.type,a=r.size,o.addFile({name:i,type:u,size:a,data:r}),[4,o.upload()];case 1:return c.sent(),[2]}}))}))}function na(t,n){var r,o,i,u;return sn(this,void 0,void 0,(function(){var a,c,f,s,l,p,d,v,h,y;return ln(this,(function(g){switch(g.label){case 0:if(null==n)return[2];a=Array.prototype.slice.call(n),c=Zu(t),f=c.customUpload,s=c.base64LimitSize,g.label=1;case 1:g.trys.push([1,14,15,20]),l=!0,p=dn(a),g.label=2;case 2:return[4,p.next()];case 3:if(d=g.sent(),r=d.done)return[3,13];u=d.value,l=!1,g.label=4;case 4:return g.trys.push([4,,11,12]),h=(v=u).size,s&&h<=s?[4,ta(t,v)]:[3,6];case 5:return g.sent(),[3,10];case 6:return f?[4,f(v,(function(n,r,o){return e.insertImageNode(t,n,r,o)}))]:[3,8];case 7:return g.sent(),[3,10];case 8:return[4,ea(t,v)];case 9:g.sent(),g.label=10;case 10:return[3,12];case 11:return l=!0,[7];case 12:return[3,2];case 13:return[3,20];case 14:return y=g.sent(),o={error:y},[3,20];case 15:return g.trys.push([15,,18,19]),l||r||!(i=p.return)?[3,17]:[4,i.call(p)];case 16:g.sent(),g.label=17;case 17:return[3,19];case 18:if(o)throw o.error;return[7];case 19:return[7];case 20:return[2]}}))}))}var ra=E([].join),oa=R!==Object||!Wu("join",",");ze({target:"Array",proto:!0,forced:oa},{join:function(t){return ra(k(this),void 0===t?",":t)}});var ia,ua,aa=s.RegExp,ca=l((function(){var t=aa("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),fa=ca||l((function(){return!aa("a","y").sticky})),sa={BROKEN_CARET:ca||l((function(){var t=aa("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:fa,UNSUPPORTED_Y:ca},la=s.RegExp,pa=l((function(){var t=la(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),da=s.RegExp,va=l((function(){var t=da("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ha=ae.get,ya=at("native-string-replace",String.prototype.replace),ga=RegExp.prototype.exec,ma=ga,ba=E("".charAt),wa=E("".indexOf),Sa=E("".replace),Oa=E("".slice),Ea=(ua=/b*/g,h(ga,ia=/a/,"a"),h(ga,ua,"a"),0!==ia.lastIndex||0!==ua.lastIndex),ja=sa.BROKEN_CARET,xa=void 0!==/()??/.exec("")[1];(Ea||xa||ja||pa||va)&&(ma=function(t){var e,n,r,o,i,u,a,c=this,f=ha(c),s=ki(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=h(ma,l,s),c.lastIndex=l.lastIndex,e;var p=f.groups,d=ja&&c.sticky,v=h(Mi,c),y=c.source,g=0,m=s;if(d&&(v=Sa(v,"y",""),-1===wa(v,"g")&&(v+="g"),m=Oa(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ba(s,c.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),xa&&(n=new RegExp("^"+y+"$(?!\\s)",v)),Ea&&(r=c.lastIndex),o=h(ga,d?n:c,m),d?o?(o.input=Oa(o.input,g),o[0]=Oa(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ea&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),xa&&o&&o.length>1&&h(ya,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=In(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});ze({target:"RegExp",proto:!0,forced:/./.exec!==ma},{exec:ma});n.append&&(o.default.fn.append=n.append),n.on&&(o.default.fn.on=n.on),n.remove&&(o.default.fn.remove=n.remove),n.val&&(o.default.fn.val=n.val),n.click&&(o.default.fn.click=n.click),n.hide&&(o.default.fn.hide=n.hide);var Ia=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.isDisabled=function(t){return e.isInsertImageMenuDisabled(t)},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},n.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,u=void 0===i?[]:i,a=r.customBrowseAndUpload;if(a)a((function(n,r,o){return e.insertImageNode(t,n,r,o)}));else{var c="";u.length>0&&(c='accept="'.concat(u.join(", "),'"'));var f=o.default("body"),s=o.default('<input type="file" '.concat(c," multiple/>"));s.hide(),f.append(s),s.click(),s.on("change",(function(){var e=s[0].files;na(t,e)}))}},n}();var Ta={menus:[{key:"uploadImage",factory:function(){return new Ia},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'".concat(t.name,"' upload failed"),e)},onError:function(t,e,n){console.error("'".concat(t.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(t){var n=t.insertData,r=t;return r.insertData=function(o){if(e.isInsertImageMenuDisabled(r))n(o);else if(o.getData("text/plain"))n(o);else{var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some((function(t){return"image"===function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(t.type.split("/"),1)[0]}))?na(t,i):n(o)}},r}};return Ta}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@wangeditor-next/core"),require("@wangeditor-next/basic-modules"),require("dom7")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","@wangeditor-next/basic-modules","dom7"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorUploadImageModule=e(t.core,t.basicModules,t.$)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(n);t.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),t.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=Function.prototype,f=c.call,s=a&&c.bind.bind(f,f),l=a?s:function(t){return function(){return f.apply(t,arguments)}},p=function(t){return null==t},d=TypeError,v=function(t){if(p(t))throw new d("Can't call method on "+t);return t},h=Object,y=function(t){return h(v(t))},g=l({}.hasOwnProperty),m=Object.hasOwn||function(t,e){return g(y(t),e)},b=Function.prototype,w=u&&Object.getOwnPropertyDescriptor,S=m(b,"name"),O={EXISTS:S,PROPER:S&&"something"===function(){}.name,CONFIGURABLE:S&&(!u||u&&w(b,"name").configurable)},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function j(t){var e={exports:{}};return t(e,e.exports),e.exports}var x="object"==typeof document&&document.all,I=void 0===x&&void 0!==x?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T=function(t){return t&&t.Math===Math&&t},P=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof E&&E)||T("object"==typeof E&&E)||function(){return this}()||Function("return this")(),R=Object.defineProperty,A=function(t,e){try{R(P,t,{value:e,configurable:!0,writable:!0})}catch(n){P[t]=e}return e},C=j((function(t){var e="__core-js_shared__",n=t.exports=P[e]||A(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),N=l(Function.toString);I(C.inspectSource)||(C.inspectSource=function(t){return N(t)});var k,M,L=C.inspectSource,D=P.WeakMap,F=I(D)&&/native code/.test(String(D)),z=function(t){return"object"==typeof t?null!==t:I(t)},_=P.document,U=z(_)&&z(_.createElement),B=function(t){return U?_.createElement(t):{}},G=!u&&!i((function(){return 7!==Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a})),W=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),V=String,H=TypeError,q=function(t){if(z(t))return t;throw new H(V(t)+" is not an object")},K=Function.prototype.call,X=a?K.bind(K):function(){return K.apply(K,arguments)},Y=function(t,e){return arguments.length<2?(n=P[t],I(n)?n:void 0):P[t]&&P[t][e];var n},$=l({}.isPrototypeOf),J=P.navigator,Q=J&&J.userAgent,Z=Q?String(Q):"",tt=P.process,et=P.Deno,nt=tt&&tt.versions||et&&et.version,rt=nt&&nt.v8;rt&&(M=(k=rt.split("."))[0]>0&&k[0]<4?1:+(k[0]+k[1])),!M&&Z&&(!(k=Z.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=Z.match(/Chrome\/(\d+)/))&&(M=+k[1]);var ot,it,ut,at=M,ct=P.String,ft=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&at&&at<41})),st=ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=Object,pt=st?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return I(e)&&$(e.prototype,lt(t))},dt=String,vt=function(t){try{return dt(t)}catch(t){return"Object"}},ht=TypeError,yt=function(t){if(I(t))return t;throw new ht(vt(t)+" is not a function")},gt=function(t,e){var n=t[e];return p(n)?void 0:yt(n)},mt=TypeError,bt=function(t,e){return C[t]||(C[t]=e||{})},wt=0,St=Math.random(),Ot=l(1..toString),Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ot(++wt+St,36)},jt=P.Symbol,xt=bt("wks"),It=st?jt.for||jt:jt&&jt.withoutSetter||Et,Tt=function(t){return m(xt,t)||(xt[t]=ft&&m(jt,t)?jt[t]:It("Symbol."+t)),xt[t]},Pt=TypeError,Rt=Tt("toPrimitive"),At=function(t,e){if(!z(t)||pt(t))return t;var n,r=gt(t,Rt);if(r){if(void 0===e&&(e="default"),n=X(r,t,e),!z(n)||pt(n))return n;throw new Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&I(n=t.toString)&&!z(r=X(n,t)))return r;if(I(n=t.valueOf)&&!z(r=X(n,t)))return r;if("string"!==e&&I(n=t.toString)&&!z(r=X(n,t)))return r;throw new mt("Can't convert object to primitive value")}(t,e)},Ct=function(t){var e=At(t,"string");return pt(e)?e:e+""},Nt=TypeError,kt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Dt="configurable",Ft="writable",zt={f:u?W?function(t,e,n){if(q(t),e=Ct(e),q(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Mt(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Lt in n?n[Lt]:r[Lt],writable:!1})}return kt(t,e,n)}:kt:function(t,e,n){if(q(t),e=Ct(e),q(n),G)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Nt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_t=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ut=u?function(t,e,n){return zt.f(t,e,_t(1,n))}:function(t,e,n){return t[e]=n,t},Bt=bt("keys"),Gt=function(t){return Bt[t]||(Bt[t]=Et(t))},Wt={},Vt="Object already initialized",Ht=P.TypeError,qt=P.WeakMap;if(F||C.state){var Kt=C.state||(C.state=new qt);Kt.get=Kt.get,Kt.has=Kt.has,Kt.set=Kt.set,ot=function(t,e){if(Kt.has(t))throw new Ht(Vt);return e.facade=t,Kt.set(t,e),e},it=function(t){return Kt.get(t)||{}},ut=function(t){return Kt.has(t)}}else{var Xt=Gt("state");Wt[Xt]=!0,ot=function(t,e){if(m(t,Xt))throw new Ht(Vt);return e.facade=t,Ut(t,Xt,e),e},it=function(t){return m(t,Xt)?t[Xt]:{}},ut=function(t){return m(t,Xt)}}var Yt={set:ot,get:it,has:ut,enforce:function(t){return ut(t)?it(t):ot(t,{})},getterFor:function(t){return function(e){var n;if(!z(e)||(n=it(e)).type!==t)throw new Ht("Incompatible receiver, "+t+" required");return n}}},$t=j((function(t){var e=O.CONFIGURABLE,n=Yt.enforce,r=Yt.get,o=String,a=Object.defineProperty,c=l("".slice),f=l("".replace),s=l([].join),p=u&&!i((function(){return 8!==a((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,r,i){"Symbol("===c(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!m(t,"name")||e&&t.name!==r)&&(u?a(t,"name",{value:r,configurable:!0}):t.name=r),p&&i&&m(i,"arity")&&t.length!==i.arity&&a(t,"length",{value:i.arity});try{i&&m(i,"constructor")&&i.constructor?u&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var l=n(t);return m(l,"source")||(l.source=s(d,"string"==typeof r?r:"")),t};Function.prototype.toString=v((function(){return I(this)&&r(this).source||L(this)}),"toString")})),Jt=function(t,e,n){return n.get&&$t(n.get,e,{getter:!0}),n.set&&$t(n.set,e,{setter:!0}),zt.f(t,e,n)},Qt=O.EXISTS,Zt=Function.prototype,te=l(Zt.toString),ee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=l(ee.exec);u&&!Qt&&Jt(Zt,"name",{configurable:!0,get:function(){try{return ne(ee,te(this))[1]}catch(t){return""}}});var re={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,ie={f:oe&&!re.call({1:2},1)?function(t){var e=oe(this,t);return!!e&&e.enumerable}:re},ue=l({}.toString),ae=l("".slice),ce=function(t){return ae(ue(t),8,-1)},fe=Object,se=l("".split),le=i((function(){return!fe("z").propertyIsEnumerable(0)}))?function(t){return"String"===ce(t)?se(t,""):fe(t)}:fe,pe=function(t){return le(v(t))},de=Object.getOwnPropertyDescriptor,ve={f:u?de:function(t,e){if(t=pe(t),e=Ct(e),G)try{return de(t,e)}catch(t){}if(m(t,e))return _t(!X(ie.f,t,e),t[e])}},he=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(I(n)&&$t(n,i,r),r.global)o?t[e]=n:A(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ye=Math.ceil,ge=Math.floor,me=Math.trunc||function(t){var e=+t;return(e>0?ge:ye)(e)},be=function(t){var e=+t;return e!=e||0===e?0:me(e)},we=Math.max,Se=Math.min,Oe=function(t,e){var n=be(t);return n<0?we(n+e,0):Se(n,e)},Ee=Math.min,je=function(t){return e=t.length,(n=be(e))>0?Ee(n,9007199254740991):0;var e,n},xe=function(t){return function(e,n,r){var o=pe(e),i=je(o);if(0===i)return!t&&-1;var u,a=Oe(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Ie={includes:xe(!0),indexOf:xe(!1)}.indexOf,Te=l([].push),Pe=function(t,e){var n,r=pe(t),o=0,i=[];for(n in r)!m(Wt,n)&&m(r,n)&&Te(i,n);for(;e.length>o;)m(r,n=e[o++])&&(~Ie(i,n)||Te(i,n));return i},Re=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ae=Re.concat("length","prototype"),Ce={f:Object.getOwnPropertyNames||function(t){return Pe(t,Ae)}},Ne={f:Object.getOwnPropertySymbols},ke=l([].concat),Me=Y("Reflect","ownKeys")||function(t){var e=Ce.f(q(t)),n=Ne.f;return n?ke(e,n(t)):e},Le=function(t,e,n){for(var r=Me(e),o=zt.f,i=ve.f,u=0;u<r.length;u++){var a=r[u];m(t,a)||n&&m(n,a)||o(t,a,i(e,a))}},De=/#|\.prototype\./,Fe=function(t,e){var n=_e[ze(t)];return n===Be||n!==Ue&&(I(e)?i(e):!!e)},ze=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},_e=Fe.data={},Ue=Fe.NATIVE="N",Be=Fe.POLYFILL="P",Ge=Fe,We=ve.f,Ve=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,f=t.stat;if(n=c?P:f?P[a]||A(a,{}):P[a]&&P[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=We(n,r))&&u.value:n[r],!Ge(c?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Le(i,o)}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),he(n,r,i,t)}},He=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))},qe=l([].join),Ke=le!==Object||!He("join",",");Ve({target:"Array",proto:!0,forced:Ke},{join:function(t){return qe(pe(this),void 0===t?",":t)}});var Xe={};Xe[Tt("toStringTag")]="z";var Ye,$e="[object z]"===String(Xe),Je=Tt("toStringTag"),Qe=Object,Ze="Arguments"===ce(function(){return arguments}()),tn=$e?ce:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Qe(t),Je))?n:Ze?ce(e):"Object"===(r=ce(e))&&I(e.callee)?"Arguments":r},en=String,nn=function(t){if("Symbol"===tn(t))throw new TypeError("Cannot convert a Symbol value to a string");return en(t)},rn=function(){var t=q(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},on=P.RegExp,un=i((function(){var t=on("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),an=un||i((function(){return!on("a","y").sticky})),cn={BROKEN_CARET:un||i((function(){var t=on("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:an,UNSUPPORTED_Y:un},fn=Object.keys||function(t){return Pe(t,Re)},sn=u&&!W?Object.defineProperties:function(t,e){q(t);for(var n,r=pe(e),o=fn(e),i=o.length,u=0;i>u;)zt.f(t,n=o[u++],r[n]);return t},ln={f:sn},pn=Y("document","documentElement"),dn="prototype",vn="script",hn=Gt("IE_PROTO"),yn=function(){},gn=function(t){return"<"+vn+">"+t+"</"+vn+">"},mn=function(t){t.write(gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},bn=function(){try{Ye=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;bn="undefined"!=typeof document?document.domain&&Ye?mn(Ye):(e=B("iframe"),n="java"+vn+":",e.style.display="none",pn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(gn("document.F=Object")),t.close(),t.F):mn(Ye);for(var r=Re.length;r--;)delete bn[dn][Re[r]];return bn()};Wt[hn]=!0;var wn,Sn,On=Object.create||function(t,e){var n;return null!==t?(yn[dn]=q(t),n=new yn,yn[dn]=null,n[hn]=t):n=bn(),void 0===e?n:ln.f(n,e)},En=P.RegExp,jn=i((function(){var t=En(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),xn=P.RegExp,In=i((function(){var t=xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Tn=Yt.get,Pn=bt("native-string-replace",String.prototype.replace),Rn=RegExp.prototype.exec,An=Rn,Cn=l("".charAt),Nn=l("".indexOf),kn=l("".replace),Mn=l("".slice),Ln=(Sn=/b*/g,X(Rn,wn=/a/,"a"),X(Rn,Sn,"a"),0!==wn.lastIndex||0!==Sn.lastIndex),Dn=cn.BROKEN_CARET,Fn=void 0!==/()??/.exec("")[1];(Ln||Fn||Dn||jn||In)&&(An=function(t){var e,n,r,o,i,u,a,c=this,f=Tn(c),s=nn(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=X(An,l,s),c.lastIndex=l.lastIndex,e;var p=f.groups,d=Dn&&c.sticky,v=X(rn,c),h=c.source,y=0,g=s;if(d&&(v=kn(v,"y",""),-1===Nn(v,"g")&&(v+="g"),g=Mn(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Cn(s,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",v)),Fn&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Ln&&(r=c.lastIndex),o=X(Rn,d?n:c,g),d?o?(o.input=Mn(o.input,y),o[0]=Mn(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ln&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Fn&&o&&o.length>1&&X(Pn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=On(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});Ve({target:"RegExp",proto:!0,forced:/./.exec!==An},{exec:An});n.append&&(o.default.fn.append=n.append),n.on&&(o.default.fn.on=n.on),n.remove&&(o.default.fn.remove=n.remove),n.val&&(o.default.fn.val=n.val),n.click&&(o.default.fn.click=n.click),n.hide&&(o.default.fn.hide=n.hide);var zn=zt.f,_n=Tt("unscopables"),Un=Array.prototype;void 0===Un[_n]&&zn(Un,_n,{configurable:!0,value:On(null)});var Bn,Gn,Wn,Vn=function(t){Un[_n][t]=!0},Hn={},qn=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Kn=Gt("IE_PROTO"),Xn=Object,Yn=Xn.prototype,$n=qn?Xn.getPrototypeOf:function(t){var e=y(t);if(m(e,Kn))return e[Kn];var n=e.constructor;return I(n)&&e instanceof n?n.prototype:e instanceof Xn?Yn:null},Jn=Tt("iterator"),Qn=!1;[].keys&&("next"in(Wn=[].keys())?(Gn=$n($n(Wn)))!==Object.prototype&&(Bn=Gn):Qn=!0);var Zn=!z(Bn)||i((function(){var t={};return Bn[Jn].call(t)!==t}));Zn&&(Bn={}),I(Bn[Jn])||he(Bn,Jn,(function(){return this}));var tr={IteratorPrototype:Bn,BUGGY_SAFARI_ITERATORS:Qn},er=zt.f,nr=Tt("toStringTag"),rr=function(t,e,n){t&&!n&&(t=t.prototype),t&&!m(t,nr)&&er(t,nr,{configurable:!0,value:e})},or=tr.IteratorPrototype,ir=function(){return this},ur=String,ar=TypeError,cr=function(t){if(function(t){return z(t)||null===t}(t))return t;throw new ar("Can't set "+ur(t)+" as a prototype")},fr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return l(yt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return v(n),cr(r),z(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),sr=O.PROPER,lr=O.CONFIGURABLE,pr=tr.IteratorPrototype,dr=tr.BUGGY_SAFARI_ITERATORS,vr=Tt("iterator"),hr="keys",yr="values",gr="entries",mr=function(){return this},br=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=On(or,{next:_t(+!r,n)}),rr(t,o,!1),Hn[o]=ir}(n,e,r);var a,c,f,s=function(t){if(t===o&&h)return h;if(!dr&&t&&t in d)return d[t];switch(t){case hr:case yr:case gr:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[vr]||d["@@iterator"]||o&&d[o],h=!dr&&v||s(o),y="Array"===e&&d.entries||v;if(y&&(a=$n(y.call(new t)))!==Object.prototype&&a.next&&($n(a)!==pr&&(fr?fr(a,pr):I(a[vr])||he(a,vr,mr)),rr(a,l,!0)),sr&&o===yr&&v&&v.name!==yr&&(lr?Ut(d,"name",yr):(p=!0,h=function(){return X(v,this)})),o)if(c={values:s(yr),keys:i?h:s(hr),entries:s(gr)},u)for(f in c)(dr||p||!(f in d))&&he(d,f,c[f]);else Ve({target:e,proto:!0,forced:dr||p},c);return d[vr]!==h&&he(d,vr,h,{name:o}),Hn[e]=h,c},wr=function(t,e){return{value:t,done:e}},Sr=zt.f,Or="Array Iterator",Er=Yt.set,jr=Yt.getterFor(Or),xr=br(Array,"Array",(function(t,e){Er(this,{type:Or,target:pe(t),index:0,kind:e})}),(function(){var t=jr(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,wr(void 0,!0);switch(t.kind){case"keys":return wr(n,!1);case"values":return wr(e[n],!1)}return wr([n,e[n]],!1)}),"values"),Ir=Hn.Arguments=Hn.Array;if(Vn("keys"),Vn("values"),Vn("entries"),u&&"values"!==Ir.name)try{Sr(Ir,"name",{value:"values"})}catch(t){}var Tr=Array.isArray||function(t){return"Array"===ce(t)},Pr=function(){},Rr=Y("Reflect","construct"),Ar=/^\s*(?:class|function)\b/,Cr=l(Ar.exec),Nr=!Ar.test(Pr),kr=function(t){if(!I(t))return!1;try{return Rr(Pr,[],t),!0}catch(t){return!1}},Mr=function(t){if(!I(t))return!1;switch(tn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Nr||!!Cr(Ar,L(t))}catch(t){return!0}};Mr.sham=!0;var Lr,Dr=!Rr||i((function(){var t;return kr(kr.call)||!kr(Object)||!kr((function(){t=!0}))||t}))?Mr:kr,Fr=Tt("species"),zr=l([].slice),_r=(Lr="slice",at>=51||!i((function(){var t=[];return(t.constructor={})[Fr]=function(){return{foo:1}},1!==t[Lr](Boolean).foo}))),Ur=Tt("species"),Br=Array,Gr=Math.max;Ve({target:"Array",proto:!0,forced:!_r},{slice:function(t,e){var n,r,o,i,a,c,f=pe(this),s=je(f),l=Oe(t,s),p=Oe(void 0===e?s:e,s);if(Tr(f)&&(n=f.constructor,(Dr(n)&&(n===Br||Tr(n.prototype))||z(n)&&null===(n=n[Ur]))&&(n=void 0),n===Br||void 0===n))return zr(f,l,p);for(r=new(void 0===n?Br:n)(Gr(p-l,0)),o=0;l<p;l++,o++)l in f&&(i=r,a=o,c=f[l],u?zt.f(i,a,_t(0,c)):i[a]=c);return r.length=o,r}});var Wr=$e?{}.toString:function(){return"[object "+tn(this)+"]"};$e||he(Object.prototype,"toString",Wr,{unsafe:!0});var Vr,Hr,qr,Kr,Xr=function(t){return Z.slice(0,t.length)===t},Yr=Xr("Bun/")?"BUN":Xr("Cloudflare-Workers")?"CLOUDFLARE":Xr("Deno/")?"DENO":Xr("Node.js/")?"NODE":P.Bun&&"string"==typeof Bun.version?"BUN":P.Deno&&"object"==typeof Deno.version?"DENO":"process"===ce(P.process)?"NODE":P.window&&P.document?"BROWSER":"REST",$r="NODE"===Yr,Jr=Tt("species"),Qr=TypeError,Zr=function(t,e){if($(e,t))return t;throw new Qr("Incorrect invocation")},to=TypeError,eo=Tt("species"),no=function(t,e){var n,r=q(t).constructor;return void 0===r||p(n=q(r)[eo])?e:function(t){if(Dr(t))return t;throw new to(vt(t)+" is not a constructor")}(n)},ro=Function.prototype,oo=ro.apply,io=ro.call,uo="object"==typeof Reflect&&Reflect.apply||(a?io.bind(oo):function(){return io.apply(oo,arguments)}),ao=function(t){if("Function"===ce(t))return l(t)},co=ao(ao.bind),fo=function(t,e){return yt(t),void 0===e?t:a?co(t,e):function(){return t.apply(e,arguments)}},so=TypeError,lo=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),po=P.setImmediate,vo=P.clearImmediate,ho=P.process,yo=P.Dispatch,go=P.Function,mo=P.MessageChannel,bo=P.String,wo=0,So={},Oo="onreadystatechange";i((function(){Vr=P.location}));var Eo=function(t){if(m(So,t)){var e=So[t];delete So[t],e()}},jo=function(t){return function(){Eo(t)}},xo=function(t){Eo(t.data)},Io=function(t){P.postMessage(bo(t),Vr.protocol+"//"+Vr.host)};po&&vo||(po=function(t){!function(t,e){if(t<e)throw new so("Not enough arguments")}(arguments.length,1);var e=I(t)?t:go(t),n=zr(arguments,1);return So[++wo]=function(){uo(e,void 0,n)},Hr(wo),wo},vo=function(t){delete So[t]},$r?Hr=function(t){ho.nextTick(jo(t))}:yo&&yo.now?Hr=function(t){yo.now(jo(t))}:mo&&!lo?(Kr=(qr=new mo).port2,qr.port1.onmessage=xo,Hr=fo(Kr.postMessage,Kr)):P.addEventListener&&I(P.postMessage)&&!P.importScripts&&Vr&&"file:"!==Vr.protocol&&!i(Io)?(Hr=Io,P.addEventListener("message",xo,!1)):Hr=Oo in B("script")?function(t){pn.appendChild(B("script"))[Oo]=function(){pn.removeChild(this),Eo(t)}}:function(t){setTimeout(jo(t),0)});var To={set:po,clear:vo},Po=Object.getOwnPropertyDescriptor,Ro=function(){this.head=null,this.tail=null};Ro.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ao,Co,No,ko,Mo,Lo=Ro,Do=/ipad|iphone|ipod/i.test(Z)&&"undefined"!=typeof Pebble,Fo=/web0s(?!.*chrome)/i.test(Z),zo=To.set,_o=P.MutationObserver||P.WebKitMutationObserver,Uo=P.document,Bo=P.process,Go=P.Promise,Wo=function(t){if(!u)return P[t];var e=Po(P,t);return e&&e.value}("queueMicrotask");if(!Wo){var Vo=new Lo,Ho=function(){var t,e;for($r&&(t=Bo.domain)&&t.exit();e=Vo.get();)try{e()}catch(t){throw Vo.head&&Ao(),t}t&&t.enter()};lo||$r||Fo||!_o||!Uo?!Do&&Go&&Go.resolve?((ko=Go.resolve(void 0)).constructor=Go,Mo=fo(ko.then,ko),Ao=function(){Mo(Ho)}):$r?Ao=function(){Bo.nextTick(Ho)}:(zo=fo(zo,P),Ao=function(){zo(Ho)}):(Co=!0,No=Uo.createTextNode(""),new _o(Ho).observe(No,{characterData:!0}),Ao=function(){No.data=Co=!Co}),Wo=function(t){Vo.head||Ao(),Vo.add(t)}}var qo=Wo,Ko=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xo=P.Promise;Xo&&Xo.prototype;var Yo,$o,Jo,Qo,Zo=Tt("species"),ti=!1,ei=I(P.PromiseRejectionEvent),ni=Ge("Promise",(function(){var t=L(Xo),e=t!==String(Xo);if(!e&&66===at)return!0;if(!at||at<51||!/native code/.test(t)){var n=new Xo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Zo]=r,!(ti=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==Yr&&"DENO"!==Yr||ei)})),ri={CONSTRUCTOR:ni,REJECTION_EVENT:ei,SUBCLASSING:ti},oi=TypeError,ii=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new oi("Bad Promise constructor");e=t,n=r})),this.resolve=yt(e),this.reject=yt(n)},ui={f:function(t){return new ii(t)}},ai=To.set,ci="Promise",fi=ri.CONSTRUCTOR,si=ri.REJECTION_EVENT,li=ri.SUBCLASSING,pi=Yt.getterFor(ci),di=Yt.set,vi=Xo&&Xo.prototype,hi=Xo,yi=vi,gi=P.TypeError,mi=P.document,bi=P.process,wi=ui.f,Si=wi,Oi=!!(mi&&mi.createEvent&&P.dispatchEvent),Ei="unhandledrejection",ji=function(t){var e;return!(!z(t)||!I(e=t.then))&&e},xi=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{a?(u||(2===e.rejection&&Ai(e),e.rejection=1),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===t.promise?f(new gi("Promise-chain cycle")):(r=ji(n))?X(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},Ii=function(t,e){t.notified||(t.notified=!0,qo((function(){for(var n,r=t.reactions;n=r.get();)xi(n,t);t.notified=!1,e&&!t.rejection&&Pi(t)})))},Ti=function(t,e,n){var r,o;Oi?((r=mi.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),P.dispatchEvent(r)):r={promise:e,reason:n},!si&&(o=P["on"+t])?o(r):t===Ei&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Pi=function(t){X(ai,P,(function(){var e,n=t.facade,r=t.value;if(Ri(t)&&(e=Ko((function(){$r?bi.emit("unhandledRejection",r,n):Ti(Ei,n,r)})),t.rejection=$r||Ri(t)?2:1,e.error))throw e.value}))},Ri=function(t){return 1!==t.rejection&&!t.parent},Ai=function(t){X(ai,P,(function(){var e=t.facade;$r?bi.emit("rejectionHandled",e):Ti("rejectionhandled",e,t.value)}))},Ci=function(t,e,n){return function(r){t(e,r,n)}},Ni=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Ii(t,!0))},ki=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new gi("Promise can't be resolved itself");var r=ji(e);r?qo((function(){var n={done:!1};try{X(r,e,Ci(ki,n,t),Ci(Ni,n,t))}catch(e){Ni(n,e,t)}})):(t.value=e,t.state=1,Ii(t,!1))}catch(e){Ni({done:!1},e,t)}}};if(fi&&(yi=(hi=function(t){Zr(this,yi),yt(t),X(Yo,this);var e=pi(this);try{t(Ci(ki,e),Ci(Ni,e))}catch(t){Ni(e,t)}}).prototype,(Yo=function(t){di(this,{type:ci,done:!1,notified:!1,parent:!1,reactions:new Lo,rejection:!1,state:0,value:null})}).prototype=he(yi,"then",(function(t,e){var n=pi(this),r=wi(no(this,hi));return n.parent=!0,r.ok=!I(t)||t,r.fail=I(e)&&e,r.domain=$r?bi.domain:void 0,0===n.state?n.reactions.add(r):qo((function(){xi(r,n)})),r.promise})),$o=function(){var t=new Yo,e=pi(t);this.promise=t,this.resolve=Ci(ki,e),this.reject=Ci(Ni,e)},ui.f=wi=function(t){return t===hi||undefined===t?new $o(t):Si(t)},I(Xo)&&vi!==Object.prototype)){Jo=vi.then,li||he(vi,"then",(function(t,e){var n=this;return new hi((function(t,e){X(Jo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete vi.constructor}catch(t){}fr&&fr(vi,yi)}Ve({global:!0,constructor:!0,wrap:!0,forced:fi},{Promise:hi}),rr(hi,ci,!1),Qo=Y(ci),u&&Qo&&!Qo[Jr]&&Jt(Qo,Jr,{configurable:!0,get:function(){return this}});var Mi=Tt("iterator"),Li=Array.prototype,Di=Tt("iterator"),Fi=function(t){if(!p(t))return gt(t,Di)||gt(t,"@@iterator")||Hn[tn(t)]},zi=TypeError,_i=function(t,e,n){var r,o;q(t);try{if(!(r=gt(t,"return"))){if("throw"===e)throw n;return n}r=X(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return q(r),n},Ui=TypeError,Bi=function(t,e){this.stopped=t,this.result=e},Gi=Bi.prototype,Wi=function(t,e,n){var r,o,i,u,a,c,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=fo(e,l),g=function(t){return r&&_i(r,"normal",t),new Bi(!0,t)},m=function(t){return p?(q(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Fi(t)))throw new Ui(vt(t)+" is not iterable");if(void 0!==(s=o)&&(Hn.Array===s||Li[Mi]===s)){for(i=0,u=je(t);u>i;i++)if((a=m(t[i]))&&$(Gi,a))return a;return new Bi(!1)}r=function(t,e){var n=arguments.length<2?Fi(t):e;if(yt(n))return q(X(n,t));throw new zi(vt(t)+" is not iterable")}(t,o)}for(c=d?t.next:r.next;!(f=X(c,r)).done;){try{a=m(f.value)}catch(t){_i(r,"throw",t)}if("object"==typeof a&&a&&$(Gi,a))return a}return new Bi(!1)},Vi=Tt("iterator"),Hi=!1;try{var qi=0,Ki={next:function(){return{done:!!qi++}},return:function(){Hi=!0}};Ki[Vi]=function(){return this},Array.from(Ki,(function(){throw 2}))}catch(t){}var Xi=function(t,e){try{if(!e&&!Hi)return!1}catch(t){return!1}var n=!1;try{var r={};r[Vi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Yi=ri.CONSTRUCTOR||!Xi((function(t){Xo.all(t).then(void 0,(function(){}))}));Ve({target:"Promise",stat:!0,forced:Yi},{all:function(t){var e=this,n=ui.f(e),r=n.resolve,o=n.reject,i=Ko((function(){var n=yt(e.resolve),i=[],u=0,a=1;Wi(t,(function(t){var c=u++,f=!1;a++,X(n,e,t).then((function(t){f||(f=!0,i[c]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var $i=ri.CONSTRUCTOR,Ji=Xo&&Xo.prototype;if(Ve({target:"Promise",proto:!0,forced:$i,real:!0},{catch:function(t){return this.then(void 0,t)}}),I(Xo)){var Qi=Y("Promise").prototype.catch;Ji.catch!==Qi&&he(Ji,"catch",Qi,{unsafe:!0})}Ve({target:"Promise",stat:!0,forced:Yi},{race:function(t){var e=this,n=ui.f(e),r=n.reject,o=Ko((function(){var o=yt(e.resolve);Wi(t,(function(t){X(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ve({target:"Promise",stat:!0,forced:ri.CONSTRUCTOR},{reject:function(t){var e=ui.f(this);return(0,e.reject)(t),e.promise}});var Zi=ri.CONSTRUCTOR;Y("Promise"),Ve({target:"Promise",stat:!0,forced:Zi},{resolve:function(t){return function(t,e){if(q(t),z(e)&&e.constructor===t)return e;var n=ui.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var tu=RegExp.prototype,eu=O.PROPER,nu="toString",ru=RegExp.prototype,ou=ru[nu],iu=i((function(){return"/a/b"!==ou.call({source:"a",flags:"b"})})),uu=eu&&ou.name!==nu;(iu||uu)&&he(ru,nu,(function(){var t=q(this),e=nn(t.source),n=nn(function(t){var e=t.flags;return void 0!==e||"flags"in tu||m(t,"flags")||!$(tu,t)?e:X(rn,t)}(t));return"/"+e+"/"+n}),{unsafe:!0});var au=l("".charAt),cu=l("".charCodeAt),fu=l("".slice),su=function(t){return function(e,n){var r,o,i=nn(v(e)),u=be(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=cu(i,u))<55296||r>56319||u+1===a||(o=cu(i,u+1))<56320||o>57343?t?au(i,u):r:t?fu(i,u,u+2):o-56320+(r-55296<<10)+65536}},lu={codeAt:su(!1),charAt:su(!0)}.charAt,pu="String Iterator",du=Yt.set,vu=Yt.getterFor(pu);br(String,"String",(function(t){du(this,{type:pu,string:nn(t),index:0})}),(function(){var t,e=vu(this),n=e.string,r=e.index;return r>=n.length?wr(void 0,!0):(t=lu(n,r),e.index+=t.length,wr(t,!1))}));var hu=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),yu=function(t,e,n){for(var r in e)he(t,r,e[r],n);return t},gu=Ce.f,mu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bu={f:function(t){return mu&&"Window"===ce(t)?function(t){try{return gu(t)}catch(t){return zr(mu)}}(t):gu(pe(t))}},wu=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Su=Object.isExtensible,Ou=i((function(){Su(1)}))||wu?function(t){return!!z(t)&&((!wu||"ArrayBuffer"!==ce(t))&&(!Su||Su(t)))}:Su,Eu=j((function(t){var e=zt.f,n=!1,r=Et("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=Ce.f,e=l([].splice),o={};o[r]=1,t(o).length&&(Ce.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},Ve({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bu.f}))},fastKey:function(t,e){if(!z(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!m(t,r)){if(!Ou(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!m(t,r)){if(!Ou(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return hu&&n&&Ou(t)&&!m(t,r)&&i(t),t}};Wt[r]=!0})),ju=Tt("species"),xu=Array,Iu=function(t,e){return new(function(t){var e;return Tr(t)&&(e=t.constructor,(Dr(e)&&(e===xu||Tr(e.prototype))||z(e)&&null===(e=e[ju]))&&(e=void 0)),void 0===e?xu:e}(t))(0===e?0:e)},Tu=l([].push),Pu=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var p,d,v=y(c),h=le(v),g=je(h),m=fo(f,s),b=0,w=l||Iu,S=e?w(c,g):n||u?w(c,0):void 0;g>b;b++)if((a||b in h)&&(d=m(p=h[b],b,v),t))if(e)S[b]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:Tu(S,p)}else switch(t){case 4:return!1;case 7:Tu(S,p)}return i?-1:r||o?o:S}},Ru={forEach:Pu(0),map:Pu(1),filter:Pu(2),some:Pu(3),every:Pu(4),find:Pu(5),findIndex:Pu(6),filterReject:Pu(7)},Au=Eu.getWeakData,Cu=Yt.set,Nu=Yt.getterFor,ku=Ru.find,Mu=Ru.findIndex,Lu=l([].splice),Du=0,Fu=function(t){return t.frozen||(t.frozen=new zu)},zu=function(){this.entries=[]},_u=function(t,e){return ku(t.entries,(function(t){return t[0]===e}))};zu.prototype={get:function(t){var e=_u(this,t);if(e)return e[1]},has:function(t){return!!_u(this,t)},set:function(t,e){var n=_u(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Mu(this.entries,(function(e){return e[0]===t}));return~e&&Lu(this.entries,e,1),!!~e}};var Uu,Bu={getConstructor:function(t,e,n,r){var o=t((function(t,o){Zr(t,i),Cu(t,{type:e,id:Du++,frozen:null}),p(o)||Wi(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=Nu(e),a=function(t,e,n){var r=u(t),o=Au(q(e),!0);return!0===o?Fu(r).set(e,n):o[r.id]=n,t};return yu(i,{delete:function(t){var e=u(this);if(!z(t))return!1;var n=Au(t);return!0===n?Fu(e).delete(t):n&&m(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!z(t))return!1;var n=Au(t);return!0===n?Fu(e).has(t):n&&m(n,e.id)}}),yu(i,n?{get:function(t){var e=u(this);if(z(t)){var n=Au(t);if(!0===n)return Fu(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Gu=Yt.enforce,Wu=Object,Vu=Array.isArray,Hu=Wu.isExtensible,qu=Wu.isFrozen,Ku=Wu.isSealed,Xu=Wu.freeze,Yu=Wu.seal,$u=!P.ActiveXObject&&"ActiveXObject"in P,Ju=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Qu=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=r?"set":"add",a=P[t],c=a&&a.prototype,f=a,s={},d=function(t){var e=l(c[t]);he(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!z(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!z(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!z(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Ge(t,!I(a)||!(o||c.forEach&&!i((function(){(new a).entries().next()})))))f=n.getConstructor(e,t,r,u),Eu.enable();else if(Ge(t,!0)){var v=new f,h=v[u](o?{}:-0,1)!==v,y=i((function(){v.has(1)})),g=Xi((function(t){new a(t)})),m=!o&&i((function(){for(var t=new a,e=5;e--;)t[u](e,e);return!t.has(-0)}));g||((f=e((function(t,e){Zr(t,c);var n=function(t,e,n){var r,o;return fr&&I(r=e.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&fr(t,o),t}(new a,t,f);return p(e)||Wi(e,n[u],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=f),(y||m)&&(d("delete"),d("has"),r&&d("get")),(m||h)&&d(u),o&&c.clear&&delete c.clear}return s[t]=f,Ve({global:!0,constructor:!0,forced:f!==a},s),rr(f,t),o||n.setStrong(f,t,r),f}("WeakMap",Ju,Bu),Zu=Qu.prototype,ta=l(Zu.set);if(F)if($u){Uu=Bu.getConstructor(Ju,"WeakMap",!0),Eu.enable();var ea=l(Zu.delete),na=l(Zu.has),ra=l(Zu.get);yu(Zu,{delete:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),ea(this,t)||e.frozen.delete(t)}return ea(this,t)},has:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),na(this,t)||e.frozen.has(t)}return na(this,t)},get:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),na(this,t)?ra(this,t):e.frozen.get(t)}return ra(this,t)},set:function(t,e){if(z(t)&&!Hu(t)){var n=Gu(this);n.frozen||(n.frozen=new Uu),na(this,t)?ta(this,t,e):n.frozen.set(t,e)}else ta(this,t,e);return this}})}else hu&&i((function(){var t=Xu([]);return ta(new Qu,t,1),!qu(t)}))&&yu(Zu,{set:function(t,e){var n;return Vu(t)&&(qu(t)?n=Xu:Ku(t)&&(n=Yu)),ta(this,t,e),n&&n(t),this}});var oa={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},ia=B("span").classList,ua=ia&&ia.constructor&&ia.constructor.prototype,aa=ua===Object.prototype?void 0:ua,ca=Ru.forEach,fa=He("forEach")?[].forEach:function(t){return ca(this,t,arguments.length>1?arguments[1]:void 0)},sa=function(t){if(t&&t.forEach!==fa)try{Ut(t,"forEach",fa)}catch(e){t.forEach=fa}};for(var la in oa)oa[la]&&sa(P[la]&&P[la].prototype);sa(aa);var pa=Tt("iterator"),da=xr.values,va=function(t,e){if(t){if(t[pa]!==da)try{Ut(t,pa,da)}catch(e){t[pa]=da}if(rr(t,e,!0),oa[e])for(var n in xr)if(t[n]!==xr[n])try{Ut(t,n,xr[n])}catch(e){t[n]=xr[n]}}};for(var ha in oa)va(P[ha]&&P[ha].prototype,ha);va(aa,"DOMTokenList");var ya=function(){return ya=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ya.apply(this,arguments)};function ga(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))}function ma(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function ba(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wa(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=ba(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var Sa=new WeakMap;function Oa(t){return t.getMenuConfig("uploadImage")}function Ea(t,n){return ga(this,void 0,void 0,(function(){return ma(this,(function(r){return[2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),a=0===u.indexOf("data:image")?"":u;e.insertImageNode(t,u,n.name,a),r("ok")}}}))]}))}))}function ja(n,r){return ga(this,void 0,void 0,(function(){var o,i,u,a;return ma(this,(function(c){switch(c.label){case 0:return o=function(n){var r=Sa.get(n);if(null!=r)return r;var o=Oa(n),i=o.onSuccess,u=o.onProgress,a=o.onFailed,c=o.customInsert,f=o.onError;return r=t.createUploader(ya(ya({},o),{onProgress:function(t){n.showProgressBar(t),u&&u(t)},onSuccess:function(t,r){if(c)return c(r,(function(t,r,o){return e.insertImageNode(n,t,r,o)})),void i(t,r);var o=r.errno,u=void 0===o?1:o,f=r.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach((function(t){var r=t.url,o=void 0===r?"":r,i=t.alt,u=void 0===i?"":i,a=t.href,c=void 0===a?"":a;e.insertImageNode(n,o,u,c)}));else{var l=s.url,p=void 0===l?"":l,d=s.alt,v=void 0===d?"":d,h=s.href,y=void 0===h?"":h;e.insertImageNode(n,p,v,y)}i(t,r)}else a(t,r)},onError:function(t,e,n){f(t,e,n)}})),Sa.set(n,r),r}(n),i=r.name,u=r.type,a=r.size,o.addFile({name:i,type:u,size:a,data:r}),[4,o.upload()];case 1:return c.sent(),[2]}}))}))}function xa(t,n){var r,o,i,u;return ga(this,void 0,void 0,(function(){var a,c,f,s,l,p,d,v,h,y;return ma(this,(function(g){switch(g.label){case 0:if(null==n)return[2];a=Array.prototype.slice.call(n),c=Oa(t),f=c.customUpload,s=c.base64LimitSize,g.label=1;case 1:g.trys.push([1,14,15,20]),l=!0,p=wa(a),g.label=2;case 2:return[4,p.next()];case 3:if(d=g.sent(),r=d.done)return[3,13];u=d.value,l=!1,g.label=4;case 4:return g.trys.push([4,,11,12]),h=(v=u).size,s&&h<=s?[4,Ea(t,v)]:[3,6];case 5:return g.sent(),[3,10];case 6:return f?[4,f(v,(function(n,r,o){return e.insertImageNode(t,n,r,o)}))]:[3,8];case 7:return g.sent(),[3,10];case 8:return[4,ja(t,v)];case 9:g.sent(),g.label=10;case 10:return[3,12];case 11:return l=!0,[7];case 12:return[3,2];case 13:return[3,20];case 14:return y=g.sent(),o={error:y},[3,20];case 15:return g.trys.push([15,,18,19]),l||r||!(i=p.return)?[3,17]:[4,i.call(p)];case 16:g.sent(),g.label=17;case 17:return[3,19];case 18:if(o)throw o.error;return[7];case 19:return[7];case 20:return[2]}}))}))}var Ia=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.isDisabled=function(t){return e.isInsertImageMenuDisabled(t)},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},n.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,u=void 0===i?[]:i,a=r.customBrowseAndUpload;if(a)a((function(n,r,o){return e.insertImageNode(t,n,r,o)}));else{var c="";u.length>0&&(c='accept="'.concat(u.join(", "),'"'));var f=o.default("body"),s=o.default('<input type="file" '.concat(c," multiple/>"));s.hide(),f.append(s),s.click(),s.on("change",(function(){var e=s[0].files;xa(t,e)}))}},n}();var Ta={menus:[{key:"uploadImage",factory:function(){return new Ia},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'".concat(t.name,"' upload failed"),e)},onError:function(t,e,n){console.error("'".concat(t.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(t){var n=t.insertData,r=t;return r.insertData=function(o){if(e.isInsertImageMenuDisabled(r))n(o);else if(o.getData("text/plain"))n(o);else{var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some((function(t){return"image"===function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(t.type.split("/"),1)[0]}))?xa(t,i):n(o)}},r}};return Ta}));
2
2
  //# sourceMappingURL=index.js.map