mazey 3.12.2 → 4.0.0
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/README.md +15 -12
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +9 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/mazey.min.js +2 -2
- package/lib/typing.d.ts +2 -2
- package/package.json +45 -44
- package/scripts/env-win.sh +2 -0
- package/scripts/rollup.config.mjs +152 -0
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Mazey
|
|
2
|
+
* Mazey v4.0.0 https://github.com/mazeyqian/mazey
|
|
3
3
|
* (c) 2018-2023 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i=e((function(t){function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),a=(n=i)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,u=function(t){return t&&t.Math===Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,p=l?d.bind(d):function(){return d.apply(d,arguments)},v={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,g=h&&!v.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:v,y={f:g},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,b=w.call,E=l&&w.bind.bind(b,b),S=l?E:function(t){return function(){return b.apply(t,arguments)}},x=S({}.toString),O=S("".slice),T=function(t){return O(x(t),8,-1)},A=Object,j=S("".split),I=f((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?j(t,""):A(t)}:A,R=function(t){return null==t},P=TypeError,M=function(t){if(R(t))throw new P("Can't call method on "+t);return t},_=function(t){return I(M(t))},N="object"==typeof document&&document.all,C={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},k=C.all,L=C.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},F=C.all,D=C.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===F}:function(t){return"object"==typeof t?null!==t:L(t)},B=function(t,e){return arguments.length<2?(n=c[t],L(n)?n:void 0):c[t]&&c[t][e];var n},U=S({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",z=c.process,q=c.Deno,G=z&&z.versions||q&&q.version,V=G&&G.v8;V&&(o=(r=V.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&$&&(!(r=$.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=$.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W=o,Y=c.String,Z=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol("symbol detection");return!Y(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),H=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,K=H?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return L(e)&&U(e.prototype,J(t))},X=String,Q=function(t){try{return X(t)}catch(t){return"Object"}},tt=TypeError,et=function(t){if(L(t))return t;throw new tt(Q(t)+" is not a function")},nt=function(t,e){var n=t[e];return R(n)?void 0:et(n)},rt=TypeError,ot=Object.defineProperty,it=function(t,e){try{ot(c,t,{value:e,configurable:!0,writable:!0})}catch(n){c[t]=e}return e},at="__core-js_shared__",ut=c[at]||it(at,{}),ct=e((function(t){(t.exports=function(t,e){return ut[t]||(ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ft=Object,st=function(t){return ft(M(t))},lt=S({}.hasOwnProperty),dt=Object.hasOwn||function(t,e){return lt(st(t),e)},pt=0,vt=Math.random(),ht=S(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ht(++pt+vt,36)},yt=c.Symbol,mt=ct("wks"),wt=H?yt.for||yt:yt&&yt.withoutSetter||gt,bt=function(t){return dt(mt,t)||(mt[t]=Z&&dt(yt,t)?yt[t]:wt("Symbol."+t)),mt[t]},Et=TypeError,St=bt("toPrimitive"),xt=function(t,e){if(!D(t)||K(t))return t;var n,r=nt(t,St);if(r){if(void 0===e&&(e="default"),n=p(r,t,e),!D(n)||K(n))return n;throw new Et("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=p(n,t)))return r;if(L(n=t.valueOf)&&!D(r=p(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=p(n,t)))return r;throw new rt("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=xt(t,"string");return K(e)?e:e+""},Tt=c.document,At=D(Tt)&&D(Tt.createElement),jt=function(t){return At?Tt.createElement(t):{}},It=!s&&!f((function(){return 7!==Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Rt=Object.getOwnPropertyDescriptor,Pt={f:s?Rt:function(t,e){if(t=_(t),e=Ot(e),It)try{return Rt(t,e)}catch(t){}if(dt(t,e))return m(!p(y.f,t,e),t[e])}},Mt=s&&f((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_t=String,Nt=TypeError,Ct=function(t){if(D(t))return t;throw new Nt(_t(t)+" is not an object")},kt=TypeError,Lt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Dt="enumerable",Bt="configurable",Ut="writable",$t={f:s?Mt?function(t,e,n){if(Ct(t),e=Ot(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ut in n&&!n[Ut]){var r=Ft(t,e);r&&r[Ut]&&(t[e]=n.value,n={configurable:Bt in n?n[Bt]:r[Bt],enumerable:Dt in n?n[Dt]:r[Dt],writable:!1})}return Lt(t,e,n)}:Lt:function(t,e,n){if(Ct(t),e=Ot(e),Ct(n),It)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new kt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zt=s?function(t,e,n){return $t.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Gt=s&&Object.getOwnPropertyDescriptor,Vt=dt(qt,"name"),Wt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!s||s&&Gt(qt,"name").configurable)},Yt=S(Function.toString);L(ut.inspectSource)||(ut.inspectSource=function(t){return Yt(t)});var Zt,Ht,Jt,Kt=ut.inspectSource,Xt=c.WeakMap,Qt=L(Xt)&&/native code/.test(String(Xt)),te=ct("keys"),ee=function(t){return te[t]||(te[t]=gt(t))},ne={},re="Object already initialized",oe=c.TypeError,ie=c.WeakMap;if(Qt||ut.state){var ae=ut.state||(ut.state=new ie);ae.get=ae.get,ae.has=ae.has,ae.set=ae.set,Zt=function(t,e){if(ae.has(t))throw new oe(re);return e.facade=t,ae.set(t,e),e},Ht=function(t){return ae.get(t)||{}},Jt=function(t){return ae.has(t)}}else{var ue=ee("state");ne[ue]=!0,Zt=function(t,e){if(dt(t,ue))throw new oe(re);return e.facade=t,zt(t,ue,e),e},Ht=function(t){return dt(t,ue)?t[ue]:{}},Jt=function(t){return dt(t,ue)}}var ce,fe={set:Zt,get:Ht,has:Jt,enforce:function(t){return Jt(t)?Ht(t):Zt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Ht(e)).type!==t)throw new oe("Incompatible receiver, "+t+" required");return n}}},se=e((function(t){var e=Wt.CONFIGURABLE,n=fe.enforce,r=fe.get,o=String,i=Object.defineProperty,a=S("".slice),u=S("".replace),c=S([].join),l=s&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!dt(t,"name")||e&&t.name!==r)&&(s?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&&dt(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&dt(f,"constructor")&&f.constructor?s&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return dt(p,"source")||(p.source=c(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Kt(this)}),"toString")})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&se(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:$t.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,pe=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?pe:de)(e)},he=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ge=Math.max,ye=Math.min,me=function(t,e){var n=he(t);return n<0?ge(n+e,0):ye(n,e)},we=Math.min,be=function(t){return t>0?we(he(t),9007199254740991):0},Ee=function(t){return be(t.length)},Se=function(t){return function(e,n,r){var o,i=_(e),a=Ee(i),u=me(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},xe={includes:Se(!0),indexOf:Se(!1)},Oe=xe.indexOf,Te=S([].push),Ae=function(t,e){var n,r=_(t),o=0,i=[];for(n in r)!dt(ne,n)&&dt(r,n)&&Te(i,n);for(;e.length>o;)dt(r,n=e[o++])&&(~Oe(i,n)||Te(i,n));return i},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ie=je.concat("length","prototype"),Re={f:Object.getOwnPropertyNames||function(t){return Ae(t,Ie)}},Pe={f:Object.getOwnPropertySymbols},Me=S([].concat),_e=B("Reflect","ownKeys")||function(t){var e=Re.f(Ct(t)),n=Pe.f;return n?Me(e,n(t)):e},Ne=function(t,e,n){for(var r=_e(e),o=$t.f,i=Pt.f,a=0;a<r.length;a++){var u=r[a];dt(t,u)||n&&dt(n,u)||o(t,u,i(e,u))}},Ce=/#|\.prototype\./,ke=function(t,e){var n=Fe[Le(t)];return n===Be||n!==De&&(L(e)?f(e):!!e)},Le=ke.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},Fe=ke.data={},De=ke.NATIVE="N",Be=ke.POLYFILL="P",Ue=ke,$e=Pt.f,ze=function(t,e){var n,r,o,i,a,u=t.target,f=t.global,s=t.stat;if(n=f?c:s?c[u]||it(u,{}):(c[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=$e(n,r))&&a.value:n[r],!Ue(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ne(i,o)}(t.sham||o&&o.sham)&&zt(i,"sham",!0),le(n,r,i,t)}},qe=Object.keys||function(t){return Ae(t,je)},Ge=s&&!Mt?Object.defineProperties:function(t,e){Ct(t);for(var n,r=_(e),o=qe(e),i=o.length,a=0;i>a;)$t.f(t,n=o[a++],r[n]);return t},Ve={f:Ge},We=B("document","documentElement"),Ye="prototype",Ze="script",He=ee("IE_PROTO"),Je=function(){},Ke=function(t){return"<"+Ze+">"+t+"</"+Ze+">"},Xe=function(t){t.write(Ke("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qe=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Qe="undefined"!=typeof document?document.domain&&ce?Xe(ce):(e=jt("iframe"),n="java"+Ze+":",e.style.display="none",We.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ke("document.F=Object")),t.close(),t.F):Xe(ce);for(var r=je.length;r--;)delete Qe[Ye][je[r]];return Qe()};ne[He]=!0;var tn=Object.create||function(t,e){var n;return null!==t?(Je[Ye]=Ct(t),n=new Je,Je[Ye]=null,n[He]=t):n=Qe(),void 0===e?n:Ve.f(n,e)},en=$t.f,nn=bt("unscopables"),rn=Array.prototype;void 0===rn[nn]&&en(rn,nn,{configurable:!0,value:tn(null)});var on=function(t){rn[nn][t]=!0};ze({target:"Array",proto:!0},{fill:function(t){for(var e=st(this),n=Ee(e),r=arguments.length,o=me(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:me(i,n);a>o;)e[o++]=t;return e}}),on("fill");var an=Array.isArray||function(t){return"Array"===T(t)},un=TypeError,cn=function(t){if(t>9007199254740991)throw un("Maximum allowed index exceeded");return t},fn=function(t,e,n){var r=Ot(e);r in t?$t.f(t,r,m(0,n)):t[r]=n},sn={};sn[bt("toStringTag")]="z";var ln="[object z]"===String(sn),dn=bt("toStringTag"),pn=Object,vn="Arguments"===T(function(){return arguments}()),hn=ln?T: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=pn(t),dn))?n:vn?T(e):"Object"===(r=T(e))&&L(e.callee)?"Arguments":r},gn=function(){},yn=[],mn=B("Reflect","construct"),wn=/^\s*(?:class|function)\b/,bn=S(wn.exec),En=!wn.test(gn),Sn=function(t){if(!L(t))return!1;try{return mn(gn,yn,t),!0}catch(t){return!1}},xn=function(t){if(!L(t))return!1;switch(hn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return En||!!bn(wn,Kt(t))}catch(t){return!0}};xn.sham=!0;var On=!mn||f((function(){var t;return Sn(Sn.call)||!Sn(Object)||!Sn((function(){t=!0}))||t}))?xn:Sn,Tn=bt("species"),An=Array,jn=function(t,e){return new(function(t){var e;return an(t)&&(e=t.constructor,(On(e)&&(e===An||an(e.prototype))||D(e)&&null===(e=e[Tn]))&&(e=void 0)),void 0===e?An:e}(t))(0===e?0:e)},In=bt("species"),Rn=function(t){return W>=51||!f((function(){var e=[];return(e.constructor={})[In]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Pn=bt("isConcatSpreadable"),Mn=W>=51||!f((function(){var t=[];return t[Pn]=!1,t.concat()[0]!==t})),_n=function(t){if(!D(t))return!1;var e=t[Pn];return void 0!==e?!!e:an(t)},Nn=!Mn||!Rn("concat");ze({target:"Array",proto:!0,arity:1,forced:Nn},{concat:function(t){var e,n,r,o,i,a=st(this),u=jn(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(_n(i=-1===e?a:arguments[e]))for(o=Ee(i),cn(c+o),n=0;n<o;n++,c++)n in i&&fn(u,c,i[n]);else cn(c+1),fn(u,c++,i);return u.length=c,u}});var Cn=String,kn=TypeError,Ln=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return S(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 Ct(n),function(t){if("object"==typeof t||L(t))return t;throw new kn("Can't set "+Cn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fn=function(t,e,n){var r,o;return Ln&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&Ln(t,o),t},Dn=bt("match"),Bn=function(t){var e;return D(t)&&(void 0!==(e=t[Dn])?!!e:"RegExp"===T(t))},Un=String,$n=function(t){if("Symbol"===hn(t))throw new TypeError("Cannot convert a Symbol value to a string");return Un(t)},zn=function(){var t=Ct(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},qn=RegExp.prototype,Gn=function(t){var e=t.flags;return void 0!==e||"flags"in qn||dt(t,"flags")||!U(qn,t)?e:p(zn,t)},Vn=c.RegExp,Wn=f((function(){var t=Vn("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Yn=Wn||f((function(){return!Vn("a","y").sticky})),Zn={BROKEN_CARET:Wn||f((function(){var t=Vn("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Yn,UNSUPPORTED_Y:Wn},Hn=$t.f,Jn=function(t,e,n){n in t||Hn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Kn=function(t,e,n){return n.get&&se(n.get,e,{getter:!0}),n.set&&se(n.set,e,{setter:!0}),$t.f(t,e,n)},Xn=bt("species"),Qn=function(t){var e=B(t);s&&e&&!e[Xn]&&Kn(e,Xn,{configurable:!0,get:function(){return this}})},tr=c.RegExp,er=f((function(){var t=tr(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),nr=c.RegExp,rr=f((function(){var t=nr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),or=Re.f,ir=fe.enforce,ar=bt("match"),ur=c.RegExp,cr=ur.prototype,fr=c.SyntaxError,sr=S(cr.exec),lr=S("".charAt),dr=S("".replace),pr=S("".indexOf),vr=S("".slice),hr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gr=/a/g,yr=/a/g,mr=new ur(gr)!==gr,wr=Zn.MISSED_STICKY,br=Zn.UNSUPPORTED_Y,Er=s&&(!mr||wr||er||rr||f((function(){return yr[ar]=!1,ur(gr)!==gr||ur(yr)===yr||"/a/i"!==String(ur(gr,"i"))})));if(Ue("RegExp",Er)){for(var Sr=function(t,e){var n,r,o,i,a,u,c=U(cr,this),f=Bn(t),s=void 0===e,l=[],d=t;if(!c&&f&&s&&t.constructor===Sr)return t;if((f||U(cr,t))&&(t=t.source,s&&(e=Gn(d))),t=void 0===t?"":$n(t),e=void 0===e?"":$n(e),d=t,er&&"dotAll"in gr&&(r=!!e&&pr(e,"s")>-1)&&(e=dr(e,/s/g,"")),n=e,wr&&"sticky"in gr&&(o=!!e&&pr(e,"y")>-1)&&br&&(e=dr(e,/y/g,"")),rr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=tn(null),u=!1,c=!1,f=0,s="";r<=n;r++){if("\\"===(e=lr(t,r)))e+=lr(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:sr(hr,vr(t,r+1))&&(r+=2,c=!0),o+=e,f++;continue;case">"===e&&c:if(""===s||dt(a,s))throw new fr("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Fn(ur(t,e),c?this:cr,Sr),(r||o||l.length)&&(u=ir(a),r&&(u.dotAll=!0,u.raw=Sr(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=lr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+lr(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==d)try{zt(a,"source",""===d?"(?:)":d)}catch(t){}return a},xr=or(ur),Or=0;xr.length>Or;)Jn(Sr,ur,xr[Or++]);cr.constructor=Sr,Sr.prototype=cr,le(c,"RegExp",Sr,{constructor:!0})}Qn("RegExp");var Tr=fe.get,Ar=ct("native-string-replace",String.prototype.replace),jr=RegExp.prototype.exec,Ir=jr,Rr=S("".charAt),Pr=S("".indexOf),Mr=S("".replace),_r=S("".slice),Nr=function(){var t=/a/,e=/b*/g;return p(jr,t,"a"),p(jr,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Cr=Zn.BROKEN_CARET,kr=void 0!==/()??/.exec("")[1];(Nr||kr||Cr||er||rr)&&(Ir=function(t){var e,n,r,o,i,a,u,c=this,f=Tr(c),s=$n(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=p(Ir,l,s),c.lastIndex=l.lastIndex,e;var d=f.groups,v=Cr&&c.sticky,h=p(zn,c),g=c.source,y=0,m=s;if(v&&(h=Mr(h,"y",""),-1===Pr(h,"g")&&(h+="g"),m=_r(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Rr(s,c.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),n=new RegExp("^(?:"+g+")",h)),kr&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Nr&&(r=c.lastIndex),o=p(jr,v?n:c,m),v?o?(o.input=_r(o.input,y),o[0]=_r(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Nr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),kr&&o&&o.length>1&&p(Ar,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=tn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Lr=Ir;ze({target:"RegExp",proto:!0,forced:/./.exec!==Lr},{exec:Lr});var Fr=Wt.PROPER,Dr="toString",Br=RegExp.prototype[Dr],Ur=f((function(){return"/a/b"!==Br.call({source:"a",flags:"b"})})),$r=Fr&&Br.name!==Dr;(Ur||$r)&&le(RegExp.prototype,Dr,(function(){var t=Ct(this);return"/"+$n(t.source)+"/"+$n(Gn(t))}),{unsafe:!0});var zr=function(t){if("Function"===T(t))return S(t)},qr=bt("species"),Gr=RegExp.prototype,Vr=function(t,e,n,r){var o=bt(t),i=!f((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!f((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[qr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=zr(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=zr(t),c=e.exec;return c===Lr||c===Gr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));le(String.prototype,t,c[0]),le(Gr,o,c[1])}r&&zt(Gr[o],"sham",!0)},Wr=S("".charAt),Yr=S("".charCodeAt),Zr=S("".slice),Hr=function(t){return function(e,n){var r,o,i=$n(M(e)),a=he(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Yr(i,a))<55296||r>56319||a+1===u||(o=Yr(i,a+1))<56320||o>57343?t?Wr(i,a):r:t?Zr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jr={codeAt:Hr(!1),charAt:Hr(!0)},Kr=Jr.charAt,Xr=function(t,e,n){return e+(n?Kr(t,e).length:1)},Qr=TypeError,to=function(t,e){var n=t.exec;if(L(n)){var r=p(n,t,e);return null!==r&&Ct(r),r}if("RegExp"===T(t))return p(Lr,t,e);throw new Qr("RegExp#exec called on incompatible receiver")};Vr("match",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:nt(e,t);return r?p(r,e,n):new RegExp(e)[t]($n(n))},function(t){var r=Ct(this),o=$n(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return to(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],f=0;null!==(u=to(r,o));){var s=$n(u[0]);c[f]=s,""===s&&(r.lastIndex=Xr(o,be(r.lastIndex),a)),f++}return 0===f?null:c}]}));var eo=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Vr("search",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:nt(e,t);return r?p(r,e,n):new RegExp(e)[t]($n(n))},function(t){var r=Ct(this),o=$n(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;eo(a,0)||(r.lastIndex=0);var u=to(r,o);return eo(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}));var no=Function.prototype,ro=no.apply,oo=no.call,io="object"==typeof Reflect&&Reflect.apply||(l?oo.bind(ro):function(){return oo.apply(ro,arguments)}),ao=Math.floor,uo=S("".charAt),co=S("".replace),fo=S("".slice),so=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lo=/\$([$&'`]|\d{1,2})/g,po=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=lo;return void 0!==o&&(o=st(o),c=so),co(i,c,(function(i,c){var f;switch(uo(c,0)){case"$":return"$";case"&":return t;case"`":return fo(e,0,n);case"'":return fo(e,a);case"<":f=o[fo(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=ao(s/10);return 0===l?i:l<=u?void 0===r[l-1]?uo(c,1):r[l-1]+uo(c,1):i}f=r[s-1]}return void 0===f?"":f}))},vo=bt("replace"),ho=Math.max,go=Math.min,yo=S([].concat),mo=S([].push),wo=S("".indexOf),bo=S("".slice),Eo="$0"==="a".replace(/./,"$0"),So=!!/./[vo]&&""===/./[vo]("a","$0");Vr("replace",(function(t,e,n){var r=So?"$":"$0";return[function(t,n){var r=M(this),o=R(t)?void 0:nt(t,vo);return o?p(o,t,r,n):p(e,$n(r),t,n)},function(t,o){var i=Ct(this),a=$n(t);if("string"==typeof o&&-1===wo(o,r)&&-1===wo(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=L(o);c||(o=$n(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=to(i,a))&&(mo(d,l),s);){""===$n(l[0])&&(i.lastIndex=Xr(a,be(i.lastIndex),f))}for(var p,v="",h=0,g=0;g<d.length;g++){for(var y,m=$n((l=d[g])[0]),w=ho(go(he(l.index),a.length),0),b=[],E=1;E<l.length;E++)mo(b,void 0===(p=l[E])?p:String(p));var S=l.groups;if(c){var x=yo([m],b,w,a);void 0!==S&&mo(x,S),y=$n(io(o,void 0,x))}else y=po(m,a,w,b,S,o);w>=h&&(v+=bo(a,h,w)+y,h=w+m.length)}return v+bo(a,h)}]}),!!f((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Eo||So);var xo=function(t,e){var n=[][t];return!!n&&f((function(){n.call(null,e||function(){return 1},1)}))},Oo=xe.indexOf,To=zr([].indexOf),Ao=!!To&&1/To([1],1,-0)<0,jo=Ao||!xo("indexOf");ze({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ao?To(this,t,e)||0:Oo(this,t,e)}});var Io=TypeError,Ro=function(t){return function(e,n,r,o){var i=st(e),a=I(i),u=Ee(i);et(n);var c=t?u-1:0,f=t?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw new Io("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=n(o,a[c],c,i));return o}},Po={left:Ro(!1),right:Ro(!0)},Mo="process"===T(c.process),_o=Po.left,No=!Mo&&W>79&&W<83||!xo("reduce");ze({target:"Array",proto:!0,forced:No},{reduce:function(t){var e=arguments.length;return _o(this,t,e,e>1?arguments[1]:void 0)}});var Co=ln?{}.toString:function(){return"[object "+hn(this)+"]"};ln||le(Object.prototype,"toString",Co,{unsafe:!0});var ko=S([].slice),Lo=Rn("slice"),Fo=bt("species"),Do=Array,Bo=Math.max;ze({target:"Array",proto:!0,forced:!Lo},{slice:function(t,e){var n,r,o,i=_(this),a=Ee(i),u=me(t,a),c=me(void 0===e?a:e,a);if(an(i)&&(n=i.constructor,(On(n)&&(n===Do||an(n.prototype))||D(n)&&null===(n=n[Fo]))&&(n=void 0),n===Do||void 0===n))return ko(i,u,c);for(r=new(void 0===n?Do:n)(Bo(c-u,0)),o=0;u<c;u++,o++)u in i&&fn(r,o,i[u]);return r.length=o,r}});var Uo=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),$o=ee("IE_PROTO"),zo=Object,qo=zo.prototype,Go=Uo?zo.getPrototypeOf:function(t){var e=st(t);if(dt(e,$o))return e[$o];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof zo?qo:null},Vo=S(y.f),Wo=S([].push),Yo=s&&f((function(){var t=Object.create(null);return t[2]=2,!Vo(t,2)})),Zo=function(t){return function(e){for(var n,r=_(e),o=qe(r),i=Yo&&null===Go(r),a=o.length,u=0,c=[];a>u;)n=o[u++],s&&!(i?n in r:Vo(r,n))||Wo(c,t?[n,r[n]]:r[n]);return c}},Ho={entries:Zo(!0),values:Zo(!1)}.values;ze({target:"Object",stat:!0},{values:function(t){return Ho(t)}});var Jo=zr(zr.bind),Ko=function(t,e){return et(t),void 0===e?t:l?Jo(t,e):function(){return t.apply(e,arguments)}},Xo=S([].push),Qo=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,f,s,l){for(var d,p,v=st(c),h=I(v),g=Ee(h),y=Ko(f,s),m=0,w=l||jn,b=e?w(c,g):n||a?w(c,0):void 0;g>m;m++)if((u||m in h)&&(p=y(d=h[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Xo(b,d)}else switch(t){case 4:return!1;case 7:Xo(b,d)}return i?-1:r||o?o:b}},ti={forEach:Qo(0),map:Qo(1),filter:Qo(2),some:Qo(3),every:Qo(4),find:Qo(5),findIndex:Qo(6),filterReject:Qo(7)},ei=ti.every,ni=xo("every");ze({target:"Array",proto:!0,forced:!ni},{every:function(t){return ei(this,t,arguments.length>1?arguments[1]:void 0)}});var ri=xe.includes,oi=f((function(){return!Array(1).includes()}));ze({target:"Array",proto:!0,forced:oi},{includes:function(t){return ri(this,t,arguments.length>1?arguments[1]:void 0)}}),on("includes");var ii=f((function(){qe(1)}));ze({target:"Object",stat:!0,forced:ii},{keys:function(t){return qe(st(t))}});var ai=S(1..valueOf),ui=RangeError,ci=RangeError,fi=String,si=Math.floor,li=S((function(t){var e=$n(M(this)),n="",r=he(t);if(r<0||r===1/0)throw new ui("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),di=S("".slice),pi=S(1..toFixed),vi=function(t,e,n){return 0===e?n:e%2==1?vi(t,e-1,n*t):vi(t*t,e/2,n)},hi=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=si(o/1e7)},gi=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=si(r/e),r=r%e*1e7},yi=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=fi(t[e]);n=""===n?r:n+li("0",7-r.length)+r}return n},mi=f((function(){return"0.000"!==pi(8e-5,3)||"1"!==pi(.9,0)||"1.25"!==pi(1.255,2)||"1000000000000000128"!==pi(0xde0b6b3a7640080,0)}))||!f((function(){pi({})}));ze({target:"Number",proto:!0,forced:mi},{toFixed:function(t){var e,n,r,o,i=ai(this),a=he(t),u=[0,0,0,0,0,0],c="",f="0";if(a<0||a>20)throw new ci("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return fi(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*vi(2,69,1))-69,n=e<0?i*vi(2,-e,1):i/vi(2,e,1),n*=4503599627370496,(e=52-e)>0){for(hi(u,0,n),r=a;r>=7;)hi(u,1e7,0),r-=7;for(hi(u,vi(10,r,1),0),r=e-1;r>=23;)gi(u,1<<23),r-=23;gi(u,1<<r),hi(u,1,1),gi(u,2),f=yi(u)}else hi(u,0,n),hi(u,1<<-e,0),f=yi(u)+li("0",a);return f=a>0?c+((o=f.length)<=a?"0."+li("0",a-o)+f:di(f,0,o-a)+"."+di(f,o-a)):c+f}});var wi="\t\n\v\f\r \u2028\u2029\ufeff",bi=S("".replace),Ei=RegExp("^["+wi+"]+"),Si=RegExp("(^|[^"+wi+"])["+wi+"]+$"),xi=function(t){return function(e){var n=$n(M(e));return 1&t&&(n=bi(n,Ei,"")),2&t&&(n=bi(n,Si,"$1")),n}},Oi={start:xi(1),end:xi(2),trim:xi(3)},Ti=Oi.trim,Ai=S("".charAt),ji=c.parseFloat,Ii=c.Symbol,Ri=Ii&&Ii.iterator,Pi=1/ji(wi+"-0")!=-1/0||Ri&&!f((function(){ji(Object(Ri))}))?function(t){var e=Ti($n(t)),n=ji(e);return 0===n&&"-"===Ai(e,0)?-0:n}:ji;ze({global:!0,forced:parseFloat!==Pi},{parseFloat:Pi});var Mi=TypeError,_i=bt("species"),Ni=function(t,e){var n,r=Ct(t).constructor;return void 0===r||R(n=Ct(r)[_i])?e:function(t){if(On(t))return t;throw new Mi(Q(t)+" is not a constructor")}(n)},Ci=Array,ki=Math.max,Li=function(t,e,n){for(var r=Ee(t),o=me(e,r),i=me(void 0===n?r:n,r),a=Ci(ki(i-o,0)),u=0;o<i;o++,u++)fn(a,u,t[o]);return a.length=u,a},Fi=Zn.UNSUPPORTED_Y,Di=4294967295,Bi=Math.min,Ui=[].push,$i=S(/./.exec),zi=S(Ui),qi=S("".slice);Vr("split",(function(t,e,n){var r;return r="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=$n(M(this)),o=void 0===n?Di:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Bn(t))return p(e,r,t,o);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=p(Lr,l,r))&&!((a=l.lastIndex)>s&&(zi(c,qi(r,s,i.index)),i.length>1&&i.index<r.length&&io(Ui,c,Li(i,1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!u&&$i(l,"")||zi(c,""):zi(c,qi(r,s)),c.length>o?Li(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:p(e,this,t,n)}:e,[function(e,n){var o=M(this),i=R(e)?void 0:nt(e,t);return i?p(i,e,o,n):p(r,$n(o),e,n)},function(t,o){var i=Ct(this),a=$n(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var c=Ni(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Fi?"g":"y"),l=new c(Fi?"^(?:"+i.source+")":i,s),d=void 0===o?Di:o>>>0;if(0===d)return[];if(0===a.length)return null===to(l,a)?[a]:[];for(var p=0,v=0,h=[];v<a.length;){l.lastIndex=Fi?0:v;var g,y=to(l,Fi?qi(a,v):a);if(null===y||(g=Bi(be(l.lastIndex+(Fi?v:0)),a.length))===p)v=Xr(a,v,f);else{if(zi(h,qi(a,p,v)),h.length===d)return h;for(var m=1;m<=y.length-1;m++)if(zi(h,y[m]),h.length===d)return h;v=p=g}}return zi(h,qi(a,p)),h}]}),!!f((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]})),Fi);var Gi=Object.assign,Vi=Object.defineProperty,Wi=S([].concat),Yi=!Gi||f((function(){if(s&&1!==Gi({b:1},Gi(Vi({},"a",{enumerable:!0,get:function(){Vi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Gi({},t)[n]||qe(Gi({},e)).join("")!==r}))?function(t,e){for(var n=st(t),r=arguments.length,o=1,i=Pe.f,a=y.f;r>o;)for(var u,c=I(arguments[o++]),f=i?Wi(qe(c),i(c)):qe(c),l=f.length,d=0;l>d;)u=f[d++],s&&!p(a,c,u)||(n[u]=c[u]);return n}:Gi;ze({target:"Object",stat:!0,arity:2,forced:Object.assign!==Yi},{assign:Yi});var Zi=c,Hi=Re.f,Ji=Pt.f,Ki=$t.f,Xi=Oi.trim,Qi="Number",ta=c[Qi];Zi[Qi];var ea=ta.prototype,na=c.TypeError,ra=S("".slice),oa=S("".charCodeAt),ia=function(t){var e,n,r,o,i,a,u,c,f=xt(t,"number");if(K(f))throw new na("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Xi(f),43===(e=oa(f,0))||45===e){if(88===(n=oa(f,2))||120===n)return NaN}else if(48===e){switch(oa(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=ra(f,2)).length,u=0;u<a;u++)if((c=oa(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+f},aa=Ue(Qi,!ta(" 0o1")||!ta("0b1")||ta("+0x1")),ua=function(t){var e,n=arguments.length<1?0:ta(function(t){var e=xt(t,"number");return"bigint"==typeof e?e:ia(e)}(t));return U(ea,e=this)&&f((function(){ai(e)}))?Fn(Object(n),this,ua):n};ua.prototype=ea,aa&&(ea.constructor=ua),ze({global:!0,constructor:!0,wrap:!0,forced:aa},{Number:ua});aa&&function(t,e){for(var n,r=s?Hi(e):"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(","),o=0;r.length>o;o++)dt(e,n=r[o])&&!dt(t,n)&&Ki(t,n,Ji(e,n))}(Zi[Qi],ta);var ca,fa,sa,la,da=$t.f,pa=bt("toStringTag"),va=function(t,e,n){t&&!n&&(t=t.prototype),t&&!dt(t,pa)&&da(t,pa,{configurable:!0,value:e})},ha=TypeError,ga=TypeError,ya=/(?:ipad|iphone|ipod).*applewebkit/i.test($),ma=c.setImmediate,wa=c.clearImmediate,ba=c.process,Ea=c.Dispatch,Sa=c.Function,xa=c.MessageChannel,Oa=c.String,Ta=0,Aa={},ja="onreadystatechange";f((function(){ca=c.location}));var Ia=function(t){if(dt(Aa,t)){var e=Aa[t];delete Aa[t],e()}},Ra=function(t){return function(){Ia(t)}},Pa=function(t){Ia(t.data)},Ma=function(t){c.postMessage(Oa(t),ca.protocol+"//"+ca.host)};ma&&wa||(ma=function(t){!function(t,e){if(t<e)throw new ga("Not enough arguments")}(arguments.length,1);var e=L(t)?t:Sa(t),n=ko(arguments,1);return Aa[++Ta]=function(){io(e,void 0,n)},fa(Ta),Ta},wa=function(t){delete Aa[t]},Mo?fa=function(t){ba.nextTick(Ra(t))}:Ea&&Ea.now?fa=function(t){Ea.now(Ra(t))}:xa&&!ya?(la=(sa=new xa).port2,sa.port1.onmessage=Pa,fa=Ko(la.postMessage,la)):c.addEventListener&&L(c.postMessage)&&!c.importScripts&&ca&&"file:"!==ca.protocol&&!f(Ma)?(fa=Ma,c.addEventListener("message",Pa,!1)):fa=ja in jt("script")?function(t){We.appendChild(jt("script"))[ja]=function(){We.removeChild(this),Ia(t)}}:function(t){setTimeout(Ra(t),0)});var _a={set:ma,clear:wa},Na=function(){this.head=null,this.tail=null};Na.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 Ca,ka,La,Fa,Da,Ba=Na,Ua=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,$a=/web0s(?!.*chrome)/i.test($),za=Pt.f,qa=_a.set,Ga=c.MutationObserver||c.WebKitMutationObserver,Va=c.document,Wa=c.process,Ya=c.Promise,Za=za(c,"queueMicrotask"),Ha=Za&&Za.value;if(!Ha){var Ja=new Ba,Ka=function(){var t,e;for(Mo&&(t=Wa.domain)&&t.exit();e=Ja.get();)try{e()}catch(t){throw Ja.head&&Ca(),t}t&&t.enter()};ya||Mo||$a||!Ga||!Va?!Ua&&Ya&&Ya.resolve?((Fa=Ya.resolve(void 0)).constructor=Ya,Da=Ko(Fa.then,Fa),Ca=function(){Da(Ka)}):Mo?Ca=function(){Wa.nextTick(Ka)}:(qa=Ko(qa,c),Ca=function(){qa(Ka)}):(ka=!0,La=Va.createTextNode(""),new Ga(Ka).observe(La,{characterData:!0}),Ca=function(){La.data=ka=!ka}),Ha=function(t){Ja.head||Ca(),Ja.add(t)}}var Xa=Ha,Qa=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},tu=c.Promise,eu="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,nu=!eu&&!Mo&&"object"==typeof window&&"object"==typeof document;tu&&tu.prototype;var ru,ou,iu,au=bt("species"),uu=!1,cu=L(c.PromiseRejectionEvent),fu=Ue("Promise",(function(){var t=Kt(tu),e=t!==String(tu);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var n=new tu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[au]=r,!(uu=n.then((function(){}))instanceof r))return!0}return!e&&(nu||eu)&&!cu})),su={CONSTRUCTOR:fu,REJECTION_EVENT:cu,SUBCLASSING:uu},lu=TypeError,du=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new lu("Bad Promise constructor");e=t,n=r})),this.resolve=et(e),this.reject=et(n)},pu={f:function(t){return new du(t)}},vu=_a.set,hu="Promise",gu=su.CONSTRUCTOR,yu=su.REJECTION_EVENT,mu=su.SUBCLASSING,wu=fe.getterFor(hu),bu=fe.set,Eu=tu&&tu.prototype,Su=tu,xu=Eu,Ou=c.TypeError,Tu=c.document,Au=c.process,ju=pu.f,Iu=ju,Ru=!!(Tu&&Tu.createEvent&&c.dispatchEvent),Pu="unhandledrejection",Mu=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},_u=function(t,e){var n,r,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{u?(a||(2===e.rejection&&Fu(e),e.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===t.promise?f(new Ou("Promise-chain cycle")):(r=Mu(n))?p(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},Nu=function(t,e){t.notified||(t.notified=!0,Xa((function(){for(var n,r=t.reactions;n=r.get();)_u(n,t);t.notified=!1,e&&!t.rejection&&ku(t)})))},Cu=function(t,e,n){var r,o;Ru?((r=Tu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!yu&&(o=c["on"+t])?o(r):t===Pu&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ku=function(t){p(vu,c,(function(){var e,n=t.facade,r=t.value;if(Lu(t)&&(e=Qa((function(){Mo?Au.emit("unhandledRejection",r,n):Cu(Pu,n,r)})),t.rejection=Mo||Lu(t)?2:1,e.error))throw e.value}))},Lu=function(t){return 1!==t.rejection&&!t.parent},Fu=function(t){p(vu,c,(function(){var e=t.facade;Mo?Au.emit("rejectionHandled",e):Cu("rejectionhandled",e,t.value)}))},Du=function(t,e,n){return function(r){t(e,r,n)}},Bu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Nu(t,!0))},Uu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Ou("Promise can't be resolved itself");var r=Mu(e);r?Xa((function(){var n={done:!1};try{p(r,e,Du(Uu,n,t),Du(Bu,n,t))}catch(e){Bu(n,e,t)}})):(t.value=e,t.state=1,Nu(t,!1))}catch(e){Bu({done:!1},e,t)}}};if(gu&&(xu=(Su=function(t){!function(t,e){if(U(e,t))return t;throw new ha("Incorrect invocation")}(this,xu),et(t),p(ru,this);var e=wu(this);try{t(Du(Uu,e),Du(Bu,e))}catch(t){Bu(e,t)}}).prototype,(ru=function(t){bu(this,{type:hu,done:!1,notified:!1,parent:!1,reactions:new Ba,rejection:!1,state:0,value:void 0})}).prototype=le(xu,"then",(function(t,e){var n=wu(this),r=ju(Ni(this,Su));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Mo?Au.domain:void 0,0===n.state?n.reactions.add(r):Xa((function(){_u(r,n)})),r.promise})),ou=function(){var t=new ru,e=wu(t);this.promise=t,this.resolve=Du(Uu,e),this.reject=Du(Bu,e)},pu.f=ju=function(t){return t===Su||undefined===t?new ou(t):Iu(t)},L(tu)&&Eu!==Object.prototype)){iu=Eu.then,mu||le(Eu,"then",(function(t,e){var n=this;return new Su((function(t,e){p(iu,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Eu.constructor}catch(t){}Ln&&Ln(Eu,xu)}ze({global:!0,constructor:!0,wrap:!0,forced:gu},{Promise:Su}),va(Su,hu,!1),Qn(hu);var $u={},zu=bt("iterator"),qu=Array.prototype,Gu=function(t){return void 0!==t&&($u.Array===t||qu[zu]===t)},Vu=bt("iterator"),Wu=function(t){if(!R(t))return nt(t,Vu)||nt(t,"@@iterator")||$u[hn(t)]},Yu=TypeError,Zu=function(t,e){var n=arguments.length<2?Wu(t):e;if(et(n))return Ct(p(n,t));throw new Yu(Q(t)+" is not iterable")},Hu=function(t,e,n){var r,o;Ct(t);try{if(!(r=nt(t,"return"))){if("throw"===e)throw n;return n}r=p(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},Ju=TypeError,Ku=function(t,e){this.stopped=t,this.result=e},Xu=Ku.prototype,Qu=function(t,e,n){var r,o,i,a,u,c,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Ko(e,s),y=function(t){return r&&Hu(r,"normal",t),new Ku(!0,t)},m=function(t){return l?(Ct(t),h?g(t[0],t[1],y):g(t[0],t[1])):h?g(t,y):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Wu(t)))throw new Ju(Q(t)+" is not iterable");if(Gu(o)){for(i=0,a=Ee(t);a>i;i++)if((u=m(t[i]))&&U(Xu,u))return u;return new Ku(!1)}r=Zu(t,o)}for(c=d?t.next:r.next;!(f=p(c,r)).done;){try{u=m(f.value)}catch(t){Hu(r,"throw",t)}if("object"==typeof u&&u&&U(Xu,u))return u}return new Ku(!1)},tc=bt("iterator"),ec=!1;try{var nc=0,rc={next:function(){return{done:!!nc++}},return:function(){ec=!0}};rc[tc]=function(){return this},Array.from(rc,(function(){throw 2}))}catch(t){}var oc=function(t,e){try{if(!e&&!ec)return!1}catch(t){return!1}var n=!1;try{var r={};r[tc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ic=su.CONSTRUCTOR||!oc((function(t){tu.all(t).then(void 0,(function(){}))}));ze({target:"Promise",stat:!0,forced:ic},{all:function(t){var e=this,n=pu.f(e),r=n.resolve,o=n.reject,i=Qa((function(){var n=et(e.resolve),i=[],a=0,u=1;Qu(t,(function(t){var c=a++,f=!1;u++,p(n,e,t).then((function(t){f||(f=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var ac=su.CONSTRUCTOR,uc=tu&&tu.prototype;if(ze({target:"Promise",proto:!0,forced:ac,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(tu)){var cc=B("Promise").prototype.catch;uc.catch!==cc&&le(uc,"catch",cc,{unsafe:!0})}ze({target:"Promise",stat:!0,forced:ic},{race:function(t){var e=this,n=pu.f(e),r=n.reject,o=Qa((function(){var o=et(e.resolve);Qu(t,(function(t){p(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ze({target:"Promise",stat:!0,forced:su.CONSTRUCTOR},{reject:function(t){var e=pu.f(this);return p(e.reject,void 0,t),e.promise}});var fc=su.CONSTRUCTOR;B("Promise"),ze({target:"Promise",stat:!0,forced:fc},{resolve:function(t){return function(t,e){if(Ct(t),D(e)&&e.constructor===t)return e;var n=pu.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var sc=Wt.EXISTS,lc=Function.prototype,dc=S(lc.toString),pc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,vc=S(pc.exec);s&&!sc&&Kn(lc,"name",{configurable:!0,get:function(){try{return vc(pc,dc(this))[1]}catch(t){return""}}});var hc=S([].join),gc=I!==Object||!xo("join",",");ze({target:"Array",proto:!0,forced:gc},{join:function(t){return hc(_(this),void 0===t?",":t)}});var yc,mc=Wt.PROPER,wc=Oi.trim;ze({target:"String",proto:!0,forced:(yc="trim",f((function(){return!!wi[yc]()||"
"!=="
"[yc]()||mc&&wi[yc].name!==yc})))},{trim:function(){return wc(this)}});var bc,Ec=TypeError,Sc=function(t){if(Bn(t))throw new Ec("The method doesn't accept regular expressions");return t},xc=bt("match"),Oc=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[xc]=!1,"/./"[t](e)}catch(t){}}return!1},Tc=Pt.f,Ac=zr("".startsWith),jc=zr("".slice),Ic=Math.min,Rc=Oc("startsWith"),Pc=!(Rc||(bc=Tc(String.prototype,"startsWith"),!bc||bc.writable));ze({target:"String",proto:!0,forced:!Pc&&!Rc},{startsWith:function(t){var e=$n(M(this));Sc(t);var n=be(Ic(arguments.length>1?arguments[1]:void 0,e.length)),r=$n(t);return Ac?Ac(e,r,n):jc(e,n,n+r.length)===r}});var Mc=S("".indexOf);ze({target:"String",proto:!0,forced:!Oc("includes")},{includes:function(t){return!!~Mc($n(M(this)),$n(Sc(t)),arguments.length>1?arguments[1]:void 0)}});var _c=ti.find,Nc="find",Cc=!0;Nc in[]&&Array(1)[Nc]((function(){Cc=!1})),ze({target:"Array",proto:!0,forced:Cc},{find:function(t){return _c(this,t,arguments.length>1?arguments[1]:void 0)}}),on(Nc);var kc=ti.forEach,Lc=xo("forEach")?[].forEach:function(t){return kc(this,t,arguments.length>1?arguments[1]:void 0)};ze({target:"Array",proto:!0,forced:[].forEach!==Lc},{forEach:Lc});var Fc={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},Dc=jt("span").classList,Bc=Dc&&Dc.constructor&&Dc.constructor.prototype,Uc=Bc===Object.prototype?void 0:Bc,$c=function(t){if(t&&t.forEach!==Lc)try{zt(t,"forEach",Lc)}catch(e){t.forEach=Lc}};for(var zc in Fc)Fc[zc]&&$c(c[zc]&&c[zc].prototype);$c(Uc);var qc,Gc,Vc,Wc=bt("iterator"),Yc=!1;[].keys&&("next"in(Vc=[].keys())?(Gc=Go(Go(Vc)))!==Object.prototype&&(qc=Gc):Yc=!0);var Zc=!D(qc)||f((function(){var t={};return qc[Wc].call(t)!==t}));Zc&&(qc={}),L(qc[Wc])||le(qc,Wc,(function(){return this}));var Hc={IteratorPrototype:qc,BUGGY_SAFARI_ITERATORS:Yc},Jc=Hc.IteratorPrototype,Kc=function(){return this},Xc=Wt.PROPER,Qc=Wt.CONFIGURABLE,tf=Hc.IteratorPrototype,ef=Hc.BUGGY_SAFARI_ITERATORS,nf=bt("iterator"),rf="keys",of="values",af="entries",uf=function(){return this},cf=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=tn(Jc,{next:m(+!r,n)}),va(t,o,!1),$u[o]=Kc}(n,e,r);var u,c,f,s=function(t){if(t===o&&g)return g;if(!ef&&t&&t in v)return v[t];switch(t){case rf:case of:case af:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,h=v[nf]||v["@@iterator"]||o&&v[o],g=!ef&&h||s(o),y="Array"===e&&v.entries||h;if(y&&(u=Go(y.call(new t)))!==Object.prototype&&u.next&&(Go(u)!==tf&&(Ln?Ln(u,tf):L(u[nf])||le(u,nf,uf)),va(u,l,!0)),Xc&&o===of&&h&&h.name!==of&&(Qc?zt(v,"name",of):(d=!0,g=function(){return p(h,this)})),o)if(c={values:s(of),keys:i?g:s(rf),entries:s(af)},a)for(f in c)(ef||d||!(f in v))&&le(v,f,c[f]);else ze({target:e,proto:!0,forced:ef||d},c);return v[nf]!==g&&le(v,nf,g,{name:o}),$u[e]=g,c},ff=function(t,e){return{value:t,done:e}},sf=$t.f,lf="Array Iterator",df=fe.set,pf=fe.getterFor(lf),vf=cf(Array,"Array",(function(t,e){df(this,{type:lf,target:_(t),index:0,kind:e})}),(function(){var t=pf(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,ff(void 0,!0);switch(t.kind){case"keys":return ff(n,!1);case"values":return ff(e[n],!1)}return ff([n,e[n]],!1)}),"values"),hf=$u.Arguments=$u.Array;if(on("keys"),on("values"),on("entries"),s&&"values"!==hf.name)try{sf(hf,"name",{value:"values"})}catch(t){}var gf=Jr.charAt,yf="String Iterator",mf=fe.set,wf=fe.getterFor(yf);cf(String,"String",(function(t){mf(this,{type:yf,string:$n(t),index:0})}),(function(){var t,e=wf(this),n=e.string,r=e.index;return r>=n.length?ff(void 0,!0):(t=gf(n,r),e.index+=t.length,ff(t,!1))}));var bf=bt("iterator"),Ef=vf.values,Sf=function(t,e){if(t){if(t[bf]!==Ef)try{zt(t,bf,Ef)}catch(e){t[bf]=Ef}if(va(t,e,!0),Fc[e])for(var n in vf)if(t[n]!==vf[n])try{zt(t,n,vf[n])}catch(e){t[n]=vf[n]}}};for(var xf in Fc)Sf(c[xf]&&c[xf].prototype,xf);Sf(Uc,"DOMTokenList");var Of=f((function(){Go(1)}));ze({target:"Object",stat:!0,forced:Of,sham:!Uo},{getPrototypeOf:function(t){return Go(st(t))}});var Tf=TypeError,Af=Object.getOwnPropertyDescriptor,jf=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(an(t)&&!Af(t,"length").writable)throw new Tf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},If=TypeError,Rf=function(t,e){if(!delete t[e])throw new If("Cannot delete property "+Q(e)+" of "+Q(t))},Pf=Rn("splice"),Mf=Math.max,_f=Math.min;ze({target:"Array",proto:!0,forced:!Pf},{splice:function(t,e){var n,r,o,i,a,u,c=st(this),f=Ee(c),s=me(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=_f(Mf(he(e),0),f-s)),cn(f+n-r),o=jn(c,r),i=0;i<r;i++)(a=s+i)in c&&fn(o,i,c[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)u=i+n,(a=i+r)in c?c[u]=c[a]:Rf(c,u);for(i=f;i>f-r+n;i--)Rf(c,i-1)}else if(n>r)for(i=f-r;i>s;i--)u=i+n-1,(a=i+r-1)in c?c[u]=c[a]:Rf(c,u);for(i=0;i<n;i++)c[i+s]=arguments[i+2];return jf(c,f-r+n),o}});var Nf=function(t,e,n,r){try{return r?e(Ct(n)[0],n[1]):e(n)}catch(e){Hu(t,"throw",e)}},Cf=Array,kf=!oc((function(t){Array.from(t)}));ze({target:"Array",stat:!0,forced:kf},{from:function(t){var e=st(t),n=On(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ko(o,r>2?arguments[2]:void 0));var a,u,c,f,s,l,d=Wu(e),v=0;if(!d||this===Cf&&Gu(d))for(a=Ee(e),u=n?new this(a):Cf(a);a>v;v++)l=i?o(e[v],v):e[v],fn(u,v,l);else for(s=(f=Zu(e,d)).next,u=n?new this:[];!(c=p(s,f)).done;v++)l=i?Nf(f,o,[c.value,v],!0):c.value,fn(u,v,l);return u.length=v,u}});var Lf=function(){return Lf=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},Lf.apply(this,arguments)};function Ff(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(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(a,u)}c((r=r.apply(t,e||[])).next())}))}function Df(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Bf(t,e){for(var n=t.length,r=e.length,o=ts(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function Uf(t,e){return Bf(t,e)}function $f(t,e){for(var n=t.length,r=e.length,o=ts(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],f=c[0],s=c[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function zf(t,e){return $f(t,e)}function qf(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substring(1).match(e);return null!==n?decodeURIComponent(n[2]):""}function Gf(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""}function Vf(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n}function Wf(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""}function Yf(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function Zf(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substring(1):e}function Hf(t){return Zf(t)}function Jf(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substring(1):e}function Kf(t){return Jf(t)}function Xf(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)}function Qf(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function ts(t){if("object"!==a(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(a(t))}))?Lf({},t):JSON.parse(JSON.stringify(t))}function es(t){return ts(t)}function ns(t){try{if("object"===a(JSON.parse(t)))return!0}catch(t){}return!1}function rs(t){return ns(t)}function os(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function is(t){return void 0===t&&(t=5),os(t)}function as(t){void 0===t&&(t=3);var e=[As(),is(t||3)];return e[0]+e[1]}function us(t){return void 0===t&&(t=3),as(t)}function cs(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")}function fs(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function ss(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ls(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function ds(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function ps(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function vs(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],f=function(){c=!1===n.leading?0:As(),i=null,u=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=As();c||!1!==n.leading||(c=l);var d=e-(l-c);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),c=l,u=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),u}}function hs(t,e,n){var r=null,o=null,i=null,a=null,u=null,c=function c(){var f=As()-i;f<e&&f>=0?o=setTimeout(c,e-f):(o=null,n||(u=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=As();var l=n&&!o;return o||(o=setTimeout(c,e)),l&&(u=t.apply(r,a),r=a=null),u}}var gs={type:"d"};function ys(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=gs);var r=(n=Object.assign(gs,n)).type;ms(t)||(t=new Date(t).getTime()),ms(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),f=decodeURIComponent("%20%E5%A4%A9%20"),s=decodeURIComponent("%20%E6%97%B6%20"),l=decodeURIComponent("%20%E5%88%86%20"),d=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+f+Math.floor(o/1e3/60/60%24)+s+Math.floor(o/1e3/60%60)+l+(c=Math.floor(o/1e3%60))+d;break;default:i=c}return i}function ms(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function ws(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function bs(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function Es(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Ss(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function xs(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Os(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=function(){},i=new Promise((function(t,e){var r;n=(r=[t,e])[0],o=r[1]})),a=function(){n("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=t,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),f||!c)return setTimeout((function(){l(u,a,0)}),1),i;function s(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(t,e,n){if(t){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t&&(t=null),void e();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){var i=t;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}}return c?(u.onload=s,u.onerror=function(){s()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&s()},i}function Ts(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,f=document.createElement("script");f||Promise.reject("Not support create script element");var s=document.getElementsByTagName("script")[0];return f.type="text/javascript",c&&(f.defer=!0),i&&(f.id=i),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,ws(a),ws(n,"loaded"))}:f.onload=function(){ws(a),ws(n,"loaded")},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var o;n=(o=[t,e])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function As(){return Date.now?Date.now():(new Date).getTime()}function js(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Is(t)&&Is(t)===e||(r=r||"."+u,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function Is(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function Rs(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].trim();if(r.startsWith("".concat(t,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function Ps(t){var e=[],n=window.PerformanceObserver;return!!n&&(Js(n.supportedEntryTypes)&&(e=n.supportedEntryTypes),e.includes(t))}function Ms(){return Ff(this,void 0,void 0,(function(){return Df(this,(function(t){return Ps("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-contentful-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function _s(){return Ff(this,void 0,void 0,(function(){return Df(this,(function(t){return Ps("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function Ns(){return Ff(this,void 0,void 0,(function(){return Df(this,(function(t){return Ps("largest-contentful-paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"largest-contentful-paint"===t.entryType}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))}function Cs(){return Ff(this,void 0,void 0,(function(){return Df(this,(function(t){return Ps("first-input")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-input"===t.entryType}));if(r){e.disconnect();var o=r.processingStart;t(o?Math.round(r.processingStart-r.startTime):0)}}));e.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))}function ks(){return Ff(this,void 0,void 0,(function(){return Df(this,(function(t){return Ps("layout-shift")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(t,e){var n=0;return ms(e.value)&&(n=e.value),t+n}),0);e.disconnect(),t(r)}));e.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function Ls(){return Ff(this,void 0,void 0,(function(){var t,e;return Df(this,(function(n){return Ps("navigation")&&window.performance&&window.performance.getEntriesByType?(t=performance.getEntriesByType("navigation")[0],0,t?(e=t.responseStart-t.requestStart,[2,Math.round(e)]):[2,0]):[2,0]}))}))}function Fs(t){return void 0===t&&(t=!1),Ff(this,void 0,void 0,(function(){function e(){var e={source:C,os:n(),osVersion:r(),deviceType:o(),network:i(),screenDirection:a(),unloadTime:v-h,redirectTime:g-y,dnsTime:m-w,tcpTime:b-E,sslTime:u(b,S),responseTime:x-O,downloadTime:T-x,firstPaintTime:F,firstContentfulPaintTime:D,domReadyTime:A-k,onloadTime:j-k,whiteTime:x-k,renderTime:I-k,decodedBodySize:M,encodedBodySize:_};Object.keys(e).forEach((function(t){ms(e[t])&&(e[t]<0?e[t]=0:e[t]=Math.round(e[t]))})),ms(e.whiteTime)&&e.whiteTime>e.onloadTime&&(e.whiteTime=0);var c={};t||Object.keys(e).forEach((function(t){c[Kf(t)]=e[t]})),Object.keys(c).length?f(c):f(e)}function n(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function r(){var t="",e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return t;var i=o[1];return i?(n&&(t=(i.match(/\d+\.\d+/g)||[])[0]),r&&(t=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t||(t=""),t):t}function o(){var t,e=navigator.userAgent.toLowerCase(),n=e.match(/(ipad)/i)&&"ipad",r=e.match(/iphone os/i)&&"iphone os",o=e.match(/midp/i)&&"midp",i=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=e.match(/ucweb/i)&&"ucweb",u=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",f=e.match(/windows mobile/i)&&"windows mobile";return(t=n||r||o||i||a||u||c||f?r||o||i||a||u||c||f?"phone":n?"ipad":void 0:"pc")||(t=""),t}function i(){var t="",e=window.navigator;if(e.connection&&e.connection.effectiveType)switch(e.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t||(t=""),t}function a(){var t="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function u(t,e){var n=0;return e&&(n=t-e),n}var c,f,s,l,d,p,v,h,g,y,m,w,b,E,S,x,O,T,A,j,I,R,P,M,_,N,C,k,L,F,D;return Df(this,(function(t){switch(t.label){case 0:if(!Ps("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(c=window.performance)||"function"!=typeof c.getEntries||"function"!=typeof c.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(s=new Promise((function(t){f=[t][0]})),l=null,Js(d=c.getEntriesByType("navigation"))&&(l=d[0]),p=new Array(19).fill(0),v=p[0],h=p[1],g=p[2],y=p[3],m=p[4],w=p[5],b=p[6],E=p[7],S=p[8],x=p[9],O=p[10],T=p[11],A=p[12],j=p[13],I=p[14],R=p[15],P=p[16],M=p[17],_=p[18],N=c.timing,C="",l)C="PerformanceNavigationTiming",M=l.decodedBodySize,_=l.encodedBodySize,v=l.unloadEventEnd,h=l.unloadEventStart,g=l.redirectEnd,y=l.redirectStart,m=l.domainLookupEnd,w=l.domainLookupStart,b=l.connectEnd,E=l.connectStart,S=l.secureConnectionStart,x=l.responseStart,O=l.requestStart,T=l.responseEnd,A=l.domContentLoadedEventStart,j=l.loadEventStart,I=l.loadEventEnd,R=l.startTime,P=l.fetchStart;else{if(!N)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];C="PerformanceTiming",v=N.unloadEventEnd,h=N.unloadEventStart,g=N.redirectEnd,y=N.redirectStart,m=N.domainLookupEnd,w=N.domainLookupStart,b=N.connectEnd,E=N.connectStart,S=N.secureConnectionStart,x=N.responseStart,O=N.requestStart,T=N.responseEnd,A=N.domContentLoadedEventStart,j=N.loadEventStart,I=N.loadEventEnd,R=N.navigationStart,P=N.fetchStart}if(k=0,ms(R))k=R;else{if(!ms(P))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];k=P}return[4,Promise.all([_s(),Ms()])];case 1:return L=t.sent(),F=L[0],D=L[1],ms(I)&&I>0?e():window.addEventListener("load",(function(){window.setTimeout((function(){e()}),0)})),[2,s]}}))}))}function Ds(t){return Math.random()<t}function Bs(){var t=Us();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)}function Us(){if(window.MAZEY_BROWSER_INFO&&"object"===a(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&Js(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=Lf(Lf({},t),{system:o,appleType:i});var u="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?u="2000":n(/windows nt 5.1|windows xp/g)?u="xp":n(/windows nt 5.2|windows 2003/g)?u="2003":n(/windows nt 6.0|windows vista/g)?u="vista":n(/windows nt 6.1|windows 7/g)?u="7":n(/windows nt 6.2|windows 8/g)?u="8":n(/windows nt 6.3|windows 8.1/g)?u="8.1":n(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===o?u=r(/os x [\d._]+/g):"android"===o?u=r(/android [\d._]+/g):"ios"===o&&(u=r(/os [\d._]+/g)),t=Lf(Lf({},t),{systemVs:u});var c="";"windows"===o||"macos"===o||"linux"===o?c="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(c="mobile"),t=Lf(Lf({},t),{platform:c});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=Lf(Lf({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=Lf(Lf({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=Lf(Lf({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=Lf(Lf({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function $s(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function zs(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))}function qs(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))}function Gs(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=t.replace(i,"**").length,c=0;c<u&&(null!=(a=t.charAt(c).toString()).match(i)?r+=2:r++,!(r>e));c++)o+=a;return n&&u>e&&(o+="..."),o}return""}function Vs(t,e,n){return void 0===n&&(n=!1),Gs(t,e,n)}function Ws(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r}function Ys(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0}function Zs(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,u=n.logFn,c=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r)return!1;var f=t,l=t;if("string"==typeof t&&t.length>=2){var d=t.length;f=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(f," - begin ---")),i&&(l=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?console[e].apply(console,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([l],n)):console[e].apply(console,n),"log"===e&&u(),"error"===e&&c(),o&&console.log("--- ".concat(f," - end ---"))}})),f}function Hs(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i}function Js(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Ks(t,e,n){var r=!1;return"object"!==a(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r}function Xs(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"}function Qs(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}function tl(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n}function el(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o}function nl(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==a(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}function rl(t,e){var n=nl();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)}function ol(t){var e=nl()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})}function il(t,e){var n=nl(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]}function al(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)}function ul(t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/.test(t)}function cl(t){return/^1\d{10}$/.test(t)}function fl(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}function sl(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e}function ll(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e}function dl(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Js(r)&&r[1]&&t.width(r[1]),o&&Js(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Js(r)&&r[1]&&(e.style.width=r[1]),o&&Js(o)&&o[1]&&(e.style.height=o[1])}}})),!0)}function pl(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),"".concat(t,"{").concat(n,"}")}function vl(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))}function hl(){return"v3"}function gl(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,u=void 0===a?10:a,c=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return Ff(r,void 0,void 0,(function(){var r;return Df(this,(function(o){switch(o.label){case 0:return[4,t.apply(c,f)];case 1:return r=o.sent(),n(r)||++s>=u?[2]:(e(),[2])}}))}))}),i)}()}function yl(t,e){return window[t]?Promise.resolve("defined"):Ts(e)}function ml(t,e){void 0===e&&(e=""),e||(e=".js");for(var n=new RegExp("[?&]".concat(t,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(e,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(e)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""}function wl(t){return Ff(this,void 0,void 0,(function(){return Df(this,(function(e){return[2,new Promise((function(e){setTimeout((function(){e(t)}),t)}))]}))}))}function bl(t){return Ff(this,void 0,void 0,(function(){return Df(this,(function(e){return[2,wl(t)]}))}))}export{ds as addClass,rl as addEvent,Ys as addStyle,zf as calLongestCommonSubsequence,Uf as calLongestCommonSubstring,Kf as camelCase2Underscore,Hf as camelCaseToKebabCase,ss as cancelBubble,$s as clearHtml,sl as convert10To26,Zf as convertCamelToKebab,Jf as convertCamelToUnder,Vs as cutCHSString,hs as debounce,ts as deepCopy,es as deepCopyObject,Rs as delCookie,ws as doFn,fs as floatFixed,cs as floatToPercent,el as formatDate,Zs as genCustomConsole,tl as genHashCode,os as genRndNumString,pl as genStyleString,as as genUniqueNumString,is as generateRndNum,us as generateUniqueNum,Us as getBrowserInfo,ks as getCLS,Is as getCookie,hl as getCurrentVersion,nl as getDefineListeners,Yf as getDomain,Ms as getFCP,Cs as getFID,_s as getFP,Xs as getFileSize,ys as getFriendlyInterval,Wf as getHashQueryParam,Ns as getLCP,xs as getLocalStorage,Fs as getPerformance,qf as getQueryParam,ml as getScriptQueryParam,Es as getSessionStorage,Ls as getTTFB,ll as getUrlFileType,Gf as getUrlParam,ls as hasClass,Ds as inRate,ol as invokeEvent,ns as isJSONString,rs as isJsonString,Js as isNonEmptyArray,ms as isNumber,Bs as isSafePWAEnv,Qs as isSupportWebp,Ks as isValidData,fl as isValidEmail,ul as isValidHttpUrl,cl as isValidPhoneNumber,al as isValidUrl,Os as loadCSS,vl as loadImage,Ts as loadScript,yl as loadScriptIfUndefined,$f as longestComSubsequence,Bf as longestComSubstring,As as mNow,Xf as mTrim,Qf as newLine,ps as removeClass,il as removeEvent,gl as repeatUntilConditionMet,zs as sanitizeInput,js as setCookie,dl as setImgWidHeiBySrc,Ss as setLocalStorage,bs as setSessionStorage,bl as sleep,vs as throttle,Gs as truncateZHString,qs as unsanitize,Vf as updateQueryParam,wl as waitTime,Ws as windowLoaded,Hs as zAxiosIsValidRes};
|
|
6
|
+
var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function r(e,n){for(var t=e.length,r=n.length,o=w(new Array(t).fill(new Array(r).fill(0))),i=0;i<t;++i)for(var a=0;a<r;++a)if(e[i]===n[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)}function o(e,n){return r(e,n)}function i(e,n){for(var t=e.length,r=n.length,o=w(new Array(t).fill(new Array(r).fill(0))),i=0;i<t;++i)for(var a=0;a<r;++a)if(e[i]===n[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],s=u[0],d=u[1];a>0&&(s=o[i][a-1]),i>0&&(d=o[i-1][a]),o[i][a]=Math.max(s,d)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)}function a(e,n){return i(e,n)}function c(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""}function u(e,n){var t={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,r){if(void 0!==t[n]){var o=t[n];t[n]=[].concat(o,r)}else t[n]=r;return""})),t[n]||""}function s(e,n,t){var r=new RegExp("([?&])"+n+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+n+"="+t+"$2"):e+o+n+"="+t}function d(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""}function f(e,n){void 0===n&&(n=["hostname"]);var t=document.createElement("a");return t.href=e,n.reduce((function(e,n){return e+=t[n]}),"")}function l(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function p(e){return l(e)}function g(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function v(e){return g(e)}function m(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)}function h(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function w(n){if("object"!=typeof n)return n;var t=["string","number","boolean","undefined"];return Object.values(n).every((function(e){return t.includes(typeof e)}))?e({},n):JSON.parse(JSON.stringify(n))}function y(e){return w(e)}function b(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function E(e){return b(e)}function S(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function A(e){return void 0===e&&(e=5),S(e)}function T(e){void 0===e&&(e=3);var n=[$(),A(e||3)];return n[0]+n[1]}function x(e){return void 0===e&&(e=3),T(e)}function M(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")}function O(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)}function _(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function k(e,n){for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1}function N(e,n){var t,r=e.className,o="";""!==r&&(o=" "),t=r+o+n,e.className=t}function P(e,n){var t;t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t}function R(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===t.leading?0:$(),i=null,c=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=$();u||!1!==t.leading||(u=f);var l=n-(f-u);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),c}}function C(e,n,t){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=$()-i;s<n&&s>=0?o=setTimeout(u,n-s):(o=null,t||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];r=this,a=s,i=$();var f=t&&!o;return o||(o=setTimeout(u,n)),f&&(c=e.apply(r,a),r=a=null),c}}"function"==typeof SuppressedError&&SuppressedError;var j={type:"d"};function B(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=j);var r=(t=Object.assign(j,t)).type;D(e)||(e=new Date(e).getTime()),D(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(u=Math.floor(o/1e3%60))+l;break;default:i=u}return i}function D(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function F(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function I(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))}function L(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function q(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))}function z(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function Z(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},c=document.createElement("link");c||o(new Error("Not support create link element"));var u="onload"in c,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),s||!u)return setTimeout((function(){f(c,a,0)}),1),i;function d(){c&&(c.onload=c.onerror=c.onreadystatechange=null),c=null,a()}function f(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():f(e,n,t)}),20)}}return u?(c.onload=d,c.onerror=function(){d()}):c.onreadystatechange=function(){c&&/loaded|complete/.test(c.readyState)&&d()},i}function U(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,c=o.timeout,u=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return s.type="text/javascript",u&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,F(a),F(t,"loaded"))}:s.onload=function(){F(a),F(t,"loaded")},s.src=e,d&&d.parentNode.insertBefore(s,d),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],c&&setTimeout(r.bind(null,"timeout"),c)}))}function $(){return Date.now?Date.now():(new Date).getTime()}function W(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==V(e)&&V(e)===n||(r=r||"."+c,document.cookie=e+"="+n+i+"; path=/; domain="+r))}function V(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function J(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function Y(e){var n=[],t=window.PerformanceObserver;return!!t&&(ge(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function H(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Y("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function G(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Y("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function K(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Y("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))}function Q(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Y("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))}function X(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Y("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return D(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function ee(){return n(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){return Y("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))}function ne(e){return void 0===e&&(e=!1),n(this,void 0,void 0,(function(){function n(){var n={source:F,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:m-h,redirectTime:w-y,dnsTime:b-E,tcpTime:S-A,sslTime:u(S,T),responseTime:x-M,downloadTime:O-x,firstPaintTime:q,firstContentfulPaintTime:z,domReadyTime:_-I,onloadTime:k-I,whiteTime:x-I,renderTime:N-I,decodedBodySize:C,encodedBodySize:j};Object.keys(n).forEach((function(e){D(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),D(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var t={};e||Object.keys(n).forEach((function(e){t[v(e)]=n[e]})),Object.keys(t).length?d(t):d(n)}function r(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",c=n.match(/android/i)&&"android",u=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||c||u||s?r||o||i||a||c||u||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function u(e,n){var t=0;return n&&(t=e-n),t}var s,d,f,l,p,g,m,h,w,y,b,E,S,A,T,x,M,O,_,k,N,P,R,C,j,B,F,I,L,q,z;return t(this,(function(e){switch(e.label){case 0:if(!Y("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(s=window.performance)||"function"!=typeof s.getEntries||"function"!=typeof s.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(f=new Promise((function(e){d=[e][0]})),l=null,ge(p=s.getEntriesByType("navigation"))&&(l=p[0]),g=new Array(19).fill(0),m=g[0],h=g[1],w=g[2],y=g[3],b=g[4],E=g[5],S=g[6],A=g[7],T=g[8],x=g[9],M=g[10],O=g[11],_=g[12],k=g[13],N=g[14],P=g[15],R=g[16],C=g[17],j=g[18],B=s.timing,F="",l)F="PerformanceNavigationTiming",C=l.decodedBodySize,j=l.encodedBodySize,m=l.unloadEventEnd,h=l.unloadEventStart,w=l.redirectEnd,y=l.redirectStart,b=l.domainLookupEnd,E=l.domainLookupStart,S=l.connectEnd,A=l.connectStart,T=l.secureConnectionStart,x=l.responseStart,M=l.requestStart,O=l.responseEnd,_=l.domContentLoadedEventStart,k=l.loadEventStart,N=l.loadEventEnd,P=l.startTime,R=l.fetchStart;else{if(!B)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];F="PerformanceTiming",m=B.unloadEventEnd,h=B.unloadEventStart,w=B.redirectEnd,y=B.redirectStart,b=B.domainLookupEnd,E=B.domainLookupStart,S=B.connectEnd,A=B.connectStart,T=B.secureConnectionStart,x=B.responseStart,M=B.requestStart,O=B.responseEnd,_=B.domContentLoadedEventStart,k=B.loadEventStart,N=B.loadEventEnd,P=B.navigationStart,R=B.fetchStart}if(I=0,D(P))I=P;else{if(!D(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];I=R}return[4,Promise.all([G(),H()])];case 1:return L=e.sent(),q=L[0],z=L[1],D(N)&&N>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,f]}}))}))}function te(e){return Math.random()<e}function re(){var e=oe();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)}function oe(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var n={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return n;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&ge(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),n=e(e({},n),{system:i,appleType:a});var c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),n=e(e({},n),{systemVs:c});var u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),n=e(e({},n),{platform:u});var s="",d="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",d="firefox"):r(/presto/g)?(s="presto",d="opera"):r(/trident|compatible|msie/g)&&(s="trident",d="iexplore"),n=e(e({},n),{engine:s,supporter:d});var f="";"webkit"===s?f=o(/applewebkit\/[\d._]+/g):"gecko"===s?f=o(/gecko\/[\d._]+/g):"presto"===s?f=o(/presto\/[\d._]+/g):"trident"===s&&(f=o(/trident\/[\d._]+/g)),n=e(e({},n),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),n=e(e({},n),{supporterVs:l});var p="",g="";return r(/micromessenger/g)?(p="wechat",g=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",g=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",g=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",g=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",g=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),n=e(e({},n),{shell:p,shellVs:g}),window.MAZEY_BROWSER_INFO=n,n}catch(e){return console.warn("MazeyCon:",e),n}}function ie(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function ae(e){var n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))}function ce(e){var n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,(function(e){return n[e]}))}function ue(e,n,t){if(void 0===t&&(t=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>n));u++)o+=a;return t&&c>n&&(o+="..."),o}return""}function se(e,n,t){return void 0===t&&(t=!1),ue(e,n,t)}function de(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r}function fe(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0}function le(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),r=t.isClosed,o=t.showWrap,i=t.showDate,a=t.locales,c=t.logFn,u=t.errorFn,s=Object.create(null),d=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){s[n]=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(r)return!1;var s=e,f=e;if("string"==typeof e&&e.length>=2){var l=e.length;s=":"===e[l-1]?e.substring(0,l-1):e}o&&console.log("--- ".concat(s," - begin ---")),i&&(f=e?"".concat(d()," ").concat(e):"".concat(d())),e||i?console[n].apply(console,function(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}([f],t,!1)):console[n].apply(console,t),"log"===n&&c(),"error"===n&&u(),o&&console.log("--- ".concat(s," - end ---"))}})),s}function pe(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i}function ge(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function ve(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r}function me(e){var n=function(e){return String(Math.ceil(e))};if(!e)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"}function he(){return new Promise((function(e){var n=new Image;n.onload=function(){e(n.width>0&&n.height>0)},n.onerror=function(){e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}function we(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function ye(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),hh:t.getHours()<10?"0"+t.getHours():t.getHours(),mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds()},o=n||"yyyy-MM-dd";return Object.keys(r).forEach((function(e){var n=r[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),o=o.replace(e,String(n))})),o}function be(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function Ee(e,n){var t=be();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)}function Se(e){var n=be()[e];if(n instanceof Array)for(var t=0,r=n.length;t<r;t++)"function"==typeof n[t]&&n[t]({type:e})}function Ae(e,n){var t=be(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]}function Te(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)}function xe(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)}function Me(e){return/^1\d{10}$/.test(e)}function Oe(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function _e(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n}function ke(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n}function Ne(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&ge(r)&&r[1]&&e.width(r[1]),o&&ge(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&ge(r)&&r[1]&&(n.style.width=r[1]),o&&ge(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function Pe(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")}function Re(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))}function Ce(){return"v3"}function je(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,c=void 0===a?1e3:a,u=r.times,s=void 0===u?10:u,d=r.context,f=r.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function r(){setTimeout((function(){return n(i,void 0,void 0,(function(){var n;return t(this,(function(t){switch(t.label){case 0:return[4,e.apply(d,f)];case 1:return n=t.sent(),o(n)||++l>=s?[2]:(r(),[2])}}))}))}),c)}()}function Be(e,n){return window[e]?Promise.resolve("defined"):U(n)}function De(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""}function Fe(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}function Ie(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,Fe(e)]}))}))}export{N as addClass,Ee as addEvent,fe as addStyle,a as calLongestCommonSubsequence,o as calLongestCommonSubstring,v as camelCase2Underscore,p as camelCaseToKebabCase,_ as cancelBubble,ie as clearHtml,_e as convert10To26,l as convertCamelToKebab,g as convertCamelToUnder,se as cutCHSString,C as debounce,w as deepCopy,y as deepCopyObject,J as delCookie,F as doFn,O as floatFixed,M as floatToPercent,ye as formatDate,le as genCustomConsole,we as genHashCode,S as genRndNumString,Pe as genStyleString,T as genUniqueNumString,A as generateRndNum,x as generateUniqueNum,oe as getBrowserInfo,X as getCLS,V as getCookie,Ce as getCurrentVersion,be as getDefineListeners,f as getDomain,H as getFCP,Q as getFID,G as getFP,me as getFileSize,B as getFriendlyInterval,d as getHashQueryParam,K as getLCP,z as getLocalStorage,ne as getPerformance,c as getQueryParam,De as getScriptQueryParam,L as getSessionStorage,ee as getTTFB,ke as getUrlFileType,u as getUrlParam,k as hasClass,te as inRate,Se as invokeEvent,b as isJSONString,E as isJsonString,ge as isNonEmptyArray,D as isNumber,re as isSafePWAEnv,he as isSupportWebp,ve as isValidData,Oe as isValidEmail,xe as isValidHttpUrl,Me as isValidPhoneNumber,Te as isValidUrl,Z as loadCSS,Re as loadImage,U as loadScript,Be as loadScriptIfUndefined,i as longestComSubsequence,r as longestComSubstring,$ as mNow,m as mTrim,h as newLine,P as removeClass,Ae as removeEvent,je as repeatUntilConditionMet,ae as sanitizeInput,W as setCookie,Ne as setImgWidHeiBySrc,q as setLocalStorage,I as setSessionStorage,Ie as sleep,R as throttle,ue as truncateZHString,ce as unsanitize,s as updateQueryParam,Fe as waitTime,de as windowLoaded,pe as zAxiosIsValidRes};
|
package/lib/mazey.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Mazey
|
|
2
|
+
* Mazey v4.0.0 https://github.com/mazeyqian/mazey
|
|
3
3
|
* (c) 2018-2023 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var mazey=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i,a=n((function(t){function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),u=(r=a)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,c=function(t){return t&&t.Math===Math&&t},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof e&&e)||c("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,v=d?p.bind(p):function(){return p.apply(p,arguments)},g={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,m=h&&!g.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:g,y={f:m},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=Function.prototype,S=b.call,E=d&&b.bind.bind(S,S),x=d?E:function(t){return function(){return S.apply(t,arguments)}},O=x({}.toString),T=x("".slice),A=function(t){return T(O(t),8,-1)},j=Object,I=x("".split),P=s((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"===A(t)?I(t,""):j(t)}:j,R=function(t){return null==t},C=TypeError,M=function(t){if(R(t))throw new C("Can't call method on "+t);return t},N=function(t){return P(M(t))},_="object"==typeof document&&document.all,k={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},L=k.all,F=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===L}:function(t){return"function"==typeof t},D=k.all,U=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:F(t)||t===D}:function(t){return"object"==typeof t?null!==t:F(t)},B=function(t,e){return arguments.length<2?(n=f[t],F(n)?n:void 0):f[t]&&f[t][e];var n},$=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=f.process,q=f.Deno,W=V&&V.versions||q&&q.version,G=W&&W.v8;G&&(i=(o=G.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&z&&(!(o=z.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=z.match(/Chrome\/(\d+)/))&&(i=+o[1]);var H=i,Y=f.String,Z=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!Y(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&H&&H<41})),J=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,Q=J?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return F(e)&&$(e.prototype,K(t))},X=String,tt=function(t){try{return X(t)}catch(t){return"Object"}},et=TypeError,nt=function(t){if(F(t))return t;throw new et(tt(t)+" is not a function")},rt=function(t,e){var n=t[e];return R(n)?void 0:nt(n)},ot=TypeError,it=Object.defineProperty,at=function(t,e){try{it(f,t,{value:e,configurable:!0,writable:!0})}catch(n){f[t]=e}return e},ut="__core-js_shared__",ct=f[ut]||at(ut,{}),ft=n((function(t){(t.exports=function(t,e){return ct[t]||(ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=Object,lt=function(t){return st(M(t))},dt=x({}.hasOwnProperty),pt=Object.hasOwn||function(t,e){return dt(lt(t),e)},vt=0,gt=Math.random(),ht=x(1..toString),mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ht(++vt+gt,36)},yt=f.Symbol,wt=ft("wks"),bt=J?yt.for||yt:yt&&yt.withoutSetter||mt,St=function(t){return pt(wt,t)||(wt[t]=Z&&pt(yt,t)?yt[t]:bt("Symbol."+t)),wt[t]},Et=TypeError,xt=St("toPrimitive"),Ot=function(t,e){if(!U(t)||Q(t))return t;var n,r=rt(t,xt);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!U(n)||Q(n))return n;throw new Et("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!U(r=v(n,t)))return r;if(F(n=t.valueOf)&&!U(r=v(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!U(r=v(n,t)))return r;throw new ot("Can't convert object to primitive value")}(t,e)},Tt=function(t){var e=Ot(t,"string");return Q(e)?e:e+""},At=f.document,jt=U(At)&&U(At.createElement),It=function(t){return jt?At.createElement(t):{}},Pt=!l&&!s((function(){return 7!==Object.defineProperty(It("div"),"a",{get:function(){return 7}}).a})),Rt=Object.getOwnPropertyDescriptor,Ct={f:l?Rt:function(t,e){if(t=N(t),e=Tt(e),Pt)try{return Rt(t,e)}catch(t){}if(pt(t,e))return w(!v(y.f,t,e),t[e])}},Mt=l&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Nt=String,_t=TypeError,kt=function(t){if(U(t))return t;throw new _t(Nt(t)+" is not an object")},Lt=TypeError,Ft=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ut="enumerable",Bt="configurable",$t="writable",zt={f:l?Mt?function(t,e,n){if(kt(t),e=Tt(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:Bt in n?n[Bt]:r[Bt],enumerable:Ut in n?n[Ut]:r[Ut],writable:!1})}return Ft(t,e,n)}:Ft:function(t,e,n){if(kt(t),e=Tt(e),kt(n),Pt)try{return Ft(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Lt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Vt=l?function(t,e,n){return zt.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Wt=l&&Object.getOwnPropertyDescriptor,Gt=pt(qt,"name"),Ht={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!l||l&&Wt(qt,"name").configurable)},Yt=x(Function.toString);F(ct.inspectSource)||(ct.inspectSource=function(t){return Yt(t)});var Zt,Jt,Kt,Qt=ct.inspectSource,Xt=f.WeakMap,te=F(Xt)&&/native code/.test(String(Xt)),ee=ft("keys"),ne=function(t){return ee[t]||(ee[t]=mt(t))},re={},oe="Object already initialized",ie=f.TypeError,ae=f.WeakMap;if(te||ct.state){var ue=ct.state||(ct.state=new ae);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Zt=function(t,e){if(ue.has(t))throw new ie(oe);return e.facade=t,ue.set(t,e),e},Jt=function(t){return ue.get(t)||{}},Kt=function(t){return ue.has(t)}}else{var ce=ne("state");re[ce]=!0,Zt=function(t,e){if(pt(t,ce))throw new ie(oe);return e.facade=t,Vt(t,ce,e),e},Jt=function(t){return pt(t,ce)?t[ce]:{}},Kt=function(t){return pt(t,ce)}}var fe,se={set:Zt,get:Jt,has:Kt,enforce:function(t){return Kt(t)?Jt(t):Zt(t,{})},getterFor:function(t){return function(e){var n;if(!U(e)||(n=Jt(e)).type!==t)throw new ie("Incompatible receiver, "+t+" required");return n}}},le=n((function(t){var e=Ht.CONFIGURABLE,n=se.enforce,r=se.get,o=String,i=Object.defineProperty,a=x("".slice),u=x("".replace),c=x([].join),f=l&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!pt(t,"name")||e&&t.name!==r)&&(l?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&pt(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&pt(s,"constructor")&&s.constructor?l&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return pt(p,"source")||(p.source=c(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return F(this)&&r(this).source||Qt(this)}),"toString")})),de=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(F(n)&&le(n,i,r),r.global)o?t[e]=n:at(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},pe=Math.ceil,ve=Math.floor,ge=Math.trunc||function(t){var e=+t;return(e>0?ve:pe)(e)},he=function(t){var e=+t;return e!=e||0===e?0:ge(e)},me=Math.max,ye=Math.min,we=function(t,e){var n=he(t);return n<0?me(n+e,0):ye(n,e)},be=Math.min,Se=function(t){return t>0?be(he(t),9007199254740991):0},Ee=function(t){return Se(t.length)},xe=function(t){return function(e,n,r){var o,i=N(e),a=Ee(i),u=we(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Oe={includes:xe(!0),indexOf:xe(!1)},Te=Oe.indexOf,Ae=x([].push),je=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!pt(re,n)&&pt(r,n)&&Ae(i,n);for(;e.length>o;)pt(r,n=e[o++])&&(~Te(i,n)||Ae(i,n));return i},Ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Ie.concat("length","prototype"),Re={f:Object.getOwnPropertyNames||function(t){return je(t,Pe)}},Ce={f:Object.getOwnPropertySymbols},Me=x([].concat),Ne=B("Reflect","ownKeys")||function(t){var e=Re.f(kt(t)),n=Ce.f;return n?Me(e,n(t)):e},_e=function(t,e,n){for(var r=Ne(e),o=zt.f,i=Ct.f,a=0;a<r.length;a++){var u=r[a];pt(t,u)||n&&pt(n,u)||o(t,u,i(e,u))}},ke=/#|\.prototype\./,Le=function(t,e){var n=De[Fe(t)];return n===Be||n!==Ue&&(F(e)?s(e):!!e)},Fe=Le.normalize=function(t){return String(t).replace(ke,".").toLowerCase()},De=Le.data={},Ue=Le.NATIVE="N",Be=Le.POLYFILL="P",$e=Le,ze=Ct.f,Ve=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?f:s?f[u]||at(u,{}):(f[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=ze(n,r))&&a.value:n[r],!$e(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;_e(i,o)}(t.sham||o&&o.sham)&&Vt(i,"sham",!0),de(n,r,i,t)}},qe=Object.keys||function(t){return je(t,Ie)},We=l&&!Mt?Object.defineProperties:function(t,e){kt(t);for(var n,r=N(e),o=qe(e),i=o.length,a=0;i>a;)zt.f(t,n=o[a++],r[n]);return t},Ge={f:We},He=B("document","documentElement"),Ye="prototype",Ze="script",Je=ne("IE_PROTO"),Ke=function(){},Qe=function(t){return"<"+Ze+">"+t+"</"+Ze+">"},Xe=function(t){t.write(Qe("")),t.close();var e=t.parentWindow.Object;return t=null,e},tn=function(){try{fe=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;tn="undefined"!=typeof document?document.domain&&fe?Xe(fe):(e=It("iframe"),n="java"+Ze+":",e.style.display="none",He.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Qe("document.F=Object")),t.close(),t.F):Xe(fe);for(var r=Ie.length;r--;)delete tn[Ye][Ie[r]];return tn()};re[Je]=!0;var en=Object.create||function(t,e){var n;return null!==t?(Ke[Ye]=kt(t),n=new Ke,Ke[Ye]=null,n[Je]=t):n=tn(),void 0===e?n:Ge.f(n,e)},nn=zt.f,rn=St("unscopables"),on=Array.prototype;void 0===on[rn]&&nn(on,rn,{configurable:!0,value:en(null)});var an=function(t){on[rn][t]=!0};Ve({target:"Array",proto:!0},{fill:function(t){for(var e=lt(this),n=Ee(e),r=arguments.length,o=we(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:we(i,n);a>o;)e[o++]=t;return e}}),an("fill");var un=Array.isArray||function(t){return"Array"===A(t)},cn=TypeError,fn=function(t){if(t>9007199254740991)throw cn("Maximum allowed index exceeded");return t},sn=function(t,e,n){var r=Tt(e);r in t?zt.f(t,r,w(0,n)):t[r]=n},ln={};ln[St("toStringTag")]="z";var dn="[object z]"===String(ln),pn=St("toStringTag"),vn=Object,gn="Arguments"===A(function(){return arguments}()),hn=dn?A: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=vn(t),pn))?n:gn?A(e):"Object"===(r=A(e))&&F(e.callee)?"Arguments":r},mn=function(){},yn=[],wn=B("Reflect","construct"),bn=/^\s*(?:class|function)\b/,Sn=x(bn.exec),En=!bn.test(mn),xn=function(t){if(!F(t))return!1;try{return wn(mn,yn,t),!0}catch(t){return!1}},On=function(t){if(!F(t))return!1;switch(hn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return En||!!Sn(bn,Qt(t))}catch(t){return!0}};On.sham=!0;var Tn=!wn||s((function(){var t;return xn(xn.call)||!xn(Object)||!xn((function(){t=!0}))||t}))?On:xn,An=St("species"),jn=Array,In=function(t,e){return new(function(t){var e;return un(t)&&(e=t.constructor,(Tn(e)&&(e===jn||un(e.prototype))||U(e)&&null===(e=e[An]))&&(e=void 0)),void 0===e?jn:e}(t))(0===e?0:e)},Pn=St("species"),Rn=function(t){return H>=51||!s((function(){var e=[];return(e.constructor={})[Pn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Cn=St("isConcatSpreadable"),Mn=H>=51||!s((function(){var t=[];return t[Cn]=!1,t.concat()[0]!==t})),Nn=function(t){if(!U(t))return!1;var e=t[Cn];return void 0!==e?!!e:un(t)},_n=!Mn||!Rn("concat");Ve({target:"Array",proto:!0,arity:1,forced:_n},{concat:function(t){var e,n,r,o,i,a=lt(this),u=In(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Nn(i=-1===e?a:arguments[e]))for(o=Ee(i),fn(c+o),n=0;n<o;n++,c++)n in i&&sn(u,c,i[n]);else fn(c+1),sn(u,c++,i);return u.length=c,u}});var kn=String,Ln=TypeError,Fn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return x(nt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return kt(n),function(t){if("object"==typeof t||F(t))return t;throw new Ln("Can't set "+kn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Dn=function(t,e,n){var r,o;return Fn&&F(r=e.constructor)&&r!==n&&U(o=r.prototype)&&o!==n.prototype&&Fn(t,o),t},Un=St("match"),Bn=function(t){var e;return U(t)&&(void 0!==(e=t[Un])?!!e:"RegExp"===A(t))},$n=String,zn=function(t){if("Symbol"===hn(t))throw new TypeError("Cannot convert a Symbol value to a string");return $n(t)},Vn=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},qn=RegExp.prototype,Wn=function(t){var e=t.flags;return void 0!==e||"flags"in qn||pt(t,"flags")||!$(qn,t)?e:v(Vn,t)},Gn=f.RegExp,Hn=s((function(){var t=Gn("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Yn=Hn||s((function(){return!Gn("a","y").sticky})),Zn={BROKEN_CARET:Hn||s((function(){var t=Gn("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Yn,UNSUPPORTED_Y:Hn},Jn=zt.f,Kn=function(t,e,n){n in t||Jn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Qn=function(t,e,n){return n.get&&le(n.get,e,{getter:!0}),n.set&&le(n.set,e,{setter:!0}),zt.f(t,e,n)},Xn=St("species"),tr=function(t){var e=B(t);l&&e&&!e[Xn]&&Qn(e,Xn,{configurable:!0,get:function(){return this}})},er=f.RegExp,nr=s((function(){var t=er(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),rr=f.RegExp,or=s((function(){var t=rr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ir=Re.f,ar=se.enforce,ur=St("match"),cr=f.RegExp,fr=cr.prototype,sr=f.SyntaxError,lr=x(fr.exec),dr=x("".charAt),pr=x("".replace),vr=x("".indexOf),gr=x("".slice),hr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,mr=/a/g,yr=/a/g,wr=new cr(mr)!==mr,br=Zn.MISSED_STICKY,Sr=Zn.UNSUPPORTED_Y,Er=l&&(!wr||br||nr||or||s((function(){return yr[ur]=!1,cr(mr)!==mr||cr(yr)===yr||"/a/i"!==String(cr(mr,"i"))})));if($e("RegExp",Er)){for(var xr=function(t,e){var n,r,o,i,a,u,c=$(fr,this),f=Bn(t),s=void 0===e,l=[],d=t;if(!c&&f&&s&&t.constructor===xr)return t;if((f||$(fr,t))&&(t=t.source,s&&(e=Wn(d))),t=void 0===t?"":zn(t),e=void 0===e?"":zn(e),d=t,nr&&"dotAll"in mr&&(r=!!e&&vr(e,"s")>-1)&&(e=pr(e,/s/g,"")),n=e,br&&"sticky"in mr&&(o=!!e&&vr(e,"y")>-1)&&Sr&&(e=pr(e,/y/g,"")),or&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=en(null),u=!1,c=!1,f=0,s="";r<=n;r++){if("\\"===(e=dr(t,r)))e+=dr(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:lr(hr,gr(t,r+1))&&(r+=2,c=!0),o+=e,f++;continue;case">"===e&&c:if(""===s||pt(a,s))throw new sr("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Dn(cr(t,e),c?this:fr,xr),(r||o||l.length)&&(u=ar(a),r&&(u.dotAll=!0,u.raw=xr(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=dr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+dr(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==d)try{Vt(a,"source",""===d?"(?:)":d)}catch(t){}return a},Or=ir(cr),Tr=0;Or.length>Tr;)Kn(xr,cr,Or[Tr++]);fr.constructor=xr,xr.prototype=fr,de(f,"RegExp",xr,{constructor:!0})}tr("RegExp");var Ar=se.get,jr=ft("native-string-replace",String.prototype.replace),Ir=RegExp.prototype.exec,Pr=Ir,Rr=x("".charAt),Cr=x("".indexOf),Mr=x("".replace),Nr=x("".slice),_r=function(){var t=/a/,e=/b*/g;return v(Ir,t,"a"),v(Ir,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),kr=Zn.BROKEN_CARET,Lr=void 0!==/()??/.exec("")[1];(_r||Lr||kr||nr||or)&&(Pr=function(t){var e,n,r,o,i,a,u,c=this,f=Ar(c),s=zn(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=v(Pr,l,s),c.lastIndex=l.lastIndex,e;var d=f.groups,p=kr&&c.sticky,g=v(Vn,c),h=c.source,m=0,y=s;if(p&&(g=Mr(g,"y",""),-1===Cr(g,"g")&&(g+="g"),y=Nr(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Rr(s,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,m++),n=new RegExp("^(?:"+h+")",g)),Lr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),_r&&(r=c.lastIndex),o=v(Ir,p?n:c,y),p?o?(o.input=Nr(o.input,m),o[0]=Nr(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:_r&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Lr&&o&&o.length>1&&v(jr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=en(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Fr=Pr;Ve({target:"RegExp",proto:!0,forced:/./.exec!==Fr},{exec:Fr});var Dr=Ht.PROPER,Ur="toString",Br=RegExp.prototype[Ur],$r=s((function(){return"/a/b"!==Br.call({source:"a",flags:"b"})})),zr=Dr&&Br.name!==Ur;($r||zr)&&de(RegExp.prototype,Ur,(function(){var t=kt(this);return"/"+zn(t.source)+"/"+zn(Wn(t))}),{unsafe:!0});var Vr=function(t){if("Function"===A(t))return x(t)},qr=St("species"),Wr=RegExp.prototype,Gr=function(t,e,n,r){var o=St(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[qr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=Vr(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=Vr(t),c=e.exec;return c===Fr||c===Wr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));de(String.prototype,t,c[0]),de(Wr,o,c[1])}r&&Vt(Wr[o],"sham",!0)},Hr=x("".charAt),Yr=x("".charCodeAt),Zr=x("".slice),Jr=function(t){return function(e,n){var r,o,i=zn(M(e)),a=he(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Yr(i,a))<55296||r>56319||a+1===u||(o=Yr(i,a+1))<56320||o>57343?t?Hr(i,a):r:t?Zr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Kr={codeAt:Jr(!1),charAt:Jr(!0)},Qr=Kr.charAt,Xr=function(t,e,n){return e+(n?Qr(t,e).length:1)},to=TypeError,eo=function(t,e){var n=t.exec;if(F(n)){var r=v(n,t,e);return null!==r&&kt(r),r}if("RegExp"===A(t))return v(Fr,t,e);throw new to("RegExp#exec called on incompatible receiver")};Gr("match",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:rt(e,t);return r?v(r,e,n):new RegExp(e)[t](zn(n))},function(t){var r=kt(this),o=zn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return eo(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],f=0;null!==(u=eo(r,o));){var s=zn(u[0]);c[f]=s,""===s&&(r.lastIndex=Xr(o,Se(r.lastIndex),a)),f++}return 0===f?null:c}]}));var no=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Gr("search",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:rt(e,t);return r?v(r,e,n):new RegExp(e)[t](zn(n))},function(t){var r=kt(this),o=zn(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;no(a,0)||(r.lastIndex=0);var u=eo(r,o);return no(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}));var ro=Function.prototype,oo=ro.apply,io=ro.call,ao="object"==typeof Reflect&&Reflect.apply||(d?io.bind(oo):function(){return io.apply(oo,arguments)}),uo=Math.floor,co=x("".charAt),fo=x("".replace),so=x("".slice),lo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,po=/\$([$&'`]|\d{1,2})/g,vo=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=po;return void 0!==o&&(o=lt(o),c=lo),fo(i,c,(function(i,c){var f;switch(co(c,0)){case"$":return"$";case"&":return t;case"`":return so(e,0,n);case"'":return so(e,a);case"<":f=o[so(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=uo(s/10);return 0===l?i:l<=u?void 0===r[l-1]?co(c,1):r[l-1]+co(c,1):i}f=r[s-1]}return void 0===f?"":f}))},go=St("replace"),ho=Math.max,mo=Math.min,yo=x([].concat),wo=x([].push),bo=x("".indexOf),So=x("".slice),Eo="$0"==="a".replace(/./,"$0"),xo=!!/./[go]&&""===/./[go]("a","$0");Gr("replace",(function(t,e,n){var r=xo?"$":"$0";return[function(t,n){var r=M(this),o=R(t)?void 0:rt(t,go);return o?v(o,t,r,n):v(e,zn(r),t,n)},function(t,o){var i=kt(this),a=zn(t);if("string"==typeof o&&-1===bo(o,r)&&-1===bo(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=F(o);c||(o=zn(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=eo(i,a))&&(wo(d,l),s);){""===zn(l[0])&&(i.lastIndex=Xr(a,Se(i.lastIndex),f))}for(var p,v="",g=0,h=0;h<d.length;h++){for(var m,y=zn((l=d[h])[0]),w=ho(mo(he(l.index),a.length),0),b=[],S=1;S<l.length;S++)wo(b,void 0===(p=l[S])?p:String(p));var E=l.groups;if(c){var x=yo([y],b,w,a);void 0!==E&&wo(x,E),m=zn(ao(o,void 0,x))}else m=vo(y,a,w,b,E,o);w>=g&&(v+=So(a,g,w)+m,g=w+y.length)}return v+So(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Eo||xo);var Oo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},To=Oe.indexOf,Ao=Vr([].indexOf),jo=!!Ao&&1/Ao([1],1,-0)<0,Io=jo||!Oo("indexOf");Ve({target:"Array",proto:!0,forced:Io},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return jo?Ao(this,t,e)||0:To(this,t,e)}});var Po=TypeError,Ro=function(t){return function(e,n,r,o){var i=lt(e),a=P(i),u=Ee(i);nt(n);var c=t?u-1:0,f=t?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw new Po("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=n(o,a[c],c,i));return o}},Co={left:Ro(!1),right:Ro(!0)},Mo="process"===A(f.process),No=Co.left,_o=!Mo&&H>79&&H<83||!Oo("reduce");Ve({target:"Array",proto:!0,forced:_o},{reduce:function(t){var e=arguments.length;return No(this,t,e,e>1?arguments[1]:void 0)}});var ko=dn?{}.toString:function(){return"[object "+hn(this)+"]"};dn||de(Object.prototype,"toString",ko,{unsafe:!0});var Lo=x([].slice),Fo=Rn("slice"),Do=St("species"),Uo=Array,Bo=Math.max;Ve({target:"Array",proto:!0,forced:!Fo},{slice:function(t,e){var n,r,o,i=N(this),a=Ee(i),u=we(t,a),c=we(void 0===e?a:e,a);if(un(i)&&(n=i.constructor,(Tn(n)&&(n===Uo||un(n.prototype))||U(n)&&null===(n=n[Do]))&&(n=void 0),n===Uo||void 0===n))return Lo(i,u,c);for(r=new(void 0===n?Uo:n)(Bo(c-u,0)),o=0;u<c;u++,o++)u in i&&sn(r,o,i[u]);return r.length=o,r}});var $o=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),zo=ne("IE_PROTO"),Vo=Object,qo=Vo.prototype,Wo=$o?Vo.getPrototypeOf:function(t){var e=lt(t);if(pt(e,zo))return e[zo];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof Vo?qo:null},Go=x(y.f),Ho=x([].push),Yo=l&&s((function(){var t=Object.create(null);return t[2]=2,!Go(t,2)})),Zo=function(t){return function(e){for(var n,r=N(e),o=qe(r),i=Yo&&null===Wo(r),a=o.length,u=0,c=[];a>u;)n=o[u++],l&&!(i?n in r:Go(r,n))||Ho(c,t?[n,r[n]]:r[n]);return c}},Jo={entries:Zo(!0),values:Zo(!1)}.values;Ve({target:"Object",stat:!0},{values:function(t){return Jo(t)}});var Ko=Vr(Vr.bind),Qo=function(t,e){return nt(t),void 0===e?t:d?Ko(t,e):function(){return t.apply(e,arguments)}},Xo=x([].push),ti=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,f,s,l){for(var d,p,v=lt(c),g=P(v),h=Ee(g),m=Qo(f,s),y=0,w=l||In,b=e?w(c,h):n||a?w(c,0):void 0;h>y;y++)if((u||y in g)&&(p=m(d=g[y],y,v),t))if(e)b[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Xo(b,d)}else switch(t){case 4:return!1;case 7:Xo(b,d)}return i?-1:r||o?o:b}},ei={forEach:ti(0),map:ti(1),filter:ti(2),some:ti(3),every:ti(4),find:ti(5),findIndex:ti(6),filterReject:ti(7)},ni=ei.every,ri=Oo("every");Ve({target:"Array",proto:!0,forced:!ri},{every:function(t){return ni(this,t,arguments.length>1?arguments[1]:void 0)}});var oi=Oe.includes,ii=s((function(){return!Array(1).includes()}));Ve({target:"Array",proto:!0,forced:ii},{includes:function(t){return oi(this,t,arguments.length>1?arguments[1]:void 0)}}),an("includes");var ai=s((function(){qe(1)}));Ve({target:"Object",stat:!0,forced:ai},{keys:function(t){return qe(lt(t))}});var ui=x(1..valueOf),ci=RangeError,fi=RangeError,si=String,li=Math.floor,di=x((function(t){var e=zn(M(this)),n="",r=he(t);if(r<0||r===1/0)throw new ci("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),pi=x("".slice),vi=x(1..toFixed),gi=function(t,e,n){return 0===e?n:e%2==1?gi(t,e-1,n*t):gi(t*t,e/2,n)},hi=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=li(o/1e7)},mi=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=li(r/e),r=r%e*1e7},yi=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=si(t[e]);n=""===n?r:n+di("0",7-r.length)+r}return n},wi=s((function(){return"0.000"!==vi(8e-5,3)||"1"!==vi(.9,0)||"1.25"!==vi(1.255,2)||"1000000000000000128"!==vi(0xde0b6b3a7640080,0)}))||!s((function(){vi({})}));Ve({target:"Number",proto:!0,forced:wi},{toFixed:function(t){var e,n,r,o,i=ui(this),a=he(t),u=[0,0,0,0,0,0],c="",f="0";if(a<0||a>20)throw new fi("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return si(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*gi(2,69,1))-69,n=e<0?i*gi(2,-e,1):i/gi(2,e,1),n*=4503599627370496,(e=52-e)>0){for(hi(u,0,n),r=a;r>=7;)hi(u,1e7,0),r-=7;for(hi(u,gi(10,r,1),0),r=e-1;r>=23;)mi(u,1<<23),r-=23;mi(u,1<<r),hi(u,1,1),mi(u,2),f=yi(u)}else hi(u,0,n),hi(u,1<<-e,0),f=yi(u)+di("0",a);return f=a>0?c+((o=f.length)<=a?"0."+di("0",a-o)+f:pi(f,0,o-a)+"."+pi(f,o-a)):c+f}});var bi="\t\n\v\f\r \u2028\u2029\ufeff",Si=x("".replace),Ei=RegExp("^["+bi+"]+"),xi=RegExp("(^|[^"+bi+"])["+bi+"]+$"),Oi=function(t){return function(e){var n=zn(M(e));return 1&t&&(n=Si(n,Ei,"")),2&t&&(n=Si(n,xi,"$1")),n}},Ti={start:Oi(1),end:Oi(2),trim:Oi(3)},Ai=Ti.trim,ji=x("".charAt),Ii=f.parseFloat,Pi=f.Symbol,Ri=Pi&&Pi.iterator,Ci=1/Ii(bi+"-0")!=-1/0||Ri&&!s((function(){Ii(Object(Ri))}))?function(t){var e=Ai(zn(t)),n=Ii(e);return 0===n&&"-"===ji(e,0)?-0:n}:Ii;Ve({global:!0,forced:parseFloat!==Ci},{parseFloat:Ci});var Mi=TypeError,Ni=St("species"),_i=function(t,e){var n,r=kt(t).constructor;return void 0===r||R(n=kt(r)[Ni])?e:function(t){if(Tn(t))return t;throw new Mi(tt(t)+" is not a constructor")}(n)},ki=Array,Li=Math.max,Fi=function(t,e,n){for(var r=Ee(t),o=we(e,r),i=we(void 0===n?r:n,r),a=ki(Li(i-o,0)),u=0;o<i;o++,u++)sn(a,u,t[o]);return a.length=u,a},Di=Zn.UNSUPPORTED_Y,Ui=4294967295,Bi=Math.min,$i=[].push,zi=x(/./.exec),Vi=x($i),qi=x("".slice),Wi=!s((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]}));Gr("split",(function(t,e,n){var r;return r="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=zn(M(this)),o=void 0===n?Ui:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Bn(t))return v(e,r,t,o);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=v(Fr,l,r))&&!((a=l.lastIndex)>s&&(Vi(c,qi(r,s,i.index)),i.length>1&&i.index<r.length&&ao($i,c,Fi(i,1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!u&&zi(l,"")||Vi(c,""):Vi(c,qi(r,s)),c.length>o?Fi(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:v(e,this,t,n)}:e,[function(e,n){var o=M(this),i=R(e)?void 0:rt(e,t);return i?v(i,e,o,n):v(r,zn(o),e,n)},function(t,o){var i=kt(this),a=zn(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var c=_i(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Di?"g":"y"),l=new c(Di?"^(?:"+i.source+")":i,s),d=void 0===o?Ui:o>>>0;if(0===d)return[];if(0===a.length)return null===eo(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=Di?0:v;var h,m=eo(l,Di?qi(a,v):a);if(null===m||(h=Bi(Se(l.lastIndex+(Di?v:0)),a.length))===p)v=Xr(a,v,f);else{if(Vi(g,qi(a,p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(Vi(g,m[y]),g.length===d)return g;v=p=h}}return Vi(g,qi(a,p)),g}]}),!Wi,Di);var Gi=Object.assign,Hi=Object.defineProperty,Yi=x([].concat),Zi=!Gi||s((function(){if(l&&1!==Gi({b:1},Gi(Hi({},"a",{enumerable:!0,get:function(){Hi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Gi({},t)[n]||qe(Gi({},e)).join("")!==r}))?function(t,e){for(var n=lt(t),r=arguments.length,o=1,i=Ce.f,a=y.f;r>o;)for(var u,c=P(arguments[o++]),f=i?Yi(qe(c),i(c)):qe(c),s=f.length,d=0;s>d;)u=f[d++],l&&!v(a,c,u)||(n[u]=c[u]);return n}:Gi;Ve({target:"Object",stat:!0,arity:2,forced:Object.assign!==Zi},{assign:Zi});var Ji=f,Ki=Re.f,Qi=Ct.f,Xi=zt.f,ta=Ti.trim,ea="Number",na=f[ea];Ji[ea];var ra=na.prototype,oa=f.TypeError,ia=x("".slice),aa=x("".charCodeAt),ua=function(t){var e,n,r,o,i,a,u,c,f=Ot(t,"number");if(Q(f))throw new oa("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=ta(f),43===(e=aa(f,0))||45===e){if(88===(n=aa(f,2))||120===n)return NaN}else if(48===e){switch(aa(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=ia(f,2)).length,u=0;u<a;u++)if((c=aa(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+f},ca=$e(ea,!na(" 0o1")||!na("0b1")||na("+0x1")),fa=function(t){var e,n=arguments.length<1?0:na(function(t){var e=Ot(t,"number");return"bigint"==typeof e?e:ua(e)}(t));return $(ra,e=this)&&s((function(){ui(e)}))?Dn(Object(n),this,fa):n};fa.prototype=ra,ca&&(ra.constructor=fa),Ve({global:!0,constructor:!0,wrap:!0,forced:ca},{Number:fa});ca&&function(t,e){for(var n,r=l?Ki(e):"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(","),o=0;r.length>o;o++)pt(e,n=r[o])&&!pt(t,n)&&Xi(t,n,Qi(e,n))}(Ji[ea],na);var sa,la,da,pa,va=zt.f,ga=St("toStringTag"),ha=function(t,e,n){t&&!n&&(t=t.prototype),t&&!pt(t,ga)&&va(t,ga,{configurable:!0,value:e})},ma=TypeError,ya=TypeError,wa=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),ba=f.setImmediate,Sa=f.clearImmediate,Ea=f.process,xa=f.Dispatch,Oa=f.Function,Ta=f.MessageChannel,Aa=f.String,ja=0,Ia={},Pa="onreadystatechange";s((function(){sa=f.location}));var Ra=function(t){if(pt(Ia,t)){var e=Ia[t];delete Ia[t],e()}},Ca=function(t){return function(){Ra(t)}},Ma=function(t){Ra(t.data)},Na=function(t){f.postMessage(Aa(t),sa.protocol+"//"+sa.host)};ba&&Sa||(ba=function(t){!function(t,e){if(t<e)throw new ya("Not enough arguments")}(arguments.length,1);var e=F(t)?t:Oa(t),n=Lo(arguments,1);return Ia[++ja]=function(){ao(e,void 0,n)},la(ja),ja},Sa=function(t){delete Ia[t]},Mo?la=function(t){Ea.nextTick(Ca(t))}:xa&&xa.now?la=function(t){xa.now(Ca(t))}:Ta&&!wa?(pa=(da=new Ta).port2,da.port1.onmessage=Ma,la=Qo(pa.postMessage,pa)):f.addEventListener&&F(f.postMessage)&&!f.importScripts&&sa&&"file:"!==sa.protocol&&!s(Na)?(la=Na,f.addEventListener("message",Ma,!1)):la=Pa in It("script")?function(t){He.appendChild(It("script"))[Pa]=function(){He.removeChild(this),Ra(t)}}:function(t){setTimeout(Ca(t),0)});var _a={set:ba,clear:Sa},ka=function(){this.head=null,this.tail=null};ka.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 La,Fa,Da,Ua,Ba,$a=ka,za=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Va=/web0s(?!.*chrome)/i.test(z),qa=Ct.f,Wa=_a.set,Ga=f.MutationObserver||f.WebKitMutationObserver,Ha=f.document,Ya=f.process,Za=f.Promise,Ja=qa(f,"queueMicrotask"),Ka=Ja&&Ja.value;if(!Ka){var Qa=new $a,Xa=function(){var t,e;for(Mo&&(t=Ya.domain)&&t.exit();e=Qa.get();)try{e()}catch(t){throw Qa.head&&La(),t}t&&t.enter()};wa||Mo||Va||!Ga||!Ha?!za&&Za&&Za.resolve?((Ua=Za.resolve(void 0)).constructor=Za,Ba=Qo(Ua.then,Ua),La=function(){Ba(Xa)}):Mo?La=function(){Ya.nextTick(Xa)}:(Wa=Qo(Wa,f),La=function(){Wa(Xa)}):(Fa=!0,Da=Ha.createTextNode(""),new Ga(Xa).observe(Da,{characterData:!0}),La=function(){Da.data=Fa=!Fa}),Ka=function(t){Qa.head||La(),Qa.add(t)}}var tu=Ka,eu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},nu=f.Promise,ru="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ou=!ru&&!Mo&&"object"==typeof window&&"object"==typeof document;nu&&nu.prototype;var iu,au,uu,cu=St("species"),fu=!1,su=F(f.PromiseRejectionEvent),lu=$e("Promise",(function(){var t=Qt(nu),e=t!==String(nu);if(!e&&66===H)return!0;if(!H||H<51||!/native code/.test(t)){var n=new nu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[cu]=r,!(fu=n.then((function(){}))instanceof r))return!0}return!e&&(ou||ru)&&!su})),du={CONSTRUCTOR:lu,REJECTION_EVENT:su,SUBCLASSING:fu},pu=TypeError,vu=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new pu("Bad Promise constructor");e=t,n=r})),this.resolve=nt(e),this.reject=nt(n)},gu={f:function(t){return new vu(t)}},hu=_a.set,mu="Promise",yu=du.CONSTRUCTOR,wu=du.REJECTION_EVENT,bu=du.SUBCLASSING,Su=se.getterFor(mu),Eu=se.set,xu=nu&&nu.prototype,Ou=nu,Tu=xu,Au=f.TypeError,ju=f.document,Iu=f.process,Pu=gu.f,Ru=Pu,Cu=!!(ju&&ju.createEvent&&f.dispatchEvent),Mu="unhandledrejection",Nu=function(t){var e;return!(!U(t)||!F(e=t.then))&&e},_u=function(t,e){var n,r,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{u?(a||(2===e.rejection&&Uu(e),e.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===t.promise?f(new Au("Promise-chain cycle")):(r=Nu(n))?v(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ku=function(t,e){t.notified||(t.notified=!0,tu((function(){for(var n,r=t.reactions;n=r.get();)_u(n,t);t.notified=!1,e&&!t.rejection&&Fu(t)})))},Lu=function(t,e,n){var r,o;Cu?((r=ju.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!wu&&(o=f["on"+t])?o(r):t===Mu&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Fu=function(t){v(hu,f,(function(){var e,n=t.facade,r=t.value;if(Du(t)&&(e=eu((function(){Mo?Iu.emit("unhandledRejection",r,n):Lu(Mu,n,r)})),t.rejection=Mo||Du(t)?2:1,e.error))throw e.value}))},Du=function(t){return 1!==t.rejection&&!t.parent},Uu=function(t){v(hu,f,(function(){var e=t.facade;Mo?Iu.emit("rejectionHandled",e):Lu("rejectionhandled",e,t.value)}))},Bu=function(t,e,n){return function(r){t(e,r,n)}},$u=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ku(t,!0))},zu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Au("Promise can't be resolved itself");var r=Nu(e);r?tu((function(){var n={done:!1};try{v(r,e,Bu(zu,n,t),Bu($u,n,t))}catch(e){$u(n,e,t)}})):(t.value=e,t.state=1,ku(t,!1))}catch(e){$u({done:!1},e,t)}}};if(yu&&(Tu=(Ou=function(t){!function(t,e){if($(e,t))return t;throw new ma("Incorrect invocation")}(this,Tu),nt(t),v(iu,this);var e=Su(this);try{t(Bu(zu,e),Bu($u,e))}catch(t){$u(e,t)}}).prototype,(iu=function(t){Eu(this,{type:mu,done:!1,notified:!1,parent:!1,reactions:new $a,rejection:!1,state:0,value:void 0})}).prototype=de(Tu,"then",(function(t,e){var n=Su(this),r=Pu(_i(this,Ou));return n.parent=!0,r.ok=!F(t)||t,r.fail=F(e)&&e,r.domain=Mo?Iu.domain:void 0,0===n.state?n.reactions.add(r):tu((function(){_u(r,n)})),r.promise})),au=function(){var t=new iu,e=Su(t);this.promise=t,this.resolve=Bu(zu,e),this.reject=Bu($u,e)},gu.f=Pu=function(t){return t===Ou||undefined===t?new au(t):Ru(t)},F(nu)&&xu!==Object.prototype)){uu=xu.then,bu||de(xu,"then",(function(t,e){var n=this;return new Ou((function(t,e){v(uu,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete xu.constructor}catch(t){}Fn&&Fn(xu,Tu)}Ve({global:!0,constructor:!0,wrap:!0,forced:yu},{Promise:Ou}),ha(Ou,mu,!1),tr(mu);var Vu={},qu=St("iterator"),Wu=Array.prototype,Gu=function(t){return void 0!==t&&(Vu.Array===t||Wu[qu]===t)},Hu=St("iterator"),Yu=function(t){if(!R(t))return rt(t,Hu)||rt(t,"@@iterator")||Vu[hn(t)]},Zu=TypeError,Ju=function(t,e){var n=arguments.length<2?Yu(t):e;if(nt(n))return kt(v(n,t));throw new Zu(tt(t)+" is not iterable")},Ku=function(t,e,n){var r,o;kt(t);try{if(!(r=rt(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return kt(r),n},Qu=TypeError,Xu=function(t,e){this.stopped=t,this.result=e},tc=Xu.prototype,ec=function(t,e,n){var r,o,i,a,u,c,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Qo(e,s),m=function(t){return r&&Ku(r,"normal",t),new Xu(!0,t)},y=function(t){return l?(kt(t),g?h(t[0],t[1],m):h(t[0],t[1])):g?h(t,m):h(t)};if(d)r=t.iterator;else if(p)r=t;else{if(!(o=Yu(t)))throw new Qu(tt(t)+" is not iterable");if(Gu(o)){for(i=0,a=Ee(t);a>i;i++)if((u=y(t[i]))&&$(tc,u))return u;return new Xu(!1)}r=Ju(t,o)}for(c=d?t.next:r.next;!(f=v(c,r)).done;){try{u=y(f.value)}catch(t){Ku(r,"throw",t)}if("object"==typeof u&&u&&$(tc,u))return u}return new Xu(!1)},nc=St("iterator"),rc=!1;try{var oc=0,ic={next:function(){return{done:!!oc++}},return:function(){rc=!0}};ic[nc]=function(){return this},Array.from(ic,(function(){throw 2}))}catch(t){}var ac=function(t,e){try{if(!e&&!rc)return!1}catch(t){return!1}var n=!1;try{var r={};r[nc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},uc=du.CONSTRUCTOR||!ac((function(t){nu.all(t).then(void 0,(function(){}))}));Ve({target:"Promise",stat:!0,forced:uc},{all:function(t){var e=this,n=gu.f(e),r=n.resolve,o=n.reject,i=eu((function(){var n=nt(e.resolve),i=[],a=0,u=1;ec(t,(function(t){var c=a++,f=!1;u++,v(n,e,t).then((function(t){f||(f=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var cc=du.CONSTRUCTOR,fc=nu&&nu.prototype;if(Ve({target:"Promise",proto:!0,forced:cc,real:!0},{catch:function(t){return this.then(void 0,t)}}),F(nu)){var sc=B("Promise").prototype.catch;fc.catch!==sc&&de(fc,"catch",sc,{unsafe:!0})}Ve({target:"Promise",stat:!0,forced:uc},{race:function(t){var e=this,n=gu.f(e),r=n.reject,o=eu((function(){var o=nt(e.resolve);ec(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ve({target:"Promise",stat:!0,forced:du.CONSTRUCTOR},{reject:function(t){var e=gu.f(this);return v(e.reject,void 0,t),e.promise}});var lc=du.CONSTRUCTOR;B("Promise"),Ve({target:"Promise",stat:!0,forced:lc},{resolve:function(t){return function(t,e){if(kt(t),U(e)&&e.constructor===t)return e;var n=gu.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var dc=Ht.EXISTS,pc=Function.prototype,vc=x(pc.toString),gc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,hc=x(gc.exec);l&&!dc&&Qn(pc,"name",{configurable:!0,get:function(){try{return hc(gc,vc(this))[1]}catch(t){return""}}});var mc=x([].join),yc=P!==Object||!Oo("join",",");Ve({target:"Array",proto:!0,forced:yc},{join:function(t){return mc(N(this),void 0===t?",":t)}});var wc,bc=Ht.PROPER,Sc=Ti.trim;Ve({target:"String",proto:!0,forced:(wc="trim",s((function(){return!!bi[wc]()||"
"!=="
"[wc]()||bc&&bi[wc].name!==wc})))},{trim:function(){return Sc(this)}});var Ec,xc=TypeError,Oc=function(t){if(Bn(t))throw new xc("The method doesn't accept regular expressions");return t},Tc=St("match"),Ac=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Tc]=!1,"/./"[t](e)}catch(t){}}return!1},jc=Ct.f,Ic=Vr("".startsWith),Pc=Vr("".slice),Rc=Math.min,Cc=Ac("startsWith"),Mc=!(Cc||(Ec=jc(String.prototype,"startsWith"),!Ec||Ec.writable));Ve({target:"String",proto:!0,forced:!Mc&&!Cc},{startsWith:function(t){var e=zn(M(this));Oc(t);var n=Se(Rc(arguments.length>1?arguments[1]:void 0,e.length)),r=zn(t);return Ic?Ic(e,r,n):Pc(e,n,n+r.length)===r}});var Nc=x("".indexOf);Ve({target:"String",proto:!0,forced:!Ac("includes")},{includes:function(t){return!!~Nc(zn(M(this)),zn(Oc(t)),arguments.length>1?arguments[1]:void 0)}});var _c=ei.find,kc="find",Lc=!0;kc in[]&&Array(1)[kc]((function(){Lc=!1})),Ve({target:"Array",proto:!0,forced:Lc},{find:function(t){return _c(this,t,arguments.length>1?arguments[1]:void 0)}}),an(kc);var Fc=ei.forEach,Dc=Oo("forEach")?[].forEach:function(t){return Fc(this,t,arguments.length>1?arguments[1]:void 0)};Ve({target:"Array",proto:!0,forced:[].forEach!==Dc},{forEach:Dc});var Uc={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},Bc=It("span").classList,$c=Bc&&Bc.constructor&&Bc.constructor.prototype,zc=$c===Object.prototype?void 0:$c,Vc=function(t){if(t&&t.forEach!==Dc)try{Vt(t,"forEach",Dc)}catch(e){t.forEach=Dc}};for(var qc in Uc)Uc[qc]&&Vc(f[qc]&&f[qc].prototype);Vc(zc);var Wc,Gc,Hc,Yc=St("iterator"),Zc=!1;[].keys&&("next"in(Hc=[].keys())?(Gc=Wo(Wo(Hc)))!==Object.prototype&&(Wc=Gc):Zc=!0);var Jc=!U(Wc)||s((function(){var t={};return Wc[Yc].call(t)!==t}));Jc&&(Wc={}),F(Wc[Yc])||de(Wc,Yc,(function(){return this}));var Kc={IteratorPrototype:Wc,BUGGY_SAFARI_ITERATORS:Zc},Qc=Kc.IteratorPrototype,Xc=function(){return this},tf=Ht.PROPER,ef=Ht.CONFIGURABLE,nf=Kc.IteratorPrototype,rf=Kc.BUGGY_SAFARI_ITERATORS,of=St("iterator"),af="keys",uf="values",cf="entries",ff=function(){return this},sf=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=en(Qc,{next:w(+!r,n)}),ha(t,o,!1),Vu[o]=Xc}(n,e,r);var u,c,f,s=function(t){if(t===o&&h)return h;if(!rf&&t&&t in p)return p[t];switch(t){case af:case uf:case cf:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,g=p[of]||p["@@iterator"]||o&&p[o],h=!rf&&g||s(o),m="Array"===e&&p.entries||g;if(m&&(u=Wo(m.call(new t)))!==Object.prototype&&u.next&&(Wo(u)!==nf&&(Fn?Fn(u,nf):F(u[of])||de(u,of,ff)),ha(u,l,!0)),tf&&o===uf&&g&&g.name!==uf&&(ef?Vt(p,"name",uf):(d=!0,h=function(){return v(g,this)})),o)if(c={values:s(uf),keys:i?h:s(af),entries:s(cf)},a)for(f in c)(rf||d||!(f in p))&&de(p,f,c[f]);else Ve({target:e,proto:!0,forced:rf||d},c);return p[of]!==h&&de(p,of,h,{name:o}),Vu[e]=h,c},lf=function(t,e){return{value:t,done:e}},df=zt.f,pf="Array Iterator",vf=se.set,gf=se.getterFor(pf),hf=sf(Array,"Array",(function(t,e){vf(this,{type:pf,target:N(t),index:0,kind:e})}),(function(){var t=gf(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,lf(void 0,!0);switch(t.kind){case"keys":return lf(n,!1);case"values":return lf(e[n],!1)}return lf([n,e[n]],!1)}),"values"),mf=Vu.Arguments=Vu.Array;if(an("keys"),an("values"),an("entries"),l&&"values"!==mf.name)try{df(mf,"name",{value:"values"})}catch(t){}var yf=Kr.charAt,wf="String Iterator",bf=se.set,Sf=se.getterFor(wf);sf(String,"String",(function(t){bf(this,{type:wf,string:zn(t),index:0})}),(function(){var t,e=Sf(this),n=e.string,r=e.index;return r>=n.length?lf(void 0,!0):(t=yf(n,r),e.index+=t.length,lf(t,!1))}));var Ef=St("iterator"),xf=hf.values,Of=function(t,e){if(t){if(t[Ef]!==xf)try{Vt(t,Ef,xf)}catch(e){t[Ef]=xf}if(ha(t,e,!0),Uc[e])for(var n in hf)if(t[n]!==hf[n])try{Vt(t,n,hf[n])}catch(e){t[n]=hf[n]}}};for(var Tf in Uc)Of(f[Tf]&&f[Tf].prototype,Tf);Of(zc,"DOMTokenList");var Af=s((function(){Wo(1)}));Ve({target:"Object",stat:!0,forced:Af,sham:!$o},{getPrototypeOf:function(t){return Wo(lt(t))}});var jf=TypeError,If=Object.getOwnPropertyDescriptor,Pf=l&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(un(t)&&!If(t,"length").writable)throw new jf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rf=TypeError,Cf=function(t,e){if(!delete t[e])throw new Rf("Cannot delete property "+tt(e)+" of "+tt(t))},Mf=Rn("splice"),Nf=Math.max,_f=Math.min;Ve({target:"Array",proto:!0,forced:!Mf},{splice:function(t,e){var n,r,o,i,a,u,c=lt(this),f=Ee(c),s=we(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=_f(Nf(he(e),0),f-s)),fn(f+n-r),o=In(c,r),i=0;i<r;i++)(a=s+i)in c&&sn(o,i,c[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)u=i+n,(a=i+r)in c?c[u]=c[a]:Cf(c,u);for(i=f;i>f-r+n;i--)Cf(c,i-1)}else if(n>r)for(i=f-r;i>s;i--)u=i+n-1,(a=i+r-1)in c?c[u]=c[a]:Cf(c,u);for(i=0;i<n;i++)c[i+s]=arguments[i+2];return Pf(c,f-r+n),o}});var kf=function(t,e,n,r){try{return r?e(kt(n)[0],n[1]):e(n)}catch(e){Ku(t,"throw",e)}},Lf=Array,Ff=!ac((function(t){Array.from(t)}));Ve({target:"Array",stat:!0,forced:Ff},{from:function(t){var e=lt(t),n=Tn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Qo(o,r>2?arguments[2]:void 0));var a,u,c,f,s,l,d=Yu(e),p=0;if(!d||this===Lf&&Gu(d))for(a=Ee(e),u=n?new this(a):Lf(a);a>p;p++)l=i?o(e[p],p):e[p],sn(u,p,l);else for(s=(f=Ju(e,d)).next,u=n?new this:[];!(c=v(s,f)).done;p++)l=i?kf(f,o,[c.value,p],!0):c.value,sn(u,p,l);return u.length=p,u}});var Df=function(){return Df=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},Df.apply(this,arguments)};function Uf(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(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(a,u)}c((r=r.apply(t,e||[])).next())}))}function Bf(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function $f(t,e){for(var n=t.length,r=e.length,o=Gf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function zf(t,e){for(var n=t.length,r=e.length,o=Gf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],f=c[0],s=c[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function Vf(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substring(1):e}function qf(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substring(1):e}function Wf(t){return qf(t)}function Gf(t){if("object"!==u(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(u(t))}))?Df({},t):JSON.parse(JSON.stringify(t))}function Hf(t){try{if("object"===u(JSON.parse(t)))return!0}catch(t){}return!1}function Yf(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function Zf(t){return void 0===t&&(t=5),Yf(t)}function Jf(t){void 0===t&&(t=3);var e=[es(),Zf(t||3)];return e[0]+e[1]}var Kf={type:"d"};function Qf(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function Xf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function ts(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,f=document.createElement("script");f||Promise.reject("Not support create script element");var s=document.getElementsByTagName("script")[0];return f.type="text/javascript",c&&(f.defer=!0),i&&(f.id=i),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,Xf(a),Xf(n,"loaded"))}:f.onload=function(){Xf(a),Xf(n,"loaded")},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var o;n=(o=[t,e])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function es(){return Date.now?Date.now():(new Date).getTime()}function ns(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function rs(t){var e=[],n=window.PerformanceObserver;return!!n&&(cs(n.supportedEntryTypes)&&(e=n.supportedEntryTypes),e.includes(t))}function os(){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(t){return rs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-contentful-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function is(){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(t){return rs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function as(){if(window.MAZEY_BROWSER_INFO&&"object"===u(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&cs(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=Df(Df({},t),{system:o,appleType:i});var a="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?a="2000":n(/windows nt 5.1|windows xp/g)?a="xp":n(/windows nt 5.2|windows 2003/g)?a="2003":n(/windows nt 6.0|windows vista/g)?a="vista":n(/windows nt 6.1|windows 7/g)?a="7":n(/windows nt 6.2|windows 8/g)?a="8":n(/windows nt 6.3|windows 8.1/g)?a="8.1":n(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=r(/os x [\d._]+/g):"android"===o?a=r(/android [\d._]+/g):"ios"===o&&(a=r(/os [\d._]+/g)),t=Df(Df({},t),{systemVs:a});var c="";"windows"===o||"macos"===o||"linux"===o?c="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(c="mobile"),t=Df(Df({},t),{platform:c});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=Df(Df({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=Df(Df({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=Df(Df({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=Df(Df({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function us(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=t.replace(i,"**").length,c=0;c<u&&(null!=(a=t.charAt(c).toString()).match(i)?r+=2:r++,!(r>e));c++)o+=a;return n&&u>e&&(o+="..."),o}return""}function cs(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function fs(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==u(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}function ss(t){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(e){return[2,new Promise((function(e){setTimeout((function(){e(t)}),t)}))]}))}))}return t.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},t.addEvent=function(t,e){var n=fs();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},t.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},t.calLongestCommonSubsequence=function(t,e){return zf(t,e)},t.calLongestCommonSubstring=function(t,e){return $f(t,e)},t.camelCase2Underscore=Wf,t.camelCaseToKebabCase=function(t){return Vf(t)},t.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},t.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},t.convertCamelToKebab=Vf,t.convertCamelToUnder=qf,t.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),us(t,e,n)},t.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,u=null,c=function c(){var f=es()-i;f<e&&f>=0?o=setTimeout(c,e-f):(o=null,n||(u=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=es();var l=n&&!o;return o||(o=setTimeout(c,e)),l&&(u=t.apply(r,a),r=a=null),u}},t.deepCopy=Gf,t.deepCopyObject=function(t){return Gf(t)},t.delCookie=function(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].trim();if(r.startsWith("".concat(t,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1},t.doFn=Xf,t.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},t.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},t.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},t.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,u=n.logFn,c=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r)return!1;var f=t,l=t;if("string"==typeof t&&t.length>=2){var d=t.length;f=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(f," - begin ---")),i&&(l=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?console[e].apply(console,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([l],n)):console[e].apply(console,n),"log"===e&&u(),"error"===e&&c(),o&&console.log("--- ".concat(f," - end ---"))}})),f},t.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.genRndNumString=Yf,t.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),"".concat(t,"{").concat(n,"}")},t.genUniqueNumString=Jf,t.generateRndNum=Zf,t.generateUniqueNum=function(t){return void 0===t&&(t=3),Jf(t)},t.getBrowserInfo=as,t.getCLS=function(){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(t){return rs("layout-shift")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(t,e){var n=0;return Qf(e.value)&&(n=e.value),t+n}),0);e.disconnect(),t(r)}));e.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},t.getCookie=ns,t.getCurrentVersion=function(){return"v3"},t.getDefineListeners=fs,t.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},t.getFCP=os,t.getFID=function(){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(t){return rs("first-input")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-input"===t.entryType}));if(r){e.disconnect();var o=r.processingStart;t(o?Math.round(r.processingStart-r.startTime):0)}}));e.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},t.getFP=is,t.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},t.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=Kf);var r=(n=Object.assign(Kf,n)).type;Qf(t)||(t=new Date(t).getTime()),Qf(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),f=decodeURIComponent("%20%E5%A4%A9%20"),s=decodeURIComponent("%20%E6%97%B6%20"),l=decodeURIComponent("%20%E5%88%86%20"),d=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+f+Math.floor(o/1e3/60/60%24)+s+Math.floor(o/1e3/60%60)+l+(c=Math.floor(o/1e3%60))+d;break;default:i=c}return i},t.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},t.getLCP=function(){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(t){return rs("largest-contentful-paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"largest-contentful-paint"===t.entryType}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},t.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getPerformance=function(t){return void 0===t&&(t=!1),Uf(this,void 0,void 0,(function(){function e(){var e={source:_,os:n(),osVersion:r(),deviceType:o(),network:i(),screenDirection:a(),unloadTime:v-g,redirectTime:h-m,dnsTime:y-w,tcpTime:b-S,sslTime:u(b,E),responseTime:x-O,downloadTime:T-x,firstPaintTime:F,firstContentfulPaintTime:D,domReadyTime:A-k,onloadTime:j-k,whiteTime:x-k,renderTime:I-k,decodedBodySize:C,encodedBodySize:M};Object.keys(e).forEach((function(t){Qf(e[t])&&(e[t]<0?e[t]=0:e[t]=Math.round(e[t]))})),Qf(e.whiteTime)&&e.whiteTime>e.onloadTime&&(e.whiteTime=0);var c={};t||Object.keys(e).forEach((function(t){c[Wf(t)]=e[t]})),Object.keys(c).length?f(c):f(e)}function n(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function r(){var t="",e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return t;var i=o[1];return i?(n&&(t=(i.match(/\d+\.\d+/g)||[])[0]),r&&(t=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t||(t=""),t):t}function o(){var t,e=navigator.userAgent.toLowerCase(),n=e.match(/(ipad)/i)&&"ipad",r=e.match(/iphone os/i)&&"iphone os",o=e.match(/midp/i)&&"midp",i=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=e.match(/ucweb/i)&&"ucweb",u=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",f=e.match(/windows mobile/i)&&"windows mobile";return(t=n||r||o||i||a||u||c||f?r||o||i||a||u||c||f?"phone":n?"ipad":void 0:"pc")||(t=""),t}function i(){var t="",e=window.navigator;if(e.connection&&e.connection.effectiveType)switch(e.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t||(t=""),t}function a(){var t="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function u(t,e){var n=0;return e&&(n=t-e),n}var c,f,s,l,d,p,v,g,h,m,y,w,b,S,E,x,O,T,A,j,I,P,R,C,M,N,_,k,L,F,D;return Bf(this,(function(t){switch(t.label){case 0:if(!rs("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(c=window.performance)||"function"!=typeof c.getEntries||"function"!=typeof c.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(s=new Promise((function(t){f=[t][0]})),l=null,cs(d=c.getEntriesByType("navigation"))&&(l=d[0]),p=new Array(19).fill(0),v=p[0],g=p[1],h=p[2],m=p[3],y=p[4],w=p[5],b=p[6],S=p[7],E=p[8],x=p[9],O=p[10],T=p[11],A=p[12],j=p[13],I=p[14],P=p[15],R=p[16],C=p[17],M=p[18],N=c.timing,_="",l)_="PerformanceNavigationTiming",C=l.decodedBodySize,M=l.encodedBodySize,v=l.unloadEventEnd,g=l.unloadEventStart,h=l.redirectEnd,m=l.redirectStart,y=l.domainLookupEnd,w=l.domainLookupStart,b=l.connectEnd,S=l.connectStart,E=l.secureConnectionStart,x=l.responseStart,O=l.requestStart,T=l.responseEnd,A=l.domContentLoadedEventStart,j=l.loadEventStart,I=l.loadEventEnd,P=l.startTime,R=l.fetchStart;else{if(!N)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];_="PerformanceTiming",v=N.unloadEventEnd,g=N.unloadEventStart,h=N.redirectEnd,m=N.redirectStart,y=N.domainLookupEnd,w=N.domainLookupStart,b=N.connectEnd,S=N.connectStart,E=N.secureConnectionStart,x=N.responseStart,O=N.requestStart,T=N.responseEnd,A=N.domContentLoadedEventStart,j=N.loadEventStart,I=N.loadEventEnd,P=N.navigationStart,R=N.fetchStart}if(k=0,Qf(P))k=P;else{if(!Qf(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];k=R}return[4,Promise.all([is(),os()])];case 1:return L=t.sent(),F=L[0],D=L[1],Qf(I)&&I>0?e():window.addEventListener("load",(function(){window.setTimeout((function(){e()}),0)})),[2,s]}}))}))},t.getQueryParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substring(1).match(e);return null!==n?decodeURIComponent(n[2]):""},t.getScriptQueryParam=function(t,e){void 0===e&&(e=""),e||(e=".js");for(var n=new RegExp("[?&]".concat(t,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(e,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(e)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""},t.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getTTFB=function(){return Uf(this,void 0,void 0,(function(){var t,e;return Bf(this,(function(n){return rs("navigation")&&window.performance&&window.performance.getEntriesByType?(t=performance.getEntriesByType("navigation")[0],0,t?(e=t.responseStart-t.requestStart,[2,Math.round(e)]):[2,0]):[2,0]}))}))},t.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},t.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},t.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},t.inRate=function(t){return Math.random()<t},t.invokeEvent=function(t){var e=fs()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},t.isJSONString=Hf,t.isJsonString=function(t){return Hf(t)},t.isNonEmptyArray=cs,t.isNumber=Qf,t.isSafePWAEnv=function(){var t=as();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},t.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},t.isValidData=function(t,e,n){var r=!1;return"object"!==u(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},t.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},t.isValidHttpUrl=function(t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/.test(t)},t.isValidPhoneNumber=function(t){return/^1\d{10}$/.test(t)},t.isValidUrl=function(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)},t.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=function(){},i=new Promise((function(t,e){var r;n=(r=[t,e])[0],o=r[1]})),a=function(){n("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=t,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),f||!c)return setTimeout((function(){l(u,a,0)}),1),i;function s(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(t,e,n){if(t){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t&&(t=null),void e();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){var i=t;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}}return c?(u.onload=s,u.onerror=function(){s()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&s()},i},t.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},t.loadScript=ts,t.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):ts(e)},t.longestComSubsequence=zf,t.longestComSubstring=$f,t.mNow=es,t.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},t.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},t.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},t.removeEvent=function(t,e){var n=fs(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},t.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,u=void 0===a?10:a,c=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return Uf(r,void 0,void 0,(function(){var r;return Bf(this,(function(o){switch(o.label){case 0:return[4,t.apply(c,f)];case 1:return r=o.sent(),n(r)||++s>=u?[2]:(e(),[2])}}))}))}),i)}()},t.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},t.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==ns(t)&&ns(t)===e||(r=r||"."+u,document.cookie=t+"="+e+i+"; path=/; domain="+r))},t.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&cs(r)&&r[1]&&t.width(r[1]),o&&cs(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&cs(r)&&r[1]&&(e.style.width=r[1]),o&&cs(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},t.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},t.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},t.sleep=function(t){return Uf(this,void 0,void 0,(function(){return Bf(this,(function(e){return[2,ss(t)]}))}))},t.throttle=function(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],f=function(){c=!1===n.leading?0:es(),i=null,u=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=es();c||!1!==n.leading||(c=l);var d=e-(l-c);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),c=l,u=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),u}},t.truncateZHString=us,t.unsanitize=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))},t.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},t.waitTime=ss,t.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},t.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
6
|
+
var mazey=function(e){"use strict";var n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},n.apply(this,arguments)};function t(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function r(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(e,a)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}function o(e,n){for(var t=e.length,r=n.length,o=s(new Array(t).fill(new Array(r).fill(0))),i=0;i<t;++i)for(var a=0;a<r;++a)if(e[i]===n[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function i(e,n){for(var t=e.length,r=n.length,o=s(new Array(t).fill(new Array(r).fill(0))),i=0;i<t;++i)for(var a=0;a<r;++a)if(e[i]===n[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],d=c[0],f=c[1];a>0&&(d=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(d,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function a(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function u(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function c(e){return u(e)}function s(e){if("object"!=typeof e)return e;var t=["string","number","boolean","undefined"];return Object.values(e).every((function(e){return t.includes(typeof e)}))?n({},e):JSON.parse(JSON.stringify(e))}function d(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function f(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function l(e){return void 0===e&&(e=5),f(e)}function g(e){void 0===e&&(e=3);var n=[w(),l(e||3)];return n[0]+n[1]}"function"==typeof SuppressedError&&SuppressedError;var p={type:"d"};function v(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function m(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function h(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return s.type="text/javascript",c&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,m(a),m(t,"loaded"))}:s.onload=function(){m(a),m(t,"loaded")},s.src=e,d&&d.parentNode.insertBefore(s,d),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function w(){return Date.now?Date.now():(new Date).getTime()}function y(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function b(e){var n=[],t=window.PerformanceObserver;return!!t&&(x(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function S(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return b("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function E(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return b("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function A(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return e;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&x(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),e=n(n({},e),{system:i,appleType:a});var u="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?u="2000":r(/windows nt 5.1|windows xp/g)?u="xp":r(/windows nt 5.2|windows 2003/g)?u="2003":r(/windows nt 6.0|windows vista/g)?u="vista":r(/windows nt 6.1|windows 7/g)?u="7":r(/windows nt 6.2|windows 8/g)?u="8":r(/windows nt 6.3|windows 8.1/g)?u="8.1":r(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),e=n(n({},e),{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),e=n(n({},e),{platform:c});var s="",d="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",d="firefox"):r(/presto/g)?(s="presto",d="opera"):r(/trident|compatible|msie/g)&&(s="trident",d="iexplore"),e=n(n({},e),{engine:s,supporter:d});var f="";"webkit"===s?f=o(/applewebkit\/[\d._]+/g):"gecko"===s?f=o(/gecko\/[\d._]+/g):"presto"===s?f=o(/presto\/[\d._]+/g):"trident"===s&&(f=o(/trident\/[\d._]+/g)),e=n(n({},e),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),e=n(n({},e),{supporterVs:l});var g="",p="";return r(/micromessenger/g)?(g="wechat",p=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(g="qq_browser",p=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?g="qq_app":r(/ucbrowser/g)?(g="uc",p=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?g="360":r(/2345explorer/g)?(g="2345",p=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?g="sougou":r(/lbbrowser/g)?g="liebao":r(/maxthon/g)?(g="maxthon",p=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(g="bilibili"),e=n(n({},e),{shell:g,shellVs:p}),window.MAZEY_BROWSER_INFO=e,e}catch(n){return console.warn("MazeyCon:",n),e}}function T(e,n,t){if(void 0===t&&(t=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>n));c++)o+=a;return t&&u>n&&(o+="..."),o}return""}function x(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function C(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function M(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}return e.addClass=function(e,n){var t,r=e.className,o="";""!==r&&(o=" "),t=r+o+n,e.className=t},e.addEvent=function(e,n){var t=C();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)},e.addStyle=function(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0},e.calLongestCommonSubsequence=function(e,n){return i(e,n)},e.calLongestCommonSubstring=function(e,n){return o(e,n)},e.camelCase2Underscore=c,e.camelCaseToKebabCase=function(e){return a(e)},e.cancelBubble=function(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},e.clearHtml=function(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},e.convert10To26=function(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n},e.convertCamelToKebab=a,e.convertCamelToUnder=u,e.cutCHSString=function(e,n,t){return void 0===t&&(t=!1),T(e,n,t)},e.debounce=function(e,n,t){var r=null,o=null,i=null,a=null,u=null,c=function c(){var s=w()-i;s<n&&s>=0?o=setTimeout(c,n-s):(o=null,t||(u=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];r=this,a=s,i=w();var f=t&&!o;return o||(o=setTimeout(c,n)),f&&(u=e.apply(r,a),r=a=null),u}},e.deepCopy=s,e.deepCopyObject=function(e){return s(e)},e.delCookie=function(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1},e.doFn=m,e.floatFixed=function(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)},e.floatToPercent=function(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")},e.formatDate=function(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),hh:t.getHours()<10?"0"+t.getHours():t.getHours(),mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds()},o=n||"yyyy-MM-dd";return Object.keys(r).forEach((function(e){var n=r[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),o=o.replace(e,String(n))})),o},e.genCustomConsole=function(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),r=t.isClosed,o=t.showWrap,i=t.showDate,a=t.locales,u=t.logFn,c=t.errorFn,s=Object.create(null),d=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){s[n]=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(r)return!1;var s=e,f=e;if("string"==typeof e&&e.length>=2){var l=e.length;s=":"===e[l-1]?e.substring(0,l-1):e}o&&console.log("--- ".concat(s," - begin ---")),i&&(f=e?"".concat(d()," ").concat(e):"".concat(d())),e||i?console[n].apply(console,function(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}([f],t,!1)):console[n].apply(console,t),"log"===n&&u(),"error"===n&&c(),o&&console.log("--- ".concat(s," - end ---"))}})),s},e.genHashCode=function(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.genRndNumString=f,e.genStyleString=function(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")},e.genUniqueNumString=g,e.generateRndNum=l,e.generateUniqueNum=function(e){return void 0===e&&(e=3),g(e)},e.getBrowserInfo=A,e.getCLS=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return b("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return v(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},e.getCookie=y,e.getCurrentVersion=function(){return"v3"},e.getDefineListeners=C,e.getDomain=function(e,n){void 0===n&&(n=["hostname"]);var t=document.createElement("a");return t.href=e,n.reduce((function(e,n){return e+=t[n]}),"")},e.getFCP=S,e.getFID=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return b("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},e.getFP=E,e.getFileSize=function(e){var n=function(e){return String(Math.ceil(e))};if(!e)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"},e.getFriendlyInterval=function(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=p);var r=(t=Object.assign(p,t)).type;v(e)||(e=new Date(e).getTime()),v(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(c=Math.floor(o/1e3%60))+l;break;default:i=c}return i},e.getHashQueryParam=function(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""},e.getLCP=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return b("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},e.getLocalStorage=function(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getPerformance=function(e){return void 0===e&&(e=!1),t(this,void 0,void 0,(function(){function n(){var n={source:z,os:t(),osVersion:o(),deviceType:i(),network:a(),screenDirection:u(),unloadTime:h-w,redirectTime:y-A,dnsTime:T-C,tcpTime:M-O,sslTime:s(M,P),responseTime:N-_,downloadTime:k-N,firstPaintTime:V,firstContentfulPaintTime:W,domReadyTime:R-q,onloadTime:F-q,whiteTime:N-q,renderTime:B-q,decodedBodySize:D,encodedBodySize:L};Object.keys(n).forEach((function(e){v(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),v(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var r={};e||Object.keys(n).forEach((function(e){r[c(e)]=n[e]})),Object.keys(r).length?f(r):f(n)}function t(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",u=n.match(/android/i)&&"android",c=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||u||c||s?r||o||i||a||u||c||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function u(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function s(e,n){var t=0;return n&&(t=e-n),t}var d,f,l,g,p,m,h,w,y,A,T,C,M,O,P,N,_,k,R,F,B,I,j,D,L,U,z,q,Z,V,W;return r(this,(function(e){switch(e.label){case 0:if(!b("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(d=window.performance)||"function"!=typeof d.getEntries||"function"!=typeof d.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){f=[e][0]})),g=null,x(p=d.getEntriesByType("navigation"))&&(g=p[0]),m=new Array(19).fill(0),h=m[0],w=m[1],y=m[2],A=m[3],T=m[4],C=m[5],M=m[6],O=m[7],P=m[8],N=m[9],_=m[10],k=m[11],R=m[12],F=m[13],B=m[14],I=m[15],j=m[16],D=m[17],L=m[18],U=d.timing,z="",g)z="PerformanceNavigationTiming",D=g.decodedBodySize,L=g.encodedBodySize,h=g.unloadEventEnd,w=g.unloadEventStart,y=g.redirectEnd,A=g.redirectStart,T=g.domainLookupEnd,C=g.domainLookupStart,M=g.connectEnd,O=g.connectStart,P=g.secureConnectionStart,N=g.responseStart,_=g.requestStart,k=g.responseEnd,R=g.domContentLoadedEventStart,F=g.loadEventStart,B=g.loadEventEnd,I=g.startTime,j=g.fetchStart;else{if(!U)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];z="PerformanceTiming",h=U.unloadEventEnd,w=U.unloadEventStart,y=U.redirectEnd,A=U.redirectStart,T=U.domainLookupEnd,C=U.domainLookupStart,M=U.connectEnd,O=U.connectStart,P=U.secureConnectionStart,N=U.responseStart,_=U.requestStart,k=U.responseEnd,R=U.domContentLoadedEventStart,F=U.loadEventStart,B=U.loadEventEnd,I=U.navigationStart,j=U.fetchStart}if(q=0,v(I))q=I;else{if(!v(j))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];q=j}return[4,Promise.all([E(),S()])];case 1:return Z=e.sent(),V=Z[0],W=Z[1],v(B)&&B>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))},e.getQueryParam=function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""},e.getScriptQueryParam=function(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""},e.getSessionStorage=function(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getTTFB=function(){return t(this,void 0,void 0,(function(){var e,n;return r(this,(function(t){return b("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))},e.getUrlFileType=function(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n},e.getUrlParam=function(e,n){var t={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,r){if(void 0!==t[n]){var o=t[n];t[n]=[].concat(o,r)}else t[n]=r;return""})),t[n]||""},e.hasClass=function(e,n){for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1},e.inRate=function(e){return Math.random()<e},e.invokeEvent=function(e){var n=C()[e];if(n instanceof Array)for(var t=0,r=n.length;t<r;t++)"function"==typeof n[t]&&n[t]({type:e})},e.isJSONString=d,e.isJsonString=function(e){return d(e)},e.isNonEmptyArray=x,e.isNumber=v,e.isSafePWAEnv=function(){var e=A();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},e.isSupportWebp=function(){return new Promise((function(e){var n=new Image;n.onload=function(){e(n.width>0&&n.height>0)},n.onerror=function(){e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isValidData=function(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r},e.isValidEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},e.isValidHttpUrl=function(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)},e.isValidPhoneNumber=function(e){return/^1\d{10}$/.test(e)},e.isValidUrl=function(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)},e.loadCSS=function(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=e,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){f(u,a,0)}),1),i;function d(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function f(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():f(e,n,t)}),20)}}return c?(u.onload=d,u.onerror=function(){d()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&d()},i},e.loadImage=function(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))},e.loadScript=h,e.loadScriptIfUndefined=function(e,n){return window[e]?Promise.resolve("defined"):h(n)},e.longestComSubsequence=i,e.longestComSubstring=o,e.mNow=w,e.mTrim=function(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)},e.newLine=function(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")},e.removeClass=function(e,n){var t;t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t},e.removeEvent=function(e,n){var t=C(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]},e.repeatUntilConditionMet=function(e,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(e){return!0===e});var a=n.interval,u=void 0===a?1e3:a,c=n.times,s=void 0===c?10:c,d=n.context,f=n.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function n(){setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,e.apply(d,f)];case 1:return t=r.sent(),o(t)||++l>=s?[2]:(n(),[2])}}))}))}),u)}()},e.sanitizeInput=function(e){var n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))},e.setCookie=function(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==y(e)&&y(e)===n||(r=r||"."+u,document.cookie=e+"="+n+i+"; path=/; domain="+r))},e.setImgWidHeiBySrc=function(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&x(r)&&r[1]&&e.width(r[1]),o&&x(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&x(r)&&r[1]&&(n.style.width=r[1]),o&&x(o)&&o[1]&&(n.style.height=o[1])}}})),!0)},e.setLocalStorage=function(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))},e.setSessionStorage=function(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))},e.sleep=function(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,M(e)]}))}))},e.throttle=function(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],s=function(){c=!1===t.leading?0:w(),i=null,u=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=w();c||!1!==t.leading||(c=f);var l=n-(f-c);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),c=f,u=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),u}},e.truncateZHString=T,e.unsanitize=function(e){var n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,(function(e){return n[e]}))},e.updateQueryParam=function(e,n,t){var r=new RegExp("([?&])"+n+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+n+"="+t+"$2"):e+o+n+"="+t},e.waitTime=M,e.windowLoaded=function(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r},e.zAxiosIsValidRes=function(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},e}({});
|