mazey 3.3.8 → 3.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README_CN.md +23 -5
- package/examples/index.ts +7 -1
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/mazey.min.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +35 -7
package/README_CN.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
⚠️ Note: The document has expired, please check the latest [README.md](./README.md).
|
|
2
|
+
|
|
1
3
|
# mazey
|
|
2
4
|
|
|
3
5
|
[![NPM version][npm-image]][npm-url]
|
|
@@ -8,17 +10,33 @@
|
|
|
8
10
|
[l-image]: https://img.shields.io/npm/l/mazey
|
|
9
11
|
[l-url]: https://github.com/mazeyqian/mazey
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
后除的 JavaScript 函数库,所有的方法都在线上项目中使用过。
|
|
14
|
+
|
|
15
|
+
**目录**
|
|
16
|
+
|
|
17
|
+
- [mazey](#mazey)
|
|
18
|
+
- [安装](#安装)
|
|
19
|
+
- [使用](#使用)
|
|
20
|
+
- [加载资源](#加载资源)
|
|
21
|
+
- [存储数据](#存储数据)
|
|
22
|
+
- [操作 DOM](#操作-dom)
|
|
23
|
+
- [网站性能](#网站性能)
|
|
24
|
+
- [公式计算](#公式计算)
|
|
25
|
+
- [浏览器信息](#浏览器信息)
|
|
26
|
+
- [安全边际](#安全边际)
|
|
27
|
+
- [函数](#函数)
|
|
28
|
+
- [调试](#调试)
|
|
29
|
+
- [开发](#开发)
|
|
12
30
|
|
|
13
|
-
##
|
|
31
|
+
## 安装
|
|
14
32
|
|
|
15
|
-
You can get mazey via [npm](https://www.npmjs.com/package/mazey/v/1.4.39).
|
|
33
|
+
You can get mazey@1.4.39 via [npm](https://www.npmjs.com/package/mazey/v/1.4.39).
|
|
16
34
|
|
|
17
35
|
```
|
|
18
36
|
npm install mazey@1.4.39 --save
|
|
19
37
|
```
|
|
20
38
|
|
|
21
|
-
##
|
|
39
|
+
## 使用
|
|
22
40
|
|
|
23
41
|
### 加载资源
|
|
24
42
|
|
|
@@ -321,7 +339,7 @@ myConsole.info('I am object.', { a: 123, b: 456}); // MazeyLog: I am object. {a:
|
|
|
321
339
|
|
|
322
340
|
[更多接口>>](https://mazey.cn/docs/mazey/modules/_index_.html)
|
|
323
341
|
|
|
324
|
-
##
|
|
342
|
+
## 开发
|
|
325
343
|
|
|
326
344
|
```
|
|
327
345
|
# dev
|
package/examples/index.ts
CHANGED
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
getFileSize,
|
|
12
12
|
isSupportWebp,
|
|
13
13
|
genHashCode,
|
|
14
|
-
debounce
|
|
14
|
+
debounce,
|
|
15
|
+
genCustomConsole
|
|
15
16
|
} from '../src/index';
|
|
16
17
|
|
|
17
18
|
// Sync
|
|
@@ -42,6 +43,11 @@ console.log('Get a string with random number:', generateRndNum(7));
|
|
|
42
43
|
console.log('Is non-empty array?', isNonEmptyArray(['a', 123]));
|
|
43
44
|
console.log('Get file size:', getFileSize(2000));
|
|
44
45
|
console.log('Generate a Hash from a string:', genHashCode('123'));
|
|
46
|
+
const genLog = genCustomConsole('GenLog:', {
|
|
47
|
+
isClosed: false,
|
|
48
|
+
showWrap: true
|
|
49
|
+
});
|
|
50
|
+
genLog.log('test?');
|
|
45
51
|
|
|
46
52
|
// Async
|
|
47
53
|
(async () => {
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.3.
|
|
2
|
+
* mazey v3.3.10
|
|
3
3
|
* (c) 2018-2022 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"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}},l={}.toString,f=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(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,R={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 R.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},P=function(e,t){try{C(r,e,t)}catch(n){r[e]=t}return t},_=r["__core-js_shared__"]||P("__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:P(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},le=Math.max,fe=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):fe(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=R.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==Re||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",Re=Oe.POLYFILL="P",Ce=Oe,Pe=T.f,_e=function(e,t){var n,o,i,a,c,u=e.target,s=e.global,l=e.stat;if(n=s?r:l?r[u]||P(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Pe(n,o))&&c.value:n[o],!Ce(s?o:u+(l?".":"#")+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"==f(e)},ke=function(e){return Object(g(e))},Ne=function(e,t,n){var r=m(t);r in e?R.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;)R.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"),lt=Array.prototype;null==lt[st]&&R.f(lt,st,{configurable:!0,value:ut(null)});var ft=function(e){lt[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}}),ft("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,l){for(var f,d,g=ke(c),v=p(g),h=pt(u,s,3),m=se(v.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(f=v[y],y,g),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:gt.call(x,f)}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)}}),ft("includes");var jt=ge.indexOf,Rt=[].indexOf,Ct=!!Rt&&1/[1].indexOf(1,-0)<0,Pt=mt("indexOf"),_t=bt("indexOf",{ACCESSORS:!0,1:0});_e({target:"Array",proto:!0,forced:Ct||!Pt||!_t},{indexOf:function(e){return Ct?Rt.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=R.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"!=f(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",s="0",l=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(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Xt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),s=p()}else l(0,n),l(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,l=p(arguments[o++]),f=a?tt(l).concat(a(l)):tt(l),d=f.length,g=0;d>g;)s=f[g++],i&&!c.call(l,s)||(n[s]=l[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"==f(function(){return arguments}()),ln=cn?f: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?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},fn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||te(Object.prototype,"toString",fn,{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=R.f,bn=Ue("toStringTag"),Sn=Ue("species"),En=function(e){var t=oe(e),n=R.f;i&&t&&!t[Sn]&&n(t,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ue("iterator"),An=Array.prototype,jn=Ue("iterator"),Rn=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,l,f,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[ln(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((l=o?g(A(d=e[u])[0],d[1]):g(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(f=a.next;!(d=f.call(a)).done;)if("object"==typeof(l=Rn(a,g,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Pn=Ue("iterator"),_n=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){_n=!0}};kn[Pn]=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"==f(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,lr=r.process,fr=r.Promise,dr="process"==f(lr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Yn=function(){var e,t;for(dr&&(e=lr.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(){lr.nextTick(Yn)}:sr&&!Bn?(nr=!0,rr=document.createTextNode(""),new sr(Yn).observe(rr,{characterData:!0}),tr=function(){rr.data=nr=!nr}):fr&&fr.resolve?(or=fr.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,Rr=Ue("species"),Cr="Promise",Pr=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"==f(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={})[Rr]=t,!(e.then((function(){}))instanceof t)})),Vr=qr||!function(e,t){if(!t&&!_n)return!1;var n=!1;try{var r={};r[Pn]=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,l=r[a++],f=i?l.ok:l.fail,d=l.resolve,p=l.reject,g=l.domain;try{f?(i||(2===t.rejection&&Jr(e,t),t.rejection=1),!0===f?c=o:(g&&g.enter(),c=f(o),g&&(g.exit(),s=!0)),c===l.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=Pr(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=Pr(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"==f(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=R.f,ao=we.f,co=ee.set,uo=Ue("match"),so=r.RegExp,lo=so.prototype,fo=/a/g,po=/a/g,go=new so(fo)!==fo,vo=oo.UNSUPPORTED_Y;if(i&&Ce("RegExp",!go||vo||o((function(){return po[uo]=!1,so(fo)!=fo||so(po)==po||"/a/i"!=so(fo,"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,l,f=(a=go?new so(e,t):so(e,t),c=r?this:lo,u=ho,Zr&&"function"==typeof(s=c.constructor)&&s!==u&&h(l=s.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&co(f,{sticky:n}),f},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++]);lo.constructor=ho,ho.prototype=lo,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,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,s++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(t=i.lastIndex),r=xo.call(a?n:i,l),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,Ro=jo.toString,Co=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Po="toString"!=Ro.name;(Co||Po)&&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}),l=s[0],f=s[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.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"!==f(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 l=String(c[0]);u[s]=l,""===l&&(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),l=String(this),f="function"==typeof r;f||(r=String(r));var d=s.global;if(d){var p=s.unicode;s.lastIndex=0}for(var g=[];;){var v=Vo(s,l);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(s.lastIndex=qo(l,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),l.length),0),b=[],S=1;S<v.length;S++)b.push(Jo(v[S]));var E=v.groups;if(f){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,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 l=+a;if(0===l)return t;if(l>u){var f=Ho(l/10);return 0===f?t:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}s=o[l-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":""),l=0,f=new RegExp(e.source,s+"g");(i=Ao.call(f,r))&&!((a=f.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Xo.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!c&&f.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=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,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),f=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(f,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){f.lastIndex=Zo?g:0;var h,m=Vo(f,Zo?c:c.slice(g));if(null===m||(h=Yo(se(f.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 li(){return Date.now?Date.now():(new Date).getTime()}function fi(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 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 f="",d="";return t(/micromessenger/g)?(f="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(f="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?f="qq_app":t(/ucbrowser/g)?(f="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?f="360":t(/2345explorer/g)?(f="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?f="sougou":t(/lbbrowser/g)?f="liebao":t(/maxthon/g)?(f="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(f="bilibili"),Object.assign({engine:c,engineVs:s,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:f,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],l=u[1];a>0&&(s=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(s,l)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)},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=li()-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=[],l=0;l<arguments.length;l++)s[l]=arguments[l];r=this,a=s,i=li();var f=n&&!o;return o||(o=setTimeout(u,t)),f&&(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,t){void 0===e&&(e=""),void 0===t&&(t={isClose:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClose:!1,logFn:function(){},errorFn:function(){}},t),r=n.isClose,o=n.logFn,i=n.errorFn,a=Object.create(null);return["log","info","warn","error"].forEach((function(t){a[t]=function(){for(var n,a,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];if(r)return!1;e?(n=console)[t].apply(n,oi([e],c)):(a=console)[t].apply(a,c),"log"===t&&o(),"error"===t&&i()}})),a},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=[li(),ci(e||3)];return t[0]+t[1]},exports.getBrowserInfo=di,exports.getCookie=fi,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:l(),deviceType:f(),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 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 f(){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){n=[e,t][0]})),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(){l(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(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():l(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"),l=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,l&&l.parentNode.insertBefore(s,l),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=li,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!==fi(e)&&fi(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:li(),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 f=li();u||!1!==n.leading||(u=f);var d=t-(f-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=f,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={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
|
|
6
|
+
"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}},l={}.toString,f=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(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,R={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 R.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},P=function(e,t){try{C(r,e,t)}catch(n){r[e]=t}return t},_=r["__core-js_shared__"]||P("__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"),W=function(e){return V[e]||(V[e]=q(e))},G={},z=r.WeakMap;if(D){var H=new z,K=H.get,J=H.has,Q=H.set;k=function(e,t){return Q.call(H,e,t),t},N=function(e){return K.call(H,e)||{}},L=function(e){return J.call(H,e)}}else{var X=W("state");G[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:P(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},le=Math.max,fe=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):fe(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(G,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=R.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==Re||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",Re=Oe.POLYFILL="P",Ce=Oe,Pe=T.f,_e=function(e,t){var n,o,i,a,c,u=e.target,s=e.global,l=e.stat;if(n=s?r:l?r[u]||P(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Pe(n,o))&&c.value:n[o],!Ce(s?o:u+(l?".":"#")+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"==f(e)},ke=function(e){return Object(g(e))},Ne=function(e,t,n){var r=m(t);r in e?R.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")||"",We=r.process,Ge=We&&We.versions,ze=Ge&&Ge.v8;ze?Z=(Y=ze.split("."))[0]+Y[1]:Ve&&(!(Y=Ve.match(/Edge\/(\d+)/))||Y[1]>=74)&&(Y=Ve.match(/Chrome\/(\d+)/))&&(Z=Y[1]);var He=Z&&+Z,Ke=Ue("species"),Je=function(e){return He>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ue("isConcatSpreadable"),Xe=He>=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;)R.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=W("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()};G[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"),lt=Array.prototype;null==lt[st]&&R.f(lt,st,{configurable:!0,value:ut(null)});var ft=function(e){lt[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}}),ft("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,l){for(var f,d,g=ke(c),v=p(g),h=pt(u,s,3),m=se(v.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(f=v[y],y,g),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:gt.call(x,f)}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)}}),ft("includes");var jt=ge.indexOf,Rt=[].indexOf,Ct=!!Rt&&1/[1].indexOf(1,-0)<0,Pt=mt("indexOf"),_t=bt("indexOf",{ACCESSORS:!0,1:0});_e({target:"Array",proto:!0,forced:Ct||!Pt||!_t},{indexOf:function(e){return Ct?Rt.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 Wt=R.f,Gt=Function.prototype,zt=Gt.toString,Ht=/^\s*function ([^ (]*)/;i&&!("name"in Gt)&&Wt(Gt,"name",{configurable:!0,get:function(){try{return zt.call(this).match(Ht)[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"!=f(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",s="0",l=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(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Xt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),s=p()}else l(0,n),l(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,l=p(arguments[o++]),f=a?tt(l).concat(a(l)):tt(l),d=f.length,g=0;d>g;)s=f[g++],i&&!c.call(l,s)||(n[s]=l[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=W("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"==f(function(){return arguments}()),ln=cn?f: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?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},fn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||te(Object.prototype,"toString",fn,{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=R.f,bn=Ue("toStringTag"),Sn=Ue("species"),En=function(e){var t=oe(e),n=R.f;i&&t&&!t[Sn]&&n(t,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ue("iterator"),An=Array.prototype,jn=Ue("iterator"),Rn=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,l,f,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[ln(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((l=o?g(A(d=e[u])[0],d[1]):g(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(f=a.next;!(d=f.call(a)).done;)if("object"==typeof(l=Rn(a,g,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Pn=Ue("iterator"),_n=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){_n=!0}};kn[Pn]=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,Wn=r.MessageChannel,Gn=r.Dispatch,zn=0,Hn={},Kn=function(e){if(Hn.hasOwnProperty(e)){var t=Hn[e];delete Hn[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 Hn[++zn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Nn(zn),zn},qn=function(e){delete Hn[e]},"process"==f(Vn)?Nn=function(e){Vn.nextTick(Jn(e))}:Gn&&Gn.now?Nn=function(e){Gn.now(Jn(e))}:Wn&&!Bn?(In=(Ln=new Wn).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,lr=r.process,fr=r.Promise,dr="process"==f(lr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Yn=function(){var e,t;for(dr&&(e=lr.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(){lr.nextTick(Yn)}:sr&&!Bn?(nr=!0,rr=document.createTextNode(""),new sr(Yn).observe(rr,{characterData:!0}),tr=function(){rr.data=nr=!nr}):fr&&fr.resolve?(or=fr.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,Rr=Ue("species"),Cr="Promise",Pr=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"==f(Ir),$r=!!(Lr&&Lr.createEvent&&r.dispatchEvent),qr=Ce(Cr,(function(){if(!(I(kr)!==String(kr))){if(66===He)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(He>=51&&/native code/.test(kr))return!1;var e=kr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Rr]=t,!(e.then((function(){}))instanceof t)})),Vr=qr||!function(e,t){if(!t&&!_n)return!1;var n=!1;try{var r={};r[Pn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){kr.all(e).catch((function(){}))})),Wr=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;Sr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,d=l.resolve,p=l.reject,g=l.domain;try{f?(i||(2===t.rejection&&Jr(e,t),t.rejection=1),!0===f?c=o:(g&&g.enter(),c=f(o),g&&(g.exit(),s=!0)),c===l.promise?p(Nr("Promise-chain cycle")):(u=Wr(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&&Hr(e,t)}))}},zr=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)},Hr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(Kr(t)&&(n=Ar((function(){Ur?Ir.emit("unhandledRejection",r,e):zr("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):zr("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,Gr(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=Wr(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,Gr(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=Pr(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&&Gr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hr=function(){var e=new vr,t=Pr(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"==f(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=R.f,ao=we.f,co=ee.set,uo=Ue("match"),so=r.RegExp,lo=so.prototype,fo=/a/g,po=/a/g,go=new so(fo)!==fo,vo=oo.UNSUPPORTED_Y;if(i&&Ce("RegExp",!go||vo||o((function(){return po[uo]=!1,so(fo)!=fo||so(po)==po||"/a/i"!=so(fo,"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,l,f=(a=go?new so(e,t):so(e,t),c=r?this:lo,u=ho,Zr&&"function"==typeof(s=c.constructor)&&s!==u&&h(l=s.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&co(f,{sticky:n}),f},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++]);lo.constructor=ho,ho.prototype=lo,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,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,s++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(t=i.lastIndex),r=xo.call(a?n:i,l),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,Ro=jo.toString,Co=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Po="toString"!=Ro.name;(Co||Po)&&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}),l=s[0],f=s[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.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"!==f(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 l=String(c[0]);u[s]=l,""===l&&(o.lastIndex=qo(i,se(o.lastIndex),a)),s++}return 0===s?null:u}]}));var Wo=Math.max,Go=Math.min,zo=Math.floor,Ho=/\$([$&'`]|\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),l=String(this),f="function"==typeof r;f||(r=String(r));var d=s.global;if(d){var p=s.unicode;s.lastIndex=0}for(var g=[];;){var v=Vo(s,l);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(s.lastIndex=qo(l,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=Wo(Go(ce(v.index),l.length),0),b=[],S=1;S<v.length;S++)b.push(Jo(v[S]));var E=v.groups;if(f){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,s=Ko;return void 0!==i&&(i=ke(i),s=Ho),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 l=+a;if(0===l)return t;if(l>u){var f=zo(l/10);return 0===f?t:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}s=o[l-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":""),l=0,f=new RegExp(e.source,s+"g");(i=Ao.call(f,r))&&!((a=f.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Xo.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!c&&f.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=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,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),f=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(f,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){f.lastIndex=Zo?g:0;var h,m=Vo(f,Zo?c:c.slice(g));if(null===m||(h=Yo(se(f.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 li(){return Date.now?Date.now():(new Date).getTime()}function fi(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 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 f="",d="";return t(/micromessenger/g)?(f="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(f="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?f="qq_app":t(/ucbrowser/g)?(f="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?f="360":t(/2345explorer/g)?(f="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?f="sougou":t(/lbbrowser/g)?f="liebao":t(/maxthon/g)?(f="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(f="bilibili"),Object.assign({engine:c,engineVs:s,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:f,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],l=u[1];a>0&&(s=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(s,l)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)},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=li()-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=[],l=0;l<arguments.length;l++)s[l]=arguments[l];r=this,a=s,i=li();var f=n&&!o;return o||(o=setTimeout(u,t)),f&&(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,t){void 0===e&&(e=""),void 0===t&&(t={isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}},t),r=n.isClosed,o=n.showWrap,i=n.logFn,a=n.errorFn,c=Object.create(null);return["log","info","warn","error"].forEach((function(t){c[t]=function(){for(var n,c,u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];if(r)return!1;var l="";if("string"==typeof e&&e.length>=2){var f=e.length;l=":"===e[f-1]?e.substring(0,f-1):e}o&&console.log("--- "+l+" - begin ---"),e?(n=console)[t].apply(n,oi([e],u)):(c=console)[t].apply(c,u),"log"===t&&i(),"error"===t&&a(),o&&console.log("--- "+l+" - end ---")}})),c},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=[li(),ci(e||3)];return t[0]+t[1]},exports.getBrowserInfo=di,exports.getCookie=fi,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:l(),deviceType:f(),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 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 f(){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){n=[e,t][0]})),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(){l(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(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():l(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"),l=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,l&&l.parentNode.insertBefore(s,l),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=li,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!==fi(e)&&fi(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:li(),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 f=li();u||!1!==n.leading||(u=f);var d=t-(f-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=f,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={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
|
package/lib/index.d.ts
CHANGED
|
@@ -398,14 +398,15 @@ export declare function addStyle(style: string, options?: {
|
|
|
398
398
|
id?: string;
|
|
399
399
|
}): boolean;
|
|
400
400
|
/**
|
|
401
|
-
*
|
|
402
|
-
*
|
|
401
|
+
* 生成自定义控制台打印
|
|
402
|
+
*
|
|
403
403
|
* @param {string} prefix 前缀
|
|
404
404
|
* @param {function} allowFn 允许打印的判断函数
|
|
405
405
|
* @returns {object} 新实例
|
|
406
406
|
*/
|
|
407
407
|
export declare function genCustomConsole(prefix?: string, options?: {
|
|
408
|
-
|
|
408
|
+
isClosed?: boolean;
|
|
409
|
+
showWrap?: boolean;
|
|
409
410
|
logFn?: () => void;
|
|
410
411
|
errorFn?: () => void;
|
|
411
412
|
}): Console;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5E;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CA8BR;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAmBzE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAQR;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAe,GAAG,MAAM,CAOnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ/D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CASzC;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CASpD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQvD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,GAAG,CA0CL;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAkCtE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,SAAI,EACT,GAAG,SAAI,EACP,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAkB,GACzC,MAAM,GAAG,MAAM,CA4BjB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,GAAG,EACR,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAG/D,GACA,OAAO,CAqBT;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAMnD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAItE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASlD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAIpE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAShD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAAC,OAAO,GAAG,KAAK,GAAG,GAAG,CAAC,CAsHhC;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAQlB,GACA,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAgDnC;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,IAAI,CAsCN;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,SAAS,UAAO,GACf,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAsPjC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAyCtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,cAAc,IAAI;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAqLA;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CA4B7E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAiBlE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAiCT;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAK,EACX,OAAO,GAAE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5E;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CA8BR;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAmBzE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAQR;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAe,GAAG,MAAM,CAOnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ/D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CASzC;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CASpD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQvD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,GAAG,CA0CL;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAkCtE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,SAAI,EACT,GAAG,SAAI,EACP,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAkB,GACzC,MAAM,GAAG,MAAM,CA4BjB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,GAAG,EACR,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAG/D,GACA,OAAO,CAqBT;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAMnD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAItE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASlD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAIpE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAShD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAAC,OAAO,GAAG,KAAK,GAAG,GAAG,CAAC,CAsHhC;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAQlB,GACA,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAgDnC;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,IAAI,CAsCN;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,SAAS,UAAO,GACf,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAsPjC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAyCtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,cAAc,IAAI;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAqLA;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CA4B7E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAiBlE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAiCT;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAK,EACX,OAAO,GAAE;IACP,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAMtB,GACA,OAAO,CAgDT;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,OAAO,GAAE;IACP,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;CAIrB,GACA,OAAO,CAyBT;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,OAAO,CAMnD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBhD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAahD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAU/C"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.3.
|
|
2
|
+
* mazey v3.3.10
|
|
3
3
|
* (c) 2018-2022 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){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(t){var e=c(this,t);return!!e&&e.enumerable}:a},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,s=function(t){return l.call(t).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?d.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return p(v(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(t,e){return y.call(t,e)},b=r.document,x=h(b)&&h(b.createElement),S=function(t){return x?b.createElement(t):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),E)try{return O(t,e)}catch(t){}if(w(t,e))return f(!u.f.call(t,e),t[e])}},A=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,R={f:i?j:function(t,e,n){if(A(t),e=m(e,!0),A(n),E)try{return j(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_=i?function(t,e,n){return R.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{_(r,t,e)}catch(n){r[t]=e}return e},M=r["__core-js_shared__"]||P("__core-js_shared__",{}),C=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return C.call(t)});var k,I,N,L=M.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(L(F)),B=e((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,$=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+$).toString(36)},V=B("keys"),G=function(t){return V[t]||(V[t]=q(t))},z={},W=r.WeakMap;if(D){var K=new W,H=K.get,J=K.has,X=K.set;k=function(t,e){return X.call(K,t,e),e},I=function(t){return H.call(K,t)||{}},N=function(t){return J.call(K,t)}}else{var Y=G("state");z[Y]=!0,k=function(t,e){return _(t,Y,e),e},I=function(t){return w(t,Y)?t[Y]:{}},N=function(t){return w(t,Y)}}var Q,Z,tt={set:k,get:I,has:N,enforce:function(t){return N(t)?I(t):k(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=e((function(t){var e=tt.get,n=tt.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||_(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:_(t,e,i)):u?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),nt=r,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(r[t]):nt[t]&&nt[t][e]||r[t]&&r[t][e]},it=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ut=Math.min,ft=function(t){return t>0?ut(ct(t),9007199254740991):0},lt=Math.max,st=Math.min,dt=function(t,e){var n=ct(t);return n<0?lt(n+e,0):st(n,e)},pt=function(t){return function(e,n,r){var o,i=g(e),a=ft(i.length),c=dt(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},vt={includes:pt(!0),indexOf:pt(!1)},gt=vt.indexOf,ht=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!w(z,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~gt(i,n)||i.push(n));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return ht(t,yt)}},bt={f:Object.getOwnPropertySymbols},xt=ot("Reflect","ownKeys")||function(t){var e=wt.f(A(t)),n=bt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=xt(e),r=R.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(t,a)||r(t,a,o(e,a))}},Et=/#|\.prototype\./,Ot=function(t,e){var n=At[Tt(t)];return n==Rt||n!=jt&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},At=Ot.data={},jt=Ot.NATIVE="N",Rt=Ot.POLYFILL="P",_t=Ot,Pt=T.f,Mt=function(t,e){var n,o,i,a,c,u=t.target,f=t.global,l=t.stat;if(n=f?r:l?r[u]||P(u,{}):(r[u]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(c=Pt(n,o))&&c.value:n[o],!_t(f?o:u+(l?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&_(a,"sham",!0),et(n,o,a,t)}},Ct=Array.isArray||function(t){return"Array"==s(t)},kt=function(t){return Object(v(t))},It=function(t,e,n){var r=m(e);r in t?R.f(t,r,f(0,n)):t[r]=n},Nt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Lt=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=B("wks"),Dt=r.Symbol,Bt=Lt?Dt:Dt&&Dt.withoutSetter||q,Ut=function(t){return w(Ft,t)||(Nt&&w(Dt,t)?Ft[t]=Dt[t]:Ft[t]=Bt("Symbol."+t)),Ft[t]},$t=Ut("species"),qt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Vt=ot("navigator","userAgent")||"",Gt=r.process,zt=Gt&&Gt.versions,Wt=zt&&zt.v8;Wt?Z=(Q=Wt.split("."))[0]+Q[1]:Vt&&(!(Q=Vt.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Vt.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Kt=Z&&+Z,Ht=Ut("species"),Jt=function(t){return Kt>=51||!o((function(){var e=[];return(e.constructor={})[Ht]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Xt=Ut("isConcatSpreadable"),Yt=Kt>=51||!o((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Qt=Jt("concat"),Zt=function(t){if(!h(t))return!1;var e=t[Xt];return void 0!==e?!!e:Ct(t)};Mt({target:"Array",proto:!0,forced:!Yt||!Qt},{concat:function(t){var e,n,r,o,i,a=kt(this),c=qt(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Zt(i=-1===e?a:arguments[e])){if(u+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&It(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");It(c,u++,i)}return c.length=u,c}});var te,ee=Object.keys||function(t){return ht(t,mt)},ne=i?Object.defineProperties:function(t,e){A(t);for(var n,r=ee(e),o=r.length,i=0;o>i;)R.f(t,n=r[i++],e[n]);return t},re=ot("document","documentElement"),oe=G("IE_PROTO"),ie=function(){},ae=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{te=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=te?function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e}(te):((e=S("iframe")).style.display="none",re.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete ce.prototype[mt[n]];return ce()};z[oe]=!0;var ue=Object.create||function(t,e){var n;return null!==t?(ie.prototype=A(t),n=new ie,ie.prototype=null,n[oe]=t):n=ce(),void 0===e?n:ne(n,e)},fe=Ut("unscopables"),le=Array.prototype;null==le[fe]&&R.f(le,fe,{configurable:!0,value:ue(null)});var se=function(t){le[fe][t]=!0};Mt({target:"Array",proto:!0},{fill:function(t){for(var e=kt(this),n=ft(e.length),r=arguments.length,o=dt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:dt(i,n);a>o;)e[o++]=t;return e}}),se("fill");var de=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},pe=function(t,e,n){if(de(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ve=[].push,ge=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(c,u,f,l){for(var s,d,v=kt(c),g=p(v),h=pe(u,f,3),m=ft(g.length),y=0,w=l||qt,b=e?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[y],y,v),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return s;case 6:return y;case 2:ve.call(b,s)}else if(o)return!1;return i?-1:r||o?o:b}},he={forEach:ge(0),map:ge(1),filter:ge(2),some:ge(3),every:ge(4),find:ge(5),findIndex:ge(6)},me=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},ye=Object.defineProperty,we={},be=function(t){throw t},xe=function(t,e){if(w(we,t))return we[t];e||(e={});var n=[][t],r=!!w(e,"ACCESSORS")&&e.ACCESSORS,a=w(e,0)?e[0]:be,c=w(e,1)?e[1]:void 0;return we[t]=!!n&&!o((function(){if(r&&!i)return!0;var t={length:-1};r?ye(t,1,{enumerable:!0,get:be}):t[1]=1,n.call(t,a,c)}))},Se=he.forEach,Ee=me("forEach"),Oe=xe("forEach"),Te=Ee&&Oe?[].forEach:function(t){return Se(this,t,arguments.length>1?arguments[1]:void 0)};Mt({target:"Array",proto:!0,forced:[].forEach!=Te},{forEach:Te});var Ae=vt.includes;Mt({target:"Array",proto:!0,forced:!xe("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return Ae(this,t,arguments.length>1?arguments[1]:void 0)}}),se("includes");var je=vt.indexOf,Re=[].indexOf,_e=!!Re&&1/[1].indexOf(1,-0)<0,Pe=me("indexOf"),Me=xe("indexOf",{ACCESSORS:!0,1:0});Mt({target:"Array",proto:!0,forced:_e||!Pe||!Me},{indexOf:function(t){return _e?Re.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Ce=[].join,ke=p!=Object,Ie=me("join",",");Mt({target:"Array",proto:!0,forced:ke||!Ie},{join:function(t){return Ce.call(g(this),void 0===t?",":t)}});var Ne=function(t){return function(e,n,r,o){de(n);var i=kt(e),a=p(i),c=ft(i.length),u=t?c-1:0,f=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,t?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Le={left:Ne(!1),right:Ne(!0)}.left,Fe=me("reduce"),De=xe("reduce",{1:0});Mt({target:"Array",proto:!0,forced:!Fe||!De},{reduce:function(t){return Le(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Be=Jt("slice"),Ue=xe("slice",{ACCESSORS:!0,0:0,1:2}),$e=Ut("species"),qe=[].slice,Ve=Math.max;Mt({target:"Array",proto:!0,forced:!Be||!Ue},{slice:function(t,e){var n,r,o,i=g(this),a=ft(i.length),c=dt(t,a),u=dt(void 0===e?a:e,a);if(Ct(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ct(n.prototype)?h(n)&&null===(n=n[$e])&&(n=void 0):n=void 0,n===Array||void 0===n))return qe.call(i,c,u);for(r=new(void 0===n?Array:n)(Ve(u-c,0)),o=0;c<u;c++,o++)c in i&&It(r,o,i[c]);return r.length=o,r}});var Ge=R.f,ze=Function.prototype,We=ze.toString,Ke=/^\s*function ([^ (]*)/;i&&!("name"in ze)&&Ge(ze,"name",{configurable:!0,get:function(){try{return We.call(this).match(Ke)[1]}catch(t){return""}}});var He="".repeat||function(t){var e=String(v(this)),n="",r=ct(t);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},Je=1..toFixed,Xe=Math.floor,Ye=function(t,e,n){return 0===e?n:e%2==1?Ye(t,e-1,n*t):Ye(t*t,e/2,n)};Mt({target:"Number",proto:!0,forced:Je&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Je.call({})}))},{toFixed:function(t){var e,n,r,o,i=function(t){if("number"!=typeof t&&"Number"!=s(t))throw TypeError("Incorrect invocation");return+t}(this),a=ct(t),c=[0,0,0,0,0,0],u="",f="0",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=Xe(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=Xe(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+He.call("0",7-n.length)+n}return e};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=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*Ye(2,69,1))-69)<0?i*Ye(2,-e,1):i/Ye(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Ye(10,r,1),0),r=e-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),f=p()}else l(0,n),l(1<<-e,0),f=p()+He.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+He.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var Qe=Object.assign,Ze=Object.defineProperty,tn=!Qe||o((function(){if(i&&1!==Qe({b:1},Qe(Ze({},"a",{enumerable:!0,get:function(){Ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Qe({},t)[n]||ee(Qe({},e)).join("")!=r}))?function(t,e){for(var n=kt(t),r=arguments.length,o=1,a=bt.f,c=u.f;r>o;)for(var f,l=p(arguments[o++]),s=a?ee(l).concat(a(l)):ee(l),d=s.length,v=0;d>v;)f=s[v++],i&&!c.call(l,f)||(n[f]=l[f]);return n}:Qe;Mt({target:"Object",stat:!0,forced:Object.assign!==tn},{assign:tn});var en=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),nn=G("IE_PROTO"),rn=Object.prototype,on=en?Object.getPrototypeOf:function(t){return t=kt(t),w(t,nn)?t[nn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?rn:null};Mt({target:"Object",stat:!0,forced:o((function(){on(1)})),sham:!en},{getPrototypeOf:function(t){return on(kt(t))}}),Mt({target:"Object",stat:!0,forced:o((function(){ee(1)}))},{keys:function(t){return ee(kt(t))}});var an={};an[Ut("toStringTag")]="z";var cn="[object z]"===String(an),un=Ut("toStringTag"),fn="Arguments"==s(function(){return arguments}()),ln=cn?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),un))?n:fn?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},sn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||et(Object.prototype,"toString",sn,{unsafe:!0});var dn="[\t\n\v\f\r \u2028\u2029\ufeff]",pn=RegExp("^"+dn+dn+"*"),vn=RegExp(dn+dn+"*$"),gn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(pn,"")),2&t&&(n=n.replace(vn,"")),n}},hn={start:gn(1),end:gn(2),trim:gn(3)}.trim,mn=r.parseFloat,yn=1/mn("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0?function(t){var e=hn(String(t)),n=mn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:mn;Mt({global:!0,forced:parseFloat!=yn},{parseFloat:yn});var wn=r.Promise,bn=R.f,xn=Ut("toStringTag"),Sn=Ut("species"),En=function(t){var e=ot(t),n=R.f;i&&e&&!e[Sn]&&n(e,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ut("iterator"),An=Array.prototype,jn=Ut("iterator"),Rn=function(t,e,n,r){try{return r?e(A(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&A(o.call(t)),e}},_n=e((function(t){var e=function(t,e){this.stopped=t,this.result=e},n=t.exports=function(t,n,r,o,i){var a,c,u,f,l,s,d,p,v=pe(n,r,o?2:1);if(i)a=t;else{if(c=function(t){if(null!=t)return t[jn]||t["@@iterator"]||On[ln(t)]}(t),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(On.Array===p||An[Tn]===p)){for(u=0,f=ft(t.length);f>u;u++)if((l=o?v(A(d=t[u])[0],d[1]):v(t[u]))&&l instanceof e)return l;return new e(!1)}a=c.call(t)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=Rn(a,v,d.value,o))&&l&&l instanceof e)return l;return new e(!1)};n.stop=function(t){return new e(!0,t)}})),Pn=Ut("iterator"),Mn=!1;try{var Cn=0,kn={next:function(){return{done:!!Cn++}},return:function(){Mn=!0}};kn[Pn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(t){}var In,Nn,Ln,Fn=Ut("species"),Dn=function(t,e){var n,r=A(t).constructor;return void 0===r||null==(n=A(r)[Fn])?e:de(n)},Bn=/(iphone|ipod|ipad).*applewebkit/i.test(Vt),Un=r.location,$n=r.setImmediate,qn=r.clearImmediate,Vn=r.process,Gn=r.MessageChannel,zn=r.Dispatch,Wn=0,Kn={},Hn=function(t){if(Kn.hasOwnProperty(t)){var e=Kn[t];delete Kn[t],e()}},Jn=function(t){return function(){Hn(t)}},Xn=function(t){Hn(t.data)},Yn=function(t){r.postMessage(t+"",Un.protocol+"//"+Un.host)};$n&&qn||($n=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Kn[++Wn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},In(Wn),Wn},qn=function(t){delete Kn[t]},"process"==s(Vn)?In=function(t){Vn.nextTick(Jn(t))}:zn&&zn.now?In=function(t){zn.now(Jn(t))}:Gn&&!Bn?(Ln=(Nn=new Gn).port2,Nn.port1.onmessage=Xn,In=pe(Ln.postMessage,Ln,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===Un.protocol?In="onreadystatechange"in S("script")?function(t){re.appendChild(S("script")).onreadystatechange=function(){re.removeChild(this),Hn(t)}}:function(t){setTimeout(Jn(t),0)}:(In=Yn,r.addEventListener("message",Xn,!1)));var Qn,Zn,tr,er,nr,rr,or,ir,ar={set:$n,clear:qn},cr=T.f,ur=ar.set,fr=r.MutationObserver||r.WebKitMutationObserver,lr=r.process,sr=r.Promise,dr="process"==s(lr),pr=cr(r,"queueMicrotask"),vr=pr&&pr.value;vr||(Qn=function(){var t,e;for(dr&&(t=lr.domain)&&t.exit();Zn;){e=Zn.fn,Zn=Zn.next;try{e()}catch(t){throw Zn?er():tr=void 0,t}}tr=void 0,t&&t.enter()},dr?er=function(){lr.nextTick(Qn)}:fr&&!Bn?(nr=!0,rr=document.createTextNode(""),new fr(Qn).observe(rr,{characterData:!0}),er=function(){rr.data=nr=!nr}):sr&&sr.resolve?(or=sr.resolve(void 0),ir=or.then,er=function(){ir.call(or,Qn)}):er=function(){ur.call(r,Qn)});var gr,hr,mr,yr,wr,br,xr,Sr=vr||function(t){var e={fn:t,next:void 0};tr&&(tr.next=e),Zn||(Zn=e,er()),tr=e},Er=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=de(e),this.reject=de(n)},Or={f:function(t){return new Er(t)}},Tr=function(t,e){if(A(t),h(e)&&e.constructor===t)return e;var n=Or.f(t);return(0,n.resolve)(e),n.promise},Ar=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},jr=ar.set,Rr=Ut("species"),_r="Promise",Pr=tt.get,Mr=tt.set,Cr=tt.getterFor(_r),kr=wn,Ir=r.TypeError,Nr=r.document,Lr=r.process,Fr=ot("fetch"),Dr=Or.f,Br=Dr,Ur="process"==s(Lr),$r=!!(Nr&&Nr.createEvent&&r.dispatchEvent),qr=_t(_r,(function(){if(!(L(kr)!==String(kr))){if(66===Kt)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(Kt>=51&&/native code/.test(kr))return!1;var t=kr.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Rr]=e,!(t.then((function(){}))instanceof e)})),Vr=qr||!function(t,e){if(!e&&!Mn)return!1;var n=!1;try{var r={};r[Pn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){kr.all(t).catch((function(){}))})),Gr=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},zr=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;Sr((function(){for(var o=e.value,i=1==e.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===e.rejection&&Jr(t,e),e.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Ir("Promise-chain cycle")):(u=Gr(c))?u.call(c,d,p):d(c)):p(o)}catch(t){v&&!f&&v.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Kr(t,e)}))}},Wr=function(t,e,n){var o,i;$r?((o=Nr.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Kr=function(t,e){jr.call(r,(function(){var n,r=e.value;if(Hr(e)&&(n=Ar((function(){Ur?Lr.emit("unhandledRejection",r,t):Wr("unhandledrejection",t,r)})),e.rejection=Ur||Hr(e)?2:1,n.error))throw n.value}))},Hr=function(t){return 1!==t.rejection&&!t.parent},Jr=function(t,e){jr.call(r,(function(){Ur?Lr.emit("rejectionHandled",t):Wr("rejectionhandled",t,e.value)}))},Xr=function(t,e,n,r){return function(o){t(e,n,o,r)}},Yr=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,zr(t,e,!0))},Qr=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Ir("Promise can't be resolved itself");var o=Gr(n);o?Sr((function(){var r={done:!1};try{o.call(n,Xr(Qr,t,r,e),Xr(Yr,t,r,e))}catch(n){Yr(t,r,n,e)}})):(e.value=n,e.state=1,zr(t,e,!1))}catch(n){Yr(t,{done:!1},n,e)}}};qr&&(kr=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,_r),de(t),gr.call(this);var e=Pr(this);try{t(Xr(Qr,this,e),Xr(Yr,this,e))}catch(t){Yr(this,e,t)}},(gr=function(t){Mr(this,{type:_r,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)et(t,r,e[r],n);return t}(kr.prototype,{then:function(t,e){var n=Cr(this),r=Dr(Dn(this,kr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Ur?Lr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&zr(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),hr=function(){var t=new gr,e=Pr(t);this.promise=t,this.resolve=Xr(Qr,t,e),this.reject=Xr(Yr,t,e)},Or.f=Dr=function(t){return t===kr||t===mr?new hr(t):Br(t)},"function"==typeof wn&&(yr=wn.prototype.then,et(wn.prototype,"then",(function(t,e){var n=this;return new kr((function(t,e){yr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Fr&&Mt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Tr(kr,Fr.apply(r,arguments))}}))),Mt({global:!0,wrap:!0,forced:qr},{Promise:kr}),br=_r,xr=!1,(wr=kr)&&!w(wr=xr?wr:wr.prototype,xn)&&bn(wr,xn,{configurable:!0,value:br}),En(_r),mr=ot(_r),Mt({target:_r,stat:!0,forced:qr},{reject:function(t){var e=Dr(this);return e.reject.call(void 0,t),e.promise}}),Mt({target:_r,stat:!0,forced:qr},{resolve:function(t){return Tr(this,t)}}),Mt({target:_r,stat:!0,forced:Vr},{all:function(t){var e=this,n=Dr(e),r=n.resolve,o=n.reject,i=Ar((function(){var n=de(e.resolve),i=[],a=0,c=1;_n(t,(function(t){var u=a++,f=!1;i.push(void 0),c++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Dr(e),r=n.reject,o=Ar((function(){var o=de(e.resolve);_n(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return A(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),to=Ut("match"),eo=function(t){var e;return h(t)&&(void 0!==(e=t[to])?!!e:"RegExp"==s(t))},no=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ro(t,e){return RegExp(t,e)}var oo={UNSUPPORTED_Y:o((function(){var t=ro("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=ro("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},io=R.f,ao=wt.f,co=tt.set,uo=Ut("match"),fo=r.RegExp,lo=fo.prototype,so=/a/g,po=/a/g,vo=new fo(so)!==so,go=oo.UNSUPPORTED_Y;if(i&&_t("RegExp",!vo||go||o((function(){return po[uo]=!1,fo(so)!=so||fo(po)==po||"/a/i"!=fo(so,"i")})))){for(var ho=function(t,e){var n,r=this instanceof ho,o=eo(t),i=void 0===e;if(!r&&o&&t.constructor===ho&&i)return t;vo?o&&!i&&(t=t.source):t instanceof ho&&(i&&(e=no.call(t)),t=t.source),go&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a,c,u,f,l,s=(a=vo?new fo(t,e):fo(t,e),c=r?this:lo,u=ho,Zr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Zr(a,l),a);return go&&n&&co(s,{sticky:n}),s},mo=function(t){t in ho||io(ho,t,{configurable:!0,get:function(){return fo[t]},set:function(e){fo[t]=e}})},yo=ao(fo),wo=0;yo.length>wo;)mo(yo[wo++]);lo.constructor=ho,ho.prototype=lo,et(r,"RegExp",ho)}En("RegExp");var bo=RegExp.prototype.exec,xo=String.prototype.replace,So=bo,Eo=function(){var t=/a/,e=/b*/g;return bo.call(t,"a"),bo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Oo=oo.UNSUPPORTED_Y||oo.BROKEN_CARET,To=void 0!==/()??/.exec("")[1];(Eo||To||Oo)&&(So=function(t){var e,n,r,o,i=this,a=Oo&&i.sticky,c=no.call(i),u=i.source,f=0,l=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(e=i.lastIndex),r=bo.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:Eo&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),To&&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 Ao=So;Mt({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var jo=RegExp.prototype,Ro=jo.toString,_o=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Po="toString"!=Ro.name;(_o||Po)&&et(RegExp.prototype,"toString",(function(){var t=A(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in jo)?no.call(t):n)}),{unsafe:!0});var Mo=function(t){if(eo(t))throw TypeError("The method doesn't accept regular expressions");return t},Co=Ut("match");Mt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Co]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Mo(t),arguments.length>1?arguments[1]:void 0)}}),Mt({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var ko=Ut("species"),Io=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),No="$0"==="a".replace(/./,"$0"),Lo=Ut("replace"),Fo=!!/./[Lo]&&""===/./[Lo]("a","$0"),Do=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bo=function(t,e,n,r){var i=Ut(t),a=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),c=a&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!a||!c||"replace"===t&&(!Io||!No||Fo)||"split"===t&&!Do){var u=/./[i],f=n(i,""[t],(function(t,e,n,r,o){return e.exec===Ao?a&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:No,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fo}),l=f[0],s=f[1];et(String.prototype,t,l),et(RegExp.prototype,i,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&_(RegExp.prototype[i],"sham",!0)},Uo=function(t){return function(e,n){var r,o,i=String(v(e)),a=ct(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},$o={codeAt:Uo(!1),charAt:Uo(!0)}.charAt,qo=function(t,e,n){return e+(n?$o(t,e).length:1)},Vo=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ao.call(t,e)};Bo("match",1,(function(t,e,n){return[function(e){var n=v(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=A(t),i=String(this);if(!o.global)return Vo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Vo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=qo(i,ft(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Go=Math.max,zo=Math.min,Wo=Math.floor,Ko=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ho=/\$([$&'`]|\d\d?)/g,Jo=function(t){return void 0===t?t:String(t)};Bo("replace",2,(function(t,e,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[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(e,t,this,r);if(u.done)return u.value}var f=A(t),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=Vo(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=qo(l,ft(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),b=Go(zo(ct(g.index),l.length),0),x=[],S=1;S<g.length;S++)x.push(Jo(g[S]));var E=g.groups;if(s){var O=[w].concat(x,b,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,b,x,E,r);b>=m&&(h+=l.slice(m,b)+T,m=b+w.length)}return h+l.slice(m)}];function c(t,n,r,o,i,a){var c=r+t.length,u=o.length,f=Ho;return void 0!==i&&(i=kt(i),f=Ko),e.call(a,f,(function(e,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return t;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 e;if(l>u){var s=Wo(l/10);return 0===s?e:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):e}f=o[l-1]}return void 0===f?"":f}))}}));var Xo=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Bo("search",1,(function(t,e,n){return[function(e){var n=v(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=A(t),i=String(this),a=o.lastIndex;Xo(a,0)||(o.lastIndex=0);var c=Vo(o,i);return Xo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Yo=[].push,Qo=Math.min,Zo=!o((function(){return!RegExp(4294967295,"y")}));Bo("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(v(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!eo(t))return e.call(r,t,o);for(var i,a,c,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,s=new RegExp(t.source,f+"g");(i=Ao.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Yo.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(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var a=A(t),c=String(this),u=Dn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),s=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Zo?v:0;var h,m=Vo(s,Zo?c:c.slice(v));if(null===m||(h=Qo(ft(s.lastIndex+(Zo?0:v)),c.length))===p)v=qo(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}]}),!Zo);for(var ti 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 ei=r[ti],ni=ei&&ei.prototype;if(ni&&ni.forEach!==Te)try{_(ni,"forEach",Te)}catch(t){ni.forEach=Te}}var ri=e((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e}));function oi(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ii(t,e){for(var n=t.length,r=e.length,o=hi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)}function ai(t,e){for(var n=t.length,r=e.length,o=hi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var 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)}function ci(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""}function ui(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r})),n[e]||""}function fi(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n}function li(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=e[1].match(n);return r?r[2]:""}function si(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function di(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function pi(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function vi(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)}function gi(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function hi(t){return JSON.parse(JSON.stringify(t))}function mi(t){try{if("object"===ri(JSON.parse(t)))return!0}catch(t){}return!1}function yi(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function wi(t){void 0===t&&(t=3);var e=[Fi(),yi(t||3)];return e[0]+e[1]}function bi(t,e){void 0===e&&(e=0);return(e?(100*t).toFixed(e):String(Math.floor(100*t)))+"%"}function xi(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function Si(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ei(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function Oi(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function Ti(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function Ai(t,e,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],f=function(){u=!1===n.leading?0:Fi(),i=null,c=t.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=Fi();u||!1!==n.leading||(u=s);var d=e-(s-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=s,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}}function ji(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=Fi()-i;f<e&&f>=0?o=setTimeout(u,e-f):(o=null,n||(c=t.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=Fi();var s=n&&!o;return o||(o=setTimeout(u,e)),s&&(c=t.apply(r,a),r=a=null),c}}function Ri(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n={type:"d"});var r=n.type;_i(t)||(t=new Date(t).getTime()),_i(e)||(e=new Date(e).getTime());var o=e-t,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}function _i(t,e){void 0===e&&(e={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},e),r=n.isNaNAsNumber,o=!0;return"number"!=typeof t&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(t)||(o=!1),!1===r&&isNaN(t)&&(o=!1),o}function Pi(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Mi(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function Ci(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function ki(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function Ii(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Ni(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),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=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){l(a,i,0)}),1),o;function f(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}return c?(a.onload=f,a.onerror=function(){f()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&f()},o}function Li(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,f=document.createElement("script"),l=document.getElementsByTagName("script")[0];return f.type="text/javascript",a&&(f.defer="defer"),r&&(f.id=r),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,Pi(o),Pi(c,!0))}:f.onload=function(){Pi(o),Pi(c,!0)},f.src=t,l&&l.parentNode.insertBefore(f,l),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))}function Fi(){return Date.now?Date.now():(new Date).getTime()}function Di(t,e,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=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Bi(t)&&Bi(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function Bi(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function Ui(t){var e,n;void 0===t&&(t=!0);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,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(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.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(t){_i(g[t])&&g[t]<0&&(g[t]=0)})),_i(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[pi(t)]=g[t]})),e(i||g);else n(Error("startTime"))}else n(Error("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 t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function s(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function v(t,e){var n;return e&&(n=t-e),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i}function $i(t){return Math.random()<t}function qi(){var t=Vi();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)}function Vi(){try{var t=navigator.userAgent.toLowerCase(),e=function(e){return e.test(t)},n=function(e){var n=t.match(e),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";e(/windows|win32|win64|wow32|wow64/g)?r="windows":e(/macintosh|macintel/g)?r="macos":e(/x11/g)?r="linux":e(/android|adr/g)?r="android":e(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",e(/iphone/g)?o="iphone":e(/ipad/g)?o="ipad":e(/iwatch/g)?o="iwatch":e(/ipod/g)&&(o="ipod"));var i="";"windows"===r?e(/windows nt 5.0|windows 2000/g)?i="2000":e(/windows nt 5.1|windows xp/g)?i="xp":e(/windows nt 5.2|windows 2003/g)?i="2003":e(/windows nt 6.0|windows vista/g)?i="vista":e(/windows nt 6.1|windows 7/g)?i="7":e(/windows nt 6.2|windows 8/g)?i="8":e(/windows nt 6.3|windows 8.1/g)?i="8.1":e(/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||e(/mobile/g))&&(a="mobile");var c="",u="";e(/applewebkit/g)?(c="webkit",e(/edge/g)?u="edge":e(/opr/g)?u="opera":e(/chrome/g)?u="chrome":e(/safari/g)&&(u="safari")):e(/gecko/g)&&e(/firefox/g)?(c="gecko",u="firefox"):e(/presto/g)?(c="presto",u="opera"):e(/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 e(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):e(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):e(/\sqq/g)?s="qq_app":e(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):e(/qihu 360se/g)?s="360":e(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):e(/metasr/g)?s="sougou":e(/lbbrowser/g)?s="liebao":e(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):e(/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(t){return console.warn("mazey:",t),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}function Gi(t){return t.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")}function zi(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function Wi(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r}function Ki(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o=""+e.id,(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0}function Hi(t,e){void 0===t&&(t=""),void 0===e&&(e={isClose:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClose:!1,logFn:function(){},errorFn:function(){}},e),r=n.isClose,o=n.logFn,i=n.errorFn,a=Object.create(null);return["log","info","warn","error"].forEach((function(e){a[e]=function(){for(var n,a,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];if(r)return!1;t?(n=console)[e].apply(n,oi([t],c)):(a=console)[e].apply(a,c),"log"===e&&o(),"error"===e&&i()}})),a}function Ji(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i}function Xi(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Yi(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"}function Qi(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}function Zi(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n}export{Oi as addClass,Ki as addStyle,ai as calLongestCommonSubsequence,ii as calLongestCommonSubstring,pi as camelCase2Underscore,di as camelCaseToKebabCase,Si as cancelBubble,Gi as clearHtml,zi as cutCHSString,ji as debounce,hi as deepCopyObject,Pi as doFn,xi as floatFixed,bi as floatToPercent,Ri as friendlyInterval,Hi as genCustomConsole,Zi as genHashCode,yi as generateRndNum,wi as generateUniqueNum,Vi as getBrowserInfo,Bi as getCookie,si as getDomain,Yi as getFileSize,li as getHashQueryParam,Ii as getLocalStorage,Ui as getPerformance,ci as getQueryParam,Ci as getSessionStorage,ui as getUrlParam,Ei as hasClass,$i as inRate,mi as isJsonString,Xi as isNonEmptyArray,_i as isNumber,qi as isSafePWAEnv,Qi as isSupportWebp,Ni as loadCSS,Li as loadScript,Fi as mNow,vi as mTrim,gi as newLine,Ti as removeClass,Di as setCookie,ki as setLocalStorage,Mi as setSessionStorage,Ai as throttle,fi as updateQueryParam,Wi as windowLoaded,Ji as zAxiosIsValidRes};
|
|
6
|
+
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){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(t){var e=c(this,t);return!!e&&e.enumerable}:a},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,s=function(t){return l.call(t).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?d.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return p(g(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(t,e){return y.call(t,e)},b=r.document,x=h(b)&&h(b.createElement),S=function(t){return x?b.createElement(t):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(t,e){if(t=v(t),e=m(e,!0),E)try{return O(t,e)}catch(t){}if(w(t,e))return f(!u.f.call(t,e),t[e])}},A=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,R={f:i?j:function(t,e,n){if(A(t),e=m(e,!0),A(n),E)try{return j(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_=i?function(t,e,n){return R.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{_(r,t,e)}catch(n){r[t]=e}return e},M=r["__core-js_shared__"]||P("__core-js_shared__",{}),C=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return C.call(t)});var k,I,N,L=M.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(L(F)),B=e((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,$=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+$).toString(36)},V=B("keys"),G=function(t){return V[t]||(V[t]=q(t))},W={},z=r.WeakMap;if(D){var K=new z,H=K.get,J=K.has,X=K.set;k=function(t,e){return X.call(K,t,e),e},I=function(t){return H.call(K,t)||{}},N=function(t){return J.call(K,t)}}else{var Y=G("state");W[Y]=!0,k=function(t,e){return _(t,Y,e),e},I=function(t){return w(t,Y)?t[Y]:{}},N=function(t){return w(t,Y)}}var Q,Z,tt={set:k,get:I,has:N,enforce:function(t){return N(t)?I(t):k(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=e((function(t){var e=tt.get,n=tt.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||_(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:_(t,e,i)):u?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),nt=r,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(r[t]):nt[t]&&nt[t][e]||r[t]&&r[t][e]},it=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ut=Math.min,ft=function(t){return t>0?ut(ct(t),9007199254740991):0},lt=Math.max,st=Math.min,dt=function(t,e){var n=ct(t);return n<0?lt(n+e,0):st(n,e)},pt=function(t){return function(e,n,r){var o,i=v(e),a=ft(i.length),c=dt(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},gt={includes:pt(!0),indexOf:pt(!1)},vt=gt.indexOf,ht=function(t,e){var n,r=v(t),o=0,i=[];for(n in r)!w(W,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return ht(t,yt)}},bt={f:Object.getOwnPropertySymbols},xt=ot("Reflect","ownKeys")||function(t){var e=wt.f(A(t)),n=bt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=xt(e),r=R.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(t,a)||r(t,a,o(e,a))}},Et=/#|\.prototype\./,Ot=function(t,e){var n=At[Tt(t)];return n==Rt||n!=jt&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},At=Ot.data={},jt=Ot.NATIVE="N",Rt=Ot.POLYFILL="P",_t=Ot,Pt=T.f,Mt=function(t,e){var n,o,i,a,c,u=t.target,f=t.global,l=t.stat;if(n=f?r:l?r[u]||P(u,{}):(r[u]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(c=Pt(n,o))&&c.value:n[o],!_t(f?o:u+(l?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&_(a,"sham",!0),et(n,o,a,t)}},Ct=Array.isArray||function(t){return"Array"==s(t)},kt=function(t){return Object(g(t))},It=function(t,e,n){var r=m(e);r in t?R.f(t,r,f(0,n)):t[r]=n},Nt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Lt=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=B("wks"),Dt=r.Symbol,Bt=Lt?Dt:Dt&&Dt.withoutSetter||q,Ut=function(t){return w(Ft,t)||(Nt&&w(Dt,t)?Ft[t]=Dt[t]:Ft[t]=Bt("Symbol."+t)),Ft[t]},$t=Ut("species"),qt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Vt=ot("navigator","userAgent")||"",Gt=r.process,Wt=Gt&&Gt.versions,zt=Wt&&Wt.v8;zt?Z=(Q=zt.split("."))[0]+Q[1]:Vt&&(!(Q=Vt.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Vt.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Kt=Z&&+Z,Ht=Ut("species"),Jt=function(t){return Kt>=51||!o((function(){var e=[];return(e.constructor={})[Ht]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Xt=Ut("isConcatSpreadable"),Yt=Kt>=51||!o((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Qt=Jt("concat"),Zt=function(t){if(!h(t))return!1;var e=t[Xt];return void 0!==e?!!e:Ct(t)};Mt({target:"Array",proto:!0,forced:!Yt||!Qt},{concat:function(t){var e,n,r,o,i,a=kt(this),c=qt(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Zt(i=-1===e?a:arguments[e])){if(u+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&It(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");It(c,u++,i)}return c.length=u,c}});var te,ee=Object.keys||function(t){return ht(t,mt)},ne=i?Object.defineProperties:function(t,e){A(t);for(var n,r=ee(e),o=r.length,i=0;o>i;)R.f(t,n=r[i++],e[n]);return t},re=ot("document","documentElement"),oe=G("IE_PROTO"),ie=function(){},ae=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{te=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=te?function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e}(te):((e=S("iframe")).style.display="none",re.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete ce.prototype[mt[n]];return ce()};W[oe]=!0;var ue=Object.create||function(t,e){var n;return null!==t?(ie.prototype=A(t),n=new ie,ie.prototype=null,n[oe]=t):n=ce(),void 0===e?n:ne(n,e)},fe=Ut("unscopables"),le=Array.prototype;null==le[fe]&&R.f(le,fe,{configurable:!0,value:ue(null)});var se=function(t){le[fe][t]=!0};Mt({target:"Array",proto:!0},{fill:function(t){for(var e=kt(this),n=ft(e.length),r=arguments.length,o=dt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:dt(i,n);a>o;)e[o++]=t;return e}}),se("fill");var de=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},pe=function(t,e,n){if(de(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ge=[].push,ve=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(c,u,f,l){for(var s,d,g=kt(c),v=p(g),h=pe(u,f,3),m=ft(v.length),y=0,w=l||qt,b=e?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(s=v[y],y,g),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return s;case 6:return y;case 2:ge.call(b,s)}else if(o)return!1;return i?-1:r||o?o:b}},he={forEach:ve(0),map:ve(1),filter:ve(2),some:ve(3),every:ve(4),find:ve(5),findIndex:ve(6)},me=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},ye=Object.defineProperty,we={},be=function(t){throw t},xe=function(t,e){if(w(we,t))return we[t];e||(e={});var n=[][t],r=!!w(e,"ACCESSORS")&&e.ACCESSORS,a=w(e,0)?e[0]:be,c=w(e,1)?e[1]:void 0;return we[t]=!!n&&!o((function(){if(r&&!i)return!0;var t={length:-1};r?ye(t,1,{enumerable:!0,get:be}):t[1]=1,n.call(t,a,c)}))},Se=he.forEach,Ee=me("forEach"),Oe=xe("forEach"),Te=Ee&&Oe?[].forEach:function(t){return Se(this,t,arguments.length>1?arguments[1]:void 0)};Mt({target:"Array",proto:!0,forced:[].forEach!=Te},{forEach:Te});var Ae=gt.includes;Mt({target:"Array",proto:!0,forced:!xe("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return Ae(this,t,arguments.length>1?arguments[1]:void 0)}}),se("includes");var je=gt.indexOf,Re=[].indexOf,_e=!!Re&&1/[1].indexOf(1,-0)<0,Pe=me("indexOf"),Me=xe("indexOf",{ACCESSORS:!0,1:0});Mt({target:"Array",proto:!0,forced:_e||!Pe||!Me},{indexOf:function(t){return _e?Re.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Ce=[].join,ke=p!=Object,Ie=me("join",",");Mt({target:"Array",proto:!0,forced:ke||!Ie},{join:function(t){return Ce.call(v(this),void 0===t?",":t)}});var Ne=function(t){return function(e,n,r,o){de(n);var i=kt(e),a=p(i),c=ft(i.length),u=t?c-1:0,f=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,t?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Le={left:Ne(!1),right:Ne(!0)}.left,Fe=me("reduce"),De=xe("reduce",{1:0});Mt({target:"Array",proto:!0,forced:!Fe||!De},{reduce:function(t){return Le(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Be=Jt("slice"),Ue=xe("slice",{ACCESSORS:!0,0:0,1:2}),$e=Ut("species"),qe=[].slice,Ve=Math.max;Mt({target:"Array",proto:!0,forced:!Be||!Ue},{slice:function(t,e){var n,r,o,i=v(this),a=ft(i.length),c=dt(t,a),u=dt(void 0===e?a:e,a);if(Ct(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ct(n.prototype)?h(n)&&null===(n=n[$e])&&(n=void 0):n=void 0,n===Array||void 0===n))return qe.call(i,c,u);for(r=new(void 0===n?Array:n)(Ve(u-c,0)),o=0;c<u;c++,o++)c in i&&It(r,o,i[c]);return r.length=o,r}});var Ge=R.f,We=Function.prototype,ze=We.toString,Ke=/^\s*function ([^ (]*)/;i&&!("name"in We)&&Ge(We,"name",{configurable:!0,get:function(){try{return ze.call(this).match(Ke)[1]}catch(t){return""}}});var He="".repeat||function(t){var e=String(g(this)),n="",r=ct(t);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},Je=1..toFixed,Xe=Math.floor,Ye=function(t,e,n){return 0===e?n:e%2==1?Ye(t,e-1,n*t):Ye(t*t,e/2,n)};Mt({target:"Number",proto:!0,forced:Je&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Je.call({})}))},{toFixed:function(t){var e,n,r,o,i=function(t){if("number"!=typeof t&&"Number"!=s(t))throw TypeError("Incorrect invocation");return+t}(this),a=ct(t),c=[0,0,0,0,0,0],u="",f="0",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=Xe(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=Xe(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+He.call("0",7-n.length)+n}return e};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=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*Ye(2,69,1))-69)<0?i*Ye(2,-e,1):i/Ye(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Ye(10,r,1),0),r=e-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),f=p()}else l(0,n),l(1<<-e,0),f=p()+He.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+He.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var Qe=Object.assign,Ze=Object.defineProperty,tn=!Qe||o((function(){if(i&&1!==Qe({b:1},Qe(Ze({},"a",{enumerable:!0,get:function(){Ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Qe({},t)[n]||ee(Qe({},e)).join("")!=r}))?function(t,e){for(var n=kt(t),r=arguments.length,o=1,a=bt.f,c=u.f;r>o;)for(var f,l=p(arguments[o++]),s=a?ee(l).concat(a(l)):ee(l),d=s.length,g=0;d>g;)f=s[g++],i&&!c.call(l,f)||(n[f]=l[f]);return n}:Qe;Mt({target:"Object",stat:!0,forced:Object.assign!==tn},{assign:tn});var en=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),nn=G("IE_PROTO"),rn=Object.prototype,on=en?Object.getPrototypeOf:function(t){return t=kt(t),w(t,nn)?t[nn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?rn:null};Mt({target:"Object",stat:!0,forced:o((function(){on(1)})),sham:!en},{getPrototypeOf:function(t){return on(kt(t))}}),Mt({target:"Object",stat:!0,forced:o((function(){ee(1)}))},{keys:function(t){return ee(kt(t))}});var an={};an[Ut("toStringTag")]="z";var cn="[object z]"===String(an),un=Ut("toStringTag"),fn="Arguments"==s(function(){return arguments}()),ln=cn?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),un))?n:fn?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},sn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||et(Object.prototype,"toString",sn,{unsafe:!0});var dn="[\t\n\v\f\r \u2028\u2029\ufeff]",pn=RegExp("^"+dn+dn+"*"),gn=RegExp(dn+dn+"*$"),vn=function(t){return function(e){var n=String(g(e));return 1&t&&(n=n.replace(pn,"")),2&t&&(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(t){var e=hn(String(t)),n=mn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:mn;Mt({global:!0,forced:parseFloat!=yn},{parseFloat:yn});var wn=r.Promise,bn=R.f,xn=Ut("toStringTag"),Sn=Ut("species"),En=function(t){var e=ot(t),n=R.f;i&&e&&!e[Sn]&&n(e,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ut("iterator"),An=Array.prototype,jn=Ut("iterator"),Rn=function(t,e,n,r){try{return r?e(A(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&A(o.call(t)),e}},_n=e((function(t){var e=function(t,e){this.stopped=t,this.result=e},n=t.exports=function(t,n,r,o,i){var a,c,u,f,l,s,d,p,g=pe(n,r,o?2:1);if(i)a=t;else{if(c=function(t){if(null!=t)return t[jn]||t["@@iterator"]||On[ln(t)]}(t),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(On.Array===p||An[Tn]===p)){for(u=0,f=ft(t.length);f>u;u++)if((l=o?g(A(d=t[u])[0],d[1]):g(t[u]))&&l instanceof e)return l;return new e(!1)}a=c.call(t)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=Rn(a,g,d.value,o))&&l&&l instanceof e)return l;return new e(!1)};n.stop=function(t){return new e(!0,t)}})),Pn=Ut("iterator"),Mn=!1;try{var Cn=0,kn={next:function(){return{done:!!Cn++}},return:function(){Mn=!0}};kn[Pn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(t){}var In,Nn,Ln,Fn=Ut("species"),Dn=function(t,e){var n,r=A(t).constructor;return void 0===r||null==(n=A(r)[Fn])?e:de(n)},Bn=/(iphone|ipod|ipad).*applewebkit/i.test(Vt),Un=r.location,$n=r.setImmediate,qn=r.clearImmediate,Vn=r.process,Gn=r.MessageChannel,Wn=r.Dispatch,zn=0,Kn={},Hn=function(t){if(Kn.hasOwnProperty(t)){var e=Kn[t];delete Kn[t],e()}},Jn=function(t){return function(){Hn(t)}},Xn=function(t){Hn(t.data)},Yn=function(t){r.postMessage(t+"",Un.protocol+"//"+Un.host)};$n&&qn||($n=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Kn[++zn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},In(zn),zn},qn=function(t){delete Kn[t]},"process"==s(Vn)?In=function(t){Vn.nextTick(Jn(t))}:Wn&&Wn.now?In=function(t){Wn.now(Jn(t))}:Gn&&!Bn?(Ln=(Nn=new Gn).port2,Nn.port1.onmessage=Xn,In=pe(Ln.postMessage,Ln,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===Un.protocol?In="onreadystatechange"in S("script")?function(t){re.appendChild(S("script")).onreadystatechange=function(){re.removeChild(this),Hn(t)}}:function(t){setTimeout(Jn(t),0)}:(In=Yn,r.addEventListener("message",Xn,!1)));var Qn,Zn,tr,er,nr,rr,or,ir,ar={set:$n,clear:qn},cr=T.f,ur=ar.set,fr=r.MutationObserver||r.WebKitMutationObserver,lr=r.process,sr=r.Promise,dr="process"==s(lr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Qn=function(){var t,e;for(dr&&(t=lr.domain)&&t.exit();Zn;){e=Zn.fn,Zn=Zn.next;try{e()}catch(t){throw Zn?er():tr=void 0,t}}tr=void 0,t&&t.enter()},dr?er=function(){lr.nextTick(Qn)}:fr&&!Bn?(nr=!0,rr=document.createTextNode(""),new fr(Qn).observe(rr,{characterData:!0}),er=function(){rr.data=nr=!nr}):sr&&sr.resolve?(or=sr.resolve(void 0),ir=or.then,er=function(){ir.call(or,Qn)}):er=function(){ur.call(r,Qn)});var vr,hr,mr,yr,wr,br,xr,Sr=gr||function(t){var e={fn:t,next:void 0};tr&&(tr.next=e),Zn||(Zn=e,er()),tr=e},Er=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=de(e),this.reject=de(n)},Or={f:function(t){return new Er(t)}},Tr=function(t,e){if(A(t),h(e)&&e.constructor===t)return e;var n=Or.f(t);return(0,n.resolve)(e),n.promise},Ar=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},jr=ar.set,Rr=Ut("species"),_r="Promise",Pr=tt.get,Mr=tt.set,Cr=tt.getterFor(_r),kr=wn,Ir=r.TypeError,Nr=r.document,Lr=r.process,Fr=ot("fetch"),Dr=Or.f,Br=Dr,Ur="process"==s(Lr),$r=!!(Nr&&Nr.createEvent&&r.dispatchEvent),qr=_t(_r,(function(){if(!(L(kr)!==String(kr))){if(66===Kt)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(Kt>=51&&/native code/.test(kr))return!1;var t=kr.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Rr]=e,!(t.then((function(){}))instanceof e)})),Vr=qr||!function(t,e){if(!e&&!Mn)return!1;var n=!1;try{var r={};r[Pn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){kr.all(t).catch((function(){}))})),Gr=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Wr=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;Sr((function(){for(var o=e.value,i=1==e.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,g=l.domain;try{s?(i||(2===e.rejection&&Jr(t,e),e.rejection=1),!0===s?c=o:(g&&g.enter(),c=s(o),g&&(g.exit(),f=!0)),c===l.promise?p(Ir("Promise-chain cycle")):(u=Gr(c))?u.call(c,d,p):d(c)):p(o)}catch(t){g&&!f&&g.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Kr(t,e)}))}},zr=function(t,e,n){var o,i;$r?((o=Nr.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Kr=function(t,e){jr.call(r,(function(){var n,r=e.value;if(Hr(e)&&(n=Ar((function(){Ur?Lr.emit("unhandledRejection",r,t):zr("unhandledrejection",t,r)})),e.rejection=Ur||Hr(e)?2:1,n.error))throw n.value}))},Hr=function(t){return 1!==t.rejection&&!t.parent},Jr=function(t,e){jr.call(r,(function(){Ur?Lr.emit("rejectionHandled",t):zr("rejectionhandled",t,e.value)}))},Xr=function(t,e,n,r){return function(o){t(e,n,o,r)}},Yr=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Wr(t,e,!0))},Qr=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Ir("Promise can't be resolved itself");var o=Gr(n);o?Sr((function(){var r={done:!1};try{o.call(n,Xr(Qr,t,r,e),Xr(Yr,t,r,e))}catch(n){Yr(t,r,n,e)}})):(e.value=n,e.state=1,Wr(t,e,!1))}catch(n){Yr(t,{done:!1},n,e)}}};qr&&(kr=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,_r),de(t),vr.call(this);var e=Pr(this);try{t(Xr(Qr,this,e),Xr(Yr,this,e))}catch(t){Yr(this,e,t)}},(vr=function(t){Mr(this,{type:_r,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)et(t,r,e[r],n);return t}(kr.prototype,{then:function(t,e){var n=Cr(this),r=Dr(Dn(this,kr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Ur?Lr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Wr(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),hr=function(){var t=new vr,e=Pr(t);this.promise=t,this.resolve=Xr(Qr,t,e),this.reject=Xr(Yr,t,e)},Or.f=Dr=function(t){return t===kr||t===mr?new hr(t):Br(t)},"function"==typeof wn&&(yr=wn.prototype.then,et(wn.prototype,"then",(function(t,e){var n=this;return new kr((function(t,e){yr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Fr&&Mt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Tr(kr,Fr.apply(r,arguments))}}))),Mt({global:!0,wrap:!0,forced:qr},{Promise:kr}),br=_r,xr=!1,(wr=kr)&&!w(wr=xr?wr:wr.prototype,xn)&&bn(wr,xn,{configurable:!0,value:br}),En(_r),mr=ot(_r),Mt({target:_r,stat:!0,forced:qr},{reject:function(t){var e=Dr(this);return e.reject.call(void 0,t),e.promise}}),Mt({target:_r,stat:!0,forced:qr},{resolve:function(t){return Tr(this,t)}}),Mt({target:_r,stat:!0,forced:Vr},{all:function(t){var e=this,n=Dr(e),r=n.resolve,o=n.reject,i=Ar((function(){var n=de(e.resolve),i=[],a=0,c=1;_n(t,(function(t){var u=a++,f=!1;i.push(void 0),c++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Dr(e),r=n.reject,o=Ar((function(){var o=de(e.resolve);_n(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return A(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),to=Ut("match"),eo=function(t){var e;return h(t)&&(void 0!==(e=t[to])?!!e:"RegExp"==s(t))},no=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ro(t,e){return RegExp(t,e)}var oo={UNSUPPORTED_Y:o((function(){var t=ro("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=ro("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},io=R.f,ao=wt.f,co=tt.set,uo=Ut("match"),fo=r.RegExp,lo=fo.prototype,so=/a/g,po=/a/g,go=new fo(so)!==so,vo=oo.UNSUPPORTED_Y;if(i&&_t("RegExp",!go||vo||o((function(){return po[uo]=!1,fo(so)!=so||fo(po)==po||"/a/i"!=fo(so,"i")})))){for(var ho=function(t,e){var n,r=this instanceof ho,o=eo(t),i=void 0===e;if(!r&&o&&t.constructor===ho&&i)return t;go?o&&!i&&(t=t.source):t instanceof ho&&(i&&(e=no.call(t)),t=t.source),vo&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a,c,u,f,l,s=(a=go?new fo(t,e):fo(t,e),c=r?this:lo,u=ho,Zr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&co(s,{sticky:n}),s},mo=function(t){t in ho||io(ho,t,{configurable:!0,get:function(){return fo[t]},set:function(e){fo[t]=e}})},yo=ao(fo),wo=0;yo.length>wo;)mo(yo[wo++]);lo.constructor=ho,ho.prototype=lo,et(r,"RegExp",ho)}En("RegExp");var bo=RegExp.prototype.exec,xo=String.prototype.replace,So=bo,Eo=function(){var t=/a/,e=/b*/g;return bo.call(t,"a"),bo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Oo=oo.UNSUPPORTED_Y||oo.BROKEN_CARET,To=void 0!==/()??/.exec("")[1];(Eo||To||Oo)&&(So=function(t){var e,n,r,o,i=this,a=Oo&&i.sticky,c=no.call(i),u=i.source,f=0,l=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(e=i.lastIndex),r=bo.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:Eo&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),To&&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 Ao=So;Mt({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var jo=RegExp.prototype,Ro=jo.toString,_o=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Po="toString"!=Ro.name;(_o||Po)&&et(RegExp.prototype,"toString",(function(){var t=A(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in jo)?no.call(t):n)}),{unsafe:!0});var Mo=function(t){if(eo(t))throw TypeError("The method doesn't accept regular expressions");return t},Co=Ut("match");Mt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Co]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(g(this)).indexOf(Mo(t),arguments.length>1?arguments[1]:void 0)}}),Mt({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var ko=Ut("species"),Io=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),No="$0"==="a".replace(/./,"$0"),Lo=Ut("replace"),Fo=!!/./[Lo]&&""===/./[Lo]("a","$0"),Do=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bo=function(t,e,n,r){var i=Ut(t),a=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),c=a&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!a||!c||"replace"===t&&(!Io||!No||Fo)||"split"===t&&!Do){var u=/./[i],f=n(i,""[t],(function(t,e,n,r,o){return e.exec===Ao?a&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:No,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fo}),l=f[0],s=f[1];et(String.prototype,t,l),et(RegExp.prototype,i,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&_(RegExp.prototype[i],"sham",!0)},Uo=function(t){return function(e,n){var r,o,i=String(g(e)),a=ct(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},$o={codeAt:Uo(!1),charAt:Uo(!0)}.charAt,qo=function(t,e,n){return e+(n?$o(t,e).length:1)},Vo=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ao.call(t,e)};Bo("match",1,(function(t,e,n){return[function(e){var n=g(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=A(t),i=String(this);if(!o.global)return Vo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Vo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=qo(i,ft(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Go=Math.max,Wo=Math.min,zo=Math.floor,Ko=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ho=/\$([$&'`]|\d\d?)/g,Jo=function(t){return void 0===t?t:String(t)};Bo("replace",2,(function(t,e,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[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(e,t,this,r);if(u.done)return u.value}var f=A(t),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 g=[];;){var v=Vo(f,l);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(f.lastIndex=qo(l,ft(f.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),b=Go(Wo(ct(v.index),l.length),0),x=[],S=1;S<v.length;S++)x.push(Jo(v[S]));var E=v.groups;if(s){var O=[w].concat(x,b,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,b,x,E,r);b>=m&&(h+=l.slice(m,b)+T,m=b+w.length)}return h+l.slice(m)}];function c(t,n,r,o,i,a){var c=r+t.length,u=o.length,f=Ho;return void 0!==i&&(i=kt(i),f=Ko),e.call(a,f,(function(e,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return t;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 e;if(l>u){var s=zo(l/10);return 0===s?e:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):e}f=o[l-1]}return void 0===f?"":f}))}}));var Xo=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Bo("search",1,(function(t,e,n){return[function(e){var n=g(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=A(t),i=String(this),a=o.lastIndex;Xo(a,0)||(o.lastIndex=0);var c=Vo(o,i);return Xo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Yo=[].push,Qo=Math.min,Zo=!o((function(){return!RegExp(4294967295,"y")}));Bo("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(g(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!eo(t))return e.call(r,t,o);for(var i,a,c,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,s=new RegExp(t.source,f+"g");(i=Ao.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Yo.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(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=g(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var a=A(t),c=String(this),u=Dn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),s=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(s,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){s.lastIndex=Zo?g:0;var h,m=Vo(s,Zo?c:c.slice(g));if(null===m||(h=Qo(ft(s.lastIndex+(Zo?0:g)),c.length))===p)g=qo(c,g,f);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 ti 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 ei=r[ti],ni=ei&&ei.prototype;if(ni&&ni.forEach!==Te)try{_(ni,"forEach",Te)}catch(t){ni.forEach=Te}}var ri=e((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e}));function oi(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ii(t,e){for(var n=t.length,r=e.length,o=hi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)}function ai(t,e){for(var n=t.length,r=e.length,o=hi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var 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)}function ci(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""}function ui(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r})),n[e]||""}function fi(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n}function li(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=e[1].match(n);return r?r[2]:""}function si(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function di(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function pi(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function gi(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)}function vi(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function hi(t){return JSON.parse(JSON.stringify(t))}function mi(t){try{if("object"===ri(JSON.parse(t)))return!0}catch(t){}return!1}function yi(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function wi(t){void 0===t&&(t=3);var e=[Fi(),yi(t||3)];return e[0]+e[1]}function bi(t,e){void 0===e&&(e=0);return(e?(100*t).toFixed(e):String(Math.floor(100*t)))+"%"}function xi(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function Si(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ei(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function Oi(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function Ti(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function Ai(t,e,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],f=function(){u=!1===n.leading?0:Fi(),i=null,c=t.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=Fi();u||!1!==n.leading||(u=s);var d=e-(s-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=s,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}}function ji(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=Fi()-i;f<e&&f>=0?o=setTimeout(u,e-f):(o=null,n||(c=t.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=Fi();var s=n&&!o;return o||(o=setTimeout(u,e)),s&&(c=t.apply(r,a),r=a=null),c}}function Ri(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n={type:"d"});var r=n.type;_i(t)||(t=new Date(t).getTime()),_i(e)||(e=new Date(e).getTime());var o=e-t,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}function _i(t,e){void 0===e&&(e={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},e),r=n.isNaNAsNumber,o=!0;return"number"!=typeof t&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(t)||(o=!1),!1===r&&isNaN(t)&&(o=!1),o}function Pi(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Mi(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function Ci(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function ki(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function Ii(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Ni(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),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=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){l(a,i,0)}),1),o;function f(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}return c?(a.onload=f,a.onerror=function(){f()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&f()},o}function Li(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,f=document.createElement("script"),l=document.getElementsByTagName("script")[0];return f.type="text/javascript",a&&(f.defer="defer"),r&&(f.id=r),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,Pi(o),Pi(c,!0))}:f.onload=function(){Pi(o),Pi(c,!0)},f.src=t,l&&l.parentNode.insertBefore(f,l),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))}function Fi(){return Date.now?Date.now():(new Date).getTime()}function Di(t,e,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=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Bi(t)&&Bi(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function Bi(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function Ui(t){var e,n;void 0===t&&(t=!0);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,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(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={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: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(t){_i(v[t])&&v[t]<0&&(v[t]=0)})),_i(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)t||Object.keys(v).forEach((function(t){i||(i={}),i[pi(t)]=v[t]})),e(i||v);else n(Error("startTime"))}else n(Error("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 t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function s(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function g(t,e){var n;return e&&(n=t-e),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i}function $i(t){return Math.random()<t}function qi(){var t=Vi();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)}function Vi(){try{var t=navigator.userAgent.toLowerCase(),e=function(e){return e.test(t)},n=function(e){var n=t.match(e),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";e(/windows|win32|win64|wow32|wow64/g)?r="windows":e(/macintosh|macintel/g)?r="macos":e(/x11/g)?r="linux":e(/android|adr/g)?r="android":e(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",e(/iphone/g)?o="iphone":e(/ipad/g)?o="ipad":e(/iwatch/g)?o="iwatch":e(/ipod/g)&&(o="ipod"));var i="";"windows"===r?e(/windows nt 5.0|windows 2000/g)?i="2000":e(/windows nt 5.1|windows xp/g)?i="xp":e(/windows nt 5.2|windows 2003/g)?i="2003":e(/windows nt 6.0|windows vista/g)?i="vista":e(/windows nt 6.1|windows 7/g)?i="7":e(/windows nt 6.2|windows 8/g)?i="8":e(/windows nt 6.3|windows 8.1/g)?i="8.1":e(/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||e(/mobile/g))&&(a="mobile");var c="",u="";e(/applewebkit/g)?(c="webkit",e(/edge/g)?u="edge":e(/opr/g)?u="opera":e(/chrome/g)?u="chrome":e(/safari/g)&&(u="safari")):e(/gecko/g)&&e(/firefox/g)?(c="gecko",u="firefox"):e(/presto/g)?(c="presto",u="opera"):e(/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 e(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):e(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):e(/\sqq/g)?s="qq_app":e(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):e(/qihu 360se/g)?s="360":e(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):e(/metasr/g)?s="sougou":e(/lbbrowser/g)?s="liebao":e(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):e(/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(t){return console.warn("mazey:",t),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}function Gi(t){return t.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")}function Wi(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function zi(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r}function Ki(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o=""+e.id,(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0}function Hi(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.logFn,a=n.errorFn,c=Object.create(null);return["log","info","warn","error"].forEach((function(e){c[e]=function(){for(var n,c,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];if(r)return!1;var l="";if("string"==typeof t&&t.length>=2){var s=t.length;l=":"===t[s-1]?t.substring(0,s-1):t}o&&console.log("--- "+l+" - begin ---"),t?(n=console)[e].apply(n,oi([t],u)):(c=console)[e].apply(c,u),"log"===e&&i(),"error"===e&&a(),o&&console.log("--- "+l+" - end ---")}})),c}function Ji(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i}function Xi(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Yi(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"}function Qi(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}function Zi(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n}export{Oi as addClass,Ki as addStyle,ai as calLongestCommonSubsequence,ii as calLongestCommonSubstring,pi as camelCase2Underscore,di as camelCaseToKebabCase,Si as cancelBubble,Gi as clearHtml,Wi as cutCHSString,ji as debounce,hi as deepCopyObject,Pi as doFn,xi as floatFixed,bi as floatToPercent,Ri as friendlyInterval,Hi as genCustomConsole,Zi as genHashCode,yi as generateRndNum,wi as generateUniqueNum,Vi as getBrowserInfo,Bi as getCookie,si as getDomain,Yi as getFileSize,li as getHashQueryParam,Ii as getLocalStorage,Ui as getPerformance,ci as getQueryParam,Ci as getSessionStorage,ui as getUrlParam,Ei as hasClass,$i as inRate,mi as isJsonString,Xi as isNonEmptyArray,_i as isNumber,qi as isSafePWAEnv,Qi as isSupportWebp,Ni as loadCSS,Li as loadScript,Fi as mNow,gi as mTrim,vi as newLine,Ti as removeClass,Di as setCookie,ki as setLocalStorage,Mi as setSessionStorage,Ai as throttle,fi as updateQueryParam,zi as windowLoaded,Ji as zAxiosIsValidRes};
|
package/lib/mazey.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.3.
|
|
2
|
+
* mazey v3.3.10
|
|
3
3
|
* (c) 2018-2022 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var mazey=function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,l={f:u&&!c.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:c},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},s={}.toString,d=function(e){return s.call(e).slice(8,-1)},p="".split,g=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return g(v(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,b=function(e,t){return w.call(e,t)},S=o.document,x=m(S)&&m(S.createElement),E=function(e){return x?S.createElement(e):{}},O=!a&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,A={f:a?T:function(e,t){if(e=h(e),t=y(t,!0),O)try{return T(e,t)}catch(e){}if(b(e,t))return f(!l.f.call(e,t),e[t])}},j=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},R=Object.defineProperty,C={f:a?R:function(e,t,n){if(j(e),t=y(t,!0),j(n),O)try{return R(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}},P=a?function(e,t,n){return C.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{P(o,e,t)}catch(n){o[e]=t}return t},M="__core-js_shared__",k=o[M]||_(M,{}),N=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(e){return N.call(e)});var L,I,F,D=k.inspectSource,B=o.WeakMap,U="function"==typeof B&&/native code/.test(D(B)),$=n((function(e){(e.exports=function(e,t){return k[e]||(k[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,V=Math.random(),z=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+V).toString(36)},G=$("keys"),H=function(e){return G[e]||(G[e]=z(e))},W={},K=o.WeakMap;if(U){var J=new K,Q=J.get,X=J.has,Y=J.set;L=function(e,t){return Y.call(J,e,t),t},I=function(e){return Q.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=H("state");W[Z]=!0,L=function(e,t){return P(e,Z,t),t},I=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:L,get:I,has:F,enforce:function(e){return F(e)?I(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},re=n((function(e){var t=ne.get,n=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||P(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(c?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=i:P(e,t,i)):u?e[t]=i:_(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||D(this)}))})),oe=o,ie=function(e){return"function"==typeof e?e:void 0},ae=function(e,t){return arguments.length<2?ie(oe[e])||ie(o[e]):oe[e]&&oe[e][t]||o[e]&&o[e][t]},ce=Math.ceil,ue=Math.floor,le=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},fe=Math.min,se=function(e){return e>0?fe(le(e),9007199254740991):0},de=Math.max,pe=Math.min,ge=function(e,t){var n=le(e);return n<0?de(n+t,0):pe(n,t)},ve=function(e){return function(t,n,r){var o,i=h(t),a=se(i.length),c=ge(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}},he={includes:ve(!0),indexOf:ve(!1)},me=he.indexOf,ye=function(e,t){var n,r=h(e),o=0,i=[];for(n in r)!b(W,n)&&b(r,n)&&i.push(n);for(;t.length>o;)b(r,n=t[o++])&&(~me(i,n)||i.push(n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=we.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(e){return ye(e,be)}},xe={f:Object.getOwnPropertySymbols},Ee=ae("Reflect","ownKeys")||function(e){var t=Se.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=C.f,o=A.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Te=/#|\.prototype\./,Ae=function(e,t){var n=Re[je(e)];return n==Pe||n!=Ce&&("function"==typeof t?i(t):!!t)},je=Ae.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Re=Ae.data={},Ce=Ae.NATIVE="N",Pe=Ae.POLYFILL="P",_e=Ae,Me=A.f,ke=function(e,t){var n,r,i,a,c,u=e.target,l=e.global,f=e.stat;if(n=l?o:f?o[u]||_(u,{}):(o[u]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(c=Me(n,r))&&c.value:n[r],!_e(l?r:u+(f?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Oe(a,i)}(e.sham||i&&i.sham)&&P(a,"sham",!0),re(n,r,a,e)}},Ne=Array.isArray||function(e){return"Array"==d(e)},Le=function(e){return Object(v(e))},Ie=function(e,t,n){var r=y(t);r in e?C.f(e,r,f(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Be=$("wks"),Ue=o.Symbol,$e=De?Ue:Ue&&Ue.withoutSetter||z,qe=function(e){return b(Be,e)||(Fe&&b(Ue,e)?Be[e]=Ue[e]:Be[e]=$e("Symbol."+e)),Be[e]},Ve=qe("species"),ze=function(e,t){var n;return Ne(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ne(n.prototype)?m(n)&&null===(n=n[Ve])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ge=ae("navigator","userAgent")||"",He=o.process,We=He&&He.versions,Ke=We&&We.v8;Ke?te=(ee=Ke.split("."))[0]+ee[1]:Ge&&(!(ee=Ge.match(/Edge\/(\d+)/))||ee[1]>=74)&&(ee=Ge.match(/Chrome\/(\d+)/))&&(te=ee[1]);var Je=te&&+te,Qe=qe("species"),Xe=function(e){return Je>=51||!i((function(){var t=[];return(t.constructor={})[Qe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ye=qe("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=Je>=51||!i((function(){var e=[];return e[Ye]=!1,e.concat()[0]!==e})),nt=Xe("concat"),rt=function(e){if(!m(e))return!1;var t=e[Ye];return void 0!==t?!!t:Ne(e)};ke({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=Le(this),c=ze(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(rt(i=-1===t?a:arguments[t])){if(u+(o=se(i.length))>Ze)throw TypeError(et);for(n=0;n<o;n++,u++)n in i&&Ie(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Ie(c,u++,i)}return c.length=u,c}});var ot,it=Object.keys||function(e){return ye(e,we)},at=a?Object.defineProperties:function(e,t){j(e);for(var n,r=it(t),o=r.length,i=0;o>i;)C.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=H("IE_PROTO"),lt=function(){},ft=function(e){return"<script>"+e+"</"+"script>"},st=function(){try{ot=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=ot?function(e){e.write(ft("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ot):((t=E("iframe")).style.display="none",ct.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ft("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete st.prototype[we[n]];return st()};W[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(lt.prototype=j(e),n=new lt,lt.prototype=null,n[ut]=e):n=st(),void 0===t?n:at(n,t)},pt=qe("unscopables"),gt=Array.prototype;null==gt[pt]&&C.f(gt,pt,{configurable:!0,value:dt(null)});var vt=function(e){gt[pt][e]=!0};ke({target:"Array",proto:!0},{fill:function(e){for(var t=Le(this),n=se(t.length),r=arguments.length,o=ge(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ge(i,n);a>o;)t[o++]=e;return t}}),vt("fill");var ht=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},mt=function(e,t,n){if(ht(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)}},yt=[].push,wt=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,l,f){for(var s,d,p=Le(c),v=g(p),h=mt(u,l,3),m=se(v.length),y=0,w=f||ze,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(s=v[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:yt.call(b,s)}else if(o)return!1;return i?-1:r||o?o:b}},bt={forEach:wt(0),map:wt(1),filter:wt(2),some:wt(3),every:wt(4),find:wt(5),findIndex:wt(6)},St=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},xt=Object.defineProperty,Et={},Ot=function(e){throw e},Tt=function(e,t){if(b(Et,e))return Et[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,o=b(t,0)?t[0]:Ot,c=b(t,1)?t[1]:void 0;return Et[e]=!!n&&!i((function(){if(r&&!a)return!0;var e={length:-1};r?xt(e,1,{enumerable:!0,get:Ot}):e[1]=1,n.call(e,o,c)}))},At=bt.forEach,jt=St("forEach"),Rt=Tt("forEach"),Ct=jt&&Rt?[].forEach:function(e){return At(this,e,arguments.length>1?arguments[1]:void 0)};ke({target:"Array",proto:!0,forced:[].forEach!=Ct},{forEach:Ct});var Pt=he.includes;ke({target:"Array",proto:!0,forced:!Tt("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return Pt(this,e,arguments.length>1?arguments[1]:void 0)}}),vt("includes");var _t=he.indexOf,Mt=[].indexOf,kt=!!Mt&&1/[1].indexOf(1,-0)<0,Nt=St("indexOf"),Lt=Tt("indexOf",{ACCESSORS:!0,1:0});ke({target:"Array",proto:!0,forced:kt||!Nt||!Lt},{indexOf:function(e){return kt?Mt.apply(this,arguments)||0:_t(this,e,arguments.length>1?arguments[1]:void 0)}});var It=[].join,Ft=g!=Object,Dt=St("join",",");ke({target:"Array",proto:!0,forced:Ft||!Dt},{join:function(e){return It.call(h(this),void 0===e?",":e)}});var Bt=function(e){return function(t,n,r,o){ht(n);var i=Le(t),a=g(i),c=se(i.length),u=e?c-1:0,l=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=l;break}if(u+=l,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=l)u in a&&(o=n(o,a[u],u,i));return o}},Ut={left:Bt(!1),right:Bt(!0)}.left,$t=St("reduce"),qt=Tt("reduce",{1:0});ke({target:"Array",proto:!0,forced:!$t||!qt},{reduce:function(e){return Ut(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Vt=Xe("slice"),zt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),Gt=qe("species"),Ht=[].slice,Wt=Math.max;ke({target:"Array",proto:!0,forced:!Vt||!zt},{slice:function(e,t){var n,r,o,i=h(this),a=se(i.length),c=ge(e,a),u=ge(void 0===t?a:t,a);if(Ne(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ne(n.prototype)?m(n)&&null===(n=n[Gt])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ht.call(i,c,u);for(r=new(void 0===n?Array:n)(Wt(u-c,0)),o=0;c<u;c++,o++)c in i&&Ie(r,o,i[c]);return r.length=o,r}});var Kt=C.f,Jt=Function.prototype,Qt=Jt.toString,Xt=/^\s*function ([^ (]*)/,Yt="name";a&&!(Yt in Jt)&&Kt(Jt,Yt,{configurable:!0,get:function(){try{return Qt.call(this).match(Xt)[1]}catch(e){return""}}});var Zt="".repeat||function(e){var t=String(v(this)),n="",r=le(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},en=1..toFixed,tn=Math.floor,nn=function(e,t,n){return 0===t?n:t%2==1?nn(e,t-1,n*e):nn(e*e,t/2,n)};ke({target:"Number",proto:!0,forced:en&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){en.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=d(e))throw TypeError("Incorrect invocation");return+e}(this),a=le(e),c=[0,0,0,0,0,0],u="",l="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=tn(r/1e7)},s=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=tn(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*nn(2,69,1))-69)<0?i*nn(2,-t,1):i/nn(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=a;r>=7;)f(1e7,0),r-=7;for(f(nn(10,r,1),0),r=t-1;r>=23;)s(1<<23),r-=23;s(1<<r),f(1,1),s(2),l=p()}else f(0,n),f(1<<-t,0),l=p()+Zt.call("0",a);return l=a>0?u+((o=l.length)<=a?"0."+Zt.call("0",a-o)+l:l.slice(0,o-a)+"."+l.slice(o-a)):u+l}});var rn=Object.assign,on=Object.defineProperty,an=!rn||i((function(){if(a&&1!==rn({b:1},rn(on({},"a",{enumerable:!0,get:function(){on(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!=rn({},e)[n]||it(rn({},t)).join("")!=r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,i=xe.f,c=l.f;r>o;)for(var u,f=g(arguments[o++]),s=i?it(f).concat(i(f)):it(f),d=s.length,p=0;d>p;)u=s[p++],a&&!c.call(f,u)||(n[u]=f[u]);return n}:rn;ke({target:"Object",stat:!0,forced:Object.assign!==an},{assign:an});var cn=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),un=H("IE_PROTO"),ln=Object.prototype,fn=cn?Object.getPrototypeOf:function(e){return e=Le(e),b(e,un)?e[un]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ln:null};ke({target:"Object",stat:!0,forced:i((function(){fn(1)})),sham:!cn},{getPrototypeOf:function(e){return fn(Le(e))}}),ke({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(Le(e))}});var sn={};sn[qe("toStringTag")]="z";var dn="[object z]"===String(sn),pn=qe("toStringTag"),gn="Arguments"==d(function(){return arguments}()),vn=dn?d: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),pn))?n:gn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},hn=dn?{}.toString:function(){return"[object "+vn(this)+"]"};dn||re(Object.prototype,"toString",hn,{unsafe:!0});var mn="\t\n\v\f\r \u2028\u2029\ufeff",yn="["+mn+"]",wn=RegExp("^"+yn+yn+"*"),bn=RegExp(yn+yn+"*$"),Sn=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(wn,"")),2&e&&(n=n.replace(bn,"")),n}},xn={start:Sn(1),end:Sn(2),trim:Sn(3)}.trim,En=o.parseFloat,On=1/En(mn+"-0")!=-1/0?function(e){var t=xn(String(e)),n=En(t);return 0===n&&"-"==t.charAt(0)?-0:n}:En;ke({global:!0,forced:parseFloat!=On},{parseFloat:On});var Tn=o.Promise,An=C.f,jn=qe("toStringTag"),Rn=qe("species"),Cn=function(e){var t=ae(e),n=C.f;a&&t&&!t[Rn]&&n(t,Rn,{configurable:!0,get:function(){return this}})},Pn={},_n=qe("iterator"),Mn=Array.prototype,kn=qe("iterator"),Nn=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}},Ln=n((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,l,f,s,d,p,g=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[kn]||e["@@iterator"]||Pn[vn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Pn.Array===p||Mn[_n]===p)){for(u=0,l=se(e.length);l>u;u++)if((f=o?g(j(d=e[u])[0],d[1]):g(e[u]))&&f instanceof t)return f;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(f=Nn(a,g,d.value,o))&&f&&f instanceof t)return f;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),In=qe("iterator"),Fn=!1;try{var Dn=0,Bn={next:function(){return{done:!!Dn++}},return:function(){Fn=!0}};Bn[In]=function(){return this},Array.from(Bn,(function(){throw 2}))}catch(e){}var Un,$n,qn,Vn=qe("species"),zn=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[Vn])?t:ht(n)},Gn=/(iphone|ipod|ipad).*applewebkit/i.test(Ge),Hn=o.location,Wn=o.setImmediate,Kn=o.clearImmediate,Jn=o.process,Qn=o.MessageChannel,Xn=o.Dispatch,Yn=0,Zn={},er="onreadystatechange",tr=function(e){if(Zn.hasOwnProperty(e)){var t=Zn[e];delete Zn[e],t()}},nr=function(e){return function(){tr(e)}},rr=function(e){tr(e.data)},or=function(e){o.postMessage(e+"",Hn.protocol+"//"+Hn.host)};Wn&&Kn||(Wn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Zn[++Yn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Un(Yn),Yn},Kn=function(e){delete Zn[e]},"process"==d(Jn)?Un=function(e){Jn.nextTick(nr(e))}:Xn&&Xn.now?Un=function(e){Xn.now(nr(e))}:Qn&&!Gn?(qn=($n=new Qn).port2,$n.port1.onmessage=rr,Un=mt(qn.postMessage,qn,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(or)||"file:"===Hn.protocol?Un=er in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),tr(e)}}:function(e){setTimeout(nr(e),0)}:(Un=or,o.addEventListener("message",rr,!1)));var ir,ar,cr,ur,lr,fr,sr,dr,pr={set:Wn,clear:Kn},gr=A.f,vr=pr.set,hr=o.MutationObserver||o.WebKitMutationObserver,mr=o.process,yr=o.Promise,wr="process"==d(mr),br=gr(o,"queueMicrotask"),Sr=br&&br.value;Sr||(ir=function(){var e,t;for(wr&&(e=mr.domain)&&e.exit();ar;){t=ar.fn,ar=ar.next;try{t()}catch(e){throw ar?ur():cr=void 0,e}}cr=void 0,e&&e.enter()},wr?ur=function(){mr.nextTick(ir)}:hr&&!Gn?(lr=!0,fr=document.createTextNode(""),new hr(ir).observe(fr,{characterData:!0}),ur=function(){fr.data=lr=!lr}):yr&&yr.resolve?(sr=yr.resolve(void 0),dr=sr.then,ur=function(){dr.call(sr,ir)}):ur=function(){vr.call(o,ir)});var xr,Er,Or,Tr,Ar,jr,Rr,Cr=Sr||function(e){var t={fn:e,next:void 0};cr&&(cr.next=t),ar||(ar=t,ur()),cr=t},Pr=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=ht(t),this.reject=ht(n)},_r={f:function(e){return new Pr(e)}},Mr=function(e,t){if(j(e),m(t)&&t.constructor===e)return t;var n=_r.f(e);return(0,n.resolve)(t),n.promise},kr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nr=pr.set,Lr=qe("species"),Ir="Promise",Fr=ne.get,Dr=ne.set,Br=ne.getterFor(Ir),Ur=Tn,$r=o.TypeError,qr=o.document,Vr=o.process,zr=ae("fetch"),Gr=_r.f,Hr=Gr,Wr="process"==d(Vr),Kr=!!(qr&&qr.createEvent&&o.dispatchEvent),Jr="unhandledrejection",Qr=_e(Ir,(function(){if(!(D(Ur)!==String(Ur))){if(66===Je)return!0;if(!Wr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test(Ur))return!1;var e=Ur.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Lr]=t,!(e.then((function(){}))instanceof t)})),Xr=Qr||!function(e,t){if(!t&&!Fn)return!1;var n=!1;try{var r={};r[In]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Ur.all(e).catch((function(){}))})),Yr=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Zr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Cr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,f=r[a++],s=i?f.ok:f.fail,d=f.resolve,p=f.reject,g=f.domain;try{s?(i||(2===t.rejection&&ro(e,t),t.rejection=1),!0===s?c=o:(g&&g.enter(),c=s(o),g&&(g.exit(),l=!0)),c===f.promise?p($r("Promise-chain cycle")):(u=Yr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!l&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&to(e,t)}))}},eo=function(e,t,n){var r,i;Kr?((r=qr.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),o.dispatchEvent(r)):r={promise:t,reason:n},(i=o["on"+e])?i(r):e===Jr&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},to=function(e,t){Nr.call(o,(function(){var n,r=t.value;if(no(t)&&(n=kr((function(){Wr?Vr.emit("unhandledRejection",r,e):eo(Jr,e,r)})),t.rejection=Wr||no(t)?2:1,n.error))throw n.value}))},no=function(e){return 1!==e.rejection&&!e.parent},ro=function(e,t){Nr.call(o,(function(){Wr?Vr.emit("rejectionHandled",e):eo("rejectionhandled",e,t.value)}))},oo=function(e,t,n,r){return function(o){e(t,n,o,r)}},io=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Zr(e,t,!0))},ao=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw $r("Promise can't be resolved itself");var o=Yr(n);o?Cr((function(){var r={done:!1};try{o.call(n,oo(ao,e,r,t),oo(io,e,r,t))}catch(n){io(e,r,n,t)}})):(t.value=n,t.state=1,Zr(e,t,!1))}catch(n){io(e,{done:!1},n,t)}}};Qr&&(Ur=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Ur,Ir),ht(e),xr.call(this);var t=Fr(this);try{e(oo(ao,this,t),oo(io,this,t))}catch(e){io(this,t,e)}},(xr=function(e){Dr(this,{type:Ir,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)re(e,r,t[r],n);return e}(Ur.prototype,{then:function(e,t){var n=Br(this),r=Gr(zn(this,Ur));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Wr?Vr.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)}}),Er=function(){var e=new xr,t=Fr(e);this.promise=e,this.resolve=oo(ao,e,t),this.reject=oo(io,e,t)},_r.f=Gr=function(e){return e===Ur||e===Or?new Er(e):Hr(e)},"function"==typeof Tn&&(Tr=Tn.prototype.then,re(Tn.prototype,"then",(function(e,t){var n=this;return new Ur((function(e,t){Tr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof zr&&ke({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Mr(Ur,zr.apply(o,arguments))}}))),ke({global:!0,wrap:!0,forced:Qr},{Promise:Ur}),jr=Ir,Rr=!1,(Ar=Ur)&&!b(Ar=Rr?Ar:Ar.prototype,jn)&&An(Ar,jn,{configurable:!0,value:jr}),Cn(Ir),Or=ae(Ir),ke({target:Ir,stat:!0,forced:Qr},{reject:function(e){var t=Gr(this);return t.reject.call(void 0,e),t.promise}}),ke({target:Ir,stat:!0,forced:Qr},{resolve:function(e){return Mr(this,e)}}),ke({target:Ir,stat:!0,forced:Xr},{all:function(e){var t=this,n=Gr(t),r=n.resolve,o=n.reject,i=kr((function(){var n=ht(t.resolve),i=[],a=0,c=1;Ln(e,(function(e){var u=a++,l=!1;i.push(void 0),c++,n.call(t,e).then((function(e){l||(l=!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=Gr(t),r=n.reject,o=kr((function(){var o=ht(t.resolve);Ln(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var co=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(!m(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),uo=qe("match"),lo=function(e){var t;return m(e)&&(void 0!==(t=e[uo])?!!t:"RegExp"==d(e))},fo=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 so(e,t){return RegExp(e,t)}var po={UNSUPPORTED_Y:i((function(){var e=so("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=so("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},go=C.f,vo=Se.f,ho=ne.set,mo=qe("match"),yo=o.RegExp,wo=yo.prototype,bo=/a/g,So=/a/g,xo=new yo(bo)!==bo,Eo=po.UNSUPPORTED_Y;if(a&&_e("RegExp",!xo||Eo||i((function(){return So[mo]=!1,yo(bo)!=bo||yo(So)==So||"/a/i"!=yo(bo,"i")})))){for(var Oo=function(e,t){var n,r=this instanceof Oo,o=lo(e),i=void 0===t;if(!r&&o&&e.constructor===Oo&&i)return e;xo?o&&!i&&(e=e.source):e instanceof Oo&&(i&&(t=fo.call(e)),e=e.source),Eo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,l,f,s=(a=xo?new yo(e,t):yo(e,t),c=r?this:wo,u=Oo,co&&"function"==typeof(l=c.constructor)&&l!==u&&m(f=l.prototype)&&f!==u.prototype&&co(a,f),a);return Eo&&n&&ho(s,{sticky:n}),s},To=function(e){e in Oo||go(Oo,e,{configurable:!0,get:function(){return yo[e]},set:function(t){yo[e]=t}})},Ao=vo(yo),jo=0;Ao.length>jo;)To(Ao[jo++]);wo.constructor=Oo,Oo.prototype=wo,re(o,"RegExp",Oo)}Cn("RegExp");var Ro=RegExp.prototype.exec,Co=String.prototype.replace,Po=Ro,_o=function(){var e=/a/,t=/b*/g;return Ro.call(e,"a"),Ro.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Mo=po.UNSUPPORTED_Y||po.BROKEN_CARET,ko=void 0!==/()??/.exec("")[1];(_o||ko||Mo)&&(Po=function(e){var t,n,r,o,i=this,a=Mo&&i.sticky,c=fo.call(i),u=i.source,l=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,l++),n=new RegExp("^(?:"+u+")",c)),ko&&(n=new RegExp("^"+u+"$(?!\\s)",c)),_o&&(t=i.lastIndex),r=Ro.call(a?n:i,f),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:_o&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),ko&&r&&r.length>1&&Co.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var No=Po;ke({target:"RegExp",proto:!0,forced:/./.exec!==No},{exec:No});var Lo="toString",Io=RegExp.prototype,Fo=Io.toString,Do=i((function(){return"/a/b"!=Fo.call({source:"a",flags:"b"})})),Bo=Fo.name!=Lo;(Do||Bo)&&re(RegExp.prototype,Lo,(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Io)?fo.call(e):n)}),{unsafe:!0});var Uo=function(e){if(lo(e))throw TypeError("The method doesn't accept regular expressions");return e},$o=qe("match");ke({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[$o]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(v(this)).indexOf(Uo(e),arguments.length>1?arguments[1]:void 0)}}),ke({target:"RegExp",proto:!0,forced:/./.exec!==No},{exec:No});var qo=qe("species"),Vo=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),zo="$0"==="a".replace(/./,"$0"),Go=qe("replace"),Ho=!!/./[Go]&&""===/./[Go]("a","$0"),Wo=!i((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]})),Ko=function(e,t,n,r){var o=qe(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),c=a&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[qo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!Vo||!zo||Ho)||"split"===e&&!Wo){var u=/./[o],l=n(o,""[e],(function(e,t,n,r,o){return t.exec===No?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:zo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ho}),f=l[0],s=l[1];re(String.prototype,e,f),re(RegExp.prototype,o,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&P(RegExp.prototype[o],"sham",!0)},Jo=function(e){return function(t,n){var r,o,i=String(v(t)),a=le(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}},Qo={codeAt:Jo(!1),charAt:Jo(!0)}.charAt,Xo=function(e,t,n){return t+(n?Qo(e,t).length:1)},Yo=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"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return No.call(e,t)};Ko("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 Yo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],l=0;null!==(c=Yo(o,i));){var f=String(c[0]);u[l]=f,""===f&&(o.lastIndex=Xo(i,se(o.lastIndex),a)),l++}return 0===l?null:u}]}));var Zo=Math.max,ei=Math.min,ti=Math.floor,ni=/\$([$&'`]|\d\d?|<[^>]*>)/g,ri=/\$([$&'`]|\d\d?)/g,oi=function(e){return void 0===e?e:String(e)};Ko("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 l=j(e),f=String(this),s="function"==typeof r;s||(r=String(r));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var g=[];;){var v=Yo(l,f);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(l.lastIndex=Xo(f,se(l.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),b=Zo(ei(le(v.index),f.length),0),S=[],x=1;x<v.length;x++)S.push(oi(v[x]));var E=v.groups;if(s){var O=[w].concat(S,b,f);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,f,b,S,E,r);b>=m&&(h+=f.slice(m,b)+T,m=b+w.length)}return h+f.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,l=ri;return void 0!==i&&(i=Le(i),l=ni),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return t;if(f>u){var s=ti(f/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}l=o[f-1]}return void 0===l?"":l}))}}));var ii=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ko("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;ii(a,0)||(o.lastIndex=0);var c=Yo(o,i);return ii(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var ai=[].push,ci=Math.min,ui=4294967295,li=!i((function(){return!RegExp(ui,"y")}));Ko("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?ui:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!lo(e))return t.call(r,e,o);for(var i,a,c,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,l+"g");(i=No.call(s,r))&&!((a=s.lastIndex)>f&&(u.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&ai.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!c&&s.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=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=zn(a,RegExp),l=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(li?"y":"g"),s=new u(li?a:"^(?:"+a.source+")",f),d=void 0===o?ui:o>>>0;if(0===d)return[];if(0===c.length)return null===Yo(s,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){s.lastIndex=li?g:0;var h,m=Yo(s,li?c:c.slice(g));if(null===m||(h=ci(se(s.lastIndex+(li?0:g)),c.length))===p)g=Xo(c,g,l);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}]}),!li);for(var fi 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 si=o[fi],di=si&&si.prototype;if(di&&di.forEach!==Ct)try{P(di,"forEach",Ct)}catch(e){di.forEach=Ct}}var pi=n((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 gi(){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 vi(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function hi(e){return JSON.parse(JSON.stringify(e))}function mi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function yi(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 wi(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 bi(){return Date.now?Date.now():(new Date).getTime()}function Si(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 xi(){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 l="";"webkit"===c?l=n(/applewebkit\/[\d._]+/g):"gecko"===c?l=n(/gecko\/[\d._]+/g):"presto"===c?l=n(/presto\/[\d._]+/g):"trident"===c&&(l=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 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:l,platform:a,supporter:u,supporterVs:f,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.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},e.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=hi(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],l=u[0],f=u[1];a>0&&(l=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(l,f)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},e.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=hi(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)},e.camelCase2Underscore=vi,e.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},e.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.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""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var l=bi()-i;l<t&&l>=0?o=setTimeout(u,t-l):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];r=this,a=l,i=bi();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=hi,e.doFn=wi,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){return void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},e.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;yi(e)||(e=new Date(e).getTime()),yi(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},e.genCustomConsole=function(e,t){void 0===e&&(e=""),void 0===t&&(t={isClose:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClose:!1,logFn:function(){},errorFn:function(){}},t),r=n.isClose,o=n.logFn,i=n.errorFn,a=Object.create(null);return["log","info","warn","error"].forEach((function(t){a[t]=function(){for(var n,a,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];if(r)return!1;e?(n=console)[t].apply(n,gi([e],c)):(a=console)[t].apply(a,c),"log"===t&&o(),"error"===t&&i()}})),a},e.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},e.generateRndNum=mi,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[bi(),mi(e||3)];return t[0]+t[1]},e.getBrowserInfo=xi,e.getCookie=Si,e.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]}),"")},e.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"},e.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]:""},e.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.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:l(),osVersion:f(),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: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){yi(v[e])&&v[e]<0&&(v[e]=0)})),yi(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[vi(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function l(){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 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 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},e.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},e.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.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]||""},e.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},e.inRate=function(e){return Math.random()<e},e.isJsonString=function(e){try{if("object"===pi(JSON.parse(e)))return!0}catch(e){}return!1},e.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},e.isNumber=yi,e.isSafePWAEnv=function(){var e=xi();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},e.isSupportWebp=function(){return new Promise((function(e){var 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="}))},e.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),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 l(){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=l,a.onerror=function(){l()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&l()},o},e.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,l=document.createElement("script"),f=document.getElementsByTagName("script")[0];return l.type="text/javascript",a&&(l.defer="defer"),r&&(l.id=r),l.readyState?l.onreadystatechange=function(){"loaded"!==l.readyState&&"complete"!==l.readyState||(l.onreadystatechange=null,wi(o),wi(c,!0))}:l.onload=function(){wi(o),wi(c,!0)},l.src=e,f&&f.parentNode.insertBefore(l,f),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},e.mNow=bi,e.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)},e.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},e.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},e.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!==Si(e)&&Si(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},e.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},e.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},e.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],l=function(){u=!1===n.leading?0:bi(),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 s=bi();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(l,d)),c}},e.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},e.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},e.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
6
|
+
var mazey=function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,l={f:u&&!c.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:c},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},s={}.toString,d=function(e){return s.call(e).slice(8,-1)},p="".split,g=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return g(v(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,b=function(e,t){return w.call(e,t)},S=o.document,x=m(S)&&m(S.createElement),E=function(e){return x?S.createElement(e):{}},O=!a&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,A={f:a?T:function(e,t){if(e=h(e),t=y(t,!0),O)try{return T(e,t)}catch(e){}if(b(e,t))return f(!l.f.call(e,t),e[t])}},j=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},R=Object.defineProperty,C={f:a?R:function(e,t,n){if(j(e),t=y(t,!0),j(n),O)try{return R(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}},P=a?function(e,t,n){return C.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{P(o,e,t)}catch(n){o[e]=t}return t},M="__core-js_shared__",k=o[M]||_(M,{}),N=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(e){return N.call(e)});var L,I,F,D=k.inspectSource,B=o.WeakMap,U="function"==typeof B&&/native code/.test(D(B)),$=n((function(e){(e.exports=function(e,t){return k[e]||(k[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,V=Math.random(),W=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+V).toString(36)},z=$("keys"),G=function(e){return z[e]||(z[e]=W(e))},H={},K=o.WeakMap;if(U){var J=new K,Q=J.get,X=J.has,Y=J.set;L=function(e,t){return Y.call(J,e,t),t},I=function(e){return Q.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=G("state");H[Z]=!0,L=function(e,t){return P(e,Z,t),t},I=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:L,get:I,has:F,enforce:function(e){return F(e)?I(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},re=n((function(e){var t=ne.get,n=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||P(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(c?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=i:P(e,t,i)):u?e[t]=i:_(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||D(this)}))})),oe=o,ie=function(e){return"function"==typeof e?e:void 0},ae=function(e,t){return arguments.length<2?ie(oe[e])||ie(o[e]):oe[e]&&oe[e][t]||o[e]&&o[e][t]},ce=Math.ceil,ue=Math.floor,le=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},fe=Math.min,se=function(e){return e>0?fe(le(e),9007199254740991):0},de=Math.max,pe=Math.min,ge=function(e,t){var n=le(e);return n<0?de(n+t,0):pe(n,t)},ve=function(e){return function(t,n,r){var o,i=h(t),a=se(i.length),c=ge(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}},he={includes:ve(!0),indexOf:ve(!1)},me=he.indexOf,ye=function(e,t){var n,r=h(e),o=0,i=[];for(n in r)!b(H,n)&&b(r,n)&&i.push(n);for(;t.length>o;)b(r,n=t[o++])&&(~me(i,n)||i.push(n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=we.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(e){return ye(e,be)}},xe={f:Object.getOwnPropertySymbols},Ee=ae("Reflect","ownKeys")||function(e){var t=Se.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=C.f,o=A.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Te=/#|\.prototype\./,Ae=function(e,t){var n=Re[je(e)];return n==Pe||n!=Ce&&("function"==typeof t?i(t):!!t)},je=Ae.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Re=Ae.data={},Ce=Ae.NATIVE="N",Pe=Ae.POLYFILL="P",_e=Ae,Me=A.f,ke=function(e,t){var n,r,i,a,c,u=e.target,l=e.global,f=e.stat;if(n=l?o:f?o[u]||_(u,{}):(o[u]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(c=Me(n,r))&&c.value:n[r],!_e(l?r:u+(f?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Oe(a,i)}(e.sham||i&&i.sham)&&P(a,"sham",!0),re(n,r,a,e)}},Ne=Array.isArray||function(e){return"Array"==d(e)},Le=function(e){return Object(v(e))},Ie=function(e,t,n){var r=y(t);r in e?C.f(e,r,f(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Be=$("wks"),Ue=o.Symbol,$e=De?Ue:Ue&&Ue.withoutSetter||W,qe=function(e){return b(Be,e)||(Fe&&b(Ue,e)?Be[e]=Ue[e]:Be[e]=$e("Symbol."+e)),Be[e]},Ve=qe("species"),We=function(e,t){var n;return Ne(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ne(n.prototype)?m(n)&&null===(n=n[Ve])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ze=ae("navigator","userAgent")||"",Ge=o.process,He=Ge&&Ge.versions,Ke=He&&He.v8;Ke?te=(ee=Ke.split("."))[0]+ee[1]:ze&&(!(ee=ze.match(/Edge\/(\d+)/))||ee[1]>=74)&&(ee=ze.match(/Chrome\/(\d+)/))&&(te=ee[1]);var Je=te&&+te,Qe=qe("species"),Xe=function(e){return Je>=51||!i((function(){var t=[];return(t.constructor={})[Qe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ye=qe("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=Je>=51||!i((function(){var e=[];return e[Ye]=!1,e.concat()[0]!==e})),nt=Xe("concat"),rt=function(e){if(!m(e))return!1;var t=e[Ye];return void 0!==t?!!t:Ne(e)};ke({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=Le(this),c=We(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(rt(i=-1===t?a:arguments[t])){if(u+(o=se(i.length))>Ze)throw TypeError(et);for(n=0;n<o;n++,u++)n in i&&Ie(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Ie(c,u++,i)}return c.length=u,c}});var ot,it=Object.keys||function(e){return ye(e,we)},at=a?Object.defineProperties:function(e,t){j(e);for(var n,r=it(t),o=r.length,i=0;o>i;)C.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=G("IE_PROTO"),lt=function(){},ft=function(e){return"<script>"+e+"</"+"script>"},st=function(){try{ot=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=ot?function(e){e.write(ft("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ot):((t=E("iframe")).style.display="none",ct.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ft("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete st.prototype[we[n]];return st()};H[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(lt.prototype=j(e),n=new lt,lt.prototype=null,n[ut]=e):n=st(),void 0===t?n:at(n,t)},pt=qe("unscopables"),gt=Array.prototype;null==gt[pt]&&C.f(gt,pt,{configurable:!0,value:dt(null)});var vt=function(e){gt[pt][e]=!0};ke({target:"Array",proto:!0},{fill:function(e){for(var t=Le(this),n=se(t.length),r=arguments.length,o=ge(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ge(i,n);a>o;)t[o++]=e;return t}}),vt("fill");var ht=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},mt=function(e,t,n){if(ht(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)}},yt=[].push,wt=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,l,f){for(var s,d,p=Le(c),v=g(p),h=mt(u,l,3),m=se(v.length),y=0,w=f||We,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(s=v[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:yt.call(b,s)}else if(o)return!1;return i?-1:r||o?o:b}},bt={forEach:wt(0),map:wt(1),filter:wt(2),some:wt(3),every:wt(4),find:wt(5),findIndex:wt(6)},St=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},xt=Object.defineProperty,Et={},Ot=function(e){throw e},Tt=function(e,t){if(b(Et,e))return Et[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,o=b(t,0)?t[0]:Ot,c=b(t,1)?t[1]:void 0;return Et[e]=!!n&&!i((function(){if(r&&!a)return!0;var e={length:-1};r?xt(e,1,{enumerable:!0,get:Ot}):e[1]=1,n.call(e,o,c)}))},At=bt.forEach,jt=St("forEach"),Rt=Tt("forEach"),Ct=jt&&Rt?[].forEach:function(e){return At(this,e,arguments.length>1?arguments[1]:void 0)};ke({target:"Array",proto:!0,forced:[].forEach!=Ct},{forEach:Ct});var Pt=he.includes;ke({target:"Array",proto:!0,forced:!Tt("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return Pt(this,e,arguments.length>1?arguments[1]:void 0)}}),vt("includes");var _t=he.indexOf,Mt=[].indexOf,kt=!!Mt&&1/[1].indexOf(1,-0)<0,Nt=St("indexOf"),Lt=Tt("indexOf",{ACCESSORS:!0,1:0});ke({target:"Array",proto:!0,forced:kt||!Nt||!Lt},{indexOf:function(e){return kt?Mt.apply(this,arguments)||0:_t(this,e,arguments.length>1?arguments[1]:void 0)}});var It=[].join,Ft=g!=Object,Dt=St("join",",");ke({target:"Array",proto:!0,forced:Ft||!Dt},{join:function(e){return It.call(h(this),void 0===e?",":e)}});var Bt=function(e){return function(t,n,r,o){ht(n);var i=Le(t),a=g(i),c=se(i.length),u=e?c-1:0,l=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=l;break}if(u+=l,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=l)u in a&&(o=n(o,a[u],u,i));return o}},Ut={left:Bt(!1),right:Bt(!0)}.left,$t=St("reduce"),qt=Tt("reduce",{1:0});ke({target:"Array",proto:!0,forced:!$t||!qt},{reduce:function(e){return Ut(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Vt=Xe("slice"),Wt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),zt=qe("species"),Gt=[].slice,Ht=Math.max;ke({target:"Array",proto:!0,forced:!Vt||!Wt},{slice:function(e,t){var n,r,o,i=h(this),a=se(i.length),c=ge(e,a),u=ge(void 0===t?a:t,a);if(Ne(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ne(n.prototype)?m(n)&&null===(n=n[zt])&&(n=void 0):n=void 0,n===Array||void 0===n))return Gt.call(i,c,u);for(r=new(void 0===n?Array:n)(Ht(u-c,0)),o=0;c<u;c++,o++)c in i&&Ie(r,o,i[c]);return r.length=o,r}});var Kt=C.f,Jt=Function.prototype,Qt=Jt.toString,Xt=/^\s*function ([^ (]*)/,Yt="name";a&&!(Yt in Jt)&&Kt(Jt,Yt,{configurable:!0,get:function(){try{return Qt.call(this).match(Xt)[1]}catch(e){return""}}});var Zt="".repeat||function(e){var t=String(v(this)),n="",r=le(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},en=1..toFixed,tn=Math.floor,nn=function(e,t,n){return 0===t?n:t%2==1?nn(e,t-1,n*e):nn(e*e,t/2,n)};ke({target:"Number",proto:!0,forced:en&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){en.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=d(e))throw TypeError("Incorrect invocation");return+e}(this),a=le(e),c=[0,0,0,0,0,0],u="",l="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=tn(r/1e7)},s=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=tn(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*nn(2,69,1))-69)<0?i*nn(2,-t,1):i/nn(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=a;r>=7;)f(1e7,0),r-=7;for(f(nn(10,r,1),0),r=t-1;r>=23;)s(1<<23),r-=23;s(1<<r),f(1,1),s(2),l=p()}else f(0,n),f(1<<-t,0),l=p()+Zt.call("0",a);return l=a>0?u+((o=l.length)<=a?"0."+Zt.call("0",a-o)+l:l.slice(0,o-a)+"."+l.slice(o-a)):u+l}});var rn=Object.assign,on=Object.defineProperty,an=!rn||i((function(){if(a&&1!==rn({b:1},rn(on({},"a",{enumerable:!0,get:function(){on(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!=rn({},e)[n]||it(rn({},t)).join("")!=r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,i=xe.f,c=l.f;r>o;)for(var u,f=g(arguments[o++]),s=i?it(f).concat(i(f)):it(f),d=s.length,p=0;d>p;)u=s[p++],a&&!c.call(f,u)||(n[u]=f[u]);return n}:rn;ke({target:"Object",stat:!0,forced:Object.assign!==an},{assign:an});var cn=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),un=G("IE_PROTO"),ln=Object.prototype,fn=cn?Object.getPrototypeOf:function(e){return e=Le(e),b(e,un)?e[un]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ln:null};ke({target:"Object",stat:!0,forced:i((function(){fn(1)})),sham:!cn},{getPrototypeOf:function(e){return fn(Le(e))}}),ke({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(Le(e))}});var sn={};sn[qe("toStringTag")]="z";var dn="[object z]"===String(sn),pn=qe("toStringTag"),gn="Arguments"==d(function(){return arguments}()),vn=dn?d: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),pn))?n:gn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},hn=dn?{}.toString:function(){return"[object "+vn(this)+"]"};dn||re(Object.prototype,"toString",hn,{unsafe:!0});var mn="\t\n\v\f\r \u2028\u2029\ufeff",yn="["+mn+"]",wn=RegExp("^"+yn+yn+"*"),bn=RegExp(yn+yn+"*$"),Sn=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(wn,"")),2&e&&(n=n.replace(bn,"")),n}},xn={start:Sn(1),end:Sn(2),trim:Sn(3)}.trim,En=o.parseFloat,On=1/En(mn+"-0")!=-1/0?function(e){var t=xn(String(e)),n=En(t);return 0===n&&"-"==t.charAt(0)?-0:n}:En;ke({global:!0,forced:parseFloat!=On},{parseFloat:On});var Tn=o.Promise,An=C.f,jn=qe("toStringTag"),Rn=qe("species"),Cn=function(e){var t=ae(e),n=C.f;a&&t&&!t[Rn]&&n(t,Rn,{configurable:!0,get:function(){return this}})},Pn={},_n=qe("iterator"),Mn=Array.prototype,kn=qe("iterator"),Nn=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}},Ln=n((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,l,f,s,d,p,g=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[kn]||e["@@iterator"]||Pn[vn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Pn.Array===p||Mn[_n]===p)){for(u=0,l=se(e.length);l>u;u++)if((f=o?g(j(d=e[u])[0],d[1]):g(e[u]))&&f instanceof t)return f;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(f=Nn(a,g,d.value,o))&&f&&f instanceof t)return f;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),In=qe("iterator"),Fn=!1;try{var Dn=0,Bn={next:function(){return{done:!!Dn++}},return:function(){Fn=!0}};Bn[In]=function(){return this},Array.from(Bn,(function(){throw 2}))}catch(e){}var Un,$n,qn,Vn=qe("species"),Wn=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[Vn])?t:ht(n)},zn=/(iphone|ipod|ipad).*applewebkit/i.test(ze),Gn=o.location,Hn=o.setImmediate,Kn=o.clearImmediate,Jn=o.process,Qn=o.MessageChannel,Xn=o.Dispatch,Yn=0,Zn={},er="onreadystatechange",tr=function(e){if(Zn.hasOwnProperty(e)){var t=Zn[e];delete Zn[e],t()}},nr=function(e){return function(){tr(e)}},rr=function(e){tr(e.data)},or=function(e){o.postMessage(e+"",Gn.protocol+"//"+Gn.host)};Hn&&Kn||(Hn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Zn[++Yn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Un(Yn),Yn},Kn=function(e){delete Zn[e]},"process"==d(Jn)?Un=function(e){Jn.nextTick(nr(e))}:Xn&&Xn.now?Un=function(e){Xn.now(nr(e))}:Qn&&!zn?(qn=($n=new Qn).port2,$n.port1.onmessage=rr,Un=mt(qn.postMessage,qn,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(or)||"file:"===Gn.protocol?Un=er in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),tr(e)}}:function(e){setTimeout(nr(e),0)}:(Un=or,o.addEventListener("message",rr,!1)));var ir,ar,cr,ur,lr,fr,sr,dr,pr={set:Hn,clear:Kn},gr=A.f,vr=pr.set,hr=o.MutationObserver||o.WebKitMutationObserver,mr=o.process,yr=o.Promise,wr="process"==d(mr),br=gr(o,"queueMicrotask"),Sr=br&&br.value;Sr||(ir=function(){var e,t;for(wr&&(e=mr.domain)&&e.exit();ar;){t=ar.fn,ar=ar.next;try{t()}catch(e){throw ar?ur():cr=void 0,e}}cr=void 0,e&&e.enter()},wr?ur=function(){mr.nextTick(ir)}:hr&&!zn?(lr=!0,fr=document.createTextNode(""),new hr(ir).observe(fr,{characterData:!0}),ur=function(){fr.data=lr=!lr}):yr&&yr.resolve?(sr=yr.resolve(void 0),dr=sr.then,ur=function(){dr.call(sr,ir)}):ur=function(){vr.call(o,ir)});var xr,Er,Or,Tr,Ar,jr,Rr,Cr=Sr||function(e){var t={fn:e,next:void 0};cr&&(cr.next=t),ar||(ar=t,ur()),cr=t},Pr=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=ht(t),this.reject=ht(n)},_r={f:function(e){return new Pr(e)}},Mr=function(e,t){if(j(e),m(t)&&t.constructor===e)return t;var n=_r.f(e);return(0,n.resolve)(t),n.promise},kr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nr=pr.set,Lr=qe("species"),Ir="Promise",Fr=ne.get,Dr=ne.set,Br=ne.getterFor(Ir),Ur=Tn,$r=o.TypeError,qr=o.document,Vr=o.process,Wr=ae("fetch"),zr=_r.f,Gr=zr,Hr="process"==d(Vr),Kr=!!(qr&&qr.createEvent&&o.dispatchEvent),Jr="unhandledrejection",Qr=_e(Ir,(function(){if(!(D(Ur)!==String(Ur))){if(66===Je)return!0;if(!Hr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test(Ur))return!1;var e=Ur.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Lr]=t,!(e.then((function(){}))instanceof t)})),Xr=Qr||!function(e,t){if(!t&&!Fn)return!1;var n=!1;try{var r={};r[In]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Ur.all(e).catch((function(){}))})),Yr=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Zr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Cr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,f=r[a++],s=i?f.ok:f.fail,d=f.resolve,p=f.reject,g=f.domain;try{s?(i||(2===t.rejection&&ro(e,t),t.rejection=1),!0===s?c=o:(g&&g.enter(),c=s(o),g&&(g.exit(),l=!0)),c===f.promise?p($r("Promise-chain cycle")):(u=Yr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!l&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&to(e,t)}))}},eo=function(e,t,n){var r,i;Kr?((r=qr.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),o.dispatchEvent(r)):r={promise:t,reason:n},(i=o["on"+e])?i(r):e===Jr&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},to=function(e,t){Nr.call(o,(function(){var n,r=t.value;if(no(t)&&(n=kr((function(){Hr?Vr.emit("unhandledRejection",r,e):eo(Jr,e,r)})),t.rejection=Hr||no(t)?2:1,n.error))throw n.value}))},no=function(e){return 1!==e.rejection&&!e.parent},ro=function(e,t){Nr.call(o,(function(){Hr?Vr.emit("rejectionHandled",e):eo("rejectionhandled",e,t.value)}))},oo=function(e,t,n,r){return function(o){e(t,n,o,r)}},io=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Zr(e,t,!0))},ao=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw $r("Promise can't be resolved itself");var o=Yr(n);o?Cr((function(){var r={done:!1};try{o.call(n,oo(ao,e,r,t),oo(io,e,r,t))}catch(n){io(e,r,n,t)}})):(t.value=n,t.state=1,Zr(e,t,!1))}catch(n){io(e,{done:!1},n,t)}}};Qr&&(Ur=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Ur,Ir),ht(e),xr.call(this);var t=Fr(this);try{e(oo(ao,this,t),oo(io,this,t))}catch(e){io(this,t,e)}},(xr=function(e){Dr(this,{type:Ir,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)re(e,r,t[r],n);return e}(Ur.prototype,{then:function(e,t){var n=Br(this),r=zr(Wn(this,Ur));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Hr?Vr.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)}}),Er=function(){var e=new xr,t=Fr(e);this.promise=e,this.resolve=oo(ao,e,t),this.reject=oo(io,e,t)},_r.f=zr=function(e){return e===Ur||e===Or?new Er(e):Gr(e)},"function"==typeof Tn&&(Tr=Tn.prototype.then,re(Tn.prototype,"then",(function(e,t){var n=this;return new Ur((function(e,t){Tr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Wr&&ke({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Mr(Ur,Wr.apply(o,arguments))}}))),ke({global:!0,wrap:!0,forced:Qr},{Promise:Ur}),jr=Ir,Rr=!1,(Ar=Ur)&&!b(Ar=Rr?Ar:Ar.prototype,jn)&&An(Ar,jn,{configurable:!0,value:jr}),Cn(Ir),Or=ae(Ir),ke({target:Ir,stat:!0,forced:Qr},{reject:function(e){var t=zr(this);return t.reject.call(void 0,e),t.promise}}),ke({target:Ir,stat:!0,forced:Qr},{resolve:function(e){return Mr(this,e)}}),ke({target:Ir,stat:!0,forced:Xr},{all:function(e){var t=this,n=zr(t),r=n.resolve,o=n.reject,i=kr((function(){var n=ht(t.resolve),i=[],a=0,c=1;Ln(e,(function(e){var u=a++,l=!1;i.push(void 0),c++,n.call(t,e).then((function(e){l||(l=!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=zr(t),r=n.reject,o=kr((function(){var o=ht(t.resolve);Ln(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var co=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(!m(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),uo=qe("match"),lo=function(e){var t;return m(e)&&(void 0!==(t=e[uo])?!!t:"RegExp"==d(e))},fo=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 so(e,t){return RegExp(e,t)}var po={UNSUPPORTED_Y:i((function(){var e=so("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=so("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},go=C.f,vo=Se.f,ho=ne.set,mo=qe("match"),yo=o.RegExp,wo=yo.prototype,bo=/a/g,So=/a/g,xo=new yo(bo)!==bo,Eo=po.UNSUPPORTED_Y;if(a&&_e("RegExp",!xo||Eo||i((function(){return So[mo]=!1,yo(bo)!=bo||yo(So)==So||"/a/i"!=yo(bo,"i")})))){for(var Oo=function(e,t){var n,r=this instanceof Oo,o=lo(e),i=void 0===t;if(!r&&o&&e.constructor===Oo&&i)return e;xo?o&&!i&&(e=e.source):e instanceof Oo&&(i&&(t=fo.call(e)),e=e.source),Eo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,l,f,s=(a=xo?new yo(e,t):yo(e,t),c=r?this:wo,u=Oo,co&&"function"==typeof(l=c.constructor)&&l!==u&&m(f=l.prototype)&&f!==u.prototype&&co(a,f),a);return Eo&&n&&ho(s,{sticky:n}),s},To=function(e){e in Oo||go(Oo,e,{configurable:!0,get:function(){return yo[e]},set:function(t){yo[e]=t}})},Ao=vo(yo),jo=0;Ao.length>jo;)To(Ao[jo++]);wo.constructor=Oo,Oo.prototype=wo,re(o,"RegExp",Oo)}Cn("RegExp");var Ro=RegExp.prototype.exec,Co=String.prototype.replace,Po=Ro,_o=function(){var e=/a/,t=/b*/g;return Ro.call(e,"a"),Ro.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Mo=po.UNSUPPORTED_Y||po.BROKEN_CARET,ko=void 0!==/()??/.exec("")[1];(_o||ko||Mo)&&(Po=function(e){var t,n,r,o,i=this,a=Mo&&i.sticky,c=fo.call(i),u=i.source,l=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,l++),n=new RegExp("^(?:"+u+")",c)),ko&&(n=new RegExp("^"+u+"$(?!\\s)",c)),_o&&(t=i.lastIndex),r=Ro.call(a?n:i,f),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:_o&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),ko&&r&&r.length>1&&Co.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var No=Po;ke({target:"RegExp",proto:!0,forced:/./.exec!==No},{exec:No});var Lo="toString",Io=RegExp.prototype,Fo=Io.toString,Do=i((function(){return"/a/b"!=Fo.call({source:"a",flags:"b"})})),Bo=Fo.name!=Lo;(Do||Bo)&&re(RegExp.prototype,Lo,(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Io)?fo.call(e):n)}),{unsafe:!0});var Uo=function(e){if(lo(e))throw TypeError("The method doesn't accept regular expressions");return e},$o=qe("match");ke({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[$o]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(v(this)).indexOf(Uo(e),arguments.length>1?arguments[1]:void 0)}}),ke({target:"RegExp",proto:!0,forced:/./.exec!==No},{exec:No});var qo=qe("species"),Vo=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Wo="$0"==="a".replace(/./,"$0"),zo=qe("replace"),Go=!!/./[zo]&&""===/./[zo]("a","$0"),Ho=!i((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]})),Ko=function(e,t,n,r){var o=qe(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),c=a&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[qo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!Vo||!Wo||Go)||"split"===e&&!Ho){var u=/./[o],l=n(o,""[e],(function(e,t,n,r,o){return t.exec===No?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Wo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Go}),f=l[0],s=l[1];re(String.prototype,e,f),re(RegExp.prototype,o,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&P(RegExp.prototype[o],"sham",!0)},Jo=function(e){return function(t,n){var r,o,i=String(v(t)),a=le(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}},Qo={codeAt:Jo(!1),charAt:Jo(!0)}.charAt,Xo=function(e,t,n){return t+(n?Qo(e,t).length:1)},Yo=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"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return No.call(e,t)};Ko("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 Yo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],l=0;null!==(c=Yo(o,i));){var f=String(c[0]);u[l]=f,""===f&&(o.lastIndex=Xo(i,se(o.lastIndex),a)),l++}return 0===l?null:u}]}));var Zo=Math.max,ei=Math.min,ti=Math.floor,ni=/\$([$&'`]|\d\d?|<[^>]*>)/g,ri=/\$([$&'`]|\d\d?)/g,oi=function(e){return void 0===e?e:String(e)};Ko("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 l=j(e),f=String(this),s="function"==typeof r;s||(r=String(r));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var g=[];;){var v=Yo(l,f);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(l.lastIndex=Xo(f,se(l.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),b=Zo(ei(le(v.index),f.length),0),S=[],x=1;x<v.length;x++)S.push(oi(v[x]));var E=v.groups;if(s){var O=[w].concat(S,b,f);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,f,b,S,E,r);b>=m&&(h+=f.slice(m,b)+T,m=b+w.length)}return h+f.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,l=ri;return void 0!==i&&(i=Le(i),l=ni),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return t;if(f>u){var s=ti(f/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}l=o[f-1]}return void 0===l?"":l}))}}));var ii=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ko("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;ii(a,0)||(o.lastIndex=0);var c=Yo(o,i);return ii(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var ai=[].push,ci=Math.min,ui=4294967295,li=!i((function(){return!RegExp(ui,"y")}));Ko("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?ui:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!lo(e))return t.call(r,e,o);for(var i,a,c,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,l+"g");(i=No.call(s,r))&&!((a=s.lastIndex)>f&&(u.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&ai.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!c&&s.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=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=Wn(a,RegExp),l=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(li?"y":"g"),s=new u(li?a:"^(?:"+a.source+")",f),d=void 0===o?ui:o>>>0;if(0===d)return[];if(0===c.length)return null===Yo(s,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){s.lastIndex=li?g:0;var h,m=Yo(s,li?c:c.slice(g));if(null===m||(h=ci(se(s.lastIndex+(li?0:g)),c.length))===p)g=Xo(c,g,l);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}]}),!li);for(var fi 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 si=o[fi],di=si&&si.prototype;if(di&&di.forEach!==Ct)try{P(di,"forEach",Ct)}catch(e){di.forEach=Ct}}var pi=n((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 gi(){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 vi(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function hi(e){return JSON.parse(JSON.stringify(e))}function mi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function yi(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 wi(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 bi(){return Date.now?Date.now():(new Date).getTime()}function Si(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 xi(){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 l="";"webkit"===c?l=n(/applewebkit\/[\d._]+/g):"gecko"===c?l=n(/gecko\/[\d._]+/g):"presto"===c?l=n(/presto\/[\d._]+/g):"trident"===c&&(l=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 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:l,platform:a,supporter:u,supporterVs:f,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.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},e.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=hi(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],l=u[0],f=u[1];a>0&&(l=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(l,f)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},e.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=hi(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)},e.camelCase2Underscore=vi,e.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},e.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.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""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var l=bi()-i;l<t&&l>=0?o=setTimeout(u,t-l):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];r=this,a=l,i=bi();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=hi,e.doFn=wi,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){return void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},e.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;yi(e)||(e=new Date(e).getTime()),yi(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},e.genCustomConsole=function(e,t){void 0===e&&(e=""),void 0===t&&(t={isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,logFn:function(){},errorFn:function(){}},t),r=n.isClosed,o=n.showWrap,i=n.logFn,a=n.errorFn,c=Object.create(null);return["log","info","warn","error"].forEach((function(t){c[t]=function(){for(var n,c,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];if(r)return!1;var f="";if("string"==typeof e&&e.length>=2){var s=e.length;f=":"===e[s-1]?e.substring(0,s-1):e}o&&console.log("--- "+f+" - begin ---"),e?(n=console)[t].apply(n,gi([e],u)):(c=console)[t].apply(c,u),"log"===t&&i(),"error"===t&&a(),o&&console.log("--- "+f+" - end ---")}})),c},e.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},e.generateRndNum=mi,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[bi(),mi(e||3)];return t[0]+t[1]},e.getBrowserInfo=xi,e.getCookie=Si,e.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]}),"")},e.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"},e.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]:""},e.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.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:l(),osVersion:f(),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: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){yi(v[e])&&v[e]<0&&(v[e]=0)})),yi(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[vi(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function l(){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 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 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},e.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},e.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.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]||""},e.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},e.inRate=function(e){return Math.random()<e},e.isJsonString=function(e){try{if("object"===pi(JSON.parse(e)))return!0}catch(e){}return!1},e.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},e.isNumber=yi,e.isSafePWAEnv=function(){var e=xi();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},e.isSupportWebp=function(){return new Promise((function(e){var 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="}))},e.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),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 l(){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=l,a.onerror=function(){l()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&l()},o},e.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,l=document.createElement("script"),f=document.getElementsByTagName("script")[0];return l.type="text/javascript",a&&(l.defer="defer"),r&&(l.id=r),l.readyState?l.onreadystatechange=function(){"loaded"!==l.readyState&&"complete"!==l.readyState||(l.onreadystatechange=null,wi(o),wi(c,!0))}:l.onload=function(){wi(o),wi(c,!0)},l.src=e,f&&f.parentNode.insertBefore(l,f),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},e.mNow=bi,e.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)},e.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},e.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},e.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!==Si(e)&&Si(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},e.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},e.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},e.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],l=function(){u=!1===n.leading?0:bi(),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 s=bi();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(l,d)),c}},e.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},e.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},e.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mazey",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
4
4
|
"description": "Mazey's library for front-end.",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dev": "webpack-dev-server --config ./scripts/webpack.config.dev.js --open",
|
|
14
14
|
"build": "rollup --config ./scripts/rollup.config.js",
|
|
15
15
|
"test": "jest",
|
|
16
|
-
"docs": "typedoc",
|
|
16
|
+
"docs": "cross-env rm -f .docs/t.html && typedoc --hideGenerator && cp ./src/t.html ./docs",
|
|
17
17
|
"lint-and-fix": "eslint ./src/index.ts --ext 'ts,tsx' --fix",
|
|
18
18
|
"preview": "npm run docs && npm run build && npm run test",
|
|
19
19
|
"release": "npm run preview && cross-env SCRIPTS_NPM_PACKAGE_VERSION=$npm_package_version node ./scripts/release.js"
|
package/src/index.ts
CHANGED
|
@@ -1595,31 +1595,56 @@ export function addStyle(
|
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
1597
|
/**
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1598
|
+
* 生成自定义控制台打印
|
|
1599
|
+
*
|
|
1600
1600
|
* @param {string} prefix 前缀
|
|
1601
1601
|
* @param {function} allowFn 允许打印的判断函数
|
|
1602
1602
|
* @returns {object} 新实例
|
|
1603
1603
|
*/
|
|
1604
1604
|
export function genCustomConsole(
|
|
1605
1605
|
prefix = '',
|
|
1606
|
-
options: {
|
|
1607
|
-
|
|
1606
|
+
options: {
|
|
1607
|
+
isClosed?: boolean;
|
|
1608
|
+
showWrap?: boolean;
|
|
1609
|
+
logFn?: () => void;
|
|
1610
|
+
errorFn?: () => void;
|
|
1611
|
+
} = {
|
|
1612
|
+
isClosed: false,
|
|
1613
|
+
showWrap: false,
|
|
1608
1614
|
logFn: () => undefined,
|
|
1609
1615
|
errorFn: () => undefined
|
|
1610
1616
|
}
|
|
1611
1617
|
): Console {
|
|
1612
|
-
const {
|
|
1613
|
-
{
|
|
1618
|
+
const { isClosed, showWrap, logFn, errorFn } = Object.assign(
|
|
1619
|
+
{
|
|
1620
|
+
isClosed: false,
|
|
1621
|
+
showWrap: false,
|
|
1622
|
+
logFn: () => undefined,
|
|
1623
|
+
errorFn: () => undefined
|
|
1624
|
+
},
|
|
1614
1625
|
options
|
|
1615
1626
|
);
|
|
1616
1627
|
const methods = ['log', 'info', 'warn', 'error'];
|
|
1617
1628
|
const newConsole = Object.create(null);
|
|
1618
1629
|
methods.forEach(method => {
|
|
1619
1630
|
newConsole[method] = function(...argu: any) {
|
|
1620
|
-
if (
|
|
1631
|
+
if (isClosed) {
|
|
1621
1632
|
return false;
|
|
1622
1633
|
}
|
|
1634
|
+
let elaboratePrefix = '';
|
|
1635
|
+
if (typeof prefix === 'string' && prefix.length >= 2) {
|
|
1636
|
+
const len = prefix.length;
|
|
1637
|
+
if (prefix[len - 1] === ':') {
|
|
1638
|
+
elaboratePrefix = prefix.substring(0, len - 1);
|
|
1639
|
+
} else {
|
|
1640
|
+
elaboratePrefix = prefix;
|
|
1641
|
+
}
|
|
1642
|
+
// console.log('prefix', prefix);
|
|
1643
|
+
// console.log('elaboratePrefix', elaboratePrefix);
|
|
1644
|
+
}
|
|
1645
|
+
if (showWrap) {
|
|
1646
|
+
console.log(`--- ${elaboratePrefix} - begin ---`);
|
|
1647
|
+
}
|
|
1623
1648
|
if (prefix) {
|
|
1624
1649
|
(console as any)[method](prefix, ...argu);
|
|
1625
1650
|
} else {
|
|
@@ -1631,6 +1656,9 @@ export function genCustomConsole(
|
|
|
1631
1656
|
if (method === 'error') {
|
|
1632
1657
|
errorFn();
|
|
1633
1658
|
}
|
|
1659
|
+
if (showWrap) {
|
|
1660
|
+
console.log(`--- ${elaboratePrefix} - end ---`);
|
|
1661
|
+
}
|
|
1634
1662
|
};
|
|
1635
1663
|
});
|
|
1636
1664
|
return newConsole;
|