@fe-hl/shared
Version:
javascript常用工具库,支持typescript
6 lines • 54.8 kB
JavaScript
/*!
* @fe-hl/shared v1.0.6
* (c) 2022-2024 hl
* Released under the MIT License.
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={exports:{}};r.exports=function(){var t=1e3,r=6e4,e=36e5,n="millisecond",o="second",i="minute",u="hour",c="day",a="week",s="month",f="quarter",l="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}},y=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},b={s:y,z:function(t){var r=-t.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),o=e%60;return(r<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function t(r,e){if(r.date()<e.date())return-t(e,r);var n=12*(e.year()-r.year())+(e.month()-r.month()),o=r.clone().add(n,s),i=e-o<0,u=r.clone().add(n+(i?-1:1),s);return+(-(n+(e-o)/(i?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:l,w:a,d:c,D:d,h:u,m:i,s:o,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m="en",x={};x[m]=g;var w="$isDayjsObject",S=function(t){return t instanceof M||!(!t||!t[w])},O=function t(r,e,n){var o;if(!r)return m;if("string"==typeof r){var i=r.toLowerCase();x[i]&&(o=i),e&&(x[i]=e,o=i);var u=r.split("-");if(!o&&u.length>1)return t(u[0])}else{var c=r.name;x[c]=r,o=c}return!n&&o&&(m=o),o||!n&&m},E=function(t,r){if(S(t))return t.clone();var e="object"==typeof r?r:{};return e.date=t,e.args=arguments,new M(e)},$=b;$.l=O,$.i=S,$.w=function(t,r){return E(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var M=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var r=t.date,e=t.utc;if(null===r)return new Date(NaN);if($.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(r)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return $},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,r){var e=E(t);return this.startOf(r)<=e&&e<=this.endOf(r)},y.isAfter=function(t,r){return E(t)<this.startOf(r)},y.isBefore=function(t,r){return this.endOf(r)<E(t)},y.$g=function(t,r,e){return $.u(t)?this[r]:this.set(e,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,r){var e=this,n=!!$.u(r)||r,f=$.p(t),h=function(t,r){var o=$.w(e.$u?Date.UTC(e.$y,r,t):new Date(e.$y,r,t),e);return n?o:o.endOf(c)},p=function(t,r){return $.w(e.toDate()[t].apply(e.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(r)),e)},v=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case l:return n?h(1,0):h(31,11);case s:return n?h(1,g):h(0,g+1);case a:var m=this.$locale().weekStart||0,x=(v<m?v+7:v)-m;return h(n?y-x:y+(6-x),g);case c:case d:return p(b+"Hours",0);case u:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case o:return p(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,r){var e,a=$.p(t),f="set"+(this.$u?"UTC":""),h=(e={},e[c]=f+"Date",e[d]=f+"Date",e[s]=f+"Month",e[l]=f+"FullYear",e[u]=f+"Hours",e[i]=f+"Minutes",e[o]=f+"Seconds",e[n]=f+"Milliseconds",e)[a],p=a===c?this.$D+(r-this.$W):r;if(a===s||a===l){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},y.set=function(t,r){return this.clone().$set(t,r)},y.get=function(t){return this[$.p(t)]()},y.add=function(n,f){var d,h=this;n=Number(n);var p=$.p(f),v=function(t){var r=E(h);return $.w(r.date(r.date()+Math.round(t*n)),h)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===c)return v(1);if(p===a)return v(7);var g=(d={},d[i]=r,d[u]=e,d[o]=t,d)[p]||1,y=this.$d.getTime()+n*g;return $.w(y,this)},y.subtract=function(t,r){return this.add(-1*t,r)},y.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=$.z(this),i=this.$H,u=this.$m,c=this.$M,a=e.weekdays,s=e.months,f=e.meridiem,l=function(t,e,o,i){return t&&(t[e]||t(r,n))||o[e].slice(0,i)},d=function(t){return $.s(i%12||12,t,"0")},p=f||function(t,r,e){var n=t<12?"AM":"PM";return e?n.toLowerCase():n};return n.replace(v,(function(t,n){return n||function(t){switch(t){case"YY":return String(r.$y).slice(-2);case"YYYY":return $.s(r.$y,4,"0");case"M":return c+1;case"MM":return $.s(c+1,2,"0");case"MMM":return l(e.monthsShort,c,s,3);case"MMMM":return l(s,c);case"D":return r.$D;case"DD":return $.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return l(e.weekdaysMin,r.$W,a,2);case"ddd":return l(e.weekdaysShort,r.$W,a,3);case"dddd":return a[r.$W];case"H":return String(i);case"HH":return $.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,u,!0);case"A":return p(i,u,!1);case"m":return String(u);case"mm":return $.s(u,2,"0");case"s":return String(r.$s);case"ss":return $.s(r.$s,2,"0");case"SSS":return $.s(r.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,d,h){var p,v=this,g=$.p(d),y=E(n),b=(y.utcOffset()-this.utcOffset())*r,m=this-y,x=function(){return $.m(v,y)};switch(g){case l:p=x()/12;break;case s:p=x();break;case f:p=x()/3;break;case a:p=(m-b)/6048e5;break;case c:p=(m-b)/864e5;break;case u:p=m/e;break;case i:p=m/r;break;case o:p=m/t;break;default:p=m}return h?p:$.a(p)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return x[this.$L]},y.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),n=O(t,r,!0);return n&&(e.$L=n),e},y.clone=function(){return $.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=M.prototype;return E.prototype=D,[["$ms",n],["$s",o],["$m",i],["$H",u],["$W",c],["$M",s],["$y",l],["$D",d]].forEach((function(t){D[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),E.extend=function(t,r){return t.$i||(t(r,M,E),t.$i=!0),E},E.locale=O,E.isDayjs=S,E.unix=function(t){return E(1e3*t)},E.en=x[m],E.Ls=x,E.p={},E}();var e=r.exports,n=function(t){return t&&t.Math===Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i={},u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=a,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},d={},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,v=p&&!h.call({1:2},1);d.f=v?function(t){var r=p(this,t);return!!r&&r.enumerable}:h;var g,y,b=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=a,x=Function.prototype,w=x.call,S=m&&x.bind.bind(w,w),O=m?S:function(t){return function(){return w.apply(t,arguments)}},E=O,$=E({}.toString),M=E("".slice),D=function(t){return M($(t),8,-1)},A=u,I=D,j=Object,R=O("".split),T=A((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"===I(t)?R(t,""):j(t)}:j,P=function(t){return null==t},N=P,_=TypeError,Y=function(t){if(N(t))throw new _("Can't call method on "+t);return t},F=T,k=Y,C=function(t){return F(k(t))},L="object"==typeof document&&document.all,U={all:L,IS_HTMLDDA:void 0===L&&void 0!==L},H=U.all,G=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===H}:function(t){return"function"==typeof t},W=G,q=U.all,z=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:W(t)||t===q}:function(t){return"object"==typeof t?null!==t:W(t)},B=o,K=G,J=function(t,r){return arguments.length<2?(e=B[t],K(e)?e:void 0):B[t]&&B[t][r];var e},V=O({}.isPrototypeOf),X=o,Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=X.process,tt=X.Deno,rt=Z&&Z.versions||tt&&tt.version,et=rt&&rt.v8;et&&(y=(g=et.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&Q&&(!(g=Q.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=Q.match(/Chrome\/(\d+)/))&&(y=+g[1]);var nt=y,ot=nt,it=u,ut=o.String,ct=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),at=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=J,ft=G,lt=V,dt=Object,ht=at?function(t){return"symbol"==typeof t}:function(t){var r=st("Symbol");return ft(r)&<(r.prototype,dt(t))},pt=String,vt=function(t){try{return pt(t)}catch(t){return"Object"}},gt=G,yt=vt,bt=TypeError,mt=function(t){if(gt(t))return t;throw new bt(yt(t)+" is not a function")},xt=mt,wt=P,St=function(t,r){var e=t[r];return wt(e)?void 0:xt(e)},Ot=l,Et=G,$t=z,Mt=TypeError,Dt={exports:{}},At=o,It=Object.defineProperty,jt=function(t,r){try{It(At,t,{value:r,configurable:!0,writable:!0})}catch(e){At[t]=r}return r},Rt=jt,Tt="__core-js_shared__",Pt=o[Tt]||Rt(Tt,{}),Nt=Pt;(Dt.exports=function(t,r){return Nt[t]||(Nt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var _t=Y,Yt=Object,Ft=function(t){return Yt(_t(t))},kt=Ft,Ct=O({}.hasOwnProperty),Lt=Object.hasOwn||function(t,r){return Ct(kt(t),r)},Ut=O,Ht=0,Gt=Math.random(),Wt=Ut(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Ht+Gt,36)},zt=o,Bt=Dt.exports,Kt=Lt,Jt=qt,Vt=ct,Xt=at,Qt=zt.Symbol,Zt=Bt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Jt,rr=function(t){return Kt(Zt,t)||(Zt[t]=Vt&&Kt(Qt,t)?Qt[t]:tr("Symbol."+t)),Zt[t]},er=l,nr=z,or=ht,ir=St,ur=function(t,r){var e,n;if("string"===r&&Et(e=t.toString)&&!$t(n=Ot(e,t)))return n;if(Et(e=t.valueOf)&&!$t(n=Ot(e,t)))return n;if("string"!==r&&Et(e=t.toString)&&!$t(n=Ot(e,t)))return n;throw new Mt("Can't convert object to primitive value")},cr=TypeError,ar=rr("toPrimitive"),sr=function(t,r){if(!nr(t)||or(t))return t;var e,n=ir(t,ar);if(n){if(void 0===r&&(r="default"),e=er(n,t,r),!nr(e)||or(e))return e;throw new cr("Can't convert object to primitive value")}return void 0===r&&(r="number"),ur(t,r)},fr=sr,lr=ht,dr=function(t){var r=fr(t,"string");return lr(r)?r:r+""},hr=z,pr=o.document,vr=hr(pr)&&hr(pr.createElement),gr=function(t){return vr?pr.createElement(t):{}},yr=gr,br=!c&&!u((function(){return 7!==Object.defineProperty(yr("div"),"a",{get:function(){return 7}}).a})),mr=c,xr=l,wr=d,Sr=b,Or=C,Er=dr,$r=Lt,Mr=br,Dr=Object.getOwnPropertyDescriptor;i.f=mr?Dr:function(t,r){if(t=Or(t),r=Er(r),Mr)try{return Dr(t,r)}catch(t){}if($r(t,r))return Sr(!xr(wr.f,t,r),t[r])};var Ar={},Ir=c&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jr=z,Rr=String,Tr=TypeError,Pr=function(t){if(jr(t))return t;throw new Tr(Rr(t)+" is not an object")},Nr=c,_r=br,Yr=Ir,Fr=Pr,kr=dr,Cr=TypeError,Lr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Hr="enumerable",Gr="configurable",Wr="writable";Ar.f=Nr?Yr?function(t,r,e){if(Fr(t),r=kr(r),Fr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Wr in e&&!e[Wr]){var n=Ur(t,r);n&&n[Wr]&&(t[r]=e.value,e={configurable:Gr in e?e[Gr]:n[Gr],enumerable:Hr in e?e[Hr]:n[Hr],writable:!1})}return Lr(t,r,e)}:Lr:function(t,r,e){if(Fr(t),r=kr(r),Fr(e),_r)try{return Lr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new Cr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var qr=Ar,zr=b,Br=c?function(t,r,e){return qr.f(t,r,zr(1,e))}:function(t,r,e){return t[r]=e,t},Kr={exports:{}},Jr=c,Vr=Lt,Xr=Function.prototype,Qr=Jr&&Object.getOwnPropertyDescriptor,Zr=Vr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Jr||Jr&&Qr(Xr,"name").configurable)},re=G,ee=Pt,ne=O(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ce=ee.inspectSource,ae=G,se=o.WeakMap,fe=ae(se)&&/native code/.test(String(se)),le=Dt.exports,de=qt,he=le("keys"),pe=function(t){return he[t]||(he[t]=de(t))},ve={},ge=fe,ye=o,be=z,me=Br,xe=Lt,we=Pt,Se=pe,Oe=ve,Ee="Object already initialized",$e=ye.TypeError,Me=ye.WeakMap;if(ge||we.state){var De=we.state||(we.state=new Me);De.get=De.get,De.has=De.has,De.set=De.set,oe=function(t,r){if(De.has(t))throw new $e(Ee);return r.facade=t,De.set(t,r),r},ie=function(t){return De.get(t)||{}},ue=function(t){return De.has(t)}}else{var Ae=Se("state");Oe[Ae]=!0,oe=function(t,r){if(xe(t,Ae))throw new $e(Ee);return r.facade=t,me(t,Ae,r),r},ie=function(t){return xe(t,Ae)?t[Ae]:{}},ue=function(t){return xe(t,Ae)}}var Ie={set:oe,get:ie,has:ue,enforce:function(t){return ue(t)?ie(t):oe(t,{})},getterFor:function(t){return function(r){var e;if(!be(r)||(e=ie(r)).type!==t)throw new $e("Incompatible receiver, "+t+" required");return e}}},je=O,Re=u,Te=G,Pe=Lt,Ne=c,_e=te.CONFIGURABLE,Ye=ce,Fe=Ie.enforce,ke=Ie.get,Ce=String,Le=Object.defineProperty,Ue=je("".slice),He=je("".replace),Ge=je([].join),We=Ne&&!Re((function(){return 8!==Le((function(){}),"length",{value:8}).length})),qe=String(String).split("String"),ze=Kr.exports=function(t,r,e){"Symbol("===Ue(Ce(r),0,7)&&(r="["+He(Ce(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Pe(t,"name")||_e&&t.name!==r)&&(Ne?Le(t,"name",{value:r,configurable:!0}):t.name=r),We&&e&&Pe(e,"arity")&&t.length!==e.arity&&Le(t,"length",{value:e.arity});try{e&&Pe(e,"constructor")&&e.constructor?Ne&&Le(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Fe(t);return Pe(n,"source")||(n.source=Ge(qe,"string"==typeof r?r:"")),t};Function.prototype.toString=ze((function(){return Te(this)&&ke(this).source||Ye(this)}),"toString");var Be=G,Ke=Ar,Je=Kr.exports,Ve=jt,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Be(e)&&Je(e,i,n),n.global)o?t[r]=e:Ve(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(t){}o?t[r]=e:Ke.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qe={},Ze=Math.ceil,tn=Math.floor,rn=Math.trunc||function(t){var r=+t;return(r>0?tn:Ze)(r)},en=function(t){var r=+t;return r!=r||0===r?0:rn(r)},nn=en,on=Math.max,un=Math.min,cn=function(t,r){var e=nn(t);return e<0?on(e+r,0):un(e,r)},an=en,sn=Math.min,fn=function(t){return t>0?sn(an(t),9007199254740991):0},ln=fn,dn=function(t){return ln(t.length)},hn=C,pn=cn,vn=dn,gn=function(t){return function(r,e,n){var o,i=hn(r),u=vn(i),c=pn(n,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},yn={includes:gn(!0),indexOf:gn(!1)},bn=Lt,mn=C,xn=yn.indexOf,wn=ve,Sn=O([].push),On=function(t,r){var e,n=mn(t),o=0,i=[];for(e in n)!bn(wn,e)&&bn(n,e)&&Sn(i,e);for(;r.length>o;)bn(n,e=r[o++])&&(~xn(i,e)||Sn(i,e));return i},En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$n=On,Mn=En.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return $n(t,Mn)};var Dn={};Dn.f=Object.getOwnPropertySymbols;var An=J,In=Qe,jn=Dn,Rn=Pr,Tn=O([].concat),Pn=An("Reflect","ownKeys")||function(t){var r=In.f(Rn(t)),e=jn.f;return e?Tn(r,e(t)):r},Nn=Lt,_n=Pn,Yn=i,Fn=Ar,kn=u,Cn=G,Ln=/#|\.prototype\./,Un=function(t,r){var e=Gn[Hn(t)];return e===qn||e!==Wn&&(Cn(r)?kn(r):!!r)},Hn=Un.normalize=function(t){return String(t).replace(Ln,".").toLowerCase()},Gn=Un.data={},Wn=Un.NATIVE="N",qn=Un.POLYFILL="P",zn=Un,Bn=o,Kn=i.f,Jn=Br,Vn=Xe,Xn=jt,Qn=function(t,r,e){for(var n=_n(r),o=Fn.f,i=Yn.f,u=0;u<n.length;u++){var c=n[u];Nn(t,c)||e&&Nn(e,c)||o(t,c,i(r,c))}},Zn=zn,to=function(t,r){var e,n,o,i,u,c=t.target,a=t.global,s=t.stat;if(e=a?Bn:s?Bn[c]||Xn(c,{}):(Bn[c]||{}).prototype)for(n in r){if(i=r[n],o=t.dontCallGetSet?(u=Kn(e,n))&&u.value:e[n],!Zn(a?n:c+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qn(i,o)}(t.sham||o&&o.sham)&&Jn(i,"sham",!0),Vn(e,n,i,t)}},ro=D,eo=Array.isArray||function(t){return"Array"===ro(t)},no=TypeError,oo=dr,io=Ar,uo=b,co=function(t,r,e){var n=oo(r);n in t?io.f(t,n,uo(0,e)):t[n]=e},ao={};ao[rr("toStringTag")]="z";var so="[object z]"===String(ao),fo=so,lo=G,ho=D,po=rr("toStringTag"),vo=Object,go="Arguments"===ho(function(){return arguments}()),yo=fo?ho:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=vo(t),po))?e:go?ho(r):"Object"===(n=ho(r))&&lo(r.callee)?"Arguments":n},bo=O,mo=u,xo=G,wo=yo,So=ce,Oo=function(){},Eo=[],$o=J("Reflect","construct"),Mo=/^\s*(?:class|function)\b/,Do=bo(Mo.exec),Ao=!Mo.test(Oo),Io=function(t){if(!xo(t))return!1;try{return $o(Oo,Eo,t),!0}catch(t){return!1}},jo=function(t){if(!xo(t))return!1;switch(wo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ao||!!Do(Mo,So(t))}catch(t){return!0}};jo.sham=!0;var Ro=!$o||mo((function(){var t;return Io(Io.call)||!Io(Object)||!Io((function(){t=!0}))||t}))?jo:Io,To=eo,Po=Ro,No=z,_o=rr("species"),Yo=Array,Fo=function(t){var r;return To(t)&&(r=t.constructor,(Po(r)&&(r===Yo||To(r.prototype))||No(r)&&null===(r=r[_o]))&&(r=void 0)),void 0===r?Yo:r},ko=u,Co=nt,Lo=rr("species"),Uo=function(t){return Co>=51||!ko((function(){var r=[];return(r.constructor={})[Lo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Ho=to,Go=u,Wo=eo,qo=z,zo=Ft,Bo=dn,Ko=function(t){if(t>9007199254740991)throw no("Maximum allowed index exceeded");return t},Jo=co,Vo=function(t,r){return new(Fo(t))(0===r?0:r)},Xo=Uo,Qo=nt,Zo=rr("isConcatSpreadable"),ti=Qo>=51||!Go((function(){var t=[];return t[Zo]=!1,t.concat()[0]!==t})),ri=function(t){if(!qo(t))return!1;var r=t[Zo];return void 0!==r?!!r:Wo(t)};Ho({target:"Array",proto:!0,arity:1,forced:!ti||!Xo("concat")},{concat:function(t){var r,e,n,o,i,u=zo(this),c=Vo(u,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(ri(i=-1===r?u:arguments[r]))for(o=Bo(i),Ko(a+o),e=0;e<o;e++,a++)e in i&&Jo(c,a,i[e]);else Ko(a+1),Jo(c,a++,i);return c.length=a,c}});var ei=On,ni=En,oi=Object.keys||function(t){return ei(t,ni)},ii=Ft,ui=oi;to({target:"Object",stat:!0,forced:u((function(){ui(1)}))},{keys:function(t){return ui(ii(t))}});var ci,ai=a,si=Function.prototype,fi=si.apply,li=si.call,di="object"==typeof Reflect&&Reflect.apply||(ai?li.bind(fi):function(){return li.apply(fi,arguments)}),hi=O([].slice),pi=yo,vi=String,gi=function(t){if("Symbol"===pi(t))throw new TypeError("Cannot convert a Symbol value to a string");return vi(t)},yi=eo,bi=G,mi=D,xi=gi,wi=O([].push),Si=to,Oi=J,Ei=di,$i=l,Mi=O,Di=u,Ai=G,Ii=ht,ji=hi,Ri=function(t){if(bi(t))return t;if(yi(t)){for(var r=t.length,e=[],n=0;n<r;n++){var o=t[n];"string"==typeof o?wi(e,o):"number"!=typeof o&&"Number"!==mi(o)&&"String"!==mi(o)||wi(e,xi(o))}var i=e.length,u=!0;return function(t,r){if(u)return u=!1,r;if(yi(this))return r;for(var n=0;n<i;n++)if(e[n]===t)return r}}},Ti=ct,Pi=String,Ni=Oi("JSON","stringify"),_i=Mi(/./.exec),Yi=Mi("".charAt),Fi=Mi("".charCodeAt),ki=Mi("".replace),Ci=Mi(1..toString),Li=/[\uD800-\uDFFF]/g,Ui=/^[\uD800-\uDBFF]$/,Hi=/^[\uDC00-\uDFFF]$/,Gi=!Ti||Di((function(){var t=Oi("Symbol")("stringify detection");return"[null]"!==Ni([t])||"{}"!==Ni({a:t})||"{}"!==Ni(Object(t))})),Wi=Di((function(){return'"\\udf06\\ud834"'!==Ni("\udf06\ud834")||'"\\udead"'!==Ni("\udead")})),qi=function(t,r){var e=ji(arguments),n=Ri(r);if(Ai(n)||void 0!==t&&!Ii(t))return e[1]=function(t,r){if(Ai(n)&&(r=$i(n,this,Pi(t),r)),!Ii(r))return r},Ei(Ni,null,e)},zi=function(t,r,e){var n=Yi(e,r-1),o=Yi(e,r+1);return _i(Ui,t)&&!_i(Hi,o)||_i(Hi,t)&&!_i(Ui,n)?"\\u"+Ci(Fi(t,0),16):t};Ni&&Si({target:"JSON",stat:!0,arity:3,forced:Gi||Wi},{stringify:function(t,r,e){var n=ji(arguments),o=Ei(Gi?qi:Ni,null,n);return Wi&&"string"==typeof o?ki(o,Li,zi):o}}),exports.STORAGE=void 0,(ci=exports.STORAGE||(exports.STORAGE={})).LOCAL="localStorage",ci.SESSION="sessionStorage";var Bi="STORAGE_",Ki=Pr,Ji=function(){var t=Ki(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Vi=u,Xi=o.RegExp,Qi=Vi((function(){var t=Xi("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Zi=Qi||Vi((function(){return!Xi("a","y").sticky})),tu=Qi||Vi((function(){var t=Xi("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),ru={BROKEN_CARET:tu,MISSED_STICKY:Zi,UNSUPPORTED_Y:Qi},eu={},nu=c,ou=Ir,iu=Ar,uu=Pr,cu=C,au=oi;eu.f=nu&&!ou?Object.defineProperties:function(t,r){uu(t);for(var e,n=cu(r),o=au(r),i=o.length,u=0;i>u;)iu.f(t,e=o[u++],n[e]);return t};var su,fu=J("document","documentElement"),lu=Pr,du=eu,hu=En,pu=ve,vu=fu,gu=gr,yu="prototype",bu="script",mu=pe("IE_PROTO"),xu=function(){},wu=function(t){return"<"+bu+">"+t+"</"+bu+">"},Su=function(t){t.write(wu("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ou=function(){try{su=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Ou="undefined"!=typeof document?document.domain&&su?Su(su):(r=gu("iframe"),e="java"+bu+":",r.style.display="none",vu.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(wu("document.F=Object")),t.close(),t.F):Su(su);for(var n=hu.length;n--;)delete Ou[yu][hu[n]];return Ou()};pu[mu]=!0;var Eu=Object.create||function(t,r){var e;return null!==t?(xu[yu]=lu(t),e=new xu,xu[yu]=null,e[mu]=t):e=Ou(),void 0===r?e:du.f(e,r)},$u=u,Mu=o.RegExp,Du=$u((function(){var t=Mu(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Au=u,Iu=o.RegExp,ju=Au((function(){var t=Iu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ru=l,Tu=O,Pu=gi,Nu=Ji,_u=ru,Yu=Dt.exports,Fu=Eu,ku=Ie.get,Cu=Du,Lu=ju,Uu=Yu("native-string-replace",String.prototype.replace),Hu=RegExp.prototype.exec,Gu=Hu,Wu=Tu("".charAt),qu=Tu("".indexOf),zu=Tu("".replace),Bu=Tu("".slice),Ku=function(){var t=/a/,r=/b*/g;return Ru(Hu,t,"a"),Ru(Hu,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),Ju=_u.BROKEN_CARET,Vu=void 0!==/()??/.exec("")[1];(Ku||Vu||Ju||Cu||Lu)&&(Gu=function(t){var r,e,n,o,i,u,c,a=this,s=ku(a),f=Pu(t),l=s.raw;if(l)return l.lastIndex=a.lastIndex,r=Ru(Gu,l,f),a.lastIndex=l.lastIndex,r;var d=s.groups,h=Ju&&a.sticky,p=Ru(Nu,a),v=a.source,g=0,y=f;if(h&&(p=zu(p,"y",""),-1===qu(p,"g")&&(p+="g"),y=Bu(f,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Wu(f,a.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),e=new RegExp("^(?:"+v+")",p)),Vu&&(e=new RegExp("^"+v+"$(?!\\s)",p)),Ku&&(n=a.lastIndex),o=Ru(Hu,h?e:a,y),h?o?(o.input=Bu(o.input,g),o[0]=Bu(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Ku&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Vu&&o&&o.length>1&&Ru(Uu,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=Fu(null),i=0;i<d.length;i++)u[(c=d[i])[0]]=o[c[1]];return o});var Xu=Gu;to({target:"RegExp",proto:!0,forced:/./.exec!==Xu},{exec:Xu});var Qu,Zu,tc=to,rc=l,ec=G,nc=Pr,oc=gi,ic=(Qu=!1,(Zu=/[ac]/).exec=function(){return Qu=!0,/./.exec.apply(this,arguments)},!0===Zu.test("abc")&&Qu),uc=/./.test;tc({target:"RegExp",proto:!0,forced:!ic},{test:function(t){var r=nc(this),e=oc(t),n=r.exec;if(!ec(n))return rc(uc,r,e);var o=rc(n,r,e);return null!==o&&(nc(o),!0)}});var cc=O,ac=mt,sc=G,fc=String,lc=TypeError,dc=function(t,r,e){try{return cc(ac(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}},hc=Pr,pc=function(t){if("object"==typeof t||sc(t))return t;throw new lc("Can't set "+fc(t)+" as a prototype")},vc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=dc(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return hc(e),pc(n),r?t(e,n):e.__proto__=n,e}}():void 0),gc=G,yc=z,bc=vc,mc=function(t,r,e){var n,o;return bc&&gc(n=r.constructor)&&n!==e&&yc(o=n.prototype)&&o!==e.prototype&&bc(t,o),t},xc=z,wc=D,Sc=rr("match"),Oc=function(t){var r;return xc(t)&&(void 0!==(r=t[Sc])?!!r:"RegExp"===wc(t))},Ec=l,$c=Lt,Mc=V,Dc=Ji,Ac=RegExp.prototype,Ic=function(t){var r=t.flags;return void 0!==r||"flags"in Ac||$c(t,"flags")||!Mc(Ac,t)?r:Ec(Dc,t)},jc=Ar.f,Rc=Kr.exports,Tc=Ar,Pc=function(t,r,e){return e.get&&Rc(e.get,r,{getter:!0}),e.set&&Rc(e.set,r,{setter:!0}),Tc.f(t,r,e)},Nc=J,_c=Pc,Yc=c,Fc=rr("species"),kc=c,Cc=o,Lc=O,Uc=zn,Hc=mc,Gc=Br,Wc=Qe.f,qc=V,zc=Oc,Bc=gi,Kc=Ic,Jc=ru,Vc=function(t,r,e){e in t||jc(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},Xc=Xe,Qc=u,Zc=Lt,ta=Ie.enforce,ra=function(t){var r=Nc(t);Yc&&r&&!r[Fc]&&_c(r,Fc,{configurable:!0,get:function(){return this}})},ea=Du,na=ju,oa=rr("match"),ia=Cc.RegExp,ua=ia.prototype,ca=Cc.SyntaxError,aa=Lc(ua.exec),sa=Lc("".charAt),fa=Lc("".replace),la=Lc("".indexOf),da=Lc("".slice),ha=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pa=/a/g,va=/a/g,ga=new ia(pa)!==pa,ya=Jc.MISSED_STICKY,ba=Jc.UNSUPPORTED_Y,ma=kc&&(!ga||ya||ea||na||Qc((function(){return va[oa]=!1,ia(pa)!==pa||ia(va)===va||"/a/i"!==String(ia(pa,"i"))})));if(Uc("RegExp",ma)){for(var xa=function(t,r){var e,n,o,i,u,c,a=qc(ua,this),s=zc(t),f=void 0===r,l=[],d=t;if(!a&&s&&f&&t.constructor===xa)return t;if((s||qc(ua,t))&&(t=t.source,f&&(r=Kc(d))),t=void 0===t?"":Bc(t),r=void 0===r?"":Bc(r),d=t,ea&&"dotAll"in pa&&(n=!!r&&la(r,"s")>-1)&&(r=fa(r,/s/g,"")),e=r,ya&&"sticky"in pa&&(o=!!r&&la(r,"y")>-1)&&ba&&(r=fa(r,/y/g,"")),na&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],u={},c=!1,a=!1,s=0,f="";n<=e;n++){if("\\"===(r=sa(t,n)))r+=sa(t,++n);else if("]"===r)c=!1;else if(!c)switch(!0){case"["===r:c=!0;break;case"("===r:aa(ha,da(t,n+1))&&(n+=2,a=!0),o+=r,s++;continue;case">"===r&&a:if(""===f||Zc(u,f))throw new ca("Invalid capture group name");u[f]=!0,i[i.length]=[f,s],a=!1,f="";continue}a?f+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),u=Hc(ia(t,r),a?this:ua,xa),(n||o||l.length)&&(c=ta(u),n&&(c.dotAll=!0,c.raw=xa(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=sa(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+sa(t,++n);return o}(t),e)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{Gc(u,"source",""===d?"(?:)":d)}catch(t){}return u},wa=Wc(ia),Sa=0;wa.length>Sa;)Vc(xa,ia,wa[Sa++]);ua.constructor=xa,xa.prototype=ua,Xc(Cc,"RegExp",xa,{constructor:!0})}ra("RegExp");var Oa=c,Ea=Du,$a=D,Ma=Pc,Da=Ie.get,Aa=RegExp.prototype,Ia=TypeError;Oa&&Ea&&Ma(Aa,"dotAll",{configurable:!0,get:function(){if(this!==Aa){if("RegExp"===$a(this))return!!Da(this).dotAll;throw new Ia("Incompatible receiver, RegExp required")}}});var ja=c,Ra=ru.MISSED_STICKY,Ta=D,Pa=Pc,Na=Ie.get,_a=RegExp.prototype,Ya=TypeError;ja&&Ra&&Pa(_a,"sticky",{configurable:!0,get:function(){if(this!==_a){if("RegExp"===Ta(this))return!!Na(this).sticky;throw new Ya("Incompatible receiver, RegExp required")}}});var Fa=te.PROPER,ka=Xe,Ca=Pr,La=gi,Ua=u,Ha=Ic,Ga="toString",Wa=RegExp.prototype[Ga],qa=Ua((function(){return"/a/b"!==Wa.call({source:"a",flags:"b"})})),za=Fa&&Wa.name!==Ga;(qa||za)&&ka(RegExp.prototype,Ga,(function(){var t=Ca(this);return"/"+La(t.source)+"/"+La(Ha(t))}),{unsafe:!0});var Ba=/^(1[3-9])\d{9}$/i,Ka=function(){return new RegExp("^\\d{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,"}$"))},Ja=/\D+/g,Va=/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{2})(\d)(\d|X|x)$/,Xa=/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,Qa=/^(0\d{2,3}-\d{7,8})(-\d{1,4})?$/,Za=/^(?:(http|https|ftp):\/\/)?((?:[\w]+\.)+[a-z0-9]+)((?:\/[^/?#]*)+)?(\?[^#]+)?(#.+)?$/i,ts=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:17;return new RegExp("^[a-zA-Z]\\w{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,",").concat(t,"}$"))},rs=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new RegExp("^\\d+(\\.\\d{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,",").concat(t,"})?$"))},es=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new RegExp("^[\\u4E00-\\u9FA5]{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,",").concat(t,"}$"))},ns=yo,os=so?{}.toString:function(){return"[object "+ns(this)+"]"};so||Xe(Object.prototype,"toString",os,{unsafe:!0});var is=mt,us=Ft,cs=T,as=dn,ss=TypeError,fs=function(t){return function(r,e,n,o){is(e);var i=us(r),u=cs(i),c=as(i),a=t?c-1:0,s=t?-1:1;if(n<2)for(;;){if(a in u){o=u[a],a+=s;break}if(a+=s,t?a<0:c<=a)throw new ss("Reduce of empty array with no initial value")}for(;t?a>=0:c>a;a+=s)a in u&&(o=e(o,u[a],a,i));return o}},ls={left:fs(!1),right:fs(!0)},ds=u,hs=function(t,r){var e=[][t];return!!e&&ds((function(){e.call(null,r||function(){return 1},1)}))},ps="process"===D(o.process),vs=ls.left;to({target:"Array",proto:!0,forced:!ps&&nt>79&&nt<83||!hs("reduce")},{reduce:function(t){var r=arguments.length;return vs(this,t,r,r>1?arguments[1]:void 0)}});var gs=O(1..valueOf),ys=en,bs=gi,ms=Y,xs=RangeError,ws=to,Ss=O,Os=en,Es=gs,$s=function(t){var r=bs(ms(this)),e="",n=ys(t);if(n<0||n===1/0)throw new xs("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e},Ms=u,Ds=RangeError,As=String,Is=Math.floor,js=Ss($s),Rs=Ss("".slice),Ts=Ss(1..toFixed),Ps=function(t,r,e){return 0===r?e:r%2==1?Ps(t,r-1,e*t):Ps(t*t,r/2,e)},Ns=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=Is(o/1e7)},_s=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=Is(n/r),n=n%r*1e7},Ys=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=As(t[r]);e=""===e?n:e+js("0",7-n.length)+n}return e};ws({target:"Number",proto:!0,forced:Ms((function(){return"0.000"!==Ts(8e-5,3)||"1"!==Ts(.9,0)||"1.25"!==Ts(1.255,2)||"1000000000000000128"!==Ts(0xde0b6b3a7640080,0)}))||!Ms((function(){Ts({})}))},{toFixed:function(t){var r,e,n,o,i=Es(this),u=Os(t),c=[0,0,0,0,0,0],a="",s="0";if(u<0||u>20)throw new Ds("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return As(i);if(i<0&&(a="-",i=-i),i>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(i*Ps(2,69,1))-69)<0?i*Ps(2,-r,1):i/Ps(2,r,1),e*=4503599627370496,(r=52-r)>0){for(Ns(c,0,e),n=u;n>=7;)Ns(c,1e7,0),n-=7;for(Ns(c,Ps(10,n,1),0),n=r-1;n>=23;)_s(c,1<<23),n-=23;_s(c,1<<n),Ns(c,1,1),_s(c,2),s=Ys(c)}else Ns(c,0,e),Ns(c,1<<-r,0),s=Ys(c)+js("0",u);return s=u>0?a+((o=s.length)<=u?"0."+js("0",u-o)+s:Rs(s,0,o-u)+"."+Rs(s,o-u)):a+s}});var Fs=o,ks="\t\n\v\f\r \u2028\u2029\ufeff",Cs=Y,Ls=gi,Us=ks,Hs=O("".replace),Gs=RegExp("^["+Us+"]+"),Ws=RegExp("(^|[^"+Us+"])["+Us+"]+$"),qs=function(t){return function(r){var e=Ls(Cs(r));return 1&t&&(e=Hs(e,Gs,"")),2&t&&(e=Hs(e,Ws,"$1")),e}},zs={start:qs(1),end:qs(2),trim:qs(3)},Bs=to,Ks=c,Js=o,Vs=Fs,Xs=O,Qs=zn,Zs=Lt,tf=mc,rf=V,ef=ht,nf=sr,of=u,uf=Qe.f,cf=i.f,af=Ar.f,sf=gs,ff=zs.trim,lf="Number",df=Js[lf];Vs[lf];var hf=df.prototype,pf=Js.TypeError,vf=Xs("".slice),gf=Xs("".charCodeAt),yf=function(t){var r,e,n,o,i,u,c,a,s=nf(t,"number");if(ef(s))throw new pf("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=ff(s),43===(r=gf(s,0))||45===r){if(88===(e=gf(s,2))||120===e)return NaN}else if(48===r){switch(gf(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(u=(i=vf(s,2)).length,c=0;c<u;c++)if((a=gf(i,c))<48||a>o)return NaN;return parseInt(i,n)}return+s},bf=Qs(lf,!df(" 0o1")||!df("0b1")||df("+0x1")),mf=function(t){var r,e=arguments.length<1?0:df(function(t){var r=nf(t,"number");return"bigint"==typeof r?r:yf(r)}(t));return rf(hf,r=this)&&of((function(){sf(r)}))?tf(Object(e),this,mf):e};mf.prototype=hf,bf&&(hf.constructor=mf),Bs({global:!0,constructor:!0,wrap:!0,forced:bf},{Number:mf});bf&&function(t,r){for(var e,n=Ks?uf(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)Zs(r,e=n[o])&&!Zs(t,e)&&af(t,e,cf(r,e))}(Vs[lf],df);var xf=to,wf=T,Sf=C,Of=hs,Ef=O([].join);xf({target:"Array",proto:!0,forced:wf!==Object||!Of("join",",")},{join:function(t){return Ef(Sf(this),void 0===t?",":t)}});var $f=Ft,Mf=cn,Df=dn,Af=rr,If=Eu,jf=Ar.f,Rf=Af("unscopables"),Tf=Array.prototype;void 0===Tf[Rf]&&jf(Tf,Rf,{configurable:!0,value:If(null)});var Pf=function(t){Tf[Rf][t]=!0},Nf=function(t){for(var r=$f(this),e=Df(r),n=arguments.length,o=Mf(n>1?arguments[1]:void 0,e),i=n>2?arguments[2]:void 0,u=void 0===i?e:Mf(i,e);u>o;)r[o++]=t;return r},_f=Pf;to({target:"Array",proto:!0},{fill:Nf}),_f("fill");var Yf=1e6,Ff=1e6,kf="[big.js] ",Cf=kf+"Invalid ",Lf=Cf+"decimal places",Uf=Cf+"rounding mode",Hf=kf+"Division by zero",Gf={},Wf=void 0,qf=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function zf(t,r,e,n){var o=t.c;if(e===Wf&&(e=t.constructor.RM),0!==e&&1!==e&&2!==e&&3!==e)throw Error(Uf);if(r<1)n=3===e&&(n||!!o[0])||0===r&&(1===e&&o[0]>=5||2===e&&(o[0]>5||5===o[0]&&(n||o[1]!==Wf))),o.length=1,n?(t.e=t.e-r+1,o[0]=1):o[0]=t.e=0;else if(r<o.length){if(n=1===e&&o[r]>=5||2===e&&(o[r]>5||5===o[r]&&(n||o[r+1]!==Wf||1&o[r-1]))||3===e&&(n||!!o[0]),o.length=r,n)for(;++o[--r]>9;)if(o[r]=0,0===r){++t.e,o.unshift(1);break}for(r=o.length;!o[--r];)o.pop()}return t}function Bf(t,r,e){var n=t.e,o=t.c.join(""),i=o.length;if(r)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)o="0"+o;o="0."+o}else if(n>0)if(++n>i)for(n-=i;n--;)o+="0";else n<i&&(o=o.slice(0,n)+"."+o.slice(n));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return t.s<0&&e?"-"+o:o}Gf.abs=function(){var t=new this.constructor(this);return t.s=1,t},Gf.cmp=function(t){var r,e=this,n=e.c,o=(t=new e.constructor(t)).c,i=e.s,u=t.s,c=e.e,a=t.e;if(!n[0]||!o[0])return n[0]?i:o[0]?-u:0;if(i!=u)return i;if(r=i<0,c!=a)return c>a^r?1:-1;for(u=(c=n.length)<(a=o.length)?c:a,i=-1;++i<u;)if(n[i]!=o[i])return n[i]>o[i]^r?1:-1;return c==a?0:c>a^r?1:-1},Gf.div=function(t){var r=this,e=r.constructor,n=r.c,o=(t=new e(t)).c,i=r.s==t.s?1:-1,u=e.DP;if(u!==~~u||u<0||u>Yf)throw Error(Lf);if(!o[0])throw Error(Hf);if(!n[0])return t.s=i,t.c=[t.e=0],t;var c,a,s,f,l,d=o.slice(),h=c=o.length,p=n.length,v=n.slice(0,c),g=v.length,y=t,b=y.c=[],m=0,x=u+(y.e=r.e-t.e)+1;for(y.s=i,i=x<0?0:x,d.unshift(0);g++<c;)v.push(0);do{for(s=0;s<10;s++){if(c!=(g=v.length))f=c>g?1:-1;else for(l=-1,f=0;++l<c;)if(o[l]!=v[l]){f=o[l]>v[l]?1:-1;break}if(!(f<0))break;for(a=g==c?o:d;g;){if(v[--g]<a[g]){for(l=g;l&&!v[--l];)v[l]=9;--v[l],v[g]+=10}v[g]-=a[g]}for(;!v[0];)v.shift()}b[m++]=f?s:++s,v[0]&&f?v[g]=n[h]||0:v=[n[h]]}while((h++<p||v[0]!==Wf)&&i--);return b[0]||1==m||(b.shift(),y.e--,x--),m>x&&zf(y,x,e.RM,v[0]!==Wf),y},Gf.eq=function(t){return 0===this.cmp(t)},Gf.gt=function(t){return this.cmp(t)>0},Gf.gte=function(t){return this.cmp(t)>-1},Gf.lt=function(t){return this.cmp(t)<0},Gf.lte=function(t){return this.cmp(t)<1},Gf.minus=Gf.sub=function(t){var r,e,n,o,i=this,u=i.constructor,c=i.s,a=(t=new u(t)).s;if(c!=a)return t.s=-a,i.plus(t);var s=i.c.slice(),f=i.e,l=t.c,d=t.e;if(!s[0]||!l[0])return l[0]?t.s=-a:s[0]?t=new u(i):t.s=1,t;if(c=f-d){for((o=c<0)?(c=-c,n=s):(d=f,n=l),n.reverse(),a=c;a--;)n.push(0);n.reverse()}else for(e=((o=s.length<l.length)?s:l).length,c=a=0;a<e;a++)if(s[a]!=l[a]){o=s[a]<l[a];break}if(o&&(n=s,s=l,l=n,t.s=-t.s),(a=(e=l.length)-(r=s.length))>0)for(;a--;)s[r++]=0;for(a=r;e>c;){if(s[--e]<l[e]){for(r=e;r&&!s[--r];)s[r]=9;--s[r],s[e]+=10}s[e]-=l[e]}for(;0===s[--a];)s.pop();for(;0===s[0];)s.shift(),--d;return s[0]||(t.s=1,s=[d=0]),t.c=s,t.e=d,t},Gf.mod=function(t){var r,e=this,n=e.constructor,o=e.s,i=(t=new n(t)).s;if(!t.c[0])throw Error(Hf);return e.s=t.s=1,r=1==t.cmp(e),e.s=o,t.s=i,r?new n(e):(o=n.DP,i=n.RM,n.DP=n.RM=0,e=e.div(t),n.DP=o,n.RM=i,this.minus(e.times(t)))},Gf.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},Gf.plus=Gf.add=function(t){var r,e,n,o=this,i=o.constructor;if(t=new i(t),o.s!=t.s)return t.s=-t.s,o.minus(t);var u=o.e,c=o.c,a=t.e,s=t.c;if(!c[0]||!s[0])return s[0]||(c[0]?t=new i(o):t.s=o.s),t;if(c=c.slice(),r=u-a){for(r>0?(a=u,n=s):(r=-r,n=c),n.reverse();r--;)n.push(0);n.reverse()}for(c.length-s.length<0&&(n=s,s=c,c=n),r=s.length,e=0;r;c[r]%=10)e=(c[--r]=c[r]+s[r]+e)/10|0;for(e&&(c.unshift(e),++a),r=c.length;0===c[--r];)c.pop();return t.c=c,t.e=a,t},Gf.pow=function(t){var r=this,e=new r.constructor("1"),n=e,o=t<0;if(t!==~~t||t<-1e6||t>Ff)throw Error(Cf+"exponent");for(o&&(t=-t);1&t&&(n=n.times(r)),t>>=1;)r=r.times(r);return o?e.div(n):n},Gf.prec=function(t,r){if(t!==~~t||t<1||t>Yf)throw Error(Cf+"precision");return zf(new this.constructor(this),t,r)},Gf.round=function(t,r){if(t===Wf)t=0;else if(t!==~~t||t<-Yf||t>Yf)throw Error(Lf);return zf(new this.constructor(this),t+this.e+1,r)},Gf.sqrt=function(){var t,r,e,n=this,o=n.constructor,i=n.s,u=n.e,c=new o("0.5");if(!n.c[0])return new o(n);if(i<0)throw Error(kf+"No square root");0===(i=Math.sqrt(n+""))||i===1/0?((r=n.c.join("")).length+u&1||(r+="0"),u=((u+1)/2|0)-(u<0||1&u),t=new o(((i=Math.sqrt(r))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+u)):t=new o(i+""),u=t.e+(o.DP+=4);do{e=t,t=c.times(e.plus(n.div(e)))}while(e.c.slice(0,u).join("")!==t.c.slice(0,u).join(""));return zf(t,(o.DP-=4)+t.e+1,o.RM)},Gf.times=Gf.mul=function(t){var r,e=this,n=e.constructor,o=e.c,i=(t=new n(t)).c,u=o.length,c=i.length,a=e.e,s=t.e;if(t.s=e.s==t.s?1:-1,!o[0]||!i[0])return t.c=[t.e=0],t;for(t.e=a+s,u<c&&(r=o,o=i,i=r,s=u,u=c,c=s),r=new Array(s=u+c);s--;)r[s]=0;for(a=c;a--;){for(c=0,s=u+a;s>a;)c=r[s]+i[a]*o[s-a-1]+c,r[s--]=c%10,c=c/10|0;r[s]=c}for(c?++t.e:r.shift(),a=r.length;!r[--a];)r.pop();return t.c=r,t},Gf.toExponential=function(t,r){var e=this,n=e.c[0];if(t!==Wf){if(t!==~~t||t<0||t>Yf)throw Error(Lf);for(e=zf(new e.constructor(e),++t,r);e.c.length<t;)e.c.push(0)}return Bf(e,!0,!!n)},Gf.toFixed=function(t,r){var e=this,n=e.c[0];if(t!==Wf){if(t!==~~t||t<0||t>Yf)throw Error(Lf);for(t=t+(e=zf(new e.constructor(e),t+e.e+1,r)).e+1;e.c.length<t;)e.c.push(0)}return Bf(e,!1,!!n)},Gf[Symbol.for("nodejs.util.inspect.custom")]=Gf.toJSON=Gf.toString=function(){var t=this,r=t.constructor;return Bf(t,t.e<=r.NE||t.e>=r.PE,!!t.c[0])},Gf.toNumber=function(){var t=Number(Bf(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(kf+"Imprecise conversion");return t},Gf.toPrecision=function(t,r){var e=this,n=e.constructor,o=e.c[0];if(t!==Wf){if(t!==~~t||t<1||t>Yf)throw Error(Cf+"precision");for(e=zf(new n(e),t,r);e.c.length<t;)e.c.push(0)}return Bf(e,t<=e.e||e.e<=n.NE||e.e>=n.PE,!!o)},Gf.valueOf=function(){var t=this,r=t.constructor;if(!0===r.strict)throw Error(kf+"valueOf disallowed");return Bf(t,t.e<=r.NE||t.e>=r.PE,!0)};var Kf=function t(){function r(e){var n=this;if(!(n instanceof r))return e===Wf?t():new r(e);if(e instanceof r)n.s=e.s,n.e=e.e,n.c=e.c.slice();else{if("string"!=typeof e){if(!0===r.strict&&"bigint"!=typeof e)throw TypeError(Cf+"value");e=0===e&&1/e<0?"-0":String(e)}!function(t,r){var e,n,o;if(!qf.test(r))throw Error(Cf+"number");t.s="-"==r.charAt(0)?(r=r.slice(1),-1):1,(e=r.indexOf("."))>-1&&(r=r.replace(".",""));(n=r.search(/e/i))>0?(e<0&&(e=n),e+=+r.slice(n+1),r=r.substring(0,n)):e<0&&(e=r.length);for(o=r.length,n=0;n<o&&"0"==r.charAt(n);)++n;if(n==o)t.c=[t.e=0];else{for(;o>0&&"0"==r.charAt(--o););for(t.e=e-n-1,t.c=[],e=0;n<=o;)t.c[e++]=+r.charAt(n++)}}(n,e)}n.constructor=r}return r.prototype=Gf,r.DP=20,r.RM=1,r.NE=-7,r.PE=21,r.strict=false,r.roundDown=0,r.roundHalfUp=1,r.roundHalfEven=2,r.roundUp=3,r}(),Jf=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return new Kf(t).times(new Kf(r))})).toString()},Vf=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return new Kf(t).div(new Kf(r))})).toString()},Xf=o,Qf=u,Zf=gi,tl=zs.trim,rl=ks,el=O("".charAt),nl=Xf.parseFloat,ol=Xf.Symbol,il=ol&&ol.iterator,ul=1/nl(rl+"-0")!=-1/0||il&&!Qf((function(){nl(Object(il))}))?function(t){var r=tl(Zf(t)),e=nl(r);return 0===e&&"-"===el(r,0)?-0:e}:nl;to({global:!0,forced:parseFloat!==ul},{parseFloat:ul});var cl=D,al=O,sl=function(t){if("Function"===cl(t))return al(t)},fl=Xe,ll=Xu,dl=u,hl=rr,pl=Br,vl=hl("species"),gl=RegExp.prototype,yl=function(t,r,e,n){var o=hl(t),i=!dl((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!dl((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[vl]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var c=sl(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var u=sl(t),a=r.exec;return a===ll||a===gl.exec?i&&!o?{done:!0,value:c(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));fl(String.prototype,t,a[0]),fl(gl,o,a[1])}n&&pl(gl[o],"sham",!0)},bl=O,ml=en,xl=gi,wl=Y,Sl=bl("".charAt),Ol=bl("".charCodeAt),El=bl("".slice),$l=function(t){return function(r,e){var n,o,i=xl(wl(r)),u=ml(e),c=i.length;return u<0||u>=c?t?"":void 0:(n=Ol(i,u))<55296||n>56319||u+1===c||(o=Ol(i,u+1))<56320||o>57343?t?Sl(i,u):n:t?El(i,u,u+2):o-56320+(n-55296<<10)+65536}},Ml={codeAt:$l(!1),charAt:$l(!0)}.charAt,Dl=function(t,r,e){return r+(e?Ml(t,r).length:1)},Al=O,Il=Ft,jl=Math.floor,Rl=Al("".charAt),Tl=Al("".replace),Pl=Al("".slice),Nl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_l=/\$([$&'`]|\d{1,2})/g,Yl=l,Fl=Pr,kl=G,Cl=D,Ll=Xu,Ul=TypeError,Hl=function(t,r){var e=t.exec;if(kl(e)){var n=Yl(e,t,r);return null!==n&&Fl(n),n}if("RegExp"===Cl(t))return Yl(Ll,t,r);throw new Ul("RegExp#exec called on incompatible receiver")},Gl=di,Wl=l,ql=O,zl=yl,Bl=u,Kl=Pr,Jl=G,Vl=P,Xl=en,Ql=fn,Zl=gi,td=Y,rd=Dl,ed=St,nd=function(t,r,e,n,o,i){var u=e+t.length,c=n.length,a=_l;return void 0!==o&&(o=Il(o),a=Nl),Tl(i,a,(function(i,a){var s;switch(Rl(a,0)){case"$":return"$";case"&":return t;case"`":return Pl(r,0,e);case"'":return Pl(r,u);case"<":s=o[Pl(a,1,-1)];break;default:var f=+a;if(0===f)return i;if(f>c){var l=jl(f/10);return 0===l?i:l<=c?void 0===n[l-1]?Rl(a,1):n[l-1]+Rl(a,1):i}s=n[f-1]}return void 0===s?"":s}))},od=Hl,id=rr("replace"),ud=Math.max,cd=Math.min,ad=ql([].concat),sd=ql([].push),fd=ql("".indexOf),ld=ql("".slice),dd="$0"==="a".replace(/./,"$0"),hd=!!/./[id]&&""===/./[id]("a","$0"),pd=!Bl((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));zl("replace",(function(t,r,e){var n=hd?"$":"$0";return[function(t,e){var n=td(this),o=Vl(t)?void 0:ed(t,id);return o?Wl(o,t,n,e):Wl(r,Zl(n),t,e)},function(t,o){var i=Kl(this),u=Zl(t);if("string"==typeof o&&-1===fd(o,n)&&-1===fd(o,"$<")){var c=e(r,i,u,o);if(c.done)return c.value}var a=Jl(o);a||(o=Zl(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=od(i,u))&&(sd(d,l),f);){""===Zl(l[0])&&(i.lastIndex=rd(u,Ql(i.lastIndex),s))}for(var h,p="",v=0,g=0;g<d.length;g++){for(var y,b=Zl((l=d[g])[0]),m=ud(cd(Xl(l.index),u.length),0),x=[],w=1;w<l.length;w++)sd(x,void 0===(h=l[w])?h:String(h));var S=l.groups;if(a){var O=ad([b],x,m,u);void 0!==S&&sd(O,S),y=Zl(Gl(o,void 0,O))}else y=nd(b,u,m,x,S,o);m>=v&&(p+=ld(u,v,m)+y,v=m+b.length)}return p+ld(u,v)}]}),!pd||!dd||hd);var vd=te.PROPER,gd=u,yd=ks,bd=zs.trim;to({target:"String",proto:!0,forced:function(t){return gd((function(){return!!yd[t]()||"
"!=="
"[t]()||vd&&yd[t].name!==t}))}("trim")},{trim:function(){return bd(this)}});var md=to,xd=eo,wd=Ro,Sd=z,Od=cn,Ed=dn,$d=C,Md=co,Dd=rr,Ad=hi,Id=Uo("slice"),jd=Dd("species"),Rd=Array,Td=Math.max;md({target:"Array",proto:!0,forced:!Id},{slice:function(t,r){var e,n,o,i=$d(this),u=Ed(i),c=Od(t,u),a=Od(void 0===r?u:r,u);if(xd(i)&&(e=i.constructor,(wd(e)&&(e===Rd||xd(e.prototype))||Sd(e)&&null===(e=e[jd]))&&(e=void 0),e===Rd||void 0===e))return Ad(i,c,a);for(n=new(void 0===e?Rd:e)(Td(a-c,0)),o=0;c<a;c++,o++)c in i&&Md(n,o,i[c]);return n.length=o,n}});var Pd=yn.includes,Nd=Pf;to({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(t){return Pd(this,t,arguments.length>1?arguments[1]:void 0)}}),Nd("includes");var _d=l,Yd=Pr,Fd=P,kd=fn,Cd=gi,Ld=Y,Ud=St,Hd=Dl,Gd=Hl;yl("match",(function(t,r,e){return[function(r){var e=Ld(this),n=Fd(r)?void 0:Ud(r,t);return n?_d(n,r,e):new RegExp(r)[t](Cd(e))},function(t){var n=Yd(this),o=Cd(t),i=e(r,n,o);if(i.done)return i.value;if(!n.global)return Gd(n,o);var u=n.unicode;n.lastIndex=0;for(var c,a=[],s=0;null!==(c=Gd(n,o));){var f=Cd(c[0]);a[s]=f,""===f&&(n.lastIndex=Hd(o,kd(n.lastIndex),u)),s++}return 0===s?null:a}]}));var Wd=Ro,qd=vt,zd=TypeError,Bd=Pr,Kd=function(t){if(Wd(t))return t;throw new zd(qd(t)+" is not a constructor")},Jd=P,Vd=rr("species"),Xd=cn,Qd=dn,Zd=co,th=Array,rh=Math.max,eh=di,nh=l,oh=O,ih=yl,uh=Pr,ch=P,ah=Oc,sh=Y,fh=function(t,r){var e,n=Bd(t).constructor;return void 0===n||Jd(e=Bd(n)[Vd])?r:Kd(e)},lh=Dl,dh=fn,hh=gi,ph=St,vh=function(t,r,e){for(var n=Qd(t),o=Xd(r,n),i=Xd(void 0===e?n:e,n),u=th(rh(i-o,0)),c=0;o<i;o++,c++)Zd(u,c,t[o]);return u.length=c,u},gh=Hl,yh=Xu,bh=u,mh=ru.UNSUPPORTED_Y,xh=4294967295,wh=Math.min,Sh=[].push,Oh=oh(/./.exec),Eh=oh(Sh),$h=oh("".slice),Mh=!bh((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));ih("split",(function(t,r,e){var n;return n="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var n=hh(sh(this)),o=void 0===e?xh:e>>>0;if(0===o)return[];if(void 0===t)return[n];if(!ah(t))return nh(r,n,t,o);for(var i,u,c,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=nh(yh,l,n))&&!((u=l.lastIndex)>f&&(Eh(a,$h(n,f,i.index)),i.length>1&&i.index<n.length&&eh(Sh,a,vh(i,1)),c=i[0].length,f=u,a.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!c&&Oh(l,"")||Eh(a,""):Eh(a,$h(n,f)),a.length>o?vh(a,0,o):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:nh(r,this,t,e)}:r,[function(r,e){var o=sh(this),i=ch(r)?void 0:ph(r,t);return i?nh(i,r,o,e):nh(n,hh(o),r,e)},function(t,o){var i=uh(this),u=hh(t),c=e(n,i,u,o,n!==r);if(c.done)return c.value;var a=fh(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mh?"g":"y"),l=new a(mh?"^(?:"+i.source+")":i,f),d=void 0===o?xh:o>>>0;if(0===d)return[];if(0===u.length)return null===gh(l,u)?[u]:[];for(var h=0,p=0,v=[];p<u.length;){l.lastIndex=mh?0:p;var g,y=gh(l,mh?$h(u,p):u);if(null===y||(g=wh(dh(l.lastIndex+(mh?p:0)),u.length))===h)p=lh(u,p,s);else{if(Eh(v,$h(u,h,p)),v.length===d)return v;for(var b=1;b<=y.length-1;b++)if(Eh(v,y[b]),v.length===d)return v;p=h=g}}return Eh(v,$h(u,h)),v}]}),!Mh,mh);exports.bankCardFormat=function(t){var r,e=t.replace(/\s|\D/gi,"");return null===(r=/(\d{4})?(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,4})?/.exec(e))||void 0===r?void 0:r.slice(1,6).join(" ").trim()},exports.bigDivide=Vf,exports.bigFenToYuan=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Vf(t,100)).toFixed(r)},exports.bigMultiply=Jf,exports.bigPlus=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return new Kf(t).plus(new Kf(r))}),0).toString()},exports.bigRound=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new Kf(t).round(r).toString()},exports.bigSubtract=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return new Kf(t).minus(new Kf(r))})).toString()},exports.bigYuanToFen=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Jf(t,100)).toFixed(r)},exports.bigYuanTowan=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t?Number(Vf(t,1e4)).toFixed(r):r>0?"0."+new Array(r).fill(0).join(""):"0"},exports.cardFormat=function(t){var r,e=t.replace(/\s|\D/gi,""),n=null===(r=/(\d{6})?(\d{1,8})?(\d{1,4})?/.exec(e))||void 0===r?void 0:r.slice(1,4).join(" ").trim(),o=t[19];return["x","X"].includes(o)?"".concat(n).concat(o):n},exports.colorHexToRGB=function(t){var r=t.replace("#","0x");return"rgb("+(r>>16)+","+(r>>8&255)+","+(255&r)+")"},exports.colorRGBToHex=function(t){var r=t.split(/[^\d]+/);return"#"+(r[1]<<16|r[2]<<8|r[3]).toString(16)},exports.dateAddDay=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e(r).add(t,"day").format(n)},exports.dateAddMonth=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e(r).add(t,"month").format(n)},exports.dateAddYears=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e(r).add(t,"years").format(n)},exports.dateDiffDay=function(t){var r=arguments.length>1&&void 0!==arguments[1]?