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
@@ -1,37 +0,0 @@
1
- var ah=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var oh=Object.defineProperty,uh=Object.defineProperties,ch=Object.getOwnPropertyDescriptors,du=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,yi=(r,e,t)=>e in r?oh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,we=(r,e)=>{for(var t in e||(e={}))lh.call(e,t)&&yi(r,t,e[t]);if(du)for(var t of du(e))hh.call(e,t)&&yi(r,t,e[t]);return r},qe=(r,e)=>uh(r,ch(e));var re=(r,e,t)=>yi(r,typeof e!="symbol"?e+"":e,t),fh=(r,e,t)=>new Promise((a,u)=>{var l=h=>{try{i(t.next(h))}catch(A){u(A)}},f=h=>{try{i(t.throw(h))}catch(A){u(A)}},i=h=>h.done?a(h.value):Promise.resolve(h.value).then(l,f);i((t=t.apply(r,e)).next())}),ft=class{constructor(e){re(this,"rootKey"),this.rootKey=e}},dh=Object.seal({}),ne=class extends ft{constructor(e){super(e),re(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);let a=this.root.map(u=>u instanceof ft?u.prepForXml(e):u).filter(u=>u!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((t=a[0])!=null&&t._attr)?a[0]:a:dh}}addChildElement(e){return this.root.push(e),this}},dt=class extends ne{prepForXml(e){let t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}},fe=class extends ft{constructor(e){super("_attr"),re(this,"xmlKeys"),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([a,u])=>{if(u!==void 0){let l=this.xmlKeys&&this.xmlKeys[a]||a;t[l]=u}}),{_attr:t}}},Ve=class extends ft{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:u,value:l})=>qe(we({},a),{[u]:l}),{})}}},ve=class extends fe{constructor(){super(...arguments),re(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"})}},Ie=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Qo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Or={},qt={exports:{}},pu;function eu(){if(pu)return qt.exports;pu=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)},t;r&&typeof r.ownKeys=="function"?t=r.ownKeys:Object.getOwnPropertySymbols?t=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:t=function(E){return Object.getOwnPropertyNames(E)};function a(c){console&&console.warn&&console.warn(c)}var u=Number.isNaN||function(E){return E!==E};function l(){l.init.call(this)}qt.exports=l,qt.exports.once=o,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var f=10;function i(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(c){if(typeof c!="number"||c<0||u(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");f=c}}),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||u(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(c){return c._maxListeners===void 0?l.defaultMaxListeners:c._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 ue=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw ue.context=X,ue}var k=N[E];if(k===void 0)return!1;if(typeof k=="function")e(k,this,P);else for(var M=k.length,g=I(k,M),F=0;F<M;++F)e(g[F],this,P);return!0};function A(c,E,P,F){var W,N,X;if(i(P),N=c._events,N===void 0?(N=c._events=Object.create(null),c._eventsCount=0):(N.newListener!==void 0&&(c.emit("newListener",E,P.listener?P.listener:P),N=c._events),X=N[E]),X===void 0)X=N[E]=P,++c._eventsCount;else if(typeof X=="function"?X=N[E]=F?[P,X]:[X,P]:F?X.unshift(P):X.push(P),W=h(c),W>0&&X.length>W&&!X.warned){X.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=c,ue.type=E,ue.count=X.length,a(ue)}return c}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 R(c,E,P){var F={fired:!1,wrapFn:void 0,target:c,type:E,listener:P},W=T.bind(F);return W.listener=P,F.wrapFn=W,W}l.prototype.once=function(E,P){return i(P),this.on(E,R(this,E,P)),this},l.prototype.prependOnceListener=function(E,P){return i(P),this.prependListener(E,R(this,E,P)),this},l.prototype.removeListener=function(E,P){var F,W,N,X,ue;if(i(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){ue=F[X].listener,N=X;break}if(N<0)return this;N===0?F.shift():_(F,N),F.length===1&&(W[E]=F[0]),W.removeListener!==void 0&&this.emit("removeListener",E,ue||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 O(c,E,P){var F=c._events;if(F===void 0)return[];var W=F[E];return W===void 0?[]:typeof W=="function"?P?[W.listener||W]:[W]:P?S(W):I(W,W.length)}l.prototype.listeners=function(E){return O(this,E,!0)},l.prototype.rawListeners=function(E){return O(this,E,!1)},l.listenerCount=function(c,E){return typeof c.listenerCount=="function"?c.listenerCount(E):x.call(c,E)},l.prototype.listenerCount=x;function x(c){var E=this._events;if(E!==void 0){var P=E[c];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function I(c,E){for(var P=new Array(E),F=0;F<E;++F)P[F]=c[F];return P}function _(c,E){for(;E+1<c.length;E++)c[E]=c[E+1];c.pop()}function S(c){for(var E=new Array(c.length),P=0;P<E.length;++P)E[P]=c[P].listener||c[P];return E}function o(c,E){return new Promise(function(P,F){function W(X){c.removeListener(E,N),F(X)}function N(){typeof c.removeListener=="function"&&c.removeListener("error",W),P([].slice.call(arguments))}m(c,E,N,{once:!0}),E!=="error"&&y(c,W,{once:!0})})}function y(c,E,P){typeof c.on=="function"&&m(c,"error",E,P)}function m(c,E,P,F){if(typeof c.on=="function")F.once?c.once(E,P):c.on(E,P);else if(typeof c.addEventListener=="function")c.addEventListener(E,function W(N){F.once&&c.removeEventListener(E,W),P(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}return qt.exports}var Vt={exports:{}},mu;function Je(){return mu||(mu=1,typeof Object.create=="function"?Vt.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vt.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}),Vt.exports}function ph(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vl={exports:{}},xe=vl.exports={},Le,Pe;function vi(){throw new Error("setTimeout has not been defined")}function _i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Le=setTimeout:Le=vi}catch{Le=vi}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=_i}catch{Pe=_i}})();function _l(r){if(Le===setTimeout)return setTimeout(r,0);if((Le===vi||!Le)&&setTimeout)return Le=setTimeout,setTimeout(r,0);try{return Le(r,0)}catch{try{return Le.call(null,r,0)}catch{return Le.call(this,r,0)}}}function mh(r){if(Pe===clearTimeout)return clearTimeout(r);if((Pe===_i||!Pe)&&clearTimeout)return Pe=clearTimeout,clearTimeout(r);try{return Pe(r)}catch{try{return Pe.call(null,r)}catch{return Pe.call(this,r)}}}var je=[],lt=!1,tt,tr=-1;function wh(){!lt||!tt||(lt=!1,tt.length?je=tt.concat(je):tr=-1,je.length&&bl())}function bl(){if(!lt){var r=_l(wh);lt=!0;for(var e=je.length;e;){for(tt=je,je=[];++tr<e;)tt&&tt[tr].run();tr=-1,e=je.length}tt=null,lt=!1,mh(r)}}xe.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];je.push(new El(r,e)),je.length===1&&!lt&&_l(bl)};function El(r,e){this.fun=r,this.array=e}El.prototype.run=function(){this.fun.apply(null,this.array)};xe.title="browser";xe.browser=!0;xe.env={};xe.argv=[];xe.version="";xe.versions={};function ze(){}xe.on=ze;xe.addListener=ze;xe.once=ze;xe.off=ze;xe.removeListener=ze;xe.removeAllListeners=ze;xe.emit=ze;xe.prependListener=ze;xe.prependOnceListener=ze;xe.listeners=function(r){return[]};xe.binding=function(r){throw new Error("process.binding is not supported")};xe.cwd=function(){return"/"};xe.chdir=function(r){throw new Error("process.chdir is not supported")};xe.umask=function(){return 0};var gh=vl.exports,me=ph(gh),kr,wu;function xl(){return wu||(wu=1,kr=eu().EventEmitter),kr}var Cr={},At={},gu;function yh(){if(gu)return At;gu=1,At.byteLength=i,At.toByteArray=A,At.fromByteArray=O;for(var r=[],e=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,l=a.length;u<l;++u)r[u]=a[u],e[a.charCodeAt(u)]=u;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 _=x.indexOf("=");_===-1&&(_=I);var S=_===I?0:4-_%4;return[_,S]}function i(x){var I=f(x),_=I[0],S=I[1];return(_+S)*3/4-S}function h(x,I,_){return(I+_)*3/4-_}function A(x){var I,_=f(x),S=_[0],o=_[1],y=new t(h(x,S,o)),m=0,c=o>0?S-4:S,E;for(E=0;E<c;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 R(x,I,_){for(var S,o=[],y=I;y<_;y+=3)S=(x[y]<<16&16711680)+(x[y+1]<<8&65280)+(x[y+2]&255),o.push(T(S));return o.join("")}function O(x){for(var I,_=x.length,S=_%3,o=[],y=16383,m=0,c=_-S;m<c;m+=y)o.push(R(x,m,m+y>c?c:m+y));return S===1?(I=x[_-1],o.push(r[I>>2]+r[I<<4&63]+"==")):S===2&&(I=(x[_-2]<<8)+x[_-1],o.push(r[I>>10]+r[I>>4&63]+r[I<<2&63]+"=")),o.join("")}return At}var $t={};var yu;function vh(){return yu||(yu=1,$t.read=function(r,e,t,a,u){var l,f,i=u*8-a-1,h=(1<<i)-1,A=h>>1,T=-7,R=t?u-1:0,O=t?-1:1,x=r[e+R];for(R+=O,l=x&(1<<-T)-1,x>>=-T,T+=i;T>0;l=l*256+r[e+R],R+=O,T-=8);for(f=l&(1<<-T)-1,l>>=-T,T+=a;T>0;f=f*256+r[e+R],R+=O,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)},$t.write=function(r,e,t,a,u,l){var f,i,h,A=l*8-u-1,T=(1<<A)-1,R=T>>1,O=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=a?0:l-1,I=a?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=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+R>=1?e+=O/h:e+=O*Math.pow(2,1-R),e*h>=2&&(f++,h/=2),f+R>=T?(i=0,f=T):f+R>=1?(i=(e*h-1)*Math.pow(2,u),f=f+R):(i=e*Math.pow(2,R-1)*Math.pow(2,u),f=0));u>=8;r[t+x]=i&255,x+=I,i/=256,u-=8);for(f=f<<u|i,A+=u;A>0;r[t+x]=f&255,x+=I,f/=256,A-=8);r[t+x-I]|=_*128}),$t}var vu;function xr(){return vu||(vu=1,function(r){var e=yh(),t=vh(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=i,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50;var u=2147483647;r.kMaxLength=u,i.TYPED_ARRAY_SUPPORT=l(),!i.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 b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function f(b){if(b>u)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(b)}return h(b,n,s)}i.poolSize=8192;function h(b,n,s){if(typeof b=="string")return O(b,n);if(ArrayBuffer.isView(b))return I(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(J(b,ArrayBuffer)||b&&J(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(J(b,SharedArrayBuffer)||b&&J(b.buffer,SharedArrayBuffer)))return _(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var p=b.valueOf&&b.valueOf();if(p!=null&&p!==b)return i.from(p,n,s);var B=S(b);if(B)return B;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return h(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function A(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function T(b,n,s){return A(b),b<=0?f(b):n!==void 0?typeof s=="string"?f(b).fill(n,s):f(b).fill(n):f(b)}i.alloc=function(b,n,s){return T(b,n,s)};function R(b){return A(b),f(b<0?0:o(b)|0)}i.allocUnsafe=function(b){return R(b)},i.allocUnsafeSlow=function(b){return R(b)};function O(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=m(b,n)|0,p=f(s),B=p.write(b,n);return B!==s&&(p=p.slice(0,B)),p}function x(b){for(var n=b.length<0?0:o(b.length)|0,s=f(n),p=0;p<n;p+=1)s[p]=b[p]&255;return s}function I(b){if(J(b,Uint8Array)){var n=new Uint8Array(b);return _(n.buffer,n.byteOffset,n.byteLength)}return x(b)}function _(b,n,s){if(n<0||b.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(b.byteLength<n+(s||0))throw new RangeError('"length" is outside of buffer bounds');var p;return n===void 0&&s===void 0?p=new Uint8Array(b):s===void 0?p=new Uint8Array(b,n):p=new Uint8Array(b,n,s),Object.setPrototypeOf(p,i.prototype),p}function S(b){if(i.isBuffer(b)){var n=o(b.length)|0,s=f(n);return s.length===0||b.copy(s,0,0,n),s}if(b.length!==void 0)return typeof b.length!="number"||d(b.length)?f(0):x(b);if(b.type==="Buffer"&&Array.isArray(b.data))return x(b.data)}function o(b){if(b>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return b|0}function y(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(J(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),J(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var p=n.length,B=s.length,G=0,H=Math.min(p,B);G<H;++G)if(n[G]!==s[G]){p=n[G],B=s[G];break}return p<B?-1:B<p?1:0},i.isEncoding=function(n){switch(String(n).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}},i.concat=function(n,s){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return i.alloc(0);var p;if(s===void 0)for(s=0,p=0;p<n.length;++p)s+=n[p].length;var B=i.allocUnsafe(s),G=0;for(p=0;p<n.length;++p){var H=n[p];if(J(H,Uint8Array))G+H.length>B.length?i.from(H).copy(B,G):Uint8Array.prototype.set.call(B,H,G);else if(i.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(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||J(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&s===0)return 0;for(var B=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return w(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return C(b).length;default:if(B)return p?-1:w(b).length;n=(""+n).toLowerCase(),B=!0}}i.byteLength=m;function c(b,n,s){var p=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return Q(this,n,s);case"utf8":case"utf-8":return g(this,n,s);case"ascii":return z(this,n,s);case"latin1":case"binary":return se(this,n,s);case"base64":return M(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,n,s);default:if(p)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),p=!0}}i.prototype._isBuffer=!0;function E(b,n,s){var p=b[n];b[n]=b[s],b[s]=p}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<n;s+=2)E(this,s,s+1);return this},i.prototype.swap32=function(){var n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<n;s+=4)E(this,s,s+3),E(this,s+1,s+2);return this},i.prototype.swap64=function(){var n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<n;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},i.prototype.toString=function(){var n=this.length;return n===0?"":arguments.length===0?g(this,0,n):c.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(n){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:i.compare(this,n)===0},i.prototype.inspect=function(){var n="",s=r.INSPECT_MAX_BYTES;return n=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(n+=" ... "),"<Buffer "+n+">"},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,p,B,G){if(J(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),p===void 0&&(p=n?n.length:0),B===void 0&&(B=0),G===void 0&&(G=this.length),s<0||p>n.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===n)return 0;for(var H=G-B,ie=p-s,oe=Math.min(H,ie),ae=this.slice(B,G),he=n.slice(s,p),de=0;de<oe;++de)if(ae[de]!==he[de]){H=ae[de],ie=he[de];break}return H<ie?-1:ie<H?1:0};function P(b,n,s,p,B){if(b.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:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(B)return-1;s=b.length-1}else if(s<0)if(B)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,p)),i.isBuffer(n))return n.length===0?-1:F(b,n,s,p,B);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):F(b,[n],s,p,B);throw new TypeError("val must be string, number or Buffer")}function F(b,n,s,p,B){var G=1,H=b.length,ie=n.length;if(p!==void 0&&(p=String(p).toLowerCase(),p==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(b.length<2||n.length<2)return-1;G=2,H/=2,ie/=2,s/=2}function oe(Te,Ge){return G===1?Te[Ge]:Te.readUInt16BE(Ge*G)}var ae;if(B){var he=-1;for(ae=s;ae<H;ae++)if(oe(b,ae)===oe(n,he===-1?0:ae-he)){if(he===-1&&(he=ae),ae-he+1===ie)return he*G}else he!==-1&&(ae-=ae-he),he=-1}else for(s+ie>H&&(s=H-ie),ae=s;ae>=0;ae--){for(var de=!0,pe=0;pe<ie;pe++)if(oe(b,ae+pe)!==oe(n,pe)){de=!1;break}if(de)return ae}return-1}i.prototype.includes=function(n,s,p){return this.indexOf(n,s,p)!==-1},i.prototype.indexOf=function(n,s,p){return P(this,n,s,p,!0)},i.prototype.lastIndexOf=function(n,s,p){return P(this,n,s,p,!1)};function W(b,n,s,p){s=Number(s)||0;var B=b.length-s;p?(p=Number(p),p>B&&(p=B)):p=B;var G=n.length;p>G/2&&(p=G/2);for(var H=0;H<p;++H){var ie=parseInt(n.substr(H*2,2),16);if(d(ie))return H;b[s+H]=ie}return H}function N(b,n,s,p){return L(w(n,b.length-s),b,s,p)}function X(b,n,s,p){return L(j(n),b,s,p)}function ue(b,n,s,p){return L(C(n),b,s,p)}function k(b,n,s,p){return L(U(n,b.length-s),b,s,p)}i.prototype.write=function(n,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),n.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,n,s,p);case"utf8":case"utf-8":return N(this,n,s,p);case"ascii":case"latin1":case"binary":return X(this,n,s,p);case"base64":return ue(this,n,s,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,n,s,p);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),H=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function g(b,n,s){s=Math.min(b.length,s);for(var p=[],B=n;B<s;){var G=b[B],H=null,ie=G>239?4:G>223?3:G>191?2:1;if(B+ie<=s){var oe,ae,he,de;switch(ie){case 1:G<128&&(H=G);break;case 2:oe=b[B+1],(oe&192)===128&&(de=(G&31)<<6|oe&63,de>127&&(H=de));break;case 3:oe=b[B+1],ae=b[B+2],(oe&192)===128&&(ae&192)===128&&(de=(G&15)<<12|(oe&63)<<6|ae&63,de>2047&&(de<55296||de>57343)&&(H=de));break;case 4:oe=b[B+1],ae=b[B+2],he=b[B+3],(oe&192)===128&&(ae&192)===128&&(he&192)===128&&(de=(G&15)<<18|(oe&63)<<12|(ae&63)<<6|he&63,de>65535&&de<1114112&&(H=de))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,p.push(H>>>10&1023|55296),H=56320|H&1023),p.push(H),B+=ie}return ee(p)}var q=4096;function ee(b){var n=b.length;if(n<=q)return String.fromCharCode.apply(String,b);for(var s="",p=0;p<n;)s+=String.fromCharCode.apply(String,b.slice(p,p+=q));return s}function z(b,n,s){var p="";s=Math.min(b.length,s);for(var B=n;B<s;++B)p+=String.fromCharCode(b[B]&127);return p}function se(b,n,s){var p="";s=Math.min(b.length,s);for(var B=n;B<s;++B)p+=String.fromCharCode(b[B]);return p}function Q(b,n,s){var p=b.length;(!n||n<0)&&(n=0),(!s||s<0||s>p)&&(s=p);for(var B="",G=n;G<s;++G)B+=Y[b[G]];return B}function le(b,n,s){for(var p=b.slice(n,s),B="",G=0;G<p.length-1;G+=2)B+=String.fromCharCode(p[G]+p[G+1]*256);return B}i.prototype.slice=function(n,s){var p=this.length;n=~~n,s=s===void 0?p:~~s,n<0?(n+=p,n<0&&(n=0)):n>p&&(n=p),s<0?(s+=p,s<0&&(s=0)):s>p&&(s=p),s<n&&(s=n);var B=this.subarray(n,s);return Object.setPrototypeOf(B,i.prototype),B};function V(b,n,s){if(b%1!==0||b<0)throw new RangeError("offset is not uint");if(b+n>s)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,p){n=n>>>0,s=s>>>0,p||V(n,s,this.length);for(var B=this[n],G=1,H=0;++H<s&&(G*=256);)B+=this[n+H]*G;return B},i.prototype.readUintBE=i.prototype.readUIntBE=function(n,s,p){n=n>>>0,s=s>>>0,p||V(n,s,this.length);for(var B=this[n+--s],G=1;s>0&&(G*=256);)B+=this[n+--s]*G;return B},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||V(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||V(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||V(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||V(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||V(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,p){n=n>>>0,s=s>>>0,p||V(n,s,this.length);for(var B=this[n],G=1,H=0;++H<s&&(G*=256);)B+=this[n+H]*G;return G*=128,B>=G&&(B-=Math.pow(2,8*s)),B},i.prototype.readIntBE=function(n,s,p){n=n>>>0,s=s>>>0,p||V(n,s,this.length);for(var B=s,G=1,H=this[n+--B];B>0&&(G*=256);)H+=this[n+--B]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*s)),H},i.prototype.readInt8=function(n,s){return n=n>>>0,s||V(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||V(n,2,this.length);var p=this[n]|this[n+1]<<8;return p&32768?p|4294901760:p},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||V(n,2,this.length);var p=this[n+1]|this[n]<<8;return p&32768?p|4294901760:p},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||V(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||V(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||V(n,4,this.length),t.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||V(n,4,this.length),t.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||V(n,8,this.length),t.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||V(n,8,this.length),t.read(this,n,!1,52,8)};function D(b,n,s,p,B,G){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>B||n<G)throw new RangeError('"value" argument is out of bounds');if(s+p>b.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,p,B){if(n=+n,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,n,s,p,G,0)}var H=1,ie=0;for(this[s]=n&255;++ie<p&&(H*=256);)this[s+ie]=n/H&255;return s+p},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(n,s,p,B){if(n=+n,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,n,s,p,G,0)}var H=p-1,ie=1;for(this[s+H]=n&255;--H>=0&&(ie*=256);)this[s+H]=n/ie&255;return s+p},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,p,B){if(n=+n,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,n,s,p,G-1,-G)}var H=0,ie=1,oe=0;for(this[s]=n&255;++H<p&&(ie*=256);)n<0&&oe===0&&this[s+H-1]!==0&&(oe=1),this[s+H]=(n/ie>>0)-oe&255;return s+p},i.prototype.writeIntBE=function(n,s,p,B){if(n=+n,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,n,s,p,G-1,-G)}var H=p-1,ie=1,oe=0;for(this[s+H]=n&255;--H>=0&&(ie*=256);)n<0&&oe===0&&this[s+H+1]!==0&&(oe=1),this[s+H]=(n/ie>>0)-oe&255;return s+p},i.prototype.writeInt8=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,p){return n=+n,s=s>>>0,p||D(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function $(b,n,s,p,B,G){if(s+p>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function Z(b,n,s,p,B){return n=+n,s=s>>>0,B||$(b,n,s,4),t.write(b,n,s,p,23,4),s+4}i.prototype.writeFloatLE=function(n,s,p){return Z(this,n,s,!0,p)},i.prototype.writeFloatBE=function(n,s,p){return Z(this,n,s,!1,p)};function te(b,n,s,p,B){return n=+n,s=s>>>0,B||$(b,n,s,8),t.write(b,n,s,p,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,p){return te(this,n,s,!0,p)},i.prototype.writeDoubleBE=function(n,s,p){return te(this,n,s,!1,p)},i.prototype.copy=function(n,s,p,B){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(p||(p=0),!B&&B!==0&&(B=this.length),s>=n.length&&(s=n.length),s||(s=0),B>0&&B<p&&(B=p),B===p||n.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),n.length-s<B-p&&(B=n.length-s+p);var G=B-p;return this===n&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,p,B):Uint8Array.prototype.set.call(n,this.subarray(p,B),s),G},i.prototype.fill=function(n,s,p,B){if(typeof n=="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"&&!i.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(n.length===1){var G=n.charCodeAt(0);(B==="utf8"&&G<128||B==="latin1")&&(n=G)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));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,n||(n=0);var H;if(typeof n=="number")for(H=s;H<p;++H)this[H]=n;else{var ie=i.isBuffer(n)?n:i.from(n,B),oe=ie.length;if(oe===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(H=0;H<p-s;++H)this[H+s]=ie[H%oe]}return this};var K=/[^+/0-9A-Za-z-_]/g;function v(b){if(b=b.split("=")[0],b=b.trim().replace(K,""),b.length<2)return"";for(;b.length%4!==0;)b=b+"=";return b}function w(b,n){n=n||1/0;for(var s,p=b.length,B=null,G=[],H=0;H<p;++H){if(s=b.charCodeAt(H),s>55295&&s<57344){if(!B){if(s>56319){(n-=3)>-1&&G.push(239,191,189);continue}else if(H+1===p){(n-=3)>-1&&G.push(239,191,189);continue}B=s;continue}if(s<56320){(n-=3)>-1&&G.push(239,191,189),B=s;continue}s=(B-55296<<10|s-56320)+65536}else B&&(n-=3)>-1&&G.push(239,191,189);if(B=null,s<128){if((n-=1)<0)break;G.push(s)}else if(s<2048){if((n-=2)<0)break;G.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;G.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=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(b){for(var n=[],s=0;s<b.length;++s)n.push(b.charCodeAt(s)&255);return n}function U(b,n){for(var s,p,B,G=[],H=0;H<b.length&&!((n-=2)<0);++H)s=b.charCodeAt(H),p=s>>8,B=s%256,G.push(B),G.push(p);return G}function C(b){return e.toByteArray(v(b))}function L(b,n,s,p){for(var B=0;B<p&&!(B+s>=n.length||B>=b.length);++B)n[B+s]=b[B];return B}function J(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function d(b){return b!==b}var Y=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var p=s*16,B=0;B<16;++B)n[p+B]=b[s]+b[B];return n}()}(Cr)),Cr}var Dr={},Lr={},Pr,_u;function Tl(){return _u||(_u=1,Pr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var u=42;e[t]=u;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]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==u||i.enumerable!==!0)return!1}return!0}),Pr}var Fr,bu;function Tr(){if(bu)return Fr;bu=1;var r=Tl();return Fr=function(){return r()&&!!Symbol.toStringTag},Fr}var Br,Eu;function Al(){return Eu||(Eu=1,Br=Object),Br}var Ur,xu;function _h(){return xu||(xu=1,Ur=Error),Ur}var Mr,Tu;function bh(){return Tu||(Tu=1,Mr=EvalError),Mr}var Hr,Au;function Eh(){return Au||(Au=1,Hr=RangeError),Hr}var jr,Su;function xh(){return Su||(Su=1,jr=ReferenceError),jr}var Wr,Ru;function Sl(){return Ru||(Ru=1,Wr=SyntaxError),Wr}var zr,Iu;function Mt(){return Iu||(Iu=1,zr=TypeError),zr}var Gr,Nu;function Th(){return Nu||(Nu=1,Gr=URIError),Gr}var Kr,Ou;function Ah(){return Ou||(Ou=1,Kr=Math.abs),Kr}var qr,ku;function Sh(){return ku||(ku=1,qr=Math.floor),qr}var Vr,Cu;function Rh(){return Cu||(Cu=1,Vr=Math.max),Vr}var $r,Du;function Ih(){return Du||(Du=1,$r=Math.min),$r}var Xr,Lu;function Nh(){return Lu||(Lu=1,Xr=Math.pow),Xr}var Zr,Pu;function Oh(){return Pu||(Pu=1,Zr=Math.round),Zr}var Yr,Fu;function kh(){return Fu||(Fu=1,Yr=Number.isNaN||function(e){return e!==e}),Yr}var Jr,Bu;function Ch(){if(Bu)return Jr;Bu=1;var r=kh();return Jr=function(t){return r(t)||t===0?t:t<0?-1:1},Jr}var Qr,Uu;function Dh(){return Uu||(Uu=1,Qr=Object.getOwnPropertyDescriptor),Qr}var en,Mu;function bt(){if(Mu)return en;Mu=1;var r=Dh();if(r)try{r([],"length")}catch{r=null}return en=r,en}var tn,Hu;function Ar(){if(Hu)return tn;Hu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return tn=r,tn}var rn,ju;function Lh(){if(ju)return rn;ju=1;var r=typeof Symbol!="undefined"&&Symbol,e=Tl();return rn=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},rn}var nn,Wu;function Rl(){return Wu||(Wu=1,nn=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),nn}var sn,zu;function Il(){if(zu)return sn;zu=1;var r=Al();return sn=r.getPrototypeOf||null,sn}var an,Gu;function Ph(){if(Gu)return an;Gu=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,a="[object Function]",u=function(h,A){for(var T=[],R=0;R<h.length;R+=1)T[R]=h[R];for(var O=0;O<A.length;O+=1)T[O+h.length]=A[O];return T},l=function(h,A){for(var T=[],R=A,O=0;R<h.length;R+=1,O+=1)T[O]=h[R];return T},f=function(i,h){for(var A="",T=0;T<i.length;T+=1)A+=i[T],T+1<i.length&&(A+=h);return A};return an=function(h){var A=this;if(typeof A!="function"||e.apply(A)!==a)throw new TypeError(r+A);for(var T=l(arguments,1),R,O=function(){if(this instanceof R){var o=A.apply(this,u(T,arguments));return Object(o)===o?o:this}return A.apply(h,u(T,arguments))},x=t(0,A.length-T.length),I=[],_=0;_<x;_++)I[_]="$"+_;if(R=Function("binder","return function ("+f(I,",")+"){ return binder.apply(this,arguments); }")(O),A.prototype){var S=function(){};S.prototype=A.prototype,R.prototype=new S,S.prototype=null}return R},an}var on,Ku;function Ht(){if(Ku)return on;Ku=1;var r=Ph();return on=Function.prototype.bind||r,on}var un,qu;function tu(){return qu||(qu=1,un=Function.prototype.call),un}var cn,Vu;function ru(){return Vu||(Vu=1,cn=Function.prototype.apply),cn}var ln,$u;function Fh(){return $u||($u=1,ln=typeof Reflect!="undefined"&&Reflect&&Reflect.apply),ln}var hn,Xu;function Nl(){if(Xu)return hn;Xu=1;var r=Ht(),e=ru(),t=tu(),a=Fh();return hn=a||r.call(t,e),hn}var fn,Zu;function nu(){if(Zu)return fn;Zu=1;var r=Ht(),e=Mt(),t=tu(),a=Nl();return fn=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return a(r,t,l)},fn}var dn,Yu;function Bh(){if(Yu)return dn;Yu=1;var r=nu(),e=bt(),t;try{t=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var a=!!t&&e&&e(Object.prototype,"__proto__"),u=Object,l=u.getPrototypeOf;return dn=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?function(i){return l(i==null?i:u(i))}:!1,dn}var pn,Ju;function Ol(){if(Ju)return pn;Ju=1;var r=Rl(),e=Il(),t=Bh();return pn=r?function(u){return r(u)}:e?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return e(u)}:t?function(u){return t(u)}:null,pn}var mn,Qu;function kl(){if(Qu)return mn;Qu=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ht();return mn=t.call(r,e),mn}var wn,ec;function Cl(){if(ec)return wn;ec=1;var r,e=Al(),t=_h(),a=bh(),u=Eh(),l=xh(),f=Sl(),i=Mt(),h=Th(),A=Ah(),T=Sh(),R=Rh(),O=Ih(),x=Nh(),I=Oh(),_=Ch(),S=Function,o=function(j){try{return S('"use strict"; return ('+j+").constructor;")()}catch{}},y=bt(),m=Ar(),c=function(){throw new i},E=y?function(){try{return arguments.callee,c}catch{try{return y(arguments,"callee").get}catch{return c}}}():c,P=Lh()(),F=Ol(),W=Il(),N=Rl(),X=ru(),ue=tu(),k={},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%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":t,"%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%":S,"%GeneratorFunction%":k,"%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%":u,"%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%":i,"%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%":ue,"%Function.prototype.apply%":X,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":W,"%Math.abs%":A,"%Math.floor%":T,"%Math.max%":R,"%Math.min%":O,"%Math.pow%":x,"%Math.round%":I,"%Math.sign%":_,"%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"]},se=Ht(),Q=kl(),le=se.call(ue,Array.prototype.concat),V=se.call(X,Array.prototype.splice),D=se.call(ue,String.prototype.replace),$=se.call(ue,String.prototype.slice),Z=se.call(ue,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,b,n){J[J.length]=b?D(n,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===k&&(d=ee(L)),typeof d=="undefined"&&!C)throw new i("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 wn=function(U,C){if(typeof U!="string"||U.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new i('"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,b=d.value,n=!1,s=d.alias;s&&(J=s[0],V(L,le([0,1],s)));for(var p=1,B=!0;p<L.length;p+=1){var G=L[p],H=$(G,0,1),ie=$(G,-1);if((H==='"'||H==="'"||H==="`"||ie==='"'||ie==="'"||ie==="`")&&H!==ie)throw new f("property names with quotes must have matching quotes");if((G==="constructor"||!B)&&(n=!0),J+="."+G,Y="%"+J+"%",Q(g,Y))b=g[Y];else if(b!=null){if(!(G in b)){if(!C)throw new i("base intrinsic for "+U+" exists, but the property is not available.");return}if(y&&p+1>=L.length){var oe=y(b,G);B=!!oe,B&&"get"in oe&&!("originalValue"in oe.get)?b=oe.get:b=b[G]}else B=Q(b,G),b=b[G];B&&!n&&(g[Y]=b)}}return b},wn}var gn,tc;function jt(){if(tc)return gn;tc=1;var r=Cl(),e=nu(),t=e([r("%String.prototype.indexOf%")]);return gn=function(u,l){var f=r(u,!!l);return typeof f=="function"&&t(u,".prototype.")>-1?e([f]):f},gn}var yn,rc;function Uh(){if(rc)return yn;rc=1;var r=Tr()(),e=jt(),t=e("Object.prototype.toString"),a=function(i){return r&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:t(i)==="[object Arguments]"},u=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&"length"in i&&typeof i.length=="number"&&i.length>=0&&t(i)!=="[object Array]"&&"callee"in i&&t(i.callee)==="[object Function]"},l=function(){return a(arguments)}();return a.isLegacyArguments=u,yn=l?a:u,yn}var vn,nc;function Mh(){if(nc)return vn;nc=1;var r=jt(),e=Tr()(),t=kl(),a=bt(),u;if(e){var l=r("RegExp.prototype.exec"),f={},i=function(){throw f},h={toString:i,valueOf:i};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=i),u=function(O){if(!O||typeof O!="object")return!1;var x=a(O,"lastIndex"),I=x&&t(x,"value");if(!I)return!1;try{l(O,h)}catch(_){return _===f}}}else{var A=r("Object.prototype.toString"),T="[object RegExp]";u=function(O){return!O||typeof O!="object"&&typeof O!="function"?!1:A(O)===T}}return vn=u,vn}var _n,ic;function Hh(){if(ic)return _n;ic=1;var r=jt(),e=Mh(),t=r("RegExp.prototype.exec"),a=Mt();return _n=function(l){if(!e(l))throw new a("`regex` must be a RegExp");return function(i){return t(l,i)!==null}},_n}var bn,sc;function jh(){if(sc)return bn;sc=1;var r=jt(),e=Hh(),t=e(/^\s*(?:function)?\*/),a=Tr()(),u=Ol(),l=r("Object.prototype.toString"),f=r("Function.prototype.toString"),i=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},h;return bn=function(T){if(typeof T!="function")return!1;if(t(f(T)))return!0;if(!a){var R=l(T);return R==="[object GeneratorFunction]"}if(!u)return!1;if(typeof h=="undefined"){var O=i();h=O?u(O):!1}return u(T)===h},bn}var En,ac;function Wh(){if(ac)return En;ac=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,t)}catch(y){y!==a&&(e=null)}else e=null;var u=/^\s*class\b/,l=function(m){try{var c=r.call(m);return u.test(c)}catch{return!1}},f=function(m){try{return l(m)?!1:(r.call(m),!0)}catch{return!1}},i=Object.prototype.toString,h="[object Object]",A="[object Function]",T="[object GeneratorFunction]",R="[object HTMLAllCollection]",O="[object HTML document.all class]",x="[object HTMLCollection]",I=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var o=document.all;i.call(o)===i.call(document.all)&&(S=function(m){if((_||!m)&&(typeof m=="undefined"||typeof m=="object"))try{var c=i.call(m);return(c===R||c===O||c===x||c===h)&&m("")==null}catch{}return!1})}return En=e?function(m){if(S(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{e(m,null,t)}catch(c){if(c!==a)return!1}return!l(m)&&f(m)}:function(m){if(S(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(I)return f(m);if(l(m))return!1;var c=i.call(m);return c!==A&&c!==T&&!/^\[object HTML/.test(c)?!1:f(m)},En}var xn,oc;function zh(){if(oc)return xn;oc=1;var r=Wh(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,a=function(h,A,T){for(var R=0,O=h.length;R<O;R++)t.call(h,R)&&(T==null?A(h[R],R,h):A.call(T,h[R],R,h))},u=function(h,A,T){for(var R=0,O=h.length;R<O;R++)T==null?A(h.charAt(R),R,h):A.call(T,h.charAt(R),R,h)},l=function(h,A,T){for(var R in h)t.call(h,R)&&(T==null?A(h[R],R,h):A.call(T,h[R],R,h))};function f(i){return e.call(i)==="[object Array]"}return xn=function(h,A,T){if(!r(A))throw new TypeError("iterator must be a function");var R;arguments.length>=3&&(R=T),f(h)?a(h,A,R):typeof h=="string"?u(h,A,R):l(h,A,R)},xn}var Tn,uc;function Gh(){return uc||(uc=1,Tn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Tn}var An,cc;function Kh(){if(cc)return An;cc=1;var r=Gh(),e=typeof globalThis=="undefined"?Ie:globalThis;return An=function(){for(var a=[],u=0;u<r.length;u++)typeof e[r[u]]=="function"&&(a[a.length]=r[u]);return a},An}var Sn={exports:{}},Rn,lc;function qh(){if(lc)return Rn;lc=1;var r=Ar(),e=Sl(),t=Mt(),a=bt();return Rn=function(l,f,i){if(!l||typeof l!="object"&&typeof l!="function")throw new t("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`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,R=arguments.length>6?arguments[6]:!1,O=!!a&&a(l,f);if(r)r(l,f,{configurable:T===null&&O?O.configurable:!T,enumerable:h===null&&O?O.enumerable:!h,value:i,writable:A===null&&O?O.writable:!A});else if(R||!h&&!A&&!T)l[f]=i;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Rn}var In,hc;function Vh(){if(hc)return In;hc=1;var r=Ar(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},In=e,In}var Nn,fc;function $h(){if(fc)return Nn;fc=1;var r=Cl(),e=qh(),t=Vh()(),a=bt(),u=Mt(),l=r("%Math.floor%");return Nn=function(i,h){if(typeof i!="function")throw new u("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||l(h)!==h)throw new u("`length` must be a positive 32-bit integer");var A=arguments.length>2&&!!arguments[2],T=!0,R=!0;if("length"in i&&a){var O=a(i,"length");O&&!O.configurable&&(T=!1),O&&!O.writable&&(R=!1)}return(T||R||!A)&&(t?e(i,"length",h,!0,!0):e(i,"length",h)),i},Nn}var On,dc;function Xh(){if(dc)return On;dc=1;var r=Ht(),e=ru(),t=Nl();return On=function(){return t(r,e,arguments)},On}var pc;function Zh(){return pc||(pc=1,function(r){var e=$h(),t=Ar(),a=nu(),u=Xh();r.exports=function(f){var i=a(arguments),h=f.length-(arguments.length-1);return e(i,1+(h>0?h:0),!0)},t?t(r.exports,"apply",{value:u}):r.exports.apply=u}(Sn)),Sn.exports}var kn,mc;function Dl(){if(mc)return kn;mc=1;var r=zh(),e=Kh(),t=Zh(),a=jt(),u=bt(),l=a("Object.prototype.toString"),f=Tr()(),i=typeof globalThis=="undefined"?Ie:globalThis,h=e(),A=a("String.prototype.slice"),T=Object.getPrototypeOf,R=a("Array.prototype.indexOf",!0)||function(S,o){for(var y=0;y<S.length;y+=1)if(S[y]===o)return y;return-1},O={__proto__:null};f&&u&&T?r(h,function(_){var S=new i[_];if(Symbol.toStringTag in S){var o=T(S),y=u(o,Symbol.toStringTag);if(!y){var m=T(o);y=u(m,Symbol.toStringTag)}O["$"+_]=t(y.get)}}):r(h,function(_){var S=new i[_],o=S.slice||S.set;o&&(O["$"+_]=t(o))});var x=function(S){var o=!1;return r(O,function(y,m){if(!o)try{"$"+y(S)===m&&(o=A(m,1))}catch{}}),o},I=function(S){var o=!1;return r(O,function(y,m){if(!o)try{y(S),o=A(m,1)}catch{}}),o};return kn=function(S){if(!S||typeof S!="object")return!1;if(!f){var o=A(l(S),8,-1);return R(h,o)>-1?o:o!=="Object"?!1:I(S)}return u?x(S):null},kn}var Cn,wc;function Yh(){if(wc)return Cn;wc=1;var r=Dl();return Cn=function(t){return!!r(t)},Cn}var gc;function Jh(){return gc||(gc=1,function(r){var e=Uh(),t=jh(),a=Dl(),u=Yh();function l(p){return p.call.bind(p)}var f=typeof BigInt!="undefined",i=typeof Symbol!="undefined",h=l(Object.prototype.toString),A=l(Number.prototype.valueOf),T=l(String.prototype.valueOf),R=l(Boolean.prototype.valueOf);if(f)var O=l(BigInt.prototype.valueOf);if(i)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=t,r.isTypedArray=u;function _(p){return typeof Promise!="undefined"&&p instanceof Promise||p!==null&&typeof p=="object"&&typeof p.then=="function"&&typeof p.catch=="function"}r.isPromise=_;function S(p){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(p):u(p)||$(p)}r.isArrayBufferView=S;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 c(p){return a(p)==="Uint32Array"}r.isUint32Array=c;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 ue(p){return a(p)==="BigUint64Array"}r.isBigUint64Array=ue;function k(p){return h(p)==="[object Map]"}k.working=typeof Map!="undefined"&&k(new Map);function M(p){return typeof Map=="undefined"?!1:k.working?k(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 se(p){return h(p)==="[object WeakSet]"}se.working=typeof WeakSet!="undefined"&&se(new WeakSet);function Q(p){return se(p)}r.isWeakSet=Q;function le(p){return h(p)==="[object ArrayBuffer]"}le.working=typeof ArrayBuffer!="undefined"&&le(new ArrayBuffer);function V(p){return typeof ArrayBuffer=="undefined"?!1:le.working?le(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,R)}r.isBooleanObject=d;function Y(p){return f&&I(p,O)}r.isBigIntObject=Y;function b(p){return i&&I(p,x)}r.isSymbolObject=b;function n(p){return L(p)||J(p)||d(p)||Y(p)||b(p)}r.isBoxedPrimitive=n;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")}})})}(Lr)),Lr}var Dn,yc;function Qh(){return yc||(yc=1,Dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),Dn}var vc;function Ll(){return vc||(vc=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},t=/%[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(t,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 me!="undefined"&&me.noDeprecation===!0)return D;if(typeof me=="undefined")return function(){return r.deprecate(D,$).apply(this,arguments)};var Z=!1;function te(){if(!Z){if(me.throwDeprecation)throw new Error($);me.traceDeprecation?console.trace($):console.error($),Z=!0}return D.apply(this,arguments)}return te};var a={},u=/^$/;if(me.env.NODE_DEBUG){var l=me.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!a[D])if(u.test(D)){var $=me.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=i),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 i(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&&$&&k($.inspect)&&$.inspect!==r.inspect&&!($.constructor&&$.constructor.prototype===$)){var te=$.inspect(Z,D);return E(te)||(te=T(D,te,Z)),te}var K=R(D,$);if(K)return K;var v=Object.keys($),w=A(v);if(D.showHidden&&(v=Object.getOwnPropertyNames($)),ue($)&&(v.indexOf("message")>=0||v.indexOf("description")>=0))return O($);if(v.length===0){if(k($)){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(ue($))return O($)}var U="",C=!1,L=["{","}"];if(S($)&&(C=!0,L=["[","]"]),k($)){var J=$.name?": "+$.name:"";U=" [Function"+J+"]"}if(W($)&&(U=" "+RegExp.prototype.toString.call($)),X($)&&(U=" "+Date.prototype.toUTCString.call($)),ue($)&&(U=" "+O($)),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(),_(d,U,L)}function R(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(c($))return D.stylize(""+$,"number");if(o($))return D.stylize(""+$,"boolean");if(y($))return D.stylize("null","null")}function O(D){return"["+Error.prototype.toString.call(D)+"]"}function x(D,$,Z,te,K){for(var v=[],w=0,j=$.length;w<j;++w)se($,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")),se(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 _(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=Jh();function S(D){return Array.isArray(D)}r.isArray=S;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 c(D){return typeof D=="number"}r.isNumber=c;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 ue(D){return N(D)&&(g(D)==="[object Error]"||D instanceof Error)}r.isError=ue,r.types.isNativeError=ue;function k(D){return typeof D=="function"}r.isFunction=k;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=Qh();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 se(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 le(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){me.nextTick(w.bind(null,null,j))},function(j){me.nextTick(le.bind(null,j,w))})}return Object.setPrototypeOf($,Object.getPrototypeOf(D)),Object.defineProperties($,e(D)),$}r.callbackify=V}(Dr)),Dr}var Ln,_c;function ef(){if(_c)return Ln;_c=1;function r(I,_){var S=Object.keys(I);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(I);_&&(o=o.filter(function(y){return Object.getOwnPropertyDescriptor(I,y).enumerable})),S.push.apply(S,o)}return S}function e(I){for(var _=1;_<arguments.length;_++){var S=arguments[_]!=null?arguments[_]:{};_%2?r(Object(S),!0).forEach(function(o){t(I,o,S[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(S)):r(Object(S)).forEach(function(o){Object.defineProperty(I,o,Object.getOwnPropertyDescriptor(S,o))})}return I}function t(I,_,S){return _=f(_),_ in I?Object.defineProperty(I,_,{value:S,enumerable:!0,configurable:!0,writable:!0}):I[_]=S,I}function a(I,_){if(!(I instanceof _))throw new TypeError("Cannot call a class as a function")}function u(I,_){for(var S=0;S<_.length;S++){var o=_[S];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(I,f(o.key),o)}}function l(I,_,S){return _&&u(I.prototype,_),Object.defineProperty(I,"prototype",{writable:!1}),I}function f(I){var _=i(I,"string");return typeof _=="symbol"?_:String(_)}function i(I,_){if(typeof I!="object"||I===null)return I;var S=I[Symbol.toPrimitive];if(S!==void 0){var o=S.call(I,_);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}var h=xr(),A=h.Buffer,T=Ll(),R=T.inspect,O=R&&R.custom||"inspect";function x(I,_,S){A.prototype.copy.call(I,_,S)}return Ln=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return l(I,[{key:"push",value:function(S){var o={data:S,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}},{key:"unshift",value:function(S){var o={data:S,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}},{key:"shift",value:function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(S){if(this.length===0)return"";for(var o=this.head,y=""+o.data;o=o.next;)y+=S+o.data;return y}},{key:"concat",value:function(S){if(this.length===0)return A.alloc(0);for(var o=A.allocUnsafe(S>>>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(S,o){var y;return S<this.head.data.length?(y=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?y=this.shift():y=o?this._getString(S):this._getBuffer(S),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(S){var o=this.head,y=1,m=o.data;for(S-=m.length;o=o.next;){var c=o.data,E=S>c.length?c.length:S;if(E===c.length?m+=c:m+=c.slice(0,S),S-=E,S===0){E===c.length?(++y,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=c.slice(E));break}++y}return this.length-=y,m}},{key:"_getBuffer",value:function(S){var o=A.allocUnsafe(S),y=this.head,m=1;for(y.data.copy(o),S-=y.data.length;y=y.next;){var c=y.data,E=S>c.length?c.length:S;if(c.copy(o,o.length-S,0,E),S-=E,S===0){E===c.length?(++m,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=c.slice(E));break}++m}return this.length-=m,o}},{key:O,value:function(S,o){return R(this,e(e({},o),{},{depth:0,customInspect:!1}))}}]),I}(),Ln}var Pn,bc;function Pl(){if(bc)return Pn;bc=1;function r(f,i){var h=this,A=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return A||T?(i?i(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(u,this,f)):me.nextTick(u,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(R){!i&&R?h._writableState?h._writableState.errorEmitted?me.nextTick(t,h):(h._writableState.errorEmitted=!0,me.nextTick(e,h,R)):me.nextTick(e,h,R):i?(me.nextTick(t,h),i(R)):me.nextTick(t,h)}),this)}function e(f,i){u(f,i),t(f)}function t(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 u(f,i){f.emit("error",i)}function l(f,i){var h=f._readableState,A=f._writableState;h&&h.autoDestroy||A&&A.autoDestroy?f.destroy(i):f.emit("error",i)}return Pn={destroy:r,undestroy:a,errorOrDestroy:l},Pn}var Fn={},Ec;function Et(){if(Ec)return Fn;Ec=1;function r(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,i.__proto__=h}var e={};function t(i,h,A){A||(A=Error);function T(O,x,I){return typeof h=="string"?h:h(O,x,I)}var R=function(O){r(x,O);function x(I,_,S){return O.call(this,T(I,_,S))||this}return x}(A);R.prototype.name=A.name,R.prototype.code=i,e[i]=R}function a(i,h){if(Array.isArray(i)){var A=i.length;return i=i.map(function(T){return String(T)}),A>2?"one of ".concat(h," ").concat(i.slice(0,A-1).join(", "),", or ")+i[A-1]:A===2?"one of ".concat(h," ").concat(i[0]," or ").concat(i[1]):"of ".concat(h," ").concat(i[0])}else return"of ".concat(h," ").concat(String(i))}function u(i,h,A){return i.substr(0,h.length)===h}function l(i,h,A){return(A===void 0||A>i.length)&&(A=i.length),i.substring(A-h.length,A)===h}function f(i,h,A){return typeof A!="number"&&(A=0),A+h.length>i.length?!1:i.indexOf(h,A)!==-1}return t("ERR_INVALID_OPT_VALUE",function(i,h){return'The value "'+h+'" is invalid for option "'+i+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(i,h,A){var T;typeof h=="string"&&u(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var R;if(l(i," argument"))R="The ".concat(i," ").concat(T," ").concat(a(h,"type"));else{var O=f(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(O," ").concat(T," ").concat(a(h,"type"))}return R+=". Received type ".concat(typeof A),R},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Fn.codes=e,Fn}var Bn,xc;function Fl(){if(xc)return Bn;xc=1;var r=Et().codes.ERR_INVALID_OPT_VALUE;function e(a,u,l){return a.highWaterMark!=null?a.highWaterMark:u?a[l]:null}function t(a,u,l,f){var i=e(u,f,l);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var h=f?l:"highWaterMark";throw new r(h,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return Bn={getHighWaterMark:t},Bn}var Un,Tc;function tf(){if(Tc)return Un;Tc=1,Un=r;function r(t,a){if(e("noDeprecation"))return t;var u=!1;function l(){if(!u){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),u=!0}return t.apply(this,arguments)}return l}function e(t){try{if(!Ie.localStorage)return!1}catch{return!1}var a=Ie.localStorage[t];return a==null?!1:String(a).toLowerCase()==="true"}return Un}var Mn,Ac;function Bl(){if(Ac)return Mn;Ac=1,Mn=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 t={deprecate:tf()},a=xl(),u=xr().Buffer,l=(typeof Ie!="undefined"?Ie:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function f(K){return u.from(K)}function i(K){return u.isBuffer(K)||K instanceof l}var h=Pl(),A=Fl(),T=A.getHighWaterMark,R=Et().codes,O=R.ERR_INVALID_ARG_TYPE,x=R.ERR_METHOD_NOT_IMPLEMENTED,I=R.ERR_MULTIPLE_CALLBACK,_=R.ERR_STREAM_CANNOT_PIPE,S=R.ERR_STREAM_DESTROYED,o=R.ERR_STREAM_NULL_VALUES,y=R.ERR_STREAM_WRITE_AFTER_END,m=R.ERR_UNKNOWN_ENCODING,c=h.errorOrDestroy;Je()(W,a);function E(){}function P(K,v,w){e=e||pt(),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:t.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||pt();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(){c(this,new _)};function N(K,v){var w=new y;c(K,w),me.nextTick(v,w)}function X(K,v,w,j){var U;return w===null?U=new o:typeof w!="string"&&!v.objectMode&&(U=new O("chunk",["string","Buffer"],w)),U?(c(K,U),me.nextTick(j,U),!1):!0}W.prototype.write=function(K,v,w){var j=this._writableState,U=!1,C=!j.objectMode&&i(K);return C&&!u.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=k(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 ue(K,v,w){return!K.objectMode&&K.decodeStrings!==!1&&typeof v=="string"&&(v=u.from(v,w)),v}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(K,v,w,j,U,C){if(!w){var L=ue(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 S("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?(me.nextTick(U,j),me.nextTick($,K,v),K._writableState.errorEmitted=!0,c(K,j)):(U(j),K._writableState.errorEmitted=!0,c(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=le(w)||K.destroyed;!C&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&Q(K,w),j?me.nextTick(z,K,w,C,U):z(K,w,C,U)}}function z(K,v,w,j){w||se(K,v),v.pendingcb--,j(),$(K,v)}function se(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,b=w.callback,n=v.objectMode?1:d.length;if(M(K,v,!1,n,d,Y,b),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 le(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&&c(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,me.nextTick(V,K,v)):(v.prefinished=!0,K.emit("prefinish")))}function $(K,v){var w=le(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?me.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)},Mn}var Hn,Sc;function pt(){if(Sc)return Hn;Sc=1;var r=Object.keys||function(A){var T=[];for(var R in A)T.push(R);return T};Hn=f;var e=Ul(),t=Bl();Je()(f,e);for(var a=r(t.prototype),u=0;u<a.length;u++){var l=a[u];f.prototype[l]||(f.prototype[l]=t.prototype[l])}function f(A){if(!(this instanceof f))return new f(A);e.call(this,A),t.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",i)))}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 i(){this._writableState.ended||me.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)}}),Hn}var jn={},Xt={exports:{}};var Rc;function rf(){return Rc||(Rc=1,function(r,e){var t=xr(),a=t.Buffer;function u(f,i){for(var h in f)i[h]=f[h]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=t:(u(t,e),e.Buffer=l);function l(f,i,h){return a(f,i,h)}l.prototype=Object.create(a.prototype),u(a,l),l.from=function(f,i,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return a(f,i,h)},l.alloc=function(f,i,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var A=a(f);return i!==void 0?typeof h=="string"?A.fill(i,h):A.fill(i):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 t.SlowBuffer(f)}}(Xt,Xt.exports)),Xt.exports}var Ic;function bi(){if(Ic)return jn;Ic=1;var r=rf().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 t(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=t(o);if(typeof y!="string"&&(r.isEncoding===e||!e(o)))throw new Error("Unknown encoding: "+o);return y||o}jn.StringDecoder=u;function u(o){this.encoding=a(o);var y;switch(this.encoding){case"utf16le":this.text=R,this.end=O,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=_,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}u.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||""},u.prototype.end=T,u.prototype.text=A,u.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 c=y.length-1;if(c<m)return 0;var E=l(y[c]);return E>=0?(E>0&&(o.lastNeed=E-1),E):--c<m||E===-2?0:(E=l(y[c]),E>=0?(E>0&&(o.lastNeed=E-2),E):--c<m||E===-2?0:(E=l(y[c]),E>=0?(E>0&&(E===2?E=0:o.lastNeed=E-3),E):0))}function i(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=i(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 c=o.length-(m-this.lastNeed);return o.copy(this.lastChar,0,c),o.toString("utf8",y,c)}function T(o){var y=o&&o.length?this.write(o):"";return this.lastNeed?y+"\uFFFD":y}function R(o,y){if((o.length-y)%2===0){var m=o.toString("utf16le",y);if(m){var c=m.charCodeAt(m.length-1);if(c>=55296&&c<=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 O(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 _(o){return o.toString(this.encoding)}function S(o){return o&&o.length?this.write(o):""}return jn}var Wn,Nc;function iu(){if(Nc)return Wn;Nc=1;var r=Et().codes.ERR_STREAM_PREMATURE_CLOSE;function e(l){var f=!1;return function(){if(!f){f=!0;for(var i=arguments.length,h=new Array(i),A=0;A<i;A++)h[A]=arguments[A];l.apply(this,h)}}}function t(){}function a(l){return l.setHeader&&typeof l.abort=="function"}function u(l,f,i){if(typeof f=="function")return u(l,null,f);f||(f={}),i=e(i||t);var h=f.readable||f.readable!==!1&&l.readable,A=f.writable||f.writable!==!1&&l.writable,T=function(){l.writable||O()},R=l._writableState&&l._writableState.finished,O=function(){A=!1,R=!0,h||i.call(l)},x=l._readableState&&l._readableState.endEmitted,I=function(){h=!1,x=!0,A||i.call(l)},_=function(m){i.call(l,m)},S=function(){var m;if(h&&!x)return(!l._readableState||!l._readableState.ended)&&(m=new r),i.call(l,m);if(A&&!R)return(!l._writableState||!l._writableState.ended)&&(m=new r),i.call(l,m)},o=function(){l.req.on("finish",O)};return a(l)?(l.on("complete",O),l.on("abort",S),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",O),f.error!==!1&&l.on("error",_),l.on("close",S),function(){l.removeListener("complete",O),l.removeListener("abort",S),l.removeListener("request",o),l.req&&l.req.removeListener("finish",O),l.removeListener("end",T),l.removeListener("close",T),l.removeListener("finish",O),l.removeListener("end",I),l.removeListener("error",_),l.removeListener("close",S)}}return Wn=u,Wn}var zn,Oc;function nf(){if(Oc)return zn;Oc=1;var r;function e(m,c,E){return c=t(c),c in m?Object.defineProperty(m,c,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[c]=E,m}function t(m){var c=a(m,"string");return typeof c=="symbol"?c:String(c)}function a(m,c){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var P=E.call(m,c);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(m)}var u=iu(),l=Symbol("lastResolve"),f=Symbol("lastReject"),i=Symbol("error"),h=Symbol("ended"),A=Symbol("lastPromise"),T=Symbol("handlePromise"),R=Symbol("stream");function O(m,c){return{value:m,done:c}}function x(m){var c=m[l];if(c!==null){var E=m[R].read();E!==null&&(m[A]=null,m[l]=null,m[f]=null,c(O(E,!1)))}}function I(m){me.nextTick(x,m)}function _(m,c){return function(E,P){m.then(function(){if(c[h]){E(O(void 0,!0));return}c[T](E,P)},P)}}var S=Object.getPrototypeOf(function(){}),o=Object.setPrototypeOf((r={get stream(){return this[R]},next:function(){var c=this,E=this[i];if(E!==null)return Promise.reject(E);if(this[h])return Promise.resolve(O(void 0,!0));if(this[R].destroyed)return new Promise(function(N,X){me.nextTick(function(){c[i]?X(c[i]):N(O(void 0,!0))})});var P=this[A],F;if(P)F=new Promise(_(P,this));else{var W=this[R].read();if(W!==null)return Promise.resolve(O(W,!1));F=new Promise(this[T])}return this[A]=F,F}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var c=this;return new Promise(function(E,P){c[R].destroy(null,function(F){if(F){P(F);return}E(O(void 0,!0))})})}),r),S),y=function(c){var E,P=Object.create(o,(E={},e(E,R,{value:c,writable:!0}),e(E,l,{value:null,writable:!0}),e(E,f,{value:null,writable:!0}),e(E,i,{value:null,writable:!0}),e(E,h,{value:c._readableState.endEmitted,writable:!0}),e(E,T,{value:function(W,N){var X=P[R].read();X?(P[A]=null,P[l]=null,P[f]=null,W(O(X,!1))):(P[l]=W,P[f]=N)},writable:!0}),E));return P[A]=null,u(c,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[i]=F;return}var N=P[l];N!==null&&(P[A]=null,P[l]=null,P[f]=null,N(O(void 0,!0))),P[h]=!0}),c.on("readable",I.bind(null,P)),P};return zn=y,zn}var Gn,kc;function sf(){return kc||(kc=1,Gn=function(){throw new Error("Readable.from is not available in the browser")}),Gn}var Kn,Cc;function Ul(){if(Cc)return Kn;Cc=1,Kn=N;var r;N.ReadableState=W,eu().EventEmitter;var e=function(L,J){return L.listeners(J).length},t=xl(),a=xr().Buffer,u=(typeof Ie!="undefined"?Ie: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 u}var i=Ll(),h;i&&i.debuglog?h=i.debuglog("stream"):h=function(){};var A=ef(),T=Pl(),R=Fl(),O=R.getHighWaterMark,x=Et().codes,I=x.ERR_INVALID_ARG_TYPE,_=x.ERR_STREAM_PUSH_AFTER_EOF,S=x.ERR_METHOD_NOT_IMPLEMENTED,o=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,m,c;Je()(N,t);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||pt(),C=C||{},typeof J!="boolean"&&(J=L instanceof r),this.objectMode=!!C.objectMode,J&&(this.objectMode=this.objectMode||!!C.readableObjectMode),this.highWaterMark=O(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=bi().StringDecoder),this.decoder=new y(C.encoding),this.encoding=C.encoding)}function N(C){if(r=r||pt(),!(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)),t.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 b=C._readableState;if(L===null)b.reading=!1,ee(C,b);else{var n;if(Y||(n=k(b,L)),n)E(C,n);else if(b.objectMode||L&&L.length>0)if(typeof L!="string"&&!b.objectMode&&Object.getPrototypeOf(L)!==a.prototype&&(L=l(L)),d)b.endEmitted?E(C,new o):ue(C,b,L,!0);else if(b.ended)E(C,new _);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!J?(L=b.decoder.write(L),b.objectMode||L.length!==0?ue(C,b,L,!1):Q(C,b)):ue(C,b,L,!1)}else d||(b.reading=!1,Q(C,b))}return!b.ended&&(b.length<b.highWaterMark||b.length===0)}function ue(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 k(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=bi().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,se(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,me.nextTick(se,C))}function se(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,me.nextTick(le,C,L))}function le(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 S("_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!==me.stdout&&C!==me.stderr,b=Y?s:he;d.endEmitted?me.nextTick(b):J.once("end",b),C.on("unpipe",n);function n(de,pe){h("onunpipe"),de===J&&pe&&pe.hasUnpiped===!1&&(pe.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",oe),C.removeListener("finish",ae),C.removeListener("drain",p),C.removeListener("error",ie),C.removeListener("unpipe",n),J.removeListener("end",s),J.removeListener("end",he),J.removeListener("data",H),B=!0,d.awaitDrain&&(!C._writableState||C._writableState.needDrain)&&p()}J.on("data",H);function H(de){h("ondata");var pe=C.write(de);h("dest.write",pe),pe===!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 ie(de){h("onerror",de),he(),C.removeListener("error",ie),e(C,"error")===0&&E(C,de)}F(C,"error",ie);function oe(){C.removeListener("finish",ae),he()}C.once("close",oe);function ae(){h("onfinish"),C.removeListener("close",oe),he()}C.once("finish",ae);function he(){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 b=0;b<Y;b++)d[b].emit("unpipe",this,{hasUnpiped:!1});return this}var n=U(L.pipes,C);return n===-1?this:(L.pipes.splice(n,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=t.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||me.nextTick($,this)),J},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(C,L){var J=t.prototype.removeListener.call(this,C,L);return C==="readable"&&me.nextTick(D,this),J},N.prototype.removeAllListeners=function(C){var L=t.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&me.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,me.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 n=J.decoder.end();n&&n.length&&L.push(n)}L.push(null)}),C.on("data",function(n){if(h("wrapped data"),J.decoder&&(n=J.decoder.write(n)),!(J.objectMode&&n==null)&&!(!J.objectMode&&(!n||!n.length))){var s=L.push(n);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 b=0;b<P.length;b++)C.on(P[b],this.emit.bind(this,P[b]));return this._read=function(n){h("wrapped _read",n),d&&(d=!1,C.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=nf()),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,me.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 c===void 0&&(c=sf()),c(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 Kn}var qn,Dc;function Ml(){if(Dc)return qn;Dc=1,qn=i;var r=Et().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,t=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=r.ERR_TRANSFORM_WITH_LENGTH_0,l=pt();Je()(i,l);function f(T,R){var O=this._transformState;O.transforming=!1;var x=O.writecb;if(x===null)return this.emit("error",new t);O.writechunk=null,O.writecb=null,R!=null&&this.push(R),x(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function i(T){if(!(this instanceof i))return new i(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(R,O){A(T,R,O)}):A(this,null,null)}i.prototype.push=function(T,R){return this._transformState.needTransform=!1,l.prototype.push.call(this,T,R)},i.prototype._transform=function(T,R,O){O(new e("_transform()"))},i.prototype._write=function(T,R,O){var x=this._transformState;if(x.writecb=O,x.writechunk=T,x.writeencoding=R,!x.transforming){var I=this._readableState;(x.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},i.prototype._read=function(T){var R=this._transformState;R.writechunk!==null&&!R.transforming?(R.transforming=!0,this._transform(R.writechunk,R.writeencoding,R.afterTransform)):R.needTransform=!0},i.prototype._destroy=function(T,R){l.prototype._destroy.call(this,T,function(O){R(O)})};function A(T,R,O){if(R)return T.emit("error",R);if(O!=null&&T.push(O),T._writableState.length)throw new u;if(T._transformState.transforming)throw new a;return T.push(null)}return qn}var Vn,Lc;function af(){if(Lc)return Vn;Lc=1,Vn=e;var r=Ml();Je()(e,r);function e(t){if(!(this instanceof e))return new e(t);r.call(this,t)}return e.prototype._transform=function(t,a,u){u(null,t)},Vn}var $n,Pc;function of(){if(Pc)return $n;Pc=1;var r;function e(O){var x=!1;return function(){x||(x=!0,O.apply(void 0,arguments))}}var t=Et().codes,a=t.ERR_MISSING_ARGS,u=t.ERR_STREAM_DESTROYED;function l(O){if(O)throw O}function f(O){return O.setHeader&&typeof O.abort=="function"}function i(O,x,I,_){_=e(_);var S=!1;O.on("close",function(){S=!0}),r===void 0&&(r=iu()),r(O,{readable:x,writable:I},function(y){if(y)return _(y);S=!0,_()});var o=!1;return function(y){if(!S&&!o){if(o=!0,f(O))return O.abort();if(typeof O.destroy=="function")return O.destroy();_(y||new u("pipe"))}}}function h(O){O()}function A(O,x){return O.pipe(x)}function T(O){return!O.length||typeof O[O.length-1]!="function"?l:O.pop()}function R(){for(var O=arguments.length,x=new Array(O),I=0;I<O;I++)x[I]=arguments[I];var _=T(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new a("streams");var S,o=x.map(function(y,m){var c=m<x.length-1,E=m>0;return i(y,c,E,function(P){S||(S=P),P&&o.forEach(h),!c&&(o.forEach(h),_(S))})});return x.reduce(A)}return $n=R,$n}var Xn,Fc;function su(){if(Fc)return Xn;Fc=1,Xn=t;var r=eu().EventEmitter,e=Je();e(t,r),t.Readable=Ul(),t.Writable=Bl(),t.Duplex=pt(),t.Transform=Ml(),t.PassThrough=af(),t.finished=iu(),t.pipeline=of(),t.Stream=t;function t(){r.call(this)}return t.prototype.pipe=function(a,u){var l=this;function f(x){a.writable&&a.write(x)===!1&&l.pause&&l.pause()}l.on("data",f);function i(){l.readable&&l.resume&&l.resume()}a.on("drain",i),!a._isStdio&&(!u||u.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 R(x){if(O(),r.listenerCount(this,"error")===0)throw x}l.on("error",R),a.on("error",R);function O(){l.removeListener("data",f),a.removeListener("drain",i),l.removeListener("end",A),l.removeListener("close",T),l.removeListener("error",R),a.removeListener("error",R),l.removeListener("end",O),l.removeListener("close",O),a.removeListener("close",O)}return l.on("end",O),l.on("close",O),a.on("close",O),a.emit("pipe",l),a},Xn}var Bc;function uf(){return Bc||(Bc=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 t=["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(_)),j.opt.unquotedAttributeValues===void 0&&(j.opt.unquotedAttributeValues=!v),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),ue(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 u(v){for(var w=Math.max(e.MAX_BUFFER_LENGTH,10),j=0,U=0,C=t.length;U<C;U++){var L=v[t[U]].length;if(L>w)switch(t[U]){case"textNode":M(v);break;case"cdata":k(v,"oncdata",v.cdata),v.cdata="";break;case"script":k(v,"onscript",v.script),v.script="";break;default:q(v,"Max buffer length exceeded: "+t[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=t.length;w<j;w++)v[t[w]]=""}function f(v){M(v),v.cdata!==""&&(k(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(k(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 i;try{i=su().Stream}catch{i=function(){}}i||(i=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);i.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(i.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=bi().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)}),i.prototype.on.call(j,v,w)};var R="[CDATA[",O="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",_={xml:x,xmlns:I},S=/[:_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 c(v){return v===" "||v===`
11
- `||v==="\r"||v===" "}function E(v){return v==='"'||v==="'"}function P(v){return v===">"||c(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 ue(v,w,j){v[w]&&v[w](j)}function k(v,w,j){v.textNode&&M(v),ue(v,w,j)}function M(v){v.textNode=g(v.opt,v.textNode),v.textNode&&ue(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,ue(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,ue(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 se(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,k(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 le(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,k(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){k(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],b=d[1],n=Q(Y,!0),s=n.prefix,p=n.local,B=s===""?"":j.ns[s]||"",G={name:Y,value:b,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,k(v,"onattribute",G)}v.attribList.length=0}v.tag.isSelfClosing=!!w,v.sawRoot=!0,v.tags.push(v.tag),k(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}k(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,k(v,"onclosetag",v.tagName);var d={};for(var Y in J.ns)d[Y]=J.ns[Y];var b=v.tags[v.tags.length-1]||v;v.opt.xmlns&&J.ns!==b.ns&&Object.keys(J.ns).forEach(function(n){var s=J.ns[n];k(v,"onclosenamespace",{prefix:n,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):c(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):(!c(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(!c(U))if(F(S,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()===R?(k(w,"onopencdata"),w.state=N.CDATA,w.sgmlDecl="",w.cdata=""):(w.sgmlDecl+U).toUpperCase()===O?(w.state=N.DOCTYPE,(w.doctype||w.sawRoot)&&z(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):U===">"?(k(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,k(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&&k(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&&k(w,"oncdata",w.cdata),k(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:c(U)?w.state=N.PROC_INST_BODY:w.procInstName+=U;continue;case N.PROC_INST_BODY:if(!w.procInstBody&&c(U))continue;U==="?"?w.state=N.PROC_INST_ENDING:w.procInstBody+=U;continue;case N.PROC_INST_ENDING:U===">"?(k(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:(se(w),U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:(c(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(c(U))continue;U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:F(S,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,le(w),V(w)):c(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(c(U))continue;z(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",k(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",U===">"?V(w):F(S,U)?(w.attribName=U,w.state=N.ATTRIB_NAME):(z(w,"Invalid attribute name"),w.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(c(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}le(w),w.q="",w.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:c(U)?w.state=N.ATTRIB:U===">"?V(w):U==="/"?w.state=N.OPEN_TAG_SLASH:F(S,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}le(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):(c(U)||z(w,"Invalid tagname in closing tag"),w.state=N.CLOSE_TAG_SAW_WHITE);else{if(c(U))continue;W(S,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(c(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&&u(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 b="";++d<Y;){var n=Number(arguments[d]);if(!isFinite(n)||n<0||n>1114111||w(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?C.push(n):(n-=65536,L=(n>>10)+55296,J=n%1024+56320,C.push(L,J)),(d+1===Y||C.length>U)&&(b+=v.apply(null,C),C.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j}()})(r)}(Or)),Or}var Zn,Uc;function au(){return Uc||(Uc=1,Zn={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),Zn}var Yn,Mc;function ou(){if(Mc)return Yn;Mc=1;var r=au().isArray;return Yn={copyOptions:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);return a},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[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,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},Yn}var Jn,Hc;function Hl(){if(Hc)return Jn;Hc=1;var r=uf(),e=ou(),t=au().isArray,a,u;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 i(o,y){var m;if(a.compact){if(!u[a[o+"Key"]]&&(t(a.alwaysArray)?a.alwaysArray.indexOf(a[o+"Key"])!==-1:a.alwaysArray)&&(u[a[o+"Key"]]=[]),u[a[o+"Key"]]&&!t(u[a[o+"Key"]])&&(u[a[o+"Key"]]=[u[a[o+"Key"]]]),o+"Fn"in a&&typeof y=="string"&&(y=a[o+"Fn"](y,u)),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,u);else{var c=y[m];delete y[m],y[a.instructionNameFn(m,c,u)]=c}}t(u[a[o+"Key"]])?u[a[o+"Key"]].push(y):u[a[o+"Key"]]=y}else{u[a.elementsKey]||(u[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,u):m,a.instructionHasAttributes?(E[a.attributesKey]=y[m][a.attributesKey],"instructionFn"in a&&(E[a.attributesKey]=a.instructionFn(E[a.attributesKey],m,u))):("instructionFn"in a&&(y[m]=a.instructionFn(y[m],m,u)),E[a.instructionKey]=y[m])}else o+"Fn"in a&&(y=a[o+"Fn"](y,u)),E[a[o+"Key"]]=y;a.addParent&&(E[a.parentKey]=u),u[a.elementsKey].push(E)}}function h(o){if("attributesFn"in a&&o&&(o=a.attributesFn(o,u)),(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,u)),"attributeNameFn"in a)){var m=o[y];delete o[y],o[a.attributeNameFn(y,o[y],u)]=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,c;(c=m.exec(o.body))!==null;)y[c[1]]=c[2]||c[3]||c[4];y=h(y)}if(o.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;u[a.declarationKey]={},Object.keys(y).length&&(u[a.declarationKey][a.attributesKey]=y),a.addParent&&(u[a.declarationKey][a.parentKey]=u)}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,i("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,u)),a.compact){if(m={},!a.ignoreAttributes&&y&&Object.keys(y).length){m[a.attributesKey]={};var c;for(c in y)y.hasOwnProperty(c)&&(m[a.attributesKey][c]=y[c])}!(o in u)&&(t(a.alwaysArray)?a.alwaysArray.indexOf(o)!==-1:a.alwaysArray)&&(u[o]=[]),u[o]&&!t(u[o])&&(u[o]=[u[o]]),t(u[o])?u[o].push(m):u[o]=m}else u[a.elementsKey]||(u[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]=[]),u[a.elementsKey].push(m);m[a.parentKey]=u,u=m}function R(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;")),i("text",o))}function O(o){a.ignoreComment||(a.trim&&(o=o.trim()),i("comment",o))}function x(o){var y=u[a.parentKey];a.addParent||delete u[a.parentKey],u=y}function I(o){a.ignoreCdata||(a.trim&&(o=o.trim()),i("cdata",o))}function _(o){a.ignoreDoctype||(o=o.replace(/^ /,""),a.trim&&(o=o.trim()),i("doctype",o))}function S(o){o.note=o}return Jn=function(o,y){var m=r.parser(!0,{}),c={};if(u=c,a=l(y),m.opt={strictEntities:!0},m.onopentag=T,m.ontext=R,m.oncomment=O,m.onclosetag=x,m.onerror=S,m.oncdata=I,m.ondoctype=_,m.onprocessinginstruction=A,m.write(o).close(),c[a.elementsKey]){var E=c[a.elementsKey];delete c[a.elementsKey],c[a.elementsKey]=E,delete c.text}return c},Jn}var Qn,jc;function cf(){if(jc)return Qn;jc=1;var r=ou(),e=Hl();function t(a){var u=r.copyOptions(a);return r.ensureSpacesExists(u),u}return Qn=function(a,u){var l,f,i,h;return l=t(u),f=e(a,l),h="compact"in l&&l.compact?"_parent":"parent","addParent"in l&&l.addParent?i=JSON.stringify(f,function(A,T){return A===h?"_":T},l.spaces):i=JSON.stringify(f,null,l.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Qn}var ei,Wc;function jl(){if(Wc)return ei;Wc=1;var r=ou(),e=au().isArray,t,a;function u(m){var c=r.copyOptions(m);return r.ensureFlagExists("ignoreDeclaration",c),r.ensureFlagExists("ignoreInstruction",c),r.ensureFlagExists("ignoreAttributes",c),r.ensureFlagExists("ignoreText",c),r.ensureFlagExists("ignoreComment",c),r.ensureFlagExists("ignoreCdata",c),r.ensureFlagExists("ignoreDoctype",c),r.ensureFlagExists("compact",c),r.ensureFlagExists("indentText",c),r.ensureFlagExists("indentCdata",c),r.ensureFlagExists("indentAttributes",c),r.ensureFlagExists("indentInstruction",c),r.ensureFlagExists("fullTagEmptyElement",c),r.ensureFlagExists("noQuotesForNativeAttributes",c),r.ensureSpacesExists(c),typeof c.spaces=="number"&&(c.spaces=Array(c.spaces+1).join(" ")),r.ensureKeyExists("declaration",c),r.ensureKeyExists("instruction",c),r.ensureKeyExists("attributes",c),r.ensureKeyExists("text",c),r.ensureKeyExists("comment",c),r.ensureKeyExists("cdata",c),r.ensureKeyExists("doctype",c),r.ensureKeyExists("type",c),r.ensureKeyExists("name",c),r.ensureKeyExists("elements",c),r.checkFnExists("doctype",c),r.checkFnExists("instruction",c),r.checkFnExists("cdata",c),r.checkFnExists("comment",c),r.checkFnExists("text",c),r.checkFnExists("instructionName",c),r.checkFnExists("elementName",c),r.checkFnExists("attributeName",c),r.checkFnExists("attributeValue",c),r.checkFnExists("attributes",c),r.checkFnExists("fullTagEmptyElement",c),c}function l(m,c,E){return(!E&&m.spaces?`
19
- `:"")+Array(c+1).join(m.spaces)}function f(m,c,E){if(c.ignoreAttributes)return"";"attributesFn"in c&&(m=c.attributesFn(m,a,t));var P,F,W,N,X=[];for(P in m)m.hasOwnProperty(P)&&m[P]!==null&&m[P]!==void 0&&(N=c.noQuotesForNativeAttributes&&typeof m[P]!="string"?"":'"',F=""+m[P],F=F.replace(/"/g,"&quot;"),W="attributeNameFn"in c?c.attributeNameFn(P,F,a,t):P,X.push(c.spaces&&c.indentAttributes?l(c,E+1,!1):" "),X.push(W+"="+N+("attributeValueFn"in c?c.attributeValueFn(F,P,a,t):F)+N));return m&&Object.keys(m).length&&c.spaces&&c.indentAttributes&&X.push(l(c,E,!1)),X.join("")}function i(m,c,E){return t=m,a="xml",c.ignoreDeclaration?"":"<?xml"+f(m[c.attributesKey],c,E)+"?>"}function h(m,c,E){if(c.ignoreInstruction)return"";var P;for(P in m)if(m.hasOwnProperty(P))break;var F="instructionNameFn"in c?c.instructionNameFn(P,m[P],a,t):P;if(typeof m[P]=="object")return t=m,a=F,"<?"+F+f(m[P][c.attributesKey],c,E)+"?>";var W=m[P]?m[P]:"";return"instructionFn"in c&&(W=c.instructionFn(W,P,a,t)),"<?"+F+(W?" "+W:"")+"?>"}function A(m,c){return c.ignoreComment?"":"<!--"+("commentFn"in c?c.commentFn(m,a,t):m)+"-->"}function T(m,c){return c.ignoreCdata?"":"<![CDATA["+("cdataFn"in c?c.cdataFn(m,a,t):m.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function R(m,c){return c.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in c?c.doctypeFn(m,a,t):m)+">"}function O(m,c){return c.ignoreText?"":(m=""+m,m=m.replace(/&amp;/g,"&"),m=m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in c?c.textFn(m,a,t):m)}function x(m,c){var E;if(m.elements&&m.elements.length)for(E=0;E<m.elements.length;++E)switch(m.elements[E][c.typeKey]){case"text":if(c.indentText)return!0;break;case"cdata":if(c.indentCdata)return!0;break;case"instruction":if(c.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function I(m,c,E){t=m,a=m.name;var P=[],F="elementNameFn"in c?c.elementNameFn(m.name,m):m.name;P.push("<"+F),m[c.attributesKey]&&P.push(f(m[c.attributesKey],c,E));var W=m[c.elementsKey]&&m[c.elementsKey].length||m[c.attributesKey]&&m[c.attributesKey]["xml:space"]==="preserve";return W||("fullTagEmptyElementFn"in c?W=c.fullTagEmptyElementFn(m.name,m):W=c.fullTagEmptyElement),W?(P.push(">"),m[c.elementsKey]&&m[c.elementsKey].length&&(P.push(_(m[c.elementsKey],c,E+1)),t=m,a=m.name),P.push(c.spaces&&x(m,c)?`
20
- `+Array(E+1).join(c.spaces):""),P.push("</"+F+">")):P.push("/>"),P.join("")}function _(m,c,E,P){return m.reduce(function(F,W){var N=l(c,E,P&&!F);switch(W.type){case"element":return F+N+I(W,c,E);case"comment":return F+N+A(W[c.commentKey],c);case"doctype":return F+N+R(W[c.doctypeKey],c);case"cdata":return F+(c.indentCdata?N:"")+T(W[c.cdataKey],c);case"text":return F+(c.indentText?N:"")+O(W[c.textKey],c);case"instruction":var X={};return X[W[c.nameKey]]=W[c.attributesKey]?W:W[c.instructionKey],F+(c.indentInstruction?N:"")+h(X,c,E)}},"")}function S(m,c,E){var P;for(P in m)if(m.hasOwnProperty(P))switch(P){case c.parentKey:case c.attributesKey:break;case c.textKey:if(c.indentText||E)return!0;break;case c.cdataKey:if(c.indentCdata||E)return!0;break;case c.instructionKey:if(c.indentInstruction||E)return!0;break;case c.doctypeKey:case c.commentKey:return!0;default:return!0}return!1}function o(m,c,E,P,F){t=m,a=c;var W="elementNameFn"in E?E.elementNameFn(c,m):c;if(typeof m=="undefined"||m===null||m==="")return"fullTagEmptyElementFn"in E&&E.fullTagEmptyElementFn(c,m)||E.fullTagEmptyElement?"<"+W+"></"+W+">":"<"+W+"/>";var N=[];if(c){if(N.push("<"+W),typeof m!="object")return N.push(">"+O(m,E)+"</"+W+">"),N.join("");m[E.attributesKey]&&N.push(f(m[E.attributesKey],E,P));var X=S(m,E,!0)||m[E.attributesKey]&&m[E.attributesKey]["xml:space"]==="preserve";if(X||("fullTagEmptyElementFn"in E?X=E.fullTagEmptyElementFn(c,m):X=E.fullTagEmptyElement),X)N.push(">");else return N.push("/>"),N.join("")}return N.push(y(m,E,P+1,!1)),t=m,a=c,c&&N.push((F?l(E,P,!1):"")+"</"+W+">"),N.join("")}function y(m,c,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 c.declarationKey:X.push(i(N[F],c,E));break;case c.instructionKey:X.push((c.indentInstruction?l(c,E,P):"")+h(N[F],c,E));break;case c.attributesKey:case c.parentKey:break;case c.textKey:X.push((c.indentText?l(c,E,P):"")+O(N[F],c));break;case c.cdataKey:X.push((c.indentCdata?l(c,E,P):"")+T(N[F],c));break;case c.doctypeKey:X.push(l(c,E,P)+R(N[F],c));break;case c.commentKey:X.push(l(c,E,P)+A(N[F],c));break;default:X.push(l(c,E,P)+o(N[F],W,c,E,S(N[F],c)))}P=P&&!X.length}return X.join("")}return ei=function(m,c){c=u(c);var E=[];return t=m,a="_root_",c.compact?E.push(y(m,c,0,!0)):(m[c.declarationKey]&&E.push(i(m[c.declarationKey],c,0)),m[c.elementsKey]&&m[c.elementsKey].length&&E.push(_(m[c.elementsKey],c,0,!E.length))),E.join("")},ei}var ti,zc;function lf(){if(zc)return ti;zc=1;var r=jl();return ti=function(e,t){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,t)},ti}var ri,Gc;function hf(){if(Gc)return ri;Gc=1;var r=Hl(),e=cf(),t=jl(),a=lf();return ri={xml2js:r,xml2json:e,js2xml:t,json2xml:a},ri}var Wl=hf(),uu=r=>{switch(r.type){case void 0:case"element":let e=new xi(r.name,r.attributes),t=r.elements||[];for(let a of t){let u=uu(a);u!==void 0&&e.push(u)}return e;case"text":return r.text;default:return}},Ei=class extends fe{},xi=class extends ne{static fromXmlString(e){let t=Wl.xml2js(e,{compact:!1});return uu(t)}constructor(e,t){super(e),t&&this.root.push(new Ei(t))}push(e){this.root.push(e)}},Ti=class extends ne{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}};var rr=class extends ne{constructor(e,t){super(e),t&&(this.root=t.root)}},Se=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},Sr=r=>{let e=Se(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},zl=(r,e)=>{let t=e*2;if(r.length!==t||isNaN(+`0x${r}`))throw new Error(`Invalid hex value '${r}'. Expected ${t} digit hex value`);return r};var Kc=r=>zl(r,1),Gl=r=>{let e=r.slice(-2),t=r.substring(0,r.length-2);return`${Number(t)}${e}`},Kl=r=>{let e=Gl(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},mt=r=>{if(r==="auto")return r;let e=r.charAt(0)==="#"?r.substring(1):r;return zl(e,3)},rt=r=>typeof r=="string"?Gl(r):Se(r),ff=r=>typeof r=="string"?Kl(r):Sr(r);var Oe=r=>typeof r=="string"?Kl(r):Sr(r);var df=Sr,pf=Sr,mf=r=>r.toISOString(),ce=class extends ne{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new ve({val:t}))}},Ot=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:ff(t)}))}};var Ke=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:t}))}},St=(r,e)=>new _e({name:r,attributes:{value:{key:"w:val",value:e}}}),nt=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:t}))}};var He=class extends ne{constructor(e,t){super(e),this.root.push(t)}},_e=class extends ne{constructor({name:e,attributes:t,children:a}){super(e),t&&this.root.push(new Ve(t)),a&&this.root.push(...a)}},De={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"},Ai=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Si=class extends ne{constructor(e){super("w:jc"),this.root.push(new Ai({val:e}))}},ye=class extends ne{constructor(e,{color:t,size:a,space:u,style:l}){super(e),this.root.push(new Ri({style:l,color:t===void 0?void 0:mt(t),size:a===void 0?void 0:df(a),space:u===void 0?void 0:pf(u)}))}},Ri=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}},cu={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"},Ii=class extends dt{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ye("w:top",e.top)),e.bottom&&this.root.push(new ye("w:bottom",e.bottom)),e.left&&this.root.push(new ye("w:left",e.left)),e.right&&this.root.push(new ye("w:right",e.right))}},Ni=class extends ne{constructor(){super("w:pBdr");let e=new ye("w:bottom",{color:"auto",space:1,style:cu.SINGLE,size:6});this.root.push(e)}},Oi=class extends ne{constructor({start:e,end:t,left:a,right:u,hanging:l,firstLine:f}){super("w:ind"),this.root.push(new Ve({start:{key:"w:start",value:e===void 0?void 0:rt(e)},end:{key:"w:end",value:t===void 0?void 0:rt(t)},left:{key:"w:left",value:a===void 0?void 0:rt(a)},right:{key:"w:right",value:u===void 0?void 0:rt(u)},hanging:{key:"w:hanging",value:l===void 0?void 0:Oe(l)},firstLine:{key:"w:firstLine",value:f===void 0?void 0:Oe(f)}}))}},wf=class extends ne{constructor(){super("w:br")}},lu={BEGIN:"begin",END:"end",SEPARATE:"separate"},Pt=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}},ot=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Pt({type:lu.BEGIN,dirty:e}))}},ut=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Pt({type:lu.SEPARATE,dirty:e}))}},ct=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Pt({type:lu.END,dirty:e}))}};var wt={DEFAULT:"default",PRESERVE:"preserve"},$e=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{space:"xml:space"})}},ki=class extends ne{constructor(){super("w:instrText"),this.root.push(new $e({space:wt.PRESERVE})),this.root.push("PAGE")}},Ci=class extends ne{constructor(){super("w:instrText"),this.root.push(new $e({space:wt.PRESERVE})),this.root.push("NUMPAGES")}},Di=class extends ne{constructor(){super("w:instrText"),this.root.push(new $e({space:wt.PRESERVE})),this.root.push("SECTIONPAGES")}},Li=class extends ne{constructor(){super("w:instrText"),this.root.push(new $e({space:wt.PRESERVE})),this.root.push("SECTION")}},Pi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}},nr=class extends ne{constructor({fill:e,color:t,type:a}){super("w:shd"),this.root.push(new Pi({fill:e===void 0?void 0:mt(e),color:t===void 0?void 0:mt(t),type:a}))}};var Fi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},gf={DOT:"dot"},Bi=class extends ne{constructor(e){super("w:em"),this.root.push(new ve({val:e}))}},Ui=class extends Bi{constructor(e=gf.DOT){super(e)}};var Mi=class extends ne{constructor(e){super("w:spacing"),this.root.push(new ve({val:rt(e)}))}},Hi=class extends ne{constructor(e){super("w:color"),this.root.push(new ve({val:mt(e)}))}},ji=class extends ne{constructor(e){super("w:highlight"),this.root.push(new ve({val:e}))}},Wi=class extends ne{constructor(e){super("w:highlightCs"),this.root.push(new ve({val:e}))}},yf=r=>new _e({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}}}),ir=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}},kt=class extends ne{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){let a=e;this.root.push(new ir({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:t}))}else{let a=e;this.root.push(new ir(a))}}},ql=class extends ne{constructor(e){super("w:vertAlign"),this.root.push(new ve({val:e}))}},zi=class extends ql{constructor(){super("superscript")}},Gi=class extends ql{constructor(){super("subscript")}},Vl={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"},Ki=class extends ne{constructor(e=Vl.SINGLE,t){super("w:u"),this.root.push(new ve({val:e,color:t===void 0?void 0:mt(t)}))}};var We=class extends dt{constructor(e){var t,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new ce("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new ce("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new ce("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new ce("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new ce("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Ki(e.underline.type,e.underline.color)),e.effect&&this.push(new Ke("w:effect",e.effect)),e.emphasisMark&&this.push(new Ui(e.emphasisMark.type)),e.color&&this.push(new Hi(e.color)),e.kern&&this.push(new Ot("w:kern",e.kern)),e.position&&this.push(new Ke("w:position",e.position)),e.size!==void 0&&this.push(new Ot("w:sz",e.size));let u=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;u&&this.push(new Ot("w:szCs",u)),e.rightToLeft!==void 0&&this.push(new ce("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new ce("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new ce("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new ce("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new ce("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Gi),e.superScript&&this.push(new zi),e.style&&this.push(new Ke("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new kt(e.font)):"name"in e.font?this.push(new kt(e.font.name,e.font.hint)):this.push(new kt(e.font))),e.highlight&&this.push(new ji(e.highlight));let l=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;l&&this.push(new Wi(l)),e.characterSpacing&&this.push(new Mi(e.characterSpacing)),e.emboss!==void 0&&this.push(new ce("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new ce("w:imprint",e.imprint)),e.shading&&this.push(new nr(e.shading)),e.revision&&this.push(new qi(e.revision)),e.border&&this.push(new ye("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new ce("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new ce("w:vanish",e.vanish)),e.specVanish&&this.push(new ce("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new nt("w:w",e.scale)),e.language&&this.push(yf(e.language)),e.math&&this.push(new ce("w:oMath",e.math))}push(e){this.root.push(e)}},qi=class extends ne{constructor(e){super("w:rPrChange"),this.root.push(new Fi({id:e.id,author:e.author,date:e.date})),this.addChildElement(new We(e))}},sr=class extends ne{constructor(e){var t;super("w:t"),typeof e=="string"?(this.root.push(new $e({space:wt.PRESERVE})),this.root.push(e)):(this.root.push(new $e({space:(t=e.space)!=null?t:wt.DEFAULT})),this.root.push(e.text))}},Zt={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},Xe=class extends ne{constructor(e){if(super("w:r"),re(this,"properties"),this.properties=new We(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new wf);if(e.children)for(let t of e.children){if(typeof t=="string"){switch(t){case Zt.CURRENT:this.root.push(new ot),this.root.push(new ki),this.root.push(new ut),this.root.push(new ct);break;case Zt.TOTAL_PAGES:this.root.push(new ot),this.root.push(new Ci),this.root.push(new ut),this.root.push(new ct);break;case Zt.TOTAL_PAGES_IN_SECTION:this.root.push(new ot),this.root.push(new Di),this.root.push(new ut),this.root.push(new ct);break;case Zt.CURRENT_SECTION:this.root.push(new ot),this.root.push(new Li),this.root.push(new ut),this.root.push(new ct);break;default:this.root.push(new sr(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new sr(e.text))}},ar=class extends Xe{constructor(e){super(typeof e=="string"?{text:e}:e)}};var ni={},ge={},ii,qc;function Wt(){if(qc)return ii;qc=1,ii=r;function r(e,t){if(!e)throw new Error(t||"Assertion failed")}return r.equal=function(t,a,u){if(t!=a)throw new Error(u||"Assertion failed: "+t+" != "+a)},ii}var Vc;function Be(){if(Vc)return ge;Vc=1;var r=Wt(),e=Je();ge.inherits=e;function t(k,M){return(k.charCodeAt(M)&64512)!==55296||M<0||M+1>=k.length?!1:(k.charCodeAt(M+1)&64512)===56320}function a(k,M){if(Array.isArray(k))return k.slice();if(!k)return[];var g=[];if(typeof k=="string")if(M){if(M==="hex")for(k=k.replace(/[^a-z0-9]+/ig,""),k.length%2!==0&&(k="0"+k),ee=0;ee<k.length;ee+=2)g.push(parseInt(k[ee]+k[ee+1],16))}else for(var q=0,ee=0;ee<k.length;ee++){var z=k.charCodeAt(ee);z<128?g[q++]=z:z<2048?(g[q++]=z>>6|192,g[q++]=z&63|128):t(k,ee)?(z=65536+((z&1023)<<10)+(k.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<k.length;ee++)g[ee]=k[ee]|0;return g}ge.toArray=a;function u(k){for(var M="",g=0;g<k.length;g++)M+=i(k[g].toString(16));return M}ge.toHex=u;function l(k){var M=k>>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return M>>>0}ge.htonl=l;function f(k,M){for(var g="",q=0;q<k.length;q++){var ee=k[q];M==="little"&&(ee=l(ee)),g+=h(ee.toString(16))}return g}ge.toHex32=f;function i(k){return k.length===1?"0"+k:k}ge.zero2=i;function h(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}ge.zero8=h;function A(k,M,g,q){var ee=g-M;r(ee%4===0);for(var z=new Array(ee/4),se=0,Q=M;se<z.length;se++,Q+=4){var le;q==="big"?le=k[Q]<<24|k[Q+1]<<16|k[Q+2]<<8|k[Q+3]:le=k[Q+3]<<24|k[Q+2]<<16|k[Q+1]<<8|k[Q],z[se]=le>>>0}return z}ge.join32=A;function T(k,M){for(var g=new Array(k.length*4),q=0,ee=0;q<k.length;q++,ee+=4){var z=k[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}ge.split32=T;function R(k,M){return k>>>M|k<<32-M}ge.rotr32=R;function O(k,M){return k<<M|k>>>32-M}ge.rotl32=O;function x(k,M){return k+M>>>0}ge.sum32=x;function I(k,M,g){return k+M+g>>>0}ge.sum32_3=I;function _(k,M,g,q){return k+M+g+q>>>0}ge.sum32_4=_;function S(k,M,g,q,ee){return k+M+g+q+ee>>>0}ge.sum32_5=S;function o(k,M,g,q){var ee=k[M],z=k[M+1],se=q+z>>>0,Q=(se<q?1:0)+g+ee;k[M]=Q>>>0,k[M+1]=se}ge.sum64=o;function y(k,M,g,q){var ee=M+q>>>0,z=(ee<M?1:0)+k+g;return z>>>0}ge.sum64_hi=y;function m(k,M,g,q){var ee=M+q;return ee>>>0}ge.sum64_lo=m;function c(k,M,g,q,ee,z,se,Q){var le=0,V=M;V=V+q>>>0,le+=V<M?1:0,V=V+z>>>0,le+=V<z?1:0,V=V+Q>>>0,le+=V<Q?1:0;var D=k+g+ee+se+le;return D>>>0}ge.sum64_4_hi=c;function E(k,M,g,q,ee,z,se,Q){var le=M+q+z+Q;return le>>>0}ge.sum64_4_lo=E;function P(k,M,g,q,ee,z,se,Q,le,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=k+g+ee+se+le+D;return Z>>>0}ge.sum64_5_hi=P;function F(k,M,g,q,ee,z,se,Q,le,V){var D=M+q+z+Q+V;return D>>>0}ge.sum64_5_lo=F;function W(k,M,g){var q=M<<32-g|k>>>g;return q>>>0}ge.rotr64_hi=W;function N(k,M,g){var q=k<<32-g|M>>>g;return q>>>0}ge.rotr64_lo=N;function X(k,M,g){return k>>>g}ge.shr64_hi=X;function ue(k,M,g){var q=k<<32-g|M>>>g;return q>>>0}return ge.shr64_lo=ue,ge}var si={},$c;function zt(){if($c)return si;$c=1;var r=Be(),e=Wt();function t(){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 si.BlockHash=t,t.prototype.update=function(u,l){if(u=r.toArray(u,l),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var f=u.length%this._delta8;this.pending=u.slice(u.length-f,u.length),this.pending.length===0&&(this.pending=null),u=r.join32(u,0,u.length-f,this.endian);for(var i=0;i<u.length;i+=this._delta32)this._update(u,i,i+this._delta32)}return this},t.prototype.digest=function(u){return this.update(this._pad()),e(this.pending===null),this._digest(u)},t.prototype._pad=function(){var u=this.pendingTotal,l=this._delta8,f=l-(u+this.padLength)%l,i=new Array(f+this.padLength);i[0]=128;for(var h=1;h<f;h++)i[h]=0;if(u<<=3,this.endian==="big"){for(var A=8;A<this.padLength;A++)i[h++]=0;i[h++]=0,i[h++]=0,i[h++]=0,i[h++]=0,i[h++]=u>>>24&255,i[h++]=u>>>16&255,i[h++]=u>>>8&255,i[h++]=u&255}else for(i[h++]=u&255,i[h++]=u>>>8&255,i[h++]=u>>>16&255,i[h++]=u>>>24&255,i[h++]=0,i[h++]=0,i[h++]=0,i[h++]=0,A=8;A<this.padLength;A++)i[h++]=0;return i},si}var Qe={},Ce={},Xc;function $l(){if(Xc)return Ce;Xc=1;var r=Be(),e=r.rotr32;function t(T,R,O,x){if(T===0)return a(R,O,x);if(T===1||T===3)return l(R,O,x);if(T===2)return u(R,O,x)}Ce.ft_1=t;function a(T,R,O){return T&R^~T&O}Ce.ch32=a;function u(T,R,O){return T&R^T&O^R&O}Ce.maj32=u;function l(T,R,O){return T^R^O}Ce.p32=l;function f(T){return e(T,2)^e(T,13)^e(T,22)}Ce.s0_256=f;function i(T){return e(T,6)^e(T,11)^e(T,25)}Ce.s1_256=i;function h(T){return e(T,7)^e(T,18)^T>>>3}Ce.g0_256=h;function A(T){return e(T,17)^e(T,19)^T>>>10}return Ce.g1_256=A,Ce}var ai,Zc;function vf(){if(Zc)return ai;Zc=1;var r=Be(),e=zt(),t=$l(),a=r.rotl32,u=r.sum32,l=r.sum32_5,f=t.ft_1,i=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;i.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(A,i),ai=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(R,O){for(var x=this.W,I=0;I<16;I++)x[I]=R[O+I];for(;I<x.length;I++)x[I]=a(x[I-3]^x[I-8]^x[I-14]^x[I-16],1);var _=this.h[0],S=this.h[1],o=this.h[2],y=this.h[3],m=this.h[4];for(I=0;I<x.length;I++){var c=~~(I/20),E=l(a(_,5),f(c,S,o,y),m,x[I],h[c]);m=y,y=o,o=a(S,30),S=_,_=E}this.h[0]=u(this.h[0],_),this.h[1]=u(this.h[1],S),this.h[2]=u(this.h[2],o),this.h[3]=u(this.h[3],y),this.h[4]=u(this.h[4],m)},A.prototype._digest=function(R){return R==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},ai}var oi,Yc;function Xl(){if(Yc)return oi;Yc=1;var r=Be(),e=zt(),t=$l(),a=Wt(),u=r.sum32,l=r.sum32_4,f=r.sum32_5,i=t.ch32,h=t.maj32,A=t.s0_256,T=t.s1_256,R=t.g0_256,O=t.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 _(){if(!(this instanceof _))return new _;x.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}return r.inherits(_,x),oi=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(o,y){for(var m=this.W,c=0;c<16;c++)m[c]=o[y+c];for(;c<m.length;c++)m[c]=l(O(m[c-2]),m[c-7],R(m[c-15]),m[c-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],ue=this.h[6],k=this.h[7];for(a(this.k.length===m.length),c=0;c<m.length;c++){var M=f(k,T(N),i(N,X,ue),this.k[c],m[c]),g=u(A(E),h(E,P,F));k=ue,ue=X,X=N,N=u(W,M),W=F,F=P,P=E,E=u(M,g)}this.h[0]=u(this.h[0],E),this.h[1]=u(this.h[1],P),this.h[2]=u(this.h[2],F),this.h[3]=u(this.h[3],W),this.h[4]=u(this.h[4],N),this.h[5]=u(this.h[5],X),this.h[6]=u(this.h[6],ue),this.h[7]=u(this.h[7],k)},_.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},oi}var ui,Jc;function _f(){if(Jc)return ui;Jc=1;var r=Be(),e=Xl();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(t,e),ui=t,t.blockSize=512,t.outSize=224,t.hmacStrength=192,t.padLength=64,t.prototype._digest=function(u){return u==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")},ui}var ci,Qc;function Zl(){if(Qc)return ci;Qc=1;var r=Be(),e=zt(),t=Wt(),a=r.rotr64_hi,u=r.rotr64_lo,l=r.shr64_hi,f=r.shr64_lo,i=r.sum64,h=r.sum64_hi,A=r.sum64_lo,T=r.sum64_4_hi,R=r.sum64_4_lo,O=r.sum64_5_hi,x=r.sum64_5_lo,I=e.BlockHash,_=[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 S(){if(!(this instanceof S))return new S;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}r.inherits(S,I),ci=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.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 se=ue(ee[z-4],ee[z-3]),Q=k(ee[z-4],ee[z-3]),le=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(se,Q,le,V,D,$,Z,te),ee[z+1]=R(se,Q,le,V,D,$,Z,te)}},S.prototype._update=function(g,q){this._prepareBlock(g,q);var ee=this.W,z=this.h[0],se=this.h[1],Q=this.h[2],le=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];t(this.k.length===ee.length);for(var J=0;J<ee.length;J+=2){var d=C,Y=L,b=F(te,K),n=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],ie=ee[J+1],oe=O(d,Y,b,n,s,p,B,G,H,ie),ae=x(d,Y,b,n,s,p,B,G,H,ie);d=E(z,se),Y=P(z,se),b=m(z,se,Q,le,V),n=c(z,se,Q,le,V,D);var he=h(d,Y,b,n),de=A(d,Y,b,n);C=j,L=U,j=v,U=w,v=te,w=K,te=h($,Z,oe,ae),K=A(Z,Z,oe,ae),$=V,Z=D,V=Q,D=le,Q=z,le=se,z=h(oe,ae,he,de),se=A(oe,ae,he,de)}i(this.h,0,z,se),i(this.h,2,Q,le),i(this.h,4,V,D),i(this.h,6,$,Z),i(this.h,8,te,K),i(this.h,10,v,w),i(this.h,12,j,U),i(this.h,14,C,L)},S.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 se=M&q^~M&z;return se<0&&(se+=4294967296),se}function y(M,g,q,ee,z,se){var Q=g&ee^~g&se;return Q<0&&(Q+=4294967296),Q}function m(M,g,q,ee,z){var se=M&q^M&z^q&z;return se<0&&(se+=4294967296),se}function c(M,g,q,ee,z,se){var Q=g&ee^g&se^ee&se;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),se=q^ee^z;return se<0&&(se+=4294967296),se}function P(M,g){var q=u(M,g,28),ee=u(g,M,2),z=u(g,M,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function F(M,g){var q=a(M,g,14),ee=a(M,g,18),z=a(g,M,9),se=q^ee^z;return se<0&&(se+=4294967296),se}function W(M,g){var q=u(M,g,14),ee=u(M,g,18),z=u(g,M,9),se=q^ee^z;return se<0&&(se+=4294967296),se}function N(M,g){var q=a(M,g,1),ee=a(M,g,8),z=l(M,g,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function X(M,g){var q=u(M,g,1),ee=u(M,g,8),z=f(M,g,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function ue(M,g){var q=a(M,g,19),ee=a(g,M,29),z=l(M,g,6),se=q^ee^z;return se<0&&(se+=4294967296),se}function k(M,g){var q=u(M,g,19),ee=u(g,M,29),z=f(M,g,6),se=q^ee^z;return se<0&&(se+=4294967296),se}return ci}var li,el;function bf(){if(el)return li;el=1;var r=Be(),e=Zl();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(t,e),li=t,t.blockSize=1024,t.outSize=384,t.hmacStrength=192,t.padLength=128,t.prototype._digest=function(u){return u==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")},li}var tl;function Ef(){return tl||(tl=1,Qe.sha1=vf(),Qe.sha224=_f(),Qe.sha256=Xl(),Qe.sha384=bf(),Qe.sha512=Zl()),Qe}var hi={},rl;function xf(){if(rl)return hi;rl=1;var r=Be(),e=zt(),t=r.rotl32,a=r.sum32,u=r.sum32_3,l=r.sum32_4,f=e.BlockHash;function i(){if(!(this instanceof i))return new i;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(i,f),hi.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(S,o){for(var y=this.h[0],m=this.h[1],c=this.h[2],E=this.h[3],P=this.h[4],F=y,W=m,N=c,X=E,ue=P,k=0;k<80;k++){var M=a(t(l(y,h(k,m,c,E),S[R[k]+o],A(k)),x[k]),P);y=P,P=E,E=t(c,10),c=m,m=M,M=a(t(l(F,h(79-k,W,N,X),S[O[k]+o],T(k)),I[k]),ue),F=ue,ue=X,X=t(N,10),N=W,W=M}M=u(this.h[1],c,X),this.h[1]=u(this.h[2],E,ue),this.h[2]=u(this.h[3],P,F),this.h[3]=u(this.h[4],y,W),this.h[4]=u(this.h[0],m,N),this.h[0]=M},i.prototype._digest=function(S){return S==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function h(_,S,o,y){return _<=15?S^o^y:_<=31?S&o|~S&y:_<=47?(S|~o)^y:_<=63?S&y|o&~y:S^(o|~y)}function A(_){return _<=15?0:_<=31?1518500249:_<=47?1859775393:_<=63?2400959708:2840853838}function T(_){return _<=15?1352829926:_<=31?1548603684:_<=47?1836072691:_<=63?2053994217:0}var R=[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],O=[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 hi}var fi,nl;function Tf(){if(nl)return fi;nl=1;var r=Be(),e=Wt();function t(a,u,l){if(!(this instanceof t))return new t(a,u,l);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(u,l))}return fi=t,t.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),e(u.length<=this.blockSize);for(var l=u.length;l<this.blockSize;l++)u.push(0);for(l=0;l<u.length;l++)u[l]^=54;for(this.inner=new this.Hash().update(u),l=0;l<u.length;l++)u[l]^=106;this.outer=new this.Hash().update(u)},t.prototype.update=function(u,l){return this.inner.update(u,l),this},t.prototype.digest=function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)},fi}var il;function Af(){return il||(il=1,function(r){var e=r;e.utils=Be(),e.common=zt(),e.sha=Ef(),e.ripemd=xf(),e.hmac=Tf(),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}(ni)),ni}var Sf=Af(),Rf=Qo(Sf),If="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Nf=(r,e=21)=>(t=e)=>{let a="",u=t|0;for(;u--;)a+=r[Math.random()*r.length|0];return a},Of=(r=21)=>{let e="",t=r|0;for(;t--;)e+=If[Math.random()*64|0];return e},kf=r=>Math.floor(r/25.4*72*20),Re=r=>Math.floor(r*72*20),Rr=(r=0)=>{let e=r;return()=>++e},Cf=()=>Rr(),Df=()=>Rr(1),Lf=()=>Rr(),Pf=()=>Rr(),Yl=()=>Of().toLowerCase(),sl=r=>Rf.sha1().update(r instanceof ArrayBuffer?new Uint8Array(r):r).digest("hex"),Rt=r=>Nf("1234567890abcdef",r)(),Ff=()=>`${Rt(8)}-${Rt(4)}-${Rt(4)}-${Rt(4)}-${Rt(12)}`,Bf={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},Uf={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},Vi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{x:"x",y:"y"})}},$i=class extends ne{constructor(){super("wp:simplePos"),this.root.push(new Vi({x:0,y:0}))}},or=class extends ne{constructor(e){super("wp:align"),this.root.push(e)}},ur=class extends ne{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}},Xi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},Zi=class extends ne{constructor(e){if(super("wp:positionH"),this.root.push(new Xi({relativeFrom:e.relative||Bf.PAGE})),e.align)this.root.push(new or(e.align));else if(e.offset!==void 0)this.root.push(new ur(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},Yi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},Ji=class extends ne{constructor(e){if(super("wp:positionV"),this.root.push(new Yi({relativeFrom:e.relative||Uf.PAGE})),e.align)this.root.push(new or(e.align));else if(e.offset!==void 0)this.root.push(new ur(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},Qi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{uri:"uri"})}},Mf=r=>new _e({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}}`}}}),Hf=r=>new _e({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Mf(r)]}),jf=r=>new _e({name:"a:extLst",children:[Hf(r)]}),Wf=r=>new _e({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"?[jf(r)]:[]}),es=class extends ne{constructor(){super("a:srcRect")}},ts=class extends ne{constructor(){super("a:fillRect")}},rs=class extends ne{constructor(){super("a:stretch"),this.root.push(new ts)}},ns=class extends ne{constructor(e){super("pic:blipFill"),this.root.push(Wf(e)),this.root.push(new es),this.root.push(new rs)}},is=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},ss=class extends ne{constructor(){super("a:picLocks"),this.root.push(new is({noChangeAspect:1,noChangeArrowheads:1}))}},as=class extends ne{constructor(){super("pic:cNvPicPr"),this.root.push(new ss)}},Jl=(r,e)=>new _e({name:"a:hlinkClick",attributes:qe(we({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})}),os=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},us=class extends ne{constructor(){super("pic:cNvPr"),this.root.push(new os({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let a=e.stack[t];if(a instanceof gt){this.root.push(Jl(a.linkId,!1));break}}return super.prepForXml(e)}},cs=class extends ne{constructor(){super("pic:nvPicPr"),this.root.push(new us),this.root.push(new as)}},ls=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns:pic"})}},hs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{cx:"cx",cy:"cy"})}},fs=class extends ne{constructor(e,t){super("a:ext"),re(this,"attributes"),this.attributes=new hs({cx:e,cy:t}),this.root.push(this.attributes)}},ds=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{x:"x",y:"y"})}},ps=class extends ne{constructor(){super("a:off"),this.root.push(new ds({x:0,y:0}))}},ms=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},ws=class extends ne{constructor(e){var t,a;super("a:xfrm"),re(this,"extents"),this.root.push(new ms({flipVertical:(t=e.flip)==null?void 0:t.vertical,flipHorizontal:(a=e.flip)==null?void 0:a.horizontal,rotation:e.rotation})),this.extents=new fs(e.emus.x,e.emus.y),this.root.push(new ps),this.root.push(this.extents)}},Ql=()=>new _e({name:"a:noFill"}),zf=r=>new _e({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),Gf=r=>new _e({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),al=r=>new _e({name:"a:solidFill",children:[r.type==="rgb"?zf(r):Gf(r)]}),Kf=r=>new _e({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"?Ql():r.solidFillType==="rgb"?al({type:"rgb",value:r.value}):al({type:"scheme",value:r.value})]}),gs=class extends ne{constructor(){super("a:avLst")}},ys=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{prst:"prst"})}},vs=class extends ne{constructor(){super("a:prstGeom"),this.root.push(new ys({prst:"rect"})),this.root.push(new gs)}},_s=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{bwMode:"bwMode"})}},bs=class extends ne{constructor({outline:e,transform:t}){super("pic:spPr"),re(this,"form"),this.root.push(new _s({bwMode:"auto"})),this.form=new ws(t),this.root.push(this.form),this.root.push(new vs),e&&(this.root.push(Ql()),this.root.push(Kf(e)))}},Es=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("pic:pic"),this.root.push(new ls({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new cs),this.root.push(new ns(e)),this.root.push(new bs({transform:t,outline:a}))}},xs=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("a:graphicData"),re(this,"pic"),this.root.push(new Qi({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Es({mediaData:e,transform:t,outline:a}),this.root.push(this.pic)}},Ts=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{a:"xmlns:a"})}},cr=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("a:graphic"),re(this,"data"),this.root.push(new Ts({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new xs({mediaData:e,transform:t,outline:a}),this.root.push(this.data)}},Yt={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},qf={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"},lr=class extends ne{constructor(){super("wp:wrapNone")}},As=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}},Ss=class extends ne{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new As({wrapText:e.side||qf.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}},Rs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB"})}},Is=class extends ne{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new Rs({distT:e.top,distB:e.bottom}))}},Ns=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB"})}},Os=class extends ne{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new Ns({distT:e.top,distB:e.bottom}))}},hr=class extends ne{constructor({name:e,description:t,title:a}={name:"",description:"",title:""}){super("wp:docPr"),re(this,"docPropertiesUniqueNumericId",Lf()),this.root.push(new Ve({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:t},title:{key:"title",value:a}}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let a=e.stack[t];if(a instanceof gt){this.root.push(Jl(a.linkId,!0));break}}return super.prepForXml(e)}},eh=({top:r,right:e,bottom:t,left:a})=>new _e({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:e},bottom:{key:"b",value:t},left:{key:"l",value:a}}}),ks=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{cx:"cx",cy:"cy"})}},fr=class extends ne{constructor(e,t){super("wp:extent"),re(this,"attributes"),this.attributes=new ks({cx:e,cy:t}),this.root.push(this.attributes)}},Cs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},Ds=class extends ne{constructor(){super("a:graphicFrameLocks"),this.root.push(new Cs({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},dr=class extends ne{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new Ds)}},Ls=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},Ps=class extends ne{constructor({mediaData:e,transform:t,drawingOptions:a}){super("wp:anchor");let u=we({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},a.floating);if(this.root.push(new Ls({distT:u.margins&&u.margins.top||0,distB:u.margins&&u.margins.bottom||0,distL:u.margins&&u.margins.left||0,distR:u.margins&&u.margins.right||0,simplePos:"0",allowOverlap:u.allowOverlap===!0?"1":"0",behindDoc:u.behindDocument===!0?"1":"0",locked:u.lockAnchor===!0?"1":"0",layoutInCell:u.layoutInCell===!0?"1":"0",relativeHeight:u.zIndex?u.zIndex:t.emus.y})),this.root.push(new $i),this.root.push(new Zi(u.horizontalPosition)),this.root.push(new Ji(u.verticalPosition)),this.root.push(new fr(t.emus.x,t.emus.y)),this.root.push(eh({top:0,right:0,bottom:0,left:0})),a.floating!==void 0&&a.floating.wrap!==void 0)switch(a.floating.wrap.type){case Yt.SQUARE:this.root.push(new Ss(a.floating.wrap,a.floating.margins));break;case Yt.TIGHT:this.root.push(new Is(a.floating.margins));break;case Yt.TOP_AND_BOTTOM:this.root.push(new Os(a.floating.margins));break;case Yt.NONE:default:this.root.push(new lr)}else this.root.push(new lr);this.root.push(new hr(a.docProperties)),this.root.push(new dr),this.root.push(new cr({mediaData:e,transform:t,outline:a.outline}))}},Vf=({mediaData:r,transform:e,docProperties:t,outline:a})=>{var u,l,f,i;return new _e({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 fr(e.emus.x,e.emus.y),eh(a?{top:((u=a.width)!=null?u:9525)*2,right:((l=a.width)!=null?l:9525)*2,bottom:((f=a.width)!=null?f:9525)*2,left:((i=a.width)!=null?i:9525)*2}:{top:0,right:0,bottom:0,left:0}),new hr(t),new dr,new cr({mediaData:r,transform:e,outline:a})]})},Fs=class extends ne{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new Ps({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(Vf({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline}))}},$f=r=>{if(typeof atob=="function"){let e=";base64,",t=r.indexOf(e),a=t===-1?0:t+e.length;return new Uint8Array(atob(r.substring(a)).split("").map(u=>u.charCodeAt(0)))}else{let e=ah("buffer");return new e.Buffer(r,"base64")}},Xf=r=>typeof r=="string"?$f(r):r,di=(r,e)=>({data:Xf(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}}),ol=class extends Xe{constructor(e){super({}),re(this,"imageData");let a=`${sl(e.data)}.${e.type}`;this.imageData=e.type==="svg"?qe(we({type:e.type},di(e,a)),{fallback:we({type:e.fallback.type},di(qe(we({},e.fallback),{transformation:e.transformation}),`${sl(e.fallback.data)}.${e.fallback.type}`))}):we({type:e.type},di(e,a));let u=new Fs(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(u)}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 Bs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}};var Us=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}};var Ms=class extends ne{constructor({id:e,initials:t,author:a,date:u=new Date,children:l}){super("w:comment"),this.root.push(new Bs({id:e,initials:t,author:a,date:u.toISOString()}));for(let f of l)this.root.push(f)}},Hs=class extends ne{constructor({children:e}){super("w:comments"),this.root.push(new Us({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(let t of e)this.root.push(new Ms(t))}};var js=class extends ne{constructor(){super("w:pageBreakBefore")}},Ws={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"},zs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}},Gs=class extends ne{constructor(e){super("w:spacing"),this.root.push(new zs(e))}};var Jt=class extends ne{constructor(e){super("w:pStyle"),this.root.push(new ve({val:e}))}},Ks=class extends ne{constructor(e){super("w:tabs");for(let t of e)this.root.push(new Vs(t))}},ul={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};var qs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}},Vs=class extends ne{constructor({type:e,position:t,leader:a}){super("w:tab"),this.root.push(new qs({val:e,pos:t,leader:a}))}},Ct=class extends ne{constructor(e,t){super("w:numPr"),this.root.push(new $s(t)),this.root.push(new Xs(e))}},$s=class extends ne{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 ve({val:e}))}},Xs=class extends ne{constructor(e){super("w:numId"),this.root.push(new ve({val:typeof e=="string"?`{${e}}`:e}))}},Zs=class extends ne{constructor(){super(...arguments),re(this,"fileChild",Symbol())}},Ys=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}},Zf={EXTERNAL:"External"},Js=class extends ne{constructor(e,t,a,u){super("Relationship"),this.root.push(new Ys({id:e,type:t,target:a,targetMode:u}))}},Qs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}};var gt=class extends ne{constructor(e,t,a){super("w:hyperlink"),re(this,"linkId"),this.linkId=t;let u={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},l=new Qs(u);this.root.push(l),e.forEach(f=>{this.root.push(f)})}},cl=class extends gt{constructor(e){super(e.children,Yl(),e.anchor)}},ea=class extends ne{constructor(e){super("w:externalHyperlink"),this.options=e}},ta=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",name:"w:name"})}},ra=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id"})}},na=class{constructor(e){re(this,"bookmarkUniqueNumericId",Pf()),re(this,"start"),re(this,"children"),re(this,"end");let t=this.bookmarkUniqueNumericId();this.start=new ia(e.id,t),this.children=e.children,this.end=new sa(t)}},ia=class extends ne{constructor(e,t){super("w:bookmarkStart");let a=new ta({name:e,id:t});this.root.push(a)}},sa=class extends ne{constructor(e){super("w:bookmarkEnd");let t=new ra({id:e});this.root.push(t)}},aa=class extends ne{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new ve({val:e}))}};var oa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{verticalAlign:"w:val"})}},ua=class extends ne{constructor(e){super("w:vAlign"),this.root.push(new oa({verticalAlign:e}))}},ca=class extends ne{constructor({space:e,count:t,separate:a,equalWidth:u,children:l}){super("w:cols"),this.root.push(new Ve({space:{key:"w:space",value:e===void 0?void 0:Oe(e)},count:{key:"w:num",value:t===void 0?void 0:Se(t)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:u}})),!u&&l&&l.forEach(f=>this.addChildElement(f))}};var la=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}},ha=class extends ne{constructor(e,t,a){super("w:docGrid"),this.root.push(new la({type:a,linePitch:Se(e),charSpace:t?Se(t):void 0}))}},ht={DEFAULT:"default",FIRST:"first",EVEN:"even"},fa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"r:id"})}},ll={HEADER:"w:headerReference",FOOTER:"w:footerReference"},Dt=class extends ne{constructor(e,t){super(e),this.root.push(new fa({type:t.type||ht.DEFAULT,id:`rId${t.id}`}))}};var Yf=({countBy:r,start:e,restart:t,distance:a})=>new _e({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:Se(r)},start:{key:"w:start",value:e===void 0?void 0:Se(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:a===void 0?void 0:Oe(a)}}});var pr=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},da=class extends dt{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new pr({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new pr({})),e.pageBorderTop&&this.root.push(new ye("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ye("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ye("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ye("w:right",e.pageBorderRight))}},pa=class extends ne{constructor(e,t,a,u,l,f,i){super("w:pgMar"),this.root.push(new Ve({top:{key:"w:top",value:rt(e)},right:{key:"w:right",value:Oe(t)},bottom:{key:"w:bottom",value:rt(a)},left:{key:"w:left",value:Oe(u)},header:{key:"w:header",value:Oe(l)},footer:{key:"w:footer",value:Oe(f)},gutter:{key:"w:gutter",value:Oe(i)}}))}};var ma=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}},wa=class extends ne{constructor({start:e,formatType:t,separator:a}){super("w:pgNumType"),this.root.push(new ma({start:e===void 0?void 0:Se(e),formatType:t,separator:a}))}},th={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ga=class extends ne{constructor(e,t,a){super("w:pgSz");let u=a===th.LANDSCAPE,l=Oe(e),f=Oe(t);this.root.push(new Ve({width:{key:"w:w",value:u?f:l},height:{key:"w:h",value:u?l:f},orientation:{key:"w:orient",value:a}}))}};var ya=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},va=class extends ne{constructor(e){super("w:textDirection"),this.root.push(new ya({val:e}))}};var _a=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},ba=class extends ne{constructor(e){super("w:type"),this.root.push(new _a({val:e}))}},et={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},pi={WIDTH:11906,HEIGHT:16838,ORIENTATION:th.PORTRAIT},Ea=class extends ne{constructor({page:{size:{width:e=pi.WIDTH,height:t=pi.HEIGHT,orientation:a=pi.ORIENTATION}={},margin:{top:u=et.TOP,right:l=et.RIGHT,bottom:f=et.BOTTOM,left:i=et.LEFT,header:h=et.HEADER,footer:A=et.FOOTER,gutter:T=et.GUTTER}={},pageNumbers:R={},borders:O,textDirection:x}={},grid:{linePitch:I=360,charSpace:_,type:S}={},headerWrapperGroup:o={},footerWrapperGroup:y={},lineNumbers:m,titlePage:c,verticalAlign:E,column:P,type:F}={}){super("w:sectPr"),this.addHeaderFooterGroup(ll.HEADER,o),this.addHeaderFooterGroup(ll.FOOTER,y),F&&this.root.push(new ba(F)),this.root.push(new ga(e,t,a)),this.root.push(new pa(u,l,f,i,h,A,T)),O&&this.root.push(new da(O)),m&&this.root.push(Yf(m)),this.root.push(new wa(R)),P&&this.root.push(new ca(P)),E&&this.root.push(new ua(E)),c!==void 0&&this.root.push(new ce("w:titlePg",c)),x&&this.root.push(new va(x)),this.root.push(new ha(I,_,S))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new Dt(e,{type:ht.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new Dt(e,{type:ht.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new Dt(e,{type:ht.EVEN,id:t.even.View.ReferenceId}))}},xa=class extends ne{constructor(){super("w:body"),re(this,"sections",[])}addSection(e){let t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new Ea(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 t=new Ft({}),a=new Ye({});return a.push(e),t.addChildElement(a),t}};var hl={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"},yt=class extends fe{constructor(e,t){super(we({Ignorable:t},Object.fromEntries(e.map(a=>[a,hl[a]])))),re(this,"xmlKeys",we({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(hl).map(a=>[a,`xmlns:${a}`]))))}},Ta=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},Aa=class extends ne{constructor(e){super("w:background"),this.root.push(new Ta({color:e.color===void 0?void 0:mt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Kc(e.themeShade),themeTint:e.themeTint===void 0?void 0:Kc(e.themeTint)}))}},Sa=class extends ne{constructor(e){super("w:document"),re(this,"body"),this.root.push(new yt(["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 xa,e.background&&this.root.push(new Aa(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},Ra=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}},Ze=class extends ne{constructor(){super("Relationships"),this.root.push(new Ra({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,a,u){let l=new Js(`rId${e}`,t,a,u);return this.root.push(l),l}get RelationshipCount(){return this.root.length-1}},mr=class{constructor(e){re(this,"document"),re(this,"relationships"),this.document=new Sa(e),this.relationships=new Ze}get View(){return this.document}get Relationships(){return this.relationships}},Ia=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Na=class extends ne{constructor(){super("w:wordWrap"),this.root.push(new Ia({val:0}))}};var Jf=r=>{var e,t;return new _e({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:(t=r.space)==null?void 0:t.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}}})},Ye=class extends dt{constructor(e){var t,a;if(super("w:pPr"),re(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new Jt(e.heading)),e.bullet&&this.push(new Jt("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new Jt("ListParagraph"))),e.style&&this.push(new Jt(e.style)),e.keepNext!==void 0&&this.push(new ce("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new ce("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new js),e.frame&&this.push(Jf(e.frame)),e.widowControl!==void 0&&this.push(new ce("w:widowControl",e.widowControl)),e.bullet&&this.push(new Ct(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new Ct(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))):e.numbering===!1&&this.push(new Ct(0,0)),e.border&&this.push(new Ii(e.border)),e.thematicBreak&&this.push(new Ni),e.shading&&this.push(new nr(e.shading)),e.wordWrap&&this.push(new Na),e.overflowPunctuation&&this.push(new ce("w:overflowPunct",e.overflowPunctuation));let u=[...e.rightTabStop!==void 0?[{type:ul.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:ul.LEFT,position:e.leftTabStop}]:[]];u.length>0&&this.push(new Ks(u)),e.bidirectional!==void 0&&this.push(new ce("w:bidi",e.bidirectional)),e.spacing&&this.push(new Gs(e.spacing)),e.indent&&this.push(new Oi(e.indent)),e.contextualSpacing!==void 0&&this.push(new ce("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Si(e.alignment)),e.outlineLevel!==void 0&&this.push(new aa(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new ce("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new ce("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new We(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof mr)for(let t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},Ft=class extends Zs{constructor(e){if(super("w:p"),re(this,"properties"),typeof e=="string")return this.properties=new Ye({}),this.root.push(this.properties),this.root.push(new ar(e)),this;if(this.properties=new Ye(e),this.root.push(this.properties),e.text&&this.root.push(new ar(e.text)),e.children)for(let t of e.children){if(t instanceof na){this.root.push(t.start);for(let a of t.children)this.root.push(a);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(let t of this.root)if(t instanceof ea){let a=this.root.indexOf(t),u=new gt(t.options.children,Yl());e.viewWrapper.Relationships.createRelationship(u.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,Zf.EXTERNAL),this.root[a]=u}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}};var it={style:cu.NONE,size:0,color:"auto"},st={style:cu.SINGLE,size:4,color:"auto"},Oa=class extends ne{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ye("w:top",e.top)):this.root.push(new ye("w:top",st)),e.left?this.root.push(new ye("w:left",e.left)):this.root.push(new ye("w:left",st)),e.bottom?this.root.push(new ye("w:bottom",e.bottom)):this.root.push(new ye("w:bottom",st)),e.right?this.root.push(new ye("w:right",e.right)):this.root.push(new ye("w:right",st)),e.insideHorizontal?this.root.push(new ye("w:insideH",e.insideHorizontal)):this.root.push(new ye("w:insideH",st)),e.insideVertical?this.root.push(new ye("w:insideV",e.insideVertical)):this.root.push(new ye("w:insideV",st))}};re(Oa,"NONE",{top:it,bottom:it,left:it,right:it,insideHorizontal:it,insideVertical:it});var ka=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ca=class extends ne{constructor(){super("Properties"),this.root.push(new ka({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},Da=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}},La=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}},Ne=class extends ne{constructor(e,t){super("Default"),this.root.push(new La({contentType:e,extension:t}))}},Pa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}},Ae=class extends ne{constructor(e,t){super("Override"),this.root.push(new Pa({contentType:e,partName:t}))}},Fa=class extends ne{constructor(){super("Types"),this.root.push(new Da({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Ne("image/png","png")),this.root.push(new Ne("image/jpeg","jpeg")),this.root.push(new Ne("image/jpeg","jpg")),this.root.push(new Ne("image/bmp","bmp")),this.root.push(new Ne("image/gif","gif")),this.root.push(new Ne("image/svg+xml","svg")),this.root.push(new Ne("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Ne("application/xml","xml")),this.root.push(new Ne("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Ae("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},Ba=class extends ne{constructor(e){super("cp:coreProperties"),this.root.push(new yt(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new He("dc:title",e.title)),e.subject&&this.root.push(new He("dc:subject",e.subject)),e.creator&&this.root.push(new He("dc:creator",e.creator)),e.keywords&&this.root.push(new He("cp:keywords",e.keywords)),e.description&&this.root.push(new He("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new He("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new He("cp:revision",String(e.revision))),this.root.push(new wr("dcterms:created")),this.root.push(new wr("dcterms:modified"))}},Ua=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"xsi:type"})}},wr=class extends ne{constructor(e){super(e),this.root.push(new Ua({type:"dcterms:W3CDTF"})),this.root.push(mf(new Date))}},Ma=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ha=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}},ja=class extends ne{constructor(e,t){super("property"),this.root.push(new Ha({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new Wa(t.value))}},Wa=class extends ne{constructor(e){super("vt:lpwstr"),this.root.push(e)}},za=class extends ne{constructor(e){super("Properties"),re(this,"nextId"),re(this,"properties",[]),this.root.push(new Ma({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(let t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ja(this.nextId++,e))}};var Qt=({id:r,fontKey:e,subsetted:t},a)=>new _e({name:a,attributes:we({id:{key:"r:id",value:r}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new ce("w:subsetted",t)]:[]]}),Qf=({name:r,altName:e,panose1:t,charset:a,family:u,notTrueType:l,pitch:f,sig:i,embedRegular:h,embedBold:A,embedItalic:T,embedBoldItalic:R})=>new _e({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...e?[St("w:altName",e)]:[],...t?[St("w:panose1",t)]:[],...a?[St("w:charset",a)]:[],St("w:family",u),...l?[new ce("w:notTrueType",l)]:[],St("w:pitch",f),...i?[new _e({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...h?[Qt(h,"w:embedRegular")]:[],...A?[Qt(A,"w:embedBold")]:[],...T?[Qt(T,"w:embedItalic")]:[],...R?[Qt(R,"w:embedBoldItalic")]:[]]}),ed=({name:r,index:e,fontKey:t,characterSet:a})=>Qf({name:r,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${e}`}}),td=r=>new _e({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:r.map((e,t)=>ed({name:e.name,index:t+1,fontKey:e.fontKey}))}),Ga=class{constructor(e){re(this,"fontTable"),re(this,"relationships"),re(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>qe(we({},t),{fontKey:Ff()})),this.fontTable=td(this.fontOptionsWithKey),this.relationships=new Ze;for(let t=0;t<e.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},Ka=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},rd=class extends rr{constructor(e,t){super("w:ftr",t),re(this,"refId"),this.refId=e,t||this.root.push(new Ka({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"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},qa=class{constructor(e,t,a){re(this,"footer"),re(this,"relationships"),this.media=e,this.footer=new rd(t,a),this.relationships=new Ze}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Va=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"w:id"})}},$a=class extends ne{constructor(){super("w:footnoteRef")}},Xa=class extends Xe{constructor(){super({style:"FootnoteReference"}),this.root.push(new $a)}},fl={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},Lt=class extends ne{constructor(e){super("w:footnote"),this.root.push(new Va({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let a=e.children[t];t===0&&a.addRunToFront(new Xa),this.root.push(a)}}},Za=class extends ne{constructor(){super("w:continuationSeparator")}},Ya=class extends Xe{constructor(){super({}),this.root.push(new Za)}},Ja=class extends ne{constructor(){super("w:separator")}},Qa=class extends Xe{constructor(){super({}),this.root.push(new Ja)}},eo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},to=class extends ne{constructor(){super("w:footnotes"),this.root.push(new eo({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",Ignorable:"w14 w15 wp14"}));let e=new Lt({id:-1,type:fl.SEPERATOR,children:[new Ft({spacing:{after:0,line:240,lineRule:Ws.AUTO},children:[new Qa]})]});this.root.push(e);let t=new Lt({id:0,type:fl.CONTINUATION_SEPERATOR,children:[new Ft({spacing:{after:0,line:240,lineRule:Ws.AUTO},children:[new Ya]})]});this.root.push(t)}createFootNote(e,t){let a=new Lt({id:e,children:t});this.root.push(a)}},ro=class{constructor(){re(this,"footnotess"),re(this,"relationships"),this.footnotess=new to,this.relationships=new Ze}get View(){return this.footnotess}get Relationships(){return this.relationships}},no=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},nd=class extends rr{constructor(e,t){super("w:hdr",t),re(this,"refId"),this.refId=e,t||this.root.push(new no({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",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",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},io=class{constructor(e,t,a){re(this,"header"),re(this,"relationships"),this.media=e,this.header=new nd(t,a),this.relationships=new Ze}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},so=class{constructor(){re(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}};var Me={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"},ao=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},oo=class extends ne{constructor(e){super("w:numFmt"),this.root.push(new ve({val:e}))}},uo=class extends ne{constructor(e){super("w:lvlText"),this.root.push(new ve({val:e}))}},co=class extends ne{constructor(e){super("w:lvlJc"),this.root.push(new ve({val:e}))}};var lo=class extends ne{constructor(e){super("w:suff"),this.root.push(new ve({val:e}))}},ho=class extends ne{constructor(){super("w:isLgl")}},fo=class extends ne{constructor({level:e,format:t,text:a,alignment:u=De.START,start:l=1,style:f,suffix:i,isLegalNumberingStyle:h}){if(super("w:lvl"),re(this,"paragraphProperties"),re(this,"runProperties"),this.root.push(new nt("w:start",Se(l))),t&&this.root.push(new oo(t)),i&&this.root.push(new lo(i)),h&&this.root.push(new ho),a&&this.root.push(new uo(a)),this.root.push(new co(u)),this.paragraphProperties=new Ye(f&&f.paragraph),this.runProperties=new We(f&&f.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),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 ao({ilvl:Se(e),tentative:1}))}},po=class extends fo{};var mo=class extends ne{constructor(e){super("w:multiLevelType"),this.root.push(new ve({val:e}))}},wo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},gr=class extends ne{constructor(e,t){super("w:abstractNum"),re(this,"id"),this.root.push(new wo({abstractNumId:Se(e),restartNumberingAfterBreak:0})),this.root.push(new mo("hybridMultilevel")),this.id=e;for(let a of t)this.root.push(new po(a))}},go=class extends ne{constructor(e){super("w:abstractNumId"),this.root.push(new ve({val:e}))}},yo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{numId:"w:numId"})}},yr=class extends ne{constructor(e){if(super("w:num"),re(this,"numId"),re(this,"reference"),re(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new yo({numId:Se(e.numId)})),this.root.push(new go(Se(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(let t of e.overrideLevels)this.root.push(new _o(t.num,t.start))}},vo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl"})}},_o=class extends ne{constructor(e,t){super("w:lvlOverride"),this.root.push(new vo({ilvl:e})),t!==void 0&&this.root.push(new Eo(t))}},bo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Eo=class extends ne{constructor(e){super("w:startOverride"),this.root.push(new bo({val:e}))}},xo=class extends ne{constructor(e){super("w:numbering"),re(this,"abstractNumberingMap",new Map),re(this,"concreteNumberingMap",new Map),re(this,"referenceConfigMap",new Map),re(this,"abstractNumUniqueNumericId",Cf()),re(this,"concreteNumUniqueNumericId",Df()),this.root.push(new yt(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let t=new gr(this.abstractNumUniqueNumericId(),[{level:0,format:Me.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:Re(.5),hanging:Re(.25)}}}},{level:1,format:Me.BULLET,text:"\u25CB",alignment:De.LEFT,style:{paragraph:{indent:{left:Re(1),hanging:Re(.25)}}}},{level:2,format:Me.BULLET,text:"\u25A0",alignment:De.LEFT,style:{paragraph:{indent:{left:2160,hanging:Re(.25)}}}},{level:3,format:Me.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:2880,hanging:Re(.25)}}}},{level:4,format:Me.BULLET,text:"\u25CB",alignment:De.LEFT,style:{paragraph:{indent:{left:3600,hanging:Re(.25)}}}},{level:5,format:Me.BULLET,text:"\u25A0",alignment:De.LEFT,style:{paragraph:{indent:{left:4320,hanging:Re(.25)}}}},{level:6,format:Me.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:5040,hanging:Re(.25)}}}},{level:7,format:Me.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:5760,hanging:Re(.25)}}}},{level:8,format:Me.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:6480,hanging:Re(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new yr({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(let a of e.config)this.abstractNumberingMap.set(a.reference,new gr(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(let t of this.abstractNumberingMap.values())this.root.push(t);for(let t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){let a=this.abstractNumberingMap.get(e);if(!a)return;let u=`${e}-${t}`;if(this.concreteNumberingMap.has(u))return;let l=this.referenceConfigMap.get(e),f=l&&l[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:t,overrideLevels:[f&&Number.isInteger(f)?{num:0,start:f}:{num:0,start:1}]};this.concreteNumberingMap.set(u,new yr(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},To=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}},Ao=class extends ne{constructor(e){super("w:compatSetting"),this.root.push(new To({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}},So=class extends ne{constructor(e){super("w:compat"),e.version&&this.root.push(new Ao(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new ce("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new ce("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new ce("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new ce("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new ce("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new ce("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new ce("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new ce("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new ce("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new ce("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new ce("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new ce("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new ce("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new ce("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new ce("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new ce("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new ce("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new ce("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new ce("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new ce("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new ce("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new ce("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new ce("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new ce("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new ce("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new ce("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new ce("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new ce("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new ce("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new ce("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new ce("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new ce("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new ce("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new ce("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new ce("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new ce("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new ce("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ce("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new ce("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new ce("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new ce("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new ce("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new ce("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new ce("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new ce("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new ce("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new ce("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new ce("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new ce("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new ce("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new ce("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new ce("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new ce("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new ce("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new ce("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new ce("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new ce("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new ce("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new ce("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new ce("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new ce("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new ce("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ce("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new ce("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new ce("w:cachedColBalance",e.cachedColumnBalance))}},Ro=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Io=class extends ne{constructor(e){var t,a,u,l,f,i,h,A;super("w:settings"),this.root.push(new Ro({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",Ignorable:"w14 w15 wp14"})),this.root.push(new ce("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new ce("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new ce("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new ce("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new nt("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)==null?void 0:t.autoHyphenation)!==void 0&&this.root.push(new ce("w:autoHyphenation",e.hyphenation.autoHyphenation)),((a=e.hyphenation)==null?void 0:a.hyphenationZone)!==void 0&&this.root.push(new nt("w:hyphenationZone",e.hyphenation.hyphenationZone)),((u=e.hyphenation)==null?void 0:u.consecutiveHyphenLimit)!==void 0&&this.root.push(new nt("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((l=e.hyphenation)==null?void 0:l.doNotHyphenateCaps)!==void 0&&this.root.push(new ce("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new So(qe(we({},(f=e.compatibility)!=null?f:{}),{version:(A=(h=(i=e.compatibility)==null?void 0:i.version)!=null?h:e.compatibilityModeVersion)!=null?A:15})))}},vr=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},No=class extends ne{constructor(e){super("w:name"),this.root.push(new vr({val:e}))}},Oo=class extends ne{constructor(e){super("w:uiPriority"),this.root.push(new vr({val:Se(e)}))}},ko=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},_r=class extends ne{constructor(e,t){super("w:style"),this.root.push(new ko(e)),t.name&&this.root.push(new No(t.name)),t.basedOn&&this.root.push(new Ke("w:basedOn",t.basedOn)),t.next&&this.root.push(new Ke("w:next",t.next)),t.link&&this.root.push(new Ke("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new Oo(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new ce("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new ce("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new ce("w:qFormat",t.quickFormat))}},vt=class extends _r{constructor(e){super({type:"paragraph",styleId:e.id},e),re(this,"paragraphProperties"),re(this,"runProperties"),this.paragraphProperties=new Ye(e.paragraph),this.runProperties=new We(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},_t=class extends _r{constructor(e){super({type:"character",styleId:e.id},we({uiPriority:99,unhideWhenUsed:!0},e)),re(this,"runProperties"),this.runProperties=new We(e.run),this.root.push(this.runProperties)}},Fe=class extends vt{constructor(e){super(we({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},Co=class extends Fe{constructor(e){super(we({id:"Title",name:"Title"},e))}},Do=class extends Fe{constructor(e){super(we({id:"Heading1",name:"Heading 1"},e))}},Lo=class extends Fe{constructor(e){super(we({id:"Heading2",name:"Heading 2"},e))}},Po=class extends Fe{constructor(e){super(we({id:"Heading3",name:"Heading 3"},e))}},Fo=class extends Fe{constructor(e){super(we({id:"Heading4",name:"Heading 4"},e))}},Bo=class extends Fe{constructor(e){super(we({id:"Heading5",name:"Heading 5"},e))}},Uo=class extends Fe{constructor(e){super(we({id:"Heading6",name:"Heading 6"},e))}},Mo=class extends Fe{constructor(e){super(we({id:"Strong",name:"Strong"},e))}},Ho=class extends vt{constructor(e){super(we({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},jo=class extends vt{constructor(e){super(we({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Ws.AUTO}},run:{size:20}},e))}},Wo=class extends _t{constructor(e){super(we({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},zo=class extends _t{constructor(e){super(we({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},Go=class extends _t{constructor(e){super(we({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Vl.SINGLE}}},e))}},Bt=class extends ne{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(let t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(let t of e.paragraphStyles)this.root.push(new vt(t));if(e.characterStyles)for(let t of e.characterStyles)this.root.push(new _t(t))}},Ko=class extends ne{constructor(e){super("w:pPrDefault"),this.root.push(new Ye(e))}},qo=class extends ne{constructor(e){super("w:rPrDefault"),this.root.push(new We(e))}},Vo=class extends ne{constructor(e){super("w:docDefaults"),re(this,"runPropertiesDefaults"),re(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new qo(e.run),this.paragraphPropertiesDefaults=new Ko(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},$o=class{newInstance(e){let t=Wl.xml2js(e,{compact:!1}),a;for(let f of t.elements||[])f.name==="w:styles"&&(a=f);if(a===void 0)throw new Error("can not find styles element");let u=a.elements||[];return new Bt({initialStyles:new Ti(a.attributes),importedStyles:u.map(f=>uu(f))})}},br=class{newInstance(e={}){var t;return{initialStyles:new yt(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Vo((t=e.document)!=null?t:{}),new Co(we({run:{size:56}},e.title)),new Do(we({run:{color:"2E74B5",size:32}},e.heading1)),new Lo(we({run:{color:"2E74B5",size:26}},e.heading2)),new Po(we({run:{color:"1F4D78",size:24}},e.heading3)),new Fo(we({run:{color:"2E74B5",italics:!0}},e.heading4)),new Bo(we({run:{color:"2E74B5"}},e.heading5)),new Uo(we({run:{color:"1F4D78"}},e.heading6)),new Mo(we({run:{bold:!0}},e.strong)),new Ho(e.listParagraph||{}),new Go(e.hyperlink||{}),new Wo(e.footnoteReference||{}),new jo(e.footnoteText||{}),new zo(e.footnoteTextChar||{})]}}},dl=class{constructor(e){re(this,"currentRelationshipId",1),re(this,"documentWrapper"),re(this,"headers",[]),re(this,"footers",[]),re(this,"coreProperties"),re(this,"numbering"),re(this,"media"),re(this,"fileRelationships"),re(this,"footnotesWrapper"),re(this,"settings"),re(this,"contentTypes"),re(this,"customProperties"),re(this,"appProperties"),re(this,"styles"),re(this,"comments"),re(this,"fontWrapper");var t,a,u,l,f,i,h,A,T,R,O,x;if(this.coreProperties=new Ba(qe(we({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(a=e.revision)!=null?a:1,lastModifiedBy:(u=e.lastModifiedBy)!=null?u:"Un-named"})),this.numbering=new xo(e.numbering?e.numbering:{config:[]}),this.comments=new Hs((l=e.comments)!=null?l:{children:[]}),this.fileRelationships=new Ze,this.customProperties=new za((f=e.customProperties)!=null?f:[]),this.appProperties=new Ca,this.footnotesWrapper=new ro,this.contentTypes=new Fa,this.documentWrapper=new mr({background:e.background}),this.settings=new Io({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(i=e.features)==null?void 0:i.trackRevisions,updateFields:(h=e.features)==null?void 0:h.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(A=e.hyphenation)==null?void 0:A.autoHyphenation,hyphenationZone:(T=e.hyphenation)==null?void 0:T.hyphenationZone,consecutiveHyphenLimit:(R=e.hyphenation)==null?void 0:R.consecutiveHyphenLimit,doNotHyphenateCaps:(O=e.hyphenation)==null?void 0:O.doNotHyphenateCaps}}),this.media=new so,e.externalStyles!==void 0){let I=new $o;this.styles=I.newInstance(e.externalStyles)}else if(e.styles){let _=new br().newInstance(e.styles.default);this.styles=new Bt(we(we({},_),e.styles))}else{let I=new br;this.styles=new Bt(I.newInstance())}this.addDefaultRelationships();for(let I of e.sections)this.addSection(I);if(e.footnotes)for(let I in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(I),e.footnotes[I].children);this.fontWrapper=new Ga((x=e.fonts)!=null?x:[])}addSection({headers:e={},footers:t={},children:a,properties:u}){this.documentWrapper.View.Body.addSection(qe(we({},u),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(let l of a)this.documentWrapper.View.add(l)}createHeader(e){let t=new io(this.media,this.currentRelationshipId++);for(let a of e.options.children)t.add(a);return this.addHeaderToDocument(t),t}createFooter(e){let t=new qa(this.media,this.currentRelationshipId++);for(let a of e.options.children)t.add(a);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=ht.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=ht.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}};var Xo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id"})}},Zo=class extends ne{constructor(e){super("w:footnoteReference"),this.root.push(new Xo({id:e}))}},pl=class extends Xe{constructor(e){super({style:"FootnoteReference"}),this.root.push(new Zo(e))}};var id=su();function er(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 mi={exports:{}},ml;function sd(){return ml||(ml=1,function(r,e){(function(t){r.exports=t()})(function(){return function t(a,u,l){function f(A,T){if(!u[A]){if(!a[A]){var R=typeof er=="function"&&er;if(!T&&R)return R(A,!0);if(i)return i(A,!0);var O=new Error("Cannot find module '"+A+"'");throw O.code="MODULE_NOT_FOUND",O}var x=u[A]={exports:{}};a[A][0].call(x.exports,function(I){var _=a[A][1][I];return f(_||I)},x,x.exports,t,a,u,l)}return u[A].exports}for(var i=typeof er=="function"&&er,h=0;h<l.length;h++)f(l[h]);return f}({1:[function(t,a,u){var l=t("./utils"),f=t("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(h){for(var A,T,R,O,x,I,_,S=[],o=0,y=h.length,m=y,c=l.getTypeOf(h)!=="string";o<h.length;)m=y-o,R=c?(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),O=A>>2,x=(3&A)<<4|T>>4,I=1<m?(15&T)<<2|R>>6:64,_=2<m?63&R:64,S.push(i.charAt(O)+i.charAt(x)+i.charAt(I)+i.charAt(_));return S.join("")},u.decode=function(h){var A,T,R,O,x,I,_=0,S=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)===i.charAt(64)&&m--,h.charAt(h.length-2)===i.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);_<h.length;)A=i.indexOf(h.charAt(_++))<<2|(O=i.indexOf(h.charAt(_++)))>>4,T=(15&O)<<4|(x=i.indexOf(h.charAt(_++)))>>2,R=(3&x)<<6|(I=i.indexOf(h.charAt(_++))),y[S++]=A,x!==64&&(y[S++]=T),I!==64&&(y[S++]=R);return y}},{"./support":30,"./utils":32}],2:[function(t,a,u){var l=t("./external"),f=t("./stream/DataWorker"),i=t("./stream/Crc32Probe"),h=t("./stream/DataLengthProbe");function A(T,R,O,x,I){this.compressedSize=T,this.uncompressedSize=R,this.crc32=O,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")),R=this;return T.on("end",function(){if(this.streamInfo.data_length!==R.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,R,O){return T.pipe(new i).pipe(new h("uncompressedSize")).pipe(R.compressWorker(O)).pipe(new h("compressedSize")).withStreamInfo("compression",R)},a.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,a,u){var l=t("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},u.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,a,u){var l=t("./utils"),f=function(){for(var i,h=[],A=0;A<256;A++){i=A;for(var T=0;T<8;T++)i=1&i?3988292384^i>>>1:i>>>1;h[A]=i}return h}();a.exports=function(i,h){return i!==void 0&&i.length?l.getTypeOf(i)!=="string"?function(A,T,R,O){var x=f,I=O+R;A^=-1;for(var _=O;_<I;_++)A=A>>>8^x[255&(A^T[_])];return-1^A}(0|h,i,i.length,0):function(A,T,R,O){var x=f,I=O+R;A^=-1;for(var _=O;_<I;_++)A=A>>>8^x[255&(A^T.charCodeAt(_))];return-1^A}(0|h,i,i.length,0):0}},{"./utils":32}],5:[function(t,a,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(t,a,u){var l=null;l=typeof Promise!="undefined"?Promise:t("lie"),a.exports={Promise:l}},{lie:37}],7:[function(t,a,u){var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",f=t("pako"),i=t("./utils"),h=t("./stream/GenericWorker"),A=l?"uint8array":"array";function T(R,O){h.call(this,"FlateWorker/"+R),this._pako=null,this._pakoAction=R,this._pakoOptions=O,this.meta={}}u.magic="\b\0",i.inherits(T,h),T.prototype.processChunk=function(R){this.meta=R.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(A,R.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 R=this;this._pako.onData=function(O){R.push({data:O,meta:R.meta})}},u.compressWorker=function(R){return new T("Deflate",R)},u.uncompressWorker=function(){return new T("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,a,u){function l(x,I){var _,S="";for(_=0;_<I;_++)S+=String.fromCharCode(255&x),x>>>=8;return S}function f(x,I,_,S,o,y){var m,c,E=x.file,P=x.compression,F=y!==A.utf8encode,W=i.transformTo("string",y(E.name)),N=i.transformTo("string",A.utf8encode(E.name)),X=E.comment,ue=i.transformTo("string",y(X)),k=i.transformTo("string",A.utf8encode(X)),M=N.length!==E.name.length,g=k.length!==X.length,q="",ee="",z="",se=E.dir,Q=E.date,le={crc32:0,compressedSize:0,uncompressedSize:0};I&&!_||(le.crc32=x.crc32,le.compressedSize=x.compressedSize,le.uncompressedSize=x.uncompressedSize);var V=0;I&&(V|=8),F||!M&&!g||(V|=2048);var D=0,$=0;se&&(D|=16),o==="UNIX"?($=798,D|=function(te,K){var v=te;return te||(v=K?16893:33204),(65535&v)<<16}(E.unixPermissions,se)):($=20,D|=function(te){return 63&(te||0)}(E.dosPermissions)),m=Q.getUTCHours(),m<<=6,m|=Q.getUTCMinutes(),m<<=5,m|=Q.getUTCSeconds()/2,c=Q.getUTCFullYear()-1980,c<<=4,c|=Q.getUTCMonth()+1,c<<=5,c|=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(ue),4)+k,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(c,2),Z+=l(le.crc32,4),Z+=l(le.compressedSize,4),Z+=l(le.uncompressedSize,4),Z+=l(W.length,2),Z+=l(q.length,2),{fileRecord:R.LOCAL_FILE_HEADER+Z+W+q,dirRecord:R.CENTRAL_FILE_HEADER+l($,2)+Z+l(ue.length,2)+"\0\0\0\0"+l(D,4)+l(S,4)+W+q+ue}}var i=t("../utils"),h=t("../stream/GenericWorker"),A=t("../utf8"),T=t("../crc32"),R=t("../signature");function O(x,I,_,S){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=_,this.encodeFileName=S,this.streamFiles=x,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(O,h),O.prototype.push=function(x){var I=x.meta.percent||0,_=this.entriesCount,S=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:_?(I+100*(_-S-1))/_:100}}))},O.prototype.openedSource=function(x){this.currentSourceOffset=this.bytesWritten,this.currentFile=x.file.name;var I=this.streamFiles&&!x.file.dir;if(I){var _=f(x,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},O.prototype.closedSource=function(x){this.accumulate=!1;var I=this.streamFiles&&!x.file.dir,_=f(x,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(_.dirRecord),I)this.push({data:function(S){return R.DATA_DESCRIPTOR+l(S.crc32,4)+l(S.compressedSize,4)+l(S.uncompressedSize,4)}(x),meta:{percent:100}});else for(this.push({data:_.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},O.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 _=this.bytesWritten-x,S=function(o,y,m,c,E){var P=i.transformTo("string",E(c));return R.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,_,x,this.zipComment,this.encodeFileName);this.push({data:S,meta:{percent:100}})},O.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},O.prototype.registerPrevious=function(x){this._sources.push(x);var I=this;return x.on("data",function(_){I.processChunk(_)}),x.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),x.on("error",function(_){I.error(_)}),this},O.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))},O.prototype.error=function(x){var I=this._sources;if(!h.prototype.error.call(this,x))return!1;for(var _=0;_<I.length;_++)try{I[_].error(x)}catch{}return!0},O.prototype.lock=function(){h.prototype.lock.call(this);for(var x=this._sources,I=0;I<x.length;I++)x[I].lock()},a.exports=O},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,a,u){var l=t("../compressions"),f=t("./ZipFileWorker");u.generateWorker=function(i,h,A){var T=new f(h.streamFiles,A,h.platform,h.encodeFileName),R=0;try{i.forEach(function(O,x){R++;var I=function(y,m){var c=y||m,E=l[c];if(!E)throw new Error(c+" is not a valid compression method !");return E}(x.options.compression,h.compression),_=x.options.compressionOptions||h.compressionOptions||{},S=x.dir,o=x.date;x._compressWorker(I,_).withStreamInfo("file",{name:O,dir:S,date:o,comment:x.comment||"",unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions}).pipe(T)}),T.entriesCount=R}catch(O){T.error(O)}return T}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,a,u){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 i in this)typeof this[i]!="function"&&(f[i]=this[i]);return f}}(l.prototype=t("./object")).loadAsync=t("./load"),l.support=t("./support"),l.defaults=t("./defaults"),l.version="3.10.1",l.loadAsync=function(f,i){return new l().loadAsync(f,i)},l.external=t("./external"),a.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,a,u){var l=t("./utils"),f=t("./external"),i=t("./utf8"),h=t("./zipEntries"),A=t("./stream/Crc32Probe"),T=t("./nodejsUtils");function R(O){return new f.Promise(function(x,I){var _=O.decompressed.getContentWorker().pipe(new A);_.on("error",function(S){I(S)}).on("end",function(){_.streamInfo.crc32!==O.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):x()}).resume()})}a.exports=function(O,x){var I=this;return x=l.extend(x||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),T.isNode&&T.isStream(O)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",O,!0,x.optimizedBinaryString,x.base64).then(function(_){var S=new h(x);return S.load(_),S}).then(function(_){var S=[f.Promise.resolve(_)],o=_.files;if(x.checkCRC32)for(var y=0;y<o.length;y++)S.push(R(o[y]));return f.Promise.all(S)}).then(function(_){for(var S=_.shift(),o=S.files,y=0;y<o.length;y++){var m=o[y],c=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=c)}return S.zipComment.length&&(I.comment=S.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,a,u){var l=t("../utils"),f=t("../stream/GenericWorker");function i(h,A){f.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(A)}l.inherits(i,f),i.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()})},i.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,a,u){var l=t("readable-stream").Readable;function f(i,h,A){l.call(this,h),this._helper=i;var T=this;i.on("data",function(R,O){T.push(R)||T._helper.pause(),A&&A(O)}).on("error",function(R){T.emit("error",R)}).on("end",function(){T.push(null)})}t("../utils").inherits(f,l),f.prototype._read=function(){this._helper.resume()},a.exports=f},{"../utils":32,"readable-stream":16}],14:[function(t,a,u){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(t,a,u){function l(E,P,F){var W,N=i.getTypeOf(P),X=i.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=S(E))&&y.call(this,W,!0);var ue=N==="string"&&X.binary===!1&&X.base64===!1;F&&F.binary!==void 0||(X.binary=!ue),(P instanceof R&&P.uncompressedSize===0||X.dir||!P||P.length===0)&&(X.base64=!1,X.binary=!0,P="",X.compression="STORE",N="string");var k=null;k=P instanceof R||P instanceof h?P:I.isNode&&I.isStream(P)?new _(E,P):i.prepareContent(E,P,X.binary,X.optimizedBinaryString,X.base64);var M=new O(E,k,X);this.files[E]=M}var f=t("./utf8"),i=t("./utils"),h=t("./stream/GenericWorker"),A=t("./stream/StreamHelper"),T=t("./defaults"),R=t("./compressedObject"),O=t("./zipObject"),x=t("./generate"),I=t("./nodejsUtils"),_=t("./nodejs/NodejsStreamInputAdapter"),S=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 c={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,ue){return!ue.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=i.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.");i.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=c},{"./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(t,a,u){a.exports=t("stream")},{stream:void 0}],17:[function(t,a,u){var l=t("./DataReader");function f(i){l.call(this,i);for(var h=0;h<this.data.length;h++)i[h]=255&i[h]}t("../utils").inherits(f,l),f.prototype.byteAt=function(i){return this.data[this.zero+i]},f.prototype.lastIndexOfSignature=function(i){for(var h=i.charCodeAt(0),A=i.charCodeAt(1),T=i.charCodeAt(2),R=i.charCodeAt(3),O=this.length-4;0<=O;--O)if(this.data[O]===h&&this.data[O+1]===A&&this.data[O+2]===T&&this.data[O+3]===R)return O-this.zero;return-1},f.prototype.readAndCheckSignature=function(i){var h=i.charCodeAt(0),A=i.charCodeAt(1),T=i.charCodeAt(2),R=i.charCodeAt(3),O=this.readData(4);return h===O[0]&&A===O[1]&&T===O[2]&&R===O[3]},f.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},a.exports=f},{"../utils":32,"./DataReader":18}],18:[function(t,a,u){var l=t("../utils");function f(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}f.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var h,A=0;for(this.checkOffset(i),h=this.index+i-1;h>=this.index;h--)A=(A<<8)+this.byteAt(h);return this.index+=i,A},readString:function(i){return l.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=f},{"../utils":32}],19:[function(t,a,u){var l=t("./Uint8ArrayReader");function f(i){l.call(this,i)}t("../utils").inherits(f,l),f.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},a.exports=f},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,a,u){var l=t("./DataReader");function f(i){l.call(this,i)}t("../utils").inherits(f,l),f.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},f.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},f.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},f.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},a.exports=f},{"../utils":32,"./DataReader":18}],21:[function(t,a,u){var l=t("./ArrayReader");function f(i){l.call(this,i)}t("../utils").inherits(f,l),f.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},a.exports=f},{"../utils":32,"./ArrayReader":17}],22:[function(t,a,u){var l=t("../utils"),f=t("../support"),i=t("./ArrayReader"),h=t("./StringReader"),A=t("./NodeBufferReader"),T=t("./Uint8ArrayReader");a.exports=function(R){var O=l.getTypeOf(R);return l.checkSupport(O),O!=="string"||f.uint8array?O==="nodebuffer"?new A(R):f.uint8array?new T(l.transformTo("uint8array",R)):new i(l.transformTo("array",R)):new h(R)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,a,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,a,u){var l=t("./GenericWorker"),f=t("../utils");function i(h){l.call(this,"ConvertWorker to "+h),this.destType=h}f.inherits(i,l),i.prototype.processChunk=function(h){this.push({data:f.transformTo(this.destType,h.data),meta:h.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(t,a,u){var l=t("./GenericWorker"),f=t("../crc32");function i(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(i,l),i.prototype.processChunk=function(h){this.streamInfo.crc32=f(h.data,this.streamInfo.crc32||0),this.push(h)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,a,u){var l=t("../utils"),f=t("./GenericWorker");function i(h){f.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}l.inherits(i,f),i.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=i},{"../utils":32,"./GenericWorker":28}],27:[function(t,a,u){var l=t("../utils"),f=t("./GenericWorker");function i(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(i,f),i.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.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=i},{"../utils":32,"./GenericWorker":28}],28:[function(t,a,u){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,i){return this._listeners[f].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(f,i){if(this._listeners[f])for(var h=0;h<this._listeners[f].length;h++)this._listeners[f][h].call(this,i)},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 i=this;return f.on("data",function(h){i.processChunk(h)}),f.on("end",function(){i.end()}),f.on("error",function(h){i.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,i){return this.extraStreamInfo[f]=i,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(t,a,u){var l=t("../utils"),f=t("./ConvertWorker"),i=t("./GenericWorker"),h=t("../base64"),A=t("../support"),T=t("../external"),R=null;if(A.nodestream)try{R=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function O(I,_){return new T.Promise(function(S,o){var y=[],m=I._internalType,c=I._outputType,E=I._mimeType;I.on("data",function(P,F){y.push(P),_&&_(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)}}(c,function(F,W){var N,X=0,ue=null,k=0;for(N=0;N<W.length;N++)k+=W[N].length;switch(F){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ue=new Uint8Array(k),N=0;N<W.length;N++)ue.set(W[N],X),X+=W[N].length;return ue;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+F+"'")}}(m,y),E);S(P)}catch(F){o(F)}y=[]}).resume()})}function x(I,_,S){var o=_;switch(_){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=_,this._mimeType=S,l.checkSupport(o),this._worker=I.pipe(new f(o)),I.lock()}catch(y){this._worker=new i("error"),this._worker.error(y)}}x.prototype={accumulate:function(I){return O(this,I)},on:function(I,_){var S=this;return I==="data"?this._worker.on(I,function(o){_.call(S,o.data,o.meta)}):this._worker.on(I,function(){l.delay(_,arguments,S)}),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 R(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(t,a,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",u.nodebuffer=typeof Buffer!="undefined",u.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")u.blob=!1;else{var l=new ArrayBuffer(0);try{u.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),u.blob=f.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!t("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(t,a,u){for(var l=t("./utils"),f=t("./support"),i=t("./nodejsUtils"),h=t("./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 R(){h.call(this,"utf-8 decode"),this.leftOver=null}function O(){h.call(this,"utf-8 encode")}u.utf8encode=function(x){return f.nodebuffer?i.newBufferFrom(x,"utf-8"):function(I){var _,S,o,y,m,c=I.length,E=0;for(y=0;y<c;y++)(64512&(S=I.charCodeAt(y)))==55296&&y+1<c&&(64512&(o=I.charCodeAt(y+1)))==56320&&(S=65536+(S-55296<<10)+(o-56320),y++),E+=S<128?1:S<2048?2:S<65536?3:4;for(_=f.uint8array?new Uint8Array(E):new Array(E),y=m=0;m<E;y++)(64512&(S=I.charCodeAt(y)))==55296&&y+1<c&&(64512&(o=I.charCodeAt(y+1)))==56320&&(S=65536+(S-55296<<10)+(o-56320),y++),S<128?_[m++]=S:(S<2048?_[m++]=192|S>>>6:(S<65536?_[m++]=224|S>>>12:(_[m++]=240|S>>>18,_[m++]=128|S>>>12&63),_[m++]=128|S>>>6&63),_[m++]=128|63&S);return _}(x)},u.utf8decode=function(x){return f.nodebuffer?l.transformTo("nodebuffer",x).toString("utf-8"):function(I){var _,S,o,y,m=I.length,c=new Array(2*m);for(_=S=0;_<m;)if((o=I[_++])<128)c[S++]=o;else if(4<(y=A[o]))c[S++]=65533,_+=y-1;else{for(o&=y===2?31:y===3?15:7;1<y&&_<m;)o=o<<6|63&I[_++],y--;1<y?c[S++]=65533:o<65536?c[S++]=o:(o-=65536,c[S++]=55296|o>>10&1023,c[S++]=56320|1023&o)}return c.length!==S&&(c.subarray?c=c.subarray(0,S):c.length=S),l.applyFromCharCode(c)}(x=l.transformTo(f.uint8array?"uint8array":"array",x))},l.inherits(R,h),R.prototype.processChunk=function(x){var I=l.transformTo(f.uint8array?"uint8array":"array",x.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var _=I;(I=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),I.set(_,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var S=function(y,m){var c;for((m=m||y.length)>y.length&&(m=y.length),c=m-1;0<=c&&(192&y[c])==128;)c--;return c<0||c===0?m:c+A[y[c]]>m?c:m}(I),o=I;S!==I.length&&(f.uint8array?(o=I.subarray(0,S),this.leftOver=I.subarray(S,I.length)):(o=I.slice(0,S),this.leftOver=I.slice(S,I.length))),this.push({data:u.utf8decode(o),meta:x.meta})},R.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=R,l.inherits(O,h),O.prototype.processChunk=function(x){this.push({data:u.utf8encode(x.data),meta:x.meta})},u.Utf8EncodeWorker=O},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,a,u){var l=t("./support"),f=t("./base64"),i=t("./nodejsUtils"),h=t("./external");function A(_){return _}function T(_,S){for(var o=0;o<_.length;++o)S[o]=255&_.charCodeAt(o);return S}t("setimmediate"),u.newBlob=function(_,S){u.checkSupport("blob");try{return new Blob([_],{type:S})}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(_),o.getBlob(S)}catch{throw new Error("Bug : can't construct the Blob.")}}};var R={stringifyByChunk:function(_,S,o){var y=[],m=0,c=_.length;if(c<=o)return String.fromCharCode.apply(null,_);for(;m<c;)S==="array"||S==="nodebuffer"?y.push(String.fromCharCode.apply(null,_.slice(m,Math.min(m+o,c)))):y.push(String.fromCharCode.apply(null,_.subarray(m,Math.min(m+o,c)))),m+=o;return y.join("")},stringifyByChar:function(_){for(var S="",o=0;o<_.length;o++)S+=String.fromCharCode(_[o]);return S},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,i.allocBuffer(1)).length===1}catch{return!1}}()}};function O(_){var S=65536,o=u.getTypeOf(_),y=!0;if(o==="uint8array"?y=R.applyCanBeUsed.uint8array:o==="nodebuffer"&&(y=R.applyCanBeUsed.nodebuffer),y)for(;1<S;)try{return R.stringifyByChunk(_,o,S)}catch{S=Math.floor(S/2)}return R.stringifyByChar(_)}function x(_,S){for(var o=0;o<_.length;o++)S[o]=_[o];return S}u.applyFromCharCode=O;var I={};I.string={string:A,array:function(_){return T(_,new Array(_.length))},arraybuffer:function(_){return I.string.uint8array(_).buffer},uint8array:function(_){return T(_,new Uint8Array(_.length))},nodebuffer:function(_){return T(_,i.allocBuffer(_.length))}},I.array={string:O,array:A,arraybuffer:function(_){return new Uint8Array(_).buffer},uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return i.newBufferFrom(_)}},I.arraybuffer={string:function(_){return O(new Uint8Array(_))},array:function(_){return x(new Uint8Array(_),new Array(_.byteLength))},arraybuffer:A,uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return i.newBufferFrom(new Uint8Array(_))}},I.uint8array={string:O,array:function(_){return x(_,new Array(_.length))},arraybuffer:function(_){return _.buffer},uint8array:A,nodebuffer:function(_){return i.newBufferFrom(_)}},I.nodebuffer={string:O,array:function(_){return x(_,new Array(_.length))},arraybuffer:function(_){return I.nodebuffer.uint8array(_).buffer},uint8array:function(_){return x(_,new Uint8Array(_.length))},nodebuffer:A},u.transformTo=function(_,S){if(S=S||"",!_)return S;u.checkSupport(_);var o=u.getTypeOf(S);return I[o][_](S)},u.resolve=function(_){for(var S=_.split("/"),o=[],y=0;y<S.length;y++){var m=S[y];m==="."||m===""&&y!==0&&y!==S.length-1||(m===".."?o.pop():o.push(m))}return o.join("/")},u.getTypeOf=function(_){return typeof _=="string"?"string":Object.prototype.toString.call(_)==="[object Array]"?"array":l.nodebuffer&&i.isBuffer(_)?"nodebuffer":l.uint8array&&_ instanceof Uint8Array?"uint8array":l.arraybuffer&&_ instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(_){if(!l[_.toLowerCase()])throw new Error(_+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(_){var S,o,y="";for(o=0;o<(_||"").length;o++)y+="\\x"+((S=_.charCodeAt(o))<16?"0":"")+S.toString(16).toUpperCase();return y},u.delay=function(_,S,o){setImmediate(function(){_.apply(o||null,S||[])})},u.inherits=function(_,S){function o(){}o.prototype=S.prototype,_.prototype=new o},u.extend=function(){var _,S,o={};for(_=0;_<arguments.length;_++)for(S in arguments[_])Object.prototype.hasOwnProperty.call(arguments[_],S)&&o[S]===void 0&&(o[S]=arguments[_][S]);return o},u.prepareContent=function(_,S,o,y,m){return h.Promise.resolve(S).then(function(c){return l.blob&&(c instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(c))!==-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(c)}):c}).then(function(c){var E=u.getTypeOf(c);return E?(E==="arraybuffer"?c=u.transformTo("uint8array",c):E==="string"&&(m?c=f.decode(c):o&&y!==!0&&(c=function(P){return T(P,l.uint8array?new Uint8Array(P.length):new Array(P.length))}(c))),c):h.Promise.reject(new Error("Can't read the data of '"+_+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,a,u){var l=t("./reader/readerFor"),f=t("./utils"),i=t("./signature"),h=t("./zipEntry"),A=t("./support");function T(R){this.files=[],this.loadOptions=R}T.prototype={checkSignature:function(R){if(!this.reader.readAndCheckSignature(R)){this.reader.index-=4;var O=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+f.pretty(O)+", expected "+f.pretty(R)+")")}},isSignature:function(R,O){var x=this.reader.index;this.reader.setIndex(R);var I=this.reader.readString(4)===O;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 R=this.reader.readData(this.zipCommentLength),O=A.uint8array?"uint8array":"array",x=f.transformTo(O,R);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 R,O,x,I=this.zip64EndOfCentralSize-44;0<I;)R=this.reader.readInt(2),O=this.reader.readInt(4),x=this.reader.readData(O),this.zip64ExtensibleData[R]={id:R,length:O,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 R,O;for(R=0;R<this.files.length;R++)O=this.files[R],this.reader.setIndex(O.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),O.readLocalPart(this.reader),O.handleUTF8(),O.processAttributes()},readCentralDir:function(){var R;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(R=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(R);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 R=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(R<0)throw this.isSignature(0,i.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(R);var O=R;if(this.checkSignature(i.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,(R=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(R),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var x=this.centralDirOffset+this.centralDirSize;this.zip64&&(x+=20,x+=12+this.zip64EndOfCentralSize);var I=O-x;if(0<I)this.isSignature(O,i.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(R){this.reader=l(R)},load:function(R){this.prepareReader(R),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=T},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,a,u){var l=t("./reader/readerFor"),f=t("./utils"),i=t("./compressedObject"),h=t("./crc32"),A=t("./utf8"),T=t("./compressions"),R=t("./support");function O(x,I){this.options=x,this.loadOptions=I}O.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(x){var I,_;if(x.skip(22),this.fileNameLength=x.readInt(2),_=x.readInt(2),this.fileName=x.readData(this.fileNameLength),x.skip(_),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(S){for(var o in T)if(Object.prototype.hasOwnProperty.call(T,o)&&T[o].magic===S)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 i(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,_,S,o=x.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});x.index+4<o;)I=x.readInt(2),_=x.readInt(2),S=x.readData(_),this.extraFields[I]={id:I,length:_,value:S};x.setIndex(o)},handleUTF8:function(){var x=R.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 _=f.transformTo(x,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(_)}var S=this.findExtraFieldUnicodeComment();if(S!==null)this.fileCommentStr=S;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=O},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,a,u){function l(I,_,S){this.name=I,this.dir=S.dir,this.date=S.date,this.comment=S.comment,this.unixPermissions=S.unixPermissions,this.dosPermissions=S.dosPermissions,this._data=_,this._dataBinary=S.binary,this.options={compression:S.compression,compressionOptions:S.compressionOptions}}var f=t("./stream/StreamHelper"),i=t("./stream/DataWorker"),h=t("./utf8"),A=t("./compressedObject"),T=t("./stream/GenericWorker");l.prototype={internalStream:function(I){var _=null,S="string";try{if(!I)throw new Error("No output type specified.");var o=(S=I.toLowerCase())==="string"||S==="text";S!=="binarystring"&&S!=="text"||(S="string"),_=this._decompressWorker();var y=!this._dataBinary;y&&!o&&(_=_.pipe(new h.Utf8EncodeWorker)),!y&&o&&(_=_.pipe(new h.Utf8DecodeWorker))}catch(m){(_=new T("error")).error(m)}return new f(_,S,"")},async:function(I,_){return this.internalStream(I).accumulate(_)},nodeStream:function(I,_){return this.internalStream(I||"nodebuffer").toNodejsStream(_)},_compressWorker:function(I,_){if(this._data instanceof A&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var S=this._decompressWorker();return this._dataBinary||(S=S.pipe(new h.Utf8EncodeWorker)),A.createWorkerFrom(S,I,_)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof T?this._data:new i(this._data)}};for(var R=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],O=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},x=0;x<R.length;x++)l.prototype[R[x]]=O;a.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,a,u){(function(l){var f,i,h=l.MutationObserver||l.WebKitMutationObserver;if(h){var A=0,T=new h(I),R=l.document.createTextNode("");T.observe(R,{characterData:!0}),f=function(){R.data=A=++A%2}}else if(l.setImmediate||l.MessageChannel===void 0)f="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var _=l.document.createElement("script");_.onreadystatechange=function(){I(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},l.document.documentElement.appendChild(_)}:function(){setTimeout(I,0)};else{var O=new l.MessageChannel;O.port1.onmessage=I,f=function(){O.port2.postMessage(0)}}var x=[];function I(){var _,S;i=!0;for(var o=x.length;o;){for(S=x,x=[],_=-1;++_<o;)S[_]();o=x.length}i=!1}a.exports=function(_){x.push(_)!==1||i||f()}}).call(this,typeof Ie!="undefined"?Ie:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,a,u){var l=t("immediate");function f(){}var i={},h=["REJECTED"],A=["FULFILLED"],T=["PENDING"];function R(o){if(typeof o!="function")throw new TypeError("resolver must be a function");this.state=T,this.queue=[],this.outcome=void 0,o!==f&&_(this,o)}function O(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 c;try{c=y(m)}catch(E){return i.reject(o,E)}c===o?i.reject(o,new TypeError("Cannot resolve promise with itself")):i.resolve(o,c)})}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 _(o,y){var m=!1;function c(F){m||(m=!0,i.reject(o,F))}function E(F){m||(m=!0,i.resolve(o,F))}var P=S(function(){y(E,c)});P.status==="error"&&c(P.value)}function S(o,y){var m={};try{m.value=o(y),m.status="success"}catch(c){m.status="error",m.value=c}return m}(a.exports=R).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})})},R.prototype.catch=function(o){return this.then(null,o)},R.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 O(m,o,y)),m},O.prototype.callFulfilled=function(o){i.resolve(this.promise,o)},O.prototype.otherCallFulfilled=function(o){x(this.promise,this.onFulfilled,o)},O.prototype.callRejected=function(o){i.reject(this.promise,o)},O.prototype.otherCallRejected=function(o){x(this.promise,this.onRejected,o)},i.resolve=function(o,y){var m=S(I,y);if(m.status==="error")return i.reject(o,m.value);var c=m.value;if(c)_(o,c);else{o.state=A,o.outcome=y;for(var E=-1,P=o.queue.length;++E<P;)o.queue[E].callFulfilled(y)}return o},i.reject=function(o,y){o.state=h,o.outcome=y;for(var m=-1,c=o.queue.length;++m<c;)o.queue[m].callRejected(y);return o},R.resolve=function(o){return o instanceof this?o:i.resolve(new this(f),o)},R.reject=function(o){var y=new this(f);return i.reject(y,o)},R.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,c=!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,ue){y.resolve(X).then(function(k){E[ue]=k,++P!==m||c||(c=!0,i.resolve(W,E))},function(k){c||(c=!0,i.reject(W,k))})}},R.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,c=!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){c||(c=!0,i.resolve(P,W))},function(W){c||(c=!0,i.reject(P,W))});var F;return P}},{immediate:36}],38:[function(t,a,u){var l={};(0,t("./lib/utils/common").assign)(l,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),a.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,a,u){var l=t("./zlib/deflate"),f=t("./utils/common"),i=t("./utils/strings"),h=t("./zlib/messages"),A=t("./zlib/zstream"),T=Object.prototype.toString,R=0,O=-1,x=0,I=8;function _(o){if(!(this instanceof _))return new _(o);this.options=f.assign({level:O,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!==R)throw new Error(h[m]);if(y.header&&l.deflateSetHeader(this.strm,y.header),y.dictionary){var c;if(c=typeof y.dictionary=="string"?i.string2buf(y.dictionary):T.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(m=l.deflateSetDictionary(this.strm,c))!==R)throw new Error(h[m]);this._dict_set=!0}}function S(o,y){var m=new _(y);if(m.push(o,!0),m.err)throw m.msg||h[m.err];return m.result}_.prototype.push=function(o,y){var m,c,E=this.strm,P=this.options.chunkSize;if(this.ended)return!1;c=y===~~y?y:y===!0?4:0,typeof o=="string"?E.input=i.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,c))!==1&&m!==R)return this.onEnd(m),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||c!==4&&c!==2)||(this.options.to==="string"?this.onData(i.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 c===4?(m=l.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===R):c!==2||(this.onEnd(R),!(E.avail_out=0))},_.prototype.onData=function(o){this.chunks.push(o)},_.prototype.onEnd=function(o){o===R&&(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},u.Deflate=_,u.deflate=S,u.deflateRaw=function(o,y){return(y=y||{}).raw=!0,S(o,y)},u.gzip=function(o,y){return(y=y||{}).gzip=!0,S(o,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,a,u){var l=t("./zlib/inflate"),f=t("./utils/common"),i=t("./utils/strings"),h=t("./zlib/constants"),A=t("./zlib/messages"),T=t("./zlib/zstream"),R=t("./zlib/gzheader"),O=Object.prototype.toString;function x(_){if(!(this instanceof x))return new x(_);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},_||{});var S=this.options;S.raw&&0<=S.windowBits&&S.windowBits<16&&(S.windowBits=-S.windowBits,S.windowBits===0&&(S.windowBits=-15)),!(0<=S.windowBits&&S.windowBits<16)||_&&_.windowBits||(S.windowBits+=32),15<S.windowBits&&S.windowBits<48&&(15&S.windowBits)==0&&(S.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,S.windowBits);if(o!==h.Z_OK)throw new Error(A[o]);this.header=new R,l.inflateGetHeader(this.strm,this.header)}function I(_,S){var o=new x(S);if(o.push(_,!0),o.err)throw o.msg||A[o.err];return o.result}x.prototype.push=function(_,S){var o,y,m,c,E,P,F=this.strm,W=this.options.chunkSize,N=this.options.dictionary,X=!1;if(this.ended)return!1;y=S===~~S?S:S===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof _=="string"?F.input=i.binstring2buf(_):O.call(_)==="[object ArrayBuffer]"?F.input=new Uint8Array(_):F.input=_,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"?i.string2buf(N):O.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=i.utf8border(F.output,F.next_out),c=F.next_out-m,E=i.buf2string(F.output,m),F.next_out=c,F.avail_out=W-c,c&&f.arraySet(F.output,F.output,m,c,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(_){this.chunks.push(_)},x.prototype.onEnd=function(_){_===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},u.Inflate=x,u.inflate=I,u.inflateRaw=function(_,S){return(S=S||{}).raw=!0,I(_,S)},u.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(t,a,u){var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";u.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 R in T)T.hasOwnProperty(R)&&(h[R]=T[R])}}return h},u.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,R,O){if(A.subarray&&h.subarray)h.set(A.subarray(T,T+R),O);else for(var x=0;x<R;x++)h[O+x]=A[T+x]},flattenChunks:function(h){var A,T,R,O,x,I;for(A=R=0,T=h.length;A<T;A++)R+=h[A].length;for(I=new Uint8Array(R),A=O=0,T=h.length;A<T;A++)x=h[A],I.set(x,O),O+=x.length;return I}},i={arraySet:function(h,A,T,R,O){for(var x=0;x<R;x++)h[O+x]=A[T+x]},flattenChunks:function(h){return[].concat.apply([],h)}};u.setTyped=function(h){h?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,f)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,i))},u.setTyped(l)},{}],42:[function(t,a,u){var l=t("./common"),f=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!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(R,O){if(O<65537&&(R.subarray&&i||!R.subarray&&f))return String.fromCharCode.apply(null,l.shrinkBuf(R,O));for(var x="",I=0;I<O;I++)x+=String.fromCharCode(R[I]);return x}h[254]=h[254]=1,u.string2buf=function(R){var O,x,I,_,S,o=R.length,y=0;for(_=0;_<o;_++)(64512&(x=R.charCodeAt(_)))==55296&&_+1<o&&(64512&(I=R.charCodeAt(_+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),_++),y+=x<128?1:x<2048?2:x<65536?3:4;for(O=new l.Buf8(y),_=S=0;S<y;_++)(64512&(x=R.charCodeAt(_)))==55296&&_+1<o&&(64512&(I=R.charCodeAt(_+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),_++),x<128?O[S++]=x:(x<2048?O[S++]=192|x>>>6:(x<65536?O[S++]=224|x>>>12:(O[S++]=240|x>>>18,O[S++]=128|x>>>12&63),O[S++]=128|x>>>6&63),O[S++]=128|63&x);return O},u.buf2binstring=function(R){return T(R,R.length)},u.binstring2buf=function(R){for(var O=new l.Buf8(R.length),x=0,I=O.length;x<I;x++)O[x]=R.charCodeAt(x);return O},u.buf2string=function(R,O){var x,I,_,S,o=O||R.length,y=new Array(2*o);for(x=I=0;x<o;)if((_=R[x++])<128)y[I++]=_;else if(4<(S=h[_]))y[I++]=65533,x+=S-1;else{for(_&=S===2?31:S===3?15:7;1<S&&x<o;)_=_<<6|63&R[x++],S--;1<S?y[I++]=65533:_<65536?y[I++]=_:(_-=65536,y[I++]=55296|_>>10&1023,y[I++]=56320|1023&_)}return T(y,I)},u.utf8border=function(R,O){var x;for((O=O||R.length)>R.length&&(O=R.length),x=O-1;0<=x&&(192&R[x])==128;)x--;return x<0||x===0?O:x+h[R[x]]>O?x:O}},{"./common":41}],43:[function(t,a,u){a.exports=function(l,f,i,h){for(var A=65535&l|0,T=l>>>16&65535|0,R=0;i!==0;){for(i-=R=2e3<i?2e3:i;T=T+(A=A+f[h++]|0)|0,--R;);A%=65521,T%=65521}return A|T<<16|0}},{}],44:[function(t,a,u){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(t,a,u){var l=function(){for(var f,i=[],h=0;h<256;h++){f=h;for(var A=0;A<8;A++)f=1&f?3988292384^f>>>1:f>>>1;i[h]=f}return i}();a.exports=function(f,i,h,A){var T=l,R=A+h;f^=-1;for(var O=A;O<R;O++)f=f>>>8^T[255&(f^i[O])];return-1^f}},{}],46:[function(t,a,u){var l,f=t("../utils/common"),i=t("./trees"),h=t("./adler32"),A=t("./crc32"),T=t("./messages"),R=0,O=4,x=0,I=-2,_=-1,S=4,o=2,y=8,m=9,c=286,E=30,P=19,F=2*c+1,W=15,N=3,X=258,ue=X+N+1,k=42,M=113,g=1,q=2,ee=3,z=4;function se(d,Y){return d.msg=T[Y],Y}function Q(d){return(d<<1)-(4<d?9:0)}function le(d){for(var Y=d.length;0<=--Y;)d[Y]=0}function V(d){var Y=d.state,b=Y.pending;b>d.avail_out&&(b=d.avail_out),b!==0&&(f.arraySet(d.output,Y.pending_buf,Y.pending_out,b,d.next_out),d.next_out+=b,Y.pending_out+=b,d.total_out+=b,d.avail_out-=b,Y.pending-=b,Y.pending===0&&(Y.pending_out=0))}function D(d,Y){i._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 b,n,s=d.max_chain_length,p=d.strstart,B=d.prev_length,G=d.nice_match,H=d.strstart>d.w_size-ue?d.strstart-(d.w_size-ue):0,ie=d.window,oe=d.w_mask,ae=d.prev,he=d.strstart+X,de=ie[p+B-1],pe=ie[p+B];d.prev_length>=d.good_match&&(s>>=2),G>d.lookahead&&(G=d.lookahead);do if(ie[(b=Y)+B]===pe&&ie[b+B-1]===de&&ie[b]===ie[p]&&ie[++b]===ie[p+1]){p+=2,b++;do;while(ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&p<he);if(n=X-(he-p),p=he-X,B<n){if(d.match_start=Y,G<=(B=n))break;de=ie[p+B-1],pe=ie[p+B]}}while((Y=ae[Y&oe])>H&&--s!=0);return B<=d.lookahead?B:d.lookahead}function K(d){var Y,b,n,s,p,B,G,H,ie,oe,ae=d.w_size;do{if(s=d.window_size-d.lookahead-d.strstart,d.strstart>=ae+(ae-ue)){for(f.arraySet(d.window,d.window,ae,ae,0),d.match_start-=ae,d.strstart-=ae,d.block_start-=ae,Y=b=d.hash_size;n=d.head[--Y],d.head[Y]=ae<=n?n-ae:0,--b;);for(Y=b=ae;n=d.prev[--Y],d.prev[Y]=ae<=n?n-ae:0,--b;);s+=ae}if(d.strm.avail_in===0)break;if(B=d.strm,G=d.window,H=d.strstart+d.lookahead,ie=s,oe=void 0,oe=B.avail_in,ie<oe&&(oe=ie),b=oe===0?0:(B.avail_in-=oe,f.arraySet(G,B.input,B.next_in,oe,H),B.state.wrap===1?B.adler=h(B.adler,G,oe,H):B.state.wrap===2&&(B.adler=A(B.adler,G,oe,H)),B.next_in+=oe,B.total_in+=oe,oe),d.lookahead+=b,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<ue&&d.strm.avail_in!==0)}function v(d,Y){for(var b,n;;){if(d.lookahead<ue){if(K(d),d.lookahead<ue&&Y===R)return g;if(d.lookahead===0)break}if(b=0,d.lookahead>=N&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,b=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),b!==0&&d.strstart-b<=d.w_size-ue&&(d.match_length=te(d,b)),d.match_length>=N)if(n=i._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,b=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 n=i._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(n&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=d.strstart<N-1?d.strstart:N-1,Y===O?(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 b,n,s;;){if(d.lookahead<ue){if(K(d),d.lookahead<ue&&Y===R)return g;if(d.lookahead===0)break}if(b=0,d.lookahead>=N&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+N-1])&d.hash_mask,b=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,b!==0&&d.prev_length<d.max_lazy_match&&d.strstart-b<=d.w_size-ue&&(d.match_length=te(d,b),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,n=i._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,b=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++,n&&(D(d,!1),d.strm.avail_out===0))return g}else if(d.match_available){if((n=i._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&&(n=i._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<N-1?d.strstart:N-1,Y===O?(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,b,n,s){this.good_length=d,this.max_lazy=Y,this.nice_length=b,this.max_chain=n,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)),le(this.dyn_ltree),le(this.dyn_dtree),le(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*c+1),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*c+1),le(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?k:M,d.adler=Y.wrap===2?0:1,Y.last_flush=R,i._tr_init(Y),x):se(d,I)}function L(d){var Y=C(d);return Y===x&&function(b){b.window_size=2*b.w_size,le(b.head),b.max_lazy_match=l[b.level].max_lazy,b.good_match=l[b.level].good_length,b.nice_match=l[b.level].nice_length,b.max_chain_length=l[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=N-1,b.match_available=0,b.ins_h=0}(d.state),Y}function J(d,Y,b,n,s,p){if(!d)return I;var B=1;if(Y===_&&(Y=6),n<0?(B=0,n=-n):15<n&&(B=2,n-=16),s<1||m<s||b!==y||n<8||15<n||Y<0||9<Y||p<0||S<p)return se(d,I);n===8&&(n=9);var G=new U;return(d.state=G).strm=d,G.wrap=B,G.gzhead=null,G.w_bits=n,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=b,L(d)}l=[new j(0,0,0,0,function(d,Y){var b=65535;for(b>d.pending_buf_size-5&&(b=d.pending_buf_size-5);;){if(d.lookahead<=1){if(K(d),d.lookahead===0&&Y===R)return g;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var n=d.block_start+b;if((d.strstart===0||d.strstart>=n)&&(d.lookahead=d.strstart-n,d.strstart=n,D(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-ue&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=0,Y===O?(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)],u.deflateInit=function(d,Y){return J(d,Y,y,15,8,0)},u.deflateInit2=J,u.deflateReset=L,u.deflateResetKeep=C,u.deflateSetHeader=function(d,Y){return d&&d.state?d.state.wrap!==2?I:(d.state.gzhead=Y,x):I},u.deflate=function(d,Y){var b,n,s,p;if(!d||!d.state||5<Y||Y<0)return d?se(d,I):I;if(n=d.state,!d.output||!d.input&&d.avail_in!==0||n.status===666&&Y!==O)return se(d,d.avail_out===0?-5:I);if(n.strm=d,b=n.last_flush,n.last_flush=Y,n.status===k)if(n.wrap===2)d.adler=0,$(n,31),$(n,139),$(n,8),n.gzhead?($(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),$(n,255&n.gzhead.time),$(n,n.gzhead.time>>8&255),$(n,n.gzhead.time>>16&255),$(n,n.gzhead.time>>24&255),$(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),$(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&($(n,255&n.gzhead.extra.length),$(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(d.adler=A(d.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):($(n,0),$(n,0),$(n,0),$(n,0),$(n,0),$(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),$(n,3),n.status=M);else{var B=y+(n.w_bits-8<<4)<<8;B|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(B|=32),B+=31-B%31,n.status=M,Z(n,B),n.strstart!==0&&(Z(n,d.adler>>>16),Z(n,65535&d.adler)),d.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),V(d),s=n.pending,n.pending!==n.pending_buf_size));)$(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),V(d),s=n.pending,n.pending===n.pending_buf_size)){p=1;break}p=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,$(n,p)}while(p!==0);n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),p===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),V(d),s=n.pending,n.pending===n.pending_buf_size)){p=1;break}p=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,$(n,p)}while(p!==0);n.gzhead.hcrc&&n.pending>s&&(d.adler=A(d.adler,n.pending_buf,n.pending-s,s)),p===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&V(d),n.pending+2<=n.pending_buf_size&&($(n,255&d.adler),$(n,d.adler>>8&255),d.adler=0,n.status=M)):n.status=M),n.pending!==0){if(V(d),d.avail_out===0)return n.last_flush=-1,x}else if(d.avail_in===0&&Q(Y)<=Q(b)&&Y!==O)return se(d,-5);if(n.status===666&&d.avail_in!==0)return se(d,-5);if(d.avail_in!==0||n.lookahead!==0||Y!==R&&n.status!==666){var G=n.strategy===2?function(H,ie){for(var oe;;){if(H.lookahead===0&&(K(H),H.lookahead===0)){if(ie===R)return g;break}if(H.match_length=0,oe=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===O?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(n,Y):n.strategy===3?function(H,ie){for(var oe,ae,he,de,pe=H.window;;){if(H.lookahead<=X){if(K(H),H.lookahead<=X&&ie===R)return g;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=N&&0<H.strstart&&(ae=pe[he=H.strstart-1])===pe[++he]&&ae===pe[++he]&&ae===pe[++he]){de=H.strstart+X;do;while(ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&he<de);H.match_length=X-(de-he),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=N?(oe=i._tr_tally(H,1,H.match_length-N),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===O?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(n,Y):l[n.level].func(n,Y);if(G!==ee&&G!==z||(n.status=666),G===g||G===ee)return d.avail_out===0&&(n.last_flush=-1),x;if(G===q&&(Y===1?i._tr_align(n):Y!==5&&(i._tr_stored_block(n,0,0,!1),Y===3&&(le(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),V(d),d.avail_out===0))return n.last_flush=-1,x}return Y!==O?x:n.wrap<=0?1:(n.wrap===2?($(n,255&d.adler),$(n,d.adler>>8&255),$(n,d.adler>>16&255),$(n,d.adler>>24&255),$(n,255&d.total_in),$(n,d.total_in>>8&255),$(n,d.total_in>>16&255),$(n,d.total_in>>24&255)):(Z(n,d.adler>>>16),Z(n,65535&d.adler)),V(d),0<n.wrap&&(n.wrap=-n.wrap),n.pending!==0?x:1)},u.deflateEnd=function(d){var Y;return d&&d.state?(Y=d.state.status)!==k&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==M&&Y!==666?se(d,I):(d.state=null,Y===M?se(d,-3):x):I},u.deflateSetDictionary=function(d,Y){var b,n,s,p,B,G,H,ie,oe=Y.length;if(!d||!d.state||(p=(b=d.state).wrap)===2||p===1&&b.status!==k||b.lookahead)return I;for(p===1&&(d.adler=h(d.adler,Y,oe,0)),b.wrap=0,oe>=b.w_size&&(p===0&&(le(b.head),b.strstart=0,b.block_start=0,b.insert=0),ie=new f.Buf8(b.w_size),f.arraySet(ie,Y,oe-b.w_size,b.w_size,0),Y=ie,oe=b.w_size),B=d.avail_in,G=d.next_in,H=d.input,d.avail_in=oe,d.next_in=0,d.input=Y,K(b);b.lookahead>=N;){for(n=b.strstart,s=b.lookahead-(N-1);b.ins_h=(b.ins_h<<b.hash_shift^b.window[n+N-1])&b.hash_mask,b.prev[n&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=n,n++,--s;);b.strstart=n,b.lookahead=N-1,K(b)}return b.strstart+=b.lookahead,b.block_start=b.strstart,b.insert=b.lookahead,b.lookahead=0,b.match_length=b.prev_length=N-1,b.match_available=0,d.next_in=G,d.input=H,d.avail_in=B,b.wrap=p,x},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,a,u){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(t,a,u){a.exports=function(l,f){var i,h,A,T,R,O,x,I,_,S,o,y,m,c,E,P,F,W,N,X,ue,k,M,g,q;i=l.state,h=l.next_in,g=l.input,A=h+(l.avail_in-5),T=l.next_out,q=l.output,R=T-(f-l.avail_out),O=T+(l.avail_out-257),x=i.dmax,I=i.wsize,_=i.whave,S=i.wnext,o=i.window,y=i.hold,m=i.bits,c=i.lencode,E=i.distcode,P=(1<<i.lenbits)-1,F=(1<<i.distbits)-1;e:do{m<15&&(y+=g[h++]<<m,m+=8,y+=g[h++]<<m,m+=8),W=c[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=c[(65535&W)+(y&(1<<N)-1)];continue t}if(32&N){i.mode=12;break e}l.msg="invalid literal/length code",i.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",i.mode=30;break e}if(ue=65535&W,m<(N&=15)&&(y+=g[h++]<<m,(m+=8)<N&&(y+=g[h++]<<m,m+=8)),x<(ue+=y&(1<<N)-1)){l.msg="invalid distance too far back",i.mode=30;break e}if(y>>>=N,m-=N,(N=T-R)<ue){if(_<(N=ue-N)&&i.sane){l.msg="invalid distance too far back",i.mode=30;break e}if(M=o,(k=0)===S){if(k+=I-N,N<X){for(X-=N;q[T++]=o[k++],--N;);k=T-ue,M=q}}else if(S<N){if(k+=I+S-N,(N-=S)<X){for(X-=N;q[T++]=o[k++],--N;);if(k=0,S<X){for(X-=N=S;q[T++]=o[k++],--N;);k=T-ue,M=q}}}else if(k+=S-N,N<X){for(X-=N;q[T++]=o[k++],--N;);k=T-ue,M=q}for(;2<X;)q[T++]=M[k++],q[T++]=M[k++],q[T++]=M[k++],X-=3;X&&(q[T++]=M[k++],1<X&&(q[T++]=M[k++]))}else{for(k=T-ue;q[T++]=q[k++],q[T++]=q[k++],q[T++]=q[k++],2<(X-=3););X&&(q[T++]=q[k++],1<X&&(q[T++]=q[k++]))}break}}break}}while(h<A&&T<O);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<O?O-T+257:257-(T-O),i.hold=y,i.bits=m}},{}],49:[function(t,a,u){var l=t("../utils/common"),f=t("./adler32"),i=t("./crc32"),h=t("./inffast"),A=t("./inftrees"),T=1,R=2,O=0,x=-2,I=1,_=852,S=592;function o(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<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(k){var M;return k&&k.state?(M=k.state,k.total_in=k.total_out=M.total=0,k.msg="",M.wrap&&(k.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(_),M.distcode=M.distdyn=new l.Buf32(S),M.sane=1,M.back=-1,O):x}function c(k){var M;return k&&k.state?((M=k.state).wsize=0,M.whave=0,M.wnext=0,m(k)):x}function E(k,M){var g,q;return k&&k.state?(q=k.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,c(k))):x}function P(k,M){var g,q;return k?(q=new y,(k.state=q).window=null,(g=E(k,M))!==O&&(k.state=null),g):x}var F,W,N=!0;function X(k){if(N){var M;for(F=new l.Buf32(512),W=new l.Buf32(32),M=0;M<144;)k.lens[M++]=8;for(;M<256;)k.lens[M++]=9;for(;M<280;)k.lens[M++]=7;for(;M<288;)k.lens[M++]=8;for(A(T,k.lens,0,288,F,0,k.work,{bits:9}),M=0;M<32;)k.lens[M++]=5;A(R,k.lens,0,32,W,0,k.work,{bits:5}),N=!1}k.lencode=F,k.lenbits=9,k.distcode=W,k.distbits=5}function ue(k,M,g,q){var ee,z=k.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}u.inflateReset=c,u.inflateReset2=E,u.inflateResetKeep=m,u.inflateInit=function(k){return P(k,15)},u.inflateInit2=P,u.inflate=function(k,M){var g,q,ee,z,se,Q,le,V,D,$,Z,te,K,v,w,j,U,C,L,J,d,Y,b,n,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(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return x;(g=k.state).mode===12&&(g.mode=13),se=k.next_out,ee=k.output,le=k.avail_out,z=k.next_in,q=k.input,Q=k.avail_in,V=g.hold,D=g.bits,$=Q,Z=le,Y=O;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=i(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){k.msg="incorrect header check",g.mode=30;break}if((15&V)!=8){k.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){k.msg="invalid window size",g.mode=30;break}g.dmax=1<<d,k.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){k.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){k.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=i(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=i(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=i(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=i(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=i(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=i(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=i(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)){k.msg="header crc mismatch",g.mode=30;break}D=V=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),k.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}k.adler=g.check=o(V),D=V=0,g.mode=11;case 11:if(g.havedict===0)return k.next_out=se,k.avail_out=le,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,2;k.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:k.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)){k.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),le<te&&(te=le),te===0)break e;l.arraySet(ee,q,z,te,se),Q-=te,z+=te,le-=te,se+=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){k.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,b={bits:g.lenbits},Y=A(0,g.lens,0,19,g.lencode,0,g.work,b),g.lenbits=b.bits,Y){k.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(n=w+2;D<n;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V>>>=w,D-=w,g.have===0){k.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(n=w+3;D<n;){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(n=w+7;D<n;){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){k.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){k.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,b={bits:g.lenbits},Y=A(T,g.lens,0,g.nlen,g.lencode,0,g.work,b),g.lenbits=b.bits,Y){k.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,b={bits:g.distbits},Y=A(R,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,b),g.distbits=b.bits,Y){k.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<=le){k.next_out=se,k.avail_out=le,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,h(k,Z),se=k.next_out,ee=k.output,le=k.avail_out,z=k.next_in,q=k.input,Q=k.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){k.msg="invalid literal/length code",g.mode=30;break}g.extra=15&j,g.mode=22;case 22:if(g.extra){for(n=g.extra;D<n;){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){k.msg="invalid distance code",g.mode=30;break}g.offset=U,g.extra=15&j,g.mode=24;case 24:if(g.extra){for(n=g.extra;D<n;){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){k.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(le===0)break e;if(te=Z-le,g.offset>te){if((te=g.offset-te)>g.whave&&g.sane){k.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=se-g.offset,te=g.length;for(le<te&&(te=le),le-=te,g.length-=te;ee[se++]=v[K++],--te;);g.length===0&&(g.mode=21);break;case 26:if(le===0)break e;ee[se++]=g.length,le--,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-=le,k.total_out+=Z,g.total+=Z,Z&&(k.adler=g.check=g.flags?i(g.check,ee,Z,se-Z):f(g.check,ee,Z,se-Z)),Z=le,(g.flags?V:o(V))!==g.check){k.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)){k.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 k.next_out=se,k.avail_out=le,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,(g.wsize||Z!==k.avail_out&&g.mode<30&&(g.mode<27||M!==4))&&ue(k,k.output,k.next_out,Z-k.avail_out)?(g.mode=31,-4):($-=k.avail_in,Z-=k.avail_out,k.total_in+=$,k.total_out+=Z,g.total+=Z,g.wrap&&Z&&(k.adler=g.check=g.flags?i(g.check,ee,Z,k.next_out-Z):f(g.check,ee,Z,k.next_out-Z)),k.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===O&&(Y=-5),Y)},u.inflateEnd=function(k){if(!k||!k.state)return x;var M=k.state;return M.window&&(M.window=null),k.state=null,O},u.inflateGetHeader=function(k,M){var g;return k&&k.state?(2&(g=k.state).wrap)==0?x:((g.head=M).done=!1,O):x},u.inflateSetDictionary=function(k,M){var g,q=M.length;return k&&k.state?(g=k.state).wrap!==0&&g.mode!==11?x:g.mode===11&&f(1,M,q,0)!==g.check?-3:ue(k,M,q,q)?(g.mode=31,-4):(g.havedict=1,O):x},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,a,u){var l=t("../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],i=[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,R,O,x,I,_,S,o){var y,m,c,E,P,F,W,N,X,ue=o.bits,k=0,M=0,g=0,q=0,ee=0,z=0,se=0,Q=0,le=0,V=0,D=null,$=0,Z=new l.Buf16(16),te=new l.Buf16(16),K=null,v=0;for(k=0;k<=15;k++)Z[k]=0;for(M=0;M<x;M++)Z[R[O+M]]++;for(ee=ue,q=15;1<=q&&Z[q]===0;q--);if(q<ee&&(ee=q),q===0)return I[_++]=20971520,I[_++]=20971520,o.bits=1,0;for(g=1;g<q&&Z[g]===0;g++);for(ee<g&&(ee=g),k=Q=1;k<=15;k++)if(Q<<=1,(Q-=Z[k])<0)return-1;if(0<Q&&(T===0||q!==1))return-1;for(te[1]=0,k=1;k<15;k++)te[k+1]=te[k]+Z[k];for(M=0;M<x;M++)R[O+M]!==0&&(S[te[R[O+M]]++]=M);if(F=T===0?(D=K=S,19):T===1?(D=f,$-=257,K=i,v-=257,256):(D=h,K=A,-1),k=g,P=_,se=M=V=0,c=-1,E=(le=1<<(z=ee))-1,T===1&&852<le||T===2&&592<le)return 1;for(;;){for(W=k-se,X=S[M]<F?(N=0,S[M]):S[M]>F?(N=K[v+S[M]],D[$+S[M]]):(N=96,0),y=1<<k-se,g=m=1<<z;I[P+(V>>se)+(m-=y)]=W<<24|N<<16|X|0,m!==0;);for(y=1<<k-1;V&y;)y>>=1;if(y!==0?(V&=y-1,V+=y):V=0,M++,--Z[k]==0){if(k===q)break;k=R[O+S[M]]}if(ee<k&&(V&E)!==c){for(se===0&&(se=ee),P+=g,Q=1<<(z=k-se);z+se<q&&!((Q-=Z[z+se])<=0);)z++,Q<<=1;if(le+=1<<z,T===1&&852<le||T===2&&592<le)return 1;I[c=V&E]=ee<<24|z<<16|P-_|0}}return V!==0&&(I[P+V]=k-se<<24|64<<16|0),o.bits=ee,0}},{"../utils/common":41}],51:[function(t,a,u){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(t,a,u){var l=t("../utils/common"),f=0,i=1;function h(s){for(var p=s.length;0<=--p;)s[p]=0}var A=0,T=29,R=256,O=R+1+T,x=30,I=19,_=2*O+1,S=15,o=16,y=7,m=256,c=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],ue=new Array(2*(O+2));h(ue);var k=new Array(2*x);h(k);var M=new Array(512);h(M);var g=new Array(256);h(g);var q=new Array(T);h(q);var ee,z,se,Q=new Array(x);function le(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,ie=new Array(S+1),oe=0;for(G=1;G<=S;G++)ie[G]=oe=oe+B[G-1]<<1;for(H=0;H<=p;H++){var ae=s[2*H+1];ae!==0&&(s[2*H]=K(ie[ae]++,ae))}}function w(s){var p;for(p=0;p<O;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,ie=2*B;return s[H]<s[ie]||s[H]===s[ie]&&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,ie,oe,ae=0;if(s.last_lit!==0)for(;G=s.pending_buf[s.d_buf+2*ae]<<8|s.pending_buf[s.d_buf+2*ae+1],H=s.pending_buf[s.l_buf+ae],ae++,G===0?te(s,H,p):(te(s,(ie=g[H])+R+1,p),(oe=F[ie])!==0&&Z(s,H-=q[ie],oe),te(s,ie=D(--G),B),(oe=W[ie])!==0&&Z(s,G-=Q[ie],oe)),ae<s.last_lit;);te(s,m,p)}function J(s,p){var B,G,H,ie=p.dyn_tree,oe=p.stat_desc.static_tree,ae=p.stat_desc.has_stree,he=p.stat_desc.elems,de=-1;for(s.heap_len=0,s.heap_max=_,B=0;B<he;B++)ie[2*B]!==0?(s.heap[++s.heap_len]=de=B,s.depth[B]=0):ie[2*B+1]=0;for(;s.heap_len<2;)ie[2*(H=s.heap[++s.heap_len]=de<2?++de:0)]=1,s.depth[H]=0,s.opt_len--,ae&&(s.static_len-=oe[2*H+1]);for(p.max_code=de,B=s.heap_len>>1;1<=B;B--)C(s,ie,B);for(H=he;B=s.heap[1],s.heap[1]=s.heap[s.heap_len--],C(s,ie,1),G=s.heap[1],s.heap[--s.heap_max]=B,s.heap[--s.heap_max]=G,ie[2*H]=ie[2*B]+ie[2*G],s.depth[H]=(s.depth[B]>=s.depth[G]?s.depth[B]:s.depth[G])+1,ie[2*B+1]=ie[2*G+1]=H,s.heap[1]=H++,C(s,ie,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(pe,Te){var Ge,ke,xt,be,Gt,Nr,Ue=Te.dyn_tree,hu=Te.max_code,nh=Te.stat_desc.static_tree,ih=Te.stat_desc.has_stree,sh=Te.stat_desc.extra_bits,fu=Te.stat_desc.extra_base,Tt=Te.stat_desc.max_length,Kt=0;for(be=0;be<=S;be++)pe.bl_count[be]=0;for(Ue[2*pe.heap[pe.heap_max]+1]=0,Ge=pe.heap_max+1;Ge<_;Ge++)Tt<(be=Ue[2*Ue[2*(ke=pe.heap[Ge])+1]+1]+1)&&(be=Tt,Kt++),Ue[2*ke+1]=be,hu<ke||(pe.bl_count[be]++,Gt=0,fu<=ke&&(Gt=sh[ke-fu]),Nr=Ue[2*ke],pe.opt_len+=Nr*(be+Gt),ih&&(pe.static_len+=Nr*(nh[2*ke+1]+Gt)));if(Kt!==0){do{for(be=Tt-1;pe.bl_count[be]===0;)be--;pe.bl_count[be]--,pe.bl_count[be+1]+=2,pe.bl_count[Tt]--,Kt-=2}while(0<Kt);for(be=Tt;be!==0;be--)for(ke=pe.bl_count[be];ke!==0;)hu<(xt=pe.heap[--Ge])||(Ue[2*xt+1]!==be&&(pe.opt_len+=(be-Ue[2*xt+1])*Ue[2*xt],Ue[2*xt+1]=be),ke--)}}(s,p),v(ie,de,s.bl_count)}function d(s,p,B){var G,H,ie=-1,oe=p[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),p[2*(B+1)+1]=65535,G=0;G<=B;G++)H=oe,oe=p[2*(G+1)+1],++ae<he&&H===oe||(ae<de?s.bl_tree[2*H]+=ae:H!==0?(H!==ie&&s.bl_tree[2*H]++,s.bl_tree[2*c]++):ae<=10?s.bl_tree[2*E]++:s.bl_tree[2*P]++,ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4))}function Y(s,p,B){var G,H,ie=-1,oe=p[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),G=0;G<=B;G++)if(H=oe,oe=p[2*(G+1)+1],!(++ae<he&&H===oe)){if(ae<de)for(;te(s,H,s.bl_tree),--ae!=0;);else H!==0?(H!==ie&&(te(s,H,s.bl_tree),ae--),te(s,c,s.bl_tree),Z(s,ae-3,2)):ae<=10?(te(s,E,s.bl_tree),Z(s,ae-3,3)):(te(s,P,s.bl_tree),Z(s,ae-11,7));ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4)}}h(Q);var b=!1;function n(s,p,B,G){Z(s,(A<<1)+(G?1:0),3),function(H,ie,oe,ae){j(H),$(H,oe),$(H,~oe),l.arraySet(H.pending_buf,H.window,ie,oe,H.pending),H.pending+=oe}(s,p,B)}u._tr_init=function(s){b||(function(){var p,B,G,H,ie,oe=new Array(S+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=ie=0;H<16;H++)for(Q[H]=ie,p=0;p<1<<W[H];p++)M[ie++]=H;for(ie>>=7;H<x;H++)for(Q[H]=ie<<7,p=0;p<1<<W[H]-7;p++)M[256+ie++]=H;for(B=0;B<=S;B++)oe[B]=0;for(p=0;p<=143;)ue[2*p+1]=8,p++,oe[8]++;for(;p<=255;)ue[2*p+1]=9,p++,oe[9]++;for(;p<=279;)ue[2*p+1]=7,p++,oe[7]++;for(;p<=287;)ue[2*p+1]=8,p++,oe[8]++;for(v(ue,O+1,oe),p=0;p<x;p++)k[2*p+1]=5,k[2*p]=K(p,5);ee=new le(ue,F,R+1,O,S),z=new le(k,W,0,x,S),se=new le(new Array(0),N,0,I,y)}(),b=!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,se),s.bi_buf=0,s.bi_valid=0,w(s)},u._tr_stored_block=n,u._tr_flush_block=function(s,p,B,G){var H,ie,oe=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(ae){var he,de=4093624447;for(he=0;he<=31;he++,de>>>=1)if(1&de&&ae.dyn_ltree[2*he]!==0)return f;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return i;for(he=32;he<R;he++)if(ae.dyn_ltree[2*he]!==0)return i;return f}(s)),J(s,s.l_desc),J(s,s.d_desc),oe=function(ae){var he;for(d(ae,ae.dyn_ltree,ae.l_desc.max_code),d(ae,ae.dyn_dtree,ae.d_desc.max_code),J(ae,ae.bl_desc),he=I-1;3<=he&&ae.bl_tree[2*X[he]+1]===0;he--);return ae.opt_len+=3*(he+1)+5+5+4,he}(s),H=s.opt_len+3+7>>>3,(ie=s.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=B+5,B+4<=H&&p!==-1?n(s,p,B,G):s.strategy===4||ie===H?(Z(s,2+(G?1:0),3),L(s,ue,k)):(Z(s,4+(G?1:0),3),function(ae,he,de,pe){var Te;for(Z(ae,he-257,5),Z(ae,de-1,5),Z(ae,pe-4,4),Te=0;Te<pe;Te++)Z(ae,ae.bl_tree[2*X[Te]+1],3);Y(ae,ae.dyn_ltree,he-1),Y(ae,ae.dyn_dtree,de-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,oe+1),L(s,s.dyn_ltree,s.dyn_dtree)),w(s),G&&j(s)},u._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]+R+1)]++,s.dyn_dtree[2*D(p)]++),s.last_lit===s.lit_bufsize-1},u._tr_align=function(s){Z(s,2,3),te(s,m,ue),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(t,a,u){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(t,a,u){(function(l){(function(f,i){if(!f.setImmediate){var h,A,T,R,O=1,x={},I=!1,_=f.document,S=Object.getPrototypeOf&&Object.getPrototypeOf(f);S=S&&S.setTimeout?S:f,h={}.toString.call(f.process)==="[object process]"?function(c){me.nextTick(function(){y(c)})}:function(){if(f.postMessage&&!f.importScripts){var c=!0,E=f.onmessage;return f.onmessage=function(){c=!1},f.postMessage("","*"),f.onmessage=E,c}}()?(R="setImmediate$"+Math.random()+"$",f.addEventListener?f.addEventListener("message",m,!1):f.attachEvent("onmessage",m),function(c){f.postMessage(R+c,"*")}):f.MessageChannel?((T=new MessageChannel).port1.onmessage=function(c){y(c.data)},function(c){T.port2.postMessage(c)}):_&&"onreadystatechange"in _.createElement("script")?(A=_.documentElement,function(c){var E=_.createElement("script");E.onreadystatechange=function(){y(c),E.onreadystatechange=null,A.removeChild(E),E=null},A.appendChild(E)}):function(c){setTimeout(y,0,c)},S.setImmediate=function(c){typeof c!="function"&&(c=new Function(""+c));for(var E=new Array(arguments.length-1),P=0;P<E.length;P++)E[P]=arguments[P+1];var F={callback:c,args:E};return x[O]=F,h(O),O++},S.clearImmediate=o}function o(c){delete x[c]}function y(c){if(I)setTimeout(y,0,c);else{var E=x[c];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(i,W)}})(E)}finally{o(c),I=!1}}}}function m(c){c.source===f&&typeof c.data=="string"&&c.data.indexOf(R)===0&&y(+c.data.slice(R.length))}})(typeof self=="undefined"?l===void 0?this:l:self)}).call(this,typeof Ie!="undefined"?Ie:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(mi)),mi.exports}var ad=sd(),od=Qo(ad),It={exports:{}},wi,wl;function ud(){if(wl)return wi;wl=1;var r={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function e(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(a,u){return r[u]}):t}return wi=e,wi}var gl;function cd(){if(gl)return It.exports;gl=1;var r=ud(),e=su().Stream,t=" ";function a(A,T){typeof T!="object"&&(T={indent:T});var R=T.stream?new e:null,O="",x=!1,I=T.indent?T.indent===!0?t:T.indent:"",_=!0;function S(E){_?me.nextTick(E):E()}function o(E,P){if(P!==void 0&&(O+=P),E&&!x&&(R=R||new e,x=!0),E&&x){var F=O;S(function(){R.emit("data",F)}),O=""}}function y(E,P){i(o,f(E,I,I?1:0),P)}function m(){if(R){var E=O;S(function(){R.emit("data",E),R.emit("end"),R.readable=!1,R.emit("close")})}}function c(E){var P=E.encoding||"UTF-8",F={version:"1.0",encoding:P};E.standalone&&(F.standalone=E.standalone),y({"?xml":{_attr:F}}),O=O.replace("/>","?>")}return S(function(){_=!1}),T.declaration&&c(T.declaration),A&&A.forEach?A.forEach(function(E,P){var F;P+1===A.length&&(F=m),y(E,F)}):y(A,m),R?(R.readable=!0,R):O}function u(){var A=Array.prototype.slice.call(arguments),T={_elem:f(A)};return T.push=function(R){if(!this.append)throw new Error("not assigned to a parent!");var O=this,x=this._elem.indent;i(this.append,f(R,x,this._elem.icount+(x?1:0)),function(){O.append(!0)})},T.close=function(R){R!==void 0&&this.push(R),this.end&&this.end()},T}function l(A,T){return new Array(T||0).join(A||"")}function f(A,T,R){R=R||0;var O=l(T,R),x,I=A,_=!1;if(typeof A=="object"){var S=Object.keys(A);if(x=S[0],I=A[x],I&&I._elem)return I._elem.name=x,I._elem.icount=R,I._elem.indent=T,I._elem.indents=O,I._elem.interrupt=I,I._elem}var o=[],y=[],m;function c(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&&c(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"?c(E._attr):y.push(f(E,T,R+1))}else y.pop(),m=!0,y.push(r(E))}),m||y.push(""));break;default:y.push(r(I))}return{name:x,interrupt:_,attributes:o,content:y,icount:R,indents:O,indent:T}}function i(A,T,R){if(typeof T!="object")return A(!1,T);var O=T.interrupt?1:T.content.length;function x(){for(;T.content.length;){var _=T.content.shift();if(_!==void 0){if(I(_))return;i(A,_)}}A(!1,(O>1?T.indents:"")+(T.name?"</"+T.name+">":"")+(T.indent&&!R?`
22
- `:"")),R&&R()}function I(_){return _.interrupt?(_.interrupt.append=A,_.interrupt.end=x,_.interrupt=!1,A(!0),!0):!1}if(A(!1,T.indents+(T.name?"<"+T.name:"")+(T.attributes.length?" "+T.attributes.join(" "):"")+(O?T.name?">":"":T.name?"/>":"")+(T.indent&&O>1?`
23
- `:"")),!O)return A(!1,T.indent?`
24
- `:"");I(T)||x()}function h(A,T){return A+'="'+r(T)+'"'}return It.exports=a,It.exports.element=It.exports.Element=u,It.exports}var ld=cd(),Ee=Qo(ld),Nt=0,gi=32,hd=32,fd=(r,e)=>{let t=e.replace(/-/g,"");if(t.length!==hd)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);let u=t.replace(/(..)/g,"$1 ").trim().split(" ").map(h=>parseInt(h,16));u.reverse();let f=r.slice(Nt,gi).map((h,A)=>h^u[A%u.length]),i=new Uint8Array(Nt+f.length+Math.max(0,r.length-gi));return i.set(r.slice(0,Nt)),i.set(f,Nt),i.set(r.slice(gi),Nt+f.length),i},Ut=class{format(e,t={stack:[]}){let a=e.prepForXml(t);if(a)return a;throw Error("XMLComponent did not format correctly")}},Er=class{replace(e,t,a){let u=e;return t.forEach((l,f)=>{u=u.replace(new RegExp(`{${l.fileName}}`,"g"),(a+f).toString())}),u}getMediaData(e,t){return t.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}},Yo=class{replace(e,t){let a=e;for(let u of t)a=a.replace(new RegExp(`{${u.reference}-${u.instance}}`,"g"),u.numId.toString());return a}},Jo=class{constructor(){re(this,"formatter"),re(this,"imageReplacer"),re(this,"numberingReplacer"),this.formatter=new Ut,this.imageReplacer=new Er,this.numberingReplacer=new Yo}compile(e,t,a=[]){let u=new od,l=this.xmlifyFile(e,t),f=new Map(Object.entries(l));for(let[,i]of f)if(Array.isArray(i))for(let h of i)u.file(h.path,h.data);else u.file(i.path,i.data);for(let i of a)u.file(i.path,i.data);for(let i of e.Media.Array)i.type!=="svg"?u.file(`word/media/${i.fileName}`,i.data):(u.file(`word/media/${i.fileName}`,i.data),u.file(`word/media/${i.fallback.fileName}`,i.fallback.data));for(let{data:i,name:h,fontKey:A}of e.FontTable.fontOptionsWithKey){let[T]=h.split(".");u.file(`word/fonts/${T}.odttf`,fd(i,A))}return u}xmlifyFile(e,t){let a=e.Document.Relationships.RelationshipCount+1,u=Ee(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(u,e.Media);return{Relationships:{data:(l.forEach((f,i)=>{e.Document.Relationships.createRelationship(a+i,"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"),Ee(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let f=this.imageReplacer.replace(u,l,a);return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let f=Ee(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ee(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ee(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ee(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((f,i)=>{let h=Ee(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((T,R)=>{f.Relationships.createRelationship(R,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:Ee(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((f,i)=>{let h=Ee(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((T,R)=>{f.Relationships.createRelationship(R,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:Ee(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((f,i)=>{let h=Ee(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,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${i+1}.xml`}}),Footers:e.Footers.map((f,i)=>{let h=Ee(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,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${i+1}.xml`}}),ContentTypes:{data:Ee(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ee(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ee(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ee(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ee(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ee(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ee(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ee(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Ee(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}},dd={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},yl=r=>r===!0?dd.WITH_2_BLANKS:r===!1?void 0:r,rh=class at{static pack(e,t,a){return fh(this,arguments,function*(u,l,f,i=[]){return this.compiler.compile(u,yl(f),i).generateAsync({type:l,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,t,a=[]){return at.pack(e,"string",t,a)}static toBuffer(e,t,a=[]){return at.pack(e,"nodebuffer",t,a)}static toBase64String(e,t,a=[]){return at.pack(e,"base64",t,a)}static toBlob(e,t,a=[]){return at.pack(e,"blob",t,a)}static toArrayBuffer(e,t,a=[]){return at.pack(e,"arraybuffer",t,a)}static toStream(e,t,a=[]){let u=new id.Stream;return this.compiler.compile(e,yl(t),a).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(f=>{u.emit("data",f),u.emit("end")}),u}};re(rh,"compiler",new Jo);var Ad=rh,Sd=new Ut;var Rd=new Ut;var Id=new Er;var pd=r=>{let e={},t={};return r.forEach(a=>{var u;a.type==="definition"?e[a.identifier.toUpperCase()]=a.url:a.type==="footnoteDefinition"?t[a.identifier.toUpperCase()]={children:a.children}:(u=a.children)!=null&&u.length&&Object.assign(e,pd(a.children))}),{definitions:e,footnoteDefinitions:t}};function md(r){let t=new Uint8Array(r).slice(0,4);if(t[0]===66&&t[1]===77)return"bmp";let a="";switch(t.forEach(u=>{a+=u.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 Ir=3,wd=async r=>{let e=document.createElement("canvas"),t=e.getContext("2d");if(t){let a=new Image;a.src=r,await new Promise(f=>{a.onload=f});let u=a.width*Ir,l=a.height*Ir;return e.width=u,e.height=l,t.drawImage(a,0,0,u,l),{data:e.toDataURL("image/png"),type:"png",transformation:{width:u/Ir,height:l/Ir}}}else throw new Error("Canvas context not available")},gd=async r=>{let t=await(await fetch(r)).arrayBuffer(),a=md(t)||"png",u=await createImageBitmap(new Blob([t],{type:a}));return{type:a,data:t,transformation:{width:u.width,height:u.height}}},yd=async r=>{try{return r.startsWith("data:")?await wd(r):await gd(r)}catch(e){return console.error(`Error resolving image: ${r}`,e),{type:"png",data:Buffer.from([]),transformation:{width:100,height:100}}}},Od={useTitle:!0,imageResolver:yd};export{cu as a,ar as b,kf as c,Re as d,ol as e,cl as f,ea as g,Ft as h,dl as i,pl as j,Ad as k,pd as l,md as m,Od as n};
25
- /*! Bundled license information:
26
-
27
- @mayank1513/docx/dist/index.mjs:
28
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
29
- (*!
30
- * The buffer module from node.js, for the browser.
31
- *
32
- * @author Feross Aboukhadijeh <https://feross.org>
33
- * @license MIT
34
- *)
35
- (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
36
- (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
37
- */