mdast2docx 0.0.0-beta.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +203 -170
  2. package/dist/chunk-3ZZBJC3M.mjs +1 -0
  3. package/dist/chunk-7LR5HC5O.mjs +4 -0
  4. package/dist/chunk-7W4N3GRD.mjs +75 -0
  5. package/dist/chunk-GM6UUFDK.mjs +2 -0
  6. package/dist/chunk-TASCVLMX.mjs +1 -0
  7. package/dist/chunk-UXY5TDOP.mjs +1 -0
  8. package/dist/chunk-XIRSNIMN.mjs +1 -0
  9. package/dist/chunk-YKZOUIFR.mjs +1 -0
  10. package/dist/chunk-Z5DPYROV.mjs +31 -0
  11. package/dist/chunk-ZKNVKZAF.mjs +1 -0
  12. package/dist/index.d.ts +7 -8
  13. package/dist/index.js +2 -38
  14. package/dist/index.mjs +1 -1
  15. package/dist/multipart-parser-WKN2UV32.mjs +2 -0
  16. package/dist/plugins/html.d.ts +0 -0
  17. package/dist/plugins/html.js +1 -0
  18. package/dist/plugins/image.d.ts +37 -0
  19. package/dist/plugins/image.js +1 -0
  20. package/dist/plugins/image.mjs +1 -0
  21. package/dist/plugins/index.d.ts +4 -0
  22. package/dist/plugins/index.js +75 -0
  23. package/dist/plugins/index.mjs +1 -0
  24. package/dist/plugins/list.d.ts +57 -0
  25. package/dist/plugins/list.js +1 -0
  26. package/dist/plugins/list.mjs +1 -0
  27. package/dist/plugins/math.d.ts +11 -0
  28. package/dist/plugins/math.js +75 -0
  29. package/dist/plugins/math.mjs +1 -0
  30. package/dist/plugins/node-image.d.ts +27 -0
  31. package/dist/plugins/node-image.js +35 -0
  32. package/dist/plugins/node-image.mjs +1 -0
  33. package/dist/plugins/node.d.ts +1 -0
  34. package/dist/plugins/node.js +35 -0
  35. package/dist/plugins/node.mjs +1 -0
  36. package/dist/plugins/table.d.ts +26 -0
  37. package/dist/plugins/table.js +1 -0
  38. package/dist/plugins/table.mjs +1 -0
  39. package/dist/section.d.ts +9 -8
  40. package/dist/section.js +2 -38
  41. package/dist/section.mjs +1 -1
  42. package/dist/utils.d.ts +75 -20
  43. package/dist/utils.js +1 -37
  44. package/dist/utils.mjs +1 -1
  45. package/package.json +6 -20
  46. package/dist/chunk-KRMGJ4HN.mjs +0 -2
  47. package/dist/chunk-O6BHSWEF.mjs +0 -37
