UNPKG

@ace-util/injects

Version:
6 lines (4 loc) 38.8 kB
/** * @ace-util/injects@0.3.12 */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("index",["exports"],e):e(((t=t||self).AceUtil=t.AceUtil||{},t.AceUtil.Injects={}))}(this,(function(t){"use strict";!function(){var t=this||self;t.globalThis=t}(),function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o,i=function(t){return t&&t.Math==Math&&t},c=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,l=f?s.bind(s):function(){return s.apply(s,arguments)},p={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,h={f:v&&!p.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=Function.prototype,g=y.bind,b=y.call,m=f&&g.bind(b,b),w=f?function(t){return t&&m(t)}:function(t){return t&&function(){return b.apply(t,arguments)}},S=w({}.toString),O=w("".slice),E=function(t){return O(S(t),8,-1)},x=Object,j=w("".split),A=a((function(){return!x("z").propertyIsEnumerable(0)}))?function(t){return"String"==E(t)?j(t,""):x(t)}:x,T=TypeError,I=function(t){if(null==t)throw T("Can't call method on "+t);return t},P=function(t){return A(I(t))},C=function(t){return"function"==typeof t},N=function(t){return"object"==typeof t?null!==t:C(t)},R=function(t){return C(t)?t:void 0},k=function(t,e){return arguments.length<2?R(c[t]):c[t]&&c[t][e]},_=w({}.isPrototypeOf),M=k("navigator","userAgent")||"",L=c.process,F=c.Deno,U=L&&L.versions||F&&F.version,D=U&&U.v8;D&&(o=(n=D.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&M&&(!(n=M.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=M.match(/Chrome\/(\d+)/))&&(o=+n[1]);var $=o,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$&&$<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,z=Object,B=V?function(t){return"symbol"==typeof t}:function(t){var e=k("Symbol");return C(e)&&_(e.prototype,z(t))},W=String,K=function(t){try{return W(t)}catch(t){return"Object"}},H=TypeError,Y=function(t){if(C(t))return t;throw H(K(t)+" is not a function")},q=function(t,e){var r=t[e];return null==r?void 0:Y(r)},X=TypeError,J=Object.defineProperty,Q=function(t,e){try{J(c,t,{value:e,configurable:!0,writable:!0})}catch(r){c[t]=e}return e},Z=c["__core-js_shared__"]||Q("__core-js_shared__",{}),tt=r((function(t){(t.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),et=Object,rt=function(t){return et(I(t))},nt=w({}.hasOwnProperty),ot=Object.hasOwn||function(t,e){return nt(rt(t),e)},it=0,ct=Math.random(),at=w(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++it+ct,36)},ft=tt("wks"),st=c.Symbol,lt=st&&st.for,pt=V?st:st&&st.withoutSetter||ut,vt=function(t){if(!ot(ft,t)||!G&&"string"!=typeof ft[t]){var e="Symbol."+t;G&&ot(st,t)?ft[t]=st[t]:ft[t]=V&&lt?lt(e):pt(e)}return ft[t]},ht=TypeError,dt=vt("toPrimitive"),yt=function(t,e){if(!N(t)||B(t))return t;var r,n=q(t,dt);if(n){if(void 0===e&&(e="default"),r=l(n,t,e),!N(r)||B(r))return r;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&C(r=t.toString)&&!N(n=l(r,t)))return n;if(C(r=t.valueOf)&&!N(n=l(r,t)))return n;if("string"!==e&&C(r=t.toString)&&!N(n=l(r,t)))return n;throw X("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=yt(t,"string");return B(e)?e:e+""},bt=c.document,mt=N(bt)&&N(bt.createElement),wt=function(t){return mt?bt.createElement(t):{}},St=!u&&!a((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),Ot=Object.getOwnPropertyDescriptor,Et={f:u?Ot:function(t,e){if(t=P(t),e=gt(e),St)try{return Ot(t,e)}catch(t){}if(ot(t,e))return d(!l(h.f,t,e),t[e])}},xt=u&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,At=TypeError,Tt=function(t){if(N(t))return t;throw At(jt(t)+" is not an object")},It=TypeError,Pt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,Nt={f:u?xt?function(t,e,r){if(Tt(t),e=gt(e),Tt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Ct(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Pt(t,e,r)}:Pt:function(t,e,r){if(Tt(t),e=gt(e),Tt(r),St)try{return Pt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Rt=u?function(t,e,r){return Nt.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},kt=Function.prototype,_t=u&&Object.getOwnPropertyDescriptor,Mt=ot(kt,"name"),Lt={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!u||u&&_t(kt,"name").configurable)},Ft=w(Function.toString);C(Z.inspectSource)||(Z.inspectSource=function(t){return Ft(t)});var Ut,Dt,$t,Gt=Z.inspectSource,Vt=c.WeakMap,zt=C(Vt)&&/native code/.test(Gt(Vt)),Bt=tt("keys"),Wt=function(t){return Bt[t]||(Bt[t]=ut(t))},Kt={},Ht=c.TypeError,Yt=c.WeakMap;if(zt||Z.state){var qt=Z.state||(Z.state=new Yt),Xt=w(qt.get),Jt=w(qt.has),Qt=w(qt.set);Ut=function(t,e){if(Jt(qt,t))throw new Ht("Object already initialized");return e.facade=t,Qt(qt,t,e),e},Dt=function(t){return Xt(qt,t)||{}},$t=function(t){return Jt(qt,t)}}else{var Zt=Wt("state");Kt[Zt]=!0,Ut=function(t,e){if(ot(t,Zt))throw new Ht("Object already initialized");return e.facade=t,Rt(t,Zt,e),e},Dt=function(t){return ot(t,Zt)?t[Zt]:{}},$t=function(t){return ot(t,Zt)}}var te={set:Ut,get:Dt,has:$t,enforce:function(t){return $t(t)?Dt(t):Ut(t,{})},getterFor:function(t){return function(e){var r;if(!N(e)||(r=Dt(e)).type!==t)throw Ht("Incompatible receiver, "+t+" required");return r}}},ee=r((function(t){var e=Lt.CONFIGURABLE,r=te.enforce,n=te.get,o=Object.defineProperty,i=u&&!a((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),f=t.exports=function(t,n,a){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!ot(t,"name")||e&&t.name!==n)&&(u?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&a&&ot(a,"arity")&&t.length!==a.arity&&o(t,"length",{value:a.arity});try{a&&ot(a,"constructor")&&a.constructor?u&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var f=r(t);return ot(f,"source")||(f.source=c.join("string"==typeof n?n:"")),t};Function.prototype.toString=f((function(){return C(this)&&n(this).source||Gt(this)}),"toString")})),re=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(C(r)&&ee(r,i,n),n.global)o?t[e]=r:Q(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Nt.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ne=Math.ceil,oe=Math.floor,ie=Math.trunc||function(t){var e=+t;return(e>0?oe:ne)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:ie(e)},ae=Math.max,ue=Math.min,fe=function(t,e){var r=ce(t);return r<0?ae(r+e,0):ue(r,e)},se=Math.min,le=function(t){return t>0?se(ce(t),9007199254740991):0},pe=function(t){return le(t.length)},ve=function(t){return function(e,r,n){var o,i=P(e),c=pe(i),a=fe(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},he={includes:ve(!0),indexOf:ve(!1)}.indexOf,de=w([].push),ye=function(t,e){var r,n=P(t),o=0,i=[];for(r in n)!ot(Kt,r)&&ot(n,r)&&de(i,r);for(;e.length>o;)ot(n,r=e[o++])&&(~he(i,r)||de(i,r));return i},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=ge.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(t){return ye(t,be)}},we={f:Object.getOwnPropertySymbols},Se=w([].concat),Oe=k("Reflect","ownKeys")||function(t){var e=me.f(Tt(t)),r=we.f;return r?Se(e,r(t)):e},Ee=function(t,e,r){for(var n=Oe(e),o=Nt.f,i=Et.f,c=0;c<n.length;c++){var a=n[c];ot(t,a)||r&&ot(r,a)||o(t,a,i(e,a))}},xe=/#|\.prototype\./,je=function(t,e){var r=Te[Ae(t)];return r==Pe||r!=Ie&&(C(e)?a(e):!!e)},Ae=je.normalize=function(t){return String(t).replace(xe,".").toLowerCase()},Te=je.data={},Ie=je.NATIVE="N",Pe=je.POLYFILL="P",Ce=je,Ne=Et.f,Re=function(t,e){var r,n,o,i,a,u=t.target,f=t.global,s=t.stat;if(r=f?c:s?c[u]||Q(u,{}):(c[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=Ne(r,n))&&a.value:r[n],!Ce(f?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ee(i,o)}(t.sham||o&&o.sham)&&Rt(i,"sham",!0),re(r,n,i,t)}},ke=Array.isArray||function(t){return"Array"==E(t)},_e=TypeError,Me=function(t){if(t>9007199254740991)throw _e("Maximum allowed index exceeded");return t},Le=function(t,e,r){var n=gt(e);n in t?Nt.f(t,n,d(0,r)):t[n]=r},Fe={};Fe[vt("toStringTag")]="z";var Ue="[object z]"===String(Fe),De=vt("toStringTag"),$e=Object,Ge="Arguments"==E(function(){return arguments}()),Ve=Ue?E:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=$e(t),De))?r:Ge?E(e):"Object"==(n=E(e))&&C(e.callee)?"Arguments":n},ze=function(){},Be=[],We=k("Reflect","construct"),Ke=/^\s*(?:class|function)\b/,He=w(Ke.exec),Ye=!Ke.exec(ze),qe=function(t){if(!C(t))return!1;try{return We(ze,Be,t),!0}catch(t){return!1}},Xe=function(t){if(!C(t))return!1;switch(Ve(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ye||!!He(Ke,Gt(t))}catch(t){return!0}};Xe.sham=!0;var Je=!We||a((function(){var t;return qe(qe.call)||!qe(Object)||!qe((function(){t=!0}))||t}))?Xe:qe,Qe=vt("species"),Ze=Array,tr=function(t,e){return new(function(t){var e;return ke(t)&&(e=t.constructor,(Je(e)&&(e===Ze||ke(e.prototype))||N(e)&&null===(e=e[Qe]))&&(e=void 0)),void 0===e?Ze:e}(t))(0===e?0:e)},er=vt("species"),rr=function(t){return $>=51||!a((function(){var e=[];return(e.constructor={})[er]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},nr=vt("isConcatSpreadable"),or=$>=51||!a((function(){var t=[];return t[nr]=!1,t.concat()[0]!==t})),ir=rr("concat"),cr=function(t){if(!N(t))return!1;var e=t[nr];return void 0!==e?!!e:ke(t)};Re({target:"Array",proto:!0,arity:1,forced:!or||!ir},{concat:function(t){var e,r,n,o,i,c=rt(this),a=tr(c,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(cr(i=-1===e?c:arguments[e]))for(o=pe(i),Me(u+o),r=0;r<o;r++,u++)r in i&&Le(a,u,i[r]);else Me(u+1),Le(a,u++,i);return a.length=u,a}});var ar=Ue?{}.toString:function(){return"[object "+Ve(this)+"]"};Ue||re(Object.prototype,"toString",ar,{unsafe:!0});var ur,fr,sr,lr,pr="process"==E(c.process),vr=String,hr=TypeError,dr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Tt(r),function(t){if("object"==typeof t||C(t))return t;throw hr("Can't set "+vr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),yr=Nt.f,gr=vt("toStringTag"),br=vt("species"),mr=TypeError,wr=TypeError,Sr=vt("species"),Or=function(t,e){var r,n=Tt(t).constructor;return void 0===n||null==(r=Tt(n)[Sr])?e:function(t){if(Je(t))return t;throw wr(K(t)+" is not a constructor")}(r)},Er=Function.prototype,xr=Er.apply,jr=Er.call,Ar="object"==typeof Reflect&&Reflect.apply||(f?jr.bind(xr):function(){return jr.apply(xr,arguments)}),Tr=w(w.bind),Ir=function(t,e){return Y(t),void 0===e?t:f?Tr(t,e):function(){return t.apply(e,arguments)}},Pr=k("document","documentElement"),Cr=w([].slice),Nr=TypeError,Rr=function(t,e){if(t<e)throw Nr("Not enough arguments");return t},kr=/(?:ipad|iphone|ipod).*applewebkit/i.test(M),_r=c.setImmediate,Mr=c.clearImmediate,Lr=c.process,Fr=c.Dispatch,Ur=c.Function,Dr=c.MessageChannel,$r=c.String,Gr=0,Vr={};try{ur=c.location}catch(t){}var zr=function(t){if(ot(Vr,t)){var e=Vr[t];delete Vr[t],e()}},Br=function(t){return function(){zr(t)}},Wr=function(t){zr(t.data)},Kr=function(t){c.postMessage($r(t),ur.protocol+"//"+ur.host)};_r&&Mr||(_r=function(t){Rr(arguments.length,1);var e=C(t)?t:Ur(t),r=Cr(arguments,1);return Vr[++Gr]=function(){Ar(e,void 0,r)},fr(Gr),Gr},Mr=function(t){delete Vr[t]},pr?fr=function(t){Lr.nextTick(Br(t))}:Fr&&Fr.now?fr=function(t){Fr.now(Br(t))}:Dr&&!kr?(lr=(sr=new Dr).port2,sr.port1.onmessage=Wr,fr=Ir(lr.postMessage,lr)):c.addEventListener&&C(c.postMessage)&&!c.importScripts&&ur&&"file:"!==ur.protocol&&!a(Kr)?(fr=Kr,c.addEventListener("message",Wr,!1)):fr="onreadystatechange"in wt("script")?function(t){Pr.appendChild(wt("script")).onreadystatechange=function(){Pr.removeChild(this),zr(t)}}:function(t){setTimeout(Br(t),0)});var Hr,Yr,qr,Xr,Jr,Qr,Zr,tn,en={set:_r,clear:Mr},rn=/ipad|iphone|ipod/i.test(M)&&void 0!==c.Pebble,nn=/web0s(?!.*chrome)/i.test(M),on=Et.f,cn=en.set,an=c.MutationObserver||c.WebKitMutationObserver,un=c.document,fn=c.process,sn=c.Promise,ln=on(c,"queueMicrotask"),pn=ln&&ln.value;pn||(Hr=function(){var t,e;for(pr&&(t=fn.domain)&&t.exit();Yr;){e=Yr.fn,Yr=Yr.next;try{e()}catch(t){throw Yr?Xr():qr=void 0,t}}qr=void 0,t&&t.enter()},kr||pr||nn||!an||!un?!rn&&sn&&sn.resolve?((Zr=sn.resolve(void 0)).constructor=sn,tn=Ir(Zr.then,Zr),Xr=function(){tn(Hr)}):pr?Xr=function(){fn.nextTick(Hr)}:(cn=Ir(cn,c),Xr=function(){cn(Hr)}):(Jr=!0,Qr=un.createTextNode(""),new an(Hr).observe(Qr,{characterData:!0}),Xr=function(){Qr.data=Jr=!Jr}));var vn=pn||function(t){var e={fn:t,next:void 0};qr&&(qr.next=e),Yr||(Yr=e,Xr()),qr=e},hn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},dn=function(){this.head=null,this.tail=null};dn.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var yn,gn,bn,mn,wn,Sn,On=dn,En=c.Promise,xn="object"==typeof window&&"object"!=typeof Deno,jn=(En&&En.prototype,vt("species")),An=!1,Tn=C(c.PromiseRejectionEvent),In={CONSTRUCTOR:Ce("Promise",(function(){var t=Gt(En),e=t!==String(En);if(!e&&66===$)return!0;if($>=51&&/native code/.test(t))return!1;var r=new En((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[jn]=n,!(An=r.then((function(){}))instanceof n)||!e&&xn&&!Tn})),REJECTION_EVENT:Tn,SUBCLASSING:An},Pn=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Y(e),this.reject=Y(r)},Cn={f:function(t){return new Pn(t)}},Nn=en.set,Rn=In.CONSTRUCTOR,kn=In.REJECTION_EVENT,_n=In.SUBCLASSING,Mn=te.getterFor("Promise"),Ln=te.set,Fn=En&&En.prototype,Un=En,Dn=Fn,$n=c.TypeError,Gn=c.document,Vn=c.process,zn=Cn.f,Bn=zn,Wn=!!(Gn&&Gn.createEvent&&c.dispatchEvent),Kn=function(t){var e;return!(!N(t)||!C(e=t.then))&&e},Hn=function(t,e){var r,n,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{a?(c||(2===e.rejection&&Qn(e),e.rejection=1),!0===a?r=i:(s&&s.enter(),r=a(i),s&&(s.exit(),o=!0)),r===t.promise?f($n("Promise-chain cycle")):(n=Kn(r))?l(n,r,u,f):u(r)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},Yn=function(t,e){t.notified||(t.notified=!0,vn((function(){for(var r,n=t.reactions;r=n.get();)Hn(r,t);t.notified=!1,e&&!t.rejection&&Xn(t)})))},qn=function(t,e,r){var n,o;Wn?((n=Gn.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!kn&&(o=c["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=c.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Xn=function(t){l(Nn,c,(function(){var e,r=t.facade,n=t.value;if(Jn(t)&&(e=hn((function(){pr?Vn.emit("unhandledRejection",n,r):qn("unhandledrejection",r,n)})),t.rejection=pr||Jn(t)?2:1,e.error))throw e.value}))},Jn=function(t){return 1!==t.rejection&&!t.parent},Qn=function(t){l(Nn,c,(function(){var e=t.facade;pr?Vn.emit("rejectionHandled",e):qn("rejectionhandled",e,t.value)}))},Zn=function(t,e,r){return function(n){t(e,n,r)}},to=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Yn(t,!0))},eo=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw $n("Promise can't be resolved itself");var n=Kn(e);n?vn((function(){var r={done:!1};try{l(n,e,Zn(eo,r,t),Zn(to,r,t))}catch(e){to(r,e,t)}})):(t.value=e,t.state=1,Yn(t,!1))}catch(e){to({done:!1},e,t)}}};if(Rn&&(Dn=(Un=function(t){!function(t,e){if(_(e,t))return t;throw mr("Incorrect invocation")}(this,Dn),Y(t),l(yn,this);var e=Mn(this);try{t(Zn(eo,e),Zn(to,e))}catch(t){to(e,t)}}).prototype,(yn=function(t){Ln(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new On,rejection:!1,state:0,value:void 0})}).prototype=re(Dn,"then",(function(t,e){var r=Mn(this),n=zn(Or(this,Un));return r.parent=!0,n.ok=!C(t)||t,n.fail=C(e)&&e,n.domain=pr?Vn.domain:void 0,0==r.state?r.reactions.add(n):vn((function(){Hn(n,r)})),n.promise})),gn=function(){var t=new yn,e=Mn(t);this.promise=t,this.resolve=Zn(eo,e),this.reject=Zn(to,e)},Cn.f=zn=function(t){return t===Un||void 0===t?new gn(t):Bn(t)},C(En)&&Fn!==Object.prototype)){bn=Fn.then,_n||re(Fn,"then",(function(t,e){var r=this;return new Un((function(t,e){l(bn,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete Fn.constructor}catch(t){}dr&&dr(Fn,Dn)}Re({global:!0,constructor:!0,wrap:!0,forced:Rn},{Promise:Un}),wn="Promise",Sn=!1,(mn=Un)&&!Sn&&(mn=mn.prototype),mn&&!ot(mn,gr)&&yr(mn,gr,{configurable:!0,value:wn}),function(t){var e=k(t),r=Nt.f;u&&e&&!e[br]&&r(e,br,{configurable:!0,get:function(){return this}})}("Promise");var ro={},no=vt("iterator"),oo=Array.prototype,io=vt("iterator"),co=function(t){if(null!=t)return q(t,io)||q(t,"@@iterator")||ro[Ve(t)]},ao=TypeError,uo=function(t,e,r){var n,o;Tt(t);try{if(!(n=q(t,"return"))){if("throw"===e)throw r;return r}n=l(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Tt(n),r},fo=TypeError,so=function(t,e){this.stopped=t,this.result=e},lo=so.prototype,po=function(t,e,r){var n,o,i,c,a,u,f,s,p=r&&r.that,v=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=Ir(e,p),b=function(t){return n&&uo(n,"normal",t),new so(!0,t)},m=function(t){return v?(Tt(t),y?g(t[0],t[1],b):g(t[0],t[1])):y?g(t,b):g(t)};if(h)n=t.iterator;else if(d)n=t;else{if(!(o=co(t)))throw fo(K(t)+" is not iterable");if(void 0!==(s=o)&&(ro.Array===s||oo[no]===s)){for(i=0,c=pe(t);c>i;i++)if((a=m(t[i]))&&_(lo,a))return a;return new so(!1)}n=function(t,e){var r=arguments.length<2?co(t):e;if(Y(r))return Tt(l(r,t));throw ao(K(t)+" is not iterable")}(t,o)}for(u=h?t.next:n.next;!(f=l(u,n)).done;){try{a=m(f.value)}catch(t){uo(n,"throw",t)}if("object"==typeof a&&a&&_(lo,a))return a}return new so(!1)},vo=vt("iterator"),ho=!1;try{var yo=0,go={next:function(){return{done:!!yo++}},return:function(){ho=!0}};go[vo]=function(){return this},Array.from(go,(function(){throw 2}))}catch(t){}var bo=In.CONSTRUCTOR||!function(t,e){if(!e&&!ho)return!1;var r=!1;try{var n={};n[vo]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){En.all(t).then(void 0,(function(){}))}));Re({target:"Promise",stat:!0,forced:bo},{all:function(t){var e=this,r=Cn.f(e),n=r.resolve,o=r.reject,i=hn((function(){var r=Y(e.resolve),i=[],c=0,a=1;po(t,(function(t){var u=c++,f=!1;a++,l(r,e,t).then((function(t){f||(f=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise}});var mo=In.CONSTRUCTOR,wo=En&&En.prototype;if(Re({target:"Promise",proto:!0,forced:mo,real:!0},{catch:function(t){return this.then(void 0,t)}}),C(En)){var So=k("Promise").prototype.catch;wo.catch!==So&&re(wo,"catch",So,{unsafe:!0})}Re({target:"Promise",stat:!0,forced:bo},{race:function(t){var e=this,r=Cn.f(e),n=r.reject,o=hn((function(){var o=Y(e.resolve);po(t,(function(t){l(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Re({target:"Promise",stat:!0,forced:In.CONSTRUCTOR},{reject:function(t){var e=Cn.f(this);return l(e.reject,void 0,t),e.promise}});var Oo=In.CONSTRUCTOR;k("Promise");function Eo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ao(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ao(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ao(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Re({target:"Promise",stat:!0,forced:Oo},{resolve:function(t){return function(t,e){if(Tt(t),N(e)&&e.constructor===t)return e;var r=Cn.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var To=Object.keys||function(t){return ye(t,ge)},Io=w(h.f),Po=w([].push),Co=function(t){return function(e){for(var r,n=P(e),o=To(n),i=o.length,c=0,a=[];i>c;)r=o[c++],u&&!Io(n,r)||Po(a,t?[r,n[r]]:n[r]);return a}},No={entries:Co(!0),values:Co(!1)}.entries;Re({target:"Object",stat:!0},{entries:function(t){return No(t)}});var Ro,ko=w([].push),_o=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,f,s,l){for(var p,v,h=rt(u),d=A(h),y=Ir(f,s),g=pe(d),b=0,m=l||tr,w=e?m(u,g):r||c?m(u,0):void 0;g>b;b++)if((a||b in d)&&(v=y(p=d[b],b,h),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:ko(w,p)}else switch(t){case 4:return!1;case 7:ko(w,p)}return i?-1:n||o?o:w}},Mo={forEach:_o(0),map:_o(1),filter:_o(2),some:_o(3),every:_o(4),find:_o(5),findIndex:_o(6),filterReject:_o(7)},Lo={f:u&&!xt?Object.defineProperties:function(t,e){Tt(t);for(var r,n=P(e),o=To(e),i=o.length,c=0;i>c;)Nt.f(t,r=o[c++],n[r]);return t}},Fo=Wt("IE_PROTO"),Uo=function(){},Do=function(t){return"<script>"+t+"<\/script>"},$o=function(t){t.write(Do("")),t.close();var e=t.parentWindow.Object;return t=null,e},Go=function(){try{Ro=new ActiveXObject("htmlfile")}catch(t){}var t,e;Go="undefined"!=typeof document?document.domain&&Ro?$o(Ro):((e=wt("iframe")).style.display="none",Pr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Do("document.F=Object")),t.close(),t.F):$o(Ro);for(var r=ge.length;r--;)delete Go.prototype[ge[r]];return Go()};Kt[Fo]=!0;var Vo=Object.create||function(t,e){var r;return null!==t?(Uo.prototype=Tt(t),r=new Uo,Uo.prototype=null,r[Fo]=t):r=Go(),void 0===e?r:Lo.f(r,e)},zo=Nt.f,Bo=vt("unscopables"),Wo=Array.prototype;null==Wo[Bo]&&zo(Wo,Bo,{configurable:!0,value:Vo(null)});var Ko=function(t){Wo[Bo][t]=!0},Ho=Mo.find,Yo=!0;"find"in[]&&Array(1).find((function(){Yo=!1})),Re({target:"Array",proto:!0,forced:Yo},{find:function(t){return Ho(this,t,arguments.length>1?arguments[1]:void 0)}}),Ko("find");var qo=Mo.findIndex,Xo=!0;"findIndex"in[]&&Array(1).findIndex((function(){Xo=!1})),Re({target:"Array",proto:!0,forced:Xo},{findIndex:function(t){return qo(this,t,arguments.length>1?arguments[1]:void 0)}}),Ko("findIndex");var Jo=TypeError,Qo=function(t,e){if(!delete t[e])throw Jo("Cannot delete property "+K(e)+" of "+K(t))},Zo=rr("splice"),ti=Math.max,ei=Math.min;Re({target:"Array",proto:!0,forced:!Zo},{splice:function(t,e){var r,n,o,i,c,a,u=rt(this),f=pe(u),s=fe(t,f),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=f-s):(r=l-2,n=ei(ti(ce(e),0),f-s)),Me(f+r-n),o=tr(u,n),i=0;i<n;i++)(c=s+i)in u&&Le(o,i,u[c]);if(o.length=n,r<n){for(i=s;i<f-n;i++)a=i+r,(c=i+n)in u?u[a]=u[c]:Qo(u,a);for(i=f;i>f-n+r;i--)Qo(u,i-1)}else if(r>n)for(i=f-n;i>s;i--)a=i+r-1,(c=i+n-1)in u?u[a]=u[c]:Qo(u,a);for(i=0;i<r;i++)u[i+s]=arguments[i+2];return u.length=f-n+r,o}});var ri=String,ni=function(t){if("Symbol"===Ve(t))throw TypeError("Cannot convert a Symbol value to a string");return ri(t)},oi=Array,ii=Math.max,ci=function(t,e,r){for(var n=pe(t),o=fe(e,n),i=fe(void 0===r?n:r,n),c=oi(ii(i-o,0)),a=0;o<i;o++,a++)Le(c,a,t[o]);return c.length=a,c},ai=Math.floor,ui=function(t,e){var r=t.length,n=ai(r/2);return r<8?fi(t,e):si(t,ui(ci(t,0,n),e),ui(ci(t,n),e),e)},fi=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},si=function(t,e,r,n){for(var o=e.length,i=r.length,c=0,a=0;c<o||a<i;)t[c+a]=c<o&&a<i?n(e[c],r[a])<=0?e[c++]:r[a++]:c<o?e[c++]:r[a++];return t},li=ui,pi=function(t,e){var r=[][t];return!!r&&a((function(){r.call(null,e||function(){return 1},1)}))},vi=M.match(/firefox\/(\d+)/i),hi=!!vi&&+vi[1],di=/MSIE|Trident/.test(M),yi=M.match(/AppleWebKit\/(\d+)\./),gi=!!yi&&+yi[1],bi=[],mi=w(bi.sort),wi=w(bi.push),Si=a((function(){bi.sort(void 0)})),Oi=a((function(){bi.sort(null)})),Ei=pi("sort"),xi=!a((function(){if($)return $<70;if(!(hi&&hi>3)){if(di)return!0;if(gi)return gi<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)bi.push({k:e+n,v:r})}for(bi.sort((function(t,e){return e.v-t.v})),n=0;n<bi.length;n++)e=bi[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));Re({target:"Array",proto:!0,forced:Si||!Oi||!Ei||!xi},{sort:function(t){void 0!==t&&Y(t);var e=rt(this);if(xi)return void 0===t?mi(e):mi(e,t);var r,n,o=[],i=pe(e);for(n=0;n<i;n++)n in e&&wi(o,e[n]);for(li(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:ni(e)>ni(r)?1:-1}}(t)),r=o.length,n=0;n<r;)e[n]=o[n++];for(;n<i;)Qo(e,n++);return e}});var ji=function(t,e,r){var n,o;return dr&&C(n=e.constructor)&&n!==r&&N(o=n.prototype)&&o!==r.prototype&&dr(t,o),t},Ai=w(1..valueOf),Ti=w("".replace),Ii="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Pi=RegExp("^"+Ii+Ii+"*"),Ci=RegExp(Ii+Ii+"*$"),Ni=function(t){return function(e){var r=ni(I(e));return 1&t&&(r=Ti(r,Pi,"")),2&t&&(r=Ti(r,Ci,"")),r}},Ri={start:Ni(1),end:Ni(2),trim:Ni(3)},ki=me.f,_i=Et.f,Mi=Nt.f,Li=Ri.trim,Fi=c.Number,Ui=Fi.prototype,Di=c.TypeError,$i=w("".slice),Gi=w("".charCodeAt),Vi=function(t){var e=yt(t,"number");return"bigint"==typeof e?e:zi(e)},zi=function(t){var e,r,n,o,i,c,a,u,f=yt(t,"number");if(B(f))throw Di("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Li(f),43===(e=Gi(f,0))||45===e){if(88===(r=Gi(f,2))||120===r)return NaN}else if(48===e){switch(Gi(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(c=(i=$i(f,2)).length,a=0;a<c;a++)if((u=Gi(i,a))<48||u>o)return NaN;return parseInt(i,n)}return+f};if(Ce("Number",!Fi(" 0o1")||!Fi("0b1")||Fi("+0x1"))){for(var Bi,Wi=function(t){var e=arguments.length<1?0:Fi(Vi(t)),r=this;return _(Ui,r)&&a((function(){Ai(r)}))?ji(Object(e),r,Wi):e},Ki=u?ki(Fi):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Hi=0;Ki.length>Hi;Hi++)ot(Fi,Bi=Ki[Hi])&&!ot(Wi,Bi)&&Mi(Wi,Bi,_i(Fi,Bi));Wi.prototype=Ui,Ui.constructor=Wi,re(c,"Number",Wi,{constructor:!0})}var Yi=rr("slice"),qi=vt("species"),Xi=Array,Ji=Math.max;Re({target:"Array",proto:!0,forced:!Yi},{slice:function(t,e){var r,n,o,i=P(this),c=pe(i),a=fe(t,c),u=fe(void 0===e?c:e,c);if(ke(i)&&(r=i.constructor,(Je(r)&&(r===Xi||ke(r.prototype))||N(r)&&null===(r=r[qi]))&&(r=void 0),r===Xi||void 0===r))return Cr(i,a,u);for(n=new(void 0===r?Xi:r)(Ji(u-a,0)),o=0;a<u;a++,o++)a in i&&Le(n,o,i[a]);return n.length=o,n}});var Qi={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},Zi=wt("span").classList,tc=Zi&&Zi.constructor&&Zi.constructor.prototype,ec=tc===Object.prototype?void 0:tc,rc=Mo.forEach,nc=pi("forEach")?[].forEach:function(t){return rc(this,t,arguments.length>1?arguments[1]:void 0)},oc=function(t){if(t&&t.forEach!==nc)try{Rt(t,"forEach",nc)}catch(e){t.forEach=nc}};for(var ic in Qi)Qi[ic]&&oc(c[ic]&&c[ic].prototype);oc(ec);var cc,ac,uc=function(){var t=Tt(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},fc=c.RegExp,sc=a((function(){var t=fc("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),lc=sc||a((function(){return!fc("a","y").sticky})),pc={BROKEN_CARET:sc||a((function(){var t=fc("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:lc,UNSUPPORTED_Y:sc},vc=c.RegExp,hc=a((function(){var t=vc(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),dc=c.RegExp,yc=a((function(){var t=dc("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),gc=te.get,bc=tt("native-string-replace",String.prototype.replace),mc=RegExp.prototype.exec,wc=mc,Sc=w("".charAt),Oc=w("".indexOf),Ec=w("".replace),xc=w("".slice),jc=(ac=/b*/g,l(mc,cc=/a/,"a"),l(mc,ac,"a"),0!==cc.lastIndex||0!==ac.lastIndex),Ac=pc.BROKEN_CARET,Tc=void 0!==/()??/.exec("")[1];(jc||Tc||Ac||hc||yc)&&(wc=function(t){var e,r,n,o,i,c,a,u=this,f=gc(u),s=ni(t),p=f.raw;if(p)return p.lastIndex=u.lastIndex,e=l(wc,p,s),u.lastIndex=p.lastIndex,e;var v=f.groups,h=Ac&&u.sticky,d=l(uc,u),y=u.source,g=0,b=s;if(h&&(d=Ec(d,"y",""),-1===Oc(d,"g")&&(d+="g"),b=xc(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Sc(s,u.lastIndex-1))&&(y="(?: "+y+")",b=" "+b,g++),r=new RegExp("^(?:"+y+")",d)),Tc&&(r=new RegExp("^"+y+"$(?!\\s)",d)),jc&&(n=u.lastIndex),o=l(mc,h?r:u,b),h?o?(o.input=xc(o.input,g),o[0]=xc(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:jc&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Tc&&o&&o.length>1&&l(bc,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&v)for(o.groups=c=Vo(null),i=0;i<v.length;i++)c[(a=v[i])[0]]=o[a[1]];return o});var Ic=wc;Re({target:"RegExp",proto:!0,forced:/./.exec!==Ic},{exec:Ic});var Pc=vt("species"),Cc=RegExp.prototype,Nc=w("".charAt),Rc=w("".charCodeAt),kc=w("".slice),_c=function(t){return function(e,r){var n,o,i=ni(I(e)),c=ce(r),a=i.length;return c<0||c>=a?t?"":void 0:(n=Rc(i,c))<55296||n>56319||c+1===a||(o=Rc(i,c+1))<56320||o>57343?t?Nc(i,c):n:t?kc(i,c,c+2):o-56320+(n-55296<<10)+65536}},Mc={codeAt:_c(!1),charAt:_c(!0)}.charAt,Lc=function(t,e,r){return e+(r?Mc(t,e).length:1)},Fc=Math.floor,Uc=w("".charAt),Dc=w("".replace),$c=w("".slice),Gc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vc=/\$([$&'`]|\d{1,2})/g,zc=function(t,e,r,n,o,i){var c=r+t.length,a=n.length,u=Vc;return void 0!==o&&(o=rt(o),u=Gc),Dc(i,u,(function(i,u){var f;switch(Uc(u,0)){case"$":return"$";case"&":return t;case"`":return $c(e,0,r);case"'":return $c(e,c);case"<":f=o[$c(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var l=Fc(s/10);return 0===l?i:l<=a?void 0===n[l-1]?Uc(u,1):n[l-1]+Uc(u,1):i}f=n[s-1]}return void 0===f?"":f}))},Bc=TypeError,Wc=function(t,e){var r=t.exec;if(C(r)){var n=l(r,t,e);return null!==n&&Tt(n),n}if("RegExp"===E(t))return l(Ic,t,e);throw Bc("RegExp#exec called on incompatible receiver")},Kc=vt("replace"),Hc=Math.max,Yc=Math.min,qc=w([].concat),Xc=w([].push),Jc=w("".indexOf),Qc=w("".slice),Zc="$0"==="a".replace(/./,"$0"),ta=!!/./[Kc]&&""===/./[Kc]("a","$0");!function(t,e,r,n){var o=vt(t),i=!a((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Pc]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!c||r){var u=w(/./[o]),f=e(o,""[t],(function(t,e,r,n,o){var c=w(t),a=e.exec;return a===Ic||a===Cc.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:c(r,e,n)}:{done:!1}}));re(String.prototype,t,f[0]),re(Cc,o,f[1])}n&&Rt(Cc[o],"sham",!0)}("replace",(function(t,e,r){var n=ta?"$":"$0";return[function(t,r){var n=I(this),o=null==t?void 0:q(t,Kc);return o?l(o,t,n,r):l(e,ni(n),t,r)},function(t,o){var i=Tt(this),c=ni(t);if("string"==typeof o&&-1===Jc(o,n)&&-1===Jc(o,"$<")){var a=r(e,i,c,o);if(a.done)return a.value}var u=C(o);u||(o=ni(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Wc(i,c);if(null===p)break;if(Xc(l,p),!f)break;""===ni(p[0])&&(i.lastIndex=Lc(c,le(i.lastIndex),s))}for(var v,h="",d=0,y=0;y<l.length;y++){for(var g=ni((p=l[y])[0]),b=Hc(Yc(ce(p.index),c.length),0),m=[],w=1;w<p.length;w++)Xc(m,void 0===(v=p[w])?v:String(v));var S=p.groups;if(u){var O=qc([g],m,b,c);void 0!==S&&Xc(O,S);var E=ni(Ar(o,void 0,O))}else E=zc(g,c,b,m,S,o);b>=d&&(h+=Qc(c,d,b)+E,d=b+g.length)}return h+Qc(c,d)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Zc||ta);var ea=function(){};if("production"!==process.env.NODE_ENV){var ra=function(t,e){var r=arguments.length;e=new Array(r>1?r-1:0);for(var n=1;n<r;n++)e[n-1]=arguments[n];var o=0,i="Warning: "+t.replace(/%s/g,(function(){return e[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};ea=function(t,e,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||ra.apply(null,[e].concat(r))}}var na=ea,oa=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xo(this,"callbacks",{}),xo(this,"doingAction",!1)}var e,r,n;return e=t,n=[{key:"buildPreinitializedStorage",value:function(e){var r={},n=function(n){var o=e[n];if(AceUtil.Core.isObject(o)&&o instanceof t)return r[n]=o,"continue";var i=new t,c=function(t){o[t].forEach((function(e){i.addFilter(e.func,t,e.acceptedArgs)}))};for(var a in o)c(a);r[n]=i};for(var o in e)n(o);return r}}],(r=[{key:"filters",get:function(){return this.callbacks}},{key:"hasFilter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=Object.entries(this.callbacks).reduce((function(t,e){var r=jo(e,2),n=(r[0],r[1]);return t.concat(n)}),[]);if("boolean"==typeof t)return e.length>0;var r=e.find((function(e){return e.func===t}));return!!r&&r.func}},{key:"addFilter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;AceUtil.Core.hasOwn(this.callbacks,e)||(this.callbacks[e]=[]),this.callbacks[e].push({func:t,acceptedArgs:r})}},{key:"removeFilter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(AceUtil.Core.hasOwn(this.callbacks,e)){var r=this.callbacks[e].findIndex((function(e){return e.func===t}));return r>=0&&this.callbacks[e].splice(r,1),r>=0}return!1}},{key:"removeAllFilters",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"boolean"==typeof t?this.callbacks={}:AceUtil.Core.hasOwn(this.callbacks,t)?this.callbacks[t]=[]:na("production"===process.env.NDE_ENV,'priority "'.concat(t,'" is not exists , no filiters will be removed.'))}},{key:"applyFilters",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=Object.entries(this.callbacks).sort((function(t,e){var r=jo(t,1)[0],n=jo(e,1)[0];return Number(r)-Number(n)})).reduce((function(t,e){var r=jo(e,2),n=(r[0],r[1]);return t.concat(n)}),[]);if(o.length){var i=function t(e,n,i){var a=o[e],u=[].concat(r);c||u.unshift(n);var f=a.func.apply(null,u.slice(0,a.acceptedArgs));e===o.length-1?f instanceof Promise?f.then(i):i(f):f instanceof Promise?f.then((function(r){return t(e+1,r,i)})):t(e+1,f,i)},c=this.doingAction;return new Promise((function(e){return i(0,t,e)}))}return Promise.resolve(t)}},{key:"doAction",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.doingAction=!0,new Promise((function(e,n){t.applyFilters.apply(t,[""].concat(r)).then((function(){t.doingAction=!1,e()}),n)}))}}])&&Eo(e.prototype,r),n&&Eo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ia(t){return function(e,r,n,o){if(!r)return{has:function(r){return!!AceUtil.Core.hasOwn(t,e)&&t[e].hasFilter(r)},remove:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=!1;return AceUtil.Core.hasOwn(t,e)&&(o=t[e].removeFilter(r,n)),o},removeAll:function(r){AceUtil.Core.hasOwn(t,e)&&t[e].removeAllFilters(r)},filter:function(r){if(AceUtil.Core.hasOwn(t,"all"),AceUtil.Core.hasOwn(t,e)){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),c=1;c<o;c++)i[c-1]=arguments[c];return(n=t[e]).applyFilters.apply(n,[r].concat(i))}return Promise.resolve(r)},exec:function(){var r;return AceUtil.Core.hasOwn(t,e)?(r=t[e]).doAction.apply(r,arguments):Promise.resolve()}};AceUtil.Core.hasOwn(t,e)||(t[e]=new oa),t[e].addFilter(r,n,o)}}var ca=oa.buildPreinitializedStorage({}),aa=ia(ca);t.createInject=ia,t.globalInject=aa,t.globalStorage=ca,Object.defineProperty(t,"__esModule",{value:!0})}));