@gct-paas/render-web 0.1.4-dev.8 → 0.1.4-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.min.mjs +29003 -2
- package/dist/index.min.cjs +37 -1
- package/dist/index.system.min.js +37 -1
- package/es/Event/EventsPc.d.ts +16 -0
- package/es/Event/EventsPc.mjs +10 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +2 -0
- package/package.json +13 -7
package/dist/index.min.cjs
CHANGED
|
@@ -1 +1,37 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(){console.log("Hello World!")}exports.run=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const mt=require("@gct-paas/core"),Zr=require("lodash-es"),Kt=require("dayjs"),te=require("vue");require("qs");require("ant-design-vue");mt.FIELD_TYPE.TEXT+"",mt.FIELD_TYPE.LONG_TEXT+"",mt.FIELD_TYPE.INTEGER+"",mt.FIELD_TYPE.LONG+"",mt.FIELD_TYPE.DOUBLE+"",mt.FIELD_TYPE.DECIMAL+"";mt.BuiltinType.MODAL_BODY;mt.BuiltinType.MODAL_FOOTER;mt.Platform.WEB,mt.BuiltinType.MODAL;mt.PropGroup.BASIC,mt.PropGroup.MODAL,mt.PropGroup.MODAL,mt.PropGroup.MODALTITLECONFIG,mt.PropGroup.MODALTITLECONFIG,mt.PropGroup.MODAL,mt.PropGroup.BUTTON;mt.StyleGroup.BACKGROUND,mt.StyleGroup.MARGIN;function Ke(U){return Object.prototype.hasOwnProperty.call(U.props,"model")?!U.props.model:Object.prototype.hasOwnProperty.call(U.props,"refForm")?!U.props.refForm:!1}mt.TextDecoration.NONE,mt.TextDecoration.NONE,mt.TagTypeEnum.RADIUS,mt.BorderStyle.NONE,mt.BorderStyle.NONE,mt.BorderStyle.NONE,mt.BorderStyle.NONE,mt.BorderStyle.NONE;const Un=[mt.FIELD_TYPE.TEXT,mt.FIELD_TYPE.LONG_TEXT,mt.FIELD_TYPE.INTEGER,mt.FIELD_TYPE.LONG,mt.FIELD_TYPE.DOUBLE,mt.FIELD_TYPE.DECIMAL,mt.FIELD_TYPE.BOOLEAN,mt.FIELD_TYPE.DATE,mt.FIELD_TYPE.TIME,mt.FIELD_TYPE.DATE_TIME,mt.FIELD_TYPE.USER,mt.FIELD_TYPE.USER_MULTI,mt.FIELD_TYPE.SERIAL];mt.Dependency_ENUM.HIDDEN+"",mt.Dependency_ENUM.READONLY+"",mt.Dependency_ENUM.DISABLED+"",mt.Dependency_ENUM.REQUIRED+"",mt.Dependency_ENUM.ASSIGNMENT+"",mt.ASSIGNMENTSTRATEGY_ENUM.alwaysCover;const Hn=[mt.FIELD_TYPE.TEXT,mt.FIELD_TYPE.LONG_TEXT,mt.FIELD_TYPE.INTEGER,mt.FIELD_TYPE.LONG,mt.FIELD_TYPE.DOUBLE,mt.FIELD_TYPE.DECIMAL,mt.FIELD_TYPE.BOOLEAN,mt.FIELD_TYPE.DATE,mt.FIELD_TYPE.DATE_TIME,mt.FIELD_TYPE.MASTERSLAVE];mt.PropGroup.COMPONENTDEPENDENCY,mt.PropGroup.FIELD_CONFIG,mt.PropGroup.FIELD_CONFIG;mt.ButtonStyle.ORDINARY,mt.ButtonType.PRIMARY,mt.ButtonSize.DEFAULT;mt.PropGroup.BASIC,mt.PropGroup.BUTTON,mt.PropGroup.BUTTON,mt.PropGroup.BUTTON,Object.values(mt.ButtonSize).map(U=>({value:U,label:"sys.pageDesigner."+U}));mt.PropGroup.PERMISSION;mt.ButtonColorTheme.DEFAULT,mt.ButtonColorType.DEFAULT,mt.ButtonStyle.ORDINARY;mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle,Object.values(mt.ButtonSize).map(U=>({value:U,label:"sys.pageDesigner."+U})),mt.PropGroup.ButtonStyle,mt.PropGroup.ButtonStyle;mt.StyleGroup.LAYOUT,mt.StyleGroup.MARGIN;var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(U){return U&&U.__esModule&&Object.prototype.hasOwnProperty.call(U,"default")?U.default:U}var Tr={exports:{}},$n=Tr.exports,nn;function Vn(){return nn||(nn=1,(function(U,E){(function(t,b){U.exports=b()})($n,(function(){var t="minute",b=/[+-]\d\d(?::?\d\d)?/g,g=/([+-]|\d\d)/g;return function(c,a,o){var n=a.prototype;o.utc=function(f){var l={date:f,utc:!0,args:arguments};return new a(l)},n.utc=function(f){var l=o(this.toDate(),{locale:this.$L,utc:!0});return f?l.add(this.utcOffset(),t):l},n.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var e=n.parse;n.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),e.call(this,f)};var r=n.init;n.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else r.call(this)};var u=n.utcOffset;n.utcOffset=function(f,l){var p=this.$utils().u;if(p(f))return this.$u?0:p(this.$offset)?u.call(this):this.$offset;if(typeof f=="string"&&(f=(function(M){M===void 0&&(M="");var j=M.match(b);if(!j)return null;var z=(""+j[0]).match(g)||["-",0,0],A=z[0],T=60*+z[1]+ +z[2];return T===0?0:A==="+"?T:-T})(f),f===null))return this;var m=Math.abs(f)<=16?60*f:f;if(m===0)return this.utc(l);var _=this.clone();if(l)return _.$offset=m,_.$u=!1,_;var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(m+k,t)).$offset=m,_.$x.$localOffset=k,_};var i=n.format;n.format=function(f){var l=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,l)},n.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var s=n.toDate;n.toDate=function(f){return f==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var h=n.diff;n.diff=function(f,l,p){if(f&&this.$u===f.$u)return h.call(this,f,l,p);var m=this.local(),_=o(f).local();return h.call(m,_,l,p)}}}))})(Tr)),Tr.exports}var qn=Vn();const Wn=ur(qn);var Mr={exports:{}},Xn=Mr.exports,sn;function Yn(){return sn||(sn=1,(function(U,E){(function(t,b){U.exports=b()})(Xn,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},b={};return function(g,c,a){var o,n=function(i,s,h){h===void 0&&(h={});var f=new Date(i),l=(function(p,m){m===void 0&&(m={});var _=m.timeZoneName||"short",k=p+"|"+_,M=b[k];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:p,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),b[k]=M),M})(s,h);return l.formatToParts(f)},e=function(i,s){for(var h=n(i,s),f=[],l=0;l<h.length;l+=1){var p=h[l],m=p.type,_=p.value,k=t[m];k>=0&&(f[k]=parseInt(_,10))}var M=f[3],j=M===24?0:M,z=f[0]+"-"+f[1]+"-"+f[2]+" "+j+":"+f[4]+":"+f[5]+":000",A=+i;return(a.utc(z).valueOf()-(A-=A%1e3))/6e4},r=c.prototype;r.tz=function(i,s){i===void 0&&(i=o);var h,f=this.utcOffset(),l=this.toDate(),p=l.toLocaleString("en-US",{timeZone:i}),m=Math.round((l-new Date(p))/1e3/60),_=15*-Math.round(l.getTimezoneOffset()/15)-m;if(!Number(_))h=this.utcOffset(0,s);else if(h=a(p,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),s){var k=h.utcOffset();h=h.add(f-k,"minute")}return h.$x.$timezone=i,h},r.offsetName=function(i){var s=this.$x.$timezone||a.tz.guess(),h=n(this.valueOf(),s,{timeZoneName:i}).find((function(f){return f.type.toLowerCase()==="timezonename"}));return h&&h.value};var u=r.startOf;r.startOf=function(i,s){if(!this.$x||!this.$x.$timezone)return u.call(this,i,s);var h=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(h,i,s).tz(this.$x.$timezone,!0)},a.tz=function(i,s,h){var f=h&&s,l=h||s||o,p=e(+a(),l);if(typeof i!="string")return a(i).tz(l);var m=(function(j,z,A){var T=j-60*z*1e3,O=e(T,A);if(z===O)return[T,z];var L=e(T-=60*(O-z)*1e3,A);return O===L?[T,O]:[j-60*Math.min(O,L)*1e3,Math.max(O,L)]})(a.utc(i,f).valueOf(),p,l),_=m[0],k=m[1],M=a(_).utcOffset(k);return M.$x.$timezone=l,M},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(i){o=i}}}))})(Mr)),Mr.exports}var Gn=Yn();const Kn=ur(Gn);var Fr={exports:{}},Jn=Fr.exports,an;function Zn(){return an||(an=1,(function(U,E){(function(t,b){U.exports=b()})(Jn,(function(){var t="month",b="quarter";return function(g,c){var a=c.prototype;a.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var o=a.add;a.add=function(e,r){return e=Number(e),this.$utils().p(r)===b?this.add(3*e,t):o.bind(this)(e,r)};var n=a.startOf;a.startOf=function(e,r){var u=this.$utils(),i=!!u.u(r)||r;if(u.p(e)===b){var s=this.quarter()-1;return i?this.month(3*s).startOf(t).startOf("day"):this.month(3*s+2).endOf(t).endOf("day")}return n.bind(this)(e,r)}}}))})(Fr)),Fr.exports}var Qn=Zn();const ti=ur(Qn);var Ir={exports:{}},ei=Ir.exports,on;function ri(){return on||(on=1,(function(U,E){(function(t,b){U.exports=b()})(ei,(function(){return function(t,b){b.prototype.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]}}}))})(Ir)),Ir.exports}var ni=ri();const ii=ur(ni);var Nr={exports:{}},si=Nr.exports,un;function ai(){return un||(un=1,(function(U,E){(function(t,b){U.exports=b()})(si,(function(){var t="day";return function(b,g,c){var a=function(e){return e.add(4-e.isoWeekday(),t)},o=g.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var r,u,i,s,h=a(this),f=(r=this.isoWeekYear(),u=this.$u,i=(u?c.utc:c)().year(r).startOf("year"),s=4-i.isoWeekday(),i.isoWeekday()>4&&(s+=7),i.add(s,t));return h.diff(f,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var n=o.startOf;o.startOf=function(e,r){var u=this.$utils(),i=!!u.u(r)||r;return u.p(e)==="isoweek"?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e,r)}}}))})(Nr)),Nr.exports}var oi=ai();const ui=ur(oi);var Ae=In(),li=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Br=Math.ceil,je=Math.floor,Me="[BigNumber Error] ",Re=1e14,Yt=14,ln=9007199254740991,Pr=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],We=1e7,ke=1e9;function In(U){var E,t,b,g=p.prototype={constructor:p,toString:null,valueOf:null},c=new p(1),a=20,o=4,n=-7,e=21,r=-1e7,u=1e7,i=!1,s=1,h=0,f={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},l="0123456789abcdefghijklmnopqrstuvwxyz";function p(A,T){var O,L,B,S,D,w,d,v,y=this;if(!(y instanceof p))return new p(A,T);if(v=typeof A,T==null){if(_(A)){y.s=A.s,!A.c||A.e>u?y.c=y.e=null:A.e<r?y.c=[y.e=0]:(y.e=A.e,y.c=A.c.slice());return}if(v=="number"){if(A*0!=0){y.s=isNaN(A)?null:A<0?-1:1,y.c=y.e=null;return}if(y.s=1/A<0?(A=-A,-1):1,A===~~A){for(S=0,D=A;D>=10;D/=10,S++);S>u?y.c=y.e=null:(y.e=S,y.c=[A]);return}d=String(A)}else{if(v=="string"){if(d=A,!li.test(d))return b(y,d)}else if(v=="bigint")d=String(A);else throw Error(Me+"Invalid argument: "+A);y.s=d.charCodeAt(0)==45?(d=d.slice(1),-1):1}(S=d.indexOf("."))>-1&&(d=d.replace(".","")),(D=d.search(/e/i))>0?(S<0&&(S=D),S+=+d.slice(D+1),d=d.substring(0,D)):S<0&&(S=d.length)}else{if(v!="string")throw Error(Me+"String expected: "+A);for(ve(T,2,l.length,"Base"),d=A,y.s=d.charCodeAt(0)===45?(d=d.slice(1),-1):1,O=l.slice(0,T),S=D=0,w=d.length;D<w;D++)if(O.indexOf(L=d.charAt(D))<0){if(L=="."){if(D>S){S=w;continue}}else if(!B&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){B=!0,D=-1,S=0;continue}return b(y,A,T)}d=t(d,T,10,y.s),(S=d.indexOf("."))>-1?d=d.replace(".",""):S=d.length}for(D=0;d.charCodeAt(D)===48;D++);for(w=d.length;d.charCodeAt(--w)===48;);if(d=d.slice(D,++w))if(w-=D,S=S-D-1,S>u)y.c=y.e=null;else if(S<r)y.c=[y.e=0];else{if(y.e=S,y.c=[],D=(S+1)%Yt,S<0&&(D+=Yt),D<w){for(D&&y.c.push(+d.slice(0,D)),w-=Yt;D<w;)y.c.push(+d.slice(D,D+=Yt));D=Yt-(d=d.slice(D)).length}else D-=w;for(;D--;d+="0");y.c.push(+d)}else y.c=[y.e=0]}p.clone=In,p.ROUND_UP=0,p.ROUND_DOWN=1,p.ROUND_CEIL=2,p.ROUND_FLOOR=3,p.ROUND_HALF_UP=4,p.ROUND_HALF_DOWN=5,p.ROUND_HALF_EVEN=6,p.ROUND_HALF_CEIL=7,p.ROUND_HALF_FLOOR=8,p.EUCLID=9,p.config=p.set=function(A){var T,O;if(A!=null)if(typeof A=="object"){if(A.hasOwnProperty(T="DECIMAL_PLACES")&&(O=A[T],ve(O,0,ke,T),a=O),A.hasOwnProperty(T="ROUNDING_MODE")&&(O=A[T],ve(O,0,8,T),o=O),A.hasOwnProperty(T="EXPONENTIAL_AT")&&(O=A[T],O&&O.pop?(ve(O[0],-ke,0,T),ve(O[1],0,ke,T),n=O[0],e=O[1]):(ve(O,-ke,ke,T),n=-(e=O<0?-O:O))),A.hasOwnProperty(T="RANGE"))if(O=A[T],O&&O.pop)ve(O[0],-ke,-1,T),ve(O[1],1,ke,T),r=O[0],u=O[1];else if(ve(O,-ke,ke,T),O)r=-(u=O<0?-O:O);else throw Error(Me+T+" cannot be zero: "+O);if(A.hasOwnProperty(T="CRYPTO"))if(O=A[T],O===!!O)if(O)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))i=O;else throw i=!O,Error(Me+"crypto unavailable");else i=O;else throw Error(Me+T+" not true or false: "+O);if(A.hasOwnProperty(T="MODULO_MODE")&&(O=A[T],ve(O,0,9,T),s=O),A.hasOwnProperty(T="POW_PRECISION")&&(O=A[T],ve(O,0,ke,T),h=O),A.hasOwnProperty(T="FORMAT"))if(O=A[T],typeof O=="object")f=O;else throw Error(Me+T+" not an object: "+O);if(A.hasOwnProperty(T="ALPHABET"))if(O=A[T],typeof O=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(O))l=O;else throw Error(Me+T+" invalid: "+O)}else throw Error(Me+"Object expected: "+A);return{DECIMAL_PLACES:a,ROUNDING_MODE:o,EXPONENTIAL_AT:[n,e],RANGE:[r,u],CRYPTO:i,MODULO_MODE:s,POW_PRECISION:h,FORMAT:f,ALPHABET:l}},p.isBigNumber=function(A){if(!_(A))return!1;var T,O,L=A.c,B=A.e,S=A.s;if({}.toString.call(L)!="[object Array]")return L===null&&B===null&&(S===null||S===1||S===-1);if(S!==1&&S!==-1||B<-ke||B>ke||B!==je(B))return!1;if(L[0]===0)return B===0&&L.length===1;if(T=(B+1)%Yt,T<1&&(T+=Yt),String(L[0]).length!==T)return!1;for(T=0;T<L.length;T++)if(O=L[T],O<0||O>=Re||O!==je(O))return!1;return O!==0},p.maximum=p.max=function(){return k(arguments,-1)},p.minimum=p.min=function(){return k(arguments,1)},p.random=(function(){var A=9007199254740992,T=Math.random()*A&2097151?function(){return je(Math.random()*A)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(O){var L,B,S,D,w,d=0,v=[],y=new p(c);if(O==null?O=a:ve(O,0,ke),D=Br(O/Yt),i)if(crypto.getRandomValues){for(L=crypto.getRandomValues(new Uint32Array(D*=2));d<D;)w=L[d]*131072+(L[d+1]>>>11),w>=9e15?(B=crypto.getRandomValues(new Uint32Array(2)),L[d]=B[0],L[d+1]=B[1]):(v.push(w%1e14),d+=2);d=D/2}else if(crypto.randomBytes){for(L=crypto.randomBytes(D*=7);d<D;)w=(L[d]&31)*281474976710656+L[d+1]*1099511627776+L[d+2]*4294967296+L[d+3]*16777216+(L[d+4]<<16)+(L[d+5]<<8)+L[d+6],w>=9e15?crypto.randomBytes(7).copy(L,d):(v.push(w%1e14),d+=7);d=D/7}else throw i=!1,Error(Me+"crypto unavailable");if(!i)for(;d<D;)w=T(),w<9e15&&(v[d++]=w%1e14);for(D=v[--d],O%=Yt,D&&O&&(w=Pr[Yt-O],v[d]=je(D/w)*w);v[d]===0;v.pop(),d--);if(d<0)v=[S=0];else{for(S=-1;v[0]===0;v.splice(0,1),S-=Yt);for(d=1,w=v[0];w>=10;w/=10,d++);d<Yt&&(S-=Yt-d)}return y.e=S,y.c=v,y}})(),p.sum=function(){for(var A=1,T=arguments,O=new p(T[0]);A<T.length;)O=O.plus(T[A++]);return O},t=(function(){var A="0123456789";function T(O,L,B,S){for(var D,w=[0],d,v=0,y=O.length;v<y;){for(d=w.length;d--;w[d]*=L);for(w[0]+=S.indexOf(O.charAt(v++)),D=0;D<w.length;D++)w[D]>B-1&&(w[D+1]==null&&(w[D+1]=0),w[D+1]+=w[D]/B|0,w[D]%=B)}return w.reverse()}return function(O,L,B,S,D){var w,d,v,y,x,C,N,R,$=O.indexOf("."),V=a,X=o;for($>=0&&(y=h,h=0,O=O.replace(".",""),R=new p(L),C=R.pow(O.length-$),h=y,R.c=T(Xe(Be(C.c),C.e,"0"),10,B,A),R.e=R.c.length),N=T(O,L,B,D?(w=l,A):(w=A,l)),v=y=N.length;N[--y]==0;N.pop());if(!N[0])return w.charAt(0);if($<0?--v:(C.c=N,C.e=v,C.s=S,C=E(C,R,V,X,B),N=C.c,x=C.r,v=C.e),d=v+V+1,$=N[d],y=B/2,x=x||d<0||N[d+1]!=null,x=X<4?($!=null||x)&&(X==0||X==(C.s<0?3:2)):$>y||$==y&&(X==4||x||X==6&&N[d-1]&1||X==(C.s<0?8:7)),d<1||!N[0])O=x?Xe(w.charAt(1),-V,w.charAt(0)):w.charAt(0);else{if(N.length=d,x)for(--B;++N[--d]>B;)N[d]=0,d||(++v,N=[1].concat(N));for(y=N.length;!N[--y];);for($=0,O="";$<=y;O+=w.charAt(N[$++]));O=Xe(O,v,w.charAt(0))}return O}})(),E=(function(){function A(L,B,S){var D,w,d,v,y=0,x=L.length,C=B%We,N=B/We|0;for(L=L.slice();x--;)d=L[x]%We,v=L[x]/We|0,D=N*d+v*C,w=C*d+D%We*We+y,y=(w/S|0)+(D/We|0)+N*v,L[x]=w%S;return y&&(L=[y].concat(L)),L}function T(L,B,S,D){var w,d;if(S!=D)d=S>D?1:-1;else for(w=d=0;w<S;w++)if(L[w]!=B[w]){d=L[w]>B[w]?1:-1;break}return d}function O(L,B,S,D){for(var w=0;S--;)L[S]-=w,w=L[S]<B[S]?1:0,L[S]=w*D+L[S]-B[S];for(;!L[0]&&L.length>1;L.splice(0,1));}return function(L,B,S,D,w){var d,v,y,x,C,N,R,$,V,X,P,q,I,F,H,W,J,Y=L.s==B.s?1:-1,K=L.c,et=B.c;if(!K||!K[0]||!et||!et[0])return new p(!L.s||!B.s||(K?et&&K[0]==et[0]:!et)?NaN:K&&K[0]==0||!et?Y*0:Y/0);for($=new p(Y),V=$.c=[],v=L.e-B.e,Y=S+v+1,w||(w=Re,v=Ne(L.e/Yt)-Ne(B.e/Yt),Y=Y/Yt|0),y=0;et[y]==(K[y]||0);y++);if(et[y]>(K[y]||0)&&v--,Y<0)V.push(1),x=!0;else{for(F=K.length,W=et.length,y=0,Y+=2,C=je(w/(et[0]+1)),C>1&&(et=A(et,C,w),K=A(K,C,w),W=et.length,F=K.length),I=W,X=K.slice(0,W),P=X.length;P<W;X[P++]=0);J=et.slice(),J=[0].concat(J),H=et[0],et[1]>=w/2&&H++;do{if(C=0,d=T(et,X,W,P),d<0){if(q=X[0],W!=P&&(q=q*w+(X[1]||0)),C=je(q/H),C>1)for(C>=w&&(C=w-1),N=A(et,C,w),R=N.length,P=X.length;T(N,X,R,P)==1;)C--,O(N,W<R?J:et,R,w),R=N.length,d=1;else C==0&&(d=C=1),N=et.slice(),R=N.length;if(R<P&&(N=[0].concat(N)),O(X,N,P,w),P=X.length,d==-1)for(;T(et,X,W,P)<1;)C++,O(X,W<P?J:et,P,w),P=X.length}else d===0&&(C++,X=[0]);V[y++]=C,X[0]?X[P++]=K[I]||0:(X=[K[I]],P=1)}while((I++<F||X[0]!=null)&&Y--);x=X[0]!=null,V[0]||V.splice(0,1)}if(w==Re){for(y=1,Y=V[0];Y>=10;Y/=10,y++);j($,S+($.e=y+v*Yt-1)+1,D,x)}else $.e=v,$.r=+x;return $}})();function m(A,T,O,L){var B,S,D,w,d;if(O==null?O=o:ve(O,0,8),!A.c)return A.toString();if(B=A.c[0],D=A.e,T==null)d=Be(A.c),d=L==1||L==2&&(D<=n||D>=e)?wr(d,D):Xe(d,D,"0");else if(A=j(new p(A),T,O),S=A.e,d=Be(A.c),w=d.length,L==1||L==2&&(T<=S||S<=n)){for(;w<T;d+="0",w++);d=wr(d,S)}else if(T-=D+(L===2&&S>D),d=Xe(d,S,"0"),S+1>w){if(--T>0)for(d+=".";T--;d+="0");}else if(T+=S-w,T>0)for(S+1==w&&(d+=".");T--;d+="0");return A.s<0&&B?"-"+d:d}function _(A){return A instanceof p||!!A&&A._isBigNumber===!0}function k(A,T){for(var O,L,B=1,S=new p(A[0]);B<A.length;B++)L=new p(A[B]),(!L.s||(O=Qe(S,L))===T||O===0&&S.s===T)&&(S=L);return S}function M(A,T,O){for(var L=1,B=T.length;!T[--B];T.pop());for(B=T[0];B>=10;B/=10,L++);return(O=L+O*Yt-1)>u?A.c=A.e=null:O<r?A.c=[A.e=0]:(A.e=O,A.c=T),A}b=(function(){var A=/^(-?)0([xbo])(?=\w[\w.]*$)/i,T=/^([^.]+)\.$/,O=/^\.([^.]+)$/,L=/^-?(Infinity|NaN)$/,B=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(S,D,w){var d,v=D.replace(B,"");if(L.test(v)){S.s=isNaN(v)?null:v<0?-1:1,S.c=S.e=null;return}if(v=v.replace(A,function(y,x,C){return d=(C=C.toLowerCase())=="x"?16:C=="b"?2:8,!w||w==d?x:y}),w&&(d=w,v=v.replace(T,"$1").replace(O,"0.$1")),D!=v)return new p(v,d);throw Error(Me+"Not a"+(w?" base "+w:"")+" number: "+D)}})();function j(A,T,O,L){var B,S,D,w,d,v,y,x=A.c,C=Pr;if(x){t:{for(B=1,w=x[0];w>=10;w/=10,B++);if(S=T-B,S<0)S+=Yt,D=T,d=x[v=0],y=je(d/C[B-D-1]%10);else if(v=Br((S+1)/Yt),v>=x.length)if(L){for(;x.length<=v;x.push(0));d=y=0,B=1,S%=Yt,D=S-Yt+1}else break t;else{for(d=w=x[v],B=1;w>=10;w/=10,B++);S%=Yt,D=S-Yt+B,y=D<0?0:je(d/C[B-D-1]%10)}if(L=L||T<0||x[v+1]!=null||(D<0?d:d%C[B-D-1]),L=O<4?(y||L)&&(O==0||O==(A.s<0?3:2)):y>5||y==5&&(O==4||L||O==6&&(S>0?D>0?d/C[B-D]:0:x[v-1])%10&1||O==(A.s<0?8:7)),T<1||!x[0])return x.length=0,L?(T-=A.e+1,x[0]=C[(Yt-T%Yt)%Yt],A.e=-T||0):x[0]=A.e=0,A;if(S==0?(x.length=v,w=1,v--):(x.length=v+1,w=C[Yt-S],x[v]=D>0?je(d/C[B-D]%C[D])*w:0),L)for(;;)if(v==0){for(S=1,D=x[0];D>=10;D/=10,S++);for(D=x[0]+=w,w=1;D>=10;D/=10,w++);S!=w&&(A.e++,x[0]==Re&&(x[0]=1));break}else{if(x[v]+=w,x[v]!=Re)break;x[v--]=0,w=1}for(S=x.length;x[--S]===0;x.pop());}A.e>u?A.c=A.e=null:A.e<r&&(A.c=[A.e=0])}return A}function z(A){var T,O=A.e;return O===null?A.toString():(T=Be(A.c),T=O<=n||O>=e?wr(T,O):Xe(T,O,"0"),A.s<0?"-"+T:T)}return g.absoluteValue=g.abs=function(){var A=new p(this);return A.s<0&&(A.s=1),A},g.comparedTo=function(A,T){return Qe(this,new p(A,T))},g.decimalPlaces=g.dp=function(A,T){var O,L,B,S=this;if(A!=null)return ve(A,0,ke),T==null?T=o:ve(T,0,8),j(new p(S),A+S.e+1,T);if(!(O=S.c))return null;if(L=((B=O.length-1)-Ne(this.e/Yt))*Yt,B=O[B])for(;B%10==0;B/=10,L--);return L<0&&(L=0),L},g.dividedBy=g.div=function(A,T){return E(this,new p(A,T),a,o)},g.dividedToIntegerBy=g.idiv=function(A,T){return E(this,new p(A,T),0,1)},g.exponentiatedBy=g.pow=function(A,T){var O,L,B,S,D,w,d,v,y,x=this;if(A=new p(A),A.c&&!A.isInteger())throw Error(Me+"Exponent not an integer: "+z(A));if(T!=null&&(T=new p(T)),w=A.e>14,!x.c||!x.c[0]||x.c[0]==1&&!x.e&&x.c.length==1||!A.c||!A.c[0])return y=new p(Math.pow(+z(x),w?A.s*(2-vr(A)):+z(A))),T?y.mod(T):y;if(d=A.s<0,T){if(T.c?!T.c[0]:!T.s)return new p(NaN);L=!d&&x.isInteger()&&T.isInteger(),L&&(x=x.mod(T))}else{if(A.e>9&&(x.e>0||x.e<-1||(x.e==0?x.c[0]>1||w&&x.c[1]>=24e7:x.c[0]<8e13||w&&x.c[0]<=9999975e7)))return S=x.s<0&&vr(A)?-0:0,x.e>-1&&(S=1/S),new p(d?1/S:S);h&&(S=Br(h/Yt+2))}for(w?(O=new p(.5),d&&(A.s=1),v=vr(A)):(B=Math.abs(+z(A)),v=B%2),y=new p(c);;){if(v){if(y=y.times(x),!y.c)break;S?y.c.length>S&&(y.c.length=S):L&&(y=y.mod(T))}if(B){if(B=je(B/2),B===0)break;v=B%2}else if(A=A.times(O),j(A,A.e+1,1),A.e>14)v=vr(A);else{if(B=+z(A),B===0)break;v=B%2}x=x.times(x),S?x.c&&x.c.length>S&&(x.c.length=S):L&&(x=x.mod(T))}return L?y:(d&&(y=c.div(y)),T?y.mod(T):S?j(y,h,o,D):y)},g.integerValue=function(A){var T=new p(this);return A==null?A=o:ve(A,0,8),j(T,T.e+1,A)},g.isEqualTo=g.eq=function(A,T){return Qe(this,new p(A,T))===0},g.isFinite=function(){return!!this.c},g.isGreaterThan=g.gt=function(A,T){return Qe(this,new p(A,T))>0},g.isGreaterThanOrEqualTo=g.gte=function(A,T){return(T=Qe(this,new p(A,T)))===1||T===0},g.isInteger=function(){return!!this.c&&Ne(this.e/Yt)>this.c.length-2},g.isLessThan=g.lt=function(A,T){return Qe(this,new p(A,T))<0},g.isLessThanOrEqualTo=g.lte=function(A,T){return(T=Qe(this,new p(A,T)))===-1||T===0},g.isNaN=function(){return!this.s},g.isNegative=function(){return this.s<0},g.isPositive=function(){return this.s>0},g.isZero=function(){return!!this.c&&this.c[0]==0},g.minus=function(A,T){var O,L,B,S,D=this,w=D.s;if(A=new p(A,T),T=A.s,!w||!T)return new p(NaN);if(w!=T)return A.s=-T,D.plus(A);var d=D.e/Yt,v=A.e/Yt,y=D.c,x=A.c;if(!d||!v){if(!y||!x)return y?(A.s=-T,A):new p(x?D:NaN);if(!y[0]||!x[0])return x[0]?(A.s=-T,A):new p(y[0]?D:o==3?-0:0)}if(d=Ne(d),v=Ne(v),y=y.slice(),w=d-v){for((S=w<0)?(w=-w,B=y):(v=d,B=x),B.reverse(),T=w;T--;B.push(0));B.reverse()}else for(L=(S=(w=y.length)<(T=x.length))?w:T,w=T=0;T<L;T++)if(y[T]!=x[T]){S=y[T]<x[T];break}if(S&&(B=y,y=x,x=B,A.s=-A.s),T=(L=x.length)-(O=y.length),T>0)for(;T--;y[O++]=0);for(T=Re-1;L>w;){if(y[--L]<x[L]){for(O=L;O&&!y[--O];y[O]=T);--y[O],y[L]+=Re}y[L]-=x[L]}for(;y[0]==0;y.splice(0,1),--v);return y[0]?M(A,y,v):(A.s=o==3?-1:1,A.c=[A.e=0],A)},g.modulo=g.mod=function(A,T){var O,L,B=this;return A=new p(A,T),!B.c||!A.s||A.c&&!A.c[0]?new p(NaN):!A.c||B.c&&!B.c[0]?new p(B):(s==9?(L=A.s,A.s=1,O=E(B,A,0,3),A.s=L,O.s*=L):O=E(B,A,0,s),A=B.minus(O.times(A)),!A.c[0]&&s==1&&(A.s=B.s),A)},g.multipliedBy=g.times=function(A,T){var O,L,B,S,D,w,d,v,y,x,C,N,R,$,V,X=this,P=X.c,q=(A=new p(A,T)).c;if(!P||!q||!P[0]||!q[0])return!X.s||!A.s||P&&!P[0]&&!q||q&&!q[0]&&!P?A.c=A.e=A.s=null:(A.s*=X.s,!P||!q?A.c=A.e=null:(A.c=[0],A.e=0)),A;for(L=Ne(X.e/Yt)+Ne(A.e/Yt),A.s*=X.s,d=P.length,x=q.length,d<x&&(R=P,P=q,q=R,B=d,d=x,x=B),B=d+x,R=[];B--;R.push(0));for($=Re,V=We,B=x;--B>=0;){for(O=0,C=q[B]%V,N=q[B]/V|0,D=d,S=B+D;S>B;)v=P[--D]%V,y=P[D]/V|0,w=N*v+y*C,v=C*v+w%V*V+R[S]+O,O=(v/$|0)+(w/V|0)+N*y,R[S--]=v%$;R[S]=O}return O?++L:R.splice(0,1),M(A,R,L)},g.negated=function(){var A=new p(this);return A.s=-A.s||null,A},g.plus=function(A,T){var O,L=this,B=L.s;if(A=new p(A,T),T=A.s,!B||!T)return new p(NaN);if(B!=T)return A.s=-T,L.minus(A);var S=L.e/Yt,D=A.e/Yt,w=L.c,d=A.c;if(!S||!D){if(!w||!d)return new p(B/0);if(!w[0]||!d[0])return d[0]?A:new p(w[0]?L:B*0)}if(S=Ne(S),D=Ne(D),w=w.slice(),B=S-D){for(B>0?(D=S,O=d):(B=-B,O=w),O.reverse();B--;O.push(0));O.reverse()}for(B=w.length,T=d.length,B-T<0&&(O=d,d=w,w=O,T=B),B=0;T;)B=(w[--T]=w[T]+d[T]+B)/Re|0,w[T]=Re===w[T]?0:w[T]%Re;return B&&(w=[B].concat(w),++D),M(A,w,D)},g.precision=g.sd=function(A,T){var O,L,B,S=this;if(A!=null&&A!==!!A)return ve(A,1,ke),T==null?T=o:ve(T,0,8),j(new p(S),A,T);if(!(O=S.c))return null;if(B=O.length-1,L=B*Yt+1,B=O[B]){for(;B%10==0;B/=10,L--);for(B=O[0];B>=10;B/=10,L++);}return A&&S.e+1>L&&(L=S.e+1),L},g.shiftedBy=function(A){return ve(A,-ln,ln),this.times("1e"+A)},g.squareRoot=g.sqrt=function(){var A,T,O,L,B,S=this,D=S.c,w=S.s,d=S.e,v=a+4,y=new p("0.5");if(w!==1||!D||!D[0])return new p(!w||w<0&&(!D||D[0])?NaN:D?S:1/0);if(w=Math.sqrt(+z(S)),w==0||w==1/0?(T=Be(D),(T.length+d)%2==0&&(T+="0"),w=Math.sqrt(+T),d=Ne((d+1)/2)-(d<0||d%2),w==1/0?T="5e"+d:(T=w.toExponential(),T=T.slice(0,T.indexOf("e")+1)+d),O=new p(T)):O=new p(w+""),O.c[0]){for(d=O.e,w=d+v,w<3&&(w=0);;)if(B=O,O=y.times(B.plus(E(S,B,v,1))),Be(B.c).slice(0,w)===(T=Be(O.c)).slice(0,w))if(O.e<d&&--w,T=T.slice(w-3,w+1),T=="9999"||!L&&T=="4999"){if(!L&&(j(B,B.e+a+2,0),B.times(B).eq(S))){O=B;break}v+=4,w+=4,L=1}else{(!+T||!+T.slice(1)&&T.charAt(0)=="5")&&(j(O,O.e+a+2,1),A=!O.times(O).eq(S));break}}return j(O,O.e+a+1,o,A)},g.toExponential=function(A,T){return A!=null&&(ve(A,0,ke),A++),m(this,A,T,1)},g.toFixed=function(A,T){return A!=null&&(ve(A,0,ke),A=A+this.e+1),m(this,A,T)},g.toFormat=function(A,T,O){var L,B=this;if(O==null)A!=null&&T&&typeof T=="object"?(O=T,T=null):A&&typeof A=="object"?(O=A,A=T=null):O=f;else if(typeof O!="object")throw Error(Me+"Argument not an object: "+O);if(L=B.toFixed(A,T),B.c){var S,D=L.split("."),w=+O.groupSize,d=+O.secondaryGroupSize,v=O.groupSeparator||"",y=D[0],x=D[1],C=B.s<0,N=C?y.slice(1):y,R=N.length;if(d&&(S=w,w=d,d=S,R-=S),w>0&&R>0){for(S=R%w||w,y=N.substr(0,S);S<R;S+=w)y+=v+N.substr(S,w);d>0&&(y+=v+N.slice(S)),C&&(y="-"+y)}L=x?y+(O.decimalSeparator||"")+((d=+O.fractionGroupSize)?x.replace(new RegExp("\\d{"+d+"}\\B","g"),"$&"+(O.fractionGroupSeparator||"")):x):y}return(O.prefix||"")+L+(O.suffix||"")},g.toFraction=function(A){var T,O,L,B,S,D,w,d,v,y,x,C,N=this,R=N.c;if(A!=null&&(w=new p(A),!w.isInteger()&&(w.c||w.s!==1)||w.lt(c)))throw Error(Me+"Argument "+(w.isInteger()?"out of range: ":"not an integer: ")+z(w));if(!R)return new p(N);for(T=new p(c),v=O=new p(c),L=d=new p(c),C=Be(R),S=T.e=C.length-N.e-1,T.c[0]=Pr[(D=S%Yt)<0?Yt+D:D],A=!A||w.comparedTo(T)>0?S>0?T:v:w,D=u,u=1/0,w=new p(C),d.c[0]=0;y=E(w,T,0,1),B=O.plus(y.times(L)),B.comparedTo(A)!=1;)O=L,L=B,v=d.plus(y.times(B=v)),d=B,T=w.minus(y.times(B=T)),w=B;return B=E(A.minus(O),L,0,1),d=d.plus(B.times(v)),O=O.plus(B.times(L)),d.s=v.s=N.s,S=S*2,x=E(v,L,S,o).minus(N).abs().comparedTo(E(d,O,S,o).minus(N).abs())<1?[v,L]:[d,O],u=D,x},g.toNumber=function(){return+z(this)},g.toObject=function(){var A=this;return{c:A.c?A.c.slice():null,e:A.e,s:A.s}},g.toPrecision=function(A,T){return A!=null&&ve(A,1,ke),m(this,A,T,2)},g.toString=function(A){var T,O=this,L=O.s,B=O.e;return B===null?L?(T="Infinity",L<0&&(T="-"+T)):T="NaN":(A==null?T=B<=n||B>=e?wr(Be(O.c),B):Xe(Be(O.c),B,"0"):(ve(A,2,l.length,"Base"),T=t(Xe(Be(O.c),B,"0"),10,A,L,!0)),L<0&&O.c[0]&&(T="-"+T)),T},g.valueOf=g.toJSON=function(){return z(this)},g._isBigNumber=!0,U!=null&&p.set(U),p}function Ne(U){var E=U|0;return U>0||U===E?E:E-1}function Be(U){for(var E,t,b=1,g=U.length,c=U[0]+"";b<g;){for(E=U[b++]+"",t=Yt-E.length;t--;E="0"+E);c+=E}for(g=c.length;c.charCodeAt(--g)===48;);return c.slice(0,g+1||1)}function Qe(U,E){var t,b,g=U.c,c=E.c,a=U.s,o=E.s,n=U.e,e=E.e;if(!a||!o)return null;if(t=g&&!g[0],b=c&&!c[0],t||b)return t?b?0:-o:a;if(a!=o)return a;if(t=a<0,b=n==e,!g||!c)return b?0:!g^t?1:-1;if(!b)return n>e^t?1:-1;for(o=(n=g.length)<(e=c.length)?n:e,a=0;a<o;a++)if(g[a]!=c[a])return g[a]>c[a]^t?1:-1;return n==e?0:n>e^t?1:-1}function ve(U,E,t,b){if(U<E||U>t||U!==je(U))throw Error(Me+(b||"Argument")+(typeof U=="number"?U<E||U>t?" out of range: ":" not an integer: ":" not a primitive number: ")+String(U))}function vr(U){var E=U.c.length-1;return Ne(U.e/Yt)==E&&U.c[E]%2!=0}function wr(U,E){return(U.length>1?U.charAt(0)+"."+U.slice(1):U)+(E<0?"e":"e+")+E}function Xe(U,E,t){var b,g;if(E<0){for(g=t+".";++E;g+=t);U=g+U}else if(b=U.length,++E>b){for(g=t,E-=b;--E;g+=t);U+=g}else E<b&&(U=U.slice(0,E)+"."+U.slice(E));return U}Kt.extend(Wn);Kt.extend(Kn);Kt.extend(ti);Kt.extend(ii);Kt.extend(ui);function ci(U,E,t){return U?E:t}function hi(U){return U==null||U===""||U===0}function fi(U){return Zr.isNull(U)}function di(U){return Zr.isUndefined(U)}function pi(...U){return(()=>{for(const b of U)if(!b)return!1;return!0})()}function mi(...U){return U.some(b=>b)}function bi(U,E){return Zr.isEqual(U,E)}function gi(U,E){return U!==E}function yi(U,E){return typeof U=="number"&&typeof E=="number"||typeof U=="string"&&typeof E=="string"||U instanceof Date&&E instanceof Date?U<=E:!1}function vi(U,E){return typeof U=="number"&&typeof E=="number"||typeof U=="string"&&typeof E=="string"||U instanceof Date&&E instanceof Date?U<E:!1}function wi(U,E){return typeof U=="number"&&typeof E=="number"||typeof U=="string"&&typeof E=="string"||U instanceof Date&&E instanceof Date?U>=E:!1}function xi(U,E){return typeof U=="number"&&typeof E=="number"||typeof U=="string"&&typeof E=="string"||U instanceof Date&&E instanceof Date?U>E:!1}function _i(U){return U?.length||0}function Ei(...U){return U.join("")}function Si(U="",E,t){return(()=>{const c=(E<0?[...U].reverse().join(""):U).slice(Math.abs(E+ +(E<0)),Math.abs(t)+ +(E>=0));return E<0?[...c].reverse().join(""):c})()}function ki(U="",E,t){return(()=>{const c=(E<0?[...U].reverse().join(""):U).slice(Math.abs(E+ +(E<0)),Math.abs(E+ +(E<0))+Math.abs(t));return E<0?[...c].reverse().join(""):c})()}function Ci(U=""){return U.toUpperCase()}function Di(U=""){return U.toLowerCase()}function Ai(U=""){return U.trim()}function Ti(U=""){return U.replace(/^\s\s*/,"")}function Mi(U=""){return U.replace(/\s\s*$/,"")}function Fi(U="",E=""){return U.match(new RegExp(E,"g"))?.length||null}function Ii(U="",E="",t=""){return U.replace(new RegExp(E,"g"),t)}function Ni(U="",E=""){return U.includes(E)}function Oi(U="",E=""){return(()=>{const g=U.match(new RegExp(E,"g"))?.length;return g||0})()}function Ri(U=""){return(()=>{const b=parseFloat(U);return isNaN(b)?null:b})()}function Bi(U="",E=""){return U.split(E)}function Pi(...U){const E=U.flat().filter(g=>g!==""&&g!==null&&g!==void 0);return E.length?E.reduce(Qr,0):""}function ji(...U){return U.flat().reduce(Qr,0)}function Li(U,...E){return E.reduce(Ts,U)}function zi(U,...E){const t=E.flat().filter(c=>c!==""&&c!==null&&c!==void 0);return t.length?t.reduce(Nn,U):""}function Ui(U,...E){return E.reduce(Ms,U)}function Hi(U,E){return(()=>{if(E<0)throw new Error("Decimal places should be non-negative.");const g=U.toString().split("."),[c,a=""]=g;if(E==0)return c;let o=a.split("");if(o.length>E)o=o.slice(0,E);else{const n=o.length;for(let e=0;e<E-n;e++)o.push("0")}return`${c}.${o.join("")}`})()}function $i(U,E){return(()=>{if(U===null||U===""||U===void 0)return"";if(E<0)throw new Error("Decimal places should be non-negative.");const g=Math.trunc(E),c=Number(U);if(isNaN(c))return"";const a=c>0?(+(Math.round(+(c+`e${g}`))+`e-${g}`)).toFixed(g):-(+(Math.round(+(-c+`e${g}`))+`e-${g}`)).toFixed(g);return parseFloat(a+"")})()}function Vi(U,E){if(U===null||U===""||U===void 0)return"";if(E<0)throw new Error("Decimal places should be non-negative.");return E=E?parseInt(E+""):0,new Ae(U).decimalPlaces(E,Ae.ROUND_UP).toNumber()}function qi(...U){const E=U.flat().filter(g=>g!==""&&g!==null&&g!==void 0);return E.length?Math.max.apply(null,E):""}function Wi(U,E){return(()=>{if(E<1||E>U.length)throw new Error("Invalid value of n. It should be between 1 and the array length.");return U.sort((c,a)=>a-c)[E-1]})()}function Xi(...U){const E=U.flat().filter(g=>g!==""&&g!==null&&g!==void 0);return E.length?Math.min.apply(null,E):""}function Yi(U,E){return(()=>{if(E<1||E>U.length)throw new Error("Invalid value of n. It should be between 1 and the array length.");return U.sort((c,a)=>c-a)[E-1]})()}function Gi(...U){const E=U.flat().filter(g=>g!==""&&g!==null&&g!==void 0),t=E.length;if(!t)return"";let b=new Ae(0);for(const g of E)b=b.plus(g);return b.dividedBy(t).toNumber()}function Ki(U){return Math.abs.call(null,U)}function Ji(U,E){return(()=>{if(U===0)throw new Error("The second value should not be zero.");const g=new Ae(U).mod(E).toNumber();return isNaN(g)?"":g})()}function Kr(U){if(typeof U=="number")return Number.isFinite(U)?U:null;if(typeof U=="string"){const E=U.trim();if(E==="")return null;const t=Number(E);return Number.isFinite(t)?t:null}if(typeof U=="bigint"){const E=Number(U);return Number.isFinite(E)?E:null}return null}function Zi(U,E){return(()=>{const g=Kr(U),c=Kr(E);return g===null||c===null?NaN:Math.abs(c)>1e9?c>0?1/0:0:Math.pow(g,c)})()}function Qi(U){return(()=>{const b=Kr(U);return b===null?NaN:Math.sqrt(b)})()}function ts(U,E){return(()=>{if(Array.isArray(U)){if(typeof E=="number")return U[E];throw new Error("For arrays, the second argument should be a number.")}else if(typeof U=="object"){if(typeof E=="string")return U[E];throw new Error("For objects, the second argument (b) should be a string.")}else throw new Error("Unsupported data type. The first argument (a) should be an array or an object.")})()}function es(U,E,t){return(()=>{if(Array.isArray(U))if(typeof E=="number"&&E>=0&&E<U.length)U[E]=t;else throw new Error("For arrays, the second argument (b) should be a number.");else if(typeof U=="object")if(typeof E=="string"&&U)U[E]=t;else throw new Error("For objects, the second argument (b) should be a string.");else throw new Error("Unsupported data type. The first argument (a) should be an array or an object.");return U})()}function rs(U,E){return(()=>{if(!E)throw new Error("For arrays, the second argument should not be null or undefined");return U.push(E),U})()}function ns(U,E){return(()=>{if(!E)throw new Error("For arrays, the second argument should not be null or undefined");return U.unshift(E),U})()}function is(U){return U?(()=>{if(!U)throw new Error("the frist argument should not be null");const b=new Date(U*1e3),g=b.getFullYear(),c=String(b.getMonth()+1).padStart(2,"0"),a=String(b.getDate()).padStart(2,"0"),o=String(b.getHours()).padStart(2,"0"),n=String(b.getMinutes()).padStart(2,"0"),e=String(b.getSeconds()).padStart(2,"0");return`${g}-${c}-${a} ${o}:${n}:${e}`})():void 0}function ss(U){return U?Kt(U).unix():void 0}function as(U,E){return U?Kt(U).format(E):void 0}function os(){return Kt().format("YYYY-MM-DD HH:MM:ss")}function us(){return Kt().format("YYYY-MM-DD")}function ls(U){return Kt(U).year()}function cs(U){return Kt(U).month()}function hs(U){return Kt(U).day()}function fs(U){return Kt(U).hour()}function ds(U){return Kt(U).minute()}function ps(){return(()=>{const t=Ce(Kt().startOf("week").toDate()),b=Ce(Kt().endOf("week").toDate());return[t,b]})()}function ms(){return(()=>{const t=Ce(Kt().subtract(1,"week").startOf("week").toDate()),b=Ce(Kt().subtract(1,"week").endOf("week").toDate());return[t,b]})()}function bs(){return(()=>{const t=Ce(Kt().startOf("month").toDate()),b=Ce(Kt().endOf("month").toDate());return[t,b]})()}function gs(){return(()=>{const t=Ce(Kt().subtract(1,"month").startOf("month").toDate()),b=Ce(Kt().subtract(1,"month").endOf("month").toDate());return[t,b]})()}function ys(){return(()=>{const t=Ce(Kt().startOf("year").toDate()),b=Ce(Kt().endOf("year").toDate());return[t,b]})()}function vs(){return(()=>{const t=Ce(Kt().subtract(1,"year").startOf("year").toDate()),b=Ce(Kt().subtract(1,"year").endOf("year").toDate());return[t,b]})()}function ws(){return(()=>{const t=Math.floor((Kt().month()+3)/3),b=Ce(Kt().quarter(t).startOf("quarter").toDate()),g=Ce(Kt().quarter(t).endOf("quarter").toDate());return[b,g]})()}function xs(){return(()=>{const t=Math.floor((Kt().month()+3)/3),b=Ce(Kt().quarter(t-1).startOf("quarter").toDate()),g=Ce(Kt().quarter(t-1).endOf("quarter").toDate());return[b,g]})()}function _s(U,E){return(()=>{const[g,c]=E;return U>=g&&U<=c})()}function Es(U,E){return(()=>{const[g,c]=E,a=Kt(U,"HH:mm");if(g>c){const o=Kt(g,"HH:mm"),n=Kt(c,"HH:mm").add(1,"day");return a>=o||a<=n}else return a>=Kt(g,"HH:mm")&&a<=Kt(c,"HH:mm")})()}function Ce(U){return Kt(U).tz("America/Chicago").format("YYYY-MM-DD HH:mm:ss.SSSSSSSSS ZZ")}function Ss(...U){return[...U]}function ks(...U){const E=(U.length-U.length%2)/2,t={};return Array(E).forEach(b=>{const g=U[b*2],c=U[b*2+1];t[g]=c}),t}function Cs(...U){return U=U.flat().filter(t=>t!==""&&t!==null&&t!==void 0),U.length===0?"":U.map(t=>{const b=Nn(t,t);return b!==""?b:new Ae(0).toNumber()}).reduce((t,b)=>Qr(t,b)||Ae(0).toNumber(),new Ae(0).toNumber())}function Ds(U){return Array.isArray(U)?U.length:""}function As(...U){const E=U.flat().map(g=>Number(g)).filter(g=>Number.isFinite(g));if(E.length<2)return"";const t=E.reduce((g,c)=>g+c,0)/E.length,b=E.reduce((g,c)=>{const a=c-t;return g+a*a},0)/(E.length-1);return Math.sqrt(b)}function Qr(U,E){const t=new Ae(U).plus(new Ae(E)).toNumber();return isNaN(t)?"":t}function Ts(U,E){const t=new Ae(U).minus(new Ae(E)).toNumber();return isNaN(t)?"":t}function Nn(U,E){const t=new Ae(U).multipliedBy(new Ae(E)).toNumber();return isNaN(t)?"":t}function Ms(U,E){const t=new Ae(U).div(new Ae(E)).toNumber();return isNaN(t)?"":t}const On=Object.freeze(Object.defineProperty({__proto__:null,ABS:Ki,ADD:ji,AND:pi,AVERAGE:Gi,CONCAT:Ei,COUNT:Ds,DATE2TIMESTAMP:ss,DATEFORMAT:as,DAY:hs,DIVISION:Ui,EQ:bi,FINDSTR:Ni,FIXED:Hi,GE:wi,GET:ts,GT:xi,HEADPUSH:ns,HOUR:fs,IF:ci,ISDATERANGE:_s,ISEMPTY:hi,ISNULL:fi,ISTIMERANGE:Es,ISUNDEFINED:di,LARGE:Wi,LASTMONTHRANGE:gs,LASTQUARTER:xs,LASTWEEKRANGE:ms,LASTYEARRANGE:vs,LE:yi,LEN:_i,LOWER:Di,LT:vi,LTRIM:Ti,MAX:qi,MIN:Xi,MINUTE:ds,MOD:Ji,MONTH:cs,MONTHRANGE:bs,MULTIPLICATION:zi,NE:gi,NOW:os,OR:mi,PARSENUMBER:Ri,POWER:Zi,PUSH:rs,PUT:es,QUARTER:ws,REDUCE:Li,REPEAT:Fi,REPLACE:Ii,ROUND:$i,ROUNDUP:Vi,RTRIM:Mi,SEARCHSTR:Oi,SEQMAP:ks,SMALL:Yi,SPLIT:Bi,SQRT:Qi,STDEV:As,SUBSTR:ki,SUBSTRING:Si,SUM:Pi,SUMSQ:Cs,TIMESTAMP2DATE:is,TODAY:us,TRIM:Ai,TUPLE:Ss,UPPER:Ci,WEEKRANGE:ps,YEAR:ls,YEARRANGE:ys},Symbol.toStringTag,{value:"Module"}));var lt;(function(U){U.AssignmentExpression="AssignmentExpression",U.AssignmentPattern="AssignmentPattern",U.ArrayExpression="ArrayExpression",U.ArrayPattern="ArrayPattern",U.ArrowFunctionExpression="ArrowFunctionExpression",U.AwaitExpression="AwaitExpression",U.BlockStatement="BlockStatement",U.BinaryExpression="BinaryExpression",U.BreakStatement="BreakStatement",U.CallExpression="CallExpression",U.CatchClause="CatchClause",U.ChainExpression="ChainExpression",U.ClassBody="ClassBody",U.ClassDeclaration="ClassDeclaration",U.ClassExpression="ClassExpression",U.ConditionalExpression="ConditionalExpression",U.ContinueStatement="ContinueStatement",U.Decorator="Decorator",U.DoWhileStatement="DoWhileStatement",U.DebuggerStatement="DebuggerStatement",U.EmptyStatement="EmptyStatement",U.ExportAllDeclaration="ExportAllDeclaration",U.ExportDefaultDeclaration="ExportDefaultDeclaration",U.ExportNamedDeclaration="ExportNamedDeclaration",U.ExportSpecifier="ExportSpecifier",U.ExpressionStatement="ExpressionStatement",U.ForStatement="ForStatement",U.ForOfStatement="ForOfStatement",U.ForInStatement="ForInStatement",U.FunctionDeclaration="FunctionDeclaration",U.FunctionExpression="FunctionExpression",U.Identifier="Identifier",U.IfStatement="IfStatement",U.ImportAttribute="ImportAttribute",U.ImportExpression="ImportExpression",U.ImportDeclaration="ImportDeclaration",U.ImportDefaultSpecifier="ImportDefaultSpecifier",U.ImportNamespaceSpecifier="ImportNamespaceSpecifier",U.ImportSpecifier="ImportSpecifier",U.Literal="Literal",U.LabeledStatement="LabeledStatement",U.LogicalExpression="LogicalExpression",U.MemberExpression="MemberExpression",U.MetaProperty="MetaProperty",U.MethodDefinition="MethodDefinition",U.NewExpression="NewExpression",U.ObjectExpression="ObjectExpression",U.ObjectPattern="ObjectPattern",U.Program="Program",U.Property="Property",U.PrivateIdentifier="PrivateIdentifier",U.RestElement="RestElement",U.ReturnStatement="ReturnStatement",U.SequenceExpression="SequenceExpression",U.SpreadElement="SpreadElement",U.StaticBlock="StaticBlock",U.Super="Super",U.SwitchCase="SwitchCase",U.SwitchStatement="SwitchStatement",U.TaggedTemplateExpression="TaggedTemplateExpression",U.TemplateElement="TemplateElement",U.TemplateLiteral="TemplateLiteral",U.ThisExpression="ThisExpression",U.ThrowStatement="ThrowStatement",U.TryStatement="TryStatement",U.UnaryExpression="UnaryExpression",U.UpdateExpression="UpdateExpression",U.VariableDeclaration="VariableDeclaration",U.VariableDeclarator="VariableDeclarator",U.WhileStatement="WhileStatement",U.WithStatement="WithStatement",U.YieldExpression="YieldExpression"})(lt||(lt={}));class Fs{constructor(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}insertInnerComments(E,t){if(E.type===lt.BlockStatement&&E.body.length===0){const b=[];for(let g=this.leading.length-1;g>=0;--g){const c=this.leading[g];t.end.offset>=c.start&&(b.unshift(c.comment),this.leading.splice(g,1),this.trailing.splice(g,1))}b.length&&(E.innerComments=b)}}findTrailingComments(E){let t=[];if(this.trailing.length>0){for(let g=this.trailing.length-1;g>=0;--g){const c=this.trailing[g];c.start>=E.end.offset&&t.unshift(c.comment)}return this.trailing.length=0,t}const b=this.stack[this.stack.length-1];if(b&&b.node.trailingComments){const g=b.node.trailingComments[0];g&&g.range[0]>=E.end.offset&&(t=b.node.trailingComments,delete b.node.trailingComments)}return t}findLeadingComments(E){const t=[];let b;for(;this.stack.length>0;){const g=this.stack[this.stack.length-1];if(g&&g.start>=E.start.offset)b=g.node,this.stack.pop();else break}if(b){const g=b.leadingComments?b.leadingComments.length:0;for(let c=g-1;c>=0;--c){const a=b.leadingComments[c];a.range[1]<=E.start.offset&&(t.unshift(a),b.leadingComments.splice(c,1))}return b.leadingComments&&b.leadingComments.length===0&&delete b.leadingComments,t}for(let g=this.leading.length-1;g>=0;--g){const c=this.leading[g];c.start<=E.start.offset&&(t.unshift(c.comment),this.leading.splice(g,1))}return t}visitNode(E,t){if(E.type===lt.Program&&E.body.length>0)return;this.insertInnerComments(E,t);const b=this.findTrailingComments(t),g=this.findLeadingComments(t);g.length>0&&(E.leadingComments=g),b.length>0&&(E.trailingComments=b),this.stack.push({node:E,start:t.start.offset})}visitComment(E,t){const b=E.type[0]==="L"?"Line":"Block",g={type:b,value:E.value};if(E.range&&(g.range=E.range),E.loc&&(g.loc=E.loc),this.comments.push(g),this.attach){const c={comment:{type:b,value:E.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};E.loc&&(c.comment.loc=E.loc),E.type=b,this.leading.push(c),this.trailing.push(c)}}visit(E,t){E.type==="LineComment"?this.visitComment(E,t):E.type==="BlockComment"?this.visitComment(E,t):this.attach&&this.visitNode(E,t)}}const cn={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},Rt={fromCodePoint(U){return U<65536?String.fromCharCode(U):String.fromCharCode(55296+(U-65536>>10))+String.fromCharCode(56320+(U-65536&1023))},isStringWellFormedUnicode(U){for(let E=0;E<U.length;E++){let t=U.charCodeAt(E);if(t>=55296&&t<=56319){if(E===U.length-1||(E++,t=U.charCodeAt(E),t<56320&&t>57343))return!1}else if(t>=56320&&t<=57343)return!1}return!0},isWhiteSpace(U){return U===32||U===9||U===11||U===12||U===160||U>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(U)>=0},isLineTerminator(U){return U===10||U===13||U===8232||U===8233},isIdentifierStart(U){return U===36||U===95||U>=65&&U<=90||U>=97&&U<=122||U===92||U>=128&&cn.NonAsciiIdentifierStart.test(Rt.fromCodePoint(U))},isIdentifierPart(U){return U===36||U===95||U>=65&&U<=90||U>=97&&U<=122||U>=48&&U<=57||U===92||U>=128&&cn.NonAsciiIdentifierPart.test(Rt.fromCodePoint(U))},isDecimalDigit(U){return U>=48&&U<=57},isDecimalDigitChar(U){return U.length===1&&Rt.isDecimalDigit(U.charCodeAt(0))},isHexDigit(U){return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102},isHexDigitChar(U){return U.length===1&&Rt.isHexDigit(U.charCodeAt(0))},isOctalDigit(U){return U>=48&&U<=55},isOctalDigitChar(U){return U.length===1&&Rt.isOctalDigit(U.charCodeAt(0))}};var xe;(function(U){U.JSXAttribute="JSXAttribute",U.JSXClosingElement="JSXClosingElement",U.JSXClosingFragment="JSXClosingFragment",U.JSXElement="JSXElement",U.JSXEmptyExpression="JSXEmptyExpression",U.JSXExpressionContainer="JSXExpressionContainer",U.JSXIdentifier="JSXIdentifier",U.JSXMemberExpression="JSXMemberExpression",U.JSXNamespacedName="JSXNamespacedName",U.JSXOpeningElement="JSXOpeningElement",U.JSXOpeningFragment="JSXOpeningFragment",U.JSXSpreadAttribute="JSXSpreadAttribute",U.JSXText="JSXText"})(xe||(xe={}));class Is{constructor(E){this.type=xe.JSXClosingElement,this.name=E}}class Ns{constructor(){this.type=xe.JSXClosingFragment}}class jr{constructor(E,t,b){this.type=xe.JSXElement,this.openingElement=E,this.children=t,this.closingElement=b}}class Os{constructor(){this.type=xe.JSXEmptyExpression}}class hn{constructor(E){this.type=xe.JSXExpressionContainer,this.expression=E}}class Rs{constructor(E){this.type=xe.JSXIdentifier,this.name=E}}class Bs{constructor(E,t){this.type=xe.JSXMemberExpression,this.object=E,this.property=t}}class Ps{constructor(E,t){this.type=xe.JSXAttribute,this.name=E,this.value=t}}class fn{constructor(E,t){this.type=xe.JSXNamespacedName,this.namespace=E,this.name=t}}class dn{constructor(E,t,b){this.type=xe.JSXOpeningElement,this.name=E,this.selfClosing=t,this.attributes=b}}class js{constructor(E){this.type=xe.JSXOpeningFragment,this.selfClosing=E}}class Ls{constructor(E){this.type=xe.JSXSpreadAttribute,this.argument=E}}class zs{constructor(E,t){this.type=xe.JSXText,this.value=E,this.raw=t}}class Us{constructor(E){this.type=lt.ArrayExpression,this.elements=E}}class Hs{constructor(E){this.type=lt.ArrayPattern,this.elements=E}}class $s{constructor(E,t,b,g){this.type=lt.ArrowFunctionExpression,this.id=null,this.params=E,this.body=t,this.generator=!1,this.expression=b,this.async=g}}class Vs{constructor(E,t,b){this.type=lt.AssignmentExpression,this.operator=E,this.left=t,this.right=b}}class Lr{constructor(E,t){this.type=lt.AssignmentPattern,this.left=E,this.right=t}}class qs{constructor(E,t,b,g){this.type=lt.FunctionDeclaration,this.id=E,this.params=t,this.body=b,this.generator=g,this.expression=!1,this.async=!0}}class Ws{constructor(E){this.type=lt.AwaitExpression,this.argument=E}}class pn{constructor(E,t,b){this.type=lt.Literal,this.value=E,this.raw=t,this.bigint=b}}class zr{constructor(E,t,b){this.type=lt.BinaryExpression,this.operator=E,this.left=t,this.right=b}}class mn{constructor(E){this.type=lt.BlockStatement,this.body=E}}class Xs{constructor(E){this.type=lt.BreakStatement,this.label=E}}class Ys{constructor(E,t,b){this.type=lt.CallExpression,this.callee=E,this.arguments=t,this.optional=b}}class Gs{constructor(E,t){this.type=lt.CatchClause,this.param=E,this.body=t}}class bn{constructor(E){this.type=lt.ChainExpression,this.expression=E}}class Ks{constructor(E){this.type=lt.ClassBody,this.body=E}}class Js{constructor(E,t,b,g){this.type=lt.ClassDeclaration,this.id=E,this.superClass=t,this.body=b,this.decorators=g}}class Zs{constructor(E,t,b,g){this.type=lt.ClassExpression,this.id=E,this.superClass=t,this.body=b,this.decorators=g}}class Qs{constructor(E,t,b){this.type=lt.ConditionalExpression,this.test=E,this.consequent=t,this.alternate=b}}class ta{constructor(E){this.type=lt.ContinueStatement,this.label=E}}class ea{constructor(){this.type=lt.DebuggerStatement}}class ra{constructor(E){this.type=lt.Decorator,this.expression=E}}class na{constructor(E,t){this.type=lt.ExpressionStatement,this.expression=E,this.directive=t}}class ia{constructor(E,t){this.type=lt.DoWhileStatement,this.body=E,this.test=t}}class cr{constructor(){this.type=lt.EmptyStatement}}class sa{constructor(E,t,b){this.type=lt.ExportAllDeclaration,this.source=E,this.exported=t,this.assertions=b}}class xr{constructor(E){this.type=lt.ExportDefaultDeclaration,this.declaration=E}}class Ur{constructor(E,t,b,g){this.type=lt.ExportNamedDeclaration,this.declaration=E,this.specifiers=t,this.source=b,this.assertions=g}}class aa{constructor(E,t){this.type=lt.ExportSpecifier,this.exported=t,this.local=E}}class Hr{constructor(E){this.type=lt.ExpressionStatement,this.expression=E}}class oa{constructor(E,t,b){this.type=lt.ForInStatement,this.left=E,this.right=t,this.body=b,this.each=!1}}class ua{constructor(E,t,b,g){this.type=lt.ForOfStatement,this.await=g,this.left=E,this.right=t,this.body=b}}class la{constructor(E,t,b,g){this.type=lt.ForStatement,this.init=E,this.test=t,this.update=b,this.body=g}}class ca{constructor(E,t,b,g){this.type=lt.FunctionDeclaration,this.id=E,this.params=t,this.body=b,this.generator=g,this.expression=!1,this.async=!1}}class sr{constructor(E,t,b,g,c){this.type=lt.FunctionExpression,this.id=E,this.params=t,this.body=b,this.generator=g,this.expression=!1,this.async=c}}class Pe{constructor(E){this.type=lt.Identifier,this.name=E}}class ha{constructor(E,t,b){this.type=lt.IfStatement,this.test=E,this.consequent=t,this.alternate=b}}class fa{constructor(E,t){this.type=lt.ImportAttribute,this.key=E,this.value=t}}class da{constructor(E,t){this.type=lt.ImportExpression,this.source=E,this.attributes=t}}class pa{constructor(E,t,b){this.type=lt.ImportDeclaration,this.specifiers=E,this.source=t,this.assertions=b}}class ma{constructor(E){this.type=lt.ImportDefaultSpecifier,this.local=E}}class ba{constructor(E){this.type=lt.ImportNamespaceSpecifier,this.local=E}}class ga{constructor(E,t){this.type=lt.ImportSpecifier,this.local=E,this.imported=t}}class ya{constructor(E,t){this.type=lt.LabeledStatement,this.label=E,this.body=t}}class tr{constructor(E,t){this.type=lt.Literal,this.value=E,this.raw=t}}class gn{constructor(E,t,b){this.type=lt.LogicalExpression,this.operator=E,this.left=t,this.right=b}}class _r{constructor(E,t,b,g){this.type=lt.MemberExpression,this.computed=E,this.object=t,this.property=b,this.optional=g}}class yn{constructor(E,t){this.type=lt.MetaProperty,this.meta=E,this.property=t}}class va{constructor(E,t,b,g,c,a){this.type=lt.MethodDefinition,this.key=E,this.computed=t,this.value=b,this.kind=g,this.static=c,this.decorators=a}}class wa{constructor(E){this.type=lt.Program,this.body=E,this.sourceType="module"}}class xa{constructor(E,t){this.type=lt.NewExpression,this.callee=E,this.arguments=t}}class _a{constructor(E){this.type=lt.ObjectExpression,this.properties=E}}class Ea{constructor(E){this.type=lt.ObjectPattern,this.properties=E}}class Er{constructor(E){this.type=lt.PrivateIdentifier,this.name=E}}class vn{constructor(E,t,b,g,c,a){this.type=lt.Property,this.key=t,this.computed=b,this.value=g,this.kind=E,this.method=c,this.shorthand=a}}class Sa{constructor(E,t,b,g,c){this.type=lt.Property,this.key=E,this.computed=t,this.value=b,this.static=g,this.decorators=c}}class ka{constructor(E,t,b,g){this.type=lt.Literal,this.value=E,this.raw=t,this.regex={pattern:b,flags:g}}}class Sr{constructor(E){this.type=lt.RestElement,this.argument=E}}class Ca{constructor(E){this.type=lt.ReturnStatement,this.argument=E}}class Da{constructor(E){this.type=lt.Program,this.body=E,this.sourceType="script"}}class $r{constructor(E){this.type=lt.SequenceExpression,this.expressions=E}}class Aa{constructor(E){this.type=lt.SpreadElement,this.argument=E}}class Ta{constructor(E){this.type=lt.StaticBlock,this.body=E}}class wn{constructor(){this.type=lt.Super}}class Ma{constructor(E,t){this.type=lt.SwitchCase,this.test=E,this.consequent=t}}class Fa{constructor(E,t){this.type=lt.SwitchStatement,this.discriminant=E,this.cases=t}}class xn{constructor(E,t){this.type=lt.TaggedTemplateExpression,this.tag=E,this.quasi=t}}class _n{constructor(E,t){this.type=lt.TemplateElement,this.value=E,this.tail=t}}class Ia{constructor(E,t){this.type=lt.TemplateLiteral,this.quasis=E,this.expressions=t}}class Na{constructor(){this.type=lt.ThisExpression}}class Oa{constructor(E){this.type=lt.ThrowStatement,this.argument=E}}class Ra{constructor(E,t,b){this.type=lt.TryStatement,this.block=E,this.handler=t,this.finalizer=b}}class Ba{constructor(E,t){this.type=lt.UnaryExpression,this.operator=E,this.argument=t,this.prefix=!0}}class En{constructor(E,t,b){this.type=lt.UpdateExpression,this.operator=E,this.argument=t,this.prefix=b}}class Ye{constructor(E,t){this.type=lt.VariableDeclaration,this.declarations=E,this.kind=t}}class Sn{constructor(E,t){this.type=lt.VariableDeclarator,this.id=E,this.init=t}}class Pa{constructor(E,t){this.type=lt.WhileStatement,this.test=E,this.body=t}}class ja{constructor(E,t){this.type=lt.WithStatement,this.object=E,this.body=t}}class La{constructor(E,t){this.type=lt.YieldExpression,this.argument=E,this.delegate=t}}function He(U,E){if(!U)throw new Error("ASSERT: "+E)}class za{constructor(){this.errors=[],this.tolerant=!1}recordError(E){this.errors.push(E)}tolerate(E){if(this.tolerant)this.recordError(E);else throw E}constructError(E,t){let b=new Error(E);try{throw b}catch(g){Object.create&&Object.defineProperty&&(b=Object.create(g),Object.defineProperty(b,"column",{value:t}))}return b}createError(E,t,b,g){const c="Line "+t+": "+g,a=this.constructError(c,b);return a.index=E,a.lineNumber=t,a.description=g,a}throwError(E,t,b,g){throw this.createError(E,t,b,g)}tolerateError(E,t,b,g){const c=this.createError(E,t,b,g);if(this.tolerant)this.recordError(c);else throw c}}const pt={AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",BadImportCallArity:"Unexpected token",BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",CannotUseImportMetaOutsideAModule:"Cannot use 'import.meta' outside a module",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorIsPrivate:"Class constructor may not be a private method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DefaultRestProperty:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateParameter:"Duplicate parameter name not allowed in this context",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",InvalidTaggedTemplateOnOptionalChain:"Invalid tagged template on optional chain",InvalidUnicodeEscapeSequence:"Invalid Unicode escape sequence",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoAsAndFromEscapeSequences:"The `as` and `from` contextual keywords must not contain Unicode escape sequences.",NoCatchOrFinally:"Missing catch or finally after try",NoSemicolonAfterDecorator:"Decorators must not be followed by a semicolon.",NumericSeperatorOneUnderscore:"Numeric separator must be exactly one underscore",NumericSeperatorNotAllowedHere:"Numeric separator is not allowed here",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",PropertyAfterRestProperty:"Unexpected token",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",TemplateEscape89:"\\8 and \\9 are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedSuper:"'super' keyword unexpected here",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"};function kn(U){return"0123456789abcdef".indexOf(U.toLowerCase())}function Vr(U){return"01234567".indexOf(U)}class Ua{constructor(E,t){this.source=E,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=E.length,this.index=0,this.lineNumber=E.length>0?1:0,this.lineStart=0,this.curlyStack=[]}saveState(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}}restoreState(E){this.index=E.index,this.lineNumber=E.lineNumber,this.lineStart=E.lineStart,this.curlyStack=E.curlyStack}eof(){return this.index>=this.length}throwUnexpectedToken(E=pt.UnexpectedTokenIllegal){return this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,E)}tolerateUnexpectedToken(E=pt.UnexpectedTokenIllegal){this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,E)}skipSingleLineComment(E){let t=[],b,g;for(this.trackComment&&(t=[],b=this.index-E,g={start:{line:this.lineNumber,column:this.index-this.lineStart-E},end:{}});!this.eof();){const c=this.source.charCodeAt(this.index);if(++this.index,Rt.isLineTerminator(c)){if(this.trackComment){g.end={line:this.lineNumber,column:this.index-this.lineStart-1};const a={multiLine:!1,slice:[b+E,this.index-1],range:[b,this.index-1],loc:g};t.push(a)}return c===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t}}if(this.trackComment){g.end={line:this.lineNumber,column:this.index-this.lineStart};const c={multiLine:!1,slice:[b+E,this.index],range:[b,this.index],loc:g};t.push(c)}return t}skipMultiLineComment(){let E=[],t,b;for(this.trackComment&&(E=[],t=this.index-2,b={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){const g=this.source.charCodeAt(this.index);if(Rt.isLineTerminator(g))g===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(g===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){b.end={line:this.lineNumber,column:this.index-this.lineStart};const c={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:b};E.push(c)}return E}++this.index}else++this.index}if(this.trackComment){b.end={line:this.lineNumber,column:this.index-this.lineStart};const g={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:b};E.push(g)}return this.tolerateUnexpectedToken(),E}scanComments(){let E;this.trackComment&&(E=[]);let t=this.index===0;for(;!this.eof();){let b=this.source.charCodeAt(this.index);if(Rt.isWhiteSpace(b))++this.index;else if(Rt.isLineTerminator(b))++this.index,b===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(b===47)if(b=this.source.charCodeAt(this.index+1),b===47){this.index+=2;const g=this.skipSingleLineComment(2);this.trackComment&&(E=E.concat(g)),t=!0}else if(b===42){this.index+=2;const g=this.skipMultiLineComment();this.trackComment&&(E=E.concat(g))}else break;else if(t&&b===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;const g=this.skipSingleLineComment(3);this.trackComment&&(E=E.concat(g))}else break;else if(b===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;const g=this.skipSingleLineComment(4);this.trackComment&&(E=E.concat(g))}else break;else break}return E}isFutureReservedWord(E){switch(E){case"enum":case"export":case"import":case"super":return!0;default:return!1}}isStrictModeReservedWord(E){switch(E){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}isRestrictedWord(E){return E==="eval"||E==="arguments"}isKeyword(E){switch(E.length){case 2:return E==="if"||E==="in"||E==="do";case 3:return E==="var"||E==="for"||E==="new"||E==="try"||E==="let";case 4:return E==="this"||E==="else"||E==="case"||E==="void"||E==="with"||E==="enum";case 5:return E==="while"||E==="break"||E==="catch"||E==="throw"||E==="const"||E==="yield"||E==="class"||E==="super";case 6:return E==="return"||E==="typeof"||E==="delete"||E==="switch"||E==="export"||E==="import";case 7:return E==="default"||E==="finally"||E==="extends";case 8:return E==="function"||E==="continue"||E==="debugger";case 10:return E==="instanceof";default:return!1}}codePointAt(E){let t=this.source.charCodeAt(E);if(t>=55296&&t<=56319){const b=this.source.charCodeAt(E+1);b>=56320&&b<=57343&&(t=(t-55296)*1024+b-56320+65536)}return t}scanHexEscape(E){const t=E==="u"?4:2;let b=0;for(let g=0;g<t;++g)if(!this.eof()&&Rt.isHexDigit(this.source.charCodeAt(this.index)))b=b*16+kn(this.source[this.index++]);else return null;return String.fromCharCode(b)}tryToScanUnicodeCodePointEscape(){let E=this.source[this.index],t=0;if(E==="}")return null;for(;!this.eof()&&(E=this.source[this.index++],!!Rt.isHexDigit(E.charCodeAt(0)));)t=t*16+kn(E);return t>1114111||E!=="}"?null:Rt.fromCodePoint(t)}scanUnicodeCodePointEscape(){const E=this.tryToScanUnicodeCodePointEscape();return E===null?this.throwUnexpectedToken():E}getIdentifier(){const E=this.index++;for(;!this.eof();){const t=this.source.charCodeAt(this.index);if(t===92)return this.index=E,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=E,this.getComplexIdentifier();if(Rt.isIdentifierPart(t))++this.index;else break}return this.source.slice(E,this.index)}getComplexIdentifier(){let E=this.codePointAt(this.index),t=Rt.fromCodePoint(E);this.index+=t.length;let b;for(E===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,b=this.scanUnicodeCodePointEscape()):(b=this.scanHexEscape("u"),(b===null||b==="\\"||!Rt.isIdentifierStart(b.charCodeAt(0)))&&this.throwUnexpectedToken()),t=b);!this.eof()&&(E=this.codePointAt(this.index),!!Rt.isIdentifierPart(E));)b=Rt.fromCodePoint(E),t+=b,this.index+=b.length,E===92&&(t=t.substr(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,b=this.scanUnicodeCodePointEscape()):(b=this.scanHexEscape("u"),(b===null||b==="\\"||!Rt.isIdentifierPart(b.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=b);return t}octalToDecimal(E){let t=E!=="0",b=Vr(E);return!this.eof()&&Rt.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,b=b*8+Vr(this.source[this.index++]),"0123".indexOf(E)>=0&&!this.eof()&&Rt.isOctalDigit(this.source.charCodeAt(this.index))&&(b=b*8+Vr(this.source[this.index++]))),{code:b,octal:t}}scanIdentifier(){let E;const t=this.index,b=this.source.charCodeAt(t)===92,g=b?this.getComplexIdentifier():this.getIdentifier();if(g.length===1?E=3:this.isKeyword(g)?E=4:g==="null"?E=5:g==="true"||g==="false"?E=1:E=3,E!==3&&t+g.length!==this.index){const c=this.index;this.index=t,this.tolerateUnexpectedToken(pt.InvalidEscapedReservedWord),this.index=c}return{type:E,value:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index,escaped:b}}scanPunctuator(){const E=this.index;let t=this.source[this.index];switch(t){case"(":case"{":t==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case"?":++this.index,this.source[this.index]==="?"&&(++this.index,this.source[this.index]==="="?(++this.index,t="??="):t="??"),this.source[this.index]==="."&&!/^\d$/.test(this.source[this.index+1])&&(++this.index,t="?.");break;case"#":case")":case";":case",":case"[":case"]":case":":case"~":case"@":++this.index;break;default:t=this.source.substr(this.index,4),t===">>>="?this.index+=4:(t=t.substr(0,3),t==="==="||t==="!=="||t===">>>"||t==="<<="||t===">>="||t==="**="||t==="&&="||t==="||="?this.index+=3:(t=t.substr(0,2),t==="&&"||t==="||"||t==="=="||t==="!="||t==="+="||t==="-="||t==="*="||t==="/="||t==="++"||t==="--"||t==="<<"||t===">>"||t==="&="||t==="|="||t==="^="||t==="%="||t==="<="||t===">="||t==="=>"||t==="**"?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)))}return this.index===E&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}}scanHexLiteral(E){let t=this.scanLiteralPart(Rt.isHexDigitChar);return t.length===0&&this.throwUnexpectedToken(),this.source[this.index]==="n"?(this.index++,{type:6,value:BigInt("0x"+t),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}):(Rt.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index})}scanBinaryLiteral(E){let t,b=this.scanLiteralPart(g=>g==="0"||g==="1");return b.length===0&&this.throwUnexpectedToken(),this.source[this.index]==="n"?(this.index++,{type:6,value:BigInt("0b"+b),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}):(this.eof()||(t=this.source.charCodeAt(this.index),(Rt.isIdentifierStart(t)||Rt.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(b,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index})}scanOctalLiteral(E,t){let b="",g=!1;return Rt.isOctalDigit(E.charCodeAt(0))?(g=!0,b="0"+this.source[this.index++]):++this.index,b+=this.scanLiteralPart(Rt.isOctalDigitChar),!g&&b.length===0&&this.throwUnexpectedToken(),this.source[this.index]==="n"?(this.index++,{type:6,value:BigInt("0o"+b),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}):((Rt.isIdentifierStart(this.source.charCodeAt(this.index))||Rt.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(b,8),octal:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index})}isImplicitOctalLiteral(){for(let E=this.index+1;E<this.length;++E){const t=this.source[E];if(t==="8"||t==="9"||t==="n")return!1;if(!Rt.isOctalDigit(t.charCodeAt(0)))return!0}return!0}scanLiteralPart(E){let t="";for(this.source[this.index]==="_"&&this.throwUnexpectedToken(pt.NumericSeperatorNotAllowedHere);this.source[this.index]&&(E(this.source[this.index])||this.source[this.index]==="_");)this.source[this.index]!=="_"&&(t+=this.source[this.index]),this.index++,this.source[this.index-1]==="_"&&this.source[this.index]==="_"&&this.throwUnexpectedToken(pt.NumericSeperatorOneUnderscore);return this.source[this.index-1]==="_"&&this.throwUnexpectedToken(pt.NumericSeperatorNotAllowedHere),t}scanNumericLiteral(){const E=this.index;let t=this.source[E];He(Rt.isDecimalDigit(t.charCodeAt(0))||t===".","Numeric literal must start with a decimal digit or a decimal point");let b="";if(t!=="."){if(b=this.source[this.index++],t=this.source[this.index],b==="0"){if(t==="x"||t==="X")return++this.index,this.scanHexLiteral(E);if(t==="b"||t==="B")return++this.index,this.scanBinaryLiteral(E);if(t==="o"||t==="O")return this.scanOctalLiteral(t,E);if(t&&Rt.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,E)}this.index--,b=this.scanLiteralPart(Rt.isDecimalDigitChar),t=this.source[this.index]}if(t==="."&&(b+=this.source[this.index++],b+=this.scanLiteralPart(Rt.isDecimalDigitChar),t=this.source[this.index]),t==="e"||t==="E")b+=this.source[this.index++],t=this.source[this.index],(t==="+"||t==="-")&&(b+=this.source[this.index++]),Rt.isDecimalDigit(this.source.charCodeAt(this.index))?b+=this.scanLiteralPart(Rt.isDecimalDigitChar):this.throwUnexpectedToken();else if(t==="n")return b.length>1&&b[0]==="0"&&this.throwUnexpectedToken(),this.index++,{type:6,value:BigInt(b),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index};return Rt.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(b),lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}}scanStringLiteral(){const E=this.index;let t=this.source[E];He(t==="'"||t==='"',"String literal must starts with a quote"),++this.index;let b=!1,g="";for(;!this.eof();){let c=this.source[this.index++];if(c===t){t="";break}else if(c==="\\")if(c=this.source[this.index++],!c||!Rt.isLineTerminator(c.charCodeAt(0)))switch(c){case"u":if(this.source[this.index]==="{")++this.index,g+=this.scanUnicodeCodePointEscape();else{const o=this.scanHexEscape(c);o===null&&this.throwUnexpectedToken(),g+=o}break;case"x":const a=this.scanHexEscape(c);a===null&&this.throwUnexpectedToken(pt.InvalidHexEscapeSequence),g+=a;break;case"n":g+=`
|
|
2
|
+
`;break;case"r":g+="\r";break;case"t":g+=" ";break;case"b":g+="\b";break;case"f":g+="\f";break;case"v":g+="\v";break;case"8":case"9":g+=c,this.tolerateUnexpectedToken();break;default:if(c&&Rt.isOctalDigit(c.charCodeAt(0))){const o=this.octalToDecimal(c);b=o.octal||b,g+=String.fromCharCode(o.code)}else g+=c;break}else++this.lineNumber,c==="\r"&&this.source[this.index]===`
|
|
3
|
+
`&&++this.index,this.lineStart=this.index;else{if(Rt.isLineTerminator(c.charCodeAt(0)))break;g+=c}}return t!==""&&(this.index=E,this.throwUnexpectedToken()),{type:8,value:g,octal:b,lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}}scanTemplate(){let E="",t=!1;const b=this.index,g=this.source[b]==="`";let c=!1,a=null,o=2;for(++this.index;!this.eof();){let n=this.source[this.index++];if(n==="`"){o=1,c=!0,t=!0;break}else if(n==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,t=!0;break}E+=n}else{if(a!==null)continue;if(n==="\\")if(n=this.source[this.index++],Rt.isLineTerminator(n.charCodeAt(0)))++this.lineNumber,n==="\r"&&this.source[this.index]===`
|
|
4
|
+
`&&++this.index,this.lineStart=this.index;else switch(n){case"n":E+=`
|
|
5
|
+
`;break;case"r":E+="\r";break;case"t":E+=" ";break;case"u":if(this.source[this.index]==="{"){++this.index;const r=this.tryToScanUnicodeCodePointEscape();r===null?a="u":E+=r}else{const r=this.scanHexEscape(n);r===null?a="u":E+=r}break;case"x":const e=this.scanHexEscape(n);e===null?a="x":E+=e;break;case"b":E+="\b";break;case"f":E+="\f";break;case"v":E+="\v";break;default:n==="0"?Rt.isDecimalDigit(this.source.charCodeAt(this.index))?a="0":E+="\0":Rt.isDecimalDigitChar(n)?a=n:E+=n;break}else Rt.isLineTerminator(n.charCodeAt(0))?(++this.lineNumber,n==="\r"&&this.source[this.index]===`
|
|
6
|
+
`&&++this.index,this.lineStart=this.index,E+=`
|
|
7
|
+
`):E+=n}}return t||this.throwUnexpectedToken(),g||this.curlyStack.pop(),{type:10,value:this.source.slice(b+1,this.index-o),cooked:a===null?E:null,head:g,tail:c,notEscapeSequenceHead:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:b,end:this.index}}testRegExp(E,t){let g=E;t.indexOf("u")>=0&&(g=g.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(c,a,o)=>{const n=parseInt(a||o,16);return n>1114111&&this.throwUnexpectedToken(pt.InvalidRegExp),n<=65535?String.fromCharCode(n):""}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,""));try{RegExp(g)}catch{this.throwUnexpectedToken(pt.InvalidRegExp)}try{return new RegExp(E,t)}catch{return null}}scanRegExpBody(){let E=this.source[this.index];He(E==="/","Regular expression literal must start with a slash");let t=this.source[this.index++],b=!1,g=!1;for(;!this.eof();)if(E=this.source[this.index++],t+=E,E==="\\")E=this.source[this.index++],Rt.isLineTerminator(E.charCodeAt(0))&&this.throwUnexpectedToken(pt.UnterminatedRegExp),t+=E;else if(Rt.isLineTerminator(E.charCodeAt(0)))this.throwUnexpectedToken(pt.UnterminatedRegExp);else if(b)E==="]"&&(b=!1);else if(E==="/"){g=!0;break}else E==="["&&(b=!0);return g||this.throwUnexpectedToken(pt.UnterminatedRegExp),t.substr(1,t.length-2)}scanRegExpFlags(){let E="",t="";for(;!this.eof();){let b=this.source[this.index];if(!Rt.isIdentifierPart(b.charCodeAt(0)))break;if(++this.index,b==="\\"&&!this.eof())if(b=this.source[this.index],b==="u"){++this.index;let g=this.index;const c=this.scanHexEscape("u");if(c!==null)for(t+=c,E+="\\u";g<this.index;++g)E+=this.source[g];else this.index=g,t+="u",E+="\\u";this.tolerateUnexpectedToken()}else E+="\\",this.tolerateUnexpectedToken();else t+=b,E+=b}return t}scanRegExp(){const E=this.index,t=this.scanRegExpBody(),b=this.scanRegExpFlags(),g=this.testRegExp(t,b);return{type:9,value:"",pattern:t,flags:b,regex:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:E,end:this.index}}lex(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};const E=this.source.charCodeAt(this.index);return Rt.isIdentifierStart(E)?this.scanIdentifier():E===40||E===41||E===59?this.scanPunctuator():E===39||E===34?this.scanStringLiteral():E===46?Rt.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():Rt.isDecimalDigit(E)?this.scanNumericLiteral():E===96||E===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():E>=55296&&E<57343&&Rt.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()}}const Ie={};Ie[1]="Boolean";Ie[2]="<end>";Ie[3]="Identifier";Ie[4]="Keyword";Ie[5]="Null";Ie[6]="Numeric";Ie[7]="Punctuator";Ie[8]="String";Ie[9]="RegularExpression";Ie[10]="Template";const Le="ArrowParameterPlaceHolder";class Rn{constructor(E,t={},b){this.config={range:typeof t.range=="boolean"&&t.range,loc:typeof t.loc=="boolean"&&t.loc,source:null,tokens:typeof t.tokens=="boolean"&&t.tokens,comment:typeof t.comment=="boolean"&&t.comment,tolerant:typeof t.tolerant=="boolean"&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=b,this.errorHandler=new za,this.errorHandler.tolerant=this.config.tolerant==!0,this.scanner=new Ua(E,this.errorHandler),this.scanner.trackComment=this.config.comment==!0,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"??":5,"||":6,"&&":7,"|":8,"^":9,"&":10,"==":11,"!=":11,"===":11,"!==":11,"<":12,">":12,"<=":12,">=":12,"<<":13,">>":13,">>>":13,"+":14,"-":14,"*":15,"/":15,"%":15},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,isAsync:!1,allowIn:!0,allowStrictDirective:!0,allowSuper:!1,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inConstructor:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,inClassConstructor:!1,labelSet:{},strict:!1,decorators:null},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}throwError(E,...t){const b=t.slice(),g=E.replace(/%(\d)/g,(n,e)=>(He(e<b.length,"Message reference must be in range"),b[e])),c=this.lastMarker.index,a=this.lastMarker.line,o=this.lastMarker.column+1;throw this.errorHandler.createError(c,a,o,g)}tolerateError(E,...t){const b=t.slice(),g=E.replace(/%(\d)/g,(n,e)=>(He(e<b.length,"Message reference must be in range"),b[e])),c=this.lastMarker.index,a=this.scanner.lineNumber,o=this.lastMarker.column+1;this.errorHandler.tolerateError(c,a,o,g)}unexpectedTokenError(E,t){let b=t||pt.UnexpectedToken,g;if(E?(t||(b=E.type===2?pt.UnexpectedEOS:E.type===3?pt.UnexpectedIdentifier:E.type===6?pt.UnexpectedNumber:E.type===8?pt.UnexpectedString:E.type===10?pt.UnexpectedTemplate:pt.UnexpectedToken,E.type===4&&(this.scanner.isFutureReservedWord(E.value)?b=pt.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(E.value)&&(b=pt.StrictReservedWord))),g=E.value):g="ILLEGAL",b=b.replace("%0",g),E&&typeof E.lineNumber=="number"){const c=E.start,a=E.lineNumber,o=this.lastMarker.index-this.lastMarker.column,n=E.start-o+1;return this.errorHandler.createError(c,a,n,b)}else{const c=this.lastMarker.index,a=this.lastMarker.line,o=this.lastMarker.column+1;return this.errorHandler.createError(c,a,o,b)}}throwUnexpectedToken(E,t){throw this.unexpectedTokenError(E,t)}tolerateUnexpectedToken(E,t){this.errorHandler.tolerate(this.unexpectedTokenError(E,t))}tolerateInvalidLoopStatement(){(this.matchKeyword("class")||this.matchKeyword("function"))&&this.tolerateError(pt.UnexpectedToken,this.lookahead)}collectComments(){if(!this.config.comment)this.scanner.scanComments();else{const E=this.scanner.scanComments();if(E.length>0&&this.delegate)for(let t=0;t<E.length;++t){const b=E[t],g={type:b.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(b.slice[0],b.slice[1])};this.config.range&&(g.range=b.range),this.config.loc&&(g.loc=b.loc);const c={start:{line:b.loc.start.line,column:b.loc.start.column,offset:b.range[0]},end:{line:b.loc.end.line,column:b.loc.end.column,offset:b.range[1]}};this.delegate(g,c)}}}getTokenRaw(E){return this.scanner.source.slice(E.start,E.end)}convertToken(E){const t={type:Ie[E.type],value:this.getTokenRaw(E)};if(this.config.range&&(t.range=[E.start,E.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),E.type===9){const b=E.pattern,g=E.flags;t.regex={pattern:b,flags:g}}return t}nextToken(){const E=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);const t=this.scanner.lex();return this.hasLineTerminator=E.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),E}nextRegexToken(){this.collectComments();const E=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(E))),this.lookahead=E,this.nextToken(),E}createNode(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}}startNode(E,t=0){let b=E.start-E.lineStart,g=E.lineNumber;return b<0&&(b+=t,g--),{index:E.start,line:g,column:b}}finalize(E,t){if(this.config.range&&(t.range=[E.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:E.line,column:E.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){const b={start:{line:E.line,column:E.column,offset:E.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,b)}return t}expect(E){const t=this.nextToken();(t.type!==7||t.value!==E)&&this.throwUnexpectedToken(t)}expectCommaSeparator(){if(this.config.tolerant){const E=this.lookahead;E.type===7&&E.value===","?this.nextToken():E.type===7&&E.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(E)):this.tolerateUnexpectedToken(E,pt.UnexpectedToken)}else this.expect(",")}expectKeyword(E){const t=this.nextToken();(t.type!==4||t.value!==E)&&this.throwUnexpectedToken(t)}match(E){return this.lookahead.type===7&&this.lookahead.value===E}matchKeyword(E){return this.lookahead.type===4&&this.lookahead.value===E}matchContextualKeyword(E){return this.lookahead.type===3&&this.lookahead.value===E}matchAssign(){if(this.lookahead.type!==7)return!1;const E=this.lookahead.value;return E==="="||E==="*="||E==="**="||E==="/="||E==="%="||E==="+="||E==="-="||E==="<<="||E===">>="||E===">>>="||E==="&="||E==="^="||E==="|="||E==="&&="||E==="||="||E==="??="}isolateCoverGrammar(E){const t=this.context.isBindingElement,b=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;const c=E.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=b,this.context.firstCoverInitializedNameError=g,c}inheritCoverGrammar(E){const t=this.context.isBindingElement,b=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;const c=E.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&b,this.context.firstCoverInitializedNameError=g||this.context.firstCoverInitializedNameError,c}consumeSemicolon(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)}parsePrimaryExpression(){const E=this.createNode();let t,b,g;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.isAsync)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(E,new Pe(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,pt.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,b=this.nextToken(),g=this.getTokenRaw(b),typeof b.value=="bigint"?t=this.finalize(E,new pn(b.value,g,b.value.toString())):t=this.finalize(E,new tr(b.value,g));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,b=this.nextToken(),g=this.getTokenRaw(b),t=this.finalize(E,new tr(b.value==="true",g));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,b=this.nextToken(),g=this.getTokenRaw(b),t=this.finalize(E,new tr(null,g));break;case 10:t=this.parseTemplateLiteral({isTagged:!1});break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,b=this.nextRegexToken(),g=this.getTokenRaw(b),t=this.finalize(E,new ka(b.regex,g,b.pattern,b.flags));break;case"#":this.nextToken(),t=this.finalize(E,new Er(this.nextToken().value));break;case"@":let c=this.parseDecorators();this.context.decorators=c,this.parsePrimaryExpression(),this.context.decorators=null,t=this.finalize(E,new Er(this.nextToken().value));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(E,new Pe(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(E,new Na)):this.matchKeyword("class")?t=this.parseClassExpression():this.matchKeyword("new")?t=this.parseNewExpression():this.matchImportCall()?t=this.parseImportCall():this.matchImportMeta()?(this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,pt.CannotUseImportMetaOutsideAModule),t=this.parseImportMeta()):t=this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t}parseSpreadElement(){const E=this.createNode();this.expect("...");const t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(E,new Aa(t))}parseArrayInitializer(){const E=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){const b=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(b)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(E,new Us(t))}parsePropertyMethod(E){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;const t=this.context.strict,b=this.context.allowStrictDirective;this.context.allowStrictDirective=E.simple;const g=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&E.firstRestricted&&this.tolerateUnexpectedToken(E.firstRestricted,E.message),this.context.strict&&E.stricted&&this.tolerateUnexpectedToken(E.stricted,E.message),this.context.strict=t,this.context.allowStrictDirective=b,g}parsePropertyMethodFunction(E){const t=this.createNode(),b=this.context.allowYield;this.context.allowYield=!0;const g=this.parseFormalParameters(),c=this.parsePropertyMethod(g);return this.context.allowYield=b,this.finalize(t,new sr(null,g.params,c,E,!1))}parsePropertyMethodAsyncFunction(E){const t=this.createNode(),b=this.context.allowYield,g=this.context.isAsync;this.context.allowYield=!1,this.context.isAsync=!0;const c=this.parseFormalParameters(),a=this.parsePropertyMethod(c);return this.context.allowYield=b,this.context.isAsync=g,this.finalize(t,new sr(null,c.params,a,E,!0))}parseObjectPropertyKey(E=!1){const t=this.createNode(),b=this.nextToken();let g;switch(b.type){case 8:case 6:this.context.strict&&b.octal&&this.tolerateUnexpectedToken(b,pt.StrictOctalLiteral);const c=this.getTokenRaw(b);typeof b.value=="bigint"?g=this.finalize(t,new pn(b.value,c,b.value.toString())):g=this.finalize(t,new tr(b.value,c));break;case 3:case 1:case 5:case 4:g=this.finalize(t,E?new Er(b.value):new Pe(b.value));break;case 7:b.value==="["?(g=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):g=this.throwUnexpectedToken(b);break;default:g=this.throwUnexpectedToken(b)}return g}isPropertyKey(E,t){return E.type===lt.Identifier&&E.name===t||E.type===lt.Literal&&E.value===t}parseObjectProperty(E){const t=this.createNode(),b=this.lookahead;let g,c=null,a=null,o=!1,n=!1,e=!1,r=!1,u=!1;if(b.type===3){const s=b.value;this.nextToken(),o=this.match("["),r=!this.hasLineTerminator&&s==="async"&&!this.match(":")&&!this.match("(")&&!this.match(","),u=this.match("*"),u&&this.nextToken(),c=r?this.parseObjectPropertyKey():this.finalize(t,new Pe(s))}else this.match("*")?this.nextToken():(o=this.match("["),c=this.parseObjectPropertyKey());const i=this.qualifiedPropertyName(this.lookahead);if(b.type===3&&!r&&b.value==="get"&&i)g="get",o=this.match("["),c=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(b.type===3&&!r&&b.value==="set"&&i)g="set",o=this.match("["),c=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(b.type===7&&b.value==="*"&&i)g="init",o=this.match("["),c=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(!1),n=!0;else if(c||this.throwUnexpectedToken(this.lookahead),g="init",this.match(":")&&!r)!o&&this.isPropertyKey(c,"__proto__")&&(E.value&&this.tolerateError(pt.DuplicateProtoProperty),E.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=r?this.parsePropertyMethodAsyncFunction(u):this.parsePropertyMethodFunction(u),n=!0;else if(b.type===3){const s=this.finalize(t,new Pe(b.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),e=!0;const h=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(t,new Lr(s,h))}else e=!0,a=s}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new vn(g,c,o,a,n,e))}parseObjectInitializer(){const E=this.createNode();this.expect("{");const t=[],b={value:!1};for(;!this.match("}");){const g=this.match("...")?this.parseSpreadElement():this.parseObjectProperty(b);t.push(g),!this.match("}")&&(!g.method||this.match(","))&&this.expectCommaSeparator()}return this.expect("}"),this.finalize(E,new _a(t))}throwTemplateLiteralEarlyErrors(E){switch(E.notEscapeSequenceHead){case"u":return this.throwUnexpectedToken(E,pt.InvalidUnicodeEscapeSequence);case"x":return this.throwUnexpectedToken(E,pt.InvalidHexEscapeSequence);case"8":case"9":return this.throwUnexpectedToken(E,pt.TemplateEscape89);default:return this.throwUnexpectedToken(E,pt.TemplateOctalLiteral)}}parseTemplateHead(E){He(this.lookahead.head,"Template literal must start with a template head");const t=this.createNode(),b=this.nextToken();!E.isTagged&&b.notEscapeSequenceHead!==null&&this.throwTemplateLiteralEarlyErrors(b);const g=b.value,c=b.cooked;return this.finalize(t,new _n({raw:g,cooked:c},b.tail))}parseTemplateElement(E){this.lookahead.type!==10&&this.throwUnexpectedToken();const t=this.createNode(),b=this.nextToken();!E.isTagged&&b.notEscapeSequenceHead!==null&&this.throwTemplateLiteralEarlyErrors(b);const g=b.value,c=b.cooked;return this.finalize(t,new _n({raw:g,cooked:c},b.tail))}parseTemplateLiteral(E){const t=this.createNode(),b=[],g=[];let c=this.parseTemplateHead(E);for(g.push(c);!c.tail;)b.push(this.parseExpression()),c=this.parseTemplateElement(E),g.push(c);return this.finalize(t,new Ia(g,b))}reinterpretExpressionAsPattern(E){switch(E.type){case lt.Identifier:case lt.MemberExpression:case lt.RestElement:case lt.AssignmentPattern:break;case lt.SpreadElement:E.type=lt.RestElement,this.reinterpretExpressionAsPattern(E.argument);break;case lt.ArrayExpression:E.type=lt.ArrayPattern;for(let t=0;t<E.elements.length;t++)E.elements[t]!==null&&this.reinterpretExpressionAsPattern(E.elements[t]);break;case lt.ObjectExpression:E.type=lt.ObjectPattern;for(let t=0;t<E.properties.length;t++){const b=E.properties[t];this.reinterpretExpressionAsPattern(b.type===lt.SpreadElement?b:b.value)}break;case lt.AssignmentExpression:E.type=lt.AssignmentPattern,delete E.operator,this.reinterpretExpressionAsPattern(E.left);break}}parseGroupExpression(){let E;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),E={type:Le,params:[],async:!1};else{const t=this.lookahead,b=[];if(this.match("..."))E=this.parseRestElement(b),this.expect(")"),this.match("=>")||this.expect("=>"),E={type:Le,params:[E],async:!1};else{let g=!1;if(this.context.isBindingElement=!0,E=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){const c=[];for(this.context.isAssignmentTarget=!1,c.push(E);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(let a=0;a<c.length;a++)this.reinterpretExpressionAsPattern(c[a]);g=!0,E={type:Le,params:c,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),c.push(this.parseRestElement(b)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(let a=0;a<c.length;a++)this.reinterpretExpressionAsPattern(c[a]);g=!0,E={type:Le,params:c,async:!1}}else c.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(g)break}g||(E=this.finalize(this.startNode(t),new $r(c)))}if(!g){if(this.expect(")"),this.match("=>")&&(E.type===lt.Identifier&&E.name==="yield"&&(g=!0,E={type:Le,params:[E],async:!1}),!g)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),E.type===lt.SequenceExpression)for(let a=0;a<E.expressions.length;a++)this.reinterpretExpressionAsPattern(E.expressions[a]);else this.reinterpretExpressionAsPattern(E);const c=E.type===lt.SequenceExpression?E.expressions:[E];E={type:Le,params:c,async:!1}}this.context.isBindingElement=!1}}}return E}parseArguments(){this.expect("(");const E=[];if(!this.match(")"))for(;;){const t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(E.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),E}isIdentifierName(E){return E.type===3||E.type===4||E.type===1||E.type===5}parseIdentifierName(E=!1){let t=!1,b=this.createNode(),g=this.nextToken();return g.value==="#"&&E&&(g=this.nextToken(),t=!0),this.isIdentifierName(g)||this.throwUnexpectedToken(g),this.finalize(b,t?new Er(g.value):new Pe(g.value))}parseNewExpression(){const E=this.createNode(),t=this.parseIdentifierName();He(t.name==="new","New expression must start with `new`");let b;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){const g=this.parseIdentifierName();b=new yn(t,g)}else this.throwUnexpectedToken(this.lookahead);else if(this.matchKeyword("import"))this.throwUnexpectedToken(this.lookahead);else{const g=this.isolateCoverGrammar(this.parseLeftHandSideExpression),c=this.match("(")?this.parseArguments():[];b=new xa(g,c),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(E,b)}parseAsyncArgument(){const E=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,E}parseAsyncArguments(){this.expect("(");const E=[];if(!this.match(")"))for(;;){const t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(E.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),E}matchImportCall(){let E=this.matchKeyword("import");if(E){const t=this.scanner.saveState();this.scanner.scanComments();const b=this.scanner.lex();this.scanner.restoreState(t),E=b.type===7&&b.value==="("}return E}parseImportCall(){const E=this.createNode();this.expectKeyword("import"),this.expect("(");const t=this.parseAssignmentExpression();let b=null;return this.match(",")&&(this.nextToken(),b=this.parseObjectInitializer()),!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(E,new da(t,b))}matchImportMeta(){let E=this.matchKeyword("import");if(E){const t=this.scanner.saveState();this.scanner.scanComments();const b=this.scanner.lex();if(b.type===7&&b.value==="."){this.scanner.scanComments();const g=this.scanner.lex();E=g.type===3&&g.value==="meta",E&&g.end-g.start!==4&&this.tolerateUnexpectedToken(g,pt.InvalidEscapedReservedWord)}else E=!1;this.scanner.restoreState(t)}return E}parseImportMeta(){const E=this.createNode(),t=this.parseIdentifierName();this.expect(".");const b=this.parseIdentifierName();return this.context.isAssignmentTarget=!1,this.finalize(E,new yn(t,b))}parseLeftHandSideExpressionAllowCall(){const E=this.lookahead,t=this.matchContextualKeyword("async"),b=this.context.allowIn;this.context.allowIn=!0;let g;const c=this.matchKeyword("super");c&&this.context.inFunctionBody?(g=this.createNode(),this.nextToken(),g=this.finalize(g,new wn),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):g=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression),c&&this.match("(")&&(!this.context.inClassConstructor||!this.context.allowSuper)&&this.tolerateError(pt.UnexpectedSuper);let a=!1;for(;;){let o=!1;if(this.match("?.")&&(o=!0,a=!0,this.expect("?.")),this.match("(")){const n=t&&E.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;const e=n?this.parseAsyncArguments():this.parseArguments();if(g.type===lt.ImportExpression&&e.length!==1&&this.tolerateError(pt.BadImportCallArity),g=this.finalize(this.startNode(E),new Ys(g,e,o)),n&&this.match("=>")){for(let r=0;r<e.length;++r)this.reinterpretExpressionAsPattern(e[r]);g={type:Le,params:e,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!o,this.expect("[");const n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),g=this.finalize(this.startNode(E),new _r(!0,g,n,o))}else if(this.lookahead.type===10&&this.lookahead.head){o&&this.throwUnexpectedToken(this.lookahead),a&&this.throwError(pt.InvalidTaggedTemplateOnOptionalChain);const n=this.parseTemplateLiteral({isTagged:!0});g=this.finalize(this.startNode(E),new xn(g,n))}else if(this.match(".")||o){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!o,o||this.expect(".");const n=this.parseIdentifierName(!0);g=this.finalize(this.startNode(E),new _r(!1,g,n,o))}else break}return this.context.allowIn=b,a?new bn(g):g}parseSuper(){const E=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(E,new wn)}parseLeftHandSideExpression(){He(this.context.allowIn,"callee of new expression always allow in keyword.");const E=this.startNode(this.lookahead);let t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression),b=!1;for(;;){let g=!1;if(this.match("?.")&&(g=!0,b=!0,this.expect("?.")),this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!g,this.expect("[");const c=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(E,new _r(!0,t,c,g))}else if(this.lookahead.type===10&&this.lookahead.head){g&&this.throwUnexpectedToken(this.lookahead),b&&this.throwError(pt.InvalidTaggedTemplateOnOptionalChain);const c=this.parseTemplateLiteral({isTagged:!0});t=this.finalize(E,new xn(t,c))}else if(this.match(".")||g){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!g,g||this.expect(".");const c=this.parseIdentifierName();t=this.finalize(E,new _r(!1,t,c,g))}else break}return b?new bn(t):t}parseUpdateExpression(){let E;const t=this.lookahead;if(this.match("++")||this.match("--")){const b=this.startNode(t),g=this.nextToken();E=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&E.type===lt.Identifier&&this.scanner.isRestrictedWord(E.name)&&this.tolerateError(pt.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(pt.InvalidLHSInAssignment);const c=!0;E=this.finalize(b,new En(g.value,E,c)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(E=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&E.type===lt.Identifier&&this.scanner.isRestrictedWord(E.name)&&this.tolerateError(pt.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(pt.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;const b=this.nextToken().value,g=!1;E=this.finalize(this.startNode(t),new En(b,E,g))}return E}parseAwaitExpression(){const E=this.createNode();this.nextToken();const t=this.parseUnaryExpression();return this.finalize(E,new Ws(t))}parseUnaryExpression(){let E;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){const t=this.startNode(this.lookahead),b=this.nextToken();E=this.inheritCoverGrammar(this.parseUnaryExpression),E=this.finalize(t,new Ba(b.value,E)),this.context.strict&&E.operator==="delete"&&E.argument.type===lt.Identifier&&this.tolerateError(pt.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else(this.context.isModule&&!this.context.inFunctionBody||this.context.isAsync)&&this.matchContextualKeyword("await")?E=this.parseAwaitExpression():E=this.parseUpdateExpression();return E}parseExponentiationExpression(){const E=this.lookahead,t=this.match("(");let b=this.inheritCoverGrammar(this.parseUnaryExpression);if((b.type!==lt.UnaryExpression||t)&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;const c=b,a=this.isolateCoverGrammar(this.parseExponentiationExpression);b=this.finalize(this.startNode(E),new zr("**",c,a))}return b}binaryPrecedence(E){const t=E.value;let b;return E.type===7?b=this.operatorPrecedence[t]||0:E.type===4?b=t==="instanceof"||this.context.allowIn&&t==="in"?12:0:b=0,b}parseBinaryExpression(){const E=this.lookahead;let t=this.inheritCoverGrammar(this.parseExponentiationExpression),b=!0,g=!0;const c=n=>{(n.value==="&&"||n.value==="||")&&(g=!1),n.value==="??"&&(b=!1)},a=this.lookahead;let o=this.binaryPrecedence(a);if(o>0){c(a),this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;const n=[E,this.lookahead];let e=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);const u=[e,a.value,r],i=[o];for(;o=this.binaryPrecedence(this.lookahead),!(o<=0);){for((!b&&(this.lookahead.value==="&&"||this.lookahead.value==="||")||!g&&this.lookahead.value==="??")&&this.throwUnexpectedToken(this.lookahead),c(this.lookahead);u.length>2&&o<=i[i.length-1];){r=u.pop();const f=u.pop();i.pop(),e=u.pop(),n.pop();const l=n[n.length-1],p=this.startNode(l,l.lineStart),m=f==="||"||f==="&&"||f==="??";u.push(this.finalize(p,m?new gn(f,e,r):new zr(f,e,r)))}u.push(this.nextToken().value),i.push(o),n.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}let s=u.length-1;t=u[s];let h=n.pop();for(;s>1;){const f=n.pop(),l=h&&h.lineStart,p=this.startNode(f,l),m=u[s-1],_=m==="||"||m==="&&"||m==="??";t=this.finalize(p,_?new gn(m,u[s-2],t):new zr(m,u[s-2],t)),s-=2,h=f}}return t}parseConditionalExpression(){const E=this.lookahead;let t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();const b=this.context.allowIn;this.context.allowIn=!0;const g=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=b,this.expect(":");const c=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(E),new Qs(t,g,c)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t}checkPatternParam(E,t){switch(t.type){case lt.Identifier:this.validateParam(E,t,t.name);break;case lt.RestElement:this.checkPatternParam(E,t.argument);break;case lt.AssignmentPattern:this.checkPatternParam(E,t.left);break;case lt.ArrayPattern:for(let b=0;b<t.elements.length;b++)t.elements[b]!==null&&this.checkPatternParam(E,t.elements[b]);break;case lt.ObjectPattern:for(let b=0;b<t.properties.length;b++){const g=t.properties[b];this.checkPatternParam(E,g.type===lt.RestElement?g:g.value)}break}E.simple=E.simple&&t instanceof Pe}reinterpretAsCoverFormalsList(E){let t=[E];const b={simple:!0,paramSet:{}};let g=!1;switch(E.type){case lt.Identifier:break;case Le:t=E.params,g=E.async;break;default:return null}for(let c=0;c<t.length;++c){const a=t[c];a.type===lt.AssignmentPattern?a.right.type===lt.YieldExpression&&(a.right.argument&&this.throwUnexpectedToken(this.lookahead),a.right.type=lt.Identifier,a.right.name="yield",delete a.right.argument,delete a.right.delegate):g&&a.type===lt.Identifier&&a.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(b,a),t[c]=a}if(this.context.strict||!this.context.allowYield)for(let c=0;c<t.length;++c)t[c].type===lt.YieldExpression&&this.throwUnexpectedToken(this.lookahead);if(b.hasDuplicateParameterNames){const c=this.context.strict?b.stricted:b.firstRestricted;this.throwUnexpectedToken(c,pt.DuplicateParameter)}return{simple:b.simple,params:t,stricted:b.stricted,firstRestricted:b.firstRestricted,message:b.message}}parseAssignmentExpression(){let E;if(!this.context.allowYield&&this.matchKeyword("yield"))E=this.parseYieldExpression();else{const t=this.lookahead;let b=t;if(E=this.parseConditionalExpression(),b.type===3&&b.lineNumber===this.lookahead.lineNumber&&b.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){const g=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(g),E={type:Le,params:[g],async:!0}}if(E.type===Le||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;const g=E.async,c=this.reinterpretAsCoverFormalsList(E);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;const a=this.context.strict,o=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;const n=this.context.allowYield,e=this.context.isAsync;this.context.allowYield=!0,this.context.isAsync=g;const r=this.startNode(t);this.expect("=>");let u;if(this.match("{")){const s=this.context.allowIn;this.context.allowIn=!0,u=this.parseFunctionSourceElements(),this.context.allowIn=s}else u=this.isolateCoverGrammar(this.parseAssignmentExpression);const i=u.type!==lt.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),E=this.finalize(r,new $s(c.params,u,i,g)),this.context.strict=a,this.context.allowStrictDirective=o,this.context.allowYield=n,this.context.isAsync=e}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(pt.InvalidLHSInAssignment),this.context.strict&&E.type===lt.Identifier){const a=E;this.scanner.isRestrictedWord(a.name)&&this.tolerateUnexpectedToken(b,pt.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(a.name)&&this.tolerateUnexpectedToken(b,pt.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(E):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),b=this.nextToken();const g=b.value,c=this.isolateCoverGrammar(this.parseAssignmentExpression);E=this.finalize(this.startNode(t),new Vs(g,E,c)),this.context.firstCoverInitializedNameError=null}}return E}parseExpression(){const E=this.lookahead;let t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){const b=[];for(b.push(t);this.lookahead.type!==2&&this.match(",");)this.nextToken(),b.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(E),new $r(b))}return t}parseStatementListItem(){let E;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,pt.IllegalExportDeclaration),E=this.parseExportDeclaration();break;case"import":this.matchImportCall()?E=this.parseExpressionStatement():this.matchImportMeta()?E=this.parseStatement():(this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,pt.IllegalImportDeclaration),E=this.parseImportDeclaration());break;case"const":E=this.parseLexicalDeclaration({inFor:!1});break;case"function":E=this.parseFunctionDeclaration();break;case"class":E=this.parseClassDeclaration();break;case"let":E=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:E=this.parseStatement();break}else E=this.parseStatement();return E}parseBlock(){const E=this.createNode();this.expect("{");const t=[];for(;!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(E,new mn(t))}parseLexicalBinding(E,t){const b=this.createNode(),g=[],c=this.parsePattern(g,E);this.context.strict&&c.type===lt.Identifier&&this.scanner.isRestrictedWord(c.name)&&this.tolerateError(pt.StrictVarName);let a=null;return E==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),a=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(pt.DeclarationMissingInitializer,"const")):(!t.inFor&&c.type!==lt.Identifier||this.match("="))&&(this.expect("="),a=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(b,new Sn(c,a))}parseBindingList(E,t){const b=[this.parseLexicalBinding(E,t)];for(;this.match(",");)this.nextToken(),b.push(this.parseLexicalBinding(E,t));return b}isLexicalDeclaration(){const E=this.scanner.saveState();this.scanner.scanComments();const t=this.scanner.lex();return this.scanner.restoreState(E),t.type===3||t.type===7&&t.value==="["||t.type===7&&t.value==="{"||t.type===4&&t.value==="let"||t.type===4&&t.value==="yield"}parseLexicalDeclaration(E){const t=this.createNode(),b=this.nextToken().value;He(b==="let"||b==="const","Lexical declaration must be either let or const");const g=this.parseBindingList(b,E);return this.consumeSemicolon(),this.finalize(t,new Ye(g,b))}isInitializedProperty(){let E=this.scanner.saveState();this.scanner.scanComments();let t=this.scanner.lex();return this.scanner.restoreState(E),this.lookahead.type===3&&t.value==="="}isDeclaredProperty(){let E=this.scanner.saveState();this.scanner.scanComments();let t=this.scanner.lex();return this.scanner.restoreState(E),this.lookahead.type===3&&t.value===";"||this.lookahead.type===3&&t.lineNumber!==this.startMarker.line}parseBindingRestElement(E,t){const b=this.createNode();this.expect("...");const g=this.parsePattern(E,t);return this.finalize(b,new Sr(g))}parseArrayPattern(E,t){const b=this.createNode();this.expect("[");const g=[];for(;!this.match("]");)if(this.match(","))this.nextToken(),g.push(null);else{if(this.match("...")){g.push(this.parseBindingRestElement(E,t));break}else g.push(this.parsePatternWithDefault(E,t));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(b,new Hs(g))}parsePropertyPattern(E,t){const b=this.createNode();let g=!1,c=!1;const a=!1;let o,n;if(this.lookahead.type===3){const e=this.lookahead;o=this.parseVariableIdentifier();const r=this.finalize(b,new Pe(e.value));if(this.match("=")){E.push(e),c=!0,this.nextToken();const u=this.parseAssignmentExpression();n=this.finalize(this.startNode(e),new Lr(r,u))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(E,t)):(E.push(e),c=!0,n=r)}else g=this.match("["),o=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(E,t);return this.finalize(b,new vn("init",o,g,n,a,c))}parseRestProperty(E){const t=this.createNode();this.expect("...");const b=this.parsePattern(E);return this.match("=")&&this.throwError(pt.DefaultRestProperty),this.match("}")||this.throwError(pt.PropertyAfterRestProperty),this.finalize(t,new Sr(b))}parseObjectPattern(E,t){const b=this.createNode(),g=[];for(this.expect("{");!this.match("}");)g.push(this.match("...")?this.parseRestProperty(E):this.parsePropertyPattern(E,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(b,new Ea(g))}parsePattern(E,t){let b;return this.match("[")?b=this.parseArrayPattern(E,t):this.match("{")?b=this.parseObjectPattern(E,t):(this.matchKeyword("let")&&(t==="const"||t==="let")&&this.tolerateUnexpectedToken(this.lookahead,pt.LetInLexicalBinding),E.push(this.lookahead),b=this.parseVariableIdentifier(t)),b}parsePatternWithDefault(E,t){const b=this.lookahead;let g=this.parsePattern(E,t);if(this.match("=")){this.nextToken();const c=this.context.allowYield;this.context.allowYield=!0;const a=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=c,g=this.finalize(this.startNode(b),new Lr(g,a))}return g}parseVariableIdentifier(E){const t=this.createNode(),b=this.nextToken();return b.type===4&&b.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(b,pt.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(b):b.type!==3?this.context.strict&&b.type===4&&this.scanner.isStrictModeReservedWord(b.value)?this.tolerateUnexpectedToken(b,pt.StrictReservedWord):(this.context.strict||b.value!=="let"||E!=="var")&&this.throwUnexpectedToken(b):(this.context.isModule||this.context.isAsync)&&b.type===3&&b.value==="await"&&this.tolerateUnexpectedToken(b),this.finalize(t,new Pe(b.value))}parseVariableDeclaration(E){const t=this.createNode(),b=[],g=this.parsePattern(b,"var");this.context.strict&&g.type===lt.Identifier&&this.scanner.isRestrictedWord(g.name)&&this.tolerateError(pt.StrictVarName);let c=null;return this.match("=")?(this.nextToken(),c=this.isolateCoverGrammar(this.parseAssignmentExpression)):g.type!==lt.Identifier&&!E.inFor&&this.expect("="),this.finalize(t,new Sn(g,c))}parseVariableDeclarationList(E){const t={inFor:E.inFor},b=[];for(b.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),b.push(this.parseVariableDeclaration(t));return b}parseVariableStatement(){const E=this.createNode();this.expectKeyword("var");const t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(E,new Ye(t,"var"))}parseEmptyStatement(){const E=this.createNode();return this.expect(";"),this.finalize(E,new cr)}parseExpressionStatement(){const E=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(E,new Hr(t))}parseIfClause(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(pt.StrictFunction),this.parseStatement()}parseIfStatement(){const E=this.createNode();let t,b=null;this.expectKeyword("if"),this.expect("(");const g=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new cr)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),b=this.parseIfClause())),this.finalize(E,new ha(g,t,b))}parseDoWhileStatement(){const E=this.createNode();this.expectKeyword("do"),this.tolerateInvalidLoopStatement();const t=this.context.inIteration;this.context.inIteration=!0;const b=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");const g=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(E,new ia(b,g))}parseWhileStatement(){const E=this.createNode();let t;this.expectKeyword("while"),this.expect("(");const b=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new cr);else{this.expect(")");const g=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=g}return this.finalize(E,new Pa(b,t))}parseForStatement(){let E=null,t=null,b=null,g=!0,c,a,o=!1;const n=this.createNode();if(this.expectKeyword("for"),this.matchContextualKeyword("await")&&(this.context.isAsync||this.tolerateUnexpectedToken(this.lookahead),o=!0,this.nextToken()),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){E=this.createNode(),this.nextToken();const r=this.context.allowIn;this.context.allowIn=!1;const u=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=r,!o&&u.length===1&&this.matchKeyword("in")){const i=u[0];i.init&&(i.id.type===lt.ArrayPattern||i.id.type===lt.ObjectPattern||this.context.strict)&&this.tolerateError(pt.ForInOfLoopInitializer,"for-in"),E=this.finalize(E,new Ye(u,"var")),this.nextToken(),c=E,a=this.parseExpression(),E=null}else u.length===1&&u[0].init===null&&this.matchContextualKeyword("of")?(E=this.finalize(E,new Ye(u,"var")),this.nextToken(),c=E,a=this.parseAssignmentExpression(),E=null,g=!1):(E=this.finalize(E,new Ye(u,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){E=this.createNode();const r=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")E=this.finalize(E,new Pe(r)),this.nextToken(),c=E,a=this.parseExpression(),E=null;else{const u=this.context.allowIn;this.context.allowIn=!1;const i=this.parseBindingList(r,{inFor:!0});this.context.allowIn=u,i.length===1&&i[0].init===null&&this.matchKeyword("in")?(E=this.finalize(E,new Ye(i,r)),this.nextToken(),c=E,a=this.parseExpression(),E=null):i.length===1&&i[0].init===null&&this.matchContextualKeyword("of")?(E=this.finalize(E,new Ye(i,r)),this.nextToken(),c=E,a=this.parseAssignmentExpression(),E=null,g=!1):(this.consumeSemicolon(),E=this.finalize(E,new Ye(i,r)))}}else{const r=this.lookahead,u=this.context.isBindingElement,i=this.context.isAssignmentTarget,s=this.context.firstCoverInitializedNameError,h=this.context.allowIn;if(this.context.allowIn=!1,E=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))(!this.context.isAssignmentTarget||E.type===lt.AssignmentExpression)&&this.tolerateError(pt.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(E),c=E,a=this.parseExpression(),E=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||E.type===lt.AssignmentExpression)&&this.tolerateError(pt.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(E),c=E,a=this.parseAssignmentExpression(),E=null,g=!1;else{if(this.context.isBindingElement=u,this.context.isAssignmentTarget=i,this.context.firstCoverInitializedNameError=s,this.match(",")){const f=[E];for(;this.match(",");)this.nextToken(),f.push(this.isolateCoverGrammar(this.parseAssignmentExpression));E=this.finalize(this.startNode(r),new $r(f))}this.expect(";")}}typeof c>"u"&&(this.match(";")||(t=this.isolateCoverGrammar(this.parseExpression)),this.expect(";"),this.match(")")||(b=this.isolateCoverGrammar(this.parseExpression)));let e;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new cr);else{this.expect(")"),this.tolerateInvalidLoopStatement();const r=this.context.inIteration;this.context.inIteration=!0,e=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=r}return typeof c>"u"?this.finalize(n,new la(E,t,b,e)):g?this.finalize(n,new oa(c,a,e)):this.finalize(n,new ua(c,a,e,o))}parseContinueStatement(){const E=this.createNode();this.expectKeyword("continue");let t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){const b=this.parseVariableIdentifier();t=b;const g="$"+b.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(pt.UnknownLabel,b.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(pt.IllegalContinue),this.finalize(E,new ta(t))}parseBreakStatement(){const E=this.createNode();this.expectKeyword("break");let t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){const b=this.parseVariableIdentifier(),g="$"+b.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(pt.UnknownLabel,b.name),t=b}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(pt.IllegalBreak),this.finalize(E,new Xs(t))}parseReturnStatement(){this.context.inFunctionBody||this.tolerateError(pt.IllegalReturn);const E=this.createNode();this.expectKeyword("return");const b=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(E,new Ca(b))}parseWithStatement(){this.context.strict&&this.tolerateError(pt.StrictModeWith);const E=this.createNode();let t;this.expectKeyword("with"),this.expect("(");const b=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new cr)):(this.expect(")"),t=this.parseStatement()),this.finalize(E,new ja(b,t))}parseSwitchCase(){const E=this.createNode();let t;this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");const b=[];for(;!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)b.push(this.parseStatementListItem());return this.finalize(E,new Ma(t,b))}parseSwitchStatement(){const E=this.createNode();this.expectKeyword("switch"),this.expect("(");const t=this.parseExpression();this.expect(")");const b=this.context.inSwitch;this.context.inSwitch=!0;const g=[];let c=!1;for(this.expect("{");!this.match("}");){const a=this.parseSwitchCase();a.test===null&&(c&&this.throwError(pt.MultipleDefaultsInSwitch),c=!0),g.push(a)}return this.expect("}"),this.context.inSwitch=b,this.finalize(E,new Fa(t,g))}parseLabelledStatement(){const E=this.createNode(),t=this.parseExpression();let b;if(t.type===lt.Identifier&&this.match(":")){this.nextToken();const g=t,c="$"+g.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,c)&&this.throwError(pt.Redeclaration,"Label",g.name),this.context.labelSet[c]=!0;let a;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){const o=this.lookahead,n=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(o,pt.StrictFunction):n.generator&&this.tolerateUnexpectedToken(o,pt.GeneratorInLegacyContext),a=n}else a=this.parseStatement();delete this.context.labelSet[c],b=new ya(g,a)}else this.consumeSemicolon(),b=new Hr(t);return this.finalize(E,b)}parseThrowStatement(){const E=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(pt.NewlineAfterThrow);const t=this.parseExpression();return this.consumeSemicolon(),this.finalize(E,new Oa(t))}parseCatchClause(){const E=this.createNode();this.expectKeyword("catch");let t=null;if(this.match("(")){this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);const g=[];t=this.parsePattern(g);const c={};for(let a=0;a<g.length;a++){const o="$"+g[a].value;Object.prototype.hasOwnProperty.call(c,o)&&this.tolerateError(pt.DuplicateBinding,g[a].value),c[o]=!0}this.context.strict&&t.type===lt.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(pt.StrictCatchVariable),this.expect(")")}const b=this.parseBlock();return this.finalize(E,new Gs(t,b))}parseFinallyClause(){return this.expectKeyword("finally"),this.parseBlock()}parseTryStatement(){const E=this.createNode();this.expectKeyword("try");const t=this.parseBlock(),b=this.matchKeyword("catch")?this.parseCatchClause():null,g=this.matchKeyword("finally")?this.parseFinallyClause():null;return!b&&!g&&this.throwError(pt.NoCatchOrFinally),this.finalize(E,new Ra(t,b,g))}parseDebuggerStatement(){const E=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(E,new ea)}parseStatement(){let E;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:E=this.parseExpressionStatement();break;case 7:const t=this.lookahead.value;t==="{"?E=this.parseBlock():t==="("?E=this.parseExpressionStatement():t===";"?E=this.parseEmptyStatement():E=this.parseExpressionStatement();break;case 3:E=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":E=this.parseBreakStatement();break;case"continue":E=this.parseContinueStatement();break;case"debugger":E=this.parseDebuggerStatement();break;case"do":E=this.parseDoWhileStatement();break;case"for":E=this.parseForStatement();break;case"function":E=this.parseFunctionDeclaration();break;case"if":E=this.parseIfStatement();break;case"return":E=this.parseReturnStatement();break;case"switch":E=this.parseSwitchStatement();break;case"throw":E=this.parseThrowStatement();break;case"try":E=this.parseTryStatement();break;case"var":E=this.parseVariableStatement();break;case"while":E=this.parseWhileStatement();break;case"with":E=this.parseWithStatement();break;default:E=this.parseExpressionStatement();break}break;default:E=this.throwUnexpectedToken(this.lookahead)}return E}parseFunctionSourceElements(){const E=this.createNode();this.expect("{");const t=this.parseDirectivePrologues(),b=this.context.labelSet,g=this.context.inIteration,c=this.context.inSwitch,a=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=b,this.context.inIteration=g,this.context.inSwitch=c,this.context.inFunctionBody=a,this.finalize(E,new mn(t))}validateParam(E,t,b){const g="$"+b;this.context.strict?(this.scanner.isRestrictedWord(b)&&(E.stricted=t,E.message=pt.StrictParamName),Object.prototype.hasOwnProperty.call(E.paramSet,g)&&(E.stricted=t,E.hasDuplicateParameterNames=!0)):E.firstRestricted||(this.scanner.isRestrictedWord(b)?(E.firstRestricted=t,E.message=pt.StrictParamName):this.scanner.isStrictModeReservedWord(b)?(E.firstRestricted=t,E.message=pt.StrictReservedWord):Object.prototype.hasOwnProperty.call(E.paramSet,g)&&(E.stricted=t,E.hasDuplicateParameterNames=!0)),typeof Object.defineProperty=="function"?Object.defineProperty(E.paramSet,g,{value:!0,enumerable:!0,writable:!0,configurable:!0}):E.paramSet[g]=!0}parseRestElement(E){const t=this.createNode();this.expect("...");const b=this.parsePattern(E);return this.match("=")&&this.throwError(pt.DefaultRestParameter),this.match(")")||this.throwError(pt.ParameterAfterRestParameter),this.finalize(t,new Sr(b))}parseFormalParameter(E){const t=[],b=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t);for(let g=0;g<t.length;g++)this.validateParam(E,t[g],t[g].value);E.simple=E.simple&&b instanceof Pe,E.params.push(b)}parseFormalParameters(E){const t={simple:!0,hasDuplicateParameterNames:!1,params:[],firstRestricted:E};if(this.expect("("),!this.match(")"))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),t.hasDuplicateParameterNames&&(this.context.strict||this.context.isAsync||!t.simple)&&this.throwError(pt.DuplicateParameter),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}}matchAsyncFunction(){let E=this.matchContextualKeyword("async");if(E){const t=this.scanner.saveState();this.scanner.scanComments();const b=this.scanner.lex();this.scanner.restoreState(t),E=t.lineNumber===b.lineNumber&&b.type===4&&b.value==="function"}return E}parseFunctionDeclaration(E){const t=this.createNode(),b=this.matchContextualKeyword("async");b&&(this.context.inIteration&&this.tolerateError(pt.AsyncFunctionInSingleStatementContext),this.nextToken()),this.expectKeyword("function");const g=this.match("*");g&&this.nextToken();let c,a=null,o=null;if(!E||!this.match("(")){const l=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,pt.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(o=l,c=pt.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(o=l,c=pt.StrictReservedWord)}const n=this.context.isAsync,e=this.context.allowYield;this.context.isAsync=b,this.context.allowYield=!g;const r=this.parseFormalParameters(o),u=r.params,i=r.stricted;o=r.firstRestricted,r.message&&(c=r.message);const s=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=r.simple;const f=this.parseFunctionSourceElements();return this.context.strict&&o&&this.throwUnexpectedToken(o,c),this.context.strict&&i&&this.tolerateUnexpectedToken(i,c),this.context.strict=s,this.context.allowStrictDirective=h,this.context.isAsync=n,this.context.allowYield=e,b?this.finalize(t,new qs(a,u,f,g)):this.finalize(t,new ca(a,u,f,g))}parseFunctionExpression(){const E=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");const b=this.match("*");b&&this.nextToken();let g,c=null,a;const o=this.context.isAsync,n=this.context.allowYield;if(this.context.isAsync=t,this.context.allowYield=!b,!this.match("(")){const f=this.lookahead;c=!this.context.strict&&!b&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(f.value)&&this.tolerateUnexpectedToken(f,pt.StrictFunctionName):this.scanner.isRestrictedWord(f.value)?(a=f,g=pt.StrictFunctionName):this.scanner.isStrictModeReservedWord(f.value)&&(a=f,g=pt.StrictReservedWord)}const e=this.parseFormalParameters(a),r=e.params,u=e.stricted;a=e.firstRestricted,e.message&&(g=e.message);const i=this.context.strict,s=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;const h=this.parseFunctionSourceElements();return this.context.strict&&a&&this.throwUnexpectedToken(a,g),this.context.strict&&u&&this.tolerateUnexpectedToken(u,g),this.context.strict=i,this.context.allowStrictDirective=s,this.context.isAsync=o,this.context.allowYield=n,this.finalize(E,new sr(c,r,h,b,t))}parseDirective(){const E=this.lookahead,t=this.createNode(),b=this.parseExpression(),g=b.type===lt.Literal?this.getTokenRaw(E).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,g?new na(b,g):new Hr(b))}parseDirectivePrologues(){let E=null;const t=[];for(;;){const b=this.lookahead;if(b.type!==8)break;const g=this.parseDirective();t.push(g);const c=g.directive;if(typeof c!="string")break;c==="use strict"?(this.context.strict=!0,E&&this.tolerateUnexpectedToken(E,pt.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(b,pt.IllegalLanguageModeDirective)):!E&&b.octal&&(E=b)}return t}qualifiedPropertyName(E){switch(E.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return E.value==="["||E.value==="#"}return!1}parseGetterMethod(){const E=this.createNode(),t=!1,b=this.context.allowYield;this.context.allowYield=!t;const g=this.parseFormalParameters();g.params.length>0&&this.tolerateError(pt.BadGetterArity);const c=this.parsePropertyMethod(g);return this.context.allowYield=b,this.finalize(E,new sr(null,g.params,c,t,!1))}parseSetterMethod(){const E=this.createNode(),t=!1,b=this.context.allowYield;this.context.allowYield=!t;const g=this.parseFormalParameters();g.params.length!==1?this.tolerateError(pt.BadSetterArity):g.params[0]instanceof Sr&&this.tolerateError(pt.BadSetterRestParameter);const c=this.parsePropertyMethod(g);return this.context.allowYield=b,this.finalize(E,new sr(null,g.params,c,t,!1))}parseGeneratorMethod(E){const t=this.createNode(),b=!0,g=this.context.allowYield;this.context.allowYield=!0;const c=this.parseFormalParameters();this.context.allowYield=!1;const a=this.parsePropertyMethod(c);return this.context.allowYield=g,this.finalize(t,new sr(null,c.params,a,b,E))}isStartOfExpression(){let E=!0;const t=this.lookahead.value;switch(this.lookahead.type){case 7:E=t==="["||t==="("||t==="{"||t==="+"||t==="-"||t==="!"||t==="~"||t==="++"||t==="--"||t==="/"||t==="/=";break;case 4:E=t==="class"||t==="delete"||t==="function"||t==="let"||t==="new"||t==="super"||t==="this"||t==="typeof"||t==="void"||t==="yield";break}return E}parseYieldExpression(){const E=this.createNode();this.expectKeyword("yield");let t=null,b=!1;if(!this.hasLineTerminator){const g=this.context.allowYield;this.context.allowYield=!1,b=this.match("*"),b?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=g}return this.finalize(E,new La(t,b))}parseStaticBlock(){const E=this.createNode();this.expect("{");const t=[];for(;!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(E,new Ta(t))}parseDecorator(){const E=this.createNode();this.expect("@");const t=this.context.strict,b=this.context.allowYield,g=this.context.isAsync;this.context.strict=!1,this.context.allowYield=!0,this.context.isAsync=!1;const c=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);return this.context.strict=t,this.context.allowYield=b,this.context.isAsync=g,this.match(";")&&this.throwError(pt.NoSemicolonAfterDecorator),this.finalize(E,new ra(c))}parseDecorators(){let E=null;for(;this.match("@");)E==null&&(E=[]),E.push(this.parseDecorator());return E}parseClassElement(E){let t=this.lookahead;const b=this.createNode(),g=this.context.inConstructor;let c="",a=null,o=null,n=!1,e=!1,r=!1,u=!1,i=!1,s=!1;const h=this.parseDecorators();if(h&&(t=this.lookahead),this.match("*"))this.nextToken();else{n=this.match("["),this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead),a=this.parseObjectPropertyKey(s);const l=a;if(this.context.inConstructor=t.type===3&&t.value==="constructor",l.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,r=!0,n=this.match("["),this.match("*")?(this.nextToken(),this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead)):(this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead),a=this.parseObjectPropertyKey(s))),l.name==="static"&&this.match("{"))return this.parseStaticBlock();if(t.type===3&&!this.hasLineTerminator&&t.value==="async"){const p=this.lookahead.value;p!==":"&&p!=="("&&(u=!0,i=this.match("*"),i&&this.nextToken(),t=this.lookahead,n=this.match("["),this.match("*")?(this.nextToken(),this.match("#")&&(s=!0,this.nextToken())):(this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead),a=this.parseObjectPropertyKey(s)),t.type===3&&t.value==="constructor"&&!r&&this.tolerateUnexpectedToken(t,pt.ConstructorIsAsync))}}t.type===3&&t.value==="constructor"&&s&&this.tolerateUnexpectedToken(t,pt.ConstructorIsPrivate);const f=this.qualifiedPropertyName(this.lookahead);if(t.type===3||t.type===8?t.value==="get"&&f?(c="get",this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead),n=this.match("["),a=this.parseObjectPropertyKey(s),this.context.allowYield=!1,o=this.parseGetterMethod()):t.value==="set"&&f?(c="set",this.match("#")&&(s=!0,this.nextToken(),t=this.lookahead),n=this.match("["),a=this.parseObjectPropertyKey(s),o=this.parseSetterMethod()):this.match("(")||(c="property",n=!1,this.match("=")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression))):t.type===7&&t.value==="*"&&f?(c="init",n=this.match("["),a=this.parseObjectPropertyKey(s),o=this.parseGeneratorMethod(u),e=!0):t.type===7&&t.value==="["&&!this.match("(")&&(c="property",n=!0,this.match("=")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression))),!c&&a&&this.match("(")){const l=this.context.inClassConstructor;this.context.inClassConstructor=t.value==="constructor",c="init",o=u?this.parsePropertyMethodAsyncFunction(i):this.parsePropertyMethodFunction(i),this.context.inClassConstructor=l,e=!0}return c||this.throwUnexpectedToken(this.lookahead),c==="init"&&(c="method"),n||(r&&this.isPropertyKey(a,"prototype")&&this.throwUnexpectedToken(t,pt.StaticPrototype),!r&&this.isPropertyKey(a,"constructor")&&((c!=="method"||!e||o&&o.generator)&&this.throwUnexpectedToken(t,pt.ConstructorSpecialMethod),E.value?this.throwUnexpectedToken(t,pt.DuplicateConstructor):E.value=!0,c="constructor")),this.context.inConstructor=g,c==="property"?(this.consumeSemicolon(),this.finalize(b,new Sa(a,n,o,r,h))):this.finalize(b,new va(a,n,o,c,r,h))}parseClassElementList(){const E=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():E.push(this.parseClassElement(t));return this.expect("}"),E}parseClassBody(){const E=this.createNode(),t=this.parseClassElementList();return this.finalize(E,new Ks(t))}parseClassDeclaration(E){const t=this.createNode(),b=this.context.strict,g=this.context.allowSuper;this.context.strict=!0,this.expectKeyword("class");const c=E&&this.lookahead.type!==3?null:this.parseVariableIdentifier();let a=null;this.matchKeyword("extends")&&(this.nextToken(),a=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall),this.context.allowSuper=!0);const o=this.parseClassBody();return this.context.allowSuper=g,this.context.strict=b,this.finalize(t,new Js(c,a,o,this.context.decorators))}parseClassExpression(){const E=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");const b=this.lookahead.type===3?this.parseVariableIdentifier():null;let g=null;this.matchKeyword("extends")&&(this.nextToken(),g=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall),this.context.allowSuper=!0);const c=this.parseClassBody();return this.context.strict=t,this.finalize(E,new Zs(b,g,c,this.context.decorators))}parseModule(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;const E=this.createNode(),t=this.parseDirectivePrologues();for(;this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(E,new wa(t))}parseScript(){const E=this.createNode(),t=this.parseDirectivePrologues();for(;this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(E,new Da(t))}parseImportAttributes(){if(this.lookahead.value==="assert"){this.nextToken(),this.expect("{");const E=[];for(;!this.match("}");)E.push(this.parseImportAttribute()),this.match("}")||this.expectCommaSeparator();return this.expect("}"),E}return null}parseImportAttribute(){const E=this.createNode();this.lookahead.type!==3&&this.throwUnexpectedToken(this.nextToken());const t=this.parseIdentifierName();this.match(":")||this.throwUnexpectedToken(this.nextToken()),this.nextToken();const b=this.nextToken(),g=this.getTokenRaw(b),c=this.finalize(E,new tr(b.value,g));return this.finalize(E,new fa(t,c))}parseModuleSpecifier(){const E=this.createNode();this.lookahead.type!==8&&this.throwError(pt.InvalidModuleSpecifier);const t=this.nextToken(),b=this.getTokenRaw(t);return Rt.isStringWellFormedUnicode(t.value)||this.throwError(pt.InvalidModuleSpecifier),this.finalize(E,new tr(t.value,b))}parseImportSpecifier(){const E=this.createNode();let t,b;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),b=t,this.matchContextualKeyword("as")&&(this.nextToken(),b=this.parseVariableIdentifier())):(t=this.lookahead.type==8?this.parseModuleSpecifier():this.parseIdentifierName(),b=t,this.matchContextualKeyword("as")?(this.nextToken(),b=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(E,new ga(b,t))}parseNamedImports(){this.expect("{");const E=[];for(;!this.match("}");)E.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),E}parseImportDefaultSpecifier(){const E=this.createNode(),t=this.parseIdentifierName();return this.finalize(E,new ma(t))}parseImportNamespaceSpecifier(){const E=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(pt.NoAsAfterImportNamespace),this.lookahead.escaped&&this.throwError(pt.NoAsAndFromEscapeSequences),this.nextToken();const t=this.parseIdentifierName();return this.finalize(E,new ba(t))}parseImportDeclaration(){this.context.inFunctionBody&&this.throwError(pt.IllegalImportDeclaration);const E=this.createNode();this.expectKeyword("import");let t,b=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match("{")?b=b.concat(this.parseNamedImports()):this.match("*")?b.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(b.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?b.push(this.parseImportNamespaceSpecifier()):this.match("{")?b=b.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){const c=this.lookahead.value?pt.UnexpectedToken:pt.MissingFromClause;this.throwError(c,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}const g=this.parseImportAttributes();return this.consumeSemicolon(),this.finalize(E,new pa(b,t,g))}parseExportSpecifier(){const E=this.createNode(),t=this.lookahead.type==8?this.parseModuleSpecifier():this.parseIdentifierName();let b=t;return this.matchContextualKeyword("as")&&(this.lookahead.escaped&&this.throwError(pt.NoAsAndFromEscapeSequences),this.nextToken(),b=this.lookahead.type==8?this.parseModuleSpecifier():this.parseIdentifierName()),this.finalize(E,new aa(t,b))}parseExportDeclaration(){this.context.inFunctionBody&&this.throwError(pt.IllegalExportDeclaration);const E=this.createNode();this.expectKeyword("export");let t;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){const b=this.parseFunctionDeclaration(!0);t=this.finalize(E,new xr(b))}else if(this.matchKeyword("class")){const b=this.parseClassDeclaration(!0);t=this.finalize(E,new xr(b))}else if(this.matchContextualKeyword("async")){const b=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(E,new xr(b))}else{this.matchContextualKeyword("from")&&this.throwError(pt.UnexpectedToken,this.lookahead.value);const b=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(E,new xr(b))}else if(this.match("*")){this.nextToken();let b=null;if(this.matchContextualKeyword("as")&&(this.lookahead.escaped&&this.throwError(pt.NoAsAndFromEscapeSequences),this.nextToken(),b=this.lookahead.type==8?this.parseModuleSpecifier():this.parseIdentifierName()),!this.matchContextualKeyword("from")){const a=this.lookahead.value?pt.UnexpectedToken:pt.MissingFromClause;this.throwError(a,this.lookahead.value)}this.lookahead.escaped&&this.throwError(pt.NoAsAndFromEscapeSequences),this.nextToken();const g=this.parseModuleSpecifier(),c=this.parseImportAttributes();this.consumeSemicolon(),t=this.finalize(E,new sa(g,b,c))}else if(this.lookahead.type===4){let b;switch(this.lookahead.value){case"let":case"const":b=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":b=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(E,new Ur(b,[],null,null))}else if(this.matchAsyncFunction()){const b=this.parseFunctionDeclaration();t=this.finalize(E,new Ur(b,[],null,null))}else{const b=[];let g=null,c=!1,a=null;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),b.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.lookahead.escaped&&this.throwError(pt.NoAsAndFromEscapeSequences),this.nextToken(),g=this.parseModuleSpecifier(),a=this.parseImportAttributes(),this.consumeSemicolon();else if(c){const o=this.lookahead.value?pt.UnexpectedToken:pt.MissingFromClause;this.throwError(o,this.lookahead.value)}else a=this.parseImportAttributes(),this.consumeSemicolon();t=this.finalize(E,new Ur(null,b,g,a))}return t}}const Cn={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"};Ie[100]="JSXIdentifier";Ie[101]="JSXText";function ar(U){let E;switch(U.type){case xe.JSXIdentifier:E=U.name;break;case xe.JSXNamespacedName:const b=U;E=ar(b.namespace)+":"+ar(b.name);break;case xe.JSXMemberExpression:const g=U;E=ar(g.object)+"."+ar(g.property);break}return E}class Ha extends Rn{constructor(E,t,b){super(E,t,b)}parsePrimaryExpression(){return this.match("<")?this.parseJSXRoot():super.parsePrimaryExpression()}startJSX(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column}finishJSX(){this.nextToken()}reenterJSX(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()}createJSXNode(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}createJSXChildNode(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}scanXHTMLEntity(E){let t="&",b=!0,g=!1,c=!1,a=!1;for(;!this.scanner.eof()&&b&&!g;){const o=this.scanner.source[this.scanner.index];if(o===E)break;if(g=o===";",t+=o,++this.scanner.index,!g)switch(t.length){case 2:c=o==="#";break;case 3:c&&(a=o==="x",b=a||Rt.isDecimalDigit(o.charCodeAt(0)),c=c&&!a);break;default:b=b&&!(c&&!Rt.isDecimalDigit(o.charCodeAt(0))),b=b&&!(a&&!Rt.isHexDigit(o.charCodeAt(0)));break}}if(b&&g&&t.length>2){const o=t.substr(1,t.length-2);c&&o.length>1?t=String.fromCharCode(parseInt(o.substr(1),10)):a&&o.length>2?t=String.fromCharCode(parseInt("0"+o.substr(1),16)):!c&&!a&&Cn[o]&&(t=Cn[o])}return t}lexJSX(){const E=this.scanner.source.charCodeAt(this.scanner.index);if(E===60||E===62||E===47||E===58||E===61||E===123||E===125)return{type:7,value:this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(E===34||E===39){const t=this.scanner.index,b=this.scanner.source[this.scanner.index++];let g="";for(;!this.scanner.eof();){const c=this.scanner.source[this.scanner.index++];if(c===b)break;c==="&"?g+=this.scanXHTMLEntity(b):g+=c}return{type:8,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(E===46){const t=this.scanner.source.charCodeAt(this.scanner.index+1),b=this.scanner.source.charCodeAt(this.scanner.index+2),g=t===46&&b===46?"...":".",c=this.scanner.index;return this.scanner.index+=g.length,{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:c,end:this.scanner.index}}if(E===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(Rt.isIdentifierStart(E)&&E!==92){const t=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){const g=this.scanner.source.charCodeAt(this.scanner.index);if(Rt.isIdentifierPart(g)&&g!==92)++this.scanner.index;else if(g===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()}nextJSXToken(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;const E=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(E)),E}nextJSXText(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;const E=this.scanner.index;let t="";for(;!this.scanner.eof();){const g=this.scanner.source[this.scanner.index];if(g==="{"||g==="<")break;++this.scanner.index,t+=g,Rt.isLineTerminator(g.charCodeAt(0))&&(++this.scanner.lineNumber,g==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
8
|
+
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;const b={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(b)),b}peekJSXToken(){const E=this.scanner.saveState();this.scanner.scanComments();const t=this.lexJSX();return this.scanner.restoreState(E),t}expectJSX(E){const t=this.nextJSXToken();(t.type!==7||t.value!==E)&&this.throwUnexpectedToken(t)}matchJSX(E){const t=this.peekJSXToken();return t.type===7&&t.value===E}parseJSXIdentifier(){const E=this.createJSXNode(),t=this.nextJSXToken();return t.type!==100&&this.throwUnexpectedToken(t),this.finalize(E,new Rs(t.value))}parseJSXElementName(){const E=this.createJSXNode();let t=this.parseJSXIdentifier();if(this.matchJSX(":")){const b=t;this.expectJSX(":");const g=this.parseJSXIdentifier();t=this.finalize(E,new fn(b,g))}else if(this.matchJSX("."))for(;this.matchJSX(".");){const b=t;this.expectJSX(".");const g=this.parseJSXIdentifier();t=this.finalize(E,new Bs(b,g))}return t}parseJSXAttributeName(){const E=this.createJSXNode();let t;const b=this.parseJSXIdentifier();if(this.matchJSX(":")){const g=b;this.expectJSX(":");const c=this.parseJSXIdentifier();t=this.finalize(E,new fn(g,c))}else t=b;return t}parseJSXStringLiteralAttribute(){const E=this.createJSXNode(),t=this.nextJSXToken();t.type!==8&&this.throwUnexpectedToken(t);const b=this.getTokenRaw(t);return this.finalize(E,new tr(t.value,b))}parseJSXExpressionAttribute(){const E=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");const t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(E,new hn(t))}parseJSXAttributeValue(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()}parseJSXNameValueAttribute(){const E=this.createJSXNode(),t=this.parseJSXAttributeName();let b=null;return this.matchJSX("=")&&(this.expectJSX("="),b=this.parseJSXAttributeValue()),this.finalize(E,new Ps(t,b))}parseJSXSpreadAttribute(){const E=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();const t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(E,new Ls(t))}parseJSXAttributes(){const E=[];for(;!this.matchJSX("/")&&!this.matchJSX(">");){const t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();E.push(t)}return E}parseJSXOpeningElement(){const E=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX(">"))return this.expectJSX(">"),this.finalize(E,new js(!1));const t=this.parseJSXElementName(),b=this.parseJSXAttributes(),g=this.matchJSX("/");return g&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(E,new dn(t,g,b))}parseJSXBoundaryElement(){const E=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){if(this.expectJSX("/"),this.matchJSX(">"))return this.expectJSX(">"),this.finalize(E,new Ns);const c=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(E,new Is(c))}const t=this.parseJSXElementName(),b=this.parseJSXAttributes(),g=this.matchJSX("/");return g&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(E,new dn(t,g,b))}parseJSXEmptyExpression(){const E=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(E,new Os)}parseJSXExpressionContainer(){const E=this.createJSXNode();this.expectJSX("{");let t;return this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(E,new hn(t))}parseJSXChildren(){const E=[];for(;!this.scanner.eof();){const t=this.createJSXChildNode(),b=this.nextJSXText();if(b.start<b.end){const g=this.getTokenRaw(b),c=this.finalize(t,new zs(b.value,g));E.push(c)}if(this.scanner.source[this.scanner.index]==="{"){const g=this.parseJSXExpressionContainer();E.push(g)}else break}return E}parseComplexJSXElement(E){const t=[];for(;!this.scanner.eof();){E.children=E.children.concat(this.parseJSXChildren());const b=this.createJSXChildNode(),g=this.parseJSXBoundaryElement();if(g.type===xe.JSXOpeningElement){const c=g;if(c.selfClosing){const a=this.finalize(b,new jr(c,[],null));E.children.push(a)}else t.push(E),E={node:b,opening:c,closing:null,children:[]}}if(g.type===xe.JSXClosingElement){E.closing=g;const c=ar(E.opening.name),a=ar(E.closing.name);if(c!==a&&this.tolerateError("Expected corresponding JSX closing tag for %0",c),t.length>0){const o=this.finalize(E.node,new jr(E.opening,E.children,E.closing));E=t[t.length-1],E.children.push(o),t.pop()}else break}if(g.type===xe.JSXClosingFragment)if(E.closing=g,E.opening.type!==xe.JSXOpeningFragment)this.tolerateError("Expected corresponding JSX closing tag for jsx fragment");else break}return E}parseJSXElement(){const E=this.createJSXNode(),t=this.parseJSXOpeningElement();let b=[],g=null;if(!t.selfClosing){const c=this.parseComplexJSXElement({node:E,opening:t,closing:g,children:b});b=c.children,g=c.closing}return this.finalize(E,new jr(t,b,g))}parseJSXRoot(){this.config.tokens&&this.tokens.pop(),this.startJSX();const E=this.parseJSXElement();return this.finishJSX(),E}isStartOfExpression(){return super.isStartOfExpression()||this.match("<")}}function Bn(U,E,t){let b=null;const g=(u,i)=>{t&&t(u,i),b&&b.visit(u,i)};let c=typeof t=="function"?g:null,a=!1;if(E){a=typeof E.comment=="boolean"&&E.comment;const u=typeof E.attachComment=="boolean"&&E.attachComment;(a||u)&&(b=new Fs,b.attach=u,E.comment=!0,c=g)}let o=!1;E&&typeof E.sourceType=="string"&&(o=E.sourceType==="module");let n;E&&typeof E.jsx=="boolean"&&E.jsx?n=new Ha(U,E,c):n=new Rn(U,E,c);const r=o?n.parseModule():n.parseScript();return a&&b&&(r.comments=b.comments),n.config.tokens&&(r.tokens=n.tokens),n.config.tolerant&&(r.errors=n.errorHandler.errors),r}var qr={},Dn;function $a(){return Dn||(Dn=1,(function(U){(function E(t){var b,g,c,a,o,n;function e(M){var j={},z,A;for(z in M)M.hasOwnProperty(z)&&(A=M[z],typeof A=="object"&&A!==null?j[z]=e(A):j[z]=A);return j}function r(M,j){var z,A,T,O;for(A=M.length,T=0;A;)z=A>>>1,O=T+z,j(M[O])?A=z:(T=O+1,A-=z+1);return T}b={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},c={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},o={},n={},g={Break:a,Skip:o,Remove:n};function u(M,j){this.parent=M,this.key=j}u.prototype.replace=function(j){this.parent[this.key]=j},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function i(M,j,z,A){this.node=M,this.path=j,this.wrap=z,this.ref=A}function s(){}s.prototype.path=function(){var j,z,A,T,O,L;function B(S,D){if(Array.isArray(D))for(A=0,T=D.length;A<T;++A)S.push(D[A]);else S.push(D)}if(!this.__current.path)return null;for(O=[],j=2,z=this.__leavelist.length;j<z;++j)L=this.__leavelist[j],B(O,L.path);return B(O,this.__current.path),O},s.prototype.type=function(){var M=this.current();return M.type||this.__current.wrap},s.prototype.parents=function(){var j,z,A;for(A=[],j=1,z=this.__leavelist.length;j<z;++j)A.push(this.__leavelist[j].node);return A},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(j,z){var A,T;return T=void 0,A=this.__current,this.__current=z,this.__state=null,j&&(T=j.call(this,z.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=A,T},s.prototype.notify=function(j){this.__state=j},s.prototype.skip=function(){this.notify(o)},s.prototype.break=function(){this.notify(a)},s.prototype.remove=function(){this.notify(n)},s.prototype.__initialize=function(M,j){this.visitor=j,this.root=M,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,j.fallback==="iteration"?this.__fallback=Object.keys:typeof j.fallback=="function"&&(this.__fallback=j.fallback),this.__keys=c,j.keys&&(this.__keys=Object.assign(Object.create(this.__keys),j.keys))};function h(M){return M==null?!1:typeof M=="object"&&typeof M.type=="string"}function f(M,j){return(M===b.ObjectExpression||M===b.ObjectPattern)&&j==="properties"}function l(M,j){for(var z=M.length-1;z>=0;--z)if(M[z].node===j)return!0;return!1}s.prototype.traverse=function(j,z){var A,T,O,L,B,S,D,w,d,v,y,x;for(this.__initialize(j,z),x={},A=this.__worklist,T=this.__leavelist,A.push(new i(j,null,null,null)),T.push(new i(null,null,null,null));A.length;){if(O=A.pop(),O===x){if(O=T.pop(),S=this.__execute(z.leave,O),this.__state===a||S===a)return;continue}if(O.node){if(S=this.__execute(z.enter,O),this.__state===a||S===a)return;if(A.push(x),T.push(O),this.__state===o||S===o)continue;if(L=O.node,B=L.type||O.wrap,v=this.__keys[B],!v)if(this.__fallback)v=this.__fallback(L);else throw new Error("Unknown node type "+B+".");for(w=v.length;(w-=1)>=0;)if(D=v[w],y=L[D],!!y){if(Array.isArray(y)){for(d=y.length;(d-=1)>=0;)if(y[d]&&!l(T,y[d])){if(f(B,v[w]))O=new i(y[d],[D,d],"Property",null);else if(h(y[d]))O=new i(y[d],[D,d],null,null);else continue;A.push(O)}}else if(h(y)){if(l(T,y))continue;A.push(new i(y,D,null,null))}}}}},s.prototype.replace=function(j,z){var A,T,O,L,B,S,D,w,d,v,y,x,C;function N(R){var $,V,X,P;if(R.ref.remove()){for(V=R.ref.key,P=R.ref.parent,$=A.length;$--;)if(X=A[$],X.ref&&X.ref.parent===P){if(X.ref.key<V)break;--X.ref.key}}}for(this.__initialize(j,z),y={},A=this.__worklist,T=this.__leavelist,x={root:j},S=new i(j,null,null,new u(x,"root")),A.push(S),T.push(S);A.length;){if(S=A.pop(),S===y){if(S=T.pop(),B=this.__execute(z.leave,S),B!==void 0&&B!==a&&B!==o&&B!==n&&S.ref.replace(B),(this.__state===n||B===n)&&N(S),this.__state===a||B===a)return x.root;continue}if(B=this.__execute(z.enter,S),B!==void 0&&B!==a&&B!==o&&B!==n&&(S.ref.replace(B),S.node=B),(this.__state===n||B===n)&&(N(S),S.node=null),this.__state===a||B===a)return x.root;if(O=S.node,!!O&&(A.push(y),T.push(S),!(this.__state===o||B===o))){if(L=O.type||S.wrap,d=this.__keys[L],!d)if(this.__fallback)d=this.__fallback(O);else throw new Error("Unknown node type "+L+".");for(D=d.length;(D-=1)>=0;)if(C=d[D],v=O[C],!!v)if(Array.isArray(v)){for(w=v.length;(w-=1)>=0;)if(v[w]){if(f(L,d[D]))S=new i(v[w],[C,w],"Property",new u(v,w));else if(h(v[w]))S=new i(v[w],[C,w],null,new u(v,w));else continue;A.push(S)}}else h(v)&&A.push(new i(v,C,null,new u(O,C)))}}return x.root};function p(M,j){var z=new s;return z.traverse(M,j)}function m(M,j){var z=new s;return z.replace(M,j)}function _(M,j){var z;return z=r(j,function(T){return T.range[0]>M.range[0]}),M.extendedRange=[M.range[0],M.range[1]],z!==j.length&&(M.extendedRange[1]=j[z].range[0]),z-=1,z>=0&&(M.extendedRange[0]=j[z].range[1]),M}function k(M,j,z){var A=[],T,O,L,B;if(!M.range)throw new Error("attachComments needs range information");if(!z.length){if(j.length){for(L=0,O=j.length;L<O;L+=1)T=e(j[L]),T.extendedRange=[0,M.range[0]],A.push(T);M.leadingComments=A}return M}for(L=0,O=j.length;L<O;L+=1)A.push(_(e(j[L]),z));return B=0,p(M,{enter:function(S){for(var D;B<A.length&&(D=A[B],!(D.extendedRange[1]>S.range[0]));)D.extendedRange[1]===S.range[0]?(S.leadingComments||(S.leadingComments=[]),S.leadingComments.push(D),A.splice(B,1)):B+=1;if(B===A.length)return g.Break;if(A[B].extendedRange[0]>S.range[1])return g.Skip}}),B=0,p(M,{leave:function(S){for(var D;B<A.length&&(D=A[B],!(S.range[1]<D.extendedRange[0]));)S.range[1]===D.extendedRange[0]?(S.trailingComments||(S.trailingComments=[]),S.trailingComments.push(D),A.splice(B,1)):B+=1;if(B===A.length)return g.Break;if(A[B].extendedRange[0]>S.range[1])return g.Skip}}),M}return t.Syntax=b,t.traverse=p,t.replace=m,t.attachComments=k,t.VisitorKeys=c,t.VisitorOption=g,t.Controller=s,t.cloneEnvironment=function(){return E({})},t})(U)})(qr)),qr}var Va=$a();const Jr=ur(Va),qa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wa=Object.prototype.toString,Xa=U=>Wa.call(U)==="[object Object]",Ya=()=>{};function Ga(...U){if(U.length!==1)return te.toRef(...U);const E=U[0];return typeof E=="function"?te.readonly(te.customRef(()=>({get:E,set:Ya}))):te.ref(E)}function Ka(U,E){function t(...b){return new Promise((g,c)=>{Promise.resolve(U(()=>E.apply(this,b),{fn:E,thisArg:this,args:b})).then(g).catch(c)})}return t}const Pn=U=>U();function Ja(U=Pn,E={}){const{initialState:t="active"}=E,b=Ga(t==="active");function g(){b.value=!1}function c(){b.value=!0}const a=(...o)=>{b.value&&U(...o)};return{isActive:te.readonly(b),pause:g,resume:c,eventFilter:a}}function Wr(U){return Array.isArray(U)?U:[U]}function Za(U){return te.getCurrentInstance()}function Qa(U,E,t={}){const{eventFilter:b=Pn,...g}=t;return te.watch(U,Ka(b,E),g)}function to(U,E,t={}){const{eventFilter:b,initialState:g="active",...c}=t,{eventFilter:a,pause:o,resume:n,isActive:e}=Ja(b,{initialState:g});return{stop:Qa(U,E,{...c,eventFilter:a}),pause:o,resume:n,isActive:e}}const eo=to;function ro(U,E=!0,t){Za()?te.onMounted(U,t):E?U():te.nextTick(U)}function no(U,E,t){return te.watch(U,E,{...t,immediate:!0})}const or=qa?window:void 0;function io(U){var E;const t=te.toValue(U);return(E=t?.$el)!==null&&E!==void 0?E:t}function An(...U){const E=(b,g,c,a)=>(b.addEventListener(g,c,a),()=>b.removeEventListener(g,c,a)),t=te.computed(()=>{const b=Wr(te.toValue(U[0])).filter(g=>g!=null);return b.every(g=>typeof g!="string")?b:void 0});return no(()=>{var b,g;return[(b=(g=t.value)===null||g===void 0?void 0:g.map(c=>io(c)))!==null&&b!==void 0?b:[or].filter(c=>c!=null),Wr(te.toValue(t.value?U[1]:U[0])),Wr(te.unref(t.value?U[2]:U[1])),te.toValue(t.value?U[3]:U[2])]},([b,g,c,a],o,n)=>{if(!b?.length||!g?.length||!c?.length)return;const e=Xa(a)?{...a}:a,r=b.flatMap(u=>g.flatMap(i=>c.map(s=>E(u,i,s,e))));n(()=>{r.forEach(u=>u())})},{flush:"post"})}const kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cr="__vueuse_ssr_handlers__",so=ao();function ao(){return Cr in kr||(kr[Cr]=kr[Cr]||{}),kr[Cr]}function oo(U,E){return so[U]||E}function uo(U){return U==null?"any":U instanceof Set?"set":U instanceof Map?"map":U instanceof Date?"date":typeof U=="boolean"?"boolean":typeof U=="string"?"string":typeof U=="object"?"object":Number.isNaN(U)?"any":"number"}const lo={boolean:{read:U=>U==="true",write:U=>String(U)},object:{read:U=>JSON.parse(U),write:U=>JSON.stringify(U)},number:{read:U=>Number.parseFloat(U),write:U=>String(U)},any:{read:U=>U,write:U=>String(U)},string:{read:U=>U,write:U=>String(U)},map:{read:U=>new Map(JSON.parse(U)),write:U=>JSON.stringify(Array.from(U.entries()))},set:{read:U=>new Set(JSON.parse(U)),write:U=>JSON.stringify(Array.from(U))},date:{read:U=>new Date(U),write:U=>U.toISOString()}},Tn="vueuse-storage";function co(U,E,t,b={}){var g;const{flush:c="pre",deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:n=!0,mergeDefaults:e=!1,shallow:r,window:u=or,eventFilter:i,onError:s=D=>{console.error(D)},initOnMounted:h}=b,f=(r?te.shallowRef:te.ref)(typeof E=="function"?E():E),l=te.computed(()=>te.toValue(U));if(!t)try{t=oo("getDefaultStorage",()=>or?.localStorage)()}catch(D){s(D)}if(!t)return f;const p=te.toValue(E),m=uo(p),_=(g=b.serializer)!==null&&g!==void 0?g:lo[m],{pause:k,resume:M}=eo(f,D=>O(D),{flush:c,deep:a,eventFilter:i});te.watch(l,()=>B(),{flush:c});let j=!1;const z=D=>{h&&!j||B(D)},A=D=>{h&&!j||S(D)};u&&o&&(t instanceof Storage?An(u,"storage",z,{passive:!0}):An(u,Tn,A)),h?ro(()=>{j=!0,B()}):B();function T(D,w){if(u){const d={key:l.value,oldValue:D,newValue:w,storageArea:t};u.dispatchEvent(t instanceof Storage?new StorageEvent("storage",d):new CustomEvent(Tn,{detail:d}))}}function O(D){try{const w=t.getItem(l.value);if(D==null)T(w,null),t.removeItem(l.value);else{const d=_.write(D);w!==d&&(t.setItem(l.value,d),T(w,d))}}catch(w){s(w)}}function L(D){const w=D?D.newValue:t.getItem(l.value);if(w==null)return n&&p!=null&&t.setItem(l.value,_.write(p)),p;if(!D&&e){const d=_.read(w);return typeof e=="function"?e(d,p):m==="object"&&!Array.isArray(d)?{...p,...d}:d}else return typeof w!="string"?w:_.read(w)}function B(D){if(!(D&&D.storageArea!==t)){if(D&&D.key==null){f.value=p;return}if(!(D&&D.key!==l.value)){k();try{const w=_.write(f.value);(D===void 0||D?.newValue!==w)&&(f.value=L(D))}catch(w){s(w)}finally{D?te.nextTick(M):M()}}}}function S(D){B(D.detail)}return f}function ho(U,E,t={}){const{window:b=or}=t;return co(U,E,b?.localStorage,t)}function tn(U,E){const b=te.shallowReactive(new Map),g=(...r)=>JSON.stringify(r),c=(r,...u)=>(b.set(r,U(...u)),b.get(r)),a=(...r)=>c(g(...r),...r),o=(...r)=>{b.delete(g(...r))},n=()=>{b.clear()},e=(...r)=>{const u=g(...r);return b.has(u)?b.get(u):c(u,...r)};return e.load=a,e.delete=o,e.clear=n,e.generateKey=g,e.cache=b,e}window._METHOD_DEBUG_=On;const jn=tn(yo),fo=tn(go);function Ln(U){return U.type===lt.MemberExpression?`${U.object.type===lt.MemberExpression?Ln(U.object):U.object.name}.${U.property.name}`:U.type===lt.Identifier?U.name:""}const po=Object.getPrototypeOf(async function(){}).constructor;async function mo(U){let E=[];return U.length>0&&(E=await _gct.api.apaas.systemVar.getGetVarByKeys({keys:U.join(",")})),E}const bo=tn(mo);async function go(U,E){const t=jn(U,!0),b=t.filter(i=>mt.innerVarIds.includes(i)).sort(),g=t.filter(i=>i.startsWith(mt.SYSTEM_VAR_PREFIX)).sort(),c=await bo([...b,...g]),a=Bn(U);Jr.replace(a,{enter(i){if(i.type===lt.BinaryExpression){const{operator:s}=i,h=mt.operator2FuncMap[s];return h?{type:lt.CallExpression,arguments:[i.left,i.right],callee:{type:lt.Identifier,name:h},optional:!1}:i}return i}}),Jr.traverse(a,{enter:function(i){i.type===lt.CallExpression&&i.callee.type===lt.Identifier&&(i.callee.name=`await Methods.${i.callee.name}`)}});const o="",n={},e=[];c.forEach(i=>{e.push(`const ${i.key} = ${JSON.stringify(i.value)};`)}),Object.keys(E).map(i=>{if(i.includes(".")){const[s="",h]=i.split(".");n[s]||(e.push(`const ${s} = {};`),n[s]=!0),e.push(`${s}.${h} = ${JSON.stringify(E[i])};`)}else e.push(`const ${i} = ${JSON.stringify(E[i])};`)});const r=new po("Methods",[...e,"return new Promise(async(resolve)=>{",`const res = ${o};`,"resolve(res);","})"].join(`
|
|
9
|
+
`)),u=await r(On);return console.info("【表达式】",U),console.info("【参数】",E),console.info("【执行语句】",r.toString()),console.info("【执行结果】",u),u}function yo(U,E=!1){const t=Bn(U);let b=[];return Jr.traverse(t,{enter:function(g){if(g.type===lt.MemberExpression){const c=Ln(g);b.push(c),Object.assign(g,{name:c,type:lt.Identifier})}else g.type===lt.Identifier&&b.push(g.name);E?b=b.filter(c=>!mt.functionMap[c]&&c!=="undefined"):b=b.filter(c=>!mt.functionMap[c]&&c!=="undefined"&&!mt.innerVarIds.includes(c)&&!c.startsWith(mt.SYSTEM_VAR_PREFIX)&&!c.startsWith("undefined."))}}),[...new Set(b)]}window.gct_expression={execute:fo,identify:jn};const vo={[mt.GLOBAL_VAR_TYPE.DATE]:{callback(U){return Kt(U,["YYYY-MM-DD","YYYY/MM/DD"],!0).isValid()},message:"日期变量格式为YYYY-MM-DD,YYYY/MM/DD"},[mt.GLOBAL_VAR_TYPE.TIME]:{callback(U){return Kt(U,"HH:mm:ss",!0).isValid()},message:"时间变量格式HH:mm:ss"},[mt.GLOBAL_VAR_TYPE.DATETIME]:{callback(U){return Kt(U,["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss"]).isValid()},message:"日期时间变量格式为YYYY-MM-DD HH:mm:ss,YYYY/MM/DD HH:mm:ss"}};function wo(U,E){if(E===mt.GLOBAL_VAR_TYPE.NULL)return!0;const{callback:t,message:b}=vo[E]||{callback(g){return Object.prototype.toString.call(g).slice(8,-1).toLowerCase()===E}};return t(U)?Promise.resolve():Promise.reject(b)}var hr=(U=>(U.SELECT_ID="$VAR_GCT_SELECT_ID",U))(hr||{});const Mn=ho("GCT_APP_GlobalCache",{}),xo=U=>{const E=te.computed({get(){return Mn.value[U]||{}},set(b){Mn.value[U]=b}});return{selectID:te.computed({get(){return E.value[hr.SELECT_ID]},set(b){E.value[hr.SELECT_ID]?E.value[hr.SELECT_ID]=b:E.value={...E.value,[hr.SELECT_ID]:b}}}),cacheMap:E}};class Xr{static ENV;static AID;static userInfo;static runApp({userInfo:E,env:t,aid:b}){this.ENV=t,this.AID=b,this.userInfo=E}}const _o=({value:U,appredis:E,key:t,type:b})=>{const g=Xr.ENV!=="dev"?E:!1,c=`${Xr.AID}_${Xr.userInfo?.userId}`,{cacheMap:a}=xo(c);return new Proxy({value:U,type:b},{get(n,e){return g&&e==="value"?a.value[t]:Reflect.get(n,e)},set(n,e,r,u){return g&&e==="value"&&(a.value[t]?a.value[t]=r:a.value={...a.value,[t]:r}),Reflect.set(n,e,r,u)}})},Eo={web_module:{getPageInfo:_gct.api.apaas.webpage.getInfo},mobile_module:{getPageInfo:_gct.api.apaas.mobilePage.getInfo},pad_module:{getPageInfo:_gct.api.apaas.padPage.getInfo}},Ue=te.ref({}),Yr=te.ref({});te.ref({});const Ge=te.ref({pageStyle:{},pageConfig:{},pageName:""});te.toRef(()=>{const{title:U}=Ge.value.pageConfig||{};return U});class Or{static modalsCache={};static pageID="";static permissions={};static ContextCache={};static startRuning=!1;static globalHookCaches={pageMounted:[],pageActivated:[],pageDestroyed:[]};static setModals(E){this.modalsCache={},E?.forEach(t=>{this.modalsCache[t.id]=t})}static async getModalById(E){if(!E)return Promise.reject();if(/^i?g_modal_/.test(E)&&!this.modalsCache[E]){const[b]=await _api.apaas.appGlobalSettings.getInfo({keys:E,fullInfo:!0})||[];if(b?.configJson){const g=JSON.parse(b.configJson);this.modalsCache[E]=g}}const t=this.modalsCache[E];return t||(console.error(`模态框${E}不存在`),Promise.reject())}static getPremission(E){if(!E)return!0;const t=this.permissions[E];return t?mt.usePermissionStore().getPermissionByKey(this.pageID,t):!0}static setPremission(E,t){this.permissions[t]=E}static setContextByKey(E,t){t?this.ContextCache[t]=E:this.ContextCache={page:E}}static getContextByKey(E){return this.ContextCache[E||"page"]}static async initvars(){(await _gct.api.apaas.appGlobalSettings.getList({type:"var",fullInfo:!0})||[]).forEach(t=>{if(t.configJson)try{const b=JSON.parse(t.configJson);Yr.value[b.key]=_o({value:b.defaultValue,appredis:b.appredis,key:b.key,type:b.type})}catch(b){console.error("initvars",b)}})}static async inithooks(){(await _gct.api.apaas.appGlobalSettings.getList({type:"event",fullInfo:!0})||[]).forEach(t=>{if(t.configJson)try{const b=new Function(JSON.parse(t.configJson).runJs),g=this.globalHookCaches[t.key];g&&g.push(b)}catch(b){console.error("inithooks",b)}})}static async initPermission(E){this.permissions=E||{}}static async initGlobalS(E){if(this.setModals(E.modals),E.pageVars?.forEach(t=>{Ue.value[t.key]={value:t.varInfo?.defaultValue,type:t.varInfo.type}}),!this.startRuning){this.startRuning=!0;try{await Promise.all([this.initvars(),this.inithooks()])}catch(t){console.log(t)}}}static getGlobalVar(E){const t=Yr.value[E];return t?t.value:console.warn("变量key不存在")}static async setGlobalVar(E,t){const b=Yr.value[E];if(!b)return console.warn("变量key不存在");b.value=t}static getPageVar(E){const t=Ue.value[E];return t?t.value:console.warn("变量key不存在")}static async setPageVar(E,t){const b=Ue.value[E];if(!b)return console.warn("变量key不存在");await wo(t,b.type),Ue.value[E]&&(Ue.value[E].value=t)}static getPageGlobalVar(E){return Ue.value[E]?.value}static setPageGlobalVar(E,t){Ue.value[E]?Ue.value[E].value=t:Ue.value[E]={value:t,type:"string"}}static async initPageByid(E,t="web_module"){this.pageID=E;const b=Eo[t].getPageInfo,g=await b({id:E}),{runtimeJson:c,name:a}=g||{};if(Ge.value.pageName=a,!c)return Promise.reject();const o=JSON.parse(c);return o.widgets.filter(n=>n.type!=="bottom-button-container").length?(await this.initGlobalS(o),Ge.value.pageConfig=o.pageConfig||{},Ge.value.pageStyle=o.pageStyle||{},{res:g,data:o,name:a}):Promise.reject()}static async initHistoryByid(E){this.pageID=E;const t=await _gct.api.apaas.pageDesignerLog.getInfo({id:E}),{runtimeJson:b,name:g}=t||{};if(!b)return Promise.reject();Ge.value.pageName=g;const c=JSON.parse(b);return await this.initGlobalS(c),Ge.value.pageConfig=c.pageConfig||{},Ge.value.pageStyle=c.pageStyle||{},{res:t,data:c,name:g}}static usePageHooks(E,t,b,g){const c=te.ref(!1);return te.onMounted(async()=>{await te.nextTick();const a=t?.pageBeforeMount;if(a?.name&&await E.runExportByName(a.name,a.extraParams),g&&await g(E),c.value=!0,b.pageMounted)for(const e of this.globalHookCaches.pageMounted)await e();const{extraParams:o,name:n}=t?.pageMounted||{};n&&E.runAsyncExportByName(n,o)}),te.onBeforeUnmount(async()=>{Ge.value={};const{extraParams:a,name:o}=t?.pageDestroyed||{};if(o&&E.runExportByName(o,a),b.pageDestroyed)for(const n of this.globalHookCaches.pageDestroyed)await n()}),te.onActivated(async()=>{if(Or.setContextByKey(E.context),b.pageActivated)for(const n of this.globalHookCaches.pageActivated)await n();const{extraParams:a,name:o}=t?.pageActivated||{};o&&E.runAsyncExportByName(o,a)}),{pageload:c}}}Or.getPremission.bind(Or);const Dr=U=>(E,t={},b={},g={})=>U({modelKey:E.key,bsKey:E.action,modelCategory:E.modelCategory??mt.EntityModelCategoryEnum.ENTITY},t,b,g);Dr(_gct.api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey),Dr(_gct.api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey),Dr(_gct.api.apaas.modelComprehensive.putBizServiceModelCategoryModelKeyBsKey),Dr(_gct.api.apaas.modelComprehensive.deleteBizServiceModelCategoryModelKeyBsKey);function Ar(U){throw new Error('Could not dynamically require "'+U+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gr={exports:{}};var Fn;function So(){return Fn||(Fn=1,(function(U,E){(function(t){U.exports=t()})((function(){return(function t(b,g,c){function a(e,r){if(!g[e]){if(!b[e]){var u=typeof Ar=="function"&&Ar;if(!r&&u)return u(e,!0);if(o)return o(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var s=g[e]={exports:{}};b[e][0].call(s.exports,(function(h){return a(b[e][1][h]||h)}),s,s.exports,t,b,g,c)}return g[e].exports}for(var o=typeof Ar=="function"&&Ar,n=0;n<c.length;n++)a(c[n]);return a})({1:[function(t,b,g){const c=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(o).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),i={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};b.exports=class{constructor(s){this.workbook=s,this.worksheet=null}async readFile(s,h){if(h=h||{},!await u(s))throw new Error("File not found: "+s);const f=c.createReadStream(s),l=await this.read(f,h);return f.close(),l}read(s,h){return h=h||{},new Promise((f,l)=>{const p=this.workbook.addWorksheet(h.sheetName),m=h.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],_=h.map||function(M){if(M==="")return null;const j=Number(M);if(!Number.isNaN(j)&&j!==1/0)return j;const z=m.reduce((T,O)=>{if(T)return T;const L=e(M,O,!0);return L.isValid()?L:null},null);if(z)return new Date(z.valueOf());const A=i[M];return A!==void 0?A:M},k=a.parse(h.parserOptions).on("data",M=>{p.addRow(M.map(_))}).on("end",()=>{k.emit("worksheet",p)});k.on("worksheet",f).on("error",l),s.pipe(k)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(s,h){return new Promise((f,l)=>{h=h||{};const p=this.workbook.getWorksheet(h.sheetName||h.sheetId),m=a.format(h.formatterOptions);s.on("finish",()=>{f()}),m.on("error",l),m.pipe(s);const{dateFormat:_,dateUTC:k}=h,M=h.map||(A=>{if(A){if(A.text||A.hyperlink)return A.hyperlink||A.text||"";if(A.formula||A.result)return A.result||"";if(A instanceof Date)return _?k?e.utc(A).format(_):e(A).format(_):k?e.utc(A).format():e(A).format();if(A.error)return A.error;if(typeof A=="object")return JSON.stringify(A)}return A}),j=h.includeEmptyRows===void 0||h.includeEmptyRows;let z=1;p&&p.eachRow((A,T)=>{if(j)for(;z++<T-1;)m.write([]);const{values:O}=A;O.shift(),m.write(O.map(M)),z=T}),m.end()})}writeFile(s,h){const f={encoding:(h=h||{}).encoding||"utf8"},l=c.createWriteStream(s,f);return this.write(l,h)}async writeBuffer(s){const h=new r;return await this.write(h,s),h.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,b,g){const c=t("../utils/col-cache");class a{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const u=c.decodeAddress(e);this.nativeCol=u.col+r,this.nativeColOff=0,this.nativeRow=u.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof a||n==null?n:new a(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}b.exports=a},{"../utils/col-cache":19}],3:[function(t,b,g){const c=t("../utils/col-cache"),a=t("../utils/under-dash"),o=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(s,h,f){if(!s||!h)throw new Error("A Cell needs a Row");this._row=s,this._column=h,c.validateAddress(f),this._address=f,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(s.style,h.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(s){this.style.numFmt=s}get font(){return this.style.font}set font(s){this.style.font=s}get alignment(){return this.style.alignment}set alignment(s){this.style.alignment=s}get border(){return this.style.border}set border(s){this.style.border=s}get fill(){return this.style.fill}set fill(s){this.style.fill=s}get protection(){return this.style.protection}set protection(s){this.style.protection=s}_mergeStyle(s,h,f){const l=s&&s.numFmt||h&&h.numFmt;l&&(f.numFmt=l);const p=s&&s.font||h&&h.font;p&&(f.font=p);const m=s&&s.alignment||h&&h.alignment;m&&(f.alignment=m);const _=s&&s.border||h&&h.border;_&&(f.border=_);const k=s&&s.fill||h&&h.fill;k&&(f.fill=k);const M=s&&s.protection||h&&h.protection;return M&&(f.protection=M),f}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(s,h){this._value.release(),this._value=u.create(r.Types.Merge,this,s),h||(this.style=s.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(s){return this._value.type===r.Types.Merge&&this._value.isMergedTo(s)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(s){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(s),this,s)):this._value.master.value=s}get note(){return this._comment&&this._comment.note}set note(s){this._comment=new e(s)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(s){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:s}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:s}=this._row;return{sheetName:s.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(s){this.names=[s]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(s){const{definedNames:h}=this.workbook;h.removeAllNames(this.fullAddress),s.forEach(f=>{h.addEx(this.fullAddress,f)})}addName(s){this.workbook.definedNames.addEx(this.fullAddress,s)}removeName(s){this.workbook.definedNames.removeEx(this.fullAddress,s)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(s){this._dataValidations.add(this.address,s)}get model(){const{model:s}=this._value;return s.style=this.style,this._comment&&(s.comment=this._comment.model),s}set model(s){this._value.release(),this._value=u.create(s.type,this),this._value.model=s,s.comment&&s.comment.type==="note"&&(this._comment=e.fromModel(s.comment)),s.style?this.style=s.style:this.style={}}}r.Types=o.ValueType;const u={getType:i=>i==null?r.Types.Null:i instanceof String||typeof i=="string"?r.Types.String:typeof i=="number"?r.Types.Number:typeof i=="boolean"?r.Types.Boolean:i instanceof Date?r.Types.Date:i.text&&i.hyperlink?r.Types.Hyperlink:i.formula||i.sharedFormula?r.Types.Formula:i.richText?r.Types.RichText:i.sharedString?r.Types.SharedString:i.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(i){this.model={address:i.address,type:r.Types.Null}}get value(){return null}set value(i){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Number,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.String,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Date,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Hyperlink,text:s?s.text:void 0,hyperlink:s?s.hyperlink:void 0},s&&s.tooltip&&(this.model.tooltip=s.tooltip)}get value(){const i={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(i.tooltip=this.model.tooltip),i}set value(i){this.model={text:i.text,hyperlink:i.hyperlink},i.tooltip&&(this.model.tooltip=i.tooltip)}get text(){return this.model.text}set text(i){this.model.text=i}get hyperlink(){return this.model.hyperlink}set hyperlink(i){this.model.hyperlink=i}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(i,s){this.cell=i,this.model={address:i.address,type:r.Types.Formula,shareType:s?s.shareType:void 0,ref:s?s.ref:void 0,formula:s?s.formula:void 0,sharedFormula:s?s.sharedFormula:void 0,result:s?s.result:void 0}}_copyModel(i){const s={},h=f=>{const l=i[f];l&&(s[f]=l)};return h("formula"),h("result"),h("ref"),h("shareType"),h("sharedFormula"),s}get value(){return this._copyModel(this.model)}set value(i){this.model=this._copyModel(i)}validate(i){switch(u.getType(i)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(i){this.model.formula=i}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(i){this.model.result=i}get type(){return r.Types.Formula}get effectiveType(){const i=this.model.result;return i==null?o.ValueType.Null:i instanceof String||typeof i=="string"?o.ValueType.String:typeof i=="number"?o.ValueType.Number:i instanceof Date?o.ValueType.Date:i.text&&i.hyperlink?o.ValueType.Hyperlink:i.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(i){this.model.address=i}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:i}=this.cell,s=i.findCell(this.model.sharedFormula);this._translatedFormula=s&&n(s.formula,s.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Merge,master:s?s.address:void 0},this._master=s,s&&s.addMergeRef()}get value(){return this._master.value}set value(i){i instanceof r?(this._master&&this._master.releaseMergeRef(),i.addMergeRef(),this._master=i):this._master.value=i}isMergedTo(i){return i===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.String,value:JSON.stringify(s),rawValue:s}}get value(){return this.model.rawValue}set value(i){this.model.rawValue=i,this.model.value=JSON.stringify(i)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.SharedString,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.String,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}toString(){return this.model.value.richText.map(i=>i.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Boolean,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(i,s){this.model={address:i.address,type:r.Types.Error,value:s}}get value(){return this.model.value}set value(i){this.model.value=i}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(i){this.model.address=i}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((i,s)=>(i[s.t]=s.f,i),[]),create(i,s,h){const f=this.types[i];if(!f)throw new Error("Could not create Value of type "+i);return new f(s,h)}};b.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,b,g){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache");class n{constructor(r,u,i){this._worksheet=r,this._number=u,i!==!1&&(this.defn=i)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((u,i)=>{this._worksheet.getCell(i+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&c.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,u){const i=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(s,h)=>{u(s.getCell(i),h)})}get values(){const r=[];return this.eachCell((u,i)=>{u&&u.type!==a.ValueType.Null&&(r[i]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let i=0;r.hasOwnProperty("0")&&(i=1),r.forEach((s,h)=>{this._worksheet.getCell(h+i,u).value=s})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(i=>{i[r]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const u=[];let i=null;return r&&r.forEach((s,h)=>{s.isDefault?i&&(i=null):i&&s.equivalentTo(i)?i.max=h+1:(i={min:h+1,max:h+1,width:s.width!==void 0?s.width:9,style:s.style,isCustomWidth:s.isCustomWidth,hidden:s.hidden,outlineLevel:s.outlineLevel,collapsed:s.collapsed},u.push(i))}),u.length?u:void 0}static fromModel(r,u){const i=[];let s=1,h=0;for(u=(u=u||[]).sort((function(f,l){return f.min-l.min}));h<u.length;){const f=u[h++];for(;s<f.min;)i.push(new n(r,s++));for(;s<=f.max;)i.push(new n(r,s++,f))}return i.length?i:null}}b.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,b,g){b.exports=class{constructor(c){this.model=c||{}}add(c,a){return this.model[c]=a}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,b,g){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;b.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new o)}add(r,u){const i=a.decodeEx(r);this.addEx(i,u)}addEx(r,u){const i=this.getMatrix(u);if(r.top)for(let s=r.left;s<=r.right;s++)for(let h=r.top;h<=r.bottom;h++){const f={sheetName:r.sheetName,address:a.n2l(s)+h,row:h,col:s};i.addCellEx(f)}else i.addCellEx(r)}remove(r,u){const i=a.decodeEx(r);this.removeEx(i,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){c.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){c.each(this.matrixMap,(u,i)=>{u.forEach(s=>{r(i,s)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return c.map(this.matrixMap,(u,i)=>u.findCellEx(r)&&i).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:i}=u,s=new n(u.row,u.col,u.row,u.col,i);let h,f;function l(m,_){const k=r.findCellAt(i,m,u.col);return!(!k||!k.mark)&&(s[_]=m,k.mark=!1,!0)}for(f=u.row-1;l(f,"top");f--);for(f=u.row+1;l(f,"bottom");f++);function p(m,_){const k=[];for(f=s.top;f<=s.bottom;f++){const M=r.findCellAt(i,f,m);if(!M||!M.mark)return!1;k.push(M)}s[_]=m;for(let M=0;M<k.length;M++)k[M].mark=!1;return!0}for(h=u.col-1;p(h,"left");h--);for(h=u.col+1;p(h,"right");h++);return s}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(i=>{i.mark=!0}),{name:r,ranges:u.map(i=>i.mark&&this._explore(u,i)).filter(Boolean).map(i=>i.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(i,s,h)=>{i&&(i.row===s&&i.col===h||(i.row=s,i.col=h,i.address=a.n2l(h)+s))})}spliceRows(r,u,i,s){c.each(this.matrixMap,h=>{h.spliceRows(r,u,i,s),this.normaliseMatrix(h,r)})}spliceColumns(r,u,i,s){c.each(this.matrixMap,h=>{h.spliceColumns(r,u,i,s),this.normaliseMatrix(h,r)})}get model(){return c.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(i=>{const s=u[i.name]=new o;i.ranges.forEach(h=>{e.test(h.split("!").pop()||"")&&s.addCell(h)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,b,g){b.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,b,g){const c=t("../utils/col-cache"),a=t("./anchor");b.exports=class{constructor(o,n){this.worksheet=o,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(o){let{type:n,imageId:e,range:r,hyperlinks:u}=o;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const i=c.decode(r);this.range={tl:new a(this.worksheet,{col:i.left,row:i.top},-1),br:new a(this.worksheet,{col:i.right,row:i.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,r.tl,0),br:r.br&&new a(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,b,g){const c=t("../utils/under-dash");class a{constructor(n){this.note=n}get model(){let n=null;return typeof this.note==="string"?n={type:"note",note:{texts:[{text:this.note}]}}:n={type:"note",note:this.note},c.deepMerge({},a.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new a;return e.model=n,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},b.exports=a},{"../utils/under-dash":26}],10:[function(t,b,g){const c=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,i){if(arguments.length<4){const s=c.decodeAddress(n),h=c.decodeAddress(e);this.model={top:Math.min(s.row,h.row),left:Math.min(s.col,h.col),bottom:Math.max(s.row,h.row),right:Math.max(s.col,h.col),sheetName:r},this.setTLBR(s.row,s.col,h.row,h.col,i)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:i}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=c.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,u){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=c.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return c.n2l(this.left)+this.top}get $t$l(){return`$${c.n2l(this.left)}$${this.top}`}get br(){return c.n2l(this.right)+this.bottom}get $b$r(){return`$${c.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=c.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(c.encodeAddress(r,e),r,e)}}b.exports=a},{"../utils/col-cache":19}],11:[function(t,b,g){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),n=t("./cell");b.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const u=this._worksheet.getColumn(e.col);r=new n(this,u,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var i=arguments.length,s=new Array(i>2?i-2:0),h=2;h<i;h++)s[h-2]=arguments[h];const f=s.length-r,l=this._cells.length;let p,m,_;if(f<0)for(p=e+s.length;p<=l;p++)_=this._cells[p-1],m=this._cells[p-f-1],m?(_=this.getCell(p),_.value=m.value,_.style=m.style,_._comment=m._comment):_&&(_.value=null,_.style={},_._comment=void 0);else if(f>0)for(p=l;p>=u;p--)m=this._cells[p-1],m?(_=this.getCell(p+f),_.value=m.value,_.style=m.style,_._comment=m._comment):this._cells[p+f-1]=void 0;for(p=0;p<s.length;p++)_=this.getCell(e+p),_.value=s[p],_.style={},_._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let i=1;i<=u;i++)r(this.getCell(i),i)}else this._cells.forEach((u,i)=>{u&&u.type!==a.ValueType.Null&&r(u,i+1)})}addPageBreak(e,r){const u=this._worksheet,i=Math.max(0,e-1)||0,s=Math.max(0,r-1)||16838,h={id:this._number,max:s,man:1};i&&(h.min=i),u.rowBreaks.push(h)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==a.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((u,i)=>{u!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,i+r),row:this._number,col:i+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return c.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(u=>{u&&u.type!==a.ValueType.Null&&((!e||e>u.col)&&(e=u.col),r<u.col&&(r=u.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(u=>{u&&(u[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,u=0;return this._cells.forEach(i=>{if(i){const s=i.model;s&&((!r||r>i.col)&&(r=i.col),u<i.col&&(u=i.col),e.push(s))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(u=>{switch(u.type){case n.Types.Merge:break;default:{let i;if(u.address)i=o.decodeAddress(u.address);else if(r){const{row:s}=r,h=r.col+1;i={row:s,col:h,address:o.encodeAddress(s,h),$col$row:`$${o.n2l(h)}$${s}`}}r=i,this.getCellEx(i).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,b,g){const c=t("../utils/col-cache");class a{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}b.exports=class{constructor(o,n){this.worksheet=o,n&&(this.table=n,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:o}=this,n=(f,l,p)=>{f[l]===void 0&&(f[l]=p)};n(o,"headerRow",!0),n(o,"totalsRow",!1),n(o,"style",{}),n(o.style,"theme","TableStyleMedium2"),n(o.style,"showFirstColumn",!1),n(o.style,"showLastColumn",!1),n(o.style,"showRowStripes",!1),n(o.style,"showColumnStripes",!1);const e=(f,l)=>{if(!f)throw new Error(l)};e(o.ref,"Table must have ref"),e(o.columns,"Table must have column definitions"),e(o.rows,"Table must have row definitions"),o.tl=c.decodeAddress(o.ref);const{row:r,col:u}=o.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:i,filterHeight:s,tableHeight:h}=this;o.autoFilterRef=c.encode(r,u,r+s-1,u+i-1),o.tableRef=c.encode(r,u,r+h-1,u+i-1),o.columns.forEach((f,l)=>{e(f.name,`Column ${l} must have a name`),l===0?n(f,"totalsRowLabel","Total"):(n(f,"totalsRowFunction","none"),f.totalsRowFormula=this.getFormula(f))})}store(){const o=(s,h)=>{h&&Object.keys(h).forEach(f=>{s[f]=h[f]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let i=0;if(e.headerRow){const s=n.getRow(r+i++);e.columns.forEach((h,f)=>{const{style:l,name:p}=h,m=s.getCell(u+f);m.value=p,o(m,l)})}if(e.rows.forEach(s=>{const h=n.getRow(r+i++);s.forEach((f,l)=>{const p=h.getCell(u+l);p.value=f,o(p,e.columns[l].style)})}),e.totalsRow){const s=n.getRow(r+i++);e.columns.forEach((h,f)=>{const l=s.getCell(u+f);if(f===0)l.value=h.totalsRowLabel;else{const p=this.getFormula(h);l.value=p?{formula:h.totalsRowFormula,result:h.totalsRowResult}:null}o(l,h.style)})}}load(o){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const i=o.getRow(e+u++);n.columns.forEach((s,h)=>{i.getCell(r+h).value=s.name})}if(n.rows.forEach(i=>{const s=o.getRow(e+u++);i.forEach((h,f)=>{s.getCell(r+f).value=h})}),n.totalsRow){const i=o.getRow(e+u++);n.columns.forEach((s,h)=>{const f=i.getCell(r+h);h===0?f.value=s.totalsRowLabel:this.getFormula(s)&&(f.value={formula:s.totalsRowFormula,result:s.totalsRowResult})})}}get model(){return this.table}set model(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=c.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(o.col+r).value=null}}this.store()}addRow(o,n){this.cacheState(),n===void 0?this.table.rows.push(o):this.table.rows.splice(n,0,o)}removeRows(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,n)}getColumn(o){const n=this.table.columns[o];return new a(this,n,o)}addColumn(o,n,e){this.cacheState(),e===void 0?(this.table.columns.push(o),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,o),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,n),this.table.rows.forEach(e=>{e.splice(o,n)})}_assign(o,n,e){this.cacheState(),o[n]=e}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(t,b,g){const c=t("./worksheet"),a=t("./defined-names"),o=t("../xlsx/xlsx"),n=t("../csv/csv");b.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const u=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const i=this._worksheets.reduce((f,l)=>(l&&l.orderNo)>f?l.orderNo:f,0),s=Object.assign({},r,{id:u,name:e,orderNo:i+1,workbook:this}),h=new c(s);return this._worksheets[u]=h,h}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:u,name:i,state:s}=r,h=e.sheets&&e.sheets.findIndex(f=>f.id===u);(this._worksheets[u]=new c({id:u,name:i,orderNo:h,state:s,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,b,g){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),i=t("./table"),s=t("./data-validations"),h=t("../utils/encryptor"),{copyStyle:f}=t("../utils/copy-style");b.exports=class{constructor(l){l=l||{},this._workbook=l.workbook,this.id=l.id,this.orderNo=l.orderNo,this.name=l.name,this.state=l.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},l.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!l.pageSetup||!l.pageSetup.fitToWidth&&!l.pageSetup.fitToHeight||l.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},l.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},l.headerFooter),this.dataValidations=new s,this.views=l.views||[],this.autoFilter=l.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(l){if(l===void 0&&(l="sheet"+this.id),this._name!==l){if(typeof l!="string")throw new Error("The name has to be a string.");if(l==="")throw new Error("The name can't be empty.");if(l==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(l))throw new Error(`Worksheet name ${l} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(l))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+l);if(l&&l.length>31&&(console.warn(`Worksheet name ${l} exceeds 31 chars. This will be truncated`),l=l.substring(0,31)),this._workbook._worksheets.find(p=>p&&p.name.toLowerCase()===l.toLowerCase()))throw new Error("Worksheet name already exists: "+l);this._name=l}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const l=new o;return this._rows.forEach(p=>{if(p){const m=p.dimensions;m&&l.expand(p.number,m.min,p.number,m.max)}}),l}get columns(){return this._columns}set columns(l){this._headerRowCount=l.reduce((_,k)=>{const M=(k.header?1:k.headers&&k.headers.length)||0;return Math.max(_,M)},0);let p=1;const m=this._columns=[];l.forEach(_=>{const k=new e(this,p++,!1);m.push(k),k.defn=_})}getColumnKey(l){return this._keys[l]}setColumnKey(l,p){this._keys[l]=p}deleteColumnKey(l){delete this._keys[l]}eachColumnKey(l){c.each(this._keys,l)}getColumn(l){if(typeof l=="string"){const p=this._keys[l];if(p)return p;l=a.l2n(l)}if(this._columns||(this._columns=[]),l>this._columns.length){let p=this._columns.length+1;for(;p<=l;)this._columns.push(new e(this,p++))}return this._columns[l-1]}spliceColumns(l,p){const m=this._rows.length;for(var _=arguments.length,k=new Array(_>2?_-2:0),M=2;M<_;M++)k[M-2]=arguments[M];if(k.length>0)for(let T=0;T<m;T++){const O=[l,p];k.forEach(B=>{O.push(B[T]||null)});const L=this.getRow(T+1);L.splice.apply(L,O)}else this._rows.forEach(T=>{T&&T.splice(l,p)});const j=k.length-p,z=l+p,A=this._columns.length;if(j<0)for(let T=l+k.length;T<=A;T++)this.getColumn(T).defn=this.getColumn(T-j).defn;else if(j>0)for(let T=A;T>=z;T--)this.getColumn(T+j).defn=this.getColumn(T).defn;for(let T=l;T<l+k.length;T++)this.getColumn(T).defn=null;this.workbook.definedNames.spliceColumns(this.name,l,p,k.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let l=0;return this.eachRow(p=>{l=Math.max(l,p.cellCount)}),l}get actualColumnCount(){const l=[];let p=0;return this.eachRow(m=>{m.eachCell(_=>{let{col:k}=_;l[k]||(l[k]=!0,p++)})}),p}_commitRow(){}get _lastRowNumber(){const l=this._rows;let p=l.length;for(;p>0&&l[p-1]===void 0;)p--;return p}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(l){return this._rows[l-1]}findRows(l,p){return this._rows.slice(l-1,l-1+p)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let l=0;return this.eachRow(()=>{l++}),l}getRow(l){let p=this._rows[l-1];return p||(p=this._rows[l-1]=new n(this,l)),p}getRows(l,p){if(p<1)return;const m=[];for(let _=l;_<l+p;_++)m.push(this.getRow(_));return m}addRow(l){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const m=this._nextRow,_=this.getRow(m);return _.values=l,this._setStyleOption(m,p[0]==="i"?p:"n"),_}addRows(l){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const m=[];return l.forEach(_=>{m.push(this.addRow(_,p))}),m}insertRow(l,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(l,0,p),this._setStyleOption(l,m),this.getRow(l)}insertRows(l,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(l,0,...p),m!=="n")for(let _=0;_<p.length;_++)m[0]==="o"&&this.findRow(p.length+l+_)!==void 0?this._copyStyle(p.length+l+_,l+_,m[1]==="+"):m[0]==="i"&&this.findRow(l-1)!==void 0&&this._copyStyle(l-1,l+_,m[1]==="+");return this.getRows(l,p.length)}_setStyleOption(l){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";p[0]==="o"&&this.findRow(l+1)!==void 0?this._copyStyle(l+1,l,p[1]==="+"):p[0]==="i"&&this.findRow(l-1)!==void 0&&this._copyStyle(l-1,l,p[1]==="+")}_copyStyle(l,p){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const _=this.getRow(l),k=this.getRow(p);k.style=f(_.style),_.eachCell({includeEmpty:m},(M,j)=>{k.getCell(j).style=f(M.style)}),k.height=_.height}duplicateRow(l,p){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const _=this._rows[l-1],k=new Array(p).fill(_.values);this.spliceRows(l+1,m?0:p,...k);for(let M=0;M<p;M++){const j=this._rows[l+M];j.style=_.style,j.height=_.height,_.eachCell({includeEmpty:!0},(z,A)=>{j.getCell(A).style=z.style})}}spliceRows(l,p){const m=l+p;for(var _=arguments.length,k=new Array(_>2?_-2:0),M=2;M<_;M++)k[M-2]=arguments[M];const j=k.length,z=j-p,A=this._rows.length;let T,O;if(z<0)for(l===A&&(this._rows[A-1]=void 0),T=m;T<=A;T++)if(O=this._rows[T-1],O){const L=this.getRow(T+z);L.values=O.values,L.style=O.style,L.height=O.height,O.eachCell({includeEmpty:!0},(B,S)=>{L.getCell(S).style=B.style}),this._rows[T-1]=void 0}else this._rows[T+z-1]=void 0;else if(z>0)for(T=A;T>=m;T--)if(O=this._rows[T-1],O){const L=this.getRow(T+z);L.values=O.values,L.style=O.style,L.height=O.height,O.eachCell({includeEmpty:!0},(B,S)=>{if(L.getCell(S).style=B.style,B._value.constructor.name==="MergeValue"){const D=this.getRow(B._row._number+j).getCell(S),w=B._value._master,d=this.getRow(w._row._number+j).getCell(w._column._number);D.merge(d)}})}else this._rows[T+z-1]=void 0;for(T=0;T<j;T++){const L=this.getRow(l+T);L.style={},L.values=k[T]}this.workbook.definedNames.spliceRows(this.name,l,p,j)}eachRow(l,p){if(p||(p=l,l=void 0),l&&l.includeEmpty){const m=this._rows.length;for(let _=1;_<=m;_++)p(this.getRow(_),_)}else this._rows.forEach(m=>{m&&m.hasValues&&p(m,m.number)})}getSheetValues(){const l=[];return this._rows.forEach(p=>{p&&(l[p.number]=p.values)}),l}findCell(l,p){const m=a.getAddress(l,p),_=this._rows[m.row-1];return _?_.findCell(m.col):void 0}getCell(l,p){const m=a.getAddress(l,p);return this.getRow(m.row).getCellEx(m)}mergeCells(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];const _=new o(p);this._mergeCellsInternal(_)}mergeCellsWithoutStyle(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];const _=new o(p);this._mergeCellsInternal(_,!0)}_mergeCellsInternal(l,p){c.each(this._merges,_=>{if(_.intersects(l))throw new Error("Cannot merge already merged cells")});const m=this.getCell(l.top,l.left);for(let _=l.top;_<=l.bottom;_++)for(let k=l.left;k<=l.right;k++)(_>l.top||k>l.left)&&this.getCell(_,k).merge(m,p);this._merges[m.address]=l}_unMergeMaster(l){const p=this._merges[l.address];if(p){for(let m=p.top;m<=p.bottom;m++)for(let _=p.left;_<=p.right;_++)this.getCell(m,_).unmerge();delete this._merges[l.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];const _=new o(p);for(let k=_.top;k<=_.bottom;k++)for(let M=_.left;M<=_.right;M++){const j=this.findCell(k,M);j&&(j.type===r.ValueType.Merge?this._unMergeMaster(j.master):this._merges[j.address]&&this._unMergeMaster(j))}}fillFormula(l,p,m){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const k=a.decode(l),{top:M,left:j,bottom:z,right:A}=k,T=A-j+1,O=a.encodeAddress(M,j),L=_==="shared";let B;B=typeof m=="function"?m:Array.isArray(m)?Array.isArray(m[0])?(D,w)=>m[D-M][w-j]:(D,w)=>m[(D-M)*T+(w-j)]:()=>{};let S=!0;for(let D=M;D<=z;D++)for(let w=j;w<=A;w++)S?(this.getCell(D,w).value={shareType:_,formula:p,ref:l,result:B(D,w)},S=!1):this.getCell(D,w).value=L?{sharedFormula:O,result:B(D,w)}:B(D,w)}addImage(l,p){const m={type:"image",imageId:l,range:p};this._media.push(new u(this,m))}getImages(){return this._media.filter(l=>l.type==="image")}addBackgroundImage(l){const p={type:"background",imageId:l};this._media.push(new u(this,p))}getBackgroundImageId(){const l=this._media.find(p=>p.type==="background");return l&&l.imageId}protect(l,p){return new Promise(m=>{this.sheetProtection={sheet:!0},p&&"spinCount"in p&&(p.spinCount=Number.isFinite(p.spinCount)?Math.round(Math.max(0,p.spinCount)):1e5),l&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=h.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=p&&"spinCount"in p?p.spinCount:1e5,this.sheetProtection.hashValue=h.convertPasswordToHash(l,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),p&&(this.sheetProtection=Object.assign(this.sheetProtection,p),!l&&"spinCount"in p&&delete this.sheetProtection.spinCount),m()})}unprotect(){this.sheetProtection=null}addTable(l){const p=new i(this,l);return this.tables[l.name]=p,p}getTable(l){return this.tables[l]}removeTable(l){delete this.tables[l]}getTables(){return Object.values(this.tables)}addConditionalFormatting(l){this.conditionalFormattings.push(l)}removeConditionalFormatting(l){typeof l=="number"?this.conditionalFormattings.splice(l,1):this.conditionalFormattings=l instanceof Function?this.conditionalFormattings.filter(l):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(l){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=l}get model(){const l={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(_=>_.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(_=>_.model),conditionalFormattings:this.conditionalFormattings};l.cols=e.toModel(this.columns);const p=l.rows=[],m=l.dimensions=new o;return this._rows.forEach(_=>{const k=_&&_.model;k&&(m.expand(k.number,k.min,k.number,k.max),p.push(k))}),l.merges=[],c.each(this._merges,_=>{l.merges.push(_.range)}),l}_parseRows(l){this._rows=[],l.rows.forEach(p=>{const m=new n(this,p.number);this._rows[m.number-1]=m,m.model=p})}_parseMergeCells(l){c.each(l.mergeCells,p=>{this.mergeCellsWithoutStyle(p)})}set model(l){this.name=l.name,this._columns=e.fromModel(this,l.cols),this._parseRows(l),this._parseMergeCells(l),this.dataValidations=new s(l.dataValidations),this.properties=l.properties,this.pageSetup=l.pageSetup,this.headerFooter=l.headerFooter,this.views=l.views,this.autoFilter=l.autoFilter,this._media=l.media.map(p=>new u(this,p)),this.sheetProtection=l.sheetProtection,this.tables=l.tables.reduce((p,m)=>{const _=new i;return _.model=m,p[m.name]=_,p},{}),this.conditionalFormattings=l.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,b,g){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const c={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(o=>{c[o]=a[o]}),b.exports=c},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,b,g){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");g.bufferToString=function(a){return typeof a=="string"?a:c?c.decode(a):a.toString()}},{}],17:[function(t,b,g){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");g.stringToBuffer=function(o){return typeof o!="string"?o:c?a.from(c.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(t,b,g){const c=t("./under-dash"),a=t("./col-cache");b.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,n,e){const r=this.sheets[o],u=r&&r[n];return u&&u[e]}addCellEx(o){if(o.top)for(let n=o.top;n<=o.bottom;n++)for(let e=o.left;e<=o.right;e++)this.getCellAt(o.sheetName,n,e);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,n){const e=this.findSheet(o,n),r=this.findSheetRow(e,o,n);return this.findRowCell(r,o,n)}getCellAt(o,n,e){const r=this.sheets[o]||(this.sheets[o]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:o,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(o){const n=this.findSheet(o);if(!n)return;const e=this.findSheetRow(n,o);e&&delete e[o.col]}forEachInSheet(o,n){const e=this.sheets[o];e&&e.forEach((r,u)=>{r&&r.forEach((i,s)=>{i&&n(i,u,s)})})}forEach(o){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,o)})}map(o){const n=[];return this.forEach(e=>{n.push(o(e))}),n}findSheet(o,n){const e=o.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(o,n,e){const{row:r}=n;return o&&o[r]?o[r]:e?o[r]=[]:void 0}findRowCell(o,n,e){const{col:r}=n;return o&&o[r]?o[r]:e?o[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(o,n,e,r){const u=this.sheets[o];if(u){const i=[];for(let s=0;s<r;s++)i.push([]);u.splice(n,e,...i)}}spliceColumns(o,n,e,r){const u=this.sheets[o];if(u){const i=[];for(let s=0;s<r;s++)i.push(null);c.each(u,s=>{s.splice(n,e,...i)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,b,g){const c=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:o=>o<=26?1:o<=676?2:3,_fill(o){let n,e,r,u,i,s=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;s<=26;)n=this._dictionary[s-1],this._n2l[s]=n,this._l2n[n]=s,s++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(s=27;s<=702;)e=s-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[s]=n,this._l2n[n]=s,s++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(s=703;s<=16384;)e=s-703,r=e%26,u=Math.floor(e/26)%26,i=Math.floor(e/676),n=this._dictionary[i]+this._dictionary[u]+this._dictionary[r],this._n2l[s]=n,this._l2n[n]=s,s++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!c.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const n=o.length<5&&this._hash[o];if(n)return n;let e=!1,r="",u=0,i=!1,s="",h=0;for(let l,p=0;p<o.length;p++)if(l=o.charCodeAt(p),!i&&l>=65&&l<=90)e=!0,r+=o[p],u=26*u+l-64;else if(l>=48&&l<=57)i=!0,s+=o[p],h=10*h+l-48;else if(i&&e&&l!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;i||(h=void 0);const f={address:o=r+s,col:u,row:h,$col$row:`$${r}$${s}`};return u<=100&&h<=100&&(this._hash[o]=f,this._hash[f.$col$row]=f),f},getAddress(o,n){if(n){const e=this.n2l(n)+o;return this.decodeAddress(e)}return this.decodeAddress(o)},decode(o){const n=o.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),u={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(o)},decodeEx(o){const n=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let s=this.decodeAddress(u[0]),h=this.decodeAddress(u[1]);const f=Math.min(s.row,h.row),l=Math.min(s.col,h.col),p=Math.max(s.row,h.row),m=Math.max(s.col,h.col);return s=this.n2l(l)+f,h=this.n2l(m)+p,{top:f,left:l,bottom:p,right:m,sheetName:e,tl:{address:s,col:l,row:f,$col$row:`$${this.n2l(l)}$${f}`,sheetName:e},br:{address:h,col:m,row:p,$col$row:`$${this.n2l(m)}$${p}`,sheetName:e},dimensions:`${s}:${h}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const i=this.decodeAddress(r);return e?{sheetName:e,...i}:i},encodeAddress:(o,n)=>a.n2l(n)+o,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(o,n){const[e,r,,u,i]=o,[s,h]=n;return s>=e&&s<=u&&h>=r&&h<=i}};b.exports=a},{}],20:[function(t,b,g){const c=(o,n)=>({...o,...n.reduce((e,r)=>(o[r]&&(e[r]={...o[r]}),e),{})}),a=function(o,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[e]&&(n[e]=c(o[e],r))};g.copyStyle=o=>{if(!o)return o;if(n=o,Object.keys(n).length===0)return{};var n;const e={...o};return a(o,e,"font",["color"]),a(o,e,"alignment"),a(o,e,"protection"),o.border&&(a(o,e,"border"),a(o.border,e.border,"top",["color"]),a(o.border,e.border,"left",["color"]),a(o.border,e.border,"bottom",["color"]),a(o.border,e.border,"right",["color"]),a(o.border,e.border,"diagonal",["color"])),o.fill&&(a(o,e,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(e.fill.stops=o.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,b,g){(function(c){(function(){const a=t("crypto"),o={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return e.update(c.concat(u)),e.digest()},convertPasswordToHash(n,e,r,u){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const i=c.from(n,"utf16le");let s=this.hash(e,c.from(r,"base64"),i);for(let h=0;h<u;h++){const f=c.alloc(4);f.writeUInt32LE(h,0),s=this.hash(e,s,f)}return s.toString("base64")},randomBytes:n=>a.randomBytes(n)};b.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,b,g){const{SaxesParser:c}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:o}=t("./browser-buffer-decode");b.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new c;let r;e.on("error",i=>{r=i});let u=[];e.on("opentag",i=>u.push({eventType:"opentag",value:i})),e.on("text",i=>u.push({eventType:"text",value:i})),e.on("closetag",i=>u.push({eventType:"closetag",value:i}));for await(const i of n){if(e.write(o(i)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,b,g){const c=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;b.exports={slideFormula:function(n,e,r){const u=c.decode(e),i=c.decode(r);return n.replace(a,(s,h,f,l,p)=>{if(p)return s;const m=o.exec(l);if(m){const _=m[1],k=m[2].toUpperCase(),M=m[3],j=m[4];if(k.length>3||k.length===3&&k>"XFD")return s;let z=c.l2n(k),A=parseInt(j,10);return _||(z+=i.col-u.col),M||(A+=i.row-u.row),(h||"")+(_||"")+c.n2l(z)+(M||"")+A}return s})}}},{"./col-cache":19}],24:[function(t,b,g){(function(c,a){(function(){const o=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(l,p){this._data=l,this._encoding=p}get length(){return this.toBuffer().length}copy(l,p,m,_){return this.toBuffer().copy(l,p,m,_)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(l){this._data=l}get length(){return this._data.length}copy(l,p,m,_){return this._data._buf.copy(l,p,m,_)}toBuffer(){return this._data.toBuffer()}}class i{constructor(l){this._data=l}get length(){return this._data.length}copy(l,p,m,_){this._data.copy(l,p,m,_)}toBuffer(){return this._data}}class s{constructor(l){this.size=l,this.buffer=a.alloc(l),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const l=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(l,0,this.iRead,this.iWrite),l}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(l){let p;return l===0?null:l===void 0||l>=this.length?(p=this.toBuffer(),this.iRead=this.iWrite,p):(p=a.alloc(l),this.buffer.copy(p,0,this.iRead,l),this.iRead+=l,p)}write(l,p,m){const _=Math.min(m,this.size-this.iWrite);return l.copy(this.buffer,this.iWrite,p,p+_),this.iWrite+=_,_}}const h=function(f){f=f||{},this.bufSize=f.bufSize||1048576,this.buffers=[],this.batch=f.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(h,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(f=>f.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const l=this.buffers[this.buffers.length-1];if(!l.full)return l}const f=new s(this.bufSize);return this.buffers.push(f),f},async _pipe(f){await Promise.all(this.pipes.map((function(l){return new Promise(p=>{l.write(f.toBuffer(),()=>{p()})})})))},_writeToBuffers(f){let l=0;const p=f.length;for(;l<p;)l+=this._getWritableBuffer().write(f,l,p-l)},async write(f,l,p){let m;if(l instanceof Function&&(p=l,l="utf8"),p=p||n.nop,f instanceof e)m=new u(f);else if(f instanceof a)m=new i(f);else{if(!(typeof f=="string"||f instanceof String||f instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");m=new r(f,l)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(m);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(m),c.nextTick(p)):(await this._pipe(m),p());else this.paused||this.emit("data",m.toBuffer()),this._writeToBuffers(m),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(f,l,p){const m=_=>{_?p(_):(this._flush(),this.pipes.forEach(k=>{k.end()}),this.emit("finish"))};f?this.write(f,l,m):m()},read(f){let l;if(f){for(l=[];f&&this.buffers.length&&!this.buffers[0].eod;){const p=this.buffers[0],m=p.read(f);f-=m.length,l.push(m),p.eod&&p.full&&this.buffers.shift()}return a.concat(l)}return l=this.buffers.map(p=>p.toBuffer()).filter(Boolean),this.buffers=[],a.concat(l)},setEncoding(f){this.encoding=f},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(f){this.pipes.push(f),!this.paused&&this.buffers.length&&this.end()},unpipe(f){this.pipes=this.pipes.filter(l=>l!==f)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),b.exports=h}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,b,g){(function(c){(function(){b.exports=class{constructor(a){this._buf=c.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=c.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let o=2*this._buf.length;for(;o<a;)o*=2;const n=c.alloc(o);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,b,g){const{toString:c}=Object.prototype,a=/["&<>]/,o={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,u)=>(r[u[e]]=u,r),{}),isEqual:function(n,e){const r=typeof n,u=typeof e,i=Array.isArray(n),s=Array.isArray(e);let h;if(r!==u)return!1;switch(typeof n){case"object":if(i||s)return!(!i||!s)&&n.length===e.length&&n.every((f,l)=>{const p=e[l];return o.isEqual(f,p)});if(n===null||e===null)return n===e;if(h=Object.keys(n),Object.keys(e).length!==h.length)return!1;for(const f of h)if(!e.hasOwnProperty(f))return!1;return o.every(n,(f,l)=>{const p=e[l];return o.isEqual(f,p)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",i=0,s=e.index;for(;s<n.length;s++){switch(n.charAt(s)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}i!==s&&(r+=n.substring(i,s)),i=s+1,r+=u}return i!==s?r+n.substring(i,s):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>c.call(n)==="[object Undefined]",isObject:n=>c.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,i;function s(h,f){r=n[f],i=Array.isArray(h),o.isObject(h)||i?(i?(i=!1,u=r&&Array.isArray(r)?r:[]):u=r&&o.isObject(r)?r:{},n[f]=o.deepMerge(u,h)):o.isUndefined(h)||(n[f]=h)}for(let h=0;h<e;h++)o.each(arguments[h],s);return n}};b.exports=o},{}],27:[function(t,b,g){(function(c,a){(function(){const o=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,i,s){r.super_=u,s||(s=i,i=null),i&&Object.keys(i).forEach(f=>{Object.defineProperty(r,f,Object.getOwnPropertyDescriptor(i,f))});const h={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};s&&Object.keys(s).forEach(f=>{h[f]=Object.getOwnPropertyDescriptor(s,f)}),r.prototype=Object.create(u.prototype,h)},dateToExcel:(r,u)=>25569+r.getTime()/864e5-(u?1462:0),excelToDate(r,u){const i=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(i)},parsePath(r){const u=r.lastIndexOf("/");return{path:r.substring(0,u),name:r.substring(u+1)}},getRelsPath(r){const u=e.parsePath(r);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(r){const u=n.exec(r);if(!u)return r;let i="",s="",h=0,f=u.index;for(;f<r.length;f++){const l=r.charCodeAt(f);switch(l){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;case 127:s="";break;default:if(l<=31&&(l<=8||l>=11&&l!==13)){s="";break}continue}h!==f&&(i+=r.substring(h,f)),h=f+1,s&&(i+=s)}return h!==f?i+r.substring(h,f):i},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}}),validInt(r){const u=parseInt(r,10);return Number.isNaN(u)?0:u},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(u=>{o.access(r,o.constants.F_OK,i=>{u(!i)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};b.exports=e}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,b,g){const c=t("./under-dash"),a=t("./utils");function o(r,u,i){r.push(` ${u}="${a.xmlEncode(i.toString())}"`)}function n(r,u){if(u){const i=[];c.each(u,(s,h)=>{s!==void 0&&o(i,h,s)}),r.push(i.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const i=this._xml;i.push("<?xml"),n(i,u),i.push(`?>
|
|
10
|
+
`)}openNode(u,i){const s=this.tos,h=this._xml;s&&this.open&&h.push(">"),this._stack.push(u),h.push("<"),h.push(u),n(h,i),this.leaf=!0,this.open=!0}addAttribute(u,i){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");i!==void 0&&o(this._xml,u,i)}addAttributes(u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n(this._xml,u)}writeText(u){const i=this._xml;this.open&&(i.push(">"),this.open=!1),this.leaf=!1,i.push(a.xmlEncode(u.toString()))}writeXml(u){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(u)}closeNode(){const u=this._stack.pop(),i=this._xml;this.leaf?i.push("/>"):(i.push("</"),i.push(u),i.push(">")),this.open=!1,this.leaf=!1}leafNode(u,i,s){this.openNode(u,i),s!==void 0&&this.writeText(s),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const u=this._rollbacks.pop();this._xml.length>u.xml&&this._xml.splice(u.xml,this._xml.length-u.xml),this._stack.length>u.stack&&this._stack.splice(u.stack,this._stack.length-u.stack),this.leaf=u.leaf,this.open=u.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},b.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,b,g){(function(c){(function(){const a=t("events"),o=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends a.EventEmitter{constructor(i){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},i),this.zip=new o,this.stream=new n}append(i,s){s.hasOwnProperty("base64")&&s.base64?this.zip.file(s.name,i,{base64:!0}):(c.browser&&typeof i=="string"&&(i=e(i)),this.zip.file(s.name,i))}async finalize(){const i=await this.zip.generateAsync(this.options);this.stream.end(i),this.emit("finish")}read(i){return this.stream.read(i)}setEncoding(i){return this.stream.setEncoding(i)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(i,s){return this.stream.pipe(i,s)}unpipe(i){return this.stream.unpipe(i)}unshift(i){return this.stream.unshift(i)}wrap(i){return this.stream.wrap(i)}}b.exports={ZipWriter:r}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,b,g){b.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,b,g){b.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,b,g){const c=t("../../utils/parse-sax"),a=t("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,r){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof o?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const r of e)for(const{eventType:u,value:i}of r)if(u==="opentag")this.parseOpen(i);else if(u==="text")this.parseText(i);else if(u==="closetag"&&!this.parseClose(i.name))return this.model;return this.model}async parseStream(e){return this.parse(c(e))}get xml(){return this.toXml(this.model)}toXml(e){const r=new a;return this.render(r,e),r.xml}static toAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e.toString()}static toStringAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toStringValue(e,r){return e===void 0?r:e}static toBoolAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e?"1":"0"}static toBoolValue(e,r){return e===void 0?r:e==="1"}static toIntAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toIntValue(e,r){return e===void 0?r:parseInt(e,10)}static toFloatAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}b.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,b,g){const c=t("../base-xform"),a=t("../../../utils/col-cache");function o(e){try{return a.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let u=!1,i="";return e.split(",").forEach(s=>{if(!s)return;const h=(s.match(/'/g)||[]).length;if(!h)return void(u?i+=s+",":o(s)&&r.push(s));const f=h%2==0;!u&&f&&o(s)?r.push(s):u&&!f?(u=!1,o(i+s)&&r.push(i+s),i=""):(u=!0,i+=s+",")}),r}b.exports=class extends c{render(e,r){e.openNode("definedName",{name:r.name,localSheetId:r.localSheetId}),e.writeText(r.ranges.join(",")),e.closeNode()}parseOpen(e){return e.name==="definedName"?(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0):!1}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:n(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,b,g){const c=t("../../../utils/utils"),a=t("../base-xform");b.exports=class extends a{render(o,n){o.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(o){return o.name==="sheet"&&(this.model={name:c.xmlDecode(o.attributes.name),id:parseInt(o.attributes.sheetId,10),state:o.attributes.state,rId:o.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:o.fullCalcOnLoad?1:void 0})}parseOpen(a){return a.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("workbookPr",{date1904:o.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){const n={xWindow:o.x||0,yWindow:o.y||0,windowWidth:o.width||12e3,windowHeight:o.height||24e3,firstSheet:o.firstSheet,activeTab:o.activeTab};o.visibility&&o.visibility!=="visible"&&(n.visibility=o.visibility),a.leafNode("workbookView",n)}parseOpen(a){if(a.name==="workbookView"){const o=this.model={},n=function(r,u,i){const s=u!==void 0?o[r]=u:i;s!==void 0&&(o[r]=s)},e=function(r,u,i){const s=u!==void 0?o[r]=parseInt(u,10):i;s!==void 0&&(o[r]=s)};return e("x",a.attributes.xWindow,0),e("y",a.attributes.yWindow,0),e("width",a.attributes.windowWidth,25e3),e("height",a.attributes.windowHeight,1e4),n("visibility",a.attributes.visibility,"visible"),e("activeTab",a.attributes.activeTab,void 0),e("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../base-xform"),e=t("../static-xform"),r=t("../list-xform"),u=t("./defined-name-xform"),i=t("./sheet-xform"),s=t("./workbook-view-xform"),h=t("./workbook-properties-xform"),f=t("./workbook-calc-properties-xform");class l extends n{constructor(){super(),this.map={fileVersion:l.STATIC_XFORMS.fileVersion,workbookPr:new h,bookViews:new r({tag:"bookViews",count:!1,childXform:new s}),sheets:new r({tag:"sheets",count:!1,childXform:new i}),definedNames:new r({tag:"definedNames",count:!1,childXform:new u}),calcPr:new f}}prepare(m){m.sheets=m.worksheets;const _=[];let k=0;m.sheets.forEach(M=>{if(M.pageSetup&&M.pageSetup.printArea&&M.pageSetup.printArea.split("&&").forEach(j=>{const z=j.split(":"),A={name:"_xlnm.Print_Area",ranges:[`'${M.name}'!$${z[0]}:$${z[1]}`],localSheetId:k};_.push(A)}),M.pageSetup&&(M.pageSetup.printTitlesRow||M.pageSetup.printTitlesColumn)){const j=[];if(M.pageSetup.printTitlesColumn){const A=M.pageSetup.printTitlesColumn.split(":");j.push(`'${M.name}'!$${A[0]}:$${A[1]}`)}if(M.pageSetup.printTitlesRow){const A=M.pageSetup.printTitlesRow.split(":");j.push(`'${M.name}'!$${A[0]}:$${A[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:j,localSheetId:k};_.push(z)}k++}),_.length&&(m.definedNames=m.definedNames.concat(_)),(m.media||[]).forEach((M,j)=>{M.name=M.type+(j+1)})}render(m,_){m.openXml(o.StdDocAttributes),m.openNode("workbook",l.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(m),this.map.workbookPr.render(m,_.properties),this.map.bookViews.render(m,_.views),this.map.sheets.render(m,_.sheets),this.map.definedNames.render(m,_.definedNames),this.map.calcPr.render(m,_.calcProperties),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name==="workbook"||(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m==="workbook"?(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1):!0}reconcile(m){const _=(m.workbookRels||[]).reduce((A,T)=>(A[T.Id]=T,A),{}),k=[];let M,j=0;(m.sheets||[]).forEach(A=>{const T=_[A.rId];T&&(M=m.worksheetHash["xl/"+T.Target.replace(/^(\s|\/xl\/)+/,"")],M&&(M.name=A.name,M.id=A.id,M.state=A.state,k[j++]=M))});const z=[];c.each(m.definedNames,A=>{if(A.name==="_xlnm.Print_Area"){if(M=k[A.localSheetId],M){M.pageSetup||(M.pageSetup={});const T=a.decodeEx(A.ranges[0]);M.pageSetup.printArea=M.pageSetup.printArea?`${M.pageSetup.printArea}&&${T.dimensions}`:T.dimensions}}else if(A.name==="_xlnm.Print_Titles"){if(M=k[A.localSheetId],M){M.pageSetup||(M.pageSetup={});const T=A.ranges.join(","),O=/\$/g,L=/\$\d+:\$\d+/,B=T.match(L);if(B&&B.length){const w=B[0];M.pageSetup.printTitlesRow=w.replace(O,"")}const S=/\$[A-Z]+:\$[A-Z]+/,D=T.match(S);if(D&&D.length){const w=D[0];M.pageSetup.printTitlesColumn=w.replace(O,"")}}}else z.push(A)}),m.definedNames=z,m.media.forEach((A,T)=>{A.index=T})}}l.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},l.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},b.exports=l},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,b,g){const c=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),o=t("../base-xform"),n=b.exports=function(e){this.model=e};a.inherits(n,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new c),this._richTextXform},render(e,r){r=r||this.model,e.openNode("comment",{ref:r.ref,authorId:0}),e.openNode("text"),r&&r.note&&r.note.texts&&r.note.texts.forEach(u=>{this.richTextXform.render(e,u)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),o=t("../base-xform"),n=t("./comment-xform"),e=b.exports=function(){this.map={comment:new n}};a.inherits(e,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(r,u){u=u||this.model,r.openXml(c.StdDocAttributes),r.openNode("comments",e.COMMENTS_ATTRIBUTES),r.openNode("authors"),r.leafNode("author",null,"Author"),r.closeNode(),r.openNode("commentList"),u.comments.forEach(i=>{this.map.comment.render(r,i)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o,n){(o===n[2]||this.tag==="x:SizeWithCells"&&o===n[1])&&a.leafNode(this.tag)}parseOpen(a){return a.name===this.tag?(this.model={},this.model[this.tag]=!0,!0):!1}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(a){return a.name===this.tag?(this.text="",!0):!1}parseText(a){this.text=a}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"x:Anchor"}getAnchorRect(a){const o=Math.floor(a.left),n=Math.floor(68*(a.left-o)),e=Math.floor(a.top),r=Math.floor(18*(a.top-e)),u=Math.floor(a.right),i=Math.floor(68*(a.right-u)),s=Math.floor(a.bottom);return[o,n,e,r,u,i,s,Math.floor(18*(a.bottom-s))]}getDefaultRect(a){const o=a.col,n=Math.max(a.row-2,0);return[o,6,n,14,o+2,2,n+4,16]}render(a,o){const n=o.anchor?this.getAnchorRect(o.anchor):this.getDefaultRect(o.refAddress);a.leafNode("x:Anchor",null,n.join(", "))}parseOpen(a){return a.name===this.tag?(this.text="",!0):!1}parseText(a){this.text=a}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,b,g){const c=t("../base-xform"),a=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];b.exports=class extends c{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new n({tag:"x:SizeWithCells"}),"x:MoveWithCells":new n({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(r,u){const{protection:i,editAs:s}=u.note;r.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(r,s,e),this.map["x:SizeWithCells"].render(r,s,e),this.map["x:Anchor"].render(r,u),this.map["x:Locked"].render(r,i.locked),r.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(r,i.lockText),r.leafNode("x:Row",null,u.refAddress.row-1),r.leafNode("x:Column",null,u.refAddress.col-1),r.closeNode()}parseOpen(r){return r.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)),!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):r===this.tag?(this.normalizeModel(),!1):!0}normalizeModel(){const r=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),u=Object.keys(r).length;this.model.editAs=e[u],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./vml-shape-xform");class n extends a{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(r,u){r.openXml(c.StdDocAttributes),r.openNode(this.tag,n.DRAWING_ATTRIBUTES),r.openNode("o:shapelayout",{"v:ext":"edit"}),r.leafNode("o:idmap",{"v:ext":"edit",data:1}),r.closeNode(),r.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),r.leafNode("v:stroke",{joinstyle:"miter"}),r.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),r.closeNode(),u.comments.forEach((i,s)=>{this.map["v:shape"].render(r,i,s)}),r.closeNode()}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):(r.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):r!==this.tag}reconcile(r,u){r.anchors.forEach(i=>{i.br?this.map["xdr:twoCellAnchor"].reconcile(i,u):this.map["xdr:oneCellAnchor"].reconcile(i,u)})}}n.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},b.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,b,g){const c=t("../base-xform"),a=t("./vml-textbox-xform"),o=t("./vml-client-data-xform");class n extends c{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new o}}get tag(){return"v:shape"}render(r,u,i){r.openNode("v:shape",n.V_SHAPE_ATTRIBUTES(u,i)),r.leafNode("v:fill",{color2:"infoBackground [80]"}),r.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),r.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(r,u),this.map["x:ClientData"].render(r,u),r.closeNode()}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):(r.name===this.tag?(this.reset(),this.model={margins:{insetmode:r.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):r===this.tag?(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1):!0}}n.V_SHAPE_ATTRIBUTES=(e,r)=>({id:"_x0000_s"+(1025+r),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),b.exports=n},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"v:textbox"}conversionUnit(a,o,n){return`${parseFloat(a)*o.toFixed(2)}${n}`}reverseConversionUnit(a){return(a||"").split(",").map(o=>Number(parseFloat(this.conversionUnit(parseFloat(o),.1,"")).toFixed(2)))}render(a,o){const n={style:"mso-direction-alt:auto"};if(o&&o.note){let{inset:e}=o.note&&o.note.margins;Array.isArray(e)&&(e=e.map(r=>this.conversionUnit(r,10,"mm")).join(",")),e&&(n.inset=e)}a.openNode("v:textbox",n),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={inset:this.reverseConversionUnit(a.attributes.inset)}),!0}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],48:[function(t,b,g){const c=t("./base-xform");b.exports=class extends c{createNewModel(a){return{}}parseOpen(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}onParserClose(a,o){this.model[a]=o.model}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}},{"./base-xform":32}],49:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,o.length),a.closeNode(),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="HeadingPairs"}parseText(){}parseClose(a){return a!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:o.length,baseType:"lpstr"}),o.forEach(n=>{a.leafNode("vt:lpstr",void 0,n.name)}),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="TitlesOfParts"}parseText(){}parseClose(a){return a!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/string-xform"),n=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class r extends a{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(i,s){i.openXml(c.StdDocAttributes),i.openNode("Properties",r.PROPERTY_ATTRIBUTES),i.leafNode("Application",void 0,"Microsoft Excel"),i.leafNode("DocSecurity",void 0,"0"),i.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(i,s.worksheets),this.map.TitleOfParts.render(i,s.worksheets),this.map.Company.render(i,s.company||""),this.map.Manager.render(i,s.manager),i.leafNode("LinksUpToDate",void 0,"false"),i.leafNode("SharedDoc",void 0,"false"),i.leafNode("HyperlinksChanged",void 0,"false"),i.leafNode("AppVersion",void 0,"16.0300"),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):i.name==="Properties"?!0:(this.parser=this.map[i.name],!!this.parser&&(this.parser.parseOpen(i),!0))}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser=void 0),!0):i==="Properties"?(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1):!0}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},b.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform");class o extends a{render(e,r){e.openXml(c.StdDocAttributes),e.openNode("Types",o.PROPERTY_ATTRIBUTES);const u={};(r.media||[]).forEach(i=>{if(i.type==="image"){const s=i.extension;u[s]||(u[s]=!0,e.leafNode("Default",{Extension:s,ContentType:"image/"+s}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),r.worksheets.forEach(i=>{const s=`/xl/worksheets/sheet${i.id}.xml`;e.leafNode("Override",{PartName:s,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),r.sharedStrings&&r.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),r.tables&&r.tables.forEach(i=>{e.leafNode("Override",{PartName:"/xl/tables/"+i.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(i=>{e.leafNode("Override",{PartName:`/xl/drawings/${i.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),r.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),r.commentRefs.forEach(i=>{let{commentName:s}=i;e.leafNode("Override",{PartName:`/xl/${s}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},b.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/date-xform"),n=t("../simple/string-xform"),e=t("../simple/integer-xform");class r extends a{constructor(){super(),this.map={"dc:creator":new n({tag:"dc:creator"}),"dc:title":new n({tag:"dc:title"}),"dc:subject":new n({tag:"dc:subject"}),"dc:description":new n({tag:"dc:description"}),"dc:identifier":new n({tag:"dc:identifier"}),"dc:language":new n({tag:"dc:language"}),"cp:keywords":new n({tag:"cp:keywords"}),"cp:category":new n({tag:"cp:category"}),"cp:lastModifiedBy":new n({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:r.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new n({tag:"cp:version"}),"cp:contentStatus":new n({tag:"cp:contentStatus"}),"cp:contentType":new n({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(i,s){i.openXml(c.StdDocAttributes),i.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(i,s.creator),this.map["dc:title"].render(i,s.title),this.map["dc:subject"].render(i,s.subject),this.map["dc:description"].render(i,s.description),this.map["dc:identifier"].render(i,s.identifier),this.map["dc:language"].render(i,s.language),this.map["cp:keywords"].render(i,s.keywords),this.map["cp:category"].render(i,s.category),this.map["cp:lastModifiedBy"].render(i,s.lastModifiedBy),this.map["cp:lastPrinted"].render(i,s.lastPrinted),this.map["cp:revision"].render(i,s.revision),this.map["cp:version"].render(i,s.version),this.map["cp:contentStatus"].render(i,s.contentStatus),this.map["cp:contentType"].render(i,s.contentType),this.map["dcterms:created"].render(i,s.created),this.map["dcterms:modified"].render(i,s.modified),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[i.name],this.parser)return this.parser.parseOpen(i),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(i))}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+i)}}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},b.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("Relationship",o)}parseOpen(a){return a.name==="Relationship"?(this.model=a.attributes,!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./relationship-xform");class n extends a{constructor(){super(),this.map={Relationship:new o}}render(r,u){u=u||this._values,r.openXml(c.StdDocAttributes),r.openNode("Relationships",n.RELATIONSHIPS_ATTRIBUTES),u.forEach(i=>{this.map.Relationship.render(r,i)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[r.name],this.parser)return this.parser.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(r==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: "+r)}}n.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},b.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):(a.name===this.tag?(this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}}):(this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)),!0)}parseText(a){this.parser&&this.parser.parseText(a)}reconcilePicture(a,o){if(a&&a.rId){const n=o.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=o.mediaIndex[e];return o.media[r]}}}}},{"../base-xform":32}],57:[function(t,b,g){const c=t("../base-xform"),a=t("./blip-xform");b.exports=class extends c{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(o,n){o.openNode(this.tag),this.map["a:blip"].render(o,n),o.openNode("a:stretch"),o.leafNode("a:fillRect"),o.closeNode(),o.closeNode()}parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):(o.name===this.tag?this.reset():(this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)),!0)}parseText(){}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.parser=void 0),!0):o===this.tag?(this.model=this.map["a:blip"].model,!1):!0}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:blip"}render(a,o){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":o.rId,cstate:"print"})}parseOpen(a){return a.name===this.tag&&(this.model={rId:a.attributes["r:embed"]}),!0}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],59:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"xdr:cNvPicPr"}render(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],60:[function(t,b,g){const c=t("../base-xform"),a=t("./hlink-click-xform"),o=t("./ext-lst-xform");b.exports=class extends c{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(n,e){n.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(n,e),this.map["a:extLst"].render(n,e),n.closeNode()}parseOpen(n){return this.parser?(this.parser.parseOpen(n),!0):(n.name===this.tag?this.reset():(this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)),!0)}parseText(){}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n===this.tag?(this.model=this.map["a:hlinkClick"].model,!1):!0}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,b,g){const c=t("../base-xform"),a=t("../simple/integer-xform");b.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})}}render(o,n){o.openNode(this.tag),this.map["xdr:col"].render(o,n.nativeCol),this.map["xdr:colOff"].render(o,n.nativeColOff),this.map["xdr:row"].render(o,n.nativeRow),this.map["xdr:rowOff"].render(o,n.nativeRowOff),o.closeNode()}parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):(o.name===this.tag?this.reset():(this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)),!0)}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.parser=void 0),!0):o===this.tag?(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1):!0}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,b,g){const c=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(i){i.anchors.forEach((s,h)=>{s.anchorType=(function(f){return(typeof f.range=="string"?c.decode(f.range):f.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(s),this.map[s.anchorType].prepare(s,{index:h})})}get tag(){return"xdr:wsDr"}render(i,s){i.openXml(a.StdDocAttributes),i.openNode(this.tag,r.DRAWING_ATTRIBUTES),s.anchors.forEach(h=>{this.map[h.anchorType].render(i,h)}),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):(i.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)),!0)}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):i!==this.tag}reconcile(i,s){i.anchors.forEach(h=>{h.br?this.map["xdr:twoCellAnchor"].reconcile(h,s):this.map["xdr:oneCellAnchor"].reconcile(h,s)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},b.exports=r},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:extLst"}render(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],64:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,o){a.openNode(this.tag);const n=Math.floor(9525*o.width),e=Math.floor(9525*o.height);a.addAttribute("cx",n),a.addAttribute("cy",e),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={width:parseInt(a.attributes.cx||"0",10)/9525,height:parseInt(a.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:hlinkClick"}render(a,o){o.hyperlinks&&o.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":o.hyperlinks.rId,tooltip:o.hyperlinks.tooltip})}parseOpen(a){return a.name===this.tag&&(this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}}),!0}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,b,g){const c=t("../base-xform"),a=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(n,e){n.openNode(this.tag),this.map["xdr:cNvPr"].render(n,e),this.map["xdr:cNvPicPr"].render(n,e),n.closeNode()}parseOpen(n){return this.parser?(this.parser.parseOpen(n),!0):(n.name===this.tag?this.reset():(this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)),!0)}parseText(){}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n===this.tag?(this.model=this.map["xdr:cNvPr"].model,!1):!0}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,b,g){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new n({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(r,u){this.map["xdr:pic"].prepare(r.picture,u)}render(r,u){r.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,u.range.tl),this.map["xdr:ext"].render(r,u.range.ext),this.map["xdr:pic"].render(r,u.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):r===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(r,u){r.medium=this.reconcilePicture(r.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,b,g){const c=t("../base-xform"),a=t("../static-xform"),o=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");b.exports=class extends c{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new o,"xdr:spPr":new a(e)}}get tag(){return"xdr:pic"}prepare(r,u){r.index=u.index+1}render(r,u){r.openNode(this.tag),this.map["xdr:nvPicPr"].render(r,u),this.map["xdr:blipFill"].render(r,u),this.map["xdr:spPr"].render(r,u),r.closeNode()}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):(r.name===this.tag?this.reset():(this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)),!0)}parseText(){}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):r!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,b,g){b.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,b,g){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./pic-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new n,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,r){this.map["xdr:pic"].prepare(e.picture,r)}render(e,r){e.openNode(this.tag,{editAs:r.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,r.range.tl),this.map["xdr:to"].render(e,r.range.br),this.map["xdr:pic"].render(e,r.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(e,r){e.medium=this.reconcilePicture(e.picture,r)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,b,g){const c=t("./base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.always=!!a.always,this.count=a.count,this.empty=a.empty,this.$count=a.$count||"count",this.$=a.$,this.childXform=a.childXform,this.maxItems=a.maxItems}prepare(a,o){const{childXform:n}=this;a&&a.forEach((e,r)=>{o.index=r,n.prepare(e,o)})}render(a,o){if(this.always||o&&o.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,o&&o.length||0);const{childXform:n}=this;(o||[]).forEach((e,r)=>{n.render(a,e,r)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(a,o){if(a){const{childXform:n}=this;a.forEach(e=>{n.reconcile(e,o)})}}}},{"./base-xform":32}],72:[function(t,b,g){const c=t("../../../utils/col-cache"),a=t("../base-xform");b.exports=class extends a{get tag(){return"autoFilter"}render(o,n){if(n)if(typeof n=="string")o.leafNode("autoFilter",{ref:n});else{const e=function(i){return typeof i=="string"?i:c.getAddress(i.row,i.column).address},r=e(n.from),u=e(n.to);r&&u&&o.leafNode("autoFilter",{ref:`${r}:${u}`})}}parseOpen(o){o.name==="autoFilter"&&(this.model=o.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,b,g){const c=t("../../../utils/utils"),a=t("../base-xform"),o=t("../../../doc/range"),n=t("../../../doc/enums"),e=t("../strings/rich-text-xform");function r(u){if(u==null)return n.ValueType.Null;if(u instanceof String||typeof u=="string")return n.ValueType.String;if(typeof u=="number")return n.ValueType.Number;if(typeof u=="boolean")return n.ValueType.Boolean;if(u instanceof Date)return n.ValueType.Date;if(u.text&&u.hyperlink)return n.ValueType.Hyperlink;if(u.formula)return n.ValueType.Formula;if(u.error)return n.ValueType.Error;throw new Error("I could not understand type of value")}b.exports=class extends a{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(u,i){const s=i.styles.addStyleModel(u.style||{},(function(h){return h.type===n.ValueType.Formula?r(h.result):h.type})(u));switch(s&&(u.styleId=s),u.comment&&i.comments.push({...u.comment,ref:u.address}),u.type){case n.ValueType.String:case n.ValueType.RichText:i.sharedStrings&&(u.ssId=i.sharedStrings.add(u.value));break;case n.ValueType.Date:i.date1904&&(u.date1904=!0);break;case n.ValueType.Hyperlink:i.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=i.sharedStrings.add(u.text)),i.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case n.ValueType.Merge:i.merges.add(u);break;case n.ValueType.Formula:if(i.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=i.siFormulae++),u.formula)i.formulae[u.address]=u;else if(u.sharedFormula){const h=i.formulae[u.sharedFormula];if(!h)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);h.si===void 0?(h.shareType="shared",h.si=i.siFormulae++,h.range=new o(h.address,u.address)):h.range&&h.range.expandToAddress(u.address),u.si=h.si}}}renderFormula(u,i){let s=null;switch(i.shareType){case"shared":s={t:"shared",ref:i.ref||i.range.range,si:i.si};break;case"array":s={t:"array",ref:i.ref};break;default:i.si!==void 0&&(s={t:"shared",si:i.si})}switch(r(i.result)){case n.ValueType.Null:u.leafNode("f",s,i.formula);break;case n.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",s,i.formula),u.leafNode("v",null,i.result);break;case n.ValueType.Number:u.leafNode("f",s,i.formula),u.leafNode("v",null,i.result);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",s,i.formula),u.leafNode("v",null,i.result?1:0);break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",s,i.formula),u.leafNode("v",null,i.result.error);break;case n.ValueType.Date:u.leafNode("f",s,i.formula),u.leafNode("v",null,c.dateToExcel(i.result,i.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,i){if(i.type!==n.ValueType.Null||i.styleId){switch(u.openNode("c"),u.addAttribute("r",i.address),i.styleId&&u.addAttribute("s",i.styleId),i.type){case n.ValueType.Null:break;case n.ValueType.Number:u.leafNode("v",null,i.value);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,i.value?"1":"0");break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,i.value.error);break;case n.ValueType.String:case n.ValueType.RichText:i.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,i.ssId)):i.value&&i.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),i.value.richText.forEach(s=>{this.richTextXForm.render(u,s)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,i.value));break;case n.ValueType.Date:u.leafNode("v",null,c.dateToExcel(i.value,i.date1904));break;case n.ValueType.Hyperlink:i.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,i.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,i.text));break;case n.ValueType.Formula:this.renderFormula(u,i);break;case n.ValueType.Merge:}u.closeNode()}}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"c":return this.model={address:u.attributes.r},this.t=u.attributes.t,u.attributes.s&&(this.model.styleId=parseInt(u.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=u.attributes.si,this.model.shareType=u.attributes.t,this.model.ref=u.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){if(this.parser)this.parser.parseText(u);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+u:u;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+u:u:this.model.value=this.model.value?this.model.value+u:u}}parseClose(u){switch(u){case"c":{const{model:i}=this;if(i.formula||i.shareType)i.type=n.ValueType.Formula,i.value&&(this.t==="str"?i.result=c.xmlDecode(i.value):this.t==="b"?i.result=parseInt(i.value,10)!==0:this.t==="e"?i.result={error:i.value}:i.result=parseFloat(i.value),i.value=void 0);else if(i.value!==void 0)switch(this.t){case"s":i.type=n.ValueType.String,i.value=parseInt(i.value,10);break;case"str":i.type=n.ValueType.String,i.value=c.xmlDecode(i.value);break;case"inlineStr":i.type=n.ValueType.String;break;case"b":i.type=n.ValueType.Boolean,i.value=parseInt(i.value,10)!==0;break;case"e":i.type=n.ValueType.Error,i.value={error:i.value};break;default:i.type=n.ValueType.Number,i.value=parseFloat(i.value)}else i.styleId?i.type=n.ValueType.Null:i.type=n.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(u),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(u),!0)}}reconcile(u,i){const s=u.styleId&&i.styles&&i.styles.getStyleModel(u.styleId);switch(s&&(u.style=s),u.styleId!==void 0&&(u.styleId=void 0),u.type){case n.ValueType.String:typeof u.value=="number"&&i.sharedStrings&&(u.value=i.sharedStrings.getString(u.value)),u.value.richText&&(u.type=n.ValueType.RichText);break;case n.ValueType.Number:s&&c.isDateFmt(s.numFmt)&&(u.type=n.ValueType.Date,u.value=c.excelToDate(u.value,i.date1904));break;case n.ValueType.Formula:u.result!==void 0&&s&&c.isDateFmt(s.numFmt)&&(u.result=c.excelToDate(u.result,i.date1904)),u.shareType==="shared"&&(u.ref?i.formulae[u.si]=u.address:(u.sharedFormula=i.formulae[u.si],delete u.shareType),delete u.si)}const h=i.hyperlinkMap[u.address];h&&(u.type===n.ValueType.Formula?(u.text=u.result,u.result=void 0):(u.text=u.value,u.value=void 0),u.type=n.ValueType.Hyperlink,u.hyperlink=h);const f=i.commentsMap&&i.commentsMap[u.address];f&&(u.comment=f)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"x14:cfIcon"}render(a,o){a.leafNode(this.tag,{iconSet:o.iconSet,iconId:o.iconId})}parseOpen(a){let{attributes:o}=a;this.model={iconSet:o.iconSet,iconId:c.toIntValue(o.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(t,b,g){const{v4:c}=t("uuid"),a=t("../../base-xform"),o=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new n,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(s){return s.type==="dataBar"?n.isExt(s):!(s.type!=="iconSet"||!s.custom&&!r[s.iconSet])}prepare(s){u.isExt(s)&&(s.x14Id=`{${c()}}`.toUpperCase())}render(s,h){if(u.isExt(h))switch(h.type){case"dataBar":this.renderDataBar(s,h);break;case"iconSet":this.renderIconSet(s,h)}}renderDataBar(s,h){s.openNode(this.tag,{type:"dataBar",id:h.x14Id}),this.databarXform.render(s,h),s.closeNode()}renderIconSet(s,h){s.openNode(this.tag,{type:"iconSet",priority:h.priority,id:h.x14Id||`{${c()}}`}),this.iconSetXform.render(s,h),s.closeNode()}createNewModel(s){let{attributes:h}=s;return{type:h.type,x14Id:h.id,priority:a.toIntValue(h.priority)}}onParserClose(s,h){Object.assign(this.model,h.model)}}b.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,b,g){const c=t("../../composite-xform"),a=t("./f-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(o,n){o.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(o,n.value),o.closeNode()}createNewModel(o){return{type:o.attributes.type}}onParserClose(o,n){o==="xm:f"&&(this.model.value=n.model?parseFloat(n.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,b,g){const c=t("../../composite-xform"),a=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(o.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(o.isExt).forEach(r=>this.cfRule.render(n,r)),this.sqRef.render(n,e.ref),n.closeNode())}createNewModel(){return{rules:[]}}onParserClose(n,e){switch(n){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,b,g){const c=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(e=>e.rules.some(a.isExt))),n.hasExtContent}prepare(n,e){n.forEach(r=>{this.cfXform.prepare(r,e)})}render(n,e){this.hasContent(e)&&(n.openNode(this.tag),e.forEach(r=>this.cfXform.render(n,r)),n.closeNode())}createNewModel(){return[]}onParserClose(n,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,b,g){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../style/color-xform"),n=t("./cfvo-ext-xform");b.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,r){e.openNode(this.tag,{minLength:c.toIntAttribute(r.minLength,0,!0),maxLength:c.toIntAttribute(r.maxLength,100,!0),border:c.toBoolAttribute(r.border,!1),gradient:c.toBoolAttribute(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolAttribute(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolAttribute(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toAttribute(r.axisPosition,"auto"),direction:c.toAttribute(r.direction,"leftToRight")}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),this.borderColorXform.render(e,r.borderColor),this.negativeBorderColorXform.render(e,r.negativeBorderColor),this.negativeFillColorXform.render(e,r.negativeFillColor),this.axisColorXform.render(e,r.axisColor),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],minLength:c.toIntValue(r.minLength,0),maxLength:c.toIntValue(r.maxLength,100),border:c.toBoolValue(r.border,!1),gradient:c.toBoolValue(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolValue(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolValue(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toStringValue(r.axisPosition,"auto"),direction:c.toStringValue(r.direction,"leftToRight")}}onParserClose(e,r){const[,u]=e.split(":");u==="cfvo"?this.model.cfvo.push(r.model):this.model[u]=r.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"xm:f"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(t,b,g){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");b.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new n}}get tag(){return"x14:iconSet"}render(e,r){e.openNode(this.tag,{iconSet:c.toStringAttribute(r.iconSet),reverse:c.toBoolAttribute(r.reverse,!1),showValue:c.toBoolAttribute(r.showValue,!0),custom:c.toBoolAttribute(r.icons,!1)}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),r.icons&&r.icons.forEach((u,i)=>{u.iconId=i,this.cfIconXform.render(e,u)}),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],iconSet:c.toStringValue(r.iconSet,"3TrafficLights"),reverse:c.toBoolValue(r.reverse,!1),showValue:c.toBoolValue(r.showValue,!0)}}onParserClose(e,r){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(r.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(r.model);break;default:this.model[u]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"xm:sqref"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(t,b,g){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../../../doc/range"),n=t("./databar-xform"),e=t("./ext-lst-ref-xform"),r=t("./formula-xform"),u=t("./color-scale-xform"),i=t("./icon-set-xform"),s={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},h=l=>{const{type:p,operator:m}=l;switch(p){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:p};default:return{type:p,operator:m}}};class f extends a{constructor(){super(),this.map={dataBar:this.databarXform=new n,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new r,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new i}}get tag(){return"cfRule"}static isPrimitive(p){return p.type!=="iconSet"||!p.custom&&!s[p.iconSet]}render(p,m){switch(m.type){case"expression":this.renderExpression(p,m);break;case"cellIs":this.renderCellIs(p,m);break;case"top10":this.renderTop10(p,m);break;case"aboveAverage":this.renderAboveAverage(p,m);break;case"dataBar":this.renderDataBar(p,m);break;case"colorScale":this.renderColorScale(p,m);break;case"iconSet":this.renderIconSet(p,m);break;case"containsText":this.renderText(p,m);break;case"timePeriod":this.renderTimePeriod(p,m)}}renderExpression(p,m){p.openNode(this.tag,{type:"expression",dxfId:m.dxfId,priority:m.priority}),this.formulaXform.render(p,m.formulae[0]),p.closeNode()}renderCellIs(p,m){p.openNode(this.tag,{type:"cellIs",dxfId:m.dxfId,priority:m.priority,operator:m.operator}),m.formulae.forEach(_=>{this.formulaXform.render(p,_)}),p.closeNode()}renderTop10(p,m){p.leafNode(this.tag,{type:"top10",dxfId:m.dxfId,priority:m.priority,percent:c.toBoolAttribute(m.percent,!1),bottom:c.toBoolAttribute(m.bottom,!1),rank:c.toIntValue(m.rank,10,!0)})}renderAboveAverage(p,m){p.leafNode(this.tag,{type:"aboveAverage",dxfId:m.dxfId,priority:m.priority,aboveAverage:c.toBoolAttribute(m.aboveAverage,!0)})}renderDataBar(p,m){p.openNode(this.tag,{type:"dataBar",priority:m.priority}),this.databarXform.render(p,m),this.extLstRefXform.render(p,m),p.closeNode()}renderColorScale(p,m){p.openNode(this.tag,{type:"colorScale",priority:m.priority}),this.colorScaleXform.render(p,m),p.closeNode()}renderIconSet(p,m){f.isPrimitive(m)&&(p.openNode(this.tag,{type:"iconSet",priority:m.priority}),this.iconSetXform.render(p,m),p.closeNode())}renderText(p,m){p.openNode(this.tag,{type:m.operator,dxfId:m.dxfId,priority:m.priority,operator:c.toStringAttribute(m.operator,"containsText")});const _=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const M=new o(k.ref),{tl:j}=M;switch(k.operator){case"containsText":return`NOT(ISERROR(SEARCH("${k.text}",${j})))`;case"containsBlanks":return`LEN(TRIM(${j}))=0`;case"notContainsBlanks":return`LEN(TRIM(${j}))>0`;case"containsErrors":return`ISERROR(${j})`;case"notContainsErrors":return`NOT(ISERROR(${j}))`;default:return}})(m);_&&this.formulaXform.render(p,_),p.closeNode()}renderTimePeriod(p,m){p.openNode(this.tag,{type:"timePeriod",dxfId:m.dxfId,priority:m.priority,timePeriod:m.timePeriod});const _=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const M=new o(k.ref),{tl:j}=M;switch(k.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${j},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${j},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${j},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${j},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${j},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${j},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${j},1)=TODAY()-1`;case"today":return`FLOOR(${j},1)=TODAY()`;case"tomorrow":return`FLOOR(${j},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${j},1)<=6,FLOOR(${j},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${j})=MONTH(EDATE(TODAY(),0-1)),YEAR(${j})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${j})=MONTH(TODAY()),YEAR(${j})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${j})=MONTH(EDATE(TODAY(),0+1)),YEAR(${j})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(m);_&&this.formulaXform.render(p,_),p.closeNode()}createNewModel(p){let{attributes:m}=p;return{...h(m),dxfId:c.toIntValue(m.dxfId),priority:c.toIntValue(m.priority),timePeriod:m.timePeriod,percent:c.toBoolValue(m.percent),bottom:c.toBoolValue(m.bottom),rank:c.toIntValue(m.rank),aboveAverage:c.toBoolValue(m.aboveAverage)}}onParserClose(p,m){switch(p){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,m.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(m.model)}}}b.exports=f},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"cfvo"}render(a,o){a.leafNode(this.tag,{type:o.type,val:o.value})}parseOpen(a){this.model={type:a.attributes.type,value:c.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(t,b,g){const c=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");b.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"colorScale"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),e.color.forEach(r=>{this.colorXform.render(n,r)}),n.closeNode()}createNewModel(n){return{cfvo:[],color:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,b,g){const c=t("../../composite-xform"),a=t("./cf-rule-xform");b.exports=class extends c{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(o,n){n.rules.some(a.isPrimitive)&&(o.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{a.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(o,e))}),o.closeNode())}createNewModel(o){let{attributes:n}=o;return{ref:n.sqref,rules:[]}}onParserClose(o,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,b,g){const c=t("../../base-xform"),a=t("./conditional-formatting-xform");b.exports=class extends c{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(o,n){let e=o.reduce((r,u)=>Math.max(r,...u.rules.map(i=>i.priority||0)),1);o.forEach(r=>{r.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=n.styles.addDxfStyle(u.style))})})}render(o,n){n.forEach(e=>{this.cfXform.render(o,e)})}parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):o.name==="conditionalFormatting"?(this.parser=this.cfXform,this.parser.parseOpen(o),!0):!1}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(!!this.parser.parseClose(o)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(o,n){o.forEach(e=>{e.rules.forEach(r=>{r.dxfId!==void 0&&(r.style=n.styles.getDxfStyle(r.dxfId),delete r.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,b,g){const c=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");b.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"dataBar"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),this.colorXform.render(n,e.color),n.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(n,e){switch(n){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,b,g){const c=t("../../base-xform"),a=t("../../composite-xform");class o extends c{get tag(){return"x14:id"}render(r,u){r.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}class n extends a{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(r,u){r.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(r,u.x14Id),r.closeNode()}createNewModel(){return{}}onParserClose(r,u){this.model.x14Id=u.model}}b.exports=class extends a{constructor(){super(),this.map={ext:new n}}get tag(){return"extLst"}render(e,r){e.openNode(this.tag),this.map.ext.render(e,r),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){Object.assign(this.model,r.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,b,g){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"formula"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(t,b,g){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-xform");b.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(n,e){n.openNode(this.tag,{iconSet:c.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:c.toBoolAttribute(e.reverse,!1),showValue:c.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),n.closeNode()}createNewModel(n){let{attributes:e}=n;return{iconSet:c.toStringValue(e.iconSet,"3TrafficLights"),reverse:c.toBoolValue(e.reverse),showValue:c.toBoolValue(e.showValue),cfvo:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,b,g){const c=t("../../../utils/utils"),a=t("../base-xform");b.exports=class extends a{get tag(){return"col"}prepare(o,n){const e=n.styles.addStyleModel(o.style||{});e&&(o.styleId=e)}render(o,n){o.openNode("col"),o.addAttribute("min",n.min),o.addAttribute("max",n.max),n.width&&o.addAttribute("width",n.width),n.styleId&&o.addAttribute("style",n.styleId),n.hidden&&o.addAttribute("hidden","1"),n.bestFit&&o.addAttribute("bestFit","1"),n.outlineLevel&&o.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&o.addAttribute("collapsed","1"),o.addAttribute("customWidth","1"),o.closeNode()}parseOpen(o){if(o.name==="col"){const n=this.model={min:parseInt(o.attributes.min||"0",10),max:parseInt(o.attributes.max||"0",10),width:o.attributes.width===void 0?void 0:parseFloat(o.attributes.width||"0")};return o.attributes.style&&(n.styleId=parseInt(o.attributes.style,10)),c.parseBoolean(o.attributes.hidden)&&(n.hidden=!0),c.parseBoolean(o.attributes.bestFit)&&(n.bestFit=!0),o.attributes.outlineLevel&&(n.outlineLevel=parseInt(o.attributes.outlineLevel,10)),c.parseBoolean(o.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(o,n){o.styleId&&(o.style=n.styles.getStyleModel(o.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../../../utils/utils"),o=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(i,s,h,f){const l=s[h];l!==void 0?i[h]=l:f!==void 0&&(i[h]=f)}function u(i,s,h,f){const l=s[h];l!==void 0&&(i[h]=a.parseBoolean(l))}b.exports=class extends n{get tag(){return"dataValidations"}render(i,s){const h=(function(f){const l=c.map(f,(_,k)=>({address:k,dataValidation:_,marked:!1})).sort((_,k)=>c.strcmp(_.address,k.address)),p=c.keyBy(l,"address"),m=(_,k,M)=>{for(let j=0;j<k;j++){const z=o.encodeAddress(_.row+j,M);if(!f[z]||!c.isEqual(f[_.address],f[z]))return!1}return!0};return l.map(_=>{if(!_.marked){const k=o.decodeEx(_.address);if(k.dimensions)return p[k.dimensions].marked=!0,{..._.dataValidation,sqref:_.address};let M=1,j=o.encodeAddress(k.row+M,k.col);for(;f[j]&&c.isEqual(_.dataValidation,f[j]);)M++,j=o.encodeAddress(k.row+M,k.col);let z=1;for(;m(k,M,k.col+z);)z++;for(let A=0;A<M;A++)for(let T=0;T<z;T++)j=o.encodeAddress(k.row+A,k.col+T),p[j].marked=!0;if(M>1||z>1){const A=k.row+(M-1),T=k.col+(z-1);return{..._.dataValidation,sqref:`${_.address}:${o.encodeAddress(A,T)}`}}return{..._.dataValidation,sqref:_.address}}return null}).filter(Boolean)})(s);h.length&&(i.openNode("dataValidations",{count:h.length}),h.forEach(f=>{i.openNode("dataValidation"),f.type!=="any"&&(i.addAttribute("type",f.type),f.operator&&f.type!=="list"&&f.operator!=="between"&&i.addAttribute("operator",f.operator),f.allowBlank&&i.addAttribute("allowBlank","1")),f.showInputMessage&&i.addAttribute("showInputMessage","1"),f.promptTitle&&i.addAttribute("promptTitle",f.promptTitle),f.prompt&&i.addAttribute("prompt",f.prompt),f.showErrorMessage&&i.addAttribute("showErrorMessage","1"),f.errorStyle&&i.addAttribute("errorStyle",f.errorStyle),f.errorTitle&&i.addAttribute("errorTitle",f.errorTitle),f.error&&i.addAttribute("error",f.error),i.addAttribute("sqref",f.sqref),(f.formulae||[]).forEach((l,p)=>{i.openNode("formula"+(p+1)),f.type==="date"?i.writeText(a.dateToExcel(new Date(l))):i.writeText(l),i.closeNode()}),i.closeNode()}),i.closeNode())}parseOpen(i){switch(i.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=i.attributes.sqref;const s={type:i.attributes.type||"any",formulae:[]};switch(i.attributes.type&&u(s,i.attributes,"allowBlank"),u(s,i.attributes,"showInputMessage"),u(s,i.attributes,"showErrorMessage"),s.type){case"any":case"list":case"custom":break;default:r(s,i.attributes,"operator","between")}return r(s,i.attributes,"promptTitle"),r(s,i.attributes,"prompt"),r(s,i.attributes,"errorStyle"),r(s,i.attributes,"errorTitle"),r(s,i.attributes,"error"),this._dataValidation=s,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(i){this._formula&&this._formula.push(i)}parseClose(i){switch(i){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(s=>{s.includes(":")?new e(s).forEachAddress(h=>{this.model[h]=this._dataValidation}):this.model[s]=this._dataValidation}),!0;case"formula1":case"formula2":{let s=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":s=parseInt(s,10);break;case"decimal":s=parseFloat(s);break;case"date":s=a.excelToDate(parseFloat(s))}return this._dataValidation.formulae.push(s),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"dimension"}render(a,o){o&&a.leafNode("dimension",{ref:o})}parseOpen(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"drawing"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,b,g){const c=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform");class o extends c{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new a}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,r){this.conditionalFormattings.prepare(e.conditionalFormattings,r)}render(e,r){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,r.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){this.model[e]=r.model}}b.exports=class extends c{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(n,e){this.ext.prepare(n,e)}hasContent(n){return this.ext.hasContent(n)}render(n,e){this.hasContent(e)&&(n.openNode("extLst"),this.ext.render(n,e),n.closeNode())}createNewModel(){return{}}onParserClose(n,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"headerFooter"}render(a,o){if(o){a.addRollback();let n=!1;a.openNode("headerFooter"),o.differentFirst&&(a.addAttribute("differentFirst","1"),n=!0),o.differentOddEven&&(a.addAttribute("differentOddEven","1"),n=!0),o.oddHeader&&typeof o.oddHeader=="string"&&(a.leafNode("oddHeader",null,o.oddHeader),n=!0),o.oddFooter&&typeof o.oddFooter=="string"&&(a.leafNode("oddFooter",null,o.oddFooter),n=!0),o.evenHeader&&typeof o.evenHeader=="string"&&(a.leafNode("evenHeader",null,o.evenHeader),n=!0),o.evenFooter&&typeof o.evenFooter=="string"&&(a.leafNode("evenFooter",null,o.evenFooter),n=!0),o.firstHeader&&typeof o.firstHeader=="string"&&(a.leafNode("firstHeader",null,o.firstHeader),n=!0),o.firstFooter&&typeof o.firstFooter=="string"&&(a.leafNode("firstFooter",null,o.firstFooter),n=!0),n?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"hyperlink"}render(a,o){this.isInternalLink(o)?a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip,location:o.target}):a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip})}parseOpen(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},a.attributes.location&&(this.model.target=a.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(a){return a.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(a.target)}}},{"../base-xform":32}],99:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"mergeCell"}render(a,o){a.leafNode("mergeCell",{ref:o})}parseOpen(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../../../doc/range"),o=t("../../../utils/col-cache"),n=t("../../../doc/enums");b.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const r=`${e.master}:${e.address}`;this.merges[e.master]=new a(r)}}get mergeCells(){return c.map(this.merges,e=>e.range)}reconcile(e,r){c.each(e,u=>{const i=o.decode(u);for(let s=i.top;s<=i.bottom;s++){const h=r[s-1];for(let f=i.left;f<=i.right;f++){const l=h.cells[f-1];l?l.type===n.ValueType.Merge&&(l.master=i.tl):h.cells[f]={type:n.ValueType.Null,address:o.encodeAddress(s,f)}}}})}getMasterAddress(e){const r=this.hash[e];return r&&r.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,b,g){const c=t("../base-xform"),a=o=>o!==void 0;b.exports=class extends c{get tag(){return"outlinePr"}render(o,n){return!(!n||!a(n.summaryBelow)&&!a(n.summaryRight))&&(o.leafNode(this.tag,{summaryBelow:a(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:a(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={summaryBelow:a(o.attributes.summaryBelow)?!!Number(o.attributes.summaryBelow):void 0,summaryRight:a(o.attributes.summaryRight)?!!Number(o.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"brk"}render(a,o){a.leafNode("brk",o)}parseOpen(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../base-xform");b.exports=class extends a{get tag(){return"pageMargins"}render(o,n){if(n){const e={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};c.some(e,r=>r!==void 0)&&o.leafNode(this.tag,e)}}parseOpen(o){return o.name===this.tag?(this.model={left:parseFloat(o.attributes.left||.7),right:parseFloat(o.attributes.right||.7),top:parseFloat(o.attributes.top||.75),bottom:parseFloat(o.attributes.bottom||.75),header:parseFloat(o.attributes.header||.3),footer:parseFloat(o.attributes.footer||.3)},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"pageSetUpPr"}render(a,o){return!(!o||!o.fitToPage)&&(a.leafNode(this.tag,{fitToPage:o.fitToPage?"1":void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(u){return u?"1":void 0}function n(u){if(u==="overThenDown")return u}function e(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function r(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}b.exports=class extends a{get tag(){return"pageSetup"}render(u,i){if(i){const s={paperSize:i.paperSize,orientation:i.orientation,horizontalDpi:i.horizontalDpi,verticalDpi:i.verticalDpi,pageOrder:n(i.pageOrder),blackAndWhite:o(i.blackAndWhite),draft:o(i.draft),cellComments:e(i.cellComments),errors:r(i.errors),scale:i.scale,fitToWidth:i.fitToWidth,fitToHeight:i.fitToHeight,firstPageNumber:i.firstPageNumber,useFirstPageNumber:o(i.firstPageNumber),usePrinterDefaults:o(i.usePrinterDefaults),copies:i.copies};c.some(s,h=>h!==void 0)&&u.leafNode(this.tag,s)}}parseOpen(u){if(u.name===this.tag)return this.model={paperSize:(i=u.attributes.paperSize,i!==void 0?parseInt(i,10):void 0),orientation:u.attributes.orientation||"portrait",horizontalDpi:parseInt(u.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(u.attributes.verticalDpi||"4294967295",10),pageOrder:u.attributes.pageOrder||"downThenOver",blackAndWhite:u.attributes.blackAndWhite==="1",draft:u.attributes.draft==="1",cellComments:u.attributes.cellComments||"None",errors:u.attributes.errors||"displayed",scale:parseInt(u.attributes.scale||"100",10),fitToWidth:parseInt(u.attributes.fitToWidth||"1",10),fitToHeight:parseInt(u.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(u.attributes.firstPageNumber||"1",10),useFirstPageNumber:u.attributes.useFirstPageNumber==="1",usePrinterDefaults:u.attributes.usePrinterDefaults==="1",copies:parseInt(u.attributes.copies||"1",10)},!0;return!1;var i}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"picture"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(n){return n?"1":void 0}b.exports=class extends a{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:o(e.showRowColHeaders),gridLines:o(e.showGridLines),horizontalCentered:o(e.horizontalCentered),verticalCentered:o(e.verticalCentered)};c.some(r,u=>u!==void 0)&&n.leafNode(this.tag,r)}}parseOpen(n){return n.name===this.tag?(this.model={showRowColHeaders:n.attributes.headings==="1",showGridLines:n.attributes.gridLines==="1",horizontalCentered:n.attributes.horizontalCentered==="1",verticalCentered:n.attributes.verticalCentered==="1"},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,b,g){const c=t("./page-breaks-xform"),a=t("../list-xform");b.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new c})}render(o,n){if(n&&n.length){o.openNode(this.tag,this.$),this.count&&(o.addAttribute(this.$count,n.length),o.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(o,r)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,b,g){const c=t("../base-xform"),a=t("../../../utils/utils"),o=t("./cell-xform");b.exports=class extends c{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(n,e){const r=e.styles.addStyleModel(n.style);r&&(n.styleId=r);const u=this.map.c;n.cells.forEach(i=>{u.prepare(i,e)})}render(n,e,r){n.openNode("row"),n.addAttribute("r",e.number),e.height&&(n.addAttribute("ht",e.height),n.addAttribute("customHeight","1")),e.hidden&&n.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&n.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(n.addAttribute("s",e.styleId),n.addAttribute("customFormat","1")),n.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&n.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&n.addAttribute("collapsed","1");const u=this.map.c;e.cells.forEach(i=>{u.render(n,i,r)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;if(n.name==="row"){this.numRowsSeen+=1;const e=n.attributes.spans?n.attributes.spans.split(":").map(u=>parseInt(u,10)):[void 0,void 0],r=this.model={number:parseInt(n.attributes.r,10),min:e[0],max:e[1],cells:[]};return n.attributes.s&&(r.styleId=parseInt(n.attributes.s,10)),a.parseBoolean(n.attributes.hidden)&&(r.hidden=!0),a.parseBoolean(n.attributes.bestFit)&&(r.bestFit=!0),n.attributes.ht&&(r.height=parseFloat(n.attributes.ht)),n.attributes.outlineLevel&&(r.outlineLevel=parseInt(n.attributes.outlineLevel,10)),a.parseBoolean(n.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(n,e){n.style=n.styleId?e.styles.getStyleModel(n.styleId):{},n.styleId!==void 0&&(n.styleId=void 0);const r=this.map.c;n.cells.forEach(u=>{r.reconcile(u,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../base-xform");b.exports=class extends a{get tag(){return"sheetFormatPr"}render(o,n){if(n){const e={defaultRowHeight:n.defaultRowHeight,outlineLevelRow:n.outlineLevelRow,outlineLevelCol:n.outlineLevelCol,"x14ac:dyDescent":n.dyDescent};n.defaultColWidth&&(e.defaultColWidth=n.defaultColWidth),n.defaultRowHeight&&n.defaultRowHeight===15||(e.customHeight="1"),c.some(e,r=>r!==void 0)&&o.leafNode("sheetFormatPr",e)}}parseOpen(o){return o.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(o.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(o.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(o.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(o.attributes.outlineLevelCol||"0",10)},o.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(o.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,b,g){const c=t("../base-xform"),a=t("../style/color-xform"),o=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");b.exports=class extends c{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new o,outlinePr:new n}}get tag(){return"sheetPr"}render(e,r){if(r){e.addRollback(),e.openNode("sheetPr");let u=!1;u=this.map.tabColor.render(e,r.tabColor)||u,u=this.map.pageSetUpPr.render(e,r.pageSetup)||u,u=this.map.outlinePr.render(e,r.outlineProperties)||u,u?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(e,r){return e?r:void 0}function n(e,r){return e===r||void 0}b.exports=class extends a{get tag(){return"sheetProtection"}render(e,r){if(r){const u={sheet:o(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:o(r.formatCells,"0"),formatColumns:o(r.formatColumns,"0"),formatRows:o(r.formatRows,"0"),insertColumns:o(r.insertColumns,"0"),insertRows:o(r.insertRows,"0"),insertHyperlinks:o(r.insertHyperlinks,"0"),deleteColumns:o(r.deleteColumns,"0"),deleteRows:o(r.deleteRows,"0"),sort:o(r.sort,"0"),autoFilter:o(r.autoFilter,"0"),pivotTables:o(r.pivotTables,"0")};r.sheet&&(u.algorithmName=r.algorithmName,u.hashValue=r.hashValue,u.saltValue=r.saltValue,u.spinCount=r.spinCount,u.objects=o(r.objects===!1,"1"),u.scenarios=o(r.scenarios===!1,"1")),c.some(u,i=>i!==void 0)&&e.leafNode(this.tag,u)}}parseOpen(e){return e.name===this.tag?(this.model={sheet:n(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:n(e.attributes.formatCells,"0"),formatColumns:n(e.attributes.formatColumns,"0"),formatRows:n(e.attributes.formatRows,"0"),insertColumns:n(e.attributes.insertColumns,"0"),insertRows:n(e.attributes.insertRows,"0"),insertHyperlinks:n(e.attributes.insertHyperlinks,"0"),deleteColumns:n(e.attributes.deleteColumns,"0"),deleteRows:n(e.attributes.deleteRows,"0"),sort:n(e.attributes.sort,"0"),autoFilter:n(e.attributes.autoFilter,"0"),pivotTables:n(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,b,g){const c=t("../../../utils/col-cache"),a=t("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};b.exports=class extends a{get tag(){return"sheetView"}prepare(n){switch(n.state){case"frozen":case"split":break;default:n.state="normal"}}render(n,e){n.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const r=function(f,l,p){p&&n.addAttribute(f,l)};let u,i,s,h;switch(r("rightToLeft","1",e.rightToLeft===!0),r("tabSelected","1",e.tabSelected),r("showRuler","0",e.showRuler===!1),r("showRowColHeaders","0",e.showRowColHeaders===!1),r("showGridLines","0",e.showGridLines===!1),r("zoomScale",e.zoomScale,e.zoomScale),r("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),r("view",e.style,e.style),e.state){case"frozen":i=e.xSplit||0,s=e.ySplit||0,u=e.topLeftCell||c.getAddress(s+1,i+1).address,h=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:u,activePane:h,state:"frozen"}),n.leafNode("selection",{pane:h,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),n.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&n.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}n.closeNode()}parseOpen(n){switch(n.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(n.attributes.workbookViewId,10),rightToLeft:n.attributes.rightToLeft==="1",tabSelected:n.attributes.tabSelected==="1",showRuler:n.attributes.showRuler!=="0",showRowColHeaders:n.attributes.showRowColHeaders!=="0",showGridLines:n.attributes.showGridLines!=="0",zoomScale:parseInt(n.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(n.attributes.zoomScaleNormal||"100",10),style:n.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(n.attributes.xSplit||"0",10),ySplit:parseInt(n.attributes.ySplit||"0",10),topLeftCell:n.attributes.topLeftCell,activePane:n.attributes.activePane||"topLeft",state:n.attributes.state},!0;case"selection":{const e=n.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:n.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(n){let e,r;return n==="sheetView"?(this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1):!0}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tablePart"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),u=t("../list-xform"),i=t("./row-xform"),s=t("./col-xform"),h=t("./dimension-xform"),f=t("./hyperlink-xform"),l=t("./merge-cell-xform"),p=t("./data-validations-xform"),m=t("./sheet-properties-xform"),_=t("./sheet-format-properties-xform"),k=t("./sheet-view-xform"),M=t("./sheet-protection-xform"),j=t("./page-margins-xform"),z=t("./page-setup-xform"),A=t("./print-options-xform"),T=t("./auto-filter-xform"),O=t("./picture-xform"),L=t("./drawing-xform"),B=t("./table-part-xform"),S=t("./row-breaks-xform"),D=t("./header-footer-xform"),w=t("./cf/conditional-formattings-xform"),d=t("./ext-lst-xform"),v=(x,C)=>{if(!C||!C.length)return x;if(!x||!x.length)return C;const N={},R={};return x.forEach($=>{N[$.ref]=$,$.rules.forEach(V=>{const{x14Id:X}=V;X&&(R[X]=V)})}),C.forEach($=>{$.rules.forEach(V=>{const X=R[V.x14Id];X?((P,q)=>{Object.keys(q).forEach(I=>{const F=P[I],H=q[I];F===void 0&&H!==void 0&&(P[I]=H)})})(X,V):N[$.ref]?N[$.ref].rules.push(V):x.push({ref:$.ref,rules:[V]})})}),x};class y extends r{constructor(C){super();const{maxRows:N,maxCols:R,ignoreNodes:$}=C||{};this.ignoreNodes=$||[],this.map={sheetPr:new m,dimension:new h,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new k}),sheetFormatPr:new _,cols:new u({tag:"cols",count:!1,childXform:new s}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new i({maxItems:R}),maxItems:N}),autoFilter:new T,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new l}),rowBreaks:new S,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new j,dataValidations:new p,pageSetup:new z,headerFooter:new D,printOptions:new A,picture:new O,drawing:new L,sheetProtection:new M,tableParts:new u({tag:"tableParts",count:!0,childXform:new B}),conditionalFormatting:new w,extLst:new d}}prepare(C,N){N.merges=new e,C.hyperlinks=N.hyperlinks=[],C.comments=N.comments=[],N.formulae={},N.siFormulae=0,this.map.cols.prepare(C.cols,N),this.map.sheetData.prepare(C.rows,N),this.map.conditionalFormatting.prepare(C.conditionalFormattings,N),C.mergeCells=N.merges.mergeCells;const R=C.rels=[];function $(P){return"rId"+(P.length+1)}if(C.hyperlinks.forEach(P=>{const q=$(R);P.rId=q,R.push({Id:q,Type:n.Hyperlink,Target:P.target,TargetMode:"External"})}),C.comments.length>0){const P={Id:$(R),Type:n.Comments,Target:`../comments${C.id}.xml`};R.push(P);const q={Id:$(R),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${C.id}.vml`};R.push(q),C.comments.forEach(I=>{I.refAddress=a.decodeAddress(I.ref)}),N.commentRefs.push({commentName:"comments"+C.id,vmlDrawing:"vmlDrawing"+C.id})}const V=[];let X;C.media.forEach(P=>{if(P.type==="background"){const q=$(R);X=N.media[P.imageId],R.push({Id:q,Type:n.Image,Target:`../media/${X.name}.${X.extension}`}),C.background={rId:q},C.image=N.media[P.imageId]}else if(P.type==="image"){let{drawing:q}=C;X=N.media[P.imageId],q||(q=C.drawing={rId:$(R),name:"drawing"+ ++N.drawingsCount,anchors:[],rels:[]},N.drawings.push(q),R.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`}));let I=this.preImageId===P.imageId?V[P.imageId]:V[q.rels.length];I||(I=$(q.rels),V[q.rels.length]=I,q.rels.push({Id:I,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${X.name}.${X.extension}`}));const F={picture:{rId:I},range:P.range};if(P.hyperlinks&&P.hyperlinks.hyperlink){const H=$(q.rels);V[q.rels.length]=H,F.picture.hyperlinks={tooltip:P.hyperlinks.tooltip,rId:H},q.rels.push({Id:H,Type:n.Hyperlink,Target:P.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=P.imageId,q.anchors.push(F)}}),C.tables.forEach(P=>{const q=$(R);P.rId=q,R.push({Id:q,Type:n.Table,Target:"../tables/"+P.target}),P.columns.forEach(I=>{const{style:F}=I;F&&(I.dxfId=N.styles.addDxfStyle(F))})}),this.map.extLst.prepare(C,N)}render(C,N){C.openXml(o.StdDocAttributes),C.openNode("worksheet",y.WORKSHEET_ATTRIBUTES);const R=N.properties?{defaultRowHeight:N.properties.defaultRowHeight,dyDescent:N.properties.dyDescent,outlineLevelCol:N.properties.outlineLevelCol,outlineLevelRow:N.properties.outlineLevelRow}:void 0;N.properties&&N.properties.defaultColWidth&&(R.defaultColWidth=N.properties.defaultColWidth);const $={outlineProperties:N.properties&&N.properties.outlineProperties,tabColor:N.properties&&N.properties.tabColor,pageSetup:N.pageSetup&&N.pageSetup.fitToPage?{fitToPage:N.pageSetup.fitToPage}:void 0},V=N.pageSetup&&N.pageSetup.margins,X={showRowColHeaders:N.pageSetup&&N.pageSetup.showRowColHeaders,showGridLines:N.pageSetup&&N.pageSetup.showGridLines,horizontalCentered:N.pageSetup&&N.pageSetup.horizontalCentered,verticalCentered:N.pageSetup&&N.pageSetup.verticalCentered},P=N.sheetProtection;this.map.sheetPr.render(C,$),this.map.dimension.render(C,N.dimensions),this.map.sheetViews.render(C,N.views),this.map.sheetFormatPr.render(C,R),this.map.cols.render(C,N.cols),this.map.sheetData.render(C,N.rows),this.map.sheetProtection.render(C,P),this.map.autoFilter.render(C,N.autoFilter),this.map.mergeCells.render(C,N.mergeCells),this.map.conditionalFormatting.render(C,N.conditionalFormattings),this.map.dataValidations.render(C,N.dataValidations),this.map.hyperlinks.render(C,N.hyperlinks),this.map.printOptions.render(C,X),this.map.pageMargins.render(C,V),this.map.pageSetup.render(C,N.pageSetup),this.map.headerFooter.render(C,N.headerFooter),this.map.rowBreaks.render(C,N.rowBreaks),this.map.drawing.render(C,N.drawing),this.map.picture.render(C,N.background),this.map.tableParts.render(C,N.tables),this.map.extLst.render(C,N),N.rels&&N.rels.forEach(q=>{q.Type===n.VmlDrawing&&C.leafNode("legacyDrawing",{"r:id":q.Id})}),C.closeNode()}parseOpen(C){return this.parser?(this.parser.parseOpen(C),!0):C.name==="worksheet"?(c.each(this.map,N=>{N.reset()}),!0):(this.map[C.name]&&!this.ignoreNodes.includes(C.name)&&(this.parser=this.map[C.name],this.parser.parseOpen(C)),!0)}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;if(C==="worksheet"){const N=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(N.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(N.outlineProperties=this.map.sheetPr.model.outlineProperties);const R={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},$=Object.assign(R,this.map.pageSetup.model,this.map.printOptions.model),V=v(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:N,views:this.map.sheetViews.model,pageSetup:$,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:V},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}else return!0}reconcile(C,N){const R=(C.relationships||[]).reduce((V,X)=>{if(V[X.Id]=X,X.Type===n.Comments&&(C.comments=N.comments[X.Target].comments),X.Type===n.VmlDrawing&&C.comments&&C.comments.length){const P=N.vmlDrawings[X.Target].comments;C.comments.forEach((q,I)=>{q.note=Object.assign({},q.note,P[I])})}return V},{});if(N.commentsMap=(C.comments||[]).reduce((V,X)=>(X.ref&&(V[X.ref]=X),V),{}),N.hyperlinkMap=(C.hyperlinks||[]).reduce((V,X)=>(X.rId&&(V[X.address]=R[X.rId].Target),V),{}),N.formulae={},C.rows=C.rows&&C.rows.filter(Boolean)||[],C.rows.forEach(V=>{V.cells=V.cells&&V.cells.filter(Boolean)||[]}),this.map.cols.reconcile(C.cols,N),this.map.sheetData.reconcile(C.rows,N),this.map.conditionalFormatting.reconcile(C.conditionalFormattings,N),C.media=[],C.drawing){const V=R[C.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(V){const X=V[1];N.drawings[X].anchors.forEach(P=>{if(P.medium){const q={type:"image",imageId:P.medium.index,range:P.range,hyperlinks:P.picture.hyperlinks};C.media.push(q)}})}}const $=C.background&&R[C.background.rId];if($){const V=$.Target.split("/media/")[1],X=N.mediaIndex&&N.mediaIndex[V];X!==void 0&&C.media.push({type:"background",imageId:X})}C.tables=(C.tables||[]).map(V=>{const X=R[V.rId];return N.tables[X.Target]}),delete C.relationships,delete C.hyperlinks,delete C.comments}}y.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},b.exports=y},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,o){o&&(a.openNode(this.tag),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(o){try{return Number.isNaN(o.getTime())?"":o.toISOString()}catch{return""}},this._parse=a.parse||function(o){return new Date(o)}}render(a,o){o&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(o)):a.writeText(this._format(o)),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,o){(o||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,o){o!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,b,g){const c=t("./base-xform"),a=t("../../utils/xml-stream");b.exports=class extends c{constructor(o){super(),this._model=o}render(o){if(!this._xml){const n=new a;(function e(r,u){r.openNode(u.tag,u.$),u.c&&u.c.forEach(i=>{e(r,i)}),u.t&&r.writeText(u.t),r.closeNode()})(n,this._model),this._xml=n.xml}o.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(o){return o!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,b,g){const c=t("./text-xform"),a=t("./rich-text-xform"),o=t("../base-xform");b.exports=class extends o{constructor(){super(),this.map={r:new a,t:new c}}get tag(){return"rPh"}render(n,e){if(n.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r}=this.map;e.richText.forEach(u=>{r.render(n,u)})}else e&&this.map.t.render(n,e.text);n.closeNode()}parseOpen(n){const{name:e}=n;return this.parser?(this.parser.parseOpen(n),!0):e===this.tag?(this.model={sb:parseInt(n.attributes.sb,10),eb:parseInt(n.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return n!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,b,g){const c=t("./text-xform"),a=t("../style/font-xform"),o=t("../base-xform");class n extends o{constructor(r){super(),this.model=r}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new c)}get fontXform(){return this._fontXform||(this._fontXform=new a(n.FONT_OPTIONS))}render(r,u){u=u||this.model,r.openNode("r"),u.font&&this.fontXform.render(r,u.font),this.textXform.render(r,u.text),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(r),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){switch(r){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}}n.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},b.exports=n},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,b,g){const c=t("./text-xform"),a=t("./rich-text-xform"),o=t("./phonetic-text-xform"),n=t("../base-xform");b.exports=class extends n{constructor(e){super(),this.model=e,this.map={r:new a,t:new c,rPh:new o}}get tag(){return"si"}render(e,r){e.openNode(this.tag),r&&r.hasOwnProperty("richText")&&r.richText?r.richText.length?r.richText.forEach(u=>{this.map.r.render(e,u)}):this.map.t.render(e,""):r!=null&&this.map.t.render(e,r),e.closeNode()}parseOpen(e){const{name:r}=e;return this.parser?(this.parser.parseOpen(e),!0):r===this.tag?(this.model={},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./shared-string-xform");b.exports=class extends a{constructor(n){super(),this.model=n||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(n){return this.model.values[n]}add(n){return n.richText?this.addRichText(n):this.addText(n)}addText(n){let e=this.hash[n];return e===void 0&&(e=this.hash[n]=this.model.values.length,this.model.values.push(n)),this.model.count++,e}addRichText(n){const e=this.sharedStringXform.toXml(n);let r=this.rich[e];return r===void 0&&(r=this.rich[e]=this.model.values.length,this.model.values.push(n)),this.model.count++,r}render(n,e){e=e||this._values,n.openXml(c.StdDocAttributes),n.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const r=this.sharedStringXform;e.values.forEach(u=>{r.render(n,u)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(n),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(n==="sst")return!1;throw new Error("Unexpected xml node in parseClose: "+n)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"t"}render(a,o){a.openNode("t"),/^\s|\n|\s$/.test(o)&&a.addAttribute("xml:space","preserve"),a.writeText(o),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,o)=>String.fromCharCode(parseInt(o,16)))}parseOpen(a){return a.name==="t"?(this._text=[],!0):!1}parseText(a){this._text.push(a)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,b,g){const c=t("../../../doc/enums"),a=t("../../../utils/utils"),o=t("../base-xform"),n={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),horizontal(r){return this.horizontalValues[r]?r:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),vertical(r){return r==="middle"?"center":this.verticalValues[r]?r:void 0},wrapText:r=>!!r||void 0,shrinkToFit:r=>!!r||void 0,textRotation(r){return r==="vertical"||(r=a.validInt(r))>=-90&&r<=90?r:void 0},indent:r=>(r=a.validInt(r),Math.max(0,r)),readingOrder(r){switch(r){case"ltr":return c.ReadingOrder.LeftToRight;case"rtl":return c.ReadingOrder.RightToLeft;default:return}}},e={toXml(r){if(r=n.textRotation(r)){if(r==="vertical")return 255;const u=Math.round(r);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(r){const u=a.validInt(r);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};b.exports=class extends o{get tag(){return"alignment"}render(r,u){r.addRollback(),r.openNode("alignment");let i=!1;function s(h,f){f&&(r.addAttribute(h,f),i=!0)}s("horizontal",n.horizontal(u.horizontal)),s("vertical",n.vertical(u.vertical)),s("wrapText",!!n.wrapText(u.wrapText)&&"1"),s("shrinkToFit",!!n.shrinkToFit(u.shrinkToFit)&&"1"),s("indent",n.indent(u.indent)),s("textRotation",e.toXml(u.textRotation)),s("readingOrder",n.readingOrder(u.readingOrder)),r.closeNode(),i?r.commit():r.rollback()}parseOpen(r){const u={};let i=!1;function s(h,f,l){h&&(u[f]=l,i=!0)}s(r.attributes.horizontal,"horizontal",r.attributes.horizontal),s(r.attributes.vertical,"vertical",r.attributes.vertical==="center"?"middle":r.attributes.vertical),s(r.attributes.wrapText,"wrapText",a.parseBoolean(r.attributes.wrapText)),s(r.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(r.attributes.shrinkToFit)),s(r.attributes.indent,"indent",parseInt(r.attributes.indent,10)),s(r.attributes.textRotation,"textRotation",e.toModel(r.attributes.textRotation)),s(r.attributes.readingOrder,"readingOrder",r.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=i?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,b,g){const c=t("../base-xform"),a=t("../../../utils/utils"),o=t("./color-xform");class n extends c{constructor(r){super(),this.name=r,this.map={color:new o}}get tag(){return this.name}render(r,u,i){const s=u&&u.color||i||this.defaultColor;r.openNode(this.name),u&&u.style&&(r.addAttribute("style",u.style),s&&this.map.color.render(r,s)),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.name:{const{style:u}=r.attributes;return this.model=u?{style:u}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(r===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(r){return n.validStyleValues[r]}}n.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,r)=>(e[r]=!0,e),{}),b.exports=class extends c{constructor(){super(),this.map={top:new n("top"),left:new n("left"),bottom:new n("bottom"),right:new n("right"),diagonal:new n("diagonal")}}render(e,r){const{color:u}=r;function i(s,h){s&&!s.color&&r.color&&(s={...s,color:r.color}),h.render(e,s,u)}e.openNode("border"),r.diagonal&&r.diagonal.style&&(r.diagonal.up&&e.addAttribute("diagonalUp","1"),r.diagonal.down&&e.addAttribute("diagonalDown","1")),i(r.left,this.map.left),i(r.right,this.map.right),i(r.top,this.map.top),i(r.bottom,this.map.bottom),i(r.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name==="border"?(this.reset(),this.diagonalUp=a.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const r=this.model={},u=function(i,s,h){s&&(h&&Object.assign(s,h),r[i]=s)};u("left",this.map.left.model),u("right",this.map.right.model),u("top",this.map.top.model),u("bottom",this.map.bottom.model),u("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,o){return!!o&&(a.openNode(this.name),o.argb?a.addAttribute("rgb",o.argb):o.theme!==void 0?(a.addAttribute("theme",o.theme),o.tint!==void 0&&a.addAttribute("tint",o.tint)):o.indexed!==void 0?a.addAttribute("indexed",o.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}parseOpen(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,b,g){const c=t("../base-xform"),a=t("./alignment-xform"),o=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),u=t("./protection-xform");b.exports=class extends c{constructor(){super(),this.map={alignment:new a,border:new o,fill:new n,font:new e,numFmt:new r,protection:new u}}get tag(){return"dxf"}render(i,s){if(i.openNode(this.tag),s.font&&this.map.font.render(i,s.font),s.numFmt&&s.numFmtId){const h={id:s.numFmtId,formatCode:s.numFmt};this.map.numFmt.render(i,h)}s.fill&&this.map.fill.render(i,s.fill),s.alignment&&this.map.alignment.render(i,s.alignment),s.border&&this.map.border.render(i,s.border),s.protection&&this.map.protection.render(i,s.protection),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag?(this.reset(),!0):(this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i),!0)}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser=void 0),!0):i!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,b,g){const c=t("../base-xform"),a=t("./color-xform");class o extends c{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(i,s){i.openNode("stop"),i.addAttribute("position",s.position),this.map.color.render(i,s.color),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"stop":return this.model={position:parseFloat(i.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(i),!0;default:return!1}}parseText(){}parseClose(i){return!!this.parser&&(this.parser.parseClose(i)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class n extends c{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(i,s){i.openNode("patternFill"),i.addAttribute("patternType",s.pattern),s.fgColor&&this.map.fgColor.render(i,s.fgColor),s.bgColor&&this.map.bgColor.render(i,s.bgColor),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):i.name==="patternFill"?(this.model={type:"pattern",pattern:i.attributes.patternType},!0):(this.parser=this.map[i.name],!!this.parser&&(this.parser.parseOpen(i),!0))}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return!!this.parser&&(this.parser.parseClose(i)||(this.parser.model&&(this.model[i]=this.parser.model),this.parser=void 0),!0)}}class e extends c{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(i,s){switch(i.openNode("gradientFill"),s.gradient){case"angle":i.addAttribute("degree",s.degree);break;case"path":i.addAttribute("type","path"),s.center.left&&(i.addAttribute("left",s.center.left),s.center.right===void 0&&i.addAttribute("right",s.center.left)),s.center.right&&i.addAttribute("right",s.center.right),s.center.top&&(i.addAttribute("top",s.center.top),s.center.bottom===void 0&&i.addAttribute("bottom",s.center.top)),s.center.bottom&&i.addAttribute("bottom",s.center.bottom)}const h=this.map.stop;s.stops.forEach(f=>{h.render(i,f)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"gradientFill":{const s=this.model={stops:[]};return i.attributes.degree?(s.gradient="angle",s.degree=parseInt(i.attributes.degree,10)):i.attributes.type==="path"&&(s.gradient="path",s.center={left:i.attributes.left?parseFloat(i.attributes.left):0,top:i.attributes.top?parseFloat(i.attributes.top):0},i.attributes.right!==i.attributes.left&&(s.center.right=i.attributes.right?parseFloat(i.attributes.right):0),i.attributes.bottom!==i.attributes.top&&(s.center.bottom=i.attributes.bottom?parseFloat(i.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(i),!0;default:return!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return!!this.parser&&(this.parser.parseClose(i)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class r extends c{constructor(){super(),this.map={patternFill:new n,gradientFill:new e}}get tag(){return"fill"}render(i,s){switch(i.addRollback(),i.openNode("fill"),s.type){case"pattern":this.map.patternFill.render(i,s);break;case"gradient":this.map.gradientFill.render(i,s);break;default:return void i.rollback()}i.closeNode(),i.commit()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):i.name==="fill"?(this.model={},!0):(this.parser=this.map[i.name],!!this.parser&&(this.parser.parseOpen(i),!0))}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return!!this.parser&&(this.parser.parseClose(i)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(i){return r.validPatternValues[i]}}r.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((u,i)=>(u[i]=!0,u),{}),r.StopXform=o,r.PatternFillXform=n,r.GradientFillXform=e,b.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,b,g){const c=t("./color-xform"),a=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),n=t("../simple/string-xform"),e=t("./underline-xform"),r=t("../../../utils/under-dash"),u=t("../base-xform");class i extends u{constructor(h){super(),this.options=h||i.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new c},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new n({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new n({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new n({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(h,f){const{map:l}=this;h.openNode(this.options.tagName),r.each(this.map,(p,m)=>{l[m].xform.render(h,f[p.prop])}),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):this.map[h.name]?(this.parser=this.map[h.name].xform,this.parser.parseOpen(h)):h.name===this.options.tagName?(this.model={},!0):!1}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser&&!this.parser.parseClose(h)){const f=this.map[h];return this.parser.model&&(this.model[f.prop]=this.parser.model),this.parser=void 0,!0}return h!==this.options.tagName}}i.OPTIONS={tagName:"font",fontNameTag:"name"},b.exports=i},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,b,g){const c=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),o=t("../base-xform"),n=(function(){const r={};return c.each(a,(u,i)=>{u.f&&(r[u.f]=parseInt(i,10))}),r})();class e extends o{constructor(u,i){super(),this.id=u,this.formatCode=i}get tag(){return"numFmt"}render(u,i){u.leafNode("numFmt",{numFmtId:i.id,formatCode:i.formatCode})}parseOpen(u){return u.name==="numFmt"?(this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0):!1}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(r){return n[r]},e.getDefaultFmtCode=function(r){return a[r]&&a[r].f},b.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,b,g){const c=t("../base-xform"),a={boolean:(o,n)=>o===void 0?n:o};b.exports=class extends c{get tag(){return"protection"}render(o,n){o.addRollback(),o.openNode("protection");let e=!1;function r(u,i){i!==void 0&&(o.addAttribute(u,i),e=!0)}r("locked",a.boolean(n.locked,!0)?void 0:"0"),r("hidden",a.boolean(n.hidden,!1)?"1":void 0),o.closeNode(),e?o.commit():o.rollback()}parseOpen(o){const n={locked:o.attributes.locked!=="0",hidden:o.attributes.hidden==="1"},e=!n.locked||n.hidden;this.model=e?n:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,b,g){const c=t("../base-xform"),a=t("./alignment-xform"),o=t("./protection-xform");b.exports=class extends c{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new a,protection:new o}}get tag(){return"xf"}render(n,e){n.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&n.addAttribute("xfId",e.xfId||0),e.numFmtId&&n.addAttribute("applyNumberFormat","1"),e.fontId&&n.addAttribute("applyFont","1"),e.fillId&&n.addAttribute("applyFill","1"),e.borderId&&n.addAttribute("applyBorder","1"),e.alignment&&n.addAttribute("applyAlignment","1"),e.protection&&n.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(n,e.alignment),e.protection&&this.map.protection.render(n,e.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"xf":return this.model={numFmtId:parseInt(n.attributes.numFmtId,10),fontId:parseInt(n.attributes.fontId,10),fillId:parseInt(n.attributes.fillId,10),borderId:parseInt(n.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(n.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(n),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):n!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,b,g){const c=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),u=t("./fill-xform"),i=t("./border-xform"),s=t("./numfmt-xform"),h=t("./style-xform"),f=t("./dxf-xform");class l extends o{constructor(m){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new s}),fonts:new e({tag:"fonts",count:!0,childXform:new r,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new u}),borders:new e({tag:"borders",count:!0,childXform:new i}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new h}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new h({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new s,font:new r,fill:new u,border:new i,style:new h({xfId:!0}),cellStyles:l.STATIC_XFORMS.cellStyles,tableStyles:l.STATIC_XFORMS.tableStyles,extLst:l.STATIC_XFORMS.extLst},m&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(m,_){_=_||this.model,m.openXml(a.StdDocAttributes),m.openNode("styleSheet",l.STYLESHEET_ATTRIBUTES),this.index?(_.numFmts&&_.numFmts.length&&(m.openNode("numFmts",{count:_.numFmts.length}),_.numFmts.forEach(k=>{m.writeXml(k)}),m.closeNode()),_.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),m.openNode("fonts",{count:_.fonts.length,"x14ac:knownFonts":1}),_.fonts.forEach(k=>{m.writeXml(k)}),m.closeNode(),m.openNode("fills",{count:_.fills.length}),_.fills.forEach(k=>{m.writeXml(k)}),m.closeNode(),m.openNode("borders",{count:_.borders.length}),_.borders.forEach(k=>{m.writeXml(k)}),m.closeNode(),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),m.openNode("cellXfs",{count:_.styles.length}),_.styles.forEach(k=>{m.writeXml(k)}),m.closeNode()):(this.map.numFmts.render(m,_.numFmts),this.map.fonts.render(m,_.fonts),this.map.fills.render(m,_.fills),this.map.borders.render(m,_.borders),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(m,_.styles)),l.STATIC_XFORMS.cellStyles.render(m),this.map.dxfs.render(m,_.dxfs),l.STATIC_XFORMS.tableStyles.render(m),l.STATIC_XFORMS.extLst.render(m),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):m.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0)}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"styleSheet":{this.model={};const _=(k,M)=>{M.model&&M.model.length&&(this.model[k]=M.model)};if(_("numFmts",this.map.numFmts),_("fonts",this.map.fonts),_("fills",this.map.fills),_("borders",this.map.borders),_("styles",this.map.cellXfs),_("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const k=this.index.numFmt;this.model.numFmts.forEach(M=>{k[M.id]=M.formatCode})}return!1}default:return!0}}addStyleModel(m,_){if(!m)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(m))return this.weakMap.get(m);const k={};if(_=_||c.ValueType.Number,m.numFmt)k.numFmtId=this._addNumFmtStr(m.numFmt);else switch(_){case c.ValueType.Number:k.numFmtId=this._addNumFmtStr("General");break;case c.ValueType.Date:k.numFmtId=this._addNumFmtStr("mm-dd-yy")}m.font&&(k.fontId=this._addFont(m.font)),m.border&&(k.borderId=this._addBorder(m.border)),m.fill&&(k.fillId=this._addFill(m.fill)),m.alignment&&(k.alignment=m.alignment),m.protection&&(k.protection=m.protection);const M=this._addStyle(k);return this.weakMap&&this.weakMap.set(m,M),M}getStyleModel(m){const _=this.model.styles[m];if(!_)return null;let k=this.index.model[m];if(k)return k;if(k=this.index.model[m]={},_.numFmtId){const j=this.index.numFmt[_.numFmtId]||s.getDefaultFmtCode(_.numFmtId);j&&(k.numFmt=j)}function M(j,z,A){if(A||A===0){const T=z[A];T&&(k[j]=T)}}return M("font",this.model.fonts,_.fontId),M("border",this.model.borders,_.borderId),M("fill",this.model.fills,_.fillId),_.alignment&&(k.alignment=_.alignment),_.protection&&(k.protection=_.protection),k}addDxfStyle(m){return m.numFmt&&(m.numFmtId=this._addNumFmtStr(m.numFmt)),this.model.dxfs.push(m),this.model.dxfs.length-1}getDxfStyle(m){return this.model.dxfs[m]}_addStyle(m){const _=this.map.style.toXml(m);let k=this.index.style[_];return k===void 0&&(k=this.index.style[_]=this.model.styles.length,this.model.styles.push(_)),k}_addNumFmtStr(m){let _=s.getDefaultFmtId(m);if(_!==void 0||(_=this.index.numFmt[m],_!==void 0))return _;_=this.index.numFmt[m]=164+this.model.numFmts.length;const k=this.map.numFmt.toXml({id:_,formatCode:m});return this.model.numFmts.push(k),_}_addFont(m){const _=this.map.font.toXml(m);let k=this.index.font[_];return k===void 0&&(k=this.index.font[_]=this.model.fonts.length,this.model.fonts.push(_)),k}_addBorder(m){const _=this.map.border.toXml(m);let k=this.index.border[_];return k===void 0&&(k=this.index.border[_]=this.model.borders.length,this.model.borders.push(_)),k}_addFill(m){const _=this.map.fill.toXml(m);let k=this.index.fill[_];return k===void 0&&(k=this.index.fill[_]=this.model.fills.length,this.model.fills.push(_)),k}}l.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},l.STATIC_XFORMS={cellStyles:new n({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new n({tag:"dxfs",$:{count:0}}),tableStyles:new n({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new n({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},l.Mock=class extends l{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(p){return p.autodrain(),Promise.resolve()}addStyleModel(p,m){return m===c.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const p={numFmtId:s.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(p)}return this._dateStyleId}getStyleModel(){return{}}},b.exports=l},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,b,g){const c=t("../base-xform");class a extends c{constructor(n){super(),this.model=n}get tag(){return"u"}render(n,e){if((e=e||this.model)===!0)n.leafNode("u");else{const r=a.Attributes[e];r&&n.leafNode("u",r)}}parseOpen(n){n.name==="u"&&(this.model=n.attributes.val||!0)}parseText(){}parseClose(){return!1}}a.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},b.exports=a},{"../base-xform":32}],137:[function(t,b,g){const c=t("../base-xform"),a=t("./filter-column-xform");b.exports=class extends c{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(o){o.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(o,n){return o.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(o,e)}),o.closeNode(),!0}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model={autoFilterRef:o.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[o.name],this.parser)return this.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(o===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+o)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"customFilter"}render(a,o){a.leafNode(this.tag,{val:o.val,operator:o.operator})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val,operator:a.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,b,g){const c=t("../base-xform"),a=t("../list-xform"),o=t("./custom-filter-xform"),n=t("./filter-xform");b.exports=class extends c{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new n})}}get tag(){return"filterColumn"}prepare(e,r){e.colId=r.index.toString()}render(e,r){return r.customFilters?(e.openNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),this.map.customFilters.render(e,r.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:r}=e;switch(e.name){case this.tag:return this.model={filterButton:r.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e===this.tag?(this.model.customFilters=this.map.customFilters.model,!1):!0}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"filter"}render(a,o){a.leafNode(this.tag,{val:o.val})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tableColumn"}prepare(a,o){a.id=o.index+1}render(a,o){return a.leafNode(this.tag,{id:o.id.toString(),name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,b,g){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tableStyleInfo"}render(a,o){return a.leafNode(this.tag,{name:o.theme?o.theme:void 0,showFirstColumn:o.showFirstColumn?"1":"0",showLastColumn:o.showLastColumn?"1":"0",showRowStripes:o.showRowStripes?"1":"0",showColumnStripes:o.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={theme:o.name?o.name:null,showFirstColumn:o.showFirstColumn==="1",showLastColumn:o.showLastColumn==="1",showRowStripes:o.showRowStripes==="1",showColumnStripes:o.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,b,g){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../list-xform"),n=t("./auto-filter-xform"),e=t("./table-column-xform"),r=t("./table-style-info-xform");class u extends a{constructor(){super(),this.map={autoFilter:new n,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new r}}prepare(s,h){this.map.autoFilter.prepare(s),this.map.tableColumns.prepare(s.columns,h)}get tag(){return"table"}render(s,h){s.openXml(c.StdDocAttributes),s.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:h.id,name:h.name,displayName:h.displayName||h.name,ref:h.tableRef,totalsRowCount:h.totalsRow?"1":void 0,totalsRowShown:h.totalsRow?void 0:"1",headerRowCount:h.headerRow?"1":"0"}),this.map.autoFilter.render(s,h),this.map.tableColumns.render(s,h.columns),this.map.tableStyleInfo.render(s,h.style),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;const{name:h,attributes:f}=s;return h===this.tag?(this.reset(),this.model={name:f.name,displayName:f.displayName||f.name,tableRef:f.ref,totalsRow:f.totalsRowCount==="1",headerRow:f.headerRowCount==="1"}):(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s===this.tag?(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((h,f)=>{this.model.columns[f].filterButton=h.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1):!0}reconcile(s,h){s.columns.forEach(f=>{f.dxfId!==void 0&&(f.style=h.styles.getDxfStyle(f.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},b.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,b,g){(function(c,a){(function(){const o=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),u=t("../utils/stream-buf"),i=t("../utils/utils"),s=t("../utils/xml-stream"),{bufferToString:h}=t("../utils/browser-buffer-decode"),f=t("./xform/style/styles-xform"),l=t("./xform/core/core-xform"),p=t("./xform/strings/shared-strings-xform"),m=t("./xform/core/relationships-xform"),_=t("./xform/core/content-types-xform"),k=t("./xform/core/app-xform"),M=t("./xform/book/workbook-xform"),j=t("./xform/sheet/worksheet-xform"),z=t("./xform/drawing/drawing-xform"),A=t("./xform/table/table-xform"),T=t("./xform/comment/comments-xform"),O=t("./xform/comment/vml-notes-xform"),L=t("./xml/theme1");class B{constructor(D){this.workbook=D}async readFile(D,w){if(!await i.fs.exists(D))throw new Error("File not found: "+D);const d=o.createReadStream(D);try{const v=await this.read(d,w);return d.close(),v}catch(v){throw d.close(),v}}parseRels(D){return new m().parseStream(D)}parseWorkbook(D){return new M().parseStream(D)}parseSharedStrings(D){return new p().parseStream(D)}reconcile(D,w){const d=new M,v=new j(w),y=new z,x=new A;d.reconcile(D);const C={media:D.media,mediaIndex:D.mediaIndex};Object.keys(D.drawings).forEach($=>{const V=D.drawings[$],X=D.drawingRels[$];X&&(C.rels=X.reduce((P,q)=>(P[q.Id]=q,P),{}),(V.anchors||[]).forEach(P=>{const q=P.picture&&P.picture.hyperlinks;q&&C.rels[q.rId]&&(q.hyperlink=C.rels[q.rId].Target,delete q.rId)}),y.reconcile(V,C))});const N={styles:D.styles};Object.values(D.tables).forEach($=>{x.reconcile($,N)});const R={styles:D.styles,sharedStrings:D.sharedStrings,media:D.media,mediaIndex:D.mediaIndex,date1904:D.properties&&D.properties.date1904,drawings:D.drawings,comments:D.comments,tables:D.tables,vmlDrawings:D.vmlDrawings};D.worksheets.forEach($=>{$.relationships=D.worksheetRels[$.sheetNo],v.reconcile($,R)}),delete D.worksheetHash,delete D.worksheetRels,delete D.globalRels,delete D.sharedStrings,delete D.workbookRels,delete D.sheetDefs,delete D.styles,delete D.mediaIndex,delete D.drawings,delete D.drawingRels,delete D.vmlDrawings}async _processWorksheetEntry(D,w,d,v,y){const x=new j(v),C=await x.parseStream(D);C.sheetNo=d,w.worksheetHash[y]=C,w.worksheets.push(C)}async _processCommentEntry(D,w,d){const v=new T,y=await v.parseStream(D);w.comments[`../${d}.xml`]=y}async _processTableEntry(D,w,d){const v=new A,y=await v.parseStream(D);w.tables[`../tables/${d}.xml`]=y}async _processWorksheetRelsEntry(D,w,d){const v=new m,y=await v.parseStream(D);w.worksheetRels[d]=y}async _processMediaEntry(D,w,d){const v=d.lastIndexOf(".");if(v>=1){const y=d.substr(v+1),x=d.substr(0,v);await new Promise((C,N)=>{const R=new u;R.on("finish",()=>{w.mediaIndex[d]=w.media.length,w.mediaIndex[x]=w.media.length;const $={type:"image",name:x,extension:y,buffer:R.toBuffer()};w.media.push($),C()}),D.on("error",$=>{N($)}),D.pipe(R)})}}async _processDrawingEntry(D,w,d){const v=new z,y=await v.parseStream(D);w.drawings[d]=y}async _processDrawingRelsEntry(D,w,d){const v=new m,y=await v.parseStream(D);w.drawingRels[d]=y}async _processVmlDrawingEntry(D,w,d){const v=new O,y=await v.parseStream(D);w.vmlDrawings[`../drawings/${d}.vml`]=y}async _processThemeEntry(D,w,d){await new Promise((v,y)=>{const x=new u;D.on("error",y),x.on("error",y),x.on("finish",()=>{w.themes[d]=x.read().toString(),v()}),D.pipe(x)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(D,w){!D[Symbol.asyncIterator]&&D.pipe&&(D=D.pipe(new e));const d=[];for await(const v of D)d.push(v);return this.load(a.concat(d),w)}async load(D,w){let d;d=w&&w.base64?a.from(D.toString(),"base64"):D;const v={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},y=await n.loadAsync(d);for(const x of Object.values(y.files))if(!x.dir){let C,N=x.name;if(N[0]==="/"&&(N=N.substr(1)),N.match(/xl\/media\//)||N.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))C=new e,C.write(await x.async("nodebuffer"));else{let R;C=new e({writableObjectMode:!0,readableObjectMode:!0}),R=c.browser?h(await x.async("nodebuffer")):await x.async("string");const $=16384;for(let V=0;V<R.length;V+=$)C.write(R.substring(V,V+$))}switch(C.end(),N){case"_rels/.rels":v.globalRels=await this.parseRels(C);break;case"xl/workbook.xml":{const R=await this.parseWorkbook(C);v.sheets=R.sheets,v.definedNames=R.definedNames,v.views=R.views,v.properties=R.properties,v.calcProperties=R.calcProperties;break}case"xl/_rels/workbook.xml.rels":v.workbookRels=await this.parseRels(C);break;case"xl/sharedStrings.xml":v.sharedStrings=new p,await v.sharedStrings.parseStream(C);break;case"xl/styles.xml":v.styles=new f,await v.styles.parseStream(C);break;case"docProps/app.xml":{const R=new k,$=await R.parseStream(C);v.company=$.company,v.manager=$.manager;break}case"docProps/core.xml":{const R=new l,$=await R.parseStream(C);Object.assign(v,$);break}default:{let R=N.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(R){await this._processWorksheetEntry(C,v,R[1],w,N);break}if(R=N.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),R){await this._processWorksheetRelsEntry(C,v,R[1]);break}if(R=N.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),R){await this._processThemeEntry(C,v,R[1]);break}if(R=N.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),R){await this._processMediaEntry(C,v,R[1]);break}if(R=N.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),R){await this._processDrawingEntry(C,v,R[1]);break}if(R=N.match(/xl\/(comments\d+)[.]xml/),R){await this._processCommentEntry(C,v,R[1]);break}if(R=N.match(/xl\/tables\/(table\d+)[.]xml/),R){await this._processTableEntry(C,v,R[1]);break}if(R=N.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),R){await this._processDrawingRelsEntry(C,v,R[1]);break}if(R=N.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),R){await this._processVmlDrawingEntry(C,v,R[1]);break}}}}return this.reconcile(v,w),this.workbook.model=v,this.workbook}async addMedia(D,w){await Promise.all(w.media.map(async d=>{if(d.type==="image"){const v=`xl/media/${d.name}.${d.extension}`;if(d.filename){const y=await(function(x,C){return new Promise((N,R)=>{o.readFile(x,C,($,V)=>{$?R($):N(V)})})})(d.filename);return D.append(y,{name:v})}if(d.buffer)return D.append(d.buffer,{name:v});if(d.base64){const y=d.base64,x=y.substring(y.indexOf(",")+1);return D.append(x,{name:v,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(D,w){const d=new z,v=new m;w.worksheets.forEach(y=>{const{drawing:x}=y;if(x){d.prepare(x,{});let C=d.toXml(x);D.append(C,{name:`xl/drawings/${x.name}.xml`}),C=v.toXml(x.rels),D.append(C,{name:`xl/drawings/_rels/${x.name}.xml.rels`})}})}addTables(D,w){const d=new A;w.worksheets.forEach(v=>{const{tables:y}=v;y.forEach(x=>{d.prepare(x,{});const C=d.toXml(x);D.append(C,{name:"xl/tables/"+x.target})})})}async addContentTypes(D,w){const d=new _().toXml(w);D.append(d,{name:"[Content_Types].xml"})}async addApp(D,w){const d=new k().toXml(w);D.append(d,{name:"docProps/app.xml"})}async addCore(D,w){const d=new l;D.append(d.toXml(w),{name:"docProps/core.xml"})}async addThemes(D,w){const d=w.themes||{theme1:L};Object.keys(d).forEach(v=>{const y=d[v],x=`xl/theme/${v}.xml`;D.append(y,{name:x})})}async addOfficeRels(D){const w=new m().toXml([{Id:"rId1",Type:B.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:B.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:B.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);D.append(w,{name:"_rels/.rels"})}async addWorkbookRels(D,w){let d=1;const v=[{Id:"rId"+d++,Type:B.RelType.Styles,Target:"styles.xml"},{Id:"rId"+d++,Type:B.RelType.Theme,Target:"theme/theme1.xml"}];w.sharedStrings.count&&v.push({Id:"rId"+d++,Type:B.RelType.SharedStrings,Target:"sharedStrings.xml"}),w.worksheets.forEach(x=>{x.rId="rId"+d++,v.push({Id:x.rId,Type:B.RelType.Worksheet,Target:`worksheets/sheet${x.id}.xml`})});const y=new m().toXml(v);D.append(y,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(D,w){w.sharedStrings&&w.sharedStrings.count&&D.append(w.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(D,w){const{xml:d}=w.styles;d&&D.append(d,{name:"xl/styles.xml"})}async addWorkbook(D,w){const d=new M;D.append(d.toXml(w),{name:"xl/workbook.xml"})}async addWorksheets(D,w){const d=new j,v=new m,y=new T,x=new O;w.worksheets.forEach(C=>{let N=new s;d.render(N,C),D.append(N.xml,{name:`xl/worksheets/sheet${C.id}.xml`}),C.rels&&C.rels.length&&(N=new s,v.render(N,C.rels),D.append(N.xml,{name:`xl/worksheets/_rels/sheet${C.id}.xml.rels`})),C.comments.length>0&&(N=new s,y.render(N,C),D.append(N.xml,{name:`xl/comments${C.id}.xml`}),N=new s,x.render(N,C),D.append(N.xml,{name:`xl/drawings/vmlDrawing${C.id}.vml`}))})}_finalize(D){return new Promise((w,d)=>{D.on("finish",()=>{w(this)}),D.on("error",d),D.finalize()})}prepareModel(D,w){D.creator=D.creator||"ExcelJS",D.lastModifiedBy=D.lastModifiedBy||"ExcelJS",D.created=D.created||new Date,D.modified=D.modified||new Date,D.useSharedStrings=w.useSharedStrings===void 0||w.useSharedStrings,D.useStyles=w.useStyles===void 0||w.useStyles,D.sharedStrings=new p,D.styles=D.useStyles?new f(!0):new f.Mock;const d=new M,v=new j;d.prepare(D);const y={sharedStrings:D.sharedStrings,styles:D.styles,date1904:D.properties.date1904,drawingsCount:0,media:D.media};y.drawings=D.drawings=[],y.commentRefs=D.commentRefs=[];let x=0;D.tables=[],D.worksheets.forEach(C=>{C.tables.forEach(N=>{x++,N.target=`table${x}.xml`,N.id=x,D.tables.push(N)}),v.prepare(C,y)})}async write(D,w){w=w||{};const{model:d}=this.workbook,v=new r.ZipWriter(w.zip);return v.pipe(D),this.prepareModel(d,w),await this.addContentTypes(v,d),await this.addOfficeRels(v,d),await this.addWorkbookRels(v,d),await this.addWorksheets(v,d),await this.addSharedStrings(v,d),await this.addDrawings(v,d),await this.addTables(v,d),await Promise.all([this.addThemes(v,d),this.addStyles(v,d)]),await this.addMedia(v,d),await Promise.all([this.addApp(v,d),this.addCore(v,d)]),await this.addWorkbook(v,d),this._finalize(v)}writeFile(D,w){const d=o.createWriteStream(D);return new Promise((v,y)=>{d.on("finish",()=>{v()}),d.on("error",x=>{y(x)}),this.write(d,w).then(()=>{d.end()}).catch(x=>{y(x)})})}async writeBuffer(D){const w=new u;return await this.write(w,D),w.read()}}B.RelType=t("./rel-type"),b.exports=B}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,b,g){b.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
11
|
+
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,b,g){(function(c){(function(){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvFormatterStream=void 0;const a=t("stream"),o=t("./formatter");class n extends a.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new o.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,u,i){let s=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(h,f)=>h?(s=!0,i(h)):(f&&f.forEach(l=>{this.push(c.from(l,"utf8"))}),s=!0,i()))}catch(h){if(s)throw h;i(h)}}_flush(r){this.rowFormatter.finish((u,i)=>u?r(u):(i&&i.forEach(s=>{this.push(c.from(s,"utf8"))}),r()))}}g.CsvFormatterStream=n}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.FormatterOptions=void 0,g.FormatterOptions=class{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var a;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
|
12
|
+
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,c||{}),c?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),c?.quote===!0?this.quote='"':c?.quote===!1&&(this.quote=""),typeof c?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=c.writeHeaders)===null||a===void 0||a),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,b,g){var c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(g,"__esModule",{value:!0}),g.FieldFormatter=void 0;const a=c(t("lodash.isboolean")),o=c(t("lodash.isnil")),n=c(t("lodash.escaperegexp"));g.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const r=`[${e.delimiter}${n.default(e.rowDelimiter)}|\r|
|
|
13
|
+
]`;this.ESCAPE_REGEXP=new RegExp(r)}set headers(e){this._headers=e}shouldQuote(e,r){const u=r?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(u)?u:Array.isArray(u)?u[e]:this._headers!==null&&u[this._headers[e]]}format(e,r,u){const i=(""+(o.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:s}=this;return s.quote!==""&&i.indexOf(s.quote)!==-1?this.quoteField(i.replace(this.REPLACE_REGEXP,s.escapedQuote)):i.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(r,u)?this.quoteField(i):i}quoteField(e){const{quote:r}=this.formatterOptions;return`${r}${e}${r}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(t,b,g){var c=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(g,"__esModule",{value:!0}),g.RowFormatter=void 0;const a=c(t("lodash.isfunction")),o=c(t("lodash.isequal")),n=t("./FieldFormatter"),e=t("../types");class r{constructor(i){this.rowCount=0,this.formatterOptions=i,this.fieldFormatter=new n.FieldFormatter(i),this.headers=i.headers,this.shouldWriteHeaders=i.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),i.transform&&(this.rowTransform=i.transform)}static isRowHashArray(i){return!!Array.isArray(i)&&Array.isArray(i[0])&&i[0].length===2}static isRowArray(i){return Array.isArray(i)&&!this.isRowHashArray(i)}static gatherHeaders(i){return r.isRowHashArray(i)?i.map(s=>s[0]):Array.isArray(i)?i:Object.keys(i)}static createTransform(i){return e.isSyncTransform(i)?(s,h)=>{let f=null;try{f=i(s)}catch(l){return h(l)}return h(null,f)}:(s,h)=>{i(s,h)}}set rowTransform(i){if(!a.default(i))throw new TypeError("The transform should be a function");this._rowTransform=r.createTransform(i)}format(i,s){this.callTransformer(i,(h,f)=>{if(h)return s(h);if(!i)return s(null);const l=[];if(f){const{shouldFormatColumns:p,headers:m}=this.checkHeaders(f);if(this.shouldWriteHeaders&&m&&!this.hasWrittenHeaders&&(l.push(this.formatColumns(m,!0)),this.hasWrittenHeaders=!0),p){const _=this.gatherColumns(f);l.push(this.formatColumns(_,!1))}}return s(null,l)})}finish(i){const s=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return i(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));s.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&s.push(this.formatterOptions.rowDelimiter),i(null,s)}checkHeaders(i){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const s=r.gatherHeaders(i);return this.headers=s,this.fieldFormatter.headers=s,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(s,i),headers:s}:{shouldFormatColumns:!0,headers:null}}gatherColumns(i){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(i)?r.isRowHashArray(i)?this.headers.map((s,h)=>{const f=i[h];return f?f[1]:""}):r.isRowArray(i)&&!this.shouldWriteHeaders?i:this.headers.map((s,h)=>i[h]):this.headers.map(s=>i[s])}callTransformer(i,s){return this._rowTransform?this._rowTransform(i,s):s(null,i)}formatColumns(i,s){const h=i.map((l,p)=>this.fieldFormatter.format(l,p,s)).join(this.formatterOptions.delimiter),{rowCount:f}=this;return this.rowCount+=1,f?[this.formatterOptions.rowDelimiter,h].join(""):h}}g.RowFormatter=r},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.FieldFormatter=g.RowFormatter=void 0;var c=t("./RowFormatter");Object.defineProperty(g,"RowFormatter",{enumerable:!0,get:function(){return c.RowFormatter}});var a=t("./FieldFormatter");Object.defineProperty(g,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(t,b,g){(function(c){(function(){var a=Object.create?function(p,m,_,k){k===void 0&&(k=_),Object.defineProperty(p,k,{enumerable:!0,get:function(){return m[_]}})}:function(p,m,_,k){k===void 0&&(k=_),p[k]=m[_]},o=Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m},n=function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var _ in p)_!=="default"&&Object.prototype.hasOwnProperty.call(p,_)&&a(m,p,_);return o(m,p),m},e=function(p,m){for(var _ in p)_==="default"||Object.prototype.hasOwnProperty.call(m,_)||a(m,p,_)};Object.defineProperty(g,"__esModule",{value:!0}),g.writeToPath=g.writeToString=g.writeToBuffer=g.writeToStream=g.write=g.format=g.FormatterOptions=g.CsvFormatterStream=void 0;const r=t("util"),u=t("stream"),i=n(t("fs")),s=t("./FormatterOptions"),h=t("./CsvFormatterStream");e(t("./types"),g);var f=t("./CsvFormatterStream");Object.defineProperty(g,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var l=t("./FormatterOptions");Object.defineProperty(g,"FormatterOptions",{enumerable:!0,get:function(){return l.FormatterOptions}}),g.format=p=>new h.CsvFormatterStream(new s.FormatterOptions(p)),g.write=(p,m)=>{const _=g.format(m),k=r.promisify((M,j)=>{_.write(M,void 0,j)});return p.reduce((M,j)=>M.then(()=>k(j)),Promise.resolve()).then(()=>_.end()).catch(M=>{_.emit("error",M)}),_},g.writeToStream=(p,m,_)=>g.write(m,_).pipe(p),g.writeToBuffer=function(p){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=[],k=new u.Writable({write(M,j,z){_.push(M),z()}});return new Promise((M,j)=>{k.on("error",j).on("finish",()=>M(c.concat(_))),g.write(p,m).pipe(k)})},g.writeToString=(p,m)=>g.writeToBuffer(p,m).then(_=>_.toString()),g.writeToPath=(p,m,_)=>{const k=i.createWriteStream(p,{encoding:"utf8"});return g.write(m,_).pipe(k)}}).call(this)}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isSyncTransform=void 0,g.isSyncTransform=c=>c.length===1},{}],153:[function(t,b,g){(function(c){(function(){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvParserStream=void 0;const a=t("string_decoder"),o=t("stream"),n=t("./transforms"),e=t("./parser");class r extends o.Transform{constructor(i){super({objectMode:i.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=i,this.parser=new e.Parser(i),this.headerTransformer=new n.HeaderTransformer(i),this.decoder=new a.StringDecoder(i.encoding),this.rowTransformerValidator=new n.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(i){return this.rowTransformerValidator.rowTransform=i,this}validate(i){return this.rowTransformerValidator.rowValidator=i,this}emit(i){if(i==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var s=arguments.length,h=new Array(s>1?s-1:0),f=1;f<s;f++)h[f-1]=arguments[f];return super.emit(i,...h)}_transform(i,s,h){if(this.hasHitRowLimit)return h();const f=r.wrapDoneCallback(h);try{const{lines:l}=this,p=l+this.decoder.write(i),m=this.parse(p,!0);return this.processRows(m,f)}catch(l){return f(l)}}_flush(i){const s=r.wrapDoneCallback(i);if(this.hasHitRowLimit)return s();try{const h=this.lines+this.decoder.end(),f=this.parse(h,!1);return this.processRows(f,s)}catch(h){return s(h)}}parse(i,s){if(!i)return[];const{line:h,rows:f}=this.parser.parse(i,s);return this.lines=h,f}processRows(i,s){const h=i.length,f=l=>{const p=k=>k?s(k):l%100!=0?f(l+1):void c(()=>f(l+1));if(this.checkAndEmitHeaders(),l>=h||this.hasHitRowLimit)return s();if(this.parsedLineCount+=1,this.shouldSkipLine)return p();const m=i[l];this.rowCount+=1,this.parsedRowCount+=1;const _=this.rowCount;return this.transformRow(m,(k,M)=>{if(k)return this.rowCount-=1,p(k);if(!M)return p(new Error("expected transform result"));if(M.isValid){if(M.row)return this.pushRow(M.row,p)}else this.emit("data-invalid",M.row,_,M.reason);return p()})};f(0)}transformRow(i,s){try{this.headerTransformer.transform(i,(h,f)=>h?s(h):f?f.isValid?f.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(f.row,s):this.skipRow(s):(this.rowCount-=1,this.parsedRowCount-=1,s(null,{row:null,isValid:!0})):this.shouldEmitRows?s(null,{isValid:!1,row:i}):this.skipRow(s):s(new Error("Expected result from header transform")))}catch(h){s(h)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(i){return this.rowCount-=1,i(null,{row:null,isValid:!0})}pushRow(i,s){try{this.parserOptions.objectMode?this.push(i):this.push(JSON.stringify(i)),s()}catch(h){s(h)}}static wrapDoneCallback(i){let s=!1;return function(h){if(h){if(s)throw h;return s=!0,void i(h)}for(var f=arguments.length,l=new Array(f>1?f-1:0),p=1;p<f;p++)l[p-1]=arguments[p];i(...l)}}}g.CsvParserStream=r}).call(this)}).call(this,t("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(t,b,g){var c=function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(g,"__esModule",{value:!0}),g.ParserOptions=void 0;const a=c(t("lodash.escaperegexp")),o=c(t("lodash.isnil"));g.ParserOptions=class{constructor(n){var e;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,n||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(e=this.escape)!==null&&e!==void 0?e:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(t,b,g){var c=Object.create?function(f,l,p,m){m===void 0&&(m=p),Object.defineProperty(f,m,{enumerable:!0,get:function(){return l[p]}})}:function(f,l,p,m){m===void 0&&(m=p),f[m]=l[p]},a=Object.create?function(f,l){Object.defineProperty(f,"default",{enumerable:!0,value:l})}:function(f,l){f.default=l},o=function(f){if(f&&f.__esModule)return f;var l={};if(f!=null)for(var p in f)p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)&&c(l,f,p);return a(l,f),l},n=function(f,l){for(var p in f)p==="default"||Object.prototype.hasOwnProperty.call(l,p)||c(l,f,p)};Object.defineProperty(g,"__esModule",{value:!0}),g.parseString=g.parseFile=g.parseStream=g.parse=g.ParserOptions=g.CsvParserStream=void 0;const e=o(t("fs")),r=t("stream"),u=t("./ParserOptions"),i=t("./CsvParserStream");n(t("./types"),g);var s=t("./CsvParserStream");Object.defineProperty(g,"CsvParserStream",{enumerable:!0,get:function(){return s.CsvParserStream}});var h=t("./ParserOptions");Object.defineProperty(g,"ParserOptions",{enumerable:!0,get:function(){return h.ParserOptions}}),g.parse=f=>new i.CsvParserStream(new u.ParserOptions(f)),g.parseStream=(f,l)=>f.pipe(new i.CsvParserStream(new u.ParserOptions(l))),g.parseFile=function(f){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.createReadStream(f).pipe(new i.CsvParserStream(new u.ParserOptions(l)))},g.parseString=(f,l)=>{const p=new r.Readable;return p.push(f),p.push(null),p.pipe(new i.CsvParserStream(new u.ParserOptions(l)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Parser=void 0;const c=t("./Scanner"),a=t("./RowParser"),o=t("./Token");class n{constructor(r){this.parserOptions=r,this.rowParser=new a.RowParser(this.parserOptions)}static removeBOM(r){return r&&r.charCodeAt(0)===65279?r.slice(1):r}parse(r,u){const i=new c.Scanner({line:n.removeBOM(r),parserOptions:this.parserOptions,hasMoreData:u});return this.parserOptions.supportsComments?this.parseWithComments(i):this.parseWithoutComments(i)}parseWithoutComments(r){const u=[];let i=!0;for(;i;)i=this.parseRow(r,u);return{line:r.line,rows:u}}parseWithComments(r){const{parserOptions:u}=this,i=[];for(let s=r.nextCharacterToken;s!==null;s=r.nextCharacterToken)if(o.Token.isTokenComment(s,u)){if(r.advancePastLine()===null)return{line:r.lineFromCursor,rows:i};if(!r.hasMoreCharacters)return{line:r.lineFromCursor,rows:i};r.truncateToCursor()}else if(!this.parseRow(r,i))break;return{line:r.line,rows:i}}parseRow(r,u){if(!r.nextNonSpaceToken)return!1;const i=this.rowParser.parse(r);return i!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(i)||u.push(i),!0)}}g.Parser=n},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.RowParser=void 0;const c=t("./column"),a=t("./Token");g.RowParser=class{constructor(o){this.parserOptions=o,this.columnParser=new c.ColumnParser(o)}static isEmptyRow(o){return o.join("").replace(/\s+/g,"")===""}parse(o){const{parserOptions:n}=this,{hasMoreData:e}=o,r=o,u=[];let i=this.getStartToken(r,u);for(;i;){if(a.Token.isTokenRowDelimiter(i))return r.advancePastToken(i),!r.hasMoreCharacters&&a.Token.isTokenCarriageReturn(i,n)&&e?null:(r.truncateToCursor(),u);if(!this.shouldSkipColumnParse(r,i,u)){const s=this.columnParser.parse(r);if(s===null)return null;u.push(s)}i=r.nextNonSpaceToken}return e?null:(r.truncateToCursor(),u)}getStartToken(o,n){const e=o.nextNonSpaceToken;return e!==null&&a.Token.isTokenDelimiter(e,this.parserOptions)?(n.push(""),o.nextNonSpaceToken):e}shouldSkipColumnParse(o,n,e){const{parserOptions:r}=this;if(a.Token.isTokenDelimiter(n,r)){o.advancePastToken(n);const u=o.nextCharacterToken;if(!o.hasMoreCharacters||u!==null&&a.Token.isTokenRowDelimiter(u)||u!==null&&a.Token.isTokenDelimiter(u,r))return e.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Scanner=void 0;const c=t("./Token"),a=/((?:\r\n)|\n|\r)/;g.Scanner=class{constructor(o){this.cursor=0,this.line=o.line,this.lineLength=this.line.length,this.parserOptions=o.parserOptions,this.hasMoreData=o.hasMoreData,this.cursor=o.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:o}=this,n=this.parserOptions.NEXT_TOKEN_REGEXP;if(o.search(n)===-1)return null;const e=n.exec(o);if(e==null)return null;const r=e[1],u=this.cursor+(e.index||0);return new c.Token({token:r,startCursor:u,endCursor:u+r.length-1})}get nextCharacterToken(){const{cursor:o,lineLength:n}=this;return n<=o?null:new c.Token({token:this.line[o],startCursor:o,endCursor:o})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const o=a.exec(this.lineFromCursor);return o?(this.cursor+=(o.index||0)+o[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(o){return this.cursor=o,this}advanceToToken(o){return this.cursor=o.startCursor,this}advancePastToken(o){return this.cursor=o.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Token=void 0,g.Token=class{constructor(c){this.token=c.token,this.startCursor=c.startCursor,this.endCursor=c.endCursor}static isTokenRowDelimiter(c){const a=c.token;return a==="\r"||a===`
|
|
14
|
+
`||a===`\r
|
|
15
|
+
`}static isTokenCarriageReturn(c,a){return c.token===a.carriageReturn}static isTokenComment(c,a){return a.supportsComments&&!!c&&c.token===a.comment}static isTokenEscapeCharacter(c,a){return c.token===a.escapeChar}static isTokenQuote(c,a){return c.token===a.quote}static isTokenDelimiter(c,a){return c.token===a.delimiter}}},{}],160:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnFormatter=void 0,g.ColumnFormatter=class{constructor(c){c.trim?this.format=a=>a.trim():c.ltrim?this.format=a=>a.trimLeft():c.rtrim?this.format=a=>a.trimRight():this.format=a=>a}}},{}],161:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnParser=void 0;const c=t("./NonQuotedColumnParser"),a=t("./QuotedColumnParser"),o=t("../Token");g.ColumnParser=class{constructor(n){this.parserOptions=n,this.quotedColumnParser=new a.QuotedColumnParser(n),this.nonQuotedColumnParser=new c.NonQuotedColumnParser(n)}parse(n){const{nextNonSpaceToken:e}=n;return e!==null&&o.Token.isTokenQuote(e,this.parserOptions)?(n.advanceToToken(e),this.quotedColumnParser.parse(n)):this.nonQuotedColumnParser.parse(n)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.NonQuotedColumnParser=void 0;const c=t("./ColumnFormatter"),a=t("../Token");g.NonQuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new c.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const{parserOptions:n}=this,e=[];let r=o.nextCharacterToken;for(;r&&!a.Token.isTokenDelimiter(r,n)&&!a.Token.isTokenRowDelimiter(r);r=o.nextCharacterToken)e.push(r.token),o.advancePastToken(r);return this.columnFormatter.format(e.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.QuotedColumnParser=void 0;const c=t("./ColumnFormatter"),a=t("../Token");g.QuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new c.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const n=o.cursor,{foundClosingQuote:e,col:r}=this.gatherDataBetweenQuotes(o);if(!e){if(o.advanceTo(n),!o.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${o.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(o),r}gatherDataBetweenQuotes(o){const{parserOptions:n}=this;let e=!1,r=!1;const u=[];let i=o.nextCharacterToken;for(;!r&&i!==null;i=o.nextCharacterToken){const s=a.Token.isTokenQuote(i,n);if(!e&&s)e=!0;else if(e)if(a.Token.isTokenEscapeCharacter(i,n)){o.advancePastToken(i);const h=o.nextCharacterToken;h!==null&&(a.Token.isTokenQuote(h,n)||a.Token.isTokenEscapeCharacter(h,n))?(u.push(h.token),i=h):s?r=!0:u.push(i.token)}else s?r=!0:u.push(i.token);o.advancePastToken(i)}return{col:this.columnFormatter.format(u.join("")),foundClosingQuote:r}}checkForMalformedColumn(o){const{parserOptions:n}=this,{nextNonSpaceToken:e}=o;if(e){const r=a.Token.isTokenDelimiter(e,n),u=a.Token.isTokenRowDelimiter(e);if(!r&&!u){const i=o.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${n.escapedDelimiter}' OR new line got: '${e.token}'. at '${i}`)}o.advanceToToken(e)}else o.hasMoreData||o.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnFormatter=g.QuotedColumnParser=g.NonQuotedColumnParser=g.ColumnParser=void 0;var c=t("./ColumnParser");Object.defineProperty(g,"ColumnParser",{enumerable:!0,get:function(){return c.ColumnParser}});var a=t("./NonQuotedColumnParser");Object.defineProperty(g,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var o=t("./QuotedColumnParser");Object.defineProperty(g,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var n=t("./ColumnFormatter");Object.defineProperty(g,"ColumnFormatter",{enumerable:!0,get:function(){return n.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.QuotedColumnParser=g.NonQuotedColumnParser=g.ColumnParser=g.Token=g.Scanner=g.RowParser=g.Parser=void 0;var c=t("./Parser");Object.defineProperty(g,"Parser",{enumerable:!0,get:function(){return c.Parser}});var a=t("./RowParser");Object.defineProperty(g,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var o=t("./Scanner");Object.defineProperty(g,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var n=t("./Token");Object.defineProperty(g,"Token",{enumerable:!0,get:function(){return n.Token}});var e=t("./column");Object.defineProperty(g,"ColumnParser",{enumerable:!0,get:function(){return e.ColumnParser}}),Object.defineProperty(g,"NonQuotedColumnParser",{enumerable:!0,get:function(){return e.NonQuotedColumnParser}}),Object.defineProperty(g,"QuotedColumnParser",{enumerable:!0,get:function(){return e.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(t,b,g){var c=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(g,"__esModule",{value:!0}),g.HeaderTransformer=void 0;const a=c(t("lodash.isundefined")),o=c(t("lodash.isfunction")),n=c(t("lodash.uniq")),e=c(t("lodash.groupby"));g.HeaderTransformer=class{constructor(r){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=r,r.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(r.headers)?this.setHeaders(r.headers):o.default(r.headers)&&(this.headersTransform=r.headers)}transform(r,u){return this.shouldMapRow(r)?u(null,this.processRow(r)):u(null,{row:null,isValid:!0})}shouldMapRow(r){const{parserOptions:u}=this;if(!this.headersTransform&&u.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(r)){if(this.headersTransform)this.setHeaders(this.headersTransform(r));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(r)}return!1}return!0}processRow(r){if(!this.headers)return{row:r,isValid:!0};const{parserOptions:u}=this;if(!u.discardUnmappedColumns&&r.length>this.headersLength){if(!u.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${r.length}`);return{row:r,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${r.length}`}}return u.strictColumnHandling&&r.length<this.headersLength?{row:r,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${r.length}`}:{row:this.mapHeaders(r),isValid:!0}}mapHeaders(r){const u={},{headers:i,headersLength:s}=this;for(let h=0;h<s;h+=1){const f=i[h];if(!a.default(f)){const l=r[h];a.default(l)?u[f]="":u[f]=l}}return u}setHeaders(r){var u;const i=r.filter(s=>!!s);if(n.default(i).length!==i.length){const s=e.default(i),h=Object.keys(s).filter(f=>s[f].length>1);throw new Error("Duplicate headers found "+JSON.stringify(h))}this.headers=r,this.receivedHeaders=!0,this.headersLength=((u=this.headers)===null||u===void 0?void 0:u.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(t,b,g){var c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(g,"__esModule",{value:!0}),g.RowTransformerValidator=void 0;const a=c(t("lodash.isfunction")),o=t("../types");class n{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(r){return o.isSyncTransform(r)?(u,i)=>{let s=null;try{s=r(u)}catch(h){return i(h)}return i(null,s)}:r}static createValidator(r){return o.isSyncValidate(r)?(u,i)=>{i(null,{row:u,isValid:r(u)})}:(u,i)=>{r(u,(s,h,f)=>s?i(s):i(null,h?{row:u,isValid:h,reason:f}:{row:u,isValid:!1,reason:f}))}}set rowTransform(r){if(!a.default(r))throw new TypeError("The transform should be a function");this._rowTransform=n.createTransform(r)}set rowValidator(r){if(!a.default(r))throw new TypeError("The validate should be a function");this._rowValidator=n.createValidator(r)}transformAndValidate(r,u){return this.callTransformer(r,(i,s)=>i?u(i):s?this.callValidator(s,(h,f)=>h?u(h):f&&!f.isValid?u(null,{row:s,isValid:!1,reason:f.reason}):u(null,{row:s,isValid:!0})):u(null,{row:null,isValid:!0}))}callTransformer(r,u){return this._rowTransform?this._rowTransform(r,u):u(null,r)}callValidator(r,u){return this._rowValidator?this._rowValidator(r,u):u(null,{row:r,isValid:!0})}}g.RowTransformerValidator=n},{"../types":169,"lodash.isfunction":446}],168:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.HeaderTransformer=g.RowTransformerValidator=void 0;var c=t("./RowTransformerValidator");Object.defineProperty(g,"RowTransformerValidator",{enumerable:!0,get:function(){return c.RowTransformerValidator}});var a=t("./HeaderTransformer");Object.defineProperty(g,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isSyncValidate=g.isSyncTransform=void 0,g.isSyncTransform=c=>c.length===1,g.isSyncValidate=c=>c.length===1},{}],170:[function(t,b,g){const c=g;c.bignum=t("bn.js"),c.define=t("./asn1/api").define,c.base=t("./asn1/base"),c.constants=t("./asn1/constants"),c.decoders=t("./asn1/decoders"),c.encoders=t("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(t,b,g){const c=t("./encoders"),a=t("./decoders"),o=t("inherits");function n(e,r){this.name=e,this.body=r,this.decoders={},this.encoders={}}g.define=function(e,r){return new n(e,r)},n.prototype._createNamed=function(e){const r=this.name;function u(i){this._initNamed(i,r)}return o(u,e),u.prototype._initNamed=function(i,s){e.call(this,i,s)},new u(this)},n.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a[e])),this.decoders[e]},n.prototype.decode=function(e,r,u){return this._getDecoder(r).decode(e,u)},n.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(c[e])),this.encoders[e]},n.prototype.encode=function(e,r,u){return this._getEncoder(r).encode(e,u)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(t,b,g){const c=t("inherits"),a=t("../base/reporter").Reporter,o=t("safer-buffer").Buffer;function n(r,u){a.call(this,u),o.isBuffer(r)?(this.base=r,this.offset=0,this.length=r.length):this.error("Input not Buffer")}function e(r,u){if(Array.isArray(r))this.length=0,this.value=r.map((function(i){return e.isEncoderBuffer(i)||(i=new e(i,u)),this.length+=i.length,i}),this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return u.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=o.byteLength(r);else{if(!o.isBuffer(r))return u.error("Unsupported type: "+typeof r);this.value=r,this.length=r.length}}c(n,a),g.DecoderBuffer=n,n.isDecoderBuffer=function(r){return r instanceof n?!0:typeof r=="object"&&o.isBuffer(r.base)&&r.constructor.name==="DecoderBuffer"&&typeof r.offset=="number"&&typeof r.length=="number"&&typeof r.save=="function"&&typeof r.restore=="function"&&typeof r.isEmpty=="function"&&typeof r.readUInt8=="function"&&typeof r.skip=="function"&&typeof r.raw=="function"},n.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},n.prototype.restore=function(r){const u=new n(this.base);return u.offset=r.offset,u.length=this.offset,this.offset=r.offset,a.prototype.restore.call(this,r.reporter),u},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(r){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(r||"DecoderBuffer overrun")},n.prototype.skip=function(r,u){if(!(this.offset+r<=this.length))return this.error(u||"DecoderBuffer overrun");const i=new n(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+r,this.offset+=r,i},n.prototype.raw=function(r){return this.base.slice(r?r.offset:this.offset,this.length)},g.EncoderBuffer=e,e.isEncoderBuffer=function(r){return r instanceof e?!0:typeof r=="object"&&r.constructor.name==="EncoderBuffer"&&typeof r.length=="number"&&typeof r.join=="function"},e.prototype.join=function(r,u){return r||(r=o.alloc(this.length)),u||(u=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(r,u),u+=i.length})):(typeof this.value=="number"?r[u]=this.value:typeof this.value=="string"?r.write(this.value,u):o.isBuffer(this.value)&&this.value.copy(r,u),u+=this.length)),r}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(t,b,g){const c=g;c.Reporter=t("./reporter").Reporter,c.DecoderBuffer=t("./buffer").DecoderBuffer,c.EncoderBuffer=t("./buffer").EncoderBuffer,c.Node=t("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(t,b,g){const c=t("../base/reporter").Reporter,a=t("../base/buffer").EncoderBuffer,o=t("../base/buffer").DecoderBuffer,n=t("minimalistic-assert"),e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],r=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e);function u(s,h,f){const l={};this._baseState=l,l.name=f,l.enc=s,l.parent=h||null,l.children=null,l.tag=null,l.args=null,l.reverseArgs=null,l.choice=null,l.optional=!1,l.any=!1,l.obj=!1,l.use=null,l.useDecoder=null,l.key=null,l.default=null,l.explicit=null,l.implicit=null,l.contains=null,l.parent||(l.children=[],this._wrap())}b.exports=u;const i=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const s=this._baseState,h={};i.forEach((function(l){h[l]=s[l]}));const f=new this.constructor(h.parent);return f._baseState=h,f},u.prototype._wrap=function(){const s=this._baseState;r.forEach((function(h){this[h]=function(){const f=new this.constructor(this);return s.children.push(f),f[h].apply(f,arguments)}}),this)},u.prototype._init=function(s){const h=this._baseState;n(h.parent===null),s.call(this),h.children=h.children.filter((function(f){return f._baseState.parent===this}),this),n.equal(h.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(s){const h=this._baseState,f=s.filter((function(l){return l instanceof this.constructor}),this);s=s.filter((function(l){return!(l instanceof this.constructor)}),this),f.length!==0&&(n(h.children===null),h.children=f,f.forEach((function(l){l._baseState.parent=this}),this)),s.length!==0&&(n(h.args===null),h.args=s,h.reverseArgs=s.map((function(l){if(typeof l!="object"||l.constructor!==Object)return l;const p={};return Object.keys(l).forEach((function(m){m==(0|m)&&(m|=0);const _=l[m];p[_]=m})),p})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(s){u.prototype[s]=function(){const h=this._baseState;throw new Error(s+" not implemented for encoding: "+h.enc)}})),e.forEach((function(s){u.prototype[s]=function(){const h=this._baseState,f=Array.prototype.slice.call(arguments);return n(h.tag===null),h.tag=s,this._useArgs(f),this}})),u.prototype.use=function(s){n(s);const h=this._baseState;return n(h.use===null),h.use=s,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(s){const h=this._baseState;return n(h.default===null),h.default=s,h.optional=!0,this},u.prototype.explicit=function(s){const h=this._baseState;return n(h.explicit===null&&h.implicit===null),h.explicit=s,this},u.prototype.implicit=function(s){const h=this._baseState;return n(h.explicit===null&&h.implicit===null),h.implicit=s,this},u.prototype.obj=function(){const s=this._baseState,h=Array.prototype.slice.call(arguments);return s.obj=!0,h.length!==0&&this._useArgs(h),this},u.prototype.key=function(s){const h=this._baseState;return n(h.key===null),h.key=s,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(s){const h=this._baseState;return n(h.choice===null),h.choice=s,this._useArgs(Object.keys(s).map((function(f){return s[f]}))),this},u.prototype.contains=function(s){const h=this._baseState;return n(h.use===null),h.contains=s,this},u.prototype._decode=function(s,h){const f=this._baseState;if(f.parent===null)return s.wrapResult(f.children[0]._decode(s,h));let l,p=f.default,m=!0,_=null;if(f.key!==null&&(_=s.enterKey(f.key)),f.optional){let k=null;if(f.explicit!==null?k=f.explicit:f.implicit!==null?k=f.implicit:f.tag!==null&&(k=f.tag),k!==null||f.any){if(m=this._peekTag(s,k,f.any),s.isError(m))return m}else{const M=s.save();try{f.choice===null?this._decodeGeneric(f.tag,s,h):this._decodeChoice(s,h),m=!0}catch{m=!1}s.restore(M)}}if(f.obj&&m&&(l=s.enterObject()),m){if(f.explicit!==null){const M=this._decodeTag(s,f.explicit);if(s.isError(M))return M;s=M}const k=s.offset;if(f.use===null&&f.choice===null){let M;f.any&&(M=s.save());const j=this._decodeTag(s,f.implicit!==null?f.implicit:f.tag,f.any);if(s.isError(j))return j;f.any?p=s.raw(M):s=j}if(h&&h.track&&f.tag!==null&&h.track(s.path(),k,s.length,"tagged"),h&&h.track&&f.tag!==null&&h.track(s.path(),s.offset,s.length,"content"),f.any||(p=f.choice===null?this._decodeGeneric(f.tag,s,h):this._decodeChoice(s,h)),s.isError(p))return p;if(f.any||f.choice!==null||f.children===null||f.children.forEach((function(M){M._decode(s,h)})),f.contains&&(f.tag==="octstr"||f.tag==="bitstr")){const M=new o(p);p=this._getUse(f.contains,s._reporterState.obj)._decode(M,h)}}return f.obj&&m&&(p=s.leaveObject(l)),f.key===null||p===null&&m!==!0?_!==null&&s.exitKey(_):s.leaveKey(_,f.key,p),p},u.prototype._decodeGeneric=function(s,h,f){const l=this._baseState;return s==="seq"||s==="set"?null:s==="seqof"||s==="setof"?this._decodeList(h,s,l.args[0],f):/str$/.test(s)?this._decodeStr(h,s,f):s==="objid"&&l.args?this._decodeObjid(h,l.args[0],l.args[1],f):s==="objid"?this._decodeObjid(h,null,null,f):s==="gentime"||s==="utctime"?this._decodeTime(h,s,f):s==="null_"?this._decodeNull(h,f):s==="bool"?this._decodeBool(h,f):s==="objDesc"?this._decodeStr(h,s,f):s==="int"||s==="enum"?this._decodeInt(h,l.args&&l.args[0],f):l.use!==null?this._getUse(l.use,h._reporterState.obj)._decode(h,f):h.error("unknown tag: "+s)},u.prototype._getUse=function(s,h){const f=this._baseState;return f.useDecoder=this._use(s,h),n(f.useDecoder._baseState.parent===null),f.useDecoder=f.useDecoder._baseState.children[0],f.implicit!==f.useDecoder._baseState.implicit&&(f.useDecoder=f.useDecoder.clone(),f.useDecoder._baseState.implicit=f.implicit),f.useDecoder},u.prototype._decodeChoice=function(s,h){const f=this._baseState;let l=null,p=!1;return Object.keys(f.choice).some((function(m){const _=s.save(),k=f.choice[m];try{const M=k._decode(s,h);if(s.isError(M))return!1;l={type:m,value:M},p=!0}catch{return s.restore(_),!1}return!0}),this),p?l:s.error("Choice not matched")},u.prototype._createEncoderBuffer=function(s){return new a(s,this.reporter)},u.prototype._encode=function(s,h,f){const l=this._baseState;if(l.default!==null&&l.default===s)return;const p=this._encodeValue(s,h,f);return p===void 0||this._skipDefault(p,h,f)?void 0:p},u.prototype._encodeValue=function(s,h,f){const l=this._baseState;if(l.parent===null)return l.children[0]._encode(s,h||new c);let p=null;if(this.reporter=h,l.optional&&s===void 0){if(l.default===null)return;s=l.default}let m=null,_=!1;if(l.any)p=this._createEncoderBuffer(s);else if(l.choice)p=this._encodeChoice(s,h);else if(l.contains)m=this._getUse(l.contains,f)._encode(s,h),_=!0;else if(l.children)m=l.children.map((function(k){if(k._baseState.tag==="null_")return k._encode(null,h,s);if(k._baseState.key===null)return h.error("Child should have a key");const M=h.enterKey(k._baseState.key);if(typeof s!="object")return h.error("Child expected, but input is not object");const j=k._encode(s[k._baseState.key],h,s);return h.leaveKey(M),j}),this).filter((function(k){return k})),m=this._createEncoderBuffer(m);else if(l.tag==="seqof"||l.tag==="setof"){if(!l.args||l.args.length!==1)return h.error("Too many args for : "+l.tag);if(!Array.isArray(s))return h.error("seqof/setof, but data is not Array");const k=this.clone();k._baseState.implicit=null,m=this._createEncoderBuffer(s.map((function(M){const j=this._baseState;return this._getUse(j.args[0],s)._encode(M,h)}),k))}else l.use!==null?p=this._getUse(l.use,f)._encode(s,h):(m=this._encodePrimitive(l.tag,s),_=!0);if(!l.any&&l.choice===null){const k=l.implicit!==null?l.implicit:l.tag,M=l.implicit===null?"universal":"context";k===null?l.use===null&&h.error("Tag could be omitted only for .use()"):l.use===null&&(p=this._encodeComposite(k,_,M,m))}return l.explicit!==null&&(p=this._encodeComposite(l.explicit,!1,"context",p)),p},u.prototype._encodeChoice=function(s,h){const f=this._baseState,l=f.choice[s.type];return l||n(!1,s.type+" not found in "+JSON.stringify(Object.keys(f.choice))),l._encode(s.value,h)},u.prototype._encodePrimitive=function(s,h){const f=this._baseState;if(/str$/.test(s))return this._encodeStr(h,s);if(s==="objid"&&f.args)return this._encodeObjid(h,f.reverseArgs[0],f.args[1]);if(s==="objid")return this._encodeObjid(h,null,null);if(s==="gentime"||s==="utctime")return this._encodeTime(h,s);if(s==="null_")return this._encodeNull();if(s==="int"||s==="enum")return this._encodeInt(h,f.args&&f.reverseArgs[0]);if(s==="bool")return this._encodeBool(h);if(s==="objDesc")return this._encodeStr(h,s);throw new Error("Unsupported tag: "+s)},u.prototype._isNumstr=function(s){return/^[0-9 ]*$/.test(s)},u.prototype._isPrintstr=function(s){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(s)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(t,b,g){const c=t("inherits");function a(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}function o(n,e){this.path=n,this.rethrow(e)}g.Reporter=a,a.prototype.isError=function(n){return n instanceof o},a.prototype.save=function(){const n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},a.prototype.restore=function(n){const e=this._reporterState;e.obj=n.obj,e.path=e.path.slice(0,n.pathLen)},a.prototype.enterKey=function(n){return this._reporterState.path.push(n)},a.prototype.exitKey=function(n){const e=this._reporterState;e.path=e.path.slice(0,n-1)},a.prototype.leaveKey=function(n,e,r){const u=this._reporterState;this.exitKey(n),u.obj!==null&&(u.obj[e]=r)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){const n=this._reporterState,e=n.obj;return n.obj={},e},a.prototype.leaveObject=function(n){const e=this._reporterState,r=e.obj;return e.obj=n,r},a.prototype.error=function(n){let e;const r=this._reporterState,u=n instanceof o;if(e=u?n:new o(r.path.map((function(i){return"["+JSON.stringify(i)+"]"})).join(""),n.message||n,n.stack),!r.options.partial)throw e;return u||r.errors.push(e),e},a.prototype.wrapResult=function(n){const e=this._reporterState;return e.options.partial?{result:this.isError(n)?null:n,errors:e.errors}:n},c(o,Error),o.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(t,b,g){function c(a){const o={};return Object.keys(a).forEach((function(n){(0|n)==n&&(n|=0);const e=a[n];o[e]=n})),o}g.tagClass={0:"universal",1:"application",2:"context",3:"private"},g.tagClassByName=c(g.tagClass),g.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},g.tagByName=c(g.tag)},{}],177:[function(t,b,g){const c=g;c._reverse=function(a){const o={};return Object.keys(a).forEach((function(n){(0|n)==n&&(n|=0);const e=a[n];o[e]=n})),o},c.der=t("./der")},{"./der":176}],178:[function(t,b,g){const c=t("inherits"),a=t("bn.js"),o=t("../base/buffer").DecoderBuffer,n=t("../base/node"),e=t("../constants/der");function r(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new u,this.tree._init(h.body)}function u(h){n.call(this,"der",h)}function i(h,f){let l=h.readUInt8(f);if(h.isError(l))return l;const p=e.tagClass[l>>6],m=(32&l)==0;if((31&l)==31){let _=l;for(l=0;(128&_)==128;){if(_=h.readUInt8(f),h.isError(_))return _;l<<=7,l|=127&_}}else l&=31;return{cls:p,primitive:m,tag:l,tagStr:e.tag[l]}}function s(h,f,l){let p=h.readUInt8(l);if(h.isError(p))return p;if(!f&&p===128)return null;if((128&p)==0)return p;const m=127&p;if(m>4)return h.error("length octect is too long");p=0;for(let _=0;_<m;_++){p<<=8;const k=h.readUInt8(l);if(h.isError(k))return k;p|=k}return p}b.exports=r,r.prototype.decode=function(h,f){return o.isDecoderBuffer(h)||(h=new o(h,f)),this.tree._decode(h,f)},c(u,n),u.prototype._peekTag=function(h,f,l){if(h.isEmpty())return!1;const p=h.save(),m=i(h,'Failed to peek tag: "'+f+'"');return h.isError(m)?m:(h.restore(p),m.tag===f||m.tagStr===f||m.tagStr+"of"===f||l)},u.prototype._decodeTag=function(h,f,l){const p=i(h,'Failed to decode tag of "'+f+'"');if(h.isError(p))return p;let m=s(h,p.primitive,'Failed to get length of "'+f+'"');if(h.isError(m))return m;if(!l&&p.tag!==f&&p.tagStr!==f&&p.tagStr+"of"!==f)return h.error('Failed to match tag: "'+f+'"');if(p.primitive||m!==null)return h.skip(m,'Failed to match body of: "'+f+'"');const _=h.save(),k=this._skipUntilEnd(h,'Failed to skip indefinite length body: "'+this.tag+'"');return h.isError(k)?k:(m=h.offset-_.offset,h.restore(_),h.skip(m,'Failed to match body of: "'+f+'"'))},u.prototype._skipUntilEnd=function(h,f){for(;;){const l=i(h,f);if(h.isError(l))return l;const p=s(h,l.primitive,f);if(h.isError(p))return p;let m;if(m=l.primitive||p!==null?h.skip(p):this._skipUntilEnd(h,f),h.isError(m))return m;if(l.tagStr==="end")break}},u.prototype._decodeList=function(h,f,l,p){const m=[];for(;!h.isEmpty();){const _=this._peekTag(h,"end");if(h.isError(_))return _;const k=l.decode(h,"der",p);if(h.isError(k)&&_)break;m.push(k)}return m},u.prototype._decodeStr=function(h,f){if(f==="bitstr"){const l=h.readUInt8();return h.isError(l)?l:{unused:l,data:h.raw()}}if(f==="bmpstr"){const l=h.raw();if(l.length%2==1)return h.error("Decoding of string type: bmpstr length mismatch");let p="";for(let m=0;m<l.length/2;m++)p+=String.fromCharCode(l.readUInt16BE(2*m));return p}if(f==="numstr"){const l=h.raw().toString("ascii");return this._isNumstr(l)?l:h.error("Decoding of string type: numstr unsupported characters")}if(f==="octstr"||f==="objDesc")return h.raw();if(f==="printstr"){const l=h.raw().toString("ascii");return this._isPrintstr(l)?l:h.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(f)?h.raw().toString():h.error("Decoding of string type: "+f+" unsupported")},u.prototype._decodeObjid=function(h,f,l){let p;const m=[];let _=0,k=0;for(;!h.isEmpty();)k=h.readUInt8(),_<<=7,_|=127&k,(128&k)==0&&(m.push(_),_=0);128&k&&m.push(_);const M=m[0]/40|0,j=m[0]%40;if(p=l?m:[M,j].concat(m.slice(1)),f){let z=f[p.join(" ")];z===void 0&&(z=f[p.join(".")]),z!==void 0&&(p=z)}return p},u.prototype._decodeTime=function(h,f){const l=h.raw().toString();let p,m,_,k,M,j;if(f==="gentime")p=0|l.slice(0,4),m=0|l.slice(4,6),_=0|l.slice(6,8),k=0|l.slice(8,10),M=0|l.slice(10,12),j=0|l.slice(12,14);else{if(f!=="utctime")return h.error("Decoding "+f+" time is not supported yet");p=0|l.slice(0,2),m=0|l.slice(2,4),_=0|l.slice(4,6),k=0|l.slice(6,8),M=0|l.slice(8,10),j=0|l.slice(10,12),p=p<70?2e3+p:1900+p}return Date.UTC(p,m-1,_,k,M,j,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(h){const f=h.readUInt8();return h.isError(f)?f:f!==0},u.prototype._decodeInt=function(h,f){const l=h.raw();let p=new a(l);return f&&(p=f[p.toString(10)]||p),p},u.prototype._use=function(h,f){return typeof h=="function"&&(h=h(f)),h._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(t,b,g){const c=g;c.der=t("./der"),c.pem=t("./pem")},{"./der":178,"./pem":180}],180:[function(t,b,g){const c=t("inherits"),a=t("safer-buffer").Buffer,o=t("./der");function n(e){o.call(this,e),this.enc="pem"}c(n,o),b.exports=n,n.prototype.decode=function(e,r){const u=e.toString().split(/[\r\n]+/g),i=r.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let h=-1,f=-1;for(let m=0;m<u.length;m++){const _=u[m].match(s);if(_!==null&&_[2]===i){if(h!==-1){if(_[1]!=="END")break;f=m;break}if(_[1]!=="BEGIN")break;h=m}}if(h===-1||f===-1)throw new Error("PEM section not found for: "+i);const l=u.slice(h+1,f).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const p=a.from(l,"base64");return o.prototype.decode.call(this,p,r)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(t,b,g){const c=t("inherits"),a=t("safer-buffer").Buffer,o=t("../base/node"),n=t("../constants/der");function e(i){this.enc="der",this.name=i.name,this.entity=i,this.tree=new r,this.tree._init(i.body)}function r(i){o.call(this,"der",i)}function u(i){return i<10?"0"+i:i}b.exports=e,e.prototype.encode=function(i,s){return this.tree._encode(i,s).join()},c(r,o),r.prototype._encodeComposite=function(i,s,h,f){const l=(function(_,k,M,j){let z;if(_==="seqof"?_="seq":_==="setof"&&(_="set"),n.tagByName.hasOwnProperty(_))z=n.tagByName[_];else{if(typeof _!="number"||(0|_)!==_)return j.error("Unknown tag: "+_);z=_}return z>=31?j.error("Multi-octet tag encoding unsupported"):(k||(z|=32),z|=n.tagClassByName[M||"universal"]<<6,z)})(i,s,h,this.reporter);if(f.length<128){const _=a.alloc(2);return _[0]=l,_[1]=f.length,this._createEncoderBuffer([_,f])}let p=1;for(let _=f.length;_>=256;_>>=8)p++;const m=a.alloc(2+p);m[0]=l,m[1]=128|p;for(let _=1+p,k=f.length;k>0;_--,k>>=8)m[_]=255&k;return this._createEncoderBuffer([m,f])},r.prototype._encodeStr=function(i,s){if(s==="bitstr")return this._createEncoderBuffer([0|i.unused,i.data]);if(s==="bmpstr"){const h=a.alloc(2*i.length);for(let f=0;f<i.length;f++)h.writeUInt16BE(i.charCodeAt(f),2*f);return this._createEncoderBuffer(h)}return s==="numstr"?this._isNumstr(i)?this._createEncoderBuffer(i):this.reporter.error("Encoding of string type: numstr supports only digits and space"):s==="printstr"?this._isPrintstr(i)?this._createEncoderBuffer(i):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(s)||s==="objDesc"?this._createEncoderBuffer(i):this.reporter.error("Encoding of string type: "+s+" unsupported")},r.prototype._encodeObjid=function(i,s,h){if(typeof i=="string"){if(!s)return this.reporter.error("string objid given, but no values map found");if(!s.hasOwnProperty(i))return this.reporter.error("objid not found in values map");i=s[i].split(/[\s.]+/g);for(let m=0;m<i.length;m++)i[m]|=0}else if(Array.isArray(i)){i=i.slice();for(let m=0;m<i.length;m++)i[m]|=0}if(!Array.isArray(i))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(i));if(!h){if(i[1]>=40)return this.reporter.error("Second objid identifier OOB");i.splice(0,2,40*i[0]+i[1])}let f=0;for(let m=0;m<i.length;m++){let _=i[m];for(f++;_>=128;_>>=7)f++}const l=a.alloc(f);let p=l.length-1;for(let m=i.length-1;m>=0;m--){let _=i[m];for(l[p--]=127&_;(_>>=7)>0;)l[p--]=128|127&_}return this._createEncoderBuffer(l)},r.prototype._encodeTime=function(i,s){let h;const f=new Date(i);return s==="gentime"?h=[u(f.getUTCFullYear()),u(f.getUTCMonth()+1),u(f.getUTCDate()),u(f.getUTCHours()),u(f.getUTCMinutes()),u(f.getUTCSeconds()),"Z"].join(""):s==="utctime"?h=[u(f.getUTCFullYear()%100),u(f.getUTCMonth()+1),u(f.getUTCDate()),u(f.getUTCHours()),u(f.getUTCMinutes()),u(f.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+s+" time is not supported yet"),this._encodeStr(h,"octstr")},r.prototype._encodeNull=function(){return this._createEncoderBuffer("")},r.prototype._encodeInt=function(i,s){if(typeof i=="string"){if(!s)return this.reporter.error("String int or enum given, but no values map");if(!s.hasOwnProperty(i))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(i));i=s[i]}if(typeof i!="number"&&!a.isBuffer(i)){const l=i.toArray();!i.sign&&128&l[0]&&l.unshift(0),i=a.from(l)}if(a.isBuffer(i)){let l=i.length;i.length===0&&l++;const p=a.alloc(l);return i.copy(p),i.length===0&&(p[0]=0),this._createEncoderBuffer(p)}if(i<128)return this._createEncoderBuffer(i);if(i<256)return this._createEncoderBuffer([0,i]);let h=1;for(let l=i;l>=256;l>>=8)h++;const f=new Array(h);for(let l=f.length-1;l>=0;l--)f[l]=255&i,i>>=8;return 128&f[0]&&f.unshift(0),this._createEncoderBuffer(a.from(f))},r.prototype._encodeBool=function(i){return this._createEncoderBuffer(i?255:0)},r.prototype._use=function(i,s){return typeof i=="function"&&(i=i(s)),i._getEncoder("der").tree},r.prototype._skipDefault=function(i,s,h){const f=this._baseState;let l;if(f.default===null)return!1;const p=i.join();if(f.defaultBuffer===void 0&&(f.defaultBuffer=this._encodeValue(f.default,s,h).join()),p.length!==f.defaultBuffer.length)return!1;for(l=0;l<p.length;l++)if(p[l]!==f.defaultBuffer[l])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(t,b,g){const c=g;c.der=t("./der"),c.pem=t("./pem")},{"./der":181,"./pem":183}],183:[function(t,b,g){const c=t("inherits"),a=t("./der");function o(n){a.call(this,n),this.enc="pem"}c(o,a),b.exports=o,o.prototype.encode=function(n,e){const r=a.prototype.encode.call(this,n).toString("base64"),u=["-----BEGIN "+e.label+"-----"];for(let i=0;i<r.length;i+=64)u.push(r.slice(i,i+64));return u.push("-----END "+e.label+"-----"),u.join(`
|
|
16
|
+
`)}},{"./der":181,inherits:440}],184:[function(t,b,g){(function(c,a){function o(S,D){if(!S)throw new Error(D||"Assertion failed")}function n(S,D){S.super_=D;var w=function(){};w.prototype=D.prototype,S.prototype=new w,S.prototype.constructor=S}function e(S,D,w){if(e.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&(D!=="le"&&D!=="be"||(w=D,D=10),this._init(S||0,D||10,w||"be"))}var r;typeof c=="object"?c.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{r=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(S,D){var w=S.charCodeAt(D);return w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:w-48&15}function i(S,D,w){var d=u(S,w);return w-1>=D&&(d|=u(S,w-1)<<4),d}function s(S,D,w,d){for(var v=0,y=Math.min(S.length,w),x=D;x<y;x++){var C=S.charCodeAt(x)-48;v*=d,v+=C>=49?C-49+10:C>=17?C-17+10:C}return v}e.isBN=function(S){return S instanceof e||S!==null&&typeof S=="object"&&S.constructor.wordSize===e.wordSize&&Array.isArray(S.words)},e.max=function(S,D){return S.cmp(D)>0?S:D},e.min=function(S,D){return S.cmp(D)<0?S:D},e.prototype._init=function(S,D,w){if(typeof S=="number")return this._initNumber(S,D,w);if(typeof S=="object")return this._initArray(S,D,w);D==="hex"&&(D=16),o(D===(0|D)&&D>=2&&D<=36);var d=0;(S=S.toString().replace(/\s+/g,""))[0]==="-"&&(d++,this.negative=1),d<S.length&&(D===16?this._parseHex(S,d,w):(this._parseBase(S,D,d),w==="le"&&this._initArray(this.toArray(),D,w)))},e.prototype._initNumber=function(S,D,w){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[67108863&S],this.length=1):S<4503599627370496?(this.words=[67108863&S,S/67108864&67108863],this.length=2):(o(S<9007199254740992),this.words=[67108863&S,S/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),D,w)},e.prototype._initArray=function(S,D,w){if(o(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var v,y,x=0;if(w==="be")for(d=S.length-1,v=0;d>=0;d-=3)y=S[d]|S[d-1]<<8|S[d-2]<<16,this.words[v]|=y<<x&67108863,this.words[v+1]=y>>>26-x&67108863,(x+=24)>=26&&(x-=26,v++);else if(w==="le")for(d=0,v=0;d<S.length;d+=3)y=S[d]|S[d+1]<<8|S[d+2]<<16,this.words[v]|=y<<x&67108863,this.words[v+1]=y>>>26-x&67108863,(x+=24)>=26&&(x-=26,v++);return this.strip()},e.prototype._parseHex=function(S,D,w){this.length=Math.ceil((S.length-D)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var v,y=0,x=0;if(w==="be")for(d=S.length-1;d>=D;d-=2)v=i(S,D,d)<<y,this.words[x]|=67108863&v,y>=18?(y-=18,x+=1,this.words[x]|=v>>>26):y+=8;else for(d=(S.length-D)%2==0?D+1:D;d<S.length;d+=2)v=i(S,D,d)<<y,this.words[x]|=67108863&v,y>=18?(y-=18,x+=1,this.words[x]|=v>>>26):y+=8;this.strip()},e.prototype._parseBase=function(S,D,w){this.words=[0],this.length=1;for(var d=0,v=1;v<=67108863;v*=D)d++;d--,v=v/D|0;for(var y=S.length-w,x=y%d,C=Math.min(y,y-x)+w,N=0,R=w;R<C;R+=d)N=s(S,R,R+d,D),this.imuln(v),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N);if(x!==0){var $=1;for(N=s(S,R,S.length,D),R=0;R<x;R++)$*=D;this.imuln($),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N)}this.strip()},e.prototype.copy=function(S){S.words=new Array(this.length);for(var D=0;D<this.length;D++)S.words[D]=this.words[D];S.length=this.length,S.negative=this.negative,S.red=this.red},e.prototype.clone=function(){var S=new e(null);return this.copy(S),S},e.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},e.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},e.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(S,D,w){w.negative=D.negative^S.negative;var d=S.length+D.length|0;w.length=d,d=d-1|0;var v=0|S.words[0],y=0|D.words[0],x=v*y,C=67108863&x,N=x/67108864|0;w.words[0]=C;for(var R=1;R<d;R++){for(var $=N>>>26,V=67108863&N,X=Math.min(R,D.length-1),P=Math.max(0,R-S.length+1);P<=X;P++){var q=R-P|0;$+=(x=(v=0|S.words[q])*(y=0|D.words[P])+V)/67108864|0,V=67108863&x}w.words[R]=0|V,N=0|$}return N!==0?w.words[R]=0|N:w.length--,w.strip()}e.prototype.toString=function(S,D){var w;if(D=0|D||1,(S=S||10)===16||S==="hex"){w="";for(var d=0,v=0,y=0;y<this.length;y++){var x=this.words[y],C=(16777215&(x<<d|v)).toString(16);w=(v=x>>>24-d&16777215)!==0||y!==this.length-1?h[6-C.length]+C+w:C+w,(d+=2)>=26&&(d-=26,y--)}for(v!==0&&(w=v.toString(16)+w);w.length%D!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(S===(0|S)&&S>=2&&S<=36){var N=f[S],R=l[S];w="";var $=this.clone();for($.negative=0;!$.isZero();){var V=$.modn(R).toString(S);w=($=$.idivn(R)).isZero()?V+w:h[N-V.length]+V+w}for(this.isZero()&&(w="0"+w);w.length%D!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}o(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=67108864*this.words[1]:this.length===3&&this.words[2]===1?S+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},e.prototype.toJSON=function(){return this.toString(16)},e.prototype.toBuffer=function(S,D){return o(r!==void 0),this.toArrayLike(r,S,D)},e.prototype.toArray=function(S,D){return this.toArrayLike(Array,S,D)},e.prototype.toArrayLike=function(S,D,w){var d=this.byteLength(),v=w||Math.max(1,d);o(d<=v,"byte array longer than desired length"),o(v>0,"Requested array length <= 0"),this.strip();var y,x,C=D==="le",N=new S(v),R=this.clone();if(C){for(x=0;!R.isZero();x++)y=R.andln(255),R.iushrn(8),N[x]=y;for(;x<v;x++)N[x]=0}else{for(x=0;x<v-d;x++)N[x]=0;for(x=0;!R.isZero();x++)y=R.andln(255),R.iushrn(8),N[v-x-1]=y}return N},Math.clz32?e.prototype._countBits=function(S){return 32-Math.clz32(S)}:e.prototype._countBits=function(S){var D=S,w=0;return D>=4096&&(w+=13,D>>>=13),D>=64&&(w+=7,D>>>=7),D>=8&&(w+=4,D>>>=4),D>=2&&(w+=2,D>>>=2),w+D},e.prototype._zeroBits=function(S){if(S===0)return 26;var D=S,w=0;return(8191&D)==0&&(w+=13,D>>>=13),(127&D)==0&&(w+=7,D>>>=7),(15&D)==0&&(w+=4,D>>>=4),(3&D)==0&&(w+=2,D>>>=2),(1&D)==0&&w++,w},e.prototype.bitLength=function(){var S=this.words[this.length-1],D=this._countBits(S);return 26*(this.length-1)+D},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,D=0;D<this.length;D++){var w=this._zeroBits(this.words[D]);if(S+=w,w!==26)break}return S},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},e.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var D=0;D<S.length;D++)this.words[D]=this.words[D]|S.words[D];return this.strip()},e.prototype.ior=function(S){return o((this.negative|S.negative)==0),this.iuor(S)},e.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},e.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},e.prototype.iuand=function(S){var D;D=this.length>S.length?S:this;for(var w=0;w<D.length;w++)this.words[w]=this.words[w]&S.words[w];return this.length=D.length,this.strip()},e.prototype.iand=function(S){return o((this.negative|S.negative)==0),this.iuand(S)},e.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},e.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},e.prototype.iuxor=function(S){var D,w;this.length>S.length?(D=this,w=S):(D=S,w=this);for(var d=0;d<w.length;d++)this.words[d]=D.words[d]^w.words[d];if(this!==D)for(;d<D.length;d++)this.words[d]=D.words[d];return this.length=D.length,this.strip()},e.prototype.ixor=function(S){return o((this.negative|S.negative)==0),this.iuxor(S)},e.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},e.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},e.prototype.inotn=function(S){o(typeof S=="number"&&S>=0);var D=0|Math.ceil(S/26),w=S%26;this._expand(D),w>0&&D--;for(var d=0;d<D;d++)this.words[d]=67108863&~this.words[d];return w>0&&(this.words[d]=~this.words[d]&67108863>>26-w),this.strip()},e.prototype.notn=function(S){return this.clone().inotn(S)},e.prototype.setn=function(S,D){o(typeof S=="number"&&S>=0);var w=S/26|0,d=S%26;return this._expand(w+1),this.words[w]=D?this.words[w]|1<<d:this.words[w]&~(1<<d),this.strip()},e.prototype.iadd=function(S){var D,w,d;if(this.negative!==0&&S.negative===0)return this.negative=0,D=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,D=this.isub(S),S.negative=1,D._normSign();this.length>S.length?(w=this,d=S):(w=S,d=this);for(var v=0,y=0;y<d.length;y++)D=(0|w.words[y])+(0|d.words[y])+v,this.words[y]=67108863&D,v=D>>>26;for(;v!==0&&y<w.length;y++)D=(0|w.words[y])+v,this.words[y]=67108863&D,v=D>>>26;if(this.length=w.length,v!==0)this.words[this.length]=v,this.length++;else if(w!==this)for(;y<w.length;y++)this.words[y]=w.words[y];return this},e.prototype.add=function(S){var D;return S.negative!==0&&this.negative===0?(S.negative=0,D=this.sub(S),S.negative^=1,D):S.negative===0&&this.negative!==0?(this.negative=0,D=S.sub(this),this.negative=1,D):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},e.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var D=this.iadd(S);return S.negative=1,D._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var w,d,v=this.cmp(S);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;v>0?(w=this,d=S):(w=S,d=this);for(var y=0,x=0;x<d.length;x++)y=(D=(0|w.words[x])-(0|d.words[x])+y)>>26,this.words[x]=67108863&D;for(;y!==0&&x<w.length;x++)y=(D=(0|w.words[x])+y)>>26,this.words[x]=67108863&D;if(y===0&&x<w.length&&w!==this)for(;x<w.length;x++)this.words[x]=w.words[x];return this.length=Math.max(this.length,x),w!==this&&(this.negative=1),this.strip()},e.prototype.sub=function(S){return this.clone().isub(S)};var m=function(S,D,w){var d,v,y,x=S.words,C=D.words,N=w.words,R=0,$=0|x[0],V=8191&$,X=$>>>13,P=0|x[1],q=8191&P,I=P>>>13,F=0|x[2],H=8191&F,W=F>>>13,J=0|x[3],Y=8191&J,K=J>>>13,et=0|x[4],nt=8191&et,G=et>>>13,tt=0|x[5],Q=8191&tt,st=tt>>>13,it=0|x[6],ot=8191&it,ct=it>>>13,ht=0|x[7],bt=8191&ht,kt=ht>>>13,St=0|x[8],wt=8191&St,Nt=St>>>13,Ft=0|x[9],It=8191&Ft,Bt=Ft>>>13,Ct=0|C[0],yt=8191&Ct,Dt=Ct>>>13,Mt=0|C[1],At=8191&Mt,ee=Mt>>>13,le=0|C[2],Pt=8191&le,ae=le>>>13,Qt=0|C[3],qt=8191&Qt,be=Qt>>>13,oe=0|C[4],Ut=8191&oe,ie=oe>>>13,de=0|C[5],Ht=8191&de,ue=de>>>13,pe=0|C[6],Xt=8191&pe,rt=pe>>>13,at=0|C[7],ft=8191&at,xt=at>>>13,jt=0|C[8],Et=8191&jt,$t=jt>>>13,Lt=0|C[9],Ot=8191&Lt,Wt=Lt>>>13;w.negative=S.negative^D.negative,w.length=19;var Vt=(R+(d=Math.imul(V,yt))|0)+((8191&(v=(v=Math.imul(V,Dt))+Math.imul(X,yt)|0))<<13)|0;R=((y=Math.imul(X,Dt))+(v>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,d=Math.imul(q,yt),v=(v=Math.imul(q,Dt))+Math.imul(I,yt)|0,y=Math.imul(I,Dt);var Jt=(R+(d=d+Math.imul(V,At)|0)|0)+((8191&(v=(v=v+Math.imul(V,ee)|0)+Math.imul(X,At)|0))<<13)|0;R=((y=y+Math.imul(X,ee)|0)+(v>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,d=Math.imul(H,yt),v=(v=Math.imul(H,Dt))+Math.imul(W,yt)|0,y=Math.imul(W,Dt),d=d+Math.imul(q,At)|0,v=(v=v+Math.imul(q,ee)|0)+Math.imul(I,At)|0,y=y+Math.imul(I,ee)|0;var we=(R+(d=d+Math.imul(V,Pt)|0)|0)+((8191&(v=(v=v+Math.imul(V,ae)|0)+Math.imul(X,Pt)|0))<<13)|0;R=((y=y+Math.imul(X,ae)|0)+(v>>>13)|0)+(we>>>26)|0,we&=67108863,d=Math.imul(Y,yt),v=(v=Math.imul(Y,Dt))+Math.imul(K,yt)|0,y=Math.imul(K,Dt),d=d+Math.imul(H,At)|0,v=(v=v+Math.imul(H,ee)|0)+Math.imul(W,At)|0,y=y+Math.imul(W,ee)|0,d=d+Math.imul(q,Pt)|0,v=(v=v+Math.imul(q,ae)|0)+Math.imul(I,Pt)|0,y=y+Math.imul(I,ae)|0;var ge=(R+(d=d+Math.imul(V,qt)|0)|0)+((8191&(v=(v=v+Math.imul(V,be)|0)+Math.imul(X,qt)|0))<<13)|0;R=((y=y+Math.imul(X,be)|0)+(v>>>13)|0)+(ge>>>26)|0,ge&=67108863,d=Math.imul(nt,yt),v=(v=Math.imul(nt,Dt))+Math.imul(G,yt)|0,y=Math.imul(G,Dt),d=d+Math.imul(Y,At)|0,v=(v=v+Math.imul(Y,ee)|0)+Math.imul(K,At)|0,y=y+Math.imul(K,ee)|0,d=d+Math.imul(H,Pt)|0,v=(v=v+Math.imul(H,ae)|0)+Math.imul(W,Pt)|0,y=y+Math.imul(W,ae)|0,d=d+Math.imul(q,qt)|0,v=(v=v+Math.imul(q,be)|0)+Math.imul(I,qt)|0,y=y+Math.imul(I,be)|0;var _e=(R+(d=d+Math.imul(V,Ut)|0)|0)+((8191&(v=(v=v+Math.imul(V,ie)|0)+Math.imul(X,Ut)|0))<<13)|0;R=((y=y+Math.imul(X,ie)|0)+(v>>>13)|0)+(_e>>>26)|0,_e&=67108863,d=Math.imul(Q,yt),v=(v=Math.imul(Q,Dt))+Math.imul(st,yt)|0,y=Math.imul(st,Dt),d=d+Math.imul(nt,At)|0,v=(v=v+Math.imul(nt,ee)|0)+Math.imul(G,At)|0,y=y+Math.imul(G,ee)|0,d=d+Math.imul(Y,Pt)|0,v=(v=v+Math.imul(Y,ae)|0)+Math.imul(K,Pt)|0,y=y+Math.imul(K,ae)|0,d=d+Math.imul(H,qt)|0,v=(v=v+Math.imul(H,be)|0)+Math.imul(W,qt)|0,y=y+Math.imul(W,be)|0,d=d+Math.imul(q,Ut)|0,v=(v=v+Math.imul(q,ie)|0)+Math.imul(I,Ut)|0,y=y+Math.imul(I,ie)|0;var Ee=(R+(d=d+Math.imul(V,Ht)|0)|0)+((8191&(v=(v=v+Math.imul(V,ue)|0)+Math.imul(X,Ht)|0))<<13)|0;R=((y=y+Math.imul(X,ue)|0)+(v>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,d=Math.imul(ot,yt),v=(v=Math.imul(ot,Dt))+Math.imul(ct,yt)|0,y=Math.imul(ct,Dt),d=d+Math.imul(Q,At)|0,v=(v=v+Math.imul(Q,ee)|0)+Math.imul(st,At)|0,y=y+Math.imul(st,ee)|0,d=d+Math.imul(nt,Pt)|0,v=(v=v+Math.imul(nt,ae)|0)+Math.imul(G,Pt)|0,y=y+Math.imul(G,ae)|0,d=d+Math.imul(Y,qt)|0,v=(v=v+Math.imul(Y,be)|0)+Math.imul(K,qt)|0,y=y+Math.imul(K,be)|0,d=d+Math.imul(H,Ut)|0,v=(v=v+Math.imul(H,ie)|0)+Math.imul(W,Ut)|0,y=y+Math.imul(W,ie)|0,d=d+Math.imul(q,Ht)|0,v=(v=v+Math.imul(q,ue)|0)+Math.imul(I,Ht)|0,y=y+Math.imul(I,ue)|0;var Te=(R+(d=d+Math.imul(V,Xt)|0)|0)+((8191&(v=(v=v+Math.imul(V,rt)|0)+Math.imul(X,Xt)|0))<<13)|0;R=((y=y+Math.imul(X,rt)|0)+(v>>>13)|0)+(Te>>>26)|0,Te&=67108863,d=Math.imul(bt,yt),v=(v=Math.imul(bt,Dt))+Math.imul(kt,yt)|0,y=Math.imul(kt,Dt),d=d+Math.imul(ot,At)|0,v=(v=v+Math.imul(ot,ee)|0)+Math.imul(ct,At)|0,y=y+Math.imul(ct,ee)|0,d=d+Math.imul(Q,Pt)|0,v=(v=v+Math.imul(Q,ae)|0)+Math.imul(st,Pt)|0,y=y+Math.imul(st,ae)|0,d=d+Math.imul(nt,qt)|0,v=(v=v+Math.imul(nt,be)|0)+Math.imul(G,qt)|0,y=y+Math.imul(G,be)|0,d=d+Math.imul(Y,Ut)|0,v=(v=v+Math.imul(Y,ie)|0)+Math.imul(K,Ut)|0,y=y+Math.imul(K,ie)|0,d=d+Math.imul(H,Ht)|0,v=(v=v+Math.imul(H,ue)|0)+Math.imul(W,Ht)|0,y=y+Math.imul(W,ue)|0,d=d+Math.imul(q,Xt)|0,v=(v=v+Math.imul(q,rt)|0)+Math.imul(I,Xt)|0,y=y+Math.imul(I,rt)|0;var Z=(R+(d=d+Math.imul(V,ft)|0)|0)+((8191&(v=(v=v+Math.imul(V,xt)|0)+Math.imul(X,ft)|0))<<13)|0;R=((y=y+Math.imul(X,xt)|0)+(v>>>13)|0)+(Z>>>26)|0,Z&=67108863,d=Math.imul(wt,yt),v=(v=Math.imul(wt,Dt))+Math.imul(Nt,yt)|0,y=Math.imul(Nt,Dt),d=d+Math.imul(bt,At)|0,v=(v=v+Math.imul(bt,ee)|0)+Math.imul(kt,At)|0,y=y+Math.imul(kt,ee)|0,d=d+Math.imul(ot,Pt)|0,v=(v=v+Math.imul(ot,ae)|0)+Math.imul(ct,Pt)|0,y=y+Math.imul(ct,ae)|0,d=d+Math.imul(Q,qt)|0,v=(v=v+Math.imul(Q,be)|0)+Math.imul(st,qt)|0,y=y+Math.imul(st,be)|0,d=d+Math.imul(nt,Ut)|0,v=(v=v+Math.imul(nt,ie)|0)+Math.imul(G,Ut)|0,y=y+Math.imul(G,ie)|0,d=d+Math.imul(Y,Ht)|0,v=(v=v+Math.imul(Y,ue)|0)+Math.imul(K,Ht)|0,y=y+Math.imul(K,ue)|0,d=d+Math.imul(H,Xt)|0,v=(v=v+Math.imul(H,rt)|0)+Math.imul(W,Xt)|0,y=y+Math.imul(W,rt)|0,d=d+Math.imul(q,ft)|0,v=(v=v+Math.imul(q,xt)|0)+Math.imul(I,ft)|0,y=y+Math.imul(I,xt)|0;var ut=(R+(d=d+Math.imul(V,Et)|0)|0)+((8191&(v=(v=v+Math.imul(V,$t)|0)+Math.imul(X,Et)|0))<<13)|0;R=((y=y+Math.imul(X,$t)|0)+(v>>>13)|0)+(ut>>>26)|0,ut&=67108863,d=Math.imul(It,yt),v=(v=Math.imul(It,Dt))+Math.imul(Bt,yt)|0,y=Math.imul(Bt,Dt),d=d+Math.imul(wt,At)|0,v=(v=v+Math.imul(wt,ee)|0)+Math.imul(Nt,At)|0,y=y+Math.imul(Nt,ee)|0,d=d+Math.imul(bt,Pt)|0,v=(v=v+Math.imul(bt,ae)|0)+Math.imul(kt,Pt)|0,y=y+Math.imul(kt,ae)|0,d=d+Math.imul(ot,qt)|0,v=(v=v+Math.imul(ot,be)|0)+Math.imul(ct,qt)|0,y=y+Math.imul(ct,be)|0,d=d+Math.imul(Q,Ut)|0,v=(v=v+Math.imul(Q,ie)|0)+Math.imul(st,Ut)|0,y=y+Math.imul(st,ie)|0,d=d+Math.imul(nt,Ht)|0,v=(v=v+Math.imul(nt,ue)|0)+Math.imul(G,Ht)|0,y=y+Math.imul(G,ue)|0,d=d+Math.imul(Y,Xt)|0,v=(v=v+Math.imul(Y,rt)|0)+Math.imul(K,Xt)|0,y=y+Math.imul(K,rt)|0,d=d+Math.imul(H,ft)|0,v=(v=v+Math.imul(H,xt)|0)+Math.imul(W,ft)|0,y=y+Math.imul(W,xt)|0,d=d+Math.imul(q,Et)|0,v=(v=v+Math.imul(q,$t)|0)+Math.imul(I,Et)|0,y=y+Math.imul(I,$t)|0;var dt=(R+(d=d+Math.imul(V,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(V,Wt)|0)+Math.imul(X,Ot)|0))<<13)|0;R=((y=y+Math.imul(X,Wt)|0)+(v>>>13)|0)+(dt>>>26)|0,dt&=67108863,d=Math.imul(It,At),v=(v=Math.imul(It,ee))+Math.imul(Bt,At)|0,y=Math.imul(Bt,ee),d=d+Math.imul(wt,Pt)|0,v=(v=v+Math.imul(wt,ae)|0)+Math.imul(Nt,Pt)|0,y=y+Math.imul(Nt,ae)|0,d=d+Math.imul(bt,qt)|0,v=(v=v+Math.imul(bt,be)|0)+Math.imul(kt,qt)|0,y=y+Math.imul(kt,be)|0,d=d+Math.imul(ot,Ut)|0,v=(v=v+Math.imul(ot,ie)|0)+Math.imul(ct,Ut)|0,y=y+Math.imul(ct,ie)|0,d=d+Math.imul(Q,Ht)|0,v=(v=v+Math.imul(Q,ue)|0)+Math.imul(st,Ht)|0,y=y+Math.imul(st,ue)|0,d=d+Math.imul(nt,Xt)|0,v=(v=v+Math.imul(nt,rt)|0)+Math.imul(G,Xt)|0,y=y+Math.imul(G,rt)|0,d=d+Math.imul(Y,ft)|0,v=(v=v+Math.imul(Y,xt)|0)+Math.imul(K,ft)|0,y=y+Math.imul(K,xt)|0,d=d+Math.imul(H,Et)|0,v=(v=v+Math.imul(H,$t)|0)+Math.imul(W,Et)|0,y=y+Math.imul(W,$t)|0;var gt=(R+(d=d+Math.imul(q,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(q,Wt)|0)+Math.imul(I,Ot)|0))<<13)|0;R=((y=y+Math.imul(I,Wt)|0)+(v>>>13)|0)+(gt>>>26)|0,gt&=67108863,d=Math.imul(It,Pt),v=(v=Math.imul(It,ae))+Math.imul(Bt,Pt)|0,y=Math.imul(Bt,ae),d=d+Math.imul(wt,qt)|0,v=(v=v+Math.imul(wt,be)|0)+Math.imul(Nt,qt)|0,y=y+Math.imul(Nt,be)|0,d=d+Math.imul(bt,Ut)|0,v=(v=v+Math.imul(bt,ie)|0)+Math.imul(kt,Ut)|0,y=y+Math.imul(kt,ie)|0,d=d+Math.imul(ot,Ht)|0,v=(v=v+Math.imul(ot,ue)|0)+Math.imul(ct,Ht)|0,y=y+Math.imul(ct,ue)|0,d=d+Math.imul(Q,Xt)|0,v=(v=v+Math.imul(Q,rt)|0)+Math.imul(st,Xt)|0,y=y+Math.imul(st,rt)|0,d=d+Math.imul(nt,ft)|0,v=(v=v+Math.imul(nt,xt)|0)+Math.imul(G,ft)|0,y=y+Math.imul(G,xt)|0,d=d+Math.imul(Y,Et)|0,v=(v=v+Math.imul(Y,$t)|0)+Math.imul(K,Et)|0,y=y+Math.imul(K,$t)|0;var Tt=(R+(d=d+Math.imul(H,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(H,Wt)|0)+Math.imul(W,Ot)|0))<<13)|0;R=((y=y+Math.imul(W,Wt)|0)+(v>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(It,qt),v=(v=Math.imul(It,be))+Math.imul(Bt,qt)|0,y=Math.imul(Bt,be),d=d+Math.imul(wt,Ut)|0,v=(v=v+Math.imul(wt,ie)|0)+Math.imul(Nt,Ut)|0,y=y+Math.imul(Nt,ie)|0,d=d+Math.imul(bt,Ht)|0,v=(v=v+Math.imul(bt,ue)|0)+Math.imul(kt,Ht)|0,y=y+Math.imul(kt,ue)|0,d=d+Math.imul(ot,Xt)|0,v=(v=v+Math.imul(ot,rt)|0)+Math.imul(ct,Xt)|0,y=y+Math.imul(ct,rt)|0,d=d+Math.imul(Q,ft)|0,v=(v=v+Math.imul(Q,xt)|0)+Math.imul(st,ft)|0,y=y+Math.imul(st,xt)|0,d=d+Math.imul(nt,Et)|0,v=(v=v+Math.imul(nt,$t)|0)+Math.imul(G,Et)|0,y=y+Math.imul(G,$t)|0;var vt=(R+(d=d+Math.imul(Y,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(Y,Wt)|0)+Math.imul(K,Ot)|0))<<13)|0;R=((y=y+Math.imul(K,Wt)|0)+(v>>>13)|0)+(vt>>>26)|0,vt&=67108863,d=Math.imul(It,Ut),v=(v=Math.imul(It,ie))+Math.imul(Bt,Ut)|0,y=Math.imul(Bt,ie),d=d+Math.imul(wt,Ht)|0,v=(v=v+Math.imul(wt,ue)|0)+Math.imul(Nt,Ht)|0,y=y+Math.imul(Nt,ue)|0,d=d+Math.imul(bt,Xt)|0,v=(v=v+Math.imul(bt,rt)|0)+Math.imul(kt,Xt)|0,y=y+Math.imul(kt,rt)|0,d=d+Math.imul(ot,ft)|0,v=(v=v+Math.imul(ot,xt)|0)+Math.imul(ct,ft)|0,y=y+Math.imul(ct,xt)|0,d=d+Math.imul(Q,Et)|0,v=(v=v+Math.imul(Q,$t)|0)+Math.imul(st,Et)|0,y=y+Math.imul(st,$t)|0;var _t=(R+(d=d+Math.imul(nt,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(nt,Wt)|0)+Math.imul(G,Ot)|0))<<13)|0;R=((y=y+Math.imul(G,Wt)|0)+(v>>>13)|0)+(_t>>>26)|0,_t&=67108863,d=Math.imul(It,Ht),v=(v=Math.imul(It,ue))+Math.imul(Bt,Ht)|0,y=Math.imul(Bt,ue),d=d+Math.imul(wt,Xt)|0,v=(v=v+Math.imul(wt,rt)|0)+Math.imul(Nt,Xt)|0,y=y+Math.imul(Nt,rt)|0,d=d+Math.imul(bt,ft)|0,v=(v=v+Math.imul(bt,xt)|0)+Math.imul(kt,ft)|0,y=y+Math.imul(kt,xt)|0,d=d+Math.imul(ot,Et)|0,v=(v=v+Math.imul(ot,$t)|0)+Math.imul(ct,Et)|0,y=y+Math.imul(ct,$t)|0;var re=(R+(d=d+Math.imul(Q,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(Q,Wt)|0)+Math.imul(st,Ot)|0))<<13)|0;R=((y=y+Math.imul(st,Wt)|0)+(v>>>13)|0)+(re>>>26)|0,re&=67108863,d=Math.imul(It,Xt),v=(v=Math.imul(It,rt))+Math.imul(Bt,Xt)|0,y=Math.imul(Bt,rt),d=d+Math.imul(wt,ft)|0,v=(v=v+Math.imul(wt,xt)|0)+Math.imul(Nt,ft)|0,y=y+Math.imul(Nt,xt)|0,d=d+Math.imul(bt,Et)|0,v=(v=v+Math.imul(bt,$t)|0)+Math.imul(kt,Et)|0,y=y+Math.imul(kt,$t)|0;var Gt=(R+(d=d+Math.imul(ot,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(ot,Wt)|0)+Math.imul(ct,Ot)|0))<<13)|0;R=((y=y+Math.imul(ct,Wt)|0)+(v>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(It,ft),v=(v=Math.imul(It,xt))+Math.imul(Bt,ft)|0,y=Math.imul(Bt,xt),d=d+Math.imul(wt,Et)|0,v=(v=v+Math.imul(wt,$t)|0)+Math.imul(Nt,Et)|0,y=y+Math.imul(Nt,$t)|0;var Zt=(R+(d=d+Math.imul(bt,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(bt,Wt)|0)+Math.imul(kt,Ot)|0))<<13)|0;R=((y=y+Math.imul(kt,Wt)|0)+(v>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(It,Et),v=(v=Math.imul(It,$t))+Math.imul(Bt,Et)|0,y=Math.imul(Bt,$t);var zt=(R+(d=d+Math.imul(wt,Ot)|0)|0)+((8191&(v=(v=v+Math.imul(wt,Wt)|0)+Math.imul(Nt,Ot)|0))<<13)|0;R=((y=y+Math.imul(Nt,Wt)|0)+(v>>>13)|0)+(zt>>>26)|0,zt&=67108863;var ce=(R+(d=Math.imul(It,Ot))|0)+((8191&(v=(v=Math.imul(It,Wt))+Math.imul(Bt,Ot)|0))<<13)|0;return R=((y=Math.imul(Bt,Wt))+(v>>>13)|0)+(ce>>>26)|0,ce&=67108863,N[0]=Vt,N[1]=Jt,N[2]=we,N[3]=ge,N[4]=_e,N[5]=Ee,N[6]=Te,N[7]=Z,N[8]=ut,N[9]=dt,N[10]=gt,N[11]=Tt,N[12]=vt,N[13]=_t,N[14]=re,N[15]=Gt,N[16]=Zt,N[17]=zt,N[18]=ce,R!==0&&(N[19]=R,w.length++),w};function _(S,D,w){return new k().mulp(S,D,w)}function k(S,D){this.x=S,this.y=D}Math.imul||(m=p),e.prototype.mulTo=function(S,D){var w=this.length+S.length;return this.length===10&&S.length===10?m(this,S,D):w<63?p(this,S,D):w<1024?(function(d,v,y){y.negative=v.negative^d.negative,y.length=d.length+v.length;for(var x=0,C=0,N=0;N<y.length-1;N++){var R=C;C=0;for(var $=67108863&x,V=Math.min(N,v.length-1),X=Math.max(0,N-d.length+1);X<=V;X++){var P=N-X,q=(0|d.words[P])*(0|v.words[X]),I=67108863&q;$=67108863&(I=I+$|0),C+=(R=(R=R+(q/67108864|0)|0)+(I>>>26)|0)>>>26,R&=67108863}y.words[N]=$,x=R,R=C}return x!==0?y.words[N]=x:y.length--,y.strip()})(this,S,D):_(this,S,D)},k.prototype.makeRBT=function(S){for(var D=new Array(S),w=e.prototype._countBits(S)-1,d=0;d<S;d++)D[d]=this.revBin(d,w,S);return D},k.prototype.revBin=function(S,D,w){if(S===0||S===w-1)return S;for(var d=0,v=0;v<D;v++)d|=(1&S)<<D-v-1,S>>=1;return d},k.prototype.permute=function(S,D,w,d,v,y){for(var x=0;x<y;x++)d[x]=D[S[x]],v[x]=w[S[x]]},k.prototype.transform=function(S,D,w,d,v,y){this.permute(y,S,D,w,d,v);for(var x=1;x<v;x<<=1)for(var C=x<<1,N=Math.cos(2*Math.PI/C),R=Math.sin(2*Math.PI/C),$=0;$<v;$+=C)for(var V=N,X=R,P=0;P<x;P++){var q=w[$+P],I=d[$+P],F=w[$+P+x],H=d[$+P+x],W=V*F-X*H;H=V*H+X*F,F=W,w[$+P]=q+F,d[$+P]=I+H,w[$+P+x]=q-F,d[$+P+x]=I-H,P!==C&&(W=N*V-R*X,X=N*X+R*V,V=W)}},k.prototype.guessLen13b=function(S,D){var w=1|Math.max(D,S),d=1&w,v=0;for(w=w/2|0;w;w>>>=1)v++;return 1<<v+1+d},k.prototype.conjugate=function(S,D,w){if(!(w<=1))for(var d=0;d<w/2;d++){var v=S[d];S[d]=S[w-d-1],S[w-d-1]=v,v=D[d],D[d]=-D[w-d-1],D[w-d-1]=-v}},k.prototype.normalize13b=function(S,D){for(var w=0,d=0;d<D/2;d++){var v=8192*Math.round(S[2*d+1]/D)+Math.round(S[2*d]/D)+w;S[d]=67108863&v,w=v<67108864?0:v/67108864|0}return S},k.prototype.convert13b=function(S,D,w,d){for(var v=0,y=0;y<D;y++)v+=0|S[y],w[2*y]=8191&v,v>>>=13,w[2*y+1]=8191&v,v>>>=13;for(y=2*D;y<d;++y)w[y]=0;o(v===0),o((-8192&v)==0)},k.prototype.stub=function(S){for(var D=new Array(S),w=0;w<S;w++)D[w]=0;return D},k.prototype.mulp=function(S,D,w){var d=2*this.guessLen13b(S.length,D.length),v=this.makeRBT(d),y=this.stub(d),x=new Array(d),C=new Array(d),N=new Array(d),R=new Array(d),$=new Array(d),V=new Array(d),X=w.words;X.length=d,this.convert13b(S.words,S.length,x,d),this.convert13b(D.words,D.length,R,d),this.transform(x,y,C,N,d,v),this.transform(R,y,$,V,d,v);for(var P=0;P<d;P++){var q=C[P]*$[P]-N[P]*V[P];N[P]=C[P]*V[P]+N[P]*$[P],C[P]=q}return this.conjugate(C,N,d),this.transform(C,N,X,y,d,v),this.conjugate(X,y,d),this.normalize13b(X,d),w.negative=S.negative^D.negative,w.length=S.length+D.length,w.strip()},e.prototype.mul=function(S){var D=new e(null);return D.words=new Array(this.length+S.length),this.mulTo(S,D)},e.prototype.mulf=function(S){var D=new e(null);return D.words=new Array(this.length+S.length),_(this,S,D)},e.prototype.imul=function(S){return this.clone().mulTo(S,this)},e.prototype.imuln=function(S){o(typeof S=="number"),o(S<67108864);for(var D=0,w=0;w<this.length;w++){var d=(0|this.words[w])*S,v=(67108863&d)+(67108863&D);D>>=26,D+=d/67108864|0,D+=v>>>26,this.words[w]=67108863&v}return D!==0&&(this.words[w]=D,this.length++),this},e.prototype.muln=function(S){return this.clone().imuln(S)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(S){var D=(function(y){for(var x=new Array(y.bitLength()),C=0;C<x.length;C++){var N=C/26|0,R=C%26;x[C]=(y.words[N]&1<<R)>>>R}return x})(S);if(D.length===0)return new e(1);for(var w=this,d=0;d<D.length&&D[d]===0;d++,w=w.sqr());if(++d<D.length)for(var v=w.sqr();d<D.length;d++,v=v.sqr())D[d]!==0&&(w=w.mul(v));return w},e.prototype.iushln=function(S){o(typeof S=="number"&&S>=0);var D,w=S%26,d=(S-w)/26,v=67108863>>>26-w<<26-w;if(w!==0){var y=0;for(D=0;D<this.length;D++){var x=this.words[D]&v,C=(0|this.words[D])-x<<w;this.words[D]=C|y,y=x>>>26-w}y&&(this.words[D]=y,this.length++)}if(d!==0){for(D=this.length-1;D>=0;D--)this.words[D+d]=this.words[D];for(D=0;D<d;D++)this.words[D]=0;this.length+=d}return this.strip()},e.prototype.ishln=function(S){return o(this.negative===0),this.iushln(S)},e.prototype.iushrn=function(S,D,w){var d;o(typeof S=="number"&&S>=0),d=D?(D-D%26)/26:0;var v=S%26,y=Math.min((S-v)/26,this.length),x=67108863^67108863>>>v<<v,C=w;if(d-=y,d=Math.max(0,d),C){for(var N=0;N<y;N++)C.words[N]=this.words[N];C.length=y}if(y!==0)if(this.length>y)for(this.length-=y,N=0;N<this.length;N++)this.words[N]=this.words[N+y];else this.words[0]=0,this.length=1;var R=0;for(N=this.length-1;N>=0&&(R!==0||N>=d);N--){var $=0|this.words[N];this.words[N]=R<<26-v|$>>>v,R=$&x}return C&&R!==0&&(C.words[C.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},e.prototype.ishrn=function(S,D,w){return o(this.negative===0),this.iushrn(S,D,w)},e.prototype.shln=function(S){return this.clone().ishln(S)},e.prototype.ushln=function(S){return this.clone().iushln(S)},e.prototype.shrn=function(S){return this.clone().ishrn(S)},e.prototype.ushrn=function(S){return this.clone().iushrn(S)},e.prototype.testn=function(S){o(typeof S=="number"&&S>=0);var D=S%26,w=(S-D)/26,d=1<<D;return!(this.length<=w)&&!!(this.words[w]&d)},e.prototype.imaskn=function(S){o(typeof S=="number"&&S>=0);var D=S%26,w=(S-D)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(D!==0&&w++,this.length=Math.min(w,this.length),D!==0){var d=67108863^67108863>>>D<<D;this.words[this.length-1]&=d}return this.strip()},e.prototype.maskn=function(S){return this.clone().imaskn(S)},e.prototype.iaddn=function(S){return o(typeof S=="number"),o(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(0|this.words[0])<S?(this.words[0]=S-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},e.prototype._iaddn=function(S){this.words[0]+=S;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)this.words[D]-=67108864,D===this.length-1?this.words[D+1]=1:this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},e.prototype.isubn=function(S){if(o(typeof S=="number"),o(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},e.prototype.addn=function(S){return this.clone().iaddn(S)},e.prototype.subn=function(S){return this.clone().isubn(S)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(S,D,w){var d,v,y=S.length+w;this._expand(y);var x=0;for(d=0;d<S.length;d++){v=(0|this.words[d+w])+x;var C=(0|S.words[d])*D;x=((v-=67108863&C)>>26)-(C/67108864|0),this.words[d+w]=67108863&v}for(;d<this.length-w;d++)x=(v=(0|this.words[d+w])+x)>>26,this.words[d+w]=67108863&v;if(x===0)return this.strip();for(o(x===-1),x=0,d=0;d<this.length;d++)x=(v=-(0|this.words[d])+x)>>26,this.words[d]=67108863&v;return this.negative=1,this.strip()},e.prototype._wordDiv=function(S,D){var w=(this.length,S.length),d=this.clone(),v=S,y=0|v.words[v.length-1];(w=26-this._countBits(y))!==0&&(v=v.ushln(w),d.iushln(w),y=0|v.words[v.length-1]);var x,C=d.length-v.length;if(D!=="mod"){(x=new e(null)).length=C+1,x.words=new Array(x.length);for(var N=0;N<x.length;N++)x.words[N]=0}var R=d.clone()._ishlnsubmul(v,1,C);R.negative===0&&(d=R,x&&(x.words[C]=1));for(var $=C-1;$>=0;$--){var V=67108864*(0|d.words[v.length+$])+(0|d.words[v.length+$-1]);for(V=Math.min(V/y|0,67108863),d._ishlnsubmul(v,V,$);d.negative!==0;)V--,d.negative=0,d._ishlnsubmul(v,1,$),d.isZero()||(d.negative^=1);x&&(x.words[$]=V)}return x&&x.strip(),d.strip(),D!=="div"&&w!==0&&d.iushrn(w),{div:x||null,mod:d}},e.prototype.divmod=function(S,D,w){return o(!S.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&S.negative===0?(y=this.neg().divmod(S,D),D!=="mod"&&(d=y.div.neg()),D!=="div"&&(v=y.mod.neg(),w&&v.negative!==0&&v.iadd(S)),{div:d,mod:v}):this.negative===0&&S.negative!==0?(y=this.divmod(S.neg(),D),D!=="mod"&&(d=y.div.neg()),{div:d,mod:y.mod}):(this.negative&S.negative)!=0?(y=this.neg().divmod(S.neg(),D),D!=="div"&&(v=y.mod.neg(),w&&v.negative!==0&&v.isub(S)),{div:y.div,mod:v}):S.length>this.length||this.cmp(S)<0?{div:new e(0),mod:this}:S.length===1?D==="div"?{div:this.divn(S.words[0]),mod:null}:D==="mod"?{div:null,mod:new e(this.modn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new e(this.modn(S.words[0]))}:this._wordDiv(S,D);var d,v,y},e.prototype.div=function(S){return this.divmod(S,"div",!1).div},e.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},e.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},e.prototype.divRound=function(S){var D=this.divmod(S);if(D.mod.isZero())return D.div;var w=D.div.negative!==0?D.mod.isub(S):D.mod,d=S.ushrn(1),v=S.andln(1),y=w.cmp(d);return y<0||v===1&&y===0?D.div:D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},e.prototype.modn=function(S){o(S<=67108863);for(var D=(1<<26)%S,w=0,d=this.length-1;d>=0;d--)w=(D*w+(0|this.words[d]))%S;return w},e.prototype.idivn=function(S){o(S<=67108863);for(var D=0,w=this.length-1;w>=0;w--){var d=(0|this.words[w])+67108864*D;this.words[w]=d/S|0,D=d%S}return this.strip()},e.prototype.divn=function(S){return this.clone().idivn(S)},e.prototype.egcd=function(S){o(S.negative===0),o(!S.isZero());var D=this,w=S.clone();D=D.negative!==0?D.umod(S):D.clone();for(var d=new e(1),v=new e(0),y=new e(0),x=new e(1),C=0;D.isEven()&&w.isEven();)D.iushrn(1),w.iushrn(1),++C;for(var N=w.clone(),R=D.clone();!D.isZero();){for(var $=0,V=1;(D.words[0]&V)==0&&$<26;++$,V<<=1);if($>0)for(D.iushrn($);$-- >0;)(d.isOdd()||v.isOdd())&&(d.iadd(N),v.isub(R)),d.iushrn(1),v.iushrn(1);for(var X=0,P=1;(w.words[0]&P)==0&&X<26;++X,P<<=1);if(X>0)for(w.iushrn(X);X-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(N),x.isub(R)),y.iushrn(1),x.iushrn(1);D.cmp(w)>=0?(D.isub(w),d.isub(y),v.isub(x)):(w.isub(D),y.isub(d),x.isub(v))}return{a:y,b:x,gcd:w.iushln(C)}},e.prototype._invmp=function(S){o(S.negative===0),o(!S.isZero());var D=this,w=S.clone();D=D.negative!==0?D.umod(S):D.clone();for(var d,v=new e(1),y=new e(0),x=w.clone();D.cmpn(1)>0&&w.cmpn(1)>0;){for(var C=0,N=1;(D.words[0]&N)==0&&C<26;++C,N<<=1);if(C>0)for(D.iushrn(C);C-- >0;)v.isOdd()&&v.iadd(x),v.iushrn(1);for(var R=0,$=1;(w.words[0]&$)==0&&R<26;++R,$<<=1);if(R>0)for(w.iushrn(R);R-- >0;)y.isOdd()&&y.iadd(x),y.iushrn(1);D.cmp(w)>=0?(D.isub(w),v.isub(y)):(w.isub(D),y.isub(v))}return(d=D.cmpn(1)===0?v:y).cmpn(0)<0&&d.iadd(S),d},e.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var D=this.clone(),w=S.clone();D.negative=0,w.negative=0;for(var d=0;D.isEven()&&w.isEven();d++)D.iushrn(1),w.iushrn(1);for(;;){for(;D.isEven();)D.iushrn(1);for(;w.isEven();)w.iushrn(1);var v=D.cmp(w);if(v<0){var y=D;D=w,w=y}else if(v===0||w.cmpn(1)===0)break;D.isub(w)}return w.iushln(d)},e.prototype.invm=function(S){return this.egcd(S).a.umod(S)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(S){return this.words[0]&S},e.prototype.bincn=function(S){o(typeof S=="number");var D=S%26,w=(S-D)/26,d=1<<D;if(this.length<=w)return this._expand(w+1),this.words[w]|=d,this;for(var v=d,y=w;v!==0&&y<this.length;y++){var x=0|this.words[y];v=(x+=v)>>>26,x&=67108863,this.words[y]=x}return v!==0&&(this.words[y]=v,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(S){var D,w=S<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this.strip(),this.length>1)D=1;else{w&&(S=-S),o(S<=67108863,"Number is too big");var d=0|this.words[0];D=d===S?0:d<S?-1:1}return this.negative!==0?0|-D:D},e.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var D=this.ucmp(S);return this.negative!==0?0|-D:D},e.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var D=0,w=this.length-1;w>=0;w--){var d=0|this.words[w],v=0|S.words[w];if(d!==v){d<v?D=-1:d>v&&(D=1);break}}return D},e.prototype.gtn=function(S){return this.cmpn(S)===1},e.prototype.gt=function(S){return this.cmp(S)===1},e.prototype.gten=function(S){return this.cmpn(S)>=0},e.prototype.gte=function(S){return this.cmp(S)>=0},e.prototype.ltn=function(S){return this.cmpn(S)===-1},e.prototype.lt=function(S){return this.cmp(S)===-1},e.prototype.lten=function(S){return this.cmpn(S)<=0},e.prototype.lte=function(S){return this.cmp(S)<=0},e.prototype.eqn=function(S){return this.cmpn(S)===0},e.prototype.eq=function(S){return this.cmp(S)===0},e.red=function(S){return new L(S)},e.prototype.toRed=function(S){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},e.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(S){return this.red=S,this},e.prototype.forceRed=function(S){return o(!this.red,"Already a number in reduction context"),this._forceRed(S)},e.prototype.redAdd=function(S){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},e.prototype.redIAdd=function(S){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},e.prototype.redSub=function(S){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},e.prototype.redISub=function(S){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},e.prototype.redShl=function(S){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},e.prototype.redMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},e.prototype.redIMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},e.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(S){return o(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var M={k256:null,p224:null,p192:null,p25519:null};function j(S,D){this.name=S,this.p=new e(D,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function L(S){if(typeof S=="string"){var D=e._prime(S);this.m=D.p,this.prime=D}else o(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function B(S){L.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}j.prototype._tmp=function(){var S=new e(null);return S.words=new Array(Math.ceil(this.n/13)),S},j.prototype.ireduce=function(S){var D,w=S;do this.split(w,this.tmp),D=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(D>this.n);var d=D<this.n?-1:w.ucmp(this.p);return d===0?(w.words[0]=0,w.length=1):d>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},j.prototype.split=function(S,D){S.iushrn(this.n,0,D)},j.prototype.imulK=function(S){return S.imul(this.k)},n(z,j),z.prototype.split=function(S,D){for(var w=Math.min(S.length,9),d=0;d<w;d++)D.words[d]=S.words[d];if(D.length=w,S.length<=9)return S.words[0]=0,void(S.length=1);var v=S.words[9];for(D.words[D.length++]=4194303&v,d=10;d<S.length;d++){var y=0|S.words[d];S.words[d-10]=(4194303&y)<<4|v>>>22,v=y}v>>>=22,S.words[d-10]=v,v===0&&S.length>10?S.length-=10:S.length-=9},z.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var D=0,w=0;w<S.length;w++){var d=0|S.words[w];D+=977*d,S.words[w]=67108863&D,D=64*d+(D/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S},n(A,j),n(T,j),n(O,j),O.prototype.imulK=function(S){for(var D=0,w=0;w<S.length;w++){var d=19*(0|S.words[w])+D,v=67108863&d;d>>>=26,S.words[w]=v,D=d}return D!==0&&(S.words[S.length++]=D),S},e._prime=function(S){if(M[S])return M[S];var D;if(S==="k256")D=new z;else if(S==="p224")D=new A;else if(S==="p192")D=new T;else{if(S!=="p25519")throw new Error("Unknown prime "+S);D=new O}return M[S]=D,D},L.prototype._verify1=function(S){o(S.negative===0,"red works only with positives"),o(S.red,"red works only with red numbers")},L.prototype._verify2=function(S,D){o((S.negative|D.negative)==0,"red works only with positives"),o(S.red&&S.red===D.red,"red works only with red numbers")},L.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):S.umod(this.m)._forceRed(this)},L.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},L.prototype.add=function(S,D){this._verify2(S,D);var w=S.add(D);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},L.prototype.iadd=function(S,D){this._verify2(S,D);var w=S.iadd(D);return w.cmp(this.m)>=0&&w.isub(this.m),w},L.prototype.sub=function(S,D){this._verify2(S,D);var w=S.sub(D);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},L.prototype.isub=function(S,D){this._verify2(S,D);var w=S.isub(D);return w.cmpn(0)<0&&w.iadd(this.m),w},L.prototype.shl=function(S,D){return this._verify1(S),this.imod(S.ushln(D))},L.prototype.imul=function(S,D){return this._verify2(S,D),this.imod(S.imul(D))},L.prototype.mul=function(S,D){return this._verify2(S,D),this.imod(S.mul(D))},L.prototype.isqr=function(S){return this.imul(S,S.clone())},L.prototype.sqr=function(S){return this.mul(S,S)},L.prototype.sqrt=function(S){if(S.isZero())return S.clone();var D=this.m.andln(3);if(o(D%2==1),D===3){var w=this.m.add(new e(1)).iushrn(2);return this.pow(S,w)}for(var d=this.m.subn(1),v=0;!d.isZero()&&d.andln(1)===0;)v++,d.iushrn(1);o(!d.isZero());var y=new e(1).toRed(this),x=y.redNeg(),C=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new e(2*N*N).toRed(this);this.pow(N,C).cmp(x)!==0;)N.redIAdd(x);for(var R=this.pow(N,d),$=this.pow(S,d.addn(1).iushrn(1)),V=this.pow(S,d),X=v;V.cmp(y)!==0;){for(var P=V,q=0;P.cmp(y)!==0;q++)P=P.redSqr();o(q<X);var I=this.pow(R,new e(1).iushln(X-q-1));$=$.redMul(I),R=I.redSqr(),V=V.redMul(R),X=q}return $},L.prototype.invm=function(S){var D=S._invmp(this.m);return D.negative!==0?(D.negative=0,this.imod(D).redNeg()):this.imod(D)},L.prototype.pow=function(S,D){if(D.isZero())return new e(1).toRed(this);if(D.cmpn(1)===0)return S.clone();var w=new Array(16);w[0]=new e(1).toRed(this),w[1]=S;for(var d=2;d<w.length;d++)w[d]=this.mul(w[d-1],S);var v=w[0],y=0,x=0,C=D.bitLength()%26;for(C===0&&(C=26),d=D.length-1;d>=0;d--){for(var N=D.words[d],R=C-1;R>=0;R--){var $=N>>R&1;v!==w[0]&&(v=this.sqr(v)),$!==0||y!==0?(y<<=1,y|=$,(++x===4||d===0&&R===0)&&(v=this.mul(v,w[y]),x=0,y=0)):x=0}C=26}return v},L.prototype.convertTo=function(S){var D=S.umod(this.m);return D===S?D.clone():D},L.prototype.convertFrom=function(S){var D=S.clone();return D.red=null,D},e.mont=function(S){return new B(S)},n(B,L),B.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},B.prototype.convertFrom=function(S){var D=this.imod(S.mul(this.rinv));return D.red=null,D},B.prototype.imul=function(S,D){if(S.isZero()||D.isZero())return S.words[0]=0,S.length=1,S;var w=S.imul(D),d=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=w.isub(d).iushrn(this.shift),y=v;return v.cmp(this.m)>=0?y=v.isub(this.m):v.cmpn(0)<0&&(y=v.iadd(this.m)),y._forceRed(this)},B.prototype.mul=function(S,D){if(S.isZero()||D.isZero())return new e(0)._forceRed(this);var w=S.mul(D),d=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=w.isub(d).iushrn(this.shift),y=v;return v.cmp(this.m)>=0?y=v.isub(this.m):v.cmpn(0)<0&&(y=v.iadd(this.m)),y._forceRed(this)},B.prototype.invm=function(S){return this.imod(S._invmp(this.m).mul(this.r2))._forceRed(this)}})(b===void 0||b)},{buffer:188}],185:[function(t,b,g){g.byteLength=function(s){var h=u(s),f=h[0],l=h[1];return 3*(f+l)/4-l},g.toByteArray=function(s){var h,f,l=u(s),p=l[0],m=l[1],_=new o((function(j,z,A){return 3*(z+A)/4-A})(0,p,m)),k=0,M=m>0?p-4:p;for(f=0;f<M;f+=4)h=a[s.charCodeAt(f)]<<18|a[s.charCodeAt(f+1)]<<12|a[s.charCodeAt(f+2)]<<6|a[s.charCodeAt(f+3)],_[k++]=h>>16&255,_[k++]=h>>8&255,_[k++]=255&h;return m===2&&(h=a[s.charCodeAt(f)]<<2|a[s.charCodeAt(f+1)]>>4,_[k++]=255&h),m===1&&(h=a[s.charCodeAt(f)]<<10|a[s.charCodeAt(f+1)]<<4|a[s.charCodeAt(f+2)]>>2,_[k++]=h>>8&255,_[k++]=255&h),_},g.fromByteArray=function(s){for(var h,f=s.length,l=f%3,p=[],m=0,_=f-l;m<_;m+=16383)p.push(i(s,m,m+16383>_?_:m+16383));return l===1?(h=s[f-1],p.push(c[h>>2]+c[h<<4&63]+"==")):l===2&&(h=(s[f-2]<<8)+s[f-1],p.push(c[h>>10]+c[h>>4&63]+c[h<<2&63]+"=")),p.join("")};for(var c=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=n.length;e<r;++e)c[e]=n[e],a[n.charCodeAt(e)]=e;function u(s){var h=s.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=s.indexOf("=");return f===-1&&(f=h),[f,f===h?0:4-f%4]}function i(s,h,f){for(var l,p,m=[],_=h;_<f;_+=3)l=(s[_]<<16&16711680)+(s[_+1]<<8&65280)+(255&s[_+2]),m.push(c[(p=l)>>18&63]+c[p>>12&63]+c[p>>6&63]+c[63&p]);return m.join("")}a[45]=62,a[95]=63},{}],186:[function(t,b,g){(function(c,a){function o(w,d){if(!w)throw new Error(d||"Assertion failed")}function n(w,d){w.super_=d;var v=function(){};v.prototype=d.prototype,w.prototype=new v,w.prototype.constructor=w}function e(w,d,v){if(e.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&(d!=="le"&&d!=="be"||(v=d,d=10),this._init(w||0,d||10,v||"be"))}var r;typeof c=="object"?c.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{r=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(w,d){var v=w.charCodeAt(d);return v>=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void o(!1,"Invalid character in "+w)}function i(w,d,v){var y=u(w,v);return v-1>=d&&(y|=u(w,v-1)<<4),y}function s(w,d,v,y){for(var x=0,C=0,N=Math.min(w.length,v),R=d;R<N;R++){var $=w.charCodeAt(R)-48;x*=y,C=$>=49?$-49+10:$>=17?$-17+10:$,o($>=0&&C<y,"Invalid character"),x+=C}return x}function h(w,d){w.words=d.words,w.length=d.length,w.negative=d.negative,w.red=d.red}if(e.isBN=function(w){return w instanceof e||w!==null&&typeof w=="object"&&w.constructor.wordSize===e.wordSize&&Array.isArray(w.words)},e.max=function(w,d){return w.cmp(d)>0?w:d},e.min=function(w,d){return w.cmp(d)<0?w:d},e.prototype._init=function(w,d,v){if(typeof w=="number")return this._initNumber(w,d,v);if(typeof w=="object")return this._initArray(w,d,v);d==="hex"&&(d=16),o(d===(0|d)&&d>=2&&d<=36);var y=0;(w=w.toString().replace(/\s+/g,""))[0]==="-"&&(y++,this.negative=1),y<w.length&&(d===16?this._parseHex(w,y,v):(this._parseBase(w,d,y),v==="le"&&this._initArray(this.toArray(),d,v)))},e.prototype._initNumber=function(w,d,v){w<0&&(this.negative=1,w=-w),w<67108864?(this.words=[67108863&w],this.length=1):w<4503599627370496?(this.words=[67108863&w,w/67108864&67108863],this.length=2):(o(w<9007199254740992),this.words=[67108863&w,w/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),d,v)},e.prototype._initArray=function(w,d,v){if(o(typeof w.length=="number"),w.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(w.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var x,C,N=0;if(v==="be")for(y=w.length-1,x=0;y>=0;y-=3)C=w[y]|w[y-1]<<8|w[y-2]<<16,this.words[x]|=C<<N&67108863,this.words[x+1]=C>>>26-N&67108863,(N+=24)>=26&&(N-=26,x++);else if(v==="le")for(y=0,x=0;y<w.length;y+=3)C=w[y]|w[y+1]<<8|w[y+2]<<16,this.words[x]|=C<<N&67108863,this.words[x+1]=C>>>26-N&67108863,(N+=24)>=26&&(N-=26,x++);return this._strip()},e.prototype._parseHex=function(w,d,v){this.length=Math.ceil((w.length-d)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var x,C=0,N=0;if(v==="be")for(y=w.length-1;y>=d;y-=2)x=i(w,d,y)<<C,this.words[N]|=67108863&x,C>=18?(C-=18,N+=1,this.words[N]|=x>>>26):C+=8;else for(y=(w.length-d)%2==0?d+1:d;y<w.length;y+=2)x=i(w,d,y)<<C,this.words[N]|=67108863&x,C>=18?(C-=18,N+=1,this.words[N]|=x>>>26):C+=8;this._strip()},e.prototype._parseBase=function(w,d,v){this.words=[0],this.length=1;for(var y=0,x=1;x<=67108863;x*=d)y++;y--,x=x/d|0;for(var C=w.length-v,N=C%y,R=Math.min(C,C-N)+v,$=0,V=v;V<R;V+=y)$=s(w,V,V+y,d),this.imuln(x),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($);if(N!==0){var X=1;for($=s(w,V,w.length,d),V=0;V<N;V++)X*=d;this.imuln(X),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($)}this._strip()},e.prototype.copy=function(w){w.words=new Array(this.length);for(var d=0;d<this.length;d++)w.words[d]=this.words[d];w.length=this.length,w.negative=this.negative,w.red=this.red},e.prototype._move=function(w){h(w,this)},e.prototype.clone=function(){var w=new e(null);return this.copy(w),w},e.prototype._expand=function(w){for(;this.length<w;)this.words[this.length++]=0;return this},e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{e.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{e.prototype.inspect=f}else e.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];e.prototype.toString=function(w,d){var v;if(d=0|d||1,(w=w||10)===16||w==="hex"){v="";for(var y=0,x=0,C=0;C<this.length;C++){var N=this.words[C],R=(16777215&(N<<y|x)).toString(16);x=N>>>24-y&16777215,(y+=2)>=26&&(y-=26,C--),v=x!==0||C!==this.length-1?l[6-R.length]+R+v:R+v}for(x!==0&&(v=x.toString(16)+v);v.length%d!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(w===(0|w)&&w>=2&&w<=36){var $=p[w],V=m[w];v="";var X=this.clone();for(X.negative=0;!X.isZero();){var P=X.modrn(V).toString(w);v=(X=X.idivn(V)).isZero()?P+v:l[$-P.length]+P+v}for(this.isZero()&&(v="0"+v);v.length%d!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}o(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var w=this.words[0];return this.length===2?w+=67108864*this.words[1]:this.length===3&&this.words[2]===1?w+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-w:w},e.prototype.toJSON=function(){return this.toString(16,2)},r&&(e.prototype.toBuffer=function(w,d){return this.toArrayLike(r,w,d)}),e.prototype.toArray=function(w,d){return this.toArrayLike(Array,w,d)};function _(w,d,v){v.negative=d.negative^w.negative;var y=w.length+d.length|0;v.length=y,y=y-1|0;var x=0|w.words[0],C=0|d.words[0],N=x*C,R=67108863&N,$=N/67108864|0;v.words[0]=R;for(var V=1;V<y;V++){for(var X=$>>>26,P=67108863&$,q=Math.min(V,d.length-1),I=Math.max(0,V-w.length+1);I<=q;I++){var F=V-I|0;X+=(N=(x=0|w.words[F])*(C=0|d.words[I])+P)/67108864|0,P=67108863&N}v.words[V]=0|P,$=0|X}return $!==0?v.words[V]=0|$:v.length--,v._strip()}e.prototype.toArrayLike=function(w,d,v){this._strip();var y=this.byteLength(),x=v||Math.max(1,y);o(y<=x,"byte array longer than desired length"),o(x>0,"Requested array length <= 0");var C=(function(N,R){return N.allocUnsafe?N.allocUnsafe(R):new N(R)})(w,x);return this["_toArrayLike"+(d==="le"?"LE":"BE")](C,y),C},e.prototype._toArrayLikeLE=function(w,d){for(var v=0,y=0,x=0,C=0;x<this.length;x++){var N=this.words[x]<<C|y;w[v++]=255&N,v<w.length&&(w[v++]=N>>8&255),v<w.length&&(w[v++]=N>>16&255),C===6?(v<w.length&&(w[v++]=N>>24&255),y=0,C=0):(y=N>>>24,C+=2)}if(v<w.length)for(w[v++]=y;v<w.length;)w[v++]=0},e.prototype._toArrayLikeBE=function(w,d){for(var v=w.length-1,y=0,x=0,C=0;x<this.length;x++){var N=this.words[x]<<C|y;w[v--]=255&N,v>=0&&(w[v--]=N>>8&255),v>=0&&(w[v--]=N>>16&255),C===6?(v>=0&&(w[v--]=N>>24&255),y=0,C=0):(y=N>>>24,C+=2)}if(v>=0)for(w[v--]=y;v>=0;)w[v--]=0},Math.clz32?e.prototype._countBits=function(w){return 32-Math.clz32(w)}:e.prototype._countBits=function(w){var d=w,v=0;return d>=4096&&(v+=13,d>>>=13),d>=64&&(v+=7,d>>>=7),d>=8&&(v+=4,d>>>=4),d>=2&&(v+=2,d>>>=2),v+d},e.prototype._zeroBits=function(w){if(w===0)return 26;var d=w,v=0;return(8191&d)==0&&(v+=13,d>>>=13),(127&d)==0&&(v+=7,d>>>=7),(15&d)==0&&(v+=4,d>>>=4),(3&d)==0&&(v+=2,d>>>=2),(1&d)==0&&v++,v},e.prototype.bitLength=function(){var w=this.words[this.length-1],d=this._countBits(w);return 26*(this.length-1)+d},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var w=0,d=0;d<this.length;d++){var v=this._zeroBits(this.words[d]);if(w+=v,v!==26)break}return w},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(w){return this.negative!==0?this.abs().inotn(w).iaddn(1):this.clone()},e.prototype.fromTwos=function(w){return this.testn(w-1)?this.notn(w).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(w){for(;this.length<w.length;)this.words[this.length++]=0;for(var d=0;d<w.length;d++)this.words[d]=this.words[d]|w.words[d];return this._strip()},e.prototype.ior=function(w){return o((this.negative|w.negative)==0),this.iuor(w)},e.prototype.or=function(w){return this.length>w.length?this.clone().ior(w):w.clone().ior(this)},e.prototype.uor=function(w){return this.length>w.length?this.clone().iuor(w):w.clone().iuor(this)},e.prototype.iuand=function(w){var d;d=this.length>w.length?w:this;for(var v=0;v<d.length;v++)this.words[v]=this.words[v]&w.words[v];return this.length=d.length,this._strip()},e.prototype.iand=function(w){return o((this.negative|w.negative)==0),this.iuand(w)},e.prototype.and=function(w){return this.length>w.length?this.clone().iand(w):w.clone().iand(this)},e.prototype.uand=function(w){return this.length>w.length?this.clone().iuand(w):w.clone().iuand(this)},e.prototype.iuxor=function(w){var d,v;this.length>w.length?(d=this,v=w):(d=w,v=this);for(var y=0;y<v.length;y++)this.words[y]=d.words[y]^v.words[y];if(this!==d)for(;y<d.length;y++)this.words[y]=d.words[y];return this.length=d.length,this._strip()},e.prototype.ixor=function(w){return o((this.negative|w.negative)==0),this.iuxor(w)},e.prototype.xor=function(w){return this.length>w.length?this.clone().ixor(w):w.clone().ixor(this)},e.prototype.uxor=function(w){return this.length>w.length?this.clone().iuxor(w):w.clone().iuxor(this)},e.prototype.inotn=function(w){o(typeof w=="number"&&w>=0);var d=0|Math.ceil(w/26),v=w%26;this._expand(d),v>0&&d--;for(var y=0;y<d;y++)this.words[y]=67108863&~this.words[y];return v>0&&(this.words[y]=~this.words[y]&67108863>>26-v),this._strip()},e.prototype.notn=function(w){return this.clone().inotn(w)},e.prototype.setn=function(w,d){o(typeof w=="number"&&w>=0);var v=w/26|0,y=w%26;return this._expand(v+1),this.words[v]=d?this.words[v]|1<<y:this.words[v]&~(1<<y),this._strip()},e.prototype.iadd=function(w){var d,v,y;if(this.negative!==0&&w.negative===0)return this.negative=0,d=this.isub(w),this.negative^=1,this._normSign();if(this.negative===0&&w.negative!==0)return w.negative=0,d=this.isub(w),w.negative=1,d._normSign();this.length>w.length?(v=this,y=w):(v=w,y=this);for(var x=0,C=0;C<y.length;C++)d=(0|v.words[C])+(0|y.words[C])+x,this.words[C]=67108863&d,x=d>>>26;for(;x!==0&&C<v.length;C++)d=(0|v.words[C])+x,this.words[C]=67108863&d,x=d>>>26;if(this.length=v.length,x!==0)this.words[this.length]=x,this.length++;else if(v!==this)for(;C<v.length;C++)this.words[C]=v.words[C];return this},e.prototype.add=function(w){var d;return w.negative!==0&&this.negative===0?(w.negative=0,d=this.sub(w),w.negative^=1,d):w.negative===0&&this.negative!==0?(this.negative=0,d=w.sub(this),this.negative=1,d):this.length>w.length?this.clone().iadd(w):w.clone().iadd(this)},e.prototype.isub=function(w){if(w.negative!==0){w.negative=0;var d=this.iadd(w);return w.negative=1,d._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(w),this.negative=1,this._normSign();var v,y,x=this.cmp(w);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;x>0?(v=this,y=w):(v=w,y=this);for(var C=0,N=0;N<y.length;N++)C=(d=(0|v.words[N])-(0|y.words[N])+C)>>26,this.words[N]=67108863&d;for(;C!==0&&N<v.length;N++)C=(d=(0|v.words[N])+C)>>26,this.words[N]=67108863&d;if(C===0&&N<v.length&&v!==this)for(;N<v.length;N++)this.words[N]=v.words[N];return this.length=Math.max(this.length,N),v!==this&&(this.negative=1),this._strip()},e.prototype.sub=function(w){return this.clone().isub(w)};var k=function(w,d,v){var y,x,C,N=w.words,R=d.words,$=v.words,V=0,X=0|N[0],P=8191&X,q=X>>>13,I=0|N[1],F=8191&I,H=I>>>13,W=0|N[2],J=8191&W,Y=W>>>13,K=0|N[3],et=8191&K,nt=K>>>13,G=0|N[4],tt=8191&G,Q=G>>>13,st=0|N[5],it=8191&st,ot=st>>>13,ct=0|N[6],ht=8191&ct,bt=ct>>>13,kt=0|N[7],St=8191&kt,wt=kt>>>13,Nt=0|N[8],Ft=8191&Nt,It=Nt>>>13,Bt=0|N[9],Ct=8191&Bt,yt=Bt>>>13,Dt=0|R[0],Mt=8191&Dt,At=Dt>>>13,ee=0|R[1],le=8191&ee,Pt=ee>>>13,ae=0|R[2],Qt=8191&ae,qt=ae>>>13,be=0|R[3],oe=8191&be,Ut=be>>>13,ie=0|R[4],de=8191&ie,Ht=ie>>>13,ue=0|R[5],pe=8191&ue,Xt=ue>>>13,rt=0|R[6],at=8191&rt,ft=rt>>>13,xt=0|R[7],jt=8191&xt,Et=xt>>>13,$t=0|R[8],Lt=8191&$t,Ot=$t>>>13,Wt=0|R[9],Vt=8191&Wt,Jt=Wt>>>13;v.negative=w.negative^d.negative,v.length=19;var we=(V+(y=Math.imul(P,Mt))|0)+((8191&(x=(x=Math.imul(P,At))+Math.imul(q,Mt)|0))<<13)|0;V=((C=Math.imul(q,At))+(x>>>13)|0)+(we>>>26)|0,we&=67108863,y=Math.imul(F,Mt),x=(x=Math.imul(F,At))+Math.imul(H,Mt)|0,C=Math.imul(H,At);var ge=(V+(y=y+Math.imul(P,le)|0)|0)+((8191&(x=(x=x+Math.imul(P,Pt)|0)+Math.imul(q,le)|0))<<13)|0;V=((C=C+Math.imul(q,Pt)|0)+(x>>>13)|0)+(ge>>>26)|0,ge&=67108863,y=Math.imul(J,Mt),x=(x=Math.imul(J,At))+Math.imul(Y,Mt)|0,C=Math.imul(Y,At),y=y+Math.imul(F,le)|0,x=(x=x+Math.imul(F,Pt)|0)+Math.imul(H,le)|0,C=C+Math.imul(H,Pt)|0;var _e=(V+(y=y+Math.imul(P,Qt)|0)|0)+((8191&(x=(x=x+Math.imul(P,qt)|0)+Math.imul(q,Qt)|0))<<13)|0;V=((C=C+Math.imul(q,qt)|0)+(x>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(et,Mt),x=(x=Math.imul(et,At))+Math.imul(nt,Mt)|0,C=Math.imul(nt,At),y=y+Math.imul(J,le)|0,x=(x=x+Math.imul(J,Pt)|0)+Math.imul(Y,le)|0,C=C+Math.imul(Y,Pt)|0,y=y+Math.imul(F,Qt)|0,x=(x=x+Math.imul(F,qt)|0)+Math.imul(H,Qt)|0,C=C+Math.imul(H,qt)|0;var Ee=(V+(y=y+Math.imul(P,oe)|0)|0)+((8191&(x=(x=x+Math.imul(P,Ut)|0)+Math.imul(q,oe)|0))<<13)|0;V=((C=C+Math.imul(q,Ut)|0)+(x>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,y=Math.imul(tt,Mt),x=(x=Math.imul(tt,At))+Math.imul(Q,Mt)|0,C=Math.imul(Q,At),y=y+Math.imul(et,le)|0,x=(x=x+Math.imul(et,Pt)|0)+Math.imul(nt,le)|0,C=C+Math.imul(nt,Pt)|0,y=y+Math.imul(J,Qt)|0,x=(x=x+Math.imul(J,qt)|0)+Math.imul(Y,Qt)|0,C=C+Math.imul(Y,qt)|0,y=y+Math.imul(F,oe)|0,x=(x=x+Math.imul(F,Ut)|0)+Math.imul(H,oe)|0,C=C+Math.imul(H,Ut)|0;var Te=(V+(y=y+Math.imul(P,de)|0)|0)+((8191&(x=(x=x+Math.imul(P,Ht)|0)+Math.imul(q,de)|0))<<13)|0;V=((C=C+Math.imul(q,Ht)|0)+(x>>>13)|0)+(Te>>>26)|0,Te&=67108863,y=Math.imul(it,Mt),x=(x=Math.imul(it,At))+Math.imul(ot,Mt)|0,C=Math.imul(ot,At),y=y+Math.imul(tt,le)|0,x=(x=x+Math.imul(tt,Pt)|0)+Math.imul(Q,le)|0,C=C+Math.imul(Q,Pt)|0,y=y+Math.imul(et,Qt)|0,x=(x=x+Math.imul(et,qt)|0)+Math.imul(nt,Qt)|0,C=C+Math.imul(nt,qt)|0,y=y+Math.imul(J,oe)|0,x=(x=x+Math.imul(J,Ut)|0)+Math.imul(Y,oe)|0,C=C+Math.imul(Y,Ut)|0,y=y+Math.imul(F,de)|0,x=(x=x+Math.imul(F,Ht)|0)+Math.imul(H,de)|0,C=C+Math.imul(H,Ht)|0;var Z=(V+(y=y+Math.imul(P,pe)|0)|0)+((8191&(x=(x=x+Math.imul(P,Xt)|0)+Math.imul(q,pe)|0))<<13)|0;V=((C=C+Math.imul(q,Xt)|0)+(x>>>13)|0)+(Z>>>26)|0,Z&=67108863,y=Math.imul(ht,Mt),x=(x=Math.imul(ht,At))+Math.imul(bt,Mt)|0,C=Math.imul(bt,At),y=y+Math.imul(it,le)|0,x=(x=x+Math.imul(it,Pt)|0)+Math.imul(ot,le)|0,C=C+Math.imul(ot,Pt)|0,y=y+Math.imul(tt,Qt)|0,x=(x=x+Math.imul(tt,qt)|0)+Math.imul(Q,Qt)|0,C=C+Math.imul(Q,qt)|0,y=y+Math.imul(et,oe)|0,x=(x=x+Math.imul(et,Ut)|0)+Math.imul(nt,oe)|0,C=C+Math.imul(nt,Ut)|0,y=y+Math.imul(J,de)|0,x=(x=x+Math.imul(J,Ht)|0)+Math.imul(Y,de)|0,C=C+Math.imul(Y,Ht)|0,y=y+Math.imul(F,pe)|0,x=(x=x+Math.imul(F,Xt)|0)+Math.imul(H,pe)|0,C=C+Math.imul(H,Xt)|0;var ut=(V+(y=y+Math.imul(P,at)|0)|0)+((8191&(x=(x=x+Math.imul(P,ft)|0)+Math.imul(q,at)|0))<<13)|0;V=((C=C+Math.imul(q,ft)|0)+(x>>>13)|0)+(ut>>>26)|0,ut&=67108863,y=Math.imul(St,Mt),x=(x=Math.imul(St,At))+Math.imul(wt,Mt)|0,C=Math.imul(wt,At),y=y+Math.imul(ht,le)|0,x=(x=x+Math.imul(ht,Pt)|0)+Math.imul(bt,le)|0,C=C+Math.imul(bt,Pt)|0,y=y+Math.imul(it,Qt)|0,x=(x=x+Math.imul(it,qt)|0)+Math.imul(ot,Qt)|0,C=C+Math.imul(ot,qt)|0,y=y+Math.imul(tt,oe)|0,x=(x=x+Math.imul(tt,Ut)|0)+Math.imul(Q,oe)|0,C=C+Math.imul(Q,Ut)|0,y=y+Math.imul(et,de)|0,x=(x=x+Math.imul(et,Ht)|0)+Math.imul(nt,de)|0,C=C+Math.imul(nt,Ht)|0,y=y+Math.imul(J,pe)|0,x=(x=x+Math.imul(J,Xt)|0)+Math.imul(Y,pe)|0,C=C+Math.imul(Y,Xt)|0,y=y+Math.imul(F,at)|0,x=(x=x+Math.imul(F,ft)|0)+Math.imul(H,at)|0,C=C+Math.imul(H,ft)|0;var dt=(V+(y=y+Math.imul(P,jt)|0)|0)+((8191&(x=(x=x+Math.imul(P,Et)|0)+Math.imul(q,jt)|0))<<13)|0;V=((C=C+Math.imul(q,Et)|0)+(x>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(Ft,Mt),x=(x=Math.imul(Ft,At))+Math.imul(It,Mt)|0,C=Math.imul(It,At),y=y+Math.imul(St,le)|0,x=(x=x+Math.imul(St,Pt)|0)+Math.imul(wt,le)|0,C=C+Math.imul(wt,Pt)|0,y=y+Math.imul(ht,Qt)|0,x=(x=x+Math.imul(ht,qt)|0)+Math.imul(bt,Qt)|0,C=C+Math.imul(bt,qt)|0,y=y+Math.imul(it,oe)|0,x=(x=x+Math.imul(it,Ut)|0)+Math.imul(ot,oe)|0,C=C+Math.imul(ot,Ut)|0,y=y+Math.imul(tt,de)|0,x=(x=x+Math.imul(tt,Ht)|0)+Math.imul(Q,de)|0,C=C+Math.imul(Q,Ht)|0,y=y+Math.imul(et,pe)|0,x=(x=x+Math.imul(et,Xt)|0)+Math.imul(nt,pe)|0,C=C+Math.imul(nt,Xt)|0,y=y+Math.imul(J,at)|0,x=(x=x+Math.imul(J,ft)|0)+Math.imul(Y,at)|0,C=C+Math.imul(Y,ft)|0,y=y+Math.imul(F,jt)|0,x=(x=x+Math.imul(F,Et)|0)+Math.imul(H,jt)|0,C=C+Math.imul(H,Et)|0;var gt=(V+(y=y+Math.imul(P,Lt)|0)|0)+((8191&(x=(x=x+Math.imul(P,Ot)|0)+Math.imul(q,Lt)|0))<<13)|0;V=((C=C+Math.imul(q,Ot)|0)+(x>>>13)|0)+(gt>>>26)|0,gt&=67108863,y=Math.imul(Ct,Mt),x=(x=Math.imul(Ct,At))+Math.imul(yt,Mt)|0,C=Math.imul(yt,At),y=y+Math.imul(Ft,le)|0,x=(x=x+Math.imul(Ft,Pt)|0)+Math.imul(It,le)|0,C=C+Math.imul(It,Pt)|0,y=y+Math.imul(St,Qt)|0,x=(x=x+Math.imul(St,qt)|0)+Math.imul(wt,Qt)|0,C=C+Math.imul(wt,qt)|0,y=y+Math.imul(ht,oe)|0,x=(x=x+Math.imul(ht,Ut)|0)+Math.imul(bt,oe)|0,C=C+Math.imul(bt,Ut)|0,y=y+Math.imul(it,de)|0,x=(x=x+Math.imul(it,Ht)|0)+Math.imul(ot,de)|0,C=C+Math.imul(ot,Ht)|0,y=y+Math.imul(tt,pe)|0,x=(x=x+Math.imul(tt,Xt)|0)+Math.imul(Q,pe)|0,C=C+Math.imul(Q,Xt)|0,y=y+Math.imul(et,at)|0,x=(x=x+Math.imul(et,ft)|0)+Math.imul(nt,at)|0,C=C+Math.imul(nt,ft)|0,y=y+Math.imul(J,jt)|0,x=(x=x+Math.imul(J,Et)|0)+Math.imul(Y,jt)|0,C=C+Math.imul(Y,Et)|0,y=y+Math.imul(F,Lt)|0,x=(x=x+Math.imul(F,Ot)|0)+Math.imul(H,Lt)|0,C=C+Math.imul(H,Ot)|0;var Tt=(V+(y=y+Math.imul(P,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(P,Jt)|0)+Math.imul(q,Vt)|0))<<13)|0;V=((C=C+Math.imul(q,Jt)|0)+(x>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Ct,le),x=(x=Math.imul(Ct,Pt))+Math.imul(yt,le)|0,C=Math.imul(yt,Pt),y=y+Math.imul(Ft,Qt)|0,x=(x=x+Math.imul(Ft,qt)|0)+Math.imul(It,Qt)|0,C=C+Math.imul(It,qt)|0,y=y+Math.imul(St,oe)|0,x=(x=x+Math.imul(St,Ut)|0)+Math.imul(wt,oe)|0,C=C+Math.imul(wt,Ut)|0,y=y+Math.imul(ht,de)|0,x=(x=x+Math.imul(ht,Ht)|0)+Math.imul(bt,de)|0,C=C+Math.imul(bt,Ht)|0,y=y+Math.imul(it,pe)|0,x=(x=x+Math.imul(it,Xt)|0)+Math.imul(ot,pe)|0,C=C+Math.imul(ot,Xt)|0,y=y+Math.imul(tt,at)|0,x=(x=x+Math.imul(tt,ft)|0)+Math.imul(Q,at)|0,C=C+Math.imul(Q,ft)|0,y=y+Math.imul(et,jt)|0,x=(x=x+Math.imul(et,Et)|0)+Math.imul(nt,jt)|0,C=C+Math.imul(nt,Et)|0,y=y+Math.imul(J,Lt)|0,x=(x=x+Math.imul(J,Ot)|0)+Math.imul(Y,Lt)|0,C=C+Math.imul(Y,Ot)|0;var vt=(V+(y=y+Math.imul(F,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(F,Jt)|0)+Math.imul(H,Vt)|0))<<13)|0;V=((C=C+Math.imul(H,Jt)|0)+(x>>>13)|0)+(vt>>>26)|0,vt&=67108863,y=Math.imul(Ct,Qt),x=(x=Math.imul(Ct,qt))+Math.imul(yt,Qt)|0,C=Math.imul(yt,qt),y=y+Math.imul(Ft,oe)|0,x=(x=x+Math.imul(Ft,Ut)|0)+Math.imul(It,oe)|0,C=C+Math.imul(It,Ut)|0,y=y+Math.imul(St,de)|0,x=(x=x+Math.imul(St,Ht)|0)+Math.imul(wt,de)|0,C=C+Math.imul(wt,Ht)|0,y=y+Math.imul(ht,pe)|0,x=(x=x+Math.imul(ht,Xt)|0)+Math.imul(bt,pe)|0,C=C+Math.imul(bt,Xt)|0,y=y+Math.imul(it,at)|0,x=(x=x+Math.imul(it,ft)|0)+Math.imul(ot,at)|0,C=C+Math.imul(ot,ft)|0,y=y+Math.imul(tt,jt)|0,x=(x=x+Math.imul(tt,Et)|0)+Math.imul(Q,jt)|0,C=C+Math.imul(Q,Et)|0,y=y+Math.imul(et,Lt)|0,x=(x=x+Math.imul(et,Ot)|0)+Math.imul(nt,Lt)|0,C=C+Math.imul(nt,Ot)|0;var _t=(V+(y=y+Math.imul(J,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(J,Jt)|0)+Math.imul(Y,Vt)|0))<<13)|0;V=((C=C+Math.imul(Y,Jt)|0)+(x>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Ct,oe),x=(x=Math.imul(Ct,Ut))+Math.imul(yt,oe)|0,C=Math.imul(yt,Ut),y=y+Math.imul(Ft,de)|0,x=(x=x+Math.imul(Ft,Ht)|0)+Math.imul(It,de)|0,C=C+Math.imul(It,Ht)|0,y=y+Math.imul(St,pe)|0,x=(x=x+Math.imul(St,Xt)|0)+Math.imul(wt,pe)|0,C=C+Math.imul(wt,Xt)|0,y=y+Math.imul(ht,at)|0,x=(x=x+Math.imul(ht,ft)|0)+Math.imul(bt,at)|0,C=C+Math.imul(bt,ft)|0,y=y+Math.imul(it,jt)|0,x=(x=x+Math.imul(it,Et)|0)+Math.imul(ot,jt)|0,C=C+Math.imul(ot,Et)|0,y=y+Math.imul(tt,Lt)|0,x=(x=x+Math.imul(tt,Ot)|0)+Math.imul(Q,Lt)|0,C=C+Math.imul(Q,Ot)|0;var re=(V+(y=y+Math.imul(et,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(et,Jt)|0)+Math.imul(nt,Vt)|0))<<13)|0;V=((C=C+Math.imul(nt,Jt)|0)+(x>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Ct,de),x=(x=Math.imul(Ct,Ht))+Math.imul(yt,de)|0,C=Math.imul(yt,Ht),y=y+Math.imul(Ft,pe)|0,x=(x=x+Math.imul(Ft,Xt)|0)+Math.imul(It,pe)|0,C=C+Math.imul(It,Xt)|0,y=y+Math.imul(St,at)|0,x=(x=x+Math.imul(St,ft)|0)+Math.imul(wt,at)|0,C=C+Math.imul(wt,ft)|0,y=y+Math.imul(ht,jt)|0,x=(x=x+Math.imul(ht,Et)|0)+Math.imul(bt,jt)|0,C=C+Math.imul(bt,Et)|0,y=y+Math.imul(it,Lt)|0,x=(x=x+Math.imul(it,Ot)|0)+Math.imul(ot,Lt)|0,C=C+Math.imul(ot,Ot)|0;var Gt=(V+(y=y+Math.imul(tt,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(tt,Jt)|0)+Math.imul(Q,Vt)|0))<<13)|0;V=((C=C+Math.imul(Q,Jt)|0)+(x>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(Ct,pe),x=(x=Math.imul(Ct,Xt))+Math.imul(yt,pe)|0,C=Math.imul(yt,Xt),y=y+Math.imul(Ft,at)|0,x=(x=x+Math.imul(Ft,ft)|0)+Math.imul(It,at)|0,C=C+Math.imul(It,ft)|0,y=y+Math.imul(St,jt)|0,x=(x=x+Math.imul(St,Et)|0)+Math.imul(wt,jt)|0,C=C+Math.imul(wt,Et)|0,y=y+Math.imul(ht,Lt)|0,x=(x=x+Math.imul(ht,Ot)|0)+Math.imul(bt,Lt)|0,C=C+Math.imul(bt,Ot)|0;var Zt=(V+(y=y+Math.imul(it,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(it,Jt)|0)+Math.imul(ot,Vt)|0))<<13)|0;V=((C=C+Math.imul(ot,Jt)|0)+(x>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,y=Math.imul(Ct,at),x=(x=Math.imul(Ct,ft))+Math.imul(yt,at)|0,C=Math.imul(yt,ft),y=y+Math.imul(Ft,jt)|0,x=(x=x+Math.imul(Ft,Et)|0)+Math.imul(It,jt)|0,C=C+Math.imul(It,Et)|0,y=y+Math.imul(St,Lt)|0,x=(x=x+Math.imul(St,Ot)|0)+Math.imul(wt,Lt)|0,C=C+Math.imul(wt,Ot)|0;var zt=(V+(y=y+Math.imul(ht,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(ht,Jt)|0)+Math.imul(bt,Vt)|0))<<13)|0;V=((C=C+Math.imul(bt,Jt)|0)+(x>>>13)|0)+(zt>>>26)|0,zt&=67108863,y=Math.imul(Ct,jt),x=(x=Math.imul(Ct,Et))+Math.imul(yt,jt)|0,C=Math.imul(yt,Et),y=y+Math.imul(Ft,Lt)|0,x=(x=x+Math.imul(Ft,Ot)|0)+Math.imul(It,Lt)|0,C=C+Math.imul(It,Ot)|0;var ce=(V+(y=y+Math.imul(St,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(St,Jt)|0)+Math.imul(wt,Vt)|0))<<13)|0;V=((C=C+Math.imul(wt,Jt)|0)+(x>>>13)|0)+(ce>>>26)|0,ce&=67108863,y=Math.imul(Ct,Lt),x=(x=Math.imul(Ct,Ot))+Math.imul(yt,Lt)|0,C=Math.imul(yt,Ot);var he=(V+(y=y+Math.imul(Ft,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(Ft,Jt)|0)+Math.imul(It,Vt)|0))<<13)|0;V=((C=C+Math.imul(It,Jt)|0)+(x>>>13)|0)+(he>>>26)|0,he&=67108863;var me=(V+(y=Math.imul(Ct,Vt))|0)+((8191&(x=(x=Math.imul(Ct,Jt))+Math.imul(yt,Vt)|0))<<13)|0;return V=((C=Math.imul(yt,Jt))+(x>>>13)|0)+(me>>>26)|0,me&=67108863,$[0]=we,$[1]=ge,$[2]=_e,$[3]=Ee,$[4]=Te,$[5]=Z,$[6]=ut,$[7]=dt,$[8]=gt,$[9]=Tt,$[10]=vt,$[11]=_t,$[12]=re,$[13]=Gt,$[14]=Zt,$[15]=zt,$[16]=ce,$[17]=he,$[18]=me,V!==0&&($[19]=V,v.length++),v};function M(w,d,v){v.negative=d.negative^w.negative,v.length=w.length+d.length;for(var y=0,x=0,C=0;C<v.length-1;C++){var N=x;x=0;for(var R=67108863&y,$=Math.min(C,d.length-1),V=Math.max(0,C-w.length+1);V<=$;V++){var X=C-V,P=(0|w.words[X])*(0|d.words[V]),q=67108863&P;R=67108863&(q=q+R|0),x+=(N=(N=N+(P/67108864|0)|0)+(q>>>26)|0)>>>26,N&=67108863}v.words[C]=R,y=N,N=x}return y!==0?v.words[C]=y:v.length--,v._strip()}function j(w,d,v){return M(w,d,v)}Math.imul||(k=_),e.prototype.mulTo=function(w,d){var v=this.length+w.length;return this.length===10&&w.length===10?k(this,w,d):v<63?_(this,w,d):v<1024?M(this,w,d):j(this,w,d)},e.prototype.mul=function(w){var d=new e(null);return d.words=new Array(this.length+w.length),this.mulTo(w,d)},e.prototype.mulf=function(w){var d=new e(null);return d.words=new Array(this.length+w.length),j(this,w,d)},e.prototype.imul=function(w){return this.clone().mulTo(w,this)},e.prototype.imuln=function(w){var d=w<0;d&&(w=-w),o(typeof w=="number"),o(w<67108864);for(var v=0,y=0;y<this.length;y++){var x=(0|this.words[y])*w,C=(67108863&x)+(67108863&v);v>>=26,v+=x/67108864|0,v+=C>>>26,this.words[y]=67108863&C}return v!==0&&(this.words[y]=v,this.length++),d?this.ineg():this},e.prototype.muln=function(w){return this.clone().imuln(w)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(w){var d=(function(C){for(var N=new Array(C.bitLength()),R=0;R<N.length;R++){var $=R/26|0,V=R%26;N[R]=C.words[$]>>>V&1}return N})(w);if(d.length===0)return new e(1);for(var v=this,y=0;y<d.length&&d[y]===0;y++,v=v.sqr());if(++y<d.length)for(var x=v.sqr();y<d.length;y++,x=x.sqr())d[y]!==0&&(v=v.mul(x));return v},e.prototype.iushln=function(w){o(typeof w=="number"&&w>=0);var d,v=w%26,y=(w-v)/26,x=67108863>>>26-v<<26-v;if(v!==0){var C=0;for(d=0;d<this.length;d++){var N=this.words[d]&x,R=(0|this.words[d])-N<<v;this.words[d]=R|C,C=N>>>26-v}C&&(this.words[d]=C,this.length++)}if(y!==0){for(d=this.length-1;d>=0;d--)this.words[d+y]=this.words[d];for(d=0;d<y;d++)this.words[d]=0;this.length+=y}return this._strip()},e.prototype.ishln=function(w){return o(this.negative===0),this.iushln(w)},e.prototype.iushrn=function(w,d,v){var y;o(typeof w=="number"&&w>=0),y=d?(d-d%26)/26:0;var x=w%26,C=Math.min((w-x)/26,this.length),N=67108863^67108863>>>x<<x,R=v;if(y-=C,y=Math.max(0,y),R){for(var $=0;$<C;$++)R.words[$]=this.words[$];R.length=C}if(C!==0)if(this.length>C)for(this.length-=C,$=0;$<this.length;$++)this.words[$]=this.words[$+C];else this.words[0]=0,this.length=1;var V=0;for($=this.length-1;$>=0&&(V!==0||$>=y);$--){var X=0|this.words[$];this.words[$]=V<<26-x|X>>>x,V=X&N}return R&&V!==0&&(R.words[R.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},e.prototype.ishrn=function(w,d,v){return o(this.negative===0),this.iushrn(w,d,v)},e.prototype.shln=function(w){return this.clone().ishln(w)},e.prototype.ushln=function(w){return this.clone().iushln(w)},e.prototype.shrn=function(w){return this.clone().ishrn(w)},e.prototype.ushrn=function(w){return this.clone().iushrn(w)},e.prototype.testn=function(w){o(typeof w=="number"&&w>=0);var d=w%26,v=(w-d)/26,y=1<<d;return!(this.length<=v)&&!!(this.words[v]&y)},e.prototype.imaskn=function(w){o(typeof w=="number"&&w>=0);var d=w%26,v=(w-d)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(d!==0&&v++,this.length=Math.min(v,this.length),d!==0){var y=67108863^67108863>>>d<<d;this.words[this.length-1]&=y}return this._strip()},e.prototype.maskn=function(w){return this.clone().imaskn(w)},e.prototype.iaddn=function(w){return o(typeof w=="number"),o(w<67108864),w<0?this.isubn(-w):this.negative!==0?this.length===1&&(0|this.words[0])<=w?(this.words[0]=w-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(w),this.negative=1,this):this._iaddn(w)},e.prototype._iaddn=function(w){this.words[0]+=w;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},e.prototype.isubn=function(w){if(o(typeof w=="number"),o(w<67108864),w<0)return this.iaddn(-w);if(this.negative!==0)return this.negative=0,this.iaddn(w),this.negative=1,this;if(this.words[0]-=w,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},e.prototype.addn=function(w){return this.clone().iaddn(w)},e.prototype.subn=function(w){return this.clone().isubn(w)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(w,d,v){var y,x,C=w.length+v;this._expand(C);var N=0;for(y=0;y<w.length;y++){x=(0|this.words[y+v])+N;var R=(0|w.words[y])*d;N=((x-=67108863&R)>>26)-(R/67108864|0),this.words[y+v]=67108863&x}for(;y<this.length-v;y++)N=(x=(0|this.words[y+v])+N)>>26,this.words[y+v]=67108863&x;if(N===0)return this._strip();for(o(N===-1),N=0,y=0;y<this.length;y++)N=(x=-(0|this.words[y])+N)>>26,this.words[y]=67108863&x;return this.negative=1,this._strip()},e.prototype._wordDiv=function(w,d){var v=(this.length,w.length),y=this.clone(),x=w,C=0|x.words[x.length-1];(v=26-this._countBits(C))!==0&&(x=x.ushln(v),y.iushln(v),C=0|x.words[x.length-1]);var N,R=y.length-x.length;if(d!=="mod"){(N=new e(null)).length=R+1,N.words=new Array(N.length);for(var $=0;$<N.length;$++)N.words[$]=0}var V=y.clone()._ishlnsubmul(x,1,R);V.negative===0&&(y=V,N&&(N.words[R]=1));for(var X=R-1;X>=0;X--){var P=67108864*(0|y.words[x.length+X])+(0|y.words[x.length+X-1]);for(P=Math.min(P/C|0,67108863),y._ishlnsubmul(x,P,X);y.negative!==0;)P--,y.negative=0,y._ishlnsubmul(x,1,X),y.isZero()||(y.negative^=1);N&&(N.words[X]=P)}return N&&N._strip(),y._strip(),d!=="div"&&v!==0&&y.iushrn(v),{div:N||null,mod:y}},e.prototype.divmod=function(w,d,v){return o(!w.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&w.negative===0?(C=this.neg().divmod(w,d),d!=="mod"&&(y=C.div.neg()),d!=="div"&&(x=C.mod.neg(),v&&x.negative!==0&&x.iadd(w)),{div:y,mod:x}):this.negative===0&&w.negative!==0?(C=this.divmod(w.neg(),d),d!=="mod"&&(y=C.div.neg()),{div:y,mod:C.mod}):(this.negative&w.negative)!=0?(C=this.neg().divmod(w.neg(),d),d!=="div"&&(x=C.mod.neg(),v&&x.negative!==0&&x.isub(w)),{div:C.div,mod:x}):w.length>this.length||this.cmp(w)<0?{div:new e(0),mod:this}:w.length===1?d==="div"?{div:this.divn(w.words[0]),mod:null}:d==="mod"?{div:null,mod:new e(this.modrn(w.words[0]))}:{div:this.divn(w.words[0]),mod:new e(this.modrn(w.words[0]))}:this._wordDiv(w,d);var y,x,C},e.prototype.div=function(w){return this.divmod(w,"div",!1).div},e.prototype.mod=function(w){return this.divmod(w,"mod",!1).mod},e.prototype.umod=function(w){return this.divmod(w,"mod",!0).mod},e.prototype.divRound=function(w){var d=this.divmod(w);if(d.mod.isZero())return d.div;var v=d.div.negative!==0?d.mod.isub(w):d.mod,y=w.ushrn(1),x=w.andln(1),C=v.cmp(y);return C<0||x===1&&C===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},e.prototype.modrn=function(w){var d=w<0;d&&(w=-w),o(w<=67108863);for(var v=(1<<26)%w,y=0,x=this.length-1;x>=0;x--)y=(v*y+(0|this.words[x]))%w;return d?-y:y},e.prototype.modn=function(w){return this.modrn(w)},e.prototype.idivn=function(w){var d=w<0;d&&(w=-w),o(w<=67108863);for(var v=0,y=this.length-1;y>=0;y--){var x=(0|this.words[y])+67108864*v;this.words[y]=x/w|0,v=x%w}return this._strip(),d?this.ineg():this},e.prototype.divn=function(w){return this.clone().idivn(w)},e.prototype.egcd=function(w){o(w.negative===0),o(!w.isZero());var d=this,v=w.clone();d=d.negative!==0?d.umod(w):d.clone();for(var y=new e(1),x=new e(0),C=new e(0),N=new e(1),R=0;d.isEven()&&v.isEven();)d.iushrn(1),v.iushrn(1),++R;for(var $=v.clone(),V=d.clone();!d.isZero();){for(var X=0,P=1;(d.words[0]&P)==0&&X<26;++X,P<<=1);if(X>0)for(d.iushrn(X);X-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd($),x.isub(V)),y.iushrn(1),x.iushrn(1);for(var q=0,I=1;(v.words[0]&I)==0&&q<26;++q,I<<=1);if(q>0)for(v.iushrn(q);q-- >0;)(C.isOdd()||N.isOdd())&&(C.iadd($),N.isub(V)),C.iushrn(1),N.iushrn(1);d.cmp(v)>=0?(d.isub(v),y.isub(C),x.isub(N)):(v.isub(d),C.isub(y),N.isub(x))}return{a:C,b:N,gcd:v.iushln(R)}},e.prototype._invmp=function(w){o(w.negative===0),o(!w.isZero());var d=this,v=w.clone();d=d.negative!==0?d.umod(w):d.clone();for(var y,x=new e(1),C=new e(0),N=v.clone();d.cmpn(1)>0&&v.cmpn(1)>0;){for(var R=0,$=1;(d.words[0]&$)==0&&R<26;++R,$<<=1);if(R>0)for(d.iushrn(R);R-- >0;)x.isOdd()&&x.iadd(N),x.iushrn(1);for(var V=0,X=1;(v.words[0]&X)==0&&V<26;++V,X<<=1);if(V>0)for(v.iushrn(V);V-- >0;)C.isOdd()&&C.iadd(N),C.iushrn(1);d.cmp(v)>=0?(d.isub(v),x.isub(C)):(v.isub(d),C.isub(x))}return(y=d.cmpn(1)===0?x:C).cmpn(0)<0&&y.iadd(w),y},e.prototype.gcd=function(w){if(this.isZero())return w.abs();if(w.isZero())return this.abs();var d=this.clone(),v=w.clone();d.negative=0,v.negative=0;for(var y=0;d.isEven()&&v.isEven();y++)d.iushrn(1),v.iushrn(1);for(;;){for(;d.isEven();)d.iushrn(1);for(;v.isEven();)v.iushrn(1);var x=d.cmp(v);if(x<0){var C=d;d=v,v=C}else if(x===0||v.cmpn(1)===0)break;d.isub(v)}return v.iushln(y)},e.prototype.invm=function(w){return this.egcd(w).a.umod(w)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(w){return this.words[0]&w},e.prototype.bincn=function(w){o(typeof w=="number");var d=w%26,v=(w-d)/26,y=1<<d;if(this.length<=v)return this._expand(v+1),this.words[v]|=y,this;for(var x=y,C=v;x!==0&&C<this.length;C++){var N=0|this.words[C];x=(N+=x)>>>26,N&=67108863,this.words[C]=N}return x!==0&&(this.words[C]=x,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(w){var d,v=w<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;if(this._strip(),this.length>1)d=1;else{v&&(w=-w),o(w<=67108863,"Number is too big");var y=0|this.words[0];d=y===w?0:y<w?-1:1}return this.negative!==0?0|-d:d},e.prototype.cmp=function(w){if(this.negative!==0&&w.negative===0)return-1;if(this.negative===0&&w.negative!==0)return 1;var d=this.ucmp(w);return this.negative!==0?0|-d:d},e.prototype.ucmp=function(w){if(this.length>w.length)return 1;if(this.length<w.length)return-1;for(var d=0,v=this.length-1;v>=0;v--){var y=0|this.words[v],x=0|w.words[v];if(y!==x){y<x?d=-1:y>x&&(d=1);break}}return d},e.prototype.gtn=function(w){return this.cmpn(w)===1},e.prototype.gt=function(w){return this.cmp(w)===1},e.prototype.gten=function(w){return this.cmpn(w)>=0},e.prototype.gte=function(w){return this.cmp(w)>=0},e.prototype.ltn=function(w){return this.cmpn(w)===-1},e.prototype.lt=function(w){return this.cmp(w)===-1},e.prototype.lten=function(w){return this.cmpn(w)<=0},e.prototype.lte=function(w){return this.cmp(w)<=0},e.prototype.eqn=function(w){return this.cmpn(w)===0},e.prototype.eq=function(w){return this.cmp(w)===0},e.red=function(w){return new S(w)},e.prototype.toRed=function(w){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),w.convertTo(this)._forceRed(w)},e.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(w){return this.red=w,this},e.prototype.forceRed=function(w){return o(!this.red,"Already a number in reduction context"),this._forceRed(w)},e.prototype.redAdd=function(w){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,w)},e.prototype.redIAdd=function(w){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,w)},e.prototype.redSub=function(w){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,w)},e.prototype.redISub=function(w){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,w)},e.prototype.redShl=function(w){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,w)},e.prototype.redMul=function(w){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.mul(this,w)},e.prototype.redIMul=function(w){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.imul(this,w)},e.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(w){return o(this.red&&!w.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,w)};var z={k256:null,p224:null,p192:null,p25519:null};function A(w,d){this.name=w,this.p=new e(d,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function T(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function L(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function B(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(w){if(typeof w=="string"){var d=e._prime(w);this.m=d.p,this.prime=d}else o(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function D(w){S.call(this,w),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var w=new e(null);return w.words=new Array(Math.ceil(this.n/13)),w},A.prototype.ireduce=function(w){var d,v=w;do this.split(v,this.tmp),d=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength();while(d>this.n);var y=d<this.n?-1:v.ucmp(this.p);return y===0?(v.words[0]=0,v.length=1):y>0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},A.prototype.split=function(w,d){w.iushrn(this.n,0,d)},A.prototype.imulK=function(w){return w.imul(this.k)},n(T,A),T.prototype.split=function(w,d){for(var v=Math.min(w.length,9),y=0;y<v;y++)d.words[y]=w.words[y];if(d.length=v,w.length<=9)return w.words[0]=0,void(w.length=1);var x=w.words[9];for(d.words[d.length++]=4194303&x,y=10;y<w.length;y++){var C=0|w.words[y];w.words[y-10]=(4194303&C)<<4|x>>>22,x=C}x>>>=22,w.words[y-10]=x,x===0&&w.length>10?w.length-=10:w.length-=9},T.prototype.imulK=function(w){w.words[w.length]=0,w.words[w.length+1]=0,w.length+=2;for(var d=0,v=0;v<w.length;v++){var y=0|w.words[v];d+=977*y,w.words[v]=67108863&d,d=64*y+(d/67108864|0)}return w.words[w.length-1]===0&&(w.length--,w.words[w.length-1]===0&&w.length--),w},n(O,A),n(L,A),n(B,A),B.prototype.imulK=function(w){for(var d=0,v=0;v<w.length;v++){var y=19*(0|w.words[v])+d,x=67108863&y;y>>>=26,w.words[v]=x,d=y}return d!==0&&(w.words[w.length++]=d),w},e._prime=function(w){if(z[w])return z[w];var d;if(w==="k256")d=new T;else if(w==="p224")d=new O;else if(w==="p192")d=new L;else{if(w!=="p25519")throw new Error("Unknown prime "+w);d=new B}return z[w]=d,d},S.prototype._verify1=function(w){o(w.negative===0,"red works only with positives"),o(w.red,"red works only with red numbers")},S.prototype._verify2=function(w,d){o((w.negative|d.negative)==0,"red works only with positives"),o(w.red&&w.red===d.red,"red works only with red numbers")},S.prototype.imod=function(w){return this.prime?this.prime.ireduce(w)._forceRed(this):(h(w,w.umod(this.m)._forceRed(this)),w)},S.prototype.neg=function(w){return w.isZero()?w.clone():this.m.sub(w)._forceRed(this)},S.prototype.add=function(w,d){this._verify2(w,d);var v=w.add(d);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},S.prototype.iadd=function(w,d){this._verify2(w,d);var v=w.iadd(d);return v.cmp(this.m)>=0&&v.isub(this.m),v},S.prototype.sub=function(w,d){this._verify2(w,d);var v=w.sub(d);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},S.prototype.isub=function(w,d){this._verify2(w,d);var v=w.isub(d);return v.cmpn(0)<0&&v.iadd(this.m),v},S.prototype.shl=function(w,d){return this._verify1(w),this.imod(w.ushln(d))},S.prototype.imul=function(w,d){return this._verify2(w,d),this.imod(w.imul(d))},S.prototype.mul=function(w,d){return this._verify2(w,d),this.imod(w.mul(d))},S.prototype.isqr=function(w){return this.imul(w,w.clone())},S.prototype.sqr=function(w){return this.mul(w,w)},S.prototype.sqrt=function(w){if(w.isZero())return w.clone();var d=this.m.andln(3);if(o(d%2==1),d===3){var v=this.m.add(new e(1)).iushrn(2);return this.pow(w,v)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);o(!y.isZero());var C=new e(1).toRed(this),N=C.redNeg(),R=this.m.subn(1).iushrn(1),$=this.m.bitLength();for($=new e(2*$*$).toRed(this);this.pow($,R).cmp(N)!==0;)$.redIAdd(N);for(var V=this.pow($,y),X=this.pow(w,y.addn(1).iushrn(1)),P=this.pow(w,y),q=x;P.cmp(C)!==0;){for(var I=P,F=0;I.cmp(C)!==0;F++)I=I.redSqr();o(F<q);var H=this.pow(V,new e(1).iushln(q-F-1));X=X.redMul(H),V=H.redSqr(),P=P.redMul(V),q=F}return X},S.prototype.invm=function(w){var d=w._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},S.prototype.pow=function(w,d){if(d.isZero())return new e(1).toRed(this);if(d.cmpn(1)===0)return w.clone();var v=new Array(16);v[0]=new e(1).toRed(this),v[1]=w;for(var y=2;y<v.length;y++)v[y]=this.mul(v[y-1],w);var x=v[0],C=0,N=0,R=d.bitLength()%26;for(R===0&&(R=26),y=d.length-1;y>=0;y--){for(var $=d.words[y],V=R-1;V>=0;V--){var X=$>>V&1;x!==v[0]&&(x=this.sqr(x)),X!==0||C!==0?(C<<=1,C|=X,(++N===4||y===0&&V===0)&&(x=this.mul(x,v[C]),N=0,C=0)):N=0}R=26}return x},S.prototype.convertTo=function(w){var d=w.umod(this.m);return d===w?d.clone():d},S.prototype.convertFrom=function(w){var d=w.clone();return d.red=null,d},e.mont=function(w){return new D(w)},n(D,S),D.prototype.convertTo=function(w){return this.imod(w.ushln(this.shift))},D.prototype.convertFrom=function(w){var d=this.imod(w.mul(this.rinv));return d.red=null,d},D.prototype.imul=function(w,d){if(w.isZero()||d.isZero())return w.words[0]=0,w.length=1,w;var v=w.imul(d),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=v.isub(y).iushrn(this.shift),C=x;return x.cmp(this.m)>=0?C=x.isub(this.m):x.cmpn(0)<0&&(C=x.iadd(this.m)),C._forceRed(this)},D.prototype.mul=function(w,d){if(w.isZero()||d.isZero())return new e(0)._forceRed(this);var v=w.mul(d),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=v.isub(y).iushrn(this.shift),C=x;return x.cmp(this.m)>=0?C=x.isub(this.m):x.cmpn(0)<0&&(C=x.iadd(this.m)),C._forceRed(this)},D.prototype.invm=function(w){return this.imod(w._invmp(this.m).mul(this.r2))._forceRed(this)}})(b===void 0||b)},{buffer:188}],187:[function(t,b,g){var c;function a(n){this.rand=n}if(b.exports=function(n){return c||(c=new a(null)),c.generate(n)},b.exports.Rand=a,a.prototype.generate=function(n){return this._rand(n)},a.prototype._rand=function(n){if(this.rand.getBytes)return this.rand.getBytes(n);for(var e=new Uint8Array(n),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(n){var e=new Uint8Array(n);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(n){var e=new Uint8Array(n);return self.msCrypto.getRandomValues(e),e}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=t("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(n){return o.randomBytes(n)}}catch{}},{crypto:188}],188:[function(t,b,g){},{}],189:[function(t,b,g){var c=t("safe-buffer").Buffer;function a(i){c.isBuffer(i)||(i=c.from(i));for(var s=i.length/4|0,h=new Array(s),f=0;f<s;f++)h[f]=i.readUInt32BE(4*f);return h}function o(i){for(;0<i.length;i++)i[0]=0}function n(i,s,h,f,l){for(var p,m,_,k,M=h[0],j=h[1],z=h[2],A=h[3],T=i[0]^s[0],O=i[1]^s[1],L=i[2]^s[2],B=i[3]^s[3],S=4,D=1;D<l;D++)p=M[T>>>24]^j[O>>>16&255]^z[L>>>8&255]^A[255&B]^s[S++],m=M[O>>>24]^j[L>>>16&255]^z[B>>>8&255]^A[255&T]^s[S++],_=M[L>>>24]^j[B>>>16&255]^z[T>>>8&255]^A[255&O]^s[S++],k=M[B>>>24]^j[T>>>16&255]^z[O>>>8&255]^A[255&L]^s[S++],T=p,O=m,L=_,B=k;return p=(f[T>>>24]<<24|f[O>>>16&255]<<16|f[L>>>8&255]<<8|f[255&B])^s[S++],m=(f[O>>>24]<<24|f[L>>>16&255]<<16|f[B>>>8&255]<<8|f[255&T])^s[S++],_=(f[L>>>24]<<24|f[B>>>16&255]<<16|f[T>>>8&255]<<8|f[255&O])^s[S++],k=(f[B>>>24]<<24|f[T>>>16&255]<<16|f[O>>>8&255]<<8|f[255&L])^s[S++],[p>>>=0,m>>>=0,_>>>=0,k>>>=0]}var e=[0,1,2,4,8,16,32,64,128,27,54],r=(function(){for(var i=new Array(256),s=0;s<256;s++)i[s]=s<128?s<<1:s<<1^283;for(var h=[],f=[],l=[[],[],[],[]],p=[[],[],[],[]],m=0,_=0,k=0;k<256;++k){var M=_^_<<1^_<<2^_<<3^_<<4;M=M>>>8^255&M^99,h[m]=M,f[M]=m;var j=i[m],z=i[j],A=i[z],T=257*i[M]^16843008*M;l[0][m]=T<<24|T>>>8,l[1][m]=T<<16|T>>>16,l[2][m]=T<<8|T>>>24,l[3][m]=T,T=16843009*A^65537*z^257*j^16843008*m,p[0][M]=T<<24|T>>>8,p[1][M]=T<<16|T>>>16,p[2][M]=T<<8|T>>>24,p[3][M]=T,m===0?m=_=1:(m=j^i[i[i[A^j]]],_^=i[i[_]])}return{SBOX:h,INV_SBOX:f,SUB_MIX:l,INV_SUB_MIX:p}})();function u(i){this._key=a(i),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var i=this._key,s=i.length,h=s+6,f=4*(h+1),l=[],p=0;p<s;p++)l[p]=i[p];for(p=s;p<f;p++){var m=l[p-1];p%s==0?(m=m<<8|m>>>24,m=r.SBOX[m>>>24]<<24|r.SBOX[m>>>16&255]<<16|r.SBOX[m>>>8&255]<<8|r.SBOX[255&m],m^=e[p/s|0]<<24):s>6&&p%s==4&&(m=r.SBOX[m>>>24]<<24|r.SBOX[m>>>16&255]<<16|r.SBOX[m>>>8&255]<<8|r.SBOX[255&m]),l[p]=l[p-s]^m}for(var _=[],k=0;k<f;k++){var M=f-k,j=l[M-(k%4?0:4)];_[k]=k<4||M<=4?j:r.INV_SUB_MIX[0][r.SBOX[j>>>24]]^r.INV_SUB_MIX[1][r.SBOX[j>>>16&255]]^r.INV_SUB_MIX[2][r.SBOX[j>>>8&255]]^r.INV_SUB_MIX[3][r.SBOX[255&j]]}this._nRounds=h,this._keySchedule=l,this._invKeySchedule=_},u.prototype.encryptBlockRaw=function(i){return n(i=a(i),this._keySchedule,r.SUB_MIX,r.SBOX,this._nRounds)},u.prototype.encryptBlock=function(i){var s=this.encryptBlockRaw(i),h=c.allocUnsafe(16);return h.writeUInt32BE(s[0],0),h.writeUInt32BE(s[1],4),h.writeUInt32BE(s[2],8),h.writeUInt32BE(s[3],12),h},u.prototype.decryptBlock=function(i){var s=(i=a(i))[1];i[1]=i[3],i[3]=s;var h=n(i,this._invKeySchedule,r.INV_SUB_MIX,r.INV_SBOX,this._nRounds),f=c.allocUnsafe(16);return f.writeUInt32BE(h[0],0),f.writeUInt32BE(h[3],4),f.writeUInt32BE(h[2],8),f.writeUInt32BE(h[1],12),f},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},b.exports.AES=u},{"safe-buffer":494}],190:[function(t,b,g){var c=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base"),n=t("inherits"),e=t("./ghash"),r=t("buffer-xor"),u=t("./incr32");function i(s,h,f,l){o.call(this);var p=a.alloc(4,0);this._cipher=new c.AES(h);var m=this._cipher.encryptBlock(p);this._ghash=new e(m),f=(function(_,k,M){if(k.length===12)return _._finID=a.concat([k,a.from([0,0,0,1])]),a.concat([k,a.from([0,0,0,2])]);var j=new e(M),z=k.length,A=z%16;j.update(k),A&&(A=16-A,j.update(a.alloc(A,0))),j.update(a.alloc(8,0));var T=8*z,O=a.alloc(8);O.writeUIntBE(T,0,8),j.update(O),_._finID=j.state;var L=a.from(_._finID);return u(L),L})(this,f,m),this._prev=a.from(f),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=l,this._alen=0,this._len=0,this._mode=s,this._authTag=null,this._called=!1}n(i,o),i.prototype._update=function(s){if(!this._called&&this._alen){var h=16-this._alen%16;h<16&&(h=a.alloc(h,0),this._ghash.update(h))}this._called=!0;var f=this._mode.encrypt(this,s);return this._decrypt?this._ghash.update(s):this._ghash.update(f),this._len+=s.length,f},i.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var s=r(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(h,f){var l=0;h.length!==f.length&&l++;for(var p=Math.min(h.length,f.length),m=0;m<p;++m)l+=h[m]^f[m];return l})(s,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=s,this._cipher.scrub()},i.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},i.prototype.setAuthTag=function(s){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=s},i.prototype.setAAD=function(s){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(s),this._alen+=s.length},b.exports=i},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(t,b,g){var c=t("./encrypter"),a=t("./decrypter"),o=t("./modes/list.json");g.createCipher=g.Cipher=c.createCipher,g.createCipheriv=g.Cipheriv=c.createCipheriv,g.createDecipher=g.Decipher=a.createDecipher,g.createDecipheriv=g.Decipheriv=a.createDecipheriv,g.listCiphers=g.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(t,b,g){var c=t("./authCipher"),a=t("safe-buffer").Buffer,o=t("./modes"),n=t("./streamCipher"),e=t("cipher-base"),r=t("./aes"),u=t("evp_bytestokey");function i(f,l,p){e.call(this),this._cache=new s,this._last=void 0,this._cipher=new r.AES(l),this._prev=a.from(p),this._mode=f,this._autopadding=!0}function s(){this.cache=a.allocUnsafe(0)}function h(f,l,p){var m=o[f.toLowerCase()];if(!m)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=a.from(p)),m.mode!=="GCM"&&p.length!==m.iv)throw new TypeError("invalid iv length "+p.length);if(typeof l=="string"&&(l=a.from(l)),l.length!==m.key/8)throw new TypeError("invalid key length "+l.length);return m.type==="stream"?new n(m.module,l,p,!0):m.type==="auth"?new c(m.module,l,p,!0):new i(m.module,l,p)}t("inherits")(i,e),i.prototype._update=function(f){var l,p;this._cache.add(f);for(var m=[];l=this._cache.get(this._autopadding);)p=this._mode.decrypt(this,l),m.push(p);return a.concat(m)},i.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return(function(l){var p=l[15];if(p<1||p>16)throw new Error("unable to decrypt data");for(var m=-1;++m<p;)if(l[m+(16-p)]!==p)throw new Error("unable to decrypt data");if(p!==16)return l.slice(0,16-p)})(this._mode.decrypt(this,f));if(f)throw new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this},s.prototype.add=function(f){this.cache=a.concat([this.cache,f])},s.prototype.get=function(f){var l;if(f){if(this.cache.length>16)return l=this.cache.slice(0,16),this.cache=this.cache.slice(16),l}else if(this.cache.length>=16)return l=this.cache.slice(0,16),this.cache=this.cache.slice(16),l;return null},s.prototype.flush=function(){if(this.cache.length)return this.cache},g.createDecipher=function(f,l){var p=o[f.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var m=u(l,!1,p.key,p.iv);return h(f,m.key,m.iv)},g.createDecipheriv=h},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,b,g){var c=t("./modes"),a=t("./authCipher"),o=t("safe-buffer").Buffer,n=t("./streamCipher"),e=t("cipher-base"),r=t("./aes"),u=t("evp_bytestokey");function i(l,p,m){e.call(this),this._cache=new h,this._cipher=new r.AES(p),this._prev=o.from(m),this._mode=l,this._autopadding=!0}t("inherits")(i,e),i.prototype._update=function(l){var p,m;this._cache.add(l);for(var _=[];p=this._cache.get();)m=this._mode.encrypt(this,p),_.push(m);return o.concat(_)};var s=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function f(l,p,m){var _=c[l.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=o.from(p)),p.length!==_.key/8)throw new TypeError("invalid key length "+p.length);if(typeof m=="string"&&(m=o.from(m)),_.mode!=="GCM"&&m.length!==_.iv)throw new TypeError("invalid iv length "+m.length);return _.type==="stream"?new n(_.module,p,m):_.type==="auth"?new a(_.module,p,m):new i(_.module,p,m)}i.prototype._final=function(){var l=this._cache.flush();if(this._autopadding)return l=this._mode.encrypt(this,l),this._cipher.scrub(),l;if(!l.equals(s))throw this._cipher.scrub(),new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(l){return this._autopadding=!!l,this},h.prototype.add=function(l){this.cache=o.concat([this.cache,l])},h.prototype.get=function(){if(this.cache.length>15){var l=this.cache.slice(0,16);return this.cache=this.cache.slice(16),l}return null},h.prototype.flush=function(){for(var l=16-this.cache.length,p=o.allocUnsafe(l),m=-1;++m<l;)p.writeUInt8(l,m);return o.concat([this.cache,p])},g.createCipheriv=f,g.createCipher=function(l,p){var m=c[l.toLowerCase()];if(!m)throw new TypeError("invalid suite type");var _=u(p,!1,m.key,m.iv);return f(l,_.key,_.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(t,b,g){var c=t("safe-buffer").Buffer,a=c.alloc(16,0);function o(e){var r=c.allocUnsafe(16);return r.writeUInt32BE(e[0]>>>0,0),r.writeUInt32BE(e[1]>>>0,4),r.writeUInt32BE(e[2]>>>0,8),r.writeUInt32BE(e[3]>>>0,12),r}function n(e){this.h=e,this.state=c.alloc(16,0),this.cache=c.allocUnsafe(0)}n.prototype.ghash=function(e){for(var r=-1;++r<e.length;)this.state[r]^=e[r];this._multiply()},n.prototype._multiply=function(){for(var e,r,u,i=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],s=[0,0,0,0],h=-1;++h<128;){for((this.state[~~(h/8)]&1<<7-h%8)!=0&&(s[0]^=i[0],s[1]^=i[1],s[2]^=i[2],s[3]^=i[3]),u=(1&i[3])!=0,r=3;r>0;r--)i[r]=i[r]>>>1|(1&i[r-1])<<31;i[0]=i[0]>>>1,u&&(i[0]=i[0]^225<<24)}this.state=o(s)},n.prototype.update=function(e){var r;for(this.cache=c.concat([this.cache,e]);this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},n.prototype.final=function(e,r){return this.cache.length&&this.ghash(c.concat([this.cache,a],16)),this.ghash(o([0,e,0,r])),this.state},b.exports=n},{"safe-buffer":494}],195:[function(t,b,g){b.exports=function(c){for(var a,o=c.length;o--;){if((a=c.readUInt8(o))!==255){a++,c.writeUInt8(a,o);break}c.writeUInt8(0,o)}}},{}],196:[function(t,b,g){var c=t("buffer-xor");g.encrypt=function(a,o){var n=c(o,a._prev);return a._prev=a._cipher.encryptBlock(n),a._prev},g.decrypt=function(a,o){var n=a._prev;a._prev=o;var e=a._cipher.decryptBlock(o);return c(e,n)}},{"buffer-xor":219}],197:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("buffer-xor");function o(n,e,r){var u=e.length,i=a(e,n._cache);return n._cache=n._cache.slice(u),n._prev=c.concat([n._prev,r?e:i]),i}g.encrypt=function(n,e,r){for(var u,i=c.allocUnsafe(0);e.length;){if(n._cache.length===0&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=c.allocUnsafe(0)),!(n._cache.length<=e.length)){i=c.concat([i,o(n,e,r)]);break}u=n._cache.length,i=c.concat([i,o(n,e.slice(0,u),r)]),e=e.slice(u)}return i}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,b,g){var c=t("safe-buffer").Buffer;function a(n,e,r){for(var u,i,s=-1,h=0;++s<8;)u=e&1<<7-s?128:0,h+=(128&(i=n._cipher.encryptBlock(n._prev)[0]^u))>>s%8,n._prev=o(n._prev,r?u:i);return h}function o(n,e){var r=n.length,u=-1,i=c.allocUnsafe(n.length);for(n=c.concat([n,c.from([e])]);++u<r;)i[u]=n[u]<<1|n[u+1]>>7;return i}g.encrypt=function(n,e,r){for(var u=e.length,i=c.allocUnsafe(u),s=-1;++s<u;)i[s]=a(n,e[s],r);return i}},{"safe-buffer":494}],199:[function(t,b,g){var c=t("safe-buffer").Buffer;function a(o,n,e){var r=o._cipher.encryptBlock(o._prev)[0]^n;return o._prev=c.concat([o._prev.slice(1),c.from([e?n:r])]),r}g.encrypt=function(o,n,e){for(var r=n.length,u=c.allocUnsafe(r),i=-1;++i<r;)u[i]=a(o,n[i],e);return u}},{"safe-buffer":494}],200:[function(t,b,g){var c=t("buffer-xor"),a=t("safe-buffer").Buffer,o=t("../incr32");function n(e){var r=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),r}g.encrypt=function(e,r){var u=Math.ceil(r.length/16),i=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*u)]);for(var s=0;s<u;s++){var h=n(e),f=i+16*s;e._cache.writeUInt32BE(h[0],f+0),e._cache.writeUInt32BE(h[1],f+4),e._cache.writeUInt32BE(h[2],f+8),e._cache.writeUInt32BE(h[3],f+12)}var l=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),c(r,l)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(t,b,g){g.encrypt=function(c,a){return c._cipher.encryptBlock(a)},g.decrypt=function(c,a){return c._cipher.decryptBlock(a)}},{}],202:[function(t,b,g){var c={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},a=t("./list.json");for(var o in a)a[o].module=c[a[o].mode];b.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(t,b,g){b.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(t,b,g){(function(c){(function(){var a=t("buffer-xor");function o(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}g.encrypt=function(n,e){for(;n._cache.length<e.length;)n._cache=c.concat([n._cache,o(n)]);var r=n._cache.slice(0,e.length);return n._cache=n._cache.slice(e.length),a(e,r)}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(t,b,g){var c=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base");function n(e,r,u,i){o.call(this),this._cipher=new c.AES(r),this._prev=a.from(u),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=i,this._mode=e}t("inherits")(n,o),n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},b.exports=n},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(t,b,g){var c=t("browserify-des"),a=t("browserify-aes/browser"),o=t("browserify-aes/modes"),n=t("browserify-des/modes"),e=t("evp_bytestokey");function r(i,s,h){if(i=i.toLowerCase(),o[i])return a.createCipheriv(i,s,h);if(n[i])return new c({key:s,iv:h,mode:i});throw new TypeError("invalid suite type")}function u(i,s,h){if(i=i.toLowerCase(),o[i])return a.createDecipheriv(i,s,h);if(n[i])return new c({key:s,iv:h,mode:i,decrypt:!0});throw new TypeError("invalid suite type")}g.createCipher=g.Cipher=function(i,s){var h,f;if(i=i.toLowerCase(),o[i])h=o[i].key,f=o[i].iv;else{if(!n[i])throw new TypeError("invalid suite type");h=8*n[i].key,f=n[i].iv}var l=e(s,!1,h,f);return r(i,l.key,l.iv)},g.createCipheriv=g.Cipheriv=r,g.createDecipher=g.Decipher=function(i,s){var h,f;if(i=i.toLowerCase(),o[i])h=o[i].key,f=o[i].iv;else{if(!n[i])throw new TypeError("invalid suite type");h=8*n[i].key,f=n[i].iv}var l=e(s,!1,h,f);return u(i,l.key,l.iv)},g.createDecipheriv=g.Decipheriv=u,g.listCiphers=g.getCiphers=function(){return Object.keys(n).concat(a.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(t,b,g){var c=t("cipher-base"),a=t("des.js"),o=t("inherits"),n=t("safe-buffer").Buffer,e={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function r(u){c.call(this);var i,s=u.mode.toLowerCase(),h=e[s];i=u.decrypt?"decrypt":"encrypt";var f=u.key;n.isBuffer(f)||(f=n.from(f)),s!=="des-ede"&&s!=="des-ede-cbc"||(f=n.concat([f,f.slice(0,8)]));var l=u.iv;n.isBuffer(l)||(l=n.from(l)),this._des=h.create({key:f,iv:l,type:i})}e.des=e["des-cbc"],e.des3=e["des-ede3-cbc"],b.exports=r,o(r,c),r.prototype._update=function(u){return n.from(this._des.update(u))},r.prototype._final=function(){return n.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(t,b,g){g["des-ecb"]={key:8,iv:0},g["des-cbc"]=g.des={key:8,iv:8},g["des-ede3-cbc"]=g.des3={key:24,iv:8},g["des-ede3"]={key:24,iv:0},g["des-ede-cbc"]={key:16,iv:8},g["des-ede"]={key:16,iv:0}},{}],209:[function(t,b,g){(function(c){(function(){var a=t("bn.js"),o=t("randombytes");function n(r){var u,i=r.modulus.byteLength();do u=new a(o(i));while(u.cmp(r.modulus)>=0||!u.umod(r.prime1)||!u.umod(r.prime2));return u}function e(r,u){var i=(function(z){var A=n(z);return{blinder:A.toRed(a.mont(z.modulus)).redPow(new a(z.publicExponent)).fromRed(),unblinder:A.invm(z.modulus)}})(u),s=u.modulus.byteLength(),h=new a(r).mul(i.blinder).umod(u.modulus),f=h.toRed(a.mont(u.prime1)),l=h.toRed(a.mont(u.prime2)),p=u.coefficient,m=u.prime1,_=u.prime2,k=f.redPow(u.exponent1).fromRed(),M=l.redPow(u.exponent2).fromRed(),j=k.isub(M).imul(p).umod(m).imul(_);return M.iadd(j).imul(i.unblinder).umod(u.modulus).toArrayLike(c,"be",s)}e.getr=n,b.exports=e}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,b,g){b.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,b,g){b.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(t,b,g){b.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("create-hash"),o=t("readable-stream"),n=t("inherits"),e=t("./sign"),r=t("./verify"),u=t("./algorithms.json");function i(l){o.Writable.call(this);var p=u[l];if(!p)throw new Error("Unknown message digest");this._hashType=p.hash,this._hash=a(p.hash),this._tag=p.id,this._signType=p.sign}function s(l){o.Writable.call(this);var p=u[l];if(!p)throw new Error("Unknown message digest");this._hash=a(p.hash),this._tag=p.id,this._signType=p.sign}function h(l){return new i(l)}function f(l){return new s(l)}Object.keys(u).forEach((function(l){u[l].id=c.from(u[l].id,"hex"),u[l.toLowerCase()]=u[l]})),n(i,o.Writable),i.prototype._write=function(l,p,m){this._hash.update(l),m()},i.prototype.update=function(l,p){return typeof l=="string"&&(l=c.from(l,p)),this._hash.update(l),this},i.prototype.sign=function(l,p){this.end();var m=this._hash.digest(),_=e(m,l,this._hashType,this._signType,this._tag);return p?_.toString(p):_},n(s,o.Writable),s.prototype._write=function(l,p,m){this._hash.update(l),m()},s.prototype.update=function(l,p){return typeof l=="string"&&(l=c.from(l,p)),this._hash.update(l),this},s.prototype.verify=function(l,p,m){typeof p=="string"&&(p=c.from(p,m)),this.end();var _=this._hash.digest();return r(p,_,l,this._signType,this._tag)},b.exports={Sign:h,Verify:f,createSign:h,createVerify:f}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("create-hmac"),o=t("browserify-rsa"),n=t("elliptic").ec,e=t("bn.js"),r=t("parse-asn1"),u=t("./curves.json");function i(l,p,m,_){if((l=c.from(l.toArray())).length<p.byteLength()){var k=c.alloc(p.byteLength()-l.length);l=c.concat([k,l])}var M=m.length,j=(function(T,O){T=(T=s(T,O)).mod(O);var L=c.from(T.toArray());if(L.length<O.byteLength()){var B=c.alloc(O.byteLength()-L.length);L=c.concat([B,L])}return L})(m,p),z=c.alloc(M);z.fill(1);var A=c.alloc(M);return A=a(_,A).update(z).update(c.from([0])).update(l).update(j).digest(),z=a(_,A).update(z).digest(),{k:A=a(_,A).update(z).update(c.from([1])).update(l).update(j).digest(),v:z=a(_,A).update(z).digest()}}function s(l,p){var m=new e(l),_=(l.length<<3)-p.bitLength();return _>0&&m.ishrn(_),m}function h(l,p,m){var _,k;do{for(_=c.alloc(0);8*_.length<l.bitLength();)p.v=a(m,p.k).update(p.v).digest(),_=c.concat([_,p.v]);k=s(_,l),p.k=a(m,p.k).update(p.v).update(c.from([0])).digest(),p.v=a(m,p.k).update(p.v).digest()}while(k.cmp(l)!==-1);return k}function f(l,p,m,_){return l.toRed(e.mont(m)).redPow(p).fromRed().mod(_)}b.exports=function(l,p,m,_,k){var M=r(p);if(M.curve){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(T,O){var L=u[O.curve.join(".")];if(!L)throw new Error("unknown curve "+O.curve.join("."));var B=new n(L).keyFromPrivate(O.privateKey).sign(T);return c.from(B.toDER())})(l,M)}if(M.type==="dsa"){if(_!=="dsa")throw new Error("wrong private key type");return(function(T,O,L){for(var B,S=O.params.priv_key,D=O.params.p,w=O.params.q,d=O.params.g,v=new e(0),y=s(T,w).mod(w),x=!1,C=i(S,w,T,L);x===!1;)B=h(w,C,L),v=f(d,B,D,w),(x=B.invm(w).imul(y.add(S.mul(v))).mod(w)).cmpn(0)===0&&(x=!1,v=new e(0));return(function(N,R){N=N.toArray(),R=R.toArray(),128&N[0]&&(N=[0].concat(N)),128&R[0]&&(R=[0].concat(R));var $=[48,N.length+R.length+4,2,N.length];return $=$.concat(N,[2,R.length],R),c.from($)})(v,x)})(l,M,m)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");l=c.concat([k,l]);for(var j=M.modulus.byteLength(),z=[0,1];l.length+z.length+1<j;)z.push(255);z.push(0);for(var A=-1;++A<l.length;)z.push(l[A]);return o(z,M)},b.exports.getKey=i,b.exports.makeKey=h},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("bn.js"),o=t("elliptic").ec,n=t("parse-asn1"),e=t("./curves.json");function r(u,i){if(u.cmpn(0)<=0)throw new Error("invalid sig");if(u.cmp(i)>=i)throw new Error("invalid sig")}b.exports=function(u,i,s,h,f){var l=n(s);if(l.type==="ec"){if(h!=="ecdsa"&&h!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(z,A,T){var O=e[T.data.algorithm.curve.join(".")];if(!O)throw new Error("unknown curve "+T.data.algorithm.curve.join("."));var L=new o(O),B=T.data.subjectPrivateKey.data;return L.verify(A,z,B)})(u,i,l)}if(l.type==="dsa"){if(h!=="dsa")throw new Error("wrong public key type");return(function(z,A,T){var O=T.data.p,L=T.data.q,B=T.data.g,S=T.data.pub_key,D=n.signature.decode(z,"der"),w=D.s,d=D.r;r(w,L),r(d,L);var v=a.mont(O),y=w.invm(L);return B.toRed(v).redPow(new a(A).mul(y).mod(L)).fromRed().mul(S.toRed(v).redPow(d.mul(y).mod(L)).fromRed()).mod(O).mod(L).cmp(d)===0})(u,i,l)}if(h!=="rsa"&&h!=="ecdsa/rsa")throw new Error("wrong public key type");i=c.concat([f,i]);for(var p=l.modulus.byteLength(),m=[1],_=0;i.length+m.length+2<p;)m.push(255),_++;m.push(0);for(var k=-1;++k<i.length;)m.push(i[k]);m=c.from(m);var M=a.mont(l.modulus);u=(u=new a(u).toRed(M)).redPow(new a(l.publicExponent)),u=c.from(u.fromRed().toArray());var j=_<8?1:0;for(p=Math.min(u.length,m.length),u.length!==m.length&&(j=1),k=-1;++k<p;)j|=u[k]^m[k];return j===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(t,b,g){},{}],217:[function(t,b,g){var c=t("buffer"),a=c.Buffer;function o(e,r){for(var u in e)r[u]=e[u]}function n(e,r,u){return a(e,r,u)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?b.exports=c:(o(c,g),g.Buffer=n),o(a,n),n.from=function(e,r,u){if(typeof e=="number")throw new TypeError("Argument must not be a number");return a(e,r,u)},n.alloc=function(e,r,u){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=a(e);return r!==void 0?typeof u=="string"?i.fill(r,u):i.fill(r):i.fill(0),i},n.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a(e)},n.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return c.SlowBuffer(e)}},{buffer:220}],218:[function(t,b,g){var c=t("safe-buffer").Buffer,a=c.isEncoding||function(l){switch((l=""+l)&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(l){var p;switch(this.encoding=(function(m){var _=(function(k){if(!k)return"utf8";for(var M;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(M)return;k=(""+k).toLowerCase(),M=!0}})(m);if(typeof _!="string"&&(c.isEncoding===a||!a(m)))throw new Error("Unknown encoding: "+m);return _||m})(l),this.encoding){case"utf16le":this.text=r,this.end=u,p=4;break;case"utf8":this.fillLast=e,p=4;break;case"base64":this.text=i,this.end=s,p=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(p)}function n(l){return l<=127?0:l>>5==6?2:l>>4==14?3:l>>3==30?4:l>>6==2?-1:-2}function e(l){var p=this.lastTotal-this.lastNeed,m=(function(_,k,M){if((192&k[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&k.length>1){if((192&k[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&k.length>2&&(192&k[2])!=128)return _.lastNeed=2,"�"}})(this,l);return m!==void 0?m:this.lastNeed<=l.length?(l.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(l.copy(this.lastChar,p,0,l.length),void(this.lastNeed-=l.length))}function r(l,p){if((l.length-p)%2==0){var m=l.toString("utf16le",p);if(m){var _=m.charCodeAt(m.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",p,l.length-1)}function u(l){var p=l&&l.length?this.write(l):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,m)}return p}function i(l,p){var m=(l.length-p)%3;return m===0?l.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",p,l.length-m))}function s(l){var p=l&&l.length?this.write(l):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function h(l){return l.toString(this.encoding)}function f(l){return l&&l.length?this.write(l):""}g.StringDecoder=o,o.prototype.write=function(l){if(l.length===0)return"";var p,m;if(this.lastNeed){if((p=this.fillLast(l))===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<l.length?p?p+this.text(l,m):this.text(l,m):p||""},o.prototype.end=function(l){var p=l&&l.length?this.write(l):"";return this.lastNeed?p+"�":p},o.prototype.text=function(l,p){var m=(function(k,M,j){var z=M.length-1;if(z<j)return 0;var A=n(M[z]);return A>=0?(A>0&&(k.lastNeed=A-1),A):--z<j||A===-2?0:(A=n(M[z]))>=0?(A>0&&(k.lastNeed=A-2),A):--z<j||A===-2?0:(A=n(M[z]))>=0?(A>0&&(A===2?A=0:k.lastNeed=A-3),A):0})(this,l,p);if(!this.lastNeed)return l.toString("utf8",p);this.lastTotal=m;var _=l.length-(m-this.lastNeed);return l.copy(this.lastChar,0,_),l.toString("utf8",p,_)},o.prototype.fillLast=function(l){if(this.lastNeed<=l.length)return l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,l.length),this.lastNeed-=l.length}},{"safe-buffer":217}],219:[function(t,b,g){(function(c){(function(){b.exports=function(a,o){for(var n=Math.min(a.length,o.length),e=new c(n),r=0;r<n;++r)e[r]=a[r]^o[r];return e}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],220:[function(t,b,g){(function(c){(function(){var a=t("base64-js"),o=t("ieee754");g.Buffer=e,g.SlowBuffer=function(I){return+I!=I&&(I=0),e.alloc(+I)},g.INSPECT_MAX_BYTES=50;function n(I){if(I>2147483647)throw new RangeError('The value "'+I+'" is invalid for option "size"');var F=new Uint8Array(I);return F.__proto__=e.prototype,F}function e(I,F,H){if(typeof I=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return i(I)}return r(I,F,H)}function r(I,F,H){if(typeof I=="string")return(function(Y,K){if(typeof K=="string"&&K!==""||(K="utf8"),!e.isEncoding(K))throw new TypeError("Unknown encoding: "+K);var et=0|f(Y,K),nt=n(et),G=nt.write(Y,K);return G!==et&&(nt=nt.slice(0,G)),nt})(I,F);if(ArrayBuffer.isView(I))return s(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(P(I,ArrayBuffer)||I&&P(I.buffer,ArrayBuffer))return(function(Y,K,et){if(K<0||Y.byteLength<K)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<K+(et||0))throw new RangeError('"length" is outside of buffer bounds');var nt;return nt=K===void 0&&et===void 0?new Uint8Array(Y):et===void 0?new Uint8Array(Y,K):new Uint8Array(Y,K,et),nt.__proto__=e.prototype,nt})(I,F,H);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var W=I.valueOf&&I.valueOf();if(W!=null&&W!==I)return e.from(W,F,H);var J=(function(Y){if(e.isBuffer(Y)){var K=0|h(Y.length),et=n(K);return et.length===0||Y.copy(et,0,0,K),et}if(Y.length!==void 0)return typeof Y.length!="number"||q(Y.length)?n(0):s(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return s(Y.data)})(I);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return e.from(I[Symbol.toPrimitive]("string"),F,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function u(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function i(I){return u(I),n(I<0?0:0|h(I))}function s(I){for(var F=I.length<0?0:0|h(I.length),H=n(F),W=0;W<F;W+=1)H[W]=255&I[W];return H}function h(I){if(I>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|I}function f(I,F){if(e.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||P(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var H=I.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&H===0)return 0;for(var J=!1;;)switch(F){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return $(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return V(I).length;default:if(J)return W?-1:$(I).length;F=(""+F).toLowerCase(),J=!0}}function l(I,F,H){var W=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(F>>>=0))return"";for(I||(I="utf8");;)switch(I){case"hex":return D(this,F,H);case"utf8":case"utf-8":return L(this,F,H);case"ascii":return B(this,F,H);case"latin1":case"binary":return S(this,F,H);case"base64":return O(this,F,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,F,H);default:if(W)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),W=!0}}function p(I,F,H){var W=I[F];I[F]=I[H],I[H]=W}function m(I,F,H,W,J){if(I.length===0)return-1;if(typeof H=="string"?(W=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),q(H=+H)&&(H=J?0:I.length-1),H<0&&(H=I.length+H),H>=I.length){if(J)return-1;H=I.length-1}else if(H<0){if(!J)return-1;H=0}if(typeof F=="string"&&(F=e.from(F,W)),e.isBuffer(F))return F.length===0?-1:_(I,F,H,W,J);if(typeof F=="number")return F&=255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(I,F,H):Uint8Array.prototype.lastIndexOf.call(I,F,H):_(I,[F],H,W,J);throw new TypeError("val must be string, number or Buffer")}function _(I,F,H,W,J){var Y,K=1,et=I.length,nt=F.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(I.length<2||F.length<2)return-1;K=2,et/=2,nt/=2,H/=2}function G(it,ot){return K===1?it[ot]:it.readUInt16BE(ot*K)}if(J){var tt=-1;for(Y=H;Y<et;Y++)if(G(I,Y)===G(F,tt===-1?0:Y-tt)){if(tt===-1&&(tt=Y),Y-tt+1===nt)return tt*K}else tt!==-1&&(Y-=Y-tt),tt=-1}else for(H+nt>et&&(H=et-nt),Y=H;Y>=0;Y--){for(var Q=!0,st=0;st<nt;st++)if(G(I,Y+st)!==G(F,st)){Q=!1;break}if(Q)return Y}return-1}function k(I,F,H,W){H=Number(H)||0;var J=I.length-H;W?(W=Number(W))>J&&(W=J):W=J;var Y=F.length;W>Y/2&&(W=Y/2);for(var K=0;K<W;++K){var et=parseInt(F.substr(2*K,2),16);if(q(et))return K;I[H+K]=et}return K}function M(I,F,H,W){return X($(F,I.length-H),I,H,W)}function j(I,F,H,W){return X((function(J){for(var Y=[],K=0;K<J.length;++K)Y.push(255&J.charCodeAt(K));return Y})(F),I,H,W)}function z(I,F,H,W){return j(I,F,H,W)}function A(I,F,H,W){return X(V(F),I,H,W)}function T(I,F,H,W){return X((function(J,Y){for(var K,et,nt,G=[],tt=0;tt<J.length&&!((Y-=2)<0);++tt)K=J.charCodeAt(tt),et=K>>8,nt=K%256,G.push(nt),G.push(et);return G})(F,I.length-H),I,H,W)}function O(I,F,H){return F===0&&H===I.length?a.fromByteArray(I):a.fromByteArray(I.slice(F,H))}function L(I,F,H){H=Math.min(I.length,H);for(var W=[],J=F;J<H;){var Y,K,et,nt,G=I[J],tt=null,Q=G>239?4:G>223?3:G>191?2:1;if(J+Q<=H)switch(Q){case 1:G<128&&(tt=G);break;case 2:(192&(Y=I[J+1]))==128&&(nt=(31&G)<<6|63&Y)>127&&(tt=nt);break;case 3:Y=I[J+1],K=I[J+2],(192&Y)==128&&(192&K)==128&&(nt=(15&G)<<12|(63&Y)<<6|63&K)>2047&&(nt<55296||nt>57343)&&(tt=nt);break;case 4:Y=I[J+1],K=I[J+2],et=I[J+3],(192&Y)==128&&(192&K)==128&&(192&et)==128&&(nt=(15&G)<<18|(63&Y)<<12|(63&K)<<6|63&et)>65535&&nt<1114112&&(tt=nt)}tt===null?(tt=65533,Q=1):tt>65535&&(tt-=65536,W.push(tt>>>10&1023|55296),tt=56320|1023&tt),W.push(tt),J+=Q}return(function(st){var it=st.length;if(it<=4096)return String.fromCharCode.apply(String,st);for(var ot="",ct=0;ct<it;)ot+=String.fromCharCode.apply(String,st.slice(ct,ct+=4096));return ot})(W)}g.kMaxLength=2147483647,e.TYPED_ARRAY_SUPPORT=(function(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42}catch{return!1}})(),e.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(I,F,H){return r(I,F,H)},e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,e.alloc=function(I,F,H){return(function(W,J,Y){return u(W),W<=0?n(W):J!==void 0?typeof Y=="string"?n(W).fill(J,Y):n(W).fill(J):n(W)})(I,F,H)},e.allocUnsafe=function(I){return i(I)},e.allocUnsafeSlow=function(I){return i(I)},e.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==e.prototype},e.compare=function(I,F){if(P(I,Uint8Array)&&(I=e.from(I,I.offset,I.byteLength)),P(F,Uint8Array)&&(F=e.from(F,F.offset,F.byteLength)),!e.isBuffer(I)||!e.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===F)return 0;for(var H=I.length,W=F.length,J=0,Y=Math.min(H,W);J<Y;++J)if(I[J]!==F[J]){H=I[J],W=F[J];break}return H<W?-1:W<H?1:0},e.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(I,F){if(!Array.isArray(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return e.alloc(0);var H;if(F===void 0)for(F=0,H=0;H<I.length;++H)F+=I[H].length;var W=e.allocUnsafe(F),J=0;for(H=0;H<I.length;++H){var Y=I[H];if(P(Y,Uint8Array)&&(Y=e.from(Y)),!e.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');Y.copy(W,J),J+=Y.length}return W},e.byteLength=f,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var I=this.length;if(I%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var F=0;F<I;F+=2)p(this,F,F+1);return this},e.prototype.swap32=function(){var I=this.length;if(I%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var F=0;F<I;F+=4)p(this,F,F+3),p(this,F+1,F+2);return this},e.prototype.swap64=function(){var I=this.length;if(I%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var F=0;F<I;F+=8)p(this,F,F+7),p(this,F+1,F+6),p(this,F+2,F+5),p(this,F+3,F+4);return this},e.prototype.toString=function(){var I=this.length;return I===0?"":arguments.length===0?L(this,0,I):l.apply(this,arguments)},e.prototype.toLocaleString=e.prototype.toString,e.prototype.equals=function(I){if(!e.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I||e.compare(this,I)===0},e.prototype.inspect=function(){var I="",F=g.INSPECT_MAX_BYTES;return I=this.toString("hex",0,F).replace(/(.{2})/g,"$1 ").trim(),this.length>F&&(I+=" ... "),"<Buffer "+I+">"},e.prototype.compare=function(I,F,H,W,J){if(P(I,Uint8Array)&&(I=e.from(I,I.offset,I.byteLength)),!e.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(F===void 0&&(F=0),H===void 0&&(H=I?I.length:0),W===void 0&&(W=0),J===void 0&&(J=this.length),F<0||H>I.length||W<0||J>this.length)throw new RangeError("out of range index");if(W>=J&&F>=H)return 0;if(W>=J)return-1;if(F>=H)return 1;if(this===I)return 0;for(var Y=(J>>>=0)-(W>>>=0),K=(H>>>=0)-(F>>>=0),et=Math.min(Y,K),nt=this.slice(W,J),G=I.slice(F,H),tt=0;tt<et;++tt)if(nt[tt]!==G[tt]){Y=nt[tt],K=G[tt];break}return Y<K?-1:K<Y?1:0},e.prototype.includes=function(I,F,H){return this.indexOf(I,F,H)!==-1},e.prototype.indexOf=function(I,F,H){return m(this,I,F,H,!0)},e.prototype.lastIndexOf=function(I,F,H){return m(this,I,F,H,!1)},e.prototype.write=function(I,F,H,W){if(F===void 0)W="utf8",H=this.length,F=0;else if(H===void 0&&typeof F=="string")W=F,H=this.length,F=0;else{if(!isFinite(F))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");F>>>=0,isFinite(H)?(H>>>=0,W===void 0&&(W="utf8")):(W=H,H=void 0)}var J=this.length-F;if((H===void 0||H>J)&&(H=J),I.length>0&&(H<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");for(var Y=!1;;)switch(W){case"hex":return k(this,I,F,H);case"utf8":case"utf-8":return M(this,I,F,H);case"ascii":return j(this,I,F,H);case"latin1":case"binary":return z(this,I,F,H);case"base64":return A(this,I,F,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,I,F,H);default:if(Y)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),Y=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(I,F,H){var W="";H=Math.min(I.length,H);for(var J=F;J<H;++J)W+=String.fromCharCode(127&I[J]);return W}function S(I,F,H){var W="";H=Math.min(I.length,H);for(var J=F;J<H;++J)W+=String.fromCharCode(I[J]);return W}function D(I,F,H){var W=I.length;(!F||F<0)&&(F=0),(!H||H<0||H>W)&&(H=W);for(var J="",Y=F;Y<H;++Y)J+=R(I[Y]);return J}function w(I,F,H){for(var W=I.slice(F,H),J="",Y=0;Y<W.length;Y+=2)J+=String.fromCharCode(W[Y]+256*W[Y+1]);return J}function d(I,F,H){if(I%1!=0||I<0)throw new RangeError("offset is not uint");if(I+F>H)throw new RangeError("Trying to access beyond buffer length")}function v(I,F,H,W,J,Y){if(!e.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>J||F<Y)throw new RangeError('"value" argument is out of bounds');if(H+W>I.length)throw new RangeError("Index out of range")}function y(I,F,H,W,J,Y){if(H+W>I.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function x(I,F,H,W,J){return F=+F,H>>>=0,J||y(I,0,H,4),o.write(I,F,H,W,23,4),H+4}function C(I,F,H,W,J){return F=+F,H>>>=0,J||y(I,0,H,8),o.write(I,F,H,W,52,8),H+8}e.prototype.slice=function(I,F){var H=this.length;(I=~~I)<0?(I+=H)<0&&(I=0):I>H&&(I=H),(F=F===void 0?H:~~F)<0?(F+=H)<0&&(F=0):F>H&&(F=H),F<I&&(F=I);var W=this.subarray(I,F);return W.__proto__=e.prototype,W},e.prototype.readUIntLE=function(I,F,H){I>>>=0,F>>>=0,H||d(I,F,this.length);for(var W=this[I],J=1,Y=0;++Y<F&&(J*=256);)W+=this[I+Y]*J;return W},e.prototype.readUIntBE=function(I,F,H){I>>>=0,F>>>=0,H||d(I,F,this.length);for(var W=this[I+--F],J=1;F>0&&(J*=256);)W+=this[I+--F]*J;return W},e.prototype.readUInt8=function(I,F){return I>>>=0,F||d(I,1,this.length),this[I]},e.prototype.readUInt16LE=function(I,F){return I>>>=0,F||d(I,2,this.length),this[I]|this[I+1]<<8},e.prototype.readUInt16BE=function(I,F){return I>>>=0,F||d(I,2,this.length),this[I]<<8|this[I+1]},e.prototype.readUInt32LE=function(I,F){return I>>>=0,F||d(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},e.prototype.readUInt32BE=function(I,F){return I>>>=0,F||d(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},e.prototype.readIntLE=function(I,F,H){I>>>=0,F>>>=0,H||d(I,F,this.length);for(var W=this[I],J=1,Y=0;++Y<F&&(J*=256);)W+=this[I+Y]*J;return W>=(J*=128)&&(W-=Math.pow(2,8*F)),W},e.prototype.readIntBE=function(I,F,H){I>>>=0,F>>>=0,H||d(I,F,this.length);for(var W=F,J=1,Y=this[I+--W];W>0&&(J*=256);)Y+=this[I+--W]*J;return Y>=(J*=128)&&(Y-=Math.pow(2,8*F)),Y},e.prototype.readInt8=function(I,F){return I>>>=0,F||d(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},e.prototype.readInt16LE=function(I,F){I>>>=0,F||d(I,2,this.length);var H=this[I]|this[I+1]<<8;return 32768&H?4294901760|H:H},e.prototype.readInt16BE=function(I,F){I>>>=0,F||d(I,2,this.length);var H=this[I+1]|this[I]<<8;return 32768&H?4294901760|H:H},e.prototype.readInt32LE=function(I,F){return I>>>=0,F||d(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},e.prototype.readInt32BE=function(I,F){return I>>>=0,F||d(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},e.prototype.readFloatLE=function(I,F){return I>>>=0,F||d(I,4,this.length),o.read(this,I,!0,23,4)},e.prototype.readFloatBE=function(I,F){return I>>>=0,F||d(I,4,this.length),o.read(this,I,!1,23,4)},e.prototype.readDoubleLE=function(I,F){return I>>>=0,F||d(I,8,this.length),o.read(this,I,!0,52,8)},e.prototype.readDoubleBE=function(I,F){return I>>>=0,F||d(I,8,this.length),o.read(this,I,!1,52,8)},e.prototype.writeUIntLE=function(I,F,H,W){I=+I,F>>>=0,H>>>=0,W||v(this,I,F,H,Math.pow(2,8*H)-1,0);var J=1,Y=0;for(this[F]=255&I;++Y<H&&(J*=256);)this[F+Y]=I/J&255;return F+H},e.prototype.writeUIntBE=function(I,F,H,W){I=+I,F>>>=0,H>>>=0,W||v(this,I,F,H,Math.pow(2,8*H)-1,0);var J=H-1,Y=1;for(this[F+J]=255&I;--J>=0&&(Y*=256);)this[F+J]=I/Y&255;return F+H},e.prototype.writeUInt8=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,1,255,0),this[F]=255&I,F+1},e.prototype.writeUInt16LE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,2,65535,0),this[F]=255&I,this[F+1]=I>>>8,F+2},e.prototype.writeUInt16BE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,2,65535,0),this[F]=I>>>8,this[F+1]=255&I,F+2},e.prototype.writeUInt32LE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,4,4294967295,0),this[F+3]=I>>>24,this[F+2]=I>>>16,this[F+1]=I>>>8,this[F]=255&I,F+4},e.prototype.writeUInt32BE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,4,4294967295,0),this[F]=I>>>24,this[F+1]=I>>>16,this[F+2]=I>>>8,this[F+3]=255&I,F+4},e.prototype.writeIntLE=function(I,F,H,W){if(I=+I,F>>>=0,!W){var J=Math.pow(2,8*H-1);v(this,I,F,H,J-1,-J)}var Y=0,K=1,et=0;for(this[F]=255&I;++Y<H&&(K*=256);)I<0&&et===0&&this[F+Y-1]!==0&&(et=1),this[F+Y]=(I/K>>0)-et&255;return F+H},e.prototype.writeIntBE=function(I,F,H,W){if(I=+I,F>>>=0,!W){var J=Math.pow(2,8*H-1);v(this,I,F,H,J-1,-J)}var Y=H-1,K=1,et=0;for(this[F+Y]=255&I;--Y>=0&&(K*=256);)I<0&&et===0&&this[F+Y+1]!==0&&(et=1),this[F+Y]=(I/K>>0)-et&255;return F+H},e.prototype.writeInt8=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,1,127,-128),I<0&&(I=255+I+1),this[F]=255&I,F+1},e.prototype.writeInt16LE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,2,32767,-32768),this[F]=255&I,this[F+1]=I>>>8,F+2},e.prototype.writeInt16BE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,2,32767,-32768),this[F]=I>>>8,this[F+1]=255&I,F+2},e.prototype.writeInt32LE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,4,2147483647,-2147483648),this[F]=255&I,this[F+1]=I>>>8,this[F+2]=I>>>16,this[F+3]=I>>>24,F+4},e.prototype.writeInt32BE=function(I,F,H){return I=+I,F>>>=0,H||v(this,I,F,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[F]=I>>>24,this[F+1]=I>>>16,this[F+2]=I>>>8,this[F+3]=255&I,F+4},e.prototype.writeFloatLE=function(I,F,H){return x(this,I,F,!0,H)},e.prototype.writeFloatBE=function(I,F,H){return x(this,I,F,!1,H)},e.prototype.writeDoubleLE=function(I,F,H){return C(this,I,F,!0,H)},e.prototype.writeDoubleBE=function(I,F,H){return C(this,I,F,!1,H)},e.prototype.copy=function(I,F,H,W){if(!e.isBuffer(I))throw new TypeError("argument should be a Buffer");if(H||(H=0),W||W===0||(W=this.length),F>=I.length&&(F=I.length),F||(F=0),W>0&&W<H&&(W=H),W===H||I.length===0||this.length===0)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),I.length-F<W-H&&(W=I.length-F+H);var J=W-H;if(this===I&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(F,H,W);else if(this===I&&H<F&&F<W)for(var Y=J-1;Y>=0;--Y)I[Y+F]=this[Y+H];else Uint8Array.prototype.set.call(I,this.subarray(H,W),F);return J},e.prototype.fill=function(I,F,H,W){if(typeof I=="string"){if(typeof F=="string"?(W=F,F=0,H=this.length):typeof H=="string"&&(W=H,H=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!e.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(I.length===1){var J=I.charCodeAt(0);(W==="utf8"&&J<128||W==="latin1")&&(I=J)}}else typeof I=="number"&&(I&=255);if(F<0||this.length<F||this.length<H)throw new RangeError("Out of range index");if(H<=F)return this;var Y;if(F>>>=0,H=H===void 0?this.length:H>>>0,I||(I=0),typeof I=="number")for(Y=F;Y<H;++Y)this[Y]=I;else{var K=e.isBuffer(I)?I:e.from(I,W),et=K.length;if(et===0)throw new TypeError('The value "'+I+'" is invalid for argument "value"');for(Y=0;Y<H-F;++Y)this[Y+F]=K[Y%et]}return this};var N=/[^+/0-9A-Za-z-_]/g;function R(I){return I<16?"0"+I.toString(16):I.toString(16)}function $(I,F){var H;F=F||1/0;for(var W=I.length,J=null,Y=[],K=0;K<W;++K){if((H=I.charCodeAt(K))>55295&&H<57344){if(!J){if(H>56319){(F-=3)>-1&&Y.push(239,191,189);continue}if(K+1===W){(F-=3)>-1&&Y.push(239,191,189);continue}J=H;continue}if(H<56320){(F-=3)>-1&&Y.push(239,191,189),J=H;continue}H=65536+(J-55296<<10|H-56320)}else J&&(F-=3)>-1&&Y.push(239,191,189);if(J=null,H<128){if((F-=1)<0)break;Y.push(H)}else if(H<2048){if((F-=2)<0)break;Y.push(H>>6|192,63&H|128)}else if(H<65536){if((F-=3)<0)break;Y.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;Y.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return Y}function V(I){return a.toByteArray((function(F){if((F=(F=F.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F})(I))}function X(I,F,H,W){for(var J=0;J<W&&!(J+H>=F.length||J>=I.length);++J)F[J+H]=I[J];return J}function P(I,F){return I instanceof F||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===F.name}function q(I){return I!=I}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("stream").Transform,o=t("string_decoder").StringDecoder;function n(e){a.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(n,a),n.prototype.update=function(e,r,u){typeof e=="string"&&(e=c.from(e,r));var i=this._update(e);return this.hashMode?this:(u&&(i=this._toString(i,u)),i)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(e,r,u){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(s){i=s}finally{u(i)}},n.prototype._flush=function(e){var r;try{this.push(this.__final())}catch(u){r=u}e(r)},n.prototype._finalOrDigest=function(e){var r=this.__final()||c.alloc(0);return e&&(r=this._toString(r,e,!0)),r},n.prototype._toString=function(e,r,u){if(this._decoder||(this._decoder=new o(r),this._encoding=r),this._encoding!==r)throw new Error("can't switch encodings");var i=this._decoder.write(e);return u&&(i+=this._decoder.end()),i},b.exports=n},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,b,g){var c=t("../internals/is-callable"),a=t("../internals/try-to-string"),o=TypeError;b.exports=function(n){if(c(n))return n;throw new o(a(n)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,b,g){var c=t("../internals/is-constructor"),a=t("../internals/try-to-string"),o=TypeError;b.exports=function(n){if(c(n))return n;throw new o(a(n)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,b,g){var c=t("../internals/is-callable"),a=String,o=TypeError;b.exports=function(n){if(typeof n=="object"||c(n))return n;throw new o("Can't set "+a(n)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,b,g){var c=t("../internals/well-known-symbol"),a=t("../internals/object-create"),o=t("../internals/object-define-property").f,n=c("unscopables"),e=Array.prototype;e[n]===void 0&&o(e,n,{configurable:!0,value:a(null)}),b.exports=function(r){e[n][r]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,b,g){var c=t("../internals/object-is-prototype-of"),a=TypeError;b.exports=function(o,n){if(c(n,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,b,g){var c=t("../internals/is-object"),a=String,o=TypeError;b.exports=function(n){if(c(n))return n;throw new o(a(n)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,b,g){var c=t("../internals/to-indexed-object"),a=t("../internals/to-absolute-index"),o=t("../internals/length-of-array-like"),n=function(e){return function(r,u,i){var s,h=c(r),f=o(h),l=a(i,f);if(e&&u!=u){for(;f>l;)if((s=h[l++])!=s)return!0}else for(;f>l;l++)if((e||l in h)&&h[l]===u)return e||l||0;return!e&&-1}};b.exports={includes:n(!0),indexOf:n(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(t,b,g){var c=t("../internals/function-bind-context"),a=t("../internals/function-uncurry-this"),o=t("../internals/indexed-object"),n=t("../internals/to-object"),e=t("../internals/length-of-array-like"),r=t("../internals/array-species-create"),u=a([].push),i=function(s){var h=s===1,f=s===2,l=s===3,p=s===4,m=s===6,_=s===7,k=s===5||m;return function(M,j,z,A){for(var T,O,L=n(M),B=o(L),S=c(j,z),D=e(B),w=0,d=A||r,v=h?d(M,D):f||_?d(M,0):void 0;D>w;w++)if((k||w in B)&&(O=S(T=B[w],w,L),s))if(h)v[w]=O;else if(O)switch(s){case 3:return!0;case 5:return T;case 6:return w;case 2:u(v,T)}else switch(s){case 4:return!1;case 7:u(v,T)}return m?-1:l||p?p:v}};b.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(t,b,g){var c=t("../internals/to-absolute-index"),a=t("../internals/length-of-array-like"),o=t("../internals/create-property"),n=Array,e=Math.max;b.exports=function(r,u,i){for(var s=a(r),h=c(u,s),f=c(i===void 0?s:i,s),l=n(e(f-h,0)),p=0;h<f;h++,p++)o(l,p,r[h]);return l.length=p,l}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(t,b,g){var c=t("../internals/function-uncurry-this");b.exports=c([].slice)},{"../internals/function-uncurry-this":268}],232:[function(t,b,g){var c=t("../internals/is-array"),a=t("../internals/is-constructor"),o=t("../internals/is-object"),n=t("../internals/well-known-symbol")("species"),e=Array;b.exports=function(r){var u;return c(r)&&(u=r.constructor,(a(u)&&(u===e||c(u.prototype))||o(u)&&(u=u[n])===null)&&(u=void 0)),u===void 0?e:u}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(t,b,g){var c=t("../internals/array-species-constructor");b.exports=function(a,o){return new(c(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(t,b,g){var c=t("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,n={next:function(){return{done:!!o++}},return:function(){a=!0}};n[c]=function(){return this},Array.from(n,(function(){throw 2}))}catch{}b.exports=function(e,r){try{if(!r&&!a)return!1}catch{return!1}var u=!1;try{var i={};i[c]=function(){return{next:function(){return{done:u=!0}}}},e(i)}catch{}return u}},{"../internals/well-known-symbol":357}],235:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=c({}.toString),o=c("".slice);b.exports=function(n){return o(a(n),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(t,b,g){var c=t("../internals/to-string-tag-support"),a=t("../internals/is-callable"),o=t("../internals/classof-raw"),n=t("../internals/well-known-symbol")("toStringTag"),e=Object,r=o((function(){return arguments})())==="Arguments";b.exports=c?o:function(u){var i,s,h;return u===void 0?"Undefined":u===null?"Null":typeof(s=(function(f,l){try{return f[l]}catch{}})(i=e(u),n))=="string"?s:r?o(i):(h=o(i))==="Object"&&a(i.callee)?"Arguments":h}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(t,b,g){var c=t("../internals/has-own-property"),a=t("../internals/own-keys"),o=t("../internals/object-get-own-property-descriptor"),n=t("../internals/object-define-property");b.exports=function(e,r,u){for(var i=a(r),s=n.f,h=o.f,f=0;f<i.length;f++){var l=i[f];c(e,l)||u&&c(u,l)||s(e,l,h(r,l))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(t,b,g){var c=t("../internals/well-known-symbol")("match");b.exports=function(a){var o=/./;try{"/./"[a](o)}catch{try{return o[c]=!1,"/./"[a](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(t,b,g){var c=t("../internals/fails");b.exports=!c((function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}))},{"../internals/fails":260}],240:[function(t,b,g){b.exports=function(c,a){return{value:c,done:a}}},{}],241:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");b.exports=c?function(n,e,r){return a.f(n,e,o(1,r))}:function(n,e,r){return n[e]=r,n}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(t,b,g){b.exports=function(c,a){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:a}}},{}],243:[function(t,b,g){var c=t("../internals/to-property-key"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");b.exports=function(n,e,r){var u=c(e);u in n?a.f(n,u,o(0,r)):n[u]=r}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(t,b,g){var c=t("../internals/make-built-in"),a=t("../internals/object-define-property");b.exports=function(o,n,e){return e.get&&c(e.get,n,{getter:!0}),e.set&&c(e.set,n,{setter:!0}),a.f(o,n,e)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(t,b,g){var c=t("../internals/is-callable"),a=t("../internals/object-define-property"),o=t("../internals/make-built-in"),n=t("../internals/define-global-property");b.exports=function(e,r,u,i){i||(i={});var s=i.enumerable,h=i.name!==void 0?i.name:r;if(c(u)&&o(u,h,i),i.global)s?e[r]=u:n(r,u);else{try{i.unsafe?e[r]&&(s=!0):delete e[r]}catch{}s?e[r]=u:a.f(e,r,{value:u,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(t,b,g){var c=t("../internals/global"),a=Object.defineProperty;b.exports=function(o,n){try{a(c,o,{value:n,configurable:!0,writable:!0})}catch{c[o]=n}return n}},{"../internals/global":274}],247:[function(t,b,g){var c=t("../internals/fails");b.exports=!c((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(t,b,g){var c=typeof document=="object"&&document.all,a=c===void 0&&c!==void 0;b.exports={all:c,IS_HTMLDDA:a}},{}],249:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/is-object"),o=c.document,n=a(o)&&a(o.createElement);b.exports=function(e){return n?o.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(t,b,g){var c=t("../internals/engine-is-deno"),a=t("../internals/engine-is-node");b.exports=!c&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(t,b,g){b.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(t,b,g){var c=t("../internals/engine-user-agent");b.exports=/ipad|iphone|ipod/i.test(c)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(t,b,g){var c=t("../internals/engine-user-agent");b.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},{"../internals/engine-user-agent":256}],254:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/classof-raw");b.exports=a(c.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(t,b,g){var c=t("../internals/engine-user-agent");b.exports=/web0s(?!.*chrome)/i.test(c)},{"../internals/engine-user-agent":256}],256:[function(t,b,g){b.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(t,b,g){var c,a,o=t("../internals/global"),n=t("../internals/engine-user-agent"),e=o.process,r=o.Deno,u=e&&e.versions||r&&r.version,i=u&&u.v8;i&&(a=(c=i.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!a&&n&&(!(c=n.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=n.match(/Chrome\/(\d+)/))&&(a=+c[1]),b.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,b,g){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/object-get-own-property-descriptor").f,o=t("../internals/create-non-enumerable-property"),n=t("../internals/define-built-in"),e=t("../internals/define-global-property"),r=t("../internals/copy-constructor-properties"),u=t("../internals/is-forced");b.exports=function(i,s){var h,f,l,p,m,_=i.target,k=i.global,M=i.stat;if(h=k?c:M?c[_]||e(_,{}):(c[_]||{}).prototype)for(f in s){if(p=s[f],l=i.dontCallGetSet?(m=a(h,f))&&m.value:h[f],!u(k?f:_+(M?".":"#")+f,i.forced)&&l!==void 0){if(typeof p==typeof l)continue;r(p,l)}(i.sham||l&&l.sham)&&o(p,"sham",!0),n(h,f,p,i)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(t,b,g){b.exports=function(c){try{return!!c()}catch{return!0}}},{}],261:[function(t,b,g){var c=t("../internals/function-bind-native"),a=Function.prototype,o=a.apply,n=a.call;b.exports=typeof Reflect=="object"&&Reflect.apply||(c?n.bind(o):function(){return n.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,b,g){var c=t("../internals/function-uncurry-this-clause"),a=t("../internals/a-callable"),o=t("../internals/function-bind-native"),n=c(c.bind);b.exports=function(e,r){return a(e),r===void 0?e:o?n(e,r):function(){return e.apply(r,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,b,g){var c=t("../internals/fails");b.exports=!c((function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(t,b,g){var c=t("../internals/function-bind-native"),a=Function.prototype.call;b.exports=c?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/has-own-property"),o=Function.prototype,n=c&&Object.getOwnPropertyDescriptor,e=a(o,"name"),r=e&&(function(){}).name==="something",u=e&&(!c||c&&n(o,"name").configurable);b.exports={EXISTS:e,PROPER:r,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/a-callable");b.exports=function(o,n,e){try{return c(a(Object.getOwnPropertyDescriptor(o,n)[e]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,b,g){var c=t("../internals/classof-raw"),a=t("../internals/function-uncurry-this");b.exports=function(o){if(c(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,b,g){var c=t("../internals/function-bind-native"),a=Function.prototype,o=a.call,n=c&&a.bind.bind(o,o);b.exports=c?n:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/is-callable"),o=function(n){return a(n)?n:void 0};b.exports=function(n,e){return arguments.length<2?o(c[n]):c[n]&&c[n][e]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,b,g){var c=t("../internals/classof"),a=t("../internals/get-method"),o=t("../internals/is-null-or-undefined"),n=t("../internals/iterators"),e=t("../internals/well-known-symbol")("iterator");b.exports=function(r){if(!o(r))return a(r,e)||a(r,"@@iterator")||n[c(r)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,b,g){var c=t("../internals/function-call"),a=t("../internals/a-callable"),o=t("../internals/an-object"),n=t("../internals/try-to-string"),e=t("../internals/get-iterator-method"),r=TypeError;b.exports=function(u,i){var s=arguments.length<2?e(u):i;if(a(s))return o(c(s,u));throw new r(n(u)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/is-array"),o=t("../internals/is-callable"),n=t("../internals/classof-raw"),e=t("../internals/to-string"),r=c([].push);b.exports=function(u){if(o(u))return u;if(a(u)){for(var i=u.length,s=[],h=0;h<i;h++){var f=u[h];typeof f=="string"?r(s,f):typeof f!="number"&&n(f)!=="Number"&&n(f)!=="String"||r(s,e(f))}var l=s.length,p=!0;return function(m,_){if(p)return p=!1,_;if(a(this))return _;for(var k=0;k<l;k++)if(s[k]===m)return _}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(t,b,g){var c=t("../internals/a-callable"),a=t("../internals/is-null-or-undefined");b.exports=function(o,n){var e=o[n];return a(e)?void 0:c(e)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(t,b,g){(function(c){(function(){var a=function(o){return o&&o.Math===Math&&o};b.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof c=="object"&&c)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/to-object"),o=c({}.hasOwnProperty);b.exports=Object.hasOwn||function(n,e){return o(a(n),e)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(t,b,g){b.exports={}},{}],277:[function(t,b,g){b.exports=function(c,a){try{arguments.length===1?console.error(c):console.error(c,a)}catch{}}},{}],278:[function(t,b,g){var c=t("../internals/get-built-in");b.exports=c("document","documentElement")},{"../internals/get-built-in":269}],279:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/document-create-element");b.exports=!c&&!a((function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/classof-raw"),n=Object,e=c("".split);b.exports=a((function(){return!n("z").propertyIsEnumerable(0)}))?function(r){return o(r)==="String"?e(r,""):n(r)}:n},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/is-callable"),o=t("../internals/shared-store"),n=c(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return n(e)}),b.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(t,b,g){var c,a,o,n=t("../internals/weak-map-basic-detection"),e=t("../internals/global"),r=t("../internals/is-object"),u=t("../internals/create-non-enumerable-property"),i=t("../internals/has-own-property"),s=t("../internals/shared-store"),h=t("../internals/shared-key"),f=t("../internals/hidden-keys"),l=e.TypeError,p=e.WeakMap;if(n||s.state){var m=s.state||(s.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,c=function(k,M){if(m.has(k))throw new l("Object already initialized");return M.facade=k,m.set(k,M),M},a=function(k){return m.get(k)||{}},o=function(k){return m.has(k)}}else{var _=h("state");f[_]=!0,c=function(k,M){if(i(k,_))throw new l("Object already initialized");return M.facade=k,u(k,_,M),M},a=function(k){return i(k,_)?k[_]:{}},o=function(k){return i(k,_)}}b.exports={set:c,get:a,has:o,enforce:function(k){return o(k)?a(k):c(k,{})},getterFor:function(k){return function(M){var j;if(!r(M)||(j=a(M)).type!==k)throw new l("Incompatible receiver, "+k+" required");return j}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(t,b,g){var c=t("../internals/well-known-symbol"),a=t("../internals/iterators"),o=c("iterator"),n=Array.prototype;b.exports=function(e){return e!==void 0&&(a.Array===e||n[o]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(t,b,g){var c=t("../internals/classof-raw");b.exports=Array.isArray||function(a){return c(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(t,b,g){var c=t("../internals/document-all"),a=c.all;b.exports=c.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),n=t("../internals/classof"),e=t("../internals/get-built-in"),r=t("../internals/inspect-source"),u=function(){},i=[],s=e("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=c(h.exec),l=!h.test(u),p=function(_){if(!o(_))return!1;try{return s(u,i,_),!0}catch{return!1}},m=function(_){if(!o(_))return!1;switch(n(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!f(h,r(_))}catch{return!0}};m.sham=!0,b.exports=!s||a((function(){var _;return p(p.call)||!p(Object)||!p((function(){_=!0}))||_}))?m:p},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(t,b,g){var c=t("../internals/fails"),a=t("../internals/is-callable"),o=/#|\.prototype\./,n=function(s,h){var f=r[e(s)];return f===i||f!==u&&(a(h)?c(h):!!h)},e=n.normalize=function(s){return String(s).replace(o,".").toLowerCase()},r=n.data={},u=n.NATIVE="N",i=n.POLYFILL="P";b.exports=n},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(t,b,g){b.exports=function(c){return c==null}},{}],289:[function(t,b,g){var c=t("../internals/is-callable"),a=t("../internals/document-all"),o=a.all;b.exports=a.IS_HTMLDDA?function(n){return typeof n=="object"?n!==null:c(n)||n===o}:function(n){return typeof n=="object"?n!==null:c(n)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(t,b,g){b.exports=!1},{}],291:[function(t,b,g){var c=t("../internals/is-object"),a=t("../internals/classof-raw"),o=t("../internals/well-known-symbol")("match");b.exports=function(n){var e;return c(n)&&((e=n[o])!==void 0?!!e:a(n)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(t,b,g){var c=t("../internals/get-built-in"),a=t("../internals/is-callable"),o=t("../internals/object-is-prototype-of"),n=t("../internals/use-symbol-as-uid"),e=Object;b.exports=n?function(r){return typeof r=="symbol"}:function(r){var u=c("Symbol");return a(u)&&o(u.prototype,e(r))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(t,b,g){var c=t("../internals/function-bind-context"),a=t("../internals/function-call"),o=t("../internals/an-object"),n=t("../internals/try-to-string"),e=t("../internals/is-array-iterator-method"),r=t("../internals/length-of-array-like"),u=t("../internals/object-is-prototype-of"),i=t("../internals/get-iterator"),s=t("../internals/get-iterator-method"),h=t("../internals/iterator-close"),f=TypeError,l=function(m,_){this.stopped=m,this.result=_},p=l.prototype;b.exports=function(m,_,k){var M,j,z,A,T,O,L,B=k&&k.that,S=!(!k||!k.AS_ENTRIES),D=!(!k||!k.IS_RECORD),w=!(!k||!k.IS_ITERATOR),d=!(!k||!k.INTERRUPTED),v=c(_,B),y=function(C){return M&&h(M,"normal",C),new l(!0,C)},x=function(C){return S?(o(C),d?v(C[0],C[1],y):v(C[0],C[1])):d?v(C,y):v(C)};if(D)M=m.iterator;else if(w)M=m;else{if(!(j=s(m)))throw new f(n(m)+" is not iterable");if(e(j)){for(z=0,A=r(m);A>z;z++)if((T=x(m[z]))&&u(p,T))return T;return new l(!1)}M=i(m,j)}for(O=D?m.next:M.next;!(L=a(O,M)).done;){try{T=x(L.value)}catch(C){h(M,"throw",C)}if(typeof T=="object"&&T&&u(p,T))return T}return new l(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(t,b,g){var c=t("../internals/function-call"),a=t("../internals/an-object"),o=t("../internals/get-method");b.exports=function(n,e,r){var u,i;a(n);try{if(!(u=o(n,"return"))){if(e==="throw")throw r;return r}u=c(u,n)}catch(s){i=!0,u=s}if(e==="throw")throw r;if(i)throw u;return a(u),r}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,b,g){var c=t("../internals/iterators-core").IteratorPrototype,a=t("../internals/object-create"),o=t("../internals/create-property-descriptor"),n=t("../internals/set-to-string-tag"),e=t("../internals/iterators"),r=function(){return this};b.exports=function(u,i,s,h){var f=i+" Iterator";return u.prototype=a(c,{next:o(+!h,s)}),n(u,f,!1,!0),e[f]=r,u}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/is-pure"),n=t("../internals/function-name"),e=t("../internals/is-callable"),r=t("../internals/iterator-create-constructor"),u=t("../internals/object-get-prototype-of"),i=t("../internals/object-set-prototype-of"),s=t("../internals/set-to-string-tag"),h=t("../internals/create-non-enumerable-property"),f=t("../internals/define-built-in"),l=t("../internals/well-known-symbol"),p=t("../internals/iterators"),m=t("../internals/iterators-core"),_=n.PROPER,k=n.CONFIGURABLE,M=m.IteratorPrototype,j=m.BUGGY_SAFARI_ITERATORS,z=l("iterator"),A=function(){return this};b.exports=function(T,O,L,B,S,D,w){r(L,O,B);var d,v,y,x=function(P){if(P===S&&V)return V;if(!j&&P&&P in R)return R[P];switch(P){case"keys":case"values":case"entries":return function(){return new L(this,P)}}return function(){return new L(this)}},C=O+" Iterator",N=!1,R=T.prototype,$=R[z]||R["@@iterator"]||S&&R[S],V=!j&&$||x(S),X=O==="Array"&&R.entries||$;if(X&&(d=u(X.call(new T)))!==Object.prototype&&d.next&&(o||u(d)===M||(i?i(d,M):e(d[z])||f(d,z,A)),s(d,C,!0,!0),o&&(p[C]=A)),_&&S==="values"&&$&&$.name!=="values"&&(!o&&k?h(R,"name","values"):(N=!0,V=function(){return a($,this)})),S)if(v={values:x("values"),keys:D?V:x("keys"),entries:x("entries")},w)for(y in v)(j||N||!(y in R))&&f(R,y,v[y]);else c({target:O,proto:!0,forced:j||N},v);return o&&!w||R[z]===V||f(R,z,V,{name:S}),p[O]=V,v}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(t,b,g){var c,a,o,n=t("../internals/fails"),e=t("../internals/is-callable"),r=t("../internals/is-object"),u=t("../internals/object-create"),i=t("../internals/object-get-prototype-of"),s=t("../internals/define-built-in"),h=t("../internals/well-known-symbol"),f=t("../internals/is-pure"),l=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(a=i(i(o)))!==Object.prototype&&(c=a):p=!0),!r(c)||n((function(){var m={};return c[l].call(m)!==m}))?c={}:f&&(c=u(c)),e(c[l])||s(c,l,(function(){return this})),b.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:p}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(t,b,g){arguments[4][276][0].apply(g,arguments)},{dup:276}],299:[function(t,b,g){var c=t("../internals/to-length");b.exports=function(a){return c(a.length)}},{"../internals/to-length":343}],300:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),n=t("../internals/has-own-property"),e=t("../internals/descriptors"),r=t("../internals/function-name").CONFIGURABLE,u=t("../internals/inspect-source"),i=t("../internals/internal-state"),s=i.enforce,h=i.get,f=String,l=Object.defineProperty,p=c("".slice),m=c("".replace),_=c([].join),k=e&&!a((function(){return l((function(){}),"length",{value:8}).length!==8})),M=String(String).split("String"),j=b.exports=function(z,A,T){p(f(A),0,7)==="Symbol("&&(A="["+m(f(A),/^Symbol\(([^)]*)\)/,"$1")+"]"),T&&T.getter&&(A="get "+A),T&&T.setter&&(A="set "+A),(!n(z,"name")||r&&z.name!==A)&&(e?l(z,"name",{value:A,configurable:!0}):z.name=A),k&&T&&n(T,"arity")&&z.length!==T.arity&&l(z,"length",{value:T.arity});try{T&&n(T,"constructor")&&T.constructor?e&&l(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch{}var O=s(z);return n(O,"source")||(O.source=_(M,typeof A=="string"?A:"")),z};Function.prototype.toString=j((function(){return o(this)&&h(this).source||u(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(t,b,g){var c=Math.ceil,a=Math.floor;b.exports=Math.trunc||function(o){var n=+o;return(n>0?a:c)(n)}},{}],302:[function(t,b,g){var c,a,o,n,e,r=t("../internals/global"),u=t("../internals/function-bind-context"),i=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/task").set,h=t("../internals/queue"),f=t("../internals/engine-is-ios"),l=t("../internals/engine-is-ios-pebble"),p=t("../internals/engine-is-webos-webkit"),m=t("../internals/engine-is-node"),_=r.MutationObserver||r.WebKitMutationObserver,k=r.document,M=r.process,j=r.Promise,z=i(r,"queueMicrotask"),A=z&&z.value;if(!A){var T=new h,O=function(){var L,B;for(m&&(L=M.domain)&&L.exit();B=T.get();)try{B()}catch(S){throw T.head&&c(),S}L&&L.enter()};f||m||p||!_||!k?!l&&j&&j.resolve?((n=j.resolve(void 0)).constructor=j,e=u(n.then,n),c=function(){e(O)}):m?c=function(){M.nextTick(O)}:(s=u(s,r),c=function(){s(O)}):(a=!0,o=k.createTextNode(""),new _(O).observe(o,{characterData:!0}),c=function(){o.data=a=!a}),A=function(L){T.head||c(),T.add(L)}}b.exports=A},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(t,b,g){var c=t("../internals/a-callable"),a=TypeError,o=function(n){var e,r;this.promise=new n((function(u,i){if(e!==void 0||r!==void 0)throw new a("Bad Promise constructor");e=u,r=i})),this.resolve=c(e),this.reject=c(r)};b.exports.f=function(n){return new o(n)}},{"../internals/a-callable":222}],304:[function(t,b,g){var c=t("../internals/is-regexp"),a=TypeError;b.exports=function(o){if(c(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/function-uncurry-this"),o=t("../internals/function-call"),n=t("../internals/fails"),e=t("../internals/object-keys"),r=t("../internals/object-get-own-property-symbols"),u=t("../internals/object-property-is-enumerable"),i=t("../internals/to-object"),s=t("../internals/indexed-object"),h=Object.assign,f=Object.defineProperty,l=a([].concat);b.exports=!h||n((function(){if(c&&h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var p={},m={},_=Symbol("assign detection");return p[_]=7,"abcdefghijklmnopqrst".split("").forEach((function(k){m[k]=k})),h({},p)[_]!==7||e(h({},m)).join("")!=="abcdefghijklmnopqrst"}))?function(p,m){for(var _=i(p),k=arguments.length,M=1,j=r.f,z=u.f;k>M;)for(var A,T=s(arguments[M++]),O=j?l(e(T),j(T)):e(T),L=O.length,B=0;L>B;)A=O[B++],c&&!o(z,T,A)||(_[A]=T[A]);return _}:h},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(t,b,g){var c,a=t("../internals/an-object"),o=t("../internals/object-define-properties"),n=t("../internals/enum-bug-keys"),e=t("../internals/hidden-keys"),r=t("../internals/html"),u=t("../internals/document-create-element"),i=t("../internals/shared-key"),s=i("IE_PROTO"),h=function(){},f=function(m){return"<script>"+m+"<\/script>"},l=function(m){m.write(f("")),m.close();var _=m.parentWindow.Object;return m=null,_},p=function(){try{c=new ActiveXObject("htmlfile")}catch{}var m,_;p=typeof document<"u"?document.domain&&c?l(c):((_=u("iframe")).style.display="none",r.appendChild(_),_.src="javascript:",(m=_.contentWindow.document).open(),m.write(f("document.F=Object")),m.close(),m.F):l(c);for(var k=n.length;k--;)delete p.prototype[n[k]];return p()};e[s]=!0,b.exports=Object.create||function(m,_){var k;return m!==null?(h.prototype=a(m),k=new h,h.prototype=null,k[s]=m):k=p(),_===void 0?k:o.f(k,_)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/v8-prototype-define-bug"),o=t("../internals/object-define-property"),n=t("../internals/an-object"),e=t("../internals/to-indexed-object"),r=t("../internals/object-keys");g.f=c&&!a?Object.defineProperties:function(u,i){n(u);for(var s,h=e(i),f=r(i),l=f.length,p=0;l>p;)o.f(u,s=f[p++],h[s]);return u}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/ie8-dom-define"),o=t("../internals/v8-prototype-define-bug"),n=t("../internals/an-object"),e=t("../internals/to-property-key"),r=TypeError,u=Object.defineProperty,i=Object.getOwnPropertyDescriptor;g.f=c?o?function(s,h,f){if(n(s),h=e(h),n(f),typeof s=="function"&&h==="prototype"&&"value"in f&&"writable"in f&&!f.writable){var l=i(s,h);l&&l.writable&&(s[h]=f.value,f={configurable:"configurable"in f?f.configurable:l.configurable,enumerable:"enumerable"in f?f.enumerable:l.enumerable,writable:!1})}return u(s,h,f)}:u:function(s,h,f){if(n(s),h=e(h),n(f),a)try{return u(s,h,f)}catch{}if("get"in f||"set"in f)throw new r("Accessors not supported");return"value"in f&&(s[h]=f.value),s}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/function-call"),o=t("../internals/object-property-is-enumerable"),n=t("../internals/create-property-descriptor"),e=t("../internals/to-indexed-object"),r=t("../internals/to-property-key"),u=t("../internals/has-own-property"),i=t("../internals/ie8-dom-define"),s=Object.getOwnPropertyDescriptor;g.f=c?s:function(h,f){if(h=e(h),f=r(f),i)try{return s(h,f)}catch{}if(u(h,f))return n(!a(o.f,h,f),h[f])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(t,b,g){var c=t("../internals/classof-raw"),a=t("../internals/to-indexed-object"),o=t("../internals/object-get-own-property-names").f,n=t("../internals/array-slice-simple"),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(r){return e&&c(r)==="Window"?(function(u){try{return o(u)}catch{return n(e)}})(r):o(a(r))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(t,b,g){var c=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys").concat("length","prototype");g.f=Object.getOwnPropertyNames||function(o){return c(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(t,b,g){g.f=Object.getOwnPropertySymbols},{}],313:[function(t,b,g){var c=t("../internals/has-own-property"),a=t("../internals/is-callable"),o=t("../internals/to-object"),n=t("../internals/shared-key"),e=t("../internals/correct-prototype-getter"),r=n("IE_PROTO"),u=Object,i=u.prototype;b.exports=e?u.getPrototypeOf:function(s){var h=o(s);if(c(h,r))return h[r];var f=h.constructor;return a(f)&&h instanceof f?f.prototype:h instanceof u?i:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(t,b,g){var c=t("../internals/function-uncurry-this");b.exports=c({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=t("../internals/has-own-property"),o=t("../internals/to-indexed-object"),n=t("../internals/array-includes").indexOf,e=t("../internals/hidden-keys"),r=c([].push);b.exports=function(u,i){var s,h=o(u),f=0,l=[];for(s in h)!a(e,s)&&a(h,s)&&r(l,s);for(;i.length>f;)a(h,s=i[f++])&&(~n(l,s)||r(l,s));return l}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(t,b,g){var c=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys");b.exports=Object.keys||function(o){return c(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(t,b,g){var c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!c.call({1:2},1);g.f=o?function(n){var e=a(this,n);return!!e&&e.enumerable}:c},{}],318:[function(t,b,g){var c=t("../internals/function-uncurry-this-accessor"),a=t("../internals/an-object"),o=t("../internals/a-possible-prototype");b.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var n,e=!1,r={};try{(n=c(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch{}return function(u,i){return a(u),o(i),e?n(u,i):u.__proto__=i,u}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/function-uncurry-this"),n=t("../internals/object-get-prototype-of"),e=t("../internals/object-keys"),r=t("../internals/to-indexed-object"),u=o(t("../internals/object-property-is-enumerable").f),i=o([].push),s=c&&a((function(){var f=Object.create(null);return f[2]=2,!u(f,2)})),h=function(f){return function(l){for(var p,m=r(l),_=e(m),k=s&&n(m)===null,M=_.length,j=0,z=[];M>j;)p=_[j++],c&&!(k?p in m:u(m,p))||i(z,f?[p,m[p]]:m[p]);return z}};b.exports={entries:h(!0),values:h(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(t,b,g){var c=t("../internals/function-call"),a=t("../internals/is-callable"),o=t("../internals/is-object"),n=TypeError;b.exports=function(e,r){var u,i;if(r==="string"&&a(u=e.toString)&&!o(i=c(u,e))||a(u=e.valueOf)&&!o(i=c(u,e))||r!=="string"&&a(u=e.toString)&&!o(i=c(u,e)))return i;throw new n("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(t,b,g){var c=t("../internals/get-built-in"),a=t("../internals/function-uncurry-this"),o=t("../internals/object-get-own-property-names"),n=t("../internals/object-get-own-property-symbols"),e=t("../internals/an-object"),r=a([].concat);b.exports=c("Reflect","ownKeys")||function(u){var i=o.f(e(u)),s=n.f;return s?r(i,s(u)):i}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(t,b,g){var c=t("../internals/global");b.exports=c},{"../internals/global":274}],323:[function(t,b,g){b.exports=function(c){try{return{error:!1,value:c()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/promise-native-constructor"),o=t("../internals/is-callable"),n=t("../internals/is-forced"),e=t("../internals/inspect-source"),r=t("../internals/well-known-symbol"),u=t("../internals/engine-is-browser"),i=t("../internals/engine-is-deno"),s=t("../internals/is-pure"),h=t("../internals/engine-v8-version"),f=a&&a.prototype,l=r("species"),p=!1,m=o(c.PromiseRejectionEvent),_=n("Promise",(function(){var k=e(a),M=k!==String(a);if(!M&&h===66||s&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(k)){var j=new a((function(A){A(1)})),z=function(A){A((function(){}),(function(){}))};if((j.constructor={})[l]=z,!(p=j.then((function(){}))instanceof z))return!0}return!M&&(u||i)&&!m}));b.exports={CONSTRUCTOR:_,REJECTION_EVENT:m,SUBCLASSING:p}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(t,b,g){var c=t("../internals/global");b.exports=c.Promise},{"../internals/global":274}],326:[function(t,b,g){var c=t("../internals/an-object"),a=t("../internals/is-object"),o=t("../internals/new-promise-capability");b.exports=function(n,e){if(c(n),a(e)&&e.constructor===n)return e;var r=o.f(n);return(0,r.resolve)(e),r.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(t,b,g){var c=t("../internals/promise-native-constructor"),a=t("../internals/check-correctness-of-iteration"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR;b.exports=o||!a((function(n){c.all(n).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(t,b,g){var c=function(){this.head=null,this.tail=null};c.prototype={add:function(a){var o={item:a,next:null},n=this.tail;n?n.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},b.exports=c},{}],329:[function(t,b,g){var c=t("../internals/is-null-or-undefined"),a=TypeError;b.exports=function(o){if(c(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(t,b,g){var c=t("../internals/get-built-in"),a=t("../internals/define-built-in-accessor"),o=t("../internals/well-known-symbol"),n=t("../internals/descriptors"),e=o("species");b.exports=function(r){var u=c(r);n&&u&&!u[e]&&a(u,e,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(t,b,g){var c=t("../internals/object-define-property").f,a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol")("toStringTag");b.exports=function(n,e,r){n&&!r&&(n=n.prototype),n&&!a(n,o)&&c(n,o,{configurable:!0,value:e})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(t,b,g){var c=t("../internals/shared"),a=t("../internals/uid"),o=c("keys");b.exports=function(n){return o[n]||(o[n]=a(n))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/define-global-property"),o=c["__core-js_shared__"]||a("__core-js_shared__",{});b.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(t,b,g){var c=t("../internals/is-pure"),a=t("../internals/shared-store");(b.exports=function(o,n){return a[o]||(a[o]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.0",mode:c?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(t,b,g){var c=t("../internals/an-object"),a=t("../internals/a-constructor"),o=t("../internals/is-null-or-undefined"),n=t("../internals/well-known-symbol")("species");b.exports=function(e,r){var u,i=c(e).constructor;return i===void 0||o(u=c(i)[n])?r:a(u)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(t,b,g){var c=t("../internals/engine-v8-version"),a=t("../internals/fails"),o=t("../internals/global").String;b.exports=!!Object.getOwnPropertySymbols&&!a((function(){var n=Symbol("symbol detection");return!o(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(t,b,g){var c=t("../internals/function-call"),a=t("../internals/get-built-in"),o=t("../internals/well-known-symbol"),n=t("../internals/define-built-in");b.exports=function(){var e=a("Symbol"),r=e&&e.prototype,u=r&&r.valueOf,i=o("toPrimitive");r&&!r[i]&&n(r,i,(function(s){return c(u,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(t,b,g){var c=t("../internals/symbol-constructor-detection");b.exports=c&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(t,b,g){var c,a,o,n,e=t("../internals/global"),r=t("../internals/function-apply"),u=t("../internals/function-bind-context"),i=t("../internals/is-callable"),s=t("../internals/has-own-property"),h=t("../internals/fails"),f=t("../internals/html"),l=t("../internals/array-slice"),p=t("../internals/document-create-element"),m=t("../internals/validate-arguments-length"),_=t("../internals/engine-is-ios"),k=t("../internals/engine-is-node"),M=e.setImmediate,j=e.clearImmediate,z=e.process,A=e.Dispatch,T=e.Function,O=e.MessageChannel,L=e.String,B=0,S={};h((function(){c=e.location}));var D=function(y){if(s(S,y)){var x=S[y];delete S[y],x()}},w=function(y){return function(){D(y)}},d=function(y){D(y.data)},v=function(y){e.postMessage(L(y),c.protocol+"//"+c.host)};M&&j||(M=function(y){m(arguments.length,1);var x=i(y)?y:T(y),C=l(arguments,1);return S[++B]=function(){r(x,void 0,C)},a(B),B},j=function(y){delete S[y]},k?a=function(y){z.nextTick(w(y))}:A&&A.now?a=function(y){A.now(w(y))}:O&&!_?(n=(o=new O).port2,o.port1.onmessage=d,a=u(n.postMessage,n)):e.addEventListener&&i(e.postMessage)&&!e.importScripts&&c&&c.protocol!=="file:"&&!h(v)?(a=v,e.addEventListener("message",d,!1)):a="onreadystatechange"in p("script")?function(y){f.appendChild(p("script")).onreadystatechange=function(){f.removeChild(this),D(y)}}:function(y){setTimeout(w(y),0)}),b.exports={set:M,clear:j}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(t,b,g){var c=t("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;b.exports=function(n,e){var r=c(n);return r<0?a(r+e,0):o(r,e)}},{"../internals/to-integer-or-infinity":342}],341:[function(t,b,g){var c=t("../internals/indexed-object"),a=t("../internals/require-object-coercible");b.exports=function(o){return c(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(t,b,g){var c=t("../internals/math-trunc");b.exports=function(a){var o=+a;return o!=o||o===0?0:c(o)}},{"../internals/math-trunc":301}],343:[function(t,b,g){var c=t("../internals/to-integer-or-infinity"),a=Math.min;b.exports=function(o){return o>0?a(c(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(t,b,g){var c=t("../internals/require-object-coercible"),a=Object;b.exports=function(o){return a(c(o))}},{"../internals/require-object-coercible":329}],345:[function(t,b,g){var c=t("../internals/function-call"),a=t("../internals/is-object"),o=t("../internals/is-symbol"),n=t("../internals/get-method"),e=t("../internals/ordinary-to-primitive"),r=t("../internals/well-known-symbol"),u=TypeError,i=r("toPrimitive");b.exports=function(s,h){if(!a(s)||o(s))return s;var f,l=n(s,i);if(l){if(h===void 0&&(h="default"),f=c(l,s,h),!a(f)||o(f))return f;throw new u("Can't convert object to primitive value")}return h===void 0&&(h="number"),e(s,h)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(t,b,g){var c=t("../internals/to-primitive"),a=t("../internals/is-symbol");b.exports=function(o){var n=c(o,"string");return a(n)?n:n+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(t,b,g){var c={};c[t("../internals/well-known-symbol")("toStringTag")]="z",b.exports=String(c)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(t,b,g){var c=t("../internals/classof"),a=String;b.exports=function(o){if(c(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(t,b,g){var c=String;b.exports=function(a){try{return c(a)}catch{return"Object"}}},{}],350:[function(t,b,g){var c=t("../internals/function-uncurry-this"),a=0,o=Math.random(),n=c(1 .toString);b.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+n(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(t,b,g){var c=t("../internals/symbol-constructor-detection");b.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(t,b,g){var c=t("../internals/descriptors"),a=t("../internals/fails");b.exports=c&&a((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(t,b,g){var c=TypeError;b.exports=function(a,o){if(a<o)throw new c("Not enough arguments");return a}},{}],354:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/is-callable"),o=c.WeakMap;b.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(t,b,g){var c=t("../internals/path"),a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol-wrapped"),n=t("../internals/object-define-property").f;b.exports=function(e){var r=c.Symbol||(c.Symbol={});a(r,e)||n(r,e,{value:o.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(t,b,g){var c=t("../internals/well-known-symbol");g.f=c},{"../internals/well-known-symbol":357}],357:[function(t,b,g){var c=t("../internals/global"),a=t("../internals/shared"),o=t("../internals/has-own-property"),n=t("../internals/uid"),e=t("../internals/symbol-constructor-detection"),r=t("../internals/use-symbol-as-uid"),u=c.Symbol,i=a("wks"),s=r?u.for||u:u&&u.withoutSetter||n;b.exports=function(h){return o(i,h)||(i[h]=e&&o(u,h)?u[h]:s("Symbol."+h)),i[h]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/array-iteration").findIndex,o=t("../internals/add-to-unscopables"),n=!0;"findIndex"in[]&&Array(1).findIndex((function(){n=!1})),c({target:"Array",proto:!0,forced:n},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/array-iteration").find,o=t("../internals/add-to-unscopables"),n=!0;"find"in[]&&Array(1).find((function(){n=!1})),c({target:"Array",proto:!0,forced:n},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/array-includes").includes,o=t("../internals/fails"),n=t("../internals/add-to-unscopables");c({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(t,b,g){var c=t("../internals/to-indexed-object"),a=t("../internals/add-to-unscopables"),o=t("../internals/iterators"),n=t("../internals/internal-state"),e=t("../internals/object-define-property").f,r=t("../internals/iterator-define"),u=t("../internals/create-iter-result-object"),i=t("../internals/is-pure"),s=t("../internals/descriptors"),h=n.set,f=n.getterFor("Array Iterator");b.exports=r(Array,"Array",(function(p,m){h(this,{type:"Array Iterator",target:c(p),index:0,kind:m})}),(function(){var p=f(this),m=p.target,_=p.kind,k=p.index++;if(!m||k>=m.length)return p.target=void 0,u(void 0,!0);switch(_){case"keys":return u(k,!1);case"values":return u(m[k],!1)}return u([k,m[k]],!1)}),"values");var l=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!i&&s&&l.name!=="values")try{e(l,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/function-apply"),n=t("../internals/function-call"),e=t("../internals/function-uncurry-this"),r=t("../internals/fails"),u=t("../internals/is-callable"),i=t("../internals/is-symbol"),s=t("../internals/array-slice"),h=t("../internals/get-json-replacer-function"),f=t("../internals/symbol-constructor-detection"),l=String,p=a("JSON","stringify"),m=e(/./.exec),_=e("".charAt),k=e("".charCodeAt),M=e("".replace),j=e(1 .toString),z=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,O=!f||r((function(){var D=a("Symbol")("stringify detection");return p([D])!=="[null]"||p({a:D})!=="{}"||p(Object(D))!=="{}"})),L=r((function(){return p("\uDF06\uD834")!=='"\\udf06\\ud834"'||p("\uDEAD")!=='"\\udead"'})),B=function(D,w){var d=s(arguments),v=h(w);if(u(v)||D!==void 0&&!i(D))return d[1]=function(y,x){if(u(v)&&(x=n(v,this,l(y),x)),!i(x))return x},o(p,null,d)},S=function(D,w,d){var v=_(d,w-1),y=_(d,w+1);return m(A,D)&&!m(T,y)||m(T,D)&&!m(A,v)?"\\u"+j(k(D,0),16):D};p&&c({target:"JSON",stat:!0,arity:3,forced:O||L},{stringify:function(D,w,d){var v=s(arguments),y=o(O?B:p,null,v);return L&&typeof y=="string"?M(y,z,S):y}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(t,b,g){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(c){return c!=c}})},{"../internals/export":259}],364:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/object-assign");c({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/symbol-constructor-detection"),o=t("../internals/fails"),n=t("../internals/object-get-own-property-symbols"),e=t("../internals/to-object");c({target:"Object",stat:!0,forced:!a||o((function(){n.f(1)}))},{getOwnPropertySymbols:function(r){var u=n.f;return u?u(e(r)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/to-object"),o=t("../internals/object-keys");c({target:"Object",stat:!0,forced:t("../internals/fails")((function(){o(1)}))},{keys:function(n){return o(a(n))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/object-to-array").values;c({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),n=t("../internals/new-promise-capability"),e=t("../internals/perform"),r=t("../internals/iterate");c({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{all:function(u){var i=this,s=n.f(i),h=s.resolve,f=s.reject,l=e((function(){var p=o(i.resolve),m=[],_=0,k=1;r(u,(function(M){var j=_++,z=!1;k++,a(p,i,M).then((function(A){z||(z=!0,m[j]=A,--k||h(m))}),f)})),--k||h(m)}));return l.error&&f(l.value),s.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR,n=t("../internals/promise-native-constructor"),e=t("../internals/get-built-in"),r=t("../internals/is-callable"),u=t("../internals/define-built-in"),i=n&&n.prototype;if(c({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(h){return this.then(void 0,h)}}),!a&&r(n)){var s=e("Promise").prototype.catch;i.catch!==s&&u(i,"catch",s,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(t,b,g){var c,a,o,n=t("../internals/export"),e=t("../internals/is-pure"),r=t("../internals/engine-is-node"),u=t("../internals/global"),i=t("../internals/function-call"),s=t("../internals/define-built-in"),h=t("../internals/object-set-prototype-of"),f=t("../internals/set-to-string-tag"),l=t("../internals/set-species"),p=t("../internals/a-callable"),m=t("../internals/is-callable"),_=t("../internals/is-object"),k=t("../internals/an-instance"),M=t("../internals/species-constructor"),j=t("../internals/task").set,z=t("../internals/microtask"),A=t("../internals/host-report-errors"),T=t("../internals/perform"),O=t("../internals/queue"),L=t("../internals/internal-state"),B=t("../internals/promise-native-constructor"),S=t("../internals/promise-constructor-detection"),D=t("../internals/new-promise-capability"),w=S.CONSTRUCTOR,d=S.REJECTION_EVENT,v=S.SUBCLASSING,y=L.getterFor("Promise"),x=L.set,C=B&&B.prototype,N=B,R=C,$=u.TypeError,V=u.document,X=u.process,P=D.f,q=P,I=!!(V&&V.createEvent&&u.dispatchEvent),F=function(Q){var st;return!(!_(Q)||!m(st=Q.then))&&st},H=function(Q,st){var it,ot,ct,ht=st.value,bt=st.state===1,kt=bt?Q.ok:Q.fail,St=Q.resolve,wt=Q.reject,Nt=Q.domain;try{kt?(bt||(st.rejection===2&&et(st),st.rejection=1),kt===!0?it=ht:(Nt&&Nt.enter(),it=kt(ht),Nt&&(Nt.exit(),ct=!0)),it===Q.promise?wt(new $("Promise-chain cycle")):(ot=F(it))?i(ot,it,St,wt):St(it)):wt(ht)}catch(Ft){Nt&&!ct&&Nt.exit(),wt(Ft)}},W=function(Q,st){Q.notified||(Q.notified=!0,z((function(){for(var it,ot=Q.reactions;it=ot.get();)H(it,Q);Q.notified=!1,st&&!Q.rejection&&Y(Q)})))},J=function(Q,st,it){var ot,ct;I?((ot=V.createEvent("Event")).promise=st,ot.reason=it,ot.initEvent(Q,!1,!0),u.dispatchEvent(ot)):ot={promise:st,reason:it},!d&&(ct=u["on"+Q])?ct(ot):Q==="unhandledrejection"&&A("Unhandled promise rejection",it)},Y=function(Q){i(j,u,(function(){var st,it=Q.facade,ot=Q.value;if(K(Q)&&(st=T((function(){r?X.emit("unhandledRejection",ot,it):J("unhandledrejection",it,ot)})),Q.rejection=r||K(Q)?2:1,st.error))throw st.value}))},K=function(Q){return Q.rejection!==1&&!Q.parent},et=function(Q){i(j,u,(function(){var st=Q.facade;r?X.emit("rejectionHandled",st):J("rejectionhandled",st,Q.value)}))},nt=function(Q,st,it){return function(ot){Q(st,ot,it)}},G=function(Q,st,it){Q.done||(Q.done=!0,it&&(Q=it),Q.value=st,Q.state=2,W(Q,!0))},tt=function(Q,st,it){if(!Q.done){Q.done=!0,it&&(Q=it);try{if(Q.facade===st)throw new $("Promise can't be resolved itself");var ot=F(st);ot?z((function(){var ct={done:!1};try{i(ot,st,nt(tt,ct,Q),nt(G,ct,Q))}catch(ht){G(ct,ht,Q)}})):(Q.value=st,Q.state=1,W(Q,!1))}catch(ct){G({done:!1},ct,Q)}}};if(w&&(R=(N=function(Q){k(this,R),p(Q),i(c,this);var st=y(this);try{Q(nt(tt,st),nt(G,st))}catch(it){G(st,it)}}).prototype,(c=function(Q){x(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=s(R,"then",(function(Q,st){var it=y(this),ot=P(M(this,N));return it.parent=!0,ot.ok=!m(Q)||Q,ot.fail=m(st)&&st,ot.domain=r?X.domain:void 0,it.state===0?it.reactions.add(ot):z((function(){H(ot,it)})),ot.promise})),a=function(){var Q=new c,st=y(Q);this.promise=Q,this.resolve=nt(tt,st),this.reject=nt(G,st)},D.f=P=function(Q){return Q===N||Q===void 0?new a(Q):q(Q)},!e&&m(B)&&C!==Object.prototype)){o=C.then,v||s(C,"then",(function(Q,st){var it=this;return new N((function(ot,ct){i(o,it,ot,ct)})).then(Q,st)}),{unsafe:!0});try{delete C.constructor}catch{}h&&h(C,R)}n({global:!0,constructor:!0,wrap:!0,forced:w},{Promise:N}),f(N,"Promise",!1,!0),l("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-native-constructor"),n=t("../internals/fails"),e=t("../internals/get-built-in"),r=t("../internals/is-callable"),u=t("../internals/species-constructor"),i=t("../internals/promise-resolve"),s=t("../internals/define-built-in"),h=o&&o.prototype;if(c({target:"Promise",proto:!0,real:!0,forced:!!o&&n((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(l){var p=u(this,e("Promise")),m=r(l);return this.then(m?function(_){return i(p,l()).then((function(){return _}))}:l,m?function(_){return i(p,l()).then((function(){throw _}))}:l)}}),!a&&r(o)){var f=e("Promise").prototype.finally;h.finally!==f&&s(h,"finally",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(t,b,g){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),n=t("../internals/new-promise-capability"),e=t("../internals/perform"),r=t("../internals/iterate");c({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{race:function(u){var i=this,s=n.f(i),h=s.reject,f=e((function(){var l=o(i.resolve);r(u,(function(p){a(l,i,p).then(s.resolve,h)}))}));return f.error&&h(f.value),s.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/new-promise-capability");c({target:"Promise",stat:!0,forced:t("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(n){var e=o.f(this);return a(e.reject,void 0,n),e.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/is-pure"),n=t("../internals/promise-native-constructor"),e=t("../internals/promise-constructor-detection").CONSTRUCTOR,r=t("../internals/promise-resolve"),u=a("Promise"),i=o&&!e;c({target:"Promise",stat:!0,forced:o||e},{resolve:function(s){return r(i&&this===u?n:this,s)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/to-absolute-index"),n=RangeError,e=String.fromCharCode,r=String.fromCodePoint,u=a([].join);c({target:"String",stat:!0,arity:1,forced:!!r&&r.length!==1},{fromCodePoint:function(i){for(var s,h=[],f=arguments.length,l=0;f>l;){if(s=+arguments[l++],o(s,1114111)!==s)throw new n(s+" is not a valid code point");h[l]=s<65536?e(s):e(55296+((s-=65536)>>10),s%1024+56320)}return u(h,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/not-a-regexp"),n=t("../internals/require-object-coercible"),e=t("../internals/to-string"),r=t("../internals/correct-is-regexp-logic"),u=a("".indexOf);c({target:"String",proto:!0,forced:!r("includes")},{includes:function(i){return!!~u(e(n(this)),e(o(i)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(t,b,g){t("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/global"),o=t("../internals/function-call"),n=t("../internals/function-uncurry-this"),e=t("../internals/is-pure"),r=t("../internals/descriptors"),u=t("../internals/symbol-constructor-detection"),i=t("../internals/fails"),s=t("../internals/has-own-property"),h=t("../internals/object-is-prototype-of"),f=t("../internals/an-object"),l=t("../internals/to-indexed-object"),p=t("../internals/to-property-key"),m=t("../internals/to-string"),_=t("../internals/create-property-descriptor"),k=t("../internals/object-create"),M=t("../internals/object-keys"),j=t("../internals/object-get-own-property-names"),z=t("../internals/object-get-own-property-names-external"),A=t("../internals/object-get-own-property-symbols"),T=t("../internals/object-get-own-property-descriptor"),O=t("../internals/object-define-property"),L=t("../internals/object-define-properties"),B=t("../internals/object-property-is-enumerable"),S=t("../internals/define-built-in"),D=t("../internals/define-built-in-accessor"),w=t("../internals/shared"),d=t("../internals/shared-key"),v=t("../internals/hidden-keys"),y=t("../internals/uid"),x=t("../internals/well-known-symbol"),C=t("../internals/well-known-symbol-wrapped"),N=t("../internals/well-known-symbol-define"),R=t("../internals/symbol-define-to-primitive"),$=t("../internals/set-to-string-tag"),V=t("../internals/internal-state"),X=t("../internals/array-iteration").forEach,P=d("hidden"),q=V.set,I=V.getterFor("Symbol"),F=Object.prototype,H=a.Symbol,W=H&&H.prototype,J=a.RangeError,Y=a.TypeError,K=a.QObject,et=T.f,nt=O.f,G=z.f,tt=B.f,Q=n([].push),st=w("symbols"),it=w("op-symbols"),ot=w("wks"),ct=!K||!K.prototype||!K.prototype.findChild,ht=function(Ct,yt,Dt){var Mt=et(F,yt);Mt&&delete F[yt],nt(Ct,yt,Dt),Mt&&Ct!==F&&nt(F,yt,Mt)},bt=r&&i((function(){return k(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a!==7}))?ht:nt,kt=function(Ct,yt){var Dt=st[Ct]=k(W);return q(Dt,{type:"Symbol",tag:Ct,description:yt}),r||(Dt.description=yt),Dt},St=function(Ct,yt,Dt){Ct===F&&St(it,yt,Dt),f(Ct);var Mt=p(yt);return f(Dt),s(st,Mt)?(Dt.enumerable?(s(Ct,P)&&Ct[P][Mt]&&(Ct[P][Mt]=!1),Dt=k(Dt,{enumerable:_(0,!1)})):(s(Ct,P)||nt(Ct,P,_(1,{})),Ct[P][Mt]=!0),bt(Ct,Mt,Dt)):nt(Ct,Mt,Dt)},wt=function(Ct,yt){f(Ct);var Dt=l(yt),Mt=M(Dt).concat(Bt(Dt));return X(Mt,(function(At){r&&!o(Nt,Dt,At)||St(Ct,At,Dt[At])})),Ct},Nt=function(Ct){var yt=p(Ct),Dt=o(tt,this,yt);return!(this===F&&s(st,yt)&&!s(it,yt))&&(!(Dt||!s(this,yt)||!s(st,yt)||s(this,P)&&this[P][yt])||Dt)},Ft=function(Ct,yt){var Dt=l(Ct),Mt=p(yt);if(Dt!==F||!s(st,Mt)||s(it,Mt)){var At=et(Dt,Mt);return!At||!s(st,Mt)||s(Dt,P)&&Dt[P][Mt]||(At.enumerable=!0),At}},It=function(Ct){var yt=G(l(Ct)),Dt=[];return X(yt,(function(Mt){s(st,Mt)||s(v,Mt)||Q(Dt,Mt)})),Dt},Bt=function(Ct){var yt=Ct===F,Dt=G(yt?it:l(Ct)),Mt=[];return X(Dt,(function(At){!s(st,At)||yt&&!s(F,At)||Q(Mt,st[At])})),Mt};u||(S(W=(H=function(){if(h(W,this))throw new Y("Symbol is not a constructor");var Ct=arguments.length&&arguments[0]!==void 0?m(arguments[0]):void 0,yt=y(Ct),Dt=function(Mt){this===F&&o(Dt,it,Mt),s(this,P)&&s(this[P],yt)&&(this[P][yt]=!1);var At=_(1,Mt);try{bt(this,yt,At)}catch(ee){if(!(ee instanceof J))throw ee;ht(this,yt,At)}};return r&&ct&&bt(F,yt,{configurable:!0,set:Dt}),kt(yt,Ct)}).prototype,"toString",(function(){return I(this).tag})),S(H,"withoutSetter",(function(Ct){return kt(y(Ct),Ct)})),B.f=Nt,O.f=St,L.f=wt,T.f=Ft,j.f=z.f=It,A.f=Bt,C.f=function(Ct){return kt(x(Ct),Ct)},r&&(D(W,"description",{configurable:!0,get:function(){return I(this).description}}),e||S(F,"propertyIsEnumerable",Nt,{unsafe:!0}))),c({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),X(M(ot),(function(Ct){N(Ct)})),c({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ct=!0},useSimple:function(){ct=!1}}),c({target:"Object",stat:!0,forced:!u,sham:!r},{create:function(Ct,yt){return yt===void 0?k(Ct):wt(k(Ct),yt)},defineProperty:St,defineProperties:wt,getOwnPropertyDescriptor:Ft}),c({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:It}),R(),$(H,"Symbol"),v[P]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/has-own-property"),n=t("../internals/to-string"),e=t("../internals/shared"),r=t("../internals/symbol-registry-detection"),u=e("string-to-symbol-registry"),i=e("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!r},{for:function(s){var h=n(s);if(o(u,h))return u[h];var f=a("Symbol")(h);return u[h]=f,i[f]=h,f}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(t,b,g){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(t,b,g){var c=t("../internals/export"),a=t("../internals/has-own-property"),o=t("../internals/is-symbol"),n=t("../internals/try-to-string"),e=t("../internals/shared"),r=t("../internals/symbol-registry-detection"),u=e("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!r},{keyFor:function(i){if(!o(i))throw new TypeError(n(i)+" is not a symbol");if(a(u,i))return u[i]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(t,b,g){function c(a){return Object.prototype.toString.call(a)}g.isArray=function(a){return Array.isArray?Array.isArray(a):c(a)==="[object Array]"},g.isBoolean=function(a){return typeof a=="boolean"},g.isNull=function(a){return a===null},g.isNullOrUndefined=function(a){return a==null},g.isNumber=function(a){return typeof a=="number"},g.isString=function(a){return typeof a=="string"},g.isSymbol=function(a){return typeof a=="symbol"},g.isUndefined=function(a){return a===void 0},g.isRegExp=function(a){return c(a)==="[object RegExp]"},g.isObject=function(a){return typeof a=="object"&&a!==null},g.isDate=function(a){return c(a)==="[object Date]"},g.isError=function(a){return c(a)==="[object Error]"||a instanceof Error},g.isFunction=function(a){return typeof a=="function"},g.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},g.isBuffer=t("buffer").Buffer.isBuffer},{buffer:220}],384:[function(t,b,g){(function(c){(function(){var a=t("elliptic"),o=t("bn.js");b.exports=function(u){return new e(u)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function e(u){this.curveType=n[u],this.curveType||(this.curveType={name:u}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function r(u,i,s){Array.isArray(u)||(u=u.toArray());var h=new c(u);if(s&&h.length<s){var f=new c(s-h.length);f.fill(0),h=c.concat([f,h])}return i?h.toString(i):h}n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1,e.prototype.generateKeys=function(u,i){return this.keys=this.curve.genKeyPair(),this.getPublicKey(u,i)},e.prototype.computeSecret=function(u,i,s){return i=i||"utf8",c.isBuffer(u)||(u=new c(u,i)),r(this.curve.keyFromPublic(u).getPublic().mul(this.keys.getPrivate()).getX(),s,this.curveType.byteLength)},e.prototype.getPublicKey=function(u,i){var s=this.keys.getPublic(i==="compressed",!0);return i==="hybrid"&&(s[s.length-1]%2?s[0]=7:s[0]=6),r(s,u)},e.prototype.getPrivateKey=function(u){return r(this.keys.getPrivate(),u)},e.prototype.setPublicKey=function(u,i){return i=i||"utf8",c.isBuffer(u)||(u=new c(u,i)),this.keys._importPublic(u),this},e.prototype.setPrivateKey=function(u,i){i=i||"utf8",c.isBuffer(u)||(u=new c(u,i));var s=new o(u);return s=s.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(s),this}}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(t,b,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],386:[function(t,b,g){var c=t("inherits"),a=t("md5.js"),o=t("ripemd160"),n=t("sha.js"),e=t("cipher-base");function r(u){e.call(this,"digest"),this._hash=u}c(r,e),r.prototype._update=function(u){this._hash.update(u)},r.prototype._final=function(){return this._hash.digest()},b.exports=function(u){return(u=u.toLowerCase())==="md5"?new a:u==="rmd160"||u==="ripemd160"?new o:new r(n(u))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(t,b,g){var c=t("md5.js");b.exports=function(a){return new c().update(a).digest()}},{"md5.js":450}],388:[function(t,b,g){var c=t("inherits"),a=t("./legacy"),o=t("cipher-base"),n=t("safe-buffer").Buffer,e=t("create-hash/md5"),r=t("ripemd160"),u=t("sha.js"),i=n.alloc(128);function s(h,f){o.call(this,"digest"),typeof f=="string"&&(f=n.from(f));var l=h==="sha512"||h==="sha384"?128:64;this._alg=h,this._key=f,f.length>l?f=(h==="rmd160"?new r:u(h)).update(f).digest():f.length<l&&(f=n.concat([f,i],l));for(var p=this._ipad=n.allocUnsafe(l),m=this._opad=n.allocUnsafe(l),_=0;_<l;_++)p[_]=54^f[_],m[_]=92^f[_];this._hash=h==="rmd160"?new r:u(h),this._hash.update(p)}c(s,o),s.prototype._update=function(h){this._hash.update(h)},s.prototype._final=function(){var h=this._hash.digest();return(this._alg==="rmd160"?new r:u(this._alg)).update(this._opad).update(h).digest()},b.exports=function(h,f){return(h=h.toLowerCase())==="rmd160"||h==="ripemd160"?new s("rmd160",f):h==="md5"?new a(e,f):new s(h,f)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(t,b,g){var c=t("inherits"),a=t("safe-buffer").Buffer,o=t("cipher-base"),n=a.alloc(128);function e(r,u){o.call(this,"digest"),typeof u=="string"&&(u=a.from(u)),this._alg=r,this._key=u,u.length>64?u=r(u):u.length<64&&(u=a.concat([u,n],64));for(var i=this._ipad=a.allocUnsafe(64),s=this._opad=a.allocUnsafe(64),h=0;h<64;h++)i[h]=54^u[h],s[h]=92^u[h];this._hash=[i]}c(e,o),e.prototype._update=function(r){this._hash.push(r)},e.prototype._final=function(){var r=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,r]))},b.exports=e},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(t,b,g){g.randomBytes=g.rng=g.pseudoRandomBytes=g.prng=t("randombytes"),g.createHash=g.Hash=t("create-hash"),g.createHmac=g.Hmac=t("create-hmac");var c=t("browserify-sign/algos"),a=Object.keys(c),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);g.getHashes=function(){return o};var n=t("pbkdf2");g.pbkdf2=n.pbkdf2,g.pbkdf2Sync=n.pbkdf2Sync;var e=t("browserify-cipher");g.Cipher=e.Cipher,g.createCipher=e.createCipher,g.Cipheriv=e.Cipheriv,g.createCipheriv=e.createCipheriv,g.Decipher=e.Decipher,g.createDecipher=e.createDecipher,g.Decipheriv=e.Decipheriv,g.createDecipheriv=e.createDecipheriv,g.getCiphers=e.getCiphers,g.listCiphers=e.listCiphers;var r=t("diffie-hellman");g.DiffieHellmanGroup=r.DiffieHellmanGroup,g.createDiffieHellmanGroup=r.createDiffieHellmanGroup,g.getDiffieHellman=r.getDiffieHellman,g.createDiffieHellman=r.createDiffieHellman,g.DiffieHellman=r.DiffieHellman;var u=t("browserify-sign");g.createSign=u.createSign,g.Sign=u.Sign,g.createVerify=u.createVerify,g.Verify=u.Verify,g.createECDH=t("create-ecdh");var i=t("public-encrypt");g.publicEncrypt=i.publicEncrypt,g.privateEncrypt=i.privateEncrypt,g.publicDecrypt=i.publicDecrypt,g.privateDecrypt=i.privateDecrypt;var s=t("randomfill");g.randomFill=s.randomFill,g.randomFillSync=s.randomFillSync,g.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
17
|
+
`))},g.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(t,b,g){(function(c,a){typeof g=="object"&&b!==void 0?b.exports=a():(c=typeof globalThis<"u"?globalThis:c||self).dayjs=a()})(void 0,(function(){var c=6e4,a=36e5,o="millisecond",n="second",e="minute",r="hour",u="day",i="week",s="month",h="quarter",f="year",l="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,k={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(d){var v=["th","st","nd","rd"],y=d%100;return"["+d+(v[(y-20)%10]||v[y]||v[0])+"]"}},M=function(d,v,y){var x=String(d);return!x||x.length>=v?d:""+Array(v+1-x.length).join(y)+d},j={s:M,z:function(d){var v=-d.utcOffset(),y=Math.abs(v),x=Math.floor(y/60),C=y%60;return(v<=0?"+":"-")+M(x,2,"0")+":"+M(C,2,"0")},m:function d(v,y){if(v.date()<y.date())return-d(y,v);var x=12*(y.year()-v.year())+(y.month()-v.month()),C=v.clone().add(x,s),N=y-C<0,R=v.clone().add(x+(N?-1:1),s);return+(-(x+(y-C)/(N?C-R:R-C))||0)},a:function(d){return d<0?Math.ceil(d)||0:Math.floor(d)},p:function(d){return{M:s,y:f,w:i,d:u,D:l,h:r,m:e,s:n,ms:o,Q:h}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(d){return d===void 0}},z="en",A={};A[z]=k;var T="$isDayjsObject",O=function(d){return d instanceof D||!(!d||!d[T])},L=function d(v,y,x){var C;if(!v)return z;if(typeof v=="string"){var N=v.toLowerCase();A[N]&&(C=N),y&&(A[N]=y,C=N);var R=v.split("-");if(!C&&R.length>1)return d(R[0])}else{var $=v.name;A[$]=v,C=$}return!x&&C&&(z=C),C||!x&&z},B=function(d,v){if(O(d))return d.clone();var y=typeof v=="object"?v:{};return y.date=d,y.args=arguments,new D(y)},S=j;S.l=L,S.i=O,S.w=function(d,v){return B(d,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var D=(function(){function d(y){this.$L=L(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[T]=!0}var v=d.prototype;return v.parse=function(y){this.$d=(function(x){var C=x.date,N=x.utc;if(C===null)return new Date(NaN);if(S.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var R=C.match(m);if(R){var $=R[2]-1||0,V=(R[7]||"0").substring(0,3);return N?new Date(Date.UTC(R[1],$,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)):new Date(R[1],$,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)}}return new Date(C)})(y),this.init()},v.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(y,x){var C=B(y);return this.startOf(x)<=C&&C<=this.endOf(x)},v.isAfter=function(y,x){return B(y)<this.startOf(x)},v.isBefore=function(y,x){return this.endOf(x)<B(y)},v.$g=function(y,x,C){return S.u(y)?this[x]:this.set(C,y)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(y,x){var C=this,N=!!S.u(x)||x,R=S.p(y),$=function(W,J){var Y=S.w(C.$u?Date.UTC(C.$y,J,W):new Date(C.$y,J,W),C);return N?Y:Y.endOf(u)},V=function(W,J){return S.w(C.toDate()[W].apply(C.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(J)),C)},X=this.$W,P=this.$M,q=this.$D,I="set"+(this.$u?"UTC":"");switch(R){case f:return N?$(1,0):$(31,11);case s:return N?$(1,P):$(0,P+1);case i:var F=this.$locale().weekStart||0,H=(X<F?X+7:X)-F;return $(N?q-H:q+(6-H),P);case u:case l:return V(I+"Hours",0);case r:return V(I+"Minutes",1);case e:return V(I+"Seconds",2);case n:return V(I+"Milliseconds",3);default:return this.clone()}},v.endOf=function(y){return this.startOf(y,!1)},v.$set=function(y,x){var C,N=S.p(y),R="set"+(this.$u?"UTC":""),$=(C={},C[u]=R+"Date",C[l]=R+"Date",C[s]=R+"Month",C[f]=R+"FullYear",C[r]=R+"Hours",C[e]=R+"Minutes",C[n]=R+"Seconds",C[o]=R+"Milliseconds",C)[N],V=N===u?this.$D+(x-this.$W):x;if(N===s||N===f){var X=this.clone().set(l,1);X.$d[$](V),X.init(),this.$d=X.set(l,Math.min(this.$D,X.daysInMonth())).$d}else $&&this.$d[$](V);return this.init(),this},v.set=function(y,x){return this.clone().$set(y,x)},v.get=function(y){return this[S.p(y)]()},v.add=function(y,x){var C,N=this;y=Number(y);var R=S.p(x),$=function(P){var q=B(N);return S.w(q.date(q.date()+Math.round(P*y)),N)};if(R===s)return this.set(s,this.$M+y);if(R===f)return this.set(f,this.$y+y);if(R===u)return $(1);if(R===i)return $(7);var V=(C={},C[e]=c,C[r]=a,C[n]=1e3,C)[R]||1,X=this.$d.getTime()+y*V;return S.w(X,this)},v.subtract=function(y,x){return this.add(-1*y,x)},v.format=function(y){var x=this,C=this.$locale();if(!this.isValid())return C.invalidDate||p;var N=y||"YYYY-MM-DDTHH:mm:ssZ",R=S.z(this),$=this.$H,V=this.$m,X=this.$M,P=C.weekdays,q=C.months,I=C.meridiem,F=function(J,Y,K,et){return J&&(J[Y]||J(x,N))||K[Y].slice(0,et)},H=function(J){return S.s($%12||12,J,"0")},W=I||function(J,Y,K){var et=J<12?"AM":"PM";return K?et.toLowerCase():et};return N.replace(_,(function(J,Y){return Y||(function(K){switch(K){case"YY":return String(x.$y).slice(-2);case"YYYY":return S.s(x.$y,4,"0");case"M":return X+1;case"MM":return S.s(X+1,2,"0");case"MMM":return F(C.monthsShort,X,q,3);case"MMMM":return F(q,X);case"D":return x.$D;case"DD":return S.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return F(C.weekdaysMin,x.$W,P,2);case"ddd":return F(C.weekdaysShort,x.$W,P,3);case"dddd":return P[x.$W];case"H":return String($);case"HH":return S.s($,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return W($,V,!0);case"A":return W($,V,!1);case"m":return String(V);case"mm":return S.s(V,2,"0");case"s":return String(x.$s);case"ss":return S.s(x.$s,2,"0");case"SSS":return S.s(x.$ms,3,"0");case"Z":return R}return null})(J)||R.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(y,x,C){var N,R=this,$=S.p(x),V=B(y),X=(V.utcOffset()-this.utcOffset())*c,P=this-V,q=function(){return S.m(R,V)};switch($){case f:N=q()/12;break;case s:N=q();break;case h:N=q()/3;break;case i:N=(P-X)/6048e5;break;case u:N=(P-X)/864e5;break;case r:N=P/a;break;case e:N=P/c;break;case n:N=P/1e3;break;default:N=P}return C?N:S.a(N)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return A[this.$L]},v.locale=function(y,x){if(!y)return this.$L;var C=this.clone(),N=L(y,x,!0);return N&&(C.$L=N),C},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},d})(),w=D.prototype;return B.prototype=w,[["$ms",o],["$s",n],["$m",e],["$H",r],["$W",u],["$M",s],["$y",f],["$D",l]].forEach((function(d){w[d[1]]=function(v){return this.$g(v,d[0],d[1])}})),B.extend=function(d,v){return d.$i||(d(v,D,B),d.$i=!0),B},B.locale=L,B.isDayjs=O,B.unix=function(d){return B(1e3*d)},B.en=A[z],B.Ls=A,B.p={},B}))},{}],392:[function(t,b,g){(function(c,a){typeof g=="object"&&b!==void 0?b.exports=a():(c=typeof globalThis<"u"?globalThis:c||self).dayjs_plugin_customParseFormat=a()})(void 0,(function(){var c={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,e=/\d*[^-_:/,()\s\d]+/,r={},u=function(m){return(m=+m)+(m>68?1900:2e3)},i=function(m){return function(_){this[m]=+_}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var k=_.match(/([+-]|\d\d)/g),M=60*k[1]+(+k[2]||0);return M===0?0:k[0]==="+"?-M:M})(m)}],h=function(m){var _=r[m];return _&&(_.indexOf?_:_.s.concat(_.f))},f=function(m,_){var k,M=r.meridiem;if(M){for(var j=1;j<=24;j+=1)if(m.indexOf(M(j,0,_))>-1){k=j>12;break}}else k=m===(_?"pm":"PM");return k},l={A:[e,function(m){this.afternoon=f(m,!1)}],a:[e,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[n,i("seconds")],ss:[n,i("seconds")],m:[n,i("minutes")],mm:[n,i("minutes")],H:[n,i("hours")],h:[n,i("hours")],HH:[n,i("hours")],hh:[n,i("hours")],D:[n,i("day")],DD:[o,i("day")],Do:[e,function(m){var _=r.ordinal,k=m.match(/\d+/);if(this.day=k[0],_)for(var M=1;M<=31;M+=1)_(M).replace(/\[|\]/g,"")===m&&(this.day=M)}],M:[n,i("month")],MM:[o,i("month")],MMM:[e,function(m){var _=h("months"),k=(h("monthsShort")||_.map((function(M){return M.slice(0,3)}))).indexOf(m)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[e,function(m){var _=h("months").indexOf(m)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,i("year")],YY:[o,function(m){this.year=u(m)}],YYYY:[/\d{4}/,i("year")],Z:s,ZZ:s};function p(m){var _,k;_=m,k=r&&r.formats;for(var M=(m=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,S,D){var w=D&&D.toUpperCase();return S||k[D]||c[D]||k[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(d,v,y){return v||y.slice(1)}))}))).match(a),j=M.length,z=0;z<j;z+=1){var A=M[z],T=l[A],O=T&&T[0],L=T&&T[1];M[z]=L?{regex:O,parser:L}:A.replace(/^\[|\]$/g,"")}return function(B){for(var S={},D=0,w=0;D<j;D+=1){var d=M[D];if(typeof d=="string")w+=d.length;else{var v=d.regex,y=d.parser,x=B.slice(w),C=v.exec(x)[0];y.call(S,C),B=B.replace(C,"")}}return(function(N){var R=N.afternoon;if(R!==void 0){var $=N.hours;R?$<12&&(N.hours+=12):$===12&&(N.hours=0),delete N.afternoon}})(S),S}}return function(m,_,k){k.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var M=_.prototype,j=M.parse;M.parse=function(z){var A=z.date,T=z.utc,O=z.args;this.$u=T;var L=O[1];if(typeof L=="string"){var B=O[2]===!0,S=O[3]===!0,D=B||S,w=O[2];S&&(w=O[2]),r=this.$locale(),!B&&w&&(r=k.Ls[w]),this.$d=(function(x,C,N){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*x);var R=p(C)(x),$=R.year,V=R.month,X=R.day,P=R.hours,q=R.minutes,I=R.seconds,F=R.milliseconds,H=R.zone,W=new Date,J=X||($||V?1:W.getDate()),Y=$||W.getFullYear(),K=0;$&&!V||(K=V>0?V-1:W.getMonth());var et=P||0,nt=q||0,G=I||0,tt=F||0;return H?new Date(Date.UTC(Y,K,J,et,nt,G,tt+60*H.offset*1e3)):N?new Date(Date.UTC(Y,K,J,et,nt,G,tt)):new Date(Y,K,J,et,nt,G,tt)}catch{return new Date("")}})(A,L,T),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),D&&A!=this.format(L)&&(this.$d=new Date("")),r={}}else if(L instanceof Array)for(var d=L.length,v=1;v<=d;v+=1){O[1]=L[v-1];var y=k.apply(this,O);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}v===d&&(this.$d=new Date(""))}else j.call(this,z)}}}))},{}],393:[function(t,b,g){(function(c,a){typeof g=="object"&&b!==void 0?b.exports=a():(c=typeof globalThis<"u"?globalThis:c||self).dayjs_plugin_utc=a()})(void 0,(function(){var c="minute",a=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(n,e,r){var u=e.prototype;r.utc=function(m){var _={date:m,utc:!0,args:arguments};return new e(_)},u.utc=function(m){var _=r(this.toDate(),{locale:this.$L,utc:!0});return m?_.add(this.utcOffset(),c):_},u.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=u.parse;u.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),i.call(this,m)};var s=u.init;u.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else s.call(this)};var h=u.utcOffset;u.utcOffset=function(m,_){var k=this.$utils().u;if(k(m))return this.$u?0:k(this.$offset)?h.call(this):this.$offset;if(typeof m=="string"&&(m=(function(A){A===void 0&&(A="");var T=A.match(a);if(!T)return null;var O=(""+T[0]).match(o)||["-",0,0],L=O[0],B=60*+O[1]+ +O[2];return B===0?0:L==="+"?B:-B})(m))===null)return this;var M=Math.abs(m)<=16?60*m:m,j=this;if(_)return j.$offset=M,j.$u=m===0,j;if(m!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(j=this.local().add(M+z,c)).$offset=M,j.$x.$localOffset=z}else j=this.utc();return j};var f=u.format;u.format=function(m){var _=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,_)},u.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(m){return m==="s"&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var p=u.diff;u.diff=function(m,_,k){if(m&&this.$u===m.$u)return p.call(this,m,_,k);var M=this.local(),j=r(m).local();return p.call(M,j,_,k)}}}))},{}],394:[function(t,b,g){g.utils=t("./des/utils"),g.Cipher=t("./des/cipher"),g.DES=t("./des/des"),g.CBC=t("./des/cbc"),g.EDE=t("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(t,b,g){var c=t("minimalistic-assert"),a=t("inherits"),o={};function n(e){c.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var r=0;r<this.iv.length;r++)this.iv[r]=e[r]}g.instantiate=function(e){function r(h){e.call(this,h),this._cbcInit()}a(r,e);for(var u=Object.keys(o),i=0;i<u.length;i++){var s=u[i];r.prototype[s]=o[s]}return r.create=function(h){return new r(h)},r},o._cbcInit=function(){var e=new n(this.options.iv);this._cbcState=e},o._update=function(e,r,u,i){var s=this._cbcState,h=this.constructor.super_.prototype,f=s.iv;if(this.type==="encrypt"){for(var l=0;l<this.blockSize;l++)f[l]^=e[r+l];for(h._update.call(this,f,0,u,i),l=0;l<this.blockSize;l++)f[l]=u[i+l]}else{for(h._update.call(this,e,r,u,i),l=0;l<this.blockSize;l++)u[i+l]^=f[l];for(l=0;l<this.blockSize;l++)f[l]=e[r+l]}}},{inherits:440,"minimalistic-assert":453}],396:[function(t,b,g){var c=t("minimalistic-assert");function a(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}b.exports=a,a.prototype._init=function(){},a.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},a.prototype._buffer=function(o,n){for(var e=Math.min(this.buffer.length-this.bufferOff,o.length-n),r=0;r<e;r++)this.buffer[this.bufferOff+r]=o[n+r];return this.bufferOff+=e,e},a.prototype._flushBuffer=function(o,n){return this._update(this.buffer,0,o,n),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(o){var n=0,e=0,r=(this.bufferOff+o.length)/this.blockSize|0,u=new Array(r*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(o,n),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(u,e)));for(var i=o.length-(o.length-n)%this.blockSize;n<i;n+=this.blockSize)this._update(o,n,u,e),e+=this.blockSize;for(;n<o.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=o[n];return u},a.prototype._updateDecrypt=function(o){for(var n=0,e=0,r=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,u=new Array(r*this.blockSize);r>0;r--)n+=this._buffer(o,n),e+=this._flushBuffer(u,e);return n+=this._buffer(o,n),u},a.prototype.final=function(o){var n,e;return o&&(n=this.update(o)),e=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),n?n.concat(e):e},a.prototype._pad=function(o,n){if(n===0)return!1;for(;n<o.length;)o[n++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},a.prototype._unpad=function(o){return o},a.prototype._finalDecrypt=function(){c.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)}},{"minimalistic-assert":453}],397:[function(t,b,g){var c=t("minimalistic-assert"),a=t("inherits"),o=t("./utils"),n=t("./cipher");function e(){this.tmp=new Array(2),this.keys=null}function r(i){n.call(this,i);var s=new e;this._desState=s,this.deriveKeys(s,i.key)}a(r,n),b.exports=r,r.create=function(i){return new r(i)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];r.prototype.deriveKeys=function(i,s){i.keys=new Array(32),c.equal(s.length,this.blockSize,"Invalid key length");var h=o.readUInt32BE(s,0),f=o.readUInt32BE(s,4);o.pc1(h,f,i.tmp,0),h=i.tmp[0],f=i.tmp[1];for(var l=0;l<i.keys.length;l+=2){var p=u[l>>>1];h=o.r28shl(h,p),f=o.r28shl(f,p),o.pc2(h,f,i.keys,l)}},r.prototype._update=function(i,s,h,f){var l=this._desState,p=o.readUInt32BE(i,s),m=o.readUInt32BE(i,s+4);o.ip(p,m,l.tmp,0),p=l.tmp[0],m=l.tmp[1],this.type==="encrypt"?this._encrypt(l,p,m,l.tmp,0):this._decrypt(l,p,m,l.tmp,0),p=l.tmp[0],m=l.tmp[1],o.writeUInt32BE(h,p,f),o.writeUInt32BE(h,m,f+4)},r.prototype._pad=function(i,s){if(this.padding===!1)return!1;for(var h=i.length-s,f=s;f<i.length;f++)i[f]=h;return!0},r.prototype._unpad=function(i){if(this.padding===!1)return i;for(var s=i[i.length-1],h=i.length-s;h<i.length;h++)c.equal(i[h],s);return i.slice(0,i.length-s)},r.prototype._encrypt=function(i,s,h,f,l){for(var p=s,m=h,_=0;_<i.keys.length;_+=2){var k=i.keys[_],M=i.keys[_+1];o.expand(m,i.tmp,0),k^=i.tmp[0],M^=i.tmp[1];var j=o.substitute(k,M),z=m;m=(p^o.permute(j))>>>0,p=z}o.rip(m,p,f,l)},r.prototype._decrypt=function(i,s,h,f,l){for(var p=h,m=s,_=i.keys.length-2;_>=0;_-=2){var k=i.keys[_],M=i.keys[_+1];o.expand(p,i.tmp,0),k^=i.tmp[0],M^=i.tmp[1];var j=o.substitute(k,M),z=p;p=(m^o.permute(j))>>>0,m=z}o.rip(p,m,f,l)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(t,b,g){var c=t("minimalistic-assert"),a=t("inherits"),o=t("./cipher"),n=t("./des");function e(u,i){c.equal(i.length,24,"Invalid key length");var s=i.slice(0,8),h=i.slice(8,16),f=i.slice(16,24);this.ciphers=u==="encrypt"?[n.create({type:"encrypt",key:s}),n.create({type:"decrypt",key:h}),n.create({type:"encrypt",key:f})]:[n.create({type:"decrypt",key:f}),n.create({type:"encrypt",key:h}),n.create({type:"decrypt",key:s})]}function r(u){o.call(this,u);var i=new e(this.type,this.options.key);this._edeState=i}a(r,o),b.exports=r,r.create=function(u){return new r(u)},r.prototype._update=function(u,i,s,h){var f=this._edeState;f.ciphers[0]._update(u,i,s,h),f.ciphers[1]._update(s,h,s,h),f.ciphers[2]._update(s,h,s,h)},r.prototype._pad=n.prototype._pad,r.prototype._unpad=n.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(t,b,g){g.readUInt32BE=function(n,e){return(n[0+e]<<24|n[1+e]<<16|n[2+e]<<8|n[3+e])>>>0},g.writeUInt32BE=function(n,e,r){n[0+r]=e>>>24,n[1+r]=e>>>16&255,n[2+r]=e>>>8&255,n[3+r]=255&e},g.ip=function(n,e,r,u){for(var i=0,s=0,h=6;h>=0;h-=2){for(var f=0;f<=24;f+=8)i<<=1,i|=e>>>f+h&1;for(f=0;f<=24;f+=8)i<<=1,i|=n>>>f+h&1}for(h=6;h>=0;h-=2){for(f=1;f<=25;f+=8)s<<=1,s|=e>>>f+h&1;for(f=1;f<=25;f+=8)s<<=1,s|=n>>>f+h&1}r[u+0]=i>>>0,r[u+1]=s>>>0},g.rip=function(n,e,r,u){for(var i=0,s=0,h=0;h<4;h++)for(var f=24;f>=0;f-=8)i<<=1,i|=e>>>f+h&1,i<<=1,i|=n>>>f+h&1;for(h=4;h<8;h++)for(f=24;f>=0;f-=8)s<<=1,s|=e>>>f+h&1,s<<=1,s|=n>>>f+h&1;r[u+0]=i>>>0,r[u+1]=s>>>0},g.pc1=function(n,e,r,u){for(var i=0,s=0,h=7;h>=5;h--){for(var f=0;f<=24;f+=8)i<<=1,i|=e>>f+h&1;for(f=0;f<=24;f+=8)i<<=1,i|=n>>f+h&1}for(f=0;f<=24;f+=8)i<<=1,i|=e>>f+h&1;for(h=1;h<=3;h++){for(f=0;f<=24;f+=8)s<<=1,s|=e>>f+h&1;for(f=0;f<=24;f+=8)s<<=1,s|=n>>f+h&1}for(f=0;f<=24;f+=8)s<<=1,s|=n>>f+h&1;r[u+0]=i>>>0,r[u+1]=s>>>0},g.r28shl=function(n,e){return n<<e&268435455|n>>>28-e};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];g.pc2=function(n,e,r,u){for(var i=0,s=0,h=c.length>>>1,f=0;f<h;f++)i<<=1,i|=n>>>c[f]&1;for(f=h;f<c.length;f++)s<<=1,s|=e>>>c[f]&1;r[u+0]=i>>>0,r[u+1]=s>>>0},g.expand=function(n,e,r){var u=0,i=0;u=(1&n)<<5|n>>>27;for(var s=23;s>=15;s-=4)u<<=6,u|=n>>>s&63;for(s=11;s>=3;s-=4)i|=n>>>s&63,i<<=6;i|=(31&n)<<1|n>>>31,e[r+0]=u>>>0,e[r+1]=i>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];g.substitute=function(n,e){for(var r=0,u=0;u<4;u++)r<<=4,r|=a[64*u+(n>>>18-6*u&63)];for(u=0;u<4;u++)r<<=4,r|=a[256+64*u+(e>>>18-6*u&63)];return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];g.permute=function(n){for(var e=0,r=0;r<o.length;r++)e<<=1,e|=n>>>o[r]&1;return e>>>0},g.padSplit=function(n,e,r){for(var u=n.toString(2);u.length<e;)u="0"+u;for(var i=[],s=0;s<e;s+=r)i.push(u.slice(s,s+r));return i.join(" ")}},{}],400:[function(t,b,g){(function(c){(function(){var a=t("./lib/generatePrime"),o=t("./lib/primes.json"),n=t("./lib/dh"),e={binary:!0,hex:!0,base64:!0};g.DiffieHellmanGroup=g.createDiffieHellmanGroup=g.getDiffieHellman=function(r){var u=new c(o[r].prime,"hex"),i=new c(o[r].gen,"hex");return new n(u,i)},g.createDiffieHellman=g.DiffieHellman=function r(u,i,s,h){return c.isBuffer(i)||e[i]===void 0?r(u,"binary",i,s):(i=i||"binary",h=h||"binary",s=s||new c([2]),c.isBuffer(s)||(s=new c(s,h)),typeof u=="number"?new n(a(u,s),s,!0):(c.isBuffer(u)||(u=new c(u,i)),new n(u,s,!0)))}}).call(this)}).call(this,t("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(t,b,g){(function(c){(function(){var a=t("bn.js"),o=new(t("miller-rabin")),n=new a(24),e=new a(11),r=new a(10),u=new a(3),i=new a(7),s=t("./generatePrime"),h=t("randombytes");function f(k,M){return M=M||"utf8",c.isBuffer(k)||(k=new c(k,M)),this._pub=new a(k),this}function l(k,M){return M=M||"utf8",c.isBuffer(k)||(k=new c(k,M)),this._priv=new a(k),this}b.exports=m;var p={};function m(k,M,j){this.setGenerator(M),this.__prime=new a(k),this._prime=a.mont(this.__prime),this._primeLen=k.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,j?(this.setPublicKey=f,this.setPrivateKey=l):this._primeCode=8}function _(k,M){var j=new c(k.toArray());return M?j.toString(M):j}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(k,M){var j=M.toString("hex"),z=[j,k.toString(16)].join("_");if(z in p)return p[z];var A,T=0;if(k.isEven()||!s.simpleSieve||!s.fermatTest(k)||!o.test(k))return T+=1,T+=j==="02"||j==="05"?8:4,p[z]=T,T;switch(o.test(k.shrn(1))||(T+=2),j){case"02":k.mod(n).cmp(e)&&(T+=8);break;case"05":(A=k.mod(r)).cmp(u)&&A.cmp(i)&&(T+=8);break;default:T+=4}return p[z]=T,T})(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new a(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(k){var M=(k=(k=new a(k)).toRed(this._prime)).redPow(this._priv).fromRed(),j=new c(M.toArray()),z=this.getPrime();if(j.length<z.length){var A=new c(z.length-j.length);A.fill(0),j=c.concat([A,j])}return j},m.prototype.getPublicKey=function(k){return _(this._pub,k)},m.prototype.getPrivateKey=function(k){return _(this._priv,k)},m.prototype.getPrime=function(k){return _(this.__prime,k)},m.prototype.getGenerator=function(k){return _(this._gen,k)},m.prototype.setGenerator=function(k,M){return M=M||"utf8",c.isBuffer(k)||(k=new c(k,M)),this.__gen=k,this._gen=new a(k),this}}).call(this)}).call(this,t("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(t,b,g){var c=t("randombytes");b.exports=k,k.simpleSieve=m,k.fermatTest=_;var a=t("bn.js"),o=new a(24),n=new(t("miller-rabin")),e=new a(1),r=new a(2),u=new a(5),i=(new a(16),new a(8),new a(10)),s=new a(3),h=(new a(7),new a(11)),f=new a(4),l=(new a(12),null);function p(){if(l!==null)return l;var M=[];M[0]=2;for(var j=1,z=3;z<1048576;z+=2){for(var A=Math.ceil(Math.sqrt(z)),T=0;T<j&&M[T]<=A&&z%M[T]!=0;T++);j!==T&&M[T]<=A||(M[j++]=z)}return l=M,M}function m(M){for(var j=p(),z=0;z<j.length;z++)if(M.modn(j[z])===0)return M.cmpn(j[z])===0;return!0}function _(M){var j=a.mont(M);return r.toRed(j).redPow(M.subn(1)).fromRed().cmpn(1)===0}function k(M,j){if(M<16)return new a(j===2||j===5?[140,123]:[140,39]);var z,A;for(j=new a(j);;){for(z=new a(c(Math.ceil(M/8)));z.bitLength()>M;)z.ishrn(1);if(z.isEven()&&z.iadd(e),z.testn(1)||z.iadd(r),j.cmp(r)){if(!j.cmp(u))for(;z.mod(i).cmp(s);)z.iadd(f)}else for(;z.mod(o).cmp(h);)z.iadd(f);if(m(A=z.shrn(1))&&m(z)&&_(A)&&_(z)&&n.test(A)&&n.test(z))return z}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(t,b,g){b.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(t,b,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],405:[function(t,b,g){var c=g;c.version=t("../package.json").version,c.utils=t("./elliptic/utils"),c.rand=t("brorand"),c.curve=t("./elliptic/curve"),c.curves=t("./elliptic/curves"),c.ec=t("./elliptic/ec"),c.eddsa=t("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(t,b,g){var c=t("bn.js"),a=t("../utils"),o=a.getNAF,n=a.getJSF,e=a.assert;function r(i,s){this.type=i,this.p=new c(s.p,16),this.red=s.prime?c.red(s.prime):c.mont(this.p),this.zero=new c(0).toRed(this.red),this.one=new c(1).toRed(this.red),this.two=new c(2).toRed(this.red),this.n=s.n&&new c(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(i,s){this.curve=i,this.type=s,this.precomputed=null}b.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(i,s){e(i.precomputed);var h=i._getDoubles(),f=o(s,1,this._bitLength),l=(1<<h.step+1)-(h.step%2==0?2:1);l/=3;var p,m,_=[];for(p=0;p<f.length;p+=h.step){m=0;for(var k=p+h.step-1;k>=p;k--)m=(m<<1)+f[k];_.push(m)}for(var M=this.jpoint(null,null,null),j=this.jpoint(null,null,null),z=l;z>0;z--){for(p=0;p<_.length;p++)(m=_[p])===z?j=j.mixedAdd(h.points[p]):m===-z&&(j=j.mixedAdd(h.points[p].neg()));M=M.add(j)}return M.toP()},r.prototype._wnafMul=function(i,s){var h=4,f=i._getNAFPoints(h);h=f.wnd;for(var l=f.points,p=o(s,h,this._bitLength),m=this.jpoint(null,null,null),_=p.length-1;_>=0;_--){for(var k=0;_>=0&&p[_]===0;_--)k++;if(_>=0&&k++,m=m.dblp(k),_<0)break;var M=p[_];e(M!==0),m=i.type==="affine"?M>0?m.mixedAdd(l[M-1>>1]):m.mixedAdd(l[-M-1>>1].neg()):M>0?m.add(l[M-1>>1]):m.add(l[-M-1>>1].neg())}return i.type==="affine"?m.toP():m},r.prototype._wnafMulAdd=function(i,s,h,f,l){var p,m,_,k=this._wnafT1,M=this._wnafT2,j=this._wnafT3,z=0;for(p=0;p<f;p++){var A=(_=s[p])._getNAFPoints(i);k[p]=A.wnd,M[p]=A.points}for(p=f-1;p>=1;p-=2){var T=p-1,O=p;if(k[T]===1&&k[O]===1){var L=[s[T],null,null,s[O]];s[T].y.cmp(s[O].y)===0?(L[1]=s[T].add(s[O]),L[2]=s[T].toJ().mixedAdd(s[O].neg())):s[T].y.cmp(s[O].y.redNeg())===0?(L[1]=s[T].toJ().mixedAdd(s[O]),L[2]=s[T].add(s[O].neg())):(L[1]=s[T].toJ().mixedAdd(s[O]),L[2]=s[T].toJ().mixedAdd(s[O].neg()));var B=[-3,-1,-5,-7,0,7,5,1,3],S=n(h[T],h[O]);for(z=Math.max(S[0].length,z),j[T]=new Array(z),j[O]=new Array(z),m=0;m<z;m++){var D=0|S[0][m],w=0|S[1][m];j[T][m]=B[3*(D+1)+(w+1)],j[O][m]=0,M[T]=L}}else j[T]=o(h[T],k[T],this._bitLength),j[O]=o(h[O],k[O],this._bitLength),z=Math.max(j[T].length,z),z=Math.max(j[O].length,z)}var d=this.jpoint(null,null,null),v=this._wnafT4;for(p=z;p>=0;p--){for(var y=0;p>=0;){var x=!0;for(m=0;m<f;m++)v[m]=0|j[m][p],v[m]!==0&&(x=!1);if(!x)break;y++,p--}if(p>=0&&y++,d=d.dblp(y),p<0)break;for(m=0;m<f;m++){var C=v[m];C!==0&&(C>0?_=M[m][C-1>>1]:C<0&&(_=M[m][-C-1>>1].neg()),d=_.type==="affine"?d.mixedAdd(_):d.add(_))}}for(p=0;p<f;p++)M[p]=null;return l?d:d.toP()},r.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(i,s){i=a.toArray(i,s);var h=this.p.byteLength();if((i[0]===4||i[0]===6||i[0]===7)&&i.length-1==2*h)return i[0]===6?e(i[i.length-1]%2==0):i[0]===7&&e(i[i.length-1]%2==1),this.point(i.slice(1,1+h),i.slice(1+h,1+2*h));if((i[0]===2||i[0]===3)&&i.length-1===h)return this.pointFromX(i.slice(1,1+h),i[0]===3);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(i){return this.encode(i,!0)},u.prototype._encode=function(i){var s=this.curve.p.byteLength(),h=this.getX().toArray("be",s);return i?[this.getY().isEven()?2:3].concat(h):[4].concat(h,this.getY().toArray("be",s))},u.prototype.encode=function(i,s){return a.encode(this._encode(s),i)},u.prototype.precompute=function(i){if(this.precomputed)return this;var s={doubles:null,naf:null,beta:null};return s.naf=this._getNAFPoints(8),s.doubles=this._getDoubles(4,i),s.beta=this._getBeta(),this.precomputed=s,this},u.prototype._hasDoubles=function(i){if(!this.precomputed)return!1;var s=this.precomputed.doubles;return!!s&&s.points.length>=Math.ceil((i.bitLength()+1)/s.step)},u.prototype._getDoubles=function(i,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var h=[this],f=this,l=0;l<s;l+=i){for(var p=0;p<i;p++)f=f.dbl();h.push(f)}return{step:i,points:h}},u.prototype._getNAFPoints=function(i){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var s=[this],h=(1<<i)-1,f=h===1?null:this.dbl(),l=1;l<h;l++)s[l]=s[l-1].add(f);return{wnd:i,points:s}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(i){for(var s=this,h=0;h<i;h++)s=s.dbl();return s}},{"../utils":419,"bn.js":420}],407:[function(t,b,g){var c=t("../utils"),a=t("bn.js"),o=t("inherits"),n=t("./base"),e=c.assert;function r(i){this.twisted=(0|i.a)!=1,this.mOneA=this.twisted&&(0|i.a)==-1,this.extended=this.mOneA,n.call(this,"edwards",i),this.a=new a(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|i.c)==1}function u(i,s,h,f,l){n.BasePoint.call(this,i,"projective"),s===null&&h===null&&f===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(s,16),this.y=new a(h,16),this.z=f?new a(f,16):this.curve.one,this.t=l&&new a(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(r,n),b.exports=r,r.prototype._mulA=function(i){return this.mOneA?i.redNeg():this.a.redMul(i)},r.prototype._mulC=function(i){return this.oneC?i:this.c.redMul(i)},r.prototype.jpoint=function(i,s,h,f){return this.point(i,s,h,f)},r.prototype.pointFromX=function(i,s){(i=new a(i,16)).red||(i=i.toRed(this.red));var h=i.redSqr(),f=this.c2.redSub(this.a.redMul(h)),l=this.one.redSub(this.c2.redMul(this.d).redMul(h)),p=f.redMul(l.redInvm()),m=p.redSqrt();if(m.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var _=m.fromRed().isOdd();return(s&&!_||!s&&_)&&(m=m.redNeg()),this.point(i,m)},r.prototype.pointFromY=function(i,s){(i=new a(i,16)).red||(i=i.toRed(this.red));var h=i.redSqr(),f=h.redSub(this.c2),l=h.redMul(this.d).redMul(this.c2).redSub(this.a),p=f.redMul(l.redInvm());if(p.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,i)}var m=p.redSqrt();if(m.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");return m.fromRed().isOdd()!==s&&(m=m.redNeg()),this.point(m,i)},r.prototype.validate=function(i){if(i.isInfinity())return!0;i.normalize();var s=i.x.redSqr(),h=i.y.redSqr(),f=s.redMul(this.a).redAdd(h),l=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(h)));return f.cmp(l)===0},o(u,n.BasePoint),r.prototype.pointFromJSON=function(i){return u.fromJSON(this,i)},r.prototype.point=function(i,s,h,f){return new u(this,i,s,h,f)},u.fromJSON=function(i,s){return new u(i,s[0],s[1],s[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},u.prototype._extDbl=function(){var i=this.x.redSqr(),s=this.y.redSqr(),h=this.z.redSqr();h=h.redIAdd(h);var f=this.curve._mulA(i),l=this.x.redAdd(this.y).redSqr().redISub(i).redISub(s),p=f.redAdd(s),m=p.redSub(h),_=f.redSub(s),k=l.redMul(m),M=p.redMul(_),j=l.redMul(_),z=m.redMul(p);return this.curve.point(k,M,z,j)},u.prototype._projDbl=function(){var i,s,h,f,l,p,m=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),k=this.y.redSqr();if(this.curve.twisted){var M=(f=this.curve._mulA(_)).redAdd(k);this.zOne?(i=m.redSub(_).redSub(k).redMul(M.redSub(this.curve.two)),s=M.redMul(f.redSub(k)),h=M.redSqr().redSub(M).redSub(M)):(l=this.z.redSqr(),p=M.redSub(l).redISub(l),i=m.redSub(_).redISub(k).redMul(p),s=M.redMul(f.redSub(k)),h=M.redMul(p))}else f=_.redAdd(k),l=this.curve._mulC(this.z).redSqr(),p=f.redSub(l).redSub(l),i=this.curve._mulC(m.redISub(f)).redMul(p),s=this.curve._mulC(f).redMul(_.redISub(k)),h=f.redMul(p);return this.curve.point(i,s,h)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(i){var s=this.y.redSub(this.x).redMul(i.y.redSub(i.x)),h=this.y.redAdd(this.x).redMul(i.y.redAdd(i.x)),f=this.t.redMul(this.curve.dd).redMul(i.t),l=this.z.redMul(i.z.redAdd(i.z)),p=h.redSub(s),m=l.redSub(f),_=l.redAdd(f),k=h.redAdd(s),M=p.redMul(m),j=_.redMul(k),z=p.redMul(k),A=m.redMul(_);return this.curve.point(M,j,A,z)},u.prototype._projAdd=function(i){var s,h,f=this.z.redMul(i.z),l=f.redSqr(),p=this.x.redMul(i.x),m=this.y.redMul(i.y),_=this.curve.d.redMul(p).redMul(m),k=l.redSub(_),M=l.redAdd(_),j=this.x.redAdd(this.y).redMul(i.x.redAdd(i.y)).redISub(p).redISub(m),z=f.redMul(k).redMul(j);return this.curve.twisted?(s=f.redMul(M).redMul(m.redSub(this.curve._mulA(p))),h=k.redMul(M)):(s=f.redMul(M).redMul(m.redSub(p)),h=this.curve._mulC(k).redMul(M)),this.curve.point(z,s,h)},u.prototype.add=function(i){return this.isInfinity()?i:i.isInfinity()?this:this.curve.extended?this._extAdd(i):this._projAdd(i)},u.prototype.mul=function(i){return this._hasDoubles(i)?this.curve._fixedNafMul(this,i):this.curve._wnafMul(this,i)},u.prototype.mulAdd=function(i,s,h){return this.curve._wnafMulAdd(1,[this,s],[i,h],2,!1)},u.prototype.jmulAdd=function(i,s,h){return this.curve._wnafMulAdd(1,[this,s],[i,h],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var i=this.z.redInvm();return this.x=this.x.redMul(i),this.y=this.y.redMul(i),this.t&&(this.t=this.t.redMul(i)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(i){return this===i||this.getX().cmp(i.getX())===0&&this.getY().cmp(i.getY())===0},u.prototype.eqXToP=function(i){var s=i.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var h=i.clone(),f=this.curve.redN.redMul(this.z);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(f),this.x.cmp(s)===0)return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(t,b,g){var c=g;c.base=t("./base"),c.short=t("./short"),c.mont=t("./mont"),c.edwards=t("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(t,b,g){var c=t("bn.js"),a=t("inherits"),o=t("./base"),n=t("../utils");function e(u){o.call(this,"mont",u),this.a=new c(u.a,16).toRed(this.red),this.b=new c(u.b,16).toRed(this.red),this.i4=new c(4).toRed(this.red).redInvm(),this.two=new c(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function r(u,i,s){o.BasePoint.call(this,u,"projective"),i===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new c(i,16),this.z=new c(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(e,o),b.exports=e,e.prototype.validate=function(u){var i=u.normalize().x,s=i.redSqr(),h=s.redMul(i).redAdd(s.redMul(this.a)).redAdd(i);return h.redSqrt().redSqr().cmp(h)===0},a(r,o.BasePoint),e.prototype.decodePoint=function(u,i){return this.point(n.toArray(u,i),1)},e.prototype.point=function(u,i){return new r(this,u,i)},e.prototype.pointFromJSON=function(u){return r.fromJSON(this,u)},r.prototype.precompute=function(){},r.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},r.fromJSON=function(u,i){return new r(u,i[0],i[1]||u.one)},r.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},r.prototype.isInfinity=function(){return this.z.cmpn(0)===0},r.prototype.dbl=function(){var u=this.x.redAdd(this.z).redSqr(),i=this.x.redSub(this.z).redSqr(),s=u.redSub(i),h=u.redMul(i),f=s.redMul(i.redAdd(this.curve.a24.redMul(s)));return this.curve.point(h,f)},r.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},r.prototype.diffAdd=function(u,i){var s=this.x.redAdd(this.z),h=this.x.redSub(this.z),f=u.x.redAdd(u.z),l=u.x.redSub(u.z).redMul(s),p=f.redMul(h),m=i.z.redMul(l.redAdd(p).redSqr()),_=i.x.redMul(l.redISub(p).redSqr());return this.curve.point(m,_)},r.prototype.mul=function(u){for(var i=u.clone(),s=this,h=this.curve.point(null,null),f=[];i.cmpn(0)!==0;i.iushrn(1))f.push(i.andln(1));for(var l=f.length-1;l>=0;l--)f[l]===0?(s=s.diffAdd(h,this),h=h.dbl()):(h=s.diffAdd(h,this),s=s.dbl());return h},r.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},r.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},r.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},r.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},r.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(t,b,g){var c=t("../utils"),a=t("bn.js"),o=t("inherits"),n=t("./base"),e=c.assert;function r(s){n.call(this,"short",s),this.a=new a(s.a,16).toRed(this.red),this.b=new a(s.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(s,h,f,l){n.BasePoint.call(this,s,"affine"),h===null&&f===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(h,16),this.y=new a(f,16),l&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function i(s,h,f,l){n.BasePoint.call(this,s,"jacobian"),h===null&&f===null&&l===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(h,16),this.y=new a(f,16),this.z=new a(l,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(r,n),b.exports=r,r.prototype._getEndomorphism=function(s){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var h,f;if(s.beta)h=new a(s.beta,16).toRed(this.red);else{var l=this._getEndoRoots(this.p);h=(h=l[0].cmp(l[1])<0?l[0]:l[1]).toRed(this.red)}if(s.lambda)f=new a(s.lambda,16);else{var p=this._getEndoRoots(this.n);this.g.mul(p[0]).x.cmp(this.g.x.redMul(h))===0?f=p[0]:(f=p[1],e(this.g.mul(f).x.cmp(this.g.x.redMul(h))===0))}return{beta:h,lambda:f,basis:s.basis?s.basis.map((function(m){return{a:new a(m.a,16),b:new a(m.b,16)}})):this._getEndoBasis(f)}}},r.prototype._getEndoRoots=function(s){var h=s===this.p?this.red:a.mont(s),f=new a(2).toRed(h).redInvm(),l=f.redNeg(),p=new a(3).toRed(h).redNeg().redSqrt().redMul(f);return[l.redAdd(p).fromRed(),l.redSub(p).fromRed()]},r.prototype._getEndoBasis=function(s){for(var h,f,l,p,m,_,k,M,j,z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=s,T=this.n.clone(),O=new a(1),L=new a(0),B=new a(0),S=new a(1),D=0;A.cmpn(0)!==0;){var w=T.div(A);M=T.sub(w.mul(A)),j=B.sub(w.mul(O));var d=S.sub(w.mul(L));if(!l&&M.cmp(z)<0)h=k.neg(),f=O,l=M.neg(),p=j;else if(l&&++D==2)break;k=M,T=A,A=M,B=O,O=j,S=L,L=d}m=M.neg(),_=j;var v=l.sqr().add(p.sqr());return m.sqr().add(_.sqr()).cmp(v)>=0&&(m=h,_=f),l.negative&&(l=l.neg(),p=p.neg()),m.negative&&(m=m.neg(),_=_.neg()),[{a:l,b:p},{a:m,b:_}]},r.prototype._endoSplit=function(s){var h=this.endo.basis,f=h[0],l=h[1],p=l.b.mul(s).divRound(this.n),m=f.b.neg().mul(s).divRound(this.n),_=p.mul(f.a),k=m.mul(l.a),M=p.mul(f.b),j=m.mul(l.b);return{k1:s.sub(_).sub(k),k2:M.add(j).neg()}},r.prototype.pointFromX=function(s,h){(s=new a(s,16)).red||(s=s.toRed(this.red));var f=s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b),l=f.redSqrt();if(l.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var p=l.fromRed().isOdd();return(h&&!p||!h&&p)&&(l=l.redNeg()),this.point(s,l)},r.prototype.validate=function(s){if(s.inf)return!0;var h=s.x,f=s.y,l=this.a.redMul(h),p=h.redSqr().redMul(h).redIAdd(l).redIAdd(this.b);return f.redSqr().redISub(p).cmpn(0)===0},r.prototype._endoWnafMulAdd=function(s,h,f){for(var l=this._endoWnafT1,p=this._endoWnafT2,m=0;m<s.length;m++){var _=this._endoSplit(h[m]),k=s[m],M=k._getBeta();_.k1.negative&&(_.k1.ineg(),k=k.neg(!0)),_.k2.negative&&(_.k2.ineg(),M=M.neg(!0)),l[2*m]=k,l[2*m+1]=M,p[2*m]=_.k1,p[2*m+1]=_.k2}for(var j=this._wnafMulAdd(1,l,p,2*m,f),z=0;z<2*m;z++)l[z]=null,p[z]=null;return j},o(u,n.BasePoint),r.prototype.point=function(s,h,f){return new u(this,s,h,f)},r.prototype.pointFromJSON=function(s,h){return u.fromJSON(this,s,h)},u.prototype._getBeta=function(){if(this.curve.endo){var s=this.precomputed;if(s&&s.beta)return s.beta;var h=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(s){var f=this.curve,l=function(p){return f.point(p.x.redMul(f.endo.beta),p.y)};s.beta=h,h.precomputed={beta:null,naf:s.naf&&{wnd:s.naf.wnd,points:s.naf.points.map(l)},doubles:s.doubles&&{step:s.doubles.step,points:s.doubles.points.map(l)}}}return h}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(s,h,f){typeof h=="string"&&(h=JSON.parse(h));var l=s.point(h[0],h[1],f);if(!h[2])return l;function p(_){return s.point(_[0],_[1],f)}var m=h[2];return l.precomputed={beta:null,doubles:m.doubles&&{step:m.doubles.step,points:[l].concat(m.doubles.points.map(p))},naf:m.naf&&{wnd:m.naf.wnd,points:[l].concat(m.naf.points.map(p))}},l},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(s){if(this.inf)return s;if(s.inf)return this;if(this.eq(s))return this.dbl();if(this.neg().eq(s))return this.curve.point(null,null);if(this.x.cmp(s.x)===0)return this.curve.point(null,null);var h=this.y.redSub(s.y);h.cmpn(0)!==0&&(h=h.redMul(this.x.redSub(s.x).redInvm()));var f=h.redSqr().redISub(this.x).redISub(s.x),l=h.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,l)},u.prototype.dbl=function(){if(this.inf)return this;var s=this.y.redAdd(this.y);if(s.cmpn(0)===0)return this.curve.point(null,null);var h=this.curve.a,f=this.x.redSqr(),l=s.redInvm(),p=f.redAdd(f).redIAdd(f).redIAdd(h).redMul(l),m=p.redSqr().redISub(this.x.redAdd(this.x)),_=p.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,_)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(s){return s=new a(s,16),this.isInfinity()?this:this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve.endo?this.curve._endoWnafMulAdd([this],[s]):this.curve._wnafMul(this,s)},u.prototype.mulAdd=function(s,h,f){var l=[this,h],p=[s,f];return this.curve.endo?this.curve._endoWnafMulAdd(l,p):this.curve._wnafMulAdd(1,l,p,2)},u.prototype.jmulAdd=function(s,h,f){var l=[this,h],p=[s,f];return this.curve.endo?this.curve._endoWnafMulAdd(l,p,!0):this.curve._wnafMulAdd(1,l,p,2,!0)},u.prototype.eq=function(s){return this===s||this.inf===s.inf&&(this.inf||this.x.cmp(s.x)===0&&this.y.cmp(s.y)===0)},u.prototype.neg=function(s){if(this.inf)return this;var h=this.curve.point(this.x,this.y.redNeg());if(s&&this.precomputed){var f=this.precomputed,l=function(p){return p.neg()};h.precomputed={naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(l)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(l)}}}return h},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(i,n.BasePoint),r.prototype.jpoint=function(s,h,f){return new i(this,s,h,f)},i.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var s=this.z.redInvm(),h=s.redSqr(),f=this.x.redMul(h),l=this.y.redMul(h).redMul(s);return this.curve.point(f,l)},i.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},i.prototype.add=function(s){if(this.isInfinity())return s;if(s.isInfinity())return this;var h=s.z.redSqr(),f=this.z.redSqr(),l=this.x.redMul(h),p=s.x.redMul(f),m=this.y.redMul(h.redMul(s.z)),_=s.y.redMul(f.redMul(this.z)),k=l.redSub(p),M=m.redSub(_);if(k.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var j=k.redSqr(),z=j.redMul(k),A=l.redMul(j),T=M.redSqr().redIAdd(z).redISub(A).redISub(A),O=M.redMul(A.redISub(T)).redISub(m.redMul(z)),L=this.z.redMul(s.z).redMul(k);return this.curve.jpoint(T,O,L)},i.prototype.mixedAdd=function(s){if(this.isInfinity())return s.toJ();if(s.isInfinity())return this;var h=this.z.redSqr(),f=this.x,l=s.x.redMul(h),p=this.y,m=s.y.redMul(h).redMul(this.z),_=f.redSub(l),k=p.redSub(m);if(_.cmpn(0)===0)return k.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=_.redSqr(),j=M.redMul(_),z=f.redMul(M),A=k.redSqr().redIAdd(j).redISub(z).redISub(z),T=k.redMul(z.redISub(A)).redISub(p.redMul(j)),O=this.z.redMul(_);return this.curve.jpoint(A,T,O)},i.prototype.dblp=function(s){if(s===0)return this;if(this.isInfinity())return this;if(!s)return this.dbl();var h;if(this.curve.zeroA||this.curve.threeA){var f=this;for(h=0;h<s;h++)f=f.dbl();return f}var l=this.curve.a,p=this.curve.tinv,m=this.x,_=this.y,k=this.z,M=k.redSqr().redSqr(),j=_.redAdd(_);for(h=0;h<s;h++){var z=m.redSqr(),A=j.redSqr(),T=A.redSqr(),O=z.redAdd(z).redIAdd(z).redIAdd(l.redMul(M)),L=m.redMul(A),B=O.redSqr().redISub(L.redAdd(L)),S=L.redISub(B),D=O.redMul(S);D=D.redIAdd(D).redISub(T);var w=j.redMul(k);h+1<s&&(M=M.redMul(T)),m=B,k=w,j=D}return this.curve.jpoint(m,j.redMul(p),k)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},i.prototype._zeroDbl=function(){var s,h,f;if(this.zOne){var l=this.x.redSqr(),p=this.y.redSqr(),m=p.redSqr(),_=this.x.redAdd(p).redSqr().redISub(l).redISub(m);_=_.redIAdd(_);var k=l.redAdd(l).redIAdd(l),M=k.redSqr().redISub(_).redISub(_),j=m.redIAdd(m);j=(j=j.redIAdd(j)).redIAdd(j),s=M,h=k.redMul(_.redISub(M)).redISub(j),f=this.y.redAdd(this.y)}else{var z=this.x.redSqr(),A=this.y.redSqr(),T=A.redSqr(),O=this.x.redAdd(A).redSqr().redISub(z).redISub(T);O=O.redIAdd(O);var L=z.redAdd(z).redIAdd(z),B=L.redSqr(),S=T.redIAdd(T);S=(S=S.redIAdd(S)).redIAdd(S),s=B.redISub(O).redISub(O),h=L.redMul(O.redISub(s)).redISub(S),f=(f=this.y.redMul(this.z)).redIAdd(f)}return this.curve.jpoint(s,h,f)},i.prototype._threeDbl=function(){var s,h,f;if(this.zOne){var l=this.x.redSqr(),p=this.y.redSqr(),m=p.redSqr(),_=this.x.redAdd(p).redSqr().redISub(l).redISub(m);_=_.redIAdd(_);var k=l.redAdd(l).redIAdd(l).redIAdd(this.curve.a),M=k.redSqr().redISub(_).redISub(_);s=M;var j=m.redIAdd(m);j=(j=j.redIAdd(j)).redIAdd(j),h=k.redMul(_.redISub(M)).redISub(j),f=this.y.redAdd(this.y)}else{var z=this.z.redSqr(),A=this.y.redSqr(),T=this.x.redMul(A),O=this.x.redSub(z).redMul(this.x.redAdd(z));O=O.redAdd(O).redIAdd(O);var L=T.redIAdd(T),B=(L=L.redIAdd(L)).redAdd(L);s=O.redSqr().redISub(B),f=this.y.redAdd(this.z).redSqr().redISub(A).redISub(z);var S=A.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S),h=O.redMul(L.redISub(s)).redISub(S)}return this.curve.jpoint(s,h,f)},i.prototype._dbl=function(){var s=this.curve.a,h=this.x,f=this.y,l=this.z,p=l.redSqr().redSqr(),m=h.redSqr(),_=f.redSqr(),k=m.redAdd(m).redIAdd(m).redIAdd(s.redMul(p)),M=h.redAdd(h),j=(M=M.redIAdd(M)).redMul(_),z=k.redSqr().redISub(j.redAdd(j)),A=j.redISub(z),T=_.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var O=k.redMul(A).redISub(T),L=f.redAdd(f).redMul(l);return this.curve.jpoint(z,O,L)},i.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var s=this.x.redSqr(),h=this.y.redSqr(),f=this.z.redSqr(),l=h.redSqr(),p=s.redAdd(s).redIAdd(s),m=p.redSqr(),_=this.x.redAdd(h).redSqr().redISub(s).redISub(l),k=(_=(_=(_=_.redIAdd(_)).redAdd(_).redIAdd(_)).redISub(m)).redSqr(),M=l.redIAdd(l);M=(M=(M=M.redIAdd(M)).redIAdd(M)).redIAdd(M);var j=p.redIAdd(_).redSqr().redISub(m).redISub(k).redISub(M),z=h.redMul(j);z=(z=z.redIAdd(z)).redIAdd(z);var A=this.x.redMul(k).redISub(z);A=(A=A.redIAdd(A)).redIAdd(A);var T=this.y.redMul(j.redMul(M.redISub(j)).redISub(_.redMul(k)));T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var O=this.z.redAdd(_).redSqr().redISub(f).redISub(k);return this.curve.jpoint(A,T,O)},i.prototype.mul=function(s,h){return s=new a(s,h),this.curve._wnafMul(this,s)},i.prototype.eq=function(s){if(s.type==="affine")return this.eq(s.toJ());if(this===s)return!0;var h=this.z.redSqr(),f=s.z.redSqr();if(this.x.redMul(f).redISub(s.x.redMul(h)).cmpn(0)!==0)return!1;var l=h.redMul(this.z),p=f.redMul(s.z);return this.y.redMul(p).redISub(s.y.redMul(l)).cmpn(0)===0},i.prototype.eqXToP=function(s){var h=this.z.redSqr(),f=s.toRed(this.curve.red).redMul(h);if(this.x.cmp(f)===0)return!0;for(var l=s.clone(),p=this.curve.redN.redMul(h);;){if(l.iadd(this.curve.n),l.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(p),this.x.cmp(f)===0)return!0}},i.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(t,b,g){var c,a=g,o=t("hash.js"),n=t("./curve"),e=t("./utils").assert;function r(i){i.type==="short"?this.curve=new n.short(i):i.type==="edwards"?this.curve=new n.edwards(i):this.curve=new n.mont(i),this.g=this.curve.g,this.n=this.curve.n,this.hash=i.hash,e(this.g.validate(),"Invalid curve"),e(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(i,s){Object.defineProperty(a,i,{configurable:!0,enumerable:!0,get:function(){var h=new r(s);return Object.defineProperty(a,i,{configurable:!0,enumerable:!0,value:h}),h}})}a.PresetCurve=r,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{c=t("./precomputed/secp256k1")}catch{c=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(t,b,g){var c=t("bn.js"),a=t("hmac-drbg"),o=t("../utils"),n=t("../curves"),e=t("brorand"),r=o.assert,u=t("./key"),i=t("./signature");function s(h){if(!(this instanceof s))return new s(h);typeof h=="string"&&(r(Object.prototype.hasOwnProperty.call(n,h),"Unknown curve "+h),h=n[h]),h instanceof n.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}b.exports=s,s.prototype.keyPair=function(h){return new u(this,h)},s.prototype.keyFromPrivate=function(h,f){return u.fromPrivate(this,h,f)},s.prototype.keyFromPublic=function(h,f){return u.fromPublic(this,h,f)},s.prototype.genKeyPair=function(h){h||(h={});for(var f=new a({hash:this.hash,pers:h.pers,persEnc:h.persEnc||"utf8",entropy:h.entropy||e(this.hash.hmacStrength),entropyEnc:h.entropy&&h.entropyEnc||"utf8",nonce:this.n.toArray()}),l=this.n.byteLength(),p=this.n.sub(new c(2));;){var m=new c(f.generate(l));if(!(m.cmp(p)>0))return m.iaddn(1),this.keyFromPrivate(m)}},s.prototype._truncateToN=function(h,f){var l=8*h.byteLength()-this.n.bitLength();return l>0&&(h=h.ushrn(l)),!f&&h.cmp(this.n)>=0?h.sub(this.n):h},s.prototype.sign=function(h,f,l,p){typeof l=="object"&&(p=l,l=null),p||(p={}),f=this.keyFromPrivate(f,l),h=this._truncateToN(new c(h,16));for(var m=this.n.byteLength(),_=f.getPrivate().toArray("be",m),k=h.toArray("be",m),M=new a({hash:this.hash,entropy:_,nonce:k,pers:p.pers,persEnc:p.persEnc||"utf8"}),j=this.n.sub(new c(1)),z=0;;z++){var A=p.k?p.k(z):new c(M.generate(this.n.byteLength()));if(!((A=this._truncateToN(A,!0)).cmpn(1)<=0||A.cmp(j)>=0)){var T=this.g.mul(A);if(!T.isInfinity()){var O=T.getX(),L=O.umod(this.n);if(L.cmpn(0)!==0){var B=A.invm(this.n).mul(L.mul(f.getPrivate()).iadd(h));if((B=B.umod(this.n)).cmpn(0)!==0){var S=(T.getY().isOdd()?1:0)|(O.cmp(L)!==0?2:0);return p.canonical&&B.cmp(this.nh)>0&&(B=this.n.sub(B),S^=1),new i({r:L,s:B,recoveryParam:S})}}}}}},s.prototype.verify=function(h,f,l,p){h=this._truncateToN(new c(h,16)),l=this.keyFromPublic(l,p);var m=(f=new i(f,"hex")).r,_=f.s;if(m.cmpn(1)<0||m.cmp(this.n)>=0||_.cmpn(1)<0||_.cmp(this.n)>=0)return!1;var k,M=_.invm(this.n),j=M.mul(h).umod(this.n),z=M.mul(m).umod(this.n);return this.curve._maxwellTrick?!(k=this.g.jmulAdd(j,l.getPublic(),z)).isInfinity()&&k.eqXToP(m):!(k=this.g.mulAdd(j,l.getPublic(),z)).isInfinity()&&k.getX().umod(this.n).cmp(m)===0},s.prototype.recoverPubKey=function(h,f,l,p){r((3&l)===l,"The recovery param is more than two bits"),f=new i(f,p);var m=this.n,_=new c(h),k=f.r,M=f.s,j=1&l,z=l>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&z)throw new Error("Unable to find sencond key candinate");k=z?this.curve.pointFromX(k.add(this.curve.n),j):this.curve.pointFromX(k,j);var A=f.r.invm(m),T=m.sub(_).mul(A).umod(m),O=M.mul(A).umod(m);return this.g.mulAdd(T,k,O)},s.prototype.getKeyRecoveryParam=function(h,f,l,p){if((f=new i(f,p)).recoveryParam!==null)return f.recoveryParam;for(var m=0;m<4;m++){var _;try{_=this.recoverPubKey(h,f,m)}catch{continue}if(_.eq(l))return m}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(t,b,g){var c=t("bn.js"),a=t("../utils").assert;function o(n,e){this.ec=n,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}b.exports=o,o.fromPublic=function(n,e,r){return e instanceof o?e:new o(n,{pub:e,pubEnc:r})},o.fromPrivate=function(n,e,r){return e instanceof o?e:new o(n,{priv:e,privEnc:r})},o.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(n,e){return typeof n=="string"&&(e=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,n):this.pub},o.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(n,e){this.priv=new c(n,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(n,e){if(n.x||n.y)return this.ec.curve.type==="mont"?a(n.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(n.x&&n.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(n.x,n.y));this.pub=this.ec.curve.decodePoint(n,e)},o.prototype.derive=function(n){return n.validate()||a(n.validate(),"public point not validated"),n.mul(this.priv).getX()},o.prototype.sign=function(n,e,r){return this.ec.sign(n,this,e,r)},o.prototype.verify=function(n,e){return this.ec.verify(n,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(t,b,g){var c=t("bn.js"),a=t("../utils"),o=a.assert;function n(s,h){if(s instanceof n)return s;this._importDER(s,h)||(o(s.r&&s.s,"Signature without r or s"),this.r=new c(s.r,16),this.s=new c(s.s,16),s.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=s.recoveryParam)}function e(){this.place=0}function r(s,h){var f=s[h.place++];if(!(128&f))return f;var l=15&f;if(l===0||l>4)return!1;for(var p=0,m=0,_=h.place;m<l;m++,_++)p<<=8,p|=s[_],p>>>=0;return!(p<=127)&&(h.place=_,p)}function u(s){for(var h=0,f=s.length-1;!s[h]&&!(128&s[h+1])&&h<f;)h++;return h===0?s:s.slice(h)}function i(s,h){if(h<128)s.push(h);else{var f=1+(Math.log(h)/Math.LN2>>>3);for(s.push(128|f);--f;)s.push(h>>>(f<<3)&255);s.push(h)}}b.exports=n,n.prototype._importDER=function(s,h){s=a.toArray(s,h);var f=new e;if(s[f.place++]!==48)return!1;var l=r(s,f);if(l===!1||l+f.place!==s.length||s[f.place++]!==2)return!1;var p=r(s,f);if(p===!1)return!1;var m=s.slice(f.place,p+f.place);if(f.place+=p,s[f.place++]!==2)return!1;var _=r(s,f);if(_===!1||s.length!==_+f.place)return!1;var k=s.slice(f.place,_+f.place);if(m[0]===0){if(!(128&m[1]))return!1;m=m.slice(1)}if(k[0]===0){if(!(128&k[1]))return!1;k=k.slice(1)}return this.r=new c(m),this.s=new c(k),this.recoveryParam=null,!0},n.prototype.toDER=function(s){var h=this.r.toArray(),f=this.s.toArray();for(128&h[0]&&(h=[0].concat(h)),128&f[0]&&(f=[0].concat(f)),h=u(h),f=u(f);!(f[0]||128&f[1]);)f=f.slice(1);var l=[2];i(l,h.length),(l=l.concat(h)).push(2),i(l,f.length);var p=l.concat(f),m=[48];return i(m,p.length),m=m.concat(p),a.encode(m,s)}},{"../utils":419,"bn.js":420}],415:[function(t,b,g){var c=t("hash.js"),a=t("../curves"),o=t("../utils"),n=o.assert,e=o.parseBytes,r=t("./key"),u=t("./signature");function i(s){if(n(s==="ed25519","only tested with ed25519 so far"),!(this instanceof i))return new i(s);s=a[s].curve,this.curve=s,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=c.sha512}b.exports=i,i.prototype.sign=function(s,h){s=e(s);var f=this.keyFromSecret(h),l=this.hashInt(f.messagePrefix(),s),p=this.g.mul(l),m=this.encodePoint(p),_=this.hashInt(m,f.pubBytes(),s).mul(f.priv()),k=l.add(_).umod(this.curve.n);return this.makeSignature({R:p,S:k,Rencoded:m})},i.prototype.verify=function(s,h,f){s=e(s),h=this.makeSignature(h);var l=this.keyFromPublic(f),p=this.hashInt(h.Rencoded(),l.pubBytes(),s),m=this.g.mul(h.S());return h.R().add(l.pub().mul(p)).eq(m)},i.prototype.hashInt=function(){for(var s=this.hash(),h=0;h<arguments.length;h++)s.update(arguments[h]);return o.intFromLE(s.digest()).umod(this.curve.n)},i.prototype.keyFromPublic=function(s){return r.fromPublic(this,s)},i.prototype.keyFromSecret=function(s){return r.fromSecret(this,s)},i.prototype.makeSignature=function(s){return s instanceof u?s:new u(this,s)},i.prototype.encodePoint=function(s){var h=s.getY().toArray("le",this.encodingLength);return h[this.encodingLength-1]|=s.getX().isOdd()?128:0,h},i.prototype.decodePoint=function(s){var h=(s=o.parseBytes(s)).length-1,f=s.slice(0,h).concat(-129&s[h]),l=(128&s[h])!=0,p=o.intFromLE(f);return this.curve.pointFromY(p,l)},i.prototype.encodeInt=function(s){return s.toArray("le",this.encodingLength)},i.prototype.decodeInt=function(s){return o.intFromLE(s)},i.prototype.isPoint=function(s){return s instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(t,b,g){var c=t("../utils"),a=c.assert,o=c.parseBytes,n=c.cachedProperty;function e(r,u){this.eddsa=r,this._secret=o(u.secret),r.isPoint(u.pub)?this._pub=u.pub:this._pubBytes=o(u.pub)}e.fromPublic=function(r,u){return u instanceof e?u:new e(r,{pub:u})},e.fromSecret=function(r,u){return u instanceof e?u:new e(r,{secret:u})},e.prototype.secret=function(){return this._secret},n(e,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),n(e,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),n(e,"privBytes",(function(){var r=this.eddsa,u=this.hash(),i=r.encodingLength-1,s=u.slice(0,r.encodingLength);return s[0]&=248,s[i]&=127,s[i]|=64,s})),n(e,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),n(e,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),n(e,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),e.prototype.sign=function(r){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(r,this)},e.prototype.verify=function(r,u){return this.eddsa.verify(r,u,this)},e.prototype.getSecret=function(r){return a(this._secret,"KeyPair is public only"),c.encode(this.secret(),r)},e.prototype.getPublic=function(r){return c.encode(this.pubBytes(),r)},b.exports=e},{"../utils":419}],417:[function(t,b,g){var c=t("bn.js"),a=t("../utils"),o=a.assert,n=a.cachedProperty,e=a.parseBytes;function r(u,i){this.eddsa=u,typeof i!="object"&&(i=e(i)),Array.isArray(i)&&(i={R:i.slice(0,u.encodingLength),S:i.slice(u.encodingLength)}),o(i.R&&i.S,"Signature without R or S"),u.isPoint(i.R)&&(this._R=i.R),i.S instanceof c&&(this._S=i.S),this._Rencoded=Array.isArray(i.R)?i.R:i.Rencoded,this._Sencoded=Array.isArray(i.S)?i.S:i.Sencoded}n(r,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),n(r,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),n(r,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),n(r,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},b.exports=r},{"../utils":419,"bn.js":420}],418:[function(t,b,g){b.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(t,b,g){var c=g,a=t("bn.js"),o=t("minimalistic-assert"),n=t("minimalistic-crypto-utils");c.assert=o,c.toArray=n.toArray,c.zero2=n.zero2,c.toHex=n.toHex,c.encode=n.encode,c.getNAF=function(e,r,u){var i=new Array(Math.max(e.bitLength(),u)+1);i.fill(0);for(var s=1<<r+1,h=e.clone(),f=0;f<i.length;f++){var l,p=h.andln(s-1);h.isOdd()?(l=p>(s>>1)-1?(s>>1)-p:p,h.isubn(l)):l=0,i[f]=l,h.iushrn(1)}return i},c.getJSF=function(e,r){var u=[[],[]];e=e.clone(),r=r.clone();for(var i,s=0,h=0;e.cmpn(-s)>0||r.cmpn(-h)>0;){var f,l,p=e.andln(3)+s&3,m=r.andln(3)+h&3;p===3&&(p=-1),m===3&&(m=-1),f=(1&p)==0?0:(i=e.andln(7)+s&7)!==3&&i!==5||m!==2?p:-p,u[0].push(f),l=(1&m)==0?0:(i=r.andln(7)+h&7)!==3&&i!==5||p!==2?m:-m,u[1].push(l),2*s===f+1&&(s=1-s),2*h===l+1&&(h=1-h),e.iushrn(1),r.iushrn(1)}return u},c.cachedProperty=function(e,r,u){var i="_"+r;e.prototype[r]=function(){return this[i]!==void 0?this[i]:this[i]=u.call(this)}},c.parseBytes=function(e){return typeof e=="string"?c.toArray(e,"hex"):e},c.intFromLE=function(e){return new a(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(t,b,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],421:[function(t,b,g){b.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(t,b,g){var c=Object.create||function(A){var T=function(){};return T.prototype=A,new T},a=Object.keys||function(A){var T=[];for(var O in A)Object.prototype.hasOwnProperty.call(A,O)&&T.push(O);return O},o=Function.prototype.bind||function(A){var T=this;return function(){return T.apply(A,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}b.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0;var e,r=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),e=u.x===0}catch{e=!1}function i(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}function s(A,T,O){if(T)A.call(O);else for(var L=A.length,B=z(A,L),S=0;S<L;++S)B[S].call(O)}function h(A,T,O,L){if(T)A.call(O,L);else for(var B=A.length,S=z(A,B),D=0;D<B;++D)S[D].call(O,L)}function f(A,T,O,L,B){if(T)A.call(O,L,B);else for(var S=A.length,D=z(A,S),w=0;w<S;++w)D[w].call(O,L,B)}function l(A,T,O,L,B,S){if(T)A.call(O,L,B,S);else for(var D=A.length,w=z(A,D),d=0;d<D;++d)w[d].call(O,L,B,S)}function p(A,T,O,L){if(T)A.apply(O,L);else for(var B=A.length,S=z(A,B),D=0;D<B;++D)S[D].apply(O,L)}function m(A,T,O,L){var B,S,D;if(typeof O!="function")throw new TypeError('"listener" argument must be a function');if((S=A._events)?(S.newListener&&(A.emit("newListener",T,O.listener?O.listener:O),S=A._events),D=S[T]):(S=A._events=c(null),A._eventsCount=0),D){if(typeof D=="function"?D=S[T]=L?[O,D]:[D,O]:L?D.unshift(O):D.push(O),!D.warned&&(B=i(A))&&B>0&&D.length>B){D.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+D.length+' "'+String(T)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');w.name="MaxListenersExceededWarning",w.emitter=A,w.type=T,w.count=D.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",w.name,w.message)}}else D=S[T]=O,++A._eventsCount;return A}function _(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var A=new Array(arguments.length),T=0;T<A.length;++T)A[T]=arguments[T];this.listener.apply(this.target,A)}}function k(A,T,O){var L={fired:!1,wrapFn:void 0,target:A,type:T,listener:O},B=o.call(_,L);return B.listener=O,L.wrapFn=B,B}function M(A,T,O){var L=A._events;if(!L)return[];var B=L[T];return B?typeof B=="function"?O?[B.listener||B]:[B]:O?(function(S){for(var D=new Array(S.length),w=0;w<D.length;++w)D[w]=S[w].listener||S[w];return D})(B):z(B,B.length):[]}function j(A){var T=this._events;if(T){var O=T[A];if(typeof O=="function")return 1;if(O)return O.length}return 0}function z(A,T){for(var O=new Array(T),L=0;L<T;++L)O[L]=A[L];return O}e?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(A){if(typeof A!="number"||A<0||A!=A)throw new TypeError('"defaultMaxListeners" must be a positive number');r=A}}):n.defaultMaxListeners=r,n.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||isNaN(A))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=A,this},n.prototype.getMaxListeners=function(){return i(this)},n.prototype.emit=function(A){var T,O,L,B,S,D,w=A==="error";if(D=this._events)w=w&&D.error==null;else if(!w)return!1;if(w){if(arguments.length>1&&(T=arguments[1]),T instanceof Error)throw T;var d=new Error('Unhandled "error" event. ('+T+")");throw d.context=T,d}if(!(O=D[A]))return!1;var v=typeof O=="function";switch(L=arguments.length){case 1:s(O,v,this);break;case 2:h(O,v,this,arguments[1]);break;case 3:f(O,v,this,arguments[1],arguments[2]);break;case 4:l(O,v,this,arguments[1],arguments[2],arguments[3]);break;default:for(B=new Array(L-1),S=1;S<L;S++)B[S-1]=arguments[S];p(O,v,this,B)}return!0},n.prototype.addListener=function(A,T){return m(this,A,T,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(A,T){return m(this,A,T,!0)},n.prototype.once=function(A,T){if(typeof T!="function")throw new TypeError('"listener" argument must be a function');return this.on(A,k(this,A,T)),this},n.prototype.prependOnceListener=function(A,T){if(typeof T!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(A,k(this,A,T)),this},n.prototype.removeListener=function(A,T){var O,L,B,S,D;if(typeof T!="function")throw new TypeError('"listener" argument must be a function');if(!(L=this._events))return this;if(!(O=L[A]))return this;if(O===T||O.listener===T)--this._eventsCount==0?this._events=c(null):(delete L[A],L.removeListener&&this.emit("removeListener",A,O.listener||T));else if(typeof O!="function"){for(B=-1,S=O.length-1;S>=0;S--)if(O[S]===T||O[S].listener===T){D=O[S].listener,B=S;break}if(B<0)return this;B===0?O.shift():(function(w,d){for(var v=d,y=v+1,x=w.length;y<x;v+=1,y+=1)w[v]=w[y];w.pop()})(O,B),O.length===1&&(L[A]=O[0]),L.removeListener&&this.emit("removeListener",A,D||T)}return this},n.prototype.removeAllListeners=function(A){var T,O,L;if(!(O=this._events))return this;if(!O.removeListener)return arguments.length===0?(this._events=c(null),this._eventsCount=0):O[A]&&(--this._eventsCount==0?this._events=c(null):delete O[A]),this;if(arguments.length===0){var B,S=a(O);for(L=0;L<S.length;++L)(B=S[L])!=="removeListener"&&this.removeAllListeners(B);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if(typeof(T=O[A])=="function")this.removeListener(A,T);else if(T)for(L=T.length-1;L>=0;L--)this.removeListener(A,T[L]);return this},n.prototype.listeners=function(A){return M(this,A,!0)},n.prototype.rawListeners=function(A){return M(this,A,!1)},n.listenerCount=function(A,T){return typeof A.listenerCount=="function"?A.listenerCount(T):j.call(A,T)},n.prototype.listenerCount=j,n.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("md5.js");b.exports=function(o,n,e,r){if(c.isBuffer(o)||(o=c.from(o,"binary")),n&&(c.isBuffer(n)||(n=c.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var u=e/8,i=c.alloc(u),s=c.alloc(r||0),h=c.alloc(0);u>0||r>0;){var f=new a;f.update(h),f.update(o),n&&f.update(n),h=f.digest();var l=0;if(u>0){var p=i.length-u;l=Math.min(u,h.length),h.copy(i,p,0,l),u-=l}if(l<h.length&&r>0){var m=s.length-r,_=Math.min(r,h.length-l);h.copy(s,m,l,l+_),r-=_}}return h.fill(0),{key:i,iv:s}}},{"md5.js":450,"safe-buffer":494}],424:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvParserStream=g.ParserOptions=g.parseFile=g.parseStream=g.parseString=g.parse=g.FormatterOptions=g.CsvFormatterStream=g.writeToPath=g.writeToString=g.writeToBuffer=g.writeToStream=g.write=g.format=void 0;var c=t("@fast-csv/format");Object.defineProperty(g,"format",{enumerable:!0,get:function(){return c.format}}),Object.defineProperty(g,"write",{enumerable:!0,get:function(){return c.write}}),Object.defineProperty(g,"writeToStream",{enumerable:!0,get:function(){return c.writeToStream}}),Object.defineProperty(g,"writeToBuffer",{enumerable:!0,get:function(){return c.writeToBuffer}}),Object.defineProperty(g,"writeToString",{enumerable:!0,get:function(){return c.writeToString}}),Object.defineProperty(g,"writeToPath",{enumerable:!0,get:function(){return c.writeToPath}}),Object.defineProperty(g,"CsvFormatterStream",{enumerable:!0,get:function(){return c.CsvFormatterStream}}),Object.defineProperty(g,"FormatterOptions",{enumerable:!0,get:function(){return c.FormatterOptions}});var a=t("@fast-csv/parse");Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(g,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(g,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(g,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(g,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(g,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("readable-stream").Transform;function o(n){a.call(this),this._block=c.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(o,a),o.prototype._transform=function(n,e,r){var u=null;try{this.update(n,e)}catch(i){u=i}r(u)},o.prototype._flush=function(n){var e=null;try{this.push(this.digest())}catch(r){e=r}n(e)},o.prototype.update=function(n,e){if((function(f,l){if(!c.isBuffer(f)&&typeof f!="string")throw new TypeError(l+" must be a string or a buffer")})(n,"Data"),this._finalized)throw new Error("Digest already called");c.isBuffer(n)||(n=c.from(n,e));for(var r=this._block,u=0;this._blockOffset+n.length-u>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=n[u++];this._update(),this._blockOffset=0}for(;u<n.length;)r[this._blockOffset++]=n[u++];for(var s=0,h=8*n.length;h>0;++s)this._length[s]+=h,(h=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*h);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();n!==void 0&&(e=e.toString(n)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},b.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(t,b,g){var c=g;c.utils=t("./hash/utils"),c.common=t("./hash/common"),c.sha=t("./hash/sha"),c.ripemd=t("./hash/ripemd"),c.hmac=t("./hash/hmac"),c.sha1=c.sha.sha1,c.sha256=c.sha.sha256,c.sha224=c.sha.sha224,c.sha384=c.sha.sha384,c.sha512=c.sha.sha512,c.ripemd160=c.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(t,b,g){var c=t("./utils"),a=t("minimalistic-assert");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}g.BlockHash=o,o.prototype.update=function(n,e){if(n=c.toArray(n,e),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){var r=(n=this.pending).length%this._delta8;this.pending=n.slice(n.length-r,n.length),this.pending.length===0&&(this.pending=null),n=c.join32(n,0,n.length-r,this.endian);for(var u=0;u<n.length;u+=this._delta32)this._update(n,u,u+this._delta32)}return this},o.prototype.digest=function(n){return this.update(this._pad()),a(this.pending===null),this._digest(n)},o.prototype._pad=function(){var n=this.pendingTotal,e=this._delta8,r=e-(n+this.padLength)%e,u=new Array(r+this.padLength);u[0]=128;for(var i=1;i<r;i++)u[i]=0;if(n<<=3,this.endian==="big"){for(var s=8;s<this.padLength;s++)u[i++]=0;u[i++]=0,u[i++]=0,u[i++]=0,u[i++]=0,u[i++]=n>>>24&255,u[i++]=n>>>16&255,u[i++]=n>>>8&255,u[i++]=255&n}else for(u[i++]=255&n,u[i++]=n>>>8&255,u[i++]=n>>>16&255,u[i++]=n>>>24&255,u[i++]=0,u[i++]=0,u[i++]=0,u[i++]=0,s=8;s<this.padLength;s++)u[i++]=0;return u}},{"./utils":437,"minimalistic-assert":453}],428:[function(t,b,g){var c=t("./utils"),a=t("minimalistic-assert");function o(n,e,r){if(!(this instanceof o))return new o(n,e,r);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(c.toArray(e,r))}b.exports=o,o.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),a(n.length<=this.blockSize);for(var e=n.length;e<this.blockSize;e++)n.push(0);for(e=0;e<n.length;e++)n[e]^=54;for(this.inner=new this.Hash().update(n),e=0;e<n.length;e++)n[e]^=106;this.outer=new this.Hash().update(n)},o.prototype.update=function(n,e){return this.inner.update(n,e),this},o.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)}},{"./utils":437,"minimalistic-assert":453}],429:[function(t,b,g){var c=t("./utils"),a=t("./common"),o=c.rotl32,n=c.sum32,e=c.sum32_3,r=c.sum32_4,u=a.BlockHash;function i(){if(!(this instanceof i))return new i;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(k,M,j,z){return k<=15?M^j^z:k<=31?M&j|~M&z:k<=47?(M|~j)^z:k<=63?M&z|j&~z:M^(j|~z)}function h(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function f(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}c.inherits(i,u),g.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(k,M){for(var j=this.h[0],z=this.h[1],A=this.h[2],T=this.h[3],O=this.h[4],L=j,B=z,S=A,D=T,w=O,d=0;d<80;d++){var v=n(o(r(j,s(d,z,A,T),k[l[d]+M],h(d)),m[d]),O);j=O,O=T,T=o(A,10),A=z,z=v,v=n(o(r(L,s(79-d,B,S,D),k[p[d]+M],f(d)),_[d]),w),L=w,w=D,D=o(S,10),S=B,B=v}v=e(this.h[1],A,D),this.h[1]=e(this.h[2],T,w),this.h[2]=e(this.h[3],O,L),this.h[3]=e(this.h[4],j,B),this.h[4]=e(this.h[0],z,S),this.h[0]=v},i.prototype._digest=function(k){return k==="hex"?c.toHex32(this.h,"little"):c.split32(this.h,"little")};var l=[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],p=[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],m=[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],_=[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]},{"./common":427,"./utils":437}],430:[function(t,b,g){g.sha1=t("./sha/1"),g.sha224=t("./sha/224"),g.sha256=t("./sha/256"),g.sha384=t("./sha/384"),g.sha512=t("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(t,b,g){var c=t("../utils"),a=t("../common"),o=t("./common"),n=c.rotl32,e=c.sum32,r=c.sum32_5,u=o.ft_1,i=a.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;i.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}c.inherits(h,i),b.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(f,l){for(var p=this.W,m=0;m<16;m++)p[m]=f[l+m];for(;m<p.length;m++)p[m]=n(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);var _=this.h[0],k=this.h[1],M=this.h[2],j=this.h[3],z=this.h[4];for(m=0;m<p.length;m++){var A=~~(m/20),T=r(n(_,5),u(A,k,M,j),z,p[m],s[A]);z=j,j=M,M=n(k,30),k=_,_=T}this.h[0]=e(this.h[0],_),this.h[1]=e(this.h[1],k),this.h[2]=e(this.h[2],M),this.h[3]=e(this.h[3],j),this.h[4]=e(this.h[4],z)},h.prototype._digest=function(f){return f==="hex"?c.toHex32(this.h,"big"):c.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(t,b,g){var c=t("../utils"),a=t("./256");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}c.inherits(o,a),b.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(n){return n==="hex"?c.toHex32(this.h.slice(0,7),"big"):c.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(t,b,g){var c=t("../utils"),a=t("../common"),o=t("./common"),n=t("minimalistic-assert"),e=c.sum32,r=c.sum32_4,u=c.sum32_5,i=o.ch32,s=o.maj32,h=o.s0_256,f=o.s1_256,l=o.g0_256,p=o.g1_256,m=a.BlockHash,_=[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 k(){if(!(this instanceof k))return new k;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}c.inherits(k,m),b.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(M,j){for(var z=this.W,A=0;A<16;A++)z[A]=M[j+A];for(;A<z.length;A++)z[A]=r(p(z[A-2]),z[A-7],l(z[A-15]),z[A-16]);var T=this.h[0],O=this.h[1],L=this.h[2],B=this.h[3],S=this.h[4],D=this.h[5],w=this.h[6],d=this.h[7];for(n(this.k.length===z.length),A=0;A<z.length;A++){var v=u(d,f(S),i(S,D,w),this.k[A],z[A]),y=e(h(T),s(T,O,L));d=w,w=D,D=S,S=e(B,v),B=L,L=O,O=T,T=e(v,y)}this.h[0]=e(this.h[0],T),this.h[1]=e(this.h[1],O),this.h[2]=e(this.h[2],L),this.h[3]=e(this.h[3],B),this.h[4]=e(this.h[4],S),this.h[5]=e(this.h[5],D),this.h[6]=e(this.h[6],w),this.h[7]=e(this.h[7],d)},k.prototype._digest=function(M){return M==="hex"?c.toHex32(this.h,"big"):c.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(t,b,g){var c=t("../utils"),a=t("./512");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}c.inherits(o,a),b.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(n){return n==="hex"?c.toHex32(this.h.slice(0,12),"big"):c.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(t,b,g){var c=t("../utils"),a=t("../common"),o=t("minimalistic-assert"),n=c.rotr64_hi,e=c.rotr64_lo,r=c.shr64_hi,u=c.shr64_lo,i=c.sum64,s=c.sum64_hi,h=c.sum64_lo,f=c.sum64_4_hi,l=c.sum64_4_lo,p=c.sum64_5_hi,m=c.sum64_5_lo,_=a.BlockHash,k=[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 M(){if(!(this instanceof M))return new M;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=new Array(160)}function j(y,x,C,N,R){var $=y&C^~y&R;return $<0&&($+=4294967296),$}function z(y,x,C,N,R,$){var V=x&N^~x&$;return V<0&&(V+=4294967296),V}function A(y,x,C,N,R){var $=y&C^y&R^C&R;return $<0&&($+=4294967296),$}function T(y,x,C,N,R,$){var V=x&N^x&$^N&$;return V<0&&(V+=4294967296),V}function O(y,x){var C=n(y,x,28)^n(x,y,2)^n(x,y,7);return C<0&&(C+=4294967296),C}function L(y,x){var C=e(y,x,28)^e(x,y,2)^e(x,y,7);return C<0&&(C+=4294967296),C}function B(y,x){var C=n(y,x,14)^n(y,x,18)^n(x,y,9);return C<0&&(C+=4294967296),C}function S(y,x){var C=e(y,x,14)^e(y,x,18)^e(x,y,9);return C<0&&(C+=4294967296),C}function D(y,x){var C=n(y,x,1)^n(y,x,8)^r(y,x,7);return C<0&&(C+=4294967296),C}function w(y,x){var C=e(y,x,1)^e(y,x,8)^u(y,x,7);return C<0&&(C+=4294967296),C}function d(y,x){var C=n(y,x,19)^n(x,y,29)^r(y,x,6);return C<0&&(C+=4294967296),C}function v(y,x){var C=e(y,x,19)^e(x,y,29)^u(y,x,6);return C<0&&(C+=4294967296),C}c.inherits(M,_),b.exports=M,M.blockSize=1024,M.outSize=512,M.hmacStrength=192,M.padLength=128,M.prototype._prepareBlock=function(y,x){for(var C=this.W,N=0;N<32;N++)C[N]=y[x+N];for(;N<C.length;N+=2){var R=d(C[N-4],C[N-3]),$=v(C[N-4],C[N-3]),V=C[N-14],X=C[N-13],P=D(C[N-30],C[N-29]),q=w(C[N-30],C[N-29]),I=C[N-32],F=C[N-31];C[N]=f(R,$,V,X,P,q,I,F),C[N+1]=l(R,$,V,X,P,q,I,F)}},M.prototype._update=function(y,x){this._prepareBlock(y,x);var C=this.W,N=this.h[0],R=this.h[1],$=this.h[2],V=this.h[3],X=this.h[4],P=this.h[5],q=this.h[6],I=this.h[7],F=this.h[8],H=this.h[9],W=this.h[10],J=this.h[11],Y=this.h[12],K=this.h[13],et=this.h[14],nt=this.h[15];o(this.k.length===C.length);for(var G=0;G<C.length;G+=2){var tt=et,Q=nt,st=B(F,H),it=S(F,H),ot=j(F,H,W,J,Y),ct=z(F,H,W,J,Y,K),ht=this.k[G],bt=this.k[G+1],kt=C[G],St=C[G+1],wt=p(tt,Q,st,it,ot,ct,ht,bt,kt,St),Nt=m(tt,Q,st,it,ot,ct,ht,bt,kt,St);tt=O(N,R),Q=L(N,R),st=A(N,R,$,V,X),it=T(N,R,$,V,X,P);var Ft=s(tt,Q,st,it),It=h(tt,Q,st,it);et=Y,nt=K,Y=W,K=J,W=F,J=H,F=s(q,I,wt,Nt),H=h(I,I,wt,Nt),q=X,I=P,X=$,P=V,$=N,V=R,N=s(wt,Nt,Ft,It),R=h(wt,Nt,Ft,It)}i(this.h,0,N,R),i(this.h,2,$,V),i(this.h,4,X,P),i(this.h,6,q,I),i(this.h,8,F,H),i(this.h,10,W,J),i(this.h,12,Y,K),i(this.h,14,et,nt)},M.prototype._digest=function(y){return y==="hex"?c.toHex32(this.h,"big"):c.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(t,b,g){var c=t("../utils").rotr32;function a(e,r,u){return e&r^~e&u}function o(e,r,u){return e&r^e&u^r&u}function n(e,r,u){return e^r^u}g.ft_1=function(e,r,u,i){return e===0?a(r,u,i):e===1||e===3?n(r,u,i):e===2?o(r,u,i):void 0},g.ch32=a,g.maj32=o,g.p32=n,g.s0_256=function(e){return c(e,2)^c(e,13)^c(e,22)},g.s1_256=function(e){return c(e,6)^c(e,11)^c(e,25)},g.g0_256=function(e){return c(e,7)^c(e,18)^e>>>3},g.g1_256=function(e){return c(e,17)^c(e,19)^e>>>10}},{"../utils":437}],437:[function(t,b,g){var c=t("minimalistic-assert"),a=t("inherits");function o(u,i){return(64512&u.charCodeAt(i))==55296&&!(i<0||i+1>=u.length)&&(64512&u.charCodeAt(i+1))==56320}function n(u){return(u>>>24|u>>>8&65280|u<<8&16711680|(255&u)<<24)>>>0}function e(u){return u.length===1?"0"+u:u}function r(u){return u.length===7?"0"+u:u.length===6?"00"+u:u.length===5?"000"+u:u.length===4?"0000"+u:u.length===3?"00000"+u:u.length===2?"000000"+u:u.length===1?"0000000"+u:u}g.inherits=a,g.toArray=function(u,i){if(Array.isArray(u))return u.slice();if(!u)return[];var s=[];if(typeof u=="string")if(i){if(i==="hex")for((u=u.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(u="0"+u),f=0;f<u.length;f+=2)s.push(parseInt(u[f]+u[f+1],16))}else for(var h=0,f=0;f<u.length;f++){var l=u.charCodeAt(f);l<128?s[h++]=l:l<2048?(s[h++]=l>>6|192,s[h++]=63&l|128):o(u,f)?(l=65536+((1023&l)<<10)+(1023&u.charCodeAt(++f)),s[h++]=l>>18|240,s[h++]=l>>12&63|128,s[h++]=l>>6&63|128,s[h++]=63&l|128):(s[h++]=l>>12|224,s[h++]=l>>6&63|128,s[h++]=63&l|128)}else for(f=0;f<u.length;f++)s[f]=0|u[f];return s},g.toHex=function(u){for(var i="",s=0;s<u.length;s++)i+=e(u[s].toString(16));return i},g.htonl=n,g.toHex32=function(u,i){for(var s="",h=0;h<u.length;h++){var f=u[h];i==="little"&&(f=n(f)),s+=r(f.toString(16))}return s},g.zero2=e,g.zero8=r,g.join32=function(u,i,s,h){var f=s-i;c(f%4==0);for(var l=new Array(f/4),p=0,m=i;p<l.length;p++,m+=4){var _;_=h==="big"?u[m]<<24|u[m+1]<<16|u[m+2]<<8|u[m+3]:u[m+3]<<24|u[m+2]<<16|u[m+1]<<8|u[m],l[p]=_>>>0}return l},g.split32=function(u,i){for(var s=new Array(4*u.length),h=0,f=0;h<u.length;h++,f+=4){var l=u[h];i==="big"?(s[f]=l>>>24,s[f+1]=l>>>16&255,s[f+2]=l>>>8&255,s[f+3]=255&l):(s[f+3]=l>>>24,s[f+2]=l>>>16&255,s[f+1]=l>>>8&255,s[f]=255&l)}return s},g.rotr32=function(u,i){return u>>>i|u<<32-i},g.rotl32=function(u,i){return u<<i|u>>>32-i},g.sum32=function(u,i){return u+i>>>0},g.sum32_3=function(u,i,s){return u+i+s>>>0},g.sum32_4=function(u,i,s,h){return u+i+s+h>>>0},g.sum32_5=function(u,i,s,h,f){return u+i+s+h+f>>>0},g.sum64=function(u,i,s,h){var f=u[i],l=h+u[i+1]>>>0,p=(l<h?1:0)+s+f;u[i]=p>>>0,u[i+1]=l},g.sum64_hi=function(u,i,s,h){return(i+h>>>0<i?1:0)+u+s>>>0},g.sum64_lo=function(u,i,s,h){return i+h>>>0},g.sum64_4_hi=function(u,i,s,h,f,l,p,m){var _=0,k=i;return _+=(k=k+h>>>0)<i?1:0,_+=(k=k+l>>>0)<l?1:0,u+s+f+p+(_+=(k=k+m>>>0)<m?1:0)>>>0},g.sum64_4_lo=function(u,i,s,h,f,l,p,m){return i+h+l+m>>>0},g.sum64_5_hi=function(u,i,s,h,f,l,p,m,_,k){var M=0,j=i;return M+=(j=j+h>>>0)<i?1:0,M+=(j=j+l>>>0)<l?1:0,M+=(j=j+m>>>0)<m?1:0,u+s+f+p+_+(M+=(j=j+k>>>0)<k?1:0)>>>0},g.sum64_5_lo=function(u,i,s,h,f,l,p,m,_,k){return i+h+l+m+k>>>0},g.rotr64_hi=function(u,i,s){return(i<<32-s|u>>>s)>>>0},g.rotr64_lo=function(u,i,s){return(u<<32-s|i>>>s)>>>0},g.shr64_hi=function(u,i,s){return u>>>s},g.shr64_lo=function(u,i,s){return(u<<32-s|i>>>s)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(t,b,g){var c=t("hash.js"),a=t("minimalistic-crypto-utils"),o=t("minimalistic-assert");function n(e){if(!(this instanceof n))return new n(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var r=a.toArray(e.entropy,e.entropyEnc||"hex"),u=a.toArray(e.nonce,e.nonceEnc||"hex"),i=a.toArray(e.pers,e.persEnc||"hex");o(r.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(r,u,i)}b.exports=n,n.prototype._init=function(e,r,u){var i=e.concat(r).concat(u);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new c.hmac(this.hash,this.K)},n.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(e,r,u,i){typeof r!="string"&&(i=u,u=r,r=null),e=a.toArray(e,r),u=a.toArray(u,i),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(u||[])),this._reseed=1},n.prototype.generate=function(e,r,u,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=u,u=r,r=null),u&&(u=a.toArray(u,i||"hex"),this._update(u));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var h=s.slice(0,e);return this._update(u),this._reseed++,a.encode(h,r)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(t,b,g){g.read=function(c,a,o,n,e){var r,u,i=8*e-n-1,s=(1<<i)-1,h=s>>1,f=-7,l=o?e-1:0,p=o?-1:1,m=c[a+l];for(l+=p,r=m&(1<<-f)-1,m>>=-f,f+=i;f>0;r=256*r+c[a+l],l+=p,f-=8);for(u=r&(1<<-f)-1,r>>=-f,f+=n;f>0;u=256*u+c[a+l],l+=p,f-=8);if(r===0)r=1-h;else{if(r===s)return u?NaN:1/0*(m?-1:1);u+=Math.pow(2,n),r-=h}return(m?-1:1)*u*Math.pow(2,r-n)},g.write=function(c,a,o,n,e,r){var u,i,s,h=8*r-e-1,f=(1<<h)-1,l=f>>1,p=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:r-1,_=n?1:-1,k=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(i=isNaN(a)?1:0,u=f):(u=Math.floor(Math.log(a)/Math.LN2),a*(s=Math.pow(2,-u))<1&&(u--,s*=2),(a+=u+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(u++,s/=2),u+l>=f?(i=0,u=f):u+l>=1?(i=(a*s-1)*Math.pow(2,e),u+=l):(i=a*Math.pow(2,l-1)*Math.pow(2,e),u=0));e>=8;c[o+m]=255&i,m+=_,i/=256,e-=8);for(u=u<<e|i,h+=e;h>0;c[o+m]=255&u,m+=_,u/=256,h-=8);c[o+m-_]|=128*k}},{}],440:[function(t,b,g){typeof Object.create=="function"?b.exports=function(c,a){a&&(c.super_=a,c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}))}:b.exports=function(c,a){if(a){c.super_=a;var o=function(){};o.prototype=a.prototype,c.prototype=new o,c.prototype.constructor=c}}},{}],441:[function(t,b,g){(function(c,a,o,n,e,r,u,i){(function(){(function(s){typeof g=="object"&&b!==void 0?b.exports=s():(typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:this).JSZip=s()})((function(){return(function s(h,f,l){function p(k,M){if(!f[k]){if(!h[k]){var j=typeof t=="function"&&t;if(!M&&j)return j(k,!0);if(m)return m(k,!0);var z=new Error("Cannot find module '"+k+"'");throw z.code="MODULE_NOT_FOUND",z}var A=f[k]={exports:{}};h[k][0].call(A.exports,(function(T){return p(h[k][1][T]||T)}),A,A.exports,s,h,f,l)}return f[k].exports}for(var m=typeof t=="function"&&t,_=0;_<l.length;_++)p(l[_]);return p})({1:[function(s,h,f){var l=s("./utils"),p=s("./support"),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(_){for(var k,M,j,z,A,T,O,L=[],B=0,S=_.length,D=S,w=l.getTypeOf(_)!=="string";B<_.length;)D=S-B,j=w?(k=_[B++],M=B<S?_[B++]:0,B<S?_[B++]:0):(k=_.charCodeAt(B++),M=B<S?_.charCodeAt(B++):0,B<S?_.charCodeAt(B++):0),z=k>>2,A=(3&k)<<4|M>>4,T=1<D?(15&M)<<2|j>>6:64,O=2<D?63&j:64,L.push(m.charAt(z)+m.charAt(A)+m.charAt(T)+m.charAt(O));return L.join("")},f.decode=function(_){var k,M,j,z,A,T,O=0,L=0,B="data:";if(_.substr(0,B.length)===B)throw new Error("Invalid base64 input, it looks like a data url.");var S,D=3*(_=_.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(_.charAt(_.length-1)===m.charAt(64)&&D--,_.charAt(_.length-2)===m.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(S=p.uint8array?new Uint8Array(0|D):new Array(0|D);O<_.length;)k=m.indexOf(_.charAt(O++))<<2|(z=m.indexOf(_.charAt(O++)))>>4,M=(15&z)<<4|(A=m.indexOf(_.charAt(O++)))>>2,j=(3&A)<<6|(T=m.indexOf(_.charAt(O++))),S[L++]=k,A!==64&&(S[L++]=M),T!==64&&(S[L++]=j);return S}},{"./support":30,"./utils":32}],2:[function(s,h,f){var l=s("./external"),p=s("./stream/DataWorker"),m=s("./stream/Crc32Probe"),_=s("./stream/DataLengthProbe");function k(M,j,z,A,T){this.compressedSize=M,this.uncompressedSize=j,this.crc32=z,this.compression=A,this.compressedContent=T}k.prototype={getContentWorker:function(){var M=new p(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new _("data_length")),j=this;return M.on("end",(function(){if(this.streamInfo.data_length!==j.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),M},getCompressedWorker:function(){return new p(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},k.createWorkerFrom=function(M,j,z){return M.pipe(new m).pipe(new _("uncompressedSize")).pipe(j.compressWorker(z)).pipe(new _("compressedSize")).withStreamInfo("compression",j)},h.exports=k},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,h,f){var l=s("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},f.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,h,f){var l=s("./utils"),p=(function(){for(var m,_=[],k=0;k<256;k++){m=k;for(var M=0;M<8;M++)m=1&m?3988292384^m>>>1:m>>>1;_[k]=m}return _})();h.exports=function(m,_){return m!==void 0&&m.length?l.getTypeOf(m)!=="string"?(function(k,M,j,z){var A=p,T=0+j;k^=-1;for(var O=0;O<T;O++)k=k>>>8^A[255&(k^M[O])];return-1^k})(0|_,m,m.length):(function(k,M,j,z){var A=p,T=0+j;k^=-1;for(var O=0;O<T;O++)k=k>>>8^A[255&(k^M.charCodeAt(O))];return-1^k})(0|_,m,m.length):0}},{"./utils":32}],5:[function(s,h,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(s,h,f){var l;l=typeof Promise<"u"?Promise:s("lie"),h.exports={Promise:l}},{lie:37}],7:[function(s,h,f){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",p=s("pako"),m=s("./utils"),_=s("./stream/GenericWorker"),k=l?"uint8array":"array";function M(j,z){_.call(this,"FlateWorker/"+j),this._pako=null,this._pakoAction=j,this._pakoOptions=z,this.meta={}}f.magic="\b\0",m.inherits(M,_),M.prototype.processChunk=function(j){this.meta=j.meta,this._pako===null&&this._createPako(),this._pako.push(m.transformTo(k,j.data),!1)},M.prototype.flush=function(){_.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},M.prototype.cleanUp=function(){_.prototype.cleanUp.call(this),this._pako=null},M.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var j=this;this._pako.onData=function(z){j.push({data:z,meta:j.meta})}},f.compressWorker=function(j){return new M("Deflate",j)},f.uncompressWorker=function(){return new M("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,h,f){function l(A,T){var O,L="";for(O=0;O<T;O++)L+=String.fromCharCode(255&A),A>>>=8;return L}function p(A,T,O,L,B,S){var D,w,d=A.file,v=A.compression,y=S!==k.utf8encode,x=m.transformTo("string",S(d.name)),C=m.transformTo("string",k.utf8encode(d.name)),N=d.comment,R=m.transformTo("string",S(N)),$=m.transformTo("string",k.utf8encode(N)),V=C.length!==d.name.length,X=$.length!==N.length,P="",q="",I="",F=d.dir,H=d.date,W={crc32:0,compressedSize:0,uncompressedSize:0};T&&!O||(W.crc32=A.crc32,W.compressedSize=A.compressedSize,W.uncompressedSize=A.uncompressedSize);var J=0;T&&(J|=8),y||!V&&!X||(J|=2048);var Y=0,K=0;F&&(Y|=16),B==="UNIX"?(K=798,Y|=(function(nt,G){var tt=nt;return nt||(tt=G?16893:33204),(65535&tt)<<16})(d.unixPermissions,F)):(K=20,Y|=(function(nt){return 63&(nt||0)})(d.dosPermissions)),D=H.getUTCHours(),D<<=6,D|=H.getUTCMinutes(),D<<=5,D|=H.getUTCSeconds()/2,w=H.getUTCFullYear()-1980,w<<=4,w|=H.getUTCMonth()+1,w<<=5,w|=H.getUTCDate(),V&&(q=l(1,1)+l(M(x),4)+C,P+="up"+l(q.length,2)+q),X&&(I=l(1,1)+l(M(R),4)+$,P+="uc"+l(I.length,2)+I);var et="";return et+=`
|
|
18
|
+
\0`,et+=l(J,2),et+=v.magic,et+=l(D,2),et+=l(w,2),et+=l(W.crc32,4),et+=l(W.compressedSize,4),et+=l(W.uncompressedSize,4),et+=l(x.length,2),et+=l(P.length,2),{fileRecord:j.LOCAL_FILE_HEADER+et+x+P,dirRecord:j.CENTRAL_FILE_HEADER+l(K,2)+et+l(R.length,2)+"\0\0\0\0"+l(Y,4)+l(L,4)+x+P+R}}var m=s("../utils"),_=s("../stream/GenericWorker"),k=s("../utf8"),M=s("../crc32"),j=s("../signature");function z(A,T,O,L){_.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=O,this.encodeFileName=L,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}m.inherits(z,_),z.prototype.push=function(A){var T=A.meta.percent||0,O=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,_.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:O?(T+100*(O-L-1))/O:100}}))},z.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var T=this.streamFiles&&!A.file.dir;if(T){var O=p(A,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:O.fileRecord,meta:{percent:0}})}else this.accumulate=!0},z.prototype.closedSource=function(A){this.accumulate=!1;var T=this.streamFiles&&!A.file.dir,O=p(A,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(O.dirRecord),T)this.push({data:(function(L){return j.DATA_DESCRIPTOR+l(L.crc32,4)+l(L.compressedSize,4)+l(L.uncompressedSize,4)})(A),meta:{percent:100}});else for(this.push({data:O.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},z.prototype.flush=function(){for(var A=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var O=this.bytesWritten-A,L=(function(B,S,D,w,d){var v=m.transformTo("string",d(w));return j.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(B,2)+l(B,2)+l(S,4)+l(D,4)+l(v.length,2)+v})(this.dirRecords.length,O,A,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},z.prototype.registerPrevious=function(A){this._sources.push(A);var T=this;return A.on("data",(function(O){T.processChunk(O)})),A.on("end",(function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()})),A.on("error",(function(O){T.error(O)})),this},z.prototype.resume=function(){return!!_.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},z.prototype.error=function(A){var T=this._sources;if(!_.prototype.error.call(this,A))return!1;for(var O=0;O<T.length;O++)try{T[O].error(A)}catch{}return!0},z.prototype.lock=function(){_.prototype.lock.call(this);for(var A=this._sources,T=0;T<A.length;T++)A[T].lock()},h.exports=z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(s,h,f){var l=s("../compressions"),p=s("./ZipFileWorker");f.generateWorker=function(m,_,k){var M=new p(_.streamFiles,k,_.platform,_.encodeFileName),j=0;try{m.forEach((function(z,A){j++;var T=(function(S,D){var w=S||D,d=l[w];if(!d)throw new Error(w+" is not a valid compression method !");return d})(A.options.compression,_.compression),O=A.options.compressionOptions||_.compressionOptions||{},L=A.dir,B=A.date;A._compressWorker(T,O).withStreamInfo("file",{name:z,dir:L,date:B,comment:A.comment||"",unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions}).pipe(M)})),M.entriesCount=j}catch(z){M.error(z)}return M}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(s,h,f){function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var p=new l;for(var m in this)typeof this[m]!="function"&&(p[m]=this[m]);return p}}(l.prototype=s("./object")).loadAsync=s("./load"),l.support=s("./support"),l.defaults=s("./defaults"),l.version="3.10.1",l.loadAsync=function(p,m){return new l().loadAsync(p,m)},l.external=s("./external"),h.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(s,h,f){var l=s("./utils"),p=s("./external"),m=s("./utf8"),_=s("./zipEntries"),k=s("./stream/Crc32Probe"),M=s("./nodejsUtils");function j(z){return new p.Promise((function(A,T){var O=z.decompressed.getContentWorker().pipe(new k);O.on("error",(function(L){T(L)})).on("end",(function(){O.streamInfo.crc32!==z.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):A()})).resume()}))}h.exports=function(z,A){var T=this;return A=l.extend(A||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:m.utf8decode}),M.isNode&&M.isStream(z)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",z,!0,A.optimizedBinaryString,A.base64).then((function(O){var L=new _(A);return L.load(O),L})).then((function(O){var L=[p.Promise.resolve(O)],B=O.files;if(A.checkCRC32)for(var S=0;S<B.length;S++)L.push(j(B[S]));return p.Promise.all(L)})).then((function(O){for(var L=O.shift(),B=L.files,S=0;S<B.length;S++){var D=B[S],w=D.fileNameStr,d=l.resolve(D.fileNameStr);T.file(d,D.decompressed,{binary:!0,optimizedBinaryString:!0,date:D.date,dir:D.dir,comment:D.fileCommentStr.length?D.fileCommentStr:null,unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions,createFolders:A.createFolders}),D.dir||(T.file(d).unsafeOriginalName=w)}return L.zipComment.length&&(T.comment=L.zipComment),T}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(s,h,f){var l=s("../utils"),p=s("../stream/GenericWorker");function m(_,k){p.call(this,"Nodejs stream input adapter for "+_),this._upstreamEnded=!1,this._bindStream(k)}l.inherits(m,p),m.prototype._bindStream=function(_){var k=this;(this._stream=_).pause(),_.on("data",(function(M){k.push({data:M,meta:{percent:0}})})).on("error",(function(M){k.isPaused?this.generatedError=M:k.error(M)})).on("end",(function(){k.isPaused?k._upstreamEnded=!0:k.end()}))},m.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},m.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},h.exports=m},{"../stream/GenericWorker":28,"../utils":32}],13:[function(s,h,f){var l=s("readable-stream").Readable;function p(m,_,k){l.call(this,_),this._helper=m;var M=this;m.on("data",(function(j,z){M.push(j)||M._helper.pause(),k&&k(z)})).on("error",(function(j){M.emit("error",j)})).on("end",(function(){M.push(null)}))}s("../utils").inherits(p,l),p.prototype._read=function(){this._helper.resume()},h.exports=p},{"../utils":32,"readable-stream":16}],14:[function(s,h,f){h.exports={isNode:o!==void 0,newBufferFrom:function(l,p){if(o.from&&o.from!==Uint8Array.from)return o.from(l,p);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new o(l,p)},allocBuffer:function(l){if(o.alloc)return o.alloc(l);var p=new o(l);return p.fill(0),p},isBuffer:function(l){return o.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(s,h,f){function l(d,v,y){var x,C=m.getTypeOf(v),N=m.extend(y||{},M);N.date=N.date||new Date,N.compression!==null&&(N.compression=N.compression.toUpperCase()),typeof N.unixPermissions=="string"&&(N.unixPermissions=parseInt(N.unixPermissions,8)),N.unixPermissions&&16384&N.unixPermissions&&(N.dir=!0),N.dosPermissions&&16&N.dosPermissions&&(N.dir=!0),N.dir&&(d=B(d)),N.createFolders&&(x=L(d))&&S.call(this,x,!0);var R=C==="string"&&N.binary===!1&&N.base64===!1;y&&y.binary!==void 0||(N.binary=!R),(v instanceof j&&v.uncompressedSize===0||N.dir||!v||v.length===0)&&(N.base64=!1,N.binary=!0,v="",N.compression="STORE",C="string");var $;$=v instanceof j||v instanceof _?v:T.isNode&&T.isStream(v)?new O(d,v):m.prepareContent(d,v,N.binary,N.optimizedBinaryString,N.base64);var V=new z(d,$,N);this.files[d]=V}var p=s("./utf8"),m=s("./utils"),_=s("./stream/GenericWorker"),k=s("./stream/StreamHelper"),M=s("./defaults"),j=s("./compressedObject"),z=s("./zipObject"),A=s("./generate"),T=s("./nodejsUtils"),O=s("./nodejs/NodejsStreamInputAdapter"),L=function(d){d.slice(-1)==="/"&&(d=d.substring(0,d.length-1));var v=d.lastIndexOf("/");return 0<v?d.substring(0,v):""},B=function(d){return d.slice(-1)!=="/"&&(d+="/"),d},S=function(d,v){return v=v!==void 0?v:M.createFolders,d=B(d),this.files[d]||l.call(this,d,null,{dir:!0,createFolders:v}),this.files[d]};function D(d){return Object.prototype.toString.call(d)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(d){var v,y,x;for(v in this.files)x=this.files[v],(y=v.slice(this.root.length,v.length))&&v.slice(0,this.root.length)===this.root&&d(y,x)},filter:function(d){var v=[];return this.forEach((function(y,x){d(y,x)&&v.push(x)})),v},file:function(d,v,y){if(arguments.length!==1)return d=this.root+d,l.call(this,d,v,y),this;if(D(d)){var x=d;return this.filter((function(N,R){return!R.dir&&x.test(N)}))}var C=this.files[this.root+d];return C&&!C.dir?C:null},folder:function(d){if(!d)return this;if(D(d))return this.filter((function(C,N){return N.dir&&d.test(C)}));var v=this.root+d,y=S.call(this,v),x=this.clone();return x.root=y.name,x},remove:function(d){d=this.root+d;var v=this.files[d];if(v||(d.slice(-1)!=="/"&&(d+="/"),v=this.files[d]),v&&!v.dir)delete this.files[d];else for(var y=this.filter((function(C,N){return N.name.slice(0,d.length)===d})),x=0;x<y.length;x++)delete this.files[y[x].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(d){var v,y={};try{if((y=m.extend(d||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p.utf8encode})).type=y.type.toLowerCase(),y.compression=y.compression.toUpperCase(),y.type==="binarystring"&&(y.type="string"),!y.type)throw new Error("No output type specified.");m.checkSupport(y.type),y.platform!=="darwin"&&y.platform!=="freebsd"&&y.platform!=="linux"&&y.platform!=="sunos"||(y.platform="UNIX"),y.platform==="win32"&&(y.platform="DOS");var x=y.comment||this.comment||"";v=A.generateWorker(this,y,x)}catch(C){(v=new _("error")).error(C)}return new k(v,y.type||"string",y.mimeType)},generateAsync:function(d,v){return this.generateInternalStream(d).accumulate(v)},generateNodeStream:function(d,v){return(d=d||{}).type||(d.type="nodebuffer"),this.generateInternalStream(d).toNodejsStream(v)}};h.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(s,h,f){h.exports=s("stream")},{stream:void 0}],17:[function(s,h,f){var l=s("./DataReader");function p(m){l.call(this,m);for(var _=0;_<this.data.length;_++)m[_]=255&m[_]}s("../utils").inherits(p,l),p.prototype.byteAt=function(m){return this.data[this.zero+m]},p.prototype.lastIndexOfSignature=function(m){for(var _=m.charCodeAt(0),k=m.charCodeAt(1),M=m.charCodeAt(2),j=m.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===_&&this.data[z+1]===k&&this.data[z+2]===M&&this.data[z+3]===j)return z-this.zero;return-1},p.prototype.readAndCheckSignature=function(m){var _=m.charCodeAt(0),k=m.charCodeAt(1),M=m.charCodeAt(2),j=m.charCodeAt(3),z=this.readData(4);return _===z[0]&&k===z[1]&&M===z[2]&&j===z[3]},p.prototype.readData=function(m){if(this.checkOffset(m),m===0)return[];var _=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,_},h.exports=p},{"../utils":32,"./DataReader":18}],18:[function(s,h,f){var l=s("../utils");function p(m){this.data=m,this.length=m.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(m){this.checkIndex(this.index+m)},checkIndex:function(m){if(this.length<this.zero+m||m<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+m+"). Corrupted zip ?")},setIndex:function(m){this.checkIndex(m),this.index=m},skip:function(m){this.setIndex(this.index+m)},byteAt:function(){},readInt:function(m){var _,k=0;for(this.checkOffset(m),_=this.index+m-1;_>=this.index;_--)k=(k<<8)+this.byteAt(_);return this.index+=m,k},readString:function(m){return l.transformTo("string",this.readData(m))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var m=this.readInt(4);return new Date(Date.UTC(1980+(m>>25&127),(m>>21&15)-1,m>>16&31,m>>11&31,m>>5&63,(31&m)<<1))}},h.exports=p},{"../utils":32}],19:[function(s,h,f){var l=s("./Uint8ArrayReader");function p(m){l.call(this,m)}s("../utils").inherits(p,l),p.prototype.readData=function(m){this.checkOffset(m);var _=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,_},h.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(s,h,f){var l=s("./DataReader");function p(m){l.call(this,m)}s("../utils").inherits(p,l),p.prototype.byteAt=function(m){return this.data.charCodeAt(this.zero+m)},p.prototype.lastIndexOfSignature=function(m){return this.data.lastIndexOf(m)-this.zero},p.prototype.readAndCheckSignature=function(m){return m===this.readData(4)},p.prototype.readData=function(m){this.checkOffset(m);var _=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,_},h.exports=p},{"../utils":32,"./DataReader":18}],21:[function(s,h,f){var l=s("./ArrayReader");function p(m){l.call(this,m)}s("../utils").inherits(p,l),p.prototype.readData=function(m){if(this.checkOffset(m),m===0)return new Uint8Array(0);var _=this.data.subarray(this.zero+this.index,this.zero+this.index+m);return this.index+=m,_},h.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(s,h,f){var l=s("../utils"),p=s("../support"),m=s("./ArrayReader"),_=s("./StringReader"),k=s("./NodeBufferReader"),M=s("./Uint8ArrayReader");h.exports=function(j){var z=l.getTypeOf(j);return l.checkSupport(z),z!=="string"||p.uint8array?z==="nodebuffer"?new k(j):p.uint8array?new M(l.transformTo("uint8array",j)):new m(l.transformTo("array",j)):new _(j)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(s,h,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(s,h,f){var l=s("./GenericWorker"),p=s("../utils");function m(_){l.call(this,"ConvertWorker to "+_),this.destType=_}p.inherits(m,l),m.prototype.processChunk=function(_){this.push({data:p.transformTo(this.destType,_.data),meta:_.meta})},h.exports=m},{"../utils":32,"./GenericWorker":28}],25:[function(s,h,f){var l=s("./GenericWorker"),p=s("../crc32");function m(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s("../utils").inherits(m,l),m.prototype.processChunk=function(_){this.streamInfo.crc32=p(_.data,this.streamInfo.crc32||0),this.push(_)},h.exports=m},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(s,h,f){var l=s("../utils"),p=s("./GenericWorker");function m(_){p.call(this,"DataLengthProbe for "+_),this.propName=_,this.withStreamInfo(_,0)}l.inherits(m,p),m.prototype.processChunk=function(_){if(_){var k=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=k+_.data.length}p.prototype.processChunk.call(this,_)},h.exports=m},{"../utils":32,"./GenericWorker":28}],27:[function(s,h,f){var l=s("../utils"),p=s("./GenericWorker");function m(_){p.call(this,"DataWorker");var k=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,_.then((function(M){k.dataIsReady=!0,k.data=M,k.max=M&&M.length||0,k.type=l.getTypeOf(M),k.isPaused||k._tickAndRepeat()}),(function(M){k.error(M)}))}l.inherits(m,p),m.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},m.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},m.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},m.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var _=null,k=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":_=this.data.substring(this.index,k);break;case"uint8array":_=this.data.subarray(this.index,k);break;case"array":case"nodebuffer":_=this.data.slice(this.index,k)}return this.index=k,this.push({data:_,meta:{percent:this.max?this.index/this.max*100:0}})},h.exports=m},{"../utils":32,"./GenericWorker":28}],28:[function(s,h,f){function l(p){this.name=p||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(p){this.emit("data",p)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(p){this.emit("error",p)}return!0},error:function(p){return!this.isFinished&&(this.isPaused?this.generatedError=p:(this.isFinished=!0,this.emit("error",p),this.previous&&this.previous.error(p),this.cleanUp()),!0)},on:function(p,m){return this._listeners[p].push(m),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(p,m){if(this._listeners[p])for(var _=0;_<this._listeners[p].length;_++)this._listeners[p][_].call(this,m)},pipe:function(p){return p.registerPrevious(this)},registerPrevious:function(p){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=p.streamInfo,this.mergeStreamInfo(),this.previous=p;var m=this;return p.on("data",(function(_){m.processChunk(_)})),p.on("end",(function(){m.end()})),p.on("error",(function(_){m.error(_)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var p=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),p=!0),this.previous&&this.previous.resume(),!p},flush:function(){},processChunk:function(p){this.push(p)},withStreamInfo:function(p,m){return this.extraStreamInfo[p]=m,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var p in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,p)&&(this.streamInfo[p]=this.extraStreamInfo[p])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var p="Worker "+this.name;return this.previous?this.previous+" -> "+p:p}},h.exports=l},{}],29:[function(s,h,f){var l=s("../utils"),p=s("./ConvertWorker"),m=s("./GenericWorker"),_=s("../base64"),k=s("../support"),M=s("../external"),j=null;if(k.nodestream)try{j=s("../nodejs/NodejsStreamOutputAdapter")}catch{}function z(A,T,O){var L=T;switch(T){case"blob":case"arraybuffer":L="uint8array";break;case"base64":L="string"}try{this._internalType=L,this._outputType=T,this._mimeType=O,l.checkSupport(L),this._worker=A.pipe(new p(L)),A.lock()}catch(B){this._worker=new m("error"),this._worker.error(B)}}z.prototype={accumulate:function(A){return(function(T,O){return new M.Promise((function(L,B){var S=[],D=T._internalType,w=T._outputType,d=T._mimeType;T.on("data",(function(v,y){S.push(v),O&&O(y)})).on("error",(function(v){S=[],B(v)})).on("end",(function(){try{var v=(function(y,x,C){switch(y){case"blob":return l.newBlob(l.transformTo("arraybuffer",x),C);case"base64":return _.encode(x);default:return l.transformTo(y,x)}})(w,(function(y,x){var C,N=0,R=null,$=0;for(C=0;C<x.length;C++)$+=x[C].length;switch(y){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(R=new Uint8Array($),C=0;C<x.length;C++)R.set(x[C],N),N+=x[C].length;return R;case"nodebuffer":return o.concat(x);default:throw new Error("concat : unsupported type '"+y+"'")}})(D,S),d);L(v)}catch(y){B(y)}S=[]})).resume()}))})(this,A)},on:function(A,T){var O=this;return A==="data"?this._worker.on(A,(function(L){T.call(O,L.data,L.meta)})):this._worker.on(A,(function(){l.delay(T,arguments,O)})),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(A){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:this._outputType!=="nodebuffer"},A)}},h.exports=z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(s,h,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=o!==void 0,f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var l=new ArrayBuffer(0);try{f.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(l),f.blob=p.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!s("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(s,h,f){for(var l=s("./utils"),p=s("./support"),m=s("./nodejsUtils"),_=s("./stream/GenericWorker"),k=new Array(256),M=0;M<256;M++)k[M]=252<=M?6:248<=M?5:240<=M?4:224<=M?3:192<=M?2:1;function j(){_.call(this,"utf-8 decode"),this.leftOver=null}function z(){_.call(this,"utf-8 encode")}k[254]=k[254]=1,f.utf8encode=function(A){return p.nodebuffer?m.newBufferFrom(A,"utf-8"):(function(T){var O,L,B,S,D,w=T.length,d=0;for(S=0;S<w;S++)(64512&(L=T.charCodeAt(S)))==55296&&S+1<w&&(64512&(B=T.charCodeAt(S+1)))==56320&&(L=65536+(L-55296<<10)+(B-56320),S++),d+=L<128?1:L<2048?2:L<65536?3:4;for(O=p.uint8array?new Uint8Array(d):new Array(d),S=D=0;D<d;S++)(64512&(L=T.charCodeAt(S)))==55296&&S+1<w&&(64512&(B=T.charCodeAt(S+1)))==56320&&(L=65536+(L-55296<<10)+(B-56320),S++),L<128?O[D++]=L:(L<2048?O[D++]=192|L>>>6:(L<65536?O[D++]=224|L>>>12:(O[D++]=240|L>>>18,O[D++]=128|L>>>12&63),O[D++]=128|L>>>6&63),O[D++]=128|63&L);return O})(A)},f.utf8decode=function(A){return p.nodebuffer?l.transformTo("nodebuffer",A).toString("utf-8"):(function(T){var O,L,B,S,D=T.length,w=new Array(2*D);for(O=L=0;O<D;)if((B=T[O++])<128)w[L++]=B;else if(4<(S=k[B]))w[L++]=65533,O+=S-1;else{for(B&=S===2?31:S===3?15:7;1<S&&O<D;)B=B<<6|63&T[O++],S--;1<S?w[L++]=65533:B<65536?w[L++]=B:(B-=65536,w[L++]=55296|B>>10&1023,w[L++]=56320|1023&B)}return w.length!==L&&(w.subarray?w=w.subarray(0,L):w.length=L),l.applyFromCharCode(w)})(A=l.transformTo(p.uint8array?"uint8array":"array",A))},l.inherits(j,_),j.prototype.processChunk=function(A){var T=l.transformTo(p.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var O=T;(T=new Uint8Array(O.length+this.leftOver.length)).set(this.leftOver,0),T.set(O,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var L=(function(S,D){var w;for((D=D||S.length)>S.length&&(D=S.length),w=D-1;0<=w&&(192&S[w])==128;)w--;return w<0||w===0?D:w+k[S[w]]>D?w:D})(T),B=T;L!==T.length&&(p.uint8array?(B=T.subarray(0,L),this.leftOver=T.subarray(L,T.length)):(B=T.slice(0,L),this.leftOver=T.slice(L,T.length))),this.push({data:f.utf8decode(B),meta:A.meta})},j.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=j,l.inherits(z,_),z.prototype.processChunk=function(A){this.push({data:f.utf8encode(A.data),meta:A.meta})},f.Utf8EncodeWorker=z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(s,h,f){var l=s("./support"),p=s("./base64"),m=s("./nodejsUtils"),_=s("./external");function k(O){return O}function M(O,L){for(var B=0;B<O.length;++B)L[B]=255&O.charCodeAt(B);return L}s("setimmediate"),f.newBlob=function(O,L){f.checkSupport("blob");try{return new Blob([O],{type:L})}catch{try{var B=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return B.append(O),B.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var j={stringifyByChunk:function(O,L,B){var S=[],D=0,w=O.length;if(w<=B)return String.fromCharCode.apply(null,O);for(;D<w;)L==="array"||L==="nodebuffer"?S.push(String.fromCharCode.apply(null,O.slice(D,Math.min(D+B,w)))):S.push(String.fromCharCode.apply(null,O.subarray(D,Math.min(D+B,w)))),D+=B;return S.join("")},stringifyByChar:function(O){for(var L="",B=0;B<O.length;B++)L+=String.fromCharCode(O[B]);return L},applyCanBeUsed:{uint8array:(function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,m.allocBuffer(1)).length===1}catch{return!1}})()}};function z(O){var L=65536,B=f.getTypeOf(O),S=!0;if(B==="uint8array"?S=j.applyCanBeUsed.uint8array:B==="nodebuffer"&&(S=j.applyCanBeUsed.nodebuffer),S)for(;1<L;)try{return j.stringifyByChunk(O,B,L)}catch{L=Math.floor(L/2)}return j.stringifyByChar(O)}function A(O,L){for(var B=0;B<O.length;B++)L[B]=O[B];return L}f.applyFromCharCode=z;var T={};T.string={string:k,array:function(O){return M(O,new Array(O.length))},arraybuffer:function(O){return T.string.uint8array(O).buffer},uint8array:function(O){return M(O,new Uint8Array(O.length))},nodebuffer:function(O){return M(O,m.allocBuffer(O.length))}},T.array={string:z,array:k,arraybuffer:function(O){return new Uint8Array(O).buffer},uint8array:function(O){return new Uint8Array(O)},nodebuffer:function(O){return m.newBufferFrom(O)}},T.arraybuffer={string:function(O){return z(new Uint8Array(O))},array:function(O){return A(new Uint8Array(O),new Array(O.byteLength))},arraybuffer:k,uint8array:function(O){return new Uint8Array(O)},nodebuffer:function(O){return m.newBufferFrom(new Uint8Array(O))}},T.uint8array={string:z,array:function(O){return A(O,new Array(O.length))},arraybuffer:function(O){return O.buffer},uint8array:k,nodebuffer:function(O){return m.newBufferFrom(O)}},T.nodebuffer={string:z,array:function(O){return A(O,new Array(O.length))},arraybuffer:function(O){return T.nodebuffer.uint8array(O).buffer},uint8array:function(O){return A(O,new Uint8Array(O.length))},nodebuffer:k},f.transformTo=function(O,L){if(L=L||"",!O)return L;f.checkSupport(O);var B=f.getTypeOf(L);return T[B][O](L)},f.resolve=function(O){for(var L=O.split("/"),B=[],S=0;S<L.length;S++){var D=L[S];D==="."||D===""&&S!==0&&S!==L.length-1||(D===".."?B.pop():B.push(D))}return B.join("/")},f.getTypeOf=function(O){return typeof O=="string"?"string":Object.prototype.toString.call(O)==="[object Array]"?"array":l.nodebuffer&&m.isBuffer(O)?"nodebuffer":l.uint8array&&O instanceof Uint8Array?"uint8array":l.arraybuffer&&O instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(O){if(!l[O.toLowerCase()])throw new Error(O+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(O){var L,B,S="";for(B=0;B<(O||"").length;B++)S+="\\x"+((L=O.charCodeAt(B))<16?"0":"")+L.toString(16).toUpperCase();return S},f.delay=function(O,L,B){i((function(){O.apply(B||null,L||[])}))},f.inherits=function(O,L){function B(){}B.prototype=L.prototype,O.prototype=new B},f.extend=function(){var O,L,B={};for(O=0;O<arguments.length;O++)for(L in arguments[O])Object.prototype.hasOwnProperty.call(arguments[O],L)&&B[L]===void 0&&(B[L]=arguments[O][L]);return B},f.prepareContent=function(O,L,B,S,D){return _.Promise.resolve(L).then((function(w){return l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new _.Promise((function(d,v){var y=new FileReader;y.onload=function(x){d(x.target.result)},y.onerror=function(x){v(x.target.error)},y.readAsArrayBuffer(w)})):w})).then((function(w){var d=f.getTypeOf(w);return d?(d==="arraybuffer"?w=f.transformTo("uint8array",w):d==="string"&&(D?w=p.decode(w):B&&S!==!0&&(w=(function(v){return M(v,l.uint8array?new Uint8Array(v.length):new Array(v.length))})(w))),w):_.Promise.reject(new Error("Can't read the data of '"+O+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(s,h,f){var l=s("./reader/readerFor"),p=s("./utils"),m=s("./signature"),_=s("./zipEntry"),k=s("./support");function M(j){this.files=[],this.loadOptions=j}M.prototype={checkSignature:function(j){if(!this.reader.readAndCheckSignature(j)){this.reader.index-=4;var z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(z)+", expected "+p.pretty(j)+")")}},isSignature:function(j,z){var A=this.reader.index;this.reader.setIndex(j);var T=this.reader.readString(4)===z;return this.reader.setIndex(A),T},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var j=this.reader.readData(this.zipCommentLength),z=k.uint8array?"uint8array":"array",A=p.transformTo(z,j);this.zipComment=this.loadOptions.decodeFileName(A)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var j,z,A,T=this.zip64EndOfCentralSize-44;0<T;)j=this.reader.readInt(2),z=this.reader.readInt(4),A=this.reader.readData(z),this.zip64ExtensibleData[j]={id:j,length:z,value:A}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var j,z;for(j=0;j<this.files.length;j++)z=this.files[j],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(m.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var j;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(m.CENTRAL_FILE_HEADER);)(j=new _({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(j);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var j=this.reader.lastIndexOfSignature(m.CENTRAL_DIRECTORY_END);if(j<0)throw this.isSignature(0,m.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(j);var z=j;if(this.checkSignature(m.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(j=this.reader.lastIndexOfSignature(m.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(j),this.checkSignature(m.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,m.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(m.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(m.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var A=this.centralDirOffset+this.centralDirSize;this.zip64&&(A+=20,A+=12+this.zip64EndOfCentralSize);var T=z-A;if(0<T)this.isSignature(z,m.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw new Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(j){this.reader=l(j)},load:function(j){this.prepareReader(j),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},h.exports=M},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(s,h,f){var l=s("./reader/readerFor"),p=s("./utils"),m=s("./compressedObject"),_=s("./crc32"),k=s("./utf8"),M=s("./compressions"),j=s("./support");function z(A,T){this.options=A,this.loadOptions=T}z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(A){var T,O;if(A.skip(22),this.fileNameLength=A.readInt(2),O=A.readInt(2),this.fileName=A.readData(this.fileNameLength),A.skip(O),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((T=(function(L){for(var B in M)if(Object.prototype.hasOwnProperty.call(M,B)&&M[B].magic===L)return M[B];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new m(this.compressedSize,this.uncompressedSize,this.crc32,T,A.readData(this.compressedSize))},readCentralPart:function(A){this.versionMadeBy=A.readInt(2),A.skip(2),this.bitFlag=A.readInt(2),this.compressionMethod=A.readString(2),this.date=A.readDate(),this.crc32=A.readInt(4),this.compressedSize=A.readInt(4),this.uncompressedSize=A.readInt(4);var T=A.readInt(2);if(this.extraFieldsLength=A.readInt(2),this.fileCommentLength=A.readInt(2),this.diskNumberStart=A.readInt(2),this.internalFileAttributes=A.readInt(2),this.externalFileAttributes=A.readInt(4),this.localHeaderOffset=A.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");A.skip(T),this.readExtraFields(A),this.parseZIP64ExtraField(A),this.fileComment=A.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var A=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),A==0&&(this.dosPermissions=63&this.externalFileAttributes),A==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=l(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var T,O,L,B=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4<B;)T=A.readInt(2),O=A.readInt(2),L=A.readData(O),this.extraFields[T]={id:T,length:O,value:L};A.setIndex(B)},handleUTF8:function(){var A=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=k.utf8decode(this.fileName),this.fileCommentStr=k.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var O=p.transformTo(A,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(O)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var B=p.transformTo(A,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(B)}}},findExtraFieldUnicodePath:function(){var A=this.extraFields[28789];if(A){var T=l(A.value);return T.readInt(1)!==1||_(this.fileName)!==T.readInt(4)?null:k.utf8decode(T.readData(A.length-5))}return null},findExtraFieldUnicodeComment:function(){var A=this.extraFields[25461];if(A){var T=l(A.value);return T.readInt(1)!==1||_(this.fileComment)!==T.readInt(4)?null:k.utf8decode(T.readData(A.length-5))}return null}},h.exports=z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(s,h,f){function l(T,O,L){this.name=T,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=O,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var p=s("./stream/StreamHelper"),m=s("./stream/DataWorker"),_=s("./utf8"),k=s("./compressedObject"),M=s("./stream/GenericWorker");l.prototype={internalStream:function(T){var O=null,L="string";try{if(!T)throw new Error("No output type specified.");var B=(L=T.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),O=this._decompressWorker();var S=!this._dataBinary;S&&!B&&(O=O.pipe(new _.Utf8EncodeWorker)),!S&&B&&(O=O.pipe(new _.Utf8DecodeWorker))}catch(D){(O=new M("error")).error(D)}return new p(O,L,"")},async:function(T,O){return this.internalStream(T).accumulate(O)},nodeStream:function(T,O){return this.internalStream(T||"nodebuffer").toNodejsStream(O)},_compressWorker:function(T,O){if(this._data instanceof k&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new _.Utf8EncodeWorker)),k.createWorkerFrom(L,T,O)},_decompressWorker:function(){return this._data instanceof k?this._data.getContentWorker():this._data instanceof M?this._data:new m(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},A=0;A<j.length;A++)l.prototype[j[A]]=z;h.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(s,h,f){(function(l){var p,m,_=l.MutationObserver||l.WebKitMutationObserver;if(_){var k=0,M=new _(T),j=l.document.createTextNode("");M.observe(j,{characterData:!0}),p=function(){j.data=k=++k%2}}else if(l.setImmediate||l.MessageChannel===void 0)p="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var O=l.document.createElement("script");O.onreadystatechange=function(){T(),O.onreadystatechange=null,O.parentNode.removeChild(O),O=null},l.document.documentElement.appendChild(O)}:function(){setTimeout(T,0)};else{var z=new l.MessageChannel;z.port1.onmessage=T,p=function(){z.port2.postMessage(0)}}var A=[];function T(){var O,L;m=!0;for(var B=A.length;B;){for(L=A,A=[],O=-1;++O<B;)L[O]();B=A.length}m=!1}h.exports=function(O){A.push(O)!==1||m||p()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(s,h,f){var l=s("immediate");function p(){}var m={},_=["REJECTED"],k=["FULFILLED"],M=["PENDING"];function j(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=M,this.queue=[],this.outcome=void 0,B!==p&&O(this,B)}function z(B,S,D){this.promise=B,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}function A(B,S,D){l((function(){var w;try{w=S(D)}catch(d){return m.reject(B,d)}w===B?m.reject(B,new TypeError("Cannot resolve promise with itself")):m.resolve(B,w)}))}function T(B){var S=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof S=="function")return function(){S.apply(B,arguments)}}function O(B,S){var D=!1;function w(y){D||(D=!0,m.reject(B,y))}function d(y){D||(D=!0,m.resolve(B,y))}var v=L((function(){S(d,w)}));v.status==="error"&&w(v.value)}function L(B,S){var D={};try{D.value=B(S),D.status="success"}catch(w){D.status="error",D.value=w}return D}(h.exports=j).prototype.finally=function(B){if(typeof B!="function")return this;var S=this.constructor;return this.then((function(D){return S.resolve(B()).then((function(){return D}))}),(function(D){return S.resolve(B()).then((function(){throw D}))}))},j.prototype.catch=function(B){return this.then(null,B)},j.prototype.then=function(B,S){if(typeof B!="function"&&this.state===k||typeof S!="function"&&this.state===_)return this;var D=new this.constructor(p);return this.state!==M?A(D,this.state===k?B:S,this.outcome):this.queue.push(new z(D,B,S)),D},z.prototype.callFulfilled=function(B){m.resolve(this.promise,B)},z.prototype.otherCallFulfilled=function(B){A(this.promise,this.onFulfilled,B)},z.prototype.callRejected=function(B){m.reject(this.promise,B)},z.prototype.otherCallRejected=function(B){A(this.promise,this.onRejected,B)},m.resolve=function(B,S){var D=L(T,S);if(D.status==="error")return m.reject(B,D.value);var w=D.value;if(w)O(B,w);else{B.state=k,B.outcome=S;for(var d=-1,v=B.queue.length;++d<v;)B.queue[d].callFulfilled(S)}return B},m.reject=function(B,S){B.state=_,B.outcome=S;for(var D=-1,w=B.queue.length;++D<w;)B.queue[D].callRejected(S);return B},j.resolve=function(B){return B instanceof this?B:m.resolve(new this(p),B)},j.reject=function(B){var S=new this(p);return m.reject(S,B)},j.all=function(B){var S=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=B.length,w=!1;if(!D)return this.resolve([]);for(var d=new Array(D),v=0,y=-1,x=new this(p);++y<D;)C(B[y],y);return x;function C(N,R){S.resolve(N).then((function($){d[R]=$,++v!==D||w||(w=!0,m.resolve(x,d))}),(function($){w||(w=!0,m.reject(x,$))}))}},j.race=function(B){if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=B.length,D=!1;if(!S)return this.resolve([]);for(var w,d=-1,v=new this(p);++d<S;)w=B[d],this.resolve(w).then((function(y){D||(D=!0,m.resolve(v,y))}),(function(y){D||(D=!0,m.reject(v,y))}));return v}},{immediate:36}],38:[function(s,h,f){var l={};(0,s("./lib/utils/common").assign)(l,s("./lib/deflate"),s("./lib/inflate"),s("./lib/zlib/constants")),h.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(s,h,f){var l=s("./zlib/deflate"),p=s("./utils/common"),m=s("./utils/strings"),_=s("./zlib/messages"),k=s("./zlib/zstream"),M=Object.prototype.toString;function j(A){if(!(this instanceof j))return new j(A);this.options=p.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},A||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var O=l.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(O!==0)throw new Error(_[O]);if(T.header&&l.deflateSetHeader(this.strm,T.header),T.dictionary){var L;if(L=typeof T.dictionary=="string"?m.string2buf(T.dictionary):M.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(O=l.deflateSetDictionary(this.strm,L))!==0)throw new Error(_[O]);this._dict_set=!0}}function z(A,T){var O=new j(T);if(O.push(A,!0),O.err)throw O.msg||_[O.err];return O.result}j.prototype.push=function(A,T){var O,L,B=this.strm,S=this.options.chunkSize;if(this.ended)return!1;L=T===~~T?T:T===!0?4:0,typeof A=="string"?B.input=m.string2buf(A):M.call(A)==="[object ArrayBuffer]"?B.input=new Uint8Array(A):B.input=A,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new p.Buf8(S),B.next_out=0,B.avail_out=S),(O=l.deflate(B,L))!==1&&O!==0)return this.onEnd(O),!(this.ended=!0);B.avail_out!==0&&(B.avail_in!==0||L!==4&&L!==2)||(this.options.to==="string"?this.onData(m.buf2binstring(p.shrinkBuf(B.output,B.next_out))):this.onData(p.shrinkBuf(B.output,B.next_out)))}while((0<B.avail_in||B.avail_out===0)&&O!==1);return L===4?(O=l.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===0):L!==2||(this.onEnd(0),!(B.avail_out=0))},j.prototype.onData=function(A){this.chunks.push(A)},j.prototype.onEnd=function(A){A===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},f.Deflate=j,f.deflate=z,f.deflateRaw=function(A,T){return(T=T||{}).raw=!0,z(A,T)},f.gzip=function(A,T){return(T=T||{}).gzip=!0,z(A,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(s,h,f){var l=s("./zlib/inflate"),p=s("./utils/common"),m=s("./utils/strings"),_=s("./zlib/constants"),k=s("./zlib/messages"),M=s("./zlib/zstream"),j=s("./zlib/gzheader"),z=Object.prototype.toString;function A(O){if(!(this instanceof A))return new A(O);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},O||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||O&&O.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&(15&L.windowBits)==0&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new M,this.strm.avail_out=0;var B=l.inflateInit2(this.strm,L.windowBits);if(B!==_.Z_OK)throw new Error(k[B]);this.header=new j,l.inflateGetHeader(this.strm,this.header)}function T(O,L){var B=new A(L);if(B.push(O,!0),B.err)throw B.msg||k[B.err];return B.result}A.prototype.push=function(O,L){var B,S,D,w,d,v,y=this.strm,x=this.options.chunkSize,C=this.options.dictionary,N=!1;if(this.ended)return!1;S=L===~~L?L:L===!0?_.Z_FINISH:_.Z_NO_FLUSH,typeof O=="string"?y.input=m.binstring2buf(O):z.call(O)==="[object ArrayBuffer]"?y.input=new Uint8Array(O):y.input=O,y.next_in=0,y.avail_in=y.input.length;do{if(y.avail_out===0&&(y.output=new p.Buf8(x),y.next_out=0,y.avail_out=x),(B=l.inflate(y,_.Z_NO_FLUSH))===_.Z_NEED_DICT&&C&&(v=typeof C=="string"?m.string2buf(C):z.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,B=l.inflateSetDictionary(this.strm,v)),B===_.Z_BUF_ERROR&&N===!0&&(B=_.Z_OK,N=!1),B!==_.Z_STREAM_END&&B!==_.Z_OK)return this.onEnd(B),!(this.ended=!0);y.next_out&&(y.avail_out!==0&&B!==_.Z_STREAM_END&&(y.avail_in!==0||S!==_.Z_FINISH&&S!==_.Z_SYNC_FLUSH)||(this.options.to==="string"?(D=m.utf8border(y.output,y.next_out),w=y.next_out-D,d=m.buf2string(y.output,D),y.next_out=w,y.avail_out=x-w,w&&p.arraySet(y.output,y.output,D,w,0),this.onData(d)):this.onData(p.shrinkBuf(y.output,y.next_out)))),y.avail_in===0&&y.avail_out===0&&(N=!0)}while((0<y.avail_in||y.avail_out===0)&&B!==_.Z_STREAM_END);return B===_.Z_STREAM_END&&(S=_.Z_FINISH),S===_.Z_FINISH?(B=l.inflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===_.Z_OK):S!==_.Z_SYNC_FLUSH||(this.onEnd(_.Z_OK),!(y.avail_out=0))},A.prototype.onData=function(O){this.chunks.push(O)},A.prototype.onEnd=function(O){O===_.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg},f.Inflate=A,f.inflate=T,f.inflateRaw=function(O,L){return(L=L||{}).raw=!0,T(O,L)},f.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(s,h,f){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(_){for(var k=Array.prototype.slice.call(arguments,1);k.length;){var M=k.shift();if(M){if(typeof M!="object")throw new TypeError(M+"must be non-object");for(var j in M)M.hasOwnProperty(j)&&(_[j]=M[j])}}return _},f.shrinkBuf=function(_,k){return _.length===k?_:_.subarray?_.subarray(0,k):(_.length=k,_)};var p={arraySet:function(_,k,M,j,z){if(k.subarray&&_.subarray)_.set(k.subarray(M,M+j),z);else for(var A=0;A<j;A++)_[z+A]=k[M+A]},flattenChunks:function(_){var k,M,j,z,A,T;for(k=j=0,M=_.length;k<M;k++)j+=_[k].length;for(T=new Uint8Array(j),k=z=0,M=_.length;k<M;k++)A=_[k],T.set(A,z),z+=A.length;return T}},m={arraySet:function(_,k,M,j,z){for(var A=0;A<j;A++)_[z+A]=k[M+A]},flattenChunks:function(_){return[].concat.apply([],_)}};f.setTyped=function(_){_?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,p)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,m))},f.setTyped(l)},{}],42:[function(s,h,f){var l=s("./common"),p=!0,m=!0;try{String.fromCharCode.apply(null,[0])}catch{p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{m=!1}for(var _=new l.Buf8(256),k=0;k<256;k++)_[k]=252<=k?6:248<=k?5:240<=k?4:224<=k?3:192<=k?2:1;function M(j,z){if(z<65537&&(j.subarray&&m||!j.subarray&&p))return String.fromCharCode.apply(null,l.shrinkBuf(j,z));for(var A="",T=0;T<z;T++)A+=String.fromCharCode(j[T]);return A}_[254]=_[254]=1,f.string2buf=function(j){var z,A,T,O,L,B=j.length,S=0;for(O=0;O<B;O++)(64512&(A=j.charCodeAt(O)))==55296&&O+1<B&&(64512&(T=j.charCodeAt(O+1)))==56320&&(A=65536+(A-55296<<10)+(T-56320),O++),S+=A<128?1:A<2048?2:A<65536?3:4;for(z=new l.Buf8(S),O=L=0;L<S;O++)(64512&(A=j.charCodeAt(O)))==55296&&O+1<B&&(64512&(T=j.charCodeAt(O+1)))==56320&&(A=65536+(A-55296<<10)+(T-56320),O++),A<128?z[L++]=A:(A<2048?z[L++]=192|A>>>6:(A<65536?z[L++]=224|A>>>12:(z[L++]=240|A>>>18,z[L++]=128|A>>>12&63),z[L++]=128|A>>>6&63),z[L++]=128|63&A);return z},f.buf2binstring=function(j){return M(j,j.length)},f.binstring2buf=function(j){for(var z=new l.Buf8(j.length),A=0,T=z.length;A<T;A++)z[A]=j.charCodeAt(A);return z},f.buf2string=function(j,z){var A,T,O,L,B=z||j.length,S=new Array(2*B);for(A=T=0;A<B;)if((O=j[A++])<128)S[T++]=O;else if(4<(L=_[O]))S[T++]=65533,A+=L-1;else{for(O&=L===2?31:L===3?15:7;1<L&&A<B;)O=O<<6|63&j[A++],L--;1<L?S[T++]=65533:O<65536?S[T++]=O:(O-=65536,S[T++]=55296|O>>10&1023,S[T++]=56320|1023&O)}return M(S,T)},f.utf8border=function(j,z){var A;for((z=z||j.length)>j.length&&(z=j.length),A=z-1;0<=A&&(192&j[A])==128;)A--;return A<0||A===0?z:A+_[j[A]]>z?A:z}},{"./common":41}],43:[function(s,h,f){h.exports=function(l,p,m,_){for(var k=65535&l|0,M=l>>>16&65535|0,j=0;m!==0;){for(m-=j=2e3<m?2e3:m;M=M+(k=k+p[_++]|0)|0,--j;);k%=65521,M%=65521}return k|M<<16|0}},{}],44:[function(s,h,f){h.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(s,h,f){var l=(function(){for(var p,m=[],_=0;_<256;_++){p=_;for(var k=0;k<8;k++)p=1&p?3988292384^p>>>1:p>>>1;m[_]=p}return m})();h.exports=function(p,m,_,k){var M=l,j=k+_;p^=-1;for(var z=k;z<j;z++)p=p>>>8^M[255&(p^m[z])];return-1^p}},{}],46:[function(s,h,f){var l,p=s("../utils/common"),m=s("./trees"),_=s("./adler32"),k=s("./crc32"),M=s("./messages"),j=-2,z=258,A=262,T=113;function O(P,q){return P.msg=M[q],q}function L(P){return(P<<1)-(4<P?9:0)}function B(P){for(var q=P.length;0<=--q;)P[q]=0}function S(P){var q=P.state,I=q.pending;I>P.avail_out&&(I=P.avail_out),I!==0&&(p.arraySet(P.output,q.pending_buf,q.pending_out,I,P.next_out),P.next_out+=I,q.pending_out+=I,P.total_out+=I,P.avail_out-=I,q.pending-=I,q.pending===0&&(q.pending_out=0))}function D(P,q){m._tr_flush_block(P,0<=P.block_start?P.block_start:-1,P.strstart-P.block_start,q),P.block_start=P.strstart,S(P.strm)}function w(P,q){P.pending_buf[P.pending++]=q}function d(P,q){P.pending_buf[P.pending++]=q>>>8&255,P.pending_buf[P.pending++]=255&q}function v(P,q){var I,F,H=P.max_chain_length,W=P.strstart,J=P.prev_length,Y=P.nice_match,K=P.strstart>P.w_size-A?P.strstart-(P.w_size-A):0,et=P.window,nt=P.w_mask,G=P.prev,tt=P.strstart+z,Q=et[W+J-1],st=et[W+J];P.prev_length>=P.good_match&&(H>>=2),Y>P.lookahead&&(Y=P.lookahead);do if(et[(I=q)+J]===st&&et[I+J-1]===Q&&et[I]===et[W]&&et[++I]===et[W+1]){W+=2,I++;do;while(et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&et[++W]===et[++I]&&W<tt);if(F=z-(tt-W),W=tt-z,J<F){if(P.match_start=q,Y<=(J=F))break;Q=et[W+J-1],st=et[W+J]}}while((q=G[q&nt])>K&&--H!=0);return J<=P.lookahead?J:P.lookahead}function y(P){var q,I,F,H,W,J,Y,K,et,nt,G=P.w_size;do{if(H=P.window_size-P.lookahead-P.strstart,P.strstart>=G+(G-A)){for(p.arraySet(P.window,P.window,G,G,0),P.match_start-=G,P.strstart-=G,P.block_start-=G,q=I=P.hash_size;F=P.head[--q],P.head[q]=G<=F?F-G:0,--I;);for(q=I=G;F=P.prev[--q],P.prev[q]=G<=F?F-G:0,--I;);H+=G}if(P.strm.avail_in===0)break;if(J=P.strm,Y=P.window,K=P.strstart+P.lookahead,nt=void 0,(et=H)<(nt=J.avail_in)&&(nt=et),I=nt===0?0:(J.avail_in-=nt,p.arraySet(Y,J.input,J.next_in,nt,K),J.state.wrap===1?J.adler=_(J.adler,Y,nt,K):J.state.wrap===2&&(J.adler=k(J.adler,Y,nt,K)),J.next_in+=nt,J.total_in+=nt,nt),P.lookahead+=I,P.lookahead+P.insert>=3)for(W=P.strstart-P.insert,P.ins_h=P.window[W],P.ins_h=(P.ins_h<<P.hash_shift^P.window[W+1])&P.hash_mask;P.insert&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[W+3-1])&P.hash_mask,P.prev[W&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=W,W++,P.insert--,!(P.lookahead+P.insert<3)););}while(P.lookahead<A&&P.strm.avail_in!==0)}function x(P,q){for(var I,F;;){if(P.lookahead<A){if(y(P),P.lookahead<A&&q===0)return 1;if(P.lookahead===0)break}if(I=0,P.lookahead>=3&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+3-1])&P.hash_mask,I=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),I!==0&&P.strstart-I<=P.w_size-A&&(P.match_length=v(P,I)),P.match_length>=3)if(F=m._tr_tally(P,P.strstart-P.match_start,P.match_length-3),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=3){for(P.match_length--;P.strstart++,P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+3-1])&P.hash_mask,I=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart,--P.match_length!=0;);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+1])&P.hash_mask;else F=m._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(F&&(D(P,!1),P.strm.avail_out===0))return 1}return P.insert=P.strstart<2?P.strstart:2,q===4?(D(P,!0),P.strm.avail_out===0?3:4):P.last_lit&&(D(P,!1),P.strm.avail_out===0)?1:2}function C(P,q){for(var I,F,H;;){if(P.lookahead<A){if(y(P),P.lookahead<A&&q===0)return 1;if(P.lookahead===0)break}if(I=0,P.lookahead>=3&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+3-1])&P.hash_mask,I=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=2,I!==0&&P.prev_length<P.max_lazy_match&&P.strstart-I<=P.w_size-A&&(P.match_length=v(P,I),P.match_length<=5&&(P.strategy===1||P.match_length===3&&4096<P.strstart-P.match_start)&&(P.match_length=2)),P.prev_length>=3&&P.match_length<=P.prev_length){for(H=P.strstart+P.lookahead-3,F=m._tr_tally(P,P.strstart-1-P.prev_match,P.prev_length-3),P.lookahead-=P.prev_length-1,P.prev_length-=2;++P.strstart<=H&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+3-1])&P.hash_mask,I=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),--P.prev_length!=0;);if(P.match_available=0,P.match_length=2,P.strstart++,F&&(D(P,!1),P.strm.avail_out===0))return 1}else if(P.match_available){if((F=m._tr_tally(P,0,P.window[P.strstart-1]))&&D(P,!1),P.strstart++,P.lookahead--,P.strm.avail_out===0)return 1}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(F=m._tr_tally(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<2?P.strstart:2,q===4?(D(P,!0),P.strm.avail_out===0?3:4):P.last_lit&&(D(P,!1),P.strm.avail_out===0)?1:2}function N(P,q,I,F,H){this.good_length=P,this.max_lazy=q,this.nice_length=I,this.max_chain=F,this.func=H}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(1146),this.dyn_dtree=new p.Buf16(122),this.bl_tree=new p.Buf16(78),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(16),this.heap=new p.Buf16(573),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(573),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function $(P){var q;return P&&P.state?(P.total_in=P.total_out=0,P.data_type=2,(q=P.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?42:T,P.adler=q.wrap===2?0:1,q.last_flush=0,m._tr_init(q),0):O(P,j)}function V(P){var q=$(P);return q===0&&(function(I){I.window_size=2*I.w_size,B(I.head),I.max_lazy_match=l[I.level].max_lazy,I.good_match=l[I.level].good_length,I.nice_match=l[I.level].nice_length,I.max_chain_length=l[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=2,I.match_available=0,I.ins_h=0})(P.state),q}function X(P,q,I,F,H,W){if(!P)return j;var J=1;if(q===-1&&(q=6),F<0?(J=0,F=-F):15<F&&(J=2,F-=16),H<1||9<H||I!==8||F<8||15<F||q<0||9<q||W<0||4<W)return O(P,j);F===8&&(F=9);var Y=new R;return(P.state=Y).strm=P,Y.wrap=J,Y.gzhead=null,Y.w_bits=F,Y.w_size=1<<Y.w_bits,Y.w_mask=Y.w_size-1,Y.hash_bits=H+7,Y.hash_size=1<<Y.hash_bits,Y.hash_mask=Y.hash_size-1,Y.hash_shift=~~((Y.hash_bits+3-1)/3),Y.window=new p.Buf8(2*Y.w_size),Y.head=new p.Buf16(Y.hash_size),Y.prev=new p.Buf16(Y.w_size),Y.lit_bufsize=1<<H+6,Y.pending_buf_size=4*Y.lit_bufsize,Y.pending_buf=new p.Buf8(Y.pending_buf_size),Y.d_buf=1*Y.lit_bufsize,Y.l_buf=3*Y.lit_bufsize,Y.level=q,Y.strategy=W,Y.method=I,V(P)}l=[new N(0,0,0,0,(function(P,q){var I=65535;for(I>P.pending_buf_size-5&&(I=P.pending_buf_size-5);;){if(P.lookahead<=1){if(y(P),P.lookahead===0&&q===0)return 1;if(P.lookahead===0)break}P.strstart+=P.lookahead,P.lookahead=0;var F=P.block_start+I;if((P.strstart===0||P.strstart>=F)&&(P.lookahead=P.strstart-F,P.strstart=F,D(P,!1),P.strm.avail_out===0)||P.strstart-P.block_start>=P.w_size-A&&(D(P,!1),P.strm.avail_out===0))return 1}return P.insert=0,q===4?(D(P,!0),P.strm.avail_out===0?3:4):(P.strstart>P.block_start&&(D(P,!1),P.strm.avail_out),1)})),new N(4,4,8,4,x),new N(4,5,16,8,x),new N(4,6,32,32,x),new N(4,4,16,16,C),new N(8,16,32,32,C),new N(8,16,128,128,C),new N(8,32,128,256,C),new N(32,128,258,1024,C),new N(32,258,258,4096,C)],f.deflateInit=function(P,q){return X(P,q,8,15,8,0)},f.deflateInit2=X,f.deflateReset=V,f.deflateResetKeep=$,f.deflateSetHeader=function(P,q){return P&&P.state?P.state.wrap!==2?j:(P.state.gzhead=q,0):j},f.deflate=function(P,q){var I,F,H,W;if(!P||!P.state||5<q||q<0)return P?O(P,j):j;if(F=P.state,!P.output||!P.input&&P.avail_in!==0||F.status===666&&q!==4)return O(P,P.avail_out===0?-5:j);if(F.strm=P,I=F.last_flush,F.last_flush=q,F.status===42)if(F.wrap===2)P.adler=0,w(F,31),w(F,139),w(F,8),F.gzhead?(w(F,(F.gzhead.text?1:0)+(F.gzhead.hcrc?2:0)+(F.gzhead.extra?4:0)+(F.gzhead.name?8:0)+(F.gzhead.comment?16:0)),w(F,255&F.gzhead.time),w(F,F.gzhead.time>>8&255),w(F,F.gzhead.time>>16&255),w(F,F.gzhead.time>>24&255),w(F,F.level===9?2:2<=F.strategy||F.level<2?4:0),w(F,255&F.gzhead.os),F.gzhead.extra&&F.gzhead.extra.length&&(w(F,255&F.gzhead.extra.length),w(F,F.gzhead.extra.length>>8&255)),F.gzhead.hcrc&&(P.adler=k(P.adler,F.pending_buf,F.pending,0)),F.gzindex=0,F.status=69):(w(F,0),w(F,0),w(F,0),w(F,0),w(F,0),w(F,F.level===9?2:2<=F.strategy||F.level<2?4:0),w(F,3),F.status=T);else{var J=8+(F.w_bits-8<<4)<<8;J|=(2<=F.strategy||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6,F.strstart!==0&&(J|=32),J+=31-J%31,F.status=T,d(F,J),F.strstart!==0&&(d(F,P.adler>>>16),d(F,65535&P.adler)),P.adler=1}if(F.status===69)if(F.gzhead.extra){for(H=F.pending;F.gzindex<(65535&F.gzhead.extra.length)&&(F.pending!==F.pending_buf_size||(F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),S(P),H=F.pending,F.pending!==F.pending_buf_size));)w(F,255&F.gzhead.extra[F.gzindex]),F.gzindex++;F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),F.gzindex===F.gzhead.extra.length&&(F.gzindex=0,F.status=73)}else F.status=73;if(F.status===73)if(F.gzhead.name){H=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),S(P),H=F.pending,F.pending===F.pending_buf_size)){W=1;break}W=F.gzindex<F.gzhead.name.length?255&F.gzhead.name.charCodeAt(F.gzindex++):0,w(F,W)}while(W!==0);F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),W===0&&(F.gzindex=0,F.status=91)}else F.status=91;if(F.status===91)if(F.gzhead.comment){H=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),S(P),H=F.pending,F.pending===F.pending_buf_size)){W=1;break}W=F.gzindex<F.gzhead.comment.length?255&F.gzhead.comment.charCodeAt(F.gzindex++):0,w(F,W)}while(W!==0);F.gzhead.hcrc&&F.pending>H&&(P.adler=k(P.adler,F.pending_buf,F.pending-H,H)),W===0&&(F.status=103)}else F.status=103;if(F.status===103&&(F.gzhead.hcrc?(F.pending+2>F.pending_buf_size&&S(P),F.pending+2<=F.pending_buf_size&&(w(F,255&P.adler),w(F,P.adler>>8&255),P.adler=0,F.status=T)):F.status=T),F.pending!==0){if(S(P),P.avail_out===0)return F.last_flush=-1,0}else if(P.avail_in===0&&L(q)<=L(I)&&q!==4)return O(P,-5);if(F.status===666&&P.avail_in!==0)return O(P,-5);if(P.avail_in!==0||F.lookahead!==0||q!==0&&F.status!==666){var Y=F.strategy===2?(function(K,et){for(var nt;;){if(K.lookahead===0&&(y(K),K.lookahead===0)){if(et===0)return 1;break}if(K.match_length=0,nt=m._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,nt&&(D(K,!1),K.strm.avail_out===0))return 1}return K.insert=0,et===4?(D(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(D(K,!1),K.strm.avail_out===0)?1:2})(F,q):F.strategy===3?(function(K,et){for(var nt,G,tt,Q,st=K.window;;){if(K.lookahead<=z){if(y(K),K.lookahead<=z&&et===0)return 1;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=3&&0<K.strstart&&(G=st[tt=K.strstart-1])===st[++tt]&&G===st[++tt]&&G===st[++tt]){Q=K.strstart+z;do;while(G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&G===st[++tt]&&tt<Q);K.match_length=z-(Q-tt),K.match_length>K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=3?(nt=m._tr_tally(K,1,K.match_length-3),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(nt=m._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),nt&&(D(K,!1),K.strm.avail_out===0))return 1}return K.insert=0,et===4?(D(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(D(K,!1),K.strm.avail_out===0)?1:2})(F,q):l[F.level].func(F,q);if(Y!==3&&Y!==4||(F.status=666),Y===1||Y===3)return P.avail_out===0&&(F.last_flush=-1),0;if(Y===2&&(q===1?m._tr_align(F):q!==5&&(m._tr_stored_block(F,0,0,!1),q===3&&(B(F.head),F.lookahead===0&&(F.strstart=0,F.block_start=0,F.insert=0))),S(P),P.avail_out===0))return F.last_flush=-1,0}return q!==4?0:F.wrap<=0?1:(F.wrap===2?(w(F,255&P.adler),w(F,P.adler>>8&255),w(F,P.adler>>16&255),w(F,P.adler>>24&255),w(F,255&P.total_in),w(F,P.total_in>>8&255),w(F,P.total_in>>16&255),w(F,P.total_in>>24&255)):(d(F,P.adler>>>16),d(F,65535&P.adler)),S(P),0<F.wrap&&(F.wrap=-F.wrap),F.pending!==0?0:1)},f.deflateEnd=function(P){var q;return P&&P.state?(q=P.state.status)!==42&&q!==69&&q!==73&&q!==91&&q!==103&&q!==T&&q!==666?O(P,j):(P.state=null,q===T?O(P,-3):0):j},f.deflateSetDictionary=function(P,q){var I,F,H,W,J,Y,K,et,nt=q.length;if(!P||!P.state||(W=(I=P.state).wrap)===2||W===1&&I.status!==42||I.lookahead)return j;for(W===1&&(P.adler=_(P.adler,q,nt,0)),I.wrap=0,nt>=I.w_size&&(W===0&&(B(I.head),I.strstart=0,I.block_start=0,I.insert=0),et=new p.Buf8(I.w_size),p.arraySet(et,q,nt-I.w_size,I.w_size,0),q=et,nt=I.w_size),J=P.avail_in,Y=P.next_in,K=P.input,P.avail_in=nt,P.next_in=0,P.input=q,y(I);I.lookahead>=3;){for(F=I.strstart,H=I.lookahead-2;I.ins_h=(I.ins_h<<I.hash_shift^I.window[F+3-1])&I.hash_mask,I.prev[F&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=F,F++,--H;);I.strstart=F,I.lookahead=2,y(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=2,I.match_available=0,P.next_in=Y,P.input=K,P.avail_in=J,I.wrap=W,0},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(s,h,f){h.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(s,h,f){h.exports=function(l,p){var m,_,k,M,j,z,A,T,O,L,B,S,D,w,d,v,y,x,C,N,R,$,V,X,P;m=l.state,_=l.next_in,X=l.input,k=_+(l.avail_in-5),M=l.next_out,P=l.output,j=M-(p-l.avail_out),z=M+(l.avail_out-257),A=m.dmax,T=m.wsize,O=m.whave,L=m.wnext,B=m.window,S=m.hold,D=m.bits,w=m.lencode,d=m.distcode,v=(1<<m.lenbits)-1,y=(1<<m.distbits)-1;t:do{D<15&&(S+=X[_++]<<D,D+=8,S+=X[_++]<<D,D+=8),x=w[S&v];e:for(;;){if(S>>>=C=x>>>24,D-=C,(C=x>>>16&255)==0)P[M++]=65535&x;else{if(!(16&C)){if((64&C)==0){x=w[(65535&x)+(S&(1<<C)-1)];continue e}if(32&C){m.mode=12;break t}l.msg="invalid literal/length code",m.mode=30;break t}N=65535&x,(C&=15)&&(D<C&&(S+=X[_++]<<D,D+=8),N+=S&(1<<C)-1,S>>>=C,D-=C),D<15&&(S+=X[_++]<<D,D+=8,S+=X[_++]<<D,D+=8),x=d[S&y];r:for(;;){if(S>>>=C=x>>>24,D-=C,!(16&(C=x>>>16&255))){if((64&C)==0){x=d[(65535&x)+(S&(1<<C)-1)];continue r}l.msg="invalid distance code",m.mode=30;break t}if(R=65535&x,D<(C&=15)&&(S+=X[_++]<<D,(D+=8)<C&&(S+=X[_++]<<D,D+=8)),A<(R+=S&(1<<C)-1)){l.msg="invalid distance too far back",m.mode=30;break t}if(S>>>=C,D-=C,(C=M-j)<R){if(O<(C=R-C)&&m.sane){l.msg="invalid distance too far back",m.mode=30;break t}if(V=B,($=0)===L){if($+=T-C,C<N){for(N-=C;P[M++]=B[$++],--C;);$=M-R,V=P}}else if(L<C){if($+=T+L-C,(C-=L)<N){for(N-=C;P[M++]=B[$++],--C;);if($=0,L<N){for(N-=C=L;P[M++]=B[$++],--C;);$=M-R,V=P}}}else if($+=L-C,C<N){for(N-=C;P[M++]=B[$++],--C;);$=M-R,V=P}for(;2<N;)P[M++]=V[$++],P[M++]=V[$++],P[M++]=V[$++],N-=3;N&&(P[M++]=V[$++],1<N&&(P[M++]=V[$++]))}else{for($=M-R;P[M++]=P[$++],P[M++]=P[$++],P[M++]=P[$++],2<(N-=3););N&&(P[M++]=P[$++],1<N&&(P[M++]=P[$++]))}break}}break}}while(_<k&&M<z);_-=N=D>>3,S&=(1<<(D-=N<<3))-1,l.next_in=_,l.next_out=M,l.avail_in=_<k?k-_+5:5-(_-k),l.avail_out=M<z?z-M+257:257-(M-z),m.hold=S,m.bits=D}},{}],49:[function(s,h,f){var l=s("../utils/common"),p=s("./adler32"),m=s("./crc32"),_=s("./inffast"),k=s("./inftrees"),M=-2;function j(v){return(v>>>24&255)+(v>>>8&65280)+((65280&v)<<8)+((255&v)<<24)}function z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(v){var y;return v&&v.state?(y=v.state,v.total_in=v.total_out=y.total=0,v.msg="",y.wrap&&(v.adler=1&y.wrap),y.mode=1,y.last=0,y.havedict=0,y.dmax=32768,y.head=null,y.hold=0,y.bits=0,y.lencode=y.lendyn=new l.Buf32(852),y.distcode=y.distdyn=new l.Buf32(592),y.sane=1,y.back=-1,0):M}function T(v){var y;return v&&v.state?((y=v.state).wsize=0,y.whave=0,y.wnext=0,A(v)):M}function O(v,y){var x,C;return v&&v.state?(C=v.state,y<0?(x=0,y=-y):(x=1+(y>>4),y<48&&(y&=15)),y&&(y<8||15<y)?M:(C.window!==null&&C.wbits!==y&&(C.window=null),C.wrap=x,C.wbits=y,T(v))):M}function L(v,y){var x,C;return v?(C=new z,(v.state=C).window=null,(x=O(v,y))!==0&&(v.state=null),x):M}var B,S,D=!0;function w(v){if(D){var y;for(B=new l.Buf32(512),S=new l.Buf32(32),y=0;y<144;)v.lens[y++]=8;for(;y<256;)v.lens[y++]=9;for(;y<280;)v.lens[y++]=7;for(;y<288;)v.lens[y++]=8;for(k(1,v.lens,0,288,B,0,v.work,{bits:9}),y=0;y<32;)v.lens[y++]=5;k(2,v.lens,0,32,S,0,v.work,{bits:5}),D=!1}v.lencode=B,v.lenbits=9,v.distcode=S,v.distbits=5}function d(v,y,x,C){var N,R=v.state;return R.window===null&&(R.wsize=1<<R.wbits,R.wnext=0,R.whave=0,R.window=new l.Buf8(R.wsize)),C>=R.wsize?(l.arraySet(R.window,y,x-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(C<(N=R.wsize-R.wnext)&&(N=C),l.arraySet(R.window,y,x-C,N,R.wnext),(C-=N)?(l.arraySet(R.window,y,x-C,C,0),R.wnext=C,R.whave=R.wsize):(R.wnext+=N,R.wnext===R.wsize&&(R.wnext=0),R.whave<R.wsize&&(R.whave+=N))),0}f.inflateReset=T,f.inflateReset2=O,f.inflateResetKeep=A,f.inflateInit=function(v){return L(v,15)},f.inflateInit2=L,f.inflate=function(v,y){var x,C,N,R,$,V,X,P,q,I,F,H,W,J,Y,K,et,nt,G,tt,Q,st,it,ot,ct=0,ht=new l.Buf8(4),bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!v||!v.state||!v.output||!v.input&&v.avail_in!==0)return M;(x=v.state).mode===12&&(x.mode=13),$=v.next_out,N=v.output,X=v.avail_out,R=v.next_in,C=v.input,V=v.avail_in,P=x.hold,q=x.bits,I=V,F=X,st=0;t:for(;;)switch(x.mode){case 1:if(x.wrap===0){x.mode=13;break}for(;q<16;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(2&x.wrap&&P===35615){ht[x.check=0]=255&P,ht[1]=P>>>8&255,x.check=m(x.check,ht,2,0),q=P=0,x.mode=2;break}if(x.flags=0,x.head&&(x.head.done=!1),!(1&x.wrap)||(((255&P)<<8)+(P>>8))%31){v.msg="incorrect header check",x.mode=30;break}if((15&P)!=8){v.msg="unknown compression method",x.mode=30;break}if(q-=4,Q=8+(15&(P>>>=4)),x.wbits===0)x.wbits=Q;else if(Q>x.wbits){v.msg="invalid window size",x.mode=30;break}x.dmax=1<<Q,v.adler=x.check=1,x.mode=512&P?10:12,q=P=0;break;case 2:for(;q<16;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(x.flags=P,(255&x.flags)!=8){v.msg="unknown compression method",x.mode=30;break}if(57344&x.flags){v.msg="unknown header flags set",x.mode=30;break}x.head&&(x.head.text=P>>8&1),512&x.flags&&(ht[0]=255&P,ht[1]=P>>>8&255,x.check=m(x.check,ht,2,0)),q=P=0,x.mode=3;case 3:for(;q<32;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.head&&(x.head.time=P),512&x.flags&&(ht[0]=255&P,ht[1]=P>>>8&255,ht[2]=P>>>16&255,ht[3]=P>>>24&255,x.check=m(x.check,ht,4,0)),q=P=0,x.mode=4;case 4:for(;q<16;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.head&&(x.head.xflags=255&P,x.head.os=P>>8),512&x.flags&&(ht[0]=255&P,ht[1]=P>>>8&255,x.check=m(x.check,ht,2,0)),q=P=0,x.mode=5;case 5:if(1024&x.flags){for(;q<16;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.length=P,x.head&&(x.head.extra_len=P),512&x.flags&&(ht[0]=255&P,ht[1]=P>>>8&255,x.check=m(x.check,ht,2,0)),q=P=0}else x.head&&(x.head.extra=null);x.mode=6;case 6:if(1024&x.flags&&(V<(H=x.length)&&(H=V),H&&(x.head&&(Q=x.head.extra_len-x.length,x.head.extra||(x.head.extra=new Array(x.head.extra_len)),l.arraySet(x.head.extra,C,R,H,Q)),512&x.flags&&(x.check=m(x.check,C,H,R)),V-=H,R+=H,x.length-=H),x.length))break t;x.length=0,x.mode=7;case 7:if(2048&x.flags){if(V===0)break t;for(H=0;Q=C[R+H++],x.head&&Q&&x.length<65536&&(x.head.name+=String.fromCharCode(Q)),Q&&H<V;);if(512&x.flags&&(x.check=m(x.check,C,H,R)),V-=H,R+=H,Q)break t}else x.head&&(x.head.name=null);x.length=0,x.mode=8;case 8:if(4096&x.flags){if(V===0)break t;for(H=0;Q=C[R+H++],x.head&&Q&&x.length<65536&&(x.head.comment+=String.fromCharCode(Q)),Q&&H<V;);if(512&x.flags&&(x.check=m(x.check,C,H,R)),V-=H,R+=H,Q)break t}else x.head&&(x.head.comment=null);x.mode=9;case 9:if(512&x.flags){for(;q<16;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(P!==(65535&x.check)){v.msg="header crc mismatch",x.mode=30;break}q=P=0}x.head&&(x.head.hcrc=x.flags>>9&1,x.head.done=!0),v.adler=x.check=0,x.mode=12;break;case 10:for(;q<32;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}v.adler=x.check=j(P),q=P=0,x.mode=11;case 11:if(x.havedict===0)return v.next_out=$,v.avail_out=X,v.next_in=R,v.avail_in=V,x.hold=P,x.bits=q,2;v.adler=x.check=1,x.mode=12;case 12:if(y===5||y===6)break t;case 13:if(x.last){P>>>=7&q,q-=7&q,x.mode=27;break}for(;q<3;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}switch(x.last=1&P,q-=1,3&(P>>>=1)){case 0:x.mode=14;break;case 1:if(w(x),x.mode=20,y!==6)break;P>>>=2,q-=2;break t;case 2:x.mode=17;break;case 3:v.msg="invalid block type",x.mode=30}P>>>=2,q-=2;break;case 14:for(P>>>=7&q,q-=7&q;q<32;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if((65535&P)!=(P>>>16^65535)){v.msg="invalid stored block lengths",x.mode=30;break}if(x.length=65535&P,q=P=0,x.mode=15,y===6)break t;case 15:x.mode=16;case 16:if(H=x.length){if(V<H&&(H=V),X<H&&(H=X),H===0)break t;l.arraySet(N,C,R,H,$),V-=H,R+=H,X-=H,$+=H,x.length-=H;break}x.mode=12;break;case 17:for(;q<14;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(x.nlen=257+(31&P),P>>>=5,q-=5,x.ndist=1+(31&P),P>>>=5,q-=5,x.ncode=4+(15&P),P>>>=4,q-=4,286<x.nlen||30<x.ndist){v.msg="too many length or distance symbols",x.mode=30;break}x.have=0,x.mode=18;case 18:for(;x.have<x.ncode;){for(;q<3;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.lens[bt[x.have++]]=7&P,P>>>=3,q-=3}for(;x.have<19;)x.lens[bt[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,it={bits:x.lenbits},st=k(0,x.lens,0,19,x.lencode,0,x.work,it),x.lenbits=it.bits,st){v.msg="invalid code lengths set",x.mode=30;break}x.have=0,x.mode=19;case 19:for(;x.have<x.nlen+x.ndist;){for(;K=(ct=x.lencode[P&(1<<x.lenbits)-1])>>>16&255,et=65535&ct,!((Y=ct>>>24)<=q);){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(et<16)P>>>=Y,q-=Y,x.lens[x.have++]=et;else{if(et===16){for(ot=Y+2;q<ot;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(P>>>=Y,q-=Y,x.have===0){v.msg="invalid bit length repeat",x.mode=30;break}Q=x.lens[x.have-1],H=3+(3&P),P>>>=2,q-=2}else if(et===17){for(ot=Y+3;q<ot;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}q-=Y,Q=0,H=3+(7&(P>>>=Y)),P>>>=3,q-=3}else{for(ot=Y+7;q<ot;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}q-=Y,Q=0,H=11+(127&(P>>>=Y)),P>>>=7,q-=7}if(x.have+H>x.nlen+x.ndist){v.msg="invalid bit length repeat",x.mode=30;break}for(;H--;)x.lens[x.have++]=Q}}if(x.mode===30)break;if(x.lens[256]===0){v.msg="invalid code -- missing end-of-block",x.mode=30;break}if(x.lenbits=9,it={bits:x.lenbits},st=k(1,x.lens,0,x.nlen,x.lencode,0,x.work,it),x.lenbits=it.bits,st){v.msg="invalid literal/lengths set",x.mode=30;break}if(x.distbits=6,x.distcode=x.distdyn,it={bits:x.distbits},st=k(2,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,it),x.distbits=it.bits,st){v.msg="invalid distances set",x.mode=30;break}if(x.mode=20,y===6)break t;case 20:x.mode=21;case 21:if(6<=V&&258<=X){v.next_out=$,v.avail_out=X,v.next_in=R,v.avail_in=V,x.hold=P,x.bits=q,_(v,F),$=v.next_out,N=v.output,X=v.avail_out,R=v.next_in,C=v.input,V=v.avail_in,P=x.hold,q=x.bits,x.mode===12&&(x.back=-1);break}for(x.back=0;K=(ct=x.lencode[P&(1<<x.lenbits)-1])>>>16&255,et=65535&ct,!((Y=ct>>>24)<=q);){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(K&&(240&K)==0){for(nt=Y,G=K,tt=et;K=(ct=x.lencode[tt+((P&(1<<nt+G)-1)>>nt)])>>>16&255,et=65535&ct,!(nt+(Y=ct>>>24)<=q);){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}P>>>=nt,q-=nt,x.back+=nt}if(P>>>=Y,q-=Y,x.back+=Y,x.length=et,K===0){x.mode=26;break}if(32&K){x.back=-1,x.mode=12;break}if(64&K){v.msg="invalid literal/length code",x.mode=30;break}x.extra=15&K,x.mode=22;case 22:if(x.extra){for(ot=x.extra;q<ot;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.length+=P&(1<<x.extra)-1,P>>>=x.extra,q-=x.extra,x.back+=x.extra}x.was=x.length,x.mode=23;case 23:for(;K=(ct=x.distcode[P&(1<<x.distbits)-1])>>>16&255,et=65535&ct,!((Y=ct>>>24)<=q);){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if((240&K)==0){for(nt=Y,G=K,tt=et;K=(ct=x.distcode[tt+((P&(1<<nt+G)-1)>>nt)])>>>16&255,et=65535&ct,!(nt+(Y=ct>>>24)<=q);){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}P>>>=nt,q-=nt,x.back+=nt}if(P>>>=Y,q-=Y,x.back+=Y,64&K){v.msg="invalid distance code",x.mode=30;break}x.offset=et,x.extra=15&K,x.mode=24;case 24:if(x.extra){for(ot=x.extra;q<ot;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}x.offset+=P&(1<<x.extra)-1,P>>>=x.extra,q-=x.extra,x.back+=x.extra}if(x.offset>x.dmax){v.msg="invalid distance too far back",x.mode=30;break}x.mode=25;case 25:if(X===0)break t;if(H=F-X,x.offset>H){if((H=x.offset-H)>x.whave&&x.sane){v.msg="invalid distance too far back",x.mode=30;break}W=H>x.wnext?(H-=x.wnext,x.wsize-H):x.wnext-H,H>x.length&&(H=x.length),J=x.window}else J=N,W=$-x.offset,H=x.length;for(X<H&&(H=X),X-=H,x.length-=H;N[$++]=J[W++],--H;);x.length===0&&(x.mode=21);break;case 26:if(X===0)break t;N[$++]=x.length,X--,x.mode=21;break;case 27:if(x.wrap){for(;q<32;){if(V===0)break t;V--,P|=C[R++]<<q,q+=8}if(F-=X,v.total_out+=F,x.total+=F,F&&(v.adler=x.check=x.flags?m(x.check,N,F,$-F):p(x.check,N,F,$-F)),F=X,(x.flags?P:j(P))!==x.check){v.msg="incorrect data check",x.mode=30;break}q=P=0}x.mode=28;case 28:if(x.wrap&&x.flags){for(;q<32;){if(V===0)break t;V--,P+=C[R++]<<q,q+=8}if(P!==(4294967295&x.total)){v.msg="incorrect length check",x.mode=30;break}q=P=0}x.mode=29;case 29:st=1;break t;case 30:st=-3;break t;case 31:return-4;default:return M}return v.next_out=$,v.avail_out=X,v.next_in=R,v.avail_in=V,x.hold=P,x.bits=q,(x.wsize||F!==v.avail_out&&x.mode<30&&(x.mode<27||y!==4))&&d(v,v.output,v.next_out,F-v.avail_out)?(x.mode=31,-4):(I-=v.avail_in,F-=v.avail_out,v.total_in+=I,v.total_out+=F,x.total+=F,x.wrap&&F&&(v.adler=x.check=x.flags?m(x.check,N,F,v.next_out-F):p(x.check,N,F,v.next_out-F)),v.data_type=x.bits+(x.last?64:0)+(x.mode===12?128:0)+(x.mode===20||x.mode===15?256:0),(I==0&&F===0||y===4)&&st===0&&(st=-5),st)},f.inflateEnd=function(v){if(!v||!v.state)return M;var y=v.state;return y.window&&(y.window=null),v.state=null,0},f.inflateGetHeader=function(v,y){var x;return v&&v.state?(2&(x=v.state).wrap)==0?M:((x.head=y).done=!1,0):M},f.inflateSetDictionary=function(v,y){var x,C=y.length;return v&&v.state?(x=v.state).wrap!==0&&x.mode!==11?M:x.mode===11&&p(1,y,C,0)!==x.check?-3:d(v,y,C,C)?(x.mode=31,-4):(x.havedict=1,0):M},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(s,h,f){var l=s("../utils/common"),p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],m=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],k=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];h.exports=function(M,j,z,A,T,O,L,B){var S,D,w,d,v,y,x,C,N,R=B.bits,$=0,V=0,X=0,P=0,q=0,I=0,F=0,H=0,W=0,J=0,Y=null,K=0,et=new l.Buf16(16),nt=new l.Buf16(16),G=null,tt=0;for($=0;$<=15;$++)et[$]=0;for(V=0;V<A;V++)et[j[z+V]]++;for(q=R,P=15;1<=P&&et[P]===0;P--);if(P<q&&(q=P),P===0)return T[O++]=20971520,T[O++]=20971520,B.bits=1,0;for(X=1;X<P&&et[X]===0;X++);for(q<X&&(q=X),$=H=1;$<=15;$++)if(H<<=1,(H-=et[$])<0)return-1;if(0<H&&(M===0||P!==1))return-1;for(nt[1]=0,$=1;$<15;$++)nt[$+1]=nt[$]+et[$];for(V=0;V<A;V++)j[z+V]!==0&&(L[nt[j[z+V]]++]=V);if(y=M===0?(Y=G=L,19):M===1?(Y=p,K-=257,G=m,tt-=257,256):(Y=_,G=k,-1),$=X,v=O,F=V=J=0,w=-1,d=(W=1<<(I=q))-1,M===1&&852<W||M===2&&592<W)return 1;for(;;){for(x=$-F,N=L[V]<y?(C=0,L[V]):L[V]>y?(C=G[tt+L[V]],Y[K+L[V]]):(C=96,0),S=1<<$-F,X=D=1<<I;T[v+(J>>F)+(D-=S)]=x<<24|C<<16|N|0,D!==0;);for(S=1<<$-1;J&S;)S>>=1;if(S!==0?(J&=S-1,J+=S):J=0,V++,--et[$]==0){if($===P)break;$=j[z+L[V]]}if(q<$&&(J&d)!==w){for(F===0&&(F=q),v+=X,H=1<<(I=$-F);I+F<P&&!((H-=et[I+F])<=0);)I++,H<<=1;if(W+=1<<I,M===1&&852<W||M===2&&592<W)return 1;T[w=J&d]=q<<24|I<<16|v-O|0}}return J!==0&&(T[v+J]=$-F<<24|64<<16|0),B.bits=q,0}},{"../utils/common":41}],51:[function(s,h,f){h.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(s,h,f){var l=s("../utils/common");function p(G){for(var tt=G.length;0<=--tt;)G[tt]=0}var m=256,_=286,k=30,M=15,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(576);p(O);var L=new Array(60);p(L);var B=new Array(512);p(B);var S=new Array(256);p(S);var D=new Array(29);p(D);var w,d,v,y=new Array(k);function x(G,tt,Q,st,it){this.static_tree=G,this.extra_bits=tt,this.extra_base=Q,this.elems=st,this.max_length=it,this.has_stree=G&&G.length}function C(G,tt){this.dyn_tree=G,this.max_code=0,this.stat_desc=tt}function N(G){return G<256?B[G]:B[256+(G>>>7)]}function R(G,tt){G.pending_buf[G.pending++]=255&tt,G.pending_buf[G.pending++]=tt>>>8&255}function $(G,tt,Q){G.bi_valid>16-Q?(G.bi_buf|=tt<<G.bi_valid&65535,R(G,G.bi_buf),G.bi_buf=tt>>16-G.bi_valid,G.bi_valid+=Q-16):(G.bi_buf|=tt<<G.bi_valid&65535,G.bi_valid+=Q)}function V(G,tt,Q){$(G,Q[2*tt],Q[2*tt+1])}function X(G,tt){for(var Q=0;Q|=1&G,G>>>=1,Q<<=1,0<--tt;);return Q>>>1}function P(G,tt,Q){var st,it,ot=new Array(16),ct=0;for(st=1;st<=M;st++)ot[st]=ct=ct+Q[st-1]<<1;for(it=0;it<=tt;it++){var ht=G[2*it+1];ht!==0&&(G[2*it]=X(ot[ht]++,ht))}}function q(G){var tt;for(tt=0;tt<_;tt++)G.dyn_ltree[2*tt]=0;for(tt=0;tt<k;tt++)G.dyn_dtree[2*tt]=0;for(tt=0;tt<19;tt++)G.bl_tree[2*tt]=0;G.dyn_ltree[512]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function I(G){8<G.bi_valid?R(G,G.bi_buf):0<G.bi_valid&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function F(G,tt,Q,st){var it=2*tt,ot=2*Q;return G[it]<G[ot]||G[it]===G[ot]&&st[tt]<=st[Q]}function H(G,tt,Q){for(var st=G.heap[Q],it=Q<<1;it<=G.heap_len&&(it<G.heap_len&&F(tt,G.heap[it+1],G.heap[it],G.depth)&&it++,!F(tt,st,G.heap[it],G.depth));)G.heap[Q]=G.heap[it],Q=it,it<<=1;G.heap[Q]=st}function W(G,tt,Q){var st,it,ot,ct,ht=0;if(G.last_lit!==0)for(;st=G.pending_buf[G.d_buf+2*ht]<<8|G.pending_buf[G.d_buf+2*ht+1],it=G.pending_buf[G.l_buf+ht],ht++,st===0?V(G,it,tt):(V(G,(ot=S[it])+m+1,tt),(ct=j[ot])!==0&&$(G,it-=D[ot],ct),V(G,ot=N(--st),Q),(ct=z[ot])!==0&&$(G,st-=y[ot],ct)),ht<G.last_lit;);V(G,256,tt)}function J(G,tt){var Q,st,it,ot=tt.dyn_tree,ct=tt.stat_desc.static_tree,ht=tt.stat_desc.has_stree,bt=tt.stat_desc.elems,kt=-1;for(G.heap_len=0,G.heap_max=573,Q=0;Q<bt;Q++)ot[2*Q]!==0?(G.heap[++G.heap_len]=kt=Q,G.depth[Q]=0):ot[2*Q+1]=0;for(;G.heap_len<2;)ot[2*(it=G.heap[++G.heap_len]=kt<2?++kt:0)]=1,G.depth[it]=0,G.opt_len--,ht&&(G.static_len-=ct[2*it+1]);for(tt.max_code=kt,Q=G.heap_len>>1;1<=Q;Q--)H(G,ot,Q);for(it=bt;Q=G.heap[1],G.heap[1]=G.heap[G.heap_len--],H(G,ot,1),st=G.heap[1],G.heap[--G.heap_max]=Q,G.heap[--G.heap_max]=st,ot[2*it]=ot[2*Q]+ot[2*st],G.depth[it]=(G.depth[Q]>=G.depth[st]?G.depth[Q]:G.depth[st])+1,ot[2*Q+1]=ot[2*st+1]=it,G.heap[1]=it++,H(G,ot,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],(function(St,wt){var Nt,Ft,It,Bt,Ct,yt,Dt=wt.dyn_tree,Mt=wt.max_code,At=wt.stat_desc.static_tree,ee=wt.stat_desc.has_stree,le=wt.stat_desc.extra_bits,Pt=wt.stat_desc.extra_base,ae=wt.stat_desc.max_length,Qt=0;for(Bt=0;Bt<=M;Bt++)St.bl_count[Bt]=0;for(Dt[2*St.heap[St.heap_max]+1]=0,Nt=St.heap_max+1;Nt<573;Nt++)ae<(Bt=Dt[2*Dt[2*(Ft=St.heap[Nt])+1]+1]+1)&&(Bt=ae,Qt++),Dt[2*Ft+1]=Bt,Mt<Ft||(St.bl_count[Bt]++,Ct=0,Pt<=Ft&&(Ct=le[Ft-Pt]),yt=Dt[2*Ft],St.opt_len+=yt*(Bt+Ct),ee&&(St.static_len+=yt*(At[2*Ft+1]+Ct)));if(Qt!==0){do{for(Bt=ae-1;St.bl_count[Bt]===0;)Bt--;St.bl_count[Bt]--,St.bl_count[Bt+1]+=2,St.bl_count[ae]--,Qt-=2}while(0<Qt);for(Bt=ae;Bt!==0;Bt--)for(Ft=St.bl_count[Bt];Ft!==0;)Mt<(It=St.heap[--Nt])||(Dt[2*It+1]!==Bt&&(St.opt_len+=(Bt-Dt[2*It+1])*Dt[2*It],Dt[2*It+1]=Bt),Ft--)}})(G,tt),P(ot,kt,G.bl_count)}function Y(G,tt,Q){var st,it,ot=-1,ct=tt[1],ht=0,bt=7,kt=4;for(ct===0&&(bt=138,kt=3),tt[2*(Q+1)+1]=65535,st=0;st<=Q;st++)it=ct,ct=tt[2*(st+1)+1],++ht<bt&&it===ct||(ht<kt?G.bl_tree[2*it]+=ht:it!==0?(it!==ot&&G.bl_tree[2*it]++,G.bl_tree[32]++):ht<=10?G.bl_tree[34]++:G.bl_tree[36]++,ot=it,kt=(ht=0)===ct?(bt=138,3):it===ct?(bt=6,3):(bt=7,4))}function K(G,tt,Q){var st,it,ot=-1,ct=tt[1],ht=0,bt=7,kt=4;for(ct===0&&(bt=138,kt=3),st=0;st<=Q;st++)if(it=ct,ct=tt[2*(st+1)+1],!(++ht<bt&&it===ct)){if(ht<kt)for(;V(G,it,G.bl_tree),--ht!=0;);else it!==0?(it!==ot&&(V(G,it,G.bl_tree),ht--),V(G,16,G.bl_tree),$(G,ht-3,2)):ht<=10?(V(G,17,G.bl_tree),$(G,ht-3,3)):(V(G,18,G.bl_tree),$(G,ht-11,7));ot=it,kt=(ht=0)===ct?(bt=138,3):it===ct?(bt=6,3):(bt=7,4)}}p(y);var et=!1;function nt(G,tt,Q,st){$(G,0+(st?1:0),3),(function(it,ot,ct,ht){I(it),R(it,ct),R(it,~ct),l.arraySet(it.pending_buf,it.window,ot,ct,it.pending),it.pending+=ct})(G,tt,Q)}f._tr_init=function(G){et||((function(){var tt,Q,st,it,ot,ct=new Array(16);for(it=st=0;it<28;it++)for(D[it]=st,tt=0;tt<1<<j[it];tt++)S[st++]=it;for(S[st-1]=it,it=ot=0;it<16;it++)for(y[it]=ot,tt=0;tt<1<<z[it];tt++)B[ot++]=it;for(ot>>=7;it<k;it++)for(y[it]=ot<<7,tt=0;tt<1<<z[it]-7;tt++)B[256+ot++]=it;for(Q=0;Q<=M;Q++)ct[Q]=0;for(tt=0;tt<=143;)O[2*tt+1]=8,tt++,ct[8]++;for(;tt<=255;)O[2*tt+1]=9,tt++,ct[9]++;for(;tt<=279;)O[2*tt+1]=7,tt++,ct[7]++;for(;tt<=287;)O[2*tt+1]=8,tt++,ct[8]++;for(P(O,287,ct),tt=0;tt<k;tt++)L[2*tt+1]=5,L[2*tt]=X(tt,5);w=new x(O,j,257,_,M),d=new x(L,z,0,k,M),v=new x(new Array(0),A,0,19,7)})(),et=!0),G.l_desc=new C(G.dyn_ltree,w),G.d_desc=new C(G.dyn_dtree,d),G.bl_desc=new C(G.bl_tree,v),G.bi_buf=0,G.bi_valid=0,q(G)},f._tr_stored_block=nt,f._tr_flush_block=function(G,tt,Q,st){var it,ot,ct=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=(function(ht){var bt,kt=4093624447;for(bt=0;bt<=31;bt++,kt>>>=1)if(1&kt&&ht.dyn_ltree[2*bt]!==0)return 0;if(ht.dyn_ltree[18]!==0||ht.dyn_ltree[20]!==0||ht.dyn_ltree[26]!==0)return 1;for(bt=32;bt<m;bt++)if(ht.dyn_ltree[2*bt]!==0)return 1;return 0})(G)),J(G,G.l_desc),J(G,G.d_desc),ct=(function(ht){var bt;for(Y(ht,ht.dyn_ltree,ht.l_desc.max_code),Y(ht,ht.dyn_dtree,ht.d_desc.max_code),J(ht,ht.bl_desc),bt=18;3<=bt&&ht.bl_tree[2*T[bt]+1]===0;bt--);return ht.opt_len+=3*(bt+1)+5+5+4,bt})(G),it=G.opt_len+3+7>>>3,(ot=G.static_len+3+7>>>3)<=it&&(it=ot)):it=ot=Q+5,Q+4<=it&&tt!==-1?nt(G,tt,Q,st):G.strategy===4||ot===it?($(G,2+(st?1:0),3),W(G,O,L)):($(G,4+(st?1:0),3),(function(ht,bt,kt,St){var wt;for($(ht,bt-257,5),$(ht,kt-1,5),$(ht,St-4,4),wt=0;wt<St;wt++)$(ht,ht.bl_tree[2*T[wt]+1],3);K(ht,ht.dyn_ltree,bt-1),K(ht,ht.dyn_dtree,kt-1)})(G,G.l_desc.max_code+1,G.d_desc.max_code+1,ct+1),W(G,G.dyn_ltree,G.dyn_dtree)),q(G),st&&I(G)},f._tr_tally=function(G,tt,Q){return G.pending_buf[G.d_buf+2*G.last_lit]=tt>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&tt,G.pending_buf[G.l_buf+G.last_lit]=255&Q,G.last_lit++,tt===0?G.dyn_ltree[2*Q]++:(G.matches++,tt--,G.dyn_ltree[2*(S[Q]+m+1)]++,G.dyn_dtree[2*N(tt)]++),G.last_lit===G.lit_bufsize-1},f._tr_align=function(G){$(G,2,3),V(G,256,O),(function(tt){tt.bi_valid===16?(R(tt,tt.bi_buf),tt.bi_buf=0,tt.bi_valid=0):8<=tt.bi_valid&&(tt.pending_buf[tt.pending++]=255&tt.bi_buf,tt.bi_buf>>=8,tt.bi_valid-=8)})(G)}},{"../utils/common":41}],53:[function(s,h,f){h.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(s,h,f){(function(l){(function(p,m){if(!p.setImmediate){var _,k,M,j,z=1,A={},T=!1,O=p.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(p);L=L&&L.setTimeout?L:p,_={}.toString.call(p.process)==="[object process]"?function(w){c.nextTick((function(){S(w)}))}:(function(){if(p.postMessage&&!p.importScripts){var w=!0,d=p.onmessage;return p.onmessage=function(){w=!1},p.postMessage("","*"),p.onmessage=d,w}})()?(j="setImmediate$"+Math.random()+"$",p.addEventListener?p.addEventListener("message",D,!1):p.attachEvent("onmessage",D),function(w){p.postMessage(j+w,"*")}):p.MessageChannel?((M=new MessageChannel).port1.onmessage=function(w){S(w.data)},function(w){M.port2.postMessage(w)}):O&&"onreadystatechange"in O.createElement("script")?(k=O.documentElement,function(w){var d=O.createElement("script");d.onreadystatechange=function(){S(w),d.onreadystatechange=null,k.removeChild(d),d=null},k.appendChild(d)}):function(w){setTimeout(S,0,w)},L.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var d=new Array(arguments.length-1),v=0;v<d.length;v++)d[v]=arguments[v+1];var y={callback:w,args:d};return A[z]=y,_(z),z++},L.clearImmediate=B}function B(w){delete A[w]}function S(w){if(T)setTimeout(S,0,w);else{var d=A[w];if(d){T=!0;try{(function(v){var y=v.callback,x=v.args;switch(x.length){case 0:y();break;case 1:y(x[0]);break;case 2:y(x[0],x[1]);break;case 3:y(x[0],x[1],x[2]);break;default:y.apply(void 0,x)}})(d)}finally{B(w),T=!1}}}}function D(w){w.source===p&&typeof w.data=="string"&&w.data.indexOf(j)===0&&S(+w.data.slice(j.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,b,g){(function(c){(function(){var a=/[\\^$.*+?()[\]{}|]/g,o=RegExp(a.source),n=typeof c=="object"&&c&&c.Object===Object&&c,e=typeof self=="object"&&self&&self.Object===Object&&self,r=n||e||Function("return this")(),u=Object.prototype.toString,i=r.Symbol,s=i?i.prototype:void 0,h=s?s.toString:void 0;function f(l){if(typeof l=="string")return l;if((function(m){return typeof m=="symbol"||(function(_){return!!_&&typeof _=="object"})(m)&&u.call(m)=="[object Symbol]"})(l))return h?h.call(l):"";var p=l+"";return p=="0"&&1/l==-1/0?"-0":p}b.exports=function(l){var p;return(l=(p=l)==null?"":f(p))&&o.test(l)?l.replace(a,"\\$&"):l}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(t,b,g){(function(c){(function(){var a="[object Arguments]",o="[object Map]",n="[object Object]",e="[object Set]",r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,i=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[a]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[o]=p["[object Number]"]=p[n]=p["[object RegExp]"]=p[e]=p["[object String]"]=p["[object WeakMap]"]=!1;var m=typeof c=="object"&&c&&c.Object===Object&&c,_=typeof self=="object"&&self&&self.Object===Object&&self,k=m||_||Function("return this")(),M=typeof g=="object"&&g&&!g.nodeType&&g,j=M&&typeof b=="object"&&b&&!b.nodeType&&b,z=j&&j.exports===M&&m.process,A=(function(){try{return z&&z.binding("util")}catch{}})(),T=A&&A.isTypedArray;function O(Z,ut,dt,gt){for(var Tt=-1,vt=Z?Z.length:0;++Tt<vt;){var _t=Z[Tt];ut(gt,_t,dt(_t),Z)}return gt}function L(Z,ut){for(var dt=-1,gt=Z?Z.length:0;++dt<gt;)if(ut(Z[dt],dt,Z))return!0;return!1}function B(Z){var ut=!1;if(Z!=null&&typeof Z.toString!="function")try{ut=!!(Z+"")}catch{}return ut}function S(Z){var ut=-1,dt=Array(Z.size);return Z.forEach((function(gt,Tt){dt[++ut]=[Tt,gt]})),dt}function D(Z){var ut=-1,dt=Array(Z.size);return Z.forEach((function(gt){dt[++ut]=gt})),dt}var w,d,v,y=Array.prototype,x=Function.prototype,C=Object.prototype,N=k["__core-js_shared__"],R=(w=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",$=x.toString,V=C.hasOwnProperty,X=C.toString,P=RegExp("^"+$.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=k.Symbol,I=k.Uint8Array,F=C.propertyIsEnumerable,H=y.splice,W=(d=Object.keys,v=Object,function(Z){return d(v(Z))}),J=Ut(k,"DataView"),Y=Ut(k,"Map"),K=Ut(k,"Promise"),et=Ut(k,"Set"),nt=Ut(k,"WeakMap"),G=Ut(Object,"create"),tt=at(J),Q=at(Y),st=at(K),it=at(et),ot=at(nt),ct=q?q.prototype:void 0,ht=ct?ct.valueOf:void 0,bt=ct?ct.toString:void 0;function kt(Z){var ut=-1,dt=Z?Z.length:0;for(this.clear();++ut<dt;){var gt=Z[ut];this.set(gt[0],gt[1])}}function St(Z){var ut=-1,dt=Z?Z.length:0;for(this.clear();++ut<dt;){var gt=Z[ut];this.set(gt[0],gt[1])}}function wt(Z){var ut=-1,dt=Z?Z.length:0;for(this.clear();++ut<dt;){var gt=Z[ut];this.set(gt[0],gt[1])}}function Nt(Z){var ut=-1,dt=Z?Z.length:0;for(this.__data__=new wt;++ut<dt;)this.add(Z[ut])}function Ft(Z){this.__data__=new St(Z)}function It(Z,ut){var dt=Lt(Z)||$t(Z)?(function(_t,re){for(var Gt=-1,Zt=Array(_t);++Gt<_t;)Zt[Gt]=re(Gt);return Zt})(Z.length,String):[],gt=dt.length,Tt=!!gt;for(var vt in Z)!V.call(Z,vt)||Tt&&(vt=="length"||de(vt,gt))||dt.push(vt);return dt}function Bt(Z,ut){for(var dt=Z.length;dt--;)if(Et(Z[dt][0],ut))return dt;return-1}function Ct(Z,ut,dt,gt){return Dt(Z,(function(Tt,vt,_t){ut(gt,Tt,dt(Tt),_t)})),gt}kt.prototype.clear=function(){this.__data__=G?G(null):{}},kt.prototype.delete=function(Z){return this.has(Z)&&delete this.__data__[Z]},kt.prototype.get=function(Z){var ut=this.__data__;if(G){var dt=ut[Z];return dt==="__lodash_hash_undefined__"?void 0:dt}return V.call(ut,Z)?ut[Z]:void 0},kt.prototype.has=function(Z){var ut=this.__data__;return G?ut[Z]!==void 0:V.call(ut,Z)},kt.prototype.set=function(Z,ut){return this.__data__[Z]=G&&ut===void 0?"__lodash_hash_undefined__":ut,this},St.prototype.clear=function(){this.__data__=[]},St.prototype.delete=function(Z){var ut=this.__data__,dt=Bt(ut,Z);return!(dt<0)&&(dt==ut.length-1?ut.pop():H.call(ut,dt,1),!0)},St.prototype.get=function(Z){var ut=this.__data__,dt=Bt(ut,Z);return dt<0?void 0:ut[dt][1]},St.prototype.has=function(Z){return Bt(this.__data__,Z)>-1},St.prototype.set=function(Z,ut){var dt=this.__data__,gt=Bt(dt,Z);return gt<0?dt.push([Z,ut]):dt[gt][1]=ut,this},wt.prototype.clear=function(){this.__data__={hash:new kt,map:new(Y||St),string:new kt}},wt.prototype.delete=function(Z){return oe(this,Z).delete(Z)},wt.prototype.get=function(Z){return oe(this,Z).get(Z)},wt.prototype.has=function(Z){return oe(this,Z).has(Z)},wt.prototype.set=function(Z,ut){return oe(this,Z).set(Z,ut),this},Nt.prototype.add=Nt.prototype.push=function(Z){return this.__data__.set(Z,"__lodash_hash_undefined__"),this},Nt.prototype.has=function(Z){return this.__data__.has(Z)},Ft.prototype.clear=function(){this.__data__=new St},Ft.prototype.delete=function(Z){return this.__data__.delete(Z)},Ft.prototype.get=function(Z){return this.__data__.get(Z)},Ft.prototype.has=function(Z){return this.__data__.has(Z)},Ft.prototype.set=function(Z,ut){var dt=this.__data__;if(dt instanceof St){var gt=dt.__data__;if(!Y||gt.length<199)return gt.push([Z,ut]),this;dt=this.__data__=new wt(gt)}return dt.set(Z,ut),this};var yt,Dt=(yt=function(Z,ut){return Z&&Mt(Z,ut,Ee)},function(Z,ut){if(Z==null)return Z;if(!Ot(Z))return yt(Z,ut);for(var dt=Z.length,gt=-1,Tt=Object(Z);++gt<dt&&ut(Tt[gt],gt,Tt)!==!1;);return Z}),Mt=(function(Z){return function(ut,dt,gt){for(var Tt=-1,vt=Object(ut),_t=gt(ut),re=_t.length;re--;){var Gt=_t[++Tt];if(dt(vt[Gt],Gt,vt)===!1)break}return ut}})();function At(Z,ut){for(var dt=0,gt=(ut=Ht(ut,Z)?[ut]:qt(ut)).length;Z!=null&&dt<gt;)Z=Z[rt(ut[dt++])];return dt&&dt==gt?Z:void 0}function ee(Z,ut){return Z!=null&&ut in Object(Z)}function le(Z,ut,dt,gt,Tt){return Z===ut||(Z==null||ut==null||!Jt(Z)&&!we(ut)?Z!=Z&&ut!=ut:(function(vt,_t,re,Gt,Zt,zt){var ce=Lt(vt),he=Lt(_t),me="[object Array]",ye="[object Array]";ce||(me=(me=ie(vt))==a?n:me),he||(ye=(ye=ie(_t))==a?n:ye);var Se=me==n&&!B(vt),De=ye==n&&!B(_t),Oe=me==ye;if(Oe&&!Se)return zt||(zt=new Ft),ce||_e(vt)?be(vt,_t,re,Gt,Zt,zt):(function(fe,se,$e,Ze,fr,Fe,ze){switch($e){case"[object DataView]":if(fe.byteLength!=se.byteLength||fe.byteOffset!=se.byteOffset)return!1;fe=fe.buffer,se=se.buffer;case"[object ArrayBuffer]":return!(fe.byteLength!=se.byteLength||!Ze(new I(fe),new I(se)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Et(+fe,+se);case"[object Error]":return fe.name==se.name&&fe.message==se.message;case"[object RegExp]":case"[object String]":return fe==se+"";case o:var Ve=S;case e:var lr=2&Fe;if(Ve||(Ve=D),fe.size!=se.size&&!lr)return!1;var dr=ze.get(fe);if(dr)return dr==se;Fe|=1,ze.set(fe,se);var ir=be(Ve(fe),Ve(se),Ze,fr,Fe,ze);return ze.delete(fe),ir;case"[object Symbol]":if(ht)return ht.call(fe)==ht.call(se)}return!1})(vt,_t,me,re,Gt,Zt,zt);if(!(2&Zt)){var Je=Se&&V.call(vt,"__wrapped__"),er=De&&V.call(_t,"__wrapped__");if(Je||er){var rr=Je?vt.value():vt,nr=er?_t.value():_t;return zt||(zt=new Ft),re(rr,nr,Gt,Zt,zt)}}return Oe?(zt||(zt=new Ft),(function(fe,se,$e,Ze,fr,Fe){var ze=2&fr,Ve=Ee(fe),lr=Ve.length,dr=Ee(se).length;if(lr!=dr&&!ze)return!1;for(var ir=lr;ir--;){var qe=Ve[ir];if(!(ze?qe in se:V.call(se,qe)))return!1}var en=Fe.get(fe);if(en&&Fe.get(se))return en==se;var pr=!0;Fe.set(fe,se),Fe.set(se,fe);for(var Rr=ze;++ir<lr;){qe=Ve[ir];var mr=fe[qe],br=se[qe];if(Ze)var rn=ze?Ze(br,mr,qe,se,fe,Fe):Ze(mr,br,qe,fe,se,Fe);if(!(rn===void 0?mr===br||$e(mr,br,Ze,fr,Fe):rn)){pr=!1;break}Rr||(Rr=qe=="constructor")}if(pr&&!Rr){var gr=fe.constructor,yr=se.constructor;gr==yr||!("constructor"in fe)||!("constructor"in se)||typeof gr=="function"&&gr instanceof gr&&typeof yr=="function"&&yr instanceof yr||(pr=!1)}return Fe.delete(fe),Fe.delete(se),pr})(vt,_t,re,Gt,Zt,zt)):!1})(Z,ut,le,dt,gt,Tt))}function Pt(Z){return!(!Jt(Z)||(function(ut){return!!R&&R in ut})(Z))&&(Wt(Z)||B(Z)?P:f).test(at(Z))}function ae(Z){return typeof Z=="function"?Z:Z==null?Te:typeof Z=="object"?Lt(Z)?(function(gt,Tt){return Ht(gt)&&ue(Tt)?pe(rt(gt),Tt):function(vt){var _t=(function(re,Gt,Zt){var zt=re==null?void 0:At(re,Gt);return zt===void 0?Zt:zt})(vt,gt);return _t===void 0&&_t===Tt?(function(re,Gt){return re!=null&&(function(Zt,zt,ce){zt=Ht(zt,Zt)?[zt]:qt(zt);for(var he,me=-1,ye=zt.length;++me<ye;){var Se=rt(zt[me]);if(!(he=Zt!=null&&ce(Zt,Se)))break;Zt=Zt[Se]}return he||!!(ye=Zt?Zt.length:0)&&Vt(ye)&&de(Se,ye)&&(Lt(Zt)||$t(Zt))})(re,Gt,ee)})(vt,gt):le(Tt,_t,void 0,3)}})(Z[0],Z[1]):(function(gt){var Tt=(function(vt){for(var _t=Ee(vt),re=_t.length;re--;){var Gt=_t[re],Zt=vt[Gt];_t[re]=[Gt,Zt,ue(Zt)]}return _t})(gt);return Tt.length==1&&Tt[0][2]?pe(Tt[0][0],Tt[0][1]):function(vt){return vt===gt||(function(_t,re,Gt,Zt){var zt=Gt.length,ce=zt;if(_t==null)return!ce;for(_t=Object(_t);zt--;){var he=Gt[zt];if(he[2]?he[1]!==_t[he[0]]:!(he[0]in _t))return!1}for(;++zt<ce;){var me=(he=Gt[zt])[0],ye=_t[me],Se=he[1];if(he[2]){if(ye===void 0&&!(me in _t))return!1}else{var De=new Ft,Oe;if(!(Oe===void 0?le(Se,ye,Zt,3,De):Oe))return!1}}return!0})(vt,gt,Tt)}})(Z):Ht(ut=Z)?(dt=rt(ut),function(gt){return gt?.[dt]}):(function(gt){return function(Tt){return At(Tt,gt)}})(ut);var ut,dt}function Qt(Z){if(dt=(ut=Z)&&ut.constructor,gt=typeof dt=="function"&&dt.prototype||C,ut!==gt)return W(Z);var ut,dt,gt,Tt=[];for(var vt in Object(Z))V.call(Z,vt)&&vt!="constructor"&&Tt.push(vt);return Tt}function qt(Z){return Lt(Z)?Z:Xt(Z)}function be(Z,ut,dt,gt,Tt,vt){var _t=2&Tt,re=Z.length,Gt=ut.length;if(re!=Gt&&!(_t&&Gt>re))return!1;var Zt=vt.get(Z);if(Zt&&vt.get(ut))return Zt==ut;var zt=-1,ce=!0,he=1&Tt?new Nt:void 0;for(vt.set(Z,ut),vt.set(ut,Z);++zt<re;){var me=Z[zt],ye=ut[zt];if(gt)var Se=_t?gt(ye,me,zt,ut,Z,vt):gt(me,ye,zt,Z,ut,vt);if(Se!==void 0){if(Se)continue;ce=!1;break}if(he){if(!L(ut,(function(De,Oe){if(!he.has(Oe)&&(me===De||dt(me,De,gt,Tt,vt)))return he.add(Oe)}))){ce=!1;break}}else if(me!==ye&&!dt(me,ye,gt,Tt,vt)){ce=!1;break}}return vt.delete(Z),vt.delete(ut),ce}function oe(Z,ut){var dt,gt,Tt=Z.__data__;return((gt=typeof(dt=ut))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?dt!=="__proto__":dt===null)?Tt[typeof ut=="string"?"string":"hash"]:Tt.map}function Ut(Z,ut){var dt=(function(gt,Tt){return gt?.[Tt]})(Z,ut);return Pt(dt)?dt:void 0}var ie=function(Z){return X.call(Z)};function de(Z,ut){return!!(ut=ut??9007199254740991)&&(typeof Z=="number"||l.test(Z))&&Z>-1&&Z%1==0&&Z<ut}function Ht(Z,ut){if(Lt(Z))return!1;var dt=typeof Z;return!(dt!="number"&&dt!="symbol"&&dt!="boolean"&&Z!=null&&!ge(Z))||u.test(Z)||!r.test(Z)||ut!=null&&Z in Object(ut)}function ue(Z){return Z==Z&&!Jt(Z)}function pe(Z,ut){return function(dt){return dt!=null&&dt[Z]===ut&&(ut!==void 0||Z in Object(dt))}}(J&&ie(new J(new ArrayBuffer(1)))!="[object DataView]"||Y&&ie(new Y)!=o||K&&ie(K.resolve())!="[object Promise]"||et&&ie(new et)!=e||nt&&ie(new nt)!="[object WeakMap]")&&(ie=function(Z){var ut=X.call(Z),dt=ut==n?Z.constructor:void 0,gt=dt?at(dt):void 0;if(gt)switch(gt){case tt:return"[object DataView]";case Q:return o;case st:return"[object Promise]";case it:return e;case ot:return"[object WeakMap]"}return ut});var Xt=jt((function(Z){var ut;Z=(ut=Z)==null?"":(function(gt){if(typeof gt=="string")return gt;if(ge(gt))return bt?bt.call(gt):"";var Tt=gt+"";return Tt=="0"&&1/gt==-1/0?"-0":Tt})(ut);var dt=[];return i.test(Z)&&dt.push(""),Z.replace(s,(function(gt,Tt,vt,_t){dt.push(vt?_t.replace(h,"$1"):Tt||gt)})),dt}));function rt(Z){if(typeof Z=="string"||ge(Z))return Z;var ut=Z+"";return ut=="0"&&1/Z==-1/0?"-0":ut}function at(Z){if(Z!=null){try{return $.call(Z)}catch{}try{return Z+""}catch{}}return""}var ft,xt=(ft=function(Z,ut,dt){V.call(Z,dt)?Z[dt].push(ut):Z[dt]=[ut]},function(Z,ut){var dt=Lt(Z)?O:Ct,gt={};return dt(Z,ft,ae(ut),gt)});function jt(Z,ut){if(typeof Z!="function"||ut&&typeof ut!="function")throw new TypeError("Expected a function");var dt=function(){var gt=arguments,Tt=ut?ut.apply(this,gt):gt[0],vt=dt.cache;if(vt.has(Tt))return vt.get(Tt);var _t=Z.apply(this,gt);return dt.cache=vt.set(Tt,_t),_t};return dt.cache=new(jt.Cache||wt),dt}function Et(Z,ut){return Z===ut||Z!=Z&&ut!=ut}function $t(Z){return(function(ut){return we(ut)&&Ot(ut)})(Z)&&V.call(Z,"callee")&&(!F.call(Z,"callee")||X.call(Z)==a)}jt.Cache=wt;var Lt=Array.isArray;function Ot(Z){return Z!=null&&Vt(Z.length)&&!Wt(Z)}function Wt(Z){var ut=Jt(Z)?X.call(Z):"";return ut=="[object Function]"||ut=="[object GeneratorFunction]"}function Vt(Z){return typeof Z=="number"&&Z>-1&&Z%1==0&&Z<=9007199254740991}function Jt(Z){var ut=typeof Z;return!!Z&&(ut=="object"||ut=="function")}function we(Z){return!!Z&&typeof Z=="object"}function ge(Z){return typeof Z=="symbol"||we(Z)&&X.call(Z)=="[object Symbol]"}var _e=T?(function(Z){return function(ut){return Z(ut)}})(T):function(Z){return we(Z)&&Vt(Z.length)&&!!p[X.call(Z)]};function Ee(Z){return Ot(Z)?It(Z):Qt(Z)}function Te(Z){return Z}b.exports=xt}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(t,b,g){var c=Object.prototype.toString;b.exports=function(a){return a===!0||a===!1||(function(o){return!!o&&typeof o=="object"})(a)&&c.call(a)=="[object Boolean]"}},{}],445:[function(t,b,g){(function(c){(function(){var a="[object Arguments]",o="[object Map]",n="[object Object]",e="[object Set]",r=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i[a]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i[o]=i["[object Number]"]=i[n]=i["[object RegExp]"]=i[e]=i["[object String]"]=i["[object WeakMap]"]=!1;var s=typeof c=="object"&&c&&c.Object===Object&&c,h=typeof self=="object"&&self&&self.Object===Object&&self,f=s||h||Function("return this")(),l=typeof g=="object"&&g&&!g.nodeType&&g,p=l&&typeof b=="object"&&b&&!b.nodeType&&b,m=p&&p.exports===l,_=m&&s.process,k=(function(){try{return _&&_.binding&&_.binding("util")}catch{}})(),M=k&&k.isTypedArray;function j(rt,at){for(var ft=-1,xt=rt==null?0:rt.length;++ft<xt;)if(at(rt[ft],ft,rt))return!0;return!1}function z(rt){var at=-1,ft=Array(rt.size);return rt.forEach((function(xt,jt){ft[++at]=[jt,xt]})),ft}function A(rt){var at=-1,ft=Array(rt.size);return rt.forEach((function(xt){ft[++at]=xt})),ft}var T,O,L,B=Array.prototype,S=Function.prototype,D=Object.prototype,w=f["__core-js_shared__"],d=S.toString,v=D.hasOwnProperty,y=(T=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",x=D.toString,C=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=m?f.Buffer:void 0,R=f.Symbol,$=f.Uint8Array,V=D.propertyIsEnumerable,X=B.splice,P=R?R.toStringTag:void 0,q=Object.getOwnPropertySymbols,I=N?N.isBuffer:void 0,F=(O=Object.keys,L=Object,function(rt){return O(L(rt))}),H=ee(f,"DataView"),W=ee(f,"Map"),J=ee(f,"Promise"),Y=ee(f,"Set"),K=ee(f,"WeakMap"),et=ee(Object,"create"),nt=Qt(H),G=Qt(W),tt=Qt(J),Q=Qt(Y),st=Qt(K),it=R?R.prototype:void 0,ot=it?it.valueOf:void 0;function ct(rt){var at=-1,ft=rt==null?0:rt.length;for(this.clear();++at<ft;){var xt=rt[at];this.set(xt[0],xt[1])}}function ht(rt){var at=-1,ft=rt==null?0:rt.length;for(this.clear();++at<ft;){var xt=rt[at];this.set(xt[0],xt[1])}}function bt(rt){var at=-1,ft=rt==null?0:rt.length;for(this.clear();++at<ft;){var xt=rt[at];this.set(xt[0],xt[1])}}function kt(rt){var at=-1,ft=rt==null?0:rt.length;for(this.__data__=new bt;++at<ft;)this.add(rt[at])}function St(rt){var at=this.__data__=new ht(rt);this.size=at.size}function wt(rt,at){var ft=oe(rt),xt=!ft&&be(rt),jt=!ft&&!xt&&Ut(rt),Et=!ft&&!xt&&!jt&&pe(rt),$t=ft||xt||jt||Et,Lt=$t?(function(Vt,Jt){for(var we=-1,ge=Array(Vt);++we<Vt;)ge[we]=Jt(we);return ge})(rt.length,String):[],Ot=Lt.length;for(var Wt in rt)!v.call(rt,Wt)||$t&&(Wt=="length"||jt&&(Wt=="offset"||Wt=="parent")||Et&&(Wt=="buffer"||Wt=="byteLength"||Wt=="byteOffset")||ae(Wt,Ot))||Lt.push(Wt);return Lt}function Nt(rt,at){for(var ft=rt.length;ft--;)if(qt(rt[ft][0],at))return ft;return-1}function Ft(rt){return rt==null?rt===void 0?"[object Undefined]":"[object Null]":P&&P in Object(rt)?(function(at){var ft=v.call(at,P),xt=at[P];try{at[P]=void 0;var jt=!0}catch{}var Et=x.call(at);return jt&&(ft?at[P]=xt:delete at[P]),Et})(rt):(function(at){return x.call(at)})(rt)}function It(rt){return ue(rt)&&Ft(rt)==a}function Bt(rt,at,ft,xt,jt){return rt===at||(rt==null||at==null||!ue(rt)&&!ue(at)?rt!=rt&&at!=at:(function(Et,$t,Lt,Ot,Wt,Vt){var Jt=oe(Et),we=oe($t),ge=Jt?"[object Array]":Pt(Et),_e=we?"[object Array]":Pt($t),Ee=(ge=ge==a?n:ge)==n,Te=(_e=_e==a?n:_e)==n,Z=ge==_e;if(Z&&Ut(Et)){if(!Ut($t))return!1;Jt=!0,Ee=!1}if(Z&&!Ee)return Vt||(Vt=new St),Jt||pe(Et)?Dt(Et,$t,Lt,Ot,Wt,Vt):(function(vt,_t,re,Gt,Zt,zt,ce){switch(re){case"[object DataView]":if(vt.byteLength!=_t.byteLength||vt.byteOffset!=_t.byteOffset)return!1;vt=vt.buffer,_t=_t.buffer;case"[object ArrayBuffer]":return!(vt.byteLength!=_t.byteLength||!zt(new $(vt),new $(_t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qt(+vt,+_t);case"[object Error]":return vt.name==_t.name&&vt.message==_t.message;case"[object RegExp]":case"[object String]":return vt==_t+"";case o:var he=z;case e:var me=1≫if(he||(he=A),vt.size!=_t.size&&!me)return!1;var ye=ce.get(vt);if(ye)return ye==_t;Gt|=2,ce.set(vt,_t);var Se=Dt(he(vt),he(_t),Gt,Zt,zt,ce);return ce.delete(vt),Se;case"[object Symbol]":if(ot)return ot.call(vt)==ot.call(_t)}return!1})(Et,$t,ge,Lt,Ot,Wt,Vt);if(!(1&Lt)){var ut=Ee&&v.call(Et,"__wrapped__"),dt=Te&&v.call($t,"__wrapped__");if(ut||dt){var gt=ut?Et.value():Et,Tt=dt?$t.value():$t;return Vt||(Vt=new St),Wt(gt,Tt,Lt,Ot,Vt)}}return Z?(Vt||(Vt=new St),(function(vt,_t,re,Gt,Zt,zt){var ce=1&re,he=Mt(vt),me=he.length,ye=Mt(_t).length;if(me!=ye&&!ce)return!1;for(var Se=me;Se--;){var De=he[Se];if(!(ce?De in _t:v.call(_t,De)))return!1}var Oe=zt.get(vt);if(Oe&&zt.get(_t))return Oe==_t;var Je=!0;zt.set(vt,_t),zt.set(_t,vt);for(var er=ce;++Se<me;){De=he[Se];var rr=vt[De],nr=_t[De];if(Gt)var fe=ce?Gt(nr,rr,De,_t,vt,zt):Gt(rr,nr,De,vt,_t,zt);if(!(fe===void 0?rr===nr||Zt(rr,nr,re,Gt,zt):fe)){Je=!1;break}er||(er=De=="constructor")}if(Je&&!er){var se=vt.constructor,$e=_t.constructor;se==$e||!("constructor"in vt)||!("constructor"in _t)||typeof se=="function"&&se instanceof se&&typeof $e=="function"&&$e instanceof $e||(Je=!1)}return zt.delete(vt),zt.delete(_t),Je})(Et,$t,Lt,Ot,Wt,Vt)):!1})(rt,at,ft,xt,Bt,jt))}function Ct(rt){return!(!Ht(rt)||(function(at){return!!y&&y in at})(rt))&&(ie(rt)?C:r).test(Qt(rt))}function yt(rt){if(ft=(at=rt)&&at.constructor,xt=typeof ft=="function"&&ft.prototype||D,at!==xt)return F(rt);var at,ft,xt,jt=[];for(var Et in Object(rt))v.call(rt,Et)&&Et!="constructor"&&jt.push(Et);return jt}function Dt(rt,at,ft,xt,jt,Et){var $t=1&ft,Lt=rt.length,Ot=at.length;if(Lt!=Ot&&!($t&&Ot>Lt))return!1;var Wt=Et.get(rt);if(Wt&&Et.get(at))return Wt==at;var Vt=-1,Jt=!0,we=2&ft?new kt:void 0;for(Et.set(rt,at),Et.set(at,rt);++Vt<Lt;){var ge=rt[Vt],_e=at[Vt];if(xt)var Ee=$t?xt(_e,ge,Vt,at,rt,Et):xt(ge,_e,Vt,rt,at,Et);if(Ee!==void 0){if(Ee)continue;Jt=!1;break}if(we){if(!j(at,(function(Te,Z){if(ut=Z,!we.has(ut)&&(ge===Te||jt(ge,Te,ft,xt,Et)))return we.push(Z);var ut}))){Jt=!1;break}}else if(ge!==_e&&!jt(ge,_e,ft,xt,Et)){Jt=!1;break}}return Et.delete(rt),Et.delete(at),Jt}function Mt(rt){return(function(at,ft,xt){var jt=ft(at);return oe(at)?jt:(function(Et,$t){for(var Lt=-1,Ot=$t.length,Wt=Et.length;++Lt<Ot;)Et[Wt+Lt]=$t[Lt];return Et})(jt,xt(at))})(rt,Xt,le)}function At(rt,at){var ft,xt,jt=rt.__data__;return((xt=typeof(ft=at))=="string"||xt=="number"||xt=="symbol"||xt=="boolean"?ft!=="__proto__":ft===null)?jt[typeof at=="string"?"string":"hash"]:jt.map}function ee(rt,at){var ft=(function(xt,jt){return xt?.[jt]})(rt,at);return Ct(ft)?ft:void 0}ct.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ct.prototype.delete=function(rt){var at=this.has(rt)&&delete this.__data__[rt];return this.size-=at?1:0,at},ct.prototype.get=function(rt){var at=this.__data__;if(et){var ft=at[rt];return ft==="__lodash_hash_undefined__"?void 0:ft}return v.call(at,rt)?at[rt]:void 0},ct.prototype.has=function(rt){var at=this.__data__;return et?at[rt]!==void 0:v.call(at,rt)},ct.prototype.set=function(rt,at){var ft=this.__data__;return this.size+=this.has(rt)?0:1,ft[rt]=et&&at===void 0?"__lodash_hash_undefined__":at,this},ht.prototype.clear=function(){this.__data__=[],this.size=0},ht.prototype.delete=function(rt){var at=this.__data__,ft=Nt(at,rt);return!(ft<0)&&(ft==at.length-1?at.pop():X.call(at,ft,1),--this.size,!0)},ht.prototype.get=function(rt){var at=this.__data__,ft=Nt(at,rt);return ft<0?void 0:at[ft][1]},ht.prototype.has=function(rt){return Nt(this.__data__,rt)>-1},ht.prototype.set=function(rt,at){var ft=this.__data__,xt=Nt(ft,rt);return xt<0?(++this.size,ft.push([rt,at])):ft[xt][1]=at,this},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new ct,map:new(W||ht),string:new ct}},bt.prototype.delete=function(rt){var at=At(this,rt).delete(rt);return this.size-=at?1:0,at},bt.prototype.get=function(rt){return At(this,rt).get(rt)},bt.prototype.has=function(rt){return At(this,rt).has(rt)},bt.prototype.set=function(rt,at){var ft=At(this,rt),xt=ft.size;return ft.set(rt,at),this.size+=ft.size==xt?0:1,this},kt.prototype.add=kt.prototype.push=function(rt){return this.__data__.set(rt,"__lodash_hash_undefined__"),this},kt.prototype.has=function(rt){return this.__data__.has(rt)},St.prototype.clear=function(){this.__data__=new ht,this.size=0},St.prototype.delete=function(rt){var at=this.__data__,ft=at.delete(rt);return this.size=at.size,ft},St.prototype.get=function(rt){return this.__data__.get(rt)},St.prototype.has=function(rt){return this.__data__.has(rt)},St.prototype.set=function(rt,at){var ft=this.__data__;if(ft instanceof ht){var xt=ft.__data__;if(!W||xt.length<199)return xt.push([rt,at]),this.size=++ft.size,this;ft=this.__data__=new bt(xt)}return ft.set(rt,at),this.size=ft.size,this};var le=q?function(rt){return rt==null?[]:(rt=Object(rt),(function(at,ft){for(var xt=-1,jt=at==null?0:at.length,Et=0,$t=[];++xt<jt;){var Lt=at[xt];ft(Lt,xt,at)&&($t[Et++]=Lt)}return $t})(q(rt),(function(at){return V.call(rt,at)})))}:function(){return[]},Pt=Ft;function ae(rt,at){return!!(at=at??9007199254740991)&&(typeof rt=="number"||u.test(rt))&&rt>-1&&rt%1==0&&rt<at}function Qt(rt){if(rt!=null){try{return d.call(rt)}catch{}try{return rt+""}catch{}}return""}function qt(rt,at){return rt===at||rt!=rt&&at!=at}(H&&Pt(new H(new ArrayBuffer(1)))!="[object DataView]"||W&&Pt(new W)!=o||J&&Pt(J.resolve())!="[object Promise]"||Y&&Pt(new Y)!=e||K&&Pt(new K)!="[object WeakMap]")&&(Pt=function(rt){var at=Ft(rt),ft=at==n?rt.constructor:void 0,xt=ft?Qt(ft):"";if(xt)switch(xt){case nt:return"[object DataView]";case G:return o;case tt:return"[object Promise]";case Q:return e;case st:return"[object WeakMap]"}return at});var be=It((function(){return arguments})())?It:function(rt){return ue(rt)&&v.call(rt,"callee")&&!V.call(rt,"callee")},oe=Array.isArray,Ut=I||function(){return!1};function ie(rt){if(!Ht(rt))return!1;var at=Ft(rt);return at=="[object Function]"||at=="[object GeneratorFunction]"||at=="[object AsyncFunction]"||at=="[object Proxy]"}function de(rt){return typeof rt=="number"&&rt>-1&&rt%1==0&&rt<=9007199254740991}function Ht(rt){var at=typeof rt;return rt!=null&&(at=="object"||at=="function")}function ue(rt){return rt!=null&&typeof rt=="object"}var pe=M?(function(rt){return function(at){return rt(at)}})(M):function(rt){return ue(rt)&&de(rt.length)&&!!i[Ft(rt)]};function Xt(rt){return(at=rt)!=null&&de(at.length)&&!ie(at)?wt(rt):yt(rt);var at}b.exports=function(rt,at){return Bt(rt,at)}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(t,b,g){(function(c){(function(){var a=typeof c=="object"&&c&&c.Object===Object&&c,o=typeof self=="object"&&self&&self.Object===Object&&self,n=a||o||Function("return this")(),e=Object.prototype,r=e.hasOwnProperty,u=e.toString,i=n.Symbol,s=i?i.toStringTag:void 0;function h(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":s&&s in Object(f)?(function(l){var p=r.call(l,s),m=l[s];try{l[s]=void 0;var _=!0}catch{}var k=u.call(l);return _&&(p?l[s]=m:delete l[s]),k})(f):(function(l){return u.call(l)})(f)}b.exports=function(f){if(!(function(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")})(f))return!1;var l=h(f);return l=="[object Function]"||l=="[object GeneratorFunction]"||l=="[object AsyncFunction]"||l=="[object Proxy]"}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(t,b,g){b.exports=function(c){return c==null}},{}],448:[function(t,b,g){b.exports=function(c){return c===void 0}},{}],449:[function(t,b,g){(function(c){(function(){var a=/^\[object .+?Constructor\]$/,o=typeof c=="object"&&c&&c.Object===Object&&c,n=typeof self=="object"&&self&&self.Object===Object&&self,e=o||n||Function("return this")();function r(R,$){return!!(R&&R.length)&&(function(V,X,P){if(X!=X)return(function(F,H,W,J){for(var Y=F.length,K=W+-1;++K<Y;)if(H(F[K],K,F))return K;return-1})(V,u,P);for(var q=P-1,I=V.length;++q<I;)if(V[q]===X)return q;return-1})(R,$,0)>-1}function u(R){return R!=R}function i(R,$){return R.has($)}function s(R){var $=-1,V=Array(R.size);return R.forEach((function(X){V[++$]=X})),V}var h,f=Array.prototype,l=Function.prototype,p=Object.prototype,m=e["__core-js_shared__"],_=(h=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",k=l.toString,M=p.hasOwnProperty,j=p.toString,z=RegExp("^"+k.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=f.splice,T=C(e,"Map"),O=C(e,"Set"),L=C(Object,"create");function B(R){var $=-1,V=R?R.length:0;for(this.clear();++$<V;){var X=R[$];this.set(X[0],X[1])}}function S(R){var $=-1,V=R?R.length:0;for(this.clear();++$<V;){var X=R[$];this.set(X[0],X[1])}}function D(R){var $=-1,V=R?R.length:0;for(this.clear();++$<V;){var X=R[$];this.set(X[0],X[1])}}function w(R){var $=-1,V=R?R.length:0;for(this.__data__=new D;++$<V;)this.add(R[$])}function d(R,$){for(var V,X,P=R.length;P--;)if((V=R[P][0])===(X=$)||V!=V&&X!=X)return P;return-1}function v(R){return!(!N(R)||($=R,_&&_ in $))&&((function(V){var X=N(V)?j.call(V):"";return X=="[object Function]"||X=="[object GeneratorFunction]"})(R)||(function(V){var X=!1;if(V!=null&&typeof V.toString!="function")try{X=!!(V+"")}catch{}return X})(R)?z:a).test((function(V){if(V!=null){try{return k.call(V)}catch{}try{return V+""}catch{}}return""})(R));var $}B.prototype.clear=function(){this.__data__=L?L(null):{}},B.prototype.delete=function(R){return this.has(R)&&delete this.__data__[R]},B.prototype.get=function(R){var $=this.__data__;if(L){var V=$[R];return V==="__lodash_hash_undefined__"?void 0:V}return M.call($,R)?$[R]:void 0},B.prototype.has=function(R){var $=this.__data__;return L?$[R]!==void 0:M.call($,R)},B.prototype.set=function(R,$){return this.__data__[R]=L&&$===void 0?"__lodash_hash_undefined__":$,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(R){var $=this.__data__,V=d($,R);return!(V<0)&&(V==$.length-1?$.pop():A.call($,V,1),!0)},S.prototype.get=function(R){var $=this.__data__,V=d($,R);return V<0?void 0:$[V][1]},S.prototype.has=function(R){return d(this.__data__,R)>-1},S.prototype.set=function(R,$){var V=this.__data__,X=d(V,R);return X<0?V.push([R,$]):V[X][1]=$,this},D.prototype.clear=function(){this.__data__={hash:new B,map:new(T||S),string:new B}},D.prototype.delete=function(R){return x(this,R).delete(R)},D.prototype.get=function(R){return x(this,R).get(R)},D.prototype.has=function(R){return x(this,R).has(R)},D.prototype.set=function(R,$){return x(this,R).set(R,$),this},w.prototype.add=w.prototype.push=function(R){return this.__data__.set(R,"__lodash_hash_undefined__"),this},w.prototype.has=function(R){return this.__data__.has(R)};var y=O&&1/s(new O([,-0]))[1]==1/0?function(R){return new O(R)}:function(){};function x(R,$){var V,X,P=R.__data__;return((X=typeof(V=$))=="string"||X=="number"||X=="symbol"||X=="boolean"?V!=="__proto__":V===null)?P[typeof $=="string"?"string":"hash"]:P.map}function C(R,$){var V=(function(X,P){return X?.[P]})(R,$);return v(V)?V:void 0}function N(R){var $=typeof R;return!!R&&($=="object"||$=="function")}b.exports=function(R){return R&&R.length?(function($,V,X){var P=-1,q=r,I=$.length,F=!0,H=[],W=H;if(I>=200){var J=y($);if(J)return s(J);F=!1,q=i,W=new w}else W=H;t:for(;++P<I;){var Y=$[P],K=Y;if(Y=Y!==0?Y:0,F&&K==K){for(var et=W.length;et--;)if(W[et]===K)continue t;H.push(Y)}else q(W,K,X)||(W!==H&&W.push(K),H.push(Y))}return H})(R):[]}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(t,b,g){var c=t("inherits"),a=t("hash-base"),o=t("safe-buffer").Buffer,n=new Array(16);function e(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function r(f,l){return f<<l|f>>>32-l}function u(f,l,p,m,_,k,M){return r(f+(l&p|~l&m)+_+k|0,M)+l|0}function i(f,l,p,m,_,k,M){return r(f+(l&m|p&~m)+_+k|0,M)+l|0}function s(f,l,p,m,_,k,M){return r(f+(l^p^m)+_+k|0,M)+l|0}function h(f,l,p,m,_,k,M){return r(f+(p^(l|~m))+_+k|0,M)+l|0}c(e,a),e.prototype._update=function(){for(var f=n,l=0;l<16;++l)f[l]=this._block.readInt32LE(4*l);var p=this._a,m=this._b,_=this._c,k=this._d;p=u(p,m,_,k,f[0],3614090360,7),k=u(k,p,m,_,f[1],3905402710,12),_=u(_,k,p,m,f[2],606105819,17),m=u(m,_,k,p,f[3],3250441966,22),p=u(p,m,_,k,f[4],4118548399,7),k=u(k,p,m,_,f[5],1200080426,12),_=u(_,k,p,m,f[6],2821735955,17),m=u(m,_,k,p,f[7],4249261313,22),p=u(p,m,_,k,f[8],1770035416,7),k=u(k,p,m,_,f[9],2336552879,12),_=u(_,k,p,m,f[10],4294925233,17),m=u(m,_,k,p,f[11],2304563134,22),p=u(p,m,_,k,f[12],1804603682,7),k=u(k,p,m,_,f[13],4254626195,12),_=u(_,k,p,m,f[14],2792965006,17),p=i(p,m=u(m,_,k,p,f[15],1236535329,22),_,k,f[1],4129170786,5),k=i(k,p,m,_,f[6],3225465664,9),_=i(_,k,p,m,f[11],643717713,14),m=i(m,_,k,p,f[0],3921069994,20),p=i(p,m,_,k,f[5],3593408605,5),k=i(k,p,m,_,f[10],38016083,9),_=i(_,k,p,m,f[15],3634488961,14),m=i(m,_,k,p,f[4],3889429448,20),p=i(p,m,_,k,f[9],568446438,5),k=i(k,p,m,_,f[14],3275163606,9),_=i(_,k,p,m,f[3],4107603335,14),m=i(m,_,k,p,f[8],1163531501,20),p=i(p,m,_,k,f[13],2850285829,5),k=i(k,p,m,_,f[2],4243563512,9),_=i(_,k,p,m,f[7],1735328473,14),p=s(p,m=i(m,_,k,p,f[12],2368359562,20),_,k,f[5],4294588738,4),k=s(k,p,m,_,f[8],2272392833,11),_=s(_,k,p,m,f[11],1839030562,16),m=s(m,_,k,p,f[14],4259657740,23),p=s(p,m,_,k,f[1],2763975236,4),k=s(k,p,m,_,f[4],1272893353,11),_=s(_,k,p,m,f[7],4139469664,16),m=s(m,_,k,p,f[10],3200236656,23),p=s(p,m,_,k,f[13],681279174,4),k=s(k,p,m,_,f[0],3936430074,11),_=s(_,k,p,m,f[3],3572445317,16),m=s(m,_,k,p,f[6],76029189,23),p=s(p,m,_,k,f[9],3654602809,4),k=s(k,p,m,_,f[12],3873151461,11),_=s(_,k,p,m,f[15],530742520,16),p=h(p,m=s(m,_,k,p,f[2],3299628645,23),_,k,f[0],4096336452,6),k=h(k,p,m,_,f[7],1126891415,10),_=h(_,k,p,m,f[14],2878612391,15),m=h(m,_,k,p,f[5],4237533241,21),p=h(p,m,_,k,f[12],1700485571,6),k=h(k,p,m,_,f[3],2399980690,10),_=h(_,k,p,m,f[10],4293915773,15),m=h(m,_,k,p,f[1],2240044497,21),p=h(p,m,_,k,f[8],1873313359,6),k=h(k,p,m,_,f[15],4264355552,10),_=h(_,k,p,m,f[6],2734768916,15),m=h(m,_,k,p,f[13],1309151649,21),p=h(p,m,_,k,f[4],4149444226,6),k=h(k,p,m,_,f[11],3174756917,10),_=h(_,k,p,m,f[2],718787259,15),m=h(m,_,k,p,f[9],3951481745,21),this._a=this._a+p|0,this._b=this._b+m|0,this._c=this._c+_|0,this._d=this._d+k|0},e.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var f=o.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},b.exports=e},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(t,b,g){var c=t("bn.js"),a=t("brorand");function o(n){this.rand=n||new a.Rand}b.exports=o,o.create=function(n){return new o(n)},o.prototype._randbelow=function(n){var e=n.bitLength(),r=Math.ceil(e/8);do var u=new c(this.rand.generate(r));while(u.cmp(n)>=0);return u},o.prototype._randrange=function(n,e){var r=e.sub(n);return n.add(this._randbelow(r))},o.prototype.test=function(n,e,r){var u=n.bitLength(),i=c.mont(n),s=new c(1).toRed(i);e||(e=Math.max(1,u/48|0));for(var h=n.subn(1),f=0;!h.testn(f);f++);for(var l=n.shrn(f),p=h.toRed(i);e>0;e--){var m=this._randrange(new c(2),h);r&&r(m);var _=m.toRed(i).redPow(l);if(_.cmp(s)!==0&&_.cmp(p)!==0){for(var k=1;k<f;k++){if((_=_.redSqr()).cmp(s)===0)return!1;if(_.cmp(p)===0)break}if(k===f)return!1}}return!0},o.prototype.getDivisor=function(n,e){var r=n.bitLength(),u=c.mont(n),i=new c(1).toRed(u);e||(e=Math.max(1,r/48|0));for(var s=n.subn(1),h=0;!s.testn(h);h++);for(var f=n.shrn(h),l=s.toRed(u);e>0;e--){var p=this._randrange(new c(2),s),m=n.gcd(p);if(m.cmpn(1)!==0)return m;var _=p.toRed(u).redPow(f);if(_.cmp(i)!==0&&_.cmp(l)!==0){for(var k=1;k<h;k++){if((_=_.redSqr()).cmp(i)===0)return _.fromRed().subn(1).gcd(n);if(_.cmp(l)===0)break}if(k===h)return(_=_.redSqr()).fromRed().subn(1).gcd(n)}}return!1}},{"bn.js":452,brorand:187}],452:[function(t,b,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],453:[function(t,b,g){function c(a,o){if(!a)throw new Error(o||"Assertion failed")}b.exports=c,c.equal=function(a,o,n){if(a!=o)throw new Error(n||"Assertion failed: "+a+" != "+o)}},{}],454:[function(t,b,g){var c=g;function a(n){return n.length===1?"0"+n:n}function o(n){for(var e="",r=0;r<n.length;r++)e+=a(n[r].toString(16));return e}c.toArray=function(n,e){if(Array.isArray(n))return n.slice();if(!n)return[];var r=[];if(typeof n!="string"){for(var u=0;u<n.length;u++)r[u]=0|n[u];return r}if(e==="hex")for((n=n.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(n="0"+n),u=0;u<n.length;u+=2)r.push(parseInt(n[u]+n[u+1],16));else for(u=0;u<n.length;u++){var i=n.charCodeAt(u),s=i>>8,h=255&i;s?r.push(s,h):r.push(h)}return r},c.zero2=a,c.toHex=o,c.encode=function(n,e){return e==="hex"?o(n):n}},{}],455:[function(t,b,g){b.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(t,b,g){var c=t("asn1.js");g.certificate=t("./certificate");var a=c.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));g.RSAPrivateKey=a;var o=c.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));g.RSAPublicKey=o;var n=c.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(e),this.key("subjectPublicKey").bitstr())}));g.PublicKey=n;var e=c.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),r=c.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("subjectPrivateKey").octstr())}));g.PrivateKey=r;var u=c.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));g.EncryptedPrivateKey=u;var i=c.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));g.DSAPrivateKey=i,g.DSAparam=c.define("DSAparam",(function(){this.int()}));var s=c.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));g.ECPrivateKey=s;var h=c.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));g.signature=c.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(t,b,g){var c=t("asn1.js"),a=c.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=c.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),n=c.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),e=c.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())})),r=c.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=c.define("RDNSequence",(function(){this.seqof(r)})),i=c.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),s=c.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))})),h=c.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=c.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(n),this.key("issuer").use(i),this.key("validity").use(s),this.key("subject").use(i),this.key("subjectPublicKeyInfo").use(e),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),l=c.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(n),this.key("signatureValue").bitstr())}));b.exports=l},{"asn1.js":170}],458:[function(t,b,g){var c=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,n=t("evp_bytestokey"),e=t("browserify-aes"),r=t("safe-buffer").Buffer;b.exports=function(u,i){var s,h=u.toString(),f=h.match(c);if(f){var l="aes"+f[1],p=r.from(f[2],"hex"),m=r.from(f[3].replace(/[\r\n]/g,""),"base64"),_=n(i,p.slice(0,8),parseInt(f[1],10)).key,k=[],M=e.createDecipheriv(l,_,p);k.push(M.update(m)),k.push(M.final()),s=r.concat(k)}else{var j=h.match(o);s=r.from(j[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(a)[1],data:s}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(t,b,g){var c=t("./asn1"),a=t("./aesid.json"),o=t("./fixProc"),n=t("browserify-aes"),e=t("pbkdf2"),r=t("safe-buffer").Buffer;function u(i){var s;typeof i!="object"||r.isBuffer(i)||(s=i.passphrase,i=i.key),typeof i=="string"&&(i=r.from(i));var h,f,l=o(i,s),p=l.tag,m=l.data;switch(p){case"CERTIFICATE":f=c.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=c.PublicKey.decode(m,"der")),h=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return c.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=c.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+h)}case"ENCRYPTED PRIVATE KEY":m=(function(_,k){var M=_.algorithm.decrypt.kde.kdeparams.salt,j=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),z=a[_.algorithm.decrypt.cipher.algo.join(".")],A=_.algorithm.decrypt.cipher.iv,T=_.subjectPrivateKey,O=parseInt(z.split("-")[1],10)/8,L=e.pbkdf2Sync(k,M,j,O,"sha1"),B=n.createDecipheriv(z,L,A),S=[];return S.push(B.update(T)),S.push(B.final()),r.concat(S)})(m=c.EncryptedPrivateKey.decode(m,"der"),s);case"PRIVATE KEY":switch(h=(f=c.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return c.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:c.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=c.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+h)}case"RSA PUBLIC KEY":return c.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return c.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:c.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=c.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+p)}}b.exports=u,u.signature=c.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(t,b,g){g.pbkdf2=t("./lib/async"),g.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,b,g){(function(c){(function(){var a,o,n=t("safe-buffer").Buffer,e=t("./precondition"),r=t("./default-encoding"),u=t("./sync"),i=t("./to-buffer"),s=c.crypto&&c.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function l(){return o||(o=c.process&&c.process.nextTick?c.process.nextTick:c.queueMicrotask?c.queueMicrotask:c.setImmediate?c.setImmediate:c.setTimeout)}function p(m,_,k,M,j){return s.importKey("raw",m,{name:"PBKDF2"},!1,["deriveBits"]).then((function(z){return s.deriveBits({name:"PBKDF2",salt:_,iterations:k,hash:{name:j}},z,M<<3)})).then((function(z){return n.from(z)}))}b.exports=function(m,_,k,M,j,z){typeof j=="function"&&(z=j,j=void 0);var A=h[(j=j||"sha1").toLowerCase()];if(A&&typeof c.Promise=="function"){if(e(k,M),m=i(m,r,"Password"),_=i(_,r,"Salt"),typeof z!="function")throw new Error("No callback provided to pbkdf2");(function(T,O){T.then((function(L){l()((function(){O(null,L)}))}),(function(L){l()((function(){O(L)}))}))})((function(T){if(c.process&&!c.process.browser||!s||!s.importKey||!s.deriveBits)return Promise.resolve(!1);if(f[T]!==void 0)return f[T];var O=p(a=a||n.alloc(8),a,10,128,T).then((function(){return!0})).catch((function(){return!1}));return f[T]=O,O})(A).then((function(T){return T?p(m,_,k,M,A):u(m,_,k,M,j)})),z)}else l()((function(){var T;try{T=u(m,_,k,M,j)}catch(O){return z(O)}z(null,T)}))}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(t,b,g){(function(c,a){(function(){var o;a.process&&a.process.browser?o="utf-8":a.process&&a.process.version?o=parseInt(c.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":o="utf-8",b.exports=o}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(t,b,g){var c=Math.pow(2,30)-1;b.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>c||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(t,b,g){var c=t("create-hash/md5"),a=t("ripemd160"),o=t("sha.js"),n=t("safe-buffer").Buffer,e=t("./precondition"),r=t("./default-encoding"),u=t("./to-buffer"),i=n.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(f,l,p){var m=(function(A){function T(O){return o(A).update(O).digest()}return A==="rmd160"||A==="ripemd160"?function(O){return new a().update(O).digest()}:A==="md5"?c:T})(f),_=f==="sha512"||f==="sha384"?128:64;l.length>_?l=m(l):l.length<_&&(l=n.concat([l,i],_));for(var k=n.allocUnsafe(_+s[f]),M=n.allocUnsafe(_+s[f]),j=0;j<_;j++)k[j]=54^l[j],M[j]=92^l[j];var z=n.allocUnsafe(_+p+4);k.copy(z,0,0,_),this.ipad1=z,this.ipad2=k,this.opad=M,this.alg=f,this.blocksize=_,this.hash=m,this.size=s[f]}h.prototype.run=function(f,l){return f.copy(l,this.blocksize),this.hash(l).copy(this.opad,this.blocksize),this.hash(this.opad)},b.exports=function(f,l,p,m,_){e(p,m);var k=new h(_=_||"sha1",f=u(f,r,"Password"),(l=u(l,r,"Salt")).length),M=n.allocUnsafe(m),j=n.allocUnsafe(l.length+4);l.copy(j,0,0,l.length);for(var z=0,A=s[_],T=Math.ceil(m/A),O=1;O<=T;O++){j.writeUInt32BE(O,l.length);for(var L=k.run(j,k.ipad1),B=L,S=1;S<p;S++){B=k.run(B,k.ipad2);for(var D=0;D<A;D++)L[D]^=B[D]}L.copy(M,z),z+=A}return M}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(t,b,g){var c=t("safe-buffer").Buffer;b.exports=function(a,o,n){if(c.isBuffer(a))return a;if(typeof a=="string")return c.from(a,o);if(ArrayBuffer.isView(a))return c.from(a.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,b,g){(function(c){(function(){c===void 0||!c.version||c.version.indexOf("v0.")===0||c.version.indexOf("v1.")===0&&c.version.indexOf("v1.8.")!==0?b.exports={nextTick:function(a,o,n,e){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var r,u,i=arguments.length;switch(i){case 0:case 1:return c.nextTick(a);case 2:return c.nextTick((function(){a.call(null,o)}));case 3:return c.nextTick((function(){a.call(null,o,n)}));case 4:return c.nextTick((function(){a.call(null,o,n,e)}));default:for(r=new Array(i-1),u=0;u<r.length;)r[u++]=arguments[u];return c.nextTick((function(){a.apply(null,r)}))}}}:b.exports=c}).call(this)}).call(this,t("_process"))},{_process:467}],467:[function(t,b,g){var c,a,o=b.exports={};function n(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function r(_){if(c===setTimeout)return setTimeout(_,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(_,0);try{return c(_,0)}catch{try{return c.call(null,_,0)}catch{return c.call(this,_,0)}}}(function(){try{c=typeof setTimeout=="function"?setTimeout:n}catch{c=n}try{a=typeof clearTimeout=="function"?clearTimeout:e}catch{a=e}})();var u,i=[],s=!1,h=-1;function f(){s&&u&&(s=!1,u.length?i=u.concat(i):h=-1,i.length&&l())}function l(){if(!s){var _=r(f);s=!0;for(var k=i.length;k;){for(u=i,i=[];++h<k;)u&&u[h].run();h=-1,k=i.length}u=null,s=!1,(function(M){if(a===clearTimeout)return clearTimeout(M);if((a===e||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(M);try{a(M)}catch{try{return a.call(null,M)}catch{return a.call(this,M)}}})(_)}}function p(_,k){this.fun=_,this.array=k}function m(){}o.nextTick=function(_){var k=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)k[M-1]=arguments[M];i.push(new p(_,k)),i.length!==1||s||r(l)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(_){return[]},o.binding=function(_){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(_){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(t,b,g){g.publicEncrypt=t("./publicEncrypt"),g.privateDecrypt=t("./privateDecrypt"),g.privateEncrypt=function(c,a){return g.publicEncrypt(c,a,!0)},g.publicDecrypt=function(c,a){return g.privateDecrypt(c,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,b,g){var c=t("create-hash"),a=t("safe-buffer").Buffer;function o(n){var e=a.allocUnsafe(4);return e.writeUInt32BE(n,0),e}b.exports=function(n,e){for(var r,u=a.alloc(0),i=0;u.length<e;)r=o(i++),u=a.concat([u,c("sha1").update(n).update(r).digest()]);return u.slice(0,e)}},{"create-hash":386,"safe-buffer":494}],470:[function(t,b,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],471:[function(t,b,g){var c=t("parse-asn1"),a=t("./mgf"),o=t("./xor"),n=t("bn.js"),e=t("browserify-rsa"),r=t("create-hash"),u=t("./withPublic"),i=t("safe-buffer").Buffer;b.exports=function(s,h,f){var l;l=s.padding?s.padding:f?1:4;var p,m=c(s),_=m.modulus.byteLength();if(h.length>_||new n(h).cmp(m.modulus)>=0)throw new Error("decryption error");p=f?u(new n(h),m):e(h,m);var k=i.alloc(_-p.length);if(p=i.concat([k,p],_),l===4)return(function(M,j){var z=M.modulus.byteLength(),A=r("sha1").update(i.alloc(0)).digest(),T=A.length;if(j[0]!==0)throw new Error("decryption error");var O=j.slice(1,T+1),L=j.slice(T+1),B=o(O,a(L,T)),S=o(L,a(B,z-T-1));if((function(w,d){w=i.from(w),d=i.from(d);var v=0,y=w.length;w.length!==d.length&&(v++,y=Math.min(w.length,d.length));for(var x=-1;++x<y;)v+=w[x]^d[x];return v})(A,S.slice(0,T)))throw new Error("decryption error");for(var D=T;S[D]===0;)D++;if(S[D++]!==1)throw new Error("decryption error");return S.slice(D)})(m,p);if(l===1)return(function(M,j,z){for(var A=j.slice(0,2),T=2,O=0;j[T++]!==0;)if(T>=j.length){O++;break}var L=j.slice(2,T-1);if((A.toString("hex")!=="0002"&&!z||A.toString("hex")!=="0001"&&z)&&O++,L.length<8&&O++,O)throw new Error("decryption error");return j.slice(T)})(0,p,f);if(l===3)return p;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(t,b,g){var c=t("parse-asn1"),a=t("randombytes"),o=t("create-hash"),n=t("./mgf"),e=t("./xor"),r=t("bn.js"),u=t("./withPublic"),i=t("browserify-rsa"),s=t("safe-buffer").Buffer;b.exports=function(h,f,l){var p;p=h.padding?h.padding:l?1:4;var m,_=c(h);if(p===4)m=(function(k,M){var j=k.modulus.byteLength(),z=M.length,A=o("sha1").update(s.alloc(0)).digest(),T=A.length,O=2*T;if(z>j-O-2)throw new Error("message too long");var L=s.alloc(j-z-O-2),B=j-T-1,S=a(T),D=e(s.concat([A,L,s.alloc(1,1),M],B),n(S,B)),w=e(S,n(D,T));return new r(s.concat([s.alloc(1),w,D],j))})(_,f);else if(p===1)m=(function(k,M,j){var z,A=M.length,T=k.modulus.byteLength();if(A>T-11)throw new Error("message too long");return z=j?s.alloc(T-A-3,255):(function(O){for(var L,B=s.allocUnsafe(O),S=0,D=a(2*O),w=0;S<O;)w===D.length&&(D=a(2*O),w=0),(L=D[w++])&&(B[S++]=L);return B})(T-A-3),new r(s.concat([s.from([0,j?1:2]),z,s.alloc(1),M],T))})(_,f,l);else{if(p!==3)throw new Error("unknown padding");if((m=new r(f)).cmp(_.modulus)>=0)throw new Error("data too long for modulus")}return l?i(m,_):u(m,_)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(t,b,g){var c=t("bn.js"),a=t("safe-buffer").Buffer;b.exports=function(o,n){return a.from(o.toRed(c.mont(n.modulus)).redPow(new c(n.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(t,b,g){b.exports=function(c,a){for(var o=c.length,n=-1;++n<o;)c[n]^=a[n];return c}},{}],475:[function(t,b,g){(function(c,a){(function(){var o=t("safe-buffer").Buffer,n=a.crypto||a.msCrypto;n&&n.getRandomValues?b.exports=function(e,r){if(e>4294967295)throw new RangeError("requested too many random bytes");var u=o.allocUnsafe(e);if(e>0)if(e>65536)for(var i=0;i<e;i+=65536)n.getRandomValues(u.slice(i,i+65536));else n.getRandomValues(u);return typeof r=="function"?c.nextTick((function(){r(null,u)})):u}:b.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
19
|
+
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(t,b,g){(function(c,a){(function(){function o(){throw new Error(`secure random number generation not supported by this browser
|
|
20
|
+
use chrome, FireFox or Internet Explorer 11`)}var n=t("safe-buffer"),e=t("randombytes"),r=n.Buffer,u=n.kMaxLength,i=a.crypto||a.msCrypto,s=Math.pow(2,32)-1;function h(p,m){if(typeof p!="number"||p!=p)throw new TypeError("offset must be a number");if(p>s||p<0)throw new TypeError("offset must be a uint32");if(p>u||p>m)throw new RangeError("offset out of range")}function f(p,m,_){if(typeof p!="number"||p!=p)throw new TypeError("size must be a number");if(p>s||p<0)throw new TypeError("size must be a uint32");if(p+m>_||p>u)throw new RangeError("buffer too small")}function l(p,m,_,k){if(c.browser){var M=p.buffer,j=new Uint8Array(M,m,_);return i.getRandomValues(j),k?void c.nextTick((function(){k(null,p)})):p}if(!k)return e(_).copy(p,m),p;e(_,(function(z,A){if(z)return k(z);A.copy(p,m),k(null,p)}))}i&&i.getRandomValues||!c.browser?(g.randomFill=function(p,m,_,k){if(!(r.isBuffer(p)||p instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof m=="function")k=m,m=0,_=p.length;else if(typeof _=="function")k=_,_=p.length-m;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return h(m,p.length),f(_,m,p.length),l(p,m,_,k)},g.randomFillSync=function(p,m,_){if(m===void 0&&(m=0),!(r.isBuffer(p)||p instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(m,p.length),_===void 0&&(_=p.length-m),f(_,m,p.length),l(p,m,_)}):(g.randomFill=o,g.randomFillSync=o)}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(t,b,g){var c={};function a(n,e,r){r||(r=Error);var u=(function(i){var s,h;function f(l,p,m){return i.call(this,(function(_,k,M){return typeof e=="string"?e:e(_,k,M)})(l,p,m))||this}return h=i,(s=f).prototype=Object.create(h.prototype),s.prototype.constructor=s,s.__proto__=h,f})(r);u.prototype.name=r.name,u.prototype.code=n,c[n]=u}function o(n,e){if(Array.isArray(n)){var r=n.length;return n=n.map((function(u){return String(u)})),r>2?"one of ".concat(e," ").concat(n.slice(0,r-1).join(", "),", or ")+n[r-1]:r===2?"one of ".concat(e," ").concat(n[0]," or ").concat(n[1]):"of ".concat(e," ").concat(n[0])}return"of ".concat(e," ").concat(String(n))}a("ERR_INVALID_OPT_VALUE",(function(n,e){return'The value "'+e+'" is invalid for option "'+n+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(n,e,r){var u,i,s;if(typeof e=="string"&&(i="not ",e.substr(0,i.length)===i)?(u="must not be",e=e.replace(/^not /,"")):u="must be",(function(f,l,p){return(p===void 0||p>f.length)&&(p=f.length),f.substring(p-l.length,p)===l})(n," argument"))s="The ".concat(n," ").concat(u," ").concat(o(e,"type"));else{var h=(function(f,l,p){return typeof p!="number"&&(p=0),!(p+l.length>f.length)&&f.indexOf(l,p)!==-1})(n,".")?"property":"argument";s='The "'.concat(n,'" ').concat(h," ").concat(u," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(n){return"The "+n+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(n){return"Cannot call "+n+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(n){return"Unknown encoding: "+n}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),b.exports.codes=c},{}],478:[function(t,b,g){(function(c){(function(){var a=Object.keys||function(f){var l=[];for(var p in f)l.push(p);return l};b.exports=i;var o=t("./_stream_readable"),n=t("./_stream_writable");t("inherits")(i,o);for(var e=a(n.prototype),r=0;r<e.length;r++){var u=e[r];i.prototype[u]||(i.prototype[u]=n.prototype[u])}function i(f){if(!(this instanceof i))return new i(f);o.call(this,f),n.call(this,f),this.allowHalfOpen=!0,f&&(f.readable===!1&&(this.readable=!1),f.writable===!1&&(this.writable=!1),f.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||c.nextTick(h,this)}function h(f){f.end()}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(t,b,g){b.exports=a;var c=t("./_stream_transform");function a(o){if(!(this instanceof a))return new a(o);c.call(this,o)}t("inherits")(a,c),a.prototype._transform=function(o,n,e){e(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(t,b,g){(function(c,a){(function(){var o;b.exports=B,B.ReadableState=L,t("events").EventEmitter;var n=function(I,F){return I.listeners(F).length},e=t("./internal/streams/stream"),r=t("buffer").Buffer,u=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},i,s=t("util");i=s&&s.debuglog?s.debuglog("stream"):function(){};var h,f,l,p=t("./internal/streams/buffer_list"),m=t("./internal/streams/destroy"),_=t("./internal/streams/state").getHighWaterMark,k=t("../errors").codes,M=k.ERR_INVALID_ARG_TYPE,j=k.ERR_STREAM_PUSH_AFTER_EOF,z=k.ERR_METHOD_NOT_IMPLEMENTED,A=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(B,e);var T=m.errorOrDestroy,O=["error","close","destroy","pause","resume"];function L(I,F,H){o=o||t("./_stream_duplex"),I=I||{},typeof H!="boolean"&&(H=F instanceof o),this.objectMode=!!I.objectMode,H&&(this.objectMode=this.objectMode||!!I.readableObjectMode),this.highWaterMark=_(this,I,"readableHighWaterMark",H),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.destroyed=!1,this.defaultEncoding=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(h||(h=t("string_decoder/").StringDecoder),this.decoder=new h(I.encoding),this.encoding=I.encoding)}function B(I){if(o=o||t("./_stream_duplex"),!(this instanceof B))return new B(I);var F=this instanceof o;this._readableState=new L(I,this,F),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),e.call(this)}function S(I,F,H,W,J){i("readableAddChunk",F);var Y,K=I._readableState;if(F===null)K.reading=!1,(function(et,nt){if(i("onEofChunk"),!nt.ended){if(nt.decoder){var G=nt.decoder.end();G&&G.length&&(nt.buffer.push(G),nt.length+=nt.objectMode?1:G.length)}nt.ended=!0,nt.sync?d(et):(nt.needReadable=!1,nt.emittedReadable||(nt.emittedReadable=!0,v(et)))}})(I,K);else if(J||(Y=(function(et,nt){var G;tt=nt,r.isBuffer(tt)||tt instanceof u||typeof nt=="string"||nt===void 0||et.objectMode||(G=new M("chunk",["string","Buffer","Uint8Array"],nt));var tt;return G})(K,F)),Y)T(I,Y);else if(K.objectMode||F&&F.length>0)if(typeof F=="string"||K.objectMode||Object.getPrototypeOf(F)===r.prototype||(F=(function(et){return r.from(et)})(F)),W)K.endEmitted?T(I,new A):D(I,K,F,!0);else if(K.ended)T(I,new j);else{if(K.destroyed)return!1;K.reading=!1,K.decoder&&!H?(F=K.decoder.write(F),K.objectMode||F.length!==0?D(I,K,F,!1):y(I,K)):D(I,K,F,!1)}else W||(K.reading=!1,y(I,K));return!K.ended&&(K.length<K.highWaterMark||K.length===0)}function D(I,F,H,W){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,I.emit("data",H)):(F.length+=F.objectMode?1:H.length,W?F.buffer.unshift(H):F.buffer.push(H),F.needReadable&&d(I)),y(I,F)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),B.prototype.destroy=m.destroy,B.prototype._undestroy=m.undestroy,B.prototype._destroy=function(I,F){F(I)},B.prototype.push=function(I,F){var H,W=this._readableState;return W.objectMode?H=!0:typeof I=="string"&&((F=F||W.defaultEncoding)!==W.encoding&&(I=r.from(I,F),F=""),H=!0),S(this,I,F,!1,H)},B.prototype.unshift=function(I){return S(this,I,null,!0,!1)},B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(I){h||(h=t("string_decoder/").StringDecoder);var F=new h(I);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var H=this._readableState.buffer.head,W="";H!==null;)W+=F.write(H.data),H=H.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};function w(I,F){return I<=0||F.length===0&&F.ended?0:F.objectMode?1:I!=I?F.flowing&&F.length?F.buffer.head.data.length:F.length:(I>F.highWaterMark&&(F.highWaterMark=(function(H){return H>=1073741824?H=1073741824:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H})(I)),I<=F.length?I:F.ended?F.length:(F.needReadable=!0,0))}function d(I){var F=I._readableState;i("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(i("emitReadable",F.flowing),F.emittedReadable=!0,c.nextTick(v,I))}function v(I){var F=I._readableState;i("emitReadable_",F.destroyed,F.length,F.ended),F.destroyed||!F.length&&!F.ended||(I.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,$(I)}function y(I,F){F.readingMore||(F.readingMore=!0,c.nextTick(x,I,F))}function x(I,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var H=F.length;if(i("maybeReadMore read 0"),I.read(0),H===F.length)break}F.readingMore=!1}function C(I){var F=I._readableState;F.readableListening=I.listenerCount("readable")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:I.listenerCount("data")>0&&I.resume()}function N(I){i("readable nexttick read 0"),I.read(0)}function R(I,F){i("resume",F.reading),F.reading||I.read(0),F.resumeScheduled=!1,I.emit("resume"),$(I),F.flowing&&!F.reading&&I.read(0)}function $(I){var F=I._readableState;for(i("flow",F.flowing);F.flowing&&I.read()!==null;);}function V(I,F){return F.length===0?null:(F.objectMode?H=F.buffer.shift():!I||I>=F.length?(H=F.decoder?F.buffer.join(""):F.buffer.length===1?F.buffer.first():F.buffer.concat(F.length),F.buffer.clear()):H=F.buffer.consume(I,F.decoder),H);var H}function X(I){var F=I._readableState;i("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,c.nextTick(P,F,I))}function P(I,F){if(i("endReadableNT",I.endEmitted,I.length),!I.endEmitted&&I.length===0&&(I.endEmitted=!0,F.readable=!1,F.emit("end"),I.autoDestroy)){var H=F._writableState;(!H||H.autoDestroy&&H.finished)&&F.destroy()}}function q(I,F){for(var H=0,W=I.length;H<W;H++)if(I[H]===F)return H;return-1}B.prototype.read=function(I){i("read",I),I=parseInt(I,10);var F=this._readableState,H=I;if(I!==0&&(F.emittedReadable=!1),I===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return i("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?X(this):d(this),null;if((I=w(I,F))===0&&F.ended)return F.length===0&&X(this),null;var W,J=F.needReadable;return i("need readable",J),(F.length===0||F.length-I<F.highWaterMark)&&i("length less than watermark",J=!0),F.ended||F.reading?i("reading or ended",J=!1):J&&(i("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(I=w(H,F))),(W=I>0?V(I,F):null)===null?(F.needReadable=F.length<=F.highWaterMark,I=0):(F.length-=I,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),H!==I&&F.ended&&X(this)),W!==null&&this.emit("data",W),W},B.prototype._read=function(I){T(this,new z("_read()"))},B.prototype.pipe=function(I,F){var H=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,i("pipe count=%d opts=%j",W.pipesCount,F);var J=(!F||F.end!==!1)&&I!==c.stdout&&I!==c.stderr?K:it;function Y(ot,ct){i("onunpipe"),ot===H&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,i("cleanup"),I.removeListener("close",Q),I.removeListener("finish",st),I.removeListener("drain",et),I.removeListener("error",tt),I.removeListener("unpipe",Y),H.removeListener("end",K),H.removeListener("end",it),H.removeListener("data",G),nt=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||et())}function K(){i("onend"),I.end()}W.endEmitted?c.nextTick(J):H.once("end",J),I.on("unpipe",Y);var et=(function(ot){return function(){var ct=ot._readableState;i("pipeOnDrain",ct.awaitDrain),ct.awaitDrain&&ct.awaitDrain--,ct.awaitDrain===0&&n(ot,"data")&&(ct.flowing=!0,$(ot))}})(H);I.on("drain",et);var nt=!1;function G(ot){i("ondata");var ct=I.write(ot);i("dest.write",ct),ct===!1&&((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&q(W.pipes,I)!==-1)&&!nt&&(i("false write response, pause",W.awaitDrain),W.awaitDrain++),H.pause())}function tt(ot){i("onerror",ot),it(),I.removeListener("error",tt),n(I,"error")===0&&T(I,ot)}function Q(){I.removeListener("finish",st),it()}function st(){i("onfinish"),I.removeListener("close",Q),it()}function it(){i("unpipe"),H.unpipe(I)}return H.on("data",G),(function(ot,ct,ht){if(typeof ot.prependListener=="function")return ot.prependListener(ct,ht);ot._events&&ot._events[ct]?Array.isArray(ot._events[ct])?ot._events[ct].unshift(ht):ot._events[ct]=[ht,ot._events[ct]]:ot.on(ct,ht)})(I,"error",tt),I.once("close",Q),I.once("finish",st),I.emit("pipe",H),W.flowing||(i("pipe resume"),H.resume()),I},B.prototype.unpipe=function(I){var F=this._readableState,H={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return I&&I!==F.pipes||(I||(I=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,I&&I.emit("unpipe",this,H)),this;if(!I){var W=F.pipes,J=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var Y=0;Y<J;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var K=q(F.pipes,I);return K===-1||(F.pipes.splice(K,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),I.emit("unpipe",this,H)),this},B.prototype.on=function(I,F){var H=e.prototype.on.call(this,I,F),W=this._readableState;return I==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):I==="readable"&&(W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,i("on readable",W.length,W.reading),W.length?d(this):W.reading||c.nextTick(N,this))),H},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(I,F){var H=e.prototype.removeListener.call(this,I,F);return I==="readable"&&c.nextTick(C,this),H},B.prototype.removeAllListeners=function(I){var F=e.prototype.removeAllListeners.apply(this,arguments);return I!=="readable"&&I!==void 0||c.nextTick(C,this),F},B.prototype.resume=function(){var I=this._readableState;return I.flowing||(i("resume"),I.flowing=!I.readableListening,(function(F,H){H.resumeScheduled||(H.resumeScheduled=!0,c.nextTick(R,F,H))})(this,I)),I.paused=!1,this},B.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(I){var F=this,H=this._readableState,W=!1;for(var J in I.on("end",(function(){if(i("wrapped end"),H.decoder&&!H.ended){var K=H.decoder.end();K&&K.length&&F.push(K)}F.push(null)})),I.on("data",(function(K){i("wrapped data"),H.decoder&&(K=H.decoder.write(K)),H.objectMode&&K==null||(H.objectMode||K&&K.length)&&(F.push(K)||(W=!0,I.pause()))})),I)this[J]===void 0&&typeof I[J]=="function"&&(this[J]=(function(K){return function(){return I[K].apply(I,arguments)}})(J));for(var Y=0;Y<O.length;Y++)I.on(O[Y],this.emit.bind(this,O[Y]));return this._read=function(K){i("wrapped _read",K),W&&(W=!1,I.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return f===void 0&&(f=t("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),B._fromList=V,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(B.from=function(I,F){return l===void 0&&(l=t("./internal/streams/from")),l(B,I,F)})}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(t,b,g){b.exports=i;var c=t("../errors").codes,a=c.ERR_METHOD_NOT_IMPLEMENTED,o=c.ERR_MULTIPLE_CALLBACK,n=c.ERR_TRANSFORM_ALREADY_TRANSFORMING,e=c.ERR_TRANSFORM_WITH_LENGTH_0,r=t("./_stream_duplex");function u(f,l){var p=this._transformState;p.transforming=!1;var m=p.writecb;if(m===null)return this.emit("error",new o);p.writechunk=null,p.writecb=null,l!=null&&this.push(l),m(f);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function i(f){if(!(this instanceof i))return new i(f);r.call(this,f),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",s)}function s(){var f=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush((function(l,p){h(f,l,p)}))}function h(f,l,p){if(l)return f.emit("error",l);if(p!=null&&f.push(p),f._writableState.length)throw new e;if(f._transformState.transforming)throw new n;return f.push(null)}t("inherits")(i,r),i.prototype.push=function(f,l){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,l)},i.prototype._transform=function(f,l,p){p(new a("_transform()"))},i.prototype._write=function(f,l,p){var m=this._transformState;if(m.writecb=p,m.writechunk=f,m.writeencoding=l,!m.transforming){var _=this._readableState;(m.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},i.prototype._read=function(f){var l=this._transformState;l.writechunk===null||l.transforming?l.needTransform=!0:(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform))},i.prototype._destroy=function(f,l){r.prototype._destroy.call(this,f,(function(p){l(p)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(t,b,g){(function(c,a){(function(){function o(x){var C=this;this.next=null,this.entry=null,this.finish=function(){(function(N,R,$){var V=N.entry;for(N.entry=null;V;){var X=V.callback;R.pendingcb--,X($),V=V.next}R.corkedRequestsFree.next=N})(C,x)}}var n;b.exports=B,B.WritableState=L;var e={deprecate:t("util-deprecate")},r=t("./internal/streams/stream"),u=t("buffer").Buffer,i=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s,h=t("./internal/streams/destroy"),f=t("./internal/streams/state").getHighWaterMark,l=t("../errors").codes,p=l.ERR_INVALID_ARG_TYPE,m=l.ERR_METHOD_NOT_IMPLEMENTED,_=l.ERR_MULTIPLE_CALLBACK,k=l.ERR_STREAM_CANNOT_PIPE,M=l.ERR_STREAM_DESTROYED,j=l.ERR_STREAM_NULL_VALUES,z=l.ERR_STREAM_WRITE_AFTER_END,A=l.ERR_UNKNOWN_ENCODING,T=h.errorOrDestroy;function O(){}function L(x,C,N){n=n||t("./_stream_duplex"),x=x||{},typeof N!="boolean"&&(N=C instanceof n),this.objectMode=!!x.objectMode,N&&(this.objectMode=this.objectMode||!!x.writableObjectMode),this.highWaterMark=f(this,x,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=x.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){(function(V,X){var P=V._writableState,q=P.sync,I=P.writecb;if(typeof I!="function")throw new _;if((function(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0})(P),X)(function(H,W,J,Y,K){--W.pendingcb,J?(c.nextTick(K,Y),c.nextTick(y,H,W),H._writableState.errorEmitted=!0,T(H,Y)):(K(Y),H._writableState.errorEmitted=!0,T(H,Y),y(H,W))})(V,P,q,X,I);else{var F=d(P)||V.destroyed;F||P.corked||P.bufferProcessing||!P.bufferedRequest||w(V,P),q?c.nextTick(D,V,P,F,I):D(V,P,F,I)}})(C,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=x.emitClose!==!1,this.autoDestroy=!!x.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function B(x){var C=this instanceof(n=n||t("./_stream_duplex"));if(!C&&!s.call(B,this))return new B(x);this._writableState=new L(x,this,C),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),r.call(this)}function S(x,C,N,R,$,V,X){C.writelen=R,C.writecb=X,C.writing=!0,C.sync=!0,C.destroyed?C.onwrite(new M("write")):N?x._writev($,C.onwrite):x._write($,V,C.onwrite),C.sync=!1}function D(x,C,N,R){N||(function($,V){V.length===0&&V.needDrain&&(V.needDrain=!1,$.emit("drain"))})(x,C),C.pendingcb--,R(),y(x,C)}function w(x,C){C.bufferProcessing=!0;var N=C.bufferedRequest;if(x._writev&&N&&N.next){var R=C.bufferedRequestCount,$=new Array(R),V=C.corkedRequestsFree;V.entry=N;for(var X=0,P=!0;N;)$[X]=N,N.isBuf||(P=!1),N=N.next,X+=1;$.allBuffers=P,S(x,C,!0,C.length,$,"",V.finish),C.pendingcb++,C.lastBufferedRequest=null,V.next?(C.corkedRequestsFree=V.next,V.next=null):C.corkedRequestsFree=new o(C),C.bufferedRequestCount=0}else{for(;N;){var q=N.chunk,I=N.encoding,F=N.callback;if(S(x,C,!1,C.objectMode?1:q.length,q,I,F),N=N.next,C.bufferedRequestCount--,C.writing)break}N===null&&(C.lastBufferedRequest=null)}C.bufferedRequest=N,C.bufferProcessing=!1}function d(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function v(x,C){x._final((function(N){C.pendingcb--,N&&T(x,N),C.prefinished=!0,x.emit("prefinish"),y(x,C)}))}function y(x,C){var N=d(C);if(N&&((function($,V){V.prefinished||V.finalCalled||(typeof $._final!="function"||V.destroyed?(V.prefinished=!0,$.emit("prefinish")):(V.pendingcb++,V.finalCalled=!0,c.nextTick(v,$,V)))})(x,C),C.pendingcb===0&&(C.finished=!0,x.emit("finish"),C.autoDestroy))){var R=x._readableState;(!R||R.autoDestroy&&R.endEmitted)&&x.destroy()}return N}t("inherits")(B,r),L.prototype.getBuffer=function(){for(var x=this.bufferedRequest,C=[];x;)C.push(x),x=x.next;return C},(function(){try{Object.defineProperty(L.prototype,"buffer",{get:e.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(x){return!!s.call(this,x)||this===B&&x&&x._writableState instanceof L}})):s=function(x){return x instanceof this},B.prototype.pipe=function(){T(this,new k)},B.prototype.write=function(x,C,N){var R,$=this._writableState,V=!1,X=!$.objectMode&&(R=x,u.isBuffer(R)||R instanceof i);return X&&!u.isBuffer(x)&&(x=(function(P){return u.from(P)})(x)),typeof C=="function"&&(N=C,C=null),X?C="buffer":C||(C=$.defaultEncoding),typeof N!="function"&&(N=O),$.ending?(function(P,q){var I=new z;T(P,I),c.nextTick(q,I)})(this,N):(X||(function(P,q,I,F){var H;return I===null?H=new j:typeof I=="string"||q.objectMode||(H=new p("chunk",["string","Buffer"],I)),!H||(T(P,H),c.nextTick(F,H),!1)})(this,$,x,N))&&($.pendingcb++,V=(function(P,q,I,F,H,W){if(!I){var J=(function(nt,G,tt){return nt.objectMode||nt.decodeStrings===!1||typeof G!="string"||(G=u.from(G,tt)),G})(q,F,H);F!==J&&(I=!0,H="buffer",F=J)}var Y=q.objectMode?1:F.length;q.length+=Y;var K=q.length<q.highWaterMark;if(K||(q.needDrain=!0),q.writing||q.corked){var et=q.lastBufferedRequest;q.lastBufferedRequest={chunk:F,encoding:H,isBuf:I,callback:W,next:null},et?et.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else S(P,q,!1,Y,F,H,W);return K})(this,$,X,x,C,N)),V},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,x.writing||x.corked||x.bufferProcessing||!x.bufferedRequest||w(this,x))},B.prototype.setDefaultEncoding=function(x){if(typeof x=="string"&&(x=x.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((x+"").toLowerCase())>-1))throw new A(x);return this._writableState.defaultEncoding=x,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(x,C,N){N(new m("_write()"))},B.prototype._writev=null,B.prototype.end=function(x,C,N){var R=this._writableState;return typeof x=="function"?(N=x,x=null,C=null):typeof C=="function"&&(N=C,C=null),x!=null&&this.write(x,C),R.corked&&(R.corked=1,this.uncork()),R.ending||(function($,V,X){V.ending=!0,y($,V),X&&(V.finished?c.nextTick(X):$.once("finish",X)),V.ended=!0,$.writable=!1})(this,R,N),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),B.prototype.destroy=h.destroy,B.prototype._undestroy=h.undestroy,B.prototype._destroy=function(x,C){C(x)}}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(t,b,g){(function(c){(function(){var a;function o(M,j,z){return(j=(function(A){var T=(function(O,L){if(typeof O!="object"||O===null)return O;var B=O[Symbol.toPrimitive];if(B!==void 0){var S=B.call(O,L);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(O)})(A,"string");return typeof T=="symbol"?T:String(T)})(j))in M?Object.defineProperty(M,j,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[j]=z,M}var n=t("./end-of-stream"),e=Symbol("lastResolve"),r=Symbol("lastReject"),u=Symbol("error"),i=Symbol("ended"),s=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function l(M,j){return{value:M,done:j}}function p(M){var j=M[e];if(j!==null){var z=M[f].read();z!==null&&(M[s]=null,M[e]=null,M[r]=null,j(l(z,!1)))}}function m(M){c.nextTick(p,M)}var _=Object.getPrototypeOf((function(){})),k=Object.setPrototypeOf((o(a={get stream(){return this[f]},next:function(){var M=this,j=this[u];if(j!==null)return Promise.reject(j);if(this[i])return Promise.resolve(l(void 0,!0));if(this[f].destroyed)return new Promise((function(O,L){c.nextTick((function(){M[u]?L(M[u]):O(l(void 0,!0))}))}));var z,A=this[s];if(A)z=new Promise((function(O,L){return function(B,S){O.then((function(){L[i]?B(l(void 0,!0)):L[h](B,S)}),S)}})(A,this));else{var T=this[f].read();if(T!==null)return Promise.resolve(l(T,!1));z=new Promise(this[h])}return this[s]=z,z}},Symbol.asyncIterator,(function(){return this})),o(a,"return",(function(){var M=this;return new Promise((function(j,z){M[f].destroy(null,(function(A){A?z(A):j(l(void 0,!0))}))}))})),a),_);b.exports=function(M){var j,z=Object.create(k,(o(j={},f,{value:M,writable:!0}),o(j,e,{value:null,writable:!0}),o(j,r,{value:null,writable:!0}),o(j,u,{value:null,writable:!0}),o(j,i,{value:M._readableState.endEmitted,writable:!0}),o(j,h,{value:function(A,T){var O=z[f].read();O?(z[s]=null,z[e]=null,z[r]=null,A(l(O,!1))):(z[e]=A,z[r]=T)},writable:!0}),j));return z[s]=null,n(M,(function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=z[r];return T!==null&&(z[s]=null,z[e]=null,z[r]=null,T(A)),void(z[u]=A)}var O=z[e];O!==null&&(z[s]=null,z[e]=null,z[r]=null,O(l(void 0,!0))),z[i]=!0})),M.on("readable",m.bind(null,z)),z}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":486,_process:467}],484:[function(t,b,g){function c(s,h){var f=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);h&&(l=l.filter((function(p){return Object.getOwnPropertyDescriptor(s,p).enumerable}))),f.push.apply(f,l)}return f}function a(s){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?c(Object(f),!0).forEach((function(l){o(s,l,f[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):c(Object(f)).forEach((function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(f,l))}))}return s}function o(s,h,f){return(h=e(h))in s?Object.defineProperty(s,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[h]=f,s}function n(s,h){for(var f=0;f<h.length;f++){var l=h[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,e(l.key),l)}}function e(s){var h=(function(f,l){if(typeof f!="object"||f===null)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var m=p.call(f,l);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(f)})(s,"string");return typeof h=="symbol"?h:String(h)}var r=t("buffer").Buffer,u=t("util").inspect,i=u&&u.custom||"inspect";b.exports=(function(){function s(){(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}var h,f;return h=s,(f=[{key:"push",value:function(l){var p={data:l,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(l){var p={data:l,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(l){if(this.length===0)return"";for(var p=this.head,m=""+p.data;p=p.next;)m+=l+p.data;return m}},{key:"concat",value:function(l){if(this.length===0)return r.alloc(0);for(var p,m,_,k=r.allocUnsafe(l>>>0),M=this.head,j=0;M;)p=M.data,m=k,_=j,r.prototype.copy.call(p,m,_),j+=M.data.length,M=M.next;return k}},{key:"consume",value:function(l,p){var m;return l<this.head.data.length?(m=this.head.data.slice(0,l),this.head.data=this.head.data.slice(l)):m=l===this.head.data.length?this.shift():p?this._getString(l):this._getBuffer(l),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(l){var p=this.head,m=1,_=p.data;for(l-=_.length;p=p.next;){var k=p.data,M=l>k.length?k.length:l;if(M===k.length?_+=k:_+=k.slice(0,l),(l-=M)==0){M===k.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=k.slice(M));break}++m}return this.length-=m,_}},{key:"_getBuffer",value:function(l){var p=r.allocUnsafe(l),m=this.head,_=1;for(m.data.copy(p),l-=m.data.length;m=m.next;){var k=m.data,M=l>k.length?k.length:l;if(k.copy(p,p.length-l,0,M),(l-=M)==0){M===k.length?(++_,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=k.slice(M));break}++_}return this.length-=_,p}},{key:i,value:function(l,p){return u(this,a(a({},p),{},{depth:0,customInspect:!1}))}}])&&n(h.prototype,f),Object.defineProperty(h,"prototype",{writable:!1}),s})()},{buffer:220,util:188}],485:[function(t,b,g){(function(c){(function(){function a(e,r){n(e,r),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,r){e.emit("error",r)}b.exports={destroy:function(e,r){var u=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(n,this,e)):c.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(h){!r&&h?u._writableState?u._writableState.errorEmitted?c.nextTick(o,u):(u._writableState.errorEmitted=!0,c.nextTick(a,u,h)):c.nextTick(a,u,h):r?(c.nextTick(o,u),r(h)):c.nextTick(o,u)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,r){var u=e._readableState,i=e._writableState;u&&u.autoDestroy||i&&i.autoDestroy?e.destroy(r):e.emit("error",r)}}}).call(this)}).call(this,t("_process"))},{_process:467}],486:[function(t,b,g){var c=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}b.exports=function o(n,e,r){if(typeof e=="function")return o(n,null,e);e||(e={}),r=(function(M){var j=!1;return function(){if(!j){j=!0;for(var z=arguments.length,A=new Array(z),T=0;T<z;T++)A[T]=arguments[T];M.apply(this,A)}}})(r||a);var u=e.readable||e.readable!==!1&&n.readable,i=e.writable||e.writable!==!1&&n.writable,s=function(){n.writable||f()},h=n._writableState&&n._writableState.finished,f=function(){i=!1,h=!0,u||r.call(n)},l=n._readableState&&n._readableState.endEmitted,p=function(){u=!1,l=!0,i||r.call(n)},m=function(M){r.call(n,M)},_=function(){var M;return u&&!l?(n._readableState&&n._readableState.ended||(M=new c),r.call(n,M)):i&&!h?(n._writableState&&n._writableState.ended||(M=new c),r.call(n,M)):void 0},k=function(){n.req.on("finish",f)};return(function(M){return M.setHeader&&typeof M.abort=="function"})(n)?(n.on("complete",f),n.on("abort",_),n.req?k():n.on("request",k)):i&&!n._writableState&&(n.on("end",s),n.on("close",s)),n.on("end",p),n.on("finish",f),e.error!==!1&&n.on("error",m),n.on("close",_),function(){n.removeListener("complete",f),n.removeListener("abort",_),n.removeListener("request",k),n.req&&n.req.removeListener("finish",f),n.removeListener("end",s),n.removeListener("close",s),n.removeListener("finish",f),n.removeListener("end",p),n.removeListener("error",m),n.removeListener("close",_)}}},{"../../../errors":477}],487:[function(t,b,g){b.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(t,b,g){var c,a=t("../../../errors").codes,o=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function e(h){if(h)throw h}function r(h,f,l,p){p=(function(k){var M=!1;return function(){M||(M=!0,k.apply(void 0,arguments))}})(p);var m=!1;h.on("close",(function(){m=!0})),c===void 0&&(c=t("./end-of-stream")),c(h,{readable:f,writable:l},(function(k){if(k)return p(k);m=!0,p()}));var _=!1;return function(k){if(!m&&!_)return _=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(h)?h.abort():typeof h.destroy=="function"?h.destroy():void p(k||new n("pipe"))}}function u(h){h()}function i(h,f){return h.pipe(f)}function s(h){return h.length?typeof h[h.length-1]!="function"?e:h.pop():e}b.exports=function(){for(var h=arguments.length,f=new Array(h),l=0;l<h;l++)f[l]=arguments[l];var p,m=s(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new o("streams");var _=f.map((function(k,M){var j=M<f.length-1;return r(k,j,M>0,(function(z){p||(p=z),z&&_.forEach(u),j||(_.forEach(u),m(p))}))}));return f.reduce(i)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(t,b,g){var c=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;b.exports={getHighWaterMark:function(a,o,n,e){var r=(function(u,i,s){return u.highWaterMark!=null?u.highWaterMark:i?u[s]:null})(o,e,n);if(r!=null){if(!isFinite(r)||Math.floor(r)!==r||r<0)throw new c(e?n:"highWaterMark",r);return Math.floor(r)}return a.objectMode?16:16384}}},{"../../../errors":477}],490:[function(t,b,g){b.exports=t("events").EventEmitter},{events:422}],491:[function(t,b,g){(g=b.exports=t("./lib/_stream_readable.js")).Stream=g,g.Readable=g,g.Writable=t("./lib/_stream_writable.js"),g.Duplex=t("./lib/_stream_duplex.js"),g.Transform=t("./lib/_stream_transform.js"),g.PassThrough=t("./lib/_stream_passthrough.js"),g.finished=t("./lib/internal/streams/end-of-stream.js"),g.pipeline=t("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(t,b,g){var c=(function(a){var o=Object.prototype,n=o.hasOwnProperty,e=Object.defineProperty||function(y,x,C){y[x]=C.value},r=typeof Symbol=="function"?Symbol:{},u=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function h(y,x,C){return Object.defineProperty(y,x,{value:C,enumerable:!0,configurable:!0,writable:!0}),y[x]}try{h({},"")}catch{h=function(x,C,N){return x[C]=N}}function f(y,x,C,N){var R=x&&x.prototype instanceof m?x:m,$=Object.create(R.prototype),V=new w(N||[]);return e($,"_invoke",{value:L(y,C,V)}),$}function l(y,x,C){try{return{type:"normal",arg:y.call(x,C)}}catch(N){return{type:"throw",arg:N}}}a.wrap=f;var p={};function m(){}function _(){}function k(){}var M={};h(M,u,(function(){return this}));var j=Object.getPrototypeOf,z=j&&j(j(d([])));z&&z!==o&&n.call(z,u)&&(M=z);var A=k.prototype=m.prototype=Object.create(M);function T(y){["next","throw","return"].forEach((function(x){h(y,x,(function(C){return this._invoke(x,C)}))}))}function O(y,x){var C;e(this,"_invoke",{value:function(N,R){function $(){return new x((function(V,X){(function P(q,I,F,H){var W=l(y[q],y,I);if(W.type!=="throw"){var J=W.arg,Y=J.value;return Y&&typeof Y=="object"&&n.call(Y,"__await")?x.resolve(Y.__await).then((function(K){P("next",K,F,H)}),(function(K){P("throw",K,F,H)})):x.resolve(Y).then((function(K){J.value=K,F(J)}),(function(K){return P("throw",K,F,H)}))}H(W.arg)})(N,R,V,X)}))}return C=C?C.then($,$):$()}})}function L(y,x,C){var N="suspendedStart";return function(R,$){if(N==="executing")throw new Error("Generator is already running");if(N==="completed"){if(R==="throw")throw $;return v()}for(C.method=R,C.arg=$;;){var V=C.delegate;if(V){var X=B(V,C);if(X){if(X===p)continue;return X}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(N==="suspendedStart")throw N="completed",C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);N="executing";var P=l(y,x,C);if(P.type==="normal"){if(N=C.done?"completed":"suspendedYield",P.arg===p)continue;return{value:P.arg,done:C.done}}P.type==="throw"&&(N="completed",C.method="throw",C.arg=P.arg)}}}function B(y,x){var C=x.method,N=y.iterator[C];if(N===void 0)return x.delegate=null,C==="throw"&&y.iterator.return&&(x.method="return",x.arg=void 0,B(y,x),x.method==="throw")||C!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+C+"' method")),p;var R=l(N,y.iterator,x.arg);if(R.type==="throw")return x.method="throw",x.arg=R.arg,x.delegate=null,p;var $=R.arg;return $?$.done?(x[y.resultName]=$.value,x.next=y.nextLoc,x.method!=="return"&&(x.method="next",x.arg=void 0),x.delegate=null,p):$:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,p)}function S(y){var x={tryLoc:y[0]};1 in y&&(x.catchLoc=y[1]),2 in y&&(x.finallyLoc=y[2],x.afterLoc=y[3]),this.tryEntries.push(x)}function D(y){var x=y.completion||{};x.type="normal",delete x.arg,y.completion=x}function w(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(S,this),this.reset(!0)}function d(y){if(y){var x=y[u];if(x)return x.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var C=-1,N=function R(){for(;++C<y.length;)if(n.call(y,C))return R.value=y[C],R.done=!1,R;return R.value=void 0,R.done=!0,R};return N.next=N}}return{next:v}}function v(){return{value:void 0,done:!0}}return _.prototype=k,e(A,"constructor",{value:k,configurable:!0}),e(k,"constructor",{value:_,configurable:!0}),_.displayName=h(k,s,"GeneratorFunction"),a.isGeneratorFunction=function(y){var x=typeof y=="function"&&y.constructor;return!!x&&(x===_||(x.displayName||x.name)==="GeneratorFunction")},a.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,k):(y.__proto__=k,h(y,s,"GeneratorFunction")),y.prototype=Object.create(A),y},a.awrap=function(y){return{__await:y}},T(O.prototype),h(O.prototype,i,(function(){return this})),a.AsyncIterator=O,a.async=function(y,x,C,N,R){R===void 0&&(R=Promise);var $=new O(f(y,x,C,N),R);return a.isGeneratorFunction(x)?$:$.next().then((function(V){return V.done?V.value:$.next()}))},T(A),h(A,s,"Generator"),h(A,u,(function(){return this})),h(A,"toString",(function(){return"[object Generator]"})),a.keys=function(y){var x=Object(y),C=[];for(var N in x)C.push(N);return C.reverse(),function R(){for(;C.length;){var $=C.pop();if($ in x)return R.value=$,R.done=!1,R}return R.done=!0,R}},a.values=d,w.prototype={constructor:w,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!y)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var x=this;function C(P,q){return $.type="throw",$.arg=y,x.next=P,q&&(x.method="next",x.arg=void 0),!!q}for(var N=this.tryEntries.length-1;N>=0;--N){var R=this.tryEntries[N],$=R.completion;if(R.tryLoc==="root")return C("end");if(R.tryLoc<=this.prev){var V=n.call(R,"catchLoc"),X=n.call(R,"finallyLoc");if(V&&X){if(this.prev<R.catchLoc)return C(R.catchLoc,!0);if(this.prev<R.finallyLoc)return C(R.finallyLoc)}else if(V){if(this.prev<R.catchLoc)return C(R.catchLoc,!0)}else{if(!X)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return C(R.finallyLoc)}}}},abrupt:function(y,x){for(var C=this.tryEntries.length-1;C>=0;--C){var N=this.tryEntries[C];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var R=N;break}}R&&(y==="break"||y==="continue")&&R.tryLoc<=x&&x<=R.finallyLoc&&(R=null);var $=R?R.completion:{};return $.type=y,$.arg=x,R?(this.method="next",this.next=R.finallyLoc,p):this.complete($)},complete:function(y,x){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&x&&(this.next=x),p},finish:function(y){for(var x=this.tryEntries.length-1;x>=0;--x){var C=this.tryEntries[x];if(C.finallyLoc===y)return this.complete(C.completion,C.afterLoc),D(C),p}},catch:function(y){for(var x=this.tryEntries.length-1;x>=0;--x){var C=this.tryEntries[x];if(C.tryLoc===y){var N=C.completion;if(N.type==="throw"){var R=N.arg;D(C)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(y,x,C){return this.delegate={iterator:d(y),resultName:x,nextLoc:C},this.method==="next"&&(this.arg=void 0),p}},a})(typeof b=="object"?b.exports:{});try{regeneratorRuntime=c}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}},{}],493:[function(t,b,g){var c=t("buffer").Buffer,a=t("inherits"),o=t("hash-base"),n=new Array(16),e=[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],r=[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],u=[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],i=[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],s=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(j,z){return j<<z|j>>>32-z}function p(j,z,A,T,O,L,B,S){return l(j+(z^A^T)+L+B|0,S)+O|0}function m(j,z,A,T,O,L,B,S){return l(j+(z&A|~z&T)+L+B|0,S)+O|0}function _(j,z,A,T,O,L,B,S){return l(j+((z|~A)^T)+L+B|0,S)+O|0}function k(j,z,A,T,O,L,B,S){return l(j+(z&T|A&~T)+L+B|0,S)+O|0}function M(j,z,A,T,O,L,B,S){return l(j+(z^(A|~T))+L+B|0,S)+O|0}a(f,o),f.prototype._update=function(){for(var j=n,z=0;z<16;++z)j[z]=this._block.readInt32LE(4*z);for(var A=0|this._a,T=0|this._b,O=0|this._c,L=0|this._d,B=0|this._e,S=0|this._a,D=0|this._b,w=0|this._c,d=0|this._d,v=0|this._e,y=0;y<80;y+=1){var x,C;y<16?(x=p(A,T,O,L,B,j[e[y]],s[0],u[y]),C=M(S,D,w,d,v,j[r[y]],h[0],i[y])):y<32?(x=m(A,T,O,L,B,j[e[y]],s[1],u[y]),C=k(S,D,w,d,v,j[r[y]],h[1],i[y])):y<48?(x=_(A,T,O,L,B,j[e[y]],s[2],u[y]),C=_(S,D,w,d,v,j[r[y]],h[2],i[y])):y<64?(x=k(A,T,O,L,B,j[e[y]],s[3],u[y]),C=m(S,D,w,d,v,j[r[y]],h[3],i[y])):(x=M(A,T,O,L,B,j[e[y]],s[4],u[y]),C=p(S,D,w,d,v,j[r[y]],h[4],i[y])),A=B,B=L,L=l(O,10),O=T,T=x,S=v,v=d,d=l(w,10),w=D,D=C}var N=this._b+O+d|0;this._b=this._c+L+v|0,this._c=this._d+B+S|0,this._d=this._e+A+D|0,this._e=this._a+T+w|0,this._a=N},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var j=c.alloc?c.alloc(20):new c(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},b.exports=f},{buffer:220,"hash-base":425,inherits:440}],494:[function(t,b,g){var c=t("buffer"),a=c.Buffer;function o(e,r){for(var u in e)r[u]=e[u]}function n(e,r,u){return a(e,r,u)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?b.exports=c:(o(c,g),g.Buffer=n),n.prototype=Object.create(a.prototype),o(a,n),n.from=function(e,r,u){if(typeof e=="number")throw new TypeError("Argument must not be a number");return a(e,r,u)},n.alloc=function(e,r,u){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=a(e);return r!==void 0?typeof u=="string"?i.fill(r,u):i.fill(r):i.fill(0),i},n.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a(e)},n.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return c.SlowBuffer(e)}},{buffer:220}],495:[function(t,b,g){(function(c){(function(){var a,o=t("buffer"),n=o.Buffer,e={};for(a in o)o.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(e[a]=o[a]);var r=e.Buffer={};for(a in n)n.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(r[a]=n[a]);if(e.Buffer.prototype=n.prototype,r.from&&r.from!==Uint8Array.from||(r.from=function(u,i,s){if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof u);if(u&&u.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);return n(u,i,s)}),r.alloc||(r.alloc=function(u,i,s){if(typeof u!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof u);if(u<0||u>=2*(1<<30))throw new RangeError('The value "'+u+'" is invalid for option "size"');var h=n(u);return i&&i.length!==0?typeof s=="string"?h.fill(i,s):h.fill(i):h.fill(0),h}),!e.kStringMaxLength)try{e.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch{}e.constants||(e.constants={MAX_LENGTH:e.kMaxLength},e.kStringMaxLength&&(e.constants.MAX_STRING_LENGTH=e.kStringMaxLength)),b.exports=e}).call(this)}).call(this,t("_process"))},{_process:467,buffer:220}],496:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0});const c=t("xmlchars/xml/1.0/ed5"),a=t("xmlchars/xml/1.1/ed2"),o=t("xmlchars/xmlns/1.0/ed3");var n=c.isS,e=c.isChar,r=c.isNameStartChar,u=c.isNameChar,i=c.S_LIST,s=c.NAME_RE,h=a.isChar,f=o.isNCNameStartChar,l=o.isNCNameChar,p=o.NC_NAME_RE;const m="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",k={__proto__:null,xml:m,xmlns:_},M={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},j=d=>d===34||d===39,z=[34,39],A=[...z,91,62],T=[...z,60,93],O=[61,63,...i],L=[...i,62,38,60];function B(d,v,y){switch(v){case"xml":y!==m&&d.fail(`xml prefix must be bound to ${m}.`);break;case"xmlns":y!==_&&d.fail(`xmlns prefix must be bound to ${_}.`)}switch(y){case _:d.fail(v===""?`the default namespace may not be set to ${y}.`:`may not assign a prefix (even "xmlns") to the URI ${_}.`);break;case m:switch(v){case"xml":break;case"":d.fail(`the default namespace may not be set to ${y}.`);break;default:d.fail("may not assign the xml namespace to another prefix.")}}}const S=d=>p.test(d),D=d=>s.test(d);g.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const w={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};g.SaxesParser=class{constructor(d){this.opt=d??{},this.fragmentOpt=!!this.opt.fragment;const v=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,v){this.nameStartCheck=f,this.nameCheck=l,this.isName=S,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},k);const y=this.opt.additionalNamespaces;y!=null&&((function(x,C){for(const N of Object.keys(C))B(x,N,C[N])})(this,y),Object.assign(this.ns,y))}else this.nameStartCheck=r,this.nameCheck=u,this.isName=D,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var d;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:v}=this;this.state=v?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=v,this.xmlDeclPossible=!v,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:y}=this.opt;if(y===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");y="1.0"}this.setXMLVersion(y),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(M),(d=this.readyHandler)===null||d===void 0||d.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(d,v){this[w[d]]=v}off(d){this[w[d]]=void 0}makeError(d){var v;let y=(v=this.fileName)!==null&&v!==void 0?v:"";return this.trackPosition&&(y.length>0&&(y+=":"),y+=`${this.line}:${this.column}`),y.length>0&&(y+=": "),new Error(y+d)}fail(d){const v=this.makeError(d),y=this.errorHandler;if(y===void 0)throw v;return y(v),this}write(d){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let v=!1;d===null?(v=!0,d=""):typeof d=="object"&&(d=d.toString()),this.carriedFromPrevious!==void 0&&(d=`${this.carriedFromPrevious}${d}`,this.carriedFromPrevious=void 0);let y=d.length;const x=d.charCodeAt(y-1);!v&&(x===13||x>=55296&&x<=56319)&&(this.carriedFromPrevious=d[y-1],y--,d=d.slice(0,y));const{stateTable:C}=this;for(this.chunk=d,this.i=0;this.i<y;)C[this.state].call(this);return this.chunkPosition+=y,v?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:d,i:v}=this;if(this.prevI=v,this.i=v+1,v>=d.length)return-1;const y=d.charCodeAt(v);if(this.column++,y<55296){if(y>=32||y===9)return y;switch(y){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return d.charCodeAt(v+1)===10&&(this.i=v+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),y}}if(y>56319)return y>=57344&&y<=65533||this.fail("disallowed character."),y;const x=65536+1024*(y-55296)+(d.charCodeAt(v+1)-56320);return this.i=v+2,x>1114111&&this.fail("disallowed character."),x}getCode11(){const{chunk:d,i:v}=this;if(this.prevI=v,this.i=v+1,v>=d.length)return-1;const y=d.charCodeAt(v);if(this.column++,y<55296){if(y>31&&y<127||y>159&&y!==8232||y===9)return y;switch(y){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const C=d.charCodeAt(v+1);C!==10&&C!==133||(this.i=v+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),y}}if(y>56319)return y>=57344&&y<=65533||this.fail("disallowed character."),y;const x=65536+1024*(y-55296)+(d.charCodeAt(v+1)-56320);return this.i=v+2,x>1114111&&this.fail("disallowed character."),x}getCodeNorm(){const d=this.getCode();return d===-2?10:d}unget(){this.i=this.prevI,this.column--}captureTo(d){let{i:v}=this;const{chunk:y}=this;for(;;){const x=this.getCode(),C=x===-2,N=C?10:x;if(N===-1||d.includes(N))return this.text+=y.slice(v,this.prevI),N;C&&(this.text+=y.slice(v,this.prevI)+`
|
|
21
|
+
`,v=this.i)}}captureToChar(d){let{i:v}=this;const{chunk:y}=this;for(;;){let x=this.getCode();switch(x){case-2:this.text+=y.slice(v,this.prevI)+`
|
|
22
|
+
`,v=this.i,x=10;break;case-1:return this.text+=y.slice(v),!1}if(x===d)return this.text+=y.slice(v,this.prevI),!0}}captureNameChars(){const{chunk:d,i:v}=this;for(;;){const y=this.getCode();if(y===-1)return this.name+=d.slice(v),-1;if(!u(y))return this.name+=d.slice(v,this.prevI),y===-2?10:y}}skipSpaces(){for(;;){const d=this.getCodeNorm();if(d===-1||!n(d))return d}}setXMLVersion(d){this.currentXMLVersion=d,d==="1.0"?(this.isChar=e,this.getCode=this.getCode10):(this.isChar=h,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const d=this.i,v=this.skipSpaces();switch(this.prevI!==d&&(this.xmlDeclPossible=!1),v){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var d;const v=this.captureTo(A);switch(v){case 62:(d=this.doctypeHandler)===null||d===void 0||d.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(v),v===91?this.state=4:j(v)&&(this.state=3,this.q=v)}}sDoctypeQuote(){const d=this.q;this.captureToChar(d)&&(this.text+=String.fromCodePoint(d),this.q=null,this.state=2)}sDTD(){const d=this.captureTo(T);d!==-1&&(this.text+=String.fromCodePoint(d),d===93?this.state=2:d===60?this.state=6:j(d)&&(this.state=5,this.q=d))}sDTDQuoted(){const d=this.q;this.captureToChar(d)&&(this.text+=String.fromCodePoint(d),this.state=4,this.q=null)}sDTDOpenWaka(){const d=this.getCodeNorm();switch(this.text+=String.fromCodePoint(d),d){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const d=String.fromCodePoint(this.getCodeNorm()),v=this.openWakaBang+=d;this.text+=d,v!=="-"&&(this.state=v==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const d=this.getCodeNorm();this.text+=String.fromCodePoint(d),this.state=d===45?10:8}sDTDCommentEnded(){const d=this.getCodeNorm();this.text+=String.fromCodePoint(d),d===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const d=this.getCodeNorm();this.text+=String.fromCodePoint(d),d===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:d}=this;const{chunk:v}=this;t:for(;;)switch(this.getCode()){case-2:this.entity+=v.slice(d,this.prevI)+`
|
|
23
|
+
`,d=this.i;break;case 59:{const{entityReturnState:y}=this,x=this.entity+v.slice(d,this.prevI);let C;this.state=y,x===""?(this.fail("empty entity name."),C="&;"):(C=this.parseEntity(x),this.entity=""),y===13&&this.textHandler===void 0||(this.text+=C);break t}case-1:this.entity+=v.slice(d);break t}}sOpenWaka(){const d=this.getCode();if(r(d))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(d){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var d;const v=this.getCodeNorm();v===45?(this.state=19,(d=this.commentHandler)===null||d===void 0||d.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(v),this.state=17)}sCommentEnded(){const d=this.getCodeNorm();d!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(d),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const d=this.getCodeNorm();d===93?this.state=22:(this.text+="]"+String.fromCodePoint(d),this.state=20)}sCDataEnding2(){var d;const v=this.getCodeNorm();switch(v){case 62:(d=this.cdataHandler)===null||d===void 0||d.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(v),this.state=20}}sPIFirstChar(){const d=this.getCodeNorm();this.nameStartCheck(d)?(this.piTarget+=String.fromCodePoint(d),this.state=24):d===63||n(d)?(this.fail("processing instruction without a target."),this.state=d===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(d),this.state=24)}sPIRest(){const{chunk:d,i:v}=this;for(;;){const y=this.getCodeNorm();if(y===-1)return void(this.piTarget+=d.slice(v));if(!this.nameCheck(y)){this.piTarget+=d.slice(v,this.prevI);const x=y===63;x||n(y)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=x?33:27):this.state=x?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(y));break}}}sPIBody(){if(this.text.length===0){const d=this.getCodeNorm();d===63?this.state=26:n(d)||(this.text=String.fromCodePoint(d))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var d;const v=this.getCodeNorm();if(v===62){const{piTarget:y}=this;y.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(d=this.piHandler)===null||d===void 0||d.call(this,{target:y,body:this.text}),this.piTarget=this.text="",this.state=13}else v===63?this.text+="?":(this.text+="?"+String.fromCodePoint(v),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const d=this.skipSpaces();d!==63?d!==-1&&(this.state=28,this.name=String.fromCodePoint(d)):this.state=33}sXMLDeclName(){const d=this.captureTo(O);if(d===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(n(d)||d===61){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=d===61?30:29}}sXMLDeclEq(){const d=this.getCodeNorm();if(d===63)return this.state=33,void this.fail("XML declaration is incomplete.");n(d)||(d!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const d=this.getCodeNorm();if(d===63)return this.state=33,void this.fail("XML declaration is incomplete.");n(d)||(j(d)?this.q=d:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const d=this.captureTo([this.q,63]);if(d===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(d===-1)return;const v=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const y=v;this.xmlDecl.version=y,/^1\.[0-9]+$/.test(y)?this.opt.forceXMLVersion||this.setXMLVersion(y):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(v)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=v;break;case"standalone":v!=="yes"&&v!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=v}this.name="",this.state=32}sXMLDeclSeparator(){const d=this.getCodeNorm();d!==63?(n(d)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var d;this.getCodeNorm()===62?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(d=this.xmldeclHandler)===null||d===void 0||d.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var d;const v=this.captureNameChars();if(v===-1)return;const y=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=y.ns=Object.create(null)),(d=this.openTagStartHandler)===null||d===void 0||d.call(this,y),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),v){case 62:this.openTag();break;case 47:this.state=35;break;default:n(v)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const d=this.skipSpaces();d!==-1&&(r(d)?(this.unget(),this.state=37):d===62?this.openTag():d===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const d=this.captureNameChars();d===61?this.state=39:n(d)?this.state=38:d===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):d!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const d=this.skipSpaces();switch(d){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",d===62?this.openTag():r(d)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const d=this.getCodeNorm();j(d)?(this.q=d,this.state=40):n(d)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:d,chunk:v}=this;let{i:y}=this;for(;;)switch(this.getCode()){case d:return this.pushAttrib(this.name,this.text+v.slice(y,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=v.slice(y,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=v.slice(y,this.prevI)+" ",y=this.i;break;case 60:return this.text+=v.slice(y,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=v.slice(y))}}sAttribValueClosed(){const d=this.getCodeNorm();n(d)?this.state=36:d===62?this.openTag():d===47?this.state=35:r(d)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const d=this.captureTo(L);switch(d){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",d===62?this.openTag():this.state=36}}sCloseTag(){const d=this.captureNameChars();d===62?this.closeTag():n(d)?this.state=44:d!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:d,forbiddenState:v}=this;const{chunk:y,textHandler:x}=this;t:for(;;)switch(this.getCode()){case 60:if(this.state=15,x!==void 0){const{text:C}=this,N=y.slice(d,this.prevI);C.length!==0?(x(C+N),this.text=""):N.length!==0&&x(N)}v=0;break t;case 38:this.state=14,this.entityReturnState=13,x!==void 0&&(this.text+=y.slice(d,this.prevI)),v=0;break t;case 93:switch(v){case 0:v=1;break;case 1:v=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:v===2&&this.fail('the string "]]>" is disallowed in char data.'),v=0;break;case-2:x!==void 0&&(this.text+=y.slice(d,this.prevI)+`
|
|
24
|
+
`),d=this.i,v=0;break;case-1:x!==void 0&&(this.text+=y.slice(d));break t;default:v=0}this.forbiddenState=v}handleTextOutsideRoot(){let{i:d}=this;const{chunk:v,textHandler:y}=this;let x=!1;t:for(;;){const C=this.getCode();switch(C){case 60:if(this.state=15,y!==void 0){const{text:N}=this,R=v.slice(d,this.prevI);N.length!==0?(y(N+R),this.text=""):R.length!==0&&y(R)}break t;case 38:this.state=14,this.entityReturnState=13,y!==void 0&&(this.text+=v.slice(d,this.prevI)),x=!0;break t;case-2:y!==void 0&&(this.text+=v.slice(d,this.prevI)+`
|
|
25
|
+
`),d=this.i;break;case-1:y!==void 0&&(this.text+=v.slice(d));break t;default:n(C)||(x=!0)}}x&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(d,v){var y;const{prefix:x,local:C}=this.qname(d),N={name:d,prefix:x,local:C,value:v};if(this.attribList.push(N),(y=this.attributeHandler)===null||y===void 0||y.call(this,N),x==="xmlns"){const R=v.trim();this.currentXMLVersion==="1.0"&&R===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[C]=R,B(this,C,R)}else if(d==="xmlns"){const R=v.trim();this.topNS[""]=R,B(this,"",R)}}pushAttribPlain(d,v){var y;const x={name:d,value:v};this.attribList.push(x),(y=this.attributeHandler)===null||y===void 0||y.call(this,x)}end(){var d,v;this.sawRoot||this.fail("document must contain a root element.");const{tags:y}=this;for(;y.length>0;){const C=y.pop();this.fail("unclosed tag: "+C.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:x}=this;return x.length!==0&&((d=this.textHandler)===null||d===void 0||d.call(this,x),this.text=""),this._closed=!0,(v=this.endHandler)===null||v===void 0||v.call(this),this._init(),this}resolve(d){var v,y;let x=this.topNS[d];if(x!==void 0)return x;const{tags:C}=this;for(let N=C.length-1;N>=0;N--)if(x=C[N].ns[d],x!==void 0)return x;return x=this.ns[d],x!==void 0?x:(y=(v=this.opt).resolvePrefix)===null||y===void 0?void 0:y.call(v,d)}qname(d){const v=d.indexOf(":");if(v===-1)return{prefix:"",local:d};const y=d.slice(v+1),x=d.slice(0,v);return(x===""||y===""||y.includes(":"))&&this.fail(`malformed name: ${d}.`),{prefix:x,local:y}}processAttribsNS(){var d;const{attribList:v}=this,y=this.tag;{const{prefix:N,local:R}=this.qname(y.name);y.prefix=N,y.local=R;const $=y.uri=(d=this.resolve(N))!==null&&d!==void 0?d:"";N!==""&&(N==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),$===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(N)}.`),y.uri=N))}if(v.length===0)return;const{attributes:x}=y,C=new Set;for(const N of v){const{name:R,prefix:$,local:V}=N;let X,P;$===""?(X=R==="xmlns"?_:"",P=R):(X=this.resolve($),X===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify($)}.`),X=$),P=`{${X}}${V}`),C.has(P)&&this.fail(`duplicate attribute: ${P}.`),C.add(P),N.uri=X,x[R]=N}this.attribList=[]}processAttribsPlain(){const{attribList:d}=this,v=this.tag.attributes;for(const{name:y,value:x}of d)v[y]!==void 0&&this.fail(`duplicate attribute: ${y}.`),v[y]=x;this.attribList=[]}openTag(){var d;this.processAttribs();const{tags:v}=this,y=this.tag;y.isSelfClosing=!1,(d=this.openTagHandler)===null||d===void 0||d.call(this,y),v.push(y),this.state=13,this.name=""}openSelfClosingTag(){var d,v,y;this.processAttribs();const{tags:x}=this,C=this.tag;C.isSelfClosing=!0,(d=this.openTagHandler)===null||d===void 0||d.call(this,C),(v=this.closeTagHandler)===null||v===void 0||v.call(this,C),(this.tag=(y=x[x.length-1])!==null&&y!==void 0?y:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:d,name:v}=this;if(this.state=13,this.name="",v==="")return this.fail("weird empty close tag."),void(this.text+="</>");const y=this.closeTagHandler;let x=d.length;for(;x-- >0;){const C=this.tag=d.pop();if(this.topNS=C.ns,y?.(C),C.name===v)break;this.fail("unexpected close tag.")}x===0?this.closedRoot=!0:x<0&&(this.fail(`unmatched closing tag: ${v}.`),this.text+=`</${v}>`)}parseEntity(d){if(d[0]!=="#"){const y=this.ENTITIES[d];return y!==void 0?y:(this.fail(this.isName(d)?"undefined entity.":"disallowed character in entity name."),`&${d};`)}let v=NaN;return d[1]==="x"&&/^#x[0-9a-f]+$/i.test(d)?v=parseInt(d.slice(2),16):/^#[0-9]+$/.test(d)&&(v=parseInt(d.slice(1),10)),this.isChar(v)?String.fromCodePoint(v):(this.fail("malformed character entity."),`&${d};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(t,b,g){var c=t("safe-buffer").Buffer;function a(o,n){this._block=c.alloc(o),this._finalSize=n,this._blockSize=o,this._len=0}a.prototype.update=function(o,n){typeof o=="string"&&(n=n||"utf8",o=c.from(o,n));for(var e=this._block,r=this._blockSize,u=o.length,i=this._len,s=0;s<u;){for(var h=i%r,f=Math.min(u-s,r-h),l=0;l<f;l++)e[h+l]=o[s+l];s+=f,(i+=f)%r==0&&this._update(e)}return this._len+=u,this},a.prototype.digest=function(o){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var r=(4294967295&e)>>>0,u=(e-r)/4294967296;this._block.writeUInt32BE(u,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return o?i.toString(o):i},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},b.exports=a},{"safe-buffer":494}],498:[function(t,b,g){var c=b.exports=function(a){a=a.toLowerCase();var o=c[a];if(!o)throw new Error(a+" is not supported (we accept pull requests)");return new o};c.sha=t("./sha"),c.sha1=t("./sha1"),c.sha224=t("./sha224"),c.sha256=t("./sha256"),c.sha384=t("./sha384"),c.sha512=t("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(t,b,g){var c=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,n=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function r(){this.init(),this._w=e,a.call(this,64,56)}function u(s){return s<<30|s>>>2}function i(s,h,f,l){return s===0?h&f|~h&l:s===2?h&f|h&l|f&l:h^f^l}c(r,a),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(s){for(var h,f=this._w,l=0|this._a,p=0|this._b,m=0|this._c,_=0|this._d,k=0|this._e,M=0;M<16;++M)f[M]=s.readInt32BE(4*M);for(;M<80;++M)f[M]=f[M-3]^f[M-8]^f[M-14]^f[M-16];for(var j=0;j<80;++j){var z=~~(j/20),A=0|((h=l)<<5|h>>>27)+i(z,p,m,_)+k+f[j]+n[z];k=_,_=m,m=u(p),p=l,l=A}this._a=l+this._a|0,this._b=p+this._b|0,this._c=m+this._c|0,this._d=_+this._d|0,this._e=k+this._e|0},r.prototype._hash=function(){var s=o.allocUnsafe(20);return s.writeInt32BE(0|this._a,0),s.writeInt32BE(0|this._b,4),s.writeInt32BE(0|this._c,8),s.writeInt32BE(0|this._d,12),s.writeInt32BE(0|this._e,16),s},b.exports=r},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(t,b,g){var c=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,n=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function r(){this.init(),this._w=e,a.call(this,64,56)}function u(h){return h<<5|h>>>27}function i(h){return h<<30|h>>>2}function s(h,f,l,p){return h===0?f&l|~f&p:h===2?f&l|f&p|l&p:f^l^p}c(r,a),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(h){for(var f,l=this._w,p=0|this._a,m=0|this._b,_=0|this._c,k=0|this._d,M=0|this._e,j=0;j<16;++j)l[j]=h.readInt32BE(4*j);for(;j<80;++j)l[j]=(f=l[j-3]^l[j-8]^l[j-14]^l[j-16])<<1|f>>>31;for(var z=0;z<80;++z){var A=~~(z/20),T=u(p)+s(A,m,_,k)+M+l[z]+n[A]|0;M=k,k=_,_=i(m),m=p,p=T}this._a=p+this._a|0,this._b=m+this._b|0,this._c=_+this._c|0,this._d=k+this._d|0,this._e=M+this._e|0},r.prototype._hash=function(){var h=o.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},b.exports=r},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(t,b,g){var c=t("inherits"),a=t("./sha256"),o=t("./hash"),n=t("safe-buffer").Buffer,e=new Array(64);function r(){this.init(),this._w=e,o.call(this,64,56)}c(r,a),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var u=n.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},b.exports=r},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(t,b,g){var c=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,n=[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],e=new Array(64);function r(){this.init(),this._w=e,a.call(this,64,56)}function u(l,p,m){return m^l&(p^m)}function i(l,p,m){return l&p|m&(l|p)}function s(l){return(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10)}function h(l){return(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7)}function f(l){return(l>>>7|l<<25)^(l>>>18|l<<14)^l>>>3}c(r,a),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(l){for(var p,m=this._w,_=0|this._a,k=0|this._b,M=0|this._c,j=0|this._d,z=0|this._e,A=0|this._f,T=0|this._g,O=0|this._h,L=0;L<16;++L)m[L]=l.readInt32BE(4*L);for(;L<64;++L)m[L]=0|(((p=m[L-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+m[L-7]+f(m[L-15])+m[L-16];for(var B=0;B<64;++B){var S=O+h(z)+u(z,A,T)+n[B]+m[B]|0,D=s(_)+i(_,k,M)|0;O=T,T=A,A=z,z=j+S|0,j=M,M=k,k=_,_=S+D|0}this._a=_+this._a|0,this._b=k+this._b|0,this._c=M+this._c|0,this._d=j+this._d|0,this._e=z+this._e|0,this._f=A+this._f|0,this._g=T+this._g|0,this._h=O+this._h|0},r.prototype._hash=function(){var l=o.allocUnsafe(32);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l.writeInt32BE(this._h,28),l},b.exports=r},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(t,b,g){var c=t("inherits"),a=t("./sha512"),o=t("./hash"),n=t("safe-buffer").Buffer,e=new Array(160);function r(){this.init(),this._w=e,o.call(this,128,112)}c(r,a),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){var u=n.allocUnsafe(48);function i(s,h,f){u.writeInt32BE(s,f),u.writeInt32BE(h,f+4)}return i(this._ah,this._al,0),i(this._bh,this._bl,8),i(this._ch,this._cl,16),i(this._dh,this._dl,24),i(this._eh,this._el,32),i(this._fh,this._fl,40),u},b.exports=r},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(t,b,g){var c=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,n=[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],e=new Array(160);function r(){this.init(),this._w=e,a.call(this,128,112)}function u(k,M,j){return j^k&(M^j)}function i(k,M,j){return k&M|j&(k|M)}function s(k,M){return(k>>>28|M<<4)^(M>>>2|k<<30)^(M>>>7|k<<25)}function h(k,M){return(k>>>14|M<<18)^(k>>>18|M<<14)^(M>>>9|k<<23)}function f(k,M){return(k>>>1|M<<31)^(k>>>8|M<<24)^k>>>7}function l(k,M){return(k>>>1|M<<31)^(k>>>8|M<<24)^(k>>>7|M<<25)}function p(k,M){return(k>>>19|M<<13)^(M>>>29|k<<3)^k>>>6}function m(k,M){return(k>>>19|M<<13)^(M>>>29|k<<3)^(k>>>6|M<<26)}function _(k,M){return k>>>0<M>>>0?1:0}c(r,a),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(k){for(var M=this._w,j=0|this._ah,z=0|this._bh,A=0|this._ch,T=0|this._dh,O=0|this._eh,L=0|this._fh,B=0|this._gh,S=0|this._hh,D=0|this._al,w=0|this._bl,d=0|this._cl,v=0|this._dl,y=0|this._el,x=0|this._fl,C=0|this._gl,N=0|this._hl,R=0;R<32;R+=2)M[R]=k.readInt32BE(4*R),M[R+1]=k.readInt32BE(4*R+4);for(;R<160;R+=2){var $=M[R-30],V=M[R-30+1],X=f($,V),P=l(V,$),q=p($=M[R-4],V=M[R-4+1]),I=m(V,$),F=M[R-14],H=M[R-14+1],W=M[R-32],J=M[R-32+1],Y=P+H|0,K=X+F+_(Y,P)|0;K=(K=K+q+_(Y=Y+I|0,I)|0)+W+_(Y=Y+J|0,J)|0,M[R]=K,M[R+1]=Y}for(var et=0;et<160;et+=2){K=M[et],Y=M[et+1];var nt=i(j,z,A),G=i(D,w,d),tt=s(j,D),Q=s(D,j),st=h(O,y),it=h(y,O),ot=n[et],ct=n[et+1],ht=u(O,L,B),bt=u(y,x,C),kt=N+it|0,St=S+st+_(kt,N)|0;St=(St=(St=St+ht+_(kt=kt+bt|0,bt)|0)+ot+_(kt=kt+ct|0,ct)|0)+K+_(kt=kt+Y|0,Y)|0;var wt=Q+G|0,Nt=tt+nt+_(wt,Q)|0;S=B,N=C,B=L,C=x,L=O,x=y,O=T+St+_(y=v+kt|0,v)|0,T=A,v=d,A=z,d=w,z=j,w=D,j=St+Nt+_(D=kt+wt|0,kt)|0}this._al=this._al+D|0,this._bl=this._bl+w|0,this._cl=this._cl+d|0,this._dl=this._dl+v|0,this._el=this._el+y|0,this._fl=this._fl+x|0,this._gl=this._gl+C|0,this._hl=this._hl+N|0,this._ah=this._ah+j+_(this._al,D)|0,this._bh=this._bh+z+_(this._bl,w)|0,this._ch=this._ch+A+_(this._cl,d)|0,this._dh=this._dh+T+_(this._dl,v)|0,this._eh=this._eh+O+_(this._el,y)|0,this._fh=this._fh+L+_(this._fl,x)|0,this._gh=this._gh+B+_(this._gl,C)|0,this._hh=this._hh+S+_(this._hl,N)|0},r.prototype._hash=function(){var k=o.allocUnsafe(64);function M(j,z,A){k.writeInt32BE(j,A),k.writeInt32BE(z,A+4)}return M(this._ah,this._al,0),M(this._bh,this._bl,8),M(this._ch,this._cl,16),M(this._dh,this._dl,24),M(this._eh,this._el,32),M(this._fh,this._fl,40),M(this._gh,this._gl,48),M(this._hh,this._hl,56),k},b.exports=r},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(t,b,g){b.exports=a;var c=t("events").EventEmitter;function a(){c.call(this)}t("inherits")(a,c),a.Readable=t("readable-stream/readable.js"),a.Writable=t("readable-stream/writable.js"),a.Duplex=t("readable-stream/duplex.js"),a.Transform=t("readable-stream/transform.js"),a.PassThrough=t("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(o,n){var e=this;function r(p){o.writable&&o.write(p)===!1&&e.pause&&e.pause()}function u(){e.readable&&e.resume&&e.resume()}e.on("data",r),o.on("drain",u),o._isStdio||n&&n.end===!1||(e.on("end",s),e.on("close",h));var i=!1;function s(){i||(i=!0,o.end())}function h(){i||(i=!0,typeof o.destroy=="function"&&o.destroy())}function f(p){if(l(),c.listenerCount(this,"error")===0)throw p}function l(){e.removeListener("data",r),o.removeListener("drain",u),e.removeListener("end",s),e.removeListener("close",h),e.removeListener("error",f),o.removeListener("error",f),e.removeListener("end",l),e.removeListener("close",l),o.removeListener("close",l)}return e.on("error",f),o.on("error",f),e.on("end",l),e.on("close",l),o.on("close",l),o.emit("pipe",e),o}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(t,b,g){var c={}.toString;b.exports=Array.isArray||function(a){return c.call(a)=="[object Array]"}},{}],507:[function(t,b,g){b.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(t,b,g){var c=t("process-nextick-args"),a=Object.keys||function(l){var p=[];for(var m in l)p.push(m);return p};b.exports=s;var o=Object.create(t("core-util-is"));o.inherits=t("inherits");var n=t("./_stream_readable"),e=t("./_stream_writable");o.inherits(s,n);for(var r=a(e.prototype),u=0;u<r.length;u++){var i=r[u];s.prototype[i]||(s.prototype[i]=e.prototype[i])}function s(l){if(!(this instanceof s))return new s(l);n.call(this,l),e.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||c.nextTick(f,this)}function f(l){l.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),s.prototype._destroy=function(l,p){this.push(null),this.end(),c.nextTick(p,l)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(t,b,g){b.exports=o;var c=t("./_stream_transform"),a=Object.create(t("core-util-is"));function o(n){if(!(this instanceof o))return new o(n);c.call(this,n)}a.inherits=t("inherits"),a.inherits(o,c),o.prototype._transform=function(n,e,r){r(null,n)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(t,b,g){(function(c,a){(function(){var o=t("process-nextick-args");b.exports=j;var n,e=t("isarray");j.ReadableState=M,t("events").EventEmitter;var r=function(N,R){return N.listeners(R).length},u=t("./internal/streams/stream"),i=t("safe-buffer").Buffer,s=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},h=Object.create(t("core-util-is"));h.inherits=t("inherits");var f=t("util"),l=void 0;l=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=t("./internal/streams/BufferList"),_=t("./internal/streams/destroy");h.inherits(j,u);var k=["error","close","destroy","pause","resume"];function M(N,R){N=N||{};var $=R instanceof(n=n||t("./_stream_duplex"));this.objectMode=!!N.objectMode,$&&(this.objectMode=this.objectMode||!!N.readableObjectMode);var V=N.highWaterMark,X=N.readableHighWaterMark,P=this.objectMode?16:16384;this.highWaterMark=V||V===0?V:$&&(X||X===0)?X:P,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(N.encoding),this.encoding=N.encoding)}function j(N){if(n=n||t("./_stream_duplex"),!(this instanceof j))return new j(N);this._readableState=new M(N,this),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),u.call(this)}function z(N,R,$,V,X){var P,q=N._readableState;return R===null?(q.reading=!1,(function(I,F){if(!F.ended){if(F.decoder){var H=F.decoder.end();H&&H.length&&(F.buffer.push(H),F.length+=F.objectMode?1:H.length)}F.ended=!0,O(I)}})(N,q)):(X||(P=(function(I,F){var H;W=F,i.isBuffer(W)||W instanceof s||typeof F=="string"||F===void 0||I.objectMode||(H=new TypeError("Invalid non-string/buffer chunk"));var W;return H})(q,R)),P?N.emit("error",P):q.objectMode||R&&R.length>0?(typeof R=="string"||q.objectMode||Object.getPrototypeOf(R)===i.prototype||(R=(function(I){return i.from(I)})(R)),V?q.endEmitted?N.emit("error",new Error("stream.unshift() after end event")):A(N,q,R,!0):q.ended?N.emit("error",new Error("stream.push() after EOF")):(q.reading=!1,q.decoder&&!$?(R=q.decoder.write(R),q.objectMode||R.length!==0?A(N,q,R,!1):B(N,q)):A(N,q,R,!1))):V||(q.reading=!1)),(function(I){return!I.ended&&(I.needReadable||I.length<I.highWaterMark||I.length===0)})(q)}function A(N,R,$,V){R.flowing&&R.length===0&&!R.sync?(N.emit("data",$),N.read(0)):(R.length+=R.objectMode?1:$.length,V?R.buffer.unshift($):R.buffer.push($),R.needReadable&&O(N)),B(N,R)}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),j.prototype.destroy=_.destroy,j.prototype._undestroy=_.undestroy,j.prototype._destroy=function(N,R){this.push(null),R(N)},j.prototype.push=function(N,R){var $,V=this._readableState;return V.objectMode?$=!0:typeof N=="string"&&((R=R||V.defaultEncoding)!==V.encoding&&(N=i.from(N,R),R=""),$=!0),z(this,N,R,!1,$)},j.prototype.unshift=function(N){return z(this,N,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(N){return p||(p=t("string_decoder/").StringDecoder),this._readableState.decoder=new p(N),this._readableState.encoding=N,this};function T(N,R){return N<=0||R.length===0&&R.ended?0:R.objectMode?1:N!=N?R.flowing&&R.length?R.buffer.head.data.length:R.length:(N>R.highWaterMark&&(R.highWaterMark=(function($){return $>=8388608?$=8388608:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$})(N)),N<=R.length?N:R.ended?R.length:(R.needReadable=!0,0))}function O(N){var R=N._readableState;R.needReadable=!1,R.emittedReadable||(l("emitReadable",R.flowing),R.emittedReadable=!0,R.sync?o.nextTick(L,N):L(N))}function L(N){l("emit readable"),N.emit("readable"),d(N)}function B(N,R){R.readingMore||(R.readingMore=!0,o.nextTick(S,N,R))}function S(N,R){for(var $=R.length;!R.reading&&!R.flowing&&!R.ended&&R.length<R.highWaterMark&&(l("maybeReadMore read 0"),N.read(0),$!==R.length);)$=R.length;R.readingMore=!1}function D(N){l("readable nexttick read 0"),N.read(0)}function w(N,R){R.reading||(l("resume read 0"),N.read(0)),R.resumeScheduled=!1,R.awaitDrain=0,N.emit("resume"),d(N),R.flowing&&!R.reading&&N.read(0)}function d(N){var R=N._readableState;for(l("flow",R.flowing);R.flowing&&N.read()!==null;);}function v(N,R){return R.length===0?null:(R.objectMode?$=R.buffer.shift():!N||N>=R.length?($=R.decoder?R.buffer.join(""):R.buffer.length===1?R.buffer.head.data:R.buffer.concat(R.length),R.buffer.clear()):$=(function(V,X,P){var q;return V<X.head.data.length?(q=X.head.data.slice(0,V),X.head.data=X.head.data.slice(V)):q=V===X.head.data.length?X.shift():P?(function(I,F){var H=F.head,W=1,J=H.data;for(I-=J.length;H=H.next;){var Y=H.data,K=I>Y.length?Y.length:I;if(K===Y.length?J+=Y:J+=Y.slice(0,I),(I-=K)===0){K===Y.length?(++W,H.next?F.head=H.next:F.head=F.tail=null):(F.head=H,H.data=Y.slice(K));break}++W}return F.length-=W,J})(V,X):(function(I,F){var H=i.allocUnsafe(I),W=F.head,J=1;for(W.data.copy(H),I-=W.data.length;W=W.next;){var Y=W.data,K=I>Y.length?Y.length:I;if(Y.copy(H,H.length-I,0,K),(I-=K)===0){K===Y.length?(++J,W.next?F.head=W.next:F.head=F.tail=null):(F.head=W,W.data=Y.slice(K));break}++J}return F.length-=J,H})(V,X),q})(N,R.buffer,R.decoder),$);var $}function y(N){var R=N._readableState;if(R.length>0)throw new Error('"endReadable()" called on non-empty stream');R.endEmitted||(R.ended=!0,o.nextTick(x,R,N))}function x(N,R){N.endEmitted||N.length!==0||(N.endEmitted=!0,R.readable=!1,R.emit("end"))}function C(N,R){for(var $=0,V=N.length;$<V;$++)if(N[$]===R)return $;return-1}j.prototype.read=function(N){l("read",N),N=parseInt(N,10);var R=this._readableState,$=N;if(N!==0&&(R.emittedReadable=!1),N===0&&R.needReadable&&(R.length>=R.highWaterMark||R.ended))return l("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?y(this):O(this),null;if((N=T(N,R))===0&&R.ended)return R.length===0&&y(this),null;var V,X=R.needReadable;return l("need readable",X),(R.length===0||R.length-N<R.highWaterMark)&&l("length less than watermark",X=!0),R.ended||R.reading?l("reading or ended",X=!1):X&&(l("do read"),R.reading=!0,R.sync=!0,R.length===0&&(R.needReadable=!0),this._read(R.highWaterMark),R.sync=!1,R.reading||(N=T($,R))),(V=N>0?v(N,R):null)===null?(R.needReadable=!0,N=0):R.length-=N,R.length===0&&(R.ended||(R.needReadable=!0),$!==N&&R.ended&&y(this)),V!==null&&this.emit("data",V),V},j.prototype._read=function(N){this.emit("error",new Error("_read() is not implemented"))},j.prototype.pipe=function(N,R){var $=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=N;break;case 1:V.pipes=[V.pipes,N];break;default:V.pipes.push(N)}V.pipesCount+=1,l("pipe count=%d opts=%j",V.pipesCount,R);var X=(!R||R.end!==!1)&&N!==c.stdout&&N!==c.stderr?q:et;function P(nt,G){l("onunpipe"),nt===$&&G&&G.hasUnpiped===!1&&(G.hasUnpiped=!0,l("cleanup"),N.removeListener("close",Y),N.removeListener("finish",K),N.removeListener("drain",I),N.removeListener("error",J),N.removeListener("unpipe",P),$.removeListener("end",q),$.removeListener("end",et),$.removeListener("data",W),F=!0,!V.awaitDrain||N._writableState&&!N._writableState.needDrain||I())}function q(){l("onend"),N.end()}V.endEmitted?o.nextTick(X):$.once("end",X),N.on("unpipe",P);var I=(function(nt){return function(){var G=nt._readableState;l("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&r(nt,"data")&&(G.flowing=!0,d(nt))}})($);N.on("drain",I);var F=!1,H=!1;function W(nt){l("ondata"),H=!1,N.write(nt)!==!1||H||((V.pipesCount===1&&V.pipes===N||V.pipesCount>1&&C(V.pipes,N)!==-1)&&!F&&(l("false write response, pause",V.awaitDrain),V.awaitDrain++,H=!0),$.pause())}function J(nt){l("onerror",nt),et(),N.removeListener("error",J),r(N,"error")===0&&N.emit("error",nt)}function Y(){N.removeListener("finish",K),et()}function K(){l("onfinish"),N.removeListener("close",Y),et()}function et(){l("unpipe"),$.unpipe(N)}return $.on("data",W),(function(nt,G,tt){if(typeof nt.prependListener=="function")return nt.prependListener(G,tt);nt._events&&nt._events[G]?e(nt._events[G])?nt._events[G].unshift(tt):nt._events[G]=[tt,nt._events[G]]:nt.on(G,tt)})(N,"error",J),N.once("close",Y),N.once("finish",K),N.emit("pipe",$),V.flowing||(l("pipe resume"),$.resume()),N},j.prototype.unpipe=function(N){var R=this._readableState,$={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return N&&N!==R.pipes||(N||(N=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,N&&N.emit("unpipe",this,$)),this;if(!N){var V=R.pipes,X=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var P=0;P<X;P++)V[P].emit("unpipe",this,{hasUnpiped:!1});return this}var q=C(R.pipes,N);return q===-1||(R.pipes.splice(q,1),R.pipesCount-=1,R.pipesCount===1&&(R.pipes=R.pipes[0]),N.emit("unpipe",this,$)),this},j.prototype.on=function(N,R){var $=u.prototype.on.call(this,N,R);if(N==="data")this._readableState.flowing!==!1&&this.resume();else if(N==="readable"){var V=this._readableState;V.endEmitted||V.readableListening||(V.readableListening=V.needReadable=!0,V.emittedReadable=!1,V.reading?V.length&&O(this):o.nextTick(D,this))}return $},j.prototype.addListener=j.prototype.on,j.prototype.resume=function(){var N=this._readableState;return N.flowing||(l("resume"),N.flowing=!0,(function(R,$){$.resumeScheduled||($.resumeScheduled=!0,o.nextTick(w,R,$))})(this,N)),this},j.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},j.prototype.wrap=function(N){var R=this,$=this._readableState,V=!1;for(var X in N.on("end",(function(){if(l("wrapped end"),$.decoder&&!$.ended){var q=$.decoder.end();q&&q.length&&R.push(q)}R.push(null)})),N.on("data",(function(q){l("wrapped data"),$.decoder&&(q=$.decoder.write(q)),$.objectMode&&q==null||($.objectMode||q&&q.length)&&(R.push(q)||(V=!0,N.pause()))})),N)this[X]===void 0&&typeof N[X]=="function"&&(this[X]=(function(q){return function(){return N[q].apply(N,arguments)}})(X));for(var P=0;P<k.length;P++)N.on(k[P],this.emit.bind(this,k[P]));return this._read=function(q){l("wrapped _read",q),V&&(V=!1,N.resume())},this},Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),j._fromList=v}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(t,b,g){b.exports=n;var c=t("./_stream_duplex"),a=Object.create(t("core-util-is"));function o(u,i){var s=this._transformState;s.transforming=!1;var h=s.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,i!=null&&this.push(i),h(u);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function n(u){if(!(this instanceof n))return new n(u);c.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",e)}function e(){var u=this;typeof this._flush=="function"?this._flush((function(i,s){r(u,i,s)})):r(this,null,null)}function r(u,i,s){if(i)return u.emit("error",i);if(s!=null&&u.push(s),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}a.inherits=t("inherits"),a.inherits(n,c),n.prototype.push=function(u,i){return this._transformState.needTransform=!1,c.prototype.push.call(this,u,i)},n.prototype._transform=function(u,i,s){throw new Error("_transform() is not implemented")},n.prototype._write=function(u,i,s){var h=this._transformState;if(h.writecb=s,h.writechunk=u,h.writeencoding=i,!h.transforming){var f=this._readableState;(h.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},n.prototype._read=function(u){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},n.prototype._destroy=function(u,i){var s=this;c.prototype._destroy.call(this,u,(function(h){i(h),s.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(t,b,g){(function(c,a,o){(function(){var n=t("process-nextick-args");function e(B){var S=this;this.next=null,this.entry=null,this.finish=function(){(function(D,w,d){var v=D.entry;for(D.entry=null;v;){var y=v.callback;w.pendingcb--,y(d),v=v.next}w.corkedRequestsFree.next=D})(S,B)}}b.exports=M;var r,u=!c.browser&&["v0.10","v0.9."].indexOf(c.version.slice(0,5))>-1?o:n.nextTick;M.WritableState=k;var i=Object.create(t("core-util-is"));i.inherits=t("inherits");var s={deprecate:t("util-deprecate")},h=t("./internal/streams/stream"),f=t("safe-buffer").Buffer,l=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},p,m=t("./internal/streams/destroy");function _(){}function k(B,S){r=r||t("./_stream_duplex"),B=B||{};var D=S instanceof r;this.objectMode=!!B.objectMode,D&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var w=B.highWaterMark,d=B.writableHighWaterMark,v=this.objectMode?16:16384;this.highWaterMark=w||w===0?w:D&&(d||d===0)?d:v,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var y=B.decodeStrings===!1;this.decodeStrings=!y,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(x){(function(C,N){var R=C._writableState,$=R.sync,V=R.writecb;if((function(P){P.writing=!1,P.writecb=null,P.length-=P.writelen,P.writelen=0})(R),N)(function(P,q,I,F,H){--q.pendingcb,I?(n.nextTick(H,F),n.nextTick(L,P,q),P._writableState.errorEmitted=!0,P.emit("error",F)):(H(F),P._writableState.errorEmitted=!0,P.emit("error",F),L(P,q))})(C,R,$,N,V);else{var X=T(R);X||R.corked||R.bufferProcessing||!R.bufferedRequest||A(C,R),$?u(z,C,R,X,V):z(C,R,X,V)}})(S,x)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function M(B){if(r=r||t("./_stream_duplex"),!(p.call(M,this)||this instanceof r))return new M(B);this._writableState=new k(B,this),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),h.call(this)}function j(B,S,D,w,d,v,y){S.writelen=w,S.writecb=y,S.writing=!0,S.sync=!0,D?B._writev(d,S.onwrite):B._write(d,v,S.onwrite),S.sync=!1}function z(B,S,D,w){D||(function(d,v){v.length===0&&v.needDrain&&(v.needDrain=!1,d.emit("drain"))})(B,S),S.pendingcb--,w(),L(B,S)}function A(B,S){S.bufferProcessing=!0;var D=S.bufferedRequest;if(B._writev&&D&&D.next){var w=S.bufferedRequestCount,d=new Array(w),v=S.corkedRequestsFree;v.entry=D;for(var y=0,x=!0;D;)d[y]=D,D.isBuf||(x=!1),D=D.next,y+=1;d.allBuffers=x,j(B,S,!0,S.length,d,"",v.finish),S.pendingcb++,S.lastBufferedRequest=null,v.next?(S.corkedRequestsFree=v.next,v.next=null):S.corkedRequestsFree=new e(S),S.bufferedRequestCount=0}else{for(;D;){var C=D.chunk,N=D.encoding,R=D.callback;if(j(B,S,!1,S.objectMode?1:C.length,C,N,R),D=D.next,S.bufferedRequestCount--,S.writing)break}D===null&&(S.lastBufferedRequest=null)}S.bufferedRequest=D,S.bufferProcessing=!1}function T(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function O(B,S){B._final((function(D){S.pendingcb--,D&&B.emit("error",D),S.prefinished=!0,B.emit("prefinish"),L(B,S)}))}function L(B,S){var D=T(S);return D&&((function(w,d){d.prefinished||d.finalCalled||(typeof w._final=="function"?(d.pendingcb++,d.finalCalled=!0,n.nextTick(O,w,d)):(d.prefinished=!0,w.emit("prefinish")))})(B,S),S.pendingcb===0&&(S.finished=!0,B.emit("finish"))),D}i.inherits(M,h),k.prototype.getBuffer=function(){for(var B=this.bufferedRequest,S=[];B;)S.push(B),B=B.next;return S},(function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===M&&B&&B._writableState instanceof k}})):p=function(B){return B instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(B,S,D){var w,d=this._writableState,v=!1,y=!d.objectMode&&(w=B,f.isBuffer(w)||w instanceof l);return y&&!f.isBuffer(B)&&(B=(function(x){return f.from(x)})(B)),typeof S=="function"&&(D=S,S=null),y?S="buffer":S||(S=d.defaultEncoding),typeof D!="function"&&(D=_),d.ended?(function(x,C){var N=new Error("write after end");x.emit("error",N),n.nextTick(C,N)})(this,D):(y||(function(x,C,N,R){var $=!0,V=!1;return N===null?V=new TypeError("May not write null values to stream"):typeof N=="string"||N===void 0||C.objectMode||(V=new TypeError("Invalid non-string/buffer chunk")),V&&(x.emit("error",V),n.nextTick(R,V),$=!1),$})(this,d,B,D))&&(d.pendingcb++,v=(function(x,C,N,R,$,V){if(!N){var X=(function(F,H,W){return F.objectMode||F.decodeStrings===!1||typeof H!="string"||(H=f.from(H,W)),H})(C,R,$);R!==X&&(N=!0,$="buffer",R=X)}var P=C.objectMode?1:R.length;C.length+=P;var q=C.length<C.highWaterMark;if(q||(C.needDrain=!0),C.writing||C.corked){var I=C.lastBufferedRequest;C.lastBufferedRequest={chunk:R,encoding:$,isBuf:N,callback:V,next:null},I?I.next=C.lastBufferedRequest:C.bufferedRequest=C.lastBufferedRequest,C.bufferedRequestCount+=1}else j(x,C,!1,P,R,$,V);return q})(this,d,y,B,S,D)),v},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.bufferProcessing||!B.bufferedRequest||A(this,B))},M.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(B,S,D){D(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(B,S,D){var w=this._writableState;typeof B=="function"?(D=B,B=null,S=null):typeof S=="function"&&(D=S,S=null),B!=null&&this.write(B,S),w.corked&&(w.corked=1,this.uncork()),w.ending||(function(d,v,y){v.ending=!0,L(d,v),y&&(v.finished?n.nextTick(y):d.once("finish",y)),v.ended=!0,d.writable=!1})(this,w,D)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),M.prototype.destroy=m.destroy,M.prototype._undestroy=m.undestroy,M.prototype._destroy=function(B,S){this.end(),S(B)}}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(t,b,g){var c=t("safe-buffer").Buffer,a=t("util");b.exports=(function(){function o(){(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(n){var e={data:n,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},o.prototype.unshift=function(n){var e={data:n,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},o.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(n){if(this.length===0)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=n+e.data;return r},o.prototype.concat=function(n){if(this.length===0)return c.alloc(0);for(var e,r,u,i=c.allocUnsafe(n>>>0),s=this.head,h=0;s;)e=s.data,r=i,u=h,e.copy(r,u),h+=s.data.length,s=s.next;return i},o})(),a&&a.inspect&&a.inspect.custom&&(b.exports.prototype[a.inspect.custom]=function(){var o=a.inspect({length:this.length});return this.constructor.name+" "+o})},{"safe-buffer":520,util:188}],514:[function(t,b,g){var c=t("process-nextick-args");function a(o,n){o.emit("error",n)}b.exports={destroy:function(o,n){var e=this,r=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return r||u?(n?n(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,o)):c.nextTick(a,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(i){!n&&i?e._writableState?e._writableState.errorEmitted||(e._writableState.errorEmitted=!0,c.nextTick(a,e,i)):c.nextTick(a,e,i):n&&n(i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(t,b,g){arguments[4][490][0].apply(g,arguments)},{dup:490,events:422}],516:[function(t,b,g){b.exports=t("./readable").PassThrough},{"./readable":517}],517:[function(t,b,g){(g=b.exports=t("./lib/_stream_readable.js")).Stream=g,g.Readable=g,g.Writable=t("./lib/_stream_writable.js"),g.Duplex=t("./lib/_stream_duplex.js"),g.Transform=t("./lib/_stream_transform.js"),g.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(t,b,g){b.exports=t("./readable").Transform},{"./readable":517}],519:[function(t,b,g){b.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(t,b,g){arguments[4][217][0].apply(g,arguments)},{buffer:220,dup:217}],521:[function(t,b,g){arguments[4][218][0].apply(g,arguments)},{dup:218,"safe-buffer":520}],522:[function(t,b,g){arguments[4][218][0].apply(g,arguments)},{dup:218,"safe-buffer":494}],523:[function(t,b,g){(function(c,a){(function(){var o=t("process/browser.js").nextTick,n=Function.prototype.apply,e=Array.prototype.slice,r={},u=0;function i(s,h){this._id=s,this._clearFn=h}g.setTimeout=function(){return new i(n.call(setTimeout,window,arguments),clearTimeout)},g.setInterval=function(){return new i(n.call(setInterval,window,arguments),clearInterval)},g.clearTimeout=g.clearInterval=function(s){s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},g.enroll=function(s,h){clearTimeout(s._idleTimeoutId),s._idleTimeout=h},g.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},g._unrefActive=g.active=function(s){clearTimeout(s._idleTimeoutId);var h=s._idleTimeout;h>=0&&(s._idleTimeoutId=setTimeout((function(){s._onTimeout&&s._onTimeout()}),h))},g.setImmediate=typeof c=="function"?c:function(s){var h=u++,f=!(arguments.length<2)&&e.call(arguments,1);return r[h]=!0,o((function(){r[h]&&(f?s.apply(null,f):s.call(null),g.clearImmediate(h))})),h},g.clearImmediate=typeof a=="function"?a:function(s){delete r[s]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(t,b,g){(function(c){(function(){function a(o){try{if(!c.localStorage)return!1}catch{return!1}var n=c.localStorage[o];return n!=null&&String(n).toLowerCase()==="true"}b.exports=function(o,n){if(a("noDeprecation"))return o;var e=!1;return function(){if(!e){if(a("throwDeprecation"))throw new Error(n);a("traceDeprecation")?console.trace(n):console.warn(n),e=!0}return o.apply(this,arguments)}}}).call(this)}).call(this,typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(t,b,g){typeof Object.create=="function"?b.exports=function(c,a){c.super_=a,c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(c,a){c.super_=a;var o=function(){};o.prototype=a.prototype,c.prototype=new o,c.prototype.constructor=c}},{}],526:[function(t,b,g){b.exports=function(c){return c&&typeof c=="object"&&typeof c.copy=="function"&&typeof c.fill=="function"&&typeof c.readUInt8=="function"}},{}],527:[function(t,b,g){(function(c,a){(function(){var o=/%[sdj%]/g;g.format=function(d){if(!k(d)){for(var v=[],y=0;y<arguments.length;y++)v.push(r(arguments[y]));return v.join(" ")}y=1;for(var x=arguments,C=x.length,N=String(d).replace(o,(function($){if($==="%%")return"%";if(y>=C)return $;switch($){case"%s":return String(x[y++]);case"%d":return Number(x[y++]);case"%j":try{return JSON.stringify(x[y++])}catch{return"[Circular]"}default:return $}})),R=x[y];y<C;R=x[++y])m(R)||!z(R)?N+=" "+R:N+=" "+r(R);return N},g.deprecate=function(d,v){if(M(a.process))return function(){return g.deprecate(d,v).apply(this,arguments)};if(c.noDeprecation===!0)return d;var y=!1;return function(){if(!y){if(c.throwDeprecation)throw new Error(v);c.traceDeprecation?console.trace(v):console.error(v),y=!0}return d.apply(this,arguments)}};var n,e={};function r(d,v){var y={seen:[],stylize:i};return arguments.length>=3&&(y.depth=arguments[2]),arguments.length>=4&&(y.colors=arguments[3]),p(v)?y.showHidden=v:v&&g._extend(y,v),M(y.showHidden)&&(y.showHidden=!1),M(y.depth)&&(y.depth=2),M(y.colors)&&(y.colors=!1),M(y.customInspect)&&(y.customInspect=!0),y.colors&&(y.stylize=u),s(y,d,y.depth)}function u(d,v){var y=r.styles[v];return y?"\x1B["+r.colors[y][0]+"m"+d+"\x1B["+r.colors[y][1]+"m":d}function i(d,v){return d}function s(d,v,y){if(d.customInspect&&v&&O(v.inspect)&&v.inspect!==g.inspect&&(!v.constructor||v.constructor.prototype!==v)){var x=v.inspect(y,d);return k(x)||(x=s(d,x,y)),x}var C=(function(I,F){if(M(F))return I.stylize("undefined","undefined");if(k(F)){var H="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(H,"string")}if(_(F))return I.stylize(""+F,"number");if(p(F))return I.stylize(""+F,"boolean");if(m(F))return I.stylize("null","null")})(d,v);if(C)return C;var N=Object.keys(v),R=(function(I){var F={};return I.forEach((function(H,W){F[H]=!0})),F})(N);if(d.showHidden&&(N=Object.getOwnPropertyNames(v)),T(v)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return h(v);if(N.length===0){if(O(v)){var $=v.name?": "+v.name:"";return d.stylize("[Function"+$+"]","special")}if(j(v))return d.stylize(RegExp.prototype.toString.call(v),"regexp");if(A(v))return d.stylize(Date.prototype.toString.call(v),"date");if(T(v))return h(v)}var V,X="",P=!1,q=["{","}"];return l(v)&&(P=!0,q=["[","]"]),O(v)&&(X=" [Function"+(v.name?": "+v.name:"")+"]"),j(v)&&(X=" "+RegExp.prototype.toString.call(v)),A(v)&&(X=" "+Date.prototype.toUTCString.call(v)),T(v)&&(X=" "+h(v)),N.length!==0||P&&v.length!=0?y<0?j(v)?d.stylize(RegExp.prototype.toString.call(v),"regexp"):d.stylize("[Object]","special"):(d.seen.push(v),V=P?(function(I,F,H,W,J){for(var Y=[],K=0,et=F.length;K<et;++K)w(F,String(K))?Y.push(f(I,F,H,W,String(K),!0)):Y.push("");return J.forEach((function(nt){nt.match(/^\d+$/)||Y.push(f(I,F,H,W,nt,!0))})),Y})(d,v,y,R,N):N.map((function(I){return f(d,v,y,R,I,P)})),d.seen.pop(),(function(I,F,H){return I.reduce((function(W,J){return J.indexOf(`
|
|
26
|
+
`)>=0,W+J.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?H[0]+(F===""?"":F+`
|
|
27
|
+
`)+" "+I.join(`,
|
|
28
|
+
`)+" "+H[1]:H[0]+F+" "+I.join(", ")+" "+H[1]})(V,X,q)):q[0]+X+q[1]}function h(d){return"["+Error.prototype.toString.call(d)+"]"}function f(d,v,y,x,C,N){var R,$,V;if((V=Object.getOwnPropertyDescriptor(v,C)||{value:v[C]}).get?$=V.set?d.stylize("[Getter/Setter]","special"):d.stylize("[Getter]","special"):V.set&&($=d.stylize("[Setter]","special")),w(x,C)||(R="["+C+"]"),$||(d.seen.indexOf(V.value)<0?($=m(y)?s(d,V.value,null):s(d,V.value,y-1)).indexOf(`
|
|
29
|
+
`)>-1&&($=N?$.split(`
|
|
30
|
+
`).map((function(X){return" "+X})).join(`
|
|
31
|
+
`).substr(2):`
|
|
32
|
+
`+$.split(`
|
|
33
|
+
`).map((function(X){return" "+X})).join(`
|
|
34
|
+
`)):$=d.stylize("[Circular]","special")),M(R)){if(N&&C.match(/^\d+$/))return $;(R=JSON.stringify(""+C)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(R=R.substr(1,R.length-2),R=d.stylize(R,"name")):(R=R.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),R=d.stylize(R,"string"))}return R+": "+$}function l(d){return Array.isArray(d)}function p(d){return typeof d=="boolean"}function m(d){return d===null}function _(d){return typeof d=="number"}function k(d){return typeof d=="string"}function M(d){return d===void 0}function j(d){return z(d)&&L(d)==="[object RegExp]"}function z(d){return typeof d=="object"&&d!==null}function A(d){return z(d)&&L(d)==="[object Date]"}function T(d){return z(d)&&(L(d)==="[object Error]"||d instanceof Error)}function O(d){return typeof d=="function"}function L(d){return Object.prototype.toString.call(d)}function B(d){return d<10?"0"+d.toString(10):d.toString(10)}g.debuglog=function(d){if(M(n)&&(n=c.env.NODE_DEBUG||""),d=d.toUpperCase(),!e[d])if(new RegExp("\\b"+d+"\\b","i").test(n)){var v=c.pid;e[d]=function(){var y=g.format.apply(g,arguments);console.error("%s %d: %s",d,v,y)}}else e[d]=function(){};return e[d]},g.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},g.isArray=l,g.isBoolean=p,g.isNull=m,g.isNullOrUndefined=function(d){return d==null},g.isNumber=_,g.isString=k,g.isSymbol=function(d){return typeof d=="symbol"},g.isUndefined=M,g.isRegExp=j,g.isObject=z,g.isDate=A,g.isError=T,g.isFunction=O,g.isPrimitive=function(d){return d===null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||typeof d=="symbol"||d===void 0},g.isBuffer=t("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var d=new Date,v=[B(d.getHours()),B(d.getMinutes()),B(d.getSeconds())].join(":");return[d.getDate(),S[d.getMonth()],v].join(" ")}function w(d,v){return Object.prototype.hasOwnProperty.call(d,v)}g.log=function(){console.log("%s - %s",D(),g.format.apply(g,arguments))},g.inherits=t("inherits"),g._extend=function(d,v){if(!v||!z(v))return d;for(var y=Object.keys(v),x=y.length;x--;)d[y[x]]=v[y[x]];return d}}).call(this)}).call(this,t("_process"),typeof ne<"u"?ne:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(g,"version",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return s.default}});var c=h(t("./v1.js")),a=h(t("./v3.js")),o=h(t("./v4.js")),n=h(t("./v5.js")),e=h(t("./nil.js")),r=h(t("./version.js")),u=h(t("./validate.js")),i=h(t("./stringify.js")),s=h(t("./parse.js"));function h(f){return f&&f.__esModule?f:{default:f}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(t,b,g){function c(s){return 14+(s+64>>>9<<4)+1}function a(s,h){const f=(65535&s)+(65535&h);return(s>>16)+(h>>16)+(f>>16)<<16|65535&f}function o(s,h,f,l,p,m){return a((_=a(a(h,s),a(l,m)))<<(k=p)|_>>>32-k,f);var _,k}function n(s,h,f,l,p,m,_){return o(h&f|~h&l,s,h,p,m,_)}function e(s,h,f,l,p,m,_){return o(h&l|f&~l,s,h,p,m,_)}function r(s,h,f,l,p,m,_){return o(h^f^l,s,h,p,m,_)}function u(s,h,f,l,p,m,_){return o(f^(h|~l),s,h,p,m,_)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var i=function(s){if(typeof s=="string"){const h=unescape(encodeURIComponent(s));s=new Uint8Array(h.length);for(let f=0;f<h.length;++f)s[f]=h.charCodeAt(f)}return(function(h){const f=[],l=32*h.length;for(let p=0;p<l;p+=8){const m=h[p>>5]>>>p%32&255,_=parseInt("0123456789abcdef".charAt(m>>>4&15)+"0123456789abcdef".charAt(15&m),16);f.push(_)}return f})((function(h,f){h[f>>5]|=128<<f%32,h[c(f)-1]=f;let l=1732584193,p=-271733879,m=-1732584194,_=271733878;for(let k=0;k<h.length;k+=16){const M=l,j=p,z=m,A=_;l=n(l,p,m,_,h[k],7,-680876936),_=n(_,l,p,m,h[k+1],12,-389564586),m=n(m,_,l,p,h[k+2],17,606105819),p=n(p,m,_,l,h[k+3],22,-1044525330),l=n(l,p,m,_,h[k+4],7,-176418897),_=n(_,l,p,m,h[k+5],12,1200080426),m=n(m,_,l,p,h[k+6],17,-1473231341),p=n(p,m,_,l,h[k+7],22,-45705983),l=n(l,p,m,_,h[k+8],7,1770035416),_=n(_,l,p,m,h[k+9],12,-1958414417),m=n(m,_,l,p,h[k+10],17,-42063),p=n(p,m,_,l,h[k+11],22,-1990404162),l=n(l,p,m,_,h[k+12],7,1804603682),_=n(_,l,p,m,h[k+13],12,-40341101),m=n(m,_,l,p,h[k+14],17,-1502002290),p=n(p,m,_,l,h[k+15],22,1236535329),l=e(l,p,m,_,h[k+1],5,-165796510),_=e(_,l,p,m,h[k+6],9,-1069501632),m=e(m,_,l,p,h[k+11],14,643717713),p=e(p,m,_,l,h[k],20,-373897302),l=e(l,p,m,_,h[k+5],5,-701558691),_=e(_,l,p,m,h[k+10],9,38016083),m=e(m,_,l,p,h[k+15],14,-660478335),p=e(p,m,_,l,h[k+4],20,-405537848),l=e(l,p,m,_,h[k+9],5,568446438),_=e(_,l,p,m,h[k+14],9,-1019803690),m=e(m,_,l,p,h[k+3],14,-187363961),p=e(p,m,_,l,h[k+8],20,1163531501),l=e(l,p,m,_,h[k+13],5,-1444681467),_=e(_,l,p,m,h[k+2],9,-51403784),m=e(m,_,l,p,h[k+7],14,1735328473),p=e(p,m,_,l,h[k+12],20,-1926607734),l=r(l,p,m,_,h[k+5],4,-378558),_=r(_,l,p,m,h[k+8],11,-2022574463),m=r(m,_,l,p,h[k+11],16,1839030562),p=r(p,m,_,l,h[k+14],23,-35309556),l=r(l,p,m,_,h[k+1],4,-1530992060),_=r(_,l,p,m,h[k+4],11,1272893353),m=r(m,_,l,p,h[k+7],16,-155497632),p=r(p,m,_,l,h[k+10],23,-1094730640),l=r(l,p,m,_,h[k+13],4,681279174),_=r(_,l,p,m,h[k],11,-358537222),m=r(m,_,l,p,h[k+3],16,-722521979),p=r(p,m,_,l,h[k+6],23,76029189),l=r(l,p,m,_,h[k+9],4,-640364487),_=r(_,l,p,m,h[k+12],11,-421815835),m=r(m,_,l,p,h[k+15],16,530742520),p=r(p,m,_,l,h[k+2],23,-995338651),l=u(l,p,m,_,h[k],6,-198630844),_=u(_,l,p,m,h[k+7],10,1126891415),m=u(m,_,l,p,h[k+14],15,-1416354905),p=u(p,m,_,l,h[k+5],21,-57434055),l=u(l,p,m,_,h[k+12],6,1700485571),_=u(_,l,p,m,h[k+3],10,-1894986606),m=u(m,_,l,p,h[k+10],15,-1051523),p=u(p,m,_,l,h[k+1],21,-2054922799),l=u(l,p,m,_,h[k+8],6,1873313359),_=u(_,l,p,m,h[k+15],10,-30611744),m=u(m,_,l,p,h[k+6],15,-1560198380),p=u(p,m,_,l,h[k+13],21,1309151649),l=u(l,p,m,_,h[k+4],6,-145523070),_=u(_,l,p,m,h[k+11],10,-1120210379),m=u(m,_,l,p,h[k+2],15,718787259),p=u(p,m,_,l,h[k+9],21,-343485551),l=a(l,M),p=a(p,j),m=a(m,z),_=a(_,A)}return[l,p,m,_]})((function(h){if(h.length===0)return[];const f=8*h.length,l=new Uint32Array(c(f));for(let p=0;p<f;p+=8)l[p>>5]|=(255&h[p/8])<<p%32;return l})(s),8*s.length))};g.default=i},{}],530:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0,g.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c,a=(c=t("./validate.js"))&&c.__esModule?c:{default:c},o=function(n){if(!(0,a.default)(n))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(n.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(n.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(n.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(n.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};g.default=o},{"./validate.js":541}],532:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0,g.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(t,b,g){let c;Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(a)};const a=new Uint8Array(16)},{}],534:[function(t,b,g){function c(n,e,r,u){switch(n){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function a(n,e){return n<<e|n>>>32-e}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var o=function(n){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const h=unescape(encodeURIComponent(n));n=[];for(let f=0;f<h.length;++f)n.push(h.charCodeAt(f))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const u=n.length/4+2,i=Math.ceil(u/16),s=new Array(i);for(let h=0;h<i;++h){const f=new Uint32Array(16);for(let l=0;l<16;++l)f[l]=n[64*h+4*l]<<24|n[64*h+4*l+1]<<16|n[64*h+4*l+2]<<8|n[64*h+4*l+3];s[h]=f}s[i-1][14]=8*(n.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(n.length-1)&4294967295;for(let h=0;h<i;++h){const f=new Uint32Array(80);for(let M=0;M<16;++M)f[M]=s[h][M];for(let M=16;M<80;++M)f[M]=a(f[M-3]^f[M-8]^f[M-14]^f[M-16],1);let l=r[0],p=r[1],m=r[2],_=r[3],k=r[4];for(let M=0;M<80;++M){const j=Math.floor(M/20),z=a(l,5)+c(j,p,m,_)+k+e[j]+f[M]>>>0;k=_,_=m,m=a(p,30)>>>0,p=l,l=z}r[0]=r[0]+l>>>0,r[1]=r[1]+p>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+_>>>0,r[4]=r[4]+k>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};g.default=o},{}],535:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c,a=(c=t("./validate.js"))&&c.__esModule?c:{default:c};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).substr(1));var n=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const u=(o[e[r+0]]+o[e[r+1]]+o[e[r+2]]+o[e[r+3]]+"-"+o[e[r+4]]+o[e[r+5]]+"-"+o[e[r+6]]+o[e[r+7]]+"-"+o[e[r+8]]+o[e[r+9]]+"-"+o[e[r+10]]+o[e[r+11]]+o[e[r+12]]+o[e[r+13]]+o[e[r+14]]+o[e[r+15]]).toLowerCase();if(!(0,a.default)(u))throw TypeError("Stringified UUID is invalid");return u};g.default=n},{"./validate.js":541}],536:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c=o(t("./rng.js")),a=o(t("./stringify.js"));function o(s){return s&&s.__esModule?s:{default:s}}let n,e,r=0,u=0;var i=function(s,h,f){let l=h&&f||0;const p=h||new Array(16);let m=(s=s||{}).node||n,_=s.clockseq!==void 0?s.clockseq:e;if(m==null||_==null){const T=s.random||(s.rng||c.default)();m==null&&(m=n=[1|T[0],T[1],T[2],T[3],T[4],T[5]]),_==null&&(_=e=16383&(T[6]<<8|T[7]))}let k=s.msecs!==void 0?s.msecs:Date.now(),M=s.nsecs!==void 0?s.nsecs:u+1;const j=k-r+(M-u)/1e4;if(j<0&&s.clockseq===void 0&&(_=_+1&16383),(j<0||k>r)&&s.nsecs===void 0&&(M=0),M>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=k,u=M,e=_,k+=122192928e5;const z=(1e4*(268435455&k)+M)%4294967296;p[l++]=z>>>24&255,p[l++]=z>>>16&255,p[l++]=z>>>8&255,p[l++]=255&z;const A=k/4294967296*1e4&268435455;p[l++]=A>>>8&255,p[l++]=255&A,p[l++]=A>>>24&15|16,p[l++]=A>>>16&255,p[l++]=_>>>8|128,p[l++]=255&_;for(let T=0;T<6;++T)p[l+T]=m[T];return h||(0,a.default)(p)};g.default=i},{"./rng.js":533,"./stringify.js":535}],537:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c=o(t("./v35.js")),a=o(t("./md5.js"));function o(e){return e&&e.__esModule?e:{default:e}}var n=(0,c.default)("v3",48,a.default);g.default=n},{"./md5.js":529,"./v35.js":538}],538:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(r,u,i){function s(h,f,l,p){if(typeof h=="string"&&(h=(function(_){_=unescape(encodeURIComponent(_));const k=[];for(let M=0;M<_.length;++M)k.push(_.charCodeAt(M));return k})(h)),typeof f=="string"&&(f=(0,a.default)(f)),f.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let m=new Uint8Array(16+h.length);if(m.set(f),m.set(h,f.length),m=i(m),m[6]=15&m[6]|u,m[8]=63&m[8]|128,l){p=p||0;for(let _=0;_<16;++_)l[p+_]=m[_];return l}return(0,c.default)(m)}try{s.name=r}catch{}return s.DNS=n,s.URL=e,s},g.URL=g.DNS=void 0;var c=o(t("./stringify.js")),a=o(t("./parse.js"));function o(r){return r&&r.__esModule?r:{default:r}}const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";g.DNS=n;const e="6ba7b811-9dad-11d1-80b4-00c04fd430c8";g.URL=e},{"./parse.js":531,"./stringify.js":535}],539:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c=o(t("./rng.js")),a=o(t("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}var n=function(e,r,u){const i=(e=e||{}).random||(e.rng||c.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,r){u=u||0;for(let s=0;s<16;++s)r[u+s]=i[s];return r}return(0,a.default)(i)};g.default=n},{"./rng.js":533,"./stringify.js":535}],540:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c=o(t("./v35.js")),a=o(t("./sha1.js"));function o(e){return e&&e.__esModule?e:{default:e}}var n=(0,c.default)("v5",80,a.default);g.default=n},{"./sha1.js":534,"./v35.js":538}],541:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c,a=(c=t("./regex.js"))&&c.__esModule?c:{default:c},o=function(n){return typeof n=="string"&&a.default.test(n)};g.default=o},{"./regex.js":532}],542:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var c,a=(c=t("./validate.js"))&&c.__esModule?c:{default:c},o=function(n){if(!(0,a.default)(n))throw TypeError("Invalid UUID");return parseInt(n.substr(14,1),16)};g.default=o},{"./validate.js":541}],543:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.CHAR=`
|
|
35
|
+
\r --�𐀀-`,g.S=` \r
|
|
36
|
+
`,g.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",g.NAME_CHAR="-"+g.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.CHAR_RE=new RegExp("^["+g.CHAR+"]$","u"),g.S_RE=new RegExp("^["+g.S+"]+$","u"),g.NAME_START_CHAR_RE=new RegExp("^["+g.NAME_START_CHAR+"]$","u"),g.NAME_CHAR_RE=new RegExp("^["+g.NAME_CHAR+"]$","u"),g.NAME_RE=new RegExp("^["+g.NAME_START_CHAR+"]["+g.NAME_CHAR+"]*$","u"),g.NMTOKEN_RE=new RegExp("^["+g.NAME_CHAR+"]+$","u");function c(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}g.S_LIST=[32,10,13,9],g.isChar=function(a){return a>=32&&a<=55295||a===10||a===13||a===9||a>=57344&&a<=65533||a>=65536&&a<=1114111},g.isS=function(a){return a===32||a===10||a===13||a===9},g.isNameStartChar=c,g.isNameChar=function(a){return c(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],544:[function(t,b,g){Object.defineProperty(g,"__esModule",{value:!0}),g.CHAR="--�𐀀-",g.RESTRICTED_CHAR="-\b\v\f---",g.S=` \r
|
|
37
|
+
`,g.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",g.NAME_CHAR="-"+g.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.CHAR_RE=new RegExp("^["+g.CHAR+"]$","u"),g.RESTRICTED_CHAR_RE=new RegExp("^["+g.RESTRICTED_CHAR+"]$","u"),g.S_RE=new RegExp("^["+g.S+"]+$","u"),g.NAME_START_CHAR_RE=new RegExp("^["+g.NAME_START_CHAR+"]$","u"),g.NAME_CHAR_RE=new RegExp("^["+g.NAME_CHAR+"]$","u"),g.NAME_RE=new RegExp("^["+g.NAME_START_CHAR+"]["+g.NAME_CHAR+"]*$","u"),g.NMTOKEN_RE=new RegExp("^["+g.NAME_CHAR+"]+$","u");function c(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}g.S_LIST=[32,10,13,9],g.isChar=function(a){return a>=1&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},g.isRestrictedChar=function(a){return a>=1&&a<=8||a===11||a===12||a>=14&&a<=31||a>=127&&a<=132||a>=134&&a<=159},g.isCharAndNotRestricted=function(a){return a===9||a===10||a===13||a>31&&a<127||a===133||a>159&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},g.isS=function(a){return a===32||a===10||a===13||a===9},g.isNameStartChar=c,g.isNameChar=function(a){return c(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],545:[function(t,b,g){function c(a){return a>=65&&a<=90||a===95||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}Object.defineProperty(g,"__esModule",{value:!0}),g.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",g.NC_NAME_CHAR="-"+g.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.NC_NAME_START_CHAR_RE=new RegExp("^["+g.NC_NAME_START_CHAR+"]$","u"),g.NC_NAME_CHAR_RE=new RegExp("^["+g.NC_NAME_CHAR+"]$","u"),g.NC_NAME_RE=new RegExp("^["+g.NC_NAME_START_CHAR+"]["+g.NC_NAME_CHAR+"]*$","u"),g.isNCNameStartChar=c,g.isNCNameChar=function(a){return c(a)||a===45||a===46||a>=48&&a<=57||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}]},{},[15])(15)}))})(Gr)),Gr.exports}So();const zn=Symbol(),ko=U=>te.provide(zn,U),Co=()=>te.inject(zn);function Do(){console.log("Hello World!")}exports.run=Do;exports.setupPageEvent=ko;exports.usePageEvent=Co;
|