package/dist/section.js CHANGED
@@ -1,38 +1,2 @@
1
- "use strict";var cr=Object.defineProperty;var lc=Object.getOwnPropertyDescriptor;var hc=Object.getOwnPropertyNames;var fc=Object.prototype.hasOwnProperty;var dc=(r,e)=>{for(var i in e)cr(r,i,{get:e[i],enumerable:!0})},pc=(r,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of hc(e))!fc.call(r,c)&&c!==i&&cr(r,c,{get:()=>e[c],enumerable:!(a=lc(e,c))||a.enumerable});return r};var mc=r=>pc(cr({},"__esModule",{value:!0}),r);var vh={};dc(vh,{toSection:()=>yh});module.exports=mc(vh);var wc=Object.defineProperty,gc=Object.defineProperties,yc=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,vc=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,Jn=(r,e,i)=>e in r?wc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,De=(r,e)=>{for(var i in e||(e={}))vc.call(e,i)&&Jn(r,i,e[i]);if(Ea)for(var i of Ea(e))_c.call(e,i)&&Jn(r,i,e[i]);return r},jt=(r,e)=>gc(r,yc(e));var le=(r,e,i)=>Jn(r,typeof e!="symbol"?e+"":e,i),bc=(r,e,i)=>new Promise((a,c)=>{var l=h=>{try{n(i.next(h))}catch(A){c(A)}},f=h=>{try{n(i.throw(h))}catch(A){c(A)}},n=h=>h.done?a(h.value):Promise.resolve(h.value).then(l,f);n((i=i.apply(r,e)).next())}),Qe=class{constructor(e){le(this,"rootKey"),this.rootKey=e}},Ec=Object.seal({}),oe=class extends Qe{constructor(e){super(e),le(this,"root"),this.root=new Array}prepForXml(e){var i;e.stack.push(this);let a=this.root.map(c=>c instanceof Qe?c.prepForXml(e):c).filter(c=>c!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((i=a[0])!=null&&i._attr)?a[0]:a:Ec}}addChildElement(e){return this.root.push(e),this}},et=class extends oe{prepForXml(e){let i=super.prepForXml(e);if(i&&(typeof i[this.rootKey]!="object"||Object.keys(i[this.rootKey]).length))return i}},fe=class extends Qe{constructor(e){super("_attr"),le(this,"xmlKeys"),this.root=e}prepForXml(e){let i={};return Object.entries(this.root).forEach(([a,c])=>{if(c!==void 0){let l=this.xmlKeys&&this.xmlKeys[a]||a;i[l]=c}}),{_attr:i}}},Be=class extends Qe{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:c,value:l})=>jt(De({},a),{[c]:l}),{})}}},be=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},Te=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function la(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var lr={},Ot={exports:{}},xa;function ha(){if(xa)return Ot.exports;xa=1;var r=typeof Reflect=="object"?Reflect:null,e=r&&typeof r.apply=="function"?r.apply:function(E,P,F){return Function.prototype.apply.call(E,P,F)},i;r&&typeof r.ownKeys=="function"?i=r.ownKeys:Object.getOwnPropertySymbols?i=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:i=function(E){return Object.getOwnPropertyNames(E)};function a(u){console&&console.warn&&console.warn(u)}var c=Number.isNaN||function(E){return E!==E};function l(){l.init.call(this)}Ot.exports=l,Ot.exports.once=o,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var f=10;function n(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(u){if(typeof u!="number"||u<0||c(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");f=u}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||c(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function h(u){return u._maxListeners===void 0?l.defaultMaxListeners:u._maxListeners}l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(E){for(var P=[],F=1;F<arguments.length;F++)P.push(arguments[F]);var W=E==="error",N=this._events;if(N!==void 0)W=W&&N.error===void 0;else if(!W)return!1;if(W){var X;if(P.length>0&&(X=P[0]),X instanceof Error)throw X;var ae=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw ae.context=X,ae}var O=N[E];if(O===void 0)return!1;if(typeof O=="function")e(O,this,P);else for(var M=O.length,g=I(O,M),F=0;F<M;++F)e(g[F],this,P);return!0};function A(u,E,P,F){var W,N,X;if(n(P),N=u._events,N===void 0?(N=u._events=Object.create(null),u._eventsCount=0):(N.newListener!==void 0&&(u.emit("newListener",E,P.listener?P.listener:P),N=u._events),X=N[E]),X===void 0)X=N[E]=P,++u._eventsCount;else if(typeof X=="function"?X=N[E]=F?[P,X]:[X,P]:F?X.unshift(P):X.push(P),W=h(u),W>0&&X.length>W&&!X.warned){X.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=u,ae.type=E,ae.count=X.length,a(ae)}return u}l.prototype.addListener=function(E,P){return A(this,E,P,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(E,P){return A(this,E,P,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(u,E,P){var F={fired:!1,wrapFn:void 0,target:u,type:E,listener:P},W=T.bind(F);return W.listener=P,F.wrapFn=W,W}l.prototype.once=function(E,P){return n(P),this.on(E,S(this,E,P)),this},l.prototype.prependOnceListener=function(E,P){return n(P),this.prependListener(E,S(this,E,P)),this},l.prototype.removeListener=function(E,P){var F,W,N,X,ae;if(n(P),W=this._events,W===void 0)return this;if(F=W[E],F===void 0)return this;if(F===P||F.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete W[E],W.removeListener&&this.emit("removeListener",E,F.listener||P));else if(typeof F!="function"){for(N=-1,X=F.length-1;X>=0;X--)if(F[X]===P||F[X].listener===P){ae=F[X].listener,N=X;break}if(N<0)return this;N===0?F.shift():b(F,N),F.length===1&&(W[E]=F[0]),W.removeListener!==void 0&&this.emit("removeListener",E,ae||P)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(E){var P,F,W;if(F=this._events,F===void 0)return this;if(F.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):F[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete F[E]),this;if(arguments.length===0){var N=Object.keys(F),X;for(W=0;W<N.length;++W)X=N[W],X!=="removeListener"&&this.removeAllListeners(X);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=F[E],typeof P=="function")this.removeListener(E,P);else if(P!==void 0)for(W=P.length-1;W>=0;W--)this.removeListener(E,P[W]);return this};function k(u,E,P){var F=u._events;if(F===void 0)return[];var W=F[E];return W===void 0?[]:typeof W=="function"?P?[W.listener||W]:[W]:P?R(W):I(W,W.length)}l.prototype.listeners=function(E){return k(this,E,!0)},l.prototype.rawListeners=function(E){return k(this,E,!1)},l.listenerCount=function(u,E){return typeof u.listenerCount=="function"?u.listenerCount(E):x.call(u,E)},l.prototype.listenerCount=x;function x(u){var E=this._events;if(E!==void 0){var P=E[u];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function I(u,E){for(var P=new Array(E),F=0;F<E;++F)P[F]=u[F];return P}function b(u,E){for(;E+1<u.length;E++)u[E]=u[E+1];u.pop()}function R(u){for(var E=new Array(u.length),P=0;P<E.length;++P)E[P]=u[P].listener||u[P];return E}function o(u,E){return new Promise(function(P,F){function W(X){u.removeListener(E,N),F(X)}function N(){typeof u.removeListener=="function"&&u.removeListener("error",W),P([].slice.call(arguments))}m(u,E,N,{once:!0}),E!=="error"&&y(u,W,{once:!0})})}function y(u,E,P){typeof u.on=="function"&&m(u,"error",E,P)}function m(u,E,P,F){if(typeof u.on=="function")F.once?u.once(E,P):u.on(E,P);else if(typeof u.addEventListener=="function")u.addEventListener(E,function W(N){F.once&&u.removeEventListener(E,W),P(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}return Ot.exports}var Ct={exports:{}},Ta;function je(){return Ta||(Ta=1,typeof Object.create=="function"?Ct.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ct.exports=function(e,i){if(i){e.super_=i;var a=function(){};a.prototype=i.prototype,e.prototype=new a,e.prototype.constructor=e}}),Ct.exports}function xc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Tu={exports:{}},_e=Tu.exports={},Ie,Ne;function Qn(){throw new Error("setTimeout has not been defined")}function ei(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ie=setTimeout:Ie=Qn}catch{Ie=Qn}try{typeof clearTimeout=="function"?Ne=clearTimeout:Ne=ei}catch{Ne=ei}})();function Au(r){if(Ie===setTimeout)return setTimeout(r,0);if((Ie===Qn||!Ie)&&setTimeout)return Ie=setTimeout,setTimeout(r,0);try{return Ie(r,0)}catch{try{return Ie.call(null,r,0)}catch{return Ie.call(this,r,0)}}}function Tc(r){if(Ne===clearTimeout)return clearTimeout(r);if((Ne===ei||!Ne)&&clearTimeout)return Ne=clearTimeout,clearTimeout(r);try{return Ne(r)}catch{try{return Ne.call(null,r)}catch{return Ne.call(this,r)}}}var Le=[],Je=!1,Ge,Mt=-1;function Ac(){!Je||!Ge||(Je=!1,Ge.length?Le=Ge.concat(Le):Mt=-1,Le.length&&Su())}function Su(){if(!Je){var r=Au(Ac);Je=!0;for(var e=Le.length;e;){for(Ge=Le,Le=[];++Mt<e;)Ge&&Ge[Mt].run();Mt=-1,e=Le.length}Ge=null,Je=!1,Tc(r)}}_e.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];Le.push(new Ru(r,e)),Le.length===1&&!Je&&Au(Su)};function Ru(r,e){this.fun=r,this.array=e}Ru.prototype.run=function(){this.fun.apply(null,this.array)};_e.title="browser";_e.browser=!0;_e.env={};_e.argv=[];_e.version="";_e.versions={};function Pe(){}_e.on=Pe;_e.addListener=Pe;_e.once=Pe;_e.off=Pe;_e.removeListener=Pe;_e.removeAllListeners=Pe;_e.emit=Pe;_e.prependListener=Pe;_e.prependOnceListener=Pe;_e.listeners=function(r){return[]};_e.binding=function(r){throw new Error("process.binding is not supported")};_e.cwd=function(){return"/"};_e.chdir=function(r){throw new Error("process.chdir is not supported")};_e.umask=function(){return 0};var Sc=Tu.exports,pe=xc(Sc),hr,Aa;function Iu(){return Aa||(Aa=1,hr=ha().EventEmitter),hr}var fr={},ct={},Sa;function Rc(){if(Sa)return ct;Sa=1,ct.byteLength=n,ct.toByteArray=A,ct.fromByteArray=k;for(var r=[],e=[],i=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c<l;++c)r[c]=a[c],e[a.charCodeAt(c)]=c;e[45]=62,e[95]=63;function f(x){var I=x.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=x.indexOf("=");b===-1&&(b=I);var R=b===I?0:4-b%4;return[b,R]}function n(x){var I=f(x),b=I[0],R=I[1];return(b+R)*3/4-R}function h(x,I,b){return(I+b)*3/4-b}function A(x){var I,b=f(x),R=b[0],o=b[1],y=new i(h(x,R,o)),m=0,u=o>0?R-4:R,E;for(E=0;E<u;E+=4)I=e[x.charCodeAt(E)]<<18|e[x.charCodeAt(E+1)]<<12|e[x.charCodeAt(E+2)]<<6|e[x.charCodeAt(E+3)],y[m++]=I>>16&255,y[m++]=I>>8&255,y[m++]=I&255;return o===2&&(I=e[x.charCodeAt(E)]<<2|e[x.charCodeAt(E+1)]>>4,y[m++]=I&255),o===1&&(I=e[x.charCodeAt(E)]<<10|e[x.charCodeAt(E+1)]<<4|e[x.charCodeAt(E+2)]>>2,y[m++]=I>>8&255,y[m++]=I&255),y}function T(x){return r[x>>18&63]+r[x>>12&63]+r[x>>6&63]+r[x&63]}function S(x,I,b){for(var R,o=[],y=I;y<b;y+=3)R=(x[y]<<16&16711680)+(x[y+1]<<8&65280)+(x[y+2]&255),o.push(T(R));return o.join("")}function k(x){for(var I,b=x.length,R=b%3,o=[],y=16383,m=0,u=b-R;m<u;m+=y)o.push(S(x,m,m+y>u?u:m+y));return R===1?(I=x[b-1],o.push(r[I>>2]+r[I<<4&63]+"==")):R===2&&(I=(x[b-2]<<8)+x[b-1],o.push(r[I>>10]+r[I>>4&63]+r[I<<2&63]+"=")),o.join("")}return ct}var Dt={};var Ra;function Ic(){return Ra||(Ra=1,Dt.read=function(r,e,i,a,c){var l,f,n=c*8-a-1,h=(1<<n)-1,A=h>>1,T=-7,S=i?c-1:0,k=i?-1:1,x=r[e+S];for(S+=k,l=x&(1<<-T)-1,x>>=-T,T+=n;T>0;l=l*256+r[e+S],S+=k,T-=8);for(f=l&(1<<-T)-1,l>>=-T,T+=a;T>0;f=f*256+r[e+S],S+=k,T-=8);if(l===0)l=1-A;else{if(l===h)return f?NaN:(x?-1:1)*(1/0);f=f+Math.pow(2,a),l=l-A}return(x?-1:1)*f*Math.pow(2,l-a)},Dt.write=function(r,e,i,a,c,l){var f,n,h,A=l*8-c-1,T=(1<<A)-1,S=T>>1,k=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=a?0:l-1,I=a?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(n=isNaN(e)?1:0,f=T):(f=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+S>=1?e+=k/h:e+=k*Math.pow(2,1-S),e*h>=2&&(f++,h/=2),f+S>=T?(n=0,f=T):f+S>=1?(n=(e*h-1)*Math.pow(2,c),f=f+S):(n=e*Math.pow(2,S-1)*Math.pow(2,c),f=0));c>=8;r[i+x]=n&255,x+=I,n/=256,c-=8);for(f=f<<c|n,A+=c;A>0;r[i+x]=f&255,x+=I,f/=256,A-=8);r[i+x-I]|=b*128}),Dt}var Ia;function nr(){return Ia||(Ia=1,function(r){var e=Rc(),i=Ic(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=n,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50;var c=2147483647;r.kMaxLength=c,n.TYPED_ARRAY_SUPPORT=l(),!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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.");function l(){try{var _=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(_,t),_.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function f(_){if(_>c)throw new RangeError('The value "'+_+'" is invalid for option "size"');var t=new Uint8Array(_);return Object.setPrototypeOf(t,n.prototype),t}function n(_,t,s){if(typeof _=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(_)}return h(_,t,s)}n.poolSize=8192;function h(_,t,s){if(typeof _=="string")return k(_,t);if(ArrayBuffer.isView(_))return I(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(J(_,ArrayBuffer)||_&&J(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(J(_,SharedArrayBuffer)||_&&J(_.buffer,SharedArrayBuffer)))return b(_,t,s);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var p=_.valueOf&&_.valueOf();if(p!=null&&p!==_)return n.from(p,t,s);var B=R(_);if(B)return B;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return n.from(_[Symbol.toPrimitive]("string"),t,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}n.from=function(_,t,s){return h(_,t,s)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function A(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function T(_,t,s){return A(_),_<=0?f(_):t!==void 0?typeof s=="string"?f(_).fill(t,s):f(_).fill(t):f(_)}n.alloc=function(_,t,s){return T(_,t,s)};function S(_){return A(_),f(_<0?0:o(_)|0)}n.allocUnsafe=function(_){return S(_)},n.allocUnsafeSlow=function(_){return S(_)};function k(_,t){if((typeof t!="string"||t==="")&&(t="utf8"),!n.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var s=m(_,t)|0,p=f(s),B=p.write(_,t);return B!==s&&(p=p.slice(0,B)),p}function x(_){for(var t=_.length<0?0:o(_.length)|0,s=f(t),p=0;p<t;p+=1)s[p]=_[p]&255;return s}function I(_){if(J(_,Uint8Array)){var t=new Uint8Array(_);return b(t.buffer,t.byteOffset,t.byteLength)}return x(_)}function b(_,t,s){if(t<0||_.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<t+(s||0))throw new RangeError('"length" is outside of buffer bounds');var p;return t===void 0&&s===void 0?p=new Uint8Array(_):s===void 0?p=new Uint8Array(_,t):p=new Uint8Array(_,t,s),Object.setPrototypeOf(p,n.prototype),p}function R(_){if(n.isBuffer(_)){var t=o(_.length)|0,s=f(t);return s.length===0||_.copy(s,0,0,t),s}if(_.length!==void 0)return typeof _.length!="number"||d(_.length)?f(0):x(_);if(_.type==="Buffer"&&Array.isArray(_.data))return x(_.data)}function o(_){if(_>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return _|0}function y(_){return+_!=_&&(_=0),n.alloc(+_)}n.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==n.prototype},n.compare=function(t,s){if(J(t,Uint8Array)&&(t=n.from(t,t.offset,t.byteLength)),J(s,Uint8Array)&&(s=n.from(s,s.offset,s.byteLength)),!n.isBuffer(t)||!n.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;for(var p=t.length,B=s.length,G=0,H=Math.min(p,B);G<H;++G)if(t[G]!==s[G]){p=t[G],B=s[G];break}return p<B?-1:B<p?1:0},n.isEncoding=function(t){switch(String(t).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}},n.concat=function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return n.alloc(0);var p;if(s===void 0)for(s=0,p=0;p<t.length;++p)s+=t[p].length;var B=n.allocUnsafe(s),G=0;for(p=0;p<t.length;++p){var H=t[p];if(J(H,Uint8Array))G+H.length>B.length?n.from(H).copy(B,G):Uint8Array.prototype.set.call(B,H,G);else if(n.isBuffer(H))H.copy(B,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=H.length}return B};function m(_,t){if(n.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||J(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);var s=_.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&s===0)return 0;for(var B=!1;;)switch(t){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return w(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return C(_).length;default:if(B)return p?-1:w(_).length;t=(""+t).toLowerCase(),B=!0}}n.byteLength=m;function u(_,t,s){var p=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,t>>>=0,s<=t))return"";for(_||(_="utf8");;)switch(_){case"hex":return Q(this,t,s);case"utf8":case"utf-8":return g(this,t,s);case"ascii":return z(this,t,s);case"latin1":case"binary":return ne(this,t,s);case"base64":return M(this,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,t,s);default:if(p)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),p=!0}}n.prototype._isBuffer=!0;function E(_,t,s){var p=_[t];_[t]=_[s],_[s]=p}n.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<t;s+=2)E(this,s,s+1);return this},n.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<t;s+=4)E(this,s,s+3),E(this,s+1,s+2);return this},n.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<t;s+=8)E(this,s,s+7),E(this,s+1,s+6),E(this,s+2,s+5),E(this,s+3,s+4);return this},n.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?g(this,0,t):u.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:n.compare(this,t)===0},n.prototype.inspect=function(){var t="",s=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},a&&(n.prototype[a]=n.prototype.inspect),n.prototype.compare=function(t,s,p,B,G){if(J(t,Uint8Array)&&(t=n.from(t,t.offset,t.byteLength)),!n.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),p===void 0&&(p=t?t.length:0),B===void 0&&(B=0),G===void 0&&(G=this.length),s<0||p>t.length||B<0||G>this.length)throw new RangeError("out of range index");if(B>=G&&s>=p)return 0;if(B>=G)return-1;if(s>=p)return 1;if(s>>>=0,p>>>=0,B>>>=0,G>>>=0,this===t)return 0;for(var H=G-B,re=p-s,se=Math.min(H,re),ie=this.slice(B,G),ce=t.slice(s,p),he=0;he<se;++he)if(ie[he]!==ce[he]){H=ie[he],re=ce[he];break}return H<re?-1:re<H?1:0};function P(_,t,s,p,B){if(_.length===0)return-1;if(typeof s=="string"?(p=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,d(s)&&(s=B?0:_.length-1),s<0&&(s=_.length+s),s>=_.length){if(B)return-1;s=_.length-1}else if(s<0)if(B)s=0;else return-1;if(typeof t=="string"&&(t=n.from(t,p)),n.isBuffer(t))return t.length===0?-1:F(_,t,s,p,B);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(_,t,s):Uint8Array.prototype.lastIndexOf.call(_,t,s):F(_,[t],s,p,B);throw new TypeError("val must be string, number or Buffer")}function F(_,t,s,p,B){var G=1,H=_.length,re=t.length;if(p!==void 0&&(p=String(p).toLowerCase(),p==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(_.length<2||t.length<2)return-1;G=2,H/=2,re/=2,s/=2}function se(xe,Fe){return G===1?xe[Fe]:xe.readUInt16BE(Fe*G)}var ie;if(B){var ce=-1;for(ie=s;ie<H;ie++)if(se(_,ie)===se(t,ce===-1?0:ie-ce)){if(ce===-1&&(ce=ie),ie-ce+1===re)return ce*G}else ce!==-1&&(ie-=ie-ce),ce=-1}else for(s+re>H&&(s=H-re),ie=s;ie>=0;ie--){for(var he=!0,de=0;de<re;de++)if(se(_,ie+de)!==se(t,de)){he=!1;break}if(he)return ie}return-1}n.prototype.includes=function(t,s,p){return this.indexOf(t,s,p)!==-1},n.prototype.indexOf=function(t,s,p){return P(this,t,s,p,!0)},n.prototype.lastIndexOf=function(t,s,p){return P(this,t,s,p,!1)};function W(_,t,s,p){s=Number(s)||0;var B=_.length-s;p?(p=Number(p),p>B&&(p=B)):p=B;var G=t.length;p>G/2&&(p=G/2);for(var H=0;H<p;++H){var re=parseInt(t.substr(H*2,2),16);if(d(re))return H;_[s+H]=re}return H}function N(_,t,s,p){return L(w(t,_.length-s),_,s,p)}function X(_,t,s,p){return L(j(t),_,s,p)}function ae(_,t,s,p){return L(C(t),_,s,p)}function O(_,t,s,p){return L(U(t,_.length-s),_,s,p)}n.prototype.write=function(t,s,p,B){if(s===void 0)B="utf8",p=this.length,s=0;else if(p===void 0&&typeof s=="string")B=s,p=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(p)?(p=p>>>0,B===void 0&&(B="utf8")):(B=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var G=this.length-s;if((p===void 0||p>G)&&(p=G),t.length>0&&(p<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");B||(B="utf8");for(var H=!1;;)switch(B){case"hex":return W(this,t,s,p);case"utf8":case"utf-8":return N(this,t,s,p);case"ascii":case"latin1":case"binary":return X(this,t,s,p);case"base64":return ae(this,t,s,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,s,p);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),H=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(_,t,s){return t===0&&s===_.length?e.fromByteArray(_):e.fromByteArray(_.slice(t,s))}function g(_,t,s){s=Math.min(_.length,s);for(var p=[],B=t;B<s;){var G=_[B],H=null,re=G>239?4:G>223?3:G>191?2:1;if(B+re<=s){var se,ie,ce,he;switch(re){case 1:G<128&&(H=G);break;case 2:se=_[B+1],(se&192)===128&&(he=(G&31)<<6|se&63,he>127&&(H=he));break;case 3:se=_[B+1],ie=_[B+2],(se&192)===128&&(ie&192)===128&&(he=(G&15)<<12|(se&63)<<6|ie&63,he>2047&&(he<55296||he>57343)&&(H=he));break;case 4:se=_[B+1],ie=_[B+2],ce=_[B+3],(se&192)===128&&(ie&192)===128&&(ce&192)===128&&(he=(G&15)<<18|(se&63)<<12|(ie&63)<<6|ce&63,he>65535&&he<1114112&&(H=he))}}H===null?(H=65533,re=1):H>65535&&(H-=65536,p.push(H>>>10&1023|55296),H=56320|H&1023),p.push(H),B+=re}return ee(p)}var q=4096;function ee(_){var t=_.length;if(t<=q)return String.fromCharCode.apply(String,_);for(var s="",p=0;p<t;)s+=String.fromCharCode.apply(String,_.slice(p,p+=q));return s}function z(_,t,s){var p="";s=Math.min(_.length,s);for(var B=t;B<s;++B)p+=String.fromCharCode(_[B]&127);return p}function ne(_,t,s){var p="";s=Math.min(_.length,s);for(var B=t;B<s;++B)p+=String.fromCharCode(_[B]);return p}function Q(_,t,s){var p=_.length;(!t||t<0)&&(t=0),(!s||s<0||s>p)&&(s=p);for(var B="",G=t;G<s;++G)B+=Y[_[G]];return B}function ue(_,t,s){for(var p=_.slice(t,s),B="",G=0;G<p.length-1;G+=2)B+=String.fromCharCode(p[G]+p[G+1]*256);return B}n.prototype.slice=function(t,s){var p=this.length;t=~~t,s=s===void 0?p:~~s,t<0?(t+=p,t<0&&(t=0)):t>p&&(t=p),s<0?(s+=p,s<0&&(s=0)):s>p&&(s=p),s<t&&(s=t);var B=this.subarray(t,s);return Object.setPrototypeOf(B,n.prototype),B};function V(_,t,s){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+t>s)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(t,s,p){t=t>>>0,s=s>>>0,p||V(t,s,this.length);for(var B=this[t],G=1,H=0;++H<s&&(G*=256);)B+=this[t+H]*G;return B},n.prototype.readUintBE=n.prototype.readUIntBE=function(t,s,p){t=t>>>0,s=s>>>0,p||V(t,s,this.length);for(var B=this[t+--s],G=1;s>0&&(G*=256);)B+=this[t+--s]*G;return B},n.prototype.readUint8=n.prototype.readUInt8=function(t,s){return t=t>>>0,s||V(t,1,this.length),this[t]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(t,s){return t=t>>>0,s||V(t,2,this.length),this[t]|this[t+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(t,s){return t=t>>>0,s||V(t,2,this.length),this[t]<<8|this[t+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(t,s){return t=t>>>0,s||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(t,s){return t=t>>>0,s||V(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},n.prototype.readIntLE=function(t,s,p){t=t>>>0,s=s>>>0,p||V(t,s,this.length);for(var B=this[t],G=1,H=0;++H<s&&(G*=256);)B+=this[t+H]*G;return G*=128,B>=G&&(B-=Math.pow(2,8*s)),B},n.prototype.readIntBE=function(t,s,p){t=t>>>0,s=s>>>0,p||V(t,s,this.length);for(var B=s,G=1,H=this[t+--B];B>0&&(G*=256);)H+=this[t+--B]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*s)),H},n.prototype.readInt8=function(t,s){return t=t>>>0,s||V(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},n.prototype.readInt16LE=function(t,s){t=t>>>0,s||V(t,2,this.length);var p=this[t]|this[t+1]<<8;return p&32768?p|4294901760:p},n.prototype.readInt16BE=function(t,s){t=t>>>0,s||V(t,2,this.length);var p=this[t+1]|this[t]<<8;return p&32768?p|4294901760:p},n.prototype.readInt32LE=function(t,s){return t=t>>>0,s||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},n.prototype.readInt32BE=function(t,s){return t=t>>>0,s||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},n.prototype.readFloatLE=function(t,s){return t=t>>>0,s||V(t,4,this.length),i.read(this,t,!0,23,4)},n.prototype.readFloatBE=function(t,s){return t=t>>>0,s||V(t,4,this.length),i.read(this,t,!1,23,4)},n.prototype.readDoubleLE=function(t,s){return t=t>>>0,s||V(t,8,this.length),i.read(this,t,!0,52,8)},n.prototype.readDoubleBE=function(t,s){return t=t>>>0,s||V(t,8,this.length),i.read(this,t,!1,52,8)};function D(_,t,s,p,B,G){if(!n.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>B||t<G)throw new RangeError('"value" argument is out of bounds');if(s+p>_.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(t,s,p,B){if(t=+t,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,t,s,p,G,0)}var H=1,re=0;for(this[s]=t&255;++re<p&&(H*=256);)this[s+re]=t/H&255;return s+p},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(t,s,p,B){if(t=+t,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,t,s,p,G,0)}var H=p-1,re=1;for(this[s+H]=t&255;--H>=0&&(re*=256);)this[s+H]=t/re&255;return s+p},n.prototype.writeUint8=n.prototype.writeUInt8=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,1,255,0),this[s]=t&255,s+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},n.prototype.writeIntLE=function(t,s,p,B){if(t=+t,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,t,s,p,G-1,-G)}var H=0,re=1,se=0;for(this[s]=t&255;++H<p&&(re*=256);)t<0&&se===0&&this[s+H-1]!==0&&(se=1),this[s+H]=(t/re>>0)-se&255;return s+p},n.prototype.writeIntBE=function(t,s,p,B){if(t=+t,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,t,s,p,G-1,-G)}var H=p-1,re=1,se=0;for(this[s+H]=t&255;--H>=0&&(re*=256);)t<0&&se===0&&this[s+H+1]!==0&&(se=1),this[s+H]=(t/re>>0)-se&255;return s+p},n.prototype.writeInt8=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},n.prototype.writeInt16LE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},n.prototype.writeInt16BE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},n.prototype.writeInt32LE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},n.prototype.writeInt32BE=function(t,s,p){return t=+t,s=s>>>0,p||D(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4};function $(_,t,s,p,B,G){if(s+p>_.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function Z(_,t,s,p,B){return t=+t,s=s>>>0,B||$(_,t,s,4),i.write(_,t,s,p,23,4),s+4}n.prototype.writeFloatLE=function(t,s,p){return Z(this,t,s,!0,p)},n.prototype.writeFloatBE=function(t,s,p){return Z(this,t,s,!1,p)};function te(_,t,s,p,B){return t=+t,s=s>>>0,B||$(_,t,s,8),i.write(_,t,s,p,52,8),s+8}n.prototype.writeDoubleLE=function(t,s,p){return te(this,t,s,!0,p)},n.prototype.writeDoubleBE=function(t,s,p){return te(this,t,s,!1,p)},n.prototype.copy=function(t,s,p,B){if(!n.isBuffer(t))throw new TypeError("argument should be a Buffer");if(p||(p=0),!B&&B!==0&&(B=this.length),s>=t.length&&(s=t.length),s||(s=0),B>0&&B<p&&(B=p),B===p||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("sourceEnd out of bounds");B>this.length&&(B=this.length),t.length-s<B-p&&(B=t.length-s+p);var G=B-p;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,p,B):Uint8Array.prototype.set.call(t,this.subarray(p,B),s),G},n.prototype.fill=function(t,s,p,B){if(typeof t=="string"){if(typeof s=="string"?(B=s,s=0,p=this.length):typeof p=="string"&&(B=p,p=this.length),B!==void 0&&typeof B!="string")throw new TypeError("encoding must be a string");if(typeof B=="string"&&!n.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(t.length===1){var G=t.charCodeAt(0);(B==="utf8"&&G<128||B==="latin1")&&(t=G)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<p)throw new RangeError("Out of range index");if(p<=s)return this;s=s>>>0,p=p===void 0?this.length:p>>>0,t||(t=0);var H;if(typeof t=="number")for(H=s;H<p;++H)this[H]=t;else{var re=n.isBuffer(t)?t:n.from(t,B),se=re.length;if(se===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(H=0;H<p-s;++H)this[H+s]=re[H%se]}return this};var K=/[^+/0-9A-Za-z-_]/g;function v(_){if(_=_.split("=")[0],_=_.trim().replace(K,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function w(_,t){t=t||1/0;for(var s,p=_.length,B=null,G=[],H=0;H<p;++H){if(s=_.charCodeAt(H),s>55295&&s<57344){if(!B){if(s>56319){(t-=3)>-1&&G.push(239,191,189);continue}else if(H+1===p){(t-=3)>-1&&G.push(239,191,189);continue}B=s;continue}if(s<56320){(t-=3)>-1&&G.push(239,191,189),B=s;continue}s=(B-55296<<10|s-56320)+65536}else B&&(t-=3)>-1&&G.push(239,191,189);if(B=null,s<128){if((t-=1)<0)break;G.push(s)}else if(s<2048){if((t-=2)<0)break;G.push(s>>6|192,s&63|128)}else if(s<65536){if((t-=3)<0)break;G.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((t-=4)<0)break;G.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return G}function j(_){for(var t=[],s=0;s<_.length;++s)t.push(_.charCodeAt(s)&255);return t}function U(_,t){for(var s,p,B,G=[],H=0;H<_.length&&!((t-=2)<0);++H)s=_.charCodeAt(H),p=s>>8,B=s%256,G.push(B),G.push(p);return G}function C(_){return e.toByteArray(v(_))}function L(_,t,s,p){for(var B=0;B<p&&!(B+s>=t.length||B>=_.length);++B)t[B+s]=_[B];return B}function J(_,t){return _ instanceof t||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===t.name}function d(_){return _!==_}var Y=function(){for(var _="0123456789abcdef",t=new Array(256),s=0;s<16;++s)for(var p=s*16,B=0;B<16;++B)t[p+B]=_[s]+_[B];return t}()}(fr)),fr}var dr={},pr={},mr,Na;function Nu(){return Na||(Na=1,mr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},i=Symbol("test"),a=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var c=42;e[i]=c;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var f=Object.getOwnPropertySymbols(e);if(f.length!==1||f[0]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,i);if(n.value!==c||n.enumerable!==!0)return!1}return!0}),mr}var wr,ka;function ir(){if(ka)return wr;ka=1;var r=Nu();return wr=function(){return r()&&!!Symbol.toStringTag},wr}var gr,Oa;function ku(){return Oa||(Oa=1,gr=Object),gr}var yr,Ca;function Nc(){return Ca||(Ca=1,yr=Error),yr}var vr,Da;function kc(){return Da||(Da=1,vr=EvalError),vr}var _r,La;function Oc(){return La||(La=1,_r=RangeError),_r}var br,Pa;function Cc(){return Pa||(Pa=1,br=ReferenceError),br}var Er,Fa;function Ou(){return Fa||(Fa=1,Er=SyntaxError),Er}var xr,Ba;function xt(){return Ba||(Ba=1,xr=TypeError),xr}var Tr,Ua;function Dc(){return Ua||(Ua=1,Tr=URIError),Tr}var Ar,Ma;function Lc(){return Ma||(Ma=1,Ar=Math.abs),Ar}var Sr,Ha;function Pc(){return Ha||(Ha=1,Sr=Math.floor),Sr}var Rr,ja;function Fc(){return ja||(ja=1,Rr=Math.max),Rr}var Ir,Wa;function Bc(){return Wa||(Wa=1,Ir=Math.min),Ir}var Nr,za;function Uc(){return za||(za=1,Nr=Math.pow),Nr}var kr,Ga;function Mc(){return Ga||(Ga=1,kr=Math.round),kr}var Or,Ka;function Hc(){return Ka||(Ka=1,Or=Number.isNaN||function(e){return e!==e}),Or}var Cr,qa;function jc(){if(qa)return Cr;qa=1;var r=Hc();return Cr=function(i){return r(i)||i===0?i:i<0?-1:1},Cr}var Dr,Va;function Wc(){return Va||(Va=1,Dr=Object.getOwnPropertyDescriptor),Dr}var Lr,$a;function st(){if($a)return Lr;$a=1;var r=Wc();if(r)try{r([],"length")}catch{r=null}return Lr=r,Lr}var Pr,Xa;function sr(){if(Xa)return Pr;Xa=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Pr=r,Pr}var Fr,Za;function zc(){if(Za)return Fr;Za=1;var r=typeof Symbol!="undefined"&&Symbol,e=Nu();return Fr=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Fr}var Br,Ya;function Cu(){return Ya||(Ya=1,Br=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Br}var Ur,Ja;function Du(){if(Ja)return Ur;Ja=1;var r=ku();return Ur=r.getPrototypeOf||null,Ur}var Mr,Qa;function Gc(){if(Qa)return Mr;Qa=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,i=Math.max,a="[object Function]",c=function(h,A){for(var T=[],S=0;S<h.length;S+=1)T[S]=h[S];for(var k=0;k<A.length;k+=1)T[k+h.length]=A[k];return T},l=function(h,A){for(var T=[],S=A,k=0;S<h.length;S+=1,k+=1)T[k]=h[S];return T},f=function(n,h){for(var A="",T=0;T<n.length;T+=1)A+=n[T],T+1<n.length&&(A+=h);return A};return Mr=function(h){var A=this;if(typeof A!="function"||e.apply(A)!==a)throw new TypeError(r+A);for(var T=l(arguments,1),S,k=function(){if(this instanceof S){var o=A.apply(this,c(T,arguments));return Object(o)===o?o:this}return A.apply(h,c(T,arguments))},x=i(0,A.length-T.length),I=[],b=0;b<x;b++)I[b]="$"+b;if(S=Function("binder","return function ("+f(I,",")+"){ return binder.apply(this,arguments); }")(k),A.prototype){var R=function(){};R.prototype=A.prototype,S.prototype=new R,R.prototype=null}return S},Mr}var Hr,eo;function Tt(){if(eo)return Hr;eo=1;var r=Gc();return Hr=Function.prototype.bind||r,Hr}var jr,to;function fa(){return to||(to=1,jr=Function.prototype.call),jr}var Wr,ro;function da(){return ro||(ro=1,Wr=Function.prototype.apply),Wr}var zr,no;function Kc(){return no||(no=1,zr=typeof Reflect!="undefined"&&Reflect&&Reflect.apply),zr}var Gr,io;function Lu(){if(io)return Gr;io=1;var r=Tt(),e=da(),i=fa(),a=Kc();return Gr=a||r.call(i,e),Gr}var Kr,so;function pa(){if(so)return Kr;so=1;var r=Tt(),e=xt(),i=fa(),a=Lu();return Kr=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return a(r,i,l)},Kr}var qr,ao;function qc(){if(ao)return qr;ao=1;var r=pa(),e=st(),i;try{i=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var a=!!i&&e&&e(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;return qr=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?function(n){return l(n==null?n:c(n))}:!1,qr}var Vr,oo;function Pu(){if(oo)return Vr;oo=1;var r=Cu(),e=Du(),i=qc();return Vr=r?function(c){return r(c)}:e?function(c){if(!c||typeof c!="object"&&typeof c!="function")throw new TypeError("getProto: not an object");return e(c)}:i?function(c){return i(c)}:null,Vr}var $r,uo;function Fu(){if(uo)return $r;uo=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,i=Tt();return $r=i.call(r,e),$r}var Xr,co;function Bu(){if(co)return Xr;co=1;var r,e=ku(),i=Nc(),a=kc(),c=Oc(),l=Cc(),f=Ou(),n=xt(),h=Dc(),A=Lc(),T=Pc(),S=Fc(),k=Bc(),x=Uc(),I=Mc(),b=jc(),R=Function,o=function(j){try{return R('"use strict"; return ('+j+").constructor;")()}catch{}},y=st(),m=sr(),u=function(){throw new n},E=y?function(){try{return arguments.callee,u}catch{try{return y(arguments,"callee").get}catch{return u}}}():u,P=zc()(),F=Pu(),W=Du(),N=Cu(),X=da(),ae=fa(),O={},M=typeof Uint8Array=="undefined"||!F?r:F(Uint8Array),g={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?r:ArrayBuffer,"%ArrayIteratorPrototype%":P&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics=="undefined"?r:Atomics,"%BigInt%":typeof BigInt=="undefined"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array=="undefined"?r:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?r:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?r:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array=="undefined"?r:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?r:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map=="undefined"?r:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!P||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?r:Promise,"%Proxy%":typeof Proxy=="undefined"?r:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":typeof Reflect=="undefined"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?r:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!P||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&F?F(""[Symbol.iterator]()):r,"%Symbol%":P?Symbol:r,"%SyntaxError%":f,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array=="undefined"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap=="undefined"?r:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?r:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?r:WeakSet,"%Function.prototype.call%":ae,"%Function.prototype.apply%":X,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":W,"%Math.abs%":A,"%Math.floor%":T,"%Math.max%":S,"%Math.min%":k,"%Math.pow%":x,"%Math.round%":I,"%Math.sign%":b,"%Reflect.getPrototypeOf%":N};if(F)try{null.error}catch(j){var q=F(F(j));g["%Error.prototype%"]=q}var ee=function j(U){var C;if(U==="%AsyncFunction%")C=o("async function () {}");else if(U==="%GeneratorFunction%")C=o("function* () {}");else if(U==="%AsyncGeneratorFunction%")C=o("async function* () {}");else if(U==="%AsyncGenerator%"){var L=j("%AsyncGeneratorFunction%");L&&(C=L.prototype)}else if(U==="%AsyncIteratorPrototype%"){var J=j("%AsyncGenerator%");J&&F&&(C=F(J.prototype))}return g[U]=C,C},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ne=Tt(),Q=Fu(),ue=ne.call(ae,Array.prototype.concat),V=ne.call(X,Array.prototype.splice),D=ne.call(ae,String.prototype.replace),$=ne.call(ae,String.prototype.slice),Z=ne.call(ae,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,v=function(U){var C=$(U,0,1),L=$(U,-1);if(C==="%"&&L!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&C!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var J=[];return D(U,te,function(d,Y,_,t){J[J.length]=_?D(t,K,"$1"):Y||d}),J},w=function(U,C){var L=U,J;if(Q(z,L)&&(J=z[L],L="%"+J[0]+"%"),Q(g,L)){var d=g[L];if(d===O&&(d=ee(L)),typeof d=="undefined"&&!C)throw new n("intrinsic "+U+" exists, but is not available. Please file an issue!");return{alias:J,name:L,value:d}}throw new f("intrinsic "+U+" does not exist!")};return Xr=function(U,C){if(typeof U!="string"||U.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new n('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,U)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=v(U),J=L.length>0?L[0]:"",d=w("%"+J+"%",C),Y=d.name,_=d.value,t=!1,s=d.alias;s&&(J=s[0],V(L,ue([0,1],s)));for(var p=1,B=!0;p<L.length;p+=1){var G=L[p],H=$(G,0,1),re=$(G,-1);if((H==='"'||H==="'"||H==="`"||re==='"'||re==="'"||re==="`")&&H!==re)throw new f("property names with quotes must have matching quotes");if((G==="constructor"||!B)&&(t=!0),J+="."+G,Y="%"+J+"%",Q(g,Y))_=g[Y];else if(_!=null){if(!(G in _)){if(!C)throw new n("base intrinsic for "+U+" exists, but the property is not available.");return}if(y&&p+1>=L.length){var se=y(_,G);B=!!se,B&&"get"in se&&!("originalValue"in se.get)?_=se.get:_=_[G]}else B=Q(_,G),_=_[G];B&&!t&&(g[Y]=_)}}return _},Xr}var Zr,lo;function At(){if(lo)return Zr;lo=1;var r=Bu(),e=pa(),i=e([r("%String.prototype.indexOf%")]);return Zr=function(c,l){var f=r(c,!!l);return typeof f=="function"&&i(c,".prototype.")>-1?e([f]):f},Zr}var Yr,ho;function Vc(){if(ho)return Yr;ho=1;var r=ir()(),e=At(),i=e("Object.prototype.toString"),a=function(n){return r&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:i(n)==="[object Arguments]"},c=function(n){return a(n)?!0:n!==null&&typeof n=="object"&&"length"in n&&typeof n.length=="number"&&n.length>=0&&i(n)!=="[object Array]"&&"callee"in n&&i(n.callee)==="[object Function]"},l=function(){return a(arguments)}();return a.isLegacyArguments=c,Yr=l?a:c,Yr}var Jr,fo;function $c(){if(fo)return Jr;fo=1;var r=At(),e=ir()(),i=Fu(),a=st(),c;if(e){var l=r("RegExp.prototype.exec"),f={},n=function(){throw f},h={toString:n,valueOf:n};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=n),c=function(k){if(!k||typeof k!="object")return!1;var x=a(k,"lastIndex"),I=x&&i(x,"value");if(!I)return!1;try{l(k,h)}catch(b){return b===f}}}else{var A=r("Object.prototype.toString"),T="[object RegExp]";c=function(k){return!k||typeof k!="object"&&typeof k!="function"?!1:A(k)===T}}return Jr=c,Jr}var Qr,po;function Xc(){if(po)return Qr;po=1;var r=At(),e=$c(),i=r("RegExp.prototype.exec"),a=xt();return Qr=function(l){if(!e(l))throw new a("`regex` must be a RegExp");return function(n){return i(l,n)!==null}},Qr}var en,mo;function Zc(){if(mo)return en;mo=1;var r=At(),e=Xc(),i=e(/^\s*(?:function)?\*/),a=ir()(),c=Pu(),l=r("Object.prototype.toString"),f=r("Function.prototype.toString"),n=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},h;return en=function(T){if(typeof T!="function")return!1;if(i(f(T)))return!0;if(!a){var S=l(T);return S==="[object GeneratorFunction]"}if(!c)return!1;if(typeof h=="undefined"){var k=n();h=k?c(k):!1}return c(T)===h},en}var tn,wo;function Yc(){if(wo)return tn;wo=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,i)}catch(y){y!==a&&(e=null)}else e=null;var c=/^\s*class\b/,l=function(m){try{var u=r.call(m);return c.test(u)}catch{return!1}},f=function(m){try{return l(m)?!1:(r.call(m),!0)}catch{return!1}},n=Object.prototype.toString,h="[object Object]",A="[object Function]",T="[object GeneratorFunction]",S="[object HTMLAllCollection]",k="[object HTML document.all class]",x="[object HTMLCollection]",I=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),R=function(){return!1};if(typeof document=="object"){var o=document.all;n.call(o)===n.call(document.all)&&(R=function(m){if((b||!m)&&(typeof m=="undefined"||typeof m=="object"))try{var u=n.call(m);return(u===S||u===k||u===x||u===h)&&m("")==null}catch{}return!1})}return tn=e?function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{e(m,null,i)}catch(u){if(u!==a)return!1}return!l(m)&&f(m)}:function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(I)return f(m);if(l(m))return!1;var u=n.call(m);return u!==A&&u!==T&&!/^\[object HTML/.test(u)?!1:f(m)},tn}var rn,go;function Jc(){if(go)return rn;go=1;var r=Yc(),e=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(h,A,T){for(var S=0,k=h.length;S<k;S++)i.call(h,S)&&(T==null?A(h[S],S,h):A.call(T,h[S],S,h))},c=function(h,A,T){for(var S=0,k=h.length;S<k;S++)T==null?A(h.charAt(S),S,h):A.call(T,h.charAt(S),S,h)},l=function(h,A,T){for(var S in h)i.call(h,S)&&(T==null?A(h[S],S,h):A.call(T,h[S],S,h))};function f(n){return e.call(n)==="[object Array]"}return rn=function(h,A,T){if(!r(A))throw new TypeError("iterator must be a function");var S;arguments.length>=3&&(S=T),f(h)?a(h,A,S):typeof h=="string"?c(h,A,S):l(h,A,S)},rn}var nn,yo;function Qc(){return yo||(yo=1,nn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),nn}var sn,vo;function el(){if(vo)return sn;vo=1;var r=Qc(),e=typeof globalThis=="undefined"?Te:globalThis;return sn=function(){for(var a=[],c=0;c<r.length;c++)typeof e[r[c]]=="function"&&(a[a.length]=r[c]);return a},sn}var an={exports:{}},on,_o;function tl(){if(_o)return on;_o=1;var r=sr(),e=Ou(),i=xt(),a=st();return on=function(l,f,n){if(!l||typeof l!="object"&&typeof l!="function")throw new i("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,A=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,k=!!a&&a(l,f);if(r)r(l,f,{configurable:T===null&&k?k.configurable:!T,enumerable:h===null&&k?k.enumerable:!h,value:n,writable:A===null&&k?k.writable:!A});else if(S||!h&&!A&&!T)l[f]=n;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},on}var un,bo;function rl(){if(bo)return un;bo=1;var r=sr(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},un=e,un}var cn,Eo;function nl(){if(Eo)return cn;Eo=1;var r=Bu(),e=tl(),i=rl()(),a=st(),c=xt(),l=r("%Math.floor%");return cn=function(n,h){if(typeof n!="function")throw new c("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||l(h)!==h)throw new c("`length` must be a positive 32-bit integer");var A=arguments.length>2&&!!arguments[2],T=!0,S=!0;if("length"in n&&a){var k=a(n,"length");k&&!k.configurable&&(T=!1),k&&!k.writable&&(S=!1)}return(T||S||!A)&&(i?e(n,"length",h,!0,!0):e(n,"length",h)),n},cn}var ln,xo;function il(){if(xo)return ln;xo=1;var r=Tt(),e=da(),i=Lu();return ln=function(){return i(r,e,arguments)},ln}var To;function sl(){return To||(To=1,function(r){var e=nl(),i=sr(),a=pa(),c=il();r.exports=function(f){var n=a(arguments),h=f.length-(arguments.length-1);return e(n,1+(h>0?h:0),!0)},i?i(r.exports,"apply",{value:c}):r.exports.apply=c}(an)),an.exports}var hn,Ao;function Uu(){if(Ao)return hn;Ao=1;var r=Jc(),e=el(),i=sl(),a=At(),c=st(),l=a("Object.prototype.toString"),f=ir()(),n=typeof globalThis=="undefined"?Te:globalThis,h=e(),A=a("String.prototype.slice"),T=Object.getPrototypeOf,S=a("Array.prototype.indexOf",!0)||function(R,o){for(var y=0;y<R.length;y+=1)if(R[y]===o)return y;return-1},k={__proto__:null};f&&c&&T?r(h,function(b){var R=new n[b];if(Symbol.toStringTag in R){var o=T(R),y=c(o,Symbol.toStringTag);if(!y){var m=T(o);y=c(m,Symbol.toStringTag)}k["$"+b]=i(y.get)}}):r(h,function(b){var R=new n[b],o=R.slice||R.set;o&&(k["$"+b]=i(o))});var x=function(R){var o=!1;return r(k,function(y,m){if(!o)try{"$"+y(R)===m&&(o=A(m,1))}catch{}}),o},I=function(R){var o=!1;return r(k,function(y,m){if(!o)try{y(R),o=A(m,1)}catch{}}),o};return hn=function(R){if(!R||typeof R!="object")return!1;if(!f){var o=A(l(R),8,-1);return S(h,o)>-1?o:o!=="Object"?!1:I(R)}return c?x(R):null},hn}var fn,So;function al(){if(So)return fn;So=1;var r=Uu();return fn=function(i){return!!r(i)},fn}var Ro;function ol(){return Ro||(Ro=1,function(r){var e=Vc(),i=Zc(),a=Uu(),c=al();function l(p){return p.call.bind(p)}var f=typeof BigInt!="undefined",n=typeof Symbol!="undefined",h=l(Object.prototype.toString),A=l(Number.prototype.valueOf),T=l(String.prototype.valueOf),S=l(Boolean.prototype.valueOf);if(f)var k=l(BigInt.prototype.valueOf);if(n)var x=l(Symbol.prototype.valueOf);function I(p,B){if(typeof p!="object")return!1;try{return B(p),!0}catch{return!1}}r.isArgumentsObject=e,r.isGeneratorFunction=i,r.isTypedArray=c;function b(p){return typeof Promise!="undefined"&&p instanceof Promise||p!==null&&typeof p=="object"&&typeof p.then=="function"&&typeof p.catch=="function"}r.isPromise=b;function R(p){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(p):c(p)||$(p)}r.isArrayBufferView=R;function o(p){return a(p)==="Uint8Array"}r.isUint8Array=o;function y(p){return a(p)==="Uint8ClampedArray"}r.isUint8ClampedArray=y;function m(p){return a(p)==="Uint16Array"}r.isUint16Array=m;function u(p){return a(p)==="Uint32Array"}r.isUint32Array=u;function E(p){return a(p)==="Int8Array"}r.isInt8Array=E;function P(p){return a(p)==="Int16Array"}r.isInt16Array=P;function F(p){return a(p)==="Int32Array"}r.isInt32Array=F;function W(p){return a(p)==="Float32Array"}r.isFloat32Array=W;function N(p){return a(p)==="Float64Array"}r.isFloat64Array=N;function X(p){return a(p)==="BigInt64Array"}r.isBigInt64Array=X;function ae(p){return a(p)==="BigUint64Array"}r.isBigUint64Array=ae;function O(p){return h(p)==="[object Map]"}O.working=typeof Map!="undefined"&&O(new Map);function M(p){return typeof Map=="undefined"?!1:O.working?O(p):p instanceof Map}r.isMap=M;function g(p){return h(p)==="[object Set]"}g.working=typeof Set!="undefined"&&g(new Set);function q(p){return typeof Set=="undefined"?!1:g.working?g(p):p instanceof Set}r.isSet=q;function ee(p){return h(p)==="[object WeakMap]"}ee.working=typeof WeakMap!="undefined"&&ee(new WeakMap);function z(p){return typeof WeakMap=="undefined"?!1:ee.working?ee(p):p instanceof WeakMap}r.isWeakMap=z;function ne(p){return h(p)==="[object WeakSet]"}ne.working=typeof WeakSet!="undefined"&&ne(new WeakSet);function Q(p){return ne(p)}r.isWeakSet=Q;function ue(p){return h(p)==="[object ArrayBuffer]"}ue.working=typeof ArrayBuffer!="undefined"&&ue(new ArrayBuffer);function V(p){return typeof ArrayBuffer=="undefined"?!1:ue.working?ue(p):p instanceof ArrayBuffer}r.isArrayBuffer=V;function D(p){return h(p)==="[object DataView]"}D.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&D(new DataView(new ArrayBuffer(1),0,1));function $(p){return typeof DataView=="undefined"?!1:D.working?D(p):p instanceof DataView}r.isDataView=$;var Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function te(p){return h(p)==="[object SharedArrayBuffer]"}function K(p){return typeof Z=="undefined"?!1:(typeof te.working=="undefined"&&(te.working=te(new Z)),te.working?te(p):p instanceof Z)}r.isSharedArrayBuffer=K;function v(p){return h(p)==="[object AsyncFunction]"}r.isAsyncFunction=v;function w(p){return h(p)==="[object Map Iterator]"}r.isMapIterator=w;function j(p){return h(p)==="[object Set Iterator]"}r.isSetIterator=j;function U(p){return h(p)==="[object Generator]"}r.isGeneratorObject=U;function C(p){return h(p)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=C;function L(p){return I(p,A)}r.isNumberObject=L;function J(p){return I(p,T)}r.isStringObject=J;function d(p){return I(p,S)}r.isBooleanObject=d;function Y(p){return f&&I(p,k)}r.isBigIntObject=Y;function _(p){return n&&I(p,x)}r.isSymbolObject=_;function t(p){return L(p)||J(p)||d(p)||Y(p)||_(p)}r.isBoxedPrimitive=t;function s(p){return typeof Uint8Array!="undefined"&&(V(p)||K(p))}r.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(p){Object.defineProperty(r,p,{enumerable:!1,value:function(){throw new Error(p+" is not supported in userland")}})})}(pr)),pr}var dn,Io;function ul(){return Io||(Io=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var No;function Mu(){return No||(No=1,function(r){var e=Object.getOwnPropertyDescriptors||function($){for(var Z=Object.keys($),te={},K=0;K<Z.length;K++)te[Z[K]]=Object.getOwnPropertyDescriptor($,Z[K]);return te},i=/%[sdj%]/g;r.format=function(D){if(!E(D)){for(var $=[],Z=0;Z<arguments.length;Z++)$.push(f(arguments[Z]));return $.join(" ")}for(var Z=1,te=arguments,K=te.length,v=String(D).replace(i,function(j){if(j==="%%")return"%";if(Z>=K)return j;switch(j){case"%s":return String(te[Z++]);case"%d":return Number(te[Z++]);case"%j":try{return JSON.stringify(te[Z++])}catch{return"[Circular]"}default:return j}}),w=te[Z];Z<K;w=te[++Z])y(w)||!N(w)?v+=" "+w:v+=" "+f(w);return v},r.deprecate=function(D,$){if(typeof pe!="undefined"&&pe.noDeprecation===!0)return D;if(typeof pe=="undefined")return function(){return r.deprecate(D,$).apply(this,arguments)};var Z=!1;function te(){if(!Z){if(pe.throwDeprecation)throw new Error($);pe.traceDeprecation?console.trace($):console.error($),Z=!0}return D.apply(this,arguments)}return te};var a={},c=/^$/;if(pe.env.NODE_DEBUG){var l=pe.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+l+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!a[D])if(c.test(D)){var $=pe.pid;a[D]=function(){var Z=r.format.apply(r,arguments);console.error("%s %d: %s",D,$,Z)}}else a[D]=function(){};return a[D]};function f(D,$){var Z={seen:[],stylize:h};return arguments.length>=3&&(Z.depth=arguments[2]),arguments.length>=4&&(Z.colors=arguments[3]),o($)?Z.showHidden=$:$&&r._extend(Z,$),F(Z.showHidden)&&(Z.showHidden=!1),F(Z.depth)&&(Z.depth=2),F(Z.colors)&&(Z.colors=!1),F(Z.customInspect)&&(Z.customInspect=!0),Z.colors&&(Z.stylize=n),T(Z,D,Z.depth)}r.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(D,$){var Z=f.styles[$];return Z?"\x1B["+f.colors[Z][0]+"m"+D+"\x1B["+f.colors[Z][1]+"m":D}function h(D,$){return D}function A(D){var $={};return D.forEach(function(Z,te){$[Z]=!0}),$}function T(D,$,Z){if(D.customInspect&&$&&O($.inspect)&&$.inspect!==r.inspect&&!($.constructor&&$.constructor.prototype===$)){var te=$.inspect(Z,D);return E(te)||(te=T(D,te,Z)),te}var K=S(D,$);if(K)return K;var v=Object.keys($),w=A(v);if(D.showHidden&&(v=Object.getOwnPropertyNames($)),ae($)&&(v.indexOf("message")>=0||v.indexOf("description")>=0))return k($);if(v.length===0){if(O($)){var j=$.name?": "+$.name:"";return D.stylize("[Function"+j+"]","special")}if(W($))return D.stylize(RegExp.prototype.toString.call($),"regexp");if(X($))return D.stylize(Date.prototype.toString.call($),"date");if(ae($))return k($)}var U="",C=!1,L=["{","}"];if(R($)&&(C=!0,L=["[","]"]),O($)){var J=$.name?": "+$.name:"";U=" [Function"+J+"]"}if(W($)&&(U=" "+RegExp.prototype.toString.call($)),X($)&&(U=" "+Date.prototype.toUTCString.call($)),ae($)&&(U=" "+k($)),v.length===0&&(!C||$.length==0))return L[0]+U+L[1];if(Z<0)return W($)?D.stylize(RegExp.prototype.toString.call($),"regexp"):D.stylize("[Object]","special");D.seen.push($);var d;return C?d=x(D,$,Z,w,v):d=v.map(function(Y){return I(D,$,Z,w,Y,C)}),D.seen.pop(),b(d,U,L)}function S(D,$){if(F($))return D.stylize("undefined","undefined");if(E($)){var Z="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Z,"string")}if(u($))return D.stylize(""+$,"number");if(o($))return D.stylize(""+$,"boolean");if(y($))return D.stylize("null","null")}function k(D){return"["+Error.prototype.toString.call(D)+"]"}function x(D,$,Z,te,K){for(var v=[],w=0,j=$.length;w<j;++w)ne($,String(w))?v.push(I(D,$,Z,te,String(w),!0)):v.push("");return K.forEach(function(U){U.match(/^\d+$/)||v.push(I(D,$,Z,te,U,!0))}),v}function I(D,$,Z,te,K,v){var w,j,U;if(U=Object.getOwnPropertyDescriptor($,K)||{value:$[K]},U.get?U.set?j=D.stylize("[Getter/Setter]","special"):j=D.stylize("[Getter]","special"):U.set&&(j=D.stylize("[Setter]","special")),ne(te,K)||(w="["+K+"]"),j||(D.seen.indexOf(U.value)<0?(y(Z)?j=T(D,U.value,null):j=T(D,U.value,Z-1),j.indexOf(`
2
- `)>-1&&(v?j=j.split(`
3
- `).map(function(C){return" "+C}).join(`
4
- `).slice(2):j=`
5
- `+j.split(`
6
- `).map(function(C){return" "+C}).join(`
7
- `))):j=D.stylize("[Circular]","special")),F(w)){if(v&&K.match(/^\d+$/))return j;w=JSON.stringify(""+K),w.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(w=w.slice(1,-1),w=D.stylize(w,"name")):(w=w.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),w=D.stylize(w,"string"))}return w+": "+j}function b(D,$,Z){var te=D.reduce(function(K,v){return v.indexOf(`
8
- `)>=0,K+v.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?Z[0]+($===""?"":$+`
9
- `)+" "+D.join(`,
10
- `)+" "+Z[1]:Z[0]+$+" "+D.join(", ")+" "+Z[1]}r.types=ol();function R(D){return Array.isArray(D)}r.isArray=R;function o(D){return typeof D=="boolean"}r.isBoolean=o;function y(D){return D===null}r.isNull=y;function m(D){return D==null}r.isNullOrUndefined=m;function u(D){return typeof D=="number"}r.isNumber=u;function E(D){return typeof D=="string"}r.isString=E;function P(D){return typeof D=="symbol"}r.isSymbol=P;function F(D){return D===void 0}r.isUndefined=F;function W(D){return N(D)&&g(D)==="[object RegExp]"}r.isRegExp=W,r.types.isRegExp=W;function N(D){return typeof D=="object"&&D!==null}r.isObject=N;function X(D){return N(D)&&g(D)==="[object Date]"}r.isDate=X,r.types.isDate=X;function ae(D){return N(D)&&(g(D)==="[object Error]"||D instanceof Error)}r.isError=ae,r.types.isNativeError=ae;function O(D){return typeof D=="function"}r.isFunction=O;function M(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}r.isPrimitive=M,r.isBuffer=ul();function g(D){return Object.prototype.toString.call(D)}function q(D){return D<10?"0"+D.toString(10):D.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var D=new Date,$=[q(D.getHours()),q(D.getMinutes()),q(D.getSeconds())].join(":");return[D.getDate(),ee[D.getMonth()],$].join(" ")}r.log=function(){console.log("%s - %s",z(),r.format.apply(r,arguments))},r.inherits=je(),r._extend=function(D,$){if(!$||!N($))return D;for(var Z=Object.keys($),te=Z.length;te--;)D[Z[te]]=$[Z[te]];return D};function ne(D,$){return Object.prototype.hasOwnProperty.call(D,$)}var Q=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&$[Q]){var Z=$[Q];if(typeof Z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Z,Q,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var te,K,v=new Promise(function(U,C){te=U,K=C}),w=[],j=0;j<arguments.length;j++)w.push(arguments[j]);w.push(function(U,C){U?K(U):te(C)});try{$.apply(this,w)}catch(U){K(U)}return v}return Object.setPrototypeOf(Z,Object.getPrototypeOf($)),Q&&Object.defineProperty(Z,Q,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,e($))},r.promisify.custom=Q;function ue(D,$){if(!D){var Z=new Error("Promise was rejected with a falsy value");Z.reason=D,D=Z}return $(D)}function V(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function $(){for(var Z=[],te=0;te<arguments.length;te++)Z.push(arguments[te]);var K=Z.pop();if(typeof K!="function")throw new TypeError("The last argument must be of type Function");var v=this,w=function(){return K.apply(v,arguments)};D.apply(this,Z).then(function(j){pe.nextTick(w.bind(null,null,j))},function(j){pe.nextTick(ue.bind(null,j,w))})}return Object.setPrototypeOf($,Object.getPrototypeOf(D)),Object.defineProperties($,e(D)),$}r.callbackify=V}(dr)),dr}var pn,ko;function cl(){if(ko)return pn;ko=1;function r(I,b){var R=Object.keys(I);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(I);b&&(o=o.filter(function(y){return Object.getOwnPropertyDescriptor(I,y).enumerable})),R.push.apply(R,o)}return R}function e(I){for(var b=1;b<arguments.length;b++){var R=arguments[b]!=null?arguments[b]:{};b%2?r(Object(R),!0).forEach(function(o){i(I,o,R[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):r(Object(R)).forEach(function(o){Object.defineProperty(I,o,Object.getOwnPropertyDescriptor(R,o))})}return I}function i(I,b,R){return b=f(b),b in I?Object.defineProperty(I,b,{value:R,enumerable:!0,configurable:!0,writable:!0}):I[b]=R,I}function a(I,b){if(!(I instanceof b))throw new TypeError("Cannot call a class as a function")}function c(I,b){for(var R=0;R<b.length;R++){var o=b[R];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(I,f(o.key),o)}}function l(I,b,R){return b&&c(I.prototype,b),Object.defineProperty(I,"prototype",{writable:!1}),I}function f(I){var b=n(I,"string");return typeof b=="symbol"?b:String(b)}function n(I,b){if(typeof I!="object"||I===null)return I;var R=I[Symbol.toPrimitive];if(R!==void 0){var o=R.call(I,b);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}var h=nr(),A=h.Buffer,T=Mu(),S=T.inspect,k=S&&S.custom||"inspect";function x(I,b,R){A.prototype.copy.call(I,b,R)}return pn=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return l(I,[{key:"push",value:function(R){var o={data:R,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}},{key:"unshift",value:function(R){var o={data:R,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}},{key:"shift",value:function(){if(this.length!==0){var R=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,R}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(R){if(this.length===0)return"";for(var o=this.head,y=""+o.data;o=o.next;)y+=R+o.data;return y}},{key:"concat",value:function(R){if(this.length===0)return A.alloc(0);for(var o=A.allocUnsafe(R>>>0),y=this.head,m=0;y;)x(y.data,o,m),m+=y.data.length,y=y.next;return o}},{key:"consume",value:function(R,o){var y;return R<this.head.data.length?(y=this.head.data.slice(0,R),this.head.data=this.head.data.slice(R)):R===this.head.data.length?y=this.shift():y=o?this._getString(R):this._getBuffer(R),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(R){var o=this.head,y=1,m=o.data;for(R-=m.length;o=o.next;){var u=o.data,E=R>u.length?u.length:R;if(E===u.length?m+=u:m+=u.slice(0,R),R-=E,R===0){E===u.length?(++y,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=u.slice(E));break}++y}return this.length-=y,m}},{key:"_getBuffer",value:function(R){var o=A.allocUnsafe(R),y=this.head,m=1;for(y.data.copy(o),R-=y.data.length;y=y.next;){var u=y.data,E=R>u.length?u.length:R;if(u.copy(o,o.length-R,0,E),R-=E,R===0){E===u.length?(++m,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=u.slice(E));break}++m}return this.length-=m,o}},{key:k,value:function(R,o){return S(this,e(e({},o),{},{depth:0,customInspect:!1}))}}]),I}(),pn}var mn,Oo;function Hu(){if(Oo)return mn;Oo=1;function r(f,n){var h=this,A=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return A||T?(n?n(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pe.nextTick(c,this,f)):pe.nextTick(c,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(S){!n&&S?h._writableState?h._writableState.errorEmitted?pe.nextTick(i,h):(h._writableState.errorEmitted=!0,pe.nextTick(e,h,S)):pe.nextTick(e,h,S):n?(pe.nextTick(i,h),n(S)):pe.nextTick(i,h)}),this)}function e(f,n){c(f,n),i(f)}function i(f){f._writableState&&!f._writableState.emitClose||f._readableState&&!f._readableState.emitClose||f.emit("close")}function a(){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)}function c(f,n){f.emit("error",n)}function l(f,n){var h=f._readableState,A=f._writableState;h&&h.autoDestroy||A&&A.autoDestroy?f.destroy(n):f.emit("error",n)}return mn={destroy:r,undestroy:a,errorOrDestroy:l},mn}var wn={},Co;function at(){if(Co)return wn;Co=1;function r(n,h){n.prototype=Object.create(h.prototype),n.prototype.constructor=n,n.__proto__=h}var e={};function i(n,h,A){A||(A=Error);function T(k,x,I){return typeof h=="string"?h:h(k,x,I)}var S=function(k){r(x,k);function x(I,b,R){return k.call(this,T(I,b,R))||this}return x}(A);S.prototype.name=A.name,S.prototype.code=n,e[n]=S}function a(n,h){if(Array.isArray(n)){var A=n.length;return n=n.map(function(T){return String(T)}),A>2?"one of ".concat(h," ").concat(n.slice(0,A-1).join(", "),", or ")+n[A-1]:A===2?"one of ".concat(h," ").concat(n[0]," or ").concat(n[1]):"of ".concat(h," ").concat(n[0])}else return"of ".concat(h," ").concat(String(n))}function c(n,h,A){return n.substr(0,h.length)===h}function l(n,h,A){return(A===void 0||A>n.length)&&(A=n.length),n.substring(A-h.length,A)===h}function f(n,h,A){return typeof A!="number"&&(A=0),A+h.length>n.length?!1:n.indexOf(h,A)!==-1}return i("ERR_INVALID_OPT_VALUE",function(n,h){return'The value "'+h+'" is invalid for option "'+n+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(n,h,A){var T;typeof h=="string"&&c(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var S;if(l(n," argument"))S="The ".concat(n," ").concat(T," ").concat(a(h,"type"));else{var k=f(n,".")?"property":"argument";S='The "'.concat(n,'" ').concat(k," ").concat(T," ").concat(a(h,"type"))}return S+=". Received type ".concat(typeof A),S},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),wn.codes=e,wn}var gn,Do;function ju(){if(Do)return gn;Do=1;var r=at().codes.ERR_INVALID_OPT_VALUE;function e(a,c,l){return a.highWaterMark!=null?a.highWaterMark:c?a[l]:null}function i(a,c,l,f){var n=e(c,f,l);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var h=f?l:"highWaterMark";throw new r(h,n)}return Math.floor(n)}return a.objectMode?16:16*1024}return gn={getHighWaterMark:i},gn}var yn,Lo;function ll(){if(Lo)return yn;Lo=1,yn=r;function r(i,a){if(e("noDeprecation"))return i;var c=!1;function l(){if(!c){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),c=!0}return i.apply(this,arguments)}return l}function e(i){try{if(!Te.localStorage)return!1}catch{return!1}var a=Te.localStorage[i];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Po;function Wu(){if(Po)return vn;Po=1,vn=W;function r(K){var v=this;this.next=null,this.entry=null,this.finish=function(){te(v,K)}}var e;W.WritableState=P;var i={deprecate:ll()},a=Iu(),c=nr().Buffer,l=(typeof Te!="undefined"?Te:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function f(K){return c.from(K)}function n(K){return c.isBuffer(K)||K instanceof l}var h=Hu(),A=ju(),T=A.getHighWaterMark,S=at().codes,k=S.ERR_INVALID_ARG_TYPE,x=S.ERR_METHOD_NOT_IMPLEMENTED,I=S.ERR_MULTIPLE_CALLBACK,b=S.ERR_STREAM_CANNOT_PIPE,R=S.ERR_STREAM_DESTROYED,o=S.ERR_STREAM_NULL_VALUES,y=S.ERR_STREAM_WRITE_AFTER_END,m=S.ERR_UNKNOWN_ENCODING,u=h.errorOrDestroy;je()(W,a);function E(){}function P(K,v,w){e=e||tt(),K=K||{},typeof w!="boolean"&&(w=v instanceof e),this.objectMode=!!K.objectMode,w&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=T(this,K,"writableHighWaterMark",w),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=K.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ee(v,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}P.prototype.getBuffer=function(){for(var v=this.bufferedRequest,w=[];v;)w.push(v),v=v.next;return w},function(){try{Object.defineProperty(P.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(v){return F.call(this,v)?!0:this!==W?!1:v&&v._writableState instanceof P}})):F=function(v){return v instanceof this};function W(K){e=e||tt();var v=this instanceof e;if(!v&&!F.call(W,this))return new W(K);this._writableState=new P(K,this,v),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),a.call(this)}W.prototype.pipe=function(){u(this,new b)};function N(K,v){var w=new y;u(K,w),pe.nextTick(v,w)}function X(K,v,w,j){var U;return w===null?U=new o:typeof w!="string"&&!v.objectMode&&(U=new k("chunk",["string","Buffer"],w)),U?(u(K,U),pe.nextTick(j,U),!1):!0}W.prototype.write=function(K,v,w){var j=this._writableState,U=!1,C=!j.objectMode&&n(K);return C&&!c.isBuffer(K)&&(K=f(K)),typeof v=="function"&&(w=v,v=null),C?v="buffer":v||(v=j.defaultEncoding),typeof w!="function"&&(w=E),j.ending?N(this,w):(C||X(this,j,K,w))&&(j.pendingcb++,U=O(this,j,C,K,v,w)),U},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&Q(this,K))},W.prototype.setDefaultEncoding=function(v){if(typeof v=="string"&&(v=v.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((v+"").toLowerCase())>-1))throw new m(v);return this._writableState.defaultEncoding=v,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ae(K,v,w){return!K.objectMode&&K.decodeStrings!==!1&&typeof v=="string"&&(v=c.from(v,w)),v}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O(K,v,w,j,U,C){if(!w){var L=ae(v,j,U);j!==L&&(w=!0,U="buffer",j=L)}var J=v.objectMode?1:j.length;v.length+=J;var d=v.length<v.highWaterMark;if(d||(v.needDrain=!0),v.writing||v.corked){var Y=v.lastBufferedRequest;v.lastBufferedRequest={chunk:j,encoding:U,isBuf:w,callback:C,next:null},Y?Y.next=v.lastBufferedRequest:v.bufferedRequest=v.lastBufferedRequest,v.bufferedRequestCount+=1}else M(K,v,!1,J,j,U,C);return d}function M(K,v,w,j,U,C,L){v.writelen=j,v.writecb=L,v.writing=!0,v.sync=!0,v.destroyed?v.onwrite(new R("write")):w?K._writev(U,v.onwrite):K._write(U,C,v.onwrite),v.sync=!1}function g(K,v,w,j,U){--v.pendingcb,w?(pe.nextTick(U,j),pe.nextTick($,K,v),K._writableState.errorEmitted=!0,u(K,j)):(U(j),K._writableState.errorEmitted=!0,u(K,j),$(K,v))}function q(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}function ee(K,v){var w=K._writableState,j=w.sync,U=w.writecb;if(typeof U!="function")throw new I;if(q(w),v)g(K,w,j,v,U);else{var C=ue(w)||K.destroyed;!C&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&Q(K,w),j?pe.nextTick(z,K,w,C,U):z(K,w,C,U)}}function z(K,v,w,j){w||ne(K,v),v.pendingcb--,j(),$(K,v)}function ne(K,v){v.length===0&&v.needDrain&&(v.needDrain=!1,K.emit("drain"))}function Q(K,v){v.bufferProcessing=!0;var w=v.bufferedRequest;if(K._writev&&w&&w.next){var j=v.bufferedRequestCount,U=new Array(j),C=v.corkedRequestsFree;C.entry=w;for(var L=0,J=!0;w;)U[L]=w,w.isBuf||(J=!1),w=w.next,L+=1;U.allBuffers=J,M(K,v,!0,v.length,U,"",C.finish),v.pendingcb++,v.lastBufferedRequest=null,C.next?(v.corkedRequestsFree=C.next,C.next=null):v.corkedRequestsFree=new r(v),v.bufferedRequestCount=0}else{for(;w;){var d=w.chunk,Y=w.encoding,_=w.callback,t=v.objectMode?1:d.length;if(M(K,v,!1,t,d,Y,_),w=w.next,v.bufferedRequestCount--,v.writing)break}w===null&&(v.lastBufferedRequest=null)}v.bufferedRequest=w,v.bufferProcessing=!1}W.prototype._write=function(K,v,w){w(new x("_write()"))},W.prototype._writev=null,W.prototype.end=function(K,v,w){var j=this._writableState;return typeof K=="function"?(w=K,K=null,v=null):typeof v=="function"&&(w=v,v=null),K!=null&&this.write(K,v),j.corked&&(j.corked=1,this.uncork()),j.ending||Z(this,j,w),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ue(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,v){K._final(function(w){v.pendingcb--,w&&u(K,w),v.prefinished=!0,K.emit("prefinish"),$(K,v)})}function D(K,v){!v.prefinished&&!v.finalCalled&&(typeof K._final=="function"&&!v.destroyed?(v.pendingcb++,v.finalCalled=!0,pe.nextTick(V,K,v)):(v.prefinished=!0,K.emit("prefinish")))}function $(K,v){var w=ue(v);if(w&&(D(K,v),v.pendingcb===0&&(v.finished=!0,K.emit("finish"),v.autoDestroy))){var j=K._readableState;(!j||j.autoDestroy&&j.endEmitted)&&K.destroy()}return w}function Z(K,v,w){v.ending=!0,$(K,v),w&&(v.finished?pe.nextTick(w):K.once("finish",w)),v.ended=!0,K.writable=!1}function te(K,v,w){var j=K.entry;for(K.entry=null;j;){var U=j.callback;v.pendingcb--,U(w),j=j.next}v.corkedRequestsFree.next=K}return Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(v){this._writableState&&(this._writableState.destroyed=v)}}),W.prototype.destroy=h.destroy,W.prototype._undestroy=h.undestroy,W.prototype._destroy=function(K,v){v(K)},vn}var _n,Fo;function tt(){if(Fo)return _n;Fo=1;var r=Object.keys||function(A){var T=[];for(var S in A)T.push(S);return T};_n=f;var e=zu(),i=Wu();je()(f,e);for(var a=r(i.prototype),c=0;c<a.length;c++){var l=a[c];f.prototype[l]||(f.prototype[l]=i.prototype[l])}function f(A){if(!(this instanceof f))return new f(A);e.call(this,A),i.call(this,A),this.allowHalfOpen=!0,A&&(A.readable===!1&&(this.readable=!1),A.writable===!1&&(this.writable=!1),A.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n)))}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function n(){this._writableState.ended||pe.nextTick(h,this)}function h(A){A.end()}return Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}}),_n}var bn={},Lt={exports:{}};var Bo;function hl(){return Bo||(Bo=1,function(r,e){var i=nr(),a=i.Buffer;function c(f,n){for(var h in f)n[h]=f[h]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(c(i,e),e.Buffer=l);function l(f,n,h){return a(f,n,h)}l.prototype=Object.create(a.prototype),c(a,l),l.from=function(f,n,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return a(f,n,h)},l.alloc=function(f,n,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var A=a(f);return n!==void 0?typeof h=="string"?A.fill(n,h):A.fill(n):A.fill(0),A},l.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return a(f)},l.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(f)}}(Lt,Lt.exports)),Lt.exports}var Uo;function ti(){if(Uo)return bn;Uo=1;var r=hl().Buffer,e=r.isEncoding||function(o){switch(o=""+o,o&&o.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 i(o){if(!o)return"utf8";for(var y;;)switch(o){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 o;default:if(y)return;o=(""+o).toLowerCase(),y=!0}}function a(o){var y=i(o);if(typeof y!="string"&&(r.isEncoding===e||!e(o)))throw new Error("Unknown encoding: "+o);return y||o}bn.StringDecoder=c;function c(o){this.encoding=a(o);var y;switch(this.encoding){case"utf16le":this.text=S,this.end=k,y=4;break;case"utf8":this.fillLast=h,y=4;break;case"base64":this.text=x,this.end=I,y=3;break;default:this.write=b,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}c.prototype.write=function(o){if(o.length===0)return"";var y,m;if(this.lastNeed){if(y=this.fillLast(o),y===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<o.length?y?y+this.text(o,m):this.text(o,m):y||""},c.prototype.end=T,c.prototype.text=A,c.prototype.fillLast=function(o){if(this.lastNeed<=o.length)return o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,o.length),this.lastNeed-=o.length};function l(o){return o<=127?0:o>>5===6?2:o>>4===14?3:o>>3===30?4:o>>6===2?-1:-2}function f(o,y,m){var u=y.length-1;if(u<m)return 0;var E=l(y[u]);return E>=0?(E>0&&(o.lastNeed=E-1),E):--u<m||E===-2?0:(E=l(y[u]),E>=0?(E>0&&(o.lastNeed=E-2),E):--u<m||E===-2?0:(E=l(y[u]),E>=0?(E>0&&(E===2?E=0:o.lastNeed=E-3),E):0))}function n(o,y,m){if((y[0]&192)!==128)return o.lastNeed=0,"\uFFFD";if(o.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return o.lastNeed=1,"\uFFFD";if(o.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return o.lastNeed=2,"\uFFFD"}}function h(o){var y=this.lastTotal-this.lastNeed,m=n(this,o);if(m!==void 0)return m;if(this.lastNeed<=o.length)return o.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,y,0,o.length),this.lastNeed-=o.length}function A(o,y){var m=f(this,o,y);if(!this.lastNeed)return o.toString("utf8",y);this.lastTotal=m;var u=o.length-(m-this.lastNeed);return o.copy(this.lastChar,0,u),o.toString("utf8",y,u)}function T(o){var y=o&&o.length?this.write(o):"";return this.lastNeed?y+"\uFFFD":y}function S(o,y){if((o.length-y)%2===0){var m=o.toString("utf16le",y);if(m){var u=m.charCodeAt(m.length-1);if(u>=55296&&u<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",y,o.length-1)}function k(o){var y=o&&o.length?this.write(o):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,m)}return y}function x(o,y){var m=(o.length-y)%3;return m===0?o.toString("base64",y):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",y,o.length-m))}function I(o){var y=o&&o.length?this.write(o):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function b(o){return o.toString(this.encoding)}function R(o){return o&&o.length?this.write(o):""}return bn}var En,Mo;function ma(){if(Mo)return En;Mo=1;var r=at().codes.ERR_STREAM_PREMATURE_CLOSE;function e(l){var f=!1;return function(){if(!f){f=!0;for(var n=arguments.length,h=new Array(n),A=0;A<n;A++)h[A]=arguments[A];l.apply(this,h)}}}function i(){}function a(l){return l.setHeader&&typeof l.abort=="function"}function c(l,f,n){if(typeof f=="function")return c(l,null,f);f||(f={}),n=e(n||i);var h=f.readable||f.readable!==!1&&l.readable,A=f.writable||f.writable!==!1&&l.writable,T=function(){l.writable||k()},S=l._writableState&&l._writableState.finished,k=function(){A=!1,S=!0,h||n.call(l)},x=l._readableState&&l._readableState.endEmitted,I=function(){h=!1,x=!0,A||n.call(l)},b=function(m){n.call(l,m)},R=function(){var m;if(h&&!x)return(!l._readableState||!l._readableState.ended)&&(m=new r),n.call(l,m);if(A&&!S)return(!l._writableState||!l._writableState.ended)&&(m=new r),n.call(l,m)},o=function(){l.req.on("finish",k)};return a(l)?(l.on("complete",k),l.on("abort",R),l.req?o():l.on("request",o)):A&&!l._writableState&&(l.on("end",T),l.on("close",T)),l.on("end",I),l.on("finish",k),f.error!==!1&&l.on("error",b),l.on("close",R),function(){l.removeListener("complete",k),l.removeListener("abort",R),l.removeListener("request",o),l.req&&l.req.removeListener("finish",k),l.removeListener("end",T),l.removeListener("close",T),l.removeListener("finish",k),l.removeListener("end",I),l.removeListener("error",b),l.removeListener("close",R)}}return En=c,En}var xn,Ho;function fl(){if(Ho)return xn;Ho=1;var r;function e(m,u,E){return u=i(u),u in m?Object.defineProperty(m,u,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[u]=E,m}function i(m){var u=a(m,"string");return typeof u=="symbol"?u:String(u)}function a(m,u){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var P=E.call(m,u);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(m)}var c=ma(),l=Symbol("lastResolve"),f=Symbol("lastReject"),n=Symbol("error"),h=Symbol("ended"),A=Symbol("lastPromise"),T=Symbol("handlePromise"),S=Symbol("stream");function k(m,u){return{value:m,done:u}}function x(m){var u=m[l];if(u!==null){var E=m[S].read();E!==null&&(m[A]=null,m[l]=null,m[f]=null,u(k(E,!1)))}}function I(m){pe.nextTick(x,m)}function b(m,u){return function(E,P){m.then(function(){if(u[h]){E(k(void 0,!0));return}u[T](E,P)},P)}}var R=Object.getPrototypeOf(function(){}),o=Object.setPrototypeOf((r={get stream(){return this[S]},next:function(){var u=this,E=this[n];if(E!==null)return Promise.reject(E);if(this[h])return Promise.resolve(k(void 0,!0));if(this[S].destroyed)return new Promise(function(N,X){pe.nextTick(function(){u[n]?X(u[n]):N(k(void 0,!0))})});var P=this[A],F;if(P)F=new Promise(b(P,this));else{var W=this[S].read();if(W!==null)return Promise.resolve(k(W,!1));F=new Promise(this[T])}return this[A]=F,F}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var u=this;return new Promise(function(E,P){u[S].destroy(null,function(F){if(F){P(F);return}E(k(void 0,!0))})})}),r),R),y=function(u){var E,P=Object.create(o,(E={},e(E,S,{value:u,writable:!0}),e(E,l,{value:null,writable:!0}),e(E,f,{value:null,writable:!0}),e(E,n,{value:null,writable:!0}),e(E,h,{value:u._readableState.endEmitted,writable:!0}),e(E,T,{value:function(W,N){var X=P[S].read();X?(P[A]=null,P[l]=null,P[f]=null,W(k(X,!1))):(P[l]=W,P[f]=N)},writable:!0}),E));return P[A]=null,c(u,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var W=P[f];W!==null&&(P[A]=null,P[l]=null,P[f]=null,W(F)),P[n]=F;return}var N=P[l];N!==null&&(P[A]=null,P[l]=null,P[f]=null,N(k(void 0,!0))),P[h]=!0}),u.on("readable",I.bind(null,P)),P};return xn=y,xn}var Tn,jo;function dl(){return jo||(jo=1,Tn=function(){throw new Error("Readable.from is not available in the browser")}),Tn}var An,Wo;function zu(){if(Wo)return An;Wo=1,An=N;var r;N.ReadableState=W,ha().EventEmitter;var e=function(L,J){return L.listeners(J).length},i=Iu(),a=nr().Buffer,c=(typeof Te!="undefined"?Te:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function l(C){return a.from(C)}function f(C){return a.isBuffer(C)||C instanceof c}var n=Mu(),h;n&&n.debuglog?h=n.debuglog("stream"):h=function(){};var A=cl(),T=Hu(),S=ju(),k=S.getHighWaterMark,x=at().codes,I=x.ERR_INVALID_ARG_TYPE,b=x.ERR_STREAM_PUSH_AFTER_EOF,R=x.ERR_METHOD_NOT_IMPLEMENTED,o=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,m,u;je()(N,i);var E=T.errorOrDestroy,P=["error","close","destroy","pause","resume"];function F(C,L,J){if(typeof C.prependListener=="function")return C.prependListener(L,J);!C._events||!C._events[L]?C.on(L,J):Array.isArray(C._events[L])?C._events[L].unshift(J):C._events[L]=[J,C._events[L]]}function W(C,L,J){r=r||tt(),C=C||{},typeof J!="boolean"&&(J=L instanceof r),this.objectMode=!!C.objectMode,J&&(this.objectMode=this.objectMode||!!C.readableObjectMode),this.highWaterMark=k(this,C,"readableHighWaterMark",J),this.buffer=new A,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=C.emitClose!==!1,this.autoDestroy=!!C.autoDestroy,this.destroyed=!1,this.defaultEncoding=C.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,C.encoding&&(y||(y=ti().StringDecoder),this.decoder=new y(C.encoding),this.encoding=C.encoding)}function N(C){if(r=r||tt(),!(this instanceof N))return new N(C);var L=this instanceof r;this._readableState=new W(C,this,L),this.readable=!0,C&&(typeof C.read=="function"&&(this._read=C.read),typeof C.destroy=="function"&&(this._destroy=C.destroy)),i.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),N.prototype.destroy=T.destroy,N.prototype._undestroy=T.undestroy,N.prototype._destroy=function(C,L){L(C)},N.prototype.push=function(C,L){var J=this._readableState,d;return J.objectMode?d=!0:typeof C=="string"&&(L=L||J.defaultEncoding,L!==J.encoding&&(C=a.from(C,L),L=""),d=!0),X(this,C,L,!1,d)},N.prototype.unshift=function(C){return X(this,C,null,!0,!1)};function X(C,L,J,d,Y){h("readableAddChunk",L);var _=C._readableState;if(L===null)_.reading=!1,ee(C,_);else{var t;if(Y||(t=O(_,L)),t)E(C,t);else if(_.objectMode||L&&L.length>0)if(typeof L!="string"&&!_.objectMode&&Object.getPrototypeOf(L)!==a.prototype&&(L=l(L)),d)_.endEmitted?E(C,new o):ae(C,_,L,!0);else if(_.ended)E(C,new b);else{if(_.destroyed)return!1;_.reading=!1,_.decoder&&!J?(L=_.decoder.write(L),_.objectMode||L.length!==0?ae(C,_,L,!1):Q(C,_)):ae(C,_,L,!1)}else d||(_.reading=!1,Q(C,_))}return!_.ended&&(_.length<_.highWaterMark||_.length===0)}function ae(C,L,J,d){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,C.emit("data",J)):(L.length+=L.objectMode?1:J.length,d?L.buffer.unshift(J):L.buffer.push(J),L.needReadable&&z(C)),Q(C,L)}function O(C,L){var J;return!f(L)&&typeof L!="string"&&L!==void 0&&!C.objectMode&&(J=new I("chunk",["string","Buffer","Uint8Array"],L)),J}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(C){y||(y=ti().StringDecoder);var L=new y(C);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,d="";J!==null;)d+=L.write(J.data),J=J.next;return this._readableState.buffer.clear(),d!==""&&this._readableState.buffer.push(d),this._readableState.length=d.length,this};var M=1073741824;function g(C){return C>=M?C=M:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function q(C,L){return C<=0||L.length===0&&L.ended?0:L.objectMode?1:C!==C?L.flowing&&L.length?L.buffer.head.data.length:L.length:(C>L.highWaterMark&&(L.highWaterMark=g(C)),C<=L.length?C:L.ended?L.length:(L.needReadable=!0,0))}N.prototype.read=function(C){h("read",C),C=parseInt(C,10);var L=this._readableState,J=C;if(C!==0&&(L.emittedReadable=!1),C===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return h("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?w(this):z(this),null;if(C=q(C,L),C===0&&L.ended)return L.length===0&&w(this),null;var d=L.needReadable;h("need readable",d),(L.length===0||L.length-C<L.highWaterMark)&&(d=!0,h("length less than watermark",d)),L.ended||L.reading?(d=!1,h("reading or ended",d)):d&&(h("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(C=q(J,L)));var Y;return C>0?Y=v(C,L):Y=null,Y===null?(L.needReadable=L.length<=L.highWaterMark,C=0):(L.length-=C,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),J!==C&&L.ended&&w(this)),Y!==null&&this.emit("data",Y),Y};function ee(C,L){if(h("onEofChunk"),!L.ended){if(L.decoder){var J=L.decoder.end();J&&J.length&&(L.buffer.push(J),L.length+=L.objectMode?1:J.length)}L.ended=!0,L.sync?z(C):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ne(C)))}}function z(C){var L=C._readableState;h("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(h("emitReadable",L.flowing),L.emittedReadable=!0,pe.nextTick(ne,C))}function ne(C){var L=C._readableState;h("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(C.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,K(C)}function Q(C,L){L.readingMore||(L.readingMore=!0,pe.nextTick(ue,C,L))}function ue(C,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var J=L.length;if(h("maybeReadMore read 0"),C.read(0),J===L.length)break}L.readingMore=!1}N.prototype._read=function(C){E(this,new R("_read()"))},N.prototype.pipe=function(C,L){var J=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=C;break;case 1:d.pipes=[d.pipes,C];break;default:d.pipes.push(C);break}d.pipesCount+=1,h("pipe count=%d opts=%j",d.pipesCount,L);var Y=(!L||L.end!==!1)&&C!==pe.stdout&&C!==pe.stderr,_=Y?s:ce;d.endEmitted?pe.nextTick(_):J.once("end",_),C.on("unpipe",t);function t(he,de){h("onunpipe"),he===J&&de&&de.hasUnpiped===!1&&(de.hasUnpiped=!0,G())}function s(){h("onend"),C.end()}var p=V(J);C.on("drain",p);var B=!1;function G(){h("cleanup"),C.removeListener("close",se),C.removeListener("finish",ie),C.removeListener("drain",p),C.removeListener("error",re),C.removeListener("unpipe",t),J.removeListener("end",s),J.removeListener("end",ce),J.removeListener("data",H),B=!0,d.awaitDrain&&(!C._writableState||C._writableState.needDrain)&&p()}J.on("data",H);function H(he){h("ondata");var de=C.write(he);h("dest.write",de),de===!1&&((d.pipesCount===1&&d.pipes===C||d.pipesCount>1&&U(d.pipes,C)!==-1)&&!B&&(h("false write response, pause",d.awaitDrain),d.awaitDrain++),J.pause())}function re(he){h("onerror",he),ce(),C.removeListener("error",re),e(C,"error")===0&&E(C,he)}F(C,"error",re);function se(){C.removeListener("finish",ie),ce()}C.once("close",se);function ie(){h("onfinish"),C.removeListener("close",se),ce()}C.once("finish",ie);function ce(){h("unpipe"),J.unpipe(C)}return C.emit("pipe",J),d.flowing||(h("pipe resume"),J.resume()),C};function V(C){return function(){var J=C._readableState;h("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&e(C,"data")&&(J.flowing=!0,K(C))}}N.prototype.unpipe=function(C){var L=this._readableState,J={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return C&&C!==L.pipes?this:(C||(C=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,C&&C.emit("unpipe",this,J),this);if(!C){var d=L.pipes,Y=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var _=0;_<Y;_++)d[_].emit("unpipe",this,{hasUnpiped:!1});return this}var t=U(L.pipes,C);return t===-1?this:(L.pipes.splice(t,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),C.emit("unpipe",this,J),this)},N.prototype.on=function(C,L){var J=i.prototype.on.call(this,C,L),d=this._readableState;return C==="data"?(d.readableListening=this.listenerCount("readable")>0,d.flowing!==!1&&this.resume()):C==="readable"&&!d.endEmitted&&!d.readableListening&&(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,h("on readable",d.length,d.reading),d.length?z(this):d.reading||pe.nextTick($,this)),J},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(C,L){var J=i.prototype.removeListener.call(this,C,L);return C==="readable"&&pe.nextTick(D,this),J},N.prototype.removeAllListeners=function(C){var L=i.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&pe.nextTick(D,this),L};function D(C){var L=C._readableState;L.readableListening=C.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:C.listenerCount("data")>0&&C.resume()}function $(C){h("readable nexttick read 0"),C.read(0)}N.prototype.resume=function(){var C=this._readableState;return C.flowing||(h("resume"),C.flowing=!C.readableListening,Z(this,C)),C.paused=!1,this};function Z(C,L){L.resumeScheduled||(L.resumeScheduled=!0,pe.nextTick(te,C,L))}function te(C,L){h("resume",L.reading),L.reading||C.read(0),L.resumeScheduled=!1,C.emit("resume"),K(C),L.flowing&&!L.reading&&C.read(0)}N.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(C){var L=C._readableState;for(h("flow",L.flowing);L.flowing&&C.read()!==null;);}N.prototype.wrap=function(C){var L=this,J=this._readableState,d=!1;C.on("end",function(){if(h("wrapped end"),J.decoder&&!J.ended){var t=J.decoder.end();t&&t.length&&L.push(t)}L.push(null)}),C.on("data",function(t){if(h("wrapped data"),J.decoder&&(t=J.decoder.write(t)),!(J.objectMode&&t==null)&&!(!J.objectMode&&(!t||!t.length))){var s=L.push(t);s||(d=!0,C.pause())}});for(var Y in C)this[Y]===void 0&&typeof C[Y]=="function"&&(this[Y]=function(s){return function(){return C[s].apply(C,arguments)}}(Y));for(var _=0;_<P.length;_++)C.on(P[_],this.emit.bind(this,P[_]));return this._read=function(t){h("wrapped _read",t),d&&(d=!1,C.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=fl()),m(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),N._fromList=v,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function v(C,L){if(L.length===0)return null;var J;return L.objectMode?J=L.buffer.shift():!C||C>=L.length?(L.decoder?J=L.buffer.join(""):L.buffer.length===1?J=L.buffer.first():J=L.buffer.concat(L.length),L.buffer.clear()):J=L.buffer.consume(C,L.decoder),J}function w(C){var L=C._readableState;h("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,pe.nextTick(j,L,C))}function j(C,L){if(h("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,L.readable=!1,L.emit("end"),C.autoDestroy)){var J=L._writableState;(!J||J.autoDestroy&&J.finished)&&L.destroy()}}typeof Symbol=="function"&&(N.from=function(C,L){return u===void 0&&(u=dl()),u(N,C,L)});function U(C,L){for(var J=0,d=C.length;J<d;J++)if(C[J]===L)return J;return-1}return An}var Sn,zo;function Gu(){if(zo)return Sn;zo=1,Sn=n;var r=at().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=r.ERR_TRANSFORM_WITH_LENGTH_0,l=tt();je()(n,l);function f(T,S){var k=this._transformState;k.transforming=!1;var x=k.writecb;if(x===null)return this.emit("error",new i);k.writechunk=null,k.writecb=null,S!=null&&this.push(S),x(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function n(T){if(!(this instanceof n))return new n(T);l.call(this,T),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",h)}function h(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,k){A(T,S,k)}):A(this,null,null)}n.prototype.push=function(T,S){return this._transformState.needTransform=!1,l.prototype.push.call(this,T,S)},n.prototype._transform=function(T,S,k){k(new e("_transform()"))},n.prototype._write=function(T,S,k){var x=this._transformState;if(x.writecb=k,x.writechunk=T,x.writeencoding=S,!x.transforming){var I=this._readableState;(x.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},n.prototype._read=function(T){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},n.prototype._destroy=function(T,S){l.prototype._destroy.call(this,T,function(k){S(k)})};function A(T,S,k){if(S)return T.emit("error",S);if(k!=null&&T.push(k),T._writableState.length)throw new c;if(T._transformState.transforming)throw new a;return T.push(null)}return Sn}var Rn,Go;function pl(){if(Go)return Rn;Go=1,Rn=e;var r=Gu();je()(e,r);function e(i){if(!(this instanceof e))return new e(i);r.call(this,i)}return e.prototype._transform=function(i,a,c){c(null,i)},Rn}var In,Ko;function ml(){if(Ko)return In;Ko=1;var r;function e(k){var x=!1;return function(){x||(x=!0,k.apply(void 0,arguments))}}var i=at().codes,a=i.ERR_MISSING_ARGS,c=i.ERR_STREAM_DESTROYED;function l(k){if(k)throw k}function f(k){return k.setHeader&&typeof k.abort=="function"}function n(k,x,I,b){b=e(b);var R=!1;k.on("close",function(){R=!0}),r===void 0&&(r=ma()),r(k,{readable:x,writable:I},function(y){if(y)return b(y);R=!0,b()});var o=!1;return function(y){if(!R&&!o){if(o=!0,f(k))return k.abort();if(typeof k.destroy=="function")return k.destroy();b(y||new c("pipe"))}}}function h(k){k()}function A(k,x){return k.pipe(x)}function T(k){return!k.length||typeof k[k.length-1]!="function"?l:k.pop()}function S(){for(var k=arguments.length,x=new Array(k),I=0;I<k;I++)x[I]=arguments[I];var b=T(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new a("streams");var R,o=x.map(function(y,m){var u=m<x.length-1,E=m>0;return n(y,u,E,function(P){R||(R=P),P&&o.forEach(h),!u&&(o.forEach(h),b(R))})});return x.reduce(A)}return In=S,In}var Nn,qo;function wa(){if(qo)return Nn;qo=1,Nn=i;var r=ha().EventEmitter,e=je();e(i,r),i.Readable=zu(),i.Writable=Wu(),i.Duplex=tt(),i.Transform=Gu(),i.PassThrough=pl(),i.finished=ma(),i.pipeline=ml(),i.Stream=i;function i(){r.call(this)}return i.prototype.pipe=function(a,c){var l=this;function f(x){a.writable&&a.write(x)===!1&&l.pause&&l.pause()}l.on("data",f);function n(){l.readable&&l.resume&&l.resume()}a.on("drain",n),!a._isStdio&&(!c||c.end!==!1)&&(l.on("end",A),l.on("close",T));var h=!1;function A(){h||(h=!0,a.end())}function T(){h||(h=!0,typeof a.destroy=="function"&&a.destroy())}function S(x){if(k(),r.listenerCount(this,"error")===0)throw x}l.on("error",S),a.on("error",S);function k(){l.removeListener("data",f),a.removeListener("drain",n),l.removeListener("end",A),l.removeListener("close",T),l.removeListener("error",S),a.removeListener("error",S),l.removeListener("end",k),l.removeListener("close",k),a.removeListener("close",k)}return l.on("end",k),l.on("close",k),a.on("close",k),a.emit("pipe",l),a},Nn}var Vo;function wl(){return Vo||(Vo=1,function(r){(function(e){e.parser=function(v,w){return new a(v,w)},e.SAXParser=a,e.SAXStream=T,e.createStream=A,e.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(v,w){if(!(this instanceof a))return new a(v,w);var j=this;l(j),j.q=j.c="",j.bufferCheckPosition=e.MAX_BUFFER_LENGTH,j.opt=w||{},j.opt.lowercase=j.opt.lowercase||j.opt.lowercasetags,j.looseCase=j.opt.lowercase?"toLowerCase":"toUpperCase",j.tags=[],j.closed=j.closedRoot=j.sawRoot=!1,j.tag=j.error=null,j.strict=!!v,j.noscript=!!(v||j.opt.noscript),j.state=N.BEGIN,j.strictEntities=j.opt.strictEntities,j.ENTITIES=j.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),j.attribList=[],j.opt.xmlns&&(j.ns=Object.create(b)),j.opt.unquotedAttributeValues===void 0&&(j.opt.unquotedAttributeValues=!v),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),ae(j,"onready")}Object.create||(Object.create=function(v){function w(){}w.prototype=v;var j=new w;return j}),Object.keys||(Object.keys=function(v){var w=[];for(var j in v)v.hasOwnProperty(j)&&w.push(j);return w});function c(v){for(var w=Math.max(e.MAX_BUFFER_LENGTH,10),j=0,U=0,C=i.length;U<C;U++){var L=v[i[U]].length;if(L>w)switch(i[U]){case"textNode":M(v);break;case"cdata":O(v,"oncdata",v.cdata),v.cdata="";break;case"script":O(v,"onscript",v.script),v.script="";break;default:q(v,"Max buffer length exceeded: "+i[U])}j=Math.max(j,L)}var J=e.MAX_BUFFER_LENGTH-j;v.bufferCheckPosition=J+v.position}function l(v){for(var w=0,j=i.length;w<j;w++)v[i[w]]=""}function f(v){M(v),v.cdata!==""&&(O(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(O(v,"onscript",v.script),v.script="")}a.prototype={end:function(){ee(this)},write:K,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){f(this)}};var n;try{n=wa().Stream}catch{n=function(){}}n||(n=function(){});var h=e.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});function A(v,w){return new T(v,w)}function T(v,w){if(!(this instanceof T))return new T(v,w);n.apply(this),this._parser=new a(v,w),this.writable=!0,this.readable=!0;var j=this;this._parser.onend=function(){j.emit("end")},this._parser.onerror=function(U){j.emit("error",U),j._parser.error=null},this._decoder=null,h.forEach(function(U){Object.defineProperty(j,"on"+U,{get:function(){return j._parser["on"+U]},set:function(C){if(!C)return j.removeAllListeners(U),j._parser["on"+U]=C,C;j.on(U,C)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(n.prototype,{constructor:{value:T}}),T.prototype.write=function(v){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(v)){if(!this._decoder){var w=ti().StringDecoder;this._decoder=new w("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},T.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},T.prototype.on=function(v,w){var j=this;return!j._parser["on"+v]&&h.indexOf(v)!==-1&&(j._parser["on"+v]=function(){var U=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);U.splice(0,0,v),j.emit.apply(j,U)}),n.prototype.on.call(j,v,w)};var S="[CDATA[",k="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",b={xml:x,xmlns:I},R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function u(v){return v===" "||v===`
11
- `||v==="\r"||v===" "}function E(v){return v==='"'||v==="'"}function P(v){return v===">"||u(v)}function F(v,w){return v.test(w)}function W(v,w){return!F(v,w)}var N=0;e.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(v){var w=e.ENTITIES[v],j=typeof w=="number"?String.fromCharCode(w):w;e.ENTITIES[v]=j});for(var X in e.STATE)e.STATE[e.STATE[X]]=X;N=e.STATE;function ae(v,w,j){v[w]&&v[w](j)}function O(v,w,j){v.textNode&&M(v),ae(v,w,j)}function M(v){v.textNode=g(v.opt,v.textNode),v.textNode&&ae(v,"ontext",v.textNode),v.textNode=""}function g(v,w){return v.trim&&(w=w.trim()),v.normalize&&(w=w.replace(/\s+/g," ")),w}function q(v,w){return M(v),v.trackPosition&&(w+=`
12
- Line: `+v.line+`
13
- Column: `+v.column+`
14
- Char: `+v.c),w=new Error(w),v.error=w,ae(v,"onerror",w),v}function ee(v){return v.sawRoot&&!v.closedRoot&&z(v,"Unclosed root tag"),v.state!==N.BEGIN&&v.state!==N.BEGIN_WHITESPACE&&v.state!==N.TEXT&&q(v,"Unexpected end"),M(v),v.c="",v.closed=!0,ae(v,"onend"),a.call(v,v.strict,v.opt),v}function z(v,w){if(typeof v!="object"||!(v instanceof a))throw new Error("bad call to strictFail");v.strict&&q(v,w)}function ne(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var w=v.tags[v.tags.length-1]||v,j=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(j.ns=w.ns),v.attribList.length=0,O(v,"onopentagstart",j)}function Q(v,w){var j=v.indexOf(":"),U=j<0?["",v]:v.split(":"),C=U[0],L=U[1];return w&&v==="xmlns"&&(C="xmlns",L=""),{prefix:C,local:L}}function ue(v){if(v.strict||(v.attribName=v.attribName[v.looseCase]()),v.attribList.indexOf(v.attribName)!==-1||v.tag.attributes.hasOwnProperty(v.attribName)){v.attribName=v.attribValue="";return}if(v.opt.xmlns){var w=Q(v.attribName,!0),j=w.prefix,U=w.local;if(j==="xmlns")if(U==="xml"&&v.attribValue!==x)z(v,"xml: prefix must be bound to "+x+`
15
- Actual: `+v.attribValue);else if(U==="xmlns"&&v.attribValue!==I)z(v,"xmlns: prefix must be bound to "+I+`
16
- Actual: `+v.attribValue);else{var C=v.tag,L=v.tags[v.tags.length-1]||v;C.ns===L.ns&&(C.ns=Object.create(L.ns)),C.ns[U]=v.attribValue}v.attribList.push([v.attribName,v.attribValue])}else v.tag.attributes[v.attribName]=v.attribValue,O(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function V(v,w){if(v.opt.xmlns){var j=v.tag,U=Q(v.tagName);j.prefix=U.prefix,j.local=U.local,j.uri=j.ns[U.prefix]||"",j.prefix&&!j.uri&&(z(v,"Unbound namespace prefix: "+JSON.stringify(v.tagName)),j.uri=U.prefix);var C=v.tags[v.tags.length-1]||v;j.ns&&C.ns!==j.ns&&Object.keys(j.ns).forEach(function(H){O(v,"onopennamespace",{prefix:H,uri:j.ns[H]})});for(var L=0,J=v.attribList.length;L<J;L++){var d=v.attribList[L],Y=d[0],_=d[1],t=Q(Y,!0),s=t.prefix,p=t.local,B=s===""?"":j.ns[s]||"",G={name:Y,value:_,prefix:s,local:p,uri:B};s&&s!=="xmlns"&&!B&&(z(v,"Unbound namespace prefix: "+JSON.stringify(s)),G.uri=s),v.tag.attributes[Y]=G,O(v,"onattribute",G)}v.attribList.length=0}v.tag.isSelfClosing=!!w,v.sawRoot=!0,v.tags.push(v.tag),O(v,"onopentag",v.tag),w||(!v.noscript&&v.tagName.toLowerCase()==="script"?v.state=N.SCRIPT:v.state=N.TEXT,v.tag=null,v.tagName=""),v.attribName=v.attribValue="",v.attribList.length=0}function D(v){if(!v.tagName){z(v,"Weird empty close tag."),v.textNode+="</>",v.state=N.TEXT;return}if(v.script){if(v.tagName!=="script"){v.script+="</"+v.tagName+">",v.tagName="",v.state=N.SCRIPT;return}O(v,"onscript",v.script),v.script=""}var w=v.tags.length,j=v.tagName;v.strict||(j=j[v.looseCase]());for(var U=j;w--;){var C=v.tags[w];if(C.name!==U)z(v,"Unexpected close tag");else break}if(w<0){z(v,"Unmatched closing tag: "+v.tagName),v.textNode+="</"+v.tagName+">",v.state=N.TEXT;return}v.tagName=j;for(var L=v.tags.length;L-- >w;){var J=v.tag=v.tags.pop();v.tagName=v.tag.name,O(v,"onclosetag",v.tagName);var d={};for(var Y in J.ns)d[Y]=J.ns[Y];var _=v.tags[v.tags.length-1]||v;v.opt.xmlns&&J.ns!==_.ns&&Object.keys(J.ns).forEach(function(t){var s=J.ns[t];O(v,"onclosenamespace",{prefix:t,uri:s})})}w===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=N.TEXT}function $(v){var w=v.entity,j=w.toLowerCase(),U,C="";return v.ENTITIES[w]?v.ENTITIES[w]:v.ENTITIES[j]?v.ENTITIES[j]:(w=j,w.charAt(0)==="#"&&(w.charAt(1)==="x"?(w=w.slice(2),U=parseInt(w,16),C=U.toString(16)):(w=w.slice(1),U=parseInt(w,10),C=U.toString(10))),w=w.replace(/^0+/,""),isNaN(U)||C.toLowerCase()!==w?(z(v,"Invalid character entity"),"&"+v.entity+";"):String.fromCodePoint(U))}function Z(v,w){w==="<"?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):u(w)||(z(v,"Non-whitespace before first tag."),v.textNode=w,v.state=N.TEXT)}function te(v,w){var j="";return w<v.length&&(j=v.charAt(w)),j}function K(v){var w=this;if(this.error)throw this.error;if(w.closed)return q(w,"Cannot write after close. Assign an onready handler.");if(v===null)return ee(w);typeof v=="object"&&(v=v.toString());for(var j=0,U="";U=te(v,j++),w.c=U,!!U;)switch(w.trackPosition&&(w.position++,U===`
17
- `?(w.line++,w.column=0):w.column++),w.state){case N.BEGIN:if(w.state=N.BEGIN_WHITESPACE,U==="\uFEFF")continue;Z(w,U);continue;case N.BEGIN_WHITESPACE:Z(w,U);continue;case N.TEXT:if(w.sawRoot&&!w.closedRoot){for(var C=j-1;U&&U!=="<"&&U!=="&";)U=te(v,j++),U&&w.trackPosition&&(w.position++,U===`
18
- `?(w.line++,w.column=0):w.column++);w.textNode+=v.substring(C,j-1)}U==="<"&&!(w.sawRoot&&w.closedRoot&&!w.strict)?(w.state=N.OPEN_WAKA,w.startTagPosition=w.position):(!u(U)&&(!w.sawRoot||w.closedRoot)&&z(w,"Text data outside of root node."),U==="&"?w.state=N.TEXT_ENTITY:w.textNode+=U);continue;case N.SCRIPT:U==="<"?w.state=N.SCRIPT_ENDING:w.script+=U;continue;case N.SCRIPT_ENDING:U==="/"?w.state=N.CLOSE_TAG:(w.script+="<"+U,w.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(U==="!")w.state=N.SGML_DECL,w.sgmlDecl="";else if(!u(U))if(F(R,U))w.state=N.OPEN_TAG,w.tagName=U;else if(U==="/")w.state=N.CLOSE_TAG,w.tagName="";else if(U==="?")w.state=N.PROC_INST,w.procInstName=w.procInstBody="";else{if(z(w,"Unencoded <"),w.startTagPosition+1<w.position){var L=w.position-w.startTagPosition;U=new Array(L).join(" ")+U}w.textNode+="<"+U,w.state=N.TEXT}continue;case N.SGML_DECL:if(w.sgmlDecl+U==="--"){w.state=N.COMMENT,w.comment="",w.sgmlDecl="";continue}w.doctype&&w.doctype!==!0&&w.sgmlDecl?(w.state=N.DOCTYPE_DTD,w.doctype+="<!"+w.sgmlDecl+U,w.sgmlDecl=""):(w.sgmlDecl+U).toUpperCase()===S?(O(w,"onopencdata"),w.state=N.CDATA,w.sgmlDecl="",w.cdata=""):(w.sgmlDecl+U).toUpperCase()===k?(w.state=N.DOCTYPE,(w.doctype||w.sawRoot)&&z(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):U===">"?(O(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=N.TEXT):(E(U)&&(w.state=N.SGML_DECL_QUOTED),w.sgmlDecl+=U);continue;case N.SGML_DECL_QUOTED:U===w.q&&(w.state=N.SGML_DECL,w.q=""),w.sgmlDecl+=U;continue;case N.DOCTYPE:U===">"?(w.state=N.TEXT,O(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=U,U==="["?w.state=N.DOCTYPE_DTD:E(U)&&(w.state=N.DOCTYPE_QUOTED,w.q=U));continue;case N.DOCTYPE_QUOTED:w.doctype+=U,U===w.q&&(w.q="",w.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:U==="]"?(w.doctype+=U,w.state=N.DOCTYPE):U==="<"?(w.state=N.OPEN_WAKA,w.startTagPosition=w.position):E(U)?(w.doctype+=U,w.state=N.DOCTYPE_DTD_QUOTED,w.q=U):w.doctype+=U;continue;case N.DOCTYPE_DTD_QUOTED:w.doctype+=U,U===w.q&&(w.state=N.DOCTYPE_DTD,w.q="");continue;case N.COMMENT:U==="-"?w.state=N.COMMENT_ENDING:w.comment+=U;continue;case N.COMMENT_ENDING:U==="-"?(w.state=N.COMMENT_ENDED,w.comment=g(w.opt,w.comment),w.comment&&O(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+U,w.state=N.COMMENT);continue;case N.COMMENT_ENDED:U!==">"?(z(w,"Malformed comment"),w.comment+="--"+U,w.state=N.COMMENT):w.doctype&&w.doctype!==!0?w.state=N.DOCTYPE_DTD:w.state=N.TEXT;continue;case N.CDATA:U==="]"?w.state=N.CDATA_ENDING:w.cdata+=U;continue;case N.CDATA_ENDING:U==="]"?w.state=N.CDATA_ENDING_2:(w.cdata+="]"+U,w.state=N.CDATA);continue;case N.CDATA_ENDING_2:U===">"?(w.cdata&&O(w,"oncdata",w.cdata),O(w,"onclosecdata"),w.cdata="",w.state=N.TEXT):U==="]"?w.cdata+="]":(w.cdata+="]]"+U,w.state=N.CDATA);continue;case N.PROC_INST:U==="?"?w.state=N.PROC_INST_ENDING:u(U)?w.state=N.PROC_INST_BODY:w.procInstName+=U;continue;case N.PROC_INST_BODY:if(!w.procInstBody&&u(U))continue;U==="?"?w.state=N.PROC_INST_ENDING:w.procInstBody+=U;continue;case N.PROC_INST_ENDING:U===">"?(O(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=N.TEXT):(w.procInstBody+="?"+U,w.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:F(o,U)?w.tagName+=U:(ne(w),U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:(u(U)||z(w,"Invalid character in tag name"),w.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:U===">"?(V(w,!0),D(w)):(z(w,"Forward-slash in opening tag not followed by >"),w.state=N.ATTRIB);continue;case N.ATTRIB:if(u(U))continue;U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:F(R,U)?(w.attribName=U,w.attribValue="",w.state=N.ATTRIB_NAME):z(w,"Invalid attribute name");continue;case N.ATTRIB_NAME:U==="="?w.state=N.ATTRIB_VALUE:U===">"?(z(w,"Attribute without value"),w.attribValue=w.attribName,ue(w),V(w)):u(U)?w.state=N.ATTRIB_NAME_SAW_WHITE:F(o,U)?w.attribName+=U:z(w,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(U==="=")w.state=N.ATTRIB_VALUE;else{if(u(U))continue;z(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",O(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",U===">"?V(w):F(R,U)?(w.attribName=U,w.state=N.ATTRIB_NAME):(z(w,"Invalid attribute name"),w.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(u(U))continue;E(U)?(w.q=U,w.state=N.ATTRIB_VALUE_QUOTED):(w.opt.unquotedAttributeValues||q(w,"Unquoted attribute value"),w.state=N.ATTRIB_VALUE_UNQUOTED,w.attribValue=U);continue;case N.ATTRIB_VALUE_QUOTED:if(U!==w.q){U==="&"?w.state=N.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=U;continue}ue(w),w.q="",w.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:u(U)?w.state=N.ATTRIB:U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:F(R,U)?(z(w,"No whitespace between attributes"),w.attribName=U,w.attribValue="",w.state=N.ATTRIB_NAME):z(w,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!P(U)){U==="&"?w.state=N.ATTRIB_VALUE_ENTITY_U:w.attribValue+=U;continue}ue(w),U===">"?V(w):w.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(w.tagName)U===">"?D(w):F(o,U)?w.tagName+=U:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=N.SCRIPT):(u(U)||z(w,"Invalid tagname in closing tag"),w.state=N.CLOSE_TAG_SAW_WHITE);else{if(u(U))continue;W(R,U)?w.script?(w.script+="</"+U,w.state=N.SCRIPT):z(w,"Invalid tagname in closing tag."):w.tagName=U}continue;case N.CLOSE_TAG_SAW_WHITE:if(u(U))continue;U===">"?D(w):z(w,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var J,d;switch(w.state){case N.TEXT_ENTITY:J=N.TEXT,d="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:J=N.ATTRIB_VALUE_QUOTED,d="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:J=N.ATTRIB_VALUE_UNQUOTED,d="attribValue";break}if(U===";"){var Y=$(w);w.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Y)?(w.entity="",w.state=J,w.write(Y)):(w[d]+=Y,w.entity="",w.state=J)}else F(w.entity.length?m:y,U)?w.entity+=U:(z(w,"Invalid character in entity name"),w[d]+="&"+w.entity+U,w.entity="",w.state=J);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&c(w),w}String.fromCodePoint||function(){var v=String.fromCharCode,w=Math.floor,j=function(){var U=16384,C=[],L,J,d=-1,Y=arguments.length;if(!Y)return"";for(var _="";++d<Y;){var t=Number(arguments[d]);if(!isFinite(t)||t<0||t>1114111||w(t)!==t)throw RangeError("Invalid code point: "+t);t<=65535?C.push(t):(t-=65536,L=(t>>10)+55296,J=t%1024+56320,C.push(L,J)),(d+1===Y||C.length>U)&&(_+=v.apply(null,C),C.length=0)}return _};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j}()})(r)}(lr)),lr}var kn,$o;function ga(){return $o||($o=1,kn={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),kn}var On,Xo;function ya(){if(Xo)return On;Xo=1;var r=ga().isArray;return On={copyOptions:function(e){var i,a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);return a},ensureFlagExists:function(e,i){(!(e in i)||typeof i[e]!="boolean")&&(i[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!r(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,i){(!(e+"Key"in i)||typeof i[e+"Key"]!="string")&&(i[e+"Key"]=i.compact?"_"+e:e)},checkFnExists:function(e,i){return e+"Fn"in i}},On}var Cn,Zo;function Ku(){if(Zo)return Cn;Zo=1;var r=wl(),e=ya(),i=ga().isArray,a,c;function l(o){return a=e.copyOptions(o),e.ensureFlagExists("ignoreDeclaration",a),e.ensureFlagExists("ignoreInstruction",a),e.ensureFlagExists("ignoreAttributes",a),e.ensureFlagExists("ignoreText",a),e.ensureFlagExists("ignoreComment",a),e.ensureFlagExists("ignoreCdata",a),e.ensureFlagExists("ignoreDoctype",a),e.ensureFlagExists("compact",a),e.ensureFlagExists("alwaysChildren",a),e.ensureFlagExists("addParent",a),e.ensureFlagExists("trim",a),e.ensureFlagExists("nativeType",a),e.ensureFlagExists("nativeTypeAttributes",a),e.ensureFlagExists("sanitize",a),e.ensureFlagExists("instructionHasAttributes",a),e.ensureFlagExists("captureSpacesBetweenElements",a),e.ensureAlwaysArrayExists(a),e.ensureKeyExists("declaration",a),e.ensureKeyExists("instruction",a),e.ensureKeyExists("attributes",a),e.ensureKeyExists("text",a),e.ensureKeyExists("comment",a),e.ensureKeyExists("cdata",a),e.ensureKeyExists("doctype",a),e.ensureKeyExists("type",a),e.ensureKeyExists("name",a),e.ensureKeyExists("elements",a),e.ensureKeyExists("parent",a),e.checkFnExists("doctype",a),e.checkFnExists("instruction",a),e.checkFnExists("cdata",a),e.checkFnExists("comment",a),e.checkFnExists("text",a),e.checkFnExists("instructionName",a),e.checkFnExists("elementName",a),e.checkFnExists("attributeName",a),e.checkFnExists("attributeValue",a),e.checkFnExists("attributes",a),a}function f(o){var y=Number(o);if(!isNaN(y))return y;var m=o.toLowerCase();return m==="true"?!0:m==="false"?!1:o}function n(o,y){var m;if(a.compact){if(!c[a[o+"Key"]]&&(i(a.alwaysArray)?a.alwaysArray.indexOf(a[o+"Key"])!==-1:a.alwaysArray)&&(c[a[o+"Key"]]=[]),c[a[o+"Key"]]&&!i(c[a[o+"Key"]])&&(c[a[o+"Key"]]=[c[a[o+"Key"]]]),o+"Fn"in a&&typeof y=="string"&&(y=a[o+"Fn"](y,c)),o==="instruction"&&("instructionFn"in a||"instructionNameFn"in a)){for(m in y)if(y.hasOwnProperty(m))if("instructionFn"in a)y[m]=a.instructionFn(y[m],m,c);else{var u=y[m];delete y[m],y[a.instructionNameFn(m,u,c)]=u}}i(c[a[o+"Key"]])?c[a[o+"Key"]].push(y):c[a[o+"Key"]]=y}else{c[a.elementsKey]||(c[a.elementsKey]=[]);var E={};if(E[a.typeKey]=o,o==="instruction"){for(m in y)if(y.hasOwnProperty(m))break;E[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(m,y,c):m,a.instructionHasAttributes?(E[a.attributesKey]=y[m][a.attributesKey],"instructionFn"in a&&(E[a.attributesKey]=a.instructionFn(E[a.attributesKey],m,c))):("instructionFn"in a&&(y[m]=a.instructionFn(y[m],m,c)),E[a.instructionKey]=y[m])}else o+"Fn"in a&&(y=a[o+"Fn"](y,c)),E[a[o+"Key"]]=y;a.addParent&&(E[a.parentKey]=c),c[a.elementsKey].push(E)}}function h(o){if("attributesFn"in a&&o&&(o=a.attributesFn(o,c)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&o){var y;for(y in o)if(o.hasOwnProperty(y)&&(a.trim&&(o[y]=o[y].trim()),a.nativeTypeAttributes&&(o[y]=f(o[y])),"attributeValueFn"in a&&(o[y]=a.attributeValueFn(o[y],y,c)),"attributeNameFn"in a)){var m=o[y];delete o[y],o[a.attributeNameFn(y,o[y],c)]=m}}return o}function A(o){var y={};if(o.body&&(o.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var m=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,u;(u=m.exec(o.body))!==null;)y[u[1]]=u[2]||u[3]||u[4];y=h(y)}if(o.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;c[a.declarationKey]={},Object.keys(y).length&&(c[a.declarationKey][a.attributesKey]=y),a.addParent&&(c[a.declarationKey][a.parentKey]=c)}else{if(a.ignoreInstruction)return;a.trim&&(o.body=o.body.trim());var E={};a.instructionHasAttributes&&Object.keys(y).length?(E[o.name]={},E[o.name][a.attributesKey]=y):E[o.name]=o.body,n("instruction",E)}}function T(o,y){var m;if(typeof o=="object"&&(y=o.attributes,o=o.name),y=h(y),"elementNameFn"in a&&(o=a.elementNameFn(o,c)),a.compact){if(m={},!a.ignoreAttributes&&y&&Object.keys(y).length){m[a.attributesKey]={};var u;for(u in y)y.hasOwnProperty(u)&&(m[a.attributesKey][u]=y[u])}!(o in c)&&(i(a.alwaysArray)?a.alwaysArray.indexOf(o)!==-1:a.alwaysArray)&&(c[o]=[]),c[o]&&!i(c[o])&&(c[o]=[c[o]]),i(c[o])?c[o].push(m):c[o]=m}else c[a.elementsKey]||(c[a.elementsKey]=[]),m={},m[a.typeKey]="element",m[a.nameKey]=o,!a.ignoreAttributes&&y&&Object.keys(y).length&&(m[a.attributesKey]=y),a.alwaysChildren&&(m[a.elementsKey]=[]),c[a.elementsKey].push(m);m[a.parentKey]=c,c=m}function S(o){a.ignoreText||!o.trim()&&!a.captureSpacesBetweenElements||(a.trim&&(o=o.trim()),a.nativeType&&(o=f(o)),a.sanitize&&(o=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),n("text",o))}function k(o){a.ignoreComment||(a.trim&&(o=o.trim()),n("comment",o))}function x(o){var y=c[a.parentKey];a.addParent||delete c[a.parentKey],c=y}function I(o){a.ignoreCdata||(a.trim&&(o=o.trim()),n("cdata",o))}function b(o){a.ignoreDoctype||(o=o.replace(/^ /,""),a.trim&&(o=o.trim()),n("doctype",o))}function R(o){o.note=o}return Cn=function(o,y){var m=r.parser(!0,{}),u={};if(c=u,a=l(y),m.opt={strictEntities:!0},m.onopentag=T,m.ontext=S,m.oncomment=k,m.onclosetag=x,m.onerror=R,m.oncdata=I,m.ondoctype=b,m.onprocessinginstruction=A,m.write(o).close(),u[a.elementsKey]){var E=u[a.elementsKey];delete u[a.elementsKey],u[a.elementsKey]=E,delete u.text}return u},Cn}var Dn,Yo;function gl(){if(Yo)return Dn;Yo=1;var r=ya(),e=Ku();function i(a){var c=r.copyOptions(a);return r.ensureSpacesExists(c),c}return Dn=function(a,c){var l,f,n,h;return l=i(c),f=e(a,l),h="compact"in l&&l.compact?"_parent":"parent","addParent"in l&&l.addParent?n=JSON.stringify(f,function(A,T){return A===h?"_":T},l.spaces):n=JSON.stringify(f,null,l.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Dn}var Ln,Jo;function qu(){if(Jo)return Ln;Jo=1;var r=ya(),e=ga().isArray,i,a;function c(m){var u=r.copyOptions(m);return r.ensureFlagExists("ignoreDeclaration",u),r.ensureFlagExists("ignoreInstruction",u),r.ensureFlagExists("ignoreAttributes",u),r.ensureFlagExists("ignoreText",u),r.ensureFlagExists("ignoreComment",u),r.ensureFlagExists("ignoreCdata",u),r.ensureFlagExists("ignoreDoctype",u),r.ensureFlagExists("compact",u),r.ensureFlagExists("indentText",u),r.ensureFlagExists("indentCdata",u),r.ensureFlagExists("indentAttributes",u),r.ensureFlagExists("indentInstruction",u),r.ensureFlagExists("fullTagEmptyElement",u),r.ensureFlagExists("noQuotesForNativeAttributes",u),r.ensureSpacesExists(u),typeof u.spaces=="number"&&(u.spaces=Array(u.spaces+1).join(" ")),r.ensureKeyExists("declaration",u),r.ensureKeyExists("instruction",u),r.ensureKeyExists("attributes",u),r.ensureKeyExists("text",u),r.ensureKeyExists("comment",u),r.ensureKeyExists("cdata",u),r.ensureKeyExists("doctype",u),r.ensureKeyExists("type",u),r.ensureKeyExists("name",u),r.ensureKeyExists("elements",u),r.checkFnExists("doctype",u),r.checkFnExists("instruction",u),r.checkFnExists("cdata",u),r.checkFnExists("comment",u),r.checkFnExists("text",u),r.checkFnExists("instructionName",u),r.checkFnExists("elementName",u),r.checkFnExists("attributeName",u),r.checkFnExists("attributeValue",u),r.checkFnExists("attributes",u),r.checkFnExists("fullTagEmptyElement",u),u}function l(m,u,E){return(!E&&m.spaces?`
19
- `:"")+Array(u+1).join(m.spaces)}function f(m,u,E){if(u.ignoreAttributes)return"";"attributesFn"in u&&(m=u.attributesFn(m,a,i));var P,F,W,N,X=[];for(P in m)m.hasOwnProperty(P)&&m[P]!==null&&m[P]!==void 0&&(N=u.noQuotesForNativeAttributes&&typeof m[P]!="string"?"":'"',F=""+m[P],F=F.replace(/"/g,"&quot;"),W="attributeNameFn"in u?u.attributeNameFn(P,F,a,i):P,X.push(u.spaces&&u.indentAttributes?l(u,E+1,!1):" "),X.push(W+"="+N+("attributeValueFn"in u?u.attributeValueFn(F,P,a,i):F)+N));return m&&Object.keys(m).length&&u.spaces&&u.indentAttributes&&X.push(l(u,E,!1)),X.join("")}function n(m,u,E){return i=m,a="xml",u.ignoreDeclaration?"":"<?xml"+f(m[u.attributesKey],u,E)+"?>"}function h(m,u,E){if(u.ignoreInstruction)return"";var P;for(P in m)if(m.hasOwnProperty(P))break;var F="instructionNameFn"in u?u.instructionNameFn(P,m[P],a,i):P;if(typeof m[P]=="object")return i=m,a=F,"<?"+F+f(m[P][u.attributesKey],u,E)+"?>";var W=m[P]?m[P]:"";return"instructionFn"in u&&(W=u.instructionFn(W,P,a,i)),"<?"+F+(W?" "+W:"")+"?>"}function A(m,u){return u.ignoreComment?"":"<!--"+("commentFn"in u?u.commentFn(m,a,i):m)+"-->"}function T(m,u){return u.ignoreCdata?"":"<![CDATA["+("cdataFn"in u?u.cdataFn(m,a,i):m.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function S(m,u){return u.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in u?u.doctypeFn(m,a,i):m)+">"}function k(m,u){return u.ignoreText?"":(m=""+m,m=m.replace(/&amp;/g,"&"),m=m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in u?u.textFn(m,a,i):m)}function x(m,u){var E;if(m.elements&&m.elements.length)for(E=0;E<m.elements.length;++E)switch(m.elements[E][u.typeKey]){case"text":if(u.indentText)return!0;break;case"cdata":if(u.indentCdata)return!0;break;case"instruction":if(u.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function I(m,u,E){i=m,a=m.name;var P=[],F="elementNameFn"in u?u.elementNameFn(m.name,m):m.name;P.push("<"+F),m[u.attributesKey]&&P.push(f(m[u.attributesKey],u,E));var W=m[u.elementsKey]&&m[u.elementsKey].length||m[u.attributesKey]&&m[u.attributesKey]["xml:space"]==="preserve";return W||("fullTagEmptyElementFn"in u?W=u.fullTagEmptyElementFn(m.name,m):W=u.fullTagEmptyElement),W?(P.push(">"),m[u.elementsKey]&&m[u.elementsKey].length&&(P.push(b(m[u.elementsKey],u,E+1)),i=m,a=m.name),P.push(u.spaces&&x(m,u)?`
20
- `+Array(E+1).join(u.spaces):""),P.push("</"+F+">")):P.push("/>"),P.join("")}function b(m,u,E,P){return m.reduce(function(F,W){var N=l(u,E,P&&!F);switch(W.type){case"element":return F+N+I(W,u,E);case"comment":return F+N+A(W[u.commentKey],u);case"doctype":return F+N+S(W[u.doctypeKey],u);case"cdata":return F+(u.indentCdata?N:"")+T(W[u.cdataKey],u);case"text":return F+(u.indentText?N:"")+k(W[u.textKey],u);case"instruction":var X={};return X[W[u.nameKey]]=W[u.attributesKey]?W:W[u.instructionKey],F+(u.indentInstruction?N:"")+h(X,u,E)}},"")}function R(m,u,E){var P;for(P in m)if(m.hasOwnProperty(P))switch(P){case u.parentKey:case u.attributesKey:break;case u.textKey:if(u.indentText||E)return!0;break;case u.cdataKey:if(u.indentCdata||E)return!0;break;case u.instructionKey:if(u.indentInstruction||E)return!0;break;case u.doctypeKey:case u.commentKey:return!0;default:return!0}return!1}function o(m,u,E,P,F){i=m,a=u;var W="elementNameFn"in E?E.elementNameFn(u,m):u;if(typeof m=="undefined"||m===null||m==="")return"fullTagEmptyElementFn"in E&&E.fullTagEmptyElementFn(u,m)||E.fullTagEmptyElement?"<"+W+"></"+W+">":"<"+W+"/>";var N=[];if(u){if(N.push("<"+W),typeof m!="object")return N.push(">"+k(m,E)+"</"+W+">"),N.join("");m[E.attributesKey]&&N.push(f(m[E.attributesKey],E,P));var X=R(m,E,!0)||m[E.attributesKey]&&m[E.attributesKey]["xml:space"]==="preserve";if(X||("fullTagEmptyElementFn"in E?X=E.fullTagEmptyElementFn(u,m):X=E.fullTagEmptyElement),X)N.push(">");else return N.push("/>"),N.join("")}return N.push(y(m,E,P+1,!1)),i=m,a=u,u&&N.push((F?l(E,P,!1):"")+"</"+W+">"),N.join("")}function y(m,u,E,P){var F,W,N,X=[];for(W in m)if(m.hasOwnProperty(W))for(N=e(m[W])?m[W]:[m[W]],F=0;F<N.length;++F){switch(W){case u.declarationKey:X.push(n(N[F],u,E));break;case u.instructionKey:X.push((u.indentInstruction?l(u,E,P):"")+h(N[F],u,E));break;case u.attributesKey:case u.parentKey:break;case u.textKey:X.push((u.indentText?l(u,E,P):"")+k(N[F],u));break;case u.cdataKey:X.push((u.indentCdata?l(u,E,P):"")+T(N[F],u));break;case u.doctypeKey:X.push(l(u,E,P)+S(N[F],u));break;case u.commentKey:X.push(l(u,E,P)+A(N[F],u));break;default:X.push(l(u,E,P)+o(N[F],W,u,E,R(N[F],u)))}P=P&&!X.length}return X.join("")}return Ln=function(m,u){u=c(u);var E=[];return i=m,a="_root_",u.compact?E.push(y(m,u,0,!0)):(m[u.declarationKey]&&E.push(n(m[u.declarationKey],u,0)),m[u.elementsKey]&&m[u.elementsKey].length&&E.push(b(m[u.elementsKey],u,0,!E.length))),E.join("")},Ln}var Pn,Qo;function yl(){if(Qo)return Pn;Qo=1;var r=qu();return Pn=function(e,i){e instanceof Buffer&&(e=e.toString());var a=null;if(typeof e=="string")try{a=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else a=e;return r(a,i)},Pn}var Fn,eu;function vl(){if(eu)return Fn;eu=1;var r=Ku(),e=gl(),i=qu(),a=yl();return Fn={xml2js:r,xml2json:e,js2xml:i,json2xml:a},Fn}var bh=vl();var Ue=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},ar=r=>{let e=Ue(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},Vu=(r,e)=>{let i=e*2;if(r.length!==i||isNaN(+`0x${r}`))throw new Error(`Invalid hex value '${r}'. Expected ${i} digit hex value`);return r};var tu=r=>Vu(r,1),$u=r=>{let e=r.slice(-2),i=r.substring(0,r.length-2);return`${Number(i)}${e}`},Xu=r=>{let e=$u(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},rt=r=>{if(r==="auto")return r;let e=r.charAt(0)==="#"?r.substring(1):r;return Vu(e,3)},Ke=r=>typeof r=="string"?$u(r):Ue(r),_l=r=>typeof r=="string"?Xu(r):ar(r);var Ae=r=>typeof r=="string"?Xu(r):ar(r);var bl=ar,El=ar;var we=class extends oe{constructor(e,i=!0){super(e),i!==!0&&this.root.push(new be({val:i}))}},ft=class extends oe{constructor(e,i){super(e),this.root.push(new be({val:_l(i)}))}};var dt=class extends oe{constructor(e,i){super(e),this.root.push(new be({val:i}))}};var ri=class extends oe{constructor(e,i){super(e),this.root.push(new be({val:i}))}};var Ee=class extends oe{constructor({name:e,attributes:i,children:a}){super(e),i&&this.root.push(new Be(i)),a&&this.root.push(...a)}};var ni=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val"})}},ii=class extends oe{constructor(e){super("w:jc"),this.root.push(new ni({val:e}))}},ge=class extends oe{constructor(e,{color:i,size:a,space:c,style:l}){super(e),this.root.push(new si({style:l,color:i===void 0?void 0:rt(i),size:a===void 0?void 0:bl(a),space:c===void 0?void 0:El(c)}))}},si=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}},St={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"},ai=class extends et{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ge("w:top",e.top)),e.bottom&&this.root.push(new ge("w:bottom",e.bottom)),e.left&&this.root.push(new ge("w:left",e.left)),e.right&&this.root.push(new ge("w:right",e.right))}},oi=class extends oe{constructor(){super("w:pBdr");let e=new ge("w:bottom",{color:"auto",space:1,style:St.SINGLE,size:6});this.root.push(e)}},ui=class extends oe{constructor({start:e,end:i,left:a,right:c,hanging:l,firstLine:f}){super("w:ind"),this.root.push(new Be({start:{key:"w:start",value:e===void 0?void 0:Ke(e)},end:{key:"w:end",value:i===void 0?void 0:Ke(i)},left:{key:"w:left",value:a===void 0?void 0:Ke(a)},right:{key:"w:right",value:c===void 0?void 0:Ke(c)},hanging:{key:"w:hanging",value:l===void 0?void 0:Ae(l)},firstLine:{key:"w:firstLine",value:f===void 0?void 0:Ae(f)}}))}},xl=class extends oe{constructor(){super("w:br")}},va={BEGIN:"begin",END:"end",SEPARATE:"separate"},gt=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}},Xe=class extends oe{constructor(e){super("w:fldChar"),this.root.push(new gt({type:va.BEGIN,dirty:e}))}},Ze=class extends oe{constructor(e){super("w:fldChar"),this.root.push(new gt({type:va.SEPARATE,dirty:e}))}},Ye=class extends oe{constructor(e){super("w:fldChar"),this.root.push(new gt({type:va.END,dirty:e}))}};var nt={DEFAULT:"default",PRESERVE:"preserve"},Me=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{space:"xml:space"})}},ci=class extends oe{constructor(){super("w:instrText"),this.root.push(new Me({space:nt.PRESERVE})),this.root.push("PAGE")}},li=class extends oe{constructor(){super("w:instrText"),this.root.push(new Me({space:nt.PRESERVE})),this.root.push("NUMPAGES")}},hi=class extends oe{constructor(){super("w:instrText"),this.root.push(new Me({space:nt.PRESERVE})),this.root.push("SECTIONPAGES")}},fi=class extends oe{constructor(){super("w:instrText"),this.root.push(new Me({space:nt.PRESERVE})),this.root.push("SECTION")}},di=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}},Wt=class extends oe{constructor({fill:e,color:i,type:a}){super("w:shd"),this.root.push(new di({fill:e===void 0?void 0:rt(e),color:i===void 0?void 0:rt(i),type:a}))}};var pi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},Tl={DOT:"dot"},mi=class extends oe{constructor(e){super("w:em"),this.root.push(new be({val:e}))}},wi=class extends mi{constructor(e=Tl.DOT){super(e)}};var gi=class extends oe{constructor(e){super("w:spacing"),this.root.push(new be({val:Ke(e)}))}},yi=class extends oe{constructor(e){super("w:color"),this.root.push(new be({val:rt(e)}))}},vi=class extends oe{constructor(e){super("w:highlight"),this.root.push(new be({val:e}))}},_i=class extends oe{constructor(e){super("w:highlightCs"),this.root.push(new be({val:e}))}},Al=r=>new Ee({name:"w:lang",attributes:{value:{key:"w:val",value:r.value},eastAsia:{key:"w:eastAsia",value:r.eastAsia},bidirectional:{key:"w:bidi",value:r.bidirectional}}}),zt=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}},pt=class extends oe{constructor(e,i){if(super("w:rFonts"),typeof e=="string"){let a=e;this.root.push(new zt({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:i}))}else{let a=e;this.root.push(new zt(a))}}},Zu=class extends oe{constructor(e){super("w:vertAlign"),this.root.push(new be({val:e}))}},bi=class extends Zu{constructor(){super("superscript")}},Ei=class extends Zu{constructor(){super("subscript")}},Sl={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"},xi=class extends oe{constructor(e=Sl.SINGLE,i){super("w:u"),this.root.push(new be({val:e,color:i===void 0?void 0:rt(i)}))}};var yt=class extends et{constructor(e){var i,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new we("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new we("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new we("w:bCs",(i=e.boldComplexScript)!=null?i:e.bold)),e.italics!==void 0&&this.push(new we("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new we("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new xi(e.underline.type,e.underline.color)),e.effect&&this.push(new dt("w:effect",e.effect)),e.emphasisMark&&this.push(new wi(e.emphasisMark.type)),e.color&&this.push(new yi(e.color)),e.kern&&this.push(new ft("w:kern",e.kern)),e.position&&this.push(new dt("w:position",e.position)),e.size!==void 0&&this.push(new ft("w:sz",e.size));let c=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;c&&this.push(new ft("w:szCs",c)),e.rightToLeft!==void 0&&this.push(new we("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new we("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new we("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new we("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new we("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Ei),e.superScript&&this.push(new bi),e.style&&this.push(new dt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new pt(e.font)):"name"in e.font?this.push(new pt(e.font.name,e.font.hint)):this.push(new pt(e.font))),e.highlight&&this.push(new vi(e.highlight));let l=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;l&&this.push(new _i(l)),e.characterSpacing&&this.push(new gi(e.characterSpacing)),e.emboss!==void 0&&this.push(new we("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new we("w:imprint",e.imprint)),e.shading&&this.push(new Wt(e.shading)),e.revision&&this.push(new Ti(e.revision)),e.border&&this.push(new ge("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new we("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new we("w:vanish",e.vanish)),e.specVanish&&this.push(new we("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ri("w:w",e.scale)),e.language&&this.push(Al(e.language)),e.math&&this.push(new we("w:oMath",e.math))}push(e){this.root.push(e)}},Ti=class extends oe{constructor(e){super("w:rPrChange"),this.root.push(new pi({id:e.id,author:e.author,date:e.date})),this.addChildElement(new yt(e))}},Gt=class extends oe{constructor(e){var i;super("w:t"),typeof e=="string"?(this.root.push(new Me({space:nt.PRESERVE})),this.root.push(e)):(this.root.push(new Me({space:(i=e.space)!=null?i:nt.DEFAULT})),this.root.push(e.text))}},Pt={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},vt=class extends oe{constructor(e){if(super("w:r"),le(this,"properties"),this.properties=new yt(e),this.root.push(this.properties),e.break)for(let i=0;i<e.break;i++)this.root.push(new xl);if(e.children)for(let i of e.children){if(typeof i=="string"){switch(i){case Pt.CURRENT:this.root.push(new Xe),this.root.push(new ci),this.root.push(new Ze),this.root.push(new Ye);break;case Pt.TOTAL_PAGES:this.root.push(new Xe),this.root.push(new li),this.root.push(new Ze),this.root.push(new Ye);break;case Pt.TOTAL_PAGES_IN_SECTION:this.root.push(new Xe),this.root.push(new hi),this.root.push(new Ze),this.root.push(new Ye);break;case Pt.CURRENT_SECTION:this.root.push(new Xe),this.root.push(new fi),this.root.push(new Ze),this.root.push(new Ye);break;default:this.root.push(new Gt(i));break}continue}this.root.push(i)}else e.text!==void 0&&this.root.push(new Gt(e.text))}},ke=class extends vt{constructor(e){super(typeof e=="string"?{text:e}:e)}};var Bn={},me={},Un,ru;function Rt(){if(ru)return Un;ru=1,Un=r;function r(e,i){if(!e)throw new Error(i||"Assertion failed")}return r.equal=function(i,a,c){if(i!=a)throw new Error(c||"Assertion failed: "+i+" != "+a)},Un}var nu;function Oe(){if(nu)return me;nu=1;var r=Rt(),e=je();me.inherits=e;function i(O,M){return(O.charCodeAt(M)&64512)!==55296||M<0||M+1>=O.length?!1:(O.charCodeAt(M+1)&64512)===56320}function a(O,M){if(Array.isArray(O))return O.slice();if(!O)return[];var g=[];if(typeof O=="string")if(M){if(M==="hex")for(O=O.replace(/[^a-z0-9]+/ig,""),O.length%2!==0&&(O="0"+O),ee=0;ee<O.length;ee+=2)g.push(parseInt(O[ee]+O[ee+1],16))}else for(var q=0,ee=0;ee<O.length;ee++){var z=O.charCodeAt(ee);z<128?g[q++]=z:z<2048?(g[q++]=z>>6|192,g[q++]=z&63|128):i(O,ee)?(z=65536+((z&1023)<<10)+(O.charCodeAt(++ee)&1023),g[q++]=z>>18|240,g[q++]=z>>12&63|128,g[q++]=z>>6&63|128,g[q++]=z&63|128):(g[q++]=z>>12|224,g[q++]=z>>6&63|128,g[q++]=z&63|128)}else for(ee=0;ee<O.length;ee++)g[ee]=O[ee]|0;return g}me.toArray=a;function c(O){for(var M="",g=0;g<O.length;g++)M+=n(O[g].toString(16));return M}me.toHex=c;function l(O){var M=O>>>24|O>>>8&65280|O<<8&16711680|(O&255)<<24;return M>>>0}me.htonl=l;function f(O,M){for(var g="",q=0;q<O.length;q++){var ee=O[q];M==="little"&&(ee=l(ee)),g+=h(ee.toString(16))}return g}me.toHex32=f;function n(O){return O.length===1?"0"+O:O}me.zero2=n;function h(O){return O.length===7?"0"+O:O.length===6?"00"+O:O.length===5?"000"+O:O.length===4?"0000"+O:O.length===3?"00000"+O:O.length===2?"000000"+O:O.length===1?"0000000"+O:O}me.zero8=h;function A(O,M,g,q){var ee=g-M;r(ee%4===0);for(var z=new Array(ee/4),ne=0,Q=M;ne<z.length;ne++,Q+=4){var ue;q==="big"?ue=O[Q]<<24|O[Q+1]<<16|O[Q+2]<<8|O[Q+3]:ue=O[Q+3]<<24|O[Q+2]<<16|O[Q+1]<<8|O[Q],z[ne]=ue>>>0}return z}me.join32=A;function T(O,M){for(var g=new Array(O.length*4),q=0,ee=0;q<O.length;q++,ee+=4){var z=O[q];M==="big"?(g[ee]=z>>>24,g[ee+1]=z>>>16&255,g[ee+2]=z>>>8&255,g[ee+3]=z&255):(g[ee+3]=z>>>24,g[ee+2]=z>>>16&255,g[ee+1]=z>>>8&255,g[ee]=z&255)}return g}me.split32=T;function S(O,M){return O>>>M|O<<32-M}me.rotr32=S;function k(O,M){return O<<M|O>>>32-M}me.rotl32=k;function x(O,M){return O+M>>>0}me.sum32=x;function I(O,M,g){return O+M+g>>>0}me.sum32_3=I;function b(O,M,g,q){return O+M+g+q>>>0}me.sum32_4=b;function R(O,M,g,q,ee){return O+M+g+q+ee>>>0}me.sum32_5=R;function o(O,M,g,q){var ee=O[M],z=O[M+1],ne=q+z>>>0,Q=(ne<q?1:0)+g+ee;O[M]=Q>>>0,O[M+1]=ne}me.sum64=o;function y(O,M,g,q){var ee=M+q>>>0,z=(ee<M?1:0)+O+g;return z>>>0}me.sum64_hi=y;function m(O,M,g,q){var ee=M+q;return ee>>>0}me.sum64_lo=m;function u(O,M,g,q,ee,z,ne,Q){var ue=0,V=M;V=V+q>>>0,ue+=V<M?1:0,V=V+z>>>0,ue+=V<z?1:0,V=V+Q>>>0,ue+=V<Q?1:0;var D=O+g+ee+ne+ue;return D>>>0}me.sum64_4_hi=u;function E(O,M,g,q,ee,z,ne,Q){var ue=M+q+z+Q;return ue>>>0}me.sum64_4_lo=E;function P(O,M,g,q,ee,z,ne,Q,ue,V){var D=0,$=M;$=$+q>>>0,D+=$<M?1:0,$=$+z>>>0,D+=$<z?1:0,$=$+Q>>>0,D+=$<Q?1:0,$=$+V>>>0,D+=$<V?1:0;var Z=O+g+ee+ne+ue+D;return Z>>>0}me.sum64_5_hi=P;function F(O,M,g,q,ee,z,ne,Q,ue,V){var D=M+q+z+Q+V;return D>>>0}me.sum64_5_lo=F;function W(O,M,g){var q=M<<32-g|O>>>g;return q>>>0}me.rotr64_hi=W;function N(O,M,g){var q=O<<32-g|M>>>g;return q>>>0}me.rotr64_lo=N;function X(O,M,g){return O>>>g}me.shr64_hi=X;function ae(O,M,g){var q=O<<32-g|M>>>g;return q>>>0}return me.shr64_lo=ae,me}var Mn={},iu;function It(){if(iu)return Mn;iu=1;var r=Oe(),e=Rt();function i(){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}return Mn.BlockHash=i,i.prototype.update=function(c,l){if(c=r.toArray(c,l),this.pending?this.pending=this.pending.concat(c):this.pending=c,this.pendingTotal+=c.length,this.pending.length>=this._delta8){c=this.pending;var f=c.length%this._delta8;this.pending=c.slice(c.length-f,c.length),this.pending.length===0&&(this.pending=null),c=r.join32(c,0,c.length-f,this.endian);for(var n=0;n<c.length;n+=this._delta32)this._update(c,n,n+this._delta32)}return this},i.prototype.digest=function(c){return this.update(this._pad()),e(this.pending===null),this._digest(c)},i.prototype._pad=function(){var c=this.pendingTotal,l=this._delta8,f=l-(c+this.padLength)%l,n=new Array(f+this.padLength);n[0]=128;for(var h=1;h<f;h++)n[h]=0;if(c<<=3,this.endian==="big"){for(var A=8;A<this.padLength;A++)n[h++]=0;n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=c>>>24&255,n[h++]=c>>>16&255,n[h++]=c>>>8&255,n[h++]=c&255}else for(n[h++]=c&255,n[h++]=c>>>8&255,n[h++]=c>>>16&255,n[h++]=c>>>24&255,n[h++]=0,n[h++]=0,n[h++]=0,n[h++]=0,A=8;A<this.padLength;A++)n[h++]=0;return n},Mn}var We={},Re={},su;function Yu(){if(su)return Re;su=1;var r=Oe(),e=r.rotr32;function i(T,S,k,x){if(T===0)return a(S,k,x);if(T===1||T===3)return l(S,k,x);if(T===2)return c(S,k,x)}Re.ft_1=i;function a(T,S,k){return T&S^~T&k}Re.ch32=a;function c(T,S,k){return T&S^T&k^S&k}Re.maj32=c;function l(T,S,k){return T^S^k}Re.p32=l;function f(T){return e(T,2)^e(T,13)^e(T,22)}Re.s0_256=f;function n(T){return e(T,6)^e(T,11)^e(T,25)}Re.s1_256=n;function h(T){return e(T,7)^e(T,18)^T>>>3}Re.g0_256=h;function A(T){return e(T,17)^e(T,19)^T>>>10}return Re.g1_256=A,Re}var Hn,au;function Rl(){if(au)return Hn;au=1;var r=Oe(),e=It(),i=Yu(),a=r.rotl32,c=r.sum32,l=r.sum32_5,f=i.ft_1,n=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(A,n),Hn=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(S,k){for(var x=this.W,I=0;I<16;I++)x[I]=S[k+I];for(;I<x.length;I++)x[I]=a(x[I-3]^x[I-8]^x[I-14]^x[I-16],1);var b=this.h[0],R=this.h[1],o=this.h[2],y=this.h[3],m=this.h[4];for(I=0;I<x.length;I++){var u=~~(I/20),E=l(a(b,5),f(u,R,o,y),m,x[I],h[u]);m=y,y=o,o=a(R,30),R=b,b=E}this.h[0]=c(this.h[0],b),this.h[1]=c(this.h[1],R),this.h[2]=c(this.h[2],o),this.h[3]=c(this.h[3],y),this.h[4]=c(this.h[4],m)},A.prototype._digest=function(S){return S==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},Hn}var jn,ou;function Ju(){if(ou)return jn;ou=1;var r=Oe(),e=It(),i=Yu(),a=Rt(),c=r.sum32,l=r.sum32_4,f=r.sum32_5,n=i.ch32,h=i.maj32,A=i.s0_256,T=i.s1_256,S=i.g0_256,k=i.g1_256,x=e.BlockHash,I=[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 b(){if(!(this instanceof b))return new b;x.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}return r.inherits(b,x),jn=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(o,y){for(var m=this.W,u=0;u<16;u++)m[u]=o[y+u];for(;u<m.length;u++)m[u]=l(k(m[u-2]),m[u-7],S(m[u-15]),m[u-16]);var E=this.h[0],P=this.h[1],F=this.h[2],W=this.h[3],N=this.h[4],X=this.h[5],ae=this.h[6],O=this.h[7];for(a(this.k.length===m.length),u=0;u<m.length;u++){var M=f(O,T(N),n(N,X,ae),this.k[u],m[u]),g=c(A(E),h(E,P,F));O=ae,ae=X,X=N,N=c(W,M),W=F,F=P,P=E,E=c(M,g)}this.h[0]=c(this.h[0],E),this.h[1]=c(this.h[1],P),this.h[2]=c(this.h[2],F),this.h[3]=c(this.h[3],W),this.h[4]=c(this.h[4],N),this.h[5]=c(this.h[5],X),this.h[6]=c(this.h[6],ae),this.h[7]=c(this.h[7],O)},b.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},jn}var Wn,uu;function Il(){if(uu)return Wn;uu=1;var r=Oe(),e=Ju();function i(){if(!(this instanceof i))return new i;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(i,e),Wn=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(c){return c==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")},Wn}var zn,cu;function Qu(){if(cu)return zn;cu=1;var r=Oe(),e=It(),i=Rt(),a=r.rotr64_hi,c=r.rotr64_lo,l=r.shr64_hi,f=r.shr64_lo,n=r.sum64,h=r.sum64_hi,A=r.sum64_lo,T=r.sum64_4_hi,S=r.sum64_4_lo,k=r.sum64_5_hi,x=r.sum64_5_lo,I=e.BlockHash,b=[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 R(){if(!(this instanceof R))return new R;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}r.inherits(R,I),zn=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(g,q){for(var ee=this.W,z=0;z<32;z++)ee[z]=g[q+z];for(;z<ee.length;z+=2){var ne=ae(ee[z-4],ee[z-3]),Q=O(ee[z-4],ee[z-3]),ue=ee[z-14],V=ee[z-13],D=N(ee[z-30],ee[z-29]),$=X(ee[z-30],ee[z-29]),Z=ee[z-32],te=ee[z-31];ee[z]=T(ne,Q,ue,V,D,$,Z,te),ee[z+1]=S(ne,Q,ue,V,D,$,Z,te)}},R.prototype._update=function(g,q){this._prepareBlock(g,q);var ee=this.W,z=this.h[0],ne=this.h[1],Q=this.h[2],ue=this.h[3],V=this.h[4],D=this.h[5],$=this.h[6],Z=this.h[7],te=this.h[8],K=this.h[9],v=this.h[10],w=this.h[11],j=this.h[12],U=this.h[13],C=this.h[14],L=this.h[15];i(this.k.length===ee.length);for(var J=0;J<ee.length;J+=2){var d=C,Y=L,_=F(te,K),t=W(te,K),s=o(te,K,v,w,j),p=y(te,K,v,w,j,U),B=this.k[J],G=this.k[J+1],H=ee[J],re=ee[J+1],se=k(d,Y,_,t,s,p,B,G,H,re),ie=x(d,Y,_,t,s,p,B,G,H,re);d=E(z,ne),Y=P(z,ne),_=m(z,ne,Q,ue,V),t=u(z,ne,Q,ue,V,D);var ce=h(d,Y,_,t),he=A(d,Y,_,t);C=j,L=U,j=v,U=w,v=te,w=K,te=h($,Z,se,ie),K=A(Z,Z,se,ie),$=V,Z=D,V=Q,D=ue,Q=z,ue=ne,z=h(se,ie,ce,he),ne=A(se,ie,ce,he)}n(this.h,0,z,ne),n(this.h,2,Q,ue),n(this.h,4,V,D),n(this.h,6,$,Z),n(this.h,8,te,K),n(this.h,10,v,w),n(this.h,12,j,U),n(this.h,14,C,L)},R.prototype._digest=function(g){return g==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function o(M,g,q,ee,z){var ne=M&q^~M&z;return ne<0&&(ne+=4294967296),ne}function y(M,g,q,ee,z,ne){var Q=g&ee^~g&ne;return Q<0&&(Q+=4294967296),Q}function m(M,g,q,ee,z){var ne=M&q^M&z^q&z;return ne<0&&(ne+=4294967296),ne}function u(M,g,q,ee,z,ne){var Q=g&ee^g&ne^ee&ne;return Q<0&&(Q+=4294967296),Q}function E(M,g){var q=a(M,g,28),ee=a(g,M,2),z=a(g,M,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function P(M,g){var q=c(M,g,28),ee=c(g,M,2),z=c(g,M,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function F(M,g){var q=a(M,g,14),ee=a(M,g,18),z=a(g,M,9),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function W(M,g){var q=c(M,g,14),ee=c(M,g,18),z=c(g,M,9),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function N(M,g){var q=a(M,g,1),ee=a(M,g,8),z=l(M,g,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function X(M,g){var q=c(M,g,1),ee=c(M,g,8),z=f(M,g,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function ae(M,g){var q=a(M,g,19),ee=a(g,M,29),z=l(M,g,6),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function O(M,g){var q=c(M,g,19),ee=c(g,M,29),z=f(M,g,6),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}return zn}var Gn,lu;function Nl(){if(lu)return Gn;lu=1;var r=Oe(),e=Qu();function i(){if(!(this instanceof i))return new i;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(i,e),Gn=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(c){return c==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")},Gn}var hu;function kl(){return hu||(hu=1,We.sha1=Rl(),We.sha224=Il(),We.sha256=Ju(),We.sha384=Nl(),We.sha512=Qu()),We}var Kn={},fu;function Ol(){if(fu)return Kn;fu=1;var r=Oe(),e=It(),i=r.rotl32,a=r.sum32,c=r.sum32_3,l=r.sum32_4,f=e.BlockHash;function n(){if(!(this instanceof n))return new n;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(n,f),Kn.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(R,o){for(var y=this.h[0],m=this.h[1],u=this.h[2],E=this.h[3],P=this.h[4],F=y,W=m,N=u,X=E,ae=P,O=0;O<80;O++){var M=a(i(l(y,h(O,m,u,E),R[S[O]+o],A(O)),x[O]),P);y=P,P=E,E=i(u,10),u=m,m=M,M=a(i(l(F,h(79-O,W,N,X),R[k[O]+o],T(O)),I[O]),ae),F=ae,ae=X,X=i(N,10),N=W,W=M}M=c(this.h[1],u,X),this.h[1]=c(this.h[2],E,ae),this.h[2]=c(this.h[3],P,F),this.h[3]=c(this.h[4],y,W),this.h[4]=c(this.h[0],m,N),this.h[0]=M},n.prototype._digest=function(R){return R==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function h(b,R,o,y){return b<=15?R^o^y:b<=31?R&o|~R&y:b<=47?(R|~o)^y:b<=63?R&y|o&~y:R^(o|~y)}function A(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function T(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var S=[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],k=[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],x=[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];return Kn}var qn,du;function Cl(){if(du)return qn;du=1;var r=Oe(),e=Rt();function i(a,c,l){if(!(this instanceof i))return new i(a,c,l);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(c,l))}return qn=i,i.prototype._init=function(c){c.length>this.blockSize&&(c=new this.Hash().update(c).digest()),e(c.length<=this.blockSize);for(var l=c.length;l<this.blockSize;l++)c.push(0);for(l=0;l<c.length;l++)c[l]^=54;for(this.inner=new this.Hash().update(c),l=0;l<c.length;l++)c[l]^=106;this.outer=new this.Hash().update(c)},i.prototype.update=function(c,l){return this.inner.update(c,l),this},i.prototype.digest=function(c){return this.outer.update(this.inner.digest()),this.outer.digest(c)},qn}var pu;function Dl(){return pu||(pu=1,function(r){var e=r;e.utils=Oe(),e.common=It(),e.sha=kl(),e.ripemd=Ol(),e.hmac=Cl(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(Bn)),Bn}var Ll=Dl(),Pl=la(Ll),Fl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Bl=(r=21)=>{let e="",i=r|0;for(;i--;)e+=Fl[Math.random()*64|0];return e};var ec=(r=0)=>{let e=r;return()=>++e};var Ul=()=>ec(),Ml=()=>ec(),tc=()=>Bl().toLowerCase(),mu=r=>Pl.sha1().update(r instanceof ArrayBuffer?new Uint8Array(r):r).digest("hex");var Hl={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},jl={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},Ai=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{x:"x",y:"y"})}},Si=class extends oe{constructor(){super("wp:simplePos"),this.root.push(new Ai({x:0,y:0}))}},Kt=class extends oe{constructor(e){super("wp:align"),this.root.push(e)}},qt=class extends oe{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}},Ri=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},Ii=class extends oe{constructor(e){if(super("wp:positionH"),this.root.push(new Ri({relativeFrom:e.relative||Hl.PAGE})),e.align)this.root.push(new Kt(e.align));else if(e.offset!==void 0)this.root.push(new qt(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},Ni=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},ki=class extends oe{constructor(e){if(super("wp:positionV"),this.root.push(new Ni({relativeFrom:e.relative||jl.PAGE})),e.align)this.root.push(new Kt(e.align));else if(e.offset!==void 0)this.root.push(new qt(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},Oi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{uri:"uri"})}},Wl=r=>new Ee({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${r.fileName}}`}}}),zl=r=>new Ee({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Wl(r)]}),Gl=r=>new Ee({name:"a:extLst",children:[zl(r)]}),Kl=r=>new Ee({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${r.type==="svg"?r.fallback.fileName:r.fileName}}`},cstate:{key:"cstate",value:"none"}},children:r.type==="svg"?[Gl(r)]:[]}),Ci=class extends oe{constructor(){super("a:srcRect")}},Di=class extends oe{constructor(){super("a:fillRect")}},Li=class extends oe{constructor(){super("a:stretch"),this.root.push(new Di)}},Pi=class extends oe{constructor(e){super("pic:blipFill"),this.root.push(Kl(e)),this.root.push(new Ci),this.root.push(new Li)}},Fi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},Bi=class extends oe{constructor(){super("a:picLocks"),this.root.push(new Fi({noChangeAspect:1,noChangeArrowheads:1}))}},Ui=class extends oe{constructor(){super("pic:cNvPicPr"),this.root.push(new Bi)}},rc=(r,e)=>new Ee({name:"a:hlinkClick",attributes:jt(De({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})}),Mi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},Hi=class extends oe{constructor(){super("pic:cNvPr"),this.root.push(new Mi({id:0,name:"",descr:""}))}prepForXml(e){for(let i=e.stack.length-1;i>=0;i--){let a=e.stack[i];if(a instanceof it){this.root.push(rc(a.linkId,!1));break}}return super.prepForXml(e)}},ji=class extends oe{constructor(){super("pic:nvPicPr"),this.root.push(new Hi),this.root.push(new Ui)}},Wi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{xmlns:"xmlns:pic"})}},zi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{cx:"cx",cy:"cy"})}},Gi=class extends oe{constructor(e,i){super("a:ext"),le(this,"attributes"),this.attributes=new zi({cx:e,cy:i}),this.root.push(this.attributes)}},Ki=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{x:"x",y:"y"})}},qi=class extends oe{constructor(){super("a:off"),this.root.push(new Ki({x:0,y:0}))}},Vi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},$i=class extends oe{constructor(e){var i,a;super("a:xfrm"),le(this,"extents"),this.root.push(new Vi({flipVertical:(i=e.flip)==null?void 0:i.vertical,flipHorizontal:(a=e.flip)==null?void 0:a.horizontal,rotation:e.rotation})),this.extents=new Gi(e.emus.x,e.emus.y),this.root.push(new qi),this.root.push(this.extents)}},nc=()=>new Ee({name:"a:noFill"}),ql=r=>new Ee({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),Vl=r=>new Ee({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),wu=r=>new Ee({name:"a:solidFill",children:[r.type==="rgb"?ql(r):Vl(r)]}),$l=r=>new Ee({name:"a:ln",attributes:{width:{key:"w",value:r.width},cap:{key:"cap",value:r.cap},compoundLine:{key:"cmpd",value:r.compoundLine},align:{key:"algn",value:r.align}},children:[r.type==="noFill"?nc():r.solidFillType==="rgb"?wu({type:"rgb",value:r.value}):wu({type:"scheme",value:r.value})]}),Xi=class extends oe{constructor(){super("a:avLst")}},Zi=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{prst:"prst"})}},Yi=class extends oe{constructor(){super("a:prstGeom"),this.root.push(new Zi({prst:"rect"})),this.root.push(new Xi)}},Ji=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{bwMode:"bwMode"})}},Qi=class extends oe{constructor({outline:e,transform:i}){super("pic:spPr"),le(this,"form"),this.root.push(new Ji({bwMode:"auto"})),this.form=new $i(i),this.root.push(this.form),this.root.push(new Yi),e&&(this.root.push(nc()),this.root.push($l(e)))}},es=class extends oe{constructor({mediaData:e,transform:i,outline:a}){super("pic:pic"),this.root.push(new Wi({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new ji),this.root.push(new Pi(e)),this.root.push(new Qi({transform:i,outline:a}))}},ts=class extends oe{constructor({mediaData:e,transform:i,outline:a}){super("a:graphicData"),le(this,"pic"),this.root.push(new Oi({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new es({mediaData:e,transform:i,outline:a}),this.root.push(this.pic)}},rs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{a:"xmlns:a"})}},Vt=class extends oe{constructor({mediaData:e,transform:i,outline:a}){super("a:graphic"),le(this,"data"),this.root.push(new rs({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new ts({mediaData:e,transform:i,outline:a}),this.root.push(this.data)}},Ft={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},Xl={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"},$t=class extends oe{constructor(){super("wp:wrapNone")}},ns=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}},is=class extends oe{constructor(e,i={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new ns({wrapText:e.side||Xl.BOTH_SIDES,distT:i.top,distB:i.bottom,distL:i.left,distR:i.right}))}},ss=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{distT:"distT",distB:"distB"})}},as=class extends oe{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new ss({distT:e.top,distB:e.bottom}))}},os=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{distT:"distT",distB:"distB"})}},us=class extends oe{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new os({distT:e.top,distB:e.bottom}))}},Xt=class extends oe{constructor({name:e,description:i,title:a}={name:"",description:"",title:""}){super("wp:docPr"),le(this,"docPropertiesUniqueNumericId",Ul()),this.root.push(new Be({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:i},title:{key:"title",value:a}}))}prepForXml(e){for(let i=e.stack.length-1;i>=0;i--){let a=e.stack[i];if(a instanceof it){this.root.push(rc(a.linkId,!0));break}}return super.prepForXml(e)}},ic=({top:r,right:e,bottom:i,left:a})=>new Ee({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:e},bottom:{key:"b",value:i},left:{key:"l",value:a}}}),cs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{cx:"cx",cy:"cy"})}},Zt=class extends oe{constructor(e,i){super("wp:extent"),le(this,"attributes"),this.attributes=new cs({cx:e,cy:i}),this.root.push(this.attributes)}},ls=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},hs=class extends oe{constructor(){super("a:graphicFrameLocks"),this.root.push(new ls({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},Yt=class extends oe{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new hs)}},fs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},ds=class extends oe{constructor({mediaData:e,transform:i,drawingOptions:a}){super("wp:anchor");let c=De({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},a.floating);if(this.root.push(new fs({distT:c.margins&&c.margins.top||0,distB:c.margins&&c.margins.bottom||0,distL:c.margins&&c.margins.left||0,distR:c.margins&&c.margins.right||0,simplePos:"0",allowOverlap:c.allowOverlap===!0?"1":"0",behindDoc:c.behindDocument===!0?"1":"0",locked:c.lockAnchor===!0?"1":"0",layoutInCell:c.layoutInCell===!0?"1":"0",relativeHeight:c.zIndex?c.zIndex:i.emus.y})),this.root.push(new Si),this.root.push(new Ii(c.horizontalPosition)),this.root.push(new ki(c.verticalPosition)),this.root.push(new Zt(i.emus.x,i.emus.y)),this.root.push(ic({top:0,right:0,bottom:0,left:0})),a.floating!==void 0&&a.floating.wrap!==void 0)switch(a.floating.wrap.type){case Ft.SQUARE:this.root.push(new is(a.floating.wrap,a.floating.margins));break;case Ft.TIGHT:this.root.push(new as(a.floating.margins));break;case Ft.TOP_AND_BOTTOM:this.root.push(new us(a.floating.margins));break;case Ft.NONE:default:this.root.push(new $t)}else this.root.push(new $t);this.root.push(new Xt(a.docProperties)),this.root.push(new Yt),this.root.push(new Vt({mediaData:e,transform:i,outline:a.outline}))}},Zl=({mediaData:r,transform:e,docProperties:i,outline:a})=>{var c,l,f,n;return new Ee({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new Zt(e.emus.x,e.emus.y),ic(a?{top:((c=a.width)!=null?c:9525)*2,right:((l=a.width)!=null?l:9525)*2,bottom:((f=a.width)!=null?f:9525)*2,left:((n=a.width)!=null?n:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Xt(i),new Yt,new Vt({mediaData:r,transform:e,outline:a})]})},ps=class extends oe{constructor(e,i={}){super("w:drawing"),i.floating?this.root.push(new ds({mediaData:e,transform:e.transformation,drawingOptions:i})):this.root.push(Zl({mediaData:e,transform:e.transformation,docProperties:i.docProperties,outline:i.outline}))}},Yl=r=>{if(typeof atob=="function"){let e=";base64,",i=r.indexOf(e),a=i===-1?0:i+e.length;return new Uint8Array(atob(r.substring(a)).split("").map(c=>c.charCodeAt(0)))}else{let e=require("buffer");return new e.Buffer(r,"base64")}},Jl=r=>typeof r=="string"?Yl(r):r,Vn=(r,e)=>({data:Jl(r.data),fileName:e,transformation:{pixels:{x:Math.round(r.transformation.width),y:Math.round(r.transformation.height)},emus:{x:Math.round(r.transformation.width*9525),y:Math.round(r.transformation.height*9525)},flip:r.transformation.flip,rotation:r.transformation.rotation?r.transformation.rotation*6e4:void 0}}),Jt=class extends vt{constructor(e){super({}),le(this,"imageData");let a=`${mu(e.data)}.${e.type}`;this.imageData=e.type==="svg"?jt(De({type:e.type},Vn(e,a)),{fallback:De({type:e.fallback.type},Vn(jt(De({},e.fallback),{transformation:e.transformation}),`${mu(e.fallback.data)}.${e.fallback.type}`))}):De({type:e.type},Vn(e,a));let c=new ps(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(c)}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}};var ms=class extends oe{constructor(){super("w:pageBreakBefore")}};var ws=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}},gs=class extends oe{constructor(e){super("w:spacing"),this.root.push(new ws(e))}};var Bt=class extends oe{constructor(e){super("w:pStyle"),this.root.push(new be({val:e}))}},ys=class extends oe{constructor(e){super("w:tabs");for(let i of e)this.root.push(new _s(i))}},gu={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};var vs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}},_s=class extends oe{constructor({type:e,position:i,leader:a}){super("w:tab"),this.root.push(new vs({val:e,pos:i,leader:a}))}},mt=class extends oe{constructor(e,i){super("w:numPr"),this.root.push(new bs(i)),this.root.push(new Es(e))}},bs=class extends oe{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new be({val:e}))}},Es=class extends oe{constructor(e){super("w:numId"),this.root.push(new be({val:typeof e=="string"?`{${e}}`:e}))}},xs=class extends oe{constructor(){super(...arguments),le(this,"fileChild",Symbol())}},Ts=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}},Ql={EXTERNAL:"External"},As=class extends oe{constructor(e,i,a,c){super("Relationship"),this.root.push(new Ts({id:e,type:i,target:a,targetMode:c}))}},Ss=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}};var it=class extends oe{constructor(e,i,a){super("w:hyperlink"),le(this,"linkId"),this.linkId=i;let c={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},l=new Ss(c);this.root.push(l),e.forEach(f=>{this.root.push(f)})}},Qt=class extends it{constructor(e){super(e.children,tc(),e.anchor)}},_t=class extends oe{constructor(e){super("w:externalHyperlink"),this.options=e}},Rs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"w:id",name:"w:name"})}},Is=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"w:id"})}},Ns=class{constructor(e){le(this,"bookmarkUniqueNumericId",Ml()),le(this,"start"),le(this,"children"),le(this,"end");let i=this.bookmarkUniqueNumericId();this.start=new ks(e.id,i),this.children=e.children,this.end=new Os(i)}},ks=class extends oe{constructor(e,i){super("w:bookmarkStart");let a=new Rs({name:e,id:i});this.root.push(a)}},Os=class extends oe{constructor(e){super("w:bookmarkEnd");let i=new Is({id:e});this.root.push(i)}},Cs=class extends oe{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new be({val:e}))}};var Ds=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{verticalAlign:"w:val"})}},Ls=class extends oe{constructor(e){super("w:vAlign"),this.root.push(new Ds({verticalAlign:e}))}},Ps=class extends oe{constructor({space:e,count:i,separate:a,equalWidth:c,children:l}){super("w:cols"),this.root.push(new Be({space:{key:"w:space",value:e===void 0?void 0:Ae(e)},count:{key:"w:num",value:i===void 0?void 0:Ue(i)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:c}})),!c&&l&&l.forEach(f=>this.addChildElement(f))}};var Fs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}},Bs=class extends oe{constructor(e,i,a){super("w:docGrid"),this.root.push(new Fs({type:a,linePitch:Ue(e),charSpace:i?Ue(i):void 0}))}},Ht={DEFAULT:"default",FIRST:"first",EVEN:"even"},Us=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{type:"w:type",id:"r:id"})}},yu={HEADER:"w:headerReference",FOOTER:"w:footerReference"},wt=class extends oe{constructor(e,i){super(e),this.root.push(new Us({type:i.type||Ht.DEFAULT,id:`rId${i.id}`}))}};var eh=({countBy:r,start:e,restart:i,distance:a})=>new Ee({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:Ue(r)},start:{key:"w:start",value:e===void 0?void 0:Ue(e)},restart:{key:"w:restart",value:i},distance:{key:"w:distance",value:a===void 0?void 0:Ae(a)}}});var er=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},Ms=class extends et{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new er({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new er({})),e.pageBorderTop&&this.root.push(new ge("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ge("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ge("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ge("w:right",e.pageBorderRight))}},Hs=class extends oe{constructor(e,i,a,c,l,f,n){super("w:pgMar"),this.root.push(new Be({top:{key:"w:top",value:Ke(e)},right:{key:"w:right",value:Ae(i)},bottom:{key:"w:bottom",value:Ke(a)},left:{key:"w:left",value:Ae(c)},header:{key:"w:header",value:Ae(l)},footer:{key:"w:footer",value:Ae(f)},gutter:{key:"w:gutter",value:Ae(n)}}))}};var js=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}},Ws=class extends oe{constructor({start:e,formatType:i,separator:a}){super("w:pgNumType"),this.root.push(new js({start:e===void 0?void 0:Ue(e),formatType:i,separator:a}))}},sc={PORTRAIT:"portrait",LANDSCAPE:"landscape"},zs=class extends oe{constructor(e,i,a){super("w:pgSz");let c=a===sc.LANDSCAPE,l=Ae(e),f=Ae(i);this.root.push(new Be({width:{key:"w:w",value:c?f:l},height:{key:"w:h",value:c?l:f},orientation:{key:"w:orient",value:a}}))}};var Gs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val"})}},Ks=class extends oe{constructor(e){super("w:textDirection"),this.root.push(new Gs({val:e}))}};var qs=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val"})}},Vs=class extends oe{constructor(e){super("w:type"),this.root.push(new qs({val:e}))}},ze={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},$n={WIDTH:11906,HEIGHT:16838,ORIENTATION:sc.PORTRAIT},$s=class extends oe{constructor({page:{size:{width:e=$n.WIDTH,height:i=$n.HEIGHT,orientation:a=$n.ORIENTATION}={},margin:{top:c=ze.TOP,right:l=ze.RIGHT,bottom:f=ze.BOTTOM,left:n=ze.LEFT,header:h=ze.HEADER,footer:A=ze.FOOTER,gutter:T=ze.GUTTER}={},pageNumbers:S={},borders:k,textDirection:x}={},grid:{linePitch:I=360,charSpace:b,type:R}={},headerWrapperGroup:o={},footerWrapperGroup:y={},lineNumbers:m,titlePage:u,verticalAlign:E,column:P,type:F}={}){super("w:sectPr"),this.addHeaderFooterGroup(yu.HEADER,o),this.addHeaderFooterGroup(yu.FOOTER,y),F&&this.root.push(new Vs(F)),this.root.push(new zs(e,i,a)),this.root.push(new Hs(c,l,f,n,h,A,T)),k&&this.root.push(new Ms(k)),m&&this.root.push(eh(m)),this.root.push(new Ws(S)),P&&this.root.push(new Ps(P)),E&&this.root.push(new Ls(E)),u!==void 0&&this.root.push(new we("w:titlePg",u)),x&&this.root.push(new Ks(x)),this.root.push(new Bs(I,b,R))}addHeaderFooterGroup(e,i){i.default&&this.root.push(new wt(e,{type:Ht.DEFAULT,id:i.default.View.ReferenceId})),i.first&&this.root.push(new wt(e,{type:Ht.FIRST,id:i.first.View.ReferenceId})),i.even&&this.root.push(new wt(e,{type:Ht.EVEN,id:i.even.View.ReferenceId}))}},Xs=class extends oe{constructor(){super("w:body"),le(this,"sections",[])}addSection(e){let i=this.sections.pop();this.root.push(this.createSectionParagraph(i)),this.sections.push(new $s(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){let i=new He({}),a=new bt({});return a.push(e),i.addChildElement(a),i}};var vu={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Zs=class extends fe{constructor(e,i){super(De({Ignorable:i},Object.fromEntries(e.map(a=>[a,vu[a]])))),le(this,"xmlKeys",De({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(vu).map(a=>[a,`xmlns:${a}`]))))}},Ys=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},Js=class extends oe{constructor(e){super("w:background"),this.root.push(new Ys({color:e.color===void 0?void 0:rt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:tu(e.themeShade),themeTint:e.themeTint===void 0?void 0:tu(e.themeTint)}))}},Qs=class extends oe{constructor(e){super("w:document"),le(this,"body"),this.root.push(new Zs(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new Xs,e.background&&this.root.push(new Js(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},ea=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{xmlns:"xmlns"})}},ta=class extends oe{constructor(){super("Relationships"),this.root.push(new ea({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,i,a,c){let l=new As(`rId${e}`,i,a,c);return this.root.push(l),l}get RelationshipCount(){return this.root.length-1}},ra=class{constructor(e){le(this,"document"),le(this,"relationships"),this.document=new Qs(e),this.relationships=new ta}get View(){return this.document}get Relationships(){return this.relationships}},na=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{val:"w:val"})}},ia=class extends oe{constructor(){super("w:wordWrap"),this.root.push(new na({val:0}))}};var th=r=>{var e,i;return new Ee({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:r.anchorLock},dropCap:{key:"w:dropCap",value:r.dropCap},width:{key:"w:w",value:r.width},height:{key:"w:h",value:r.height},x:{key:"w:x",value:r.position?r.position.x:void 0},y:{key:"w:y",value:r.position?r.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:r.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:r.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=r.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(i=r.space)==null?void 0:i.vertical},rule:{key:"w:hRule",value:r.rule},alignmentX:{key:"w:xAlign",value:r.alignment?r.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:r.alignment?r.alignment.y:void 0},lines:{key:"w:lines",value:r.lines},wrap:{key:"w:wrap",value:r.wrap}}})},bt=class extends et{constructor(e){var i,a;if(super("w:pPr"),le(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new Bt(e.heading)),e.bullet&&this.push(new Bt("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new Bt("ListParagraph"))),e.style&&this.push(new Bt(e.style)),e.keepNext!==void 0&&this.push(new we("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new we("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new ms),e.frame&&this.push(th(e.frame)),e.widowControl!==void 0&&this.push(new we("w:widowControl",e.widowControl)),e.bullet&&this.push(new mt(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(i=e.numbering.instance)!=null?i:0}),this.push(new mt(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))):e.numbering===!1&&this.push(new mt(0,0)),e.border&&this.push(new ai(e.border)),e.thematicBreak&&this.push(new oi),e.shading&&this.push(new Wt(e.shading)),e.wordWrap&&this.push(new ia),e.overflowPunctuation&&this.push(new we("w:overflowPunct",e.overflowPunctuation));let c=[...e.rightTabStop!==void 0?[{type:gu.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:gu.LEFT,position:e.leftTabStop}]:[]];c.length>0&&this.push(new ys(c)),e.bidirectional!==void 0&&this.push(new we("w:bidi",e.bidirectional)),e.spacing&&this.push(new gs(e.spacing)),e.indent&&this.push(new ui(e.indent)),e.contextualSpacing!==void 0&&this.push(new we("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new ii(e.alignment)),e.outlineLevel!==void 0&&this.push(new Cs(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new we("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new we("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new yt(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof ra)for(let i of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(i.reference,i.instance);return super.prepForXml(e)}},He=class extends xs{constructor(e){if(super("w:p"),le(this,"properties"),typeof e=="string")return this.properties=new bt({}),this.root.push(this.properties),this.root.push(new ke(e)),this;if(this.properties=new bt(e),this.root.push(this.properties),e.text&&this.root.push(new ke(e.text)),e.children)for(let i of e.children){if(i instanceof Ns){this.root.push(i.start);for(let a of i.children)this.root.push(a);this.root.push(i.end);continue}this.root.push(i)}}prepForXml(e){for(let i of this.root)if(i instanceof _t){let a=this.root.indexOf(i),c=new it(i.options.children,tc());e.viewWrapper.Relationships.createRelationship(c.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",i.options.link,Ql.EXTERNAL),this.root[a]=c}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}};var qe={style:St.NONE,size:0,color:"auto"},Ve={style:St.SINGLE,size:4,color:"auto"},sa=class extends oe{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ge("w:top",e.top)):this.root.push(new ge("w:top",Ve)),e.left?this.root.push(new ge("w:left",e.left)):this.root.push(new ge("w:left",Ve)),e.bottom?this.root.push(new ge("w:bottom",e.bottom)):this.root.push(new ge("w:bottom",Ve)),e.right?this.root.push(new ge("w:right",e.right)):this.root.push(new ge("w:right",Ve)),e.insideHorizontal?this.root.push(new ge("w:insideH",e.insideHorizontal)):this.root.push(new ge("w:insideH",Ve)),e.insideVertical?this.root.push(new ge("w:insideV",e.insideVertical)):this.root.push(new ge("w:insideV",Ve))}};le(sa,"NONE",{top:qe,bottom:qe,left:qe,right:qe,insideHorizontal:qe,insideVertical:qe});var aa=class extends fe{constructor(){super(...arguments),le(this,"xmlKeys",{id:"w:id"})}},oa=class extends oe{constructor(e){super("w:footnoteReference"),this.root.push(new aa({id:e}))}},tr=class extends vt{constructor(e){super({style:"FootnoteReference"}),this.root.push(new oa(e))}};var rh=wa();function Ut(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xn={exports:{}},_u;function nh(){return _u||(_u=1,function(r,e){(function(i){r.exports=i()})(function(){return function i(a,c,l){function f(A,T){if(!c[A]){if(!a[A]){var S=typeof Ut=="function"&&Ut;if(!T&&S)return S(A,!0);if(n)return n(A,!0);var k=new Error("Cannot find module '"+A+"'");throw k.code="MODULE_NOT_FOUND",k}var x=c[A]={exports:{}};a[A][0].call(x.exports,function(I){var b=a[A][1][I];return f(b||I)},x,x.exports,i,a,c,l)}return c[A].exports}for(var n=typeof Ut=="function"&&Ut,h=0;h<l.length;h++)f(l[h]);return f}({1:[function(i,a,c){var l=i("./utils"),f=i("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(h){for(var A,T,S,k,x,I,b,R=[],o=0,y=h.length,m=y,u=l.getTypeOf(h)!=="string";o<h.length;)m=y-o,S=u?(A=h[o++],T=o<y?h[o++]:0,o<y?h[o++]:0):(A=h.charCodeAt(o++),T=o<y?h.charCodeAt(o++):0,o<y?h.charCodeAt(o++):0),k=A>>2,x=(3&A)<<4|T>>4,I=1<m?(15&T)<<2|S>>6:64,b=2<m?63&S:64,R.push(n.charAt(k)+n.charAt(x)+n.charAt(I)+n.charAt(b));return R.join("")},c.decode=function(h){var A,T,S,k,x,I,b=0,R=0,o="data:";if(h.substr(0,o.length)===o)throw new Error("Invalid base64 input, it looks like a data url.");var y,m=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&m--,h.charAt(h.length-2)===n.charAt(64)&&m--,m%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=f.uint8array?new Uint8Array(0|m):new Array(0|m);b<h.length;)A=n.indexOf(h.charAt(b++))<<2|(k=n.indexOf(h.charAt(b++)))>>4,T=(15&k)<<4|(x=n.indexOf(h.charAt(b++)))>>2,S=(3&x)<<6|(I=n.indexOf(h.charAt(b++))),y[R++]=A,x!==64&&(y[R++]=T),I!==64&&(y[R++]=S);return y}},{"./support":30,"./utils":32}],2:[function(i,a,c){var l=i("./external"),f=i("./stream/DataWorker"),n=i("./stream/Crc32Probe"),h=i("./stream/DataLengthProbe");function A(T,S,k,x,I){this.compressedSize=T,this.uncompressedSize=S,this.crc32=k,this.compression=x,this.compressedContent=I}A.prototype={getContentWorker:function(){var T=new f(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),S=this;return T.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),T},getCompressedWorker:function(){return new f(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},A.createWorkerFrom=function(T,S,k){return T.pipe(new n).pipe(new h("uncompressedSize")).pipe(S.compressWorker(k)).pipe(new h("compressedSize")).withStreamInfo("compression",S)},a.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(i,a,c){var l=i("./stream/GenericWorker");c.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},c.DEFLATE=i("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(i,a,c){var l=i("./utils"),f=function(){for(var n,h=[],A=0;A<256;A++){n=A;for(var T=0;T<8;T++)n=1&n?3988292384^n>>>1:n>>>1;h[A]=n}return h}();a.exports=function(n,h){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(A,T,S,k){var x=f,I=k+S;A^=-1;for(var b=k;b<I;b++)A=A>>>8^x[255&(A^T[b])];return-1^A}(0|h,n,n.length,0):function(A,T,S,k){var x=f,I=k+S;A^=-1;for(var b=k;b<I;b++)A=A>>>8^x[255&(A^T.charCodeAt(b))];return-1^A}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(i,a,c){c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],6:[function(i,a,c){var l=null;l=typeof Promise!="undefined"?Promise:i("lie"),a.exports={Promise:l}},{lie:37}],7:[function(i,a,c){var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",f=i("pako"),n=i("./utils"),h=i("./stream/GenericWorker"),A=l?"uint8array":"array";function T(S,k){h.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=k,this.meta={}}c.magic="\b\0",n.inherits(T,h),T.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(A,S.data),!1)},T.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},T.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},T.prototype._createPako=function(){this._pako=new f[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(k){S.push({data:k,meta:S.meta})}},c.compressWorker=function(S){return new T("Deflate",S)},c.uncompressWorker=function(){return new T("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(i,a,c){function l(x,I){var b,R="";for(b=0;b<I;b++)R+=String.fromCharCode(255&x),x>>>=8;return R}function f(x,I,b,R,o,y){var m,u,E=x.file,P=x.compression,F=y!==A.utf8encode,W=n.transformTo("string",y(E.name)),N=n.transformTo("string",A.utf8encode(E.name)),X=E.comment,ae=n.transformTo("string",y(X)),O=n.transformTo("string",A.utf8encode(X)),M=N.length!==E.name.length,g=O.length!==X.length,q="",ee="",z="",ne=E.dir,Q=E.date,ue={crc32:0,compressedSize:0,uncompressedSize:0};I&&!b||(ue.crc32=x.crc32,ue.compressedSize=x.compressedSize,ue.uncompressedSize=x.uncompressedSize);var V=0;I&&(V|=8),F||!M&&!g||(V|=2048);var D=0,$=0;ne&&(D|=16),o==="UNIX"?($=798,D|=function(te,K){var v=te;return te||(v=K?16893:33204),(65535&v)<<16}(E.unixPermissions,ne)):($=20,D|=function(te){return 63&(te||0)}(E.dosPermissions)),m=Q.getUTCHours(),m<<=6,m|=Q.getUTCMinutes(),m<<=5,m|=Q.getUTCSeconds()/2,u=Q.getUTCFullYear()-1980,u<<=4,u|=Q.getUTCMonth()+1,u<<=5,u|=Q.getUTCDate(),M&&(ee=l(1,1)+l(T(W),4)+N,q+="up"+l(ee.length,2)+ee),g&&(z=l(1,1)+l(T(ae),4)+O,q+="uc"+l(z.length,2)+z);var Z="";return Z+=`
21
- \0`,Z+=l(V,2),Z+=P.magic,Z+=l(m,2),Z+=l(u,2),Z+=l(ue.crc32,4),Z+=l(ue.compressedSize,4),Z+=l(ue.uncompressedSize,4),Z+=l(W.length,2),Z+=l(q.length,2),{fileRecord:S.LOCAL_FILE_HEADER+Z+W+q,dirRecord:S.CENTRAL_FILE_HEADER+l($,2)+Z+l(ae.length,2)+"\0\0\0\0"+l(D,4)+l(R,4)+W+q+ae}}var n=i("../utils"),h=i("../stream/GenericWorker"),A=i("../utf8"),T=i("../crc32"),S=i("../signature");function k(x,I,b,R){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=b,this.encodeFileName=R,this.streamFiles=x,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(k,h),k.prototype.push=function(x){var I=x.meta.percent||0,b=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(x):(this.bytesWritten+=x.data.length,h.prototype.push.call(this,{data:x.data,meta:{currentFile:this.currentFile,percent:b?(I+100*(b-R-1))/b:100}}))},k.prototype.openedSource=function(x){this.currentSourceOffset=this.bytesWritten,this.currentFile=x.file.name;var I=this.streamFiles&&!x.file.dir;if(I){var b=f(x,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(x){this.accumulate=!1;var I=this.streamFiles&&!x.file.dir,b=f(x,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),I)this.push({data:function(R){return S.DATA_DESCRIPTOR+l(R.crc32,4)+l(R.compressedSize,4)+l(R.uncompressedSize,4)}(x),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var x=this.bytesWritten,I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var b=this.bytesWritten-x,R=function(o,y,m,u,E){var P=n.transformTo("string",E(u));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(o,2)+l(o,2)+l(y,4)+l(m,4)+l(P.length,2)+P}(this.dirRecords.length,b,x,this.zipComment,this.encodeFileName);this.push({data:R,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(x){this._sources.push(x);var I=this;return x.on("data",function(b){I.processChunk(b)}),x.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),x.on("error",function(b){I.error(b)}),this},k.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(x){var I=this._sources;if(!h.prototype.error.call(this,x))return!1;for(var b=0;b<I.length;b++)try{I[b].error(x)}catch{}return!0},k.prototype.lock=function(){h.prototype.lock.call(this);for(var x=this._sources,I=0;I<x.length;I++)x[I].lock()},a.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(i,a,c){var l=i("../compressions"),f=i("./ZipFileWorker");c.generateWorker=function(n,h,A){var T=new f(h.streamFiles,A,h.platform,h.encodeFileName),S=0;try{n.forEach(function(k,x){S++;var I=function(y,m){var u=y||m,E=l[u];if(!E)throw new Error(u+" is not a valid compression method !");return E}(x.options.compression,h.compression),b=x.options.compressionOptions||h.compressionOptions||{},R=x.dir,o=x.date;x._compressWorker(I,b).withStreamInfo("file",{name:k,dir:R,date:o,comment:x.comment||"",unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions}).pipe(T)}),T.entriesCount=S}catch(k){T.error(k)}return T}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(i,a,c){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 f=new l;for(var n in this)typeof this[n]!="function"&&(f[n]=this[n]);return f}}(l.prototype=i("./object")).loadAsync=i("./load"),l.support=i("./support"),l.defaults=i("./defaults"),l.version="3.10.1",l.loadAsync=function(f,n){return new l().loadAsync(f,n)},l.external=i("./external"),a.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(i,a,c){var l=i("./utils"),f=i("./external"),n=i("./utf8"),h=i("./zipEntries"),A=i("./stream/Crc32Probe"),T=i("./nodejsUtils");function S(k){return new f.Promise(function(x,I){var b=k.decompressed.getContentWorker().pipe(new A);b.on("error",function(R){I(R)}).on("end",function(){b.streamInfo.crc32!==k.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):x()}).resume()})}a.exports=function(k,x){var I=this;return x=l.extend(x||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),T.isNode&&T.isStream(k)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",k,!0,x.optimizedBinaryString,x.base64).then(function(b){var R=new h(x);return R.load(b),R}).then(function(b){var R=[f.Promise.resolve(b)],o=b.files;if(x.checkCRC32)for(var y=0;y<o.length;y++)R.push(S(o[y]));return f.Promise.all(R)}).then(function(b){for(var R=b.shift(),o=R.files,y=0;y<o.length;y++){var m=o[y],u=m.fileNameStr,E=l.resolve(m.fileNameStr);I.file(E,m.decompressed,{binary:!0,optimizedBinaryString:!0,date:m.date,dir:m.dir,comment:m.fileCommentStr.length?m.fileCommentStr:null,unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions,createFolders:x.createFolders}),m.dir||(I.file(E).unsafeOriginalName=u)}return R.zipComment.length&&(I.comment=R.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(i,a,c){var l=i("../utils"),f=i("../stream/GenericWorker");function n(h,A){f.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(A)}l.inherits(n,f),n.prototype._bindStream=function(h){var A=this;(this._stream=h).pause(),h.on("data",function(T){A.push({data:T,meta:{percent:0}})}).on("error",function(T){A.isPaused?this.generatedError=T:A.error(T)}).on("end",function(){A.isPaused?A._upstreamEnded=!0:A.end()})},n.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(i,a,c){var l=i("readable-stream").Readable;function f(n,h,A){l.call(this,h),this._helper=n;var T=this;n.on("data",function(S,k){T.push(S)||T._helper.pause(),A&&A(k)}).on("error",function(S){T.emit("error",S)}).on("end",function(){T.push(null)})}i("../utils").inherits(f,l),f.prototype._read=function(){this._helper.resume()},a.exports=f},{"../utils":32,"readable-stream":16}],14:[function(i,a,c){a.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(l,f){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,f);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,f)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var f=new Buffer(l);return f.fill(0),f},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(i,a,c){function l(E,P,F){var W,N=n.getTypeOf(P),X=n.extend(F||{},T);X.date=X.date||new Date,X.compression!==null&&(X.compression=X.compression.toUpperCase()),typeof X.unixPermissions=="string"&&(X.unixPermissions=parseInt(X.unixPermissions,8)),X.unixPermissions&&16384&X.unixPermissions&&(X.dir=!0),X.dosPermissions&&16&X.dosPermissions&&(X.dir=!0),X.dir&&(E=o(E)),X.createFolders&&(W=R(E))&&y.call(this,W,!0);var ae=N==="string"&&X.binary===!1&&X.base64===!1;F&&F.binary!==void 0||(X.binary=!ae),(P instanceof S&&P.uncompressedSize===0||X.dir||!P||P.length===0)&&(X.base64=!1,X.binary=!0,P="",X.compression="STORE",N="string");var O=null;O=P instanceof S||P instanceof h?P:I.isNode&&I.isStream(P)?new b(E,P):n.prepareContent(E,P,X.binary,X.optimizedBinaryString,X.base64);var M=new k(E,O,X);this.files[E]=M}var f=i("./utf8"),n=i("./utils"),h=i("./stream/GenericWorker"),A=i("./stream/StreamHelper"),T=i("./defaults"),S=i("./compressedObject"),k=i("./zipObject"),x=i("./generate"),I=i("./nodejsUtils"),b=i("./nodejs/NodejsStreamInputAdapter"),R=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var P=E.lastIndexOf("/");return 0<P?E.substring(0,P):""},o=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},y=function(E,P){return P=P!==void 0?P:T.createFolders,E=o(E),this.files[E]||l.call(this,E,null,{dir:!0,createFolders:P}),this.files[E]};function m(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var u={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var P,F,W;for(P in this.files)W=this.files[P],(F=P.slice(this.root.length,P.length))&&P.slice(0,this.root.length)===this.root&&E(F,W)},filter:function(E){var P=[];return this.forEach(function(F,W){E(F,W)&&P.push(W)}),P},file:function(E,P,F){if(arguments.length!==1)return E=this.root+E,l.call(this,E,P,F),this;if(m(E)){var W=E;return this.filter(function(X,ae){return!ae.dir&&W.test(X)})}var N=this.files[this.root+E];return N&&!N.dir?N:null},folder:function(E){if(!E)return this;if(m(E))return this.filter(function(N,X){return X.dir&&E.test(N)});var P=this.root+E,F=y.call(this,P),W=this.clone();return W.root=F.name,W},remove:function(E){E=this.root+E;var P=this.files[E];if(P||(E.slice(-1)!=="/"&&(E+="/"),P=this.files[E]),P&&!P.dir)delete this.files[E];else for(var F=this.filter(function(N,X){return X.name.slice(0,E.length)===E}),W=0;W<F.length;W++)delete this.files[F[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var P,F={};try{if((F=n.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:f.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");n.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var W=F.comment||this.comment||"";P=x.generateWorker(this,F,W)}catch(N){(P=new h("error")).error(N)}return new A(P,F.type||"string",F.mimeType)},generateAsync:function(E,P){return this.generateInternalStream(E).accumulate(P)},generateNodeStream:function(E,P){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(P)}};a.exports=u},{"./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(i,a,c){a.exports=i("stream")},{stream:void 0}],17:[function(i,a,c){var l=i("./DataReader");function f(n){l.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}i("../utils").inherits(f,l),f.prototype.byteAt=function(n){return this.data[this.zero+n]},f.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),A=n.charCodeAt(1),T=n.charCodeAt(2),S=n.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===h&&this.data[k+1]===A&&this.data[k+2]===T&&this.data[k+3]===S)return k-this.zero;return-1},f.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),A=n.charCodeAt(1),T=n.charCodeAt(2),S=n.charCodeAt(3),k=this.readData(4);return h===k[0]&&A===k[1]&&T===k[2]&&S===k[3]},f.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},a.exports=f},{"../utils":32,"./DataReader":18}],18:[function(i,a,c){var l=i("../utils");function f(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}f.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,A=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)A=(A<<8)+this.byteAt(h);return this.index+=n,A},readString:function(n){return l.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},a.exports=f},{"../utils":32}],19:[function(i,a,c){var l=i("./Uint8ArrayReader");function f(n){l.call(this,n)}i("../utils").inherits(f,l),f.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},a.exports=f},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(i,a,c){var l=i("./DataReader");function f(n){l.call(this,n)}i("../utils").inherits(f,l),f.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},f.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},f.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},f.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},a.exports=f},{"../utils":32,"./DataReader":18}],21:[function(i,a,c){var l=i("./ArrayReader");function f(n){l.call(this,n)}i("../utils").inherits(f,l),f.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},a.exports=f},{"../utils":32,"./ArrayReader":17}],22:[function(i,a,c){var l=i("../utils"),f=i("../support"),n=i("./ArrayReader"),h=i("./StringReader"),A=i("./NodeBufferReader"),T=i("./Uint8ArrayReader");a.exports=function(S){var k=l.getTypeOf(S);return l.checkSupport(k),k!=="string"||f.uint8array?k==="nodebuffer"?new A(S):f.uint8array?new T(l.transformTo("uint8array",S)):new n(l.transformTo("array",S)):new h(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(i,a,c){c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(i,a,c){var l=i("./GenericWorker"),f=i("../utils");function n(h){l.call(this,"ConvertWorker to "+h),this.destType=h}f.inherits(n,l),n.prototype.processChunk=function(h){this.push({data:f.transformTo(this.destType,h.data),meta:h.meta})},a.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(i,a,c){var l=i("./GenericWorker"),f=i("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}i("../utils").inherits(n,l),n.prototype.processChunk=function(h){this.streamInfo.crc32=f(h.data,this.streamInfo.crc32||0),this.push(h)},a.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(i,a,c){var l=i("../utils"),f=i("./GenericWorker");function n(h){f.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}l.inherits(n,f),n.prototype.processChunk=function(h){if(h){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+h.data.length}f.prototype.processChunk.call(this,h)},a.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(i,a,c){var l=i("../utils"),f=i("./GenericWorker");function n(h){f.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(T){A.dataIsReady=!0,A.data=T,A.max=T&&T.length||0,A.type=l.getTypeOf(T),A.isPaused||A._tickAndRepeat()},function(T){A.error(T)})}l.inherits(n,f),n.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,A);break;case"uint8array":h=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":h=this.data.slice(this.index,A)}return this.index=A,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(i,a,c){function l(f){this.name=f||"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(f){this.emit("data",f)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(f){this.emit("error",f)}return!0},error:function(f){return!this.isFinished&&(this.isPaused?this.generatedError=f:(this.isFinished=!0,this.emit("error",f),this.previous&&this.previous.error(f),this.cleanUp()),!0)},on:function(f,n){return this._listeners[f].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(f,n){if(this._listeners[f])for(var h=0;h<this._listeners[f].length;h++)this._listeners[f][h].call(this,n)},pipe:function(f){return f.registerPrevious(this)},registerPrevious:function(f){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=f.streamInfo,this.mergeStreamInfo(),this.previous=f;var n=this;return f.on("data",function(h){n.processChunk(h)}),f.on("end",function(){n.end()}),f.on("error",function(h){n.error(h)}),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 f=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),f=!0),this.previous&&this.previous.resume(),!f},flush:function(){},processChunk:function(f){this.push(f)},withStreamInfo:function(f,n){return this.extraStreamInfo[f]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var f in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,f)&&(this.streamInfo[f]=this.extraStreamInfo[f])},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 f="Worker "+this.name;return this.previous?this.previous+" -> "+f:f}},a.exports=l},{}],29:[function(i,a,c){var l=i("../utils"),f=i("./ConvertWorker"),n=i("./GenericWorker"),h=i("../base64"),A=i("../support"),T=i("../external"),S=null;if(A.nodestream)try{S=i("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(I,b){return new T.Promise(function(R,o){var y=[],m=I._internalType,u=I._outputType,E=I._mimeType;I.on("data",function(P,F){y.push(P),b&&b(F)}).on("error",function(P){y=[],o(P)}).on("end",function(){try{var P=function(F,W,N){switch(F){case"blob":return l.newBlob(l.transformTo("arraybuffer",W),N);case"base64":return h.encode(W);default:return l.transformTo(F,W)}}(u,function(F,W){var N,X=0,ae=null,O=0;for(N=0;N<W.length;N++)O+=W[N].length;switch(F){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ae=new Uint8Array(O),N=0;N<W.length;N++)ae.set(W[N],X),X+=W[N].length;return ae;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+F+"'")}}(m,y),E);R(P)}catch(F){o(F)}y=[]}).resume()})}function x(I,b,R){var o=b;switch(b){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=b,this._mimeType=R,l.checkSupport(o),this._worker=I.pipe(new f(o)),I.lock()}catch(y){this._worker=new n("error"),this._worker.error(y)}}x.prototype={accumulate:function(I){return k(this,I)},on:function(I,b){var R=this;return I==="data"?this._worker.on(I,function(o){b.call(R,o.data,o.meta)}):this._worker.on(I,function(){l.delay(b,arguments,R)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(I){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},I)}},a.exports=x},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(i,a,c){if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",c.nodebuffer=typeof Buffer!="undefined",c.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")c.blob=!1;else{var l=new ArrayBuffer(0);try{c.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);f.append(l),c.blob=f.getBlob("application/zip").size===0}catch{c.blob=!1}}}try{c.nodestream=!!i("readable-stream").Readable}catch{c.nodestream=!1}},{"readable-stream":16}],31:[function(i,a,c){for(var l=i("./utils"),f=i("./support"),n=i("./nodejsUtils"),h=i("./stream/GenericWorker"),A=new Array(256),T=0;T<256;T++)A[T]=252<=T?6:248<=T?5:240<=T?4:224<=T?3:192<=T?2:1;A[254]=A[254]=1;function S(){h.call(this,"utf-8 decode"),this.leftOver=null}function k(){h.call(this,"utf-8 encode")}c.utf8encode=function(x){return f.nodebuffer?n.newBufferFrom(x,"utf-8"):function(I){var b,R,o,y,m,u=I.length,E=0;for(y=0;y<u;y++)(64512&(R=I.charCodeAt(y)))==55296&&y+1<u&&(64512&(o=I.charCodeAt(y+1)))==56320&&(R=65536+(R-55296<<10)+(o-56320),y++),E+=R<128?1:R<2048?2:R<65536?3:4;for(b=f.uint8array?new Uint8Array(E):new Array(E),y=m=0;m<E;y++)(64512&(R=I.charCodeAt(y)))==55296&&y+1<u&&(64512&(o=I.charCodeAt(y+1)))==56320&&(R=65536+(R-55296<<10)+(o-56320),y++),R<128?b[m++]=R:(R<2048?b[m++]=192|R>>>6:(R<65536?b[m++]=224|R>>>12:(b[m++]=240|R>>>18,b[m++]=128|R>>>12&63),b[m++]=128|R>>>6&63),b[m++]=128|63&R);return b}(x)},c.utf8decode=function(x){return f.nodebuffer?l.transformTo("nodebuffer",x).toString("utf-8"):function(I){var b,R,o,y,m=I.length,u=new Array(2*m);for(b=R=0;b<m;)if((o=I[b++])<128)u[R++]=o;else if(4<(y=A[o]))u[R++]=65533,b+=y-1;else{for(o&=y===2?31:y===3?15:7;1<y&&b<m;)o=o<<6|63&I[b++],y--;1<y?u[R++]=65533:o<65536?u[R++]=o:(o-=65536,u[R++]=55296|o>>10&1023,u[R++]=56320|1023&o)}return u.length!==R&&(u.subarray?u=u.subarray(0,R):u.length=R),l.applyFromCharCode(u)}(x=l.transformTo(f.uint8array?"uint8array":"array",x))},l.inherits(S,h),S.prototype.processChunk=function(x){var I=l.transformTo(f.uint8array?"uint8array":"array",x.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var b=I;(I=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),I.set(b,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var R=function(y,m){var u;for((m=m||y.length)>y.length&&(m=y.length),u=m-1;0<=u&&(192&y[u])==128;)u--;return u<0||u===0?m:u+A[y[u]]>m?u:m}(I),o=I;R!==I.length&&(f.uint8array?(o=I.subarray(0,R),this.leftOver=I.subarray(R,I.length)):(o=I.slice(0,R),this.leftOver=I.slice(R,I.length))),this.push({data:c.utf8decode(o),meta:x.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:c.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},c.Utf8DecodeWorker=S,l.inherits(k,h),k.prototype.processChunk=function(x){this.push({data:c.utf8encode(x.data),meta:x.meta})},c.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(i,a,c){var l=i("./support"),f=i("./base64"),n=i("./nodejsUtils"),h=i("./external");function A(b){return b}function T(b,R){for(var o=0;o<b.length;++o)R[o]=255&b.charCodeAt(o);return R}i("setimmediate"),c.newBlob=function(b,R){c.checkSupport("blob");try{return new Blob([b],{type:R})}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(b),o.getBlob(R)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(b,R,o){var y=[],m=0,u=b.length;if(u<=o)return String.fromCharCode.apply(null,b);for(;m<u;)R==="array"||R==="nodebuffer"?y.push(String.fromCharCode.apply(null,b.slice(m,Math.min(m+o,u)))):y.push(String.fromCharCode.apply(null,b.subarray(m,Math.min(m+o,u)))),m+=o;return y.join("")},stringifyByChar:function(b){for(var R="",o=0;o<b.length;o++)R+=String.fromCharCode(b[o]);return R},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,n.allocBuffer(1)).length===1}catch{return!1}}()}};function k(b){var R=65536,o=c.getTypeOf(b),y=!0;if(o==="uint8array"?y=S.applyCanBeUsed.uint8array:o==="nodebuffer"&&(y=S.applyCanBeUsed.nodebuffer),y)for(;1<R;)try{return S.stringifyByChunk(b,o,R)}catch{R=Math.floor(R/2)}return S.stringifyByChar(b)}function x(b,R){for(var o=0;o<b.length;o++)R[o]=b[o];return R}c.applyFromCharCode=k;var I={};I.string={string:A,array:function(b){return T(b,new Array(b.length))},arraybuffer:function(b){return I.string.uint8array(b).buffer},uint8array:function(b){return T(b,new Uint8Array(b.length))},nodebuffer:function(b){return T(b,n.allocBuffer(b.length))}},I.array={string:k,array:A,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return n.newBufferFrom(b)}},I.arraybuffer={string:function(b){return k(new Uint8Array(b))},array:function(b){return x(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:A,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return n.newBufferFrom(new Uint8Array(b))}},I.uint8array={string:k,array:function(b){return x(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:A,nodebuffer:function(b){return n.newBufferFrom(b)}},I.nodebuffer={string:k,array:function(b){return x(b,new Array(b.length))},arraybuffer:function(b){return I.nodebuffer.uint8array(b).buffer},uint8array:function(b){return x(b,new Uint8Array(b.length))},nodebuffer:A},c.transformTo=function(b,R){if(R=R||"",!b)return R;c.checkSupport(b);var o=c.getTypeOf(R);return I[o][b](R)},c.resolve=function(b){for(var R=b.split("/"),o=[],y=0;y<R.length;y++){var m=R[y];m==="."||m===""&&y!==0&&y!==R.length-1||(m===".."?o.pop():o.push(m))}return o.join("/")},c.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":l.nodebuffer&&n.isBuffer(b)?"nodebuffer":l.uint8array&&b instanceof Uint8Array?"uint8array":l.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(b){if(!l[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(b){var R,o,y="";for(o=0;o<(b||"").length;o++)y+="\\x"+((R=b.charCodeAt(o))<16?"0":"")+R.toString(16).toUpperCase();return y},c.delay=function(b,R,o){setImmediate(function(){b.apply(o||null,R||[])})},c.inherits=function(b,R){function o(){}o.prototype=R.prototype,b.prototype=new o},c.extend=function(){var b,R,o={};for(b=0;b<arguments.length;b++)for(R in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],R)&&o[R]===void 0&&(o[R]=arguments[b][R]);return o},c.prepareContent=function(b,R,o,y,m){return h.Promise.resolve(R).then(function(u){return l.blob&&(u instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(u))!==-1)&&typeof FileReader!="undefined"?new h.Promise(function(E,P){var F=new FileReader;F.onload=function(W){E(W.target.result)},F.onerror=function(W){P(W.target.error)},F.readAsArrayBuffer(u)}):u}).then(function(u){var E=c.getTypeOf(u);return E?(E==="arraybuffer"?u=c.transformTo("uint8array",u):E==="string"&&(m?u=f.decode(u):o&&y!==!0&&(u=function(P){return T(P,l.uint8array?new Uint8Array(P.length):new Array(P.length))}(u))),u):h.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(i,a,c){var l=i("./reader/readerFor"),f=i("./utils"),n=i("./signature"),h=i("./zipEntry"),A=i("./support");function T(S){this.files=[],this.loadOptions=S}T.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+f.pretty(k)+", expected "+f.pretty(S)+")")}},isSignature:function(S,k){var x=this.reader.index;this.reader.setIndex(S);var I=this.reader.readString(4)===k;return this.reader.setIndex(x),I},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 S=this.reader.readData(this.zipCommentLength),k=A.uint8array?"uint8array":"array",x=f.transformTo(k,S);this.zipComment=this.loadOptions.decodeFileName(x)},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 S,k,x,I=this.zip64EndOfCentralSize-44;0<I;)S=this.reader.readInt(2),k=this.reader.readInt(4),x=this.reader.readData(k),this.zip64ExtensibleData[S]={id:S,length:k,value:x}},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 S,k;for(S=0;S<this.files.length;S++)k=this.files[S],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(S=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);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 S=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,n.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(S);var k=S;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var x=this.centralDirOffset+this.centralDirSize;this.zip64&&(x+=20,x+=12+this.zip64EndOfCentralSize);var I=k-x;if(0<I)this.isSignature(k,n.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(S){this.reader=l(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=T},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(i,a,c){var l=i("./reader/readerFor"),f=i("./utils"),n=i("./compressedObject"),h=i("./crc32"),A=i("./utf8"),T=i("./compressions"),S=i("./support");function k(x,I){this.options=x,this.loadOptions=I}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(x){var I,b;if(x.skip(22),this.fileNameLength=x.readInt(2),b=x.readInt(2),this.fileName=x.readData(this.fileNameLength),x.skip(b),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((I=function(R){for(var o in T)if(Object.prototype.hasOwnProperty.call(T,o)&&T[o].magic===R)return T[o];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+f.pretty(this.compressionMethod)+" unknown (inner file : "+f.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,I,x.readData(this.compressedSize))},readCentralPart:function(x){this.versionMadeBy=x.readInt(2),x.skip(2),this.bitFlag=x.readInt(2),this.compressionMethod=x.readString(2),this.date=x.readDate(),this.crc32=x.readInt(4),this.compressedSize=x.readInt(4),this.uncompressedSize=x.readInt(4);var I=x.readInt(2);if(this.extraFieldsLength=x.readInt(2),this.fileCommentLength=x.readInt(2),this.diskNumberStart=x.readInt(2),this.internalFileAttributes=x.readInt(2),this.externalFileAttributes=x.readInt(4),this.localHeaderOffset=x.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");x.skip(I),this.readExtraFields(x),this.parseZIP64ExtraField(x),this.fileComment=x.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var x=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),x==0&&(this.dosPermissions=63&this.externalFileAttributes),x==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var x=l(this.extraFields[1].value);this.uncompressedSize===f.MAX_VALUE_32BITS&&(this.uncompressedSize=x.readInt(8)),this.compressedSize===f.MAX_VALUE_32BITS&&(this.compressedSize=x.readInt(8)),this.localHeaderOffset===f.MAX_VALUE_32BITS&&(this.localHeaderOffset=x.readInt(8)),this.diskNumberStart===f.MAX_VALUE_32BITS&&(this.diskNumberStart=x.readInt(4))}},readExtraFields:function(x){var I,b,R,o=x.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});x.index+4<o;)I=x.readInt(2),b=x.readInt(2),R=x.readData(b),this.extraFields[I]={id:I,length:b,value:R};x.setIndex(o)},handleUTF8:function(){var x=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A.utf8decode(this.fileName),this.fileCommentStr=A.utf8decode(this.fileComment);else{var I=this.findExtraFieldUnicodePath();if(I!==null)this.fileNameStr=I;else{var b=f.transformTo(x,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var R=this.findExtraFieldUnicodeComment();if(R!==null)this.fileCommentStr=R;else{var o=f.transformTo(x,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var x=this.extraFields[28789];if(x){var I=l(x.value);return I.readInt(1)!==1||h(this.fileName)!==I.readInt(4)?null:A.utf8decode(I.readData(x.length-5))}return null},findExtraFieldUnicodeComment:function(){var x=this.extraFields[25461];if(x){var I=l(x.value);return I.readInt(1)!==1||h(this.fileComment)!==I.readInt(4)?null:A.utf8decode(I.readData(x.length-5))}return null}},a.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(i,a,c){function l(I,b,R){this.name=I,this.dir=R.dir,this.date=R.date,this.comment=R.comment,this.unixPermissions=R.unixPermissions,this.dosPermissions=R.dosPermissions,this._data=b,this._dataBinary=R.binary,this.options={compression:R.compression,compressionOptions:R.compressionOptions}}var f=i("./stream/StreamHelper"),n=i("./stream/DataWorker"),h=i("./utf8"),A=i("./compressedObject"),T=i("./stream/GenericWorker");l.prototype={internalStream:function(I){var b=null,R="string";try{if(!I)throw new Error("No output type specified.");var o=(R=I.toLowerCase())==="string"||R==="text";R!=="binarystring"&&R!=="text"||(R="string"),b=this._decompressWorker();var y=!this._dataBinary;y&&!o&&(b=b.pipe(new h.Utf8EncodeWorker)),!y&&o&&(b=b.pipe(new h.Utf8DecodeWorker))}catch(m){(b=new T("error")).error(m)}return new f(b,R,"")},async:function(I,b){return this.internalStream(I).accumulate(b)},nodeStream:function(I,b){return this.internalStream(I||"nodebuffer").toNodejsStream(b)},_compressWorker:function(I,b){if(this._data instanceof A&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var R=this._decompressWorker();return this._dataBinary||(R=R.pipe(new h.Utf8EncodeWorker)),A.createWorkerFrom(R,I,b)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof T?this._data:new n(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},x=0;x<S.length;x++)l.prototype[S[x]]=k;a.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,a,c){(function(l){var f,n,h=l.MutationObserver||l.WebKitMutationObserver;if(h){var A=0,T=new h(I),S=l.document.createTextNode("");T.observe(S,{characterData:!0}),f=function(){S.data=A=++A%2}}else if(l.setImmediate||l.MessageChannel===void 0)f="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var b=l.document.createElement("script");b.onreadystatechange=function(){I(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},l.document.documentElement.appendChild(b)}:function(){setTimeout(I,0)};else{var k=new l.MessageChannel;k.port1.onmessage=I,f=function(){k.port2.postMessage(0)}}var x=[];function I(){var b,R;n=!0;for(var o=x.length;o;){for(R=x,x=[],b=-1;++b<o;)R[b]();o=x.length}n=!1}a.exports=function(b){x.push(b)!==1||n||f()}}).call(this,typeof Te!="undefined"?Te:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(i,a,c){var l=i("immediate");function f(){}var n={},h=["REJECTED"],A=["FULFILLED"],T=["PENDING"];function S(o){if(typeof o!="function")throw new TypeError("resolver must be a function");this.state=T,this.queue=[],this.outcome=void 0,o!==f&&b(this,o)}function k(o,y,m){this.promise=o,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}function x(o,y,m){l(function(){var u;try{u=y(m)}catch(E){return n.reject(o,E)}u===o?n.reject(o,new TypeError("Cannot resolve promise with itself")):n.resolve(o,u)})}function I(o){var y=o&&o.then;if(o&&(typeof o=="object"||typeof o=="function")&&typeof y=="function")return function(){y.apply(o,arguments)}}function b(o,y){var m=!1;function u(F){m||(m=!0,n.reject(o,F))}function E(F){m||(m=!0,n.resolve(o,F))}var P=R(function(){y(E,u)});P.status==="error"&&u(P.value)}function R(o,y){var m={};try{m.value=o(y),m.status="success"}catch(u){m.status="error",m.value=u}return m}(a.exports=S).prototype.finally=function(o){if(typeof o!="function")return this;var y=this.constructor;return this.then(function(m){return y.resolve(o()).then(function(){return m})},function(m){return y.resolve(o()).then(function(){throw m})})},S.prototype.catch=function(o){return this.then(null,o)},S.prototype.then=function(o,y){if(typeof o!="function"&&this.state===A||typeof y!="function"&&this.state===h)return this;var m=new this.constructor(f);return this.state!==T?x(m,this.state===A?o:y,this.outcome):this.queue.push(new k(m,o,y)),m},k.prototype.callFulfilled=function(o){n.resolve(this.promise,o)},k.prototype.otherCallFulfilled=function(o){x(this.promise,this.onFulfilled,o)},k.prototype.callRejected=function(o){n.reject(this.promise,o)},k.prototype.otherCallRejected=function(o){x(this.promise,this.onRejected,o)},n.resolve=function(o,y){var m=R(I,y);if(m.status==="error")return n.reject(o,m.value);var u=m.value;if(u)b(o,u);else{o.state=A,o.outcome=y;for(var E=-1,P=o.queue.length;++E<P;)o.queue[E].callFulfilled(y)}return o},n.reject=function(o,y){o.state=h,o.outcome=y;for(var m=-1,u=o.queue.length;++m<u;)o.queue[m].callRejected(y);return o},S.resolve=function(o){return o instanceof this?o:n.resolve(new this(f),o)},S.reject=function(o){var y=new this(f);return n.reject(y,o)},S.all=function(o){var y=this;if(Object.prototype.toString.call(o)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=o.length,u=!1;if(!m)return this.resolve([]);for(var E=new Array(m),P=0,F=-1,W=new this(f);++F<m;)N(o[F],F);return W;function N(X,ae){y.resolve(X).then(function(O){E[ae]=O,++P!==m||u||(u=!0,n.resolve(W,E))},function(O){u||(u=!0,n.reject(W,O))})}},S.race=function(o){var y=this;if(Object.prototype.toString.call(o)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=o.length,u=!1;if(!m)return this.resolve([]);for(var E=-1,P=new this(f);++E<m;)F=o[E],y.resolve(F).then(function(W){u||(u=!0,n.resolve(P,W))},function(W){u||(u=!0,n.reject(P,W))});var F;return P}},{immediate:36}],38:[function(i,a,c){var l={};(0,i("./lib/utils/common").assign)(l,i("./lib/deflate"),i("./lib/inflate"),i("./lib/zlib/constants")),a.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(i,a,c){var l=i("./zlib/deflate"),f=i("./utils/common"),n=i("./utils/strings"),h=i("./zlib/messages"),A=i("./zlib/zstream"),T=Object.prototype.toString,S=0,k=-1,x=0,I=8;function b(o){if(!(this instanceof b))return new b(o);this.options=f.assign({level:k,method:I,chunkSize:16384,windowBits:15,memLevel:8,strategy:x,to:""},o||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var m=l.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(m!==S)throw new Error(h[m]);if(y.header&&l.deflateSetHeader(this.strm,y.header),y.dictionary){var u;if(u=typeof y.dictionary=="string"?n.string2buf(y.dictionary):T.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(m=l.deflateSetDictionary(this.strm,u))!==S)throw new Error(h[m]);this._dict_set=!0}}function R(o,y){var m=new b(y);if(m.push(o,!0),m.err)throw m.msg||h[m.err];return m.result}b.prototype.push=function(o,y){var m,u,E=this.strm,P=this.options.chunkSize;if(this.ended)return!1;u=y===~~y?y:y===!0?4:0,typeof o=="string"?E.input=n.string2buf(o):T.call(o)==="[object ArrayBuffer]"?E.input=new Uint8Array(o):E.input=o,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new f.Buf8(P),E.next_out=0,E.avail_out=P),(m=l.deflate(E,u))!==1&&m!==S)return this.onEnd(m),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||u!==4&&u!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(f.shrinkBuf(E.output,E.next_out))):this.onData(f.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&m!==1);return u===4?(m=l.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===S):u!==2||(this.onEnd(S),!(E.avail_out=0))},b.prototype.onData=function(o){this.chunks.push(o)},b.prototype.onEnd=function(o){o===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg},c.Deflate=b,c.deflate=R,c.deflateRaw=function(o,y){return(y=y||{}).raw=!0,R(o,y)},c.gzip=function(o,y){return(y=y||{}).gzip=!0,R(o,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(i,a,c){var l=i("./zlib/inflate"),f=i("./utils/common"),n=i("./utils/strings"),h=i("./zlib/constants"),A=i("./zlib/messages"),T=i("./zlib/zstream"),S=i("./zlib/gzheader"),k=Object.prototype.toString;function x(b){if(!(this instanceof x))return new x(b);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},b||{});var R=this.options;R.raw&&0<=R.windowBits&&R.windowBits<16&&(R.windowBits=-R.windowBits,R.windowBits===0&&(R.windowBits=-15)),!(0<=R.windowBits&&R.windowBits<16)||b&&b.windowBits||(R.windowBits+=32),15<R.windowBits&&R.windowBits<48&&(15&R.windowBits)==0&&(R.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new T,this.strm.avail_out=0;var o=l.inflateInit2(this.strm,R.windowBits);if(o!==h.Z_OK)throw new Error(A[o]);this.header=new S,l.inflateGetHeader(this.strm,this.header)}function I(b,R){var o=new x(R);if(o.push(b,!0),o.err)throw o.msg||A[o.err];return o.result}x.prototype.push=function(b,R){var o,y,m,u,E,P,F=this.strm,W=this.options.chunkSize,N=this.options.dictionary,X=!1;if(this.ended)return!1;y=R===~~R?R:R===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof b=="string"?F.input=n.binstring2buf(b):k.call(b)==="[object ArrayBuffer]"?F.input=new Uint8Array(b):F.input=b,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new f.Buf8(W),F.next_out=0,F.avail_out=W),(o=l.inflate(F,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&N&&(P=typeof N=="string"?n.string2buf(N):k.call(N)==="[object ArrayBuffer]"?new Uint8Array(N):N,o=l.inflateSetDictionary(this.strm,P)),o===h.Z_BUF_ERROR&&X===!0&&(o=h.Z_OK,X=!1),o!==h.Z_STREAM_END&&o!==h.Z_OK)return this.onEnd(o),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&o!==h.Z_STREAM_END&&(F.avail_in!==0||y!==h.Z_FINISH&&y!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(m=n.utf8border(F.output,F.next_out),u=F.next_out-m,E=n.buf2string(F.output,m),F.next_out=u,F.avail_out=W-u,u&&f.arraySet(F.output,F.output,m,u,0),this.onData(E)):this.onData(f.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(X=!0)}while((0<F.avail_in||F.avail_out===0)&&o!==h.Z_STREAM_END);return o===h.Z_STREAM_END&&(y=h.Z_FINISH),y===h.Z_FINISH?(o=l.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===h.Z_OK):y!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(F.avail_out=0))},x.prototype.onData=function(b){this.chunks.push(b)},x.prototype.onEnd=function(b){b===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},c.Inflate=x,c.inflate=I,c.inflateRaw=function(b,R){return(R=R||{}).raw=!0,I(b,R)},c.ungzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(i,a,c){var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";c.assign=function(h){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var T=A.shift();if(T){if(typeof T!="object")throw new TypeError(T+"must be non-object");for(var S in T)T.hasOwnProperty(S)&&(h[S]=T[S])}}return h},c.shrinkBuf=function(h,A){return h.length===A?h:h.subarray?h.subarray(0,A):(h.length=A,h)};var f={arraySet:function(h,A,T,S,k){if(A.subarray&&h.subarray)h.set(A.subarray(T,T+S),k);else for(var x=0;x<S;x++)h[k+x]=A[T+x]},flattenChunks:function(h){var A,T,S,k,x,I;for(A=S=0,T=h.length;A<T;A++)S+=h[A].length;for(I=new Uint8Array(S),A=k=0,T=h.length;A<T;A++)x=h[A],I.set(x,k),k+=x.length;return I}},n={arraySet:function(h,A,T,S,k){for(var x=0;x<S;x++)h[k+x]=A[T+x]},flattenChunks:function(h){return[].concat.apply([],h)}};c.setTyped=function(h){h?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,f)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,n))},c.setTyped(l)},{}],42:[function(i,a,c){var l=i("./common"),f=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new l.Buf8(256),A=0;A<256;A++)h[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;function T(S,k){if(k<65537&&(S.subarray&&n||!S.subarray&&f))return String.fromCharCode.apply(null,l.shrinkBuf(S,k));for(var x="",I=0;I<k;I++)x+=String.fromCharCode(S[I]);return x}h[254]=h[254]=1,c.string2buf=function(S){var k,x,I,b,R,o=S.length,y=0;for(b=0;b<o;b++)(64512&(x=S.charCodeAt(b)))==55296&&b+1<o&&(64512&(I=S.charCodeAt(b+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),b++),y+=x<128?1:x<2048?2:x<65536?3:4;for(k=new l.Buf8(y),b=R=0;R<y;b++)(64512&(x=S.charCodeAt(b)))==55296&&b+1<o&&(64512&(I=S.charCodeAt(b+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),b++),x<128?k[R++]=x:(x<2048?k[R++]=192|x>>>6:(x<65536?k[R++]=224|x>>>12:(k[R++]=240|x>>>18,k[R++]=128|x>>>12&63),k[R++]=128|x>>>6&63),k[R++]=128|63&x);return k},c.buf2binstring=function(S){return T(S,S.length)},c.binstring2buf=function(S){for(var k=new l.Buf8(S.length),x=0,I=k.length;x<I;x++)k[x]=S.charCodeAt(x);return k},c.buf2string=function(S,k){var x,I,b,R,o=k||S.length,y=new Array(2*o);for(x=I=0;x<o;)if((b=S[x++])<128)y[I++]=b;else if(4<(R=h[b]))y[I++]=65533,x+=R-1;else{for(b&=R===2?31:R===3?15:7;1<R&&x<o;)b=b<<6|63&S[x++],R--;1<R?y[I++]=65533:b<65536?y[I++]=b:(b-=65536,y[I++]=55296|b>>10&1023,y[I++]=56320|1023&b)}return T(y,I)},c.utf8border=function(S,k){var x;for((k=k||S.length)>S.length&&(k=S.length),x=k-1;0<=x&&(192&S[x])==128;)x--;return x<0||x===0?k:x+h[S[x]]>k?x:k}},{"./common":41}],43:[function(i,a,c){a.exports=function(l,f,n,h){for(var A=65535&l|0,T=l>>>16&65535|0,S=0;n!==0;){for(n-=S=2e3<n?2e3:n;T=T+(A=A+f[h++]|0)|0,--S;);A%=65521,T%=65521}return A|T<<16|0}},{}],44:[function(i,a,c){a.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(i,a,c){var l=function(){for(var f,n=[],h=0;h<256;h++){f=h;for(var A=0;A<8;A++)f=1&f?3988292384^f>>>1:f>>>1;n[h]=f}return n}();a.exports=function(f,n,h,A){var T=l,S=A+h;f^=-1;for(var k=A;k<S;k++)f=f>>>8^T[255&(f^n[k])];return-1^f}},{}],46:[function(i,a,c){var l,f=i("../utils/common"),n=i("./trees"),h=i("./adler32"),A=i("./crc32"),T=i("./messages"),S=0,k=4,x=0,I=-2,b=-1,R=4,o=2,y=8,m=9,u=286,E=30,P=19,F=2*u+1,W=15,N=3,X=258,ae=X+N+1,O=42,M=113,g=1,q=2,ee=3,z=4;function ne(d,Y){return d.msg=T[Y],Y}function Q(d){return(d<<1)-(4<d?9:0)}function ue(d){for(var Y=d.length;0<=--Y;)d[Y]=0}function V(d){var Y=d.state,_=Y.pending;_>d.avail_out&&(_=d.avail_out),_!==0&&(f.arraySet(d.output,Y.pending_buf,Y.pending_out,_,d.next_out),d.next_out+=_,Y.pending_out+=_,d.total_out+=_,d.avail_out-=_,Y.pending-=_,Y.pending===0&&(Y.pending_out=0))}function D(d,Y){n._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,Y),d.block_start=d.strstart,V(d.strm)}function $(d,Y){d.pending_buf[d.pending++]=Y}function Z(d,Y){d.pending_buf[d.pending++]=Y>>>8&255,d.pending_buf[d.pending++]=255&Y}function te(d,Y){var _,t,s=d.max_chain_length,p=d.strstart,B=d.prev_length,G=d.nice_match,H=d.strstart>d.w_size-ae?d.strstart-(d.w_size-ae):0,re=d.window,se=d.w_mask,ie=d.prev,ce=d.strstart+X,he=re[p+B-1],de=re[p+B];d.prev_length>=d.good_match&&(s>>=2),G>d.lookahead&&(G=d.lookahead);do if(re[(_=Y)+B]===de&&re[_+B-1]===he&&re[_]===re[p]&&re[++_]===re[p+1]){p+=2,_++;do;while(re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&re[++p]===re[++_]&&p<ce);if(t=X-(ce-p),p=ce-X,B<t){if(d.match_start=Y,G<=(B=t))break;he=re[p+B-1],de=re[p+B]}}while((Y=ie[Y&se])>H&&--s!=0);return B<=d.lookahead?B:d.lookahead}function K(d){var Y,_,t,s,p,B,G,H,re,se,ie=d.w_size;do{if(s=d.window_size-d.lookahead-d.strstart,d.strstart>=ie+(ie-ae)){for(f.arraySet(d.window,d.window,ie,ie,0),d.match_start-=ie,d.strstart-=ie,d.block_start-=ie,Y=_=d.hash_size;t=d.head[--Y],d.head[Y]=ie<=t?t-ie:0,--_;);for(Y=_=ie;t=d.prev[--Y],d.prev[Y]=ie<=t?t-ie:0,--_;);s+=ie}if(d.strm.avail_in===0)break;if(B=d.strm,G=d.window,H=d.strstart+d.lookahead,re=s,se=void 0,se=B.avail_in,re<se&&(se=re),_=se===0?0:(B.avail_in-=se,f.arraySet(G,B.input,B.next_in,se,H),B.state.wrap===1?B.adler=h(B.adler,G,se,H):B.state.wrap===2&&(B.adler=A(B.adler,G,se,H)),B.next_in+=se,B.total_in+=se,se),d.lookahead+=_,d.lookahead+d.insert>=N)for(p=d.strstart-d.insert,d.ins_h=d.window[p],d.ins_h=(d.ins_h<<d.hash_shift^d.window[p+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[p+N-1])&d.hash_mask,d.prev[p&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=p,p++,d.insert--,!(d.lookahead+d.insert<N)););}while(d.lookahead<ae&&d.strm.avail_in!==0)}function v(d,Y){for(var _,t;;){if(d.lookahead<ae){if(K(d),d.lookahead<ae&&Y===S)return g;if(d.lookahead===0)break}if(_=0,d.lookahead>=N&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,_=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),_!==0&&d.strstart-_<=d.w_size-ae&&(d.match_length=te(d,_)),d.match_length>=N)if(t=n._tr_tally(d,d.strstart-d.match_start,d.match_length-N),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=N){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,_=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else t=n._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(t&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=d.strstart<N-1?d.strstart:N-1,Y===k?(D(d,!0),d.strm.avail_out===0?ee:z):d.last_lit&&(D(d,!1),d.strm.avail_out===0)?g:q}function w(d,Y){for(var _,t,s;;){if(d.lookahead<ae){if(K(d),d.lookahead<ae&&Y===S)return g;if(d.lookahead===0)break}if(_=0,d.lookahead>=N&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,_=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=N-1,_!==0&&d.prev_length<d.max_lazy_match&&d.strstart-_<=d.w_size-ae&&(d.match_length=te(d,_),d.match_length<=5&&(d.strategy===1||d.match_length===N&&4096<d.strstart-d.match_start)&&(d.match_length=N-1)),d.prev_length>=N&&d.match_length<=d.prev_length){for(s=d.strstart+d.lookahead-N,t=n._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-N),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=s&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,_=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=N-1,d.strstart++,t&&(D(d,!1),d.strm.avail_out===0))return g}else if(d.match_available){if((t=n._tr_tally(d,0,d.window[d.strstart-1]))&&D(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return g}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(t=n._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<N-1?d.strstart:N-1,Y===k?(D(d,!0),d.strm.avail_out===0?ee:z):d.last_lit&&(D(d,!1),d.strm.avail_out===0)?g:q}function j(d,Y,_,t,s){this.good_length=d,this.max_lazy=Y,this.nice_length=_,this.max_chain=t,this.func=s}function U(){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=y,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 f.Buf16(2*F),this.dyn_dtree=new f.Buf16(2*(2*E+1)),this.bl_tree=new f.Buf16(2*(2*P+1)),ue(this.dyn_ltree),ue(this.dyn_dtree),ue(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(W+1),this.heap=new f.Buf16(2*u+1),ue(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*u+1),ue(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 C(d){var Y;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=o,(Y=d.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?O:M,d.adler=Y.wrap===2?0:1,Y.last_flush=S,n._tr_init(Y),x):ne(d,I)}function L(d){var Y=C(d);return Y===x&&function(_){_.window_size=2*_.w_size,ue(_.head),_.max_lazy_match=l[_.level].max_lazy,_.good_match=l[_.level].good_length,_.nice_match=l[_.level].nice_length,_.max_chain_length=l[_.level].max_chain,_.strstart=0,_.block_start=0,_.lookahead=0,_.insert=0,_.match_length=_.prev_length=N-1,_.match_available=0,_.ins_h=0}(d.state),Y}function J(d,Y,_,t,s,p){if(!d)return I;var B=1;if(Y===b&&(Y=6),t<0?(B=0,t=-t):15<t&&(B=2,t-=16),s<1||m<s||_!==y||t<8||15<t||Y<0||9<Y||p<0||R<p)return ne(d,I);t===8&&(t=9);var G=new U;return(d.state=G).strm=d,G.wrap=B,G.gzhead=null,G.w_bits=t,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=s+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+N-1)/N),G.window=new f.Buf8(2*G.w_size),G.head=new f.Buf16(G.hash_size),G.prev=new f.Buf16(G.w_size),G.lit_bufsize=1<<s+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new f.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=Y,G.strategy=p,G.method=_,L(d)}l=[new j(0,0,0,0,function(d,Y){var _=65535;for(_>d.pending_buf_size-5&&(_=d.pending_buf_size-5);;){if(d.lookahead<=1){if(K(d),d.lookahead===0&&Y===S)return g;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var t=d.block_start+_;if((d.strstart===0||d.strstart>=t)&&(d.lookahead=d.strstart-t,d.strstart=t,D(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-ae&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=0,Y===k?(D(d,!0),d.strm.avail_out===0?ee:z):(d.strstart>d.block_start&&(D(d,!1),d.strm.avail_out),g)}),new j(4,4,8,4,v),new j(4,5,16,8,v),new j(4,6,32,32,v),new j(4,4,16,16,w),new j(8,16,32,32,w),new j(8,16,128,128,w),new j(8,32,128,256,w),new j(32,128,258,1024,w),new j(32,258,258,4096,w)],c.deflateInit=function(d,Y){return J(d,Y,y,15,8,0)},c.deflateInit2=J,c.deflateReset=L,c.deflateResetKeep=C,c.deflateSetHeader=function(d,Y){return d&&d.state?d.state.wrap!==2?I:(d.state.gzhead=Y,x):I},c.deflate=function(d,Y){var _,t,s,p;if(!d||!d.state||5<Y||Y<0)return d?ne(d,I):I;if(t=d.state,!d.output||!d.input&&d.avail_in!==0||t.status===666&&Y!==k)return ne(d,d.avail_out===0?-5:I);if(t.strm=d,_=t.last_flush,t.last_flush=Y,t.status===O)if(t.wrap===2)d.adler=0,$(t,31),$(t,139),$(t,8),t.gzhead?($(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),$(t,255&t.gzhead.time),$(t,t.gzhead.time>>8&255),$(t,t.gzhead.time>>16&255),$(t,t.gzhead.time>>24&255),$(t,t.level===9?2:2<=t.strategy||t.level<2?4:0),$(t,255&t.gzhead.os),t.gzhead.extra&&t.gzhead.extra.length&&($(t,255&t.gzhead.extra.length),$(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(d.adler=A(d.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=69):($(t,0),$(t,0),$(t,0),$(t,0),$(t,0),$(t,t.level===9?2:2<=t.strategy||t.level<2?4:0),$(t,3),t.status=M);else{var B=y+(t.w_bits-8<<4)<<8;B|=(2<=t.strategy||t.level<2?0:t.level<6?1:t.level===6?2:3)<<6,t.strstart!==0&&(B|=32),B+=31-B%31,t.status=M,Z(t,B),t.strstart!==0&&(Z(t,d.adler>>>16),Z(t,65535&d.adler)),d.adler=1}if(t.status===69)if(t.gzhead.extra){for(s=t.pending;t.gzindex<(65535&t.gzhead.extra.length)&&(t.pending!==t.pending_buf_size||(t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),V(d),s=t.pending,t.pending!==t.pending_buf_size));)$(t,255&t.gzhead.extra[t.gzindex]),t.gzindex++;t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),t.gzindex===t.gzhead.extra.length&&(t.gzindex=0,t.status=73)}else t.status=73;if(t.status===73)if(t.gzhead.name){s=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),V(d),s=t.pending,t.pending===t.pending_buf_size)){p=1;break}p=t.gzindex<t.gzhead.name.length?255&t.gzhead.name.charCodeAt(t.gzindex++):0,$(t,p)}while(p!==0);t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),p===0&&(t.gzindex=0,t.status=91)}else t.status=91;if(t.status===91)if(t.gzhead.comment){s=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),V(d),s=t.pending,t.pending===t.pending_buf_size)){p=1;break}p=t.gzindex<t.gzhead.comment.length?255&t.gzhead.comment.charCodeAt(t.gzindex++):0,$(t,p)}while(p!==0);t.gzhead.hcrc&&t.pending>s&&(d.adler=A(d.adler,t.pending_buf,t.pending-s,s)),p===0&&(t.status=103)}else t.status=103;if(t.status===103&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&V(d),t.pending+2<=t.pending_buf_size&&($(t,255&d.adler),$(t,d.adler>>8&255),d.adler=0,t.status=M)):t.status=M),t.pending!==0){if(V(d),d.avail_out===0)return t.last_flush=-1,x}else if(d.avail_in===0&&Q(Y)<=Q(_)&&Y!==k)return ne(d,-5);if(t.status===666&&d.avail_in!==0)return ne(d,-5);if(d.avail_in!==0||t.lookahead!==0||Y!==S&&t.status!==666){var G=t.strategy===2?function(H,re){for(var se;;){if(H.lookahead===0&&(K(H),H.lookahead===0)){if(re===S)return g;break}if(H.match_length=0,se=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,se&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,re===k?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(t,Y):t.strategy===3?function(H,re){for(var se,ie,ce,he,de=H.window;;){if(H.lookahead<=X){if(K(H),H.lookahead<=X&&re===S)return g;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=N&&0<H.strstart&&(ie=de[ce=H.strstart-1])===de[++ce]&&ie===de[++ce]&&ie===de[++ce]){he=H.strstart+X;do;while(ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ie===de[++ce]&&ce<he);H.match_length=X-(he-ce),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=N?(se=n._tr_tally(H,1,H.match_length-N),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(se=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),se&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,re===k?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(t,Y):l[t.level].func(t,Y);if(G!==ee&&G!==z||(t.status=666),G===g||G===ee)return d.avail_out===0&&(t.last_flush=-1),x;if(G===q&&(Y===1?n._tr_align(t):Y!==5&&(n._tr_stored_block(t,0,0,!1),Y===3&&(ue(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),V(d),d.avail_out===0))return t.last_flush=-1,x}return Y!==k?x:t.wrap<=0?1:(t.wrap===2?($(t,255&d.adler),$(t,d.adler>>8&255),$(t,d.adler>>16&255),$(t,d.adler>>24&255),$(t,255&d.total_in),$(t,d.total_in>>8&255),$(t,d.total_in>>16&255),$(t,d.total_in>>24&255)):(Z(t,d.adler>>>16),Z(t,65535&d.adler)),V(d),0<t.wrap&&(t.wrap=-t.wrap),t.pending!==0?x:1)},c.deflateEnd=function(d){var Y;return d&&d.state?(Y=d.state.status)!==O&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==M&&Y!==666?ne(d,I):(d.state=null,Y===M?ne(d,-3):x):I},c.deflateSetDictionary=function(d,Y){var _,t,s,p,B,G,H,re,se=Y.length;if(!d||!d.state||(p=(_=d.state).wrap)===2||p===1&&_.status!==O||_.lookahead)return I;for(p===1&&(d.adler=h(d.adler,Y,se,0)),_.wrap=0,se>=_.w_size&&(p===0&&(ue(_.head),_.strstart=0,_.block_start=0,_.insert=0),re=new f.Buf8(_.w_size),f.arraySet(re,Y,se-_.w_size,_.w_size,0),Y=re,se=_.w_size),B=d.avail_in,G=d.next_in,H=d.input,d.avail_in=se,d.next_in=0,d.input=Y,K(_);_.lookahead>=N;){for(t=_.strstart,s=_.lookahead-(N-1);_.ins_h=(_.ins_h<<_.hash_shift^_.window[t+N-1])&_.hash_mask,_.prev[t&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=t,t++,--s;);_.strstart=t,_.lookahead=N-1,K(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=N-1,_.match_available=0,d.next_in=G,d.input=H,d.avail_in=B,_.wrap=p,x},c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(i,a,c){a.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(i,a,c){a.exports=function(l,f){var n,h,A,T,S,k,x,I,b,R,o,y,m,u,E,P,F,W,N,X,ae,O,M,g,q;n=l.state,h=l.next_in,g=l.input,A=h+(l.avail_in-5),T=l.next_out,q=l.output,S=T-(f-l.avail_out),k=T+(l.avail_out-257),x=n.dmax,I=n.wsize,b=n.whave,R=n.wnext,o=n.window,y=n.hold,m=n.bits,u=n.lencode,E=n.distcode,P=(1<<n.lenbits)-1,F=(1<<n.distbits)-1;e:do{m<15&&(y+=g[h++]<<m,m+=8,y+=g[h++]<<m,m+=8),W=u[y&P];t:for(;;){if(y>>>=N=W>>>24,m-=N,(N=W>>>16&255)===0)q[T++]=65535&W;else{if(!(16&N)){if((64&N)==0){W=u[(65535&W)+(y&(1<<N)-1)];continue t}if(32&N){n.mode=12;break e}l.msg="invalid literal/length code",n.mode=30;break e}X=65535&W,(N&=15)&&(m<N&&(y+=g[h++]<<m,m+=8),X+=y&(1<<N)-1,y>>>=N,m-=N),m<15&&(y+=g[h++]<<m,m+=8,y+=g[h++]<<m,m+=8),W=E[y&F];r:for(;;){if(y>>>=N=W>>>24,m-=N,!(16&(N=W>>>16&255))){if((64&N)==0){W=E[(65535&W)+(y&(1<<N)-1)];continue r}l.msg="invalid distance code",n.mode=30;break e}if(ae=65535&W,m<(N&=15)&&(y+=g[h++]<<m,(m+=8)<N&&(y+=g[h++]<<m,m+=8)),x<(ae+=y&(1<<N)-1)){l.msg="invalid distance too far back",n.mode=30;break e}if(y>>>=N,m-=N,(N=T-S)<ae){if(b<(N=ae-N)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break e}if(M=o,(O=0)===R){if(O+=I-N,N<X){for(X-=N;q[T++]=o[O++],--N;);O=T-ae,M=q}}else if(R<N){if(O+=I+R-N,(N-=R)<X){for(X-=N;q[T++]=o[O++],--N;);if(O=0,R<X){for(X-=N=R;q[T++]=o[O++],--N;);O=T-ae,M=q}}}else if(O+=R-N,N<X){for(X-=N;q[T++]=o[O++],--N;);O=T-ae,M=q}for(;2<X;)q[T++]=M[O++],q[T++]=M[O++],q[T++]=M[O++],X-=3;X&&(q[T++]=M[O++],1<X&&(q[T++]=M[O++]))}else{for(O=T-ae;q[T++]=q[O++],q[T++]=q[O++],q[T++]=q[O++],2<(X-=3););X&&(q[T++]=q[O++],1<X&&(q[T++]=q[O++]))}break}}break}}while(h<A&&T<k);h-=X=m>>3,y&=(1<<(m-=X<<3))-1,l.next_in=h,l.next_out=T,l.avail_in=h<A?A-h+5:5-(h-A),l.avail_out=T<k?k-T+257:257-(T-k),n.hold=y,n.bits=m}},{}],49:[function(i,a,c){var l=i("../utils/common"),f=i("./adler32"),n=i("./crc32"),h=i("./inffast"),A=i("./inftrees"),T=1,S=2,k=0,x=-2,I=1,b=852,R=592;function o(O){return(O>>>24&255)+(O>>>8&65280)+((65280&O)<<8)+((255&O)<<24)}function y(){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 m(O){var M;return O&&O.state?(M=O.state,O.total_in=O.total_out=M.total=0,O.msg="",M.wrap&&(O.adler=1&M.wrap),M.mode=I,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new l.Buf32(b),M.distcode=M.distdyn=new l.Buf32(R),M.sane=1,M.back=-1,k):x}function u(O){var M;return O&&O.state?((M=O.state).wsize=0,M.whave=0,M.wnext=0,m(O)):x}function E(O,M){var g,q;return O&&O.state?(q=O.state,M<0?(g=0,M=-M):(g=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?x:(q.window!==null&&q.wbits!==M&&(q.window=null),q.wrap=g,q.wbits=M,u(O))):x}function P(O,M){var g,q;return O?(q=new y,(O.state=q).window=null,(g=E(O,M))!==k&&(O.state=null),g):x}var F,W,N=!0;function X(O){if(N){var M;for(F=new l.Buf32(512),W=new l.Buf32(32),M=0;M<144;)O.lens[M++]=8;for(;M<256;)O.lens[M++]=9;for(;M<280;)O.lens[M++]=7;for(;M<288;)O.lens[M++]=8;for(A(T,O.lens,0,288,F,0,O.work,{bits:9}),M=0;M<32;)O.lens[M++]=5;A(S,O.lens,0,32,W,0,O.work,{bits:5}),N=!1}O.lencode=F,O.lenbits=9,O.distcode=W,O.distbits=5}function ae(O,M,g,q){var ee,z=O.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new l.Buf8(z.wsize)),q>=z.wsize?(l.arraySet(z.window,M,g-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(q<(ee=z.wsize-z.wnext)&&(ee=q),l.arraySet(z.window,M,g-q,ee,z.wnext),(q-=ee)?(l.arraySet(z.window,M,g-q,q,0),z.wnext=q,z.whave=z.wsize):(z.wnext+=ee,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=ee))),0}c.inflateReset=u,c.inflateReset2=E,c.inflateResetKeep=m,c.inflateInit=function(O){return P(O,15)},c.inflateInit2=P,c.inflate=function(O,M){var g,q,ee,z,ne,Q,ue,V,D,$,Z,te,K,v,w,j,U,C,L,J,d,Y,_,t,s=0,p=new l.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!O||!O.state||!O.output||!O.input&&O.avail_in!==0)return x;(g=O.state).mode===12&&(g.mode=13),ne=O.next_out,ee=O.output,ue=O.avail_out,z=O.next_in,q=O.input,Q=O.avail_in,V=g.hold,D=g.bits,$=Q,Z=ue,Y=k;e:for(;;)switch(g.mode){case I:if(g.wrap===0){g.mode=13;break}for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(2&g.wrap&&V===35615){p[g.check=0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,2,0),D=V=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&V)<<8)+(V>>8))%31){O.msg="incorrect header check",g.mode=30;break}if((15&V)!=8){O.msg="unknown compression method",g.mode=30;break}if(D-=4,d=8+(15&(V>>>=4)),g.wbits===0)g.wbits=d;else if(d>g.wbits){O.msg="invalid window size",g.mode=30;break}g.dmax=1<<d,O.adler=g.check=1,g.mode=512&V?10:12,D=V=0;break;case 2:for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(g.flags=V,(255&g.flags)!=8){O.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){O.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=V>>8&1),512&g.flags&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,2,0)),D=V=0,g.mode=3;case 3:for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.head&&(g.head.time=V),512&g.flags&&(p[0]=255&V,p[1]=V>>>8&255,p[2]=V>>>16&255,p[3]=V>>>24&255,g.check=n(g.check,p,4,0)),D=V=0,g.mode=4;case 4:for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.head&&(g.head.xflags=255&V,g.head.os=V>>8),512&g.flags&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,2,0)),D=V=0,g.mode=5;case 5:if(1024&g.flags){for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.length=V,g.head&&(g.head.extra_len=V),512&g.flags&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,2,0)),D=V=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(Q<(te=g.length)&&(te=Q),te&&(g.head&&(d=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),l.arraySet(g.head.extra,q,z,te,d)),512&g.flags&&(g.check=n(g.check,q,te,z)),Q-=te,z+=te,g.length-=te),g.length))break e;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(Q===0)break e;for(te=0;d=q[z+te++],g.head&&d&&g.length<65536&&(g.head.name+=String.fromCharCode(d)),d&&te<Q;);if(512&g.flags&&(g.check=n(g.check,q,te,z)),Q-=te,z+=te,d)break e}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(Q===0)break e;for(te=0;d=q[z+te++],g.head&&d&&g.length<65536&&(g.head.comment+=String.fromCharCode(d)),d&&te<Q;);if(512&g.flags&&(g.check=n(g.check,q,te,z)),Q-=te,z+=te,d)break e}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V!==(65535&g.check)){O.msg="header crc mismatch",g.mode=30;break}D=V=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),O.adler=g.check=0,g.mode=12;break;case 10:for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}O.adler=g.check=o(V),D=V=0,g.mode=11;case 11:if(g.havedict===0)return O.next_out=ne,O.avail_out=ue,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,2;O.adler=g.check=1,g.mode=12;case 12:if(M===5||M===6)break e;case 13:if(g.last){V>>>=7&D,D-=7&D,g.mode=27;break}for(;D<3;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}switch(g.last=1&V,D-=1,3&(V>>>=1)){case 0:g.mode=14;break;case 1:if(X(g),g.mode=20,M!==6)break;V>>>=2,D-=2;break e;case 2:g.mode=17;break;case 3:O.msg="invalid block type",g.mode=30}V>>>=2,D-=2;break;case 14:for(V>>>=7&D,D-=7&D;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if((65535&V)!=(V>>>16^65535)){O.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&V,D=V=0,g.mode=15,M===6)break e;case 15:g.mode=16;case 16:if(te=g.length){if(Q<te&&(te=Q),ue<te&&(te=ue),te===0)break e;l.arraySet(ee,q,z,te,ne),Q-=te,z+=te,ue-=te,ne+=te,g.length-=te;break}g.mode=12;break;case 17:for(;D<14;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(g.nlen=257+(31&V),V>>>=5,D-=5,g.ndist=1+(31&V),V>>>=5,D-=5,g.ncode=4+(15&V),V>>>=4,D-=4,286<g.nlen||30<g.ndist){O.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;D<3;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.lens[B[g.have++]]=7&V,V>>>=3,D-=3}for(;g.have<19;)g.lens[B[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,_={bits:g.lenbits},Y=A(0,g.lens,0,19,g.lencode,0,g.work,_),g.lenbits=_.bits,Y){O.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;j=(s=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(U<16)V>>>=w,D-=w,g.lens[g.have++]=U;else{if(U===16){for(t=w+2;D<t;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V>>>=w,D-=w,g.have===0){O.msg="invalid bit length repeat",g.mode=30;break}d=g.lens[g.have-1],te=3+(3&V),V>>>=2,D-=2}else if(U===17){for(t=w+3;D<t;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=w,d=0,te=3+(7&(V>>>=w)),V>>>=3,D-=3}else{for(t=w+7;D<t;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=w,d=0,te=11+(127&(V>>>=w)),V>>>=7,D-=7}if(g.have+te>g.nlen+g.ndist){O.msg="invalid bit length repeat",g.mode=30;break}for(;te--;)g.lens[g.have++]=d}}if(g.mode===30)break;if(g.lens[256]===0){O.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,_={bits:g.lenbits},Y=A(T,g.lens,0,g.nlen,g.lencode,0,g.work,_),g.lenbits=_.bits,Y){O.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,_={bits:g.distbits},Y=A(S,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,_),g.distbits=_.bits,Y){O.msg="invalid distances set",g.mode=30;break}if(g.mode=20,M===6)break e;case 20:g.mode=21;case 21:if(6<=Q&&258<=ue){O.next_out=ne,O.avail_out=ue,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,h(O,Z),ne=O.next_out,ee=O.output,ue=O.avail_out,z=O.next_in,q=O.input,Q=O.avail_in,V=g.hold,D=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;j=(s=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(j&&(240&j)==0){for(C=w,L=j,J=U;j=(s=g.lencode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&s,!(C+(w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=w,D-=w,g.back+=w,g.length=U,j===0){g.mode=26;break}if(32&j){g.back=-1,g.mode=12;break}if(64&j){O.msg="invalid literal/length code",g.mode=30;break}g.extra=15&j,g.mode=22;case 22:if(g.extra){for(t=g.extra;D<t;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.length+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;j=(s=g.distcode[V&(1<<g.distbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if((240&j)==0){for(C=w,L=j,J=U;j=(s=g.distcode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&s,!(C+(w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=w,D-=w,g.back+=w,64&j){O.msg="invalid distance code",g.mode=30;break}g.offset=U,g.extra=15&j,g.mode=24;case 24:if(g.extra){for(t=g.extra;D<t;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.offset+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){O.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(ue===0)break e;if(te=Z-ue,g.offset>te){if((te=g.offset-te)>g.whave&&g.sane){O.msg="invalid distance too far back",g.mode=30;break}K=te>g.wnext?(te-=g.wnext,g.wsize-te):g.wnext-te,te>g.length&&(te=g.length),v=g.window}else v=ee,K=ne-g.offset,te=g.length;for(ue<te&&(te=ue),ue-=te,g.length-=te;ee[ne++]=v[K++],--te;);g.length===0&&(g.mode=21);break;case 26:if(ue===0)break e;ee[ne++]=g.length,ue--,g.mode=21;break;case 27:if(g.wrap){for(;D<32;){if(Q===0)break e;Q--,V|=q[z++]<<D,D+=8}if(Z-=ue,O.total_out+=Z,g.total+=Z,Z&&(O.adler=g.check=g.flags?n(g.check,ee,Z,ne-Z):f(g.check,ee,Z,ne-Z)),Z=ue,(g.flags?V:o(V))!==g.check){O.msg="incorrect data check",g.mode=30;break}D=V=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V!==(4294967295&g.total)){O.msg="incorrect length check",g.mode=30;break}D=V=0}g.mode=29;case 29:Y=1;break e;case 30:Y=-3;break e;case 31:return-4;case 32:default:return x}return O.next_out=ne,O.avail_out=ue,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,(g.wsize||Z!==O.avail_out&&g.mode<30&&(g.mode<27||M!==4))&&ae(O,O.output,O.next_out,Z-O.avail_out)?(g.mode=31,-4):($-=O.avail_in,Z-=O.avail_out,O.total_in+=$,O.total_out+=Z,g.total+=Z,g.wrap&&Z&&(O.adler=g.check=g.flags?n(g.check,ee,Z,O.next_out-Z):f(g.check,ee,Z,O.next_out-Z)),O.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),($==0&&Z===0||M===4)&&Y===k&&(Y=-5),Y)},c.inflateEnd=function(O){if(!O||!O.state)return x;var M=O.state;return M.window&&(M.window=null),O.state=null,k},c.inflateGetHeader=function(O,M){var g;return O&&O.state?(2&(g=O.state).wrap)==0?x:((g.head=M).done=!1,k):x},c.inflateSetDictionary=function(O,M){var g,q=M.length;return O&&O.state?(g=O.state).wrap!==0&&g.mode!==11?x:g.mode===11&&f(1,M,q,0)!==g.check?-3:ae(O,M,q,q)?(g.mode=31,-4):(g.havedict=1,k):x},c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(i,a,c){var l=i("../utils/common"),f=[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],n=[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],h=[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],A=[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];a.exports=function(T,S,k,x,I,b,R,o){var y,m,u,E,P,F,W,N,X,ae=o.bits,O=0,M=0,g=0,q=0,ee=0,z=0,ne=0,Q=0,ue=0,V=0,D=null,$=0,Z=new l.Buf16(16),te=new l.Buf16(16),K=null,v=0;for(O=0;O<=15;O++)Z[O]=0;for(M=0;M<x;M++)Z[S[k+M]]++;for(ee=ae,q=15;1<=q&&Z[q]===0;q--);if(q<ee&&(ee=q),q===0)return I[b++]=20971520,I[b++]=20971520,o.bits=1,0;for(g=1;g<q&&Z[g]===0;g++);for(ee<g&&(ee=g),O=Q=1;O<=15;O++)if(Q<<=1,(Q-=Z[O])<0)return-1;if(0<Q&&(T===0||q!==1))return-1;for(te[1]=0,O=1;O<15;O++)te[O+1]=te[O]+Z[O];for(M=0;M<x;M++)S[k+M]!==0&&(R[te[S[k+M]]++]=M);if(F=T===0?(D=K=R,19):T===1?(D=f,$-=257,K=n,v-=257,256):(D=h,K=A,-1),O=g,P=b,ne=M=V=0,u=-1,E=(ue=1<<(z=ee))-1,T===1&&852<ue||T===2&&592<ue)return 1;for(;;){for(W=O-ne,X=R[M]<F?(N=0,R[M]):R[M]>F?(N=K[v+R[M]],D[$+R[M]]):(N=96,0),y=1<<O-ne,g=m=1<<z;I[P+(V>>ne)+(m-=y)]=W<<24|N<<16|X|0,m!==0;);for(y=1<<O-1;V&y;)y>>=1;if(y!==0?(V&=y-1,V+=y):V=0,M++,--Z[O]==0){if(O===q)break;O=S[k+R[M]]}if(ee<O&&(V&E)!==u){for(ne===0&&(ne=ee),P+=g,Q=1<<(z=O-ne);z+ne<q&&!((Q-=Z[z+ne])<=0);)z++,Q<<=1;if(ue+=1<<z,T===1&&852<ue||T===2&&592<ue)return 1;I[u=V&E]=ee<<24|z<<16|P-b|0}}return V!==0&&(I[P+V]=O-ne<<24|64<<16|0),o.bits=ee,0}},{"../utils/common":41}],51:[function(i,a,c){a.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(i,a,c){var l=i("../utils/common"),f=0,n=1;function h(s){for(var p=s.length;0<=--p;)s[p]=0}var A=0,T=29,S=256,k=S+1+T,x=30,I=19,b=2*k+1,R=15,o=16,y=7,m=256,u=16,E=17,P=18,F=[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],W=[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],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=new Array(2*(k+2));h(ae);var O=new Array(2*x);h(O);var M=new Array(512);h(M);var g=new Array(256);h(g);var q=new Array(T);h(q);var ee,z,ne,Q=new Array(x);function ue(s,p,B,G,H){this.static_tree=s,this.extra_bits=p,this.extra_base=B,this.elems=G,this.max_length=H,this.has_stree=s&&s.length}function V(s,p){this.dyn_tree=s,this.max_code=0,this.stat_desc=p}function D(s){return s<256?M[s]:M[256+(s>>>7)]}function $(s,p){s.pending_buf[s.pending++]=255&p,s.pending_buf[s.pending++]=p>>>8&255}function Z(s,p,B){s.bi_valid>o-B?(s.bi_buf|=p<<s.bi_valid&65535,$(s,s.bi_buf),s.bi_buf=p>>o-s.bi_valid,s.bi_valid+=B-o):(s.bi_buf|=p<<s.bi_valid&65535,s.bi_valid+=B)}function te(s,p,B){Z(s,B[2*p],B[2*p+1])}function K(s,p){for(var B=0;B|=1&s,s>>>=1,B<<=1,0<--p;);return B>>>1}function v(s,p,B){var G,H,re=new Array(R+1),se=0;for(G=1;G<=R;G++)re[G]=se=se+B[G-1]<<1;for(H=0;H<=p;H++){var ie=s[2*H+1];ie!==0&&(s[2*H]=K(re[ie]++,ie))}}function w(s){var p;for(p=0;p<k;p++)s.dyn_ltree[2*p]=0;for(p=0;p<x;p++)s.dyn_dtree[2*p]=0;for(p=0;p<I;p++)s.bl_tree[2*p]=0;s.dyn_ltree[2*m]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function j(s){8<s.bi_valid?$(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function U(s,p,B,G){var H=2*p,re=2*B;return s[H]<s[re]||s[H]===s[re]&&G[p]<=G[B]}function C(s,p,B){for(var G=s.heap[B],H=B<<1;H<=s.heap_len&&(H<s.heap_len&&U(p,s.heap[H+1],s.heap[H],s.depth)&&H++,!U(p,G,s.heap[H],s.depth));)s.heap[B]=s.heap[H],B=H,H<<=1;s.heap[B]=G}function L(s,p,B){var G,H,re,se,ie=0;if(s.last_lit!==0)for(;G=s.pending_buf[s.d_buf+2*ie]<<8|s.pending_buf[s.d_buf+2*ie+1],H=s.pending_buf[s.l_buf+ie],ie++,G===0?te(s,H,p):(te(s,(re=g[H])+S+1,p),(se=F[re])!==0&&Z(s,H-=q[re],se),te(s,re=D(--G),B),(se=W[re])!==0&&Z(s,G-=Q[re],se)),ie<s.last_lit;);te(s,m,p)}function J(s,p){var B,G,H,re=p.dyn_tree,se=p.stat_desc.static_tree,ie=p.stat_desc.has_stree,ce=p.stat_desc.elems,he=-1;for(s.heap_len=0,s.heap_max=b,B=0;B<ce;B++)re[2*B]!==0?(s.heap[++s.heap_len]=he=B,s.depth[B]=0):re[2*B+1]=0;for(;s.heap_len<2;)re[2*(H=s.heap[++s.heap_len]=he<2?++he:0)]=1,s.depth[H]=0,s.opt_len--,ie&&(s.static_len-=se[2*H+1]);for(p.max_code=he,B=s.heap_len>>1;1<=B;B--)C(s,re,B);for(H=ce;B=s.heap[1],s.heap[1]=s.heap[s.heap_len--],C(s,re,1),G=s.heap[1],s.heap[--s.heap_max]=B,s.heap[--s.heap_max]=G,re[2*H]=re[2*B]+re[2*G],s.depth[H]=(s.depth[B]>=s.depth[G]?s.depth[B]:s.depth[G])+1,re[2*B+1]=re[2*G+1]=H,s.heap[1]=H++,C(s,re,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(de,xe){var Fe,Se,ot,ye,Nt,ur,Ce=xe.dyn_tree,_a=xe.max_code,oc=xe.stat_desc.static_tree,uc=xe.stat_desc.has_stree,cc=xe.stat_desc.extra_bits,ba=xe.stat_desc.extra_base,ut=xe.stat_desc.max_length,kt=0;for(ye=0;ye<=R;ye++)de.bl_count[ye]=0;for(Ce[2*de.heap[de.heap_max]+1]=0,Fe=de.heap_max+1;Fe<b;Fe++)ut<(ye=Ce[2*Ce[2*(Se=de.heap[Fe])+1]+1]+1)&&(ye=ut,kt++),Ce[2*Se+1]=ye,_a<Se||(de.bl_count[ye]++,Nt=0,ba<=Se&&(Nt=cc[Se-ba]),ur=Ce[2*Se],de.opt_len+=ur*(ye+Nt),uc&&(de.static_len+=ur*(oc[2*Se+1]+Nt)));if(kt!==0){do{for(ye=ut-1;de.bl_count[ye]===0;)ye--;de.bl_count[ye]--,de.bl_count[ye+1]+=2,de.bl_count[ut]--,kt-=2}while(0<kt);for(ye=ut;ye!==0;ye--)for(Se=de.bl_count[ye];Se!==0;)_a<(ot=de.heap[--Fe])||(Ce[2*ot+1]!==ye&&(de.opt_len+=(ye-Ce[2*ot+1])*Ce[2*ot],Ce[2*ot+1]=ye),Se--)}}(s,p),v(re,he,s.bl_count)}function d(s,p,B){var G,H,re=-1,se=p[1],ie=0,ce=7,he=4;for(se===0&&(ce=138,he=3),p[2*(B+1)+1]=65535,G=0;G<=B;G++)H=se,se=p[2*(G+1)+1],++ie<ce&&H===se||(ie<he?s.bl_tree[2*H]+=ie:H!==0?(H!==re&&s.bl_tree[2*H]++,s.bl_tree[2*u]++):ie<=10?s.bl_tree[2*E]++:s.bl_tree[2*P]++,re=H,he=(ie=0)===se?(ce=138,3):H===se?(ce=6,3):(ce=7,4))}function Y(s,p,B){var G,H,re=-1,se=p[1],ie=0,ce=7,he=4;for(se===0&&(ce=138,he=3),G=0;G<=B;G++)if(H=se,se=p[2*(G+1)+1],!(++ie<ce&&H===se)){if(ie<he)for(;te(s,H,s.bl_tree),--ie!=0;);else H!==0?(H!==re&&(te(s,H,s.bl_tree),ie--),te(s,u,s.bl_tree),Z(s,ie-3,2)):ie<=10?(te(s,E,s.bl_tree),Z(s,ie-3,3)):(te(s,P,s.bl_tree),Z(s,ie-11,7));re=H,he=(ie=0)===se?(ce=138,3):H===se?(ce=6,3):(ce=7,4)}}h(Q);var _=!1;function t(s,p,B,G){Z(s,(A<<1)+(G?1:0),3),function(H,re,se,ie){j(H),$(H,se),$(H,~se),l.arraySet(H.pending_buf,H.window,re,se,H.pending),H.pending+=se}(s,p,B)}c._tr_init=function(s){_||(function(){var p,B,G,H,re,se=new Array(R+1);for(H=G=0;H<T-1;H++)for(q[H]=G,p=0;p<1<<F[H];p++)g[G++]=H;for(g[G-1]=H,H=re=0;H<16;H++)for(Q[H]=re,p=0;p<1<<W[H];p++)M[re++]=H;for(re>>=7;H<x;H++)for(Q[H]=re<<7,p=0;p<1<<W[H]-7;p++)M[256+re++]=H;for(B=0;B<=R;B++)se[B]=0;for(p=0;p<=143;)ae[2*p+1]=8,p++,se[8]++;for(;p<=255;)ae[2*p+1]=9,p++,se[9]++;for(;p<=279;)ae[2*p+1]=7,p++,se[7]++;for(;p<=287;)ae[2*p+1]=8,p++,se[8]++;for(v(ae,k+1,se),p=0;p<x;p++)O[2*p+1]=5,O[2*p]=K(p,5);ee=new ue(ae,F,S+1,k,R),z=new ue(O,W,0,x,R),ne=new ue(new Array(0),N,0,I,y)}(),_=!0),s.l_desc=new V(s.dyn_ltree,ee),s.d_desc=new V(s.dyn_dtree,z),s.bl_desc=new V(s.bl_tree,ne),s.bi_buf=0,s.bi_valid=0,w(s)},c._tr_stored_block=t,c._tr_flush_block=function(s,p,B,G){var H,re,se=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(ie){var ce,he=4093624447;for(ce=0;ce<=31;ce++,he>>>=1)if(1&he&&ie.dyn_ltree[2*ce]!==0)return f;if(ie.dyn_ltree[18]!==0||ie.dyn_ltree[20]!==0||ie.dyn_ltree[26]!==0)return n;for(ce=32;ce<S;ce++)if(ie.dyn_ltree[2*ce]!==0)return n;return f}(s)),J(s,s.l_desc),J(s,s.d_desc),se=function(ie){var ce;for(d(ie,ie.dyn_ltree,ie.l_desc.max_code),d(ie,ie.dyn_dtree,ie.d_desc.max_code),J(ie,ie.bl_desc),ce=I-1;3<=ce&&ie.bl_tree[2*X[ce]+1]===0;ce--);return ie.opt_len+=3*(ce+1)+5+5+4,ce}(s),H=s.opt_len+3+7>>>3,(re=s.static_len+3+7>>>3)<=H&&(H=re)):H=re=B+5,B+4<=H&&p!==-1?t(s,p,B,G):s.strategy===4||re===H?(Z(s,2+(G?1:0),3),L(s,ae,O)):(Z(s,4+(G?1:0),3),function(ie,ce,he,de){var xe;for(Z(ie,ce-257,5),Z(ie,he-1,5),Z(ie,de-4,4),xe=0;xe<de;xe++)Z(ie,ie.bl_tree[2*X[xe]+1],3);Y(ie,ie.dyn_ltree,ce-1),Y(ie,ie.dyn_dtree,he-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,se+1),L(s,s.dyn_ltree,s.dyn_dtree)),w(s),G&&j(s)},c._tr_tally=function(s,p,B){return s.pending_buf[s.d_buf+2*s.last_lit]=p>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&p,s.pending_buf[s.l_buf+s.last_lit]=255&B,s.last_lit++,p===0?s.dyn_ltree[2*B]++:(s.matches++,p--,s.dyn_ltree[2*(g[B]+S+1)]++,s.dyn_dtree[2*D(p)]++),s.last_lit===s.lit_bufsize-1},c._tr_align=function(s){Z(s,2,3),te(s,m,ae),function(p){p.bi_valid===16?($(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):8<=p.bi_valid&&(p.pending_buf[p.pending++]=255&p.bi_buf,p.bi_buf>>=8,p.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(i,a,c){a.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(i,a,c){(function(l){(function(f,n){if(!f.setImmediate){var h,A,T,S,k=1,x={},I=!1,b=f.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(f);R=R&&R.setTimeout?R:f,h={}.toString.call(f.process)==="[object process]"?function(u){pe.nextTick(function(){y(u)})}:function(){if(f.postMessage&&!f.importScripts){var u=!0,E=f.onmessage;return f.onmessage=function(){u=!1},f.postMessage("","*"),f.onmessage=E,u}}()?(S="setImmediate$"+Math.random()+"$",f.addEventListener?f.addEventListener("message",m,!1):f.attachEvent("onmessage",m),function(u){f.postMessage(S+u,"*")}):f.MessageChannel?((T=new MessageChannel).port1.onmessage=function(u){y(u.data)},function(u){T.port2.postMessage(u)}):b&&"onreadystatechange"in b.createElement("script")?(A=b.documentElement,function(u){var E=b.createElement("script");E.onreadystatechange=function(){y(u),E.onreadystatechange=null,A.removeChild(E),E=null},A.appendChild(E)}):function(u){setTimeout(y,0,u)},R.setImmediate=function(u){typeof u!="function"&&(u=new Function(""+u));for(var E=new Array(arguments.length-1),P=0;P<E.length;P++)E[P]=arguments[P+1];var F={callback:u,args:E};return x[k]=F,h(k),k++},R.clearImmediate=o}function o(u){delete x[u]}function y(u){if(I)setTimeout(y,0,u);else{var E=x[u];if(E){I=!0;try{(function(P){var F=P.callback,W=P.args;switch(W.length){case 0:F();break;case 1:F(W[0]);break;case 2:F(W[0],W[1]);break;case 3:F(W[0],W[1],W[2]);break;default:F.apply(n,W)}})(E)}finally{o(u),I=!1}}}}function m(u){u.source===f&&typeof u.data=="string"&&u.data.indexOf(S)===0&&y(+u.data.slice(S.length))}})(typeof self=="undefined"?l===void 0?this:l:self)}).call(this,typeof Te!="undefined"?Te:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(Xn)),Xn.exports}var ih=nh(),sh=la(ih),lt={exports:{}},Zn,bu;function ah(){if(bu)return Zn;bu=1;var r={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function e(i){return i&&i.replace?i.replace(/([&"<>'])/g,function(a,c){return r[c]}):i}return Zn=e,Zn}var Eu;function oh(){if(Eu)return lt.exports;Eu=1;var r=ah(),e=wa().Stream,i=" ";function a(A,T){typeof T!="object"&&(T={indent:T});var S=T.stream?new e:null,k="",x=!1,I=T.indent?T.indent===!0?i:T.indent:"",b=!0;function R(E){b?pe.nextTick(E):E()}function o(E,P){if(P!==void 0&&(k+=P),E&&!x&&(S=S||new e,x=!0),E&&x){var F=k;R(function(){S.emit("data",F)}),k=""}}function y(E,P){n(o,f(E,I,I?1:0),P)}function m(){if(S){var E=k;R(function(){S.emit("data",E),S.emit("end"),S.readable=!1,S.emit("close")})}}function u(E){var P=E.encoding||"UTF-8",F={version:"1.0",encoding:P};E.standalone&&(F.standalone=E.standalone),y({"?xml":{_attr:F}}),k=k.replace("/>","?>")}return R(function(){b=!1}),T.declaration&&u(T.declaration),A&&A.forEach?A.forEach(function(E,P){var F;P+1===A.length&&(F=m),y(E,F)}):y(A,m),S?(S.readable=!0,S):k}function c(){var A=Array.prototype.slice.call(arguments),T={_elem:f(A)};return T.push=function(S){if(!this.append)throw new Error("not assigned to a parent!");var k=this,x=this._elem.indent;n(this.append,f(S,x,this._elem.icount+(x?1:0)),function(){k.append(!0)})},T.close=function(S){S!==void 0&&this.push(S),this.end&&this.end()},T}function l(A,T){return new Array(T||0).join(A||"")}function f(A,T,S){S=S||0;var k=l(T,S),x,I=A,b=!1;if(typeof A=="object"){var R=Object.keys(A);if(x=R[0],I=A[x],I&&I._elem)return I._elem.name=x,I._elem.icount=S,I._elem.indent=T,I._elem.indents=k,I._elem.interrupt=I,I._elem}var o=[],y=[],m;function u(E){var P=Object.keys(E);P.forEach(function(F){o.push(h(F,E[F]))})}switch(typeof I){case"object":if(I===null)break;I._attr&&u(I._attr),I._cdata&&y.push(("<![CDATA["+I._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),I.forEach&&(m=!1,y.push(""),I.forEach(function(E){if(typeof E=="object"){var P=Object.keys(E)[0];P=="_attr"?u(E._attr):y.push(f(E,T,S+1))}else y.pop(),m=!0,y.push(r(E))}),m||y.push(""));break;default:y.push(r(I))}return{name:x,interrupt:b,attributes:o,content:y,icount:S,indents:k,indent:T}}function n(A,T,S){if(typeof T!="object")return A(!1,T);var k=T.interrupt?1:T.content.length;function x(){for(;T.content.length;){var b=T.content.shift();if(b!==void 0){if(I(b))return;n(A,b)}}A(!1,(k>1?T.indents:"")+(T.name?"</"+T.name+">":"")+(T.indent&&!S?`
22
- `:"")),S&&S()}function I(b){return b.interrupt?(b.interrupt.append=A,b.interrupt.end=x,b.interrupt=!1,A(!0),!0):!1}if(A(!1,T.indents+(T.name?"<"+T.name:"")+(T.attributes.length?" "+T.attributes.join(" "):"")+(k?T.name?">":"":T.name?"/>":"")+(T.indent&&k>1?`
23
- `:"")),!k)return A(!1,T.indent?`
24
- `:"");I(T)||x()}function h(A,T){return A+'="'+r(T)+'"'}return lt.exports=a,lt.exports.element=lt.exports.Element=c,lt.exports}var uh=oh(),ve=la(uh),ht=0,Yn=32,ch=32,lh=(r,e)=>{let i=e.replace(/-/g,"");if(i.length!==ch)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);let c=i.replace(/(..)/g,"$1 ").trim().split(" ").map(h=>parseInt(h,16));c.reverse();let f=r.slice(ht,Yn).map((h,A)=>h^c[A%c.length]),n=new Uint8Array(ht+f.length+Math.max(0,r.length-Yn));return n.set(r.slice(0,ht)),n.set(f,ht),n.set(r.slice(Yn),ht+f.length),n},Et=class{format(e,i={stack:[]}){let a=e.prepForXml(i);if(a)return a;throw Error("XMLComponent did not format correctly")}},rr=class{replace(e,i,a){let c=e;return i.forEach((l,f)=>{c=c.replace(new RegExp(`{${l.fileName}}`,"g"),(a+f).toString())}),c}getMediaData(e,i){return i.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}},ua=class{replace(e,i){let a=e;for(let c of i)a=a.replace(new RegExp(`{${c.reference}-${c.instance}}`,"g"),c.numId.toString());return a}},ca=class{constructor(){le(this,"formatter"),le(this,"imageReplacer"),le(this,"numberingReplacer"),this.formatter=new Et,this.imageReplacer=new rr,this.numberingReplacer=new ua}compile(e,i,a=[]){let c=new sh,l=this.xmlifyFile(e,i),f=new Map(Object.entries(l));for(let[,n]of f)if(Array.isArray(n))for(let h of n)c.file(h.path,h.data);else c.file(n.path,n.data);for(let n of a)c.file(n.path,n.data);for(let n of e.Media.Array)n.type!=="svg"?c.file(`word/media/${n.fileName}`,n.data):(c.file(`word/media/${n.fileName}`,n.data),c.file(`word/media/${n.fallback.fileName}`,n.fallback.data));for(let{data:n,name:h,fontKey:A}of e.FontTable.fontOptionsWithKey){let[T]=h.split(".");c.file(`word/fonts/${T}.odttf`,lh(n,A))}return c}xmlifyFile(e,i){let a=e.Document.Relationships.RelationshipCount+1,c=ve(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(c,e.Media);return{Relationships:{data:(l.forEach((f,n)=>{e.Document.Relationships.createRelationship(a+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),e.Document.Relationships.createRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),ve(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let f=this.imageReplacer.replace(c,l,a);return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let f=ve(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:ve(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:ve(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:ve(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((f,n)=>{let h=ve(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((T,S)=>{f.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:ve(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${n+1}.xml.rels`}}),FooterRelationships:e.Footers.map((f,n)=>{let h=ve(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((T,S)=>{f.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:ve(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${n+1}.xml.rels`}}),Headers:e.Headers.map((f,n)=>{let h=ve(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(h,e.Media),T=this.imageReplacer.replace(h,A,0);return{data:this.numberingReplacer.replace(T,e.Numbering.ConcreteNumbering),path:`word/header${n+1}.xml`}}),Footers:e.Footers.map((f,n)=>{let h=ve(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(h,e.Media),T=this.imageReplacer.replace(h,A,0);return{data:this.numberingReplacer.replace(T,e.Numbering.ConcreteNumbering),path:`word/footer${n+1}.xml`}}),ContentTypes:{data:ve(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:ve(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:ve(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:ve(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:ve(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:ve(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:ve(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:ve(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:ve(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}},hh={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},xu=r=>r===!0?hh.WITH_2_BLANKS:r===!1?void 0:r,fh=class $e{static pack(e,i,a){return bc(this,arguments,function*(c,l,f,n=[]){return this.compiler.compile(c,xu(f),n).generateAsync({type:l,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,i,a=[]){return $e.pack(e,"string",i,a)}static toBuffer(e,i,a=[]){return $e.pack(e,"nodebuffer",i,a)}static toBase64String(e,i,a=[]){return $e.pack(e,"base64",i,a)}static toBlob(e,i,a=[]){return $e.pack(e,"blob",i,a)}static toArrayBuffer(e,i,a=[]){return $e.pack(e,"arraybuffer",i,a)}static toStream(e,i,a=[]){let c=new rh.Stream;return this.compiler.compile(e,xu(i),a).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(f=>{c.emit("data",f),c.emit("end")}),c}};le(fh,"compiler",new ca);var Ah=new Et;var Sh=new Et;var Rh=new rr;function dh(r){let i=new Uint8Array(r).slice(0,4);if(i[0]===66&&i[1]===77)return"bmp";let a="";switch(i.forEach(c=>{a+=c.toString(16).padStart(2,"0")}),a){case"89504E47":return"png";case"47494638":return"gif";case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":case"FFD8FFE8":return"jpg"}}var or=3,ph=async r=>{let e=document.createElement("canvas"),i=e.getContext("2d");if(i){let a=new Image;a.src=r,await new Promise(f=>{a.onload=f});let c=a.width*or,l=a.height*or;return e.width=c,e.height=l,i.drawImage(a,0,0,c,l),{data:e.toDataURL("image/png"),type:"png",transformation:{width:c/or,height:l/or}}}else throw new Error("Canvas context not available")},mh=async r=>{let i=await(await fetch(r)).arrayBuffer(),a=dh(i)||"png",c=await createImageBitmap(new Blob([i],{type:a}));return{type:a,data:i,transformation:{width:c.width,height:c.height}}},wh=async r=>{try{return r.startsWith("data:")?await ph(r):await mh(r)}catch(e){return console.error(`Error resolving image: ${r}`,e),{type:"png",data:Buffer.from([]),transformation:{width:100,height:100}}}},ac={useTitle:!0,imageResolver:wh};var gh=(r,e,i)=>{let a=async(l,f)=>{var S,k,x;let n=new Set(f),h={bold:f.has("strong"),italics:f.has("emphasis"),strike:f.has("delete")},A=(k=l.url)!=null?k:r[(S=l.identifier)==null?void 0:S.toUpperCase()],T=(x=l.alt)!=null?x:A==null?void 0:A.split("/").pop();switch(l.type){case"text":return[new ke({text:l.value,...h})];case"break":return[new ke({break:1})];case"inlineCode":return[new ke({text:l.value,...h,style:"code"})];case"emphasis":case"strong":case"delete":return n.add(l.type),c(l,n);case"link":case"linkReference":return n.add("link"),[A.startsWith("#")?new Qt({anchor:A,children:await c(l,n)}):new _t({link:A,children:await c(l,n)})];case"image":case"imageReference":return[new Jt({...await i(A),altText:{description:T,name:T,title:T}})];case"footnoteReference":return[new tr(e[l.identifier].id)];default:return[new ke("")]}},c=async(l,f=new Set)=>{var n;return(await Promise.all((n=l.children)==null?void 0:n.map(h=>a(h,f)))).flat()};return c},yh=async(r,e,i,a)=>{let{imageResolver:c,useTitle:l,...f}={...ac,...a},n=gh(e,i,c),h=async(T,S)=>{let k=[...S],x={};switch(S.includes("list")&&(x.bullet={level:S.filter(I=>I==="list").length-1}),S.includes("blockquote")&&(x.style="Quote"),T.type){case"paragraph":return[new He({...x,children:await n(T)})];case"heading":return[new He({heading:l?T.depth===1?"Title":`Heading${T.depth-1}`:`Heading${T.depth}`,children:await n(T)})];case"code":return[new He({alignment:"start",style:"blockCode",children:T.value.split(`
25
- `).map(I=>new ke({text:I,break:1,style:"code"}))})];case"list":case"blockquote":case"listItem":return k.push(T.type),A(T,k);case"thematicBreak":return[new He({border:{top:{style:St.SINGLE,size:6}}})];case"table":case"tableRow":case"tableCell":case"yaml":case"html":default:return console.warn(`Unsupported node type: ${T.type}`,T),[]}},A=async(T,S)=>{var k;return(await Promise.all((k=T.children)==null?void 0:k.map(x=>h(x,S)))).flat()};return{...f,children:await A(r,[])}};0&&(module.exports={toSection});
26
- /*! Bundled license information:
27
-
28
- @mayank1513/docx/dist/index.mjs:
29
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
30
- (*!
31
- * The buffer module from node.js, for the browser.
32
- *
33
- * @author Feross Aboukhadijeh <https://feross.org>
34
- * @license MIT
35
- *)
36
- (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
37
- (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
38
- */
1
+ "use strict";var O=Object.create;var y=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var v=(e,n)=>{for(var l in n)y(e,l,{get:n[l],enumerable:!0})},T=(e,n,l,P)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of N(n))!B.call(e,s)&&s!==l&&y(e,s,{get:()=>n[s],enumerable:!(P=M(n,s))||P.enumerable});return e};var E=(e,n,l)=>(l=e!=null?O(S(e)):{},T(n||!e||!e.__esModule?y(l,"default",{value:e,enumerable:!0}):l,e)),F=e=>T(y({},"__esModule",{value:!0}),e);var K={};v(K,{toSection:()=>j});module.exports=F(K);var k=require("@mayank1513/docx");var I=e=>{var n,l;return(n=e.children)!=null&&n.length?e.children.map(I).join(""):(l=e.value)!=null?l:""};var g={useTitle:!0,plugins:[]};var R=E(require("@mayank1513/docx")),H=(e,n,l)=>{let P=async(a,f)=>{var t,u,c;let r=Object.assign({},f),p=(await Promise.all(l.map(i=>{var h,x;return(x=(h=i.inline)==null?void 0:h.call(i,R,a,r,e,n,s))!=null?x:[]}))).flat(),d=(u=a.url)!=null?u:e[(t=a.identifier)==null?void 0:t.toUpperCase()];switch(a.type){case"text":return[...p,new k.TextRun({text:a.value,...r})];case"break":return[...p,new k.TextRun({break:1})];case"inlineCode":return[...p,new k.TextRun({text:a.value,...r,style:"code",font:{name:"Consolas"}})];case"emphasis":return r.italics=!0,[...p,...await s(a,r)];case"strong":return r.bold=!0,[...p,...await s(a,r)];case"delete":return r.strike=!0,[...p,...await s(a,r)];case"link":case"linkReference":return[...p,d.startsWith("#")?new k.InternalHyperlink({anchor:d.slice(1),children:await s(a,r)}):new k.ExternalHyperlink({link:d,children:await s(a,r)})];case"footnoteReference":return[...p,new k.FootnoteReferenceRun((c=n[a.identifier].id)!=null?c:0)];default:return[...p]}},s=async(a,f=new Set)=>{var r;return(await Promise.all((r=a.children)==null?void 0:r.map(p=>P(p,f)))).flat()};return s},j=async(e,n,l,P)=>{let{plugins:s,useTitle:a,...f}={...g,...P},r=H(n,l,s),p=async(t,u)=>{var h,x,b,C;let c=Object.assign({},u),i=(await Promise.all(s.map(m=>{var w,D;return(D=(w=m.block)==null?void 0:w.call(m,R,t,c,d,r))!=null?D:[]}))).flat();switch(t.type){case"paragraph":return[...i,new k.Paragraph({...u,children:await r(t)})];case"heading":return[new k.Paragraph({...i,heading:a?t.depth===1?"Title":`Heading${t.depth-1}`:`Heading${t.depth}`,children:[new k.Bookmark({id:I(t).replace(/[. ]+/g,"-").toLowerCase(),children:await r(t)})]})];case"code":return[...i,new k.Paragraph({alignment:"start",style:"blockCode",children:t.value.split(`
2
+ `).map(m=>new k.TextRun({text:m,break:1,style:"code",font:{name:"Consolas"}}))})];case"list":return t.ordered?(c.bullet={level:((x=(h=c.bullet)==null?void 0:h.level)!=null?x:-1)+1},console.warn("Please add numbering plugin to support ordered lists. For now, we use only bullets for both the ordered and the unordered list.")):c.bullet={level:((C=(b=c.bullet)==null?void 0:b.level)!=null?C:-1)+1},[...i,...await d(t,c)];case"blockquote":return[...i,...await d(t,c)];case"listItem":return[...i,...await d(t,c)];case"thematicBreak":return[...i,new k.Paragraph({border:{top:{style:k.BorderStyle.SINGLE,size:6}}})];case"definition":case"footnoteDefinition":return i;case"table":return console.warn("Please add table plugin to support tables."),i;case"":return i;case"yaml":case"html":default:return console.warn(`May be an unsupported node type: ${t.type}`,t),i}},d=async(t,u)=>{var c;return(await Promise.all((c=t.children)==null?void 0:c.map(i=>p(i,u)))).flat()};return{...f,children:await d(e,{})}};0&&(module.exports={toSection});