@plasma-js/hades
Version:
A standalone event handler and data manager.
1 lines • 156 kB
JavaScript
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function t(a){return function(){var t=this,u=arguments;return new Promise(function(e,n){var r=a.apply(t,u);function i(t){c(r,e,n,i,o,"next",t)}function o(t){c(r,e,n,i,o,"throw",t)}i(void 0)})}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e,n){return(l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function e(t){var n="function"==typeof Map?new Map:void 0;return(e=function(t){if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return l(t,arguments,f(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s(e,t)})(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?h(t):e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function p(t,e){return t(e={exports:{}},e.exports),e.exports}function Gt(t){try{return!!t()}catch(t){return!0}}function y(t){return w?_.createElement(t):{}}function Bt(t,e){if(!Zt(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!Zt(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!Zt(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!Zt(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function qt(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+j).toString(36))}function g(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}var Yt=p(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),m={}.hasOwnProperty,Jt=function(t,e){return m.call(t,e)},Kt=!Gt(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b=p(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),Zt=(b.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),S=function(t){if(!Zt(t))throw TypeError(t+" is not an object!");return t},_=Yt.document,w=Zt(_)&&Zt(_.createElement),F=!Kt&&!Gt(function(){return 7!=Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a}),x=Object.defineProperty,Ht={f:Kt?Object.defineProperty:function(t,e,n){if(S(t),e=Bt(e,!0),S(n),F)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},Xt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Qt=Kt?function(t,e,n){return Ht.f(t,e,Xt(1,n))}:function(t,e,n){return t[e]=n,t},E=0,j=Math.random(),O=p(function(t){var e="__core-js_shared__",n=Yt[e]||(Yt[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:b.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),A=O("native-function-to-string",Function.toString),P=p(function(t){var o=qt("src"),e="toString",u=(""+A).split(e);b.inspectSource=function(t){return A.call(t)},(t.exports=function(t,e,n,r){var i="function"==typeof n;i&&(Jt(n,"name")||Qt(n,"name",e)),t[e]!==n&&(i&&(Jt(n,o)||Qt(n,o,t[e]?""+t[e]:u.join(String(e)))),t===Yt?t[e]=n:r?t[e]?t[e]=n:Qt(t,e,n):(delete t[e],Qt(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[o]||A.call(this)})}),te=function(r,i,t){if(g(r),void 0===i)return r;switch(t){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}},M="prototype",k=function(t,e,n){var r,i,o,u,a=t&k.F,c=t&k.G,f=t&k.S,s=t&k.P,l=t&k.B,h=c?Yt:f?Yt[e]||(Yt[e]={}):(Yt[e]||{})[M],v=c?b:b[e]||(b[e]={}),d=v[M]||(v[M]={});for(r in c&&(n=e),n)o=((i=!a&&h&&void 0!==h[r])?h:n)[r],u=l&&i?te(o,Yt):s&&"function"==typeof o?te(Function.call,o):o,h&&P(h,r,o,t&k.U),v[r]!=o&&Qt(v,r,u),s&&d[r]!=o&&(d[r]=o)};Yt.core=b,k.F=1,k.G=2,k.S=4,k.P=8,k.B=16,k.W=32,k.U=64,k.R=128;function U(t,e,n){t&&!Jt(t=n?t:t.prototype,J)&&Y(t,J,{configurable:!0,value:e})}function T(t){var e=b.Symbol||(b.Symbol=Yt.Symbol||{});"_"==t.charAt(0)||t in e||Z(e,t,{value:K.f(t)})}function R(t){return H.call(t).slice(8,-1)}function D(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function I(t){return X(D(t))}function ee(t){return isNaN(t=+t)?0:(0<t?tt:Q)(t)}function ne(t,e){return(t=ee(t))<0?nt(t+e,0):rt(t,e)}function re(a){return function(t,e,n){var r,i=I(t),o=ae(i.length),u=ne(n,o);if(a&&e!=e){for(;u<o;)if((r=i[u++])!=r)return!0}else for(;u<o;u++)if((a||u in i)&&i[u]===e)return a||u||0;return!a&&-1}}function N(t){return it[t]||(it[t]=qt(t))}function C(t,e){var n,r=I(t),i=0,o=[];for(n in r)n!=ut&&Jt(r,n)&&o.push(n);for(;e.length>i;)Jt(r,n=e[i++])&&(~ot(o,n)||o.push(n));return o}function ie(t){return Object(D(t))}function L(){}function z(t){var e=Nt[t]=ce(At[kt]);return e._k=t,e}function $(t,e){S(t);for(var n,r=function(t){var e=ct(t),n=ft.f;if(n)for(var r,i=n(t),o=st.f,u=0;i.length>u;)o.call(t,r=i[u++])&&e.push(r);return e}(e=I(e)),i=0,o=r.length;i<o;)le(t,n=r[i++],e[n]);return t}function V(t){var e=Dt.call(this,t=Bt(t,!0));return!(this===Lt&&Jt(Nt,t)&&!Jt(Ct,t))&&(!(e||!Jt(this,t)||!Jt(Nt,t)||Jt(this,Tt)&&this[Tt][t])||e)}function W(t,e){if(t=I(t),e=Bt(e,!0),t!==Lt||!Jt(Nt,e)||Jt(Ct,e)){var n=Et(t,e);return!n||!Jt(Nt,e)||Jt(t,Tt)&&t[Tt][e]||(n.enumerable=!0),n}}function G(t){for(var e,n=Ot(I(t)),r=[],i=0;n.length>i;)Jt(Nt,e=n[i++])||e==Tt||e==St||r.push(e);return r}function B(t){for(var e,n=t===Lt,r=Ot(n?Ct:I(t)),i=[],o=0;r.length>o;)!Jt(Nt,e=r[o++])||n&&!Jt(Lt,e)||i.push(Nt[e]);return i}var oe=k,q=p(function(t){function n(t){e(t,r,{value:{i:"O"+ ++i,w:{}}})}var r=qt("meta"),e=Ht.f,i=0,o=Object.isExtensible||function(){return!0},u=!Gt(function(){return o(Object.preventExtensions({}))}),a=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!Zt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Jt(t,r)){if(!o(t))return"F";if(!e)return"E";n(t)}return t[r].i},getWeak:function(t,e){if(!Jt(t,r)){if(!o(t))return!0;if(!e)return!1;n(t)}return t[r].w},onFreeze:function(t){return u&&a.NEED&&o(t)&&!Jt(t,r)&&n(t),t}}}),ue=(q.KEY,q.NEED,q.fastKey,q.getWeak,q.onFreeze,p(function(t){var e=O("wks"),n=Yt.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:qt)("Symbol."+t))}).store=e})),Y=Ht.f,J=ue("toStringTag"),K={f:ue},Z=Ht.f,H={}.toString,X=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==R(t)?t.split(""):Object(t)},Q=Math.ceil,tt=Math.floor,et=Math.min,ae=function(t){return 0<t?et(ee(t),9007199254740991):0},nt=Math.max,rt=Math.min,it=O("keys"),ot=re(!1),ut=N("IE_PROTO"),at="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ct=Object.keys||function(t){return C(t,at)},ft={f:Object.getOwnPropertySymbols},st={f:{}.propertyIsEnumerable},lt=Array.isArray||function(t){return"Array"==R(t)},ht=Kt?Object.defineProperties:function(t,e){S(t);for(var n,r=ct(e),i=r.length,o=0;o<i;)Ht.f(t,n=r[o++],e[n]);return t},vt=Yt.document,dt=vt&&vt.documentElement,pt=N("IE_PROTO"),yt="prototype",gt=function(){var t,e=y("iframe"),n=at.length;for(e.style.display="none",dt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),gt=t.F;n--;)delete gt[yt][at[n]];return gt()},ce=Object.create||function(t,e){var n;return null!==t?(L[yt]=S(t),n=new L,L[yt]=null,n[pt]=t):n=gt(),void 0===e?n:ht(n,e)},mt=at.concat("length","prototype"),fe={f:Object.getOwnPropertyNames||function(t){return C(t,mt)}},bt=fe.f,_t={}.toString,wt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ft={f:function(t){return wt&&"[object Window]"==_t.call(t)?function(t){try{return bt(t)}catch(t){return wt.slice()}}(t):bt(I(t))}},xt=Object.getOwnPropertyDescriptor,se={f:Kt?xt:function(t,e){if(t=I(t),e=Bt(e,!0),F)try{return xt(t,e)}catch(t){}if(Jt(t,e))return Xt(!st.f.call(t,e),t[e])}},St=q.KEY,Et=se.f,jt=Ht.f,Ot=Ft.f,At=Yt.Symbol,Pt=Yt.JSON,Mt=Pt&&Pt.stringify,kt="prototype",Tt=ue("_hidden"),Rt=ue("toPrimitive"),Dt={}.propertyIsEnumerable,It=O("symbol-registry"),Nt=O("symbols"),Ct=O("op-symbols"),Lt=Object[kt],zt="function"==typeof At&&!!ft.f,$t=Yt.QObject,Ut=!$t||!$t[kt]||!$t[kt].findChild,Vt=Kt&&Gt(function(){return 7!=ce(jt({},"a",{get:function(){return jt(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Et(Lt,e);r&&delete Lt[e],jt(t,e,n),r&&t!==Lt&&jt(Lt,e,r)}:jt,Wt=zt&&"symbol"==typeof At.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof At},le=function(t,e,n){return t===Lt&&le(Ct,e,n),S(t),e=Bt(e,!0),S(n),Jt(Nt,e)?(n.enumerable?(Jt(t,Tt)&&t[Tt][e]&&(t[Tt][e]=!1),n=ce(n,{enumerable:Xt(0,!1)})):(Jt(t,Tt)||jt(t,Tt,Xt(1,{})),t[Tt][e]=!0),Vt(t,e,n)):jt(t,e,n)};zt||(P((At=function(t){if(this instanceof At)throw TypeError("Symbol is not a constructor!");var e=qt(0<arguments.length?t:void 0),n=function(t){this===Lt&&n.call(Ct,t),Jt(this,Tt)&&Jt(this[Tt],e)&&(this[Tt][e]=!1),Vt(this,e,Xt(1,t))};return Kt&&Ut&&Vt(Lt,e,{configurable:!0,set:n}),z(e)})[kt],"toString",function(){return this._k}),se.f=W,Ht.f=le,fe.f=Ft.f=G,st.f=V,ft.f=B,Kt&&P(Lt,"propertyIsEnumerable",V,!0),K.f=function(t){return z(ue(t))}),oe(oe.G+oe.W+oe.F*!zt,{Symbol:At});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ve=0;he.length>ve;)ue(he[ve++]);for(var de=ct(ue.store),pe=0;de.length>pe;)T(de[pe++]);oe(oe.S+oe.F*!zt,"Symbol",{for:function(t){return Jt(It,t+="")?It[t]:It[t]=At(t)},keyFor:function(t){if(!Wt(t))throw TypeError(t+" is not a symbol!");for(var e in It)if(It[e]===t)return e},useSetter:function(){Ut=!0},useSimple:function(){Ut=!1}}),oe(oe.S+oe.F*!zt,"Object",{create:function(t,e){return void 0===e?ce(t):$(ce(t),e)},defineProperty:le,defineProperties:$,getOwnPropertyDescriptor:W,getOwnPropertyNames:G,getOwnPropertySymbols:B});var ye=Gt(function(){ft.f(1)});oe(oe.S+oe.F*ye,"Object",{getOwnPropertySymbols:function(t){return ft.f(ie(t))}}),Pt&&oe(oe.S+oe.F*(!zt||Gt(function(){var t=At();return"[null]"!=Mt([t])||"{}"!=Mt({a:t})||"{}"!=Mt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;i<arguments.length;)r.push(arguments[i++]);if(n=e=r[1],(Zt(e)||void 0!==t)&&!Wt(t))return lt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Wt(e))return e}),r[1]=e,Mt.apply(Pt,r)}}),At[kt][Rt]||Qt(At[kt],Rt,At[kt].valueOf),U(At,"Symbol"),U(Math,"Math",!0),U(Yt.JSON,"JSON",!0),oe(oe.S,"Object",{create:ce}),oe(oe.S+oe.F*!Kt,"Object",{defineProperty:Ht.f}),oe(oe.S+oe.F*!Kt,"Object",{defineProperties:ht});function ge(t,e){var n=(b.Object||{})[t]||Object[t],r={};r[t]=e(n),oe(oe.S+oe.F*Gt(function(){n(1)}),"Object",r)}var me=se.f;ge("getOwnPropertyDescriptor",function(){return function(t,e){return me(I(t),e)}});var be=N("IE_PROTO"),_e=Object.prototype,we=Object.getPrototypeOf||function(t){return t=ie(t),Jt(t,be)?t[be]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?_e:null};ge("getPrototypeOf",function(){return function(t){return we(ie(t))}}),ge("keys",function(){return function(t){return ct(ie(t))}}),ge("getOwnPropertyNames",function(){return Ft.f});var Fe=q.onFreeze;ge("freeze",function(e){return function(t){return e&&Zt(t)?e(Fe(t)):t}});var xe=q.onFreeze;ge("seal",function(e){return function(t){return e&&Zt(t)?e(xe(t)):t}});var Se=q.onFreeze;ge("preventExtensions",function(e){return function(t){return e&&Zt(t)?e(Se(t)):t}}),ge("isFrozen",function(e){return function(t){return!Zt(t)||!!e&&e(t)}}),ge("isSealed",function(e){return function(t){return!Zt(t)||!!e&&e(t)}}),ge("isExtensible",function(e){return function(t){return!!Zt(t)&&(!e||e(t))}});var Ee=Object.assign,je=!Ee||Gt(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Ee({},t)[n]||Object.keys(Ee({},e)).join("")!=r})?function(t,e){for(var n=ie(t),r=arguments.length,i=1,o=ft.f,u=st.f;i<r;)for(var a,c=X(arguments[i++]),f=o?ct(c).concat(o(c)):ct(c),s=f.length,l=0;l<s;)a=f[l++],Kt&&!u.call(c,a)||(n[a]=c[a]);return n}:Ee;oe(oe.S+oe.F,"Object",{assign:je});var Oe=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};oe(oe.S,"Object",{is:Oe});function Ae(t,e){if(S(t),!Zt(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var Pe={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=te(Function.call,se.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return Ae(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:Ae};oe(oe.S,"Object",{setPrototypeOf:Pe.set});function Me(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=Object(t),ke))?n:Te?R(e):"Object"==(r=R(e))&&"function"==typeof e.callee?"Arguments":r}var ke=ue("toStringTag"),Te="Arguments"==R(function(){return arguments}()),Re={};Re[ue("toStringTag")]="z",Re+""!="[object z]"&&P(Object.prototype,"toString",function(){return"[object "+Me(this)+"]"},!0);function De(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}var Ie=[].slice,Ne={},Ce=Function.bind||function(e){var n=g(this),r=Ie.call(arguments,1),i=function(){var t=r.concat(Ie.call(arguments));return this instanceof i?function(t,e,n){if(!(e in Ne)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";Ne[e]=Function("F,a","return new F("+r.join(",")+")")}return Ne[e](t,n)}(n,t.length,t):De(n,t,e)};return Zt(n.prototype)&&(i.prototype=n.prototype),i};oe(oe.P,"Function",{bind:Ce});var Le=Ht.f,ze=Function.prototype,$e=/^\s*function ([^ (]*)/;"name"in ze||Kt&&Le(ze,"name",{configurable:!0,get:function(){try{return(""+this).match($e)[1]}catch(t){return""}}});var Ue=ue("hasInstance"),Ve=Function.prototype;Ue in Ve||Ht.f(Ve,Ue,{value:function(t){if("function"!=typeof this||!Zt(t))return!1;if(!Zt(this.prototype))return t instanceof this;for(;t=we(t);)if(this.prototype===t)return!0;return!1}});function We(t,e,n){var r={},i=Gt(function(){return!!Ge[t]()||"
"!="
"[t]()}),o=r[t]=i?e(Je):Ge[t];n&&(r[n]=o),oe(oe.P+oe.F*i,"String",r)}var Ge="\t\n\v\f\r \u2028\u2029\ufeff",Be="["+Ge+"]",qe=RegExp("^"+Be+Be+"*"),Ye=RegExp(Be+Be+"*$"),Je=We.trim=function(t,e){return t=String(D(t)),1&e&&(t=t.replace(qe,"")),2&e&&(t=t.replace(Ye,"")),t},Ke=We,Ze=Yt.parseInt,He=Ke.trim,Xe=/^[-+]?0[xX]/,Qe=8!==Ze(Ge+"08")||22!==Ze(Ge+"0x16")?function(t,e){var n=He(String(t),3);return Ze(n,e>>>0||(Xe.test(n)?16:10))}:Ze;oe(oe.G+oe.F*(parseInt!=Qe),{parseInt:Qe});var tn=Yt.parseFloat,en=Ke.trim,nn=1/tn(Ge+"-0")!=-1/0?function(t){var e=en(String(t),3),n=tn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:tn;oe(oe.G+oe.F*(parseFloat!=nn),{parseFloat:nn});function rn(t,e,n){var r,i=e.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&Zt(r)&&un&&un(t,r),t}function on(t){var e=Bt(t,!1);if("string"==typeof e&&2<e.length){var n,r,i,o=(e=yn?e.trim():sn(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var u,a=e.slice(2),c=0,f=a.length;c<f;c++)if((u=a.charCodeAt(c))<48||i<u)return NaN;return parseInt(a,r)}}return+e}var un=Pe.set,an=fe.f,cn=se.f,fn=Ht.f,sn=Ke.trim,ln="Number",hn=Yt[ln],vn=hn,dn=hn.prototype,pn=R(ce(dn))==ln,yn="trim"in String.prototype;if(!hn(" 0o1")||!hn("0b1")||hn("+0x1")){hn=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof hn&&(pn?Gt(function(){dn.valueOf.call(n)}):R(n)!=ln)?rn(new vn(on(e)),n,hn):on(e)};for(var gn,mn=Kt?an(vn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),bn=0;mn.length>bn;bn++)Jt(vn,gn=mn[bn])&&!Jt(hn,gn)&&fn(hn,gn,cn(vn,gn));(hn.prototype=dn).constructor=hn,P(Yt,ln,hn)}function _n(t,e){if("number"!=typeof t&&"Number"!=R(t))throw TypeError(e);return+t}function wn(t){var e=String(D(this)),n="",r=ee(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0<r;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}function Fn(t,e){for(var n=-1,r=e;++n<6;)r+=t*On[n],On[n]=r%1e7,r=jn(r/1e7)}function xn(t){for(var e=6,n=0;0<=--e;)n+=On[e],On[e]=jn(n/t),n=n%t*1e7}function Sn(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==On[t]){var n=String(On[t]);e=""===e?n:e+wn.call("0",7-n.length)+n}return e}var En=1..toFixed,jn=Math.floor,On=[0,0,0,0,0,0],An="Number.toFixed: incorrect invocation!",Pn=function(t,e,n){return 0===e?n:e%2==1?Pn(t,e-1,n*t):Pn(t*t,e/2,n)};oe(oe.P+oe.F*(!!En&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!Gt(function(){En.call({})})),"Number",{toFixed:function(t){var e,n,r,i,o=_n(this,An),u=ee(t),a="",c="0";if(u<0||20<u)throw RangeError(An);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(a="-",o=-o),1e-21<o)if(n=(e=function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e}(o*Pn(2,69,1))-69)<0?o*Pn(2,-e,1):o/Pn(2,e,1),n*=4503599627370496,0<(e=52-e)){for(Fn(0,n),r=u;7<=r;)Fn(1e7,0),r-=7;for(Fn(Pn(10,r,1),0),r=e-1;23<=r;)xn(1<<23),r-=23;xn(1<<r),Fn(1,1),xn(2),c=Sn()}else Fn(0,n),Fn(1<<-e,0),c=Sn()+wn.call("0",u);return c=0<u?a+((i=c.length)<=u?"0."+wn.call("0",u-i)+c:c.slice(0,i-u)+"."+c.slice(i-u)):a+c}});var Mn=1..toPrecision;oe(oe.P+oe.F*(Gt(function(){return"1"!==Mn.call(1,void 0)})||!Gt(function(){Mn.call({})})),"Number",{toPrecision:function(t){var e=_n(this,"Number#toPrecision: incorrect invocation!");return void 0===t?Mn.call(e):Mn.call(e,t)}}),oe(oe.S,"Number",{EPSILON:Math.pow(2,-52)});var kn=Yt.isFinite;oe(oe.S,"Number",{isFinite:function(t){return"number"==typeof t&&kn(t)}});function Tn(t){return!Zt(t)&&isFinite(t)&&Rn(t)===t}var Rn=Math.floor;oe(oe.S,"Number",{isInteger:Tn}),oe(oe.S,"Number",{isNaN:function(t){return t!=t}});var Dn=Math.abs;oe(oe.S,"Number",{isSafeInteger:function(t){return Tn(t)&&Dn(t)<=9007199254740991}}),oe(oe.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),oe(oe.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991}),oe(oe.S+oe.F*(Number.parseFloat!=nn),"Number",{parseFloat:nn}),oe(oe.S+oe.F*(Number.parseInt!=Qe),"Number",{parseInt:Qe});var In=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)},Nn=Math.sqrt,Cn=Math.acosh;oe(oe.S+oe.F*!(Cn&&710==Math.floor(Cn(Number.MAX_VALUE))&&Cn(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:In(t-1+Nn(t-1)*Nn(t+1))}});var Ln=Math.asinh;oe(oe.S+oe.F*!(Ln&&0<1/Ln(0)),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var zn=Math.atanh;oe(oe.S+oe.F*!(zn&&1/zn(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var $n=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1};oe(oe.S,"Math",{cbrt:function(t){return $n(t=+t)*Math.pow(Math.abs(t),1/3)}}),oe(oe.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Un=Math.exp;oe(oe.S,"Math",{cosh:function(t){return(Un(t=+t)+Un(-t))/2}});var Vn=Math.expm1,Wn=!Vn||22025.465794806718<Vn(10)||Vn(10)<22025.465794806718||-2e-17!=Vn(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:Vn;oe(oe.S+oe.F*(Wn!=Math.expm1),"Math",{expm1:Wn});var Gn=Math.pow,Bn=Gn(2,-52),qn=Gn(2,-23),Yn=Gn(2,127)*(2-qn),Jn=Gn(2,-126),Kn=Math.fround||function(t){var e,n,r=Math.abs(t),i=$n(t);return r<Jn?i*function(t){return t+1/Bn-1/Bn}(r/Jn/qn)*Jn*qn:Yn<(n=(e=(1+qn/Bn)*r)-(e-r))||n!=n?i*(1/0):i*n};oe(oe.S,"Math",{fround:Kn});var Zn=Math.abs;oe(oe.S,"Math",{hypot:function(t,e){for(var n,r,i=0,o=0,u=arguments.length,a=0;o<u;)a<(n=Zn(arguments[o++]))?(i=i*(r=a/n)*r+1,a=n):i+=0<n?(r=n/a)*r:n;return a===1/0?1/0:a*Math.sqrt(i)}});var Hn=Math.imul;oe(oe.S+oe.F*Gt(function(){return-5!=Hn(4294967295,5)||2!=Hn.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,u=n&i;return 0|o*u+((n&r>>>16)*u+o*(n&i>>>16)<<16>>>0)}}),oe(oe.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}}),oe(oe.S,"Math",{log1p:In}),oe(oe.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}}),oe(oe.S,"Math",{sign:$n});var Xn=Math.exp;oe(oe.S+oe.F*Gt(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(Wn(t)-Wn(-t))/2:(Xn(t-1)-Xn(-t-1))*(Math.E/2)}});var Qn=Math.exp;oe(oe.S,"Math",{tanh:function(t){var e=Wn(t=+t),n=Wn(-t);return e==1/0?1:n==1/0?-1:(e-n)/(Qn(t)+Qn(-t))}}),oe(oe.S,"Math",{trunc:function(t){return(0<t?Math.floor:Math.ceil)(t)}});var tr=String.fromCharCode,er=String.fromCodePoint;oe(oe.S+oe.F*(!!er&&1!=er.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;i<r;){if(e=+arguments[i++],ne(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?tr(e):tr(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),oe(oe.S,"String",{raw:function(t){for(var e=I(t.raw),n=ae(e.length),r=arguments.length,i=[],o=0;o<n;)i.push(String(e[o++])),o<r&&i.push(String(arguments[o]));return i.join("")}}),Ke("trim",function(t){return function(){return t(this,3)}});function nr(a){return function(t,e){var n,r,i=String(D(t)),o=ee(e),u=i.length;return o<0||u<=o?a?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===u||(r=i.charCodeAt(o+1))<56320||57343<r?a?i.charAt(o):n:a?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}var rr={},ir={};Qt(ir,ue("iterator"),function(){return this});function or(t,e,n){t.prototype=ce(ir,{next:Xt(1,n)}),U(t,e+" Iterator")}function ur(){return this}function ar(t,e,n,r,i,o,u){function a(t){if(!fr&&t in d)return d[t];switch(t){case"keys":case sr:return function(){return new n(this,t)}}return function(){return new n(this,t)}}or(n,e,r);var c,f,s,l=e+" Iterator",h=i==sr,v=!1,d=t.prototype,p=d[cr]||d["@@iterator"]||i&&d[i],y=p||a(i),g=i?h?a("entries"):y:void 0,m="Array"==e&&d.entries||p;if(m&&(s=we(m.call(new t)))!==Object.prototype&&s.next&&(U(s,l,!0),"function"!=typeof s[cr]&&Qt(s,cr,ur)),h&&p&&p.name!==sr&&(v=!0,y=function(){return p.call(this)}),!fr&&!v&&d[cr]||Qt(d,cr,y),rr[e]=y,rr[l]=ur,i)if(c={values:h?y:a(sr),keys:o?y:a("keys"),entries:g},u)for(f in c)f in d||P(d,f,c[f]);else oe(oe.P+oe.F*(fr||v),e,c);return c}var cr=ue("iterator"),fr=!([].keys&&"next"in[].keys()),sr="values",lr=nr(!0);ar(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=lr(e,n),this._i+=t.length,{value:t,done:!1})});var hr=nr(!1);oe(oe.P,"String",{codePointAt:function(t){return hr(this,t)}});function vr(t){var e;return Zt(t)&&(void 0!==(e=t[yr])?!!e:"RegExp"==R(t))}function dr(t,e,n){if(vr(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(D(t))}function pr(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[gr]=!1,!"/./"[e](n)}catch(t){}}return!0}var yr=ue("match"),gr=ue("match"),mr="endsWith",br=""[mr];oe(oe.P+oe.F*pr(mr),"String",{endsWith:function(t,e){var n=dr(this,t,mr),r=1<arguments.length?e:void 0,i=ae(n.length),o=void 0===r?i:Math.min(ae(r),i),u=String(t);return br?br.call(n,u,o):n.slice(o-u.length,o)===u}});var _r="includes";oe(oe.P+oe.F*pr(_r),"String",{includes:function(t,e){return!!~dr(this,t,_r).indexOf(t,1<arguments.length?e:void 0)}}),oe(oe.P,"String",{repeat:wn});var wr="startsWith",Fr=""[wr];oe(oe.P+oe.F*pr(wr),"String",{startsWith:function(t,e){var n=dr(this,t,wr),r=ae(Math.min(1<arguments.length?e:void 0,n.length)),i=String(t);return Fr?Fr.call(n,i,r):n.slice(r,r+i.length)===i}});function xr(t,e,n,r){var i=String(D(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(r).replace(Er,""")+'"'),o+">"+i+"</"+e+">"}function Sr(e,t){var n={};n[e]=t(xr),oe(oe.P+oe.F*Gt(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",n)}var Er=/"/g;Sr("anchor",function(e){return function(t){return e(this,"a","name",t)}}),Sr("big",function(t){return function(){return t(this,"big","","")}}),Sr("blink",function(t){return function(){return t(this,"blink","","")}}),Sr("bold",function(t){return function(){return t(this,"b","","")}}),Sr("fixed",function(t){return function(){return t(this,"tt","","")}}),Sr("fontcolor",function(e){return function(t){return e(this,"font","color",t)}}),Sr("fontsize",function(e){return function(t){return e(this,"font","size",t)}}),Sr("italics",function(t){return function(){return t(this,"i","","")}}),Sr("link",function(e){return function(t){return e(this,"a","href",t)}}),Sr("small",function(t){return function(){return t(this,"small","","")}}),Sr("strike",function(t){return function(){return t(this,"strike","","")}}),Sr("sub",function(t){return function(){return t(this,"sub","","")}}),Sr("sup",function(t){return function(){return t(this,"sup","","")}}),oe(oe.S,"Date",{now:function(){return(new Date).getTime()}}),oe(oe.P+oe.F*Gt(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=ie(this),n=Bt(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}});function jr(t){return 9<t?t:"0"+t}var Or=Date.prototype.getTime,Ar=Date.prototype.toISOString,Pr=Gt(function(){return"0385-07-25T07:06:39.999Z"!=Ar.call(new Date(-5e13-1))})||!Gt(function(){Ar.call(new Date(NaN))})?function(){if(!isFinite(Or.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":9999<e?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+jr(t.getUTCMonth()+1)+"-"+jr(t.getUTCDate())+"T"+jr(t.getUTCHours())+":"+jr(t.getUTCMinutes())+":"+jr(t.getUTCSeconds())+"."+(99<n?n:"0"+jr(n))+"Z"}:Ar;oe(oe.P+oe.F*(Date.prototype.toISOString!==Pr),"Date",{toISOString:Pr});var Mr=Date.prototype,kr="Invalid Date",Tr="toString",Rr=Mr[Tr],Dr=Mr.getTime;new Date(NaN)+""!=kr&&P(Mr,Tr,function(){var t=Dr.call(this);return t==t?Rr.call(this):kr});var Ir=ue("toPrimitive"),Nr=Date.prototype;Ir in Nr||Qt(Nr,Ir,function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return Bt(S(this),"number"!=t)}),oe(oe.S,"Array",{isArray:lt});function Cr(e,t,n,r){try{return r?t(S(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&S(i.call(e)),t}}function Lr(t){return void 0!==t&&(rr.Array===t||Ur[$r]===t)}function zr(t,e,n){e in t?Ht.f(t,e,Xt(0,n)):t[e]=n}var $r=ue("iterator"),Ur=Array.prototype,Vr=ue("iterator"),Wr=b.getIteratorMethod=function(t){if(null!=t)return t[Vr]||t["@@iterator"]||rr[Me(t)]},Gr=ue("iterator"),Br=!1;try{var qr=[7][Gr]();qr.return=function(){Br=!0},Array.from(qr,function(){throw 2})}catch(t){}function Yr(t,e){if(!e&&!Br)return!1;var n=!1;try{var r=[7],i=r[Gr]();i.next=function(){return{done:n=!0}},r[Gr]=function(){return i},t(r)}catch(t){}return n}oe(oe.S+oe.F*!Yr(function(t){Array.from(t)}),"Array",{from:function(t,e,n){var r,i,o,u,a=ie(t),c="function"==typeof this?this:Array,f=arguments.length,s=1<f?e:void 0,l=void 0!==s,h=0,v=Wr(a);if(l&&(s=te(s,2<f?n:void 0,2)),null==v||c==Array&&Lr(v))for(i=new c(r=ae(a.length));h<r;h++)zr(i,h,l?s(a[h],h):a[h]);else for(u=v.call(a),i=new c;!(o=u.next()).done;h++)zr(i,h,l?Cr(u,s,[o.value,h],!0):o.value);return i.length=h,i}}),oe(oe.S+oe.F*Gt(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);t<e;)zr(n,t,arguments[t++]);return n.length=e,n}});function Jr(t,e){return!!t&&Gt(function(){e?t.call(null,function(){},1):t.call(null)})}var Kr=[].join;oe(oe.P+oe.F*(X!=Object||!Jr(Kr)),"Array",{join:function(t){return Kr.call(I(this),void 0===t?",":t)}});var Zr=[].slice;oe(oe.P+oe.F*Gt(function(){dt&&Zr.call(dt)}),"Array",{slice:function(t,e){var n=ae(this.length),r=R(this);if(e=void 0===e?n:e,"Array"==r)return Zr.call(this,t,e);for(var i=ne(t,n),o=ne(e,n),u=ae(o-i),a=new Array(u),c=0;c<u;c++)a[c]="String"==r?this.charAt(i+c):this[i+c];return a}});var Hr=[].sort,Xr=[1,2,3];oe(oe.P+oe.F*(Gt(function(){Xr.sort(void 0)})||!Gt(function(){Xr.sort(null)})||!Jr(Hr)),"Array",{sort:function(t){return void 0===t?Hr.call(ie(this)):Hr.call(ie(this),g(t))}});function Qr(t,e){return new(function(t){var e;return lt(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!lt(e.prototype)||(e=void 0),Zt(e)&&null===(e=e[ei])&&(e=void 0)),void 0===e?Array:e}(t))(e)}function ti(l,t){var h=1==l,v=2==l,d=3==l,p=4==l,y=6==l,g=5==l||y,m=t||Qr;return function(t,e,n){for(var r,i,o=ie(t),u=X(o),a=te(e,n,3),c=ae(u.length),f=0,s=h?m(t,c):v?m(t,0):void 0;f<c;f++)if((g||f in u)&&(i=a(r=u[f],f,o),l))if(h)s[f]=i;else if(i)switch(l){case 3:return!0;case 5:return r;case 6:return f;case 2:s.push(r)}else if(p)return!1;return y?-1:d||p?p:s}}var ei=ue("species"),ni=ti(0),ri=Jr([].forEach,!0);oe(oe.P+oe.F*!ri,"Array",{forEach:function(t,e){return ni(this,t,e)}});var ii=ti(1);oe(oe.P+oe.F*!Jr([].map,!0),"Array",{map:function(t,e){return ii(this,t,e)}});var oi=ti(2);oe(oe.P+oe.F*!Jr([].filter,!0),"Array",{filter:function(t,e){return oi(this,t,e)}});var ui=ti(3);oe(oe.P+oe.F*!Jr([].some,!0),"Array",{some:function(t,e){return ui(this,t,e)}});var ai=ti(4);oe(oe.P+oe.F*!Jr([].every,!0),"Array",{every:function(t,e){return ai(this,t,e)}});function ci(t,e,n,r,i){g(e);var o=ie(t),u=X(o),a=ae(o.length),c=i?a-1:0,f=i?-1:1;if(n<2)for(;;){if(c in u){r=u[c],c+=f;break}if(c+=f,i?c<0:a<=c)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=c:c<a;c+=f)c in u&&(r=e(r,u[c],c,o));return r}oe(oe.P+oe.F*!Jr([].reduce,!0),"Array",{reduce:function(t,e){return ci(this,t,arguments.length,e,!1)}}),oe(oe.P+oe.F*!Jr([].reduceRight,!0),"Array",{reduceRight:function(t,e){return ci(this,t,arguments.length,e,!0)}});var fi=re(!1),si=[].indexOf,li=!!si&&1/[1].indexOf(1,-0)<0;oe(oe.P+oe.F*(li||!Jr(si)),"Array",{indexOf:function(t,e){return li?si.apply(this,arguments)||0:fi(this,t,e)}});var hi=[].lastIndexOf,vi=!!hi&&1/[1].lastIndexOf(1,-0)<0;oe(oe.P+oe.F*(vi||!Jr(hi)),"Array",{lastIndexOf:function(t,e){if(vi)return hi.apply(this,arguments)||0;var n=I(this),r=ae(n.length),i=r-1;for(1<arguments.length&&(i=Math.min(i,ee(e))),i<0&&(i=r+i);0<=i;i--)if(i in n&&n[i]===t)return i||0;return-1}});var di=[].copyWithin||function(t,e,n){var r=ie(this),i=ae(r.length),o=ne(t,i),u=ne(e,i),a=2<arguments.length?n:void 0,c=Math.min((void 0===a?i:ne(a,i))-u,i-o),f=1;for(u<o&&o<u+c&&(f=-1,u+=c-1,o+=c-1);0<c--;)u in r?r[o]=r[u]:delete r[o],o+=f,u+=f;return r},pi=ue("unscopables"),yi=Array.prototype;null==yi[pi]&&Qt(yi,pi,{});function gi(t){yi[pi][t]=!0}oe(oe.P,"Array",{copyWithin:di}),gi("copyWithin");function mi(t,e,n){for(var r=ie(this),i=ae(r.length),o=arguments.length,u=ne(1<o?e:void 0,i),a=2<o?n:void 0,c=void 0===a?i:ne(a,i);u<c;)r[u++]=t;return r}oe(oe.P,"Array",{fill:mi}),gi("fill");var bi=ti(5),_i="find",wi=!0;_i in[]&&Array(1)[_i](function(){wi=!1}),oe(oe.P+oe.F*wi,"Array",{find:function(t,e){return bi(this,t,1<arguments.length?e:void 0)}}),gi(_i);var Fi=ti(6),xi="findIndex",Si=!0;xi in[]&&Array(1)[xi](function(){Si=!1}),oe(oe.P+oe.F*Si,"Array",{findIndex:function(t,e){return Fi(this,t,1<arguments.length?e:void 0)}}),gi(xi);function Ei(t){var e=Yt[t];Kt&&e&&!e[ji]&&Ht.f(e,ji,{configurable:!0,get:function(){return this}})}var ji=ue("species");Ei("Array");function Oi(t,e){return{value:e,done:!!t}}var Ai=ar(Array,"Array",function(t,e){this._t=I(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Oi(1)):Oi(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");rr.Arguments=rr.Array,gi("keys"),gi("values"),gi("entries");function Pi(){var t=S(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}var Mi=Ht.f,ki=fe.f,Ti=Yt.RegExp,Ri=Ti,Di=Ti.prototype,Ii=/a/g,Ni=/a/g,Ci=new Ti(Ii)!==Ii;if(Kt&&(!Ci||Gt(function(){return Ni[ue("match")]=!1,Ti(Ii)!=Ii||Ti(Ni)==Ni||"/a/i"!=Ti(Ii,"i")}))){Ti=function(t,e){var n=this instanceof Ti,r=vr(t),i=void 0===e;return!n&&r&&t.constructor===Ti&&i?t:rn(Ci?new Ri(r&&!i?t.source:t,e):Ri((r=t instanceof Ti)?t.source:t,r&&i?Pi.call(t):e),n?this:Di,Ti)};for(var Li=function(e){e in Ti||Mi(Ti,e,{configurable:!0,get:function(){return Ri[e]},set:function(t){Ri[e]=t}})},zi=ki(Ri),$i=0;zi.length>$i;)Li(zi[$i++]);(Di.constructor=Ti).prototype=Di,P(Yt,"RegExp",Ti)}Ei("RegExp");var Ui,Vi,Wi=RegExp.prototype.exec,Gi=String.prototype.replace,Bi=Wi,qi="lastIndex",Yi=(Ui=/a/,Vi=/b*/g,Wi.call(Ui,"a"),Wi.call(Vi,"a"),0!==Ui[qi]||0!==Vi[qi]),Ji=void 0!==/()??/.exec("")[1];(Yi||Ji)&&(Bi=function(t){var e,n,r,i,o=this;return Ji&&(n=new RegExp("^"+o.source+"$(?!\\s)",Pi.call(o))),Yi&&(e=o[qi]),r=Wi.call(o,t),Yi&&r&&(o[qi]=o.global?r.index+r[0].length:e),Ji&&r&&1<r.length&&Gi.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var Ki=Bi;oe({target:"RegExp",proto:!0,forced:Ki!==/./.exec},{exec:Ki}),Kt&&"g"!=/./g.flags&&Ht.f(RegExp.prototype,"flags",{configurable:!0,get:Pi});function Zi(t){P(RegExp.prototype,Hi,t,!0)}var Hi="toString",Xi=/./[Hi];Gt(function(){return"/a/b"!=Xi.call({source:"a",flags:"b"})})?Zi(function(){var t=S(this);return"/".concat(t.source,"/","flags"in t?t.flags:!Kt&&t instanceof RegExp?Pi.call(t):void 0)}):Xi.name!=Hi&&Zi(function(){return Xi.call(this)});function Qi(t,e,n){return e+(n?no(t,e).length:1)}function to(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==Me(t))throw new TypeError("RegExp#exec called on incompatible receiver");return ro.call(t,e)}function eo(n,t,e){var r=ue(n),o=!Gt(function(){var t={};return t[r]=function(){return 7},7!=""[n](t)}),i=o?!Gt(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===n&&(e.constructor={},e.constructor[io]=function(){return e}),e[r](""),!t}):void 0;if(!o||!i||"replace"===n&&!oo||"split"===n&&!uo){var u=/./[r],a=e(D,r,""[n],function(t,e,n,r,i){return e.exec===Ki?o&&!i?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),c=a[0],f=a[1];P(String.prototype,n,c),Qt(RegExp.prototype,r,2==t?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}}var no=nr(!0),ro=RegExp.prototype.exec,io=ue("species"),oo=!Gt(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),uo=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();eo("match",1,function(r,i,f,s){return[function(t){var e=r(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=s(f,t,this);if(e.done)return e.value;var n=S(t),r=String(this);if(!n.global)return to(n,r);for(var i,o=n.unicode,u=[],a=n.lastIndex=0;null!==(i=to(n,r));){var c=String(i[0]);""===(u[a]=c)&&(n.lastIndex=Qi(r,ae(n.lastIndex),o)),a++}return 0===a?null:u}]});var ao=Math.max,co=Math.min,fo=Math.floor,so=/\$([$&`']|\d\d?|<[^>]*>)/g,lo=/\$([$&`']|\d\d?)/g;eo("replace",2,function(i,o,w,F){return[function(t,e){var n=i(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):w.call(String(n),t,e)},function(t,e){var n=F(w,t,this,e);if(n.done)return n.value;var r=S(t),i=String(this),o="function"==typeof e;o||(e=String(e));var u=r.global;if(u){var a=r.unicode;r.lastIndex=0}for(var c=[];;){var f=to(r,i);if(null===f)break;if(c.push(f),!u)break;""===String(f[0])&&(r.lastIndex=Qi(i,ae(r.lastIndex),a))}for(var s,l="",h=0,v=0;v<c.length;v++){f=c[v];for(var d=String(f[0]),p=ao(co(ee(f.index),i.length),0),y=[],g=1;g<f.length;g++)y.push(void 0===(s=f[g])?s:String(s));var m=f.groups;if(o){var b=[d].concat(y,p,i);void 0!==m&&b.push(m);var _=String(e.apply(void 0,b))}else _=x(d,i,p,y,m,e);h<=p&&(l+=i.slice(h,p)+_,h=p+d.length)}return l+i.slice(h)}];function x(o,u,a,c,f,t){var s=a+o.length,l=c.length,e=lo;return void 0!==f&&(f=ie(f),e=so),w.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return u.slice(0,a);case"'":return u.slice(s);case"<":n=f[e.slice(1,-1)];break;default:var r=+e;if(0==r)return t;if(l<r){var i=fo(r/10);return 0===i?t:i<=l?void 0===c[i-1]?e.charAt(1):c[i-1]+e.charAt(1):t}n=c[r-1]}return void 0===n?"":n})}}),eo("search",1,function(r,i,u,a){return[function(t){var e=r(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=a(u,t,this);if(e.done)return e.value;var n=S(t),r=String(this),i=n.lastIndex;Oe(i,0)||(n.lastIndex=0);var o=to(n,r);return Oe(n.lastIndex,i)||(n.lastIndex=i),null===o?-1:o.index}]});function ho(t,e){var n,r=S(t).constructor;return void 0===r||null==(n=S(r)[vo])?e:g(n)}var vo=ue("species"),po=Math.min,yo=[].push,go="split",mo="length",bo="lastIndex",_o=4294967295,wo=!Gt(function(){RegExp(_o,"y")});eo("split",2,function(i,o,y,g){var m;return m="c"=="abbc"[go](/(b)*/)[1]||4!="test"[go](/(?:)/,-1)[mo]||2!="ab"[go](/(?:ab)*/)[mo]||4!="."[go](/(.?)(.?)/)[mo]||1<"."[go](/()()/)[mo]||""[go](/.?/)[mo]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!vr(t))return y.call(n,t,e);for(var r,i,o,u=[],a=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,f=void 0===e?_o:e>>>0,s=new RegExp(t.source,a+"g");(r=Ki.call(s,n))&&!(c<(i=s[bo])&&(u.push(n.slice(c,r.index)),1<r[mo]&&r.index<n[mo]&&yo.apply(u,r.slice(1)),o=r[0][mo],c=i,u[mo]>=f));)s[bo]===r.index&&s[bo]++;return c===n[mo]?!o&&s.test("")||u.push(""):u.push(n.slice(c)),u[mo]>f?u.slice(0,f):u}:"0"[go](void 0,0)[mo]?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y,[function(t,e){var n=i(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):m.call(String(n),t,e)},function(t,e){var n=g(m,t,this,e,m!==y);if(n.done)return n.value;var r=S(t),i=String(this),o=ho(r,RegExp),u=r.unicode,a=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(wo?"y":"g"),c=new o(wo?r:"^(?:"+r.source+")",a),f=void 0===e?_o:e>>>0;if(0==f)return[];if(0===i.length)return null===to(c,i)?[i]:[];for(var s=0,l=0,h=[];l<i.length;){c.lastIndex=wo?l:0;var v,d=to(c,wo?i:i.slice(l));if(null===d||(v=po(ae(c.lastIndex+(wo?0:l)),i.length))===s)l=Qi(i,l,u);else{if(h.push(i.slice(s,l)),h.length===f)return h;for(var p=1;p<=d.length-1;p++)if(h.push(d[p]),h.length===f)return h;l=s=v}}return h.push(i.slice(s)),h}]});function Fo(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}function xo(){var t=+this;if(Io.hasOwnProperty(t)){var e=Io[t];delete Io[t],e()}}function So(t){xo.call(t.data)}var Eo,jo,Oo,Ao=p(function(t){var h={},v={},e=t.exports=function(t,e,n,r,i){var o,u,a,c,f=i?function(){return t}:Wr(t),s=te(n,r,e?2:1),l=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(Lr(f)){for(o=ae(t.length);l<o;l++)if((c=e?s(S(u=t[l])[0],u[1]):s(t[l]))===h||c===v)return c}else for(a=f.call(t);!(u=a.next()).done;)if((c=Cr(a,s,u.value,e))===h||c===v)return c};e.BREAK=h,e.RETURN=v}),Po=Yt.process,Mo=Yt.setImmediate,ko=Yt.clearImmediate,To=Yt.MessageChannel,Ro=Yt.Dispatch,Do=0,Io={},No="onreadystatechange";Mo&&ko||(Mo=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return Io[++Do]=function(){De("function"==typeof t?t:Function(t),e)},Eo(Do),Do},ko=function(t){delete Io[t]},"process"==R(Po)?Eo=function(t){Po.nextTick(te(xo,t,1))}:Ro&&Ro.now?Eo=function(t){Ro.now(te(xo,t,1))}:To?(Oo=(jo=new To).port2,jo.port1.onmessage=So,Eo=te(Oo.postMessage,Oo,1)):Yt.addEventListener&&"function"==typeof postMessage&&!Yt.importScripts?(Eo=function(t){Yt.postMessage(t+"","*")},Yt.addEventListener("message",So,!1)):Eo=No in y("script")?function(t){dt.appendChild(y("script"))[No]=function(){dt.removeChild(this),xo.call(t)}}:function(t){setTimeout(te(xo,t,1),0)});function Co(){function t(){var t,e;for(Wo&&(t=Uo.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?i():r=void 0,t}}r=void 0,t&&t.enter()}var n,r,i;if(Wo)i=function(){Uo.nextTick(t)};else if(!$o||Yt.navigator&&Yt.navigator.standalone)if(Vo&&Vo.resolve){var e=Vo.resolve(void 0);i=function(){e.then(t)}}else i=function(){zo.call(Yt,t)};else{var o=!0,u=document.createTextNode("");new $o(t).observe(u,{characterData:!0}),i=function(){u.data=o=!o}}return function(t){var e={fn:t,next:void 0};r&&(r.next=e),n||(n=e,i()),r=e}}var Lo={set:Mo,clear:ko},zo=Lo.set,$o=Yt.MutationObserver||Yt.WebKitMutationObserver,Uo=Yt.process,Vo=Yt.Promise,Wo="process"==R(Uo);function Go(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=g(n),this.reject=g(r)}function Bo(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}function qo(t,e){if(S(t),Zt(e)&&e.constructor===t)return e;var n=nu.f(t);return(0,n.resolve)(e),n.promise}function Yo(t,e,n){for(var r in e)P(t,r,e[r],n);return t}function Jo(){}function Ko(t){var e;return!(!Zt(t)||"function"!=typeof(e=t.then))&&e}function Zo(s,n){if(!s._n){s._n=!0;var r=s._c;uu(function(){for(var c=s._v,f=1==s._s,t=0,e=function(t){var e,n,r,i=f?t.ok:t.fail,o=t.resolve,u=t.reject,a=t.domain;try{i?(f||(2==s._h&&mu(s),s._h=1),!0===i?e=c:(a&&a.enter(),e=i(c),a&&(a.exit(),r=!0)),e===t.promise?u(cu("Promise-chain cycle")):(n=Ko(e))?n.call(e,o,u):o(e)):u(c)}catch(t){a&&!r&&a.exit(),u(t)}};r.length>t;)e(r[t++]);s._c=[],s._n=!1,n&&!s._h&&yu(s)})}}function Ho(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Zo(e,!0))}var Xo,Qo,tu,eu,nu={f:function(t){return new Go(t)}},ru=Yt.navigator,iu=ru&&ru.userAgent||"",ou=Lo.set,uu=Co(),au="Promise",cu=Yt.TypeError,fu=Yt.process,su=fu&&fu.versions,lu=su&&su.v8||"",hu=Yt[au],vu="process"==Me(fu),du=Qo=nu.f,pu=!!function(){try{var t=hu.resolve(1),e=(t.constructor={})[ue("species")]=function(t){t(Jo,Jo)};return(vu||"function"==typeof PromiseRejectionEvent)&&t.then(Jo)instanceof e&&0!==lu.indexOf("6.6")&&-1===iu.indexOf("Chrome/66")}catch(t){}}(),yu=function(o){ou.call(Yt,function(){var t,e,n,r=o._v,i=gu(o);if(i&&(t=Bo(function(){vu?fu.emit("unhandledRejection",r,o):(e=Yt.onunhandledrejection)?e({promise:o,reason:r}):(n=Yt.console)&&n.error&&n.error("Unhandled promise rejection",r)}),o._h=vu||gu(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},gu=function(t){return 1!==t._h&&0===(t._a||t._c).length},mu=function(e){ou.call(Yt,function(){var t;vu?fu.emit("rejectionHandled",e):(t=Yt.onrejectionhandled)&&t({promise:e,reason:e._v})})},bu=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw cu("Promise can't be resolved itself");(n=Ko(t))?uu(function(){var e={_w:r,_d:!1};try{n.call(t,te(bu,e,1),te(Ho,e,1))}catch(t){Ho.call(e,t)}}):(r._v=t,r._s=1,Zo(r,!1))}catch(t){Ho.call({_w:r,_d:!1},t)}}};pu||(hu=function(t){Fo(this,hu,au,"_h"),g(t),Xo.call(this);try{t(te(bu,this,1),te(Ho,this,1))}catch(t){Ho.call(this,t)}},(Xo=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Yo(hu.prototype,{then:function(t,e){var n=du(ho(this,hu));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=vu?fu.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Zo(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),tu=function(){var t=new Xo;this.promise=t,this.resolve=te(bu,t,1),this.reject=te(Ho,t,1)},nu.f=du=function(t){return t===hu||t===eu?new tu(t):Qo(t)}),oe(oe.G+oe.W+oe.F*!pu,{Promise:hu}),U(hu,au),Ei(au),eu=b[au],oe(oe.S+oe.F*!pu,au,{reject:function(t){var e=du(this);return(0,e.reject)(t),e.promise}}),oe(oe.S+oe.F*!pu,au,{resolve:function(t){return qo(this,t)}}),oe(oe.S+oe.F*!(pu&&Yr(function(t){hu.all(t).catch(Jo)})),au,{all:function(t){var u=this,e=du(u),a=e.resolve,c=e.reject,n=Bo(function(){var r=[],i=0,o=1;Ao(t,!1,function(t){var e=i++,n=!1;r.push(void 0),o++,u.resolve(t).then(function(t){n||(n=!0,r[e]=t,--o||a(r))},c)}),--o||a(r)});return n.e&&c(n.v),e.promise},race:function(t){var e=this,n=du(e),r=n.reject,i=Bo(function(){Ao(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});function _u(t,e){if(!Zt(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}function wu(t,e){var n,r=ju(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n}function Fu(r,t,e,n,i,o){function u(t){var n=s[t];P(s,t,"delete"==t?function(t){return!(o&&!Zt(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!Zt(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!Zt(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})}var a=Yt[r],c=a,f=i?"set":"add",s=c&&c.prototype,l={};if("function"==typeof c&&(o||s.forEach&&!Gt(function(){(new c).entries().next()}))){var h=new c,v=h[f](o?{}:-0,1)!=h,d=Gt(function(){h.has(1)}),p=Yr(function(t){new c(t)}),y=!o&&Gt(function(){for(var t=new c,e=5;e--;)t[f](e,e);return!t.has(-0)});p||(((c=t(function(t,e){Fo(t,c,r);var n=rn(new a,t,c);return null!=e&&Ao(e,i,n[f],n),n})).prototype=s).constructor=c),(d||y)&&(u("delete"),u("has"),i&&u("get")),(y||v)&&u(f),o&&s.clear&&delete s.clear}else c=n.getConstructor(t,r,i,f),Yo(c.prototype,e),q.NEED=!0;return U(c,r),l[r]=c,oe(oe.G+oe.W+oe.F*(c!=a),l),o||n.setStrong(c,r,i),c}function xu(t){return t._l||(t._l=new Iu)}function Su(t,e){return Tu(t.a,function(t){return t[0]===e})}var Eu=Ht.f,ju=q.fastKey,Ou=Kt?"_s":"size",Au={getConstructor:function(t,o,n,r){var i=t(function(t,e){Fo(t,i,o,"_i"),t._t=o,t._i=ce(null),t._f=void 0,t._l=void 0,t[Ou]=0,null!=e&&Ao(e,n,t[r],t)});return Yo(i.prototype,{clear:function(){for(var t=_u(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[Ou]=0},delete:function(t){var e=_u(this,o),n=wu(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[Ou]--}return!!n},forEach:function(t,e){_u(this,o);for(var n,r=te(t,1<arguments.length?e:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!wu(_u(this,o),t)}}),Kt&&Eu(i.prototype,"size",{get:function(){return _u(this,o)[Ou]}}),i},def:function(t,e,n){var r,i,o=wu(t,e);return o?o.v=n:(t._l=o={i:i=ju(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[Ou]++,"F"!==i&&(t._i[i]=o)),t},getEntry:wu,setStrong:function(t,n,e){ar(t,n,function(t,e){this._t=_u(t,n),this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?Oi(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,Oi(1))},e?"entries":"values",!e,!0),Ei(n)}},Pu=Fu("Map",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{get:function(t){var e=Au.getEntry(_u(this,"Map"),t);return e&&e.v},set:function(t,e){return Au.def(_u(this,"Map"),0===t?0:t,e)}},Au,!0),Mu=Fu("Set",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return Au.def(_u(this,"Set"),t=0===t?0:t,t)}},Au),ku=q.getWeak,Tu=ti(5),Ru=ti(6),Du=0,Iu=function(){this.a=[]};Iu.prototype={get:function(t){var e=Su(this,t);if(e)return e[1]},has:function(t){return!!Su(this,t)},set:function(t,e){var n=Su(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=Ru(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var Nu={getConstructor:function(t,n,r,i){var o=t(function(t,e){Fo(t,o,n,"_i"),t._t=n,t._i=Du++,t._l=void 0,null!=e&&Ao(e,r,t[i],t)});return Yo(o.prototype,{delete:function(t){if(!Zt(t))return!1;var e=ku(t);return!0===e?xu(_u(this,n)).delete(t):e&&Jt(e,this._i)&&delete e[this._i]},has:function(t){if(!Zt(t))return!1;var e=ku(t);return!0===e?xu(_u(this,n)).has(t):e&&Jt(e,this._i)}}),o},def:function(t,e,n){var r=ku(S(e),!0);re