@jl-org/data-to-ts
Version:
JSON 或者 JS 转 TS
1 lines • 82.5 kB
JavaScript
import t from"util";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}},o={},i={},u={},a=c;function c(t,e){if(!t)throw new Error(e||"Assertion failed")}c.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var f,l={exports:{}},p={exports:{}};try{var s=require("util");if("function"!=typeof s.inherits)throw"";l.exports=s.inherits}catch(t){l.exports=(f||(f=1,"function"==typeof Object.create?p.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:p.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),p.exports)}var y=l.exports,h=a,g=y;function b(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function d(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function m(t){return 1===t.length?"0"+t:t}function v(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}u.inherits=g,u.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(var n=0,o=0;o<t.length;o++){var i=t.charCodeAt(o);i<128?r[n++]=i:i<2048?(r[n++]=i>>6|192,r[n++]=63&i|128):b(t,o)?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++o)),r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=63&i|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=63&i|128)}else for(o=0;o<t.length;o++)r[o]=0|t[o];return r},u.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=m(t[r].toString(16));return e},u.htonl=d,u.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t[n];"little"===e&&(o=d(o)),r+=v(o.toString(16))}return r},u.zero2=m,u.zero8=v,u.join32=function(t,e,r,n){var o=r-e;h(o%4==0);for(var i=new Array(o/4),u=0,a=e;u<i.length;u++,a+=4){var c;c="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],i[u]=c>>>0}return i},u.split32=function(t,e){for(var r=new Array(4*t.length),n=0,o=0;n<t.length;n++,o+=4){var i=t[n];"big"===e?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},u.rotr32=function(t,e){return t>>>e|t<<32-e},u.rotl32=function(t,e){return t<<e|t>>>32-e},u.sum32=function(t,e){return t+e>>>0},u.sum32_3=function(t,e,r){return t+e+r>>>0},u.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},u.sum32_5=function(t,e,r,n,o){return t+e+r+n+o>>>0},u.sum64=function(t,e,r,n){var o=t[e],i=n+t[e+1]>>>0,u=(i<n?1:0)+r+o;t[e]=u>>>0,t[e+1]=i},u.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},u.sum64_lo=function(t,e,r,n){return e+n>>>0},u.sum64_4_hi=function(t,e,r,n,o,i,u,a){var c=0,f=e;return c+=(f=f+n>>>0)<e?1:0,c+=(f=f+i>>>0)<i?1:0,t+r+o+u+(c+=(f=f+a>>>0)<a?1:0)>>>0},u.sum64_4_lo=function(t,e,r,n,o,i,u,a){return e+n+i+a>>>0},u.sum64_5_hi=function(t,e,r,n,o,i,u,a,c,f){var l=0,p=e;return l+=(p=p+n>>>0)<e?1:0,l+=(p=p+i>>>0)<i?1:0,l+=(p=p+a>>>0)<a?1:0,t+r+o+u+c+(l+=(p=p+f>>>0)<f?1:0)>>>0},u.sum64_5_lo=function(t,e,r,n,o,i,u,a,c,f){return e+n+i+a+f>>>0},u.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},u.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},u.shr64_hi=function(t,e,r){return t>>>r},u.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var w={},S=u,j=a;function O(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}w.BlockHash=O,O.prototype.update=function(t,e){if(t=S.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=S.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},O.prototype.digest=function(t){return this.update(this._pad()),j(null===this.pending),this._digest(t)},O.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=t>>>24&255,n[o++]=t>>>16&255,n[o++]=t>>>8&255,n[o++]=255&t}else for(n[o++]=255&t,n[o++]=t>>>8&255,n[o++]=t>>>16&255,n[o++]=t>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n};var A={},x={},$=u.rotr32;function P(t,e,r){return t&e^~t&r}function _(t,e,r){return t&e^t&r^e&r}function E(t,e,r){return t^e^r}x.ft_1=function(t,e,r,n){return 0===t?P(e,r,n):1===t||3===t?E(e,r,n):2===t?_(e,r,n):void 0},x.ch32=P,x.maj32=_,x.p32=E,x.s0_256=function(t){return $(t,2)^$(t,13)^$(t,22)},x.s1_256=function(t){return $(t,6)^$(t,11)^$(t,25)},x.g0_256=function(t){return $(t,7)^$(t,18)^t>>>3},x.g1_256=function(t){return $(t,17)^$(t,19)^t>>>10};var T=u,F=w,I=x,k=T.rotl32,D=T.sum32,R=T.sum32_5,C=I.ft_1,G=F.BlockHash,N=[1518500249,1859775393,2400959708,3395469782];function U(){if(!(this instanceof U))return new U;G.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}T.inherits(U,G);var W=U;U.blockSize=512,U.outSize=160,U.hmacStrength=80,U.padLength=64,U.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=k(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],c=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),l=R(k(o,5),C(f,i,u,a),c,r[n],N[f]);c=a,a=u,u=k(i,30),i=o,o=l}this.h[0]=D(this.h[0],o),this.h[1]=D(this.h[1],i),this.h[2]=D(this.h[2],u),this.h[3]=D(this.h[3],a),this.h[4]=D(this.h[4],c)},U.prototype._digest=function(t){return"hex"===t?T.toHex32(this.h,"big"):T.split32(this.h,"big")};var B=u,z=w,M=x,L=a,V=B.sum32,H=B.sum32_4,q=B.sum32_5,J=M.ch32,Z=M.maj32,K=M.s0_256,X=M.s1_256,Y=M.g0_256,Q=M.g1_256,tt=z.BlockHash,et=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function rt(){if(!(this instanceof rt))return new rt;tt.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=et,this.W=new Array(64)}B.inherits(rt,tt);var nt=rt;rt.blockSize=512,rt.outSize=256,rt.hmacStrength=192,rt.padLength=64,rt.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=H(Q(r[n-2]),r[n-7],Y(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],c=this.h[4],f=this.h[5],l=this.h[6],p=this.h[7];for(L(this.k.length===r.length),n=0;n<r.length;n++){var s=q(p,X(c),J(c,f,l),this.k[n],r[n]),y=V(K(o),Z(o,i,u));p=l,l=f,f=c,c=V(a,s),a=u,u=i,i=o,o=V(s,y)}this.h[0]=V(this.h[0],o),this.h[1]=V(this.h[1],i),this.h[2]=V(this.h[2],u),this.h[3]=V(this.h[3],a),this.h[4]=V(this.h[4],c),this.h[5]=V(this.h[5],f),this.h[6]=V(this.h[6],l),this.h[7]=V(this.h[7],p)},rt.prototype._digest=function(t){return"hex"===t?B.toHex32(this.h,"big"):B.split32(this.h,"big")};var ot=u,it=nt;function ut(){if(!(this instanceof ut))return new ut;it.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ot.inherits(ut,it);var at=ut;ut.blockSize=512,ut.outSize=224,ut.hmacStrength=192,ut.padLength=64,ut.prototype._digest=function(t){return"hex"===t?ot.toHex32(this.h.slice(0,7),"big"):ot.split32(this.h.slice(0,7),"big")};var ct=u,ft=w,lt=a,pt=ct.rotr64_hi,st=ct.rotr64_lo,yt=ct.shr64_hi,ht=ct.shr64_lo,gt=ct.sum64,bt=ct.sum64_hi,dt=ct.sum64_lo,mt=ct.sum64_4_hi,vt=ct.sum64_4_lo,wt=ct.sum64_5_hi,St=ct.sum64_5_lo,jt=ft.BlockHash,Ot=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function At(){if(!(this instanceof At))return new At;jt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Ot,this.W=new Array(160)}ct.inherits(At,jt);var xt=At;function $t(t,e,r,n,o){var i=t&r^~t&o;return i<0&&(i+=4294967296),i}function Pt(t,e,r,n,o,i){var u=e&n^~e&i;return u<0&&(u+=4294967296),u}function _t(t,e,r,n,o){var i=t&r^t&o^r&o;return i<0&&(i+=4294967296),i}function Et(t,e,r,n,o,i){var u=e&n^e&i^n&i;return u<0&&(u+=4294967296),u}function Tt(t,e){var r=pt(t,e,28)^pt(e,t,2)^pt(e,t,7);return r<0&&(r+=4294967296),r}function Ft(t,e){var r=st(t,e,28)^st(e,t,2)^st(e,t,7);return r<0&&(r+=4294967296),r}function It(t,e){var r=pt(t,e,14)^pt(t,e,18)^pt(e,t,9);return r<0&&(r+=4294967296),r}function kt(t,e){var r=st(t,e,14)^st(t,e,18)^st(e,t,9);return r<0&&(r+=4294967296),r}function Dt(t,e){var r=pt(t,e,1)^pt(t,e,8)^yt(t,e,7);return r<0&&(r+=4294967296),r}function Rt(t,e){var r=st(t,e,1)^st(t,e,8)^ht(t,e,7);return r<0&&(r+=4294967296),r}function Ct(t,e){var r=pt(t,e,19)^pt(e,t,29)^yt(t,e,6);return r<0&&(r+=4294967296),r}function Gt(t,e){var r=st(t,e,19)^st(e,t,29)^ht(t,e,6);return r<0&&(r+=4294967296),r}At.blockSize=1024,At.outSize=512,At.hmacStrength=192,At.padLength=128,At.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var o=Ct(r[n-4],r[n-3]),i=Gt(r[n-4],r[n-3]),u=r[n-14],a=r[n-13],c=Dt(r[n-30],r[n-29]),f=Rt(r[n-30],r[n-29]),l=r[n-32],p=r[n-31];r[n]=mt(o,i,u,a,c,f,l,p),r[n+1]=vt(o,i,u,a,c,f,l,p)}},At.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],o=this.h[1],i=this.h[2],u=this.h[3],a=this.h[4],c=this.h[5],f=this.h[6],l=this.h[7],p=this.h[8],s=this.h[9],y=this.h[10],h=this.h[11],g=this.h[12],b=this.h[13],d=this.h[14],m=this.h[15];lt(this.k.length===r.length);for(var v=0;v<r.length;v+=2){var w=d,S=m,j=It(p,s),O=kt(p,s),A=$t(p,s,y,h,g),x=Pt(p,s,y,h,g,b),$=this.k[v],P=this.k[v+1],_=r[v],E=r[v+1],T=wt(w,S,j,O,A,x,$,P,_,E),F=St(w,S,j,O,A,x,$,P,_,E);w=Tt(n,o),S=Ft(n,o),j=_t(n,o,i,u,a),O=Et(n,o,i,u,a,c);var I=bt(w,S,j,O),k=dt(w,S,j,O);d=g,m=b,g=y,b=h,y=p,h=s,p=bt(f,l,T,F),s=dt(l,l,T,F),f=a,l=c,a=i,c=u,i=n,u=o,n=bt(T,F,I,k),o=dt(T,F,I,k)}gt(this.h,0,n,o),gt(this.h,2,i,u),gt(this.h,4,a,c),gt(this.h,6,f,l),gt(this.h,8,p,s),gt(this.h,10,y,h),gt(this.h,12,g,b),gt(this.h,14,d,m)},At.prototype._digest=function(t){return"hex"===t?ct.toHex32(this.h,"big"):ct.split32(this.h,"big")};var Nt=u,Ut=xt;function Wt(){if(!(this instanceof Wt))return new Wt;Ut.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Nt.inherits(Wt,Ut);var Bt=Wt;Wt.blockSize=1024,Wt.outSize=384,Wt.hmacStrength=192,Wt.padLength=128,Wt.prototype._digest=function(t){return"hex"===t?Nt.toHex32(this.h.slice(0,12),"big"):Nt.split32(this.h.slice(0,12),"big")},A.sha1=W,A.sha224=at,A.sha256=nt,A.sha384=Bt,A.sha512=xt;var zt={},Mt=u,Lt=w,Vt=Mt.rotl32,Ht=Mt.sum32,qt=Mt.sum32_3,Jt=Mt.sum32_4,Zt=Lt.BlockHash;function Kt(){if(!(this instanceof Kt))return new Kt;Zt.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function Xt(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function Yt(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Qt(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}Mt.inherits(Kt,Zt),zt.ripemd160=Kt,Kt.blockSize=512,Kt.outSize=160,Kt.hmacStrength=192,Kt.padLength=64,Kt.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],o=this.h[2],i=this.h[3],u=this.h[4],a=r,c=n,f=o,l=i,p=u,s=0;s<80;s++){var y=Ht(Vt(Jt(r,Xt(s,n,o,i),t[te[s]+e],Yt(s)),re[s]),u);r=u,u=i,i=Vt(o,10),o=n,n=y,y=Ht(Vt(Jt(a,Xt(79-s,c,f,l),t[ee[s]+e],Qt(s)),ne[s]),p),a=p,p=l,l=Vt(f,10),f=c,c=y}y=qt(this.h[1],o,l),this.h[1]=qt(this.h[2],i,p),this.h[2]=qt(this.h[3],u,a),this.h[3]=qt(this.h[4],r,c),this.h[4]=qt(this.h[0],n,f),this.h[0]=y},Kt.prototype._digest=function(t){return"hex"===t?Mt.toHex32(this.h,"little"):Mt.split32(this.h,"little")};var te=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ee=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],re=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ne=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],oe=u,ie=a;function ue(t,e,r){if(!(this instanceof ue))return new ue(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(oe.toArray(e,r))}var ae=ue;ue.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),ie(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ue.prototype.update=function(t,e){return this.inner.update(t,e),this},ue.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var e=i;e.utils=u,e.common=w,e.sha=A,e.ripemd=zt,e.hmac=ae,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}();var ce,fe,le={},pe={};ce=pe,Object.defineProperty(ce,"__esModule",{value:!0}),(fe=ce.TypeGroup||(ce.TypeGroup={}))[fe.Primitive=0]="Primitive",fe[fe.Array=1]="Array",fe[fe.Object=2]="Object",fe[fe.Date=3]="Date",Object.defineProperty(le,"__esModule",{value:!0});var se=pe;le.isHash=function(t){return 40===t.length},le.onlyUnique=function(t,e,r){return r.indexOf(t)===e},le.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},le.isNonArrayUnion=function(t){return t.includes(" | ")&&!/^\(.*\)\[\]$/.test(t)},le.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)&&null!==t},le.isDate=function(t){return t instanceof Date},le.parseKeyMetaData=function(t){var e=t.endsWith("--?");return e?{isOptional:e,keyValue:t.slice(0,-3)}:{isOptional:e,keyValue:t}},le.getTypeDescriptionGroup=function(t){return void 0===t?se.TypeGroup.Primitive:void 0!==t.arrayOfTypes?se.TypeGroup.Array:se.TypeGroup.Object},le.findTypeById=function(t,e){return e.find((function(e){return e.id===t}))};var ye=e&&e.__assign||function(){return ye=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ye.apply(this,arguments)},he=e&&e.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};Object.defineProperty(o,"__esModule",{value:!0});var ge=i,be=le,de=pe;function me(t,e,r){void 0===r&&(r=!1);var n=e.find((function(e){return function(t,e,r){return be.isArray(t)?(n=t,o=e.arrayOfTypes,void 0!==n&&void 0!==o&&n.sort().join("")===o.sort().join("")&&e.isUnion===r):function(t,e){if(void 0===t||void 0===e)return!1;var r=Object.entries(t),n=Object.entries(e),o=r.length===n.length,i=r.every((function(t){var r=t[0],n=t[1];return e[r]===n}));return o&&i}(t,e.typeObj);var n,o}(t,e,r)}));return n||(n=function(t,e){return be.isArray(t)?{id:ve(JSON.stringify(he(t,[e]))),arrayOfTypes:t,isUnion:e}:{id:ve(JSON.stringify(t)),typeObj:t}}(t,r),e.push(n)),n.id}function ve(t){return ge.sha1().update(t).digest("hex")}function we(t){return null===t?"null":t instanceof Date?"Date":typeof t}function Se(t,e){var r=t.map((function(t){return t.typeObj})),n=r.map((function(t){return Object.keys(t)})).reduce((function(t,e){return he(t,e)}),[]).filter(be.onlyUnique),o=r.reduce((function(t,e){var r=Object.keys(e);return t.filter((function(t){return r.includes(t)}))}),n),i=n.reduce((function(t,n){var i,u=o.includes(n),a=function(t){var n=r.filter((function(e){return Object.keys(e).includes(t)})).map((function(e){return e[t]})).filter(be.onlyUnique);return 1===n.length?n.pop():Ae(n,e)}(n),c=u?n:function(t){return t.endsWith("--?")?t:t+"--?"}(n);return ye(ye({},t),((i={})[c]=a,i))}),{});return me(i,e,!0)}function je(t,e){var r=t.map((function(t){return t.arrayOfTypes})).reduce((function(t,e){return he(t,e)}),[]).filter(be.onlyUnique);return 1===r.length?me([r.pop()],e):me([Ae(r,e)],e)}function Oe(t,e){var r=t.map((function(t){return be.findTypeById(t,e)})).filter((function(t){return!!t&&t.isUnion})).map((function(t){return t.arrayOfTypes})).reduce((function(t,e){return he(t,e)}),[]),n=t.filter((function(t){return!be.findTypeById(t,e)||!be.findTypeById(t,e).isUnion}));return me(he(r,n),e,!0)}function Ae(t,e){var r=t.includes("undefined"),n=t.map((function(t){return be.findTypeById(t,e)})).filter((function(t){return!!t})),o=n.filter((function(t){return be.getTypeDescriptionGroup(t)===de.TypeGroup.Array})).length===t.length,i=n.filter((function(t){return be.getTypeDescriptionGroup(t)===de.TypeGroup.Array})).length+1===t.length&&r,u=n.filter((function(t){return be.getTypeDescriptionGroup(t)===de.TypeGroup.Object})).length+1===t.length&&r,a=n.filter((function(t){return be.getTypeDescriptionGroup(t)===de.TypeGroup.Object})).length===t.length;return 0===t.length?me([],e,!0):1===t.length?t.pop():t.length>1?a?Se(n,e):o?je(n,e):Oe(i?[je(n,e),"undefined"]:u?[Se(n,e),"undefined"]:t,e):void 0}function xe(t,e){switch(void 0===e&&(e=[]),n=t,be.isDate(n)?de.TypeGroup.Date:be.isArray(n)?de.TypeGroup.Array:be.isObject(n)?de.TypeGroup.Object:de.TypeGroup.Primitive){case de.TypeGroup.Array:return{rootTypeId:me([Ae(t.map((function(t){return xe(t,e).rootTypeId})).filter(be.onlyUnique),e)],e),types:e};case de.TypeGroup.Object:var r=function(t,e){return Object.entries(t).reduce((function(t,r){var n,o=r[0],i=xe(r[1],e).rootTypeId;return ye(ye({},t),((n={})[o]=i,n))}),{})}(t,e);return{rootTypeId:me(r,e),types:e};case de.TypeGroup.Primitive:return{rootTypeId:we(t),types:e};case de.TypeGroup.Date:return{rootTypeId:we(t),types:e}}var n}o.getTypeStructure=xe,o.optimizeTypeStructure=function(t){var e,r,n,o,i,u=(r=(e=t).rootTypeId,n=e.types,o=n.find((function(t){return t.id===r})),(i=function(t){switch(be.getTypeDescriptionGroup(t)){case de.TypeGroup.Array:var e=t.arrayOfTypes.filter(be.isHash).map((function(t){var e=n.find((function(e){return e.id===t}));return i(e)})).reduce((function(t,e){return he(t,e)}),[]);return he([t.id],e);case de.TypeGroup.Object:var r=Object.values(t.typeObj).filter(be.isHash).map((function(t){var e=n.find((function(e){return e.id===t}));return i(e)})).reduce((function(t,e){return he(t,e)}),[]);return he([t.id],r)}})(o)),a=t.types.filter((function(t){return u.includes(t.id)}));t.types=a};var $e,Pe,_e=Object.prototype.toString,Ee=function(t){var e=_e.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===_e.call(t.callee)),r};var Te=Array.prototype.slice,Fe=Ee,Ie=Object.keys,ke=Ie?function(t){return Ie(t)}:function(){if(Pe)return $e;var t;if(Pe=1,!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Ee,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),u=o.call((function(){}),"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&e.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();t=function(t){var o=null!==t&&"object"==typeof t,f="[object Function]"===r.call(t),p=n(t),s=o&&"[object String]"===r.call(t),y=[];if(!o&&!f&&!p)throw new TypeError("Object.keys called on a non-object");var h=u&&f;if(s&&t.length>0&&!e.call(t,0))for(var g=0;g<t.length;++g)y.push(String(g));if(p&&t.length>0)for(var b=0;b<t.length;++b)y.push(String(b));else for(var d in t)h&&"prototype"===d||!e.call(t,d)||y.push(String(d));if(i)for(var m=function(t){if("undefined"==typeof window||!l)return c(t);try{return c(t)}catch(t){return!1}}(t),v=0;v<a.length;++v)m&&"constructor"===a[v]||!e.call(t,a[v])||y.push(a[v]);return y}}return $e=t}(),De=Object.keys;ke.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return Fe(t)?De(Te.call(t)):De(t)})}else Object.keys=ke;return Object.keys||ke};var Re,Ce,Ge=ke,Ne=Error,Ue=EvalError,We=RangeError,Be=ReferenceError,ze=SyntaxError,Me=TypeError,Le=URIError;function Ve(){return Ce?Re:(Ce=1,Re=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}var He,qe="undefined"!=typeof Symbol&&Symbol,Je=Ve(),Ze=function(){return"function"==typeof qe&&("function"==typeof Symbol&&("symbol"==typeof qe("foo")&&("symbol"==typeof Symbol("bar")&&Je())))},Ke={__proto__:null,foo:{}},Xe=Object,Ye=Object.prototype.toString,Qe=Math.max,tr=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r},er=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==Ye.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,n=function(t,e){for(var r=[],n=e||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),o=Qe(0,e.length-n.length),i=[],u=0;u<o;u++)i[u]="$"+u;if(r=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=e.apply(this,tr(n,arguments));return Object(o)===o?o:this}return e.apply(t,tr(n,arguments))})),e.prototype){var a=function(){};a.prototype=e.prototype,r.prototype=new a,a.prototype=null}return r},rr=Function.prototype.bind||er,nr=Function.prototype.call,or=Object.prototype.hasOwnProperty,ir=rr.call(nr,or),ur=Ne,ar=Ue,cr=We,fr=Be,lr=ze,pr=Me,sr=Le,yr=Function,hr=function(t){try{return yr('"use strict"; return ('+t+").constructor;")()}catch(t){}},gr=Object.getOwnPropertyDescriptor;if(gr)try{gr({},"")}catch(t){gr=null}var br=function(){throw new pr},dr=gr?function(){try{return br}catch(t){try{return gr(arguments,"callee").get}catch(t){return br}}}():br,mr=Ze(),vr={__proto__:Ke}.foo===Ke.foo&&!(Ke instanceof Xe),wr=Object.getPrototypeOf||(vr?function(t){return t.__proto__}:null),Sr={},jr="undefined"!=typeof Uint8Array&&wr?wr(Uint8Array):He,Or={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?He:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?He:ArrayBuffer,"%ArrayIteratorPrototype%":mr&&wr?wr([][Symbol.iterator]()):He,"%AsyncFromSyncIteratorPrototype%":He,"%AsyncFunction%":Sr,"%AsyncGenerator%":Sr,"%AsyncGeneratorFunction%":Sr,"%AsyncIteratorPrototype%":Sr,"%Atomics%":"undefined"==typeof Atomics?He:Atomics,"%BigInt%":"undefined"==typeof BigInt?He:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?He:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?He:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?He:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ur,"%eval%":eval,"%EvalError%":ar,"%Float32Array%":"undefined"==typeof Float32Array?He:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?He:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?He:FinalizationRegistry,"%Function%":yr,"%GeneratorFunction%":Sr,"%Int8Array%":"undefined"==typeof Int8Array?He:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?He:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?He:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mr&&wr?wr(wr([][Symbol.iterator]())):He,"%JSON%":"object"==typeof JSON?JSON:He,"%Map%":"undefined"==typeof Map?He:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&mr&&wr?wr((new Map)[Symbol.iterator]()):He,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?He:Promise,"%Proxy%":"undefined"==typeof Proxy?He:Proxy,"%RangeError%":cr,"%ReferenceError%":fr,"%Reflect%":"undefined"==typeof Reflect?He:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?He:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&mr&&wr?wr((new Set)[Symbol.iterator]()):He,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?He:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mr&&wr?wr(""[Symbol.iterator]()):He,"%Symbol%":mr?Symbol:He,"%SyntaxError%":lr,"%ThrowTypeError%":dr,"%TypedArray%":jr,"%TypeError%":pr,"%Uint8Array%":"undefined"==typeof Uint8Array?He:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?He:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?He:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?He:Uint32Array,"%URIError%":sr,"%WeakMap%":"undefined"==typeof WeakMap?He:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?He:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?He:WeakSet};if(wr)try{null.error}catch(t){var Ar=wr(wr(t));Or["%Error.prototype%"]=Ar}var xr,$r,Pr=function t(e){var r;if("%AsyncFunction%"===e)r=hr("async function () {}");else if("%GeneratorFunction%"===e)r=hr("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=hr("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&wr&&(r=wr(o.prototype))}return Or[e]=r,r},_r={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Er=rr,Tr=ir,Fr=Er.call(Function.call,Array.prototype.concat),Ir=Er.call(Function.apply,Array.prototype.splice),kr=Er.call(Function.call,String.prototype.replace),Dr=Er.call(Function.call,String.prototype.slice),Rr=Er.call(Function.call,RegExp.prototype.exec),Cr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gr=/\\(\\)?/g,Nr=function(t,e){var r,n=t;if(Tr(_r,n)&&(n="%"+(r=_r[n])[0]+"%"),Tr(Or,n)){var o=Or[n];if(o===Sr&&(o=Pr(n)),void 0===o&&!e)throw new pr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new lr("intrinsic "+t+" does not exist!")},Ur=function(t,e){if("string"!=typeof t||0===t.length)throw new pr("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new pr('"allowMissing" argument must be a boolean');if(null===Rr(/^%?[^%]*%?$/,t))throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=Dr(t,0,1),r=Dr(t,-1);if("%"===e&&"%"!==r)throw new lr("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new lr("invalid intrinsic syntax, expected opening `%`");var n=[];return kr(t,Cr,(function(t,e,r,o){n[n.length]=r?kr(o,Gr,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=Nr("%"+n+"%",e),i=o.name,u=o.value,a=!1,c=o.alias;c&&(n=c[0],Ir(r,Fr([0,1],c)));for(var f=1,l=!0;f<r.length;f+=1){var p=r[f],s=Dr(p,0,1),y=Dr(p,-1);if(('"'===s||"'"===s||"`"===s||'"'===y||"'"===y||"`"===y)&&s!==y)throw new lr("property names with quotes must have matching quotes");if("constructor"!==p&&l||(a=!0),Tr(Or,i="%"+(n+="."+p)+"%"))u=Or[i];else if(null!=u){if(!(p in u)){if(!e)throw new pr("base intrinsic for "+t+" exists, but the property is not available.");return}if(gr&&f+1>=r.length){var h=gr(u,p);u=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:u[p]}else l=Tr(u,p),u=u[p];l&&!a&&(Or[i]=u)}}return u};function Wr(){if($r)return xr;$r=1;var t=Ur("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return xr=t}var Br=Ur("%Object.getOwnPropertyDescriptor%",!0);if(Br)try{Br([],"length")}catch(t){Br=null}var zr=Br,Mr=Wr(),Lr=ze,Vr=Me,Hr=zr,qr=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new Vr("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new Vr("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Vr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Vr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Vr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Vr("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],a=!!Hr&&Hr(t,e);if(Mr)Mr(t,e,{configurable:null===i&&a?a.configurable:!i,enumerable:null===n&&a?a.enumerable:!n,value:r,writable:null===o&&a?a.writable:!o});else{if(!u&&(n||o||i))throw new Lr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}},Jr=Wr(),Zr=function(){return!!Jr};Zr.hasArrayLengthDefineBug=function(){if(!Jr)return null;try{return 1!==Jr([],"length",{value:1}).length}catch(t){return!0}};var Kr=Zr,Xr=Ge,Yr="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Qr=Object.prototype.toString,tn=Array.prototype.concat,en=qr,rn=Kr(),nn=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==Qr.call(o)||!n())return;var o;rn?en(t,e,r,!0):en(t,e,r)},on=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Xr(e);Yr&&(n=tn.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)nn(t,n[o],e[n[o]],r[n[o]])};on.supportsDescriptors=!!rn;var un=on,an=Me,cn=function(t){if(null==t)throw new an(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},fn={exports:{}},ln=Ur,pn=qr,sn=Kr(),yn=zr,hn=Me,gn=ln("%Math.floor%"),bn=function(t,e){if("function"!=typeof t)throw new hn("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||gn(e)!==e)throw new hn("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&yn){var i=yn(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(sn?pn(t,"length",e,!0,!0):pn(t,"length",e)),t};!function(t){var e=rr,r=Ur,n=bn,o=Me,i=r("%Function.prototype.apply%"),u=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(u,i),c=Wr(),f=r("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new o("a function is required");var r=a(e,u,arguments);return n(r,1+f(0,t.length-(arguments.length-1)),!0)};var l=function(){return a(e,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l}(fn);var dn,mn,vn,wn,Sn=fn.exports,jn=Ur,On=Sn,An=On(jn("String.prototype.indexOf")),xn=function(t,e){var r=jn(t,!!e);return"function"==typeof r&&An(t,".prototype.")>-1?On(r):r};function $n(){return mn?dn:(mn=1,dn=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t})}function Pn(){return wn?vn:(wn=1,vn=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t})}var _n,En,Tn=Function.prototype.toString,Fn="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Fn&&"function"==typeof Object.defineProperty)try{_n=Object.defineProperty({},"length",{get:function(){throw En}}),En={},Fn((function(){throw 42}),null,_n)}catch(t){t!==En&&(Fn=null)}else Fn=null;var In=/^\s*class\b/,kn=function(t){try{var e=Tn.call(t);return In.test(e)}catch(t){return!1}},Dn=function(t){try{return!kn(t)&&(Tn.call(t),!0)}catch(t){return!1}},Rn=Object.prototype.toString,Cn="function"==typeof Symbol&&!!Symbol.toStringTag,Gn=!(0 in[,]),Nn=function(){return!1};if("object"==typeof document){var Un=document.all;Rn.call(Un)===Rn.call(document.all)&&(Nn=function(t){if((Gn||!t)&&(void 0===t||"object"==typeof t))try{var e=Rn.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}var Wn,Bn,zn=Fn?function(t){if(Nn(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Fn(t,null,_n)}catch(t){if(t!==En)return!1}return!kn(t)&&Dn(t)}:function(t){if(Nn(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(Cn)return Dn(t);if(kn(t))return!1;var e=Rn.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&Dn(t)},Mn=Ve(),Ln=function(){return Mn()&&!!Symbol.toStringTag};function Vn(){if(Bn)return Wn;Bn=1;var t=Date.prototype.getDay,e=Object.prototype.toString,r=Ln();return Wn=function(n){return"object"==typeof n&&null!==n&&(r?function(e){try{return t.call(e),!0}catch(t){return!1}}(n):"[object Date]"===e.call(n))}}var Hn,qn,Jn,Zn,Kn,Xn,Yn,Qn,to,eo={exports:{}};function ro(){if(Hn)return eo.exports;Hn=1;var t=Object.prototype.toString;if(Ze()){var e=Symbol.prototype.toString,r=/^Symbol\(.*\)$/;eo.exports=function(n){if("symbol"==typeof n)return!0;if("[object Symbol]"!==t.call(n))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&r.test(e.call(t))}(n)}catch(t){return!1}}}else eo.exports=function(t){return!1};return eo.exports}function no(){if(Jn)return qn;Jn=1;var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,e=Pn(),r=zn,n=Vn(),o=ro();return qn=function(i){if(e(i))return i;var u,a="default";if(arguments.length>1&&(arguments[1]===String?a="string":arguments[1]===Number&&(a="number")),t&&(Symbol.toPrimitive?u=function(t,e){var n=t[e];if(null!=n){if(!r(n))throw new TypeError(n+" returned for property "+e+" of object "+t+" is not a function");return n}}(i,Symbol.toPrimitive):o(i)&&(u=Symbol.prototype.valueOf)),void 0!==u){var c=u.call(i,a);if(e(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===a&&(n(i)||o(i))&&(a="string"),function(t,n){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof n||"number"!==n&&"string"!==n)throw new TypeError('hint must be "string" or "number"');var o,i,u,a="string"===n?["toString","valueOf"]:["valueOf","toString"];for(u=0;u<a.length;++u)if(o=t[a[u]],r(o)&&(i=o.call(t),e(i)))return i;throw new TypeError("No default value")}(i,"default"===a?"number":a)},qn}function oo(){if(Yn)return Xn;Yn=1;var t,e,r,n,o=xn,i=Ln();if(i){t=o("Object.prototype.hasOwnProperty"),e=o("RegExp.prototype.exec"),r={};var u=function(){throw r};n={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(n[Symbol.toPrimitive]=u)}var a=o("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor;return Xn=i?function(o){if(!o||"object"!=typeof o)return!1;var i=c(o,"lastIndex");if(!(i&&t(i,"value")))return!1;try{e(o,n)}catch(t){return t===r}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===a(t)}}function io(){if(to)return Qn;to=1;var t=xn,e=oo(),r=t("RegExp.prototype.exec"),n=Me;return Qn=function(t){if(!e(t))throw new n("`regex` must be a RegExp");return function(e){return null!==r(t,e)}},Qn}var uo,ao,co,fo,lo,po,so,yo,ho,go,bo=Ur("%String%"),mo=Me,vo=function(t){if("symbol"==typeof t)throw new mo("Cannot convert a Symbol value to a string");return bo(t)};function wo(){if(ao)return uo;ao=1;var t=cn,e=vo,r=xn("String.prototype.replace"),n=/^\s$/.test(""),o=n?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,i=n?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return uo=function(){var n=e(t(this));return r(r(n,o,""),i,"")}}function So(){if(fo)return co;fo=1;var t=wo(),e="";return co=function(){return String.prototype.trim&&""==="".trim()&&e.trim()===e&&"_"==="_".trim()&&"_"==="_".trim()?String.prototype.trim:t}}function jo(){if(yo)return so;yo=1;var t=Sn,e=un,r=cn,n=wo(),o=So(),i=function(){if(po)return lo;po=1;var t=un,e=So();return lo=function(){var r=e();return t(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r},lo}(),u=t(o()),a=function(t){return r(t),u(t)};return e(a,{getPolyfill:o,implementation:n,shim:i}),so=a}var Oo,Ao,xo=Me,$o=Ur("%Number%"),Po=$n(),_o=function(){if(Kn)return Zn;Kn=1;var t=no();return Zn=function(e){return arguments.length>1?t(e,arguments[1]):t(e)}}(),Eo=function(){if(go)return ho;go=1;var t=Ur,e=t("%Number%"),r=t("%RegExp%"),n=Me,o=t("%parseInt%"),i=xn,u=io(),a=i("String.prototype.slice"),c=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),l=u(/^[-+]0x[0-9a-f]+$/i),p=u(new r("["+["
","",""].join("")+"]","g")),s=jo();return ho=function t(r){if("string"!=typeof r)throw new n("Assertion failed: `argument` is not a String");if(c(r))return e(o(a(r,2),2));if(f(r))return e(o(a(r,2),8));if(p(r)||l(r))return NaN;var i=s(r);return i!==r?t(i):e(r)},ho}(),To=Math.floor,Fo=function(t){return"bigint"==typeof t?t:To(t)},Io=Me,ko=Number.isNaN||function(t){return t!=t},Do=ko,Ro=function(t){return("number"==typeof t||"bigint"==typeof t)&&!Do(t)&&t!==1/0&&t!==-1/0},Co=function(t){var e=Po(t)?t:_o(t,$o);if("symbol"==typeof e)throw new xo("Cannot convert a Symbol value to a number");if("bigint"==typeof e)throw new xo("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof e?Eo(e):$o(e)},Go=function(t){if("number"!=typeof t&&"bigint"!=typeof t)throw new Io("argument must be a Number or a BigInt");var e=t<0?-Fo(-t):Fo(t);return 0===e?0:e},No=ko,Uo=Ro,Wo=function(t){var e=Co(t);return No(e)||0===e?0:Uo(e)?Go(e):e},Bo=Number.MAX_SAFE_INTEGER||9007199254740991,zo=Wo,Mo=function(t){var e=zo(t);return e<=0?0:e>Bo?Bo:e},Lo=Object,Vo=Lo,Ho=cn,qo=function(t){return Ho(t),Vo(t)},Jo=ko,Zo=String.prototype.valueOf,Ko=Object.prototype.toString,Xo=Ln(),Yo=function(t){return"string"==typeof t||"object"==typeof t&&(Xo?function(t){try{return Zo.call(t),!0}catch(t){return!1}}(t):"[object String]"===Ko.call(t))},Qo=Wo,ti=Mo,ei=qo,ri=function(t,e){return t===e||Jo(t)&&Jo(e)},ni=ko,oi=Ro,ii=Ur,ui=Yo,ai=xn("String.prototype.charAt"),ci=ii("%Array.prototype.indexOf%"),fi=ii("%Math.max%"),li=function(t){var e=arguments.length>1?Qo(arguments[1]):0;if(ci&&!ni(t)&&oi(e)&&void 0!==t)return ci.apply(this,arguments)>-1;var r=ei(this),n=ti(r.length);if(0===n)return!1;for(var o=e>=0?e:fi(0,n+e);o<n;){if(ri(t,ui(r)?ai(r,o):r[o]))return!0;o+=1}return!1},pi=li,si=function(){return Array.prototype.includes&&Array(1).includes(void 0)?Array.prototype.includes:pi};var yi=un,hi=cn,gi=xn,bi=li,di=si,mi=Sn.apply(di()),vi=function(){if(Ao)return Oo;Ao=1;var t=un,e=si;return Oo=function(){var r=e();return t(Array.prototype,{includes:r},{includes:function(){return Array.prototype.includes!==r}}),r},Oo}(),wi=gi("Array.prototype.slice"),Si=function(t,e){return hi(t),mi(t,wi(arguments,1))};yi(Si,{getPolyfill:di,implementation:bi,shim:vi});var ji,Oi,Ai=Si,xi={includes:Ai,shim:function(){Ai.shim()}},$i={prototype:xi,shim:function(){xi.shim()}},Pi=function(t){return"string"==typeof t||"symbol"==typeof t},_i=Me,Ei=ir,Ti={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0},Fi=function(t){if(!t||"object"!=typeof t)return!1;for(var e in t)if(Ei(t,e)&&!Ti[e])return!1;var r=Ei(t,"[[Value]]")||Ei(t,"[[Writable]]"),n=Ei(t,"[[Get]]")||Ei(t,"[[Set]]");if(r&&n)throw new _i("Property Descriptors may not be both accessor and data descriptors");return!0},Ii=Me,ki=ir,Di=Fi,Ri=function(t){if(void 0===t)return!1;if(!Di(t))throw new Ii("Assertion failed: `Desc` must be a Property Descriptor");return!(!ki(t,"[[Get]]")&&!ki(t,"[[Set]]"))},Ci=Ur,Gi=Ci("%Object.preventExtensions%",!0),Ni=Ci("%Object.isExtensible%",!0),Ui=$n(),Wi=Gi?function(t){return!Ui(t)&&Ni(t)}:function(t){return!Ui(t)},Bi=function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},zi=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":Bi(t)},Mi=zn,Li=ir,Vi=Me,Hi=zi,qi=function(t){return!!t},Ji=Mi,Zi=ko,Ki=function(t,e){return t===e?0!==t||1/t==1/e:Zi(t)&&Zi(e)};function Xi(){if(Oi)return ji;Oi=1;var t=Ur("%Array%"),e=!t.isArray&&xn("Object.prototype.toString");return ji=t.isArray||function(t){return"[object Array]"===e(t)}}var Yi,Qi,tu=Kr,eu=Wr(),ru=tu.hasArrayLengthDefineBug(),nu=ru&&Xi(),ou=xn("Object.prototype.propertyIsEnumerable"),iu=Fi,uu=Me,au=Fi,cu=function(t){if(void 0===t)return t;var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=!!t["[[Configurable]]"]),e},fu=Me,lu=ir,pu=Fi,su=function(t){if(void 0===t)return!1;if(!pu(t))throw new fu("Assertion failed: `Desc` must be a Property Descriptor");return!(!lu(t,"[[Value]]")&&!lu(t,"[[Writable]]"))},yu=Me,hu=Ri,gu=su,bu=Fi,du=Me,mu=function(t,e,r,n,o,i){if(!eu){if(!t(i))return!1;if(!i["[[Configurable]]"]||!i["[[Writable]]"])return!1;if(o in n&&ou(n,o)!==!!i["[[Enumerable]]"])return!1;var u=i["[[Value]]"];return n[o]=u,e(n[o],u)}return ru&&"length"===o&&"[[Value]]"in i&&nu(n)&&n.length!==i["[[Value]]"]?(n.length=i["[[Value]]"],n.length===i["[[Value]]"]):(eu(n,o,r(i)),!0)},vu=function(t,e){return iu(e)&&"object"==typeof e&&"[[Enumerable]]"in e&&"[[Configurable]]"in e&&(t.IsAccessorDescriptor(e)||t.IsDataDescriptor(e))},wu=Fi,Su=function(t){if(void 0!==t&&!au(t))throw new uu("Assertion failed: `Desc` must be a Property Descriptor");return cu(t)},ju=Ri,Ou=su,Au=function(t){if(void 0===t)return!1;if(!bu(t))throw new yu("Assertion failed: `Desc` must be a Property Descriptor");return!hu(t)&&!gu(t)},xu=Pi,$u=Ki,Pu=zi,_u=zr,Eu=ze,Tu=Me,Fu=Fi,Iu=Ri,ku=Wi,Du=Pi,Ru=function(t){if("Object"!==Hi(t))throw new Vi("ToPropertyDescriptor requires an object");var e={};if(Li(t,"enumerable")&&(e["[[Enumerable]]"]=qi(t.enumerable)),Li(t,"configurable")&&(e["[[Configurable]]"]=qi(t.configurable)),Li(t,"value")&&(e["[[Value]]"]=t.value),Li(t,"writable")&&(e["[[Writable]]"]=qi(t.writable)),Li(t,"get")){var r=t.get;if(void 0!==r&&!Ji(r))throw new Vi("getter must be a function");e["[[Get]]"]=r}if(Li(t,"set")){var n=t.set;if(void 0!==n&&!Ji(n))throw new Vi("setter must be a function");e["[[Set]]"]=n}if((Li(e,"[[Get]]")||Li(e,"[[Set]]"))&&(Li(e,"[[Value]]")||Li(e,"[[Writable]]")))throw new Vi("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e},Cu=Ki,Gu=zi,Nu=