mazey 3.2.0 → 3.3.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/LICENSE +21 -21
- package/README.md +532 -496
- package/README_CN.md +334 -334
- package/{src/example.html → examples/index.html} +21 -21
- package/examples/index.ts +32 -0
- package/index.js +47 -3
- package/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +130 -56
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/mazey.min.js +1 -1
- package/package.json +109 -109
- package/scripts/release.js +28 -28
- package/src/index.ts +1595 -1426
- package/webpack.config.dev.js +39 -0
- package/src/example.ts +0 -49
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Test Page</title>
|
|
6
|
-
<link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
|
|
7
|
-
<style>
|
|
8
|
-
.box {
|
|
9
|
-
color: #333;
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div class="container">
|
|
15
|
-
<div class="box">
|
|
16
|
-
<span>Box</span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="s"></div>
|
|
19
|
-
</div>
|
|
20
|
-
</body>
|
|
21
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Test Page</title>
|
|
6
|
+
<link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
|
|
7
|
+
<style>
|
|
8
|
+
.box {
|
|
9
|
+
color: #333;
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div class="container">
|
|
15
|
+
<div class="box">
|
|
16
|
+
<span>Box</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="s"></div>
|
|
19
|
+
</div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isNumber,
|
|
3
|
+
getUrlParam,
|
|
4
|
+
updateQueryParam,
|
|
5
|
+
getHashQueryParam,
|
|
6
|
+
getDomain,
|
|
7
|
+
camelCaseToKebabCase,
|
|
8
|
+
camelCase2Underscore,
|
|
9
|
+
generateRndNum,
|
|
10
|
+
isNonEmptyArray,
|
|
11
|
+
getFileSize,
|
|
12
|
+
isSupportWebp,
|
|
13
|
+
genHashCode,
|
|
14
|
+
} from '../src/index';
|
|
15
|
+
|
|
16
|
+
// Sync
|
|
17
|
+
console.log('Is Infinity number?', isNumber(Infinity, { isUnFiniteAsNumber: true }));
|
|
18
|
+
console.log('Did ttt exist?', getHashQueryParam('ttt'));
|
|
19
|
+
console.log('What is t3?', getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3'));
|
|
20
|
+
console.log('Can query param update successfully?', updateQueryParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3', 'three'));
|
|
21
|
+
console.log('What is domain?', getDomain('http://example.com/?t1=1&t2=2&t3=3&t4=4'));
|
|
22
|
+
console.log('Get KebabCase:', camelCaseToKebabCase('aBC'));
|
|
23
|
+
console.log('Get Underscore:', camelCase2Underscore('bBC'));
|
|
24
|
+
console.log('Get a string with random number:', generateRndNum(7));
|
|
25
|
+
console.log('Is non-empty array?', isNonEmptyArray(['a', 123]));
|
|
26
|
+
console.log('Get file size:', getFileSize(2000));
|
|
27
|
+
console.log('Generate a Hash from a string:', genHashCode('123'));
|
|
28
|
+
|
|
29
|
+
// Async
|
|
30
|
+
(async () => {
|
|
31
|
+
console.log('Detect webp support:', await isSupportWebp());
|
|
32
|
+
})();
|
package/index.js
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author: Mazey Chu
|
|
3
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* @author: Mazey Chu
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Define event.
|
|
6
|
+
let defineListeners = {};
|
|
7
|
+
|
|
8
|
+
// Add event.
|
|
9
|
+
function addEvent(type, fn) {
|
|
10
|
+
if (typeof defineListeners[type] === "undefined") {
|
|
11
|
+
defineListeners[type] = [];
|
|
12
|
+
}
|
|
13
|
+
if (typeof fn === "function") {
|
|
14
|
+
defineListeners[type].push(fn);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Invoke event.
|
|
19
|
+
function fireEvent(type) {
|
|
20
|
+
let arrayEvent = defineListeners[type];
|
|
21
|
+
if (arrayEvent instanceof Array) {
|
|
22
|
+
for (let i = 0, length = arrayEvent.length; i < length; i++) {
|
|
23
|
+
if (typeof arrayEvent[i] === "function") {
|
|
24
|
+
arrayEvent[i]({
|
|
25
|
+
type: type
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Remove event.
|
|
33
|
+
function removeEvent(type, fn) {
|
|
34
|
+
let arrayEvent = defineListeners[type];
|
|
35
|
+
if (typeof type === "string" && arrayEvent instanceof Array) {
|
|
36
|
+
if (typeof fn === "function") {
|
|
37
|
+
for (let i = 0, length = arrayEvent.length; i < length; i++) {
|
|
38
|
+
if (arrayEvent[i] === fn) {
|
|
39
|
+
defineListeners[type].splice(i, 1);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
delete defineListeners[type];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,s=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?d.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return p(v(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=g(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return f(!u.f.call(e,t),e[t])}},j=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,P={f:i?A:function(e,t,n){if(j(e),t=m(t,!0),j(n),E)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_=i?function(e,t,n){return P.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{_(r,e,t)}catch(n){r[e]=t}return t},C=r["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(e){return M.call(e)});var L,k,I,N=C.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(N(F)),B=t((function(e){(e.exports=function(e,t){return C[e]||(C[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),$=0,U=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++$+U).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},H={},W=r.WeakMap;if(D){var z=new W,K=z.get,J=z.has,Y=z.set;L=function(e,t){return Y.call(z,e,t),t},k=function(e){return K.call(z,e)||{}},I=function(e){return J.call(z,e)}}else{var X=G("state");H[X]=!0,L=function(e,t){return _(e,X,t),t},k=function(e){return w(e,X)?e[X]:{}},I=function(e){return w(e,X)}}var Q,Z,ee={set:L,get:k,has:I,enforce:function(e){return I(e)?k(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=k(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||_(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=i:_(e,t,i)):u?e[t]=i:R(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,fe=function(e){return e>0?ue(ce(e),9007199254740991):0},le=Math.max,se=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):se(n,t)},pe=function(e){return function(t,n,r){var o,i=g(t),a=fe(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ve={includes:pe(!0),indexOf:pe(!1)},ge=ve.indexOf,he=function(e,t){var n,r=g(e),o=0,i=[];for(n in r)!w(H,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ge(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=P.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=je[Te(e)];return n==Pe||n!=Ae&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},je=Oe.data={},Ae=Oe.NATIVE="N",Pe=Oe.POLYFILL="P",_e=Oe,Re=T.f,Ce=function(e,t){var n,o,i,a,c,u=e.target,f=e.global,l=e.stat;if(n=f?r:l?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Re(n,o))&&c.value:n[o],!_e(f?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&_(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==s(e)},Le=function(e){return Object(v(e))},ke=function(e,t,n){var r=m(t);r in e?P.f(e,r,f(0,n)):e[r]=n},Ie=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ne=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ne?De:De&&De.withoutSetter||q,$e=function(e){return w(Fe,e)||(Ie&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},Ue=$e("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[Ue])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,He=Ge&&Ge.versions,We=He&&He.v8;We?Z=(Q=We.split("."))[0]+Q[1]:Ve&&(!(Q=Ve.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Ve.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var ze=Z&&+Z,Ke=$e("species"),Je=function(e){return ze>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ye=$e("isConcatSpreadable"),Xe=ze>=51||!o((function(){var e=[];return e[Ye]=!1,e.concat()[0]!==e})),Qe=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Ye];return void 0!==t?!!t:Me(e)};Ce({target:"Array",proto:!0,forced:!Xe||!Qe},{concat:function(e){var t,n,r,o,i,a=Le(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=fe(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&ke(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ke(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){j(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)P.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};H[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=j(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},ft=$e("unscopables"),lt=Array.prototype;null==lt[ft]&&P.f(lt,ft,{configurable:!0,value:ut(null)});var st;Ce({target:"Array",proto:!0},{fill:function(e){for(var t=Le(this),n=fe(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),st="fill",lt[ft][st]=!0;var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},vt=[].push,gt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,f,l){for(var s,d,v=Le(c),g=p(v),h=pt(u,f,3),m=fe(g.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[y],y,v),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:vt.call(x,s)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:gt(0),map:gt(1),filter:gt(2),some:gt(3),every:gt(4),find:gt(5),findIndex:gt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};Ce({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var jt=ve.indexOf,At=[].indexOf,Pt=!!At&&1/[1].indexOf(1,-0)<0,_t=mt("indexOf"),Rt=bt("indexOf",{ACCESSORS:!0,1:0});Ce({target:"Array",proto:!0,forced:Pt||!_t||!Rt},{indexOf:function(e){return Pt?At.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Ct=[].join,Mt=p!=Object,Lt=mt("join",",");Ce({target:"Array",proto:!0,forced:Mt||!Lt},{join:function(e){return Ct.call(g(this),void 0===e?",":e)}});var kt=function(e){return function(t,n,r,o){dt(n);var i=Le(t),a=p(i),c=fe(i.length),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},It={left:kt(!1),right:kt(!0)}.left,Nt=mt("reduce"),Ft=bt("reduce",{1:0});Ce({target:"Array",proto:!0,forced:!Nt||!Ft},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Dt=Je("slice"),Bt=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=$e("species"),Ut=[].slice,qt=Math.max;Ce({target:"Array",proto:!0,forced:!Dt||!Bt},{slice:function(e,t){var n,r,o,i=g(this),a=fe(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ut.call(i,c,u);for(r=new(void 0===n?Array:n)(qt(u-c,0)),o=0;c<u;c++,o++)c in i&&ke(r,o,i[c]);return r.length=o,r}});var Vt=P.f,Gt=Function.prototype,Ht=Gt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in Gt)&&Vt(Gt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var zt="".repeat||function(e){var t=String(v(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Kt=1..toFixed,Jt=Math.floor,Yt=function(e,t,n){return 0===t?n:t%2==1?Yt(e,t-1,n*e):Yt(e*e,t/2,n)};Ce({target:"Number",proto:!0,forced:Kt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Kt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=s(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",f="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Jt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Jt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+zt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Yt(2,69,1))-69)<0?i*Yt(2,-t,1):i/Yt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Yt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),f=p()}else l(0,n),l(1<<-t,0),f=p()+zt.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+zt.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var Xt=Object.assign,Qt=Object.defineProperty,Zt=!Xt||o((function(){if(i&&1!==Xt({b:1},Xt(Qt({},"a",{enumerable:!0,get:function(){Qt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Xt({},e)[n]||tt(Xt({},t)).join("")!=r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var f,l=p(arguments[o++]),s=a?tt(l).concat(a(l)):tt(l),d=s.length,v=0;d>v;)f=s[v++],i&&!c.call(l,f)||(n[f]=l[f]);return n}:Xt;Ce({target:"Object",stat:!0,forced:Object.assign!==Zt},{assign:Zt});var en=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tn=G("IE_PROTO"),nn=Object.prototype,rn=en?Object.getPrototypeOf:function(e){return e=Le(e),w(e,tn)?e[tn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nn:null};Ce({target:"Object",stat:!0,forced:o((function(){rn(1)})),sham:!en},{getPrototypeOf:function(e){return rn(Le(e))}}),Ce({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(Le(e))}});var on={};on[$e("toStringTag")]="z";var an="[object z]"===String(on),cn=$e("toStringTag"),un="Arguments"==s(function(){return arguments}()),fn=an?s:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),cn))?n:un?s(t):"Object"==(r=s(t))&&"function"==typeof t.callee?"Arguments":r},ln=an?{}.toString:function(){return"[object "+fn(this)+"]"};an||te(Object.prototype,"toString",ln,{unsafe:!0});var sn="[\t\n\v\f\r \u2028\u2029\ufeff]",dn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$"),vn=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(dn,"")),2&e&&(n=n.replace(pn,"")),n}},gn={start:vn(1),end:vn(2),trim:vn(3)}.trim,hn=r.parseFloat,mn=1/hn("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=gn(String(e)),n=hn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:hn;Ce({global:!0,forced:parseFloat!=mn},{parseFloat:mn});var yn=r.Promise,wn=P.f,xn=$e("toStringTag"),bn=$e("species"),Sn=function(e){var t=oe(e),n=P.f;i&&t&&!t[bn]&&n(t,bn,{configurable:!0,get:function(){return this}})},En={},On=$e("iterator"),Tn=Array.prototype,jn=$e("iterator"),An=function(e,t,n,r){try{return r?t(j(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&j(o.call(e)),t}},Pn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,f,l,s,d,p,v=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||En[fn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(En.Array===p||Tn[On]===p)){for(u=0,f=fe(e.length);f>u;u++)if((l=o?v(j(d=e[u])[0],d[1]):v(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=An(a,v,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),_n=$e("iterator"),Rn=!1;try{var Cn=0,Mn={next:function(){return{done:!!Cn++}},return:function(){Rn=!0}};Mn[_n]=function(){return this},Array.from(Mn,(function(){throw 2}))}catch(e){}var Ln,kn,In,Nn=$e("species"),Fn=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[Nn])?t:dt(n)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Bn=r.location,$n=r.setImmediate,Un=r.clearImmediate,qn=r.process,Vn=r.MessageChannel,Gn=r.Dispatch,Hn=0,Wn={},zn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Kn=function(e){return function(){zn(e)}},Jn=function(e){zn(e.data)},Yn=function(e){r.postMessage(e+"",Bn.protocol+"//"+Bn.host)};$n&&Un||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Ln(Hn),Hn},Un=function(e){delete Wn[e]},"process"==s(qn)?Ln=function(e){qn.nextTick(Kn(e))}:Gn&&Gn.now?Ln=function(e){Gn.now(Kn(e))}:Vn&&!Dn?(In=(kn=new Vn).port2,kn.port1.onmessage=Jn,Ln=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===Bn.protocol?Ln="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),zn(e)}}:function(e){setTimeout(Kn(e),0)}:(Ln=Yn,r.addEventListener("message",Jn,!1)));var Xn,Qn,Zn,er,tr,nr,rr,or,ir={set:$n,clear:Un},ar=T.f,cr=ir.set,ur=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,sr="process"==s(fr),dr=ar(r,"queueMicrotask"),pr=dr&&dr.value;pr||(Xn=function(){var e,t;for(sr&&(e=fr.domain)&&e.exit();Qn;){t=Qn.fn,Qn=Qn.next;try{t()}catch(e){throw Qn?er():Zn=void 0,e}}Zn=void 0,e&&e.enter()},sr?er=function(){fr.nextTick(Xn)}:ur&&!Dn?(tr=!0,nr=document.createTextNode(""),new ur(Xn).observe(nr,{characterData:!0}),er=function(){nr.data=tr=!tr}):lr&&lr.resolve?(rr=lr.resolve(void 0),or=rr.then,er=function(){or.call(rr,Xn)}):er=function(){cr.call(r,Xn)});var vr,gr,hr,mr,yr,wr,xr,br=pr||function(e){var t={fn:e,next:void 0};Zn&&(Zn.next=t),Qn||(Qn=t,er()),Zn=t},Sr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Er={f:function(e){return new Sr(e)}},Or=function(e,t){if(j(e),h(t)&&t.constructor===e)return t;var n=Er.f(e);return(0,n.resolve)(t),n.promise},Tr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ir.set,Ar=$e("species"),Pr="Promise",_r=ee.get,Rr=ee.set,Cr=ee.getterFor(Pr),Mr=yn,Lr=r.TypeError,kr=r.document,Ir=r.process,Nr=oe("fetch"),Fr=Er.f,Dr=Fr,Br="process"==s(Ir),$r=!!(kr&&kr.createEvent&&r.dispatchEvent),Ur=_e(Pr,(function(){if(!(N(Mr)!==String(Mr))){if(66===ze)return!0;if(!Br&&"function"!=typeof PromiseRejectionEvent)return!0}if(ze>=51&&/native code/.test(Mr))return!1;var e=Mr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Ar]=t,!(e.then((function(){}))instanceof t)})),qr=Ur||!function(e,t){if(!t&&!Rn)return!1;var n=!1;try{var r={};r[_n]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Mr.all(e).catch((function(){}))})),Vr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},Gr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;br((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,f,l=r[a++],s=i?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{s?(i||(2===t.rejection&&Kr(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Lr("Promise-chain cycle")):(u=Vr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!f&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=kr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(zr(t)&&(n=Tr((function(){Br?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Br||zr(t)?2:1,n.error))throw n.value}))},zr=function(e){return 1!==e.rejection&&!e.parent},Kr=function(e,t){jr.call(r,(function(){Br?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Jr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Yr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Gr(e,t,!0))},Xr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Lr("Promise can't be resolved itself");var o=Vr(n);o?br((function(){var r={done:!1};try{o.call(n,Jr(Xr,e,r,t),Jr(Yr,e,r,t))}catch(n){Yr(e,r,n,t)}})):(t.value=n,t.state=1,Gr(e,t,!1))}catch(n){Yr(e,{done:!1},n,t)}}};Ur&&(Mr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Mr,Pr),dt(e),vr.call(this);var t=_r(this);try{e(Jr(Xr,this,t),Jr(Yr,this,t))}catch(e){Yr(this,t,e)}},(vr=function(e){Rr(this,{type:Pr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(Mr.prototype,{then:function(e,t){var n=Cr(this),r=Fr(Fn(this,Mr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Br?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),gr=function(){var e=new vr,t=_r(e);this.promise=e,this.resolve=Jr(Xr,e,t),this.reject=Jr(Yr,e,t)},Er.f=Fr=function(e){return e===Mr||e===hr?new gr(e):Dr(e)},"function"==typeof yn&&(mr=yn.prototype.then,te(yn.prototype,"then",(function(e,t){var n=this;return new Mr((function(e,t){mr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Nr&&Ce({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Or(Mr,Nr.apply(r,arguments))}}))),Ce({global:!0,wrap:!0,forced:Ur},{Promise:Mr}),wr=Pr,xr=!1,(yr=Mr)&&!w(yr=xr?yr:yr.prototype,xn)&&wn(yr,xn,{configurable:!0,value:wr}),Sn(Pr),hr=oe(Pr),Ce({target:Pr,stat:!0,forced:Ur},{reject:function(e){var t=Fr(this);return t.reject.call(void 0,e),t.promise}}),Ce({target:Pr,stat:!0,forced:Ur},{resolve:function(e){return Or(this,e)}}),Ce({target:Pr,stat:!0,forced:qr},{all:function(e){var t=this,n=Fr(t),r=n.resolve,o=n.reject,i=Tr((function(){var n=dt(t.resolve),i=[],a=0,c=1;Pn(e,(function(e){var u=a++,f=!1;i.push(void 0),c++,n.call(t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Fr(t),r=n.reject,o=Tr((function(){var o=dt(t.resolve);Pn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return j(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Zr=$e("match"),eo=function(e){var t;return h(e)&&(void 0!==(t=e[Zr])?!!t:"RegExp"==s(e))},to=function(){var e=j(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function no(e,t){return RegExp(e,t)}var ro={UNSUPPORTED_Y:o((function(){var e=no("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=no("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},oo=P.f,io=we.f,ao=ee.set,co=$e("match"),uo=r.RegExp,fo=uo.prototype,lo=/a/g,so=/a/g,po=new uo(lo)!==lo,vo=ro.UNSUPPORTED_Y;if(i&&_e("RegExp",!po||vo||o((function(){return so[co]=!1,uo(lo)!=lo||uo(so)==so||"/a/i"!=uo(lo,"i")})))){for(var go=function(e,t){var n,r=this instanceof go,o=eo(e),i=void 0===t;if(!r&&o&&e.constructor===go&&i)return e;po?o&&!i&&(e=e.source):e instanceof go&&(i&&(t=to.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,f,l,s=(a=po?new uo(e,t):uo(e,t),c=r?this:fo,u=go,Qr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Qr(a,l),a);return vo&&n&&ao(s,{sticky:n}),s},ho=function(e){e in go||oo(go,e,{configurable:!0,get:function(){return uo[e]},set:function(t){uo[e]=t}})},mo=io(uo),yo=0;mo.length>yo;)ho(mo[yo++]);fo.constructor=go,go.prototype=fo,te(r,"RegExp",go)}Sn("RegExp");var wo=RegExp.prototype.exec,xo=String.prototype.replace,bo=wo,So=function(){var e=/a/,t=/b*/g;return wo.call(e,"a"),wo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Eo=ro.UNSUPPORTED_Y||ro.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(So||Oo||Eo)&&(bo=function(e){var t,n,r,o,i=this,a=Eo&&i.sticky,c=to.call(i),u=i.source,f=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Oo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),So&&(t=i.lastIndex),r=wo.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:So&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Oo&&r&&r.length>1&&xo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var To=bo;Ce({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var jo=RegExp.prototype,Ao=jo.toString,Po=o((function(){return"/a/b"!=Ao.call({source:"a",flags:"b"})})),_o="toString"!=Ao.name;(Po||_o)&&te(RegExp.prototype,"toString",(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?to.call(e):n)}),{unsafe:!0});var Ro=$e("species"),Co=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Mo="$0"==="a".replace(/./,"$0"),Lo=$e("replace"),ko=!!/./[Lo]&&""===/./[Lo]("a","$0"),Io=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),No=function(e,t,n,r){var i=$e(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ro]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!Co||!Mo||ko)||"split"===e&&!Io){var u=/./[i],f=n(i,""[e],(function(e,t,n,r,o){return t.exec===To?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Mo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ko}),l=f[0],s=f[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&_(RegExp.prototype[i],"sham",!0)},Fo=function(e){return function(t,n){var r,o,i=String(v(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Do={codeAt:Fo(!1),charAt:Fo(!0)}.charAt,Bo=function(e,t,n){return t+(n?Do(e,t).length:1)},$o=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(e))throw TypeError("RegExp#exec called on incompatible receiver");return To.call(e,t)};No("match",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this);if(!o.global)return $o(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=$o(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=Bo(i,fe(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Uo=Math.max,qo=Math.min,Vo=Math.floor,Go=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ho=/\$([$&'`]|\d\d?)/g,Wo=function(e){return void 0===e?e:String(e)};No("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=v(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var f=j(e),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var g=$o(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=Bo(l,fe(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),x=Uo(qo(ce(g.index),l.length),0),b=[],S=1;S<g.length;S++)b.push(Wo(g[S]));var E=g.groups;if(s){var O=[w].concat(b,x,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,x,b,E,r);x>=m&&(h+=l.slice(m,x)+T,m=x+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,f=Ho;return void 0!==i&&(i=Le(i),f=Go),t.call(a,f,(function(t,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var s=Vo(l/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}f=o[l-1]}return void 0===f?"":f}))}}));var zo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};No("search",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this),a=o.lastIndex;zo(a,0)||(o.lastIndex=0);var c=$o(o,i);return zo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Ko=[].push,Jo=Math.min,Yo=!o((function(){return!RegExp(4294967295,"y")}));No("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(v(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!eo(e))return t.call(r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,f+"g");(i=To.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Ko.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=v(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=j(e),c=String(this),u=Fn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yo?"y":"g"),s=new u(Yo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===$o(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Yo?v:0;var h,m=$o(s,Yo?c:c.slice(v));if(null===m||(h=Jo(fe(s.lastIndex+(Yo?0:v)),c.length))===p)v=Bo(c,v,f);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!Yo);for(var Xo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Qo=r[Xo],Zo=Qo&&Qo.prototype;if(Zo&&Zo.forEach!==Tt)try{_(Zo,"forEach",Tt)}catch(e){Zo.forEach=Tt}}var ei=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function ti(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ni(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ri(e){return JSON.parse(JSON.stringify(e))}function oi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ii(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function ai(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function ci(){return Date.now?Date.now():(new Date).getTime()}function ui(e){for(var t=e+"=",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(t))return o.substring(t.length,o.length)}return""}function fi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addStyle=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o=""+t.id,(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],l=u[1];a>0&&(f=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(f,l)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},exports.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[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)},exports.camelCase2Underscore=ni,exports.camelCaseToKebabCase=function(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),void 0===n&&(n=!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>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=ci()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];r=this,a=f,i=ci();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ri,exports.doFn=ai,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;ii(e)||(e=new Date(e).getTime()),ii(t)||(t=new Date(t).getTime());var i=t-e,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,ti([e],o)):(r=console)[n].apply(r,o)}})),t},exports.generateRndNum=oi,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[ci(),oi(e||3)];return t[0]+t[1]},exports.getBrowserInfo=fi,exports.getCookie=ui,exports.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:f(),osVersion:l(),deviceType:s(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(e){ii(g[e])&&g[e]<0&&(g[e]=0)})),ii(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)e||Object.keys(g).forEach((function(e){i||(i={}),i[ni(e)]=g[e]})),t(i||g);else n("startTime")}else n("getEntries")}function f(){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 l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function s(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.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}function p(){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 v(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){void 0===e&&(e="");try{if("object"===ei(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNumber=ii,exports.isSafePWAEnv=function(){var e=fi();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)},exports.loadCSS=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n,o=null,i=new Promise((function(e,t){var n;o=(n=[e,t])[0],n[1]})),a=function(){ai(o,!0)},c=document.createElement("link"),u="onload"in c,f=+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),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i},exports.loadScript=function(e,t){void 0===e&&(e="");var n=void 0===t?{}:t,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,ai(a),ai(s,!0))}:p.onload=function(){ai(a),ai(s,!0)},p.src=e,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,t){var n;s=(n=[e,t])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))},exports.mNow=ci,exports.mTrim=function(e){void 0===e&&(e="");for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(void 0===e&&(e=""),!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==ui(e)&&ui(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:ci(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=ci();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},exports.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t=function(){},n=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("timeout")}),1e3*e),r};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f={}.toString,l=function(e){return f.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==l(e)?d.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=function(e){return p(g(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=v(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return s(!u.f.call(e,t),e[t])}},A=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},j=Object.defineProperty,P={f:i?j:function(e,t,n){if(A(e),t=m(t,!0),A(n),E)try{return j(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C=i?function(e,t,n){return P.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{C(r,e,t)}catch(n){r[e]=t}return t},_=r["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(e){return M.call(e)});var k,N,L,I=_.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(I(F)),B=t((function(e){(e.exports=function(e,t){return _[e]||(_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,$=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++U+$).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},z={},H=r.WeakMap;if(D){var W=new H,K=W.get,J=W.has,Q=W.set;k=function(e,t){return Q.call(W,e,t),t},N=function(e){return K.call(W,e)||{}},L=function(e){return J.call(W,e)}}else{var X=G("state");z[X]=!0,k=function(e,t){return C(e,X,t),t},N=function(e){return w(e,X)?e[X]:{}},L=function(e){return w(e,X)}}var Y,Z,ee={set:k,get:N,has:L,enforce:function(e){return L(e)?N(e):k(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=N(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||C(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!s&&e[t]&&(u=!0):delete e[t],u?e[t]=i:C(e,t,i)):u?e[t]=i:R(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||I(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,se=function(e){return e>0?ue(ce(e),9007199254740991):0},fe=Math.max,le=Math.min,de=function(e,t){var n=ce(e);return n<0?fe(n+t,0):le(n,t)},pe=function(e){return function(t,n,r){var o,i=v(t),a=se(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ge={includes:pe(!0),indexOf:pe(!1)},ve=ge.indexOf,he=function(e,t){var n,r=v(e),o=0,i=[];for(n in r)!w(z,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ve(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(A(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=P.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=Ae[Te(e)];return n==Pe||n!=je&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},Ae=Oe.data={},je=Oe.NATIVE="N",Pe=Oe.POLYFILL="P",Ce=Oe,Re=T.f,_e=function(e,t){var n,o,i,a,c,u=e.target,s=e.global,f=e.stat;if(n=s?r:f?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Re(n,o))&&c.value:n[o],!Ce(s?o:u+(f?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&C(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==l(e)},ke=function(e){return Object(g(e))},Ne=function(e,t,n){var r=m(t);r in e?P.f(e,r,s(0,n)):e[r]=n},Le=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ie=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ie?De:De&&De.withoutSetter||q,Ue=function(e){return w(Fe,e)||(Le&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},$e=Ue("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$e])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,ze=Ge&&Ge.versions,He=ze&&ze.v8;He?Z=(Y=He.split("."))[0]+Y[1]:Ve&&(!(Y=Ve.match(/Edge\/(\d+)/))||Y[1]>=74)&&(Y=Ve.match(/Chrome\/(\d+)/))&&(Z=Y[1]);var We=Z&&+Z,Ke=Ue("species"),Je=function(e){return We>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ue("isConcatSpreadable"),Xe=We>=51||!o((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),Ye=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Qe];return void 0!==t?!!t:Me(e)};_e({target:"Array",proto:!0,forced:!Xe||!Ye},{concat:function(e){var t,n,r,o,i,a=ke(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=se(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&Ne(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ne(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){A(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)P.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};z[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=A(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},st=Ue("unscopables"),ft=Array.prototype;null==ft[st]&&P.f(ft,st,{configurable:!0,value:ut(null)});var lt=function(e){ft[st][e]=!0};_e({target:"Array",proto:!0},{fill:function(e){for(var t=ke(this),n=se(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),lt("fill");var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},gt=[].push,vt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,s,f){for(var l,d,g=ke(c),v=p(g),h=pt(u,s,3),m=se(v.length),y=0,w=f||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(l=v[y],y,g),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return l;case 6:return y;case 2:gt.call(x,l)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:vt(0),map:vt(1),filter:vt(2),some:vt(3),every:vt(4),find:vt(5),findIndex:vt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};_e({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var At=ge.includes;_e({target:"Array",proto:!0,forced:!bt("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return At(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("includes");var jt=ge.indexOf,Pt=[].indexOf,Ct=!!Pt&&1/[1].indexOf(1,-0)<0,Rt=mt("indexOf"),_t=bt("indexOf",{ACCESSORS:!0,1:0});_e({target:"Array",proto:!0,forced:Ct||!Rt||!_t},{indexOf:function(e){return Ct?Pt.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Mt=[].join,kt=p!=Object,Nt=mt("join",",");_e({target:"Array",proto:!0,forced:kt||!Nt},{join:function(e){return Mt.call(v(this),void 0===e?",":e)}});var Lt=function(e){return function(t,n,r,o){dt(n);var i=ke(t),a=p(i),c=se(i.length),u=e?c-1:0,s=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},It={left:Lt(!1),right:Lt(!0)}.left,Ft=mt("reduce"),Dt=bt("reduce",{1:0});_e({target:"Array",proto:!0,forced:!Ft||!Dt},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Bt=Je("slice"),Ut=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=Ue("species"),qt=[].slice,Vt=Math.max;_e({target:"Array",proto:!0,forced:!Bt||!Ut},{slice:function(e,t){var n,r,o,i=v(this),a=se(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return qt.call(i,c,u);for(r=new(void 0===n?Array:n)(Vt(u-c,0)),o=0;c<u;c++,o++)c in i&&Ne(r,o,i[c]);return r.length=o,r}});var Gt=P.f,zt=Function.prototype,Ht=zt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in zt)&&Gt(zt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var Kt="".repeat||function(e){var t=String(g(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Jt=1..toFixed,Qt=Math.floor,Xt=function(e,t,n){return 0===t?n:t%2==1?Xt(e,t-1,n*e):Xt(e*e,t/2,n)};_e({target:"Number",proto:!0,forced:Jt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Jt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=l(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",s="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Qt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Qt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+Kt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Xt(2,69,1))-69)<0?i*Xt(2,-t,1):i/Xt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=a;r>=7;)f(1e7,0),r-=7;for(f(Xt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),f(1,1),d(2),s=p()}else f(0,n),f(1<<-t,0),s=p()+Kt.call("0",a);return s=a>0?u+((o=s.length)<=a?"0."+Kt.call("0",a-o)+s:s.slice(0,o-a)+"."+s.slice(o-a)):u+s}});var Yt=Object.assign,Zt=Object.defineProperty,en=!Yt||o((function(){if(i&&1!==Yt({b:1},Yt(Zt({},"a",{enumerable:!0,get:function(){Zt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Yt({},e)[n]||tt(Yt({},t)).join("")!=r}))?function(e,t){for(var n=ke(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var s,f=p(arguments[o++]),l=a?tt(f).concat(a(f)):tt(f),d=l.length,g=0;d>g;)s=l[g++],i&&!c.call(f,s)||(n[s]=f[s]);return n}:Yt;_e({target:"Object",stat:!0,forced:Object.assign!==en},{assign:en});var tn=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nn=G("IE_PROTO"),rn=Object.prototype,on=tn?Object.getPrototypeOf:function(e){return e=ke(e),w(e,nn)?e[nn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rn:null};_e({target:"Object",stat:!0,forced:o((function(){on(1)})),sham:!tn},{getPrototypeOf:function(e){return on(ke(e))}}),_e({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(ke(e))}});var an={};an[Ue("toStringTag")]="z";var cn="[object z]"===String(an),un=Ue("toStringTag"),sn="Arguments"==l(function(){return arguments}()),fn=cn?l:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),un))?n:sn?l(t):"Object"==(r=l(t))&&"function"==typeof t.callee?"Arguments":r},ln=cn?{}.toString:function(){return"[object "+fn(this)+"]"};cn||te(Object.prototype,"toString",ln,{unsafe:!0});var dn="[\t\n\v\f\r \u2028\u2029\ufeff]",pn=RegExp("^"+dn+dn+"*"),gn=RegExp(dn+dn+"*$"),vn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(pn,"")),2&e&&(n=n.replace(gn,"")),n}},hn={start:vn(1),end:vn(2),trim:vn(3)}.trim,mn=r.parseFloat,yn=1/mn("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=hn(String(e)),n=mn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:mn;_e({global:!0,forced:parseFloat!=yn},{parseFloat:yn});var wn=r.Promise,xn=P.f,bn=Ue("toStringTag"),Sn=Ue("species"),En=function(e){var t=oe(e),n=P.f;i&&t&&!t[Sn]&&n(t,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ue("iterator"),An=Array.prototype,jn=Ue("iterator"),Pn=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&A(o.call(e)),t}},Cn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,s,f,l,d,p,g=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||On[fn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(On.Array===p||An[Tn]===p)){for(u=0,s=se(e.length);s>u;u++)if((f=o?g(A(d=e[u])[0],d[1]):g(e[u]))&&f instanceof t)return f;return new t(!1)}a=c.call(e)}for(l=a.next;!(d=l.call(a)).done;)if("object"==typeof(f=Pn(a,g,d.value,o))&&f&&f instanceof t)return f;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Rn=Ue("iterator"),_n=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){_n=!0}};kn[Rn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(e){}var Nn,Ln,In,Fn=Ue("species"),Dn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[Fn])?t:dt(n)},Bn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Un=r.location,$n=r.setImmediate,qn=r.clearImmediate,Vn=r.process,Gn=r.MessageChannel,zn=r.Dispatch,Hn=0,Wn={},Kn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Jn=function(e){return function(){Kn(e)}},Qn=function(e){Kn(e.data)},Xn=function(e){r.postMessage(e+"",Un.protocol+"//"+Un.host)};$n&&qn||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Nn(Hn),Hn},qn=function(e){delete Wn[e]},"process"==l(Vn)?Nn=function(e){Vn.nextTick(Jn(e))}:zn&&zn.now?Nn=function(e){zn.now(Jn(e))}:Gn&&!Bn?(In=(Ln=new Gn).port2,Ln.port1.onmessage=Qn,Nn=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Xn)||"file:"===Un.protocol?Nn="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),Kn(e)}}:function(e){setTimeout(Jn(e),0)}:(Nn=Xn,r.addEventListener("message",Qn,!1)));var Yn,Zn,er,tr,nr,rr,or,ir,ar={set:$n,clear:qn},cr=T.f,ur=ar.set,sr=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,dr="process"==l(fr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Yn=function(){var e,t;for(dr&&(e=fr.domain)&&e.exit();Zn;){t=Zn.fn,Zn=Zn.next;try{t()}catch(e){throw Zn?tr():er=void 0,e}}er=void 0,e&&e.enter()},dr?tr=function(){fr.nextTick(Yn)}:sr&&!Bn?(nr=!0,rr=document.createTextNode(""),new sr(Yn).observe(rr,{characterData:!0}),tr=function(){rr.data=nr=!nr}):lr&&lr.resolve?(or=lr.resolve(void 0),ir=or.then,tr=function(){ir.call(or,Yn)}):tr=function(){ur.call(r,Yn)});var vr,hr,mr,yr,wr,xr,br,Sr=gr||function(e){var t={fn:e,next:void 0};er&&(er.next=t),Zn||(Zn=t,tr()),er=t},Er=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Or={f:function(e){return new Er(e)}},Tr=function(e,t){if(A(e),h(t)&&t.constructor===e)return t;var n=Or.f(e);return(0,n.resolve)(t),n.promise},Ar=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ar.set,Pr=Ue("species"),Cr="Promise",Rr=ee.get,_r=ee.set,Mr=ee.getterFor(Cr),kr=wn,Nr=r.TypeError,Lr=r.document,Ir=r.process,Fr=oe("fetch"),Dr=Or.f,Br=Dr,Ur="process"==l(Ir),$r=!!(Lr&&Lr.createEvent&&r.dispatchEvent),qr=Ce(Cr,(function(){if(!(I(kr)!==String(kr))){if(66===We)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(We>=51&&/native code/.test(kr))return!1;var e=kr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Pr]=t,!(e.then((function(){}))instanceof t)})),Vr=qr||!function(e,t){if(!t&&!_n)return!1;var n=!1;try{var r={};r[Rn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){kr.all(e).catch((function(){}))})),Gr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},zr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Sr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,s,f=r[a++],l=i?f.ok:f.fail,d=f.resolve,p=f.reject,g=f.domain;try{l?(i||(2===t.rejection&&Jr(e,t),t.rejection=1),!0===l?c=o:(g&&g.enter(),c=l(o),g&&(g.exit(),s=!0)),c===f.promise?p(Nr("Promise-chain cycle")):(u=Gr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!s&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=Lr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(Kr(t)&&(n=Ar((function(){Ur?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Ur||Kr(t)?2:1,n.error))throw n.value}))},Kr=function(e){return 1!==e.rejection&&!e.parent},Jr=function(e,t){jr.call(r,(function(){Ur?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Qr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Xr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,zr(e,t,!0))},Yr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Nr("Promise can't be resolved itself");var o=Gr(n);o?Sr((function(){var r={done:!1};try{o.call(n,Qr(Yr,e,r,t),Qr(Xr,e,r,t))}catch(n){Xr(e,r,n,t)}})):(t.value=n,t.state=1,zr(e,t,!1))}catch(n){Xr(e,{done:!1},n,t)}}};qr&&(kr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,Cr),dt(e),vr.call(this);var t=Rr(this);try{e(Qr(Yr,this,t),Qr(Xr,this,t))}catch(e){Xr(this,t,e)}},(vr=function(e){_r(this,{type:Cr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(kr.prototype,{then:function(e,t){var n=Mr(this),r=Dr(Dn(this,kr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Ur?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&zr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hr=function(){var e=new vr,t=Rr(e);this.promise=e,this.resolve=Qr(Yr,e,t),this.reject=Qr(Xr,e,t)},Or.f=Dr=function(e){return e===kr||e===mr?new hr(e):Br(e)},"function"==typeof wn&&(yr=wn.prototype.then,te(wn.prototype,"then",(function(e,t){var n=this;return new kr((function(e,t){yr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Fr&&_e({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Tr(kr,Fr.apply(r,arguments))}}))),_e({global:!0,wrap:!0,forced:qr},{Promise:kr}),xr=Cr,br=!1,(wr=kr)&&!w(wr=br?wr:wr.prototype,bn)&&xn(wr,bn,{configurable:!0,value:xr}),En(Cr),mr=oe(Cr),_e({target:Cr,stat:!0,forced:qr},{reject:function(e){var t=Dr(this);return t.reject.call(void 0,e),t.promise}}),_e({target:Cr,stat:!0,forced:qr},{resolve:function(e){return Tr(this,e)}}),_e({target:Cr,stat:!0,forced:Vr},{all:function(e){var t=this,n=Dr(t),r=n.resolve,o=n.reject,i=Ar((function(){var n=dt(t.resolve),i=[],a=0,c=1;Cn(e,(function(e){var u=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Dr(t),r=n.reject,o=Ar((function(){var o=dt(t.resolve);Cn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),eo=Ue("match"),to=function(e){var t;return h(e)&&(void 0!==(t=e[eo])?!!t:"RegExp"==l(e))},no=function(){var e=A(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function ro(e,t){return RegExp(e,t)}var oo={UNSUPPORTED_Y:o((function(){var e=ro("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=ro("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},io=P.f,ao=we.f,co=ee.set,uo=Ue("match"),so=r.RegExp,fo=so.prototype,lo=/a/g,po=/a/g,go=new so(lo)!==lo,vo=oo.UNSUPPORTED_Y;if(i&&Ce("RegExp",!go||vo||o((function(){return po[uo]=!1,so(lo)!=lo||so(po)==po||"/a/i"!=so(lo,"i")})))){for(var ho=function(e,t){var n,r=this instanceof ho,o=to(e),i=void 0===t;if(!r&&o&&e.constructor===ho&&i)return e;go?o&&!i&&(e=e.source):e instanceof ho&&(i&&(t=no.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,s,f,l=(a=go?new so(e,t):so(e,t),c=r?this:fo,u=ho,Zr&&"function"==typeof(s=c.constructor)&&s!==u&&h(f=s.prototype)&&f!==u.prototype&&Zr(a,f),a);return vo&&n&&co(l,{sticky:n}),l},mo=function(e){e in ho||io(ho,e,{configurable:!0,get:function(){return so[e]},set:function(t){so[e]=t}})},yo=ao(so),wo=0;yo.length>wo;)mo(yo[wo++]);fo.constructor=ho,ho.prototype=fo,te(r,"RegExp",ho)}En("RegExp");var xo=RegExp.prototype.exec,bo=String.prototype.replace,So=xo,Eo=function(){var e=/a/,t=/b*/g;return xo.call(e,"a"),xo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Oo=oo.UNSUPPORTED_Y||oo.BROKEN_CARET,To=void 0!==/()??/.exec("")[1];(Eo||To||Oo)&&(So=function(e){var t,n,r,o,i=this,a=Oo&&i.sticky,c=no.call(i),u=i.source,s=0,f=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),f=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",f=" "+f,s++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(t=i.lastIndex),r=xo.call(a?n:i,f),a?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Eo&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),To&&r&&r.length>1&&bo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ao=So;_e({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var jo=RegExp.prototype,Po=jo.toString,Co=o((function(){return"/a/b"!=Po.call({source:"a",flags:"b"})})),Ro="toString"!=Po.name;(Co||Ro)&&te(RegExp.prototype,"toString",(function(){var e=A(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?no.call(e):n)}),{unsafe:!0});var _o=function(e){if(to(e))throw TypeError("The method doesn't accept regular expressions");return e},Mo=Ue("match");_e({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Mo]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(g(this)).indexOf(_o(e),arguments.length>1?arguments[1]:void 0)}}),_e({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var ko=Ue("species"),No=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Lo="$0"==="a".replace(/./,"$0"),Io=Ue("replace"),Fo=!!/./[Io]&&""===/./[Io]("a","$0"),Do=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bo=function(e,t,n,r){var i=Ue(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!No||!Lo||Fo)||"split"===e&&!Do){var u=/./[i],s=n(i,""[e],(function(e,t,n,r,o){return t.exec===Ao?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Lo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fo}),f=s[0],l=s[1];te(String.prototype,e,f),te(RegExp.prototype,i,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)})}r&&C(RegExp.prototype[i],"sham",!0)},Uo=function(e){return function(t,n){var r,o,i=String(g(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},$o={codeAt:Uo(!1),charAt:Uo(!0)}.charAt,qo=function(e,t,n){return t+(n?$o(e,t).length:1)},Vo=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==l(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ao.call(e,t)};Bo("match",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this);if(!o.global)return Vo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],s=0;null!==(c=Vo(o,i));){var f=String(c[0]);u[s]=f,""===f&&(o.lastIndex=qo(i,se(o.lastIndex),a)),s++}return 0===s?null:u}]}));var Go=Math.max,zo=Math.min,Ho=Math.floor,Wo=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ko=/\$([$&'`]|\d\d?)/g,Jo=function(e){return void 0===e?e:String(e)};Bo("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=g(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var s=A(e),f=String(this),l="function"==typeof r;l||(r=String(r));var d=s.global;if(d){var p=s.unicode;s.lastIndex=0}for(var g=[];;){var v=Vo(s,f);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(s.lastIndex=qo(f,se(s.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),x=Go(zo(ce(v.index),f.length),0),b=[],S=1;S<v.length;S++)b.push(Jo(v[S]));var E=v.groups;if(l){var O=[w].concat(b,x,f);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,f,x,b,E,r);x>=m&&(h+=f.slice(m,x)+T,m=x+w.length)}return h+f.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,s=Ko;return void 0!==i&&(i=ke(i),s=Wo),t.call(a,s,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return t;if(f>u){var l=Ho(f/10);return 0===l?t:l<=u?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):t}s=o[f-1]}return void 0===s?"":s}))}}));var Qo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Bo("search",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this),a=o.lastIndex;Qo(a,0)||(o.lastIndex=0);var c=Vo(o,i);return Qo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Xo=[].push,Yo=Math.min,Zo=!o((function(){return!RegExp(4294967295,"y")}));Bo("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(g(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!to(e))return t.call(r,e,o);for(var i,a,c,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,l=new RegExp(e.source,s+"g");(i=Ao.call(l,r))&&!((a=l.lastIndex)>f&&(u.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&Xo.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===r.length?!c&&l.test("")||u.push(""):u.push(r.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=g(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=A(e),c=String(this),u=Dn(a,RegExp),s=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),l=new u(Zo?a:"^(?:"+a.source+")",f),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(l,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){l.lastIndex=Zo?g:0;var h,m=Vo(l,Zo?c:c.slice(g));if(null===m||(h=Yo(se(l.lastIndex+(Zo?0:g)),c.length))===p)g=qo(c,g,s);else{if(v.push(c.slice(p,g)),v.length===d)return v;for(var y=1;y<=m.length-1;y++)if(v.push(m[y]),v.length===d)return v;g=p=h}}return v.push(c.slice(p)),v}]}),!Zo);for(var ei in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ti=r[ei],ni=ti&&ti.prototype;if(ni&&ni.forEach!==Tt)try{C(ni,"forEach",Tt)}catch(e){ni.forEach=Tt}}var ri=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function oi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ii(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ai(e){return JSON.parse(JSON.stringify(e))}function ci(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ui(e,t){void 0===t&&(t={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},t),r=n.isNaNAsNumber,o=!0;return"number"!=typeof e&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(e)||(o=!1),!1===r&&isNaN(e)&&(o=!1),o}function si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function fi(){return Date.now?Date.now():(new Date).getTime()}function li(e){for(var t=e+"=",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(t))return o.substring(t.length,o.length)}return""}function di(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var s="";"webkit"===c?s=n(/applewebkit\/[\d._]+/g):"gecko"===c?s=n(/gecko\/[\d._]+/g):"presto"===c?s=n(/presto\/[\d._]+/g):"trident"===c&&(s=n(/trident\/[\d._]+/g));var f="";"chrome"===u?f=n(/chrome\/[\d._]+/g):"safari"===u?f=n(/version\/[\d._]+/g):"firefox"===u?f=n(/firefox\/[\d._]+/g):"opera"===u?f=n(/opr\/[\d._]+/g):"iexplore"===u?f=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(f=n(/edge\/[\d._]+/g));var l="",d="";return t(/micromessenger/g)?(l="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(l="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?l="qq_app":t(/ucbrowser/g)?(l="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?l="360":t(/2345explorer/g)?(l="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?l="sougou":t(/lbbrowser/g)?l="liebao":t(/maxthon/g)?(l="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(l="bilibili"),Object.assign({engine:c,engineVs:s,platform:a,supporter:u,supporterVs:f,system:r,systemVs:i},{shell:l,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o=""+t.id,(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[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],f=u[1];a>0&&(s=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(s,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)},exports.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[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)},exports.camelCase2Underscore=ii,exports.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===n&&(n=!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>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=fi()-i;s<t&&s>=0?o=setTimeout(u,t-s):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=fi();var l=n&&!o;return o||(o=setTimeout(u,t)),l&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ai,exports.doFn=si,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n={type:"d"});var r=n.type;ui(e)||(e=new Date(e).getTime()),ui(t)||(t=new Date(t).getTime());var o=t-e,i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);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))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,oi([e],o)):(r=console)[n].apply(r,o)}})),t},exports.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},exports.generateRndNum=ci,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[fi(),ci(e||3)];return t[0]+t[1]},exports.getBrowserInfo=di,exports.getCookie=li,exports.getDomain=function(e,t){void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},exports.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={os:s(),osVersion:f(),deviceType:l(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:g(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(v).forEach((function(e){ui(v[e])&&v[e]<0&&(v[e]=0)})),ui(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[ii(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function s(){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 f(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function l(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.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}function p(){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 g(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){try{if("object"===ri(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},exports.isNumber=ui,exports.isSafePWAEnv=function(){var e=di();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)},exports.isSupportWebp=function(){return new Promise((function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){var r;n=(r=[e,t])[0],r[1]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){f(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function f(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():f(e,t,n)}),20)}return c?(a.onload=s,a.onerror=function(){s()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&s()},o},exports.loadScript=function(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,s=document.createElement("script"),f=document.getElementsByTagName("script")[0];return s.type="text/javascript",a&&(s.defer="defer"),r&&(s.id=r),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,si(o),si(c,!0))}:s.onload=function(){si(o),si(c,!0)},s.src=e,f&&f.parentNode.insertBefore(s,f),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},exports.mNow=fi,exports.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==li(e)&&li(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===n.leading?0:fi(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var l=fi();u||!1!==n.leading||(u=l);var d=t-(l-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=l,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s,d)),c}},exports.updateQueryParam=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},exports.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatus:[200],validCode:[0]});var n=Object.assign({validStatus:[200],validCode:[0]},t),r=n.validStatus,o=n.validCode,i=!1;if(e&&e.status&&r.includes(e.status)){i=!0;var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
|