mazey 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Mazey
3
+ Copyright (c) 2022 Mazey Chu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  English | [简体中文](./README_CN.md)
2
2
 
3
- # Mazey
3
+ # mazey
4
4
 
5
5
  [![NPM version][npm-image]][npm-url]
6
6
  [![l][l-image]][l-url]
@@ -14,7 +14,7 @@ Mazey's library for front end.
14
14
 
15
15
  ## Install
16
16
 
17
- You can get Mazey via [npm](https://www.npmjs.com/package/mazey).
17
+ You can get mazey via [npm](https://www.npmjs.com/package/mazey).
18
18
 
19
19
  ```
20
20
  npm install mazey --save
package/README_CN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Mazey
1
+ # mazey
2
2
 
3
3
  [![NPM version][npm-image]][npm-url]
4
4
  [![l][l-image]][l-url]
@@ -12,7 +12,7 @@
12
12
 
13
13
  ## Install
14
14
 
15
- You can get Mazey via [npm](https://www.npmjs.com/package/mazey/v/1.4.39).
15
+ You can get mazey via [npm](https://www.npmjs.com/package/mazey/v/1.4.39).
16
16
 
17
17
  ```
18
18
  npm install mazey@1.4.39 --save
package/lib/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,s=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?d.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return p(v(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=g(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return f(!u.f.call(e,t),e[t])}},j=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,P={f:i?A:function(e,t,n){if(j(e),t=m(t,!0),j(n),E)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_=i?function(e,t,n){return P.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{_(r,e,t)}catch(n){r[e]=t}return t},C=r["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(e){return M.call(e)});var L,k,I,N=C.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(N(F)),B=t((function(e){(e.exports=function(e,t){return C[e]||(C[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),$=0,U=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++$+U).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},H={},W=r.WeakMap;if(D){var z=new W,K=z.get,J=z.has,Y=z.set;L=function(e,t){return Y.call(z,e,t),t},k=function(e){return K.call(z,e)||{}},I=function(e){return J.call(z,e)}}else{var X=G("state");H[X]=!0,L=function(e,t){return _(e,X,t),t},k=function(e){return w(e,X)?e[X]:{}},I=function(e){return w(e,X)}}var Q,Z,ee={set:L,get:k,has:I,enforce:function(e){return I(e)?k(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=k(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||_(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=i:_(e,t,i)):u?e[t]=i:R(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,fe=function(e){return e>0?ue(ce(e),9007199254740991):0},le=Math.max,se=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):se(n,t)},pe=function(e){return function(t,n,r){var o,i=g(t),a=fe(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ve={includes:pe(!0),indexOf:pe(!1)},ge=ve.indexOf,he=function(e,t){var n,r=g(e),o=0,i=[];for(n in r)!w(H,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ge(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=P.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=je[Te(e)];return n==Pe||n!=Ae&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},je=Oe.data={},Ae=Oe.NATIVE="N",Pe=Oe.POLYFILL="P",_e=Oe,Re=T.f,Ce=function(e,t){var n,o,i,a,c,u=e.target,f=e.global,l=e.stat;if(n=f?r:l?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Re(n,o))&&c.value:n[o],!_e(f?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&_(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==s(e)},Le=function(e){return Object(v(e))},ke=function(e,t,n){var r=m(t);r in e?P.f(e,r,f(0,n)):e[r]=n},Ie=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ne=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ne?De:De&&De.withoutSetter||q,$e=function(e){return w(Fe,e)||(Ie&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},Ue=$e("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[Ue])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,He=Ge&&Ge.versions,We=He&&He.v8;We?Z=(Q=We.split("."))[0]+Q[1]:Ve&&(!(Q=Ve.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Ve.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var ze=Z&&+Z,Ke=$e("species"),Je=function(e){return ze>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ye=$e("isConcatSpreadable"),Xe=ze>=51||!o((function(){var e=[];return e[Ye]=!1,e.concat()[0]!==e})),Qe=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Ye];return void 0!==t?!!t:Me(e)};Ce({target:"Array",proto:!0,forced:!Xe||!Qe},{concat:function(e){var t,n,r,o,i,a=Le(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=fe(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&ke(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ke(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){j(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)P.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};H[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=j(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},ft=$e("unscopables"),lt=Array.prototype;null==lt[ft]&&P.f(lt,ft,{configurable:!0,value:ut(null)});var st;Ce({target:"Array",proto:!0},{fill:function(e){for(var t=Le(this),n=fe(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),st="fill",lt[ft][st]=!0;var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},vt=[].push,gt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,f,l){for(var s,d,v=Le(c),g=p(v),h=pt(u,f,3),m=fe(g.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[y],y,v),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:vt.call(x,s)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:gt(0),map:gt(1),filter:gt(2),some:gt(3),every:gt(4),find:gt(5),findIndex:gt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};Ce({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var jt=ve.indexOf,At=[].indexOf,Pt=!!At&&1/[1].indexOf(1,-0)<0,_t=mt("indexOf"),Rt=bt("indexOf",{ACCESSORS:!0,1:0});Ce({target:"Array",proto:!0,forced:Pt||!_t||!Rt},{indexOf:function(e){return Pt?At.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Ct=[].join,Mt=p!=Object,Lt=mt("join",",");Ce({target:"Array",proto:!0,forced:Mt||!Lt},{join:function(e){return Ct.call(g(this),void 0===e?",":e)}});var kt=function(e){return function(t,n,r,o){dt(n);var i=Le(t),a=p(i),c=fe(i.length),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},It={left:kt(!1),right:kt(!0)}.left,Nt=mt("reduce"),Ft=bt("reduce",{1:0});Ce({target:"Array",proto:!0,forced:!Nt||!Ft},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Dt=Je("slice"),Bt=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=$e("species"),Ut=[].slice,qt=Math.max;Ce({target:"Array",proto:!0,forced:!Dt||!Bt},{slice:function(e,t){var n,r,o,i=g(this),a=fe(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ut.call(i,c,u);for(r=new(void 0===n?Array:n)(qt(u-c,0)),o=0;c<u;c++,o++)c in i&&ke(r,o,i[c]);return r.length=o,r}});var Vt=P.f,Gt=Function.prototype,Ht=Gt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in Gt)&&Vt(Gt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var zt="".repeat||function(e){var t=String(v(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Kt=1..toFixed,Jt=Math.floor,Yt=function(e,t,n){return 0===t?n:t%2==1?Yt(e,t-1,n*e):Yt(e*e,t/2,n)};Ce({target:"Number",proto:!0,forced:Kt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Kt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=s(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",f="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Jt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Jt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+zt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Yt(2,69,1))-69)<0?i*Yt(2,-t,1):i/Yt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Yt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),f=p()}else l(0,n),l(1<<-t,0),f=p()+zt.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+zt.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var Xt=Object.assign,Qt=Object.defineProperty,Zt=!Xt||o((function(){if(i&&1!==Xt({b:1},Xt(Qt({},"a",{enumerable:!0,get:function(){Qt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Xt({},e)[n]||tt(Xt({},t)).join("")!=r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var f,l=p(arguments[o++]),s=a?tt(l).concat(a(l)):tt(l),d=s.length,v=0;d>v;)f=s[v++],i&&!c.call(l,f)||(n[f]=l[f]);return n}:Xt;Ce({target:"Object",stat:!0,forced:Object.assign!==Zt},{assign:Zt});var en=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tn=G("IE_PROTO"),nn=Object.prototype,rn=en?Object.getPrototypeOf:function(e){return e=Le(e),w(e,tn)?e[tn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nn:null};Ce({target:"Object",stat:!0,forced:o((function(){rn(1)})),sham:!en},{getPrototypeOf:function(e){return rn(Le(e))}}),Ce({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(Le(e))}});var on={};on[$e("toStringTag")]="z";var an="[object z]"===String(on),cn=$e("toStringTag"),un="Arguments"==s(function(){return arguments}()),fn=an?s:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),cn))?n:un?s(t):"Object"==(r=s(t))&&"function"==typeof t.callee?"Arguments":r},ln=an?{}.toString:function(){return"[object "+fn(this)+"]"};an||te(Object.prototype,"toString",ln,{unsafe:!0});var sn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",dn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$"),vn=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(dn,"")),2&e&&(n=n.replace(pn,"")),n}},gn={start:vn(1),end:vn(2),trim:vn(3)}.trim,hn=r.parseFloat,mn=1/hn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=gn(String(e)),n=hn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:hn;Ce({global:!0,forced:parseFloat!=mn},{parseFloat:mn});var yn=r.Promise,wn=P.f,xn=$e("toStringTag"),bn=$e("species"),Sn=function(e){var t=oe(e),n=P.f;i&&t&&!t[bn]&&n(t,bn,{configurable:!0,get:function(){return this}})},En={},On=$e("iterator"),Tn=Array.prototype,jn=$e("iterator"),An=function(e,t,n,r){try{return r?t(j(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&j(o.call(e)),t}},Pn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,f,l,s,d,p,v=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||En[fn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(En.Array===p||Tn[On]===p)){for(u=0,f=fe(e.length);f>u;u++)if((l=o?v(j(d=e[u])[0],d[1]):v(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=An(a,v,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),_n=$e("iterator"),Rn=!1;try{var Cn=0,Mn={next:function(){return{done:!!Cn++}},return:function(){Rn=!0}};Mn[_n]=function(){return this},Array.from(Mn,(function(){throw 2}))}catch(e){}var Ln,kn,In,Nn=$e("species"),Fn=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[Nn])?t:dt(n)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Bn=r.location,$n=r.setImmediate,Un=r.clearImmediate,qn=r.process,Vn=r.MessageChannel,Gn=r.Dispatch,Hn=0,Wn={},zn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Kn=function(e){return function(){zn(e)}},Jn=function(e){zn(e.data)},Yn=function(e){r.postMessage(e+"",Bn.protocol+"//"+Bn.host)};$n&&Un||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Ln(Hn),Hn},Un=function(e){delete Wn[e]},"process"==s(qn)?Ln=function(e){qn.nextTick(Kn(e))}:Gn&&Gn.now?Ln=function(e){Gn.now(Kn(e))}:Vn&&!Dn?(In=(kn=new Vn).port2,kn.port1.onmessage=Jn,Ln=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===Bn.protocol?Ln="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),zn(e)}}:function(e){setTimeout(Kn(e),0)}:(Ln=Yn,r.addEventListener("message",Jn,!1)));var Xn,Qn,Zn,er,tr,nr,rr,or,ir={set:$n,clear:Un},ar=T.f,cr=ir.set,ur=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,sr="process"==s(fr),dr=ar(r,"queueMicrotask"),pr=dr&&dr.value;pr||(Xn=function(){var e,t;for(sr&&(e=fr.domain)&&e.exit();Qn;){t=Qn.fn,Qn=Qn.next;try{t()}catch(e){throw Qn?er():Zn=void 0,e}}Zn=void 0,e&&e.enter()},sr?er=function(){fr.nextTick(Xn)}:ur&&!Dn?(tr=!0,nr=document.createTextNode(""),new ur(Xn).observe(nr,{characterData:!0}),er=function(){nr.data=tr=!tr}):lr&&lr.resolve?(rr=lr.resolve(void 0),or=rr.then,er=function(){or.call(rr,Xn)}):er=function(){cr.call(r,Xn)});var vr,gr,hr,mr,yr,wr,xr,br=pr||function(e){var t={fn:e,next:void 0};Zn&&(Zn.next=t),Qn||(Qn=t,er()),Zn=t},Sr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Er={f:function(e){return new Sr(e)}},Or=function(e,t){if(j(e),h(t)&&t.constructor===e)return t;var n=Er.f(e);return(0,n.resolve)(t),n.promise},Tr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ir.set,Ar=$e("species"),Pr="Promise",_r=ee.get,Rr=ee.set,Cr=ee.getterFor(Pr),Mr=yn,Lr=r.TypeError,kr=r.document,Ir=r.process,Nr=oe("fetch"),Fr=Er.f,Dr=Fr,Br="process"==s(Ir),$r=!!(kr&&kr.createEvent&&r.dispatchEvent),Ur=_e(Pr,(function(){if(!(N(Mr)!==String(Mr))){if(66===ze)return!0;if(!Br&&"function"!=typeof PromiseRejectionEvent)return!0}if(ze>=51&&/native code/.test(Mr))return!1;var e=Mr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Ar]=t,!(e.then((function(){}))instanceof t)})),qr=Ur||!function(e,t){if(!t&&!Rn)return!1;var n=!1;try{var r={};r[_n]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Mr.all(e).catch((function(){}))})),Vr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},Gr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;br((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,f,l=r[a++],s=i?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{s?(i||(2===t.rejection&&Kr(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Lr("Promise-chain cycle")):(u=Vr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!f&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=kr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(zr(t)&&(n=Tr((function(){Br?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Br||zr(t)?2:1,n.error))throw n.value}))},zr=function(e){return 1!==e.rejection&&!e.parent},Kr=function(e,t){jr.call(r,(function(){Br?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Jr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Yr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Gr(e,t,!0))},Xr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Lr("Promise can't be resolved itself");var o=Vr(n);o?br((function(){var r={done:!1};try{o.call(n,Jr(Xr,e,r,t),Jr(Yr,e,r,t))}catch(n){Yr(e,r,n,t)}})):(t.value=n,t.state=1,Gr(e,t,!1))}catch(n){Yr(e,{done:!1},n,t)}}};Ur&&(Mr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Mr,Pr),dt(e),vr.call(this);var t=_r(this);try{e(Jr(Xr,this,t),Jr(Yr,this,t))}catch(e){Yr(this,t,e)}},(vr=function(e){Rr(this,{type:Pr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(Mr.prototype,{then:function(e,t){var n=Cr(this),r=Fr(Fn(this,Mr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Br?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),gr=function(){var e=new vr,t=_r(e);this.promise=e,this.resolve=Jr(Xr,e,t),this.reject=Jr(Yr,e,t)},Er.f=Fr=function(e){return e===Mr||e===hr?new gr(e):Dr(e)},"function"==typeof yn&&(mr=yn.prototype.then,te(yn.prototype,"then",(function(e,t){var n=this;return new Mr((function(e,t){mr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Nr&&Ce({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Or(Mr,Nr.apply(r,arguments))}}))),Ce({global:!0,wrap:!0,forced:Ur},{Promise:Mr}),wr=Pr,xr=!1,(yr=Mr)&&!w(yr=xr?yr:yr.prototype,xn)&&wn(yr,xn,{configurable:!0,value:wr}),Sn(Pr),hr=oe(Pr),Ce({target:Pr,stat:!0,forced:Ur},{reject:function(e){var t=Fr(this);return t.reject.call(void 0,e),t.promise}}),Ce({target:Pr,stat:!0,forced:Ur},{resolve:function(e){return Or(this,e)}}),Ce({target:Pr,stat:!0,forced:qr},{all:function(e){var t=this,n=Fr(t),r=n.resolve,o=n.reject,i=Tr((function(){var n=dt(t.resolve),i=[],a=0,c=1;Pn(e,(function(e){var u=a++,f=!1;i.push(void 0),c++,n.call(t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Fr(t),r=n.reject,o=Tr((function(){var o=dt(t.resolve);Pn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return j(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Zr=$e("match"),eo=function(e){var t;return h(e)&&(void 0!==(t=e[Zr])?!!t:"RegExp"==s(e))},to=function(){var e=j(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function no(e,t){return RegExp(e,t)}var ro={UNSUPPORTED_Y:o((function(){var e=no("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=no("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},oo=P.f,io=we.f,ao=ee.set,co=$e("match"),uo=r.RegExp,fo=uo.prototype,lo=/a/g,so=/a/g,po=new uo(lo)!==lo,vo=ro.UNSUPPORTED_Y;if(i&&_e("RegExp",!po||vo||o((function(){return so[co]=!1,uo(lo)!=lo||uo(so)==so||"/a/i"!=uo(lo,"i")})))){for(var go=function(e,t){var n,r=this instanceof go,o=eo(e),i=void 0===t;if(!r&&o&&e.constructor===go&&i)return e;po?o&&!i&&(e=e.source):e instanceof go&&(i&&(t=to.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,f,l,s=(a=po?new uo(e,t):uo(e,t),c=r?this:fo,u=go,Qr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Qr(a,l),a);return vo&&n&&ao(s,{sticky:n}),s},ho=function(e){e in go||oo(go,e,{configurable:!0,get:function(){return uo[e]},set:function(t){uo[e]=t}})},mo=io(uo),yo=0;mo.length>yo;)ho(mo[yo++]);fo.constructor=go,go.prototype=fo,te(r,"RegExp",go)}Sn("RegExp");var wo=RegExp.prototype.exec,xo=String.prototype.replace,bo=wo,So=function(){var e=/a/,t=/b*/g;return wo.call(e,"a"),wo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Eo=ro.UNSUPPORTED_Y||ro.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(So||Oo||Eo)&&(bo=function(e){var t,n,r,o,i=this,a=Eo&&i.sticky,c=to.call(i),u=i.source,f=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Oo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),So&&(t=i.lastIndex),r=wo.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:So&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Oo&&r&&r.length>1&&xo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var To=bo;Ce({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var jo=RegExp.prototype,Ao=jo.toString,Po=o((function(){return"/a/b"!=Ao.call({source:"a",flags:"b"})})),_o="toString"!=Ao.name;(Po||_o)&&te(RegExp.prototype,"toString",(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?to.call(e):n)}),{unsafe:!0}),Ce({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var Ro=$e("species"),Co=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Mo="$0"==="a".replace(/./,"$0"),Lo=$e("replace"),ko=!!/./[Lo]&&""===/./[Lo]("a","$0"),Io=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),No=function(e,t,n,r){var i=$e(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ro]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!Co||!Mo||ko)||"split"===e&&!Io){var u=/./[i],f=n(i,""[e],(function(e,t,n,r,o){return t.exec===To?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Mo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ko}),l=f[0],s=f[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&_(RegExp.prototype[i],"sham",!0)},Fo=function(e){return function(t,n){var r,o,i=String(v(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Do={codeAt:Fo(!1),charAt:Fo(!0)}.charAt,Bo=function(e,t,n){return t+(n?Do(e,t).length:1)},$o=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(e))throw TypeError("RegExp#exec called on incompatible receiver");return To.call(e,t)};No("match",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this);if(!o.global)return $o(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=$o(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=Bo(i,fe(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Uo=Math.max,qo=Math.min,Vo=Math.floor,Go=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ho=/\$([$&'`]|\d\d?)/g,Wo=function(e){return void 0===e?e:String(e)};No("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=v(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var f=j(e),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var g=$o(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=Bo(l,fe(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),x=Uo(qo(ce(g.index),l.length),0),b=[],S=1;S<g.length;S++)b.push(Wo(g[S]));var E=g.groups;if(s){var O=[w].concat(b,x,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,x,b,E,r);x>=m&&(h+=l.slice(m,x)+T,m=x+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,f=Ho;return void 0!==i&&(i=Le(i),f=Go),t.call(a,f,(function(t,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var s=Vo(l/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}f=o[l-1]}return void 0===f?"":f}))}}));var zo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};No("search",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this),a=o.lastIndex;zo(a,0)||(o.lastIndex=0);var c=$o(o,i);return zo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Ko=[].push,Jo=Math.min,Yo=!o((function(){return!RegExp(4294967295,"y")}));No("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(v(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!eo(e))return t.call(r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,f+"g");(i=To.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Ko.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=v(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=j(e),c=String(this),u=Fn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yo?"y":"g"),s=new u(Yo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===$o(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Yo?v:0;var h,m=$o(s,Yo?c:c.slice(v));if(null===m||(h=Jo(fe(s.lastIndex+(Yo?0:v)),c.length))===p)v=Bo(c,v,f);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!Yo);for(var Xo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Qo=r[Xo],Zo=Qo&&Qo.prototype;if(Zo&&Zo.forEach!==Tt)try{_(Zo,"forEach",Tt)}catch(e){Zo.forEach=Tt}}var ei=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function ti(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ni(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ri(e){return JSON.parse(JSON.stringify(e))}function oi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ii(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function ai(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function ci(){return Date.now?Date.now():(new Date).getTime()}function ui(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function fi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return e.match(t).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return{}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addInlineStyle=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n;if(!e)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=e:(c.setAttribute("id",r),c.innerHTML=e,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=e,o.appendChild(c),document.head.appendChild(o)),!0},exports.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],l=u[1];a>0&&(f=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(f,l)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},exports.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},exports.camelCase2Underscore=ni,exports.camelCaseToKebabCase=function(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=ci()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];r=this,a=f,i=ci();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ri,exports.doFn=ai,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;ii(e)||(e=new Date(e).getTime()),ii(t)||(t=new Date(t).getTime());var i=t-e,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,ti([e],o)):(r=console)[n].apply(r,o)}})),t},exports.generateRndNum=oi,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[ci(),oi(e||3)];return t[0]+t[1]},exports.getBrowserInfo=fi,exports.getCookie=ui,exports.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:f(),osVersion:l(),deviceType:s(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(e){ii(g[e])&&g[e]<0&&(g[e]=0)})),ii(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)e||Object.keys(g).forEach((function(e){i||(i={}),i[ni(e)]=g[e]})),t(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function s(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function v(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(unescape(n[2])):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){void 0===e&&(e="");try{if("object"===ei(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNumber=ii,exports.isSafePWAEnv=function(){var e=fi();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},exports.loadCSS=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n,o=null,i=new Promise((function(e,t){var n;o=(n=[e,t])[0],n[1]})),a=function(){ai(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i},exports.loadScript=function(e,t){void 0===e&&(e="");var n=void 0===t?{}:t,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,ai(a),ai(s,!0))}:p.onload=function(){ai(a),ai(s,!0)},p.src=e,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,t){var n;s=(n=[e,t])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))},exports.mNow=ci,exports.mTrim=function(e){void 0===e&&(e="");for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(void 0===e&&(e=""),!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==ui(e)&&ui(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:ci(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=ci();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},exports.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t=function(){},n=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n("timeout")}),1e3*e),r};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,s=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?d.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return p(v(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=g(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return f(!u.f.call(e,t),e[t])}},j=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,P={f:i?A:function(e,t,n){if(j(e),t=m(t,!0),j(n),E)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_=i?function(e,t,n){return P.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{_(r,e,t)}catch(n){r[e]=t}return t},C=r["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(e){return M.call(e)});var L,k,I,N=C.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(N(F)),B=t((function(e){(e.exports=function(e,t){return C[e]||(C[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),$=0,U=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++$+U).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},H={},W=r.WeakMap;if(D){var z=new W,K=z.get,J=z.has,Y=z.set;L=function(e,t){return Y.call(z,e,t),t},k=function(e){return K.call(z,e)||{}},I=function(e){return J.call(z,e)}}else{var X=G("state");H[X]=!0,L=function(e,t){return _(e,X,t),t},k=function(e){return w(e,X)?e[X]:{}},I=function(e){return w(e,X)}}var Q,Z,ee={set:L,get:k,has:I,enforce:function(e){return I(e)?k(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=k(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||_(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=i:_(e,t,i)):u?e[t]=i:R(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,fe=function(e){return e>0?ue(ce(e),9007199254740991):0},le=Math.max,se=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):se(n,t)},pe=function(e){return function(t,n,r){var o,i=g(t),a=fe(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ve={includes:pe(!0),indexOf:pe(!1)},ge=ve.indexOf,he=function(e,t){var n,r=g(e),o=0,i=[];for(n in r)!w(H,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ge(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=P.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=je[Te(e)];return n==Pe||n!=Ae&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},je=Oe.data={},Ae=Oe.NATIVE="N",Pe=Oe.POLYFILL="P",_e=Oe,Re=T.f,Ce=function(e,t){var n,o,i,a,c,u=e.target,f=e.global,l=e.stat;if(n=f?r:l?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Re(n,o))&&c.value:n[o],!_e(f?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&_(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==s(e)},Le=function(e){return Object(v(e))},ke=function(e,t,n){var r=m(t);r in e?P.f(e,r,f(0,n)):e[r]=n},Ie=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ne=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ne?De:De&&De.withoutSetter||q,$e=function(e){return w(Fe,e)||(Ie&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},Ue=$e("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[Ue])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,He=Ge&&Ge.versions,We=He&&He.v8;We?Z=(Q=We.split("."))[0]+Q[1]:Ve&&(!(Q=Ve.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Ve.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var ze=Z&&+Z,Ke=$e("species"),Je=function(e){return ze>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ye=$e("isConcatSpreadable"),Xe=ze>=51||!o((function(){var e=[];return e[Ye]=!1,e.concat()[0]!==e})),Qe=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Ye];return void 0!==t?!!t:Me(e)};Ce({target:"Array",proto:!0,forced:!Xe||!Qe},{concat:function(e){var t,n,r,o,i,a=Le(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=fe(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&ke(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ke(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){j(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)P.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};H[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=j(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},ft=$e("unscopables"),lt=Array.prototype;null==lt[ft]&&P.f(lt,ft,{configurable:!0,value:ut(null)});var st;Ce({target:"Array",proto:!0},{fill:function(e){for(var t=Le(this),n=fe(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),st="fill",lt[ft][st]=!0;var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},vt=[].push,gt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,f,l){for(var s,d,v=Le(c),g=p(v),h=pt(u,f,3),m=fe(g.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[y],y,v),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:vt.call(x,s)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:gt(0),map:gt(1),filter:gt(2),some:gt(3),every:gt(4),find:gt(5),findIndex:gt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};Ce({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var jt=ve.indexOf,At=[].indexOf,Pt=!!At&&1/[1].indexOf(1,-0)<0,_t=mt("indexOf"),Rt=bt("indexOf",{ACCESSORS:!0,1:0});Ce({target:"Array",proto:!0,forced:Pt||!_t||!Rt},{indexOf:function(e){return Pt?At.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Ct=[].join,Mt=p!=Object,Lt=mt("join",",");Ce({target:"Array",proto:!0,forced:Mt||!Lt},{join:function(e){return Ct.call(g(this),void 0===e?",":e)}});var kt=function(e){return function(t,n,r,o){dt(n);var i=Le(t),a=p(i),c=fe(i.length),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},It={left:kt(!1),right:kt(!0)}.left,Nt=mt("reduce"),Ft=bt("reduce",{1:0});Ce({target:"Array",proto:!0,forced:!Nt||!Ft},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Dt=Je("slice"),Bt=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=$e("species"),Ut=[].slice,qt=Math.max;Ce({target:"Array",proto:!0,forced:!Dt||!Bt},{slice:function(e,t){var n,r,o,i=g(this),a=fe(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ut.call(i,c,u);for(r=new(void 0===n?Array:n)(qt(u-c,0)),o=0;c<u;c++,o++)c in i&&ke(r,o,i[c]);return r.length=o,r}});var Vt=P.f,Gt=Function.prototype,Ht=Gt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in Gt)&&Vt(Gt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var zt="".repeat||function(e){var t=String(v(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Kt=1..toFixed,Jt=Math.floor,Yt=function(e,t,n){return 0===t?n:t%2==1?Yt(e,t-1,n*e):Yt(e*e,t/2,n)};Ce({target:"Number",proto:!0,forced:Kt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Kt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=s(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",f="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Jt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Jt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+zt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Yt(2,69,1))-69)<0?i*Yt(2,-t,1):i/Yt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Yt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),f=p()}else l(0,n),l(1<<-t,0),f=p()+zt.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+zt.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var Xt=Object.assign,Qt=Object.defineProperty,Zt=!Xt||o((function(){if(i&&1!==Xt({b:1},Xt(Qt({},"a",{enumerable:!0,get:function(){Qt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Xt({},e)[n]||tt(Xt({},t)).join("")!=r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var f,l=p(arguments[o++]),s=a?tt(l).concat(a(l)):tt(l),d=s.length,v=0;d>v;)f=s[v++],i&&!c.call(l,f)||(n[f]=l[f]);return n}:Xt;Ce({target:"Object",stat:!0,forced:Object.assign!==Zt},{assign:Zt});var en=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tn=G("IE_PROTO"),nn=Object.prototype,rn=en?Object.getPrototypeOf:function(e){return e=Le(e),w(e,tn)?e[tn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nn:null};Ce({target:"Object",stat:!0,forced:o((function(){rn(1)})),sham:!en},{getPrototypeOf:function(e){return rn(Le(e))}}),Ce({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(Le(e))}});var on={};on[$e("toStringTag")]="z";var an="[object z]"===String(on),cn=$e("toStringTag"),un="Arguments"==s(function(){return arguments}()),fn=an?s:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),cn))?n:un?s(t):"Object"==(r=s(t))&&"function"==typeof t.callee?"Arguments":r},ln=an?{}.toString:function(){return"[object "+fn(this)+"]"};an||te(Object.prototype,"toString",ln,{unsafe:!0});var sn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",dn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$"),vn=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(dn,"")),2&e&&(n=n.replace(pn,"")),n}},gn={start:vn(1),end:vn(2),trim:vn(3)}.trim,hn=r.parseFloat,mn=1/hn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=gn(String(e)),n=hn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:hn;Ce({global:!0,forced:parseFloat!=mn},{parseFloat:mn});var yn=r.Promise,wn=P.f,xn=$e("toStringTag"),bn=$e("species"),Sn=function(e){var t=oe(e),n=P.f;i&&t&&!t[bn]&&n(t,bn,{configurable:!0,get:function(){return this}})},En={},On=$e("iterator"),Tn=Array.prototype,jn=$e("iterator"),An=function(e,t,n,r){try{return r?t(j(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&j(o.call(e)),t}},Pn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,f,l,s,d,p,v=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||En[fn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(En.Array===p||Tn[On]===p)){for(u=0,f=fe(e.length);f>u;u++)if((l=o?v(j(d=e[u])[0],d[1]):v(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=An(a,v,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),_n=$e("iterator"),Rn=!1;try{var Cn=0,Mn={next:function(){return{done:!!Cn++}},return:function(){Rn=!0}};Mn[_n]=function(){return this},Array.from(Mn,(function(){throw 2}))}catch(e){}var Ln,kn,In,Nn=$e("species"),Fn=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[Nn])?t:dt(n)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Bn=r.location,$n=r.setImmediate,Un=r.clearImmediate,qn=r.process,Vn=r.MessageChannel,Gn=r.Dispatch,Hn=0,Wn={},zn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Kn=function(e){return function(){zn(e)}},Jn=function(e){zn(e.data)},Yn=function(e){r.postMessage(e+"",Bn.protocol+"//"+Bn.host)};$n&&Un||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Ln(Hn),Hn},Un=function(e){delete Wn[e]},"process"==s(qn)?Ln=function(e){qn.nextTick(Kn(e))}:Gn&&Gn.now?Ln=function(e){Gn.now(Kn(e))}:Vn&&!Dn?(In=(kn=new Vn).port2,kn.port1.onmessage=Jn,Ln=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===Bn.protocol?Ln="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),zn(e)}}:function(e){setTimeout(Kn(e),0)}:(Ln=Yn,r.addEventListener("message",Jn,!1)));var Xn,Qn,Zn,er,tr,nr,rr,or,ir={set:$n,clear:Un},ar=T.f,cr=ir.set,ur=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,sr="process"==s(fr),dr=ar(r,"queueMicrotask"),pr=dr&&dr.value;pr||(Xn=function(){var e,t;for(sr&&(e=fr.domain)&&e.exit();Qn;){t=Qn.fn,Qn=Qn.next;try{t()}catch(e){throw Qn?er():Zn=void 0,e}}Zn=void 0,e&&e.enter()},sr?er=function(){fr.nextTick(Xn)}:ur&&!Dn?(tr=!0,nr=document.createTextNode(""),new ur(Xn).observe(nr,{characterData:!0}),er=function(){nr.data=tr=!tr}):lr&&lr.resolve?(rr=lr.resolve(void 0),or=rr.then,er=function(){or.call(rr,Xn)}):er=function(){cr.call(r,Xn)});var vr,gr,hr,mr,yr,wr,xr,br=pr||function(e){var t={fn:e,next:void 0};Zn&&(Zn.next=t),Qn||(Qn=t,er()),Zn=t},Sr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Er={f:function(e){return new Sr(e)}},Or=function(e,t){if(j(e),h(t)&&t.constructor===e)return t;var n=Er.f(e);return(0,n.resolve)(t),n.promise},Tr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ir.set,Ar=$e("species"),Pr="Promise",_r=ee.get,Rr=ee.set,Cr=ee.getterFor(Pr),Mr=yn,Lr=r.TypeError,kr=r.document,Ir=r.process,Nr=oe("fetch"),Fr=Er.f,Dr=Fr,Br="process"==s(Ir),$r=!!(kr&&kr.createEvent&&r.dispatchEvent),Ur=_e(Pr,(function(){if(!(N(Mr)!==String(Mr))){if(66===ze)return!0;if(!Br&&"function"!=typeof PromiseRejectionEvent)return!0}if(ze>=51&&/native code/.test(Mr))return!1;var e=Mr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Ar]=t,!(e.then((function(){}))instanceof t)})),qr=Ur||!function(e,t){if(!t&&!Rn)return!1;var n=!1;try{var r={};r[_n]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Mr.all(e).catch((function(){}))})),Vr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},Gr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;br((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,f,l=r[a++],s=i?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{s?(i||(2===t.rejection&&Kr(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Lr("Promise-chain cycle")):(u=Vr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!f&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=kr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(zr(t)&&(n=Tr((function(){Br?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Br||zr(t)?2:1,n.error))throw n.value}))},zr=function(e){return 1!==e.rejection&&!e.parent},Kr=function(e,t){jr.call(r,(function(){Br?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Jr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Yr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Gr(e,t,!0))},Xr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Lr("Promise can't be resolved itself");var o=Vr(n);o?br((function(){var r={done:!1};try{o.call(n,Jr(Xr,e,r,t),Jr(Yr,e,r,t))}catch(n){Yr(e,r,n,t)}})):(t.value=n,t.state=1,Gr(e,t,!1))}catch(n){Yr(e,{done:!1},n,t)}}};Ur&&(Mr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Mr,Pr),dt(e),vr.call(this);var t=_r(this);try{e(Jr(Xr,this,t),Jr(Yr,this,t))}catch(e){Yr(this,t,e)}},(vr=function(e){Rr(this,{type:Pr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(Mr.prototype,{then:function(e,t){var n=Cr(this),r=Fr(Fn(this,Mr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Br?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),gr=function(){var e=new vr,t=_r(e);this.promise=e,this.resolve=Jr(Xr,e,t),this.reject=Jr(Yr,e,t)},Er.f=Fr=function(e){return e===Mr||e===hr?new gr(e):Dr(e)},"function"==typeof yn&&(mr=yn.prototype.then,te(yn.prototype,"then",(function(e,t){var n=this;return new Mr((function(e,t){mr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Nr&&Ce({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Or(Mr,Nr.apply(r,arguments))}}))),Ce({global:!0,wrap:!0,forced:Ur},{Promise:Mr}),wr=Pr,xr=!1,(yr=Mr)&&!w(yr=xr?yr:yr.prototype,xn)&&wn(yr,xn,{configurable:!0,value:wr}),Sn(Pr),hr=oe(Pr),Ce({target:Pr,stat:!0,forced:Ur},{reject:function(e){var t=Fr(this);return t.reject.call(void 0,e),t.promise}}),Ce({target:Pr,stat:!0,forced:Ur},{resolve:function(e){return Or(this,e)}}),Ce({target:Pr,stat:!0,forced:qr},{all:function(e){var t=this,n=Fr(t),r=n.resolve,o=n.reject,i=Tr((function(){var n=dt(t.resolve),i=[],a=0,c=1;Pn(e,(function(e){var u=a++,f=!1;i.push(void 0),c++,n.call(t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Fr(t),r=n.reject,o=Tr((function(){var o=dt(t.resolve);Pn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return j(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Zr=$e("match"),eo=function(e){var t;return h(e)&&(void 0!==(t=e[Zr])?!!t:"RegExp"==s(e))},to=function(){var e=j(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function no(e,t){return RegExp(e,t)}var ro={UNSUPPORTED_Y:o((function(){var e=no("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=no("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},oo=P.f,io=we.f,ao=ee.set,co=$e("match"),uo=r.RegExp,fo=uo.prototype,lo=/a/g,so=/a/g,po=new uo(lo)!==lo,vo=ro.UNSUPPORTED_Y;if(i&&_e("RegExp",!po||vo||o((function(){return so[co]=!1,uo(lo)!=lo||uo(so)==so||"/a/i"!=uo(lo,"i")})))){for(var go=function(e,t){var n,r=this instanceof go,o=eo(e),i=void 0===t;if(!r&&o&&e.constructor===go&&i)return e;po?o&&!i&&(e=e.source):e instanceof go&&(i&&(t=to.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,f,l,s=(a=po?new uo(e,t):uo(e,t),c=r?this:fo,u=go,Qr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Qr(a,l),a);return vo&&n&&ao(s,{sticky:n}),s},ho=function(e){e in go||oo(go,e,{configurable:!0,get:function(){return uo[e]},set:function(t){uo[e]=t}})},mo=io(uo),yo=0;mo.length>yo;)ho(mo[yo++]);fo.constructor=go,go.prototype=fo,te(r,"RegExp",go)}Sn("RegExp");var wo=RegExp.prototype.exec,xo=String.prototype.replace,bo=wo,So=function(){var e=/a/,t=/b*/g;return wo.call(e,"a"),wo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Eo=ro.UNSUPPORTED_Y||ro.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(So||Oo||Eo)&&(bo=function(e){var t,n,r,o,i=this,a=Eo&&i.sticky,c=to.call(i),u=i.source,f=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Oo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),So&&(t=i.lastIndex),r=wo.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:So&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Oo&&r&&r.length>1&&xo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var To=bo;Ce({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var jo=RegExp.prototype,Ao=jo.toString,Po=o((function(){return"/a/b"!=Ao.call({source:"a",flags:"b"})})),_o="toString"!=Ao.name;(Po||_o)&&te(RegExp.prototype,"toString",(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?to.call(e):n)}),{unsafe:!0}),Ce({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var Ro=$e("species"),Co=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Mo="$0"==="a".replace(/./,"$0"),Lo=$e("replace"),ko=!!/./[Lo]&&""===/./[Lo]("a","$0"),Io=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),No=function(e,t,n,r){var i=$e(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ro]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!Co||!Mo||ko)||"split"===e&&!Io){var u=/./[i],f=n(i,""[e],(function(e,t,n,r,o){return t.exec===To?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Mo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ko}),l=f[0],s=f[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&_(RegExp.prototype[i],"sham",!0)},Fo=function(e){return function(t,n){var r,o,i=String(v(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Do={codeAt:Fo(!1),charAt:Fo(!0)}.charAt,Bo=function(e,t,n){return t+(n?Do(e,t).length:1)},$o=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(e))throw TypeError("RegExp#exec called on incompatible receiver");return To.call(e,t)};No("match",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this);if(!o.global)return $o(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=$o(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=Bo(i,fe(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Uo=Math.max,qo=Math.min,Vo=Math.floor,Go=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ho=/\$([$&'`]|\d\d?)/g,Wo=function(e){return void 0===e?e:String(e)};No("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=v(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var f=j(e),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var g=$o(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=Bo(l,fe(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),x=Uo(qo(ce(g.index),l.length),0),b=[],S=1;S<g.length;S++)b.push(Wo(g[S]));var E=g.groups;if(s){var O=[w].concat(b,x,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,x,b,E,r);x>=m&&(h+=l.slice(m,x)+T,m=x+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,f=Ho;return void 0!==i&&(i=Le(i),f=Go),t.call(a,f,(function(t,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var s=Vo(l/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}f=o[l-1]}return void 0===f?"":f}))}}));var zo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};No("search",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this),a=o.lastIndex;zo(a,0)||(o.lastIndex=0);var c=$o(o,i);return zo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Ko=[].push,Jo=Math.min,Yo=!o((function(){return!RegExp(4294967295,"y")}));No("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(v(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!eo(e))return t.call(r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,f+"g");(i=To.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Ko.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=v(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=j(e),c=String(this),u=Fn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yo?"y":"g"),s=new u(Yo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===$o(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Yo?v:0;var h,m=$o(s,Yo?c:c.slice(v));if(null===m||(h=Jo(fe(s.lastIndex+(Yo?0:v)),c.length))===p)v=Bo(c,v,f);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!Yo);for(var Xo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Qo=r[Xo],Zo=Qo&&Qo.prototype;if(Zo&&Zo.forEach!==Tt)try{_(Zo,"forEach",Tt)}catch(e){Zo.forEach=Tt}}var ei=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function ti(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ni(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ri(e){return JSON.parse(JSON.stringify(e))}function oi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ii(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function ai(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function ci(){return Date.now?Date.now():(new Date).getTime()}function ui(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function fi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addInlineStyle=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n;if(!e)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=e:(c.setAttribute("id",r),c.innerHTML=e,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=e,o.appendChild(c),document.head.appendChild(o)),!0},exports.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],l=u[1];a>0&&(f=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(f,l)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},exports.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},exports.camelCase2Underscore=ni,exports.camelCaseToKebabCase=function(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=ci()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];r=this,a=f,i=ci();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ri,exports.doFn=ai,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;ii(e)||(e=new Date(e).getTime()),ii(t)||(t=new Date(t).getTime());var i=t-e,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,ti([e],o)):(r=console)[n].apply(r,o)}})),t},exports.generateRndNum=oi,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[ci(),oi(e||3)];return t[0]+t[1]},exports.getBrowserInfo=fi,exports.getCookie=ui,exports.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:f(),osVersion:l(),deviceType:s(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(e){ii(g[e])&&g[e]<0&&(g[e]=0)})),ii(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)e||Object.keys(g).forEach((function(e){i||(i={}),i[ni(e)]=g[e]})),t(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function s(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function v(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(unescape(n[2])):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){void 0===e&&(e="");try{if("object"===ei(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNumber=ii,exports.isSafePWAEnv=function(){var e=fi();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},exports.loadCSS=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n,o=null,i=new Promise((function(e,t){var n;o=(n=[e,t])[0],n[1]})),a=function(){ai(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i},exports.loadScript=function(e,t){void 0===e&&(e="");var n=void 0===t?{}:t,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,ai(a),ai(s,!0))}:p.onload=function(){ai(a),ai(s,!0)},p.src=e,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,t){var n;s=(n=[e,t])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))},exports.mNow=ci,exports.mTrim=function(e){void 0===e&&(e="");for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(void 0===e&&(e=""),!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==ui(e)&&ui(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:ci(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=ci();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},exports.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t=function(){},n=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n("timeout")}),1e3*e),r};
package/lib/index.d.ts CHANGED
@@ -77,7 +77,7 @@ export declare function mTrim(str?: string): string;
77
77
  * @method newLine
78
78
  * @description Make a newline of HTML.
79
79
  * @param {string} str The string to make a newline.
80
- * @return {string} A newline with `<br />`.
80
+ * @return {string} A newline with `br`.
81
81
  * */
82
82
  export declare function newLine(str?: string): string;
83
83
  /**
@@ -297,7 +297,7 @@ export declare function windowLoaded(timeout?: number): Promise<string>;
297
297
  * @method addInlineStyle
298
298
  * @description 添加内联样式
299
299
  * @param {string} inlineStyle 内联样式字符串
300
- * @param {string} id <style> 标签的 ID
300
+ * @param {string} id style 标签的 ID
301
301
  * @return {boolean} 添加成功/失败
302
302
  */
303
303
  export declare function addInlineStyle(inlineStyle?: string, { id }?: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CAqBtE;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CA8BxE;AAED;;;;;KAKK;AACL,wBAAgB,aAAa,CAAC,KAAK,SAAK,GAAG,MAAM,CAOhD;AAED;;;;;;KAMK;AACL,wBAAgB,WAAW,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAiBxD;AAED;;;;;;;KAOK;AACJ,wBAAgB,gBAAgB,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAQ1E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,SAAK,GAAG,MAAM,CAQpD;AAED;;;;;KAKK;AACL,wBAAgB,SAAS,CAAC,GAAG,SAAK,EAAE,KAAK,WAAe,GAAG,MAAM,CAOhE;AAED;;;;;KAKK;AACL,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;KAKK;AACL,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;KAKK;AACL,wBAAgB,KAAK,CAAC,GAAG,SAAK,GAAG,MAAM,CAQtC;AAED;;;;;KAKK;AACL,wBAAgB,OAAO,CAAC,GAAG,SAAK,GAAG,MAAM,CAMxC;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAE5C;AAED;;;;;KAKK;AACL,wBAAgB,YAAY,CAAC,GAAG,SAAK,GAAG,OAAO,CAS9C;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;KAIK;AACL,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,GAAG,SAAI,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ3D;AAED;;;KAGK;AACL,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;KAGK;AACL,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CASzC;AAED;;KAEK;AACL,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;KAEK;AACL,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CASpD;AAED;;KAEK;AACL,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQvD;AAED;;;KAGK;AACL,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,GAAG,CAyCnE;AAED;;;KAGK;AACL,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,CAkCrE;AAED;;;;;;;KAOK;AACL,wBAAgB,gBAAgB,CAAC,KAAK,SAAI,EAAE,GAAG,SAAI,EAAE,EAAE,IAAU,EAAE;;CAAK,GAAG,MAAM,GAAG,MAAM,CA2BzF;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,aAAqB,EAAE,kBAA0B,EAAE;;;CAAK,GAAG,OAAO,CAiBtG;AAED;;;;KAIK;AACL,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAMnD;AAED;;;;;KAKK;AACL,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAItE;AAED;;;;;KAKK;AACL,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASlD;AAED;;;;;KAKK;AACL,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAIpE;AAED;;;;;KAKK;AACL,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAShD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,SAAK,EAAE,EAAE,EAAO,EAAE;;CAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAgHhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,GAAG,SAAK,EAAE,EAAE,EAAO,EAAE,QAAqC,EAAE,OAAc,EAAE,OAAe,EAAE;;;;;CAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAqC3I;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAoCzF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,UAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CA0M7D;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAsCtC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,GAAG,CAkKpC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAE,MAAM,SAAK,GAAG,MAAM,CAE9C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,SAAK,EAAE,GAAG,SAAa,EAAE,MAAM,UAAQ,GAAG,MAAM,CA4B/E;AAED;;;;;EAKE;AACF,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAe1D;AAED;;;;;;EAME;AACF,wBAAgB,cAAc,CAAC,WAAW,SAAK,EAAE,EAAE,EAAO,EAAE;;CAAK,GAAG,OAAO,CA6B1E;AAED;;;;;;EAME;AACF,wBAAgB,gBAAgB,CAAC,MAAM,SAAK,GAAG,GAAG,CAajD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CAqBtE;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,GAAG,MAAM,CA8BxE;AAED;;;;;KAKK;AACL,wBAAgB,aAAa,CAAC,KAAK,SAAK,GAAG,MAAM,CAOhD;AAED;;;;;;KAMK;AACL,wBAAgB,WAAW,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAiBxD;AAED;;;;;;;KAOK;AACJ,wBAAgB,gBAAgB,CAAC,GAAG,SAAK,EAAE,KAAK,SAAK,EAAE,KAAK,SAAK,GAAG,MAAM,CAQ1E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,SAAK,GAAG,MAAM,CAQpD;AAED;;;;;KAKK;AACL,wBAAgB,SAAS,CAAC,GAAG,SAAK,EAAE,KAAK,WAAe,GAAG,MAAM,CAOhE;AAED;;;;;KAKK;AACL,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;KAKK;AACL,wBAAgB,oBAAoB,CAAC,SAAS,SAAK,GAAG,MAAM,CAG3D;AAED;;;;;KAKK;AACL,wBAAgB,KAAK,CAAC,GAAG,SAAK,GAAG,MAAM,CAQtC;AAED;;;;;KAKK;AACL,wBAAgB,OAAO,CAAC,GAAG,SAAK,GAAG,MAAM,CAMxC;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAE5C;AAED;;;;;KAKK;AACL,wBAAgB,YAAY,CAAC,GAAG,SAAK,GAAG,OAAO,CAS9C;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;KAIK;AACL,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;KAKK;AACL,wBAAgB,cAAc,CAAC,GAAG,SAAI,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ3D;AAED;;;KAGK;AACL,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;KAGK;AACL,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CASzC;AAED;;KAEK;AACL,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;KAEK;AACL,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CASpD;AAED;;KAEK;AACL,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQvD;AAED;;;KAGK;AACL,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,GAAG,CAyCnE;AAED;;;KAGK;AACL,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,CAkCrE;AAED;;;;;;;KAOK;AACL,wBAAgB,gBAAgB,CAAC,KAAK,SAAI,EAAE,GAAG,SAAI,EAAE,EAAE,IAAU,EAAE;;CAAK,GAAG,MAAM,GAAG,MAAM,CA2BzF;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,aAAqB,EAAE,kBAA0B,EAAE;;;CAAK,GAAG,OAAO,CAiBtG;AAED;;;;KAIK;AACL,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAMnD;AAED;;;;;KAKK;AACL,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAItE;AAED;;;;;KAKK;AACL,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASlD;AAED;;;;;KAKK;AACL,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,GAAU,GAAG,IAAI,CAIpE;AAED;;;;;KAKK;AACL,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAShD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,SAAK,EAAE,EAAE,EAAO,EAAE;;CAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAgHhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,GAAG,SAAK,EAAE,EAAE,EAAO,EAAE,QAAqC,EAAE,OAAc,EAAE,OAAe,EAAE;;;;;CAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAqC3I;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAoCzF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,UAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CA0M7D;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAsCtC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,GAAG,CA0KpC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAE,MAAM,SAAK,GAAG,MAAM,CAE9C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,SAAK,EAAE,GAAG,SAAa,EAAE,MAAM,UAAQ,GAAG,MAAM,CA4B/E;AAED;;;;;EAKE;AACF,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAe1D;AAED;;;;;;EAME;AACF,wBAAgB,cAAc,CAAC,WAAW,SAAK,EAAE,EAAE,EAAO,EAAE;;CAAK,GAAG,OAAO,CA6B1E;AAED;;;;;;EAME;AACF,wBAAgB,gBAAgB,CAAC,MAAM,SAAK,GAAG,GAAG,CAajD"}
package/lib/index.esm.js CHANGED
@@ -1 +1 @@
1
- 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])}},j=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,_={f:i?A:function(t,e,n){if(j(t),e=m(e,!0),j(n),E)try{return A(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}},R=i?function(t,e,n){return _.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{R(r,t,e)}catch(n){r[t]=e}return e},M=r["__core-js_shared__"]||P("__core-js_shared__",{}),k=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return k.call(t)});var C,I,L,N=M.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(N(F)),$=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)"})})),B=0,U=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+U).toString(36)},V=$("keys"),G=function(t){return V[t]||(V[t]=q(t))},W={},z=r.WeakMap;if(D){var H=new z,K=H.get,J=H.has,Y=H.set;C=function(t,e){return Y.call(H,t,e),e},I=function(t){return K.call(H,t)||{}},L=function(t){return J.call(H,t)}}else{var X=G("state");W[X]=!0,C=function(t,e){return R(t,X,e),e},I=function(t){return w(t,X)?t[X]:{}},L=function(t){return w(t,X)}}var Z,Q,tt={set:C,get:I,has:L,enforce:function(t){return L(t)?I(t):C(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")||R(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:R(t,e,i)):u?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||N(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(W,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(j(t)),n=bt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=xt(e),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=jt[Tt(t)];return n==_t||n!=At&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},jt=Ot.data={},At=Ot.NATIVE="N",_t=Ot.POLYFILL="P",Rt=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],!Rt(f?o:u+(l?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&R(a,"sham",!0),et(n,o,a,t)}},kt=Array.isArray||function(t){return"Array"==s(t)},Ct=function(t){return Object(v(t))},It=function(t,e,n){var r=m(e);r in t?_.f(t,r,f(0,n)):t[r]=n},Lt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Nt=Lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=$("wks"),Dt=r.Symbol,$t=Nt?Dt:Dt&&Dt.withoutSetter||q,Bt=function(t){return w(Ft,t)||(Lt&&w(Dt,t)?Ft[t]=Dt[t]:Ft[t]=$t("Symbol."+t)),Ft[t]},Ut=Bt("species"),qt=function(t,e){var n;return kt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!kt(n.prototype)?h(n)&&null===(n=n[Ut])&&(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?Q=(Z=zt.split("."))[0]+Z[1]:Vt&&(!(Z=Vt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Vt.match(/Chrome\/(\d+)/))&&(Q=Z[1]);var Ht=Q&&+Q,Kt=Bt("species"),Jt=function(t){return Ht>=51||!o((function(){var e=[];return(e.constructor={})[Kt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Yt=Bt("isConcatSpreadable"),Xt=Ht>=51||!o((function(){var t=[];return t[Yt]=!1,t.concat()[0]!==t})),Zt=Jt("concat"),Qt=function(t){if(!h(t))return!1;var e=t[Yt];return void 0!==e?!!e:kt(t)};Mt({target:"Array",proto:!0,forced:!Xt||!Zt},{concat:function(t){var e,n,r,o,i,a=Ct(this),c=qt(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Qt(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){j(t);for(var n,r=ee(e),o=r.length,i=0;o>i;)_.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=j(t),n=new ie,ie.prototype=null,n[oe]=t):n=ce(),void 0===e?n:ne(n,e)},fe=Bt("unscopables"),le=Array.prototype;null==le[fe]&&_.f(le,fe,{configurable:!0,value:ue(null)});var se;Mt({target:"Array",proto:!0},{fill:function(t){for(var e=Ct(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",le[fe][se]=!0;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=Ct(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 je=vt.indexOf,Ae=[].indexOf,_e=!!Ae&&1/[1].indexOf(1,-0)<0,Re=me("indexOf"),Pe=xe("indexOf",{ACCESSORS:!0,1:0});Mt({target:"Array",proto:!0,forced:_e||!Re||!Pe},{indexOf:function(t){return _e?Ae.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Me=[].join,ke=p!=Object,Ce=me("join",",");Mt({target:"Array",proto:!0,forced:ke||!Ce},{join:function(t){return Me.call(g(this),void 0===t?",":t)}});var Ie=function(t){return function(e,n,r,o){de(n);var i=Ct(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:Ie(!1),right:Ie(!0)}.left,Ne=me("reduce"),Fe=xe("reduce",{1:0});Mt({target:"Array",proto:!0,forced:!Ne||!Fe},{reduce:function(t){return Le(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var De=Jt("slice"),$e=xe("slice",{ACCESSORS:!0,0:0,1:2}),Be=Bt("species"),Ue=[].slice,qe=Math.max;Mt({target:"Array",proto:!0,forced:!De||!$e},{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(kt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!kt(n.prototype)?h(n)&&null===(n=n[Be])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ue.call(i,c,u);for(r=new(void 0===n?Array:n)(qe(u-c,0)),o=0;c<u;c++,o++)c in i&&It(r,o,i[c]);return r.length=o,r}});var Ve=_.f,Ge=Function.prototype,We=Ge.toString,ze=/^\s*function ([^ (]*)/;i&&!("name"in Ge)&&Ve(Ge,"name",{configurable:!0,get:function(){try{return We.call(this).match(ze)[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},Ke=1..toFixed,Je=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:Ke&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Ke.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=Je(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=Je(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 Xe=Object.assign,Ze=Object.defineProperty,Qe=!Xe||o((function(){if(i&&1!==Xe({b:1},Xe(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!=Xe({},t)[n]||ee(Xe({},e)).join("")!=r}))?function(t,e){for(var n=Ct(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}:Xe;Mt({target:"Object",stat:!0,forced:Object.assign!==Qe},{assign:Qe});var tn=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),en=G("IE_PROTO"),nn=Object.prototype,rn=tn?Object.getPrototypeOf:function(t){return t=Ct(t),w(t,en)?t[en]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?nn:null};Mt({target:"Object",stat:!0,forced:o((function(){rn(1)})),sham:!tn},{getPrototypeOf:function(t){return rn(Ct(t))}}),Mt({target:"Object",stat:!0,forced:o((function(){ee(1)}))},{keys:function(t){return ee(Ct(t))}});var on={};on[Bt("toStringTag")]="z";var an="[object z]"===String(on),cn=Bt("toStringTag"),un="Arguments"==s(function(){return arguments}()),fn=an?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),cn))?n:un?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},ln=an?{}.toString:function(){return"[object "+fn(this)+"]"};an||et(Object.prototype,"toString",ln,{unsafe:!0});var sn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",dn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$"),vn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(dn,"")),2&t&&(n=n.replace(pn,"")),n}},gn={start:vn(1),end:vn(2),trim:vn(3)}.trim,hn=r.parseFloat,mn=1/hn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(t){var e=gn(String(t)),n=hn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:hn;Mt({global:!0,forced:parseFloat!=mn},{parseFloat:mn});var yn=r.Promise,wn=_.f,bn=Bt("toStringTag"),xn=Bt("species"),Sn=function(t){var e=ot(t),n=_.f;i&&e&&!e[xn]&&n(e,xn,{configurable:!0,get:function(){return this}})},En={},On=Bt("iterator"),Tn=Array.prototype,jn=Bt("iterator"),An=function(t,e,n,r){try{return r?e(j(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&j(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"]||En[fn(t)]}(t),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(En.Array===p||Tn[On]===p)){for(u=0,f=ft(t.length);f>u;u++)if((l=o?v(j(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=An(a,v,d.value,o))&&l&&l instanceof e)return l;return new e(!1)};n.stop=function(t){return new e(!0,t)}})),Rn=Bt("iterator"),Pn=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){Pn=!0}};kn[Rn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(t){}var Cn,In,Ln,Nn=Bt("species"),Fn=function(t,e){var n,r=j(t).constructor;return void 0===r||null==(n=j(r)[Nn])?e:de(n)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(Vt),$n=r.location,Bn=r.setImmediate,Un=r.clearImmediate,qn=r.process,Vn=r.MessageChannel,Gn=r.Dispatch,Wn=0,zn={},Hn=function(t){if(zn.hasOwnProperty(t)){var e=zn[t];delete zn[t],e()}},Kn=function(t){return function(){Hn(t)}},Jn=function(t){Hn(t.data)},Yn=function(t){r.postMessage(t+"",$n.protocol+"//"+$n.host)};Bn&&Un||(Bn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return zn[++Wn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Cn(Wn),Wn},Un=function(t){delete zn[t]},"process"==s(qn)?Cn=function(t){qn.nextTick(Kn(t))}:Gn&&Gn.now?Cn=function(t){Gn.now(Kn(t))}:Vn&&!Dn?(Ln=(In=new Vn).port2,In.port1.onmessage=Jn,Cn=pe(Ln.postMessage,Ln,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===$n.protocol?Cn="onreadystatechange"in S("script")?function(t){re.appendChild(S("script")).onreadystatechange=function(){re.removeChild(this),Hn(t)}}:function(t){setTimeout(Kn(t),0)}:(Cn=Yn,r.addEventListener("message",Jn,!1)));var Xn,Zn,Qn,tr,er,nr,rr,or,ir={set:Bn,clear:Un},ar=T.f,cr=ir.set,ur=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,sr="process"==s(fr),dr=ar(r,"queueMicrotask"),pr=dr&&dr.value;pr||(Xn=function(){var t,e;for(sr&&(t=fr.domain)&&t.exit();Zn;){e=Zn.fn,Zn=Zn.next;try{e()}catch(t){throw Zn?tr():Qn=void 0,t}}Qn=void 0,t&&t.enter()},sr?tr=function(){fr.nextTick(Xn)}:ur&&!Dn?(er=!0,nr=document.createTextNode(""),new ur(Xn).observe(nr,{characterData:!0}),tr=function(){nr.data=er=!er}):lr&&lr.resolve?(rr=lr.resolve(void 0),or=rr.then,tr=function(){or.call(rr,Xn)}):tr=function(){cr.call(r,Xn)});var vr,gr,hr,mr,yr,wr,br,xr=pr||function(t){var e={fn:t,next:void 0};Qn&&(Qn.next=e),Zn||(Zn=e,tr()),Qn=e},Sr=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)},Er={f:function(t){return new Sr(t)}},Or=function(t,e){if(j(t),h(e)&&e.constructor===t)return e;var n=Er.f(t);return(0,n.resolve)(e),n.promise},Tr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},jr=ir.set,Ar=Bt("species"),_r="Promise",Rr=tt.get,Pr=tt.set,Mr=tt.getterFor(_r),kr=yn,Cr=r.TypeError,Ir=r.document,Lr=r.process,Nr=ot("fetch"),Fr=Er.f,Dr=Fr,$r="process"==s(Lr),Br=!!(Ir&&Ir.createEvent&&r.dispatchEvent),Ur=Rt(_r,(function(){if(!(N(kr)!==String(kr))){if(66===Ht)return!0;if(!$r&&"function"!=typeof PromiseRejectionEvent)return!0}if(Ht>=51&&/native code/.test(kr))return!1;var t=kr.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Ar]=e,!(t.then((function(){}))instanceof e)})),qr=Ur||!function(t,e){if(!e&&!Pn)return!1;var n=!1;try{var r={};r[Rn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){kr.all(t).catch((function(){}))})),Vr=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Gr=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;xr((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&&Kr(t,e),e.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Cr("Promise-chain cycle")):(u=Vr(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&&zr(t,e)}))}},Wr=function(t,e,n){var o,i;Br?((o=Ir.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)},zr=function(t,e){jr.call(r,(function(){var n,r=e.value;if(Hr(e)&&(n=Tr((function(){$r?Lr.emit("unhandledRejection",r,t):Wr("unhandledrejection",t,r)})),e.rejection=$r||Hr(e)?2:1,n.error))throw n.value}))},Hr=function(t){return 1!==t.rejection&&!t.parent},Kr=function(t,e){jr.call(r,(function(){$r?Lr.emit("rejectionHandled",t):Wr("rejectionhandled",t,e.value)}))},Jr=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,Gr(t,e,!0))},Xr=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Cr("Promise can't be resolved itself");var o=Vr(n);o?xr((function(){var r={done:!1};try{o.call(n,Jr(Xr,t,r,e),Jr(Yr,t,r,e))}catch(n){Yr(t,r,n,e)}})):(e.value=n,e.state=1,Gr(t,e,!1))}catch(n){Yr(t,{done:!1},n,e)}}};Ur&&(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=Rr(this);try{t(Jr(Xr,this,e),Jr(Yr,this,e))}catch(t){Yr(this,e,t)}},(vr=function(t){Pr(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=Mr(this),r=Fr(Fn(this,kr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=$r?Lr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gr(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),gr=function(){var t=new vr,e=Rr(t);this.promise=t,this.resolve=Jr(Xr,t,e),this.reject=Jr(Yr,t,e)},Er.f=Fr=function(t){return t===kr||t===hr?new gr(t):Dr(t)},"function"==typeof yn&&(mr=yn.prototype.then,et(yn.prototype,"then",(function(t,e){var n=this;return new kr((function(t,e){mr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Nr&&Mt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Or(kr,Nr.apply(r,arguments))}}))),Mt({global:!0,wrap:!0,forced:Ur},{Promise:kr}),wr=_r,br=!1,(yr=kr)&&!w(yr=br?yr:yr.prototype,bn)&&wn(yr,bn,{configurable:!0,value:wr}),Sn(_r),hr=ot(_r),Mt({target:_r,stat:!0,forced:Ur},{reject:function(t){var e=Fr(this);return e.reject.call(void 0,t),e.promise}}),Mt({target:_r,stat:!0,forced:Ur},{resolve:function(t){return Or(this,t)}}),Mt({target:_r,stat:!0,forced:qr},{all:function(t){var e=this,n=Fr(e),r=n.resolve,o=n.reject,i=Tr((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=Fr(e),r=n.reject,o=Tr((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 j(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),Qr=Bt("match"),to=function(t){var e;return h(t)&&(void 0!==(e=t[Qr])?!!e:"RegExp"==s(t))},eo=function(){var t=j(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 no(t,e){return RegExp(t,e)}var ro={UNSUPPORTED_Y:o((function(){var t=no("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=no("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},oo=_.f,io=wt.f,ao=tt.set,co=Bt("match"),uo=r.RegExp,fo=uo.prototype,lo=/a/g,so=/a/g,po=new uo(lo)!==lo,vo=ro.UNSUPPORTED_Y;if(i&&Rt("RegExp",!po||vo||o((function(){return so[co]=!1,uo(lo)!=lo||uo(so)==so||"/a/i"!=uo(lo,"i")})))){for(var go=function(t,e){var n,r=this instanceof go,o=to(t),i=void 0===e;if(!r&&o&&t.constructor===go&&i)return t;po?o&&!i&&(t=t.source):t instanceof go&&(i&&(e=eo.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=po?new uo(t,e):uo(t,e),c=r?this:fo,u=go,Zr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&ao(s,{sticky:n}),s},ho=function(t){t in go||oo(go,t,{configurable:!0,get:function(){return uo[t]},set:function(e){uo[t]=e}})},mo=io(uo),yo=0;mo.length>yo;)ho(mo[yo++]);fo.constructor=go,go.prototype=fo,et(r,"RegExp",go)}Sn("RegExp");var wo=RegExp.prototype.exec,bo=String.prototype.replace,xo=wo,So=function(){var t=/a/,e=/b*/g;return wo.call(t,"a"),wo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Eo=ro.UNSUPPORTED_Y||ro.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(So||Oo||Eo)&&(xo=function(t){var e,n,r,o,i=this,a=Eo&&i.sticky,c=eo.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)),Oo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),So&&(e=i.lastIndex),r=wo.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:So&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Oo&&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 To=xo;Mt({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var jo=RegExp.prototype,Ao=jo.toString,_o=o((function(){return"/a/b"!=Ao.call({source:"a",flags:"b"})})),Ro="toString"!=Ao.name;(_o||Ro)&&et(RegExp.prototype,"toString",(function(){var t=j(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in jo)?eo.call(t):n)}),{unsafe:!0}),Mt({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var Po=Bt("species"),Mo=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ko="$0"==="a".replace(/./,"$0"),Co=Bt("replace"),Io=!!/./[Co]&&""===/./[Co]("a","$0"),Lo=!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]})),No=function(t,e,n,r){var i=Bt(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[Po]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!a||!c||"replace"===t&&(!Mo||!ko||Io)||"split"===t&&!Lo){var u=/./[i],f=n(i,""[t],(function(t,e,n,r,o){return e.exec===To?a&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ko,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Io}),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&&R(RegExp.prototype[i],"sham",!0)},Fo=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}},Do={codeAt:Fo(!1),charAt:Fo(!0)}.charAt,$o=function(t,e,n){return e+(n?Do(t,e).length:1)},Bo=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 To.call(t,e)};No("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=j(t),i=String(this);if(!o.global)return Bo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Bo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=$o(i,ft(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Uo=Math.max,qo=Math.min,Vo=Math.floor,Go=/\$([$&'`]|\d\d?|<[^>]*>)/g,Wo=/\$([$&'`]|\d\d?)/g,zo=function(t){return void 0===t?t:String(t)};No("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=j(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=Bo(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=$o(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=Uo(qo(ct(g.index),l.length),0),x=[],S=1;S<g.length;S++)x.push(zo(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=Wo;return void 0!==i&&(i=Ct(i),f=Go),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=Vo(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 Ho=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};No("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=j(t),i=String(this),a=o.lastIndex;Ho(a,0)||(o.lastIndex=0);var c=Bo(o,i);return Ho(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Ko=[].push,Jo=Math.min,Yo=!o((function(){return!RegExp(4294967295,"y")}));No("split",2,(function(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(!to(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=To.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Ko.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(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=j(t),c=String(this),u=Fn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yo?"y":"g"),s=new u(Yo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Bo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Yo?v:0;var h,m=Bo(s,Yo?c:c.slice(v));if(null===m||(h=Jo(ft(s.lastIndex+(Yo?0:v)),c.length))===p)v=$o(c,v,f);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!Yo);for(var Xo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Zo=r[Xo],Qo=Zo&&Zo.prototype;if(Qo&&Qo.forEach!==Te)try{R(Qo,"forEach",Te)}catch(t){Qo.forEach=Te}}var ti=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 ei(){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 ni(t,e){void 0===t&&(t=""),void 0===e&&(e="");for(var n=t.length,r=e.length,o=pi(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 ri(t,e){void 0===t&&(t=""),void 0===e&&(e="");for(var n=t.length,r=e.length,o=pi(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 oi(t){void 0===t&&(t="");var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(unescape(n[2])):""}function ii(t,e){void 0===t&&(t=""),void 0===e&&(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 ai(t,e,n){void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(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 ci(t){void 0===t&&(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 ui(t,e){void 0===t&&(t=""),void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function fi(t){void 0===t&&(t="");var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function li(t){void 0===t&&(t="");var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function si(t){void 0===t&&(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 di(t){if(void 0===t&&(t=""),!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function pi(t){return JSON.parse(JSON.stringify(t))}function vi(t){void 0===t&&(t="");try{if("object"===ti(JSON.parse(t)))return!0}catch(t){}return!1}function gi(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function hi(t){void 0===t&&(t=3);var e=[Ii(),gi(t||3)];return e[0]+e[1]}function mi(t,e){void 0===t&&(t=0),void 0===e&&(e=0);return(e?(100*t).toFixed(e):String(Math.floor(100*t)))+"%"}function yi(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function wi(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function bi(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function xi(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function Si(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function Ei(t,e,n){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:Ii(),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=Ii();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 Oi(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=Ii()-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=Ii();var s=n&&!o;return o||(o=setTimeout(u,e)),s&&(c=t.apply(r,a),r=a=null),c}}function Ti(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;ji(t)||(t=new Date(t).getTime()),ji(e)||(e=new Date(e).getTime());var i=e-t,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a}function ji(t,e){var n=void 0===e?{}:e,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof t&&(a=!1),!1!==(void 0!==i&&i)||isFinite(t)||(a=!1),!1===o&&isNaN(t)&&(a=!1),a}function Ai(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 _i(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function Ri(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Pi(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function Mi(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function ki(t,e){void 0===t&&(t="");var n=(void 0===e?{}:e).id,r=void 0===n?"":n,o=null,i=new Promise((function(t,e){var n;o=(n=[t,e])[0],n[1]})),a=function(){Ai(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=t,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(f)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():s(t,e,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i}function Ci(t,e){void 0===t&&(t="");var n=void 0===e?{}:e,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,Ai(a),Ai(s,!0))}:p.onload=function(){Ai(a),Ai(s,!0)},p.src=t,v&&v.parentNode.insertBefore(p,v),new Promise((function(t,e){var n;s=(n=[t,e])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))}function Ii(){return Date.now?Date.now():(new Date).getTime()}function Li(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!==Ni(t)&&Ni(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function Ni(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 Fi(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){ji(g[t])&&g[t]<0&&(g[t]=0)})),ji(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[li(t)]=g[t]})),e(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var 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 Di(t){return Math.random()<t}function $i(){var t=Bi();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 Bi(){try{var t=navigator.userAgent.toLowerCase(),e=function(e){return e.test(t)},n=function(e){return t.match(e).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},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{}}}function Ui(t){return void 0===t&&(t=""),t.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")}function qi(t,e,n){if(void 0===t&&(t=""),void 0===e&&(e=t.length),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 Vi(t){void 0===t&&(t=90);var e=function(){},n=function(){},r=new Promise((function(t,r){e=t,n=r}));return"complete"===document.readyState?e("complete"):window.addEventListener("load",(function(){return e("load")})),setTimeout((function(){return n("timeout")}),1e3*t),r}function Gi(t,e){void 0===t&&(t="");var n=(void 0===e?{}:e).id,r=void 0===n?"":n;if(!t)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=t:(c.setAttribute("id",r),c.innerHTML=t,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=t,o.appendChild(c),document.head.appendChild(o)),!0}function Wi(t){void 0===t&&(t="");var e=Object.create(null);return["log","info","warn","error"].forEach((function(n){e[n]=function(){for(var e,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t?(e=console)[n].apply(e,ei([t],o)):(r=console)[n].apply(r,o)}})),e}export{xi as addClass,Gi as addInlineStyle,ri as calLongestCommonSubsequence,ni as calLongestCommonSubstring,li as camelCase2Underscore,fi as camelCaseToKebabCase,wi as cancelBubble,Ui as clearHtml,qi as cutCHSString,Oi as debounce,pi as deepCopyObject,Ai as doFn,yi as floatFixed,mi as floatToPercent,Ti as friendlyInterval,Wi as genCustomConsole,gi as generateRndNum,hi as generateUniqueNum,Bi as getBrowserInfo,Ni as getCookie,ui as getDomain,ci as getHashQueryParam,Mi as getLocalStorage,Fi as getPerformance,oi as getQueryParam,Ri as getSessionStorage,ii as getUrlParam,bi as hasClass,Di as inRate,vi as isJsonString,ji as isNumber,$i as isSafePWAEnv,ki as loadCSS,Ci as loadScript,Ii as mNow,si as mTrim,di as newLine,Si as removeClass,Li as setCookie,Pi as setLocalStorage,_i as setSessionStorage,Ei as throttle,ai as updateQueryParam,Vi as windowLoaded};
1
+ 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])}},j=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,_={f:i?A:function(t,e,n){if(j(t),e=m(e,!0),j(n),E)try{return A(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}},R=i?function(t,e,n){return _.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{R(r,t,e)}catch(n){r[t]=e}return e},M=r["__core-js_shared__"]||P("__core-js_shared__",{}),k=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return k.call(t)});var C,I,L,N=M.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(N(F)),$=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)"})})),B=0,U=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+U).toString(36)},V=$("keys"),G=function(t){return V[t]||(V[t]=q(t))},z={},W=r.WeakMap;if(D){var H=new W,K=H.get,J=H.has,Y=H.set;C=function(t,e){return Y.call(H,t,e),e},I=function(t){return K.call(H,t)||{}},L=function(t){return J.call(H,t)}}else{var X=G("state");z[X]=!0,C=function(t,e){return R(t,X,e),e},I=function(t){return w(t,X)?t[X]:{}},L=function(t){return w(t,X)}}var Z,Q,tt={set:C,get:I,has:L,enforce:function(t){return L(t)?I(t):C(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")||R(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:R(t,e,i)):u?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||N(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(j(t)),n=bt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=xt(e),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=jt[Tt(t)];return n==_t||n!=At&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},jt=Ot.data={},At=Ot.NATIVE="N",_t=Ot.POLYFILL="P",Rt=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],!Rt(f?o:u+(l?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&R(a,"sham",!0),et(n,o,a,t)}},kt=Array.isArray||function(t){return"Array"==s(t)},Ct=function(t){return Object(v(t))},It=function(t,e,n){var r=m(e);r in t?_.f(t,r,f(0,n)):t[r]=n},Lt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Nt=Lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=$("wks"),Dt=r.Symbol,$t=Nt?Dt:Dt&&Dt.withoutSetter||q,Bt=function(t){return w(Ft,t)||(Lt&&w(Dt,t)?Ft[t]=Dt[t]:Ft[t]=$t("Symbol."+t)),Ft[t]},Ut=Bt("species"),qt=function(t,e){var n;return kt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!kt(n.prototype)?h(n)&&null===(n=n[Ut])&&(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?Q=(Z=Wt.split("."))[0]+Z[1]:Vt&&(!(Z=Vt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Vt.match(/Chrome\/(\d+)/))&&(Q=Z[1]);var Ht=Q&&+Q,Kt=Bt("species"),Jt=function(t){return Ht>=51||!o((function(){var e=[];return(e.constructor={})[Kt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Yt=Bt("isConcatSpreadable"),Xt=Ht>=51||!o((function(){var t=[];return t[Yt]=!1,t.concat()[0]!==t})),Zt=Jt("concat"),Qt=function(t){if(!h(t))return!1;var e=t[Yt];return void 0!==e?!!e:kt(t)};Mt({target:"Array",proto:!0,forced:!Xt||!Zt},{concat:function(t){var e,n,r,o,i,a=Ct(this),c=qt(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Qt(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){j(t);for(var n,r=ee(e),o=r.length,i=0;o>i;)_.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=j(t),n=new ie,ie.prototype=null,n[oe]=t):n=ce(),void 0===e?n:ne(n,e)},fe=Bt("unscopables"),le=Array.prototype;null==le[fe]&&_.f(le,fe,{configurable:!0,value:ue(null)});var se;Mt({target:"Array",proto:!0},{fill:function(t){for(var e=Ct(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",le[fe][se]=!0;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=Ct(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 je=vt.indexOf,Ae=[].indexOf,_e=!!Ae&&1/[1].indexOf(1,-0)<0,Re=me("indexOf"),Pe=xe("indexOf",{ACCESSORS:!0,1:0});Mt({target:"Array",proto:!0,forced:_e||!Re||!Pe},{indexOf:function(t){return _e?Ae.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Me=[].join,ke=p!=Object,Ce=me("join",",");Mt({target:"Array",proto:!0,forced:ke||!Ce},{join:function(t){return Me.call(g(this),void 0===t?",":t)}});var Ie=function(t){return function(e,n,r,o){de(n);var i=Ct(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:Ie(!1),right:Ie(!0)}.left,Ne=me("reduce"),Fe=xe("reduce",{1:0});Mt({target:"Array",proto:!0,forced:!Ne||!Fe},{reduce:function(t){return Le(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var De=Jt("slice"),$e=xe("slice",{ACCESSORS:!0,0:0,1:2}),Be=Bt("species"),Ue=[].slice,qe=Math.max;Mt({target:"Array",proto:!0,forced:!De||!$e},{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(kt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!kt(n.prototype)?h(n)&&null===(n=n[Be])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ue.call(i,c,u);for(r=new(void 0===n?Array:n)(qe(u-c,0)),o=0;c<u;c++,o++)c in i&&It(r,o,i[c]);return r.length=o,r}});var Ve=_.f,Ge=Function.prototype,ze=Ge.toString,We=/^\s*function ([^ (]*)/;i&&!("name"in Ge)&&Ve(Ge,"name",{configurable:!0,get:function(){try{return ze.call(this).match(We)[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},Ke=1..toFixed,Je=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:Ke&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Ke.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=Je(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=Je(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 Xe=Object.assign,Ze=Object.defineProperty,Qe=!Xe||o((function(){if(i&&1!==Xe({b:1},Xe(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!=Xe({},t)[n]||ee(Xe({},e)).join("")!=r}))?function(t,e){for(var n=Ct(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}:Xe;Mt({target:"Object",stat:!0,forced:Object.assign!==Qe},{assign:Qe});var tn=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),en=G("IE_PROTO"),nn=Object.prototype,rn=tn?Object.getPrototypeOf:function(t){return t=Ct(t),w(t,en)?t[en]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?nn:null};Mt({target:"Object",stat:!0,forced:o((function(){rn(1)})),sham:!tn},{getPrototypeOf:function(t){return rn(Ct(t))}}),Mt({target:"Object",stat:!0,forced:o((function(){ee(1)}))},{keys:function(t){return ee(Ct(t))}});var on={};on[Bt("toStringTag")]="z";var an="[object z]"===String(on),cn=Bt("toStringTag"),un="Arguments"==s(function(){return arguments}()),fn=an?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),cn))?n:un?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},ln=an?{}.toString:function(){return"[object "+fn(this)+"]"};an||et(Object.prototype,"toString",ln,{unsafe:!0});var sn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",dn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$"),vn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(dn,"")),2&t&&(n=n.replace(pn,"")),n}},gn={start:vn(1),end:vn(2),trim:vn(3)}.trim,hn=r.parseFloat,mn=1/hn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(t){var e=gn(String(t)),n=hn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:hn;Mt({global:!0,forced:parseFloat!=mn},{parseFloat:mn});var yn=r.Promise,wn=_.f,bn=Bt("toStringTag"),xn=Bt("species"),Sn=function(t){var e=ot(t),n=_.f;i&&e&&!e[xn]&&n(e,xn,{configurable:!0,get:function(){return this}})},En={},On=Bt("iterator"),Tn=Array.prototype,jn=Bt("iterator"),An=function(t,e,n,r){try{return r?e(j(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&j(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"]||En[fn(t)]}(t),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(En.Array===p||Tn[On]===p)){for(u=0,f=ft(t.length);f>u;u++)if((l=o?v(j(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=An(a,v,d.value,o))&&l&&l instanceof e)return l;return new e(!1)};n.stop=function(t){return new e(!0,t)}})),Rn=Bt("iterator"),Pn=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){Pn=!0}};kn[Rn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(t){}var Cn,In,Ln,Nn=Bt("species"),Fn=function(t,e){var n,r=j(t).constructor;return void 0===r||null==(n=j(r)[Nn])?e:de(n)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(Vt),$n=r.location,Bn=r.setImmediate,Un=r.clearImmediate,qn=r.process,Vn=r.MessageChannel,Gn=r.Dispatch,zn=0,Wn={},Hn=function(t){if(Wn.hasOwnProperty(t)){var e=Wn[t];delete Wn[t],e()}},Kn=function(t){return function(){Hn(t)}},Jn=function(t){Hn(t.data)},Yn=function(t){r.postMessage(t+"",$n.protocol+"//"+$n.host)};Bn&&Un||(Bn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Wn[++zn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Cn(zn),zn},Un=function(t){delete Wn[t]},"process"==s(qn)?Cn=function(t){qn.nextTick(Kn(t))}:Gn&&Gn.now?Cn=function(t){Gn.now(Kn(t))}:Vn&&!Dn?(Ln=(In=new Vn).port2,In.port1.onmessage=Jn,Cn=pe(Ln.postMessage,Ln,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Yn)||"file:"===$n.protocol?Cn="onreadystatechange"in S("script")?function(t){re.appendChild(S("script")).onreadystatechange=function(){re.removeChild(this),Hn(t)}}:function(t){setTimeout(Kn(t),0)}:(Cn=Yn,r.addEventListener("message",Jn,!1)));var Xn,Zn,Qn,tr,er,nr,rr,or,ir={set:Bn,clear:Un},ar=T.f,cr=ir.set,ur=r.MutationObserver||r.WebKitMutationObserver,fr=r.process,lr=r.Promise,sr="process"==s(fr),dr=ar(r,"queueMicrotask"),pr=dr&&dr.value;pr||(Xn=function(){var t,e;for(sr&&(t=fr.domain)&&t.exit();Zn;){e=Zn.fn,Zn=Zn.next;try{e()}catch(t){throw Zn?tr():Qn=void 0,t}}Qn=void 0,t&&t.enter()},sr?tr=function(){fr.nextTick(Xn)}:ur&&!Dn?(er=!0,nr=document.createTextNode(""),new ur(Xn).observe(nr,{characterData:!0}),tr=function(){nr.data=er=!er}):lr&&lr.resolve?(rr=lr.resolve(void 0),or=rr.then,tr=function(){or.call(rr,Xn)}):tr=function(){cr.call(r,Xn)});var vr,gr,hr,mr,yr,wr,br,xr=pr||function(t){var e={fn:t,next:void 0};Qn&&(Qn.next=e),Zn||(Zn=e,tr()),Qn=e},Sr=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)},Er={f:function(t){return new Sr(t)}},Or=function(t,e){if(j(t),h(e)&&e.constructor===t)return e;var n=Er.f(t);return(0,n.resolve)(e),n.promise},Tr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},jr=ir.set,Ar=Bt("species"),_r="Promise",Rr=tt.get,Pr=tt.set,Mr=tt.getterFor(_r),kr=yn,Cr=r.TypeError,Ir=r.document,Lr=r.process,Nr=ot("fetch"),Fr=Er.f,Dr=Fr,$r="process"==s(Lr),Br=!!(Ir&&Ir.createEvent&&r.dispatchEvent),Ur=Rt(_r,(function(){if(!(N(kr)!==String(kr))){if(66===Ht)return!0;if(!$r&&"function"!=typeof PromiseRejectionEvent)return!0}if(Ht>=51&&/native code/.test(kr))return!1;var t=kr.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Ar]=e,!(t.then((function(){}))instanceof e)})),qr=Ur||!function(t,e){if(!e&&!Pn)return!1;var n=!1;try{var r={};r[Rn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){kr.all(t).catch((function(){}))})),Vr=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Gr=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;xr((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&&Kr(t,e),e.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p(Cr("Promise-chain cycle")):(u=Vr(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&&Wr(t,e)}))}},zr=function(t,e,n){var o,i;Br?((o=Ir.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)},Wr=function(t,e){jr.call(r,(function(){var n,r=e.value;if(Hr(e)&&(n=Tr((function(){$r?Lr.emit("unhandledRejection",r,t):zr("unhandledrejection",t,r)})),e.rejection=$r||Hr(e)?2:1,n.error))throw n.value}))},Hr=function(t){return 1!==t.rejection&&!t.parent},Kr=function(t,e){jr.call(r,(function(){$r?Lr.emit("rejectionHandled",t):zr("rejectionhandled",t,e.value)}))},Jr=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,Gr(t,e,!0))},Xr=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Cr("Promise can't be resolved itself");var o=Vr(n);o?xr((function(){var r={done:!1};try{o.call(n,Jr(Xr,t,r,e),Jr(Yr,t,r,e))}catch(n){Yr(t,r,n,e)}})):(e.value=n,e.state=1,Gr(t,e,!1))}catch(n){Yr(t,{done:!1},n,e)}}};Ur&&(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=Rr(this);try{t(Jr(Xr,this,e),Jr(Yr,this,e))}catch(t){Yr(this,e,t)}},(vr=function(t){Pr(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=Mr(this),r=Fr(Fn(this,kr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=$r?Lr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gr(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),gr=function(){var t=new vr,e=Rr(t);this.promise=t,this.resolve=Jr(Xr,t,e),this.reject=Jr(Yr,t,e)},Er.f=Fr=function(t){return t===kr||t===hr?new gr(t):Dr(t)},"function"==typeof yn&&(mr=yn.prototype.then,et(yn.prototype,"then",(function(t,e){var n=this;return new kr((function(t,e){mr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Nr&&Mt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Or(kr,Nr.apply(r,arguments))}}))),Mt({global:!0,wrap:!0,forced:Ur},{Promise:kr}),wr=_r,br=!1,(yr=kr)&&!w(yr=br?yr:yr.prototype,bn)&&wn(yr,bn,{configurable:!0,value:wr}),Sn(_r),hr=ot(_r),Mt({target:_r,stat:!0,forced:Ur},{reject:function(t){var e=Fr(this);return e.reject.call(void 0,t),e.promise}}),Mt({target:_r,stat:!0,forced:Ur},{resolve:function(t){return Or(this,t)}}),Mt({target:_r,stat:!0,forced:qr},{all:function(t){var e=this,n=Fr(e),r=n.resolve,o=n.reject,i=Tr((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=Fr(e),r=n.reject,o=Tr((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 j(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),Qr=Bt("match"),to=function(t){var e;return h(t)&&(void 0!==(e=t[Qr])?!!e:"RegExp"==s(t))},eo=function(){var t=j(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 no(t,e){return RegExp(t,e)}var ro={UNSUPPORTED_Y:o((function(){var t=no("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=no("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},oo=_.f,io=wt.f,ao=tt.set,co=Bt("match"),uo=r.RegExp,fo=uo.prototype,lo=/a/g,so=/a/g,po=new uo(lo)!==lo,vo=ro.UNSUPPORTED_Y;if(i&&Rt("RegExp",!po||vo||o((function(){return so[co]=!1,uo(lo)!=lo||uo(so)==so||"/a/i"!=uo(lo,"i")})))){for(var go=function(t,e){var n,r=this instanceof go,o=to(t),i=void 0===e;if(!r&&o&&t.constructor===go&&i)return t;po?o&&!i&&(t=t.source):t instanceof go&&(i&&(e=eo.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=po?new uo(t,e):uo(t,e),c=r?this:fo,u=go,Zr&&"function"==typeof(f=c.constructor)&&f!==u&&h(l=f.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&ao(s,{sticky:n}),s},ho=function(t){t in go||oo(go,t,{configurable:!0,get:function(){return uo[t]},set:function(e){uo[t]=e}})},mo=io(uo),yo=0;mo.length>yo;)ho(mo[yo++]);fo.constructor=go,go.prototype=fo,et(r,"RegExp",go)}Sn("RegExp");var wo=RegExp.prototype.exec,bo=String.prototype.replace,xo=wo,So=function(){var t=/a/,e=/b*/g;return wo.call(t,"a"),wo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Eo=ro.UNSUPPORTED_Y||ro.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(So||Oo||Eo)&&(xo=function(t){var e,n,r,o,i=this,a=Eo&&i.sticky,c=eo.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)),Oo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),So&&(e=i.lastIndex),r=wo.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:So&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Oo&&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 To=xo;Mt({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var jo=RegExp.prototype,Ao=jo.toString,_o=o((function(){return"/a/b"!=Ao.call({source:"a",flags:"b"})})),Ro="toString"!=Ao.name;(_o||Ro)&&et(RegExp.prototype,"toString",(function(){var t=j(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in jo)?eo.call(t):n)}),{unsafe:!0}),Mt({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var Po=Bt("species"),Mo=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ko="$0"==="a".replace(/./,"$0"),Co=Bt("replace"),Io=!!/./[Co]&&""===/./[Co]("a","$0"),Lo=!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]})),No=function(t,e,n,r){var i=Bt(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[Po]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!a||!c||"replace"===t&&(!Mo||!ko||Io)||"split"===t&&!Lo){var u=/./[i],f=n(i,""[t],(function(t,e,n,r,o){return e.exec===To?a&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ko,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Io}),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&&R(RegExp.prototype[i],"sham",!0)},Fo=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}},Do={codeAt:Fo(!1),charAt:Fo(!0)}.charAt,$o=function(t,e,n){return e+(n?Do(t,e).length:1)},Bo=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 To.call(t,e)};No("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=j(t),i=String(this);if(!o.global)return Bo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Bo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=$o(i,ft(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Uo=Math.max,qo=Math.min,Vo=Math.floor,Go=/\$([$&'`]|\d\d?|<[^>]*>)/g,zo=/\$([$&'`]|\d\d?)/g,Wo=function(t){return void 0===t?t:String(t)};No("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=j(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=Bo(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=$o(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=Uo(qo(ct(g.index),l.length),0),x=[],S=1;S<g.length;S++)x.push(Wo(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=zo;return void 0!==i&&(i=Ct(i),f=Go),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=Vo(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 Ho=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};No("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=j(t),i=String(this),a=o.lastIndex;Ho(a,0)||(o.lastIndex=0);var c=Bo(o,i);return Ho(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Ko=[].push,Jo=Math.min,Yo=!o((function(){return!RegExp(4294967295,"y")}));No("split",2,(function(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(!to(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=To.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Ko.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(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=j(t),c=String(this),u=Fn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yo?"y":"g"),s=new u(Yo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Bo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=Yo?v:0;var h,m=Bo(s,Yo?c:c.slice(v));if(null===m||(h=Jo(ft(s.lastIndex+(Yo?0:v)),c.length))===p)v=$o(c,v,f);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!Yo);for(var Xo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Zo=r[Xo],Qo=Zo&&Zo.prototype;if(Qo&&Qo.forEach!==Te)try{R(Qo,"forEach",Te)}catch(t){Qo.forEach=Te}}var ti=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 ei(){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 ni(t,e){void 0===t&&(t=""),void 0===e&&(e="");for(var n=t.length,r=e.length,o=pi(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 ri(t,e){void 0===t&&(t=""),void 0===e&&(e="");for(var n=t.length,r=e.length,o=pi(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 oi(t){void 0===t&&(t="");var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(unescape(n[2])):""}function ii(t,e){void 0===t&&(t=""),void 0===e&&(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 ai(t,e,n){void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(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 ci(t){void 0===t&&(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 ui(t,e){void 0===t&&(t=""),void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function fi(t){void 0===t&&(t="");var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function li(t){void 0===t&&(t="");var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function si(t){void 0===t&&(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 di(t){if(void 0===t&&(t=""),!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function pi(t){return JSON.parse(JSON.stringify(t))}function vi(t){void 0===t&&(t="");try{if("object"===ti(JSON.parse(t)))return!0}catch(t){}return!1}function gi(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function hi(t){void 0===t&&(t=3);var e=[Ii(),gi(t||3)];return e[0]+e[1]}function mi(t,e){void 0===t&&(t=0),void 0===e&&(e=0);return(e?(100*t).toFixed(e):String(Math.floor(100*t)))+"%"}function yi(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function wi(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function bi(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function xi(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function Si(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function Ei(t,e,n){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:Ii(),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=Ii();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 Oi(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=Ii()-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=Ii();var s=n&&!o;return o||(o=setTimeout(u,e)),s&&(c=t.apply(r,a),r=a=null),c}}function Ti(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;ji(t)||(t=new Date(t).getTime()),ji(e)||(e=new Date(e).getTime());var i=e-t,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a}function ji(t,e){var n=void 0===e?{}:e,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof t&&(a=!1),!1!==(void 0!==i&&i)||isFinite(t)||(a=!1),!1===o&&isNaN(t)&&(a=!1),a}function Ai(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 _i(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function Ri(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Pi(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function Mi(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function ki(t,e){void 0===t&&(t="");var n=(void 0===e?{}:e).id,r=void 0===n?"":n,o=null,i=new Promise((function(t,e){var n;o=(n=[t,e])[0],n[1]})),a=function(){Ai(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=t,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(f)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():s(t,e,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i}function Ci(t,e){void 0===t&&(t="");var n=void 0===e?{}:e,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,Ai(a),Ai(s,!0))}:p.onload=function(){Ai(a),Ai(s,!0)},p.src=t,v&&v.parentNode.insertBefore(p,v),new Promise((function(t,e){var n;s=(n=[t,e])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))}function Ii(){return Date.now?Date.now():(new Date).getTime()}function Li(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!==Ni(t)&&Ni(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function Ni(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 Fi(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){ji(g[t])&&g[t]<0&&(g[t]=0)})),ji(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[li(t)]=g[t]})),e(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var 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 Di(t){return Math.random()<t}function $i(){var t=Bi();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 Bi(){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),{}}}function Ui(t){return void 0===t&&(t=""),t.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")}function qi(t,e,n){if(void 0===t&&(t=""),void 0===e&&(e=t.length),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 Vi(t){void 0===t&&(t=90);var e=function(){},n=function(){},r=new Promise((function(t,r){e=t,n=r}));return"complete"===document.readyState?e("complete"):window.addEventListener("load",(function(){return e("load")})),setTimeout((function(){return n("timeout")}),1e3*t),r}function Gi(t,e){void 0===t&&(t="");var n=(void 0===e?{}:e).id,r=void 0===n?"":n;if(!t)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=t:(c.setAttribute("id",r),c.innerHTML=t,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=t,o.appendChild(c),document.head.appendChild(o)),!0}function zi(t){void 0===t&&(t="");var e=Object.create(null);return["log","info","warn","error"].forEach((function(n){e[n]=function(){for(var e,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t?(e=console)[n].apply(e,ei([t],o)):(r=console)[n].apply(r,o)}})),e}export{xi as addClass,Gi as addInlineStyle,ri as calLongestCommonSubsequence,ni as calLongestCommonSubstring,li as camelCase2Underscore,fi as camelCaseToKebabCase,wi as cancelBubble,Ui as clearHtml,qi as cutCHSString,Oi as debounce,pi as deepCopyObject,Ai as doFn,yi as floatFixed,mi as floatToPercent,Ti as friendlyInterval,zi as genCustomConsole,gi as generateRndNum,hi as generateUniqueNum,Bi as getBrowserInfo,Ni as getCookie,ui as getDomain,ci as getHashQueryParam,Mi as getLocalStorage,Fi as getPerformance,oi as getQueryParam,Ri as getSessionStorage,ii as getUrlParam,bi as hasClass,Di as inRate,vi as isJsonString,ji as isNumber,$i as isSafePWAEnv,ki as loadCSS,Ci as loadScript,Ii as mNow,si as mTrim,di as newLine,Si as removeClass,Li as setCookie,Pi as setLocalStorage,_i as setSessionStorage,Ei as throttle,ai as updateQueryParam,Vi as windowLoaded};
package/lib/mazey.min.js CHANGED
@@ -1 +1 @@
1
- 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,f={f:u&&!c.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:c},l=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,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return v(g(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,j={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 l(!f.f.call(e,t),e[t])}},A=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,R={f:a?P:function(e,t,n){if(A(e),t=y(t,!0),A(n),O)try{return P(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=a?function(e,t,n){return R.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{C(o,e,t)}catch(n){o[e]=t}return t},M="__core-js_shared__",L=o[M]||_(M,{}),k=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return k.call(e)});var I,N,F,D=L.inspectSource,B=o.WeakMap,$="function"==typeof B&&/native code/.test(D(B)),U=n((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,V=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+V).toString(36)},H=U("keys"),W=function(e){return H[e]||(H[e]=G(e))},z={},K=o.WeakMap;if($){var J=new K,Y=J.get,X=J.has,Q=J.set;I=function(e,t){return Q.call(J,e,t),t},N=function(e){return Y.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=W("state");z[Z]=!0,I=function(e,t){return C(e,Z,t),t},N=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:I,get:N,has:F,enforce:function(e){return F(e)?N(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=N(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,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||C(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=i:C(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,fe=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},le=Math.min,se=function(e){return e>0?le(fe(e),9007199254740991):0},de=Math.max,pe=Math.min,ve=function(e,t){var n=fe(e);return n<0?de(n+t,0):pe(n,t)},ge=function(e){return function(t,n,r){var o,i=h(t),a=se(i.length),c=ve(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:ge(!0),indexOf:ge(!1)},me=he.indexOf,ye=function(e,t){var n,r=h(e),o=0,i=[];for(n in r)!b(z,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(A(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=R.f,o=j.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Te=/#|\.prototype\./,je=function(e,t){var n=Pe[Ae(e)];return n==Ce||n!=Re&&("function"==typeof t?i(t):!!t)},Ae=je.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Pe=je.data={},Re=je.NATIVE="N",Ce=je.POLYFILL="P",_e=je,Me=j.f,Le=function(e,t){var n,r,i,a,c,u=e.target,f=e.global,l=e.stat;if(n=f?o:l?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(f?r:u+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Oe(a,i)}(e.sham||i&&i.sham)&&C(a,"sham",!0),re(n,r,a,e)}},ke=Array.isArray||function(e){return"Array"==d(e)},Ie=function(e){return Object(g(e))},Ne=function(e,t,n){var r=y(t);r in e?R.f(e,r,l(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Be=U("wks"),$e=o.Symbol,Ue=De?$e:$e&&$e.withoutSetter||G,qe=function(e){return b(Be,e)||(Fe&&b($e,e)?Be[e]=$e[e]:Be[e]=Ue("Symbol."+e)),Be[e]},Ve=qe("species"),Ge=function(e,t){var n;return ke(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!ke(n.prototype)?m(n)&&null===(n=n[Ve])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},He=ae("navigator","userAgent")||"",We=o.process,ze=We&&We.versions,Ke=ze&&ze.v8;Ke?te=(ee=Ke.split("."))[0]+ee[1]:He&&(!(ee=He.match(/Edge\/(\d+)/))||ee[1]>=74)&&(ee=He.match(/Chrome\/(\d+)/))&&(te=ee[1]);var Je=te&&+te,Ye=qe("species"),Xe=function(e){return Je>=51||!i((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=qe("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=Je>=51||!i((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),nt=Xe("concat"),rt=function(e){if(!m(e))return!1;var t=e[Qe];return void 0!==t?!!t:ke(e)};Le({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=Ie(this),c=Ge(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&&Ne(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Ne(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){A(e);for(var n,r=it(t),o=r.length,i=0;o>i;)R.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=W("IE_PROTO"),ft=function(){},lt=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(lt("")),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(lt("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete st.prototype[we[n]];return st()};z[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(ft.prototype=A(e),n=new ft,ft.prototype=null,n[ut]=e):n=st(),void 0===t?n:at(n,t)},pt=qe("unscopables"),vt=Array.prototype;null==vt[pt]&&R.f(vt,pt,{configurable:!0,value:dt(null)});var gt;Le({target:"Array",proto:!0},{fill:function(e){for(var t=Ie(this),n=se(t.length),r=arguments.length,o=ve(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ve(i,n);a>o;)t[o++]=e;return t}}),gt="fill",vt[pt][gt]=!0;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,f,l){for(var s,d,p=Ie(c),g=v(p),h=mt(u,f,3),m=se(g.length),y=0,w=l||Ge,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[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)}))},jt=bt.forEach,At=St("forEach"),Pt=Tt("forEach"),Rt=At&&Pt?[].forEach:function(e){return jt(this,e,arguments.length>1?arguments[1]:void 0)};Le({target:"Array",proto:!0,forced:[].forEach!=Rt},{forEach:Rt});var Ct=he.indexOf,_t=[].indexOf,Mt=!!_t&&1/[1].indexOf(1,-0)<0,Lt=St("indexOf"),kt=Tt("indexOf",{ACCESSORS:!0,1:0});Le({target:"Array",proto:!0,forced:Mt||!Lt||!kt},{indexOf:function(e){return Mt?_t.apply(this,arguments)||0:Ct(this,e,arguments.length>1?arguments[1]:void 0)}});var It=[].join,Nt=v!=Object,Ft=St("join",",");Le({target:"Array",proto:!0,forced:Nt||!Ft},{join:function(e){return It.call(h(this),void 0===e?",":e)}});var Dt=function(e){return function(t,n,r,o){ht(n);var i=Ie(t),a=v(i),c=se(i.length),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Bt={left:Dt(!1),right:Dt(!0)}.left,$t=St("reduce"),Ut=Tt("reduce",{1:0});Le({target:"Array",proto:!0,forced:!$t||!Ut},{reduce:function(e){return Bt(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var qt=Xe("slice"),Vt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),Gt=qe("species"),Ht=[].slice,Wt=Math.max;Le({target:"Array",proto:!0,forced:!qt||!Vt},{slice:function(e,t){var n,r,o,i=h(this),a=se(i.length),c=ve(e,a),u=ve(void 0===t?a:t,a);if(ke(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!ke(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&&Ne(r,o,i[c]);return r.length=o,r}});var zt=R.f,Kt=Function.prototype,Jt=Kt.toString,Yt=/^\s*function ([^ (]*)/,Xt="name";a&&!(Xt in Kt)&&zt(Kt,Xt,{configurable:!0,get:function(){try{return Jt.call(this).match(Yt)[1]}catch(e){return""}}});var Qt="".repeat||function(e){var t=String(g(this)),n="",r=fe(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},Zt=1..toFixed,en=Math.floor,tn=function(e,t,n){return 0===t?n:t%2==1?tn(e,t-1,n*e):tn(e*e,t/2,n)};Le({target:"Number",proto:!0,forced:Zt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){Zt.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=fe(e),c=[0,0,0,0,0,0],u="",f="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=en(r/1e7)},s=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=en(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+Qt.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*tn(2,69,1))-69)<0?i*tn(2,-t,1):i/tn(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(tn(10,r,1),0),r=t-1;r>=23;)s(1<<23),r-=23;s(1<<r),l(1,1),s(2),f=p()}else l(0,n),l(1<<-t,0),f=p()+Qt.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+Qt.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var nn=Object.assign,rn=Object.defineProperty,on=!nn||i((function(){if(a&&1!==nn({b:1},nn(rn({},"a",{enumerable:!0,get:function(){rn(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!=nn({},e)[n]||it(nn({},t)).join("")!=r}))?function(e,t){for(var n=Ie(e),r=arguments.length,o=1,i=xe.f,c=f.f;r>o;)for(var u,l=v(arguments[o++]),s=i?it(l).concat(i(l)):it(l),d=s.length,p=0;d>p;)u=s[p++],a&&!c.call(l,u)||(n[u]=l[u]);return n}:nn;Le({target:"Object",stat:!0,forced:Object.assign!==on},{assign:on});var an=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cn=W("IE_PROTO"),un=Object.prototype,fn=an?Object.getPrototypeOf:function(e){return e=Ie(e),b(e,cn)?e[cn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?un:null};Le({target:"Object",stat:!0,forced:i((function(){fn(1)})),sham:!an},{getPrototypeOf:function(e){return fn(Ie(e))}}),Le({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(Ie(e))}});var ln={};ln[qe("toStringTag")]="z";var sn="[object z]"===String(ln),dn=qe("toStringTag"),pn="Arguments"==d(function(){return arguments}()),vn=sn?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),dn))?n:pn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},gn=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||re(Object.prototype,"toString",gn,{unsafe:!0});var hn="\t\n\v\f\r                 \u2028\u2029\ufeff",mn="["+hn+"]",yn=RegExp("^"+mn+mn+"*"),wn=RegExp(mn+mn+"*$"),bn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(yn,"")),2&e&&(n=n.replace(wn,"")),n}},Sn={start:bn(1),end:bn(2),trim:bn(3)}.trim,xn=o.parseFloat,En=1/xn(hn+"-0")!=-1/0?function(e){var t=Sn(String(e)),n=xn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:xn;Le({global:!0,forced:parseFloat!=En},{parseFloat:En});var On=o.Promise,Tn=R.f,jn=qe("toStringTag"),An=qe("species"),Pn=function(e){var t=ae(e),n=R.f;a&&t&&!t[An]&&n(t,An,{configurable:!0,get:function(){return this}})},Rn={},Cn=qe("iterator"),_n=Array.prototype,Mn=qe("iterator"),Ln=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}},kn=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,f,l,s,d,p,v=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[Mn]||e["@@iterator"]||Rn[vn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Rn.Array===p||_n[Cn]===p)){for(u=0,f=se(e.length);f>u;u++)if((l=o?v(A(d=e[u])[0],d[1]):v(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=Ln(a,v,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),In=qe("iterator"),Nn=!1;try{var Fn=0,Dn={next:function(){return{done:!!Fn++}},return:function(){Nn=!0}};Dn[In]=function(){return this},Array.from(Dn,(function(){throw 2}))}catch(e){}var Bn,$n,Un,qn=qe("species"),Vn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[qn])?t:ht(n)},Gn=/(iphone|ipod|ipad).*applewebkit/i.test(He),Hn=o.location,Wn=o.setImmediate,zn=o.clearImmediate,Kn=o.process,Jn=o.MessageChannel,Yn=o.Dispatch,Xn=0,Qn={},Zn="onreadystatechange",er=function(e){if(Qn.hasOwnProperty(e)){var t=Qn[e];delete Qn[e],t()}},tr=function(e){return function(){er(e)}},nr=function(e){er(e.data)},rr=function(e){o.postMessage(e+"",Hn.protocol+"//"+Hn.host)};Wn&&zn||(Wn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Qn[++Xn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Bn(Xn),Xn},zn=function(e){delete Qn[e]},"process"==d(Kn)?Bn=function(e){Kn.nextTick(tr(e))}:Yn&&Yn.now?Bn=function(e){Yn.now(tr(e))}:Jn&&!Gn?(Un=($n=new Jn).port2,$n.port1.onmessage=nr,Bn=mt(Un.postMessage,Un,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(rr)||"file:"===Hn.protocol?Bn=Zn in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),er(e)}}:function(e){setTimeout(tr(e),0)}:(Bn=rr,o.addEventListener("message",nr,!1)));var or,ir,ar,cr,ur,fr,lr,sr,dr={set:Wn,clear:zn},pr=j.f,vr=dr.set,gr=o.MutationObserver||o.WebKitMutationObserver,hr=o.process,mr=o.Promise,yr="process"==d(hr),wr=pr(o,"queueMicrotask"),br=wr&&wr.value;br||(or=function(){var e,t;for(yr&&(e=hr.domain)&&e.exit();ir;){t=ir.fn,ir=ir.next;try{t()}catch(e){throw ir?cr():ar=void 0,e}}ar=void 0,e&&e.enter()},yr?cr=function(){hr.nextTick(or)}:gr&&!Gn?(ur=!0,fr=document.createTextNode(""),new gr(or).observe(fr,{characterData:!0}),cr=function(){fr.data=ur=!ur}):mr&&mr.resolve?(lr=mr.resolve(void 0),sr=lr.then,cr=function(){sr.call(lr,or)}):cr=function(){vr.call(o,or)});var Sr,xr,Er,Or,Tr,jr,Ar,Pr=br||function(e){var t={fn:e,next:void 0};ar&&(ar.next=t),ir||(ir=t,cr()),ar=t},Rr=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)},Cr={f:function(e){return new Rr(e)}},_r=function(e,t){if(A(e),m(t)&&t.constructor===e)return t;var n=Cr.f(e);return(0,n.resolve)(t),n.promise},Mr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Lr=dr.set,kr=qe("species"),Ir="Promise",Nr=ne.get,Fr=ne.set,Dr=ne.getterFor(Ir),Br=On,$r=o.TypeError,Ur=o.document,qr=o.process,Vr=ae("fetch"),Gr=Cr.f,Hr=Gr,Wr="process"==d(qr),zr=!!(Ur&&Ur.createEvent&&o.dispatchEvent),Kr="unhandledrejection",Jr=_e(Ir,(function(){if(!(D(Br)!==String(Br))){if(66===Je)return!0;if(!Wr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test(Br))return!1;var e=Br.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[kr]=t,!(e.then((function(){}))instanceof t)})),Yr=Jr||!function(e,t){if(!t&&!Nn)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){Br.all(e).catch((function(){}))})),Xr=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Qr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Pr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,f,l=r[a++],s=i?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{s?(i||(2===t.rejection&&no(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p($r("Promise-chain cycle")):(u=Xr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!f&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&eo(e,t)}))}},Zr=function(e,t,n){var r,i;zr?((r=Ur.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===Kr&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},eo=function(e,t){Lr.call(o,(function(){var n,r=t.value;if(to(t)&&(n=Mr((function(){Wr?qr.emit("unhandledRejection",r,e):Zr(Kr,e,r)})),t.rejection=Wr||to(t)?2:1,n.error))throw n.value}))},to=function(e){return 1!==e.rejection&&!e.parent},no=function(e,t){Lr.call(o,(function(){Wr?qr.emit("rejectionHandled",e):Zr("rejectionhandled",e,t.value)}))},ro=function(e,t,n,r){return function(o){e(t,n,o,r)}},oo=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Qr(e,t,!0))},io=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=Xr(n);o?Pr((function(){var r={done:!1};try{o.call(n,ro(io,e,r,t),ro(oo,e,r,t))}catch(n){oo(e,r,n,t)}})):(t.value=n,t.state=1,Qr(e,t,!1))}catch(n){oo(e,{done:!1},n,t)}}};Jr&&(Br=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Br,Ir),ht(e),Sr.call(this);var t=Nr(this);try{e(ro(io,this,t),ro(oo,this,t))}catch(e){oo(this,t,e)}},(Sr=function(e){Fr(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}(Br.prototype,{then:function(e,t){var n=Dr(this),r=Gr(Vn(this,Br));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Wr?qr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),xr=function(){var e=new Sr,t=Nr(e);this.promise=e,this.resolve=ro(io,e,t),this.reject=ro(oo,e,t)},Cr.f=Gr=function(e){return e===Br||e===Er?new xr(e):Hr(e)},"function"==typeof On&&(Or=On.prototype.then,re(On.prototype,"then",(function(e,t){var n=this;return new Br((function(e,t){Or.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Vr&&Le({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _r(Br,Vr.apply(o,arguments))}}))),Le({global:!0,wrap:!0,forced:Jr},{Promise:Br}),jr=Ir,Ar=!1,(Tr=Br)&&!b(Tr=Ar?Tr:Tr.prototype,jn)&&Tn(Tr,jn,{configurable:!0,value:jr}),Pn(Ir),Er=ae(Ir),Le({target:Ir,stat:!0,forced:Jr},{reject:function(e){var t=Gr(this);return t.reject.call(void 0,e),t.promise}}),Le({target:Ir,stat:!0,forced:Jr},{resolve:function(e){return _r(this,e)}}),Le({target:Ir,stat:!0,forced:Yr},{all:function(e){var t=this,n=Gr(t),r=n.resolve,o=n.reject,i=Mr((function(){var n=ht(t.resolve),i=[],a=0,c=1;kn(e,(function(e){var u=a++,f=!1;i.push(void 0),c++,n.call(t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Gr(t),r=n.reject,o=Mr((function(){var o=ht(t.resolve);kn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ao=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(!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),co=qe("match"),uo=function(e){var t;return m(e)&&(void 0!==(t=e[co])?!!t:"RegExp"==d(e))},fo=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 lo(e,t){return RegExp(e,t)}var so={UNSUPPORTED_Y:i((function(){var e=lo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=lo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},po=R.f,vo=Se.f,go=ne.set,ho=qe("match"),mo=o.RegExp,yo=mo.prototype,wo=/a/g,bo=/a/g,So=new mo(wo)!==wo,xo=so.UNSUPPORTED_Y;if(a&&_e("RegExp",!So||xo||i((function(){return bo[ho]=!1,mo(wo)!=wo||mo(bo)==bo||"/a/i"!=mo(wo,"i")})))){for(var Eo=function(e,t){var n,r=this instanceof Eo,o=uo(e),i=void 0===t;if(!r&&o&&e.constructor===Eo&&i)return e;So?o&&!i&&(e=e.source):e instanceof Eo&&(i&&(t=fo.call(e)),e=e.source),xo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,f,l,s=(a=So?new mo(e,t):mo(e,t),c=r?this:yo,u=Eo,ao&&"function"==typeof(f=c.constructor)&&f!==u&&m(l=f.prototype)&&l!==u.prototype&&ao(a,l),a);return xo&&n&&go(s,{sticky:n}),s},Oo=function(e){e in Eo||po(Eo,e,{configurable:!0,get:function(){return mo[e]},set:function(t){mo[e]=t}})},To=vo(mo),jo=0;To.length>jo;)Oo(To[jo++]);yo.constructor=Eo,Eo.prototype=yo,re(o,"RegExp",Eo)}Pn("RegExp");var Ao=RegExp.prototype.exec,Po=String.prototype.replace,Ro=Ao,Co=function(){var e=/a/,t=/b*/g;return Ao.call(e,"a"),Ao.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_o=so.UNSUPPORTED_Y||so.BROKEN_CARET,Mo=void 0!==/()??/.exec("")[1];(Co||Mo||_o)&&(Ro=function(e){var t,n,r,o,i=this,a=_o&&i.sticky,c=fo.call(i),u=i.source,f=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Mo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Co&&(t=i.lastIndex),r=Ao.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:Co&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Mo&&r&&r.length>1&&Po.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Lo=Ro;Le({target:"RegExp",proto:!0,forced:/./.exec!==Lo},{exec:Lo});var ko="toString",Io=RegExp.prototype,No=Io.toString,Fo=i((function(){return"/a/b"!=No.call({source:"a",flags:"b"})})),Do=No.name!=ko;(Fo||Do)&&re(RegExp.prototype,ko,(function(){var e=A(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}),Le({target:"RegExp",proto:!0,forced:/./.exec!==Lo},{exec:Lo});var Bo=qe("species"),$o=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Uo="$0"==="a".replace(/./,"$0"),qo=qe("replace"),Vo=!!/./[qo]&&""===/./[qo]("a","$0"),Go=!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]})),Ho=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[Bo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!$o||!Uo||Vo)||"split"===e&&!Go){var u=/./[o],f=n(o,""[e],(function(e,t,n,r,o){return t.exec===Lo?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Uo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Vo}),l=f[0],s=f[1];re(String.prototype,e,l),re(RegExp.prototype,o,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&C(RegExp.prototype[o],"sham",!0)},Wo=function(e){return function(t,n){var r,o,i=String(g(t)),a=fe(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}},zo={codeAt:Wo(!1),charAt:Wo(!0)}.charAt,Ko=function(e,t,n){return t+(n?zo(e,t).length:1)},Jo=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 Lo.call(e,t)};Ho("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 Jo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Jo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=Ko(i,se(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Yo=Math.max,Xo=Math.min,Qo=Math.floor,Zo=/\$([$&'`]|\d\d?|<[^>]*>)/g,ei=/\$([$&'`]|\d\d?)/g,ti=function(e){return void 0===e?e:String(e)};Ho("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 f=A(e),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var g=Jo(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=Ko(l,se(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),b=Yo(Xo(fe(g.index),l.length),0),S=[],x=1;x<g.length;x++)S.push(ti(g[x]));var E=g.groups;if(s){var O=[w].concat(S,b,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,b,S,E,r);b>=m&&(h+=l.slice(m,b)+T,m=b+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,f=ei;return void 0!==i&&(i=Ie(i),f=Zo),t.call(a,f,(function(t,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var s=Qo(l/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}f=o[l-1]}return void 0===f?"":f}))}}));var ni=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ho("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;ni(a,0)||(o.lastIndex=0);var c=Jo(o,i);return ni(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var ri=[].push,oi=Math.min,ii=4294967295,ai=!i((function(){return!RegExp(ii,"y")}));Ho("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?ii:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!uo(e))return t.call(r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,f+"g");(i=Lo.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&ri.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=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=Vn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ai?"y":"g"),s=new u(ai?a:"^(?:"+a.source+")",l),d=void 0===o?ii:o>>>0;if(0===d)return[];if(0===c.length)return null===Jo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=ai?v:0;var h,m=Jo(s,ai?c:c.slice(v));if(null===m||(h=oi(se(s.lastIndex+(ai?0:v)),c.length))===p)v=Ko(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}]}),!ai);for(var ci 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 ui=o[ci],fi=ui&&ui.prototype;if(fi&&fi.forEach!==Rt)try{C(fi,"forEach",Rt)}catch(e){fi.forEach=Rt}}var li=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 si(){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 di(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function pi(e){return JSON.parse(JSON.stringify(e))}function vi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function gi(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function hi(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 mi(){return Date.now?Date.now():(new Date).getTime()}function yi(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 wi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return e.match(t).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return{}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.addInlineStyle=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n;if(!e)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=e:(c.setAttribute("id",r),c.innerHTML=e,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=e,o.appendChild(c),document.head.appendChild(o)),!0},e.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],l=u[1];a>0&&(f=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(f,l)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},e.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(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=di,e.camelCaseToKebabCase=function(e){void 0===e&&(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 void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=mi()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];r=this,a=f,i=mi();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=pi,e.doFn=hi,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},e.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;gi(e)||(e=new Date(e).getTime()),gi(t)||(t=new Date(t).getTime());var i=t-e,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a},e.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,si([e],o)):(r=console)[n].apply(r,o)}})),t},e.generateRndNum=vi,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[mi(),vi(e||3)];return t[0]+t[1]},e.getBrowserInfo=wi,e.getCookie=yi,e.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},e.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},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]||{},g={os:f(),osVersion:l(),deviceType:s(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(e){gi(g[e])&&g[e]<0&&(g[e]=0)})),gi(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)e||Object.keys(g).forEach((function(e){i||(i={}),i[di(e)]=g[e]})),t(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function s(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function v(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},e.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(unescape(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){void 0===e&&(e=""),void 0===t&&(t="");var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},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){void 0===e&&(e="");try{if("object"===li(JSON.parse(e)))return!0}catch(e){}return!1},e.isNumber=gi,e.isSafePWAEnv=function(){var e=wi();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.loadCSS=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n,o=null,i=new Promise((function(e,t){var n;o=(n=[e,t])[0],n[1]})),a=function(){hi(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i},e.loadScript=function(e,t){void 0===e&&(e="");var n=void 0===t?{}:t,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,hi(a),hi(s,!0))}:p.onload=function(){hi(a),hi(s,!0)},p.src=e,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,t){var n;s=(n=[e,t])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))},e.mNow=mi,e.mTrim=function(e){void 0===e&&(e="");for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},e.newLine=function(e){if(void 0===e&&(e=""),!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!==yi(e)&&yi(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){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:mi(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=mi();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},e.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},e.windowLoaded=function(e){void 0===e&&(e=90);var t=function(){},n=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n("timeout")}),1e3*e),r},e}({});
1
+ 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,f={f:u&&!c.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:c},l=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,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return v(g(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,j={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 l(!f.f.call(e,t),e[t])}},A=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,R={f:a?P:function(e,t,n){if(A(e),t=y(t,!0),A(n),O)try{return P(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=a?function(e,t,n){return R.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{C(o,e,t)}catch(n){o[e]=t}return t},L="__core-js_shared__",M=o[L]||_(L,{}),k=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(e){return k.call(e)});var I,N,F,D=M.inspectSource,B=o.WeakMap,$="function"==typeof B&&/native code/.test(D(B)),U=n((function(e){(e.exports=function(e,t){return M[e]||(M[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=U("keys"),H=function(e){return G[e]||(G[e]=z(e))},W={},K=o.WeakMap;if($){var J=new K,Y=J.get,X=J.has,Q=J.set;I=function(e,t){return Q.call(J,e,t),t},N=function(e){return Y.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=H("state");W[Z]=!0,I=function(e,t){return C(e,Z,t),t},N=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:I,get:N,has:F,enforce:function(e){return F(e)?N(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=N(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,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||C(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=i:C(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,fe=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},le=Math.min,se=function(e){return e>0?le(fe(e),9007199254740991):0},de=Math.max,pe=Math.min,ve=function(e,t){var n=fe(e);return n<0?de(n+t,0):pe(n,t)},ge=function(e){return function(t,n,r){var o,i=h(t),a=se(i.length),c=ve(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:ge(!0),indexOf:ge(!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(A(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=R.f,o=j.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Te=/#|\.prototype\./,je=function(e,t){var n=Pe[Ae(e)];return n==Ce||n!=Re&&("function"==typeof t?i(t):!!t)},Ae=je.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Pe=je.data={},Re=je.NATIVE="N",Ce=je.POLYFILL="P",_e=je,Le=j.f,Me=function(e,t){var n,r,i,a,c,u=e.target,f=e.global,l=e.stat;if(n=f?o:l?o[u]||_(u,{}):(o[u]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(c=Le(n,r))&&c.value:n[r],!_e(f?r:u+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Oe(a,i)}(e.sham||i&&i.sham)&&C(a,"sham",!0),re(n,r,a,e)}},ke=Array.isArray||function(e){return"Array"==d(e)},Ie=function(e){return Object(g(e))},Ne=function(e,t,n){var r=y(t);r in e?R.f(e,r,l(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Be=U("wks"),$e=o.Symbol,Ue=De?$e:$e&&$e.withoutSetter||z,qe=function(e){return b(Be,e)||(Fe&&b($e,e)?Be[e]=$e[e]:Be[e]=Ue("Symbol."+e)),Be[e]},Ve=qe("species"),ze=function(e,t){var n;return ke(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!ke(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,Ye=qe("species"),Xe=function(e){return Je>=51||!i((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=qe("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=Je>=51||!i((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),nt=Xe("concat"),rt=function(e){if(!m(e))return!1;var t=e[Qe];return void 0!==t?!!t:ke(e)};Me({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=Ie(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&&Ne(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Ne(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){A(e);for(var n,r=it(t),o=r.length,i=0;o>i;)R.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=H("IE_PROTO"),ft=function(){},lt=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(lt("")),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(lt("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?(ft.prototype=A(e),n=new ft,ft.prototype=null,n[ut]=e):n=st(),void 0===t?n:at(n,t)},pt=qe("unscopables"),vt=Array.prototype;null==vt[pt]&&R.f(vt,pt,{configurable:!0,value:dt(null)});var gt;Me({target:"Array",proto:!0},{fill:function(e){for(var t=Ie(this),n=se(t.length),r=arguments.length,o=ve(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ve(i,n);a>o;)t[o++]=e;return t}}),gt="fill",vt[pt][gt]=!0;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,f,l){for(var s,d,p=Ie(c),g=v(p),h=mt(u,f,3),m=se(g.length),y=0,w=l||ze,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[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)}))},jt=bt.forEach,At=St("forEach"),Pt=Tt("forEach"),Rt=At&&Pt?[].forEach:function(e){return jt(this,e,arguments.length>1?arguments[1]:void 0)};Me({target:"Array",proto:!0,forced:[].forEach!=Rt},{forEach:Rt});var Ct=he.indexOf,_t=[].indexOf,Lt=!!_t&&1/[1].indexOf(1,-0)<0,Mt=St("indexOf"),kt=Tt("indexOf",{ACCESSORS:!0,1:0});Me({target:"Array",proto:!0,forced:Lt||!Mt||!kt},{indexOf:function(e){return Lt?_t.apply(this,arguments)||0:Ct(this,e,arguments.length>1?arguments[1]:void 0)}});var It=[].join,Nt=v!=Object,Ft=St("join",",");Me({target:"Array",proto:!0,forced:Nt||!Ft},{join:function(e){return It.call(h(this),void 0===e?",":e)}});var Dt=function(e){return function(t,n,r,o){ht(n);var i=Ie(t),a=v(i),c=se(i.length),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Bt={left:Dt(!1),right:Dt(!0)}.left,$t=St("reduce"),Ut=Tt("reduce",{1:0});Me({target:"Array",proto:!0,forced:!$t||!Ut},{reduce:function(e){return Bt(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var qt=Xe("slice"),Vt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),zt=qe("species"),Gt=[].slice,Ht=Math.max;Me({target:"Array",proto:!0,forced:!qt||!Vt},{slice:function(e,t){var n,r,o,i=h(this),a=se(i.length),c=ve(e,a),u=ve(void 0===t?a:t,a);if(ke(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!ke(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&&Ne(r,o,i[c]);return r.length=o,r}});var Wt=R.f,Kt=Function.prototype,Jt=Kt.toString,Yt=/^\s*function ([^ (]*)/,Xt="name";a&&!(Xt in Kt)&&Wt(Kt,Xt,{configurable:!0,get:function(){try{return Jt.call(this).match(Yt)[1]}catch(e){return""}}});var Qt="".repeat||function(e){var t=String(g(this)),n="",r=fe(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},Zt=1..toFixed,en=Math.floor,tn=function(e,t,n){return 0===t?n:t%2==1?tn(e,t-1,n*e):tn(e*e,t/2,n)};Me({target:"Number",proto:!0,forced:Zt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){Zt.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=fe(e),c=[0,0,0,0,0,0],u="",f="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=en(r/1e7)},s=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=en(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+Qt.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*tn(2,69,1))-69)<0?i*tn(2,-t,1):i/tn(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(tn(10,r,1),0),r=t-1;r>=23;)s(1<<23),r-=23;s(1<<r),l(1,1),s(2),f=p()}else l(0,n),l(1<<-t,0),f=p()+Qt.call("0",a);return f=a>0?u+((o=f.length)<=a?"0."+Qt.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):u+f}});var nn=Object.assign,rn=Object.defineProperty,on=!nn||i((function(){if(a&&1!==nn({b:1},nn(rn({},"a",{enumerable:!0,get:function(){rn(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!=nn({},e)[n]||it(nn({},t)).join("")!=r}))?function(e,t){for(var n=Ie(e),r=arguments.length,o=1,i=xe.f,c=f.f;r>o;)for(var u,l=v(arguments[o++]),s=i?it(l).concat(i(l)):it(l),d=s.length,p=0;d>p;)u=s[p++],a&&!c.call(l,u)||(n[u]=l[u]);return n}:nn;Me({target:"Object",stat:!0,forced:Object.assign!==on},{assign:on});var an=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cn=H("IE_PROTO"),un=Object.prototype,fn=an?Object.getPrototypeOf:function(e){return e=Ie(e),b(e,cn)?e[cn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?un:null};Me({target:"Object",stat:!0,forced:i((function(){fn(1)})),sham:!an},{getPrototypeOf:function(e){return fn(Ie(e))}}),Me({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(Ie(e))}});var ln={};ln[qe("toStringTag")]="z";var sn="[object z]"===String(ln),dn=qe("toStringTag"),pn="Arguments"==d(function(){return arguments}()),vn=sn?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),dn))?n:pn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},gn=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||re(Object.prototype,"toString",gn,{unsafe:!0});var hn="\t\n\v\f\r                 \u2028\u2029\ufeff",mn="["+hn+"]",yn=RegExp("^"+mn+mn+"*"),wn=RegExp(mn+mn+"*$"),bn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(yn,"")),2&e&&(n=n.replace(wn,"")),n}},Sn={start:bn(1),end:bn(2),trim:bn(3)}.trim,xn=o.parseFloat,En=1/xn(hn+"-0")!=-1/0?function(e){var t=Sn(String(e)),n=xn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:xn;Me({global:!0,forced:parseFloat!=En},{parseFloat:En});var On=o.Promise,Tn=R.f,jn=qe("toStringTag"),An=qe("species"),Pn=function(e){var t=ae(e),n=R.f;a&&t&&!t[An]&&n(t,An,{configurable:!0,get:function(){return this}})},Rn={},Cn=qe("iterator"),_n=Array.prototype,Ln=qe("iterator"),Mn=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}},kn=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,f,l,s,d,p,v=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[Ln]||e["@@iterator"]||Rn[vn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Rn.Array===p||_n[Cn]===p)){for(u=0,f=se(e.length);f>u;u++)if((l=o?v(A(d=e[u])[0],d[1]):v(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(l=Mn(a,v,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),In=qe("iterator"),Nn=!1;try{var Fn=0,Dn={next:function(){return{done:!!Fn++}},return:function(){Nn=!0}};Dn[In]=function(){return this},Array.from(Dn,(function(){throw 2}))}catch(e){}var Bn,$n,Un,qn=qe("species"),Vn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[qn])?t:ht(n)},zn=/(iphone|ipod|ipad).*applewebkit/i.test(Ge),Gn=o.location,Hn=o.setImmediate,Wn=o.clearImmediate,Kn=o.process,Jn=o.MessageChannel,Yn=o.Dispatch,Xn=0,Qn={},Zn="onreadystatechange",er=function(e){if(Qn.hasOwnProperty(e)){var t=Qn[e];delete Qn[e],t()}},tr=function(e){return function(){er(e)}},nr=function(e){er(e.data)},rr=function(e){o.postMessage(e+"",Gn.protocol+"//"+Gn.host)};Hn&&Wn||(Hn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Qn[++Xn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Bn(Xn),Xn},Wn=function(e){delete Qn[e]},"process"==d(Kn)?Bn=function(e){Kn.nextTick(tr(e))}:Yn&&Yn.now?Bn=function(e){Yn.now(tr(e))}:Jn&&!zn?(Un=($n=new Jn).port2,$n.port1.onmessage=nr,Bn=mt(Un.postMessage,Un,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(rr)||"file:"===Gn.protocol?Bn=Zn in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),er(e)}}:function(e){setTimeout(tr(e),0)}:(Bn=rr,o.addEventListener("message",nr,!1)));var or,ir,ar,cr,ur,fr,lr,sr,dr={set:Hn,clear:Wn},pr=j.f,vr=dr.set,gr=o.MutationObserver||o.WebKitMutationObserver,hr=o.process,mr=o.Promise,yr="process"==d(hr),wr=pr(o,"queueMicrotask"),br=wr&&wr.value;br||(or=function(){var e,t;for(yr&&(e=hr.domain)&&e.exit();ir;){t=ir.fn,ir=ir.next;try{t()}catch(e){throw ir?cr():ar=void 0,e}}ar=void 0,e&&e.enter()},yr?cr=function(){hr.nextTick(or)}:gr&&!zn?(ur=!0,fr=document.createTextNode(""),new gr(or).observe(fr,{characterData:!0}),cr=function(){fr.data=ur=!ur}):mr&&mr.resolve?(lr=mr.resolve(void 0),sr=lr.then,cr=function(){sr.call(lr,or)}):cr=function(){vr.call(o,or)});var Sr,xr,Er,Or,Tr,jr,Ar,Pr=br||function(e){var t={fn:e,next:void 0};ar&&(ar.next=t),ir||(ir=t,cr()),ar=t},Rr=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)},Cr={f:function(e){return new Rr(e)}},_r=function(e,t){if(A(e),m(t)&&t.constructor===e)return t;var n=Cr.f(e);return(0,n.resolve)(t),n.promise},Lr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Mr=dr.set,kr=qe("species"),Ir="Promise",Nr=ne.get,Fr=ne.set,Dr=ne.getterFor(Ir),Br=On,$r=o.TypeError,Ur=o.document,qr=o.process,Vr=ae("fetch"),zr=Cr.f,Gr=zr,Hr="process"==d(qr),Wr=!!(Ur&&Ur.createEvent&&o.dispatchEvent),Kr="unhandledrejection",Jr=_e(Ir,(function(){if(!(D(Br)!==String(Br))){if(66===Je)return!0;if(!Hr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test(Br))return!1;var e=Br.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[kr]=t,!(e.then((function(){}))instanceof t)})),Yr=Jr||!function(e,t){if(!t&&!Nn)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){Br.all(e).catch((function(){}))})),Xr=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Qr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Pr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,f,l=r[a++],s=i?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{s?(i||(2===t.rejection&&no(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),f=!0)),c===l.promise?p($r("Promise-chain cycle")):(u=Xr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!f&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&eo(e,t)}))}},Zr=function(e,t,n){var r,i;Wr?((r=Ur.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===Kr&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},eo=function(e,t){Mr.call(o,(function(){var n,r=t.value;if(to(t)&&(n=Lr((function(){Hr?qr.emit("unhandledRejection",r,e):Zr(Kr,e,r)})),t.rejection=Hr||to(t)?2:1,n.error))throw n.value}))},to=function(e){return 1!==e.rejection&&!e.parent},no=function(e,t){Mr.call(o,(function(){Hr?qr.emit("rejectionHandled",e):Zr("rejectionhandled",e,t.value)}))},ro=function(e,t,n,r){return function(o){e(t,n,o,r)}},oo=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Qr(e,t,!0))},io=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=Xr(n);o?Pr((function(){var r={done:!1};try{o.call(n,ro(io,e,r,t),ro(oo,e,r,t))}catch(n){oo(e,r,n,t)}})):(t.value=n,t.state=1,Qr(e,t,!1))}catch(n){oo(e,{done:!1},n,t)}}};Jr&&(Br=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Br,Ir),ht(e),Sr.call(this);var t=Nr(this);try{e(ro(io,this,t),ro(oo,this,t))}catch(e){oo(this,t,e)}},(Sr=function(e){Fr(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}(Br.prototype,{then:function(e,t){var n=Dr(this),r=zr(Vn(this,Br));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Hr?qr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),xr=function(){var e=new Sr,t=Nr(e);this.promise=e,this.resolve=ro(io,e,t),this.reject=ro(oo,e,t)},Cr.f=zr=function(e){return e===Br||e===Er?new xr(e):Gr(e)},"function"==typeof On&&(Or=On.prototype.then,re(On.prototype,"then",(function(e,t){var n=this;return new Br((function(e,t){Or.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Vr&&Me({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _r(Br,Vr.apply(o,arguments))}}))),Me({global:!0,wrap:!0,forced:Jr},{Promise:Br}),jr=Ir,Ar=!1,(Tr=Br)&&!b(Tr=Ar?Tr:Tr.prototype,jn)&&Tn(Tr,jn,{configurable:!0,value:jr}),Pn(Ir),Er=ae(Ir),Me({target:Ir,stat:!0,forced:Jr},{reject:function(e){var t=zr(this);return t.reject.call(void 0,e),t.promise}}),Me({target:Ir,stat:!0,forced:Jr},{resolve:function(e){return _r(this,e)}}),Me({target:Ir,stat:!0,forced:Yr},{all:function(e){var t=this,n=zr(t),r=n.resolve,o=n.reject,i=Lr((function(){var n=ht(t.resolve),i=[],a=0,c=1;kn(e,(function(e){var u=a++,f=!1;i.push(void 0),c++,n.call(t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=zr(t),r=n.reject,o=Lr((function(){var o=ht(t.resolve);kn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ao=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(!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),co=qe("match"),uo=function(e){var t;return m(e)&&(void 0!==(t=e[co])?!!t:"RegExp"==d(e))},fo=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 lo(e,t){return RegExp(e,t)}var so={UNSUPPORTED_Y:i((function(){var e=lo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=lo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},po=R.f,vo=Se.f,go=ne.set,ho=qe("match"),mo=o.RegExp,yo=mo.prototype,wo=/a/g,bo=/a/g,So=new mo(wo)!==wo,xo=so.UNSUPPORTED_Y;if(a&&_e("RegExp",!So||xo||i((function(){return bo[ho]=!1,mo(wo)!=wo||mo(bo)==bo||"/a/i"!=mo(wo,"i")})))){for(var Eo=function(e,t){var n,r=this instanceof Eo,o=uo(e),i=void 0===t;if(!r&&o&&e.constructor===Eo&&i)return e;So?o&&!i&&(e=e.source):e instanceof Eo&&(i&&(t=fo.call(e)),e=e.source),xo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,f,l,s=(a=So?new mo(e,t):mo(e,t),c=r?this:yo,u=Eo,ao&&"function"==typeof(f=c.constructor)&&f!==u&&m(l=f.prototype)&&l!==u.prototype&&ao(a,l),a);return xo&&n&&go(s,{sticky:n}),s},Oo=function(e){e in Eo||po(Eo,e,{configurable:!0,get:function(){return mo[e]},set:function(t){mo[e]=t}})},To=vo(mo),jo=0;To.length>jo;)Oo(To[jo++]);yo.constructor=Eo,Eo.prototype=yo,re(o,"RegExp",Eo)}Pn("RegExp");var Ao=RegExp.prototype.exec,Po=String.prototype.replace,Ro=Ao,Co=function(){var e=/a/,t=/b*/g;return Ao.call(e,"a"),Ao.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_o=so.UNSUPPORTED_Y||so.BROKEN_CARET,Lo=void 0!==/()??/.exec("")[1];(Co||Lo||_o)&&(Ro=function(e){var t,n,r,o,i=this,a=_o&&i.sticky,c=fo.call(i),u=i.source,f=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Lo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Co&&(t=i.lastIndex),r=Ao.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:Co&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Lo&&r&&r.length>1&&Po.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Mo=Ro;Me({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var ko="toString",Io=RegExp.prototype,No=Io.toString,Fo=i((function(){return"/a/b"!=No.call({source:"a",flags:"b"})})),Do=No.name!=ko;(Fo||Do)&&re(RegExp.prototype,ko,(function(){var e=A(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}),Me({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var Bo=qe("species"),$o=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Uo="$0"==="a".replace(/./,"$0"),qo=qe("replace"),Vo=!!/./[qo]&&""===/./[qo]("a","$0"),zo=!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]})),Go=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[Bo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!$o||!Uo||Vo)||"split"===e&&!zo){var u=/./[o],f=n(o,""[e],(function(e,t,n,r,o){return t.exec===Mo?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Uo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Vo}),l=f[0],s=f[1];re(String.prototype,e,l),re(RegExp.prototype,o,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&C(RegExp.prototype[o],"sham",!0)},Ho=function(e){return function(t,n){var r,o,i=String(g(t)),a=fe(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}},Wo={codeAt:Ho(!1),charAt:Ho(!0)}.charAt,Ko=function(e,t,n){return t+(n?Wo(e,t).length:1)},Jo=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 Mo.call(e,t)};Go("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 Jo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Jo(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=Ko(i,se(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Yo=Math.max,Xo=Math.min,Qo=Math.floor,Zo=/\$([$&'`]|\d\d?|<[^>]*>)/g,ei=/\$([$&'`]|\d\d?)/g,ti=function(e){return void 0===e?e:String(e)};Go("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 f=A(e),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var g=Jo(f,l);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(f.lastIndex=Ko(l,se(f.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),b=Yo(Xo(fe(g.index),l.length),0),S=[],x=1;x<g.length;x++)S.push(ti(g[x]));var E=g.groups;if(s){var O=[w].concat(S,b,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,b,S,E,r);b>=m&&(h+=l.slice(m,b)+T,m=b+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,f=ei;return void 0!==i&&(i=Ie(i),f=Zo),t.call(a,f,(function(t,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var s=Qo(l/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}f=o[l-1]}return void 0===f?"":f}))}}));var ni=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Go("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;ni(a,0)||(o.lastIndex=0);var c=Jo(o,i);return ni(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var ri=[].push,oi=Math.min,ii=4294967295,ai=!i((function(){return!RegExp(ii,"y")}));Go("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?ii:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!uo(e))return t.call(r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,f+"g");(i=Mo.call(s,r))&&!((a=s.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&ri.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return l===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=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=Vn(a,RegExp),f=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ai?"y":"g"),s=new u(ai?a:"^(?:"+a.source+")",l),d=void 0===o?ii:o>>>0;if(0===d)return[];if(0===c.length)return null===Jo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=ai?v:0;var h,m=Jo(s,ai?c:c.slice(v));if(null===m||(h=oi(se(s.lastIndex+(ai?0:v)),c.length))===p)v=Ko(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}]}),!ai);for(var ci 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 ui=o[ci],fi=ui&&ui.prototype;if(fi&&fi.forEach!==Rt)try{C(fi,"forEach",Rt)}catch(e){fi.forEach=Rt}}var li=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 si(){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 di(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function pi(e){return JSON.parse(JSON.stringify(e))}function vi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function gi(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function hi(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 mi(){return Date.now?Date.now():(new Date).getTime()}function yi(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 wi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.addInlineStyle=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n;if(!e)return!1;var o=document.createDocumentFragment(),i=null,a="",c=document.createElement("style");return r?(a=""+r,(i=document.getElementById(a))?i.innerHTML=e:(c.setAttribute("id",r),c.innerHTML=e,o.appendChild(c),document.head.appendChild(o))):(c.innerHTML=e,o.appendChild(c),document.head.appendChild(o)),!0},e.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],l=u[1];a>0&&(f=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(f,l)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},e.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(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=di,e.camelCaseToKebabCase=function(e){void 0===e&&(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 void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=mi()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];r=this,a=f,i=mi();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=pi,e.doFn=hi,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},e.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0);var r=(void 0===n?{}:n).type,o=void 0===r?"d":r;gi(e)||(e=new Date(e).getTime()),gi(t)||(t=new Date(t).getTime());var i=t-e,a=null,c=new Array(4).fill(0),u=c[0],f=(c[1],c[2],c[3]);if(i>=0)switch(u=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=u;break;case"text":a=(u=Math.floor(i/1e3/60/60/24))+" 天 "+Math.floor(i/1e3/60/60%24)+" 时 "+Math.floor(i/1e3/60%60)+" 分 "+(f=Math.floor(i/1e3%60))+" 秒";break;default:a=f}return a},e.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,si([e],o)):(r=console)[n].apply(r,o)}})),t},e.generateRndNum=vi,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[mi(),vi(e||3)];return t[0]+t[1]},e.getBrowserInfo=wi,e.getCookie=yi,e.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},e.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},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]||{},g={os:f(),osVersion:l(),deviceType:s(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(e){gi(g[e])&&g[e]<0&&(g[e]=0)})),gi(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)e||Object.keys(g).forEach((function(e){i||(i={}),i[di(e)]=g[e]})),t(i||g);else n("startTime")}else n("getEntries")}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function s(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function v(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},e.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(unescape(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){void 0===e&&(e=""),void 0===t&&(t="");var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},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){void 0===e&&(e="");try{if("object"===li(JSON.parse(e)))return!0}catch(e){}return!1},e.isNumber=gi,e.isSafePWAEnv=function(){var e=wi();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.loadCSS=function(e,t){void 0===e&&(e="");var n=(void 0===t?{}:t).id,r=void 0===n?"":n,o=null,i=new Promise((function(e,t){var n;o=(n=[e,t])[0],n[1]})),a=function(){hi(o,!0)},c=document.createElement("link"),u="onload"in c,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),f||!u)return setTimeout((function(){s(c,a,0)}),1),i;function l(){c.onload=c.onerror=c.onreadystatechange=null,c=null,a()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return u?(c.onload=l,c.onerror=function(){l()}):c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&l()},i},e.loadScript=function(e,t){void 0===e&&(e="");var n=void 0===t?{}:t,r=n.id,o=void 0===r?"":r,i=n.callback,a=void 0===i?function(){}:i,c=n.timeout,u=void 0===c?5e3:c,f=n.isDefer,l=void 0!==f&&f,s=null,d=null,p=document.createElement("script"),v=document.getElementsByTagName("script")[0];return p.type="text/javascript",l&&(p.defer="defer"),o&&(p.id=o),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,hi(a),hi(s,!0))}:p.onload=function(){hi(a),hi(s,!0)},p.src=e,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,t){var n;s=(n=[e,t])[0],d=n[1],u&&setTimeout(d.bind(null,"timeout"),u)}))},e.mNow=mi,e.mTrim=function(e){void 0===e&&(e="");for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},e.newLine=function(e){if(void 0===e&&(e=""),!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!==yi(e)&&yi(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){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var f=function(){u=!1===n.leading?0:mi(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var s=mi();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},e.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},e.windowLoaded=function(e){void 0===e&&(e=90);var t=function(){},n=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n("timeout")}),1e3*e),r},e}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Mazey's library for front end.",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Mazey */
1
+ /* mazey */
2
2
 
3
3
  /**
4
4
  * @method calLongestCommonSubstring
@@ -201,7 +201,7 @@ export function mTrim(str = ''): string {
201
201
  * @method newLine
202
202
  * @description Make a newline of HTML.
203
203
  * @param {string} str The string to make a newline.
204
- * @return {string} A newline with `<br />`.
204
+ * @return {string} A newline with `br`.
205
205
  * */
206
206
  export function newLine(str = ''): string {
207
207
  if (!str) {
@@ -1085,10 +1085,17 @@ export function getBrowserInfo(): any {
1085
1085
  // 权重:系统 + 系统版本 > 平台 > 内核 + 载体 + 内核版本 + 载体版本 > 外壳 + 外壳版本
1086
1086
  const ua: any = navigator.userAgent.toLowerCase();
1087
1087
  const testUa: (regexp: any) => any = regexp => regexp.test(ua);
1088
- const testVs: (regexp: any) => any = regexp => ua.match(regexp)
1089
- .toString()
1090
- .replace(/[^0-9|_.]/g, "")
1091
- .replace(/_/g, ".");
1088
+ const testVs: (regexp: any) => any = regexp => {
1089
+ const matchRes = ua.match(regexp);
1090
+ let ret = '';
1091
+ if (matchRes) {
1092
+ ret = matchRes
1093
+ .toString()
1094
+ .replace(/[^0-9|_.]/g, "")
1095
+ .replace(/_/g, ".");
1096
+ }
1097
+ return ret;
1098
+ };
1092
1099
  // 系统
1093
1100
  let system = '';
1094
1101
  // Apple device type.
@@ -1240,6 +1247,7 @@ export function getBrowserInfo(): any {
1240
1247
  appleType,
1241
1248
  });
1242
1249
  } catch (err) {
1250
+ console.warn('mazey:', err);
1243
1251
  return {};
1244
1252
  }
1245
1253
  }
@@ -1319,7 +1327,7 @@ export function windowLoaded(timeout = 90): Promise<string> {
1319
1327
  * @method addInlineStyle
1320
1328
  * @description 添加内联样式
1321
1329
  * @param {string} inlineStyle 内联样式字符串
1322
- * @param {string} id <style> 标签的 ID
1330
+ * @param {string} id style 标签的 ID
1323
1331
  * @return {boolean} 添加成功/失败
1324
1332
  */
1325
1333
  export function addInlineStyle(inlineStyle = '', { id = '' } = {}): boolean {