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