@editora/plugins 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-BH3jXuIh.js +1 -0
- package/dist/_commonjsHelpers-ByX85dGu.mjs +33 -0
- package/dist/a11y-checker.cjs.js +12 -12
- package/dist/a11y-checker.esm.js +80 -98
- package/dist/anchor.cjs.js +12 -12
- package/dist/anchor.esm.js +115 -128
- package/dist/anchoredPopover-BzqGPOAE.js +1 -0
- package/dist/anchoredPopover-Dts0IrgU.mjs +106 -0
- package/dist/approval-workflow.cjs.js +40 -40
- package/dist/approval-workflow.esm.js +208 -249
- package/dist/background-color.cjs.js +2 -2
- package/dist/background-color.esm.js +55 -68
- package/dist/blockquote.esm.js +1 -2
- package/dist/blocks-library.cjs.js +45 -45
- package/dist/blocks-library.esm.js +178 -245
- package/dist/capitalization.esm.js +1 -2
- package/dist/checklist.cjs.js +1 -1
- package/dist/checklist.esm.js +58 -82
- package/dist/citations.cjs.js +37 -37
- package/dist/citations.esm.js +439 -512
- package/dist/clear-formatting.cjs.js +1 -1
- package/dist/clear-formatting.esm.js +27 -33
- package/dist/code-sample.cjs.js +14 -14
- package/dist/code-sample.esm.js +82 -93
- package/dist/code.cjs.js +32 -32
- package/dist/code.esm.js +501 -506
- package/dist/comments.cjs.js +6 -6
- package/dist/comments.esm.js +116 -158
- package/dist/conditional-content.cjs.js +90 -90
- package/dist/conditional-content.esm.js +371 -432
- package/dist/content-rules.cjs.js +7 -7
- package/dist/content-rules.esm.js +105 -159
- package/dist/data-binding.cjs.js +46 -46
- package/dist/data-binding.esm.js +328 -368
- package/dist/direction.esm.js +9 -18
- package/dist/doc-schema.cjs.js +29 -29
- package/dist/doc-schema.esm.js +240 -308
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +4 -5
- package/dist/documentManager-CTqRftU8.mjs +8369 -0
- package/dist/documentManager-Jf0RbSks.js +17 -0
- package/dist/{editorContainerHelpers-69585c07.mjs → editorContainerHelpers-C7kdWnS0.mjs} +1 -2
- package/dist/embed-iframe.cjs.js +4 -4
- package/dist/embed-iframe.esm.js +73 -81
- package/dist/emojis.cjs.js +8 -8
- package/dist/emojis.esm.js +65 -77
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +54 -56
- package/dist/font-family.cjs.js +1 -1
- package/dist/font-family.esm.js +39 -47
- package/dist/font-size.cjs.js +1 -1
- package/dist/font-size.esm.js +37 -53
- package/dist/footnote.cjs.js +2 -2
- package/dist/footnote.esm.js +76 -117
- package/dist/history.cjs.js +1 -1
- package/dist/history.esm.js +70 -92
- package/dist/html2canvas.esm-B5qzocYs.js +5 -0
- package/dist/{html2canvas.esm-1a1724a1.mjs → html2canvas.esm-BWVIUcAF.mjs} +141 -225
- package/dist/indent.cjs.js +1 -1
- package/dist/indent.esm.js +12 -24
- package/dist/{index-f04538f2.mjs → index-BFsKNTTj.mjs} +70 -71
- package/dist/index-CvJk4DKa.js +221 -0
- package/dist/index-D3CycEFU.mjs +16543 -0
- package/dist/index-tqLTHcO6.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-CE_A4QSm.js +5 -0
- package/dist/index.es-DQ78mYYo.mjs +6665 -0
- package/dist/index.esm.js +125 -128
- package/dist/italic.cjs.js +1 -1
- package/dist/italic.esm.js +8 -9
- package/dist/jspdf.es.min-BoS80556.js +77 -0
- package/dist/{jspdf.es.min-c36a4fd8.mjs → jspdf.es.min-DQCoX5yh.mjs} +3658 -4682
- package/dist/line-height.cjs.js +1 -1
- package/dist/line-height.esm.js +11 -24
- package/dist/link.cjs.js +5 -5
- package/dist/link.esm.js +24 -30
- package/dist/list.cjs.js +1 -1
- package/dist/list.esm.js +20 -25
- package/dist/lite.cjs.js +1 -1
- package/dist/lite.esm.js +59 -61
- package/dist/math.cjs.js +21 -21
- package/dist/math.esm.js +139 -146
- package/dist/media-manager.cjs.js +31 -31
- package/dist/media-manager.esm.js +285 -300
- package/dist/mentions.cjs.js +9 -9
- package/dist/mentions.esm.js +238 -286
- package/dist/merge-tag.cjs.js +2 -2
- package/dist/merge-tag.esm.js +177 -216
- package/dist/page-break.cjs.js +2 -2
- package/dist/page-break.esm.js +33 -49
- package/dist/pii-redaction.cjs.js +19 -19
- package/dist/pii-redaction.esm.js +393 -463
- package/dist/plugins.css +1 -0
- package/dist/preview.esm.js +5 -10
- package/dist/print.cjs.js +4 -4
- package/dist/print.esm.js +17 -20
- package/dist/{purify.es-35a15df8.mjs → purify.es-DHhaBdbu.mjs} +9 -19
- package/dist/{purify.es-a8d731c6.js → purify.es-T2a3nLiC.js} +1 -1
- package/dist/slash-commands.cjs.js +2 -2
- package/dist/slash-commands.esm.js +39 -75
- package/dist/smart-paste.cjs.js +27 -27
- package/dist/smart-paste.esm.js +280 -336
- package/dist/special-characters.cjs.js +7 -7
- package/dist/special-characters.esm.js +61 -69
- package/dist/spell-check.cjs.js +5 -5
- package/dist/spell-check.esm.js +97 -123
- package/dist/strikethrough.cjs.js +1 -1
- package/dist/strikethrough.esm.js +14 -19
- package/dist/table.cjs.js +4 -4
- package/dist/table.esm.js +191 -225
- package/dist/template.cjs.js +21 -20
- package/dist/template.esm.js +715 -196
- package/dist/text-alignment.cjs.js +1 -1
- package/dist/text-alignment.esm.js +21 -27
- package/dist/text-color.cjs.js +3 -3
- package/dist/text-color.esm.js +70 -87
- package/dist/track-changes.cjs.js +2 -2
- package/dist/track-changes.esm.js +100 -162
- package/dist/translation-workflow.cjs.js +74 -74
- package/dist/translation-workflow.esm.js +602 -678
- package/dist/version-diff.cjs.js +14 -14
- package/dist/version-diff.esm.js +128 -157
- package/package.json +1 -1
- package/dist/_commonjsHelpers-6763f629.js +0 -1
- package/dist/_commonjsHelpers-c5d32002.mjs +0 -30
- package/dist/anchoredPopover-33f1358d.mjs +0 -109
- package/dist/anchoredPopover-8151d535.js +0 -1
- package/dist/documentManager-25b6203c.mjs +0 -9122
- package/dist/documentManager-b69e7054.js +0 -17
- package/dist/html2canvas.esm-09133e29.js +0 -22
- package/dist/index-656d224b.js +0 -231
- package/dist/index-6a8c48bb.js +0 -1
- package/dist/index-d027b7e2.mjs +0 -16859
- package/dist/index.es-730f2d98.mjs +0 -5775
- package/dist/index.es-dd40173b.js +0 -18
- package/dist/jspdf.es.min-90db2c97.js +0 -243
- package/dist/style.css +0 -1
- /package/dist/{editorContainerHelpers-36b8ddf3.js → editorContainerHelpers-CFbfiOJI.js} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const wr=require("./index-6a8c48bb.js");require("./shared-config.cjs.js");var ws={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(yt,bt){(function(ot,xt){yt.exports=xt()})(globalThis,()=>(()=>{var ot={9742:(W,F)=>{F.byteLength=function(N){var _=p(N),y=_[0],h=_[1];return 3*(y+h)/4-h},F.toByteArray=function(N){var _,y,h=p(N),l=h[0],g=h[1],E=new o(function(d,b,C){return 3*(b+C)/4-C}(0,l,g)),O=0,M=g>0?l-4:l;for(y=0;y<M;y+=4)_=a[N.charCodeAt(y)]<<18|a[N.charCodeAt(y+1)]<<12|a[N.charCodeAt(y+2)]<<6|a[N.charCodeAt(y+3)],E[O++]=_>>16&255,E[O++]=_>>8&255,E[O++]=255&_;return g===2&&(_=a[N.charCodeAt(y)]<<2|a[N.charCodeAt(y+1)]>>4,E[O++]=255&_),g===1&&(_=a[N.charCodeAt(y)]<<10|a[N.charCodeAt(y+1)]<<4|a[N.charCodeAt(y+2)]>>2,E[O++]=_>>8&255,E[O++]=255&_),E},F.fromByteArray=function(N){for(var _,y=N.length,h=y%3,l=[],g=16383,E=0,O=y-h;E<O;E+=g)l.push(S(N,E,E+g>O?O:E+g));return h===1?(_=N[y-1],l.push(n[_>>2]+n[_<<4&63]+"==")):h===2&&(_=(N[y-2]<<8)+N[y-1],l.push(n[_>>10]+n[_>>4&63]+n[_<<2&63]+"=")),l.join("")};for(var n=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,I=u.length;m<I;++m)n[m]=u[m],a[u.charCodeAt(m)]=m;function p(N){var _=N.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=N.indexOf("=");return y===-1&&(y=_),[y,y===_?0:4-y%4]}function S(N,_,y){for(var h,l,g=[],E=_;E<y;E+=3)h=(N[E]<<16&16711680)+(N[E+1]<<8&65280)+(255&N[E+2]),g.push(n[(l=h)>>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);return g.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},8764:(W,F,n)=>{const a=n(9742),o=n(645),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;F.Buffer=p,F.SlowBuffer=function(s){return+s!=s&&(s=0),p.alloc(+s)},F.INSPECT_MAX_BYTES=50;const m=2147483647;function I(s){if(s>m)throw new RangeError('The value "'+s+'" is invalid for option "size"');const w=new Uint8Array(s);return Object.setPrototypeOf(w,p.prototype),w}function p(s,w,R){if(typeof s=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(s)}return S(s,w,R)}function S(s,w,R){if(typeof s=="string")return function(Z,et){if(typeof et=="string"&&et!==""||(et="utf8"),!p.isEncoding(et))throw new TypeError("Unknown encoding: "+et);const wt=0|g(Z,et);let At=I(wt);const It=At.write(Z,et);return It!==wt&&(At=At.slice(0,It)),At}(s,w);if(ArrayBuffer.isView(s))return function(Z){if(it(Z,Uint8Array)){const et=new Uint8Array(Z);return h(et.buffer,et.byteOffset,et.byteLength)}return y(Z)}(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(it(s,ArrayBuffer)||s&&it(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(it(s,SharedArrayBuffer)||s&&it(s.buffer,SharedArrayBuffer)))return h(s,w,R);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const j=s.valueOf&&s.valueOf();if(j!=null&&j!==s)return p.from(j,w,R);const X=function(Z){if(p.isBuffer(Z)){const et=0|l(Z.length),wt=I(et);return wt.length===0||Z.copy(wt,0,0,et),wt}return Z.length!==void 0?typeof Z.length!="number"||gt(Z.length)?I(0):y(Z):Z.type==="Buffer"&&Array.isArray(Z.data)?y(Z.data):void 0}(s);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return p.from(s[Symbol.toPrimitive]("string"),w,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}function N(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function _(s){return N(s),I(s<0?0:0|l(s))}function y(s){const w=s.length<0?0:0|l(s.length),R=I(w);for(let j=0;j<w;j+=1)R[j]=255&s[j];return R}function h(s,w,R){if(w<0||s.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<w+(R||0))throw new RangeError('"length" is outside of buffer bounds');let j;return j=w===void 0&&R===void 0?new Uint8Array(s):R===void 0?new Uint8Array(s,w):new Uint8Array(s,w,R),Object.setPrototypeOf(j,p.prototype),j}function l(s){if(s>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return 0|s}function g(s,w){if(p.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||it(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const R=s.length,j=arguments.length>2&&arguments[2]===!0;if(!j&&R===0)return 0;let X=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return st(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return ht(s).length;default:if(X)return j?-1:st(s).length;w=(""+w).toLowerCase(),X=!0}}function E(s,w,R){let j=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(w>>>=0))return"";for(s||(s="utf8");;)switch(s){case"hex":return at(this,w,R);case"utf8":case"utf-8":return Q(this,w,R);case"ascii":return lt(this,w,R);case"latin1":case"binary":return rt(this,w,R);case"base64":return B(this,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,w,R);default:if(j)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),j=!0}}function O(s,w,R){const j=s[w];s[w]=s[R],s[R]=j}function M(s,w,R,j,X){if(s.length===0)return-1;if(typeof R=="string"?(j=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),gt(R=+R)&&(R=X?0:s.length-1),R<0&&(R=s.length+R),R>=s.length){if(X)return-1;R=s.length-1}else if(R<0){if(!X)return-1;R=0}if(typeof w=="string"&&(w=p.from(w,j)),p.isBuffer(w))return w.length===0?-1:d(s,w,R,j,X);if(typeof w=="number")return w&=255,typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(s,w,R):Uint8Array.prototype.lastIndexOf.call(s,w,R):d(s,[w],R,j,X);throw new TypeError("val must be string, number or Buffer")}function d(s,w,R,j,X){let Z,et=1,wt=s.length,At=w.length;if(j!==void 0&&((j=String(j).toLowerCase())==="ucs2"||j==="ucs-2"||j==="utf16le"||j==="utf-16le")){if(s.length<2||w.length<2)return-1;et=2,wt/=2,At/=2,R/=2}function It(Et,Rt){return et===1?Et[Rt]:Et.readUInt16BE(Rt*et)}if(X){let Et=-1;for(Z=R;Z<wt;Z++)if(It(s,Z)===It(w,Et===-1?0:Z-Et)){if(Et===-1&&(Et=Z),Z-Et+1===At)return Et*et}else Et!==-1&&(Z-=Z-Et),Et=-1}else for(R+At>wt&&(R=wt-At),Z=R;Z>=0;Z--){let Et=!0;for(let Rt=0;Rt<At;Rt++)if(It(s,Z+Rt)!==It(w,Rt)){Et=!1;break}if(Et)return Z}return-1}function b(s,w,R,j){R=Number(R)||0;const X=s.length-R;j?(j=Number(j))>X&&(j=X):j=X;const Z=w.length;let et;for(j>Z/2&&(j=Z/2),et=0;et<j;++et){const wt=parseInt(w.substr(2*et,2),16);if(gt(wt))return et;s[R+et]=wt}return et}function C(s,w,R,j){return nt(st(w,s.length-R),s,R,j)}function x(s,w,R,j){return nt(function(X){const Z=[];for(let et=0;et<X.length;++et)Z.push(255&X.charCodeAt(et));return Z}(w),s,R,j)}function D(s,w,R,j){return nt(ht(w),s,R,j)}function r(s,w,R,j){return nt(function(X,Z){let et,wt,At;const It=[];for(let Et=0;Et<X.length&&!((Z-=2)<0);++Et)et=X.charCodeAt(Et),wt=et>>8,At=et%256,It.push(At),It.push(wt);return It}(w,s.length-R),s,R,j)}function B(s,w,R){return w===0&&R===s.length?a.fromByteArray(s):a.fromByteArray(s.slice(w,R))}function Q(s,w,R){R=Math.min(s.length,R);const j=[];let X=w;for(;X<R;){const Z=s[X];let et=null,wt=Z>239?4:Z>223?3:Z>191?2:1;if(X+wt<=R){let At,It,Et,Rt;switch(wt){case 1:Z<128&&(et=Z);break;case 2:At=s[X+1],(192&At)==128&&(Rt=(31&Z)<<6|63&At,Rt>127&&(et=Rt));break;case 3:At=s[X+1],It=s[X+2],(192&At)==128&&(192&It)==128&&(Rt=(15&Z)<<12|(63&At)<<6|63&It,Rt>2047&&(Rt<55296||Rt>57343)&&(et=Rt));break;case 4:At=s[X+1],It=s[X+2],Et=s[X+3],(192&At)==128&&(192&It)==128&&(192&Et)==128&&(Rt=(15&Z)<<18|(63&At)<<12|(63&It)<<6|63&Et,Rt>65535&&Rt<1114112&&(et=Rt))}}et===null?(et=65533,wt=1):et>65535&&(et-=65536,j.push(et>>>10&1023|55296),et=56320|1023&et),j.push(et),X+=wt}return function(Z){const et=Z.length;if(et<=G)return String.fromCharCode.apply(String,Z);let wt="",At=0;for(;At<et;)wt+=String.fromCharCode.apply(String,Z.slice(At,At+=G));return wt}(j)}F.kMaxLength=m,p.TYPED_ARRAY_SUPPORT=function(){try{const s=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(s,w),s.foo()===42}catch{return!1}}(),p.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(s,w,R){return S(s,w,R)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(s,w,R){return function(j,X,Z){return N(j),j<=0?I(j):X!==void 0?typeof Z=="string"?I(j).fill(X,Z):I(j).fill(X):I(j)}(s,w,R)},p.allocUnsafe=function(s){return _(s)},p.allocUnsafeSlow=function(s){return _(s)},p.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==p.prototype},p.compare=function(s,w){if(it(s,Uint8Array)&&(s=p.from(s,s.offset,s.byteLength)),it(w,Uint8Array)&&(w=p.from(w,w.offset,w.byteLength)),!p.isBuffer(s)||!p.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===w)return 0;let R=s.length,j=w.length;for(let X=0,Z=Math.min(R,j);X<Z;++X)if(s[X]!==w[X]){R=s[X],j=w[X];break}return R<j?-1:j<R?1:0},p.isEncoding=function(s){switch(String(s).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}},p.concat=function(s,w){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return p.alloc(0);let R;if(w===void 0)for(w=0,R=0;R<s.length;++R)w+=s[R].length;const j=p.allocUnsafe(w);let X=0;for(R=0;R<s.length;++R){let Z=s[R];if(it(Z,Uint8Array))X+Z.length>j.length?(p.isBuffer(Z)||(Z=p.from(Z)),Z.copy(j,X)):Uint8Array.prototype.set.call(j,Z,X);else{if(!p.isBuffer(Z))throw new TypeError('"list" argument must be an Array of Buffers');Z.copy(j,X)}X+=Z.length}return j},p.byteLength=g,p.prototype._isBuffer=!0,p.prototype.swap16=function(){const s=this.length;if(s%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<s;w+=2)O(this,w,w+1);return this},p.prototype.swap32=function(){const s=this.length;if(s%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<s;w+=4)O(this,w,w+3),O(this,w+1,w+2);return this},p.prototype.swap64=function(){const s=this.length;if(s%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<s;w+=8)O(this,w,w+7),O(this,w+1,w+6),O(this,w+2,w+5),O(this,w+3,w+4);return this},p.prototype.toString=function(){const s=this.length;return s===0?"":arguments.length===0?Q(this,0,s):E.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(s){if(!p.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s||p.compare(this,s)===0},p.prototype.inspect=function(){let s="";const w=F.INSPECT_MAX_BYTES;return s=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(s+=" ... "),"<Buffer "+s+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(s,w,R,j,X){if(it(s,Uint8Array)&&(s=p.from(s,s.offset,s.byteLength)),!p.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(w===void 0&&(w=0),R===void 0&&(R=s?s.length:0),j===void 0&&(j=0),X===void 0&&(X=this.length),w<0||R>s.length||j<0||X>this.length)throw new RangeError("out of range index");if(j>=X&&w>=R)return 0;if(j>=X)return-1;if(w>=R)return 1;if(this===s)return 0;let Z=(X>>>=0)-(j>>>=0),et=(R>>>=0)-(w>>>=0);const wt=Math.min(Z,et),At=this.slice(j,X),It=s.slice(w,R);for(let Et=0;Et<wt;++Et)if(At[Et]!==It[Et]){Z=At[Et],et=It[Et];break}return Z<et?-1:et<Z?1:0},p.prototype.includes=function(s,w,R){return this.indexOf(s,w,R)!==-1},p.prototype.indexOf=function(s,w,R){return M(this,s,w,R,!0)},p.prototype.lastIndexOf=function(s,w,R){return M(this,s,w,R,!1)},p.prototype.write=function(s,w,R,j){if(w===void 0)j="utf8",R=this.length,w=0;else if(R===void 0&&typeof w=="string")j=w,R=this.length,w=0;else{if(!isFinite(w))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");w>>>=0,isFinite(R)?(R>>>=0,j===void 0&&(j="utf8")):(j=R,R=void 0)}const X=this.length-w;if((R===void 0||R>X)&&(R=X),s.length>0&&(R<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let Z=!1;for(;;)switch(j){case"hex":return b(this,s,w,R);case"utf8":case"utf-8":return C(this,s,w,R);case"ascii":case"latin1":case"binary":return x(this,s,w,R);case"base64":return D(this,s,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,s,w,R);default:if(Z)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),Z=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const G=4096;function lt(s,w,R){let j="";R=Math.min(s.length,R);for(let X=w;X<R;++X)j+=String.fromCharCode(127&s[X]);return j}function rt(s,w,R){let j="";R=Math.min(s.length,R);for(let X=w;X<R;++X)j+=String.fromCharCode(s[X]);return j}function at(s,w,R){const j=s.length;(!w||w<0)&&(w=0),(!R||R<0||R>j)&&(R=j);let X="";for(let Z=w;Z<R;++Z)X+=ft[s[Z]];return X}function c(s,w,R){const j=s.slice(w,R);let X="";for(let Z=0;Z<j.length-1;Z+=2)X+=String.fromCharCode(j[Z]+256*j[Z+1]);return X}function A(s,w,R){if(s%1!=0||s<0)throw new RangeError("offset is not uint");if(s+w>R)throw new RangeError("Trying to access beyond buffer length")}function U(s,w,R,j,X,Z){if(!p.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>X||w<Z)throw new RangeError('"value" argument is out of bounds');if(R+j>s.length)throw new RangeError("Index out of range")}function k(s,w,R,j,X){i(w,j,X,s,R,7);let Z=Number(w&BigInt(4294967295));s[R++]=Z,Z>>=8,s[R++]=Z,Z>>=8,s[R++]=Z,Z>>=8,s[R++]=Z;let et=Number(w>>BigInt(32)&BigInt(4294967295));return s[R++]=et,et>>=8,s[R++]=et,et>>=8,s[R++]=et,et>>=8,s[R++]=et,R}function q(s,w,R,j,X){i(w,j,X,s,R,7);let Z=Number(w&BigInt(4294967295));s[R+7]=Z,Z>>=8,s[R+6]=Z,Z>>=8,s[R+5]=Z,Z>>=8,s[R+4]=Z;let et=Number(w>>BigInt(32)&BigInt(4294967295));return s[R+3]=et,et>>=8,s[R+2]=et,et>>=8,s[R+1]=et,et>>=8,s[R]=et,R+8}function P(s,w,R,j,X,Z){if(R+j>s.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function z(s,w,R,j,X){return w=+w,R>>>=0,X||P(s,0,R,4),o.write(s,w,R,j,23,4),R+4}function V(s,w,R,j,X){return w=+w,R>>>=0,X||P(s,0,R,8),o.write(s,w,R,j,52,8),R+8}p.prototype.slice=function(s,w){const R=this.length;(s=~~s)<0?(s+=R)<0&&(s=0):s>R&&(s=R),(w=w===void 0?R:~~w)<0?(w+=R)<0&&(w=0):w>R&&(w=R),w<s&&(w=s);const j=this.subarray(s,w);return Object.setPrototypeOf(j,p.prototype),j},p.prototype.readUintLE=p.prototype.readUIntLE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s],X=1,Z=0;for(;++Z<w&&(X*=256);)j+=this[s+Z]*X;return j},p.prototype.readUintBE=p.prototype.readUIntBE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s+--w],X=1;for(;w>0&&(X*=256);)j+=this[s+--w]*X;return j},p.prototype.readUint8=p.prototype.readUInt8=function(s,w){return s>>>=0,w||A(s,1,this.length),this[s]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(s,w){return s>>>=0,w||A(s,2,this.length),this[s]|this[s+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(s,w){return s>>>=0,w||A(s,2,this.length),this[s]<<8|this[s+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(s,w){return s>>>=0,w||A(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+16777216*this[s+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(s,w){return s>>>=0,w||A(s,4,this.length),16777216*this[s]+(this[s+1]<<16|this[s+2]<<8|this[s+3])},p.prototype.readBigUInt64LE=Tt(function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=w+256*this[++s]+65536*this[++s]+this[++s]*2**24,X=this[++s]+256*this[++s]+65536*this[++s]+R*2**24;return BigInt(j)+(BigInt(X)<<BigInt(32))}),p.prototype.readBigUInt64BE=Tt(function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=w*2**24+65536*this[++s]+256*this[++s]+this[++s],X=this[++s]*2**24+65536*this[++s]+256*this[++s]+R;return(BigInt(j)<<BigInt(32))+BigInt(X)}),p.prototype.readIntLE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=this[s],X=1,Z=0;for(;++Z<w&&(X*=256);)j+=this[s+Z]*X;return X*=128,j>=X&&(j-=Math.pow(2,8*w)),j},p.prototype.readIntBE=function(s,w,R){s>>>=0,w>>>=0,R||A(s,w,this.length);let j=w,X=1,Z=this[s+--j];for(;j>0&&(X*=256);)Z+=this[s+--j]*X;return X*=128,Z>=X&&(Z-=Math.pow(2,8*w)),Z},p.prototype.readInt8=function(s,w){return s>>>=0,w||A(s,1,this.length),128&this[s]?-1*(255-this[s]+1):this[s]},p.prototype.readInt16LE=function(s,w){s>>>=0,w||A(s,2,this.length);const R=this[s]|this[s+1]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt16BE=function(s,w){s>>>=0,w||A(s,2,this.length);const R=this[s+1]|this[s]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt32LE=function(s,w){return s>>>=0,w||A(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},p.prototype.readInt32BE=function(s,w){return s>>>=0,w||A(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},p.prototype.readBigInt64LE=Tt(function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=this[s+4]+256*this[s+5]+65536*this[s+6]+(R<<24);return(BigInt(j)<<BigInt(32))+BigInt(w+256*this[++s]+65536*this[++s]+this[++s]*16777216)}),p.prototype.readBigInt64BE=Tt(function(s){v(s>>>=0,"offset");const w=this[s],R=this[s+7];w!==void 0&&R!==void 0||L(s,this.length-8);const j=(w<<24)+65536*this[++s]+256*this[++s]+this[++s];return(BigInt(j)<<BigInt(32))+BigInt(this[++s]*16777216+65536*this[++s]+256*this[++s]+R)}),p.prototype.readFloatLE=function(s,w){return s>>>=0,w||A(s,4,this.length),o.read(this,s,!0,23,4)},p.prototype.readFloatBE=function(s,w){return s>>>=0,w||A(s,4,this.length),o.read(this,s,!1,23,4)},p.prototype.readDoubleLE=function(s,w){return s>>>=0,w||A(s,8,this.length),o.read(this,s,!0,52,8)},p.prototype.readDoubleBE=function(s,w){return s>>>=0,w||A(s,8,this.length),o.read(this,s,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(s,w,R,j){s=+s,w>>>=0,R>>>=0,j||U(this,s,w,R,Math.pow(2,8*R)-1,0);let X=1,Z=0;for(this[w]=255&s;++Z<R&&(X*=256);)this[w+Z]=s/X&255;return w+R},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(s,w,R,j){s=+s,w>>>=0,R>>>=0,j||U(this,s,w,R,Math.pow(2,8*R)-1,0);let X=R-1,Z=1;for(this[w+X]=255&s;--X>=0&&(Z*=256);)this[w+X]=s/Z&255;return w+R},p.prototype.writeUint8=p.prototype.writeUInt8=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,1,255,0),this[w]=255&s,w+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,65535,0),this[w]=255&s,this[w+1]=s>>>8,w+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,65535,0),this[w]=s>>>8,this[w+1]=255&s,w+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,4294967295,0),this[w+3]=s>>>24,this[w+2]=s>>>16,this[w+1]=s>>>8,this[w]=255&s,w+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,4294967295,0),this[w]=s>>>24,this[w+1]=s>>>16,this[w+2]=s>>>8,this[w+3]=255&s,w+4},p.prototype.writeBigUInt64LE=Tt(function(s,w=0){return k(this,s,w,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Tt(function(s,w=0){return q(this,s,w,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(s,w,R,j){if(s=+s,w>>>=0,!j){const wt=Math.pow(2,8*R-1);U(this,s,w,R,wt-1,-wt)}let X=0,Z=1,et=0;for(this[w]=255&s;++X<R&&(Z*=256);)s<0&&et===0&&this[w+X-1]!==0&&(et=1),this[w+X]=(s/Z>>0)-et&255;return w+R},p.prototype.writeIntBE=function(s,w,R,j){if(s=+s,w>>>=0,!j){const wt=Math.pow(2,8*R-1);U(this,s,w,R,wt-1,-wt)}let X=R-1,Z=1,et=0;for(this[w+X]=255&s;--X>=0&&(Z*=256);)s<0&&et===0&&this[w+X+1]!==0&&(et=1),this[w+X]=(s/Z>>0)-et&255;return w+R},p.prototype.writeInt8=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,1,127,-128),s<0&&(s=255+s+1),this[w]=255&s,w+1},p.prototype.writeInt16LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,32767,-32768),this[w]=255&s,this[w+1]=s>>>8,w+2},p.prototype.writeInt16BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,2,32767,-32768),this[w]=s>>>8,this[w+1]=255&s,w+2},p.prototype.writeInt32LE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,2147483647,-2147483648),this[w]=255&s,this[w+1]=s>>>8,this[w+2]=s>>>16,this[w+3]=s>>>24,w+4},p.prototype.writeInt32BE=function(s,w,R){return s=+s,w>>>=0,R||U(this,s,w,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[w]=s>>>24,this[w+1]=s>>>16,this[w+2]=s>>>8,this[w+3]=255&s,w+4},p.prototype.writeBigInt64LE=Tt(function(s,w=0){return k(this,s,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Tt(function(s,w=0){return q(this,s,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(s,w,R){return z(this,s,w,!0,R)},p.prototype.writeFloatBE=function(s,w,R){return z(this,s,w,!1,R)},p.prototype.writeDoubleLE=function(s,w,R){return V(this,s,w,!0,R)},p.prototype.writeDoubleBE=function(s,w,R){return V(this,s,w,!1,R)},p.prototype.copy=function(s,w,R,j){if(!p.isBuffer(s))throw new TypeError("argument should be a Buffer");if(R||(R=0),j||j===0||(j=this.length),w>=s.length&&(w=s.length),w||(w=0),j>0&&j<R&&(j=R),j===R||s.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),s.length-w<j-R&&(j=s.length-w+R);const X=j-R;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,R,j):Uint8Array.prototype.set.call(s,this.subarray(R,j),w),X},p.prototype.fill=function(s,w,R,j){if(typeof s=="string"){if(typeof w=="string"?(j=w,w=0,R=this.length):typeof R=="string"&&(j=R,R=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!p.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(s.length===1){const Z=s.charCodeAt(0);(j==="utf8"&&Z<128||j==="latin1")&&(s=Z)}}else typeof s=="number"?s&=255:typeof s=="boolean"&&(s=Number(s));if(w<0||this.length<w||this.length<R)throw new RangeError("Out of range index");if(R<=w)return this;let X;if(w>>>=0,R=R===void 0?this.length:R>>>0,s||(s=0),typeof s=="number")for(X=w;X<R;++X)this[X]=s;else{const Z=p.isBuffer(s)?s:p.from(s,j),et=Z.length;if(et===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(X=0;X<R-w;++X)this[X+w]=Z[X%et]}return this};const $={};function K(s,w,R){$[s]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${s}]`,this.stack,delete this.name}get code(){return s}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${s}]: ${this.message}`}}}function T(s){let w="",R=s.length;const j=s[0]==="-"?1:0;for(;R>=j+4;R-=3)w=`_${s.slice(R-3,R)}${w}`;return`${s.slice(0,R)}${w}`}function i(s,w,R,j,X,Z){if(s>R||s<w){const et=typeof w=="bigint"?"n":"";let wt;throw wt=Z>3?w===0||w===BigInt(0)?`>= 0${et} and < 2${et} ** ${8*(Z+1)}${et}`:`>= -(2${et} ** ${8*(Z+1)-1}${et}) and < 2 ** ${8*(Z+1)-1}${et}`:`>= ${w}${et} and <= ${R}${et}`,new $.ERR_OUT_OF_RANGE("value",wt,s)}(function(et,wt,At){v(wt,"offset"),et[wt]!==void 0&&et[wt+At]!==void 0||L(wt,et.length-(At+1))})(j,X,Z)}function v(s,w){if(typeof s!="number")throw new $.ERR_INVALID_ARG_TYPE(w,"number",s)}function L(s,w,R){throw Math.floor(s)!==s?(v(s,R),new $.ERR_OUT_OF_RANGE(R||"offset","an integer",s)):w<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE(R||"offset",`>= ${R?1:0} and <= ${w}`,s)}K("ERR_BUFFER_OUT_OF_BOUNDS",function(s){return s?`${s} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(s,w){return`The "${s}" argument must be of type number. Received type ${typeof w}`},TypeError),K("ERR_OUT_OF_RANGE",function(s,w,R){let j=`The value of "${s}" is out of range.`,X=R;return Number.isInteger(R)&&Math.abs(R)>4294967296?X=T(String(R)):typeof R=="bigint"&&(X=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(X=T(X)),X+="n"),j+=` It must be ${w}. Received ${X}`,j},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function st(s,w){let R;w=w||1/0;const j=s.length;let X=null;const Z=[];for(let et=0;et<j;++et){if(R=s.charCodeAt(et),R>55295&&R<57344){if(!X){if(R>56319){(w-=3)>-1&&Z.push(239,191,189);continue}if(et+1===j){(w-=3)>-1&&Z.push(239,191,189);continue}X=R;continue}if(R<56320){(w-=3)>-1&&Z.push(239,191,189),X=R;continue}R=65536+(X-55296<<10|R-56320)}else X&&(w-=3)>-1&&Z.push(239,191,189);if(X=null,R<128){if((w-=1)<0)break;Z.push(R)}else if(R<2048){if((w-=2)<0)break;Z.push(R>>6|192,63&R|128)}else if(R<65536){if((w-=3)<0)break;Z.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;Z.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return Z}function ht(s){return a.toByteArray(function(w){if((w=(w=w.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;w.length%4!=0;)w+="=";return w}(s))}function nt(s,w,R,j){let X;for(X=0;X<j&&!(X+R>=w.length||X>=s.length);++X)w[X+R]=s[X];return X}function it(s,w){return s instanceof w||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===w.name}function gt(s){return s!=s}const ft=function(){const s="0123456789abcdef",w=new Array(256);for(let R=0;R<16;++R){const j=16*R;for(let X=0;X<16;++X)w[j+X]=s[R]+s[X]}return w}();function Tt(s){return typeof BigInt>"u"?Ft:s}function Ft(){throw new Error("BigInt not supported")}},7187:W=>{var F,n=typeof Reflect=="object"?Reflect:null,a=n&&typeof n.apply=="function"?n.apply:function(E,O,M){return Function.prototype.apply.call(E,O,M)};F=n&&typeof n.ownKeys=="function"?n.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var o=Number.isNaN||function(E){return E!=E};function u(){u.init.call(this)}W.exports=u,W.exports.once=function(E,O){return new Promise(function(M,d){function b(x){E.removeListener(O,C),d(x)}function C(){typeof E.removeListener=="function"&&E.removeListener("error",b),M([].slice.call(arguments))}g(E,O,C,{once:!0}),O!=="error"&&function(x,D,r){typeof x.on=="function"&&g(x,"error",D,{once:!0})}(E,b)})},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var m=10;function I(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}function p(E){return E._maxListeners===void 0?u.defaultMaxListeners:E._maxListeners}function S(E,O,M,d){var b,C,x,D;if(I(M),(C=E._events)===void 0?(C=E._events=Object.create(null),E._eventsCount=0):(C.newListener!==void 0&&(E.emit("newListener",O,M.listener?M.listener:M),C=E._events),x=C[O]),x===void 0)x=C[O]=M,++E._eventsCount;else if(typeof x=="function"?x=C[O]=d?[M,x]:[x,M]:d?x.unshift(M):x.push(M),(b=p(E))>0&&x.length>b&&!x.warned){x.warned=!0;var r=new Error("Possible EventEmitter memory leak detected. "+x.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");r.name="MaxListenersExceededWarning",r.emitter=E,r.type=O,r.count=x.length,D=r,console&&console.warn&&console.warn(D)}return E}function N(){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 _(E,O,M){var d={fired:!1,wrapFn:void 0,target:E,type:O,listener:M},b=N.bind(d);return b.listener=M,d.wrapFn=b,b}function y(E,O,M){var d=E._events;if(d===void 0)return[];var b=d[O];return b===void 0?[]:typeof b=="function"?M?[b.listener||b]:[b]:M?function(C){for(var x=new Array(C.length),D=0;D<x.length;++D)x[D]=C[D].listener||C[D];return x}(b):l(b,b.length)}function h(E){var O=this._events;if(O!==void 0){var M=O[E];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}function l(E,O){for(var M=new Array(O),d=0;d<O;++d)M[d]=E[d];return M}function g(E,O,M,d){if(typeof E.on=="function")d.once?E.once(O,M):E.on(O,M);else{if(typeof E.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof E);E.addEventListener(O,function b(C){d.once&&E.removeEventListener(O,b),M(C)})}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(E){if(typeof E!="number"||E<0||o(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");m=E}}),u.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},u.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||o(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},u.prototype.getMaxListeners=function(){return p(this)},u.prototype.emit=function(E){for(var O=[],M=1;M<arguments.length;M++)O.push(arguments[M]);var d=E==="error",b=this._events;if(b!==void 0)d=d&&b.error===void 0;else if(!d)return!1;if(d){var C;if(O.length>0&&(C=O[0]),C instanceof Error)throw C;var x=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw x.context=C,x}var D=b[E];if(D===void 0)return!1;if(typeof D=="function")a(D,this,O);else{var r=D.length,B=l(D,r);for(M=0;M<r;++M)a(B[M],this,O)}return!0},u.prototype.addListener=function(E,O){return S(this,E,O,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(E,O){return S(this,E,O,!0)},u.prototype.once=function(E,O){return I(O),this.on(E,_(this,E,O)),this},u.prototype.prependOnceListener=function(E,O){return I(O),this.prependListener(E,_(this,E,O)),this},u.prototype.removeListener=function(E,O){var M,d,b,C,x;if(I(O),(d=this._events)===void 0)return this;if((M=d[E])===void 0)return this;if(M===O||M.listener===O)--this._eventsCount==0?this._events=Object.create(null):(delete d[E],d.removeListener&&this.emit("removeListener",E,M.listener||O));else if(typeof M!="function"){for(b=-1,C=M.length-1;C>=0;C--)if(M[C]===O||M[C].listener===O){x=M[C].listener,b=C;break}if(b<0)return this;b===0?M.shift():function(D,r){for(;r+1<D.length;r++)D[r]=D[r+1];D.pop()}(M,b),M.length===1&&(d[E]=M[0]),d.removeListener!==void 0&&this.emit("removeListener",E,x||O)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(E){var O,M,d;if((M=this._events)===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete M[E]),this;if(arguments.length===0){var b,C=Object.keys(M);for(d=0;d<C.length;++d)(b=C[d])!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(O=M[E])=="function")this.removeListener(E,O);else if(O!==void 0)for(d=O.length-1;d>=0;d--)this.removeListener(E,O[d]);return this},u.prototype.listeners=function(E){return y(this,E,!0)},u.prototype.rawListeners=function(E){return y(this,E,!1)},u.listenerCount=function(E,O){return typeof E.listenerCount=="function"?E.listenerCount(O):h.call(E,O)},u.prototype.listenerCount=h,u.prototype.eventNames=function(){return this._eventsCount>0?F(this._events):[]}},645:(W,F)=>{F.read=function(n,a,o,u,m){var I,p,S=8*m-u-1,N=(1<<S)-1,_=N>>1,y=-7,h=o?m-1:0,l=o?-1:1,g=n[a+h];for(h+=l,I=g&(1<<-y)-1,g>>=-y,y+=S;y>0;I=256*I+n[a+h],h+=l,y-=8);for(p=I&(1<<-y)-1,I>>=-y,y+=u;y>0;p=256*p+n[a+h],h+=l,y-=8);if(I===0)I=1-_;else{if(I===N)return p?NaN:1/0*(g?-1:1);p+=Math.pow(2,u),I-=_}return(g?-1:1)*p*Math.pow(2,I-u)},F.write=function(n,a,o,u,m,I){var p,S,N,_=8*I-m-1,y=(1<<_)-1,h=y>>1,l=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=u?0:I-1,E=u?1:-1,O=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(S=isNaN(a)?1:0,p=y):(p=Math.floor(Math.log(a)/Math.LN2),a*(N=Math.pow(2,-p))<1&&(p--,N*=2),(a+=p+h>=1?l/N:l*Math.pow(2,1-h))*N>=2&&(p++,N/=2),p+h>=y?(S=0,p=y):p+h>=1?(S=(a*N-1)*Math.pow(2,m),p+=h):(S=a*Math.pow(2,h-1)*Math.pow(2,m),p=0));m>=8;n[o+g]=255&S,g+=E,S/=256,m-=8);for(p=p<<m|S,_+=m;_>0;n[o+g]=255&p,g+=E,p/=256,_-=8);n[o+g-E]|=128*O}},5705:(W,F,n)=>{var a,o,u=n.g.MutationObserver||n.g.WebKitMutationObserver;if(u){var m=0,I=new u(_),p=n.g.document.createTextNode("");I.observe(p,{characterData:!0}),a=function(){p.data=m=++m%2}}else if(n.g.setImmediate||n.g.MessageChannel===void 0)a="document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")?function(){var y=n.g.document.createElement("script");y.onreadystatechange=function(){_(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},n.g.document.documentElement.appendChild(y)}:function(){setTimeout(_,0)};else{var S=new n.g.MessageChannel;S.port1.onmessage=_,a=function(){S.port2.postMessage(0)}}var N=[];function _(){var y,h;o=!0;for(var l=N.length;l;){for(h=N,N=[],y=-1;++y<l;)h[y]();l=N.length}o=!1}W.exports=function(y){N.push(y)!==1||o||a()}},5717:W=>{typeof Object.create=="function"?W.exports=function(F,n){n&&(F.super_=n,F.prototype=Object.create(n.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(F,n){if(n){F.super_=n;var a=function(){};a.prototype=n.prototype,F.prototype=new a,F.prototype.constructor=F}}},8458:(W,F,n)=>{var a=n(8910),o=n(3790),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";F.encode=function(m){for(var I,p,S,N,_,y,h,l=[],g=0,E=m.length,O=E,M=a.getTypeOf(m)!=="string";g<m.length;)O=E-g,M?(I=m[g++],p=g<E?m[g++]:0,S=g<E?m[g++]:0):(I=m.charCodeAt(g++),p=g<E?m.charCodeAt(g++):0,S=g<E?m.charCodeAt(g++):0),N=I>>2,_=(3&I)<<4|p>>4,y=O>1?(15&p)<<2|S>>6:64,h=O>2?63&S:64,l.push(u.charAt(N)+u.charAt(_)+u.charAt(y)+u.charAt(h));return l.join("")},F.decode=function(m){var I,p,S,N,_,y,h=0,l=0,g="data:";if(m.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var E,O=3*(m=m.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(m.charAt(m.length-1)===u.charAt(64)&&O--,m.charAt(m.length-2)===u.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(E=o.uint8array?new Uint8Array(0|O):new Array(0|O);h<m.length;)I=u.indexOf(m.charAt(h++))<<2|(N=u.indexOf(m.charAt(h++)))>>4,p=(15&N)<<4|(_=u.indexOf(m.charAt(h++)))>>2,S=(3&_)<<6|(y=u.indexOf(m.charAt(h++))),E[l++]=I,_!==64&&(E[l++]=p),y!==64&&(E[l++]=S);return E}},7326:(W,F,n)=>{var a=n(8565),o=n(5301),u=n(2541),m=n(5977);function I(p,S,N,_,y){this.compressedSize=p,this.uncompressedSize=S,this.crc32=N,this.compression=_,this.compressedContent=y}I.prototype={getContentWorker:function(){var p=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new m("data_length")),S=this;return p.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},I.createWorkerFrom=function(p,S,N){return p.pipe(new u).pipe(new m("uncompressedSize")).pipe(S.compressWorker(N)).pipe(new m("compressedSize")).withStreamInfo("compression",S)},W.exports=I},1678:(W,F,n)=>{var a=n(3718);F.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},F.DEFLATE=n(1033)},6988:(W,F,n)=>{var a=n(8910),o=function(){for(var u,m=[],I=0;I<256;I++){u=I;for(var p=0;p<8;p++)u=1&u?3988292384^u>>>1:u>>>1;m[I]=u}return m}();W.exports=function(u,m){return u!==void 0&&u.length?a.getTypeOf(u)!=="string"?function(I,p,S,N){var _=o,y=0+S;I^=-1;for(var h=0;h<y;h++)I=I>>>8^_[255&(I^p[h])];return-1^I}(0|m,u,u.length):function(I,p,S,N){var _=o,y=0+S;I^=-1;for(var h=0;h<y;h++)I=I>>>8^_[255&(I^p.charCodeAt(h))];return-1^I}(0|m,u,u.length):0}},6032:(W,F)=>{F.base64=!1,F.binary=!1,F.dir=!1,F.createFolders=!0,F.date=null,F.compression=null,F.compressionOptions=null,F.comment=null,F.unixPermissions=null,F.dosPermissions=null},8565:(W,F,n)=>{var a;a=typeof Promise<"u"?Promise:n(3389),W.exports={Promise:a}},1033:(W,F,n)=>{var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n(9591),u=n(8910),m=n(3718),I=a?"uint8array":"array";function p(S,N){m.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=N,this.meta={}}F.magic="\b\0",u.inherits(p,m),p.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(u.transformTo(I,S.data),!1)},p.prototype.flush=function(){m.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(N){S.push({data:N,meta:S.meta})}},F.compressWorker=function(S){return new p("Deflate",S)},F.uncompressWorker=function(){return new p("Inflate",{})}},4979:(W,F,n)=>{var a=n(8910),o=n(3718),u=n(3600),m=n(6988),I=n(1141),p=function(y,h){var l,g="";for(l=0;l<h;l++)g+=String.fromCharCode(255&y),y>>>=8;return g},S=function(y,h,l,g,E,O){var M,d,b=y.file,C=y.compression,x=O!==u.utf8encode,D=a.transformTo("string",O(b.name)),r=a.transformTo("string",u.utf8encode(b.name)),B=b.comment,Q=a.transformTo("string",O(B)),G=a.transformTo("string",u.utf8encode(B)),lt=r.length!==b.name.length,rt=G.length!==B.length,at="",c="",A="",U=b.dir,k=b.date,q={crc32:0,compressedSize:0,uncompressedSize:0};h&&!l||(q.crc32=y.crc32,q.compressedSize=y.compressedSize,q.uncompressedSize=y.uncompressedSize);var P=0;h&&(P|=8),x||!lt&&!rt||(P|=2048);var z,V,$=0,K=0;U&&($|=16),E==="UNIX"?(K=798,$|=(V=z=b.unixPermissions,z||(V=U?16893:33204),(65535&V)<<16)):(K=20,$|=63&(b.dosPermissions||0)),M=k.getUTCHours(),M<<=6,M|=k.getUTCMinutes(),M<<=5,M|=k.getUTCSeconds()/2,d=k.getUTCFullYear()-1980,d<<=4,d|=k.getUTCMonth()+1,d<<=5,d|=k.getUTCDate(),lt&&(c=p(1,1)+p(m(D),4)+r,at+="up"+p(c.length,2)+c),rt&&(A=p(1,1)+p(m(Q),4)+G,at+="uc"+p(A.length,2)+A);var T="";return T+=`
|
|
2
|
-
\0`,T+=p(P,2),T+=C.magic,T+=p(M,2),T+=p(d,2),T+=p(q.crc32,4),T+=p(q.compressedSize,4),T+=p(q.uncompressedSize,4),T+=p(D.length,2),T+=p(at.length,2),{fileRecord:I.LOCAL_FILE_HEADER+T+D+at,dirRecord:I.CENTRAL_FILE_HEADER+p(K,2)+T+p(Q.length,2)+"\0\0\0\0"+p($,4)+p(g,4)+D+at+Q}},N=function(y){return I.DATA_DESCRIPTOR+p(y.crc32,4)+p(y.compressedSize,4)+p(y.uncompressedSize,4)};function _(y,h,l,g){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=l,this.encodeFileName=g,this.streamFiles=y,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(_,o),_.prototype.push=function(y){var h=y.meta.percent||0,l=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(y):(this.bytesWritten+=y.data.length,o.prototype.push.call(this,{data:y.data,meta:{currentFile:this.currentFile,percent:l?(h+100*(l-g-1))/l:100}}))},_.prototype.openedSource=function(y){this.currentSourceOffset=this.bytesWritten,this.currentFile=y.file.name;var h=this.streamFiles&&!y.file.dir;if(h){var l=S(y,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(y){this.accumulate=!1;var h=this.streamFiles&&!y.file.dir,l=S(y,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),h)this.push({data:N(y),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var y=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var l=this.bytesWritten-y,g=function(E,O,M,d,b){var C=a.transformTo("string",b(d));return I.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(E,2)+p(E,2)+p(O,4)+p(M,4)+p(C.length,2)+C}(this.dirRecords.length,l,y,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(y){this._sources.push(y);var h=this;return y.on("data",function(l){h.processChunk(l)}),y.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),y.on("error",function(l){h.error(l)}),this},_.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(y){var h=this._sources;if(!o.prototype.error.call(this,y))return!1;for(var l=0;l<h.length;l++)try{h[l].error(y)}catch{}return!0},_.prototype.lock=function(){o.prototype.lock.call(this);for(var y=this._sources,h=0;h<y.length;h++)y[h].lock()},W.exports=_},7834:(W,F,n)=>{var a=n(1678),o=n(4979);F.generateWorker=function(u,m,I){var p=new o(m.streamFiles,I,m.platform,m.encodeFileName),S=0;try{u.forEach(function(N,_){S++;var y=function(E,O){var M=E||O,d=a[M];if(!d)throw new Error(M+" is not a valid compression method !");return d}(_.options.compression,m.compression),h=_.options.compressionOptions||m.compressionOptions||{},l=_.dir,g=_.date;_._compressWorker(y,h).withStreamInfo("file",{name:N,dir:l,date:g,comment:_.comment||"",unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions}).pipe(p)}),p.entriesCount=S}catch(N){p.error(N)}return p}},6085:(W,F,n)=>{function a(){if(!(this instanceof a))return new a;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 o=new a;for(var u in this)typeof this[u]!="function"&&(o[u]=this[u]);return o}}a.prototype=n(7132),a.prototype.loadAsync=n(1062),a.support=n(3790),a.defaults=n(6032),a.version="3.10.1",a.loadAsync=function(o,u){return new a().loadAsync(o,u)},a.external=n(8565),W.exports=a},1062:(W,F,n)=>{var a=n(8910),o=n(8565),u=n(3600),m=n(6624),I=n(2541),p=n(2182);function S(N){return new o.Promise(function(_,y){var h=N.decompressed.getContentWorker().pipe(new I);h.on("error",function(l){y(l)}).on("end",function(){h.streamInfo.crc32!==N.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):_()}).resume()})}W.exports=function(N,_){var y=this;return _=a.extend(_||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:u.utf8decode}),p.isNode&&p.isStream(N)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",N,!0,_.optimizedBinaryString,_.base64).then(function(h){var l=new m(_);return l.load(h),l}).then(function(h){var l=[o.Promise.resolve(h)],g=h.files;if(_.checkCRC32)for(var E=0;E<g.length;E++)l.push(S(g[E]));return o.Promise.all(l)}).then(function(h){for(var l=h.shift(),g=l.files,E=0;E<g.length;E++){var O=g[E],M=O.fileNameStr,d=a.resolve(O.fileNameStr);y.file(d,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:_.createFolders}),O.dir||(y.file(d).unsafeOriginalName=M)}return l.zipComment.length&&(y.comment=l.zipComment),y})}},2182:W=>{W.exports={isNode:typeof Buffer<"u",newBufferFrom:function(F,n){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(F,n);if(typeof F=="number")throw new Error('The "data" argument must not be a number');return new Buffer(F,n)},allocBuffer:function(F){if(Buffer.alloc)return Buffer.alloc(F);var n=new Buffer(F);return n.fill(0),n},isBuffer:function(F){return Buffer.isBuffer(F)},isStream:function(F){return F&&typeof F.on=="function"&&typeof F.pause=="function"&&typeof F.resume=="function"}}},660:(W,F,n)=>{var a=n(8910),o=n(3718);function u(m,I){o.call(this,"Nodejs stream input adapter for "+m),this._upstreamEnded=!1,this._bindStream(I)}a.inherits(u,o),u.prototype._bindStream=function(m){var I=this;this._stream=m,m.pause(),m.on("data",function(p){I.push({data:p,meta:{percent:0}})}).on("error",function(p){I.isPaused?this.generatedError=p:I.error(p)}).on("end",function(){I.isPaused?I._upstreamEnded=!0:I.end()})},u.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},W.exports=u},1220:(W,F,n)=>{var a=n(749).Readable;function o(u,m,I){a.call(this,m),this._helper=u;var p=this;u.on("data",function(S,N){p.push(S)||p._helper.pause(),I&&I(N)}).on("error",function(S){p.emit("error",S)}).on("end",function(){p.push(null)})}n(8910).inherits(o,a),o.prototype._read=function(){this._helper.resume()},W.exports=o},7132:(W,F,n)=>{var a=n(3600),o=n(8910),u=n(3718),m=n(1285),I=n(6032),p=n(7326),S=n(6859),N=n(7834),_=n(2182),y=n(660),h=function(d,b,C){var x,D=o.getTypeOf(b),r=o.extend(C||{},I);r.date=r.date||new Date,r.compression!==null&&(r.compression=r.compression.toUpperCase()),typeof r.unixPermissions=="string"&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(d=g(d)),r.createFolders&&(x=l(d))&&E.call(this,x,!0);var B=D==="string"&&r.binary===!1&&r.base64===!1;C&&C.binary!==void 0||(r.binary=!B),(b instanceof p&&b.uncompressedSize===0||r.dir||!b||b.length===0)&&(r.base64=!1,r.binary=!0,b="",r.compression="STORE",D="string");var Q;Q=b instanceof p||b instanceof u?b:_.isNode&&_.isStream(b)?new y(d,b):o.prepareContent(d,b,r.binary,r.optimizedBinaryString,r.base64);var G=new S(d,Q,r);this.files[d]=G},l=function(d){d.slice(-1)==="/"&&(d=d.substring(0,d.length-1));var b=d.lastIndexOf("/");return b>0?d.substring(0,b):""},g=function(d){return d.slice(-1)!=="/"&&(d+="/"),d},E=function(d,b){return b=b!==void 0?b:I.createFolders,d=g(d),this.files[d]||h.call(this,d,null,{dir:!0,createFolders:b}),this.files[d]};function O(d){return Object.prototype.toString.call(d)==="[object RegExp]"}var M={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(d){var b,C,x;for(b in this.files)x=this.files[b],(C=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&d(C,x)},filter:function(d){var b=[];return this.forEach(function(C,x){d(C,x)&&b.push(x)}),b},file:function(d,b,C){if(arguments.length===1){if(O(d)){var x=d;return this.filter(function(r,B){return!B.dir&&x.test(r)})}var D=this.files[this.root+d];return D&&!D.dir?D:null}return d=this.root+d,h.call(this,d,b,C),this},folder:function(d){if(!d)return this;if(O(d))return this.filter(function(D,r){return r.dir&&d.test(D)});var b=this.root+d,C=E.call(this,b),x=this.clone();return x.root=C.name,x},remove:function(d){d=this.root+d;var b=this.files[d];if(b||(d.slice(-1)!=="/"&&(d+="/"),b=this.files[d]),b&&!b.dir)delete this.files[d];else for(var C=this.filter(function(D,r){return r.name.slice(0,d.length)===d}),x=0;x<C.length;x++)delete this.files[C[x].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(d){var b,C={};try{if((C=o.extend(d||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");o.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var x=C.comment||this.comment||"";b=N.generateWorker(this,C,x)}catch(D){(b=new u("error")).error(D)}return new m(b,C.type||"string",C.mimeType)},generateAsync:function(d,b){return this.generateInternalStream(d).accumulate(b)},generateNodeStream:function(d,b){return(d=d||{}).type||(d.type="nodebuffer"),this.generateInternalStream(d).toNodejsStream(b)}};W.exports=M},749:(W,F,n)=>{W.exports=n(2830)},2370:(W,F,n)=>{var a=n(8542);function o(u){a.call(this,u);for(var m=0;m<this.data.length;m++)u[m]=255&u[m]}n(8910).inherits(o,a),o.prototype.byteAt=function(u){return this.data[this.zero+u]},o.prototype.lastIndexOfSignature=function(u){for(var m=u.charCodeAt(0),I=u.charCodeAt(1),p=u.charCodeAt(2),S=u.charCodeAt(3),N=this.length-4;N>=0;--N)if(this.data[N]===m&&this.data[N+1]===I&&this.data[N+2]===p&&this.data[N+3]===S)return N-this.zero;return-1},o.prototype.readAndCheckSignature=function(u){var m=u.charCodeAt(0),I=u.charCodeAt(1),p=u.charCodeAt(2),S=u.charCodeAt(3),N=this.readData(4);return m===N[0]&&I===N[1]&&p===N[2]&&S===N[3]},o.prototype.readData=function(u){if(this.checkOffset(u),u===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,m},W.exports=o},8542:(W,F,n)=>{var a=n(8910);function o(u){this.data=u,this.length=u.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(u){this.checkIndex(this.index+u)},checkIndex:function(u){if(this.length<this.zero+u||u<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+u+"). Corrupted zip ?")},setIndex:function(u){this.checkIndex(u),this.index=u},skip:function(u){this.setIndex(this.index+u)},byteAt:function(){},readInt:function(u){var m,I=0;for(this.checkOffset(u),m=this.index+u-1;m>=this.index;m--)I=(I<<8)+this.byteAt(m);return this.index+=u,I},readString:function(u){return a.transformTo("string",this.readData(u))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var u=this.readInt(4);return new Date(Date.UTC(1980+(u>>25&127),(u>>21&15)-1,u>>16&31,u>>11&31,u>>5&63,(31&u)<<1))}},W.exports=o},9583:(W,F,n)=>{var a=n(414);function o(u){a.call(this,u)}n(8910).inherits(o,a),o.prototype.readData=function(u){this.checkOffset(u);var m=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,m},W.exports=o},9226:(W,F,n)=>{var a=n(8542);function o(u){a.call(this,u)}n(8910).inherits(o,a),o.prototype.byteAt=function(u){return this.data.charCodeAt(this.zero+u)},o.prototype.lastIndexOfSignature=function(u){return this.data.lastIndexOf(u)-this.zero},o.prototype.readAndCheckSignature=function(u){return u===this.readData(4)},o.prototype.readData=function(u){this.checkOffset(u);var m=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,m},W.exports=o},414:(W,F,n)=>{var a=n(2370);function o(u){a.call(this,u)}n(8910).inherits(o,a),o.prototype.readData=function(u){if(this.checkOffset(u),u===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+u);return this.index+=u,m},W.exports=o},8435:(W,F,n)=>{var a=n(8910),o=n(3790),u=n(2370),m=n(9226),I=n(9583),p=n(414);W.exports=function(S){var N=a.getTypeOf(S);return a.checkSupport(N),N!=="string"||o.uint8array?N==="nodebuffer"?new I(S):o.uint8array?new p(a.transformTo("uint8array",S)):new u(a.transformTo("array",S)):new m(S)}},1141:(W,F)=>{F.LOCAL_FILE_HEADER="PK",F.CENTRAL_FILE_HEADER="PK",F.CENTRAL_DIRECTORY_END="PK",F.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",F.ZIP64_CENTRAL_DIRECTORY_END="PK",F.DATA_DESCRIPTOR="PK\x07\b"},4293:(W,F,n)=>{var a=n(3718),o=n(8910);function u(m){a.call(this,"ConvertWorker to "+m),this.destType=m}o.inherits(u,a),u.prototype.processChunk=function(m){this.push({data:o.transformTo(this.destType,m.data),meta:m.meta})},W.exports=u},2541:(W,F,n)=>{var a=n(3718),o=n(6988);function u(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(8910).inherits(u,a),u.prototype.processChunk=function(m){this.streamInfo.crc32=o(m.data,this.streamInfo.crc32||0),this.push(m)},W.exports=u},5977:(W,F,n)=>{var a=n(8910),o=n(3718);function u(m){o.call(this,"DataLengthProbe for "+m),this.propName=m,this.withStreamInfo(m,0)}a.inherits(u,o),u.prototype.processChunk=function(m){if(m){var I=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=I+m.data.length}o.prototype.processChunk.call(this,m)},W.exports=u},5301:(W,F,n)=>{var a=n(8910),o=n(3718);function u(m){o.call(this,"DataWorker");var I=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(p){I.dataIsReady=!0,I.data=p,I.max=p&&p.length||0,I.type=a.getTypeOf(p),I.isPaused||I._tickAndRepeat()},function(p){I.error(p)})}a.inherits(u,o),u.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},u.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},u.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=null,I=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":m=this.data.substring(this.index,I);break;case"uint8array":m=this.data.subarray(this.index,I);break;case"array":case"nodebuffer":m=this.data.slice(this.index,I)}return this.index=I,this.push({data:m,meta:{percent:this.max?this.index/this.max*100:0}})},W.exports=u},3718:W=>{function F(n){this.name=n||"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}F.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,a){return this._listeners[n].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,a){if(this._listeners[n])for(var o=0;o<this._listeners[n].length;o++)this._listeners[n][o].call(this,a)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var a=this;return n.on("data",function(o){a.processChunk(o)}),n.on("end",function(){a.end()}),n.on("error",function(o){a.error(o)}),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;this.isPaused=!1;var n=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,a){return this.extraStreamInfo[n]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},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 n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},W.exports=F},1285:(W,F,n)=>{var a=n(8910),o=n(4293),u=n(3718),m=n(8458),I=n(3790),p=n(8565),S=null;if(I.nodestream)try{S=n(1220)}catch{}function N(_,y,h){var l=y;switch(y){case"blob":case"arraybuffer":l="uint8array";break;case"base64":l="string"}try{this._internalType=l,this._outputType=y,this._mimeType=h,a.checkSupport(l),this._worker=_.pipe(new o(l)),_.lock()}catch(g){this._worker=new u("error"),this._worker.error(g)}}N.prototype={accumulate:function(_){return y=this,h=_,new p.Promise(function(l,g){var E=[],O=y._internalType,M=y._outputType,d=y._mimeType;y.on("data",function(b,C){E.push(b),h&&h(C)}).on("error",function(b){E=[],g(b)}).on("end",function(){try{var b=function(C,x,D){switch(C){case"blob":return a.newBlob(a.transformTo("arraybuffer",x),D);case"base64":return m.encode(x);default:return a.transformTo(C,x)}}(M,function(C,x){var D,r=0,B=null,Q=0;for(D=0;D<x.length;D++)Q+=x[D].length;switch(C){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(B=new Uint8Array(Q),D=0;D<x.length;D++)B.set(x[D],r),r+=x[D].length;return B;case"nodebuffer":return Buffer.concat(x);default:throw new Error("concat : unsupported type '"+C+"'")}}(O,E),d);l(b)}catch(C){g(C)}E=[]}).resume()});var y,h},on:function(_,y){var h=this;return _==="data"?this._worker.on(_,function(l){y.call(h,l.data,l.meta)}):this._worker.on(_,function(){a.delay(y,arguments,h)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},_)}},W.exports=N},3790:(W,F,n)=>{if(F.base64=!0,F.array=!0,F.string=!0,F.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",F.nodebuffer=typeof Buffer<"u",F.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")F.blob=!1;else{var a=new ArrayBuffer(0);try{F.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),F.blob=o.getBlob("application/zip").size===0}catch{F.blob=!1}}}try{F.nodestream=!!n(749).Readable}catch{F.nodestream=!1}},3600:(W,F,n)=>{for(var a=n(8910),o=n(3790),u=n(2182),m=n(3718),I=new Array(256),p=0;p<256;p++)I[p]=p>=252?6:p>=248?5:p>=240?4:p>=224?3:p>=192?2:1;function S(){m.call(this,"utf-8 decode"),this.leftOver=null}function N(){m.call(this,"utf-8 encode")}I[254]=I[254]=1,F.utf8encode=function(_){return o.nodebuffer?u.newBufferFrom(_,"utf-8"):function(y){var h,l,g,E,O,M=y.length,d=0;for(E=0;E<M;E++)(64512&(l=y.charCodeAt(E)))==55296&&E+1<M&&(64512&(g=y.charCodeAt(E+1)))==56320&&(l=65536+(l-55296<<10)+(g-56320),E++),d+=l<128?1:l<2048?2:l<65536?3:4;for(h=o.uint8array?new Uint8Array(d):new Array(d),O=0,E=0;O<d;E++)(64512&(l=y.charCodeAt(E)))==55296&&E+1<M&&(64512&(g=y.charCodeAt(E+1)))==56320&&(l=65536+(l-55296<<10)+(g-56320),E++),l<128?h[O++]=l:l<2048?(h[O++]=192|l>>>6,h[O++]=128|63&l):l<65536?(h[O++]=224|l>>>12,h[O++]=128|l>>>6&63,h[O++]=128|63&l):(h[O++]=240|l>>>18,h[O++]=128|l>>>12&63,h[O++]=128|l>>>6&63,h[O++]=128|63&l);return h}(_)},F.utf8decode=function(_){return o.nodebuffer?a.transformTo("nodebuffer",_).toString("utf-8"):function(y){var h,l,g,E,O=y.length,M=new Array(2*O);for(l=0,h=0;h<O;)if((g=y[h++])<128)M[l++]=g;else if((E=I[g])>4)M[l++]=65533,h+=E-1;else{for(g&=E===2?31:E===3?15:7;E>1&&h<O;)g=g<<6|63&y[h++],E--;E>1?M[l++]=65533:g<65536?M[l++]=g:(g-=65536,M[l++]=55296|g>>10&1023,M[l++]=56320|1023&g)}return M.length!==l&&(M.subarray?M=M.subarray(0,l):M.length=l),a.applyFromCharCode(M)}(_=a.transformTo(o.uint8array?"uint8array":"array",_))},a.inherits(S,m),S.prototype.processChunk=function(_){var y=a.transformTo(o.uint8array?"uint8array":"array",_.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var h=y;(y=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),y.set(h,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var l=function(E,O){var M;for((O=O||E.length)>E.length&&(O=E.length),M=O-1;M>=0&&(192&E[M])==128;)M--;return M<0||M===0?O:M+I[E[M]]>O?M:O}(y),g=y;l!==y.length&&(o.uint8array?(g=y.subarray(0,l),this.leftOver=y.subarray(l,y.length)):(g=y.slice(0,l),this.leftOver=y.slice(l,y.length))),this.push({data:F.utf8decode(g),meta:_.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:F.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},F.Utf8DecodeWorker=S,a.inherits(N,m),N.prototype.processChunk=function(_){this.push({data:F.utf8encode(_.data),meta:_.meta})},F.Utf8EncodeWorker=N},8910:(W,F,n)=>{var a=n(3790),o=n(8458),u=n(2182),m=n(8565);function I(h){return h}function p(h,l){for(var g=0;g<h.length;++g)l[g]=255&h.charCodeAt(g);return l}n(4889),F.newBlob=function(h,l){F.checkSupport("blob");try{return new Blob([h],{type:l})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(h),g.getBlob(l)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(h,l,g){var E=[],O=0,M=h.length;if(M<=g)return String.fromCharCode.apply(null,h);for(;O<M;)l==="array"||l==="nodebuffer"?E.push(String.fromCharCode.apply(null,h.slice(O,Math.min(O+g,M)))):E.push(String.fromCharCode.apply(null,h.subarray(O,Math.min(O+g,M)))),O+=g;return E.join("")},stringifyByChar:function(h){for(var l="",g=0;g<h.length;g++)l+=String.fromCharCode(h[g]);return l},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,u.allocBuffer(1)).length===1}catch{return!1}}()}};function N(h){var l=65536,g=F.getTypeOf(h),E=!0;if(g==="uint8array"?E=S.applyCanBeUsed.uint8array:g==="nodebuffer"&&(E=S.applyCanBeUsed.nodebuffer),E)for(;l>1;)try{return S.stringifyByChunk(h,g,l)}catch{l=Math.floor(l/2)}return S.stringifyByChar(h)}function _(h,l){for(var g=0;g<h.length;g++)l[g]=h[g];return l}F.applyFromCharCode=N;var y={};y.string={string:I,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return y.string.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:function(h){return p(h,u.allocBuffer(h.length))}},y.array={string:N,array:I,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return u.newBufferFrom(h)}},y.arraybuffer={string:function(h){return N(new Uint8Array(h))},array:function(h){return _(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:I,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return u.newBufferFrom(new Uint8Array(h))}},y.uint8array={string:N,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:I,nodebuffer:function(h){return u.newBufferFrom(h)}},y.nodebuffer={string:N,array:function(h){return _(h,new Array(h.length))},arraybuffer:function(h){return y.nodebuffer.uint8array(h).buffer},uint8array:function(h){return _(h,new Uint8Array(h.length))},nodebuffer:I},F.transformTo=function(h,l){if(l||(l=""),!h)return l;F.checkSupport(h);var g=F.getTypeOf(l);return y[g][h](l)},F.resolve=function(h){for(var l=h.split("/"),g=[],E=0;E<l.length;E++){var O=l[E];O==="."||O===""&&E!==0&&E!==l.length-1||(O===".."?g.pop():g.push(O))}return g.join("/")},F.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":a.nodebuffer&&u.isBuffer(h)?"nodebuffer":a.uint8array&&h instanceof Uint8Array?"uint8array":a.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},F.checkSupport=function(h){if(!a[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},F.MAX_VALUE_16BITS=65535,F.MAX_VALUE_32BITS=-1,F.pretty=function(h){var l,g,E="";for(g=0;g<(h||"").length;g++)E+="\\x"+((l=h.charCodeAt(g))<16?"0":"")+l.toString(16).toUpperCase();return E},F.delay=function(h,l,g){setImmediate(function(){h.apply(g||null,l||[])})},F.inherits=function(h,l){var g=function(){};g.prototype=l.prototype,h.prototype=new g},F.extend=function(){var h,l,g={};for(h=0;h<arguments.length;h++)for(l in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],l)&&g[l]===void 0&&(g[l]=arguments[h][l]);return g},F.prepareContent=function(h,l,g,E,O){return m.Promise.resolve(l).then(function(M){return a.blob&&(M instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(M))!==-1)&&typeof FileReader<"u"?new m.Promise(function(d,b){var C=new FileReader;C.onload=function(x){d(x.target.result)},C.onerror=function(x){b(x.target.error)},C.readAsArrayBuffer(M)}):M}).then(function(M){var d,b=F.getTypeOf(M);return b?(b==="arraybuffer"?M=F.transformTo("uint8array",M):b==="string"&&(O?M=o.decode(M):g&&E!==!0&&(M=p(d=M,a.uint8array?new Uint8Array(d.length):new Array(d.length)))),M):m.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},6624:(W,F,n)=>{var a=n(8435),o=n(8910),u=n(1141),m=n(9392),I=n(3790);function p(S){this.files=[],this.loadOptions=S}p.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var N=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(N)+", expected "+o.pretty(S)+")")}},isSignature:function(S,N){var _=this.reader.index;this.reader.setIndex(S);var y=this.reader.readString(4)===N;return this.reader.setIndex(_),y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),N=I.uint8array?"uint8array":"array",_=o.transformTo(N,S);this.zipComment=this.loadOptions.decodeFileName(_)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,N,_,y=this.zip64EndOfCentralSize-44;0<y;)S=this.reader.readInt(2),N=this.reader.readInt(4),_=this.reader.readData(N),this.zip64ExtensibleData[S]={id:S,length:N,value:_}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,N;for(S=0;S<this.files.length;S++)N=this.files[S],this.reader.setIndex(N.localHeaderOffset),this.checkSignature(u.LOCAL_FILE_HEADER),N.readLocalPart(this.reader),N.handleUTF8(),N.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(u.CENTRAL_FILE_HEADER);)(S=new m({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,u.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var N=S;if(this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,u.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(u.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(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var _=this.centralDirOffset+this.centralDirSize;this.zip64&&(_+=20,_+=12+this.zip64EndOfCentralSize);var y=N-_;if(y>0)this.isSignature(N,u.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(S){this.reader=a(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},W.exports=p},9392:(W,F,n)=>{var a=n(8435),o=n(8910),u=n(7326),m=n(6988),I=n(3600),p=n(1678),S=n(3790);function N(_,y){this.options=_,this.loadOptions=y}N.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(_){var y,h;if(_.skip(22),this.fileNameLength=_.readInt(2),h=_.readInt(2),this.fileName=_.readData(this.fileNameLength),_.skip(h),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((y=function(l){for(var g in p)if(Object.prototype.hasOwnProperty.call(p,g)&&p[g].magic===l)return p[g];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new u(this.compressedSize,this.uncompressedSize,this.crc32,y,_.readData(this.compressedSize))},readCentralPart:function(_){this.versionMadeBy=_.readInt(2),_.skip(2),this.bitFlag=_.readInt(2),this.compressionMethod=_.readString(2),this.date=_.readDate(),this.crc32=_.readInt(4),this.compressedSize=_.readInt(4),this.uncompressedSize=_.readInt(4);var y=_.readInt(2);if(this.extraFieldsLength=_.readInt(2),this.fileCommentLength=_.readInt(2),this.diskNumberStart=_.readInt(2),this.internalFileAttributes=_.readInt(2),this.externalFileAttributes=_.readInt(4),this.localHeaderOffset=_.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");_.skip(y),this.readExtraFields(_),this.parseZIP64ExtraField(_),this.fileComment=_.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var _=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),_===0&&(this.dosPermissions=63&this.externalFileAttributes),_===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var _=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=_.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=_.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=_.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=_.readInt(4))}},readExtraFields:function(_){var y,h,l,g=_.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});_.index+4<g;)y=_.readInt(2),h=_.readInt(2),l=_.readData(h),this.extraFields[y]={id:y,length:h,value:l};_.setIndex(g)},handleUTF8:function(){var _=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=I.utf8decode(this.fileName),this.fileCommentStr=I.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var h=o.transformTo(_,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var l=this.findExtraFieldUnicodeComment();if(l!==null)this.fileCommentStr=l;else{var g=o.transformTo(_,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var _=this.extraFields[28789];if(_){var y=a(_.value);return y.readInt(1)!==1||m(this.fileName)!==y.readInt(4)?null:I.utf8decode(y.readData(_.length-5))}return null},findExtraFieldUnicodeComment:function(){var _=this.extraFields[25461];if(_){var y=a(_.value);return y.readInt(1)!==1||m(this.fileComment)!==y.readInt(4)?null:I.utf8decode(y.readData(_.length-5))}return null}},W.exports=N},6859:(W,F,n)=>{var a=n(1285),o=n(5301),u=n(3600),m=n(7326),I=n(3718),p=function(y,h,l){this.name=y,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=h,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}};p.prototype={internalStream:function(y){var h=null,l="string";try{if(!y)throw new Error("No output type specified.");var g=(l=y.toLowerCase())==="string"||l==="text";l!=="binarystring"&&l!=="text"||(l="string"),h=this._decompressWorker();var E=!this._dataBinary;E&&!g&&(h=h.pipe(new u.Utf8EncodeWorker)),!E&&g&&(h=h.pipe(new u.Utf8DecodeWorker))}catch(O){(h=new I("error")).error(O)}return new a(h,l,"")},async:function(y,h){return this.internalStream(y).accumulate(h)},nodeStream:function(y,h){return this.internalStream(y||"nodebuffer").toNodejsStream(h)},_compressWorker:function(y,h){if(this._data instanceof m&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var l=this._decompressWorker();return this._dataBinary||(l=l.pipe(new u.Utf8EncodeWorker)),m.createWorkerFrom(l,y,h)},_decompressWorker:function(){return this._data instanceof m?this._data.getContentWorker():this._data instanceof I?this._data:new o(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],N=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},_=0;_<S.length;_++)p.prototype[S[_]]=N;W.exports=p},3389:(W,F,n)=>{var a=n(5705);function o(){}var u={},m=["REJECTED"],I=["FULFILLED"],p=["PENDING"];function S(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,g!==o&&h(this,g)}function N(g,E,O){this.promise=g,typeof E=="function"&&(this.onFulfilled=E,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function _(g,E,O){a(function(){var M;try{M=E(O)}catch(d){return u.reject(g,d)}M===g?u.reject(g,new TypeError("Cannot resolve promise with itself")):u.resolve(g,M)})}function y(g){var E=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof E=="function")return function(){E.apply(g,arguments)}}function h(g,E){var O=!1;function M(C){O||(O=!0,u.reject(g,C))}function d(C){O||(O=!0,u.resolve(g,C))}var b=l(function(){E(d,M)});b.status==="error"&&M(b.value)}function l(g,E){var O={};try{O.value=g(E),O.status="success"}catch(M){O.status="error",O.value=M}return O}W.exports=S,S.prototype.finally=function(g){if(typeof g!="function")return this;var E=this.constructor;return this.then(function(O){return E.resolve(g()).then(function(){return O})},function(O){return E.resolve(g()).then(function(){throw O})})},S.prototype.catch=function(g){return this.then(null,g)},S.prototype.then=function(g,E){if(typeof g!="function"&&this.state===I||typeof E!="function"&&this.state===m)return this;var O=new this.constructor(o);return this.state!==p?_(O,this.state===I?g:E,this.outcome):this.queue.push(new N(O,g,E)),O},N.prototype.callFulfilled=function(g){u.resolve(this.promise,g)},N.prototype.otherCallFulfilled=function(g){_(this.promise,this.onFulfilled,g)},N.prototype.callRejected=function(g){u.reject(this.promise,g)},N.prototype.otherCallRejected=function(g){_(this.promise,this.onRejected,g)},u.resolve=function(g,E){var O=l(y,E);if(O.status==="error")return u.reject(g,O.value);var M=O.value;if(M)h(g,M);else{g.state=I,g.outcome=E;for(var d=-1,b=g.queue.length;++d<b;)g.queue[d].callFulfilled(E)}return g},u.reject=function(g,E){g.state=m,g.outcome=E;for(var O=-1,M=g.queue.length;++O<M;)g.queue[O].callRejected(E);return g},S.resolve=function(g){return g instanceof this?g:u.resolve(new this(o),g)},S.reject=function(g){var E=new this(o);return u.reject(E,g)},S.all=function(g){var E=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=g.length,M=!1;if(!O)return this.resolve([]);for(var d=new Array(O),b=0,C=-1,x=new this(o);++C<O;)D(g[C],C);return x;function D(r,B){E.resolve(r).then(function(Q){d[B]=Q,++b!==O||M||(M=!0,u.resolve(x,d))},function(Q){M||(M=!0,u.reject(x,Q))})}},S.race=function(g){if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=g.length,O=!1;if(!E)return this.resolve([]);for(var M,d=-1,b=new this(o);++d<E;)M=g[d],this.resolve(M).then(function(C){O||(O=!0,u.resolve(b,C))},function(C){O||(O=!0,u.reject(b,C))});return b}},9591:(W,F,n)=>{var a={};(0,n(4236).assign)(a,n(4555),n(8843),n(1619)),W.exports=a},4555:(W,F,n)=>{var a=n(405),o=n(4236),u=n(9373),m=n(8898),I=n(2292),p=Object.prototype.toString;function S(_){if(!(this instanceof S))return new S(_);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},_||{});var y=this.options;y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var h=a.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(h!==0)throw new Error(m[h]);if(y.header&&a.deflateSetHeader(this.strm,y.header),y.dictionary){var l;if(l=typeof y.dictionary=="string"?u.string2buf(y.dictionary):p.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(h=a.deflateSetDictionary(this.strm,l))!==0)throw new Error(m[h]);this._dict_set=!0}}function N(_,y){var h=new S(y);if(h.push(_,!0),h.err)throw h.msg||m[h.err];return h.result}S.prototype.push=function(_,y){var h,l,g=this.strm,E=this.options.chunkSize;if(this.ended)return!1;l=y===~~y?y:y===!0?4:0,typeof _=="string"?g.input=u.string2buf(_):p.call(_)==="[object ArrayBuffer]"?g.input=new Uint8Array(_):g.input=_,g.next_in=0,g.avail_in=g.input.length;do{if(g.avail_out===0&&(g.output=new o.Buf8(E),g.next_out=0,g.avail_out=E),(h=a.deflate(g,l))!==1&&h!==0)return this.onEnd(h),this.ended=!0,!1;g.avail_out!==0&&(g.avail_in!==0||l!==4&&l!==2)||(this.options.to==="string"?this.onData(u.buf2binstring(o.shrinkBuf(g.output,g.next_out))):this.onData(o.shrinkBuf(g.output,g.next_out)))}while((g.avail_in>0||g.avail_out===0)&&h!==1);return l===4?(h=a.deflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===0):l!==2||(this.onEnd(0),g.avail_out=0,!0)},S.prototype.onData=function(_){this.chunks.push(_)},S.prototype.onEnd=function(_){_===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},F.Deflate=S,F.deflate=N,F.deflateRaw=function(_,y){return(y=y||{}).raw=!0,N(_,y)},F.gzip=function(_,y){return(y=y||{}).gzip=!0,N(_,y)}},8843:(W,F,n)=>{var a=n(7948),o=n(4236),u=n(9373),m=n(1619),I=n(8898),p=n(2292),S=n(2401),N=Object.prototype.toString;function _(h){if(!(this instanceof _))return new _(h);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},h||{});var l=this.options;l.raw&&l.windowBits>=0&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),!(l.windowBits>=0&&l.windowBits<16)||h&&h.windowBits||(l.windowBits+=32),l.windowBits>15&&l.windowBits<48&&!(15&l.windowBits)&&(l.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var g=a.inflateInit2(this.strm,l.windowBits);if(g!==m.Z_OK)throw new Error(I[g]);if(this.header=new S,a.inflateGetHeader(this.strm,this.header),l.dictionary&&(typeof l.dictionary=="string"?l.dictionary=u.string2buf(l.dictionary):N.call(l.dictionary)==="[object ArrayBuffer]"&&(l.dictionary=new Uint8Array(l.dictionary)),l.raw&&(g=a.inflateSetDictionary(this.strm,l.dictionary))!==m.Z_OK))throw new Error(I[g])}function y(h,l){var g=new _(l);if(g.push(h,!0),g.err)throw g.msg||I[g.err];return g.result}_.prototype.push=function(h,l){var g,E,O,M,d,b=this.strm,C=this.options.chunkSize,x=this.options.dictionary,D=!1;if(this.ended)return!1;E=l===~~l?l:l===!0?m.Z_FINISH:m.Z_NO_FLUSH,typeof h=="string"?b.input=u.binstring2buf(h):N.call(h)==="[object ArrayBuffer]"?b.input=new Uint8Array(h):b.input=h,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new o.Buf8(C),b.next_out=0,b.avail_out=C),(g=a.inflate(b,m.Z_NO_FLUSH))===m.Z_NEED_DICT&&x&&(g=a.inflateSetDictionary(this.strm,x)),g===m.Z_BUF_ERROR&&D===!0&&(g=m.Z_OK,D=!1),g!==m.Z_STREAM_END&&g!==m.Z_OK)return this.onEnd(g),this.ended=!0,!1;b.next_out&&(b.avail_out!==0&&g!==m.Z_STREAM_END&&(b.avail_in!==0||E!==m.Z_FINISH&&E!==m.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=u.utf8border(b.output,b.next_out),M=b.next_out-O,d=u.buf2string(b.output,O),b.next_out=M,b.avail_out=C-M,M&&o.arraySet(b.output,b.output,O,M,0),this.onData(d)):this.onData(o.shrinkBuf(b.output,b.next_out)))),b.avail_in===0&&b.avail_out===0&&(D=!0)}while((b.avail_in>0||b.avail_out===0)&&g!==m.Z_STREAM_END);return g===m.Z_STREAM_END&&(E=m.Z_FINISH),E===m.Z_FINISH?(g=a.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===m.Z_OK):E!==m.Z_SYNC_FLUSH||(this.onEnd(m.Z_OK),b.avail_out=0,!0)},_.prototype.onData=function(h){this.chunks.push(h)},_.prototype.onEnd=function(h){h===m.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},F.Inflate=_,F.inflate=y,F.inflateRaw=function(h,l){return(l=l||{}).raw=!0,y(h,l)},F.ungzip=y},4236:(W,F)=>{var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(m,I){return Object.prototype.hasOwnProperty.call(m,I)}F.assign=function(m){for(var I=Array.prototype.slice.call(arguments,1);I.length;){var p=I.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var S in p)a(p,S)&&(m[S]=p[S])}}return m},F.shrinkBuf=function(m,I){return m.length===I?m:m.subarray?m.subarray(0,I):(m.length=I,m)};var o={arraySet:function(m,I,p,S,N){if(I.subarray&&m.subarray)m.set(I.subarray(p,p+S),N);else for(var _=0;_<S;_++)m[N+_]=I[p+_]},flattenChunks:function(m){var I,p,S,N,_,y;for(S=0,I=0,p=m.length;I<p;I++)S+=m[I].length;for(y=new Uint8Array(S),N=0,I=0,p=m.length;I<p;I++)_=m[I],y.set(_,N),N+=_.length;return y}},u={arraySet:function(m,I,p,S,N){for(var _=0;_<S;_++)m[N+_]=I[p+_]},flattenChunks:function(m){return[].concat.apply([],m)}};F.setTyped=function(m){m?(F.Buf8=Uint8Array,F.Buf16=Uint16Array,F.Buf32=Int32Array,F.assign(F,o)):(F.Buf8=Array,F.Buf16=Array,F.Buf32=Array,F.assign(F,u))},F.setTyped(n)},9373:(W,F,n)=>{var a=n(4236),o=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var m=new a.Buf8(256),I=0;I<256;I++)m[I]=I>=252?6:I>=248?5:I>=240?4:I>=224?3:I>=192?2:1;function p(S,N){if(N<65534&&(S.subarray&&u||!S.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(S,N));for(var _="",y=0;y<N;y++)_+=String.fromCharCode(S[y]);return _}m[254]=m[254]=1,F.string2buf=function(S){var N,_,y,h,l,g=S.length,E=0;for(h=0;h<g;h++)(64512&(_=S.charCodeAt(h)))==55296&&h+1<g&&(64512&(y=S.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),h++),E+=_<128?1:_<2048?2:_<65536?3:4;for(N=new a.Buf8(E),l=0,h=0;l<E;h++)(64512&(_=S.charCodeAt(h)))==55296&&h+1<g&&(64512&(y=S.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),h++),_<128?N[l++]=_:_<2048?(N[l++]=192|_>>>6,N[l++]=128|63&_):_<65536?(N[l++]=224|_>>>12,N[l++]=128|_>>>6&63,N[l++]=128|63&_):(N[l++]=240|_>>>18,N[l++]=128|_>>>12&63,N[l++]=128|_>>>6&63,N[l++]=128|63&_);return N},F.buf2binstring=function(S){return p(S,S.length)},F.binstring2buf=function(S){for(var N=new a.Buf8(S.length),_=0,y=N.length;_<y;_++)N[_]=S.charCodeAt(_);return N},F.buf2string=function(S,N){var _,y,h,l,g=N||S.length,E=new Array(2*g);for(y=0,_=0;_<g;)if((h=S[_++])<128)E[y++]=h;else if((l=m[h])>4)E[y++]=65533,_+=l-1;else{for(h&=l===2?31:l===3?15:7;l>1&&_<g;)h=h<<6|63&S[_++],l--;l>1?E[y++]=65533:h<65536?E[y++]=h:(h-=65536,E[y++]=55296|h>>10&1023,E[y++]=56320|1023&h)}return p(E,y)},F.utf8border=function(S,N){var _;for((N=N||S.length)>S.length&&(N=S.length),_=N-1;_>=0&&(192&S[_])==128;)_--;return _<0||_===0?N:_+m[S[_]]>N?_:N}},6069:W=>{W.exports=function(F,n,a,o){for(var u=65535&F|0,m=F>>>16&65535|0,I=0;a!==0;){a-=I=a>2e3?2e3:a;do m=m+(u=u+n[o++]|0)|0;while(--I);u%=65521,m%=65521}return u|m<<16|0}},1619:W=>{W.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}},2869:W=>{var F=function(){for(var n,a=[],o=0;o<256;o++){n=o;for(var u=0;u<8;u++)n=1&n?3988292384^n>>>1:n>>>1;a[o]=n}return a}();W.exports=function(n,a,o,u){var m=F,I=u+o;n^=-1;for(var p=u;p<I;p++)n=n>>>8^m[255&(n^a[p])];return-1^n}},405:(W,F,n)=>{var a,o=n(4236),u=n(342),m=n(6069),I=n(2869),p=n(8898),S=-2,N=258,_=262,y=103,h=113,l=666;function g(c,A){return c.msg=p[A],A}function E(c){return(c<<1)-(c>4?9:0)}function O(c){for(var A=c.length;--A>=0;)c[A]=0}function M(c){var A=c.state,U=A.pending;U>c.avail_out&&(U=c.avail_out),U!==0&&(o.arraySet(c.output,A.pending_buf,A.pending_out,U,c.next_out),c.next_out+=U,A.pending_out+=U,c.total_out+=U,c.avail_out-=U,A.pending-=U,A.pending===0&&(A.pending_out=0))}function d(c,A){u._tr_flush_block(c,c.block_start>=0?c.block_start:-1,c.strstart-c.block_start,A),c.block_start=c.strstart,M(c.strm)}function b(c,A){c.pending_buf[c.pending++]=A}function C(c,A){c.pending_buf[c.pending++]=A>>>8&255,c.pending_buf[c.pending++]=255&A}function x(c,A){var U,k,q=c.max_chain_length,P=c.strstart,z=c.prev_length,V=c.nice_match,$=c.strstart>c.w_size-_?c.strstart-(c.w_size-_):0,K=c.window,T=c.w_mask,i=c.prev,v=c.strstart+N,L=K[P+z-1],Y=K[P+z];c.prev_length>=c.good_match&&(q>>=2),V>c.lookahead&&(V=c.lookahead);do if(K[(U=A)+z]===Y&&K[U+z-1]===L&&K[U]===K[P]&&K[++U]===K[P+1]){P+=2,U++;do;while(K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&K[++P]===K[++U]&&P<v);if(k=N-(v-P),P=v-N,k>z){if(c.match_start=A,z=k,k>=V)break;L=K[P+z-1],Y=K[P+z]}}while((A=i[A&T])>$&&--q!=0);return z<=c.lookahead?z:c.lookahead}function D(c){var A,U,k,q,P,z,V,$,K,T,i=c.w_size;do{if(q=c.window_size-c.lookahead-c.strstart,c.strstart>=i+(i-_)){o.arraySet(c.window,c.window,i,i,0),c.match_start-=i,c.strstart-=i,c.block_start-=i,A=U=c.hash_size;do k=c.head[--A],c.head[A]=k>=i?k-i:0;while(--U);A=U=i;do k=c.prev[--A],c.prev[A]=k>=i?k-i:0;while(--U);q+=i}if(c.strm.avail_in===0)break;if(z=c.strm,V=c.window,$=c.strstart+c.lookahead,K=q,T=void 0,(T=z.avail_in)>K&&(T=K),U=T===0?0:(z.avail_in-=T,o.arraySet(V,z.input,z.next_in,T,$),z.state.wrap===1?z.adler=m(z.adler,V,T,$):z.state.wrap===2&&(z.adler=I(z.adler,V,T,$)),z.next_in+=T,z.total_in+=T,T),c.lookahead+=U,c.lookahead+c.insert>=3)for(P=c.strstart-c.insert,c.ins_h=c.window[P],c.ins_h=(c.ins_h<<c.hash_shift^c.window[P+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[P+3-1])&c.hash_mask,c.prev[P&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=P,P++,c.insert--,!(c.lookahead+c.insert<3)););}while(c.lookahead<_&&c.strm.avail_in!==0)}function r(c,A){for(var U,k;;){if(c.lookahead<_){if(D(c),c.lookahead<_&&A===0)return 1;if(c.lookahead===0)break}if(U=0,c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),U!==0&&c.strstart-U<=c.w_size-_&&(c.match_length=x(c,U)),c.match_length>=3)if(k=u._tr_tally(c,c.strstart-c.match_start,c.match_length-3),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=3){c.match_length--;do c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart;while(--c.match_length!=0);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else k=u._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(k&&(d(c,!1),c.strm.avail_out===0))return 1}return c.insert=c.strstart<2?c.strstart:2,A===4?(d(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(d(c,!1),c.strm.avail_out===0)?1:2}function B(c,A){for(var U,k,q;;){if(c.lookahead<_){if(D(c),c.lookahead<_&&A===0)return 1;if(c.lookahead===0)break}if(U=0,c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=2,U!==0&&c.prev_length<c.max_lazy_match&&c.strstart-U<=c.w_size-_&&(c.match_length=x(c,U),c.match_length<=5&&(c.strategy===1||c.match_length===3&&c.strstart-c.match_start>4096)&&(c.match_length=2)),c.prev_length>=3&&c.match_length<=c.prev_length){q=c.strstart+c.lookahead-3,k=u._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-3),c.lookahead-=c.prev_length-1,c.prev_length-=2;do++c.strstart<=q&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,U=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart);while(--c.prev_length!=0);if(c.match_available=0,c.match_length=2,c.strstart++,k&&(d(c,!1),c.strm.avail_out===0))return 1}else if(c.match_available){if((k=u._tr_tally(c,0,c.window[c.strstart-1]))&&d(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return 1}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(k=u._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<2?c.strstart:2,A===4?(d(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(d(c,!1),c.strm.avail_out===0)?1:2}function Q(c,A,U,k,q){this.good_length=c,this.max_lazy=A,this.nice_length=U,this.max_chain=k,this.func=q}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),O(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 lt(c){var A;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=2,(A=c.state).pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?42:h,c.adler=A.wrap===2?0:1,A.last_flush=0,u._tr_init(A),0):g(c,S)}function rt(c){var A,U=lt(c);return U===0&&((A=c.state).window_size=2*A.w_size,O(A.head),A.max_lazy_match=a[A.level].max_lazy,A.good_match=a[A.level].good_length,A.nice_match=a[A.level].nice_length,A.max_chain_length=a[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0),U}function at(c,A,U,k,q,P){if(!c)return S;var z=1;if(A===-1&&(A=6),k<0?(z=0,k=-k):k>15&&(z=2,k-=16),q<1||q>9||U!==8||k<8||k>15||A<0||A>9||P<0||P>4)return g(c,S);k===8&&(k=9);var V=new G;return c.state=V,V.strm=c,V.wrap=z,V.gzhead=null,V.w_bits=k,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=q+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+3-1)/3),V.window=new o.Buf8(2*V.w_size),V.head=new o.Buf16(V.hash_size),V.prev=new o.Buf16(V.w_size),V.lit_bufsize=1<<q+6,V.pending_buf_size=4*V.lit_bufsize,V.pending_buf=new o.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=A,V.strategy=P,V.method=U,rt(c)}a=[new Q(0,0,0,0,function(c,A){var U=65535;for(U>c.pending_buf_size-5&&(U=c.pending_buf_size-5);;){if(c.lookahead<=1){if(D(c),c.lookahead===0&&A===0)return 1;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var k=c.block_start+U;if((c.strstart===0||c.strstart>=k)&&(c.lookahead=c.strstart-k,c.strstart=k,d(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-_&&(d(c,!1),c.strm.avail_out===0))return 1}return c.insert=0,A===4?(d(c,!0),c.strm.avail_out===0?3:4):(c.strstart>c.block_start&&(d(c,!1),c.strm.avail_out),1)}),new Q(4,4,8,4,r),new Q(4,5,16,8,r),new Q(4,6,32,32,r),new Q(4,4,16,16,B),new Q(8,16,32,32,B),new Q(8,16,128,128,B),new Q(8,32,128,256,B),new Q(32,128,258,1024,B),new Q(32,258,258,4096,B)],F.deflateInit=function(c,A){return at(c,A,8,15,8,0)},F.deflateInit2=at,F.deflateReset=rt,F.deflateResetKeep=lt,F.deflateSetHeader=function(c,A){return c&&c.state?c.state.wrap!==2?S:(c.state.gzhead=A,0):S},F.deflate=function(c,A){var U,k,q,P;if(!c||!c.state||A>5||A<0)return c?g(c,S):S;if(k=c.state,!c.output||!c.input&&c.avail_in!==0||k.status===l&&A!==4)return g(c,c.avail_out===0?-5:S);if(k.strm=c,U=k.last_flush,k.last_flush=A,k.status===42)if(k.wrap===2)c.adler=0,b(k,31),b(k,139),b(k,8),k.gzhead?(b(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),b(k,255&k.gzhead.time),b(k,k.gzhead.time>>8&255),b(k,k.gzhead.time>>16&255),b(k,k.gzhead.time>>24&255),b(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),b(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(b(k,255&k.gzhead.extra.length),b(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(c.adler=I(c.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(b(k,0),b(k,0),b(k,0),b(k,0),b(k,0),b(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),b(k,3),k.status=h);else{var z=8+(k.w_bits-8<<4)<<8;z|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6,k.strstart!==0&&(z|=32),z+=31-z%31,k.status=h,C(k,z),k.strstart!==0&&(C(k,c.adler>>>16),C(k,65535&c.adler)),c.adler=1}if(k.status===69)if(k.gzhead.extra){for(q=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending!==k.pending_buf_size));)b(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){q=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending===k.pending_buf_size)){P=1;break}P=k.gzindex<k.gzhead.name.length?255&k.gzhead.name.charCodeAt(k.gzindex++):0,b(k,P)}while(P!==0);k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),P===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===91)if(k.gzhead.comment){q=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),M(c),q=k.pending,k.pending===k.pending_buf_size)){P=1;break}P=k.gzindex<k.gzhead.comment.length?255&k.gzhead.comment.charCodeAt(k.gzindex++):0,b(k,P)}while(P!==0);k.gzhead.hcrc&&k.pending>q&&(c.adler=I(c.adler,k.pending_buf,k.pending-q,q)),P===0&&(k.status=y)}else k.status=y;if(k.status===y&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&M(c),k.pending+2<=k.pending_buf_size&&(b(k,255&c.adler),b(k,c.adler>>8&255),c.adler=0,k.status=h)):k.status=h),k.pending!==0){if(M(c),c.avail_out===0)return k.last_flush=-1,0}else if(c.avail_in===0&&E(A)<=E(U)&&A!==4)return g(c,-5);if(k.status===l&&c.avail_in!==0)return g(c,-5);if(c.avail_in!==0||k.lookahead!==0||A!==0&&k.status!==l){var V=k.strategy===2?function($,K){for(var T;;){if($.lookahead===0&&(D($),$.lookahead===0)){if(K===0)return 1;break}if($.match_length=0,T=u._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,T&&(d($,!1),$.strm.avail_out===0))return 1}return $.insert=0,K===4?(d($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(d($,!1),$.strm.avail_out===0)?1:2}(k,A):k.strategy===3?function($,K){for(var T,i,v,L,Y=$.window;;){if($.lookahead<=N){if(D($),$.lookahead<=N&&K===0)return 1;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=3&&$.strstart>0&&(i=Y[v=$.strstart-1])===Y[++v]&&i===Y[++v]&&i===Y[++v]){L=$.strstart+N;do;while(i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&i===Y[++v]&&v<L);$.match_length=N-(L-v),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=3?(T=u._tr_tally($,1,$.match_length-3),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(T=u._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),T&&(d($,!1),$.strm.avail_out===0))return 1}return $.insert=0,K===4?(d($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(d($,!1),$.strm.avail_out===0)?1:2}(k,A):a[k.level].func(k,A);if(V!==3&&V!==4||(k.status=l),V===1||V===3)return c.avail_out===0&&(k.last_flush=-1),0;if(V===2&&(A===1?u._tr_align(k):A!==5&&(u._tr_stored_block(k,0,0,!1),A===3&&(O(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),M(c),c.avail_out===0))return k.last_flush=-1,0}return A!==4?0:k.wrap<=0?1:(k.wrap===2?(b(k,255&c.adler),b(k,c.adler>>8&255),b(k,c.adler>>16&255),b(k,c.adler>>24&255),b(k,255&c.total_in),b(k,c.total_in>>8&255),b(k,c.total_in>>16&255),b(k,c.total_in>>24&255)):(C(k,c.adler>>>16),C(k,65535&c.adler)),M(c),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?0:1)},F.deflateEnd=function(c){var A;return c&&c.state?(A=c.state.status)!==42&&A!==69&&A!==73&&A!==91&&A!==y&&A!==h&&A!==l?g(c,S):(c.state=null,A===h?g(c,-3):0):S},F.deflateSetDictionary=function(c,A){var U,k,q,P,z,V,$,K,T=A.length;if(!c||!c.state||(P=(U=c.state).wrap)===2||P===1&&U.status!==42||U.lookahead)return S;for(P===1&&(c.adler=m(c.adler,A,T,0)),U.wrap=0,T>=U.w_size&&(P===0&&(O(U.head),U.strstart=0,U.block_start=0,U.insert=0),K=new o.Buf8(U.w_size),o.arraySet(K,A,T-U.w_size,U.w_size,0),A=K,T=U.w_size),z=c.avail_in,V=c.next_in,$=c.input,c.avail_in=T,c.next_in=0,c.input=A,D(U);U.lookahead>=3;){k=U.strstart,q=U.lookahead-2;do U.ins_h=(U.ins_h<<U.hash_shift^U.window[k+3-1])&U.hash_mask,U.prev[k&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=k,k++;while(--q);U.strstart=k,U.lookahead=2,D(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=2,U.match_available=0,c.next_in=V,c.input=$,c.avail_in=z,U.wrap=P,0},F.deflateInfo="pako deflate (from Nodeca project)"},2401:W=>{W.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}},4264:W=>{W.exports=function(F,n){var a,o,u,m,I,p,S,N,_,y,h,l,g,E,O,M,d,b,C,x,D,r,B,Q,G;a=F.state,o=F.next_in,Q=F.input,u=o+(F.avail_in-5),m=F.next_out,G=F.output,I=m-(n-F.avail_out),p=m+(F.avail_out-257),S=a.dmax,N=a.wsize,_=a.whave,y=a.wnext,h=a.window,l=a.hold,g=a.bits,E=a.lencode,O=a.distcode,M=(1<<a.lenbits)-1,d=(1<<a.distbits)-1;t:do{g<15&&(l+=Q[o++]<<g,g+=8,l+=Q[o++]<<g,g+=8),b=E[l&M];e:for(;;){if(l>>>=C=b>>>24,g-=C,(C=b>>>16&255)==0)G[m++]=65535&b;else{if(!(16&C)){if(!(64&C)){b=E[(65535&b)+(l&(1<<C)-1)];continue e}if(32&C){a.mode=12;break t}F.msg="invalid literal/length code",a.mode=30;break t}x=65535&b,(C&=15)&&(g<C&&(l+=Q[o++]<<g,g+=8),x+=l&(1<<C)-1,l>>>=C,g-=C),g<15&&(l+=Q[o++]<<g,g+=8,l+=Q[o++]<<g,g+=8),b=O[l&d];r:for(;;){if(l>>>=C=b>>>24,g-=C,!(16&(C=b>>>16&255))){if(!(64&C)){b=O[(65535&b)+(l&(1<<C)-1)];continue r}F.msg="invalid distance code",a.mode=30;break t}if(D=65535&b,g<(C&=15)&&(l+=Q[o++]<<g,(g+=8)<C&&(l+=Q[o++]<<g,g+=8)),(D+=l&(1<<C)-1)>S){F.msg="invalid distance too far back",a.mode=30;break t}if(l>>>=C,g-=C,D>(C=m-I)){if((C=D-C)>_&&a.sane){F.msg="invalid distance too far back",a.mode=30;break t}if(r=0,B=h,y===0){if(r+=N-C,C<x){x-=C;do G[m++]=h[r++];while(--C);r=m-D,B=G}}else if(y<C){if(r+=N+y-C,(C-=y)<x){x-=C;do G[m++]=h[r++];while(--C);if(r=0,y<x){x-=C=y;do G[m++]=h[r++];while(--C);r=m-D,B=G}}}else if(r+=y-C,C<x){x-=C;do G[m++]=h[r++];while(--C);r=m-D,B=G}for(;x>2;)G[m++]=B[r++],G[m++]=B[r++],G[m++]=B[r++],x-=3;x&&(G[m++]=B[r++],x>1&&(G[m++]=B[r++]))}else{r=m-D;do G[m++]=G[r++],G[m++]=G[r++],G[m++]=G[r++],x-=3;while(x>2);x&&(G[m++]=G[r++],x>1&&(G[m++]=G[r++]))}break}}break}}while(o<u&&m<p);o-=x=g>>3,l&=(1<<(g-=x<<3))-1,F.next_in=o,F.next_out=m,F.avail_in=o<u?u-o+5:5-(o-u),F.avail_out=m<p?p-m+257:257-(m-p),a.hold=l,a.bits=g}},7948:(W,F,n)=>{var a=n(4236),o=n(6069),u=n(2869),m=n(4264),I=n(9241),p=-2,S=12,N=30;function _(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<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 a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(x){var D;return x&&x.state?(D=x.state,x.total_in=x.total_out=D.total=0,x.msg="",D.wrap&&(x.adler=1&D.wrap),D.mode=1,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new a.Buf32(852),D.distcode=D.distdyn=new a.Buf32(592),D.sane=1,D.back=-1,0):p}function l(x){var D;return x&&x.state?((D=x.state).wsize=0,D.whave=0,D.wnext=0,h(x)):p}function g(x,D){var r,B;return x&&x.state?(B=x.state,D<0?(r=0,D=-D):(r=1+(D>>4),D<48&&(D&=15)),D&&(D<8||D>15)?p:(B.window!==null&&B.wbits!==D&&(B.window=null),B.wrap=r,B.wbits=D,l(x))):p}function E(x,D){var r,B;return x?(B=new y,x.state=B,B.window=null,(r=g(x,D))!==0&&(x.state=null),r):p}var O,M,d=!0;function b(x){if(d){var D;for(O=new a.Buf32(512),M=new a.Buf32(32),D=0;D<144;)x.lens[D++]=8;for(;D<256;)x.lens[D++]=9;for(;D<280;)x.lens[D++]=7;for(;D<288;)x.lens[D++]=8;for(I(1,x.lens,0,288,O,0,x.work,{bits:9}),D=0;D<32;)x.lens[D++]=5;I(2,x.lens,0,32,M,0,x.work,{bits:5}),d=!1}x.lencode=O,x.lenbits=9,x.distcode=M,x.distbits=5}function C(x,D,r,B){var Q,G=x.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new a.Buf8(G.wsize)),B>=G.wsize?(a.arraySet(G.window,D,r-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):((Q=G.wsize-G.wnext)>B&&(Q=B),a.arraySet(G.window,D,r-B,Q,G.wnext),(B-=Q)?(a.arraySet(G.window,D,r-B,B,0),G.wnext=B,G.whave=G.wsize):(G.wnext+=Q,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=Q))),0}F.inflateReset=l,F.inflateReset2=g,F.inflateResetKeep=h,F.inflateInit=function(x){return E(x,15)},F.inflateInit2=E,F.inflate=function(x,D){var r,B,Q,G,lt,rt,at,c,A,U,k,q,P,z,V,$,K,T,i,v,L,Y,st,ht,nt=0,it=new a.Buf8(4),gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return p;(r=x.state).mode===S&&(r.mode=13),lt=x.next_out,Q=x.output,at=x.avail_out,G=x.next_in,B=x.input,rt=x.avail_in,c=r.hold,A=r.bits,U=rt,k=at,Y=0;t:for(;;)switch(r.mode){case 1:if(r.wrap===0){r.mode=13;break}for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(2&r.wrap&&c===35615){r.check=0,it[0]=255&c,it[1]=c>>>8&255,r.check=u(r.check,it,2,0),c=0,A=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){x.msg="incorrect header check",r.mode=N;break}if((15&c)!=8){x.msg="unknown compression method",r.mode=N;break}if(A-=4,L=8+(15&(c>>>=4)),r.wbits===0)r.wbits=L;else if(L>r.wbits){x.msg="invalid window size",r.mode=N;break}r.dmax=1<<L,x.adler=r.check=1,r.mode=512&c?10:S,c=0,A=0;break;case 2:for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(r.flags=c,(255&r.flags)!=8){x.msg="unknown compression method",r.mode=N;break}if(57344&r.flags){x.msg="unknown header flags set",r.mode=N;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(it[0]=255&c,it[1]=c>>>8&255,r.check=u(r.check,it,2,0)),c=0,A=0,r.mode=3;case 3:for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.head&&(r.head.time=c),512&r.flags&&(it[0]=255&c,it[1]=c>>>8&255,it[2]=c>>>16&255,it[3]=c>>>24&255,r.check=u(r.check,it,4,0)),c=0,A=0,r.mode=4;case 4:for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(it[0]=255&c,it[1]=c>>>8&255,r.check=u(r.check,it,2,0)),c=0,A=0,r.mode=5;case 5:if(1024&r.flags){for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(it[0]=255&c,it[1]=c>>>8&255,r.check=u(r.check,it,2,0)),c=0,A=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((q=r.length)>rt&&(q=rt),q&&(r.head&&(L=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),a.arraySet(r.head.extra,B,G,q,L)),512&r.flags&&(r.check=u(r.check,B,q,G)),rt-=q,G+=q,r.length-=q),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(rt===0)break t;q=0;do L=B[G+q++],r.head&&L&&r.length<65536&&(r.head.name+=String.fromCharCode(L));while(L&&q<rt);if(512&r.flags&&(r.check=u(r.check,B,q,G)),rt-=q,G+=q,L)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(rt===0)break t;q=0;do L=B[G+q++],r.head&&L&&r.length<65536&&(r.head.comment+=String.fromCharCode(L));while(L&&q<rt);if(512&r.flags&&(r.check=u(r.check,B,q,G)),rt-=q,G+=q,L)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;A<16;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c!==(65535&r.check)){x.msg="header crc mismatch",r.mode=N;break}c=0,A=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),x.adler=r.check=0,r.mode=S;break;case 10:for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}x.adler=r.check=_(c),c=0,A=0,r.mode=11;case 11:if(r.havedict===0)return x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,r.hold=c,r.bits=A,2;x.adler=r.check=1,r.mode=S;case S:if(D===5||D===6)break t;case 13:if(r.last){c>>>=7&A,A-=7&A,r.mode=27;break}for(;A<3;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}switch(r.last=1&c,A-=1,3&(c>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,D===6){c>>>=2,A-=2;break t}break;case 2:r.mode=17;break;case 3:x.msg="invalid block type",r.mode=N}c>>>=2,A-=2;break;case 14:for(c>>>=7&A,A-=7&A;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if((65535&c)!=(c>>>16^65535)){x.msg="invalid stored block lengths",r.mode=N;break}if(r.length=65535&c,c=0,A=0,r.mode=15,D===6)break t;case 15:r.mode=16;case 16:if(q=r.length){if(q>rt&&(q=rt),q>at&&(q=at),q===0)break t;a.arraySet(Q,B,G,q,lt),rt-=q,G+=q,at-=q,lt+=q,r.length-=q;break}r.mode=S;break;case 17:for(;A<14;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(r.nlen=257+(31&c),c>>>=5,A-=5,r.ndist=1+(31&c),c>>>=5,A-=5,r.ncode=4+(15&c),c>>>=4,A-=4,r.nlen>286||r.ndist>30){x.msg="too many length or distance symbols",r.mode=N;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;A<3;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.lens[gt[r.have++]]=7&c,c>>>=3,A-=3}for(;r.have<19;)r.lens[gt[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,st={bits:r.lenbits},Y=I(0,r.lens,0,19,r.lencode,0,r.work,st),r.lenbits=st.bits,Y){x.msg="invalid code lengths set",r.mode=N;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;$=(nt=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(K<16)c>>>=V,A-=V,r.lens[r.have++]=K;else{if(K===16){for(ht=V+2;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c>>>=V,A-=V,r.have===0){x.msg="invalid bit length repeat",r.mode=N;break}L=r.lens[r.have-1],q=3+(3&c),c>>>=2,A-=2}else if(K===17){for(ht=V+3;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}A-=V,L=0,q=3+(7&(c>>>=V)),c>>>=3,A-=3}else{for(ht=V+7;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}A-=V,L=0,q=11+(127&(c>>>=V)),c>>>=7,A-=7}if(r.have+q>r.nlen+r.ndist){x.msg="invalid bit length repeat",r.mode=N;break}for(;q--;)r.lens[r.have++]=L}}if(r.mode===N)break;if(r.lens[256]===0){x.msg="invalid code -- missing end-of-block",r.mode=N;break}if(r.lenbits=9,st={bits:r.lenbits},Y=I(1,r.lens,0,r.nlen,r.lencode,0,r.work,st),r.lenbits=st.bits,Y){x.msg="invalid literal/lengths set",r.mode=N;break}if(r.distbits=6,r.distcode=r.distdyn,st={bits:r.distbits},Y=I(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,st),r.distbits=st.bits,Y){x.msg="invalid distances set",r.mode=N;break}if(r.mode=20,D===6)break t;case 20:r.mode=21;case 21:if(rt>=6&&at>=258){x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,r.hold=c,r.bits=A,m(x,k),lt=x.next_out,Q=x.output,at=x.avail_out,G=x.next_in,B=x.input,rt=x.avail_in,c=r.hold,A=r.bits,r.mode===S&&(r.back=-1);break}for(r.back=0;$=(nt=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if($&&!(240&$)){for(T=V,i=$,v=K;$=(nt=r.lencode[v+((c&(1<<T+i)-1)>>T)])>>>16&255,K=65535&nt,!(T+(V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}c>>>=T,A-=T,r.back+=T}if(c>>>=V,A-=V,r.back+=V,r.length=K,$===0){r.mode=26;break}if(32&$){r.back=-1,r.mode=S;break}if(64&$){x.msg="invalid literal/length code",r.mode=N;break}r.extra=15&$,r.mode=22;case 22:if(r.extra){for(ht=r.extra;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,A-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;$=(nt=r.distcode[c&(1<<r.distbits)-1])>>>16&255,K=65535&nt,!((V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(!(240&$)){for(T=V,i=$,v=K;$=(nt=r.distcode[v+((c&(1<<T+i)-1)>>T)])>>>16&255,K=65535&nt,!(T+(V=nt>>>24)<=A);){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}c>>>=T,A-=T,r.back+=T}if(c>>>=V,A-=V,r.back+=V,64&$){x.msg="invalid distance code",r.mode=N;break}r.offset=K,r.extra=15&$,r.mode=24;case 24:if(r.extra){for(ht=r.extra;A<ht;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,A-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){x.msg="invalid distance too far back",r.mode=N;break}r.mode=25;case 25:if(at===0)break t;if(q=k-at,r.offset>q){if((q=r.offset-q)>r.whave&&r.sane){x.msg="invalid distance too far back",r.mode=N;break}q>r.wnext?(q-=r.wnext,P=r.wsize-q):P=r.wnext-q,q>r.length&&(q=r.length),z=r.window}else z=Q,P=lt-r.offset,q=r.length;q>at&&(q=at),at-=q,r.length-=q;do Q[lt++]=z[P++];while(--q);r.length===0&&(r.mode=21);break;case 26:if(at===0)break t;Q[lt++]=r.length,at--,r.mode=21;break;case 27:if(r.wrap){for(;A<32;){if(rt===0)break t;rt--,c|=B[G++]<<A,A+=8}if(k-=at,x.total_out+=k,r.total+=k,k&&(x.adler=r.check=r.flags?u(r.check,Q,k,lt-k):o(r.check,Q,k,lt-k)),k=at,(r.flags?c:_(c))!==r.check){x.msg="incorrect data check",r.mode=N;break}c=0,A=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;A<32;){if(rt===0)break t;rt--,c+=B[G++]<<A,A+=8}if(c!==(4294967295&r.total)){x.msg="incorrect length check",r.mode=N;break}c=0,A=0}r.mode=29;case 29:Y=1;break t;case N:Y=-3;break t;case 31:return-4;default:return p}return x.next_out=lt,x.avail_out=at,x.next_in=G,x.avail_in=rt,r.hold=c,r.bits=A,(r.wsize||k!==x.avail_out&&r.mode<N&&(r.mode<27||D!==4))&&C(x,x.output,x.next_out,k-x.avail_out)?(r.mode=31,-4):(U-=x.avail_in,k-=x.avail_out,x.total_in+=U,x.total_out+=k,r.total+=k,r.wrap&&k&&(x.adler=r.check=r.flags?u(r.check,Q,k,x.next_out-k):o(r.check,Q,k,x.next_out-k)),x.data_type=r.bits+(r.last?64:0)+(r.mode===S?128:0)+(r.mode===20||r.mode===15?256:0),(U===0&&k===0||D===4)&&Y===0&&(Y=-5),Y)},F.inflateEnd=function(x){if(!x||!x.state)return p;var D=x.state;return D.window&&(D.window=null),x.state=null,0},F.inflateGetHeader=function(x,D){var r;return x&&x.state&&2&(r=x.state).wrap?(r.head=D,D.done=!1,0):p},F.inflateSetDictionary=function(x,D){var r,B=D.length;return x&&x.state?(r=x.state).wrap!==0&&r.mode!==11?p:r.mode===11&&o(1,D,B,0)!==r.check?-3:C(x,D,B,B)?(r.mode=31,-4):(r.havedict=1,0):p},F.inflateInfo="pako inflate (from Nodeca project)"},9241:(W,F,n)=>{var a=n(4236),o=[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],u=[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],m=[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],I=[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];W.exports=function(p,S,N,_,y,h,l,g){var E,O,M,d,b,C,x,D,r,B=g.bits,Q=0,G=0,lt=0,rt=0,at=0,c=0,A=0,U=0,k=0,q=0,P=null,z=0,V=new a.Buf16(16),$=new a.Buf16(16),K=null,T=0;for(Q=0;Q<=15;Q++)V[Q]=0;for(G=0;G<_;G++)V[S[N+G]]++;for(at=B,rt=15;rt>=1&&V[rt]===0;rt--);if(at>rt&&(at=rt),rt===0)return y[h++]=20971520,y[h++]=20971520,g.bits=1,0;for(lt=1;lt<rt&&V[lt]===0;lt++);for(at<lt&&(at=lt),U=1,Q=1;Q<=15;Q++)if(U<<=1,(U-=V[Q])<0)return-1;if(U>0&&(p===0||rt!==1))return-1;for($[1]=0,Q=1;Q<15;Q++)$[Q+1]=$[Q]+V[Q];for(G=0;G<_;G++)S[N+G]!==0&&(l[$[S[N+G]]++]=G);if(p===0?(P=K=l,C=19):p===1?(P=o,z-=257,K=u,T-=257,C=256):(P=m,K=I,C=-1),q=0,G=0,Q=lt,b=h,c=at,A=0,M=-1,d=(k=1<<at)-1,p===1&&k>852||p===2&&k>592)return 1;for(;;){x=Q-A,l[G]<C?(D=0,r=l[G]):l[G]>C?(D=K[T+l[G]],r=P[z+l[G]]):(D=96,r=0),E=1<<Q-A,lt=O=1<<c;do y[b+(q>>A)+(O-=E)]=x<<24|D<<16|r|0;while(O!==0);for(E=1<<Q-1;q&E;)E>>=1;if(E!==0?(q&=E-1,q+=E):q=0,G++,--V[Q]==0){if(Q===rt)break;Q=S[N+l[G]]}if(Q>at&&(q&d)!==M){for(A===0&&(A=at),b+=lt,U=1<<(c=Q-A);c+A<rt&&!((U-=V[c+A])<=0);)c++,U<<=1;if(k+=1<<c,p===1&&k>852||p===2&&k>592)return 1;y[M=q&d]=at<<24|c<<16|b-h|0}}return q!==0&&(y[b+q]=Q-A<<24|4194304|0),g.bits=at,0}},8898:W=>{W.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"}},342:(W,F,n)=>{var a=n(4236);function o(P){for(var z=P.length;--z>=0;)P[z]=0}var u=[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],m=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(576);o(S);var N=new Array(60);o(N);var _=new Array(512);o(_);var y=new Array(256);o(y);var h=new Array(29);o(h);var l,g,E,O=new Array(30);function M(P,z,V,$,K){this.static_tree=P,this.extra_bits=z,this.extra_base=V,this.elems=$,this.max_length=K,this.has_stree=P&&P.length}function d(P,z){this.dyn_tree=P,this.max_code=0,this.stat_desc=z}function b(P){return P<256?_[P]:_[256+(P>>>7)]}function C(P,z){P.pending_buf[P.pending++]=255&z,P.pending_buf[P.pending++]=z>>>8&255}function x(P,z,V){P.bi_valid>16-V?(P.bi_buf|=z<<P.bi_valid&65535,C(P,P.bi_buf),P.bi_buf=z>>16-P.bi_valid,P.bi_valid+=V-16):(P.bi_buf|=z<<P.bi_valid&65535,P.bi_valid+=V)}function D(P,z,V){x(P,V[2*z],V[2*z+1])}function r(P,z){var V=0;do V|=1&P,P>>>=1,V<<=1;while(--z>0);return V>>>1}function B(P,z,V){var $,K,T=new Array(16),i=0;for($=1;$<=15;$++)T[$]=i=i+V[$-1]<<1;for(K=0;K<=z;K++){var v=P[2*K+1];v!==0&&(P[2*K]=r(T[v]++,v))}}function Q(P){var z;for(z=0;z<286;z++)P.dyn_ltree[2*z]=0;for(z=0;z<30;z++)P.dyn_dtree[2*z]=0;for(z=0;z<19;z++)P.bl_tree[2*z]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0}function G(P){P.bi_valid>8?C(P,P.bi_buf):P.bi_valid>0&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0}function lt(P,z,V,$){var K=2*z,T=2*V;return P[K]<P[T]||P[K]===P[T]&&$[z]<=$[V]}function rt(P,z,V){for(var $=P.heap[V],K=V<<1;K<=P.heap_len&&(K<P.heap_len&<(z,P.heap[K+1],P.heap[K],P.depth)&&K++,!lt(z,$,P.heap[K],P.depth));)P.heap[V]=P.heap[K],V=K,K<<=1;P.heap[V]=$}function at(P,z,V){var $,K,T,i,v=0;if(P.last_lit!==0)do $=P.pending_buf[P.d_buf+2*v]<<8|P.pending_buf[P.d_buf+2*v+1],K=P.pending_buf[P.l_buf+v],v++,$===0?D(P,K,z):(D(P,(T=y[K])+256+1,z),(i=u[T])!==0&&x(P,K-=h[T],i),D(P,T=b(--$),V),(i=m[T])!==0&&x(P,$-=O[T],i));while(v<P.last_lit);D(P,256,z)}function c(P,z){var V,$,K,T=z.dyn_tree,i=z.stat_desc.static_tree,v=z.stat_desc.has_stree,L=z.stat_desc.elems,Y=-1;for(P.heap_len=0,P.heap_max=573,V=0;V<L;V++)T[2*V]!==0?(P.heap[++P.heap_len]=Y=V,P.depth[V]=0):T[2*V+1]=0;for(;P.heap_len<2;)T[2*(K=P.heap[++P.heap_len]=Y<2?++Y:0)]=1,P.depth[K]=0,P.opt_len--,v&&(P.static_len-=i[2*K+1]);for(z.max_code=Y,V=P.heap_len>>1;V>=1;V--)rt(P,T,V);K=L;do V=P.heap[1],P.heap[1]=P.heap[P.heap_len--],rt(P,T,1),$=P.heap[1],P.heap[--P.heap_max]=V,P.heap[--P.heap_max]=$,T[2*K]=T[2*V]+T[2*$],P.depth[K]=(P.depth[V]>=P.depth[$]?P.depth[V]:P.depth[$])+1,T[2*V+1]=T[2*$+1]=K,P.heap[1]=K++,rt(P,T,1);while(P.heap_len>=2);P.heap[--P.heap_max]=P.heap[1],function(st,ht){var nt,it,gt,ft,Tt,Ft,s=ht.dyn_tree,w=ht.max_code,R=ht.stat_desc.static_tree,j=ht.stat_desc.has_stree,X=ht.stat_desc.extra_bits,Z=ht.stat_desc.extra_base,et=ht.stat_desc.max_length,wt=0;for(ft=0;ft<=15;ft++)st.bl_count[ft]=0;for(s[2*st.heap[st.heap_max]+1]=0,nt=st.heap_max+1;nt<573;nt++)(ft=s[2*s[2*(it=st.heap[nt])+1]+1]+1)>et&&(ft=et,wt++),s[2*it+1]=ft,it>w||(st.bl_count[ft]++,Tt=0,it>=Z&&(Tt=X[it-Z]),Ft=s[2*it],st.opt_len+=Ft*(ft+Tt),j&&(st.static_len+=Ft*(R[2*it+1]+Tt)));if(wt!==0){do{for(ft=et-1;st.bl_count[ft]===0;)ft--;st.bl_count[ft]--,st.bl_count[ft+1]+=2,st.bl_count[et]--,wt-=2}while(wt>0);for(ft=et;ft!==0;ft--)for(it=st.bl_count[ft];it!==0;)(gt=st.heap[--nt])>w||(s[2*gt+1]!==ft&&(st.opt_len+=(ft-s[2*gt+1])*s[2*gt],s[2*gt+1]=ft),it--)}}(P,z),B(T,Y,P.bl_count)}function A(P,z,V){var $,K,T=-1,i=z[1],v=0,L=7,Y=4;for(i===0&&(L=138,Y=3),z[2*(V+1)+1]=65535,$=0;$<=V;$++)K=i,i=z[2*($+1)+1],++v<L&&K===i||(v<Y?P.bl_tree[2*K]+=v:K!==0?(K!==T&&P.bl_tree[2*K]++,P.bl_tree[32]++):v<=10?P.bl_tree[34]++:P.bl_tree[36]++,v=0,T=K,i===0?(L=138,Y=3):K===i?(L=6,Y=3):(L=7,Y=4))}function U(P,z,V){var $,K,T=-1,i=z[1],v=0,L=7,Y=4;for(i===0&&(L=138,Y=3),$=0;$<=V;$++)if(K=i,i=z[2*($+1)+1],!(++v<L&&K===i)){if(v<Y)do D(P,K,P.bl_tree);while(--v!=0);else K!==0?(K!==T&&(D(P,K,P.bl_tree),v--),D(P,16,P.bl_tree),x(P,v-3,2)):v<=10?(D(P,17,P.bl_tree),x(P,v-3,3)):(D(P,18,P.bl_tree),x(P,v-11,7));v=0,T=K,i===0?(L=138,Y=3):K===i?(L=6,Y=3):(L=7,Y=4)}}o(O);var k=!1;function q(P,z,V,$){x(P,0+($?1:0),3),function(K,T,i,v){G(K),C(K,i),C(K,~i),a.arraySet(K.pending_buf,K.window,T,i,K.pending),K.pending+=i}(P,z,V)}F._tr_init=function(P){k||(function(){var z,V,$,K,T,i=new Array(16);for($=0,K=0;K<28;K++)for(h[K]=$,z=0;z<1<<u[K];z++)y[$++]=K;for(y[$-1]=K,T=0,K=0;K<16;K++)for(O[K]=T,z=0;z<1<<m[K];z++)_[T++]=K;for(T>>=7;K<30;K++)for(O[K]=T<<7,z=0;z<1<<m[K]-7;z++)_[256+T++]=K;for(V=0;V<=15;V++)i[V]=0;for(z=0;z<=143;)S[2*z+1]=8,z++,i[8]++;for(;z<=255;)S[2*z+1]=9,z++,i[9]++;for(;z<=279;)S[2*z+1]=7,z++,i[7]++;for(;z<=287;)S[2*z+1]=8,z++,i[8]++;for(B(S,287,i),z=0;z<30;z++)N[2*z+1]=5,N[2*z]=r(z,5);l=new M(S,u,257,286,15),g=new M(N,m,0,30,15),E=new M(new Array(0),I,0,19,7)}(),k=!0),P.l_desc=new d(P.dyn_ltree,l),P.d_desc=new d(P.dyn_dtree,g),P.bl_desc=new d(P.bl_tree,E),P.bi_buf=0,P.bi_valid=0,Q(P)},F._tr_stored_block=q,F._tr_flush_block=function(P,z,V,$){var K,T,i=0;P.level>0?(P.strm.data_type===2&&(P.strm.data_type=function(v){var L,Y=4093624447;for(L=0;L<=31;L++,Y>>>=1)if(1&Y&&v.dyn_ltree[2*L]!==0)return 0;if(v.dyn_ltree[18]!==0||v.dyn_ltree[20]!==0||v.dyn_ltree[26]!==0)return 1;for(L=32;L<256;L++)if(v.dyn_ltree[2*L]!==0)return 1;return 0}(P)),c(P,P.l_desc),c(P,P.d_desc),i=function(v){var L;for(A(v,v.dyn_ltree,v.l_desc.max_code),A(v,v.dyn_dtree,v.d_desc.max_code),c(v,v.bl_desc),L=18;L>=3&&v.bl_tree[2*p[L]+1]===0;L--);return v.opt_len+=3*(L+1)+5+5+4,L}(P),K=P.opt_len+3+7>>>3,(T=P.static_len+3+7>>>3)<=K&&(K=T)):K=T=V+5,V+4<=K&&z!==-1?q(P,z,V,$):P.strategy===4||T===K?(x(P,2+($?1:0),3),at(P,S,N)):(x(P,4+($?1:0),3),function(v,L,Y,st){var ht;for(x(v,L-257,5),x(v,Y-1,5),x(v,st-4,4),ht=0;ht<st;ht++)x(v,v.bl_tree[2*p[ht]+1],3);U(v,v.dyn_ltree,L-1),U(v,v.dyn_dtree,Y-1)}(P,P.l_desc.max_code+1,P.d_desc.max_code+1,i+1),at(P,P.dyn_ltree,P.dyn_dtree)),Q(P),$&&G(P)},F._tr_tally=function(P,z,V){return P.pending_buf[P.d_buf+2*P.last_lit]=z>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&z,P.pending_buf[P.l_buf+P.last_lit]=255&V,P.last_lit++,z===0?P.dyn_ltree[2*V]++:(P.matches++,z--,P.dyn_ltree[2*(y[V]+256+1)]++,P.dyn_dtree[2*b(z)]++),P.last_lit===P.lit_bufsize-1},F._tr_align=function(P){x(P,2,3),D(P,256,S),function(z){z.bi_valid===16?(C(z,z.bi_buf),z.bi_buf=0,z.bi_valid=0):z.bi_valid>=8&&(z.pending_buf[z.pending++]=255&z.bi_buf,z.bi_buf>>=8,z.bi_valid-=8)}(P)}},2292:W=>{W.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}},4155:W=>{var F,n,a=W.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function m(g){if(F===setTimeout)return setTimeout(g,0);if((F===o||!F)&&setTimeout)return F=setTimeout,setTimeout(g,0);try{return F(g,0)}catch{try{return F.call(null,g,0)}catch{return F.call(this,g,0)}}}(function(){try{F=typeof setTimeout=="function"?setTimeout:o}catch{F=o}try{n=typeof clearTimeout=="function"?clearTimeout:u}catch{n=u}})();var I,p=[],S=!1,N=-1;function _(){S&&I&&(S=!1,I.length?p=I.concat(p):N=-1,p.length&&y())}function y(){if(!S){var g=m(_);S=!0;for(var E=p.length;E;){for(I=p,p=[];++N<E;)I&&I[N].run();N=-1,E=p.length}I=null,S=!1,function(O){if(n===clearTimeout)return clearTimeout(O);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(O);try{n(O)}catch{try{return n.call(null,O)}catch{return n.call(this,O)}}}(g)}}function h(g,E){this.fun=g,this.array=E}function l(){}a.nextTick=function(g){var E=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)E[O-1]=arguments[O];p.push(new h(g,E)),p.length!==1||S||m(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=l,a.addListener=l,a.once=l,a.off=l,a.removeListener=l,a.removeAllListeners=l,a.emit=l,a.prependListener=l,a.prependOnceListener=l,a.listeners=function(g){return[]},a.binding=function(g){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(g){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},9509:(W,F,n)=>{var a=n(8764),o=a.Buffer;function u(I,p){for(var S in I)p[S]=I[S]}function m(I,p,S){return o(I,p,S)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?W.exports=a:(u(a,F),F.Buffer=m),u(o,m),m.from=function(I,p,S){if(typeof I=="number")throw new TypeError("Argument must not be a number");return o(I,p,S)},m.alloc=function(I,p,S){if(typeof I!="number")throw new TypeError("Argument must be a number");var N=o(I);return p!==void 0?typeof S=="string"?N.fill(p,S):N.fill(p):N.fill(0),N},m.allocUnsafe=function(I){if(typeof I!="number")throw new TypeError("Argument must be a number");return o(I)},m.allocUnsafeSlow=function(I){if(typeof I!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(I)}},6099:(W,F,n)=>{(function(a){a.parser=function(T,i){return new m(T,i)},a.SAXParser=m,a.SAXStream=p,a.createStream=function(T,i){return new p(T,i)},a.MAX_BUFFER_LENGTH=65536;var o,u=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function m(T,i){if(!(this instanceof m))return new m(T,i);var v=this;(function(L){for(var Y=0,st=u.length;Y<st;Y++)L[u[Y]]=""})(v),v.q=v.c="",v.bufferCheckPosition=a.MAX_BUFFER_LENGTH,v.opt=i||{},v.opt.lowercase=v.opt.lowercase||v.opt.lowercasetags,v.looseCase=v.opt.lowercase?"toLowerCase":"toUpperCase",v.tags=[],v.closed=v.closedRoot=v.sawRoot=!1,v.tag=v.error=null,v.strict=!!T,v.noscript=!(!T&&!v.opt.noscript),v.state=r.BEGIN,v.strictEntities=v.opt.strictEntities,v.ENTITIES=v.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),v.attribList=[],v.opt.xmlns&&(v.ns=Object.create(_)),v.trackPosition=v.opt.position!==!1,v.trackPosition&&(v.position=v.line=v.column=0),Q(v,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(T){function i(){}return i.prototype=T,new i}),Object.keys||(Object.keys=function(T){var i=[];for(var v in T)T.hasOwnProperty(v)&&i.push(v);return i}),m.prototype={end:function(){c(this)},write:function(T){var i=this;if(this.error)throw this.error;if(i.closed)return at(i,"Cannot write after close. Assign an onready handler.");if(T===null)return c(i);typeof T=="object"&&(T=T.toString());for(var v=0,L="";L=K(T,v++),i.c=L,L;)switch(i.trackPosition&&(i.position++,L===`
|
|
3
|
-
`?(i.line++,i.column=0):i.column++),i.state){case r.BEGIN:if(i.state=r.BEGIN_WHITESPACE,L==="\uFEFF")continue;$(i,L);continue;case r.BEGIN_WHITESPACE:$(i,L);continue;case r.TEXT:if(i.sawRoot&&!i.closedRoot){for(var Y=v-1;L&&L!=="<"&&L!=="&";)(L=K(T,v++))&&i.trackPosition&&(i.position++,L===`
|
|
4
|
-
`?(i.line++,i.column=0):i.column++);i.textNode+=T.substring(Y,v-1)}L!=="<"||i.sawRoot&&i.closedRoot&&!i.strict?(E(L)||i.sawRoot&&!i.closedRoot||A(i,"Text data outside of root node."),L==="&"?i.state=r.TEXT_ENTITY:i.textNode+=L):(i.state=r.OPEN_WAKA,i.startTagPosition=i.position);continue;case r.SCRIPT:L==="<"?i.state=r.SCRIPT_ENDING:i.script+=L;continue;case r.SCRIPT_ENDING:L==="/"?i.state=r.CLOSE_TAG:(i.script+="<"+L,i.state=r.SCRIPT);continue;case r.OPEN_WAKA:if(L==="!")i.state=r.SGML_DECL,i.sgmlDecl="";else if(!E(L))if(d(y,L))i.state=r.OPEN_TAG,i.tagName=L;else if(L==="/")i.state=r.CLOSE_TAG,i.tagName="";else if(L==="?")i.state=r.PROC_INST,i.procInstName=i.procInstBody="";else{if(A(i,"Unencoded <"),i.startTagPosition+1<i.position){var st=i.position-i.startTagPosition;L=new Array(st).join(" ")+L}i.textNode+="<"+L,i.state=r.TEXT}continue;case r.SGML_DECL:(i.sgmlDecl+L).toUpperCase()==="[CDATA["?(G(i,"onopencdata"),i.state=r.CDATA,i.sgmlDecl="",i.cdata=""):i.sgmlDecl+L==="--"?(i.state=r.COMMENT,i.comment="",i.sgmlDecl=""):(i.sgmlDecl+L).toUpperCase()==="DOCTYPE"?(i.state=r.DOCTYPE,(i.doctype||i.sawRoot)&&A(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):L===">"?(G(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=r.TEXT):(O(L)&&(i.state=r.SGML_DECL_QUOTED),i.sgmlDecl+=L);continue;case r.SGML_DECL_QUOTED:L===i.q&&(i.state=r.SGML_DECL,i.q=""),i.sgmlDecl+=L;continue;case r.DOCTYPE:L===">"?(i.state=r.TEXT,G(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=L,L==="["?i.state=r.DOCTYPE_DTD:O(L)&&(i.state=r.DOCTYPE_QUOTED,i.q=L));continue;case r.DOCTYPE_QUOTED:i.doctype+=L,L===i.q&&(i.q="",i.state=r.DOCTYPE);continue;case r.DOCTYPE_DTD:i.doctype+=L,L==="]"?i.state=r.DOCTYPE:O(L)&&(i.state=r.DOCTYPE_DTD_QUOTED,i.q=L);continue;case r.DOCTYPE_DTD_QUOTED:i.doctype+=L,L===i.q&&(i.state=r.DOCTYPE_DTD,i.q="");continue;case r.COMMENT:L==="-"?i.state=r.COMMENT_ENDING:i.comment+=L;continue;case r.COMMENT_ENDING:L==="-"?(i.state=r.COMMENT_ENDED,i.comment=rt(i.opt,i.comment),i.comment&&G(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+L,i.state=r.COMMENT);continue;case r.COMMENT_ENDED:L!==">"?(A(i,"Malformed comment"),i.comment+="--"+L,i.state=r.COMMENT):i.state=r.TEXT;continue;case r.CDATA:L==="]"?i.state=r.CDATA_ENDING:i.cdata+=L;continue;case r.CDATA_ENDING:L==="]"?i.state=r.CDATA_ENDING_2:(i.cdata+="]"+L,i.state=r.CDATA);continue;case r.CDATA_ENDING_2:L===">"?(i.cdata&&G(i,"oncdata",i.cdata),G(i,"onclosecdata"),i.cdata="",i.state=r.TEXT):L==="]"?i.cdata+="]":(i.cdata+="]]"+L,i.state=r.CDATA);continue;case r.PROC_INST:L==="?"?i.state=r.PROC_INST_ENDING:E(L)?i.state=r.PROC_INST_BODY:i.procInstName+=L;continue;case r.PROC_INST_BODY:if(!i.procInstBody&&E(L))continue;L==="?"?i.state=r.PROC_INST_ENDING:i.procInstBody+=L;continue;case r.PROC_INST_ENDING:L===">"?(G(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody}),i.procInstName=i.procInstBody="",i.state=r.TEXT):(i.procInstBody+="?"+L,i.state=r.PROC_INST_BODY);continue;case r.OPEN_TAG:d(h,L)?i.tagName+=L:(U(i),L===">"?P(i):L==="/"?i.state=r.OPEN_TAG_SLASH:(E(L)||A(i,"Invalid character in tag name"),i.state=r.ATTRIB));continue;case r.OPEN_TAG_SLASH:L===">"?(P(i,!0),z(i)):(A(i,"Forward-slash in opening tag not followed by >"),i.state=r.ATTRIB);continue;case r.ATTRIB:if(E(L))continue;L===">"?P(i):L==="/"?i.state=r.OPEN_TAG_SLASH:d(y,L)?(i.attribName=L,i.attribValue="",i.state=r.ATTRIB_NAME):A(i,"Invalid attribute name");continue;case r.ATTRIB_NAME:L==="="?i.state=r.ATTRIB_VALUE:L===">"?(A(i,"Attribute without value"),i.attribValue=i.attribName,q(i),P(i)):E(L)?i.state=r.ATTRIB_NAME_SAW_WHITE:d(h,L)?i.attribName+=L:A(i,"Invalid attribute name");continue;case r.ATTRIB_NAME_SAW_WHITE:if(L==="=")i.state=r.ATTRIB_VALUE;else{if(E(L))continue;A(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",G(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",L===">"?P(i):d(y,L)?(i.attribName=L,i.state=r.ATTRIB_NAME):(A(i,"Invalid attribute name"),i.state=r.ATTRIB)}continue;case r.ATTRIB_VALUE:if(E(L))continue;O(L)?(i.q=L,i.state=r.ATTRIB_VALUE_QUOTED):(A(i,"Unquoted attribute value"),i.state=r.ATTRIB_VALUE_UNQUOTED,i.attribValue=L);continue;case r.ATTRIB_VALUE_QUOTED:if(L!==i.q){L==="&"?i.state=r.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=L;continue}q(i),i.q="",i.state=r.ATTRIB_VALUE_CLOSED;continue;case r.ATTRIB_VALUE_CLOSED:E(L)?i.state=r.ATTRIB:L===">"?P(i):L==="/"?i.state=r.OPEN_TAG_SLASH:d(y,L)?(A(i,"No whitespace between attributes"),i.attribName=L,i.attribValue="",i.state=r.ATTRIB_NAME):A(i,"Invalid attribute name");continue;case r.ATTRIB_VALUE_UNQUOTED:if(!M(L)){L==="&"?i.state=r.ATTRIB_VALUE_ENTITY_U:i.attribValue+=L;continue}q(i),L===">"?P(i):i.state=r.ATTRIB;continue;case r.CLOSE_TAG:if(i.tagName)L===">"?z(i):d(h,L)?i.tagName+=L:i.script?(i.script+="</"+i.tagName,i.tagName="",i.state=r.SCRIPT):(E(L)||A(i,"Invalid tagname in closing tag"),i.state=r.CLOSE_TAG_SAW_WHITE);else{if(E(L))continue;b(y,L)?i.script?(i.script+="</"+L,i.state=r.SCRIPT):A(i,"Invalid tagname in closing tag."):i.tagName=L}continue;case r.CLOSE_TAG_SAW_WHITE:if(E(L))continue;L===">"?z(i):A(i,"Invalid characters in closing tag");continue;case r.TEXT_ENTITY:case r.ATTRIB_VALUE_ENTITY_Q:case r.ATTRIB_VALUE_ENTITY_U:var ht,nt;switch(i.state){case r.TEXT_ENTITY:ht=r.TEXT,nt="textNode";break;case r.ATTRIB_VALUE_ENTITY_Q:ht=r.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case r.ATTRIB_VALUE_ENTITY_U:ht=r.ATTRIB_VALUE_UNQUOTED,nt="attribValue"}L===";"?(i[nt]+=V(i),i.entity="",i.state=ht):d(i.entity.length?g:l,L)?i.entity+=L:(A(i,"Invalid character in entity name"),i[nt]+="&"+i.entity+L,i.entity="",i.state=ht);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&function(it){for(var gt=Math.max(a.MAX_BUFFER_LENGTH,10),ft=0,Tt=0,Ft=u.length;Tt<Ft;Tt++){var s=it[u[Tt]].length;if(s>gt)switch(u[Tt]){case"textNode":lt(it);break;case"cdata":G(it,"oncdata",it.cdata),it.cdata="";break;case"script":G(it,"onscript",it.script),it.script="";break;default:at(it,"Max buffer length exceeded: "+u[Tt])}ft=Math.max(ft,s)}var w=a.MAX_BUFFER_LENGTH-ft;it.bufferCheckPosition=w+it.position}(i),i},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var T;lt(T=this),T.cdata!==""&&(G(T,"oncdata",T.cdata),T.cdata=""),T.script!==""&&(G(T,"onscript",T.script),T.script="")}};try{o=n(2830).Stream}catch{o=function(){}}var I=a.EVENTS.filter(function(T){return T!=="error"&&T!=="end"});function p(T,i){if(!(this instanceof p))return new p(T,i);o.apply(this),this._parser=new m(T,i),this.writable=!0,this.readable=!0;var v=this;this._parser.onend=function(){v.emit("end")},this._parser.onerror=function(L){v.emit("error",L),v._parser.error=null},this._decoder=null,I.forEach(function(L){Object.defineProperty(v,"on"+L,{get:function(){return v._parser["on"+L]},set:function(Y){if(!Y)return v.removeAllListeners(L),v._parser["on"+L]=Y,Y;v.on(L,Y)},enumerable:!0,configurable:!1})})}p.prototype=Object.create(o.prototype,{constructor:{value:p}}),p.prototype.write=function(T){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(T)){if(!this._decoder){var i=n(2553).s;this._decoder=new i("utf8")}T=this._decoder.write(T)}return this._parser.write(T.toString()),this.emit("data",T),!0},p.prototype.end=function(T){return T&&T.length&&this.write(T),this._parser.end(),!0},p.prototype.on=function(T,i){var v=this;return v._parser["on"+T]||I.indexOf(T)===-1||(v._parser["on"+T]=function(){var L=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,T),v.emit.apply(v,L)}),o.prototype.on.call(v,T,i)};var S="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",_={xml:S,xmlns:N},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]/,h=/[:_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-]/,l=/[#:_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]/,g=/[#:_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 E(T){return T===" "||T===`
|
|
5
|
-
`||T==="\r"||T===" "}function O(T){return T==='"'||T==="'"}function M(T){return T===">"||E(T)}function d(T,i){return T.test(i)}function b(T,i){return!d(T,i)}var C,x,D,r=0;for(var B in a.STATE={BEGIN:r++,BEGIN_WHITESPACE:r++,TEXT:r++,TEXT_ENTITY:r++,OPEN_WAKA:r++,SGML_DECL:r++,SGML_DECL_QUOTED:r++,DOCTYPE:r++,DOCTYPE_QUOTED:r++,DOCTYPE_DTD:r++,DOCTYPE_DTD_QUOTED:r++,COMMENT_STARTING:r++,COMMENT:r++,COMMENT_ENDING:r++,COMMENT_ENDED:r++,CDATA:r++,CDATA_ENDING:r++,CDATA_ENDING_2:r++,PROC_INST:r++,PROC_INST_BODY:r++,PROC_INST_ENDING:r++,OPEN_TAG:r++,OPEN_TAG_SLASH:r++,ATTRIB:r++,ATTRIB_NAME:r++,ATTRIB_NAME_SAW_WHITE:r++,ATTRIB_VALUE:r++,ATTRIB_VALUE_QUOTED:r++,ATTRIB_VALUE_CLOSED:r++,ATTRIB_VALUE_UNQUOTED:r++,ATTRIB_VALUE_ENTITY_Q:r++,ATTRIB_VALUE_ENTITY_U:r++,CLOSE_TAG:r++,CLOSE_TAG_SAW_WHITE:r++,SCRIPT:r++,SCRIPT_ENDING:r++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.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(a.ENTITIES).forEach(function(T){var i=a.ENTITIES[T],v=typeof i=="number"?String.fromCharCode(i):i;a.ENTITIES[T]=v}),a.STATE)a.STATE[a.STATE[B]]=B;function Q(T,i,v){T[i]&&T[i](v)}function G(T,i,v){T.textNode&<(T),Q(T,i,v)}function lt(T){T.textNode=rt(T.opt,T.textNode),T.textNode&&Q(T,"ontext",T.textNode),T.textNode=""}function rt(T,i){return T.trim&&(i=i.trim()),T.normalize&&(i=i.replace(/\s+/g," ")),i}function at(T,i){return lt(T),T.trackPosition&&(i+=`
|
|
6
|
-
Line: `+T.line+`
|
|
7
|
-
Column: `+T.column+`
|
|
8
|
-
Char: `+T.c),i=new Error(i),T.error=i,Q(T,"onerror",i),T}function c(T){return T.sawRoot&&!T.closedRoot&&A(T,"Unclosed root tag"),T.state!==r.BEGIN&&T.state!==r.BEGIN_WHITESPACE&&T.state!==r.TEXT&&at(T,"Unexpected end"),lt(T),T.c="",T.closed=!0,Q(T,"onend"),m.call(T,T.strict,T.opt),T}function A(T,i){if(typeof T!="object"||!(T instanceof m))throw new Error("bad call to strictFail");T.strict&&at(T,i)}function U(T){T.strict||(T.tagName=T.tagName[T.looseCase]());var i=T.tags[T.tags.length-1]||T,v=T.tag={name:T.tagName,attributes:{}};T.opt.xmlns&&(v.ns=i.ns),T.attribList.length=0,G(T,"onopentagstart",v)}function k(T,i){var v=T.indexOf(":")<0?["",T]:T.split(":"),L=v[0],Y=v[1];return i&&T==="xmlns"&&(L="xmlns",Y=""),{prefix:L,local:Y}}function q(T){if(T.strict||(T.attribName=T.attribName[T.looseCase]()),T.attribList.indexOf(T.attribName)!==-1||T.tag.attributes.hasOwnProperty(T.attribName))T.attribName=T.attribValue="";else{if(T.opt.xmlns){var i=k(T.attribName,!0),v=i.prefix,L=i.local;if(v==="xmlns")if(L==="xml"&&T.attribValue!==S)A(T,"xml: prefix must be bound to "+S+`
|
|
9
|
-
Actual: `+T.attribValue);else if(L==="xmlns"&&T.attribValue!==N)A(T,"xmlns: prefix must be bound to "+N+`
|
|
10
|
-
Actual: `+T.attribValue);else{var Y=T.tag,st=T.tags[T.tags.length-1]||T;Y.ns===st.ns&&(Y.ns=Object.create(st.ns)),Y.ns[L]=T.attribValue}T.attribList.push([T.attribName,T.attribValue])}else T.tag.attributes[T.attribName]=T.attribValue,G(T,"onattribute",{name:T.attribName,value:T.attribValue});T.attribName=T.attribValue=""}}function P(T,i){if(T.opt.xmlns){var v=T.tag,L=k(T.tagName);v.prefix=L.prefix,v.local=L.local,v.uri=v.ns[L.prefix]||"",v.prefix&&!v.uri&&(A(T,"Unbound namespace prefix: "+JSON.stringify(T.tagName)),v.uri=L.prefix);var Y=T.tags[T.tags.length-1]||T;v.ns&&Y.ns!==v.ns&&Object.keys(v.ns).forEach(function(R){G(T,"onopennamespace",{prefix:R,uri:v.ns[R]})});for(var st=0,ht=T.attribList.length;st<ht;st++){var nt=T.attribList[st],it=nt[0],gt=nt[1],ft=k(it,!0),Tt=ft.prefix,Ft=ft.local,s=Tt===""?"":v.ns[Tt]||"",w={name:it,value:gt,prefix:Tt,local:Ft,uri:s};Tt&&Tt!=="xmlns"&&!s&&(A(T,"Unbound namespace prefix: "+JSON.stringify(Tt)),w.uri=Tt),T.tag.attributes[it]=w,G(T,"onattribute",w)}T.attribList.length=0}T.tag.isSelfClosing=!!i,T.sawRoot=!0,T.tags.push(T.tag),G(T,"onopentag",T.tag),i||(T.noscript||T.tagName.toLowerCase()!=="script"?T.state=r.TEXT:T.state=r.SCRIPT,T.tag=null,T.tagName=""),T.attribName=T.attribValue="",T.attribList.length=0}function z(T){if(!T.tagName)return A(T,"Weird empty close tag."),T.textNode+="</>",void(T.state=r.TEXT);if(T.script){if(T.tagName!=="script")return T.script+="</"+T.tagName+">",T.tagName="",void(T.state=r.SCRIPT);G(T,"onscript",T.script),T.script=""}var i=T.tags.length,v=T.tagName;T.strict||(v=v[T.looseCase]());for(var L=v;i--&&T.tags[i].name!==L;)A(T,"Unexpected close tag");if(i<0)return A(T,"Unmatched closing tag: "+T.tagName),T.textNode+="</"+T.tagName+">",void(T.state=r.TEXT);T.tagName=v;for(var Y=T.tags.length;Y-- >i;){var st=T.tag=T.tags.pop();T.tagName=T.tag.name,G(T,"onclosetag",T.tagName);var ht={};for(var nt in st.ns)ht[nt]=st.ns[nt];var it=T.tags[T.tags.length-1]||T;T.opt.xmlns&&st.ns!==it.ns&&Object.keys(st.ns).forEach(function(gt){var ft=st.ns[gt];G(T,"onclosenamespace",{prefix:gt,uri:ft})})}i===0&&(T.closedRoot=!0),T.tagName=T.attribValue=T.attribName="",T.attribList.length=0,T.state=r.TEXT}function V(T){var i,v=T.entity,L=v.toLowerCase(),Y="";return T.ENTITIES[v]?T.ENTITIES[v]:T.ENTITIES[L]?T.ENTITIES[L]:((v=L).charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),Y=(i=parseInt(v,16)).toString(16)):(v=v.slice(1),Y=(i=parseInt(v,10)).toString(10))),v=v.replace(/^0+/,""),isNaN(i)||Y.toLowerCase()!==v?(A(T,"Invalid character entity"),"&"+T.entity+";"):String.fromCodePoint(i))}function $(T,i){i==="<"?(T.state=r.OPEN_WAKA,T.startTagPosition=T.position):E(i)||(A(T,"Non-whitespace before first tag."),T.textNode=i,T.state=r.TEXT)}function K(T,i){var v="";return i<T.length&&(v=T.charAt(i)),v}r=a.STATE,String.fromCodePoint||(C=String.fromCharCode,x=Math.floor,D=function(){var T,i,v=16384,L=[],Y=-1,st=arguments.length;if(!st)return"";for(var ht="";++Y<st;){var nt=Number(arguments[Y]);if(!isFinite(nt)||nt<0||nt>1114111||x(nt)!==nt)throw RangeError("Invalid code point: "+nt);nt<=65535?L.push(nt):(T=55296+((nt-=65536)>>10),i=nt%1024+56320,L.push(T,i)),(Y+1===st||L.length>v)&&(ht+=C.apply(null,L),L.length=0)}return ht},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D)})(F)},4889:function(W,F,n){var a=n(4155);(function(o,u){if(!o.setImmediate){var m,I,p,S,N,_=1,y={},h=!1,l=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,{}.toString.call(o.process)==="[object process]"?m=function(M){a.nextTick(function(){O(M)})}:function(){if(o.postMessage&&!o.importScripts){var M=!0,d=o.onmessage;return o.onmessage=function(){M=!1},o.postMessage("","*"),o.onmessage=d,M}}()?(S="setImmediate$"+Math.random()+"$",N=function(M){M.source===o&&typeof M.data=="string"&&M.data.indexOf(S)===0&&O(+M.data.slice(S.length))},o.addEventListener?o.addEventListener("message",N,!1):o.attachEvent("onmessage",N),m=function(M){o.postMessage(S+M,"*")}):o.MessageChannel?((p=new MessageChannel).port1.onmessage=function(M){O(M.data)},m=function(M){p.port2.postMessage(M)}):l&&"onreadystatechange"in l.createElement("script")?(I=l.documentElement,m=function(M){var d=l.createElement("script");d.onreadystatechange=function(){O(M),d.onreadystatechange=null,I.removeChild(d),d=null},I.appendChild(d)}):m=function(M){setTimeout(O,0,M)},g.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var d=new Array(arguments.length-1),b=0;b<d.length;b++)d[b]=arguments[b+1];var C={callback:M,args:d};return y[_]=C,m(_),_++},g.clearImmediate=E}function E(M){delete y[M]}function O(M){if(h)setTimeout(O,0,M);else{var d=y[M];if(d){h=!0;try{(function(b){var C=b.callback,x=b.args;switch(x.length){case 0:C();break;case 1:C(x[0]);break;case 2:C(x[0],x[1]);break;case 3:C(x[0],x[1],x[2]);break;default:C.apply(void 0,x)}})(d)}finally{E(M),h=!1}}}}})(typeof self>"u"?n.g===void 0?this:n.g:self)},2830:(W,F,n)=>{W.exports=o;var a=n(7187).EventEmitter;function o(){a.call(this)}n(5717)(o,a),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(u,m){var I=this;function p(g){u.writable&&u.write(g)===!1&&I.pause&&I.pause()}function S(){I.readable&&I.resume&&I.resume()}I.on("data",p),u.on("drain",S),u._isStdio||m&&m.end===!1||(I.on("end",_),I.on("close",y));var N=!1;function _(){N||(N=!0,u.end())}function y(){N||(N=!0,typeof u.destroy=="function"&&u.destroy())}function h(g){if(l(),a.listenerCount(this,"error")===0)throw g}function l(){I.removeListener("data",p),u.removeListener("drain",S),I.removeListener("end",_),I.removeListener("close",y),I.removeListener("error",h),u.removeListener("error",h),I.removeListener("end",l),I.removeListener("close",l),u.removeListener("close",l)}return I.on("error",h),u.on("error",h),I.on("end",l),I.on("close",l),u.on("close",l),u.emit("pipe",I),u}},8106:W=>{var F={};function n(o,u,m){m||(m=Error);var I=function(p){var S,N;function _(y,h,l){return p.call(this,function(g,E,O){return typeof u=="string"?u:u(g,E,O)}(y,h,l))||this}return N=p,(S=_).prototype=Object.create(N.prototype),S.prototype.constructor=S,S.__proto__=N,_}(m);I.prototype.name=m.name,I.prototype.code=o,F[o]=I}function a(o,u){if(Array.isArray(o)){var m=o.length;return o=o.map(function(I){return String(I)}),m>2?"one of ".concat(u," ").concat(o.slice(0,m-1).join(", "),", or ")+o[m-1]:m===2?"one of ".concat(u," ").concat(o[0]," or ").concat(o[1]):"of ".concat(u," ").concat(o[0])}return"of ".concat(u," ").concat(String(o))}n("ERR_INVALID_OPT_VALUE",function(o,u){return'The value "'+u+'" is invalid for option "'+o+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(o,u,m){var I,p,S,N,_;if(typeof u=="string"&&(p="not ",u.substr(0,p.length)===p)?(I="must not be",u=u.replace(/^not /,"")):I="must be",function(h,l,g){return(g===void 0||g>h.length)&&(g=h.length),h.substring(g-l.length,g)===l}(o," argument"))S="The ".concat(o," ").concat(I," ").concat(a(u,"type"));else{var y=(typeof _!="number"&&(_=0),_+1>(N=o).length||N.indexOf(".",_)===-1?"argument":"property");S='The "'.concat(o,'" ').concat(y," ").concat(I," ").concat(a(u,"type"))}return S+". Received type ".concat(typeof m)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(o){return"The "+o+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(o){return"Unknown encoding: "+o},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),W.exports.q=F},8656:(W,F,n)=>{var a=n(4155),o=Object.keys||function(h){var l=[];for(var g in h)l.push(g);return l};W.exports=N;var u=n(6577),m=n(323);n(5717)(N,u);for(var I=o(m.prototype),p=0;p<I.length;p++){var S=I[p];N.prototype[S]||(N.prototype[S]=m.prototype[S])}function N(h){if(!(this instanceof N))return new N(h);u.call(this,h),m.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",_)))}function _(){this._writableState.ended||a.nextTick(y,this)}function y(h){h.end()}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})},2366:(W,F,n)=>{W.exports=o;var a=n(4473);function o(u){if(!(this instanceof o))return new o(u);a.call(this,u)}n(5717)(o,a),o.prototype._transform=function(u,m,I){I(null,u)}},6577:(W,F,n)=>{var a,o=n(4155);W.exports=B,B.ReadableState=r,n(7187).EventEmitter;var u,m=function(i,v){return i.listeners(v).length},I=n(3194),p=n(8764).Buffer,S=n.g.Uint8Array||function(){},N=n(5575);u=N&&N.debuglog?N.debuglog("stream"):function(){};var _,y,h,l=n(9686),g=n(1029),E=n(94).getHighWaterMark,O=n(8106).q,M=O.ERR_INVALID_ARG_TYPE,d=O.ERR_STREAM_PUSH_AFTER_EOF,b=O.ERR_METHOD_NOT_IMPLEMENTED,C=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(5717)(B,I);var x=g.errorOrDestroy,D=["error","close","destroy","pause","resume"];function r(i,v,L){a=a||n(8656),i=i||{},typeof L!="boolean"&&(L=v instanceof a),this.objectMode=!!i.objectMode,L&&(this.objectMode=this.objectMode||!!i.readableObjectMode),this.highWaterMark=E(this,i,"readableHighWaterMark",L),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.destroyed=!1,this.defaultEncoding=i.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,i.encoding&&(_||(_=n(2553).s),this.decoder=new _(i.encoding),this.encoding=i.encoding)}function B(i){if(a=a||n(8656),!(this instanceof B))return new B(i);var v=this instanceof a;this._readableState=new r(i,this,v),this.readable=!0,i&&(typeof i.read=="function"&&(this._read=i.read),typeof i.destroy=="function"&&(this._destroy=i.destroy)),I.call(this)}function Q(i,v,L,Y,st){u("readableAddChunk",v);var ht,nt=i._readableState;if(v===null)nt.reading=!1,function(it,gt){if(u("onEofChunk"),!gt.ended){if(gt.decoder){var ft=gt.decoder.end();ft&&ft.length&&(gt.buffer.push(ft),gt.length+=gt.objectMode?1:ft.length)}gt.ended=!0,gt.sync?at(it):(gt.needReadable=!1,gt.emittedReadable||(gt.emittedReadable=!0,c(it)))}}(i,nt);else if(st||(ht=function(it,gt){var ft,Tt;return Tt=gt,p.isBuffer(Tt)||Tt instanceof S||typeof gt=="string"||gt===void 0||it.objectMode||(ft=new M("chunk",["string","Buffer","Uint8Array"],gt)),ft}(nt,v)),ht)x(i,ht);else if(nt.objectMode||v&&v.length>0)if(typeof v=="string"||nt.objectMode||Object.getPrototypeOf(v)===p.prototype||(v=function(it){return p.from(it)}(v)),Y)nt.endEmitted?x(i,new C):G(i,nt,v,!0);else if(nt.ended)x(i,new d);else{if(nt.destroyed)return!1;nt.reading=!1,nt.decoder&&!L?(v=nt.decoder.write(v),nt.objectMode||v.length!==0?G(i,nt,v,!1):A(i,nt)):G(i,nt,v,!1)}else Y||(nt.reading=!1,A(i,nt));return!nt.ended&&(nt.length<nt.highWaterMark||nt.length===0)}function G(i,v,L,Y){v.flowing&&v.length===0&&!v.sync?(v.awaitDrain=0,i.emit("data",L)):(v.length+=v.objectMode?1:L.length,Y?v.buffer.unshift(L):v.buffer.push(L),v.needReadable&&at(i)),A(i,v)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(i){this._readableState&&(this._readableState.destroyed=i)}}),B.prototype.destroy=g.destroy,B.prototype._undestroy=g.undestroy,B.prototype._destroy=function(i,v){v(i)},B.prototype.push=function(i,v){var L,Y=this._readableState;return Y.objectMode?L=!0:typeof i=="string"&&((v=v||Y.defaultEncoding)!==Y.encoding&&(i=p.from(i,v),v=""),L=!0),Q(this,i,v,!1,L)},B.prototype.unshift=function(i){return Q(this,i,null,!0,!1)},B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(i){_||(_=n(2553).s);var v=new _(i);this._readableState.decoder=v,this._readableState.encoding=this._readableState.decoder.encoding;for(var L=this._readableState.buffer.head,Y="";L!==null;)Y+=v.write(L.data),L=L.next;return this._readableState.buffer.clear(),Y!==""&&this._readableState.buffer.push(Y),this._readableState.length=Y.length,this};var lt=1073741824;function rt(i,v){return i<=0||v.length===0&&v.ended?0:v.objectMode?1:i!=i?v.flowing&&v.length?v.buffer.head.data.length:v.length:(i>v.highWaterMark&&(v.highWaterMark=function(L){return L>=lt?L=lt:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(i)),i<=v.length?i:v.ended?v.length:(v.needReadable=!0,0))}function at(i){var v=i._readableState;u("emitReadable",v.needReadable,v.emittedReadable),v.needReadable=!1,v.emittedReadable||(u("emitReadable",v.flowing),v.emittedReadable=!0,o.nextTick(c,i))}function c(i){var v=i._readableState;u("emitReadable_",v.destroyed,v.length,v.ended),v.destroyed||!v.length&&!v.ended||(i.emit("readable"),v.emittedReadable=!1),v.needReadable=!v.flowing&&!v.ended&&v.length<=v.highWaterMark,z(i)}function A(i,v){v.readingMore||(v.readingMore=!0,o.nextTick(U,i,v))}function U(i,v){for(;!v.reading&&!v.ended&&(v.length<v.highWaterMark||v.flowing&&v.length===0);){var L=v.length;if(u("maybeReadMore read 0"),i.read(0),L===v.length)break}v.readingMore=!1}function k(i){var v=i._readableState;v.readableListening=i.listenerCount("readable")>0,v.resumeScheduled&&!v.paused?v.flowing=!0:i.listenerCount("data")>0&&i.resume()}function q(i){u("readable nexttick read 0"),i.read(0)}function P(i,v){u("resume",v.reading),v.reading||i.read(0),v.resumeScheduled=!1,i.emit("resume"),z(i),v.flowing&&!v.reading&&i.read(0)}function z(i){var v=i._readableState;for(u("flow",v.flowing);v.flowing&&i.read()!==null;);}function V(i,v){return v.length===0?null:(v.objectMode?L=v.buffer.shift():!i||i>=v.length?(L=v.decoder?v.buffer.join(""):v.buffer.length===1?v.buffer.first():v.buffer.concat(v.length),v.buffer.clear()):L=v.buffer.consume(i,v.decoder),L);var L}function $(i){var v=i._readableState;u("endReadable",v.endEmitted),v.endEmitted||(v.ended=!0,o.nextTick(K,v,i))}function K(i,v){if(u("endReadableNT",i.endEmitted,i.length),!i.endEmitted&&i.length===0&&(i.endEmitted=!0,v.readable=!1,v.emit("end"),i.autoDestroy)){var L=v._writableState;(!L||L.autoDestroy&&L.finished)&&v.destroy()}}function T(i,v){for(var L=0,Y=i.length;L<Y;L++)if(i[L]===v)return L;return-1}B.prototype.read=function(i){u("read",i),i=parseInt(i,10);var v=this._readableState,L=i;if(i!==0&&(v.emittedReadable=!1),i===0&&v.needReadable&&((v.highWaterMark!==0?v.length>=v.highWaterMark:v.length>0)||v.ended))return u("read: emitReadable",v.length,v.ended),v.length===0&&v.ended?$(this):at(this),null;if((i=rt(i,v))===0&&v.ended)return v.length===0&&$(this),null;var Y,st=v.needReadable;return u("need readable",st),(v.length===0||v.length-i<v.highWaterMark)&&u("length less than watermark",st=!0),v.ended||v.reading?u("reading or ended",st=!1):st&&(u("do read"),v.reading=!0,v.sync=!0,v.length===0&&(v.needReadable=!0),this._read(v.highWaterMark),v.sync=!1,v.reading||(i=rt(L,v))),(Y=i>0?V(i,v):null)===null?(v.needReadable=v.length<=v.highWaterMark,i=0):(v.length-=i,v.awaitDrain=0),v.length===0&&(v.ended||(v.needReadable=!0),L!==i&&v.ended&&$(this)),Y!==null&&this.emit("data",Y),Y},B.prototype._read=function(i){x(this,new b("_read()"))},B.prototype.pipe=function(i,v){var L=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=i;break;case 1:Y.pipes=[Y.pipes,i];break;default:Y.pipes.push(i)}Y.pipesCount+=1,u("pipe count=%d opts=%j",Y.pipesCount,v);var st=v&&v.end===!1||i===o.stdout||i===o.stderr?s:ht;function ht(){u("onend"),i.end()}Y.endEmitted?o.nextTick(st):L.once("end",st),i.on("unpipe",function w(R,j){u("onunpipe"),R===L&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,u("cleanup"),i.removeListener("close",Tt),i.removeListener("finish",Ft),i.removeListener("drain",nt),i.removeListener("error",ft),i.removeListener("unpipe",w),L.removeListener("end",ht),L.removeListener("end",s),L.removeListener("data",gt),it=!0,!Y.awaitDrain||i._writableState&&!i._writableState.needDrain||nt())});var nt=function(w){return function(){var R=w._readableState;u("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&m(w,"data")&&(R.flowing=!0,z(w))}}(L);i.on("drain",nt);var it=!1;function gt(w){u("ondata");var R=i.write(w);u("dest.write",R),R===!1&&((Y.pipesCount===1&&Y.pipes===i||Y.pipesCount>1&&T(Y.pipes,i)!==-1)&&!it&&(u("false write response, pause",Y.awaitDrain),Y.awaitDrain++),L.pause())}function ft(w){u("onerror",w),s(),i.removeListener("error",ft),m(i,"error")===0&&x(i,w)}function Tt(){i.removeListener("finish",Ft),s()}function Ft(){u("onfinish"),i.removeListener("close",Tt),s()}function s(){u("unpipe"),L.unpipe(i)}return L.on("data",gt),function(w,R,j){if(typeof w.prependListener=="function")return w.prependListener(R,j);w._events&&w._events.error?Array.isArray(w._events.error)?w._events.error.unshift(j):w._events.error=[j,w._events.error]:w.on(R,j)}(i,"error",ft),i.once("close",Tt),i.once("finish",Ft),i.emit("pipe",L),Y.flowing||(u("pipe resume"),L.resume()),i},B.prototype.unpipe=function(i){var v=this._readableState,L={hasUnpiped:!1};if(v.pipesCount===0)return this;if(v.pipesCount===1)return i&&i!==v.pipes||(i||(i=v.pipes),v.pipes=null,v.pipesCount=0,v.flowing=!1,i&&i.emit("unpipe",this,L)),this;if(!i){var Y=v.pipes,st=v.pipesCount;v.pipes=null,v.pipesCount=0,v.flowing=!1;for(var ht=0;ht<st;ht++)Y[ht].emit("unpipe",this,{hasUnpiped:!1});return this}var nt=T(v.pipes,i);return nt===-1||(v.pipes.splice(nt,1),v.pipesCount-=1,v.pipesCount===1&&(v.pipes=v.pipes[0]),i.emit("unpipe",this,L)),this},B.prototype.on=function(i,v){var L=I.prototype.on.call(this,i,v),Y=this._readableState;return i==="data"?(Y.readableListening=this.listenerCount("readable")>0,Y.flowing!==!1&&this.resume()):i==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,u("on readable",Y.length,Y.reading),Y.length?at(this):Y.reading||o.nextTick(q,this))),L},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(i,v){var L=I.prototype.removeListener.call(this,i,v);return i==="readable"&&o.nextTick(k,this),L},B.prototype.removeAllListeners=function(i){var v=I.prototype.removeAllListeners.apply(this,arguments);return i!=="readable"&&i!==void 0||o.nextTick(k,this),v},B.prototype.resume=function(){var i=this._readableState;return i.flowing||(u("resume"),i.flowing=!i.readableListening,function(v,L){L.resumeScheduled||(L.resumeScheduled=!0,o.nextTick(P,v,L))}(this,i)),i.paused=!1,this},B.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(i){var v=this,L=this._readableState,Y=!1;for(var st in i.on("end",function(){if(u("wrapped end"),L.decoder&&!L.ended){var nt=L.decoder.end();nt&&nt.length&&v.push(nt)}v.push(null)}),i.on("data",function(nt){u("wrapped data"),L.decoder&&(nt=L.decoder.write(nt)),L.objectMode&&nt==null||(L.objectMode||nt&&nt.length)&&(v.push(nt)||(Y=!0,i.pause()))}),i)this[st]===void 0&&typeof i[st]=="function"&&(this[st]=function(nt){return function(){return i[nt].apply(i,arguments)}}(st));for(var ht=0;ht<D.length;ht++)i.on(D[ht],this.emit.bind(this,D[ht]));return this._read=function(nt){u("wrapped _read",nt),Y&&(Y=!1,i.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=n(828)),y(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(i){this._readableState&&(this._readableState.flowing=i)}}),B._fromList=V,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(B.from=function(i,v){return h===void 0&&(h=n(1265)),h(B,i,v)})},4473:(W,F,n)=>{W.exports=N;var a=n(8106).q,o=a.ERR_METHOD_NOT_IMPLEMENTED,u=a.ERR_MULTIPLE_CALLBACK,m=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,I=a.ERR_TRANSFORM_WITH_LENGTH_0,p=n(8656);function S(h,l){var g=this._transformState;g.transforming=!1;var E=g.writecb;if(E===null)return this.emit("error",new u);g.writechunk=null,g.writecb=null,l!=null&&this.push(l),E(h);var O=this._readableState;O.reading=!1,(O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}function N(h){if(!(this instanceof N))return new N(h);p.call(this,h),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",_)}function _(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?y(this,null,null):this._flush(function(l,g){y(h,l,g)})}function y(h,l,g){if(l)return h.emit("error",l);if(g!=null&&h.push(g),h._writableState.length)throw new I;if(h._transformState.transforming)throw new m;return h.push(null)}n(5717)(N,p),N.prototype.push=function(h,l){return this._transformState.needTransform=!1,p.prototype.push.call(this,h,l)},N.prototype._transform=function(h,l,g){g(new o("_transform()"))},N.prototype._write=function(h,l,g){var E=this._transformState;if(E.writecb=g,E.writechunk=h,E.writeencoding=l,!E.transforming){var O=this._readableState;(E.needTransform||O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}},N.prototype._read=function(h){var l=this._transformState;l.writechunk===null||l.transforming?l.needTransform=!0:(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform))},N.prototype._destroy=function(h,l){p.prototype._destroy.call(this,h,function(g){l(g)})}},323:(W,F,n)=>{var a,o=n(4155);function u(A){var U=this;this.next=null,this.entry=null,this.finish=function(){(function(k,q,P){var z=k.entry;for(k.entry=null;z;){var V=z.callback;q.pendingcb--,V(void 0),z=z.next}q.corkedRequestsFree.next=k})(U,A)}}W.exports=B,B.WritableState=r;var m,I={deprecate:n(4927)},p=n(3194),S=n(8764).Buffer,N=n.g.Uint8Array||function(){},_=n(1029),y=n(94).getHighWaterMark,h=n(8106).q,l=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,E=h.ERR_MULTIPLE_CALLBACK,O=h.ERR_STREAM_CANNOT_PIPE,M=h.ERR_STREAM_DESTROYED,d=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING,x=_.errorOrDestroy;function D(){}function r(A,U,k){a=a||n(8656),A=A||{},typeof k!="boolean"&&(k=U instanceof a),this.objectMode=!!A.objectMode,k&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=y(this,A,"writableHighWaterMark",k),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=A.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(P){(function(z,V){var $=z._writableState,K=$.sync,T=$.writecb;if(typeof T!="function")throw new E;if(function(v){v.writing=!1,v.writecb=null,v.length-=v.writelen,v.writelen=0}($),V)(function(v,L,Y,st,ht){--L.pendingcb,Y?(o.nextTick(ht,st),o.nextTick(c,v,L),v._writableState.errorEmitted=!0,x(v,st)):(ht(st),v._writableState.errorEmitted=!0,x(v,st),c(v,L))})(z,$,K,V,T);else{var i=rt($)||z.destroyed;i||$.corked||$.bufferProcessing||!$.bufferedRequest||lt(z,$),K?o.nextTick(G,z,$,i,T):G(z,$,i,T)}})(U,P)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function B(A){var U=this instanceof(a=a||n(8656));if(!U&&!m.call(B,this))return new B(A);this._writableState=new r(A,this,U),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),p.call(this)}function Q(A,U,k,q,P,z,V){U.writelen=q,U.writecb=V,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new M("write")):k?A._writev(P,U.onwrite):A._write(P,z,U.onwrite),U.sync=!1}function G(A,U,k,q){k||function(P,z){z.length===0&&z.needDrain&&(z.needDrain=!1,P.emit("drain"))}(A,U),U.pendingcb--,q(),c(A,U)}function lt(A,U){U.bufferProcessing=!0;var k=U.bufferedRequest;if(A._writev&&k&&k.next){var q=U.bufferedRequestCount,P=new Array(q),z=U.corkedRequestsFree;z.entry=k;for(var V=0,$=!0;k;)P[V]=k,k.isBuf||($=!1),k=k.next,V+=1;P.allBuffers=$,Q(A,U,!0,U.length,P,"",z.finish),U.pendingcb++,U.lastBufferedRequest=null,z.next?(U.corkedRequestsFree=z.next,z.next=null):U.corkedRequestsFree=new u(U),U.bufferedRequestCount=0}else{for(;k;){var K=k.chunk,T=k.encoding,i=k.callback;if(Q(A,U,!1,U.objectMode?1:K.length,K,T,i),k=k.next,U.bufferedRequestCount--,U.writing)break}k===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=k,U.bufferProcessing=!1}function rt(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function at(A,U){A._final(function(k){U.pendingcb--,k&&x(A,k),U.prefinished=!0,A.emit("prefinish"),c(A,U)})}function c(A,U){var k=rt(U);if(k&&(function(P,z){z.prefinished||z.finalCalled||(typeof P._final!="function"||z.destroyed?(z.prefinished=!0,P.emit("prefinish")):(z.pendingcb++,z.finalCalled=!0,o.nextTick(at,P,z)))}(A,U),U.pendingcb===0&&(U.finished=!0,A.emit("finish"),U.autoDestroy))){var q=A._readableState;(!q||q.autoDestroy&&q.endEmitted)&&A.destroy()}return k}n(5717)(B,p),r.prototype.getBuffer=function(){for(var A=this.bufferedRequest,U=[];A;)U.push(A),A=A.next;return U},function(){try{Object.defineProperty(r.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(A){return!!m.call(this,A)||this===B&&A&&A._writableState instanceof r}})):m=function(A){return A instanceof this},B.prototype.pipe=function(){x(this,new O)},B.prototype.write=function(A,U,k){var q,P=this._writableState,z=!1,V=!P.objectMode&&(q=A,S.isBuffer(q)||q instanceof N);return V&&!S.isBuffer(A)&&(A=function($){return S.from($)}(A)),typeof U=="function"&&(k=U,U=null),V?U="buffer":U||(U=P.defaultEncoding),typeof k!="function"&&(k=D),P.ending?function($,K){var T=new b;x($,T),o.nextTick(K,T)}(this,k):(V||function($,K,T,i){var v;return T===null?v=new d:typeof T=="string"||K.objectMode||(v=new l("chunk",["string","Buffer"],T)),!v||(x($,v),o.nextTick(i,v),!1)}(this,P,A,k))&&(P.pendingcb++,z=function($,K,T,i,v,L){if(!T){var Y=function(it,gt,ft){return it.objectMode||it.decodeStrings===!1||typeof gt!="string"||(gt=S.from(gt,ft)),gt}(K,i,v);i!==Y&&(T=!0,v="buffer",i=Y)}var st=K.objectMode?1:i.length;K.length+=st;var ht=K.length<K.highWaterMark;if(ht||(K.needDrain=!0),K.writing||K.corked){var nt=K.lastBufferedRequest;K.lastBufferedRequest={chunk:i,encoding:v,isBuf:T,callback:L,next:null},nt?nt.next=K.lastBufferedRequest:K.bufferedRequest=K.lastBufferedRequest,K.bufferedRequestCount+=1}else Q($,K,!1,st,i,v,L);return ht}(this,P,V,A,U,k)),z},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.bufferProcessing||!A.bufferedRequest||lt(this,A))},B.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new C(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(A,U,k){k(new g("_write()"))},B.prototype._writev=null,B.prototype.end=function(A,U,k){var q=this._writableState;return typeof A=="function"?(k=A,A=null,U=null):typeof U=="function"&&(k=U,U=null),A!=null&&this.write(A,U),q.corked&&(q.corked=1,this.uncork()),q.ending||function(P,z,V){z.ending=!0,c(P,z),V&&(z.finished?o.nextTick(V):P.once("finish",V)),z.ended=!0,P.writable=!1}(this,q,k),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),B.prototype.destroy=_.destroy,B.prototype._undestroy=_.undestroy,B.prototype._destroy=function(A,U){U(A)}},828:(W,F,n)=>{var a,o=n(4155);function u(d,b,C){return b in d?Object.defineProperty(d,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):d[b]=C,d}var m=n(1086),I=Symbol("lastResolve"),p=Symbol("lastReject"),S=Symbol("error"),N=Symbol("ended"),_=Symbol("lastPromise"),y=Symbol("handlePromise"),h=Symbol("stream");function l(d,b){return{value:d,done:b}}function g(d){var b=d[I];if(b!==null){var C=d[h].read();C!==null&&(d[_]=null,d[I]=null,d[p]=null,b(l(C,!1)))}}function E(d){o.nextTick(g,d)}var O=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((u(a={get stream(){return this[h]},next:function(){var d=this,b=this[S];if(b!==null)return Promise.reject(b);if(this[N])return Promise.resolve(l(void 0,!0));if(this[h].destroyed)return new Promise(function(r,B){o.nextTick(function(){d[S]?B(d[S]):r(l(void 0,!0))})});var C,x=this[_];if(x)C=new Promise(function(r,B){return function(Q,G){r.then(function(){B[N]?Q(l(void 0,!0)):B[y](Q,G)},G)}}(x,this));else{var D=this[h].read();if(D!==null)return Promise.resolve(l(D,!1));C=new Promise(this[y])}return this[_]=C,C}},Symbol.asyncIterator,function(){return this}),u(a,"return",function(){var d=this;return new Promise(function(b,C){d[h].destroy(null,function(x){x?C(x):b(l(void 0,!0))})})}),a),O);W.exports=function(d){var b,C=Object.create(M,(u(b={},h,{value:d,writable:!0}),u(b,I,{value:null,writable:!0}),u(b,p,{value:null,writable:!0}),u(b,S,{value:null,writable:!0}),u(b,N,{value:d._readableState.endEmitted,writable:!0}),u(b,y,{value:function(x,D){var r=C[h].read();r?(C[_]=null,C[I]=null,C[p]=null,x(l(r,!1))):(C[I]=x,C[p]=D)},writable:!0}),b));return C[_]=null,m(d,function(x){if(x&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=C[p];return D!==null&&(C[_]=null,C[I]=null,C[p]=null,D(x)),void(C[S]=x)}var r=C[I];r!==null&&(C[_]=null,C[I]=null,C[p]=null,r(l(void 0,!0))),C[N]=!0}),d.on("readable",E.bind(null,C)),C}},9686:(W,F,n)=>{function a(S,N){var _=Object.keys(S);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(S);N&&(y=y.filter(function(h){return Object.getOwnPropertyDescriptor(S,h).enumerable})),_.push.apply(_,y)}return _}function o(S,N,_){return N in S?Object.defineProperty(S,N,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[N]=_,S}function u(S,N){for(var _=0;_<N.length;_++){var y=N[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(S,y.key,y)}}var m=n(8764).Buffer,I=n(5575).inspect,p=I&&I.custom||"inspect";W.exports=function(){function S(){(function(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")})(this,S),this.head=null,this.tail=null,this.length=0}var N,_;return N=S,_=[{key:"push",value:function(y){var h={data:y,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(y){var h={data:y,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var h=this.head,l=""+h.data;h=h.next;)l+=y+h.data;return l}},{key:"concat",value:function(y){if(this.length===0)return m.alloc(0);for(var h,l,g,E=m.allocUnsafe(y>>>0),O=this.head,M=0;O;)h=O.data,l=E,g=M,m.prototype.copy.call(h,l,g),M+=O.data.length,O=O.next;return E}},{key:"consume",value:function(y,h){var l;return y<this.head.data.length?(l=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):l=y===this.head.data.length?this.shift():h?this._getString(y):this._getBuffer(y),l}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var h=this.head,l=1,g=h.data;for(y-=g.length;h=h.next;){var E=h.data,O=y>E.length?E.length:y;if(O===E.length?g+=E:g+=E.slice(0,y),(y-=O)==0){O===E.length?(++l,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=E.slice(O));break}++l}return this.length-=l,g}},{key:"_getBuffer",value:function(y){var h=m.allocUnsafe(y),l=this.head,g=1;for(l.data.copy(h),y-=l.data.length;l=l.next;){var E=l.data,O=y>E.length?E.length:y;if(E.copy(h,h.length-y,0,O),(y-=O)==0){O===E.length?(++g,l.next?this.head=l.next:this.head=this.tail=null):(this.head=l,l.data=E.slice(O));break}++g}return this.length-=g,h}},{key:p,value:function(y,h){return I(this,function(l){for(var g=1;g<arguments.length;g++){var E=arguments[g]!=null?arguments[g]:{};g%2?a(Object(E),!0).forEach(function(O){o(l,O,E[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(E)):a(Object(E)).forEach(function(O){Object.defineProperty(l,O,Object.getOwnPropertyDescriptor(E,O))})}return l}({},h,{depth:0,customInspect:!1}))}}],_&&u(N.prototype,_),S}()},1029:(W,F,n)=>{var a=n(4155);function o(I,p){m(I,p),u(I)}function u(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.emit("close")}function m(I,p){I.emit("error",p)}W.exports={destroy:function(I,p){var S=this,N=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return N||_?(p?p(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(m,this,I)):a.nextTick(m,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(y){!p&&y?S._writableState?S._writableState.errorEmitted?a.nextTick(u,S):(S._writableState.errorEmitted=!0,a.nextTick(o,S,y)):a.nextTick(o,S,y):p?(a.nextTick(u,S),p(y)):a.nextTick(u,S)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(I,p){var S=I._readableState,N=I._writableState;S&&S.autoDestroy||N&&N.autoDestroy?I.destroy(p):I.emit("error",p)}}},1086:(W,F,n)=>{var a=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}W.exports=function u(m,I,p){if(typeof I=="function")return u(m,null,I);I||(I={}),p=function(d){var b=!1;return function(){if(!b){b=!0;for(var C=arguments.length,x=new Array(C),D=0;D<C;D++)x[D]=arguments[D];d.apply(this,x)}}}(p||o);var S=I.readable||I.readable!==!1&&m.readable,N=I.writable||I.writable!==!1&&m.writable,_=function(){m.writable||h()},y=m._writableState&&m._writableState.finished,h=function(){N=!1,y=!0,S||p.call(m)},l=m._readableState&&m._readableState.endEmitted,g=function(){S=!1,l=!0,N||p.call(m)},E=function(d){p.call(m,d)},O=function(){var d;return S&&!l?(m._readableState&&m._readableState.ended||(d=new a),p.call(m,d)):N&&!y?(m._writableState&&m._writableState.ended||(d=new a),p.call(m,d)):void 0},M=function(){m.req.on("finish",h)};return function(d){return d.setHeader&&typeof d.abort=="function"}(m)?(m.on("complete",h),m.on("abort",O),m.req?M():m.on("request",M)):N&&!m._writableState&&(m.on("end",_),m.on("close",_)),m.on("end",g),m.on("finish",h),I.error!==!1&&m.on("error",E),m.on("close",O),function(){m.removeListener("complete",h),m.removeListener("abort",O),m.removeListener("request",M),m.req&&m.req.removeListener("finish",h),m.removeListener("end",_),m.removeListener("close",_),m.removeListener("finish",h),m.removeListener("end",g),m.removeListener("error",E),m.removeListener("close",O)}}},1265:W=>{W.exports=function(){throw new Error("Readable.from is not available in the browser")}},6472:(W,F,n)=>{var a,o=n(8106).q,u=o.ERR_MISSING_ARGS,m=o.ERR_STREAM_DESTROYED;function I(y){if(y)throw y}function p(y,h,l,g){g=function(M){var d=!1;return function(){d||(d=!0,M.apply(void 0,arguments))}}(g);var E=!1;y.on("close",function(){E=!0}),a===void 0&&(a=n(1086)),a(y,{readable:h,writable:l},function(M){if(M)return g(M);E=!0,g()});var O=!1;return function(M){if(!E&&!O)return O=!0,function(d){return d.setHeader&&typeof d.abort=="function"}(y)?y.abort():typeof y.destroy=="function"?y.destroy():void g(M||new m("pipe"))}}function S(y){y()}function N(y,h){return y.pipe(h)}function _(y){return y.length?typeof y[y.length-1]!="function"?I:y.pop():I}W.exports=function(){for(var y=arguments.length,h=new Array(y),l=0;l<y;l++)h[l]=arguments[l];var g,E=_(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new u("streams");var O=h.map(function(M,d){var b=d<h.length-1;return p(M,b,d>0,function(C){g||(g=C),C&&O.forEach(S),b||(O.forEach(S),E(g))})});return h.reduce(N)}},94:(W,F,n)=>{var a=n(8106).q.ERR_INVALID_OPT_VALUE;W.exports={getHighWaterMark:function(o,u,m,I){var p=function(S,N,_){return S.highWaterMark!=null?S.highWaterMark:N?S[_]:null}(u,I,m);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new a(I?m:"highWaterMark",p);return Math.floor(p)}return o.objectMode?16:16384}}},3194:(W,F,n)=>{W.exports=n(7187).EventEmitter},2553:(W,F,n)=>{var a=n(9509).Buffer,o=a.isEncoding||function(l){switch((l=""+l)&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function u(l){var g;switch(this.encoding=function(E){var O=function(M){if(!M)return"utf8";for(var d;;)switch(M){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 M;default:if(d)return;M=(""+M).toLowerCase(),d=!0}}(E);if(typeof O!="string"&&(a.isEncoding===o||!o(E)))throw new Error("Unknown encoding: "+E);return O||E}(l),this.encoding){case"utf16le":this.text=p,this.end=S,g=4;break;case"utf8":this.fillLast=I,g=4;break;case"base64":this.text=N,this.end=_,g=3;break;default:return this.write=y,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(g)}function m(l){return l<=127?0:l>>5==6?2:l>>4==14?3:l>>3==30?4:l>>6==2?-1:-2}function I(l){var g=this.lastTotal-this.lastNeed,E=function(O,M,d){if((192&M[0])!=128)return O.lastNeed=0,"�";if(O.lastNeed>1&&M.length>1){if((192&M[1])!=128)return O.lastNeed=1,"�";if(O.lastNeed>2&&M.length>2&&(192&M[2])!=128)return O.lastNeed=2,"�"}}(this,l);return E!==void 0?E:this.lastNeed<=l.length?(l.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(l.copy(this.lastChar,g,0,l.length),void(this.lastNeed-=l.length))}function p(l,g){if((l.length-g)%2==0){var E=l.toString("utf16le",g);if(E){var O=E.charCodeAt(E.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",g,l.length-1)}function S(l){var g=l&&l.length?this.write(l):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,E)}return g}function N(l,g){var E=(l.length-g)%3;return E===0?l.toString("base64",g):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",g,l.length-E))}function _(l){var g=l&&l.length?this.write(l):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function y(l){return l.toString(this.encoding)}function h(l){return l&&l.length?this.write(l):""}F.s=u,u.prototype.write=function(l){if(l.length===0)return"";var g,E;if(this.lastNeed){if((g=this.fillLast(l))===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<l.length?g?g+this.text(l,E):this.text(l,E):g||""},u.prototype.end=function(l){var g=l&&l.length?this.write(l):"";return this.lastNeed?g+"�":g},u.prototype.text=function(l,g){var E=function(M,d,b){var C=d.length-1;if(C<b)return 0;var x=m(d[C]);return x>=0?(x>0&&(M.lastNeed=x-1),x):--C<b||x===-2?0:(x=m(d[C]))>=0?(x>0&&(M.lastNeed=x-2),x):--C<b||x===-2?0:(x=m(d[C]))>=0?(x>0&&(x===2?x=0:M.lastNeed=x-3),x):0}(this,l,g);if(!this.lastNeed)return l.toString("utf8",g);this.lastTotal=E;var O=l.length-(E-this.lastNeed);return l.copy(this.lastChar,0,O),l.toString("utf8",g,O)},u.prototype.fillLast=function(l){if(this.lastNeed<=l.length)return l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,l.length),this.lastNeed-=l.length}},5457:(W,F,n)=>{n.d(F,{vw:()=>u,rq:()=>o,EL:()=>I,NY:()=>m});let a=0;const o=p=>Math.floor(p/25.4*72*20),u=p=>Math.floor(72*p*20),m=()=>++a,I=()=>((p=21)=>{let S="",N=p;for(;N--;)S+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return S})().toLowerCase()},5575:(W,F,n)=>{n.r(F),n.d(F,{convertInchesToTwip:()=>a.vw,convertMillimetersToTwip:()=>a.rq,dateTimeValue:()=>o.sF,decimalNumber:()=>o.vH,eighthPointMeasureValue:()=>o.LV,hexColorValue:()=>o.dg,hpsMeasureValue:()=>o.KR,longHexNumber:()=>o.mA,measurementOrPercentValue:()=>o.aB,percentageValue:()=>o.wp,pointMeasureValue:()=>o.gg,positiveUniversalMeasureValue:()=>o._p,shortHexNumber:()=>o.G0,signedHpsMeasureValue:()=>o.Rg,signedTwipsMeasureValue:()=>o.xb,twipsMeasureValue:()=>o.Jd,uCharHexNumber:()=>o.xD,uniqueId:()=>a.EL,uniqueNumericId:()=>a.NY,universalMeasureValue:()=>o.KC,unsignedDecimalNumber:()=>o.f$});var a=n(5457),o=n(6595)},6595:(W,F,n)=>{n.d(F,{G0:()=>I,Jd:()=>E,KC:()=>S,KR:()=>l,LV:()=>d,Rg:()=>g,_p:()=>_,aB:()=>M,dg:()=>y,f$:()=>o,gg:()=>b,mA:()=>m,sF:()=>C,vH:()=>a,wp:()=>O,xD:()=>p,xb:()=>h});const a=x=>{if(isNaN(x))throw new Error(`Invalid value '${x}' specified. Must be an integer.`);return Math.floor(x)},o=x=>{const D=a(x);if(D<0)throw new Error(`Invalid value '${x}' specified. Must be a positive integer.`);return D},u=(x,D)=>{const r=2*D;if(x.length!==r||isNaN(+`0x${x}`))throw new Error(`Invalid hex value '${x}'. Expected ${r} digit hex value`);return x},m=x=>u(x,4),I=x=>u(x,2),p=x=>u(x,1),S=x=>{const D=x.slice(-2);if(!N.includes(D))throw new Error(`Invalid unit '${D}' specified. Valid units are ${N.join(", ")}`);const r=x.substring(0,x.length-2);if(isNaN(Number(r)))throw new Error(`Invalid value '${r}' specified. Expected a valid number.`);return`${Number(r)}${D}`},N=["mm","cm","in","pt","pc","pi"],_=x=>{const D=S(x);if(parseFloat(D)<0)throw new Error(`Invalid value '${D}' specified. Expected a positive number.`);return D},y=x=>{if(x==="auto")return x;const D=x.charAt(0)==="#"?x.substring(1):x;return u(D,3)},h=x=>typeof x=="string"?S(x):a(x),l=x=>typeof x=="string"?_(x):o(x),g=x=>typeof x=="string"?S(x):a(x),E=x=>typeof x=="string"?_(x):o(x),O=x=>{if(x.slice(-1)!=="%")throw new Error(`Invalid value '${x}'. Expected percentage value (eg '55%')`);const D=x.substring(0,x.length-1);if(isNaN(Number(D)))throw new Error(`Invalid value '${D}' specified. Expected a valid number.`);return`${Number(D)}%`},M=x=>typeof x=="number"?a(x):x.slice(-1)==="%"?O(x):S(x),d=o,b=o,C=x=>x.toISOString()},4927:(W,F,n)=>{function a(o){try{if(!n.g.localStorage)return!1}catch{return!1}var u=n.g.localStorage[o];return u!=null&&String(u).toLowerCase()==="true"}W.exports=function(o,u){if(a("noDeprecation"))return o;var m=!1;return function(){if(!m){if(a("throwDeprecation"))throw new Error(u);a("traceDeprecation")?console.trace(u):console.warn(u),m=!0}return o.apply(this,arguments)}}},9881:W=>{W.exports={isArray:function(F){return Array.isArray?Array.isArray(F):Object.prototype.toString.call(F)==="[object Array]"}}},7888:(W,F,n)=>{var a=n(1229),o=n(1388),u=n(6501),m=n(4673);W.exports={xml2js:a,xml2json:o,js2xml:u,json2xml:m}},6501:(W,F,n)=>{var a,o,u=n(4740),m=n(9881).isArray;function I(d,b,C){return(!C&&d.spaces?`
|
|
11
|
-
`:"")+Array(b+1).join(d.spaces)}function p(d,b,C){if(b.ignoreAttributes)return"";"attributesFn"in b&&(d=b.attributesFn(d,o,a));var x,D,r,B,Q=[];for(x in d)d.hasOwnProperty(x)&&d[x]!==null&&d[x]!==void 0&&(B=b.noQuotesForNativeAttributes&&typeof d[x]!="string"?"":'"',D=(D=""+d[x]).replace(/"/g,"""),r="attributeNameFn"in b?b.attributeNameFn(x,D,o,a):x,Q.push(b.spaces&&b.indentAttributes?I(b,C+1,!1):" "),Q.push(r+"="+B+("attributeValueFn"in b?b.attributeValueFn(D,x,o,a):D)+B));return d&&Object.keys(d).length&&b.spaces&&b.indentAttributes&&Q.push(I(b,C,!1)),Q.join("")}function S(d,b,C){return a=d,o="xml",b.ignoreDeclaration?"":"<?xml"+p(d[b.attributesKey],b,C)+"?>"}function N(d,b,C){if(b.ignoreInstruction)return"";var x;for(x in d)if(d.hasOwnProperty(x))break;var D="instructionNameFn"in b?b.instructionNameFn(x,d[x],o,a):x;if(typeof d[x]=="object")return a=d,o=D,"<?"+D+p(d[x][b.attributesKey],b,C)+"?>";var r=d[x]?d[x]:"";return"instructionFn"in b&&(r=b.instructionFn(r,x,o,a)),"<?"+D+(r?" "+r:"")+"?>"}function _(d,b){return b.ignoreComment?"":"<!--"+("commentFn"in b?b.commentFn(d,o,a):d)+"-->"}function y(d,b){return b.ignoreCdata?"":"<![CDATA["+("cdataFn"in b?b.cdataFn(d,o,a):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(d,b){return b.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in b?b.doctypeFn(d,o,a):d)+">"}function l(d,b){return b.ignoreText?"":(d=(d=(d=""+d).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in b?b.textFn(d,o,a):d)}function g(d,b,C,x){return d.reduce(function(D,r){var B=I(b,C,x&&!D);switch(r.type){case"element":return D+B+function(G,lt,rt){a=G,o=G.name;var at=[],c="elementNameFn"in lt?lt.elementNameFn(G.name,G):G.name;at.push("<"+c),G[lt.attributesKey]&&at.push(p(G[lt.attributesKey],lt,rt));var A=G[lt.elementsKey]&&G[lt.elementsKey].length||G[lt.attributesKey]&&G[lt.attributesKey]["xml:space"]==="preserve";return A||(A="fullTagEmptyElementFn"in lt?lt.fullTagEmptyElementFn(G.name,G):lt.fullTagEmptyElement),A?(at.push(">"),G[lt.elementsKey]&&G[lt.elementsKey].length&&(at.push(g(G[lt.elementsKey],lt,rt+1)),a=G,o=G.name),at.push(lt.spaces&&function(U,k){var q;if(U.elements&&U.elements.length)for(q=0;q<U.elements.length;++q)switch(U.elements[q][k.typeKey]){case"text":if(k.indentText)return!0;break;case"cdata":if(k.indentCdata)return!0;break;case"instruction":if(k.indentInstruction)return!0;break;default:return!0}return!1}(G,lt)?`
|
|
12
|
-
`+Array(rt+1).join(lt.spaces):""),at.push("</"+c+">")):at.push("/>"),at.join("")}(r,b,C);case"comment":return D+B+_(r[b.commentKey],b);case"doctype":return D+B+h(r[b.doctypeKey],b);case"cdata":return D+(b.indentCdata?B:"")+y(r[b.cdataKey],b);case"text":return D+(b.indentText?B:"")+l(r[b.textKey],b);case"instruction":var Q={};return Q[r[b.nameKey]]=r[b.attributesKey]?r:r[b.instructionKey],D+(b.indentInstruction?B:"")+N(Q,b,C)}},"")}function E(d,b,C){var x;for(x in d)if(d.hasOwnProperty(x))switch(x){case b.parentKey:case b.attributesKey:break;case b.textKey:if(b.indentText||C)return!0;break;case b.cdataKey:if(b.indentCdata||C)return!0;break;case b.instructionKey:if(b.indentInstruction||C)return!0;break;case b.doctypeKey:case b.commentKey:default:return!0}return!1}function O(d,b,C,x,D){a=d,o=b;var r="elementNameFn"in C?C.elementNameFn(b,d):b;if(d==null||d==="")return"fullTagEmptyElementFn"in C&&C.fullTagEmptyElementFn(b,d)||C.fullTagEmptyElement?"<"+r+"></"+r+">":"<"+r+"/>";var B=[];if(b){if(B.push("<"+r),typeof d!="object")return B.push(">"+l(d,C)+"</"+r+">"),B.join("");d[C.attributesKey]&&B.push(p(d[C.attributesKey],C,x));var Q=E(d,C,!0)||d[C.attributesKey]&&d[C.attributesKey]["xml:space"]==="preserve";if(Q||(Q="fullTagEmptyElementFn"in C?C.fullTagEmptyElementFn(b,d):C.fullTagEmptyElement),!Q)return B.push("/>"),B.join("");B.push(">")}return B.push(M(d,C,x+1,!1)),a=d,o=b,b&&B.push((D?I(C,x,!1):"")+"</"+r+">"),B.join("")}function M(d,b,C,x){var D,r,B,Q=[];for(r in d)if(d.hasOwnProperty(r))for(B=m(d[r])?d[r]:[d[r]],D=0;D<B.length;++D){switch(r){case b.declarationKey:Q.push(S(B[D],b,C));break;case b.instructionKey:Q.push((b.indentInstruction?I(b,C,x):"")+N(B[D],b,C));break;case b.attributesKey:case b.parentKey:break;case b.textKey:Q.push((b.indentText?I(b,C,x):"")+l(B[D],b));break;case b.cdataKey:Q.push((b.indentCdata?I(b,C,x):"")+y(B[D],b));break;case b.doctypeKey:Q.push(I(b,C,x)+h(B[D],b));break;case b.commentKey:Q.push(I(b,C,x)+_(B[D],b));break;default:Q.push(I(b,C,x)+O(B[D],r,b,C,E(B[D],b)))}x=x&&!Q.length}return Q.join("")}W.exports=function(d,b){b=function(x){var D=u.copyOptions(x);return u.ensureFlagExists("ignoreDeclaration",D),u.ensureFlagExists("ignoreInstruction",D),u.ensureFlagExists("ignoreAttributes",D),u.ensureFlagExists("ignoreText",D),u.ensureFlagExists("ignoreComment",D),u.ensureFlagExists("ignoreCdata",D),u.ensureFlagExists("ignoreDoctype",D),u.ensureFlagExists("compact",D),u.ensureFlagExists("indentText",D),u.ensureFlagExists("indentCdata",D),u.ensureFlagExists("indentAttributes",D),u.ensureFlagExists("indentInstruction",D),u.ensureFlagExists("fullTagEmptyElement",D),u.ensureFlagExists("noQuotesForNativeAttributes",D),u.ensureSpacesExists(D),typeof D.spaces=="number"&&(D.spaces=Array(D.spaces+1).join(" ")),u.ensureKeyExists("declaration",D),u.ensureKeyExists("instruction",D),u.ensureKeyExists("attributes",D),u.ensureKeyExists("text",D),u.ensureKeyExists("comment",D),u.ensureKeyExists("cdata",D),u.ensureKeyExists("doctype",D),u.ensureKeyExists("type",D),u.ensureKeyExists("name",D),u.ensureKeyExists("elements",D),u.checkFnExists("doctype",D),u.checkFnExists("instruction",D),u.checkFnExists("cdata",D),u.checkFnExists("comment",D),u.checkFnExists("text",D),u.checkFnExists("instructionName",D),u.checkFnExists("elementName",D),u.checkFnExists("attributeName",D),u.checkFnExists("attributeValue",D),u.checkFnExists("attributes",D),u.checkFnExists("fullTagEmptyElement",D),D}(b);var C=[];return a=d,o="_root_",b.compact?C.push(M(d,b,0,!0)):(d[b.declarationKey]&&C.push(S(d[b.declarationKey],b,0)),d[b.elementsKey]&&d[b.elementsKey].length&&C.push(g(d[b.elementsKey],b,0,!C.length))),C.join("")}},4673:(W,F,n)=>{var a=n(6501);W.exports=function(o,u){o instanceof Buffer&&(o=o.toString());var m=null;if(typeof o=="string")try{m=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else m=o;return a(m,u)}},4740:(W,F,n)=>{var a=n(9881).isArray;W.exports={copyOptions:function(o){var u,m={};for(u in o)o.hasOwnProperty(u)&&(m[u]=o[u]);return m},ensureFlagExists:function(o,u){o in u&&typeof u[o]=="boolean"||(u[o]=!1)},ensureSpacesExists:function(o){(!("spaces"in o)||typeof o.spaces!="number"&&typeof o.spaces!="string")&&(o.spaces=0)},ensureAlwaysArrayExists:function(o){"alwaysArray"in o&&(typeof o.alwaysArray=="boolean"||a(o.alwaysArray))||(o.alwaysArray=!1)},ensureKeyExists:function(o,u){o+"Key"in u&&typeof u[o+"Key"]=="string"||(u[o+"Key"]=u.compact?"_"+o:o)},checkFnExists:function(o,u){return o+"Fn"in u}}},1229:(W,F,n)=>{var a,o,u=n(6099),m=n(4740),I=n(9881).isArray;function p(d){var b=Number(d);if(!isNaN(b))return b;var C=d.toLowerCase();return C==="true"||C!=="false"&&d}function S(d,b){var C;if(a.compact){if(!o[a[d+"Key"]]&&(I(a.alwaysArray)?a.alwaysArray.indexOf(a[d+"Key"])!==-1:a.alwaysArray)&&(o[a[d+"Key"]]=[]),o[a[d+"Key"]]&&!I(o[a[d+"Key"]])&&(o[a[d+"Key"]]=[o[a[d+"Key"]]]),d+"Fn"in a&&typeof b=="string"&&(b=a[d+"Fn"](b,o)),d==="instruction"&&("instructionFn"in a||"instructionNameFn"in a)){for(C in b)if(b.hasOwnProperty(C))if("instructionFn"in a)b[C]=a.instructionFn(b[C],C,o);else{var x=b[C];delete b[C],b[a.instructionNameFn(C,x,o)]=x}}I(o[a[d+"Key"]])?o[a[d+"Key"]].push(b):o[a[d+"Key"]]=b}else{o[a.elementsKey]||(o[a.elementsKey]=[]);var D={};if(D[a.typeKey]=d,d==="instruction"){for(C in b)if(b.hasOwnProperty(C))break;D[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(C,b,o):C,a.instructionHasAttributes?(D[a.attributesKey]=b[C][a.attributesKey],"instructionFn"in a&&(D[a.attributesKey]=a.instructionFn(D[a.attributesKey],C,o))):("instructionFn"in a&&(b[C]=a.instructionFn(b[C],C,o)),D[a.instructionKey]=b[C])}else d+"Fn"in a&&(b=a[d+"Fn"](b,o)),D[a[d+"Key"]]=b;a.addParent&&(D[a.parentKey]=o),o[a.elementsKey].push(D)}}function N(d){var b;if("attributesFn"in a&&d&&(d=a.attributesFn(d,o)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&d){for(b in d)if(d.hasOwnProperty(b)&&(a.trim&&(d[b]=d[b].trim()),a.nativeTypeAttributes&&(d[b]=p(d[b])),"attributeValueFn"in a&&(d[b]=a.attributeValueFn(d[b],b,o)),"attributeNameFn"in a)){var C=d[b];delete d[b],d[a.attributeNameFn(b,d[b],o)]=C}}return d}function _(d){var b={};if(d.body&&(d.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var C,x=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;(C=x.exec(d.body))!==null;)b[C[1]]=C[2]||C[3]||C[4];b=N(b)}if(d.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;o[a.declarationKey]={},Object.keys(b).length&&(o[a.declarationKey][a.attributesKey]=b),a.addParent&&(o[a.declarationKey][a.parentKey]=o)}else{if(a.ignoreInstruction)return;a.trim&&(d.body=d.body.trim());var D={};a.instructionHasAttributes&&Object.keys(b).length?(D[d.name]={},D[d.name][a.attributesKey]=b):D[d.name]=d.body,S("instruction",D)}}function y(d,b){var C;if(typeof d=="object"&&(b=d.attributes,d=d.name),b=N(b),"elementNameFn"in a&&(d=a.elementNameFn(d,o)),a.compact){var x;if(C={},!a.ignoreAttributes&&b&&Object.keys(b).length)for(x in C[a.attributesKey]={},b)b.hasOwnProperty(x)&&(C[a.attributesKey][x]=b[x]);!(d in o)&&(I(a.alwaysArray)?a.alwaysArray.indexOf(d)!==-1:a.alwaysArray)&&(o[d]=[]),o[d]&&!I(o[d])&&(o[d]=[o[d]]),I(o[d])?o[d].push(C):o[d]=C}else o[a.elementsKey]||(o[a.elementsKey]=[]),(C={})[a.typeKey]="element",C[a.nameKey]=d,!a.ignoreAttributes&&b&&Object.keys(b).length&&(C[a.attributesKey]=b),a.alwaysChildren&&(C[a.elementsKey]=[]),o[a.elementsKey].push(C);C[a.parentKey]=o,o=C}function h(d){a.ignoreText||(d.trim()||a.captureSpacesBetweenElements)&&(a.trim&&(d=d.trim()),a.nativeType&&(d=p(d)),a.sanitize&&(d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),S("text",d))}function l(d){a.ignoreComment||(a.trim&&(d=d.trim()),S("comment",d))}function g(d){var b=o[a.parentKey];a.addParent||delete o[a.parentKey],o=b}function E(d){a.ignoreCdata||(a.trim&&(d=d.trim()),S("cdata",d))}function O(d){a.ignoreDoctype||(d=d.replace(/^ /,""),a.trim&&(d=d.trim()),S("doctype",d))}function M(d){d.note=d}W.exports=function(d,b){var C=u.parser(!0,{}),x={};if(o=x,a=function(r){return a=m.copyOptions(r),m.ensureFlagExists("ignoreDeclaration",a),m.ensureFlagExists("ignoreInstruction",a),m.ensureFlagExists("ignoreAttributes",a),m.ensureFlagExists("ignoreText",a),m.ensureFlagExists("ignoreComment",a),m.ensureFlagExists("ignoreCdata",a),m.ensureFlagExists("ignoreDoctype",a),m.ensureFlagExists("compact",a),m.ensureFlagExists("alwaysChildren",a),m.ensureFlagExists("addParent",a),m.ensureFlagExists("trim",a),m.ensureFlagExists("nativeType",a),m.ensureFlagExists("nativeTypeAttributes",a),m.ensureFlagExists("sanitize",a),m.ensureFlagExists("instructionHasAttributes",a),m.ensureFlagExists("captureSpacesBetweenElements",a),m.ensureAlwaysArrayExists(a),m.ensureKeyExists("declaration",a),m.ensureKeyExists("instruction",a),m.ensureKeyExists("attributes",a),m.ensureKeyExists("text",a),m.ensureKeyExists("comment",a),m.ensureKeyExists("cdata",a),m.ensureKeyExists("doctype",a),m.ensureKeyExists("type",a),m.ensureKeyExists("name",a),m.ensureKeyExists("elements",a),m.ensureKeyExists("parent",a),m.checkFnExists("doctype",a),m.checkFnExists("instruction",a),m.checkFnExists("cdata",a),m.checkFnExists("comment",a),m.checkFnExists("text",a),m.checkFnExists("instructionName",a),m.checkFnExists("elementName",a),m.checkFnExists("attributeName",a),m.checkFnExists("attributeValue",a),m.checkFnExists("attributes",a),a}(b),C.opt={strictEntities:!0},C.onopentag=y,C.ontext=h,C.oncomment=l,C.onclosetag=g,C.onerror=M,C.oncdata=E,C.ondoctype=O,C.onprocessinginstruction=_,C.write(d).close(),x[a.elementsKey]){var D=x[a.elementsKey];delete x[a.elementsKey],x[a.elementsKey]=D,delete x.text}return x}},1388:(W,F,n)=>{var a=n(4740),o=n(1229);W.exports=function(u,m){var I,p,S;return I=function(N){var _=a.copyOptions(N);return a.ensureSpacesExists(_),_}(m),p=o(u,I),S="compact"in I&&I.compact?"_parent":"parent",("addParent"in I&&I.addParent?JSON.stringify(p,function(N,_){return N===S?"_":_},I.spaces):JSON.stringify(p,null,I.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},255:W=>{var F={"&":"&",'"':""","'":"'","<":"<",">":">"};W.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(a,o){return F[o]}):n}},3479:(W,F,n)=>{var a=n(4155),o=n(255),u=n(2830).Stream;function m(p,S,N){N=N||0;var _,y,h=(_=S,new Array(N||0).join(_||"")),l=p;if(typeof p=="object"&&(l=p[y=Object.keys(p)[0]])&&l._elem)return l._elem.name=y,l._elem.icount=N,l._elem.indent=S,l._elem.indents=h,l._elem.interrupt=l,l._elem;var g,E=[],O=[];function M(d){Object.keys(d).forEach(function(b){E.push(function(C,x){return C+'="'+o(x)+'"'}(b,d[b]))})}switch(typeof l){case"object":if(l===null)break;l._attr&&M(l._attr),l._cdata&&O.push(("<![CDATA["+l._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),l.forEach&&(g=!1,O.push(""),l.forEach(function(d){typeof d=="object"?Object.keys(d)[0]=="_attr"?M(d._attr):O.push(m(d,S,N+1)):(O.pop(),g=!0,O.push(o(d)))}),g||O.push(""));break;default:O.push(o(l))}return{name:y,interrupt:!1,attributes:E,content:O,icount:N,indents:h,indent:S}}function I(p,S,N){if(typeof S!="object")return p(!1,S);var _=S.interrupt?1:S.content.length;function y(){for(;S.content.length;){var l=S.content.shift();if(l!==void 0){if(h(l))return;I(p,l)}}p(!1,(_>1?S.indents:"")+(S.name?"</"+S.name+">":"")+(S.indent&&!N?`
|
|
13
|
-
`:"")),N&&N()}function h(l){return!!l.interrupt&&(l.interrupt.append=p,l.interrupt.end=y,l.interrupt=!1,p(!0),!0)}if(p(!1,S.indents+(S.name?"<"+S.name:"")+(S.attributes.length?" "+S.attributes.join(" "):"")+(_?S.name?">":"":S.name?"/>":"")+(S.indent&&_>1?`
|
|
14
|
-
`:"")),!_)return p(!1,S.indent?`
|
|
15
|
-
`:"");h(S)||y()}W.exports=function(p,S){typeof S!="object"&&(S={indent:S});var N,_,y=S.stream?new u:null,h="",l=!1,g=S.indent?S.indent===!0?" ":S.indent:"",E=!0;function O(C){E?a.nextTick(C):C()}function M(C,x){if(x!==void 0&&(h+=x),C&&!l&&(y=y||new u,l=!0),C&&l){var D=h;O(function(){y.emit("data",D)}),h=""}}function d(C,x){I(M,m(C,g,g?1:0),x)}function b(){if(y){var C=h;O(function(){y.emit("data",C),y.emit("end"),y.readable=!1,y.emit("close")})}}return O(function(){E=!1}),S.declaration&&(_={version:"1.0",encoding:(N=S.declaration).encoding||"UTF-8"},N.standalone&&(_.standalone=N.standalone),d({"?xml":{_attr:_}}),h=h.replace("/>","?>")),p&&p.forEach?p.forEach(function(C,x){var D;x+1===p.length&&(D=b),d(C,D)}):d(p,b),y?(y.readable=!0,y):h},W.exports.element=W.exports.Element=function(){var p=Array.prototype.slice.call(arguments),S={_elem:m(p),push:function(N){if(!this.append)throw new Error("not assigned to a parent!");var _=this,y=this._elem.indent;I(this.append,m(N,y,this._elem.icount+(y?1:0)),function(){_.append(!0)})},close:function(N){N!==void 0&&this.push(N),this.end&&this.end()}};return S}}},xt={};function ct(W){var F=xt[W];if(F!==void 0)return F.exports;var n=xt[W]={exports:{}};return ot[W].call(n.exports,n,n.exports,ct),n.exports}ct.d=(W,F)=>{for(var n in F)ct.o(F,n)&&!ct.o(W,n)&&Object.defineProperty(W,n,{enumerable:!0,get:F[n]})},ct.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),ct.o=(W,F)=>Object.prototype.hasOwnProperty.call(W,F),ct.r=W=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})};var vt={};return(()=>{ct.r(vt),ct.d(vt,{AbstractNumbering:()=>dr,Alignment:()=>A,AlignmentAttributes:()=>c,AlignmentType:()=>h,Attributes:()=>u,BaseEmphasisMark:()=>ft,BaseXmlComponent:()=>W,Body:()=>gn,Bookmark:()=>Vr,BookmarkEnd:()=>Xr,BookmarkStart:()=>$r,Border:()=>q,BorderElement:()=>U,BorderStyle:()=>l,Column:()=>Mo,ColumnAttributes:()=>wn,ColumnBreak:()=>To,Columns:()=>Jr,ColumnsAttributes:()=>Yr,Comment:()=>Br,CommentRangeEnd:()=>vo,CommentRangeStart:()=>xo,CommentReference:()=>_o,Comments:()=>Mr,ConcreteHyperlink:()=>Ge,ConcreteNumbering:()=>fr,DeletedTextRun:()=>qa,DocGridAttributes:()=>Qr,Document:()=>ss,DocumentAttributes:()=>Qt,DocumentBackground:()=>bn,DocumentBackgroundAttributes:()=>yn,DocumentDefaults:()=>es,DocumentGrid:()=>tn,DocumentGridType:()=>De,DotEmphasisMark:()=>Ft,Drawing:()=>Pr,DropCapType:()=>$e,EMPTY_OBJECT:()=>F,EmphasisMark:()=>Tt,EmphasisMarkType:()=>C,ExternalHyperlink:()=>Gr,File:()=>ss,FootNoteReferenceRunAttributes:()=>os,FootNotes:()=>$n,Footer:()=>ja,FooterWrapper:()=>ar,FootnoteReference:()=>is,FootnoteReferenceRun:()=>Ka,FrameAnchorType:()=>Xe,FrameProperties:()=>_n,FramePropertiesAttributes:()=>vn,FrameWrap:()=>qe,GridSpan:()=>Bn,Header:()=>Wa,HeaderFooterReference:()=>xe,HeaderFooterReferenceType:()=>Wt,HeaderFooterType:()=>ae,HeaderWrapper:()=>ur,HeadingLevel:()=>Ne,HeightRule:()=>ir,HorizontalPosition:()=>Ar,HorizontalPositionAlign:()=>E,HorizontalPositionRelativeFrom:()=>me,HpsMeasureElement:()=>Q,HyperlinkType:()=>ke,IgnoreIfEmptyXmlComponent:()=>a,ImageRun:()=>ho,ImportDotx:()=>ec,ImportedRootElementAttributes:()=>N,ImportedXmlComponent:()=>S,Indent:()=>V,InitializableXmlComponent:()=>y,InsertedTextRun:()=>Ga,InternalHyperlink:()=>Oo,LeaderType:()=>Ce,Level:()=>Xn,LevelBase:()=>pr,LevelForOverride:()=>aa,LevelFormat:()=>Ut,LevelOverride:()=>qn,LevelSuffix:()=>hr,LineNumberAttributes:()=>en,LineNumberRestartFormat:()=>Pe,LineNumberType:()=>rn,LineRuleType:()=>Jt,Math:()=>jo,MathAccentCharacter:()=>An,MathAngledBrackets:()=>wi,MathBase:()=>Mt,MathCurlyBrackets:()=>gi,MathDegree:()=>On,MathDenominator:()=>En,MathFraction:()=>Vo,MathFunction:()=>ui,MathFunctionName:()=>Ln,MathFunctionProperties:()=>Dn,MathIntegral:()=>ti,MathLimitLocation:()=>Sn,MathNAryProperties:()=>Ze,MathNumerator:()=>Tn,MathPreSubSuperScript:()=>si,MathPreSubSuperScriptProperties:()=>Cn,MathRadical:()=>ci,MathRadicalProperties:()=>kn,MathRoundBrackets:()=>fi,MathRun:()=>Go,MathSquareBrackets:()=>mi,MathSubScript:()=>ri,MathSubScriptElement:()=>te,MathSubScriptProperties:()=>Rn,MathSubSuperScript:()=>ni,MathSubSuperScriptProperties:()=>Nn,MathSum:()=>Qo,MathSuperScript:()=>ei,MathSuperScriptElement:()=>ee,MathSuperScriptProperties:()=>In,Media:()=>lr,NumberFormat:()=>M,NumberProperties:()=>Ke,NumberValueElement:()=>lt,Numbering:()=>Zn,OnOffElement:()=>B,OutlineLevel:()=>qr,OverlapType:()=>sr,Packer:()=>cs,PageBorderDisplay:()=>Fe,PageBorderOffsetFrom:()=>Be,PageBorderZOrder:()=>Me,PageBorders:()=>sn,PageBreak:()=>Eo,PageBreakBefore:()=>Hr,PageMargin:()=>an,PageMarginAttributes:()=>on,PageNumber:()=>D,PageNumberSeparator:()=>Ue,PageNumberType:()=>un,PageNumberTypeAttributes:()=>cn,PageOrientation:()=>ce,PageReference:()=>Po,PageSize:()=>hn,PageSizeAttributes:()=>ln,PageTextDirection:()=>pn,PageTextDirectionType:()=>He,Paragraph:()=>jt,ParagraphProperties:()=>qt,ParagraphPropertiesDefaults:()=>Qn,PrettifyType:()=>gr,RelativeHorizontalPosition:()=>rr,RelativeVerticalPosition:()=>nr,Run:()=>Bt,RunFonts:()=>Z,RunProperties:()=>Et,RunPropertiesChange:()=>Rt,RunPropertiesDefaults:()=>ts,SectionProperties:()=>mn,SectionType:()=>ze,SectionTypeAttributes:()=>dn,SequentialIdentifier:()=>fo,Shading:()=>it,ShadingType:()=>b,SimpleField:()=>Fr,SimpleMailMergeField:()=>wo,SimplePos:()=>_r,SpaceType:()=>d,Spacing:()=>zr,StringContainer:()=>at,StringEnumValueElement:()=>rt,StringValueElement:()=>G,Style:()=>ue,StyleForCharacter:()=>de,StyleForParagraph:()=>pe,StyleLevel:()=>za,Styles:()=>Ae,SymbolRun:()=>vs,TDirection:()=>Mn,Tab:()=>mo,TabAttributes:()=>jr,TabStop:()=>Wr,TabStopItem:()=>Kr,TabStopPosition:()=>Oe,TabStopType:()=>ie,Table:()=>Ii,TableAnchorType:()=>er,TableBorders:()=>tr,TableCell:()=>Qe,TableCellBorders:()=>Fn,TableFloatOptionsAttributes:()=>Un,TableFloatProperties:()=>Hn,TableLayout:()=>zn,TableLayoutType:()=>or,TableOfContents:()=>Ha,TableProperties:()=>Wn,TableRow:()=>Ri,TableRowHeight:()=>Kn,TableRowHeightAttributes:()=>jn,TableRowProperties:()=>Gn,TableWidthElement:()=>Vt,TextDirection:()=>Ye,TextRun:()=>Yt,TextWrappingSide:()=>we,TextWrappingType:()=>Xt,ThematicBreak:()=>P,Type:()=>fn,Underline:()=>It,UnderlineType:()=>x,VerticalAlign:()=>Le,VerticalAlignAttributes:()=>Zr,VerticalAlignElement:()=>Ve,VerticalMerge:()=>Je,VerticalMergeType:()=>he,VerticalPosition:()=>Sr,VerticalPositionAlign:()=>O,VerticalPositionRelativeFrom:()=>ge,WORKAROUND:()=>Fa,WORKAROUND2:()=>ta,WORKAROUND3:()=>_,WORKAROUND4:()=>oi,WidthType:()=>re,WrapNone:()=>We,WrapSquare:()=>Rr,WrapTight:()=>Nr,WrapTopAndBottom:()=>Cr,XmlAttributeComponent:()=>o,XmlComponent:()=>n,convertInchesToTwip:()=>Ct.convertInchesToTwip,convertMillimetersToTwip:()=>Ct.convertMillimetersToTwip,convertToXmlComponent:()=>I,dateTimeValue:()=>Ct.dateTimeValue,decimalNumber:()=>Ct.decimalNumber,eighthPointMeasureValue:()=>Ct.eighthPointMeasureValue,hexColorValue:()=>Ct.hexColorValue,hpsMeasureValue:()=>Ct.hpsMeasureValue,longHexNumber:()=>Ct.longHexNumber,measurementOrPercentValue:()=>Ct.measurementOrPercentValue,percentageValue:()=>Ct.percentageValue,pointMeasureValue:()=>Ct.pointMeasureValue,positiveUniversalMeasureValue:()=>Ct.positiveUniversalMeasureValue,sectionMarginDefaults:()=>Gt,sectionPageSizeDefaults:()=>ve,shortHexNumber:()=>Ct.shortHexNumber,signedHpsMeasureValue:()=>Ct.signedHpsMeasureValue,signedTwipsMeasureValue:()=>Ct.signedTwipsMeasureValue,twipsMeasureValue:()=>Ct.twipsMeasureValue,uCharHexNumber:()=>Ct.uCharHexNumber,uniqueId:()=>Ct.uniqueId,uniqueNumericId:()=>Ct.uniqueNumericId,universalMeasureValue:()=>Ct.universalMeasureValue,unsignedDecimalNumber:()=>Ct.unsignedDecimalNumber});class W{constructor(t){this.rootKey=t}}const F=Object.seal({});class n extends W{constructor(t){super(t),this.root=new Array}prepForXml(t){var f;const H=this.root.map(J=>J instanceof W?J.prepForXml(t):J).filter(J=>J!==void 0);return{[this.rootKey]:H.length?H.length===1&&(!((f=H[0])===null||f===void 0)&&f._attr)?H[0]:H:F}}addChildElement(t){return this.root.push(t),this}}class a extends n{prepForXml(t){const f=super.prepForXml(t);if(f&&(typeof f[this.rootKey]!="object"||Object.keys(f[this.rootKey]).length))return f}}class o extends W{constructor(t){super("_attr"),this.root=t}prepForXml(t){const f={};return Object.keys(this.root).forEach(H=>{const J=this.root[H];if(J!==void 0){const tt=this.xmlKeys&&this.xmlKeys[H]||H;f[tt]=J}}),{_attr:f}}}class u extends o{constructor(){super(...arguments),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"}}}var m=ct(7888);const I=e=>{switch(e.type){case void 0:case"element":const t=new S(e.name,e.attributes),f=e.elements||[];for(const H of f){const J=I(H);J!==void 0&&t.push(J)}return t;case"text":return e.text;default:return}};class p extends o{}class S extends n{static fromXmlString(t){const f=(0,m.xml2js)(t,{compact:!1});return I(f)}constructor(t,f){super(t),f&&this.root.push(new p(f))}push(t){this.root.push(t)}}class N extends n{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}const _="";class y extends n{constructor(t,f){super(t),f&&(this.root=f.root)}}var h,l,g,E,O,M,d,b,C,x,D,r=ct(6595);class B extends n{constructor(t,f=!0){super(t),f!==!0&&this.root.push(new u({val:f}))}}class Q extends n{constructor(t,f){super(t),this.root.push(new u({val:(0,r.KR)(f)}))}}class G extends n{constructor(t,f){super(t),this.root.push(new u({val:f}))}}class lt extends n{constructor(t,f){super(t),this.root.push(new u({val:f}))}}class rt extends n{constructor(t,f){super(t),this.root.push(new u({val:f}))}}class at extends n{constructor(t,f){super(t),this.root.push(f)}}(function(e){e.START="start",e.CENTER="center",e.END="end",e.BOTH="both",e.MEDIUM_KASHIDA="mediumKashida",e.DISTRIBUTE="distribute",e.NUM_TAB="numTab",e.HIGH_KASHIDA="highKashida",e.LOW_KASHIDA="lowKashida",e.THAI_DISTRIBUTE="thaiDistribute",e.LEFT="left",e.RIGHT="right",e.JUSTIFIED="both"})(h||(h={}));class c extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class A extends n{constructor(t){super("w:jc"),this.root.push(new c({val:t}))}}class U extends n{constructor(t,{color:f,size:H,space:J,style:tt}){super(t),this.root.push(new k({style:tt,color:f===void 0?void 0:(0,r.dg)(f),size:H===void 0?void 0:(0,r.LV)(H),space:J===void 0?void 0:(0,r.gg)(J)}))}}class k extends o{constructor(){super(...arguments),this.xmlKeys={style:"w:val",color:"w:color",size:"w:sz",space:"w:space"}}}(function(e){e.SINGLE="single",e.DASH_DOT_STROKED="dashDotStroked",e.DASHED="dashed",e.DASH_SMALL_GAP="dashSmallGap",e.DOT_DASH="dotDash",e.DOT_DOT_DASH="dotDotDash",e.DOTTED="dotted",e.DOUBLE="double",e.DOUBLE_WAVE="doubleWave",e.INSET="inset",e.NIL="nil",e.NONE="none",e.OUTSET="outset",e.THICK="thick",e.THICK_THIN_LARGE_GAP="thickThinLargeGap",e.THICK_THIN_MEDIUM_GAP="thickThinMediumGap",e.THICK_THIN_SMALL_GAP="thickThinSmallGap",e.THIN_THICK_LARGE_GAP="thinThickLargeGap",e.THIN_THICK_MEDIUM_GAP="thinThickMediumGap",e.THIN_THICK_SMALL_GAP="thinThickSmallGap",e.THIN_THICK_THIN_LARGE_GAP="thinThickThinLargeGap",e.THIN_THICK_THIN_MEDIUM_GAP="thinThickThinMediumGap",e.THIN_THICK_THIN_SMALL_GAP="thinThickThinSmallGap",e.THREE_D_EMBOSS="threeDEmboss",e.THREE_D_ENGRAVE="threeDEngrave",e.TRIPLE="triple",e.WAVE="wave"})(l||(l={}));class q extends a{constructor(t){super("w:pBdr"),t.top&&this.root.push(new U("w:top",t.top)),t.bottom&&this.root.push(new U("w:bottom",t.bottom)),t.left&&this.root.push(new U("w:left",t.left)),t.right&&this.root.push(new U("w:right",t.right))}}class P extends n{constructor(){super("w:pBdr");const t=new U("w:bottom",{color:"auto",space:1,style:l.SINGLE,size:6});this.root.push(t)}}class z extends o{constructor(){super(...arguments),this.xmlKeys={start:"w:start",end:"w:end",left:"w:left",right:"w:right",hanging:"w:hanging",firstLine:"w:firstLine"}}}class V extends n{constructor({start:t,end:f,left:H,right:J,hanging:tt,firstLine:ut}){super("w:ind"),this.root.push(new z({start:t===void 0?void 0:(0,r.xb)(t),end:f===void 0?void 0:(0,r.xb)(f),left:H===void 0?void 0:(0,r.xb)(H),right:J===void 0?void 0:(0,r.xb)(J),hanging:tt===void 0?void 0:(0,r.Jd)(tt),firstLine:ut===void 0?void 0:(0,r.Jd)(ut)}))}}class $ extends n{constructor(){super("w:br")}}(function(e){e.BEGIN="begin",e.END="end",e.SEPARATE="separate"})(g||(g={}));class K extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:fldCharType",dirty:"w:dirty"}}}class T extends n{constructor(t){super("w:fldChar"),this.root.push(new K({type:g.BEGIN,dirty:t}))}}class i extends n{constructor(t){super("w:fldChar"),this.root.push(new K({type:g.SEPARATE,dirty:t}))}}class v extends n{constructor(t){super("w:fldChar"),this.root.push(new K({type:g.END,dirty:t}))}}(function(e){e.CENTER="center",e.INSIDE="inside",e.LEFT="left",e.OUTSIDE="outside",e.RIGHT="right"})(E||(E={})),function(e){e.BOTTOM="bottom",e.CENTER="center",e.INSIDE="inside",e.OUTSIDE="outside",e.TOP="top"}(O||(O={})),function(e){e.DECIMAL="decimal",e.UPPER_ROMAN="upperRoman",e.LOWER_ROMAN="lowerRoman",e.UPPER_LETTER="upperLetter",e.LOWER_LETTER="lowerLetter",e.ORDINAL="ordinal",e.CARDINAL_TEXT="cardinalText",e.ORDINAL_TEXT="ordinalText",e.HEX="hex",e.CHICAGO="chicago",e.IDEOGRAPH_DIGITAL="ideographDigital",e.JAPANESE_COUNTING="japaneseCounting",e.AIUEO="aiueo",e.IROHA="iroha",e.DECIMAL_FULL_WIDTH="decimalFullWidth",e.DECIMAL_HALF_WIDTH="decimalHalfWidth",e.JAPANESE_LEGAL="japaneseLegal",e.JAPANESE_DIGITAL_TEN_THOUSAND="japaneseDigitalTenThousand",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_FULL_WIDTH_2="decimalFullWidth2",e.AIUEO_FULL_WIDTH="aiueoFullWidth",e.IROHA_FULL_WIDTH="irohaFullWidth",e.DECIMAL_ZERO="decimalZero",e.BULLET="bullet",e.GANADA="ganada",e.CHOSUNG="chosung",e.DECIMAL_ENCLOSED_FULL_STOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PAREN="decimalEnclosedParen",e.DECIMAL_ENCLOSED_CIRCLE_CHINESE="decimalEnclosedCircleChinese",e.IDEOGRAPH_ENCLOSED_CIRCLE="ideographEnclosedCircle",e.IDEOGRAPH_TRADITIONAL="ideographTraditional",e.IDEOGRAPH_ZODIAC="ideographZodiac",e.IDEOGRAPH_ZODIAC_TRADITIONAL="ideographZodiacTraditional",e.TAIWANESE_COUNTING="taiwaneseCounting",e.IDEOGRAPH_LEGAL_TRADITIONAL="ideographLegalTraditional",e.TAIWANESE_COUNTING_THOUSAND="taiwaneseCountingThousand",e.TAIWANESE_DIGITAL="taiwaneseDigital",e.CHINESE_COUNTING="chineseCounting",e.CHINESE_LEGAL_SIMPLIFIED="chineseLegalSimplified",e.CHINESE_COUNTING_TEN_THOUSAND="chineseCountingThousand",e.KOREAN_DIGITAL="koreanDigital",e.KOREAN_COUNTING="koreanCounting",e.KOREAN_LEGAL="koreanLegal",e.KOREAN_DIGITAL_2="koreanDigital2",e.VIETNAMESE_COUNTING="vietnameseCounting",e.RUSSIAN_LOWER="russianLower",e.RUSSIAN_UPPER="russianUpper",e.NONE="none",e.NUMBER_IN_DASH="numberInDash",e.HEBREW_1="hebrew1",e.HEBREW_2="hebrew2",e.ARABIC_ALPHA="arabicAlpha",e.ARABIC_ABJAD="arabicAbjad",e.HINDI_VOWELS="hindiVowels",e.HINDI_CONSONANTS="hindiConsonants",e.HINDI_NUMBERS="hindiNumbers",e.HINDI_COUNTING="hindiCounting",e.THAI_LETTERS="thaiLetters",e.THAI_NUMBERS="thaiNumbers",e.THAI_COUNTING="thaiCounting",e.BAHT_TEXT="bahtText",e.DOLLAR_TEXT="dollarText"}(M||(M={})),function(e){e.DEFAULT="default",e.PRESERVE="preserve"}(d||(d={}));class L extends o{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class Y extends n{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("PAGE")}}class st extends n{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("NUMPAGES")}}class ht extends n{constructor(){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("SECTIONPAGES")}}class nt extends o{constructor(){super(...arguments),this.xmlKeys={fill:"w:fill",color:"w:color",type:"w:val"}}}class it extends n{constructor({fill:t,color:f,type:H}){super("w:shd"),this.root.push(new nt({fill:t===void 0?void 0:(0,r.dg)(t),color:f===void 0?void 0:(0,r.dg)(f),type:H}))}}(function(e){e.CLEAR="clear",e.DIAGONAL_CROSS="diagCross",e.DIAGONAL_STRIPE="diagStripe",e.HORIZONTAL_CROSS="horzCross",e.HORIZONTAL_STRIPE="horzStripe",e.NIL="nil",e.PERCENT_5="pct5",e.PERCENT_10="pct10",e.PERCENT_12="pct12",e.PERCENT_15="pct15",e.PERCENT_20="pct20",e.PERCENT_25="pct25",e.PERCENT_30="pct30",e.PERCENT_35="pct35",e.PERCENT_37="pct37",e.PERCENT_40="pct40",e.PERCENT_45="pct45",e.PERCENT_50="pct50",e.PERCENT_55="pct55",e.PERCENT_60="pct60",e.PERCENT_62="pct62",e.PERCENT_65="pct65",e.PERCENT_70="pct70",e.PERCENT_75="pct75",e.PERCENT_80="pct80",e.PERCENT_85="pct85",e.PERCENT_87="pct87",e.PERCENT_90="pct90",e.PERCENT_95="pct95",e.REVERSE_DIAGONAL_STRIPE="reverseDiagStripe",e.SOLID="solid",e.THIN_DIAGONAL_CROSS="thinDiagCross",e.THIN_DIAGONAL_STRIPE="thinDiagStripe",e.THIN_HORIZONTAL_CROSS="thinHorzCross",e.THIN_REVERSE_DIAGONAL_STRIPE="thinReverseDiagStripe",e.THIN_VERTICAL_STRIPE="thinVertStripe",e.VERTICAL_STRIPE="vertStripe"})(b||(b={}));class gt extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id",author:"w:author",date:"w:date"}}}(function(e){e.DOT="dot"})(C||(C={}));class ft extends n{constructor(t){super("w:em"),this.root.push(new u({val:t}))}}class Tt extends ft{constructor(t=C.DOT){super(t)}}class Ft extends ft{constructor(){super(C.DOT)}}class s extends n{constructor(t){super("w:spacing"),this.root.push(new u({val:(0,r.xb)(t)}))}}class w extends n{constructor(t){super("w:color"),this.root.push(new u({val:(0,r.dg)(t)}))}}class R extends n{constructor(t){super("w:highlight"),this.root.push(new u({val:t}))}}class j extends n{constructor(t){super("w:highlightCs"),this.root.push(new u({val:t}))}}class X extends o{constructor(){super(...arguments),this.xmlKeys={ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"}}}class Z extends n{constructor(t,f){if(super("w:rFonts"),typeof t=="string"){const H=t;this.root.push(new X({ascii:H,cs:H,eastAsia:H,hAnsi:H,hint:f}))}else{const H=t;this.root.push(new X(H))}}}class et extends n{constructor(t){super("w:vertAlign"),this.root.push(new u({val:t}))}}class wt extends et{constructor(){super("superscript")}}class At extends et{constructor(){super("subscript")}}(function(e){e.SINGLE="single",e.WORDS="words",e.DOUBLE="double",e.THICK="thick",e.DOTTED="dotted",e.DOTTEDHEAVY="dottedHeavy",e.DASH="dash",e.DASHEDHEAVY="dashedHeavy",e.DASHLONG="dashLong",e.DASHLONGHEAVY="dashLongHeavy",e.DOTDASH="dotDash",e.DASHDOTHEAVY="dashDotHeavy",e.DOTDOTDASH="dotDotDash",e.DASHDOTDOTHEAVY="dashDotDotHeavy",e.WAVE="wave",e.WAVYHEAVY="wavyHeavy",e.WAVYDOUBLE="wavyDouble",e.NONE="none"})(x||(x={}));class It extends n{constructor(t=x.SINGLE,f){super("w:u"),this.root.push(new u({val:t,color:f===void 0?void 0:(0,r.dg)(f)}))}}class Et extends a{constructor(t){var f,H;if(super("w:rPr"),!t)return;t.bold!==void 0&&this.push(new B("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new B("w:bCs",(f=t.boldComplexScript)!==null&&f!==void 0?f:t.bold)),t.italics!==void 0&&this.push(new B("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new B("w:iCs",(H=t.italicsComplexScript)!==null&&H!==void 0?H:t.italics)),t.underline&&this.push(new It(t.underline.type,t.underline.color)),t.emphasisMark&&this.push(new Tt(t.emphasisMark.type)),t.color&&this.push(new w(t.color)),t.size!==void 0&&this.push(new Q("w:sz",t.size));const J=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;J&&this.push(new Q("w:szCs",J)),t.rightToLeft!==void 0&&this.push(new B("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new B("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new B("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new B("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new B("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new At),t.superScript&&this.push(new wt),t.style&&this.push(new G("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new Z(t.font)):"name"in t.font?this.push(new Z(t.font.name,t.font.hint)):this.push(new Z(t.font))),t.highlight&&this.push(new R(t.highlight));const tt=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;tt&&this.push(new j(tt)),t.characterSpacing&&this.push(new s(t.characterSpacing)),t.emboss!==void 0&&this.push(new B("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new B("w:imprint",t.imprint)),t.shading&&this.push(new it(t.shading)),t.revision&&this.push(new Rt(t.revision)),t.border&&this.push(new U("w:bdr",t.border)),t.vanish&&this.push(new B("w:vanish",t.vanish)),t.specVanish&&this.push(new B("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new lt("w:w",t.scale))}push(t){this.root.push(t)}}class Rt extends n{constructor(t){super("w:rPrChange"),this.root.push(new gt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Et(t))}}class Re extends n{constructor(t){var f;return super("w:t"),typeof t=="string"?(this.root.push(new L({space:d.PRESERVE})),this.root.push(t),this):(this.root.push(new L({space:(f=t.space)!==null&&f!==void 0?f:d.DEFAULT})),this.root.push(t.text),this)}}(function(e){e.CURRENT="CURRENT",e.TOTAL_PAGES="TOTAL_PAGES",e.TOTAL_PAGES_IN_SECTION="TOTAL_PAGES_IN_SECTION"})(D||(D={}));class Bt extends n{constructor(t){if(super("w:r"),this.properties=new Et(t),this.root.push(this.properties),t.break)for(let f=0;f<t.break;f++)this.root.push(new $);if(t.children)for(const f of t.children)if(typeof f!="string")this.root.push(f);else switch(f){case D.CURRENT:this.root.push(new T),this.root.push(new Y),this.root.push(new i),this.root.push(new v);break;case D.TOTAL_PAGES:this.root.push(new T),this.root.push(new st),this.root.push(new i),this.root.push(new v);break;case D.TOTAL_PAGES_IN_SECTION:this.root.push(new T),this.root.push(new ht),this.root.push(new i),this.root.push(new v);break;default:this.root.push(new Re(f))}else t.text&&this.root.push(new Re(t.text))}}class Yt extends Bt{constructor(t){if(typeof t=="string")return super({}),this.root.push(new Re(t)),this;super(t)}}class xs extends o{constructor(){super(...arguments),this.xmlKeys={char:"w:char",symbolfont:"w:font"}}}class vr extends n{constructor(t="",f="Wingdings"){super("w:sym"),this.root.push(new xs({char:t,symbolfont:f}))}}class vs extends Bt{constructor(t){if(typeof t=="string")return super({}),this.root.push(new vr(t)),this;super(t),this.root.push(new vr(t.char,t.symbolfont))}}var me,ge,Xt,we,ye,Jt,Ne,ie,Ce,Oe,be,ke,Le,Wt,ae,De,Pe,Fe,Be,Me,Ue,ce,He,ze,Ot=ct(5457);(function(e){e.CHARACTER="character",e.COLUMN="column",e.INSIDE_MARGIN="insideMargin",e.LEFT_MARGIN="leftMargin",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.RIGHT_MARGIN="rightMargin"})(me||(me={})),function(e){e.BOTTOM_MARGIN="bottomMargin",e.INSIDE_MARGIN="insideMargin",e.LINE="line",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.PARAGRAPH="paragraph",e.TOP_MARGIN="topMargin"}(ge||(ge={}));class _s extends o{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class _r extends n{constructor(){super("wp:simplePos"),this.root.push(new _s({x:0,y:0}))}}class Er extends n{constructor(t){super("wp:align"),this.root.push(t)}}class Tr extends n{constructor(t){super("wp:posOffset"),this.root.push(t.toString())}}class Es extends o{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class Ar extends n{constructor(t){if(super("wp:positionH"),this.root.push(new Es({relativeFrom:t.relative||me.PAGE})),t.align)this.root.push(new Er(t.align));else{if(t.offset===void 0)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new Tr(t.offset))}}}class Ts extends o{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class Sr extends n{constructor(t){if(super("wp:positionV"),this.root.push(new Ts({relativeFrom:t.relative||ge.PAGE})),t.align)this.root.push(new Er(t.align));else{if(t.offset===void 0)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new Tr(t.offset))}}}class As extends o{constructor(){super(...arguments),this.xmlKeys={uri:"uri"}}}class Ss extends o{constructor(){super(...arguments),this.xmlKeys={embed:"r:embed",cstate:"cstate"}}}class Is extends n{constructor(t){super("a:blip"),this.root.push(new Ss({embed:`rId{${t.fileName}}`,cstate:"none"}))}}class Rs extends n{constructor(){super("a:srcRect")}}class Ns extends n{constructor(){super("a:fillRect")}}class Cs extends n{constructor(){super("a:stretch"),this.root.push(new Ns)}}class Os extends n{constructor(t){super("pic:blipFill"),this.root.push(new Is(t)),this.root.push(new Rs),this.root.push(new Cs)}}class ks extends o{constructor(){super(...arguments),this.xmlKeys={noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"}}}class Ls extends n{constructor(){super("a:picLocks"),this.root.push(new ks({noChangeAspect:1,noChangeArrowheads:1}))}}class Ds extends n{constructor(){super("pic:cNvPicPr"),this.root.push(new Ls)}}class Ps extends o{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"descr"}}}class Fs extends n{constructor(){super("pic:cNvPr"),this.root.push(new Ps({id:0,name:"",descr:""}))}}class Bs extends n{constructor(){super("pic:nvPicPr"),this.root.push(new Fs),this.root.push(new Ds)}}class Ms extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:pic"}}}class Us extends o{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class Hs extends n{constructor(t,f){super("a:ext"),this.attributes=new Us({cx:t,cy:f}),this.root.push(this.attributes)}}class zs extends o{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class Ws extends n{constructor(){super("a:off"),this.root.push(new zs({x:0,y:0}))}}class js extends o{constructor(){super(...arguments),this.xmlKeys={flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"}}}class Ks extends n{constructor(t){var f,H;super("a:xfrm"),this.root.push(new js({flipVertical:(f=t.flip)===null||f===void 0?void 0:f.vertical,flipHorizontal:(H=t.flip)===null||H===void 0?void 0:H.horizontal,rotation:t.rotation})),this.extents=new Hs(t.emus.x,t.emus.y),this.root.push(new Ws),this.root.push(this.extents)}}class Gs extends n{constructor(){super("a:avLst")}}class Vs extends o{constructor(){super(...arguments),this.xmlKeys={prst:"prst"}}}class $s extends n{constructor(){super("a:prstGeom"),this.root.push(new Vs({prst:"rect"})),this.root.push(new Gs)}}class Xs extends o{constructor(){super(...arguments),this.xmlKeys={bwMode:"bwMode"}}}class qs extends n{constructor(t){super("pic:spPr"),this.root.push(new Xs({bwMode:"auto"})),this.form=new Ks(t),this.root.push(this.form),this.root.push(new $s)}}class Zs extends n{constructor(t,f){super("pic:pic"),this.root.push(new Ms({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new Bs),this.root.push(new Os(t)),this.root.push(new qs(f))}}class Ys extends n{constructor(t,f){super("a:graphicData"),this.root.push(new As({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Zs(t,f),this.root.push(this.pic)}}class Js extends o{constructor(){super(...arguments),this.xmlKeys={a:"xmlns:a"}}}class Ir extends n{constructor(t,f){super("a:graphic"),this.root.push(new Js({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new Ys(t,f),this.root.push(this.data)}}(function(e){e[e.NONE=0]="NONE",e[e.SQUARE=1]="SQUARE",e[e.TIGHT=2]="TIGHT",e[e.TOP_AND_BOTTOM=3]="TOP_AND_BOTTOM"})(Xt||(Xt={})),function(e){e.BOTH_SIDES="bothSides",e.LEFT="left",e.RIGHT="right",e.LARGEST="largest"}(we||(we={}));class We extends n{constructor(){super("wp:wrapNone")}}class Qs extends o{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"}}}class Rr extends n{constructor(t,f={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new Qs({wrapText:t.side||we.BOTH_SIDES,distT:f.top,distB:f.bottom,distL:f.left,distR:f.right}))}}class to extends o{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Nr extends n{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new to({distT:t.top,distB:t.bottom}))}}class eo extends o{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Cr extends n{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new eo({distT:t.top,distB:t.bottom}))}}class ro extends o{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",description:"descr",title:"title"}}}class Or extends n{constructor({name:t,description:f,title:H}={name:"",description:"",title:""}){super("wp:docPr"),this.root.push(new ro({id:(0,Ot.NY)(),name:t,description:f,title:H}))}}class no extends o{constructor(){super(...arguments),this.xmlKeys={b:"b",l:"l",r:"r",t:"t"}}}class kr extends n{constructor(){super("wp:effectExtent"),this.root.push(new no({b:0,l:0,r:0,t:0}))}}class so extends o{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class Lr extends n{constructor(t,f){super("wp:extent"),this.attributes=new so({cx:t,cy:f}),this.root.push(this.attributes)}}class oo extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"}}}class io extends n{constructor(){super("a:graphicFrameLocks"),this.root.push(new oo({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class Dr extends n{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new io)}}class ao extends o{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"}}}class co extends n{constructor(t,f,H){super("wp:anchor");const J=Object.assign({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},H.floating);if(this.root.push(new ao({distT:J.margins&&J.margins.top||0,distB:J.margins&&J.margins.bottom||0,distL:J.margins&&J.margins.left||0,distR:J.margins&&J.margins.right||0,simplePos:"0",allowOverlap:J.allowOverlap===!0?"1":"0",behindDoc:J.behindDocument===!0?"1":"0",locked:J.lockAnchor===!0?"1":"0",layoutInCell:J.layoutInCell===!0?"1":"0",relativeHeight:J.zIndex?J.zIndex:f.emus.y})),this.root.push(new _r),this.root.push(new Ar(J.horizontalPosition)),this.root.push(new Sr(J.verticalPosition)),this.root.push(new Lr(f.emus.x,f.emus.y)),this.root.push(new kr),H.floating!==void 0&&H.floating.wrap!==void 0)switch(H.floating.wrap.type){case Xt.SQUARE:this.root.push(new Rr(H.floating.wrap,H.floating.margins));break;case Xt.TIGHT:this.root.push(new Nr(H.floating.margins));break;case Xt.TOP_AND_BOTTOM:this.root.push(new Cr(H.floating.margins));break;case Xt.NONE:default:this.root.push(new We)}else this.root.push(new We);this.root.push(new Or(H.docProperties)),this.root.push(new Dr),this.root.push(new Ir(t,f))}}class uo extends o{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR"}}}class lo extends n{constructor({mediaData:t,transform:f,docProperties:H}){super("wp:inline"),this.root.push(new uo({distT:0,distB:0,distL:0,distR:0})),this.extent=new Lr(f.emus.x,f.emus.y),this.graphic=new Ir(t,f),this.root.push(this.extent),this.root.push(new kr),this.root.push(new Or(H)),this.root.push(new Dr),this.root.push(this.graphic)}}class Pr extends n{constructor(t,f={}){super("w:drawing"),f.floating?this.root.push(new co(t,t.transformation,f)):(this.inline=new lo({mediaData:t,transform:t.transformation,docProperties:f.docProperties}),this.root.push(this.inline))}}class ho extends Bt{constructor(t){super({}),this.key=`${(0,Ot.EL)()}.png`;const f=typeof t.data=="string"?this.convertDataURIToBinary(t.data):t.data;this.imageData={stream:f,fileName:this.key,transformation:{pixels:{x:Math.round(t.transformation.width),y:Math.round(t.transformation.height)},emus:{x:Math.round(9525*t.transformation.width),y:Math.round(9525*t.transformation.height)},flip:t.transformation.flip,rotation:t.transformation.rotation?6e4*t.transformation.rotation:void 0}};const H=new Pr(this.imageData,{floating:t.floating,docProperties:t.altText});this.root.push(H)}prepForXml(t){return t.file.Media.addImage(this.key,this.imageData),super.prepForXml(t)}convertDataURIToBinary(t){if(typeof atob=="function"){const f=";base64,",H=t.indexOf(f),J=H===-1?0:H+f.length;return new Uint8Array(atob(t.substring(J)).split("").map(tt=>tt.charCodeAt(0)))}return new(ct(8764)).Buffer(t,"base64")}}class po extends n{constructor(t){super("w:instrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push(`SEQ ${t}`)}}class fo extends Bt{constructor(t){super({}),this.root.push(new T(!0)),this.root.push(new po(t)),this.root.push(new i),this.root.push(new v)}}class mo extends n{constructor(){super("w:tab")}}class go extends o{constructor(){super(...arguments),this.xmlKeys={instr:"w:instr"}}}class Fr extends n{constructor(t,f){super("w:fldSimple"),this.root.push(new go({instr:t})),f!==void 0&&this.root.push(new Yt(f))}}class wo extends Fr{constructor(t){super(` MERGEFIELD ${t} `,`«${t}»`)}}class yo extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"}}}class je extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class bo extends o{constructor(){super(...arguments),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"}}}class xo extends n{constructor(t){super("w:commentRangeStart"),this.root.push(new je({id:t}))}}class vo extends n{constructor(t){super("w:commentRangeEnd"),this.root.push(new je({id:t}))}}class _o extends n{constructor(t){super("w:commentReference"),this.root.push(new je({id:t}))}}class Br extends n{constructor({id:t,initials:f,author:H,date:J=new Date,text:tt}){super("w:comment"),this.root.push(new yo({id:t,initials:f,author:H,date:J.toISOString()})),this.root.push(new jt({children:[new Yt(tt)]}))}}class Mr extends n{constructor({children:t}){super("w:comments"),this.root.push(new bo({"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(const f of t)this.root.push(new Br(f))}}(function(e){e.COLUMN="column",e.PAGE="page"})(ye||(ye={}));class Ur extends n{constructor(t){super("w:br"),this.root.push(new u({type:t}))}}class Eo extends Bt{constructor(){super({}),this.root.push(new Ur(ye.PAGE))}}class To extends Bt{constructor(){super({}),this.root.push(new Ur(ye.COLUMN))}}class Hr extends n{constructor(){super("w:pageBreakBefore")}}(function(e){e.AT_LEAST="atLeast",e.EXACTLY="exactly",e.EXACT="exact",e.AUTO="auto"})(Jt||(Jt={}));class Ao extends o{constructor(){super(...arguments),this.xmlKeys={after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"}}}class zr extends n{constructor(t){super("w:spacing"),this.root.push(new Ao(t))}}(function(e){e.HEADING_1="Heading1",e.HEADING_2="Heading2",e.HEADING_3="Heading3",e.HEADING_4="Heading4",e.HEADING_5="Heading5",e.HEADING_6="Heading6",e.TITLE="Title"})(Ne||(Ne={}));class ue extends n{constructor(t){super("w:pStyle"),this.root.push(new u({val:t}))}}class Wr extends n{constructor(t){super("w:tabs");for(const f of t)this.root.push(new Kr(f))}}(function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.BAR="bar",e.CLEAR="clear",e.DECIMAL="decimal",e.END="end",e.NUM="num",e.START="start"})(ie||(ie={})),function(e){e.DOT="dot",e.HYPHEN="hyphen",e.MIDDLE_DOT="middleDot",e.NONE="none",e.UNDERSCORE="underscore"}(Ce||(Ce={})),function(e){e[e.MAX=9026]="MAX"}(Oe||(Oe={}));class jr extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val",pos:"w:pos",leader:"w:leader"}}}class Kr extends n{constructor({type:t,position:f,leader:H}){super("w:tab"),this.root.push(new jr({val:t,pos:f,leader:H}))}}class Ke extends n{constructor(t,f){super("w:numPr"),this.root.push(new So(f)),this.root.push(new Io(t))}}class So extends n{constructor(t){if(super("w:ilvl"),t>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 u({val:t}))}}class Io extends n{constructor(t){super("w:numId"),this.root.push(new u({val:typeof t=="string"?`{${t}}`:t}))}}class Ro extends o{constructor(){super(...arguments),this.xmlKeys={id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"}}}(function(e){e.EXTERNAL="External"})(be||(be={}));class No extends n{constructor(t,f,H,J){super("Relationship"),this.root.push(new Ro({id:t,type:f,target:H,targetMode:J}))}}class Co extends o{constructor(){super(...arguments),this.xmlKeys={id:"r:id",history:"w:history",anchor:"w:anchor"}}}(function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"})(ke||(ke={}));class Ge extends n{constructor(t,f,H){super("w:hyperlink"),this.linkId=f;const J={history:1,anchor:H||void 0,id:H?void 0:`rId${this.linkId}`},tt=new Co(J);this.root.push(tt),t.forEach(ut=>{this.root.push(ut)})}}class Oo extends Ge{constructor(t){super(t.children,(0,Ot.EL)(),t.anchor)}}class Gr extends n{constructor(t){super("w:externalHyperlink"),this.options=t}}class ko extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id",name:"w:name"}}}class Lo extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class Vr{constructor(t){const f=(0,Ot.NY)();this.start=new $r(t.id,f),this.children=t.children,this.end=new Xr(f)}}class $r extends n{constructor(t,f){super("w:bookmarkStart");const H=new ko({name:t,id:f});this.root.push(H)}}class Xr extends n{constructor(t){super("w:bookmarkEnd");const f=new Lo({id:t});this.root.push(f)}}class qr extends n{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new u({val:t}))}}class Do extends n{constructor(t,f={}){super("w:instrText"),this.root.push(new L({space:d.PRESERVE}));let H=`PAGEREF ${t}`;f.hyperlink&&(H=`${H} \\h`),f.useRelativePosition&&(H=`${H} \\p`),this.root.push(H)}}class Po extends Bt{constructor(t,f={}){super({children:[new T(!0),new Do(t,f),new v]})}}(function(e){e.BOTTOM="bottom",e.CENTER="center",e.TOP="top"})(Le||(Le={}));class Zr extends o{constructor(){super(...arguments),this.xmlKeys={verticalAlign:"w:val"}}}class Ve extends n{constructor(t){super("w:vAlign"),this.root.push(new Zr({verticalAlign:t}))}}(function(e){e.DEFAULT="default",e.FIRST="first",e.EVEN="even"})(Wt||(Wt={}));class Fo extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"r:id"}}}(function(e){e.HEADER="w:headerReference",e.FOOTER="w:footerReference"})(ae||(ae={}));class xe extends n{constructor(t,f){super(t),this.root.push(new Fo({type:f.type||Wt.DEFAULT,id:`rId${f.id}`}))}}class Yr extends o{constructor(){super(...arguments),this.xmlKeys={space:"w:space",count:"w:num",separate:"w:sep",equalWidth:"w:equalWidth"}}}class Jr extends n{constructor({space:t,count:f,separate:H,equalWidth:J,children:tt}){super("w:cols"),this.root.push(new Yr({space:t===void 0?void 0:(0,r.Jd)(t),count:f===void 0?void 0:(0,r.vH)(f),separate:H,equalWidth:J})),!J&&tt&&tt.forEach(ut=>this.addChildElement(ut))}}(function(e){e.DEFAULT="default",e.LINES="lines",e.LINES_AND_CHARS="linesAndChars",e.SNAP_TO_CHARS="snapToChars"})(De||(De={}));class Qr extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"}}}class tn extends n{constructor(t,f,H){super("w:docGrid"),this.root.push(new Qr({type:H,linePitch:(0,r.vH)(t),charSpace:f?(0,r.vH)(f):void 0}))}}(function(e){e.NEW_PAGE="newPage",e.NEW_SECTION="newSection",e.CONTINUOUS="continuous"})(Pe||(Pe={}));class en extends o{constructor(){super(...arguments),this.xmlKeys={countBy:"w:countBy",start:"w:start",restart:"w:restart",distance:"w:distance"}}}class rn extends n{constructor({countBy:t,start:f,restart:H,distance:J}){super("w:lnNumType"),this.root.push(new en({countBy:t===void 0?void 0:(0,r.vH)(t),start:f===void 0?void 0:(0,r.vH)(f),restart:H,distance:J===void 0?void 0:(0,r.Jd)(J)}))}}(function(e){e.ALL_PAGES="allPages",e.FIRST_PAGE="firstPage",e.NOT_FIRST_PAGE="notFirstPage"})(Fe||(Fe={})),function(e){e.PAGE="page",e.TEXT="text"}(Be||(Be={})),function(e){e.BACK="back",e.FRONT="front"}(Me||(Me={}));class nn extends o{constructor(){super(...arguments),this.xmlKeys={display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"}}}class sn extends a{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new nn({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new nn({})),t.pageBorderTop&&this.root.push(new U("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new U("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new U("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new U("w:right",t.pageBorderRight))}}class on extends o{constructor(){super(...arguments),this.xmlKeys={top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter"}}}class an extends n{constructor(t,f,H,J,tt,ut,dt){super("w:pgMar"),this.root.push(new on({top:(0,r.xb)(t),right:(0,r.Jd)(f),bottom:(0,r.xb)(H),left:(0,r.Jd)(J),header:(0,r.Jd)(tt),footer:(0,r.Jd)(ut),gutter:(0,r.Jd)(dt)}))}}(function(e){e.HYPHEN="hyphen",e.PERIOD="period",e.COLON="colon",e.EM_DASH="emDash",e.EN_DASH="endash"})(Ue||(Ue={}));class cn extends o{constructor(){super(...arguments),this.xmlKeys={start:"w:start",formatType:"w:fmt",separator:"w:chapSep"}}}class un extends n{constructor({start:t,formatType:f,separator:H}){super("w:pgNumType"),this.root.push(new cn({start:t===void 0?void 0:(0,r.vH)(t),formatType:f,separator:H}))}}(function(e){e.PORTRAIT="portrait",e.LANDSCAPE="landscape"})(ce||(ce={}));class ln extends o{constructor(){super(...arguments),this.xmlKeys={width:"w:w",height:"w:h",orientation:"w:orient"}}}class hn extends n{constructor(t,f,H){super("w:pgSz");const J=H===ce.LANDSCAPE,tt=(0,r.Jd)(t),ut=(0,r.Jd)(f);this.root.push(new ln({width:J?ut:tt,height:J?tt:ut,orientation:H}))}}(function(e){e.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",e.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"})(He||(He={}));class Bo extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class pn extends n{constructor(t){super("w:textDirection"),this.root.push(new Bo({val:t}))}}(function(e){e.NEXT_PAGE="nextPage",e.NEXT_COLUMN="nextColumn",e.CONTINUOUS="continuous",e.EVEN_PAGE="evenPage",e.ODD_PAGE="oddPage"})(ze||(ze={}));class dn extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class fn extends n{constructor(t){super("w:type"),this.root.push(new dn({val:t}))}}const Gt={TOP:"1in",RIGHT:"1in",BOTTOM:"1in",LEFT:"1in",HEADER:708,FOOTER:708,GUTTER:0},ve={WIDTH:11906,HEIGHT:16838,ORIENTATION:ce.PORTRAIT};class mn extends n{constructor({page:{size:{width:t=ve.WIDTH,height:f=ve.HEIGHT,orientation:H=ve.ORIENTATION}={},margin:{top:J=Gt.TOP,right:tt=Gt.RIGHT,bottom:ut=Gt.BOTTOM,left:dt=Gt.LEFT,header:_t=Gt.HEADER,footer:pt=Gt.FOOTER,gutter:mt=Gt.GUTTER}={},pageNumbers:Lt={},borders:St,textDirection:Dt}={},grid:{linePitch:zt=360,charSpace:Pt,type:Kt}={},headerWrapperGroup:rc={},footerWrapperGroup:nc={},lineNumbers:us,titlePage:ls,verticalAlign:hs,column:ps,type:ds}={}){super("w:sectPr"),this.addHeaderFooterGroup(ae.HEADER,rc),this.addHeaderFooterGroup(ae.FOOTER,nc),ds&&this.root.push(new fn(ds)),this.root.push(new hn(t,f,H)),this.root.push(new an(J,tt,ut,dt,_t,pt,mt)),St&&this.root.push(new sn(St)),us&&this.root.push(new rn(us)),this.root.push(new un(Lt)),ps&&this.root.push(new Jr(ps)),hs&&this.root.push(new Ve(hs)),ls!==void 0&&this.root.push(new B("w:titlePg",ls)),Dt&&this.root.push(new pn(Dt)),this.root.push(new tn(zt,Pt,Kt))}addHeaderFooterGroup(t,f){f.default&&this.root.push(new xe(t,{type:Wt.DEFAULT,id:f.default.View.ReferenceId})),f.first&&this.root.push(new xe(t,{type:Wt.FIRST,id:f.first.View.ReferenceId})),f.even&&this.root.push(new xe(t,{type:Wt.EVEN,id:f.even.View.ReferenceId}))}}class gn extends n{constructor(){super("w:body"),this.sections=[]}addSection(t){const f=this.sections.pop();this.root.push(this.createSectionParagraph(f)),this.sections.push(new mn(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const f=new jt({}),H=new qt({});return H.push(t),f.addChildElement(H),f}}class wn extends o{constructor(){super(...arguments),this.xmlKeys={width:"w:w",space:"w:space"}}}class Mo extends n{constructor({width:t,space:f}){super("w:col"),this.root.push(new wn({width:(0,r.Jd)(t),space:f===void 0?void 0:(0,r.Jd)(f)}))}}class Qt extends o{constructor(){super(...arguments),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",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",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"}}}class yn extends o{constructor(){super(...arguments),this.xmlKeys={color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"}}}class bn extends n{constructor(t){super("w:background"),this.root.push(new yn({color:t.color===void 0?void 0:(0,r.dg)(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:(0,r.xD)(t.themeShade),themeTint:t.themeTint===void 0?void 0:(0,r.xD)(t.themeTint)}))}}class Uo extends n{constructor(t){super("w:document"),this.root.push(new Qt({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",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",Ignorable:"w14 w15 wp14"})),this.body=new gn,t.background&&this.root.push(new bn(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class Ho extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class le extends n{constructor(){super("Relationships"),this.root.push(new Ho({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(t){this.root.push(t)}createRelationship(t,f,H,J){const tt=new No(`rId${t}`,f,H,J);return this.addRelationship(tt),tt}get RelationshipCount(){return this.root.length-1}}class xn{constructor(t){this.document=new Uo(t),this.relationships=new le}get View(){return this.document}get Relationships(){return this.relationships}}class zo extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Wo extends n{constructor(){super("w:wordWrap"),this.root.push(new zo({val:0}))}}var $e,Xe,qe;(function(e){e.NONE="none",e.DROP="drop",e.MARGIN="margin"})($e||($e={})),function(e){e.MARGIN="margin",e.PAGE="page",e.TEXT="text"}(Xe||(Xe={})),function(e){e.AROUND="around",e.AUTO="auto",e.NONE="none",e.NOT_BESIDE="notBeside",e.THROUGH="through",e.TIGHT="tight"}(qe||(qe={}));class vn extends o{constructor(){super(...arguments),this.xmlKeys={anchorLock:"w:anchorLock",dropCap:"w:dropCap",width:"w:w",height:"w:h",x:"w:x",y:"w:y",anchorHorizontal:"w:hAnchor",anchorVertical:"w:vAnchor",spaceHorizontal:"w:hSpace",spaceVertical:"w:vSpace",rule:"w:hRule",alignmentX:"w:xAlign",alignmentY:"w:yAlign",lines:"w:lines",wrap:"w:wrap"}}}class _n extends n{constructor(t){var f,H;super("w:framePr"),this.root.push(new vn({anchorLock:t.anchorLock,dropCap:t.dropCap,width:t.width,height:t.height,x:t.position?t.position.x:void 0,y:t.position?t.position.y:void 0,anchorHorizontal:t.anchor.horizontal,anchorVertical:t.anchor.vertical,spaceHorizontal:(f=t.space)===null||f===void 0?void 0:f.horizontal,spaceVertical:(H=t.space)===null||H===void 0?void 0:H.vertical,rule:t.rule,alignmentX:t.alignment?t.alignment.x:void 0,alignmentY:t.alignment?t.alignment.y:void 0,lines:t.lines,wrap:t.wrap}))}}class qt extends a{constructor(t){var f,H;if(super("w:pPr"),this.numberingReferences=[],!t)return this;t.heading&&this.push(new ue(t.heading)),t.bullet&&this.push(new ue("ListParagraph")),t.numbering&&(t.style||t.heading||t.numbering.custom||this.push(new ue("ListParagraph"))),t.style&&this.push(new ue(t.style)),t.keepNext!==void 0&&this.push(new B("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new B("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new Hr),t.frame&&this.push(new _n(t.frame)),t.widowControl!==void 0&&this.push(new B("w:widowControl",t.widowControl)),t.bullet&&this.push(new Ke(1,t.bullet.level)),t.numbering&&(this.numberingReferences.push({reference:t.numbering.reference,instance:(f=t.numbering.instance)!==null&&f!==void 0?f:0}),this.push(new Ke(`${t.numbering.reference}-${(H=t.numbering.instance)!==null&&H!==void 0?H:0}`,t.numbering.level))),t.border&&this.push(new q(t.border)),t.thematicBreak&&this.push(new P),t.shading&&this.push(new it(t.shading)),t.wordWrap&&this.push(new Wo);const J=[...t.rightTabStop?[{type:ie.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop?[{type:ie.LEFT,position:t.leftTabStop}]:[]];J.length>0&&this.push(new Wr(J)),t.bidirectional!==void 0&&this.push(new B("w:bidi",t.bidirectional)),t.spacing&&this.push(new zr(t.spacing)),t.indent&&this.push(new V(t.indent)),t.contextualSpacing!==void 0&&this.push(new B("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new A(t.alignment)),t.outlineLevel!==void 0&&this.push(new qr(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new B("w:suppressLineNumbers",t.suppressLineNumbers))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof xn)for(const f of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(f.reference,f.instance);return super.prepForXml(t)}}class jt extends n{constructor(t){if(super("w:p"),typeof t=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new Yt(t)),this;if(this.properties=new qt(t),this.root.push(this.properties),t.text&&this.root.push(new Yt(t.text)),t.children)for(const f of t.children)if(f instanceof Vr){this.root.push(f.start);for(const H of f.children)this.root.push(H);this.root.push(f.end)}else this.root.push(f)}prepForXml(t){for(const f of this.root)if(f instanceof Gr){const H=this.root.indexOf(f),J=new Ge(f.options.children,(0,Ot.EL)());t.viewWrapper.Relationships.createRelationship(J.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",f.options.link,be.EXTERNAL),this.root[H]=J}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class jo extends n{constructor(t){super("m:oMath");for(const f of t.children)this.root.push(f)}}class Ko extends n{constructor(t){super("m:t"),this.root.push(t)}}class Go extends n{constructor(t){super("m:r"),this.root.push(new Ko(t))}}class En extends n{constructor(t){super("m:den");for(const f of t)this.root.push(f)}}class Tn extends n{constructor(t){super("m:num");for(const f of t)this.root.push(f)}}class Vo extends n{constructor(t){super("m:f"),this.root.push(new Tn(t.numerator)),this.root.push(new En(t.denominator))}}class $o extends o{constructor(){super(...arguments),this.xmlKeys={accent:"m:val"}}}class An extends n{constructor(t){super("m:chr"),this.root.push(new $o({accent:t}))}}class Mt extends n{constructor(t){super("m:e");for(const f of t)this.root.push(f)}}class Xo extends o{constructor(){super(...arguments),this.xmlKeys={value:"m:val"}}}class Sn extends n{constructor(){super("m:limLoc"),this.root.push(new Xo({value:"undOvr"}))}}class qo extends o{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class Zo extends n{constructor(){super("m:subHide"),this.root.push(new qo({hide:1}))}}class Yo extends o{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class Jo extends n{constructor(){super("m:supHide"),this.root.push(new Yo({hide:1}))}}class Ze extends n{constructor(t,f,H){super("m:naryPr"),t&&this.root.push(new An(t)),this.root.push(new Sn),f||this.root.push(new Jo),H||this.root.push(new Zo)}}class te extends n{constructor(t){super("m:sub");for(const f of t)this.root.push(f)}}class ee extends n{constructor(t){super("m:sup");for(const f of t)this.root.push(f)}}class Qo extends n{constructor(t){super("m:nary"),this.root.push(new Ze("∑",!!t.superScript,!!t.subScript)),t.subScript&&this.root.push(new te(t.subScript)),t.superScript&&this.root.push(new ee(t.superScript)),this.root.push(new Mt(t.children))}}class ti extends n{constructor(t){super("m:nary"),this.root.push(new Ze("",!!t.superScript,!!t.subScript)),t.subScript&&this.root.push(new te(t.subScript)),t.superScript&&this.root.push(new ee(t.superScript)),this.root.push(new Mt(t.children))}}class In extends n{constructor(){super("m:sSupPr")}}class ei extends n{constructor(t){super("m:sSup"),this.root.push(new In),this.root.push(new Mt(t.children)),this.root.push(new ee(t.superScript))}}class Rn extends n{constructor(){super("m:sSubPr")}}class ri extends n{constructor(t){super("m:sSub"),this.root.push(new Rn),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript))}}class Nn extends n{constructor(){super("m:sSubSupPr")}}class ni extends n{constructor(t){super("m:sSubSup"),this.root.push(new Nn),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript)),this.root.push(new ee(t.superScript))}}class Cn extends n{constructor(){super("m:sPrePr")}}class si extends n{constructor(t){super("m:sPre"),this.root.push(new Cn),this.root.push(new Mt(t.children)),this.root.push(new te(t.subScript)),this.root.push(new ee(t.superScript))}}const oi="";class On extends n{constructor(t){if(super("m:deg"),t)for(const f of t)this.root.push(f)}}class ii extends o{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class ai extends n{constructor(){super("m:degHide"),this.root.push(new ii({hide:1}))}}class kn extends n{constructor(t){super("m:radPr"),t||this.root.push(new ai)}}class ci extends n{constructor(t){super("m:rad"),this.root.push(new kn(!!t.degree)),this.root.push(new On(t.degree)),this.root.push(new Mt(t.children))}}class Ln extends n{constructor(t){super("m:fName");for(const f of t)this.root.push(f)}}class Dn extends n{constructor(){super("m:funcPr")}}class ui extends n{constructor(t){super("m:func"),this.root.push(new Dn),this.root.push(new Ln(t.name)),this.root.push(new Mt(t.children))}}class li extends o{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class hi extends n{constructor(t){super("m:begChr"),this.root.push(new li({character:t}))}}class pi extends o{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class di extends n{constructor(t){super("m:endChr"),this.root.push(new pi({character:t}))}}class _e extends n{constructor(t){super("m:dPr"),t&&(this.root.push(new hi(t.beginningCharacter)),this.root.push(new di(t.endingCharacter)))}}class fi extends n{constructor(t){super("m:d"),this.root.push(new _e),this.root.push(new Mt(t.children))}}class mi extends n{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"[",endingCharacter:"]"})),this.root.push(new Mt(t.children))}}class gi extends n{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"{",endingCharacter:"}"})),this.root.push(new Mt(t.children))}}class wi extends n{constructor(t){super("m:d"),this.root.push(new _e({beginningCharacter:"〈",endingCharacter:"〉"})),this.root.push(new Mt(t.children))}}class yi extends n{constructor(t){super("w:tblGrid");for(const f of t)this.root.push(new xi(f))}}class bi extends o{constructor(){super(...arguments),this.xmlKeys={w:"w:w"}}}class xi extends n{constructor(t){super("w:gridCol"),t!==void 0&&this.root.push(new bi({w:(0,r.Jd)(t)}))}}var re,Ee,he,Ye;(function(e){e.AUTO="auto",e.DXA="dxa",e.NIL="nil",e.PERCENTAGE="pct"})(re||(re={}));class vi extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type",size:"w:w"}}}class Vt extends n{constructor(t,{type:f=re.AUTO,size:H}){super(t);let J=H;f===re.PERCENTAGE&&typeof H=="number"&&(J=`${H}%`),this.root.push(new vi({type:f,size:(0,r.aB)(J)}))}}(function(e){e.TABLE="w:tblCellMar",e.TABLE_CELL="w:tcMar"})(Ee||(Ee={}));class Pn extends a{constructor(t,{marginUnitType:f=re.DXA,top:H,left:J,bottom:tt,right:ut}){super(t),H!==void 0&&this.root.push(new Vt("w:top",{type:f,size:H})),J!==void 0&&this.root.push(new Vt("w:left",{type:f,size:J})),tt!==void 0&&this.root.push(new Vt("w:bottom",{type:f,size:tt})),ut!==void 0&&this.root.push(new Vt("w:right",{type:f,size:ut}))}}class Fn extends a{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new U("w:top",t.top)),t.start&&this.root.push(new U("w:start",t.start)),t.left&&this.root.push(new U("w:left",t.left)),t.bottom&&this.root.push(new U("w:bottom",t.bottom)),t.end&&this.root.push(new U("w:end",t.end)),t.right&&this.root.push(new U("w:right",t.right))}}class _i extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Bn extends n{constructor(t){super("w:gridSpan"),this.root.push(new _i({val:(0,r.vH)(t)}))}}(function(e){e.CONTINUE="continue",e.RESTART="restart"})(he||(he={}));class Ei extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Je extends n{constructor(t){super("w:vMerge"),this.root.push(new Ei({val:t}))}}(function(e){e.BOTTOM_TO_TOP_LEFT_TO_RIGHT="btLr",e.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",e.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"})(Ye||(Ye={}));class Ti extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class Mn extends n{constructor(t){super("w:textDirection"),this.root.push(new Ti({val:t}))}}class Ai extends a{constructor(t){super("w:tcPr"),t.width&&this.root.push(new Vt("w:tcW",t.width)),t.columnSpan&&this.root.push(new Bn(t.columnSpan)),t.verticalMerge?this.root.push(new Je(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new Je(he.RESTART)),t.borders&&this.root.push(new Fn(t.borders)),t.shading&&this.root.push(new it(t.shading)),t.margins&&this.root.push(new Pn(Ee.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new Mn(t.textDirection)),t.verticalAlign&&this.root.push(new Ve(t.verticalAlign))}}class Qe extends n{constructor(t){super("w:tc"),this.options=t,this.root.push(new Ai(t));for(const f of t.children)this.root.push(f)}prepForXml(t){return this.root[this.root.length-1]instanceof jt||this.root.push(new jt({})),super.prepForXml(t)}}const ne={style:l.NONE,size:0,color:"auto"},se={style:l.SINGLE,size:4,color:"auto"};class tr extends n{constructor(t){super("w:tblBorders"),t.top?this.root.push(new U("w:top",t.top)):this.root.push(new U("w:top",se)),t.left?this.root.push(new U("w:left",t.left)):this.root.push(new U("w:left",se)),t.bottom?this.root.push(new U("w:bottom",t.bottom)):this.root.push(new U("w:bottom",se)),t.right?this.root.push(new U("w:right",t.right)):this.root.push(new U("w:right",se)),t.insideHorizontal?this.root.push(new U("w:insideH",t.insideHorizontal)):this.root.push(new U("w:insideH",se)),t.insideVertical?this.root.push(new U("w:insideV",t.insideVertical)):this.root.push(new U("w:insideV",se))}}tr.NONE={top:ne,bottom:ne,left:ne,right:ne,insideHorizontal:ne,insideVertical:ne};var er,rr,nr,sr,or,ir,Te;(function(e){e.MARGIN="margin",e.PAGE="page",e.TEXT="text"})(er||(er={})),function(e){e.CENTER="center",e.INSIDE="inside",e.LEFT="left",e.OUTSIDE="outside",e.RIGHT="right"}(rr||(rr={})),function(e){e.CENTER="center",e.INSIDE="inside",e.BOTTOM="bottom",e.OUTSIDE="outside",e.INLINE="inline",e.TOP="top"}(nr||(nr={})),function(e){e.NEVER="never",e.OVERLAP="overlap"}(sr||(sr={}));class Un extends o{constructor(){super(...arguments),this.xmlKeys={horizontalAnchor:"w:horzAnchor",verticalAnchor:"w:vertAnchor",absoluteHorizontalPosition:"w:tblpX",relativeHorizontalPosition:"w:tblpXSpec",absoluteVerticalPosition:"w:tblpY",relativeVerticalPosition:"w:tblpYSpec",bottomFromText:"w:bottomFromText",topFromText:"w:topFromText",leftFromText:"w:leftFromText",rightFromText:"w:rightFromText"}}}class Hn extends n{constructor(t){var{leftFromText:f,rightFromText:H,topFromText:J,bottomFromText:tt,absoluteHorizontalPosition:ut,absoluteVerticalPosition:dt}=t,_t=function(pt,mt){var Lt={};for(var St in pt)Object.prototype.hasOwnProperty.call(pt,St)&&mt.indexOf(St)<0&&(Lt[St]=pt[St]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function"){var Dt=0;for(St=Object.getOwnPropertySymbols(pt);Dt<St.length;Dt++)mt.indexOf(St[Dt])<0&&Object.prototype.propertyIsEnumerable.call(pt,St[Dt])&&(Lt[St[Dt]]=pt[St[Dt]])}return Lt}(t,["leftFromText","rightFromText","topFromText","bottomFromText","absoluteHorizontalPosition","absoluteVerticalPosition"]);super("w:tblpPr"),this.root.push(new Un(Object.assign({leftFromText:f===void 0?void 0:(0,r.Jd)(f),rightFromText:H===void 0?void 0:(0,r.Jd)(H),topFromText:J===void 0?void 0:(0,r.Jd)(J),bottomFromText:tt===void 0?void 0:(0,r.Jd)(tt),absoluteHorizontalPosition:ut===void 0?void 0:(0,r.xb)(ut),absoluteVerticalPosition:dt===void 0?void 0:(0,r.xb)(dt)},_t))),_t.overlap&&this.root.push(new rt("w:tblOverlap",_t.overlap))}}(function(e){e.AUTOFIT="autofit",e.FIXED="fixed"})(or||(or={}));class Si extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type"}}}class zn extends n{constructor(t){super("w:tblLayout"),this.root.push(new Si({type:t}))}}class Wn extends a{constructor(t){super("w:tblPr"),t.style&&this.root.push(new G("w:tblStyle",t.style)),t.float&&this.root.push(new Hn(t.float)),t.visuallyRightToLeft!==void 0&&this.root.push(new B("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new Vt("w:tblW",t.width)),t.alignment&&this.root.push(new A(t.alignment)),t.indent&&this.root.push(new Vt("w:tblInd",t.indent)),t.borders&&this.root.push(new tr(t.borders)),t.shading&&this.root.push(new it(t.shading)),t.layout&&this.root.push(new zn(t.layout)),t.cellMargin&&this.root.push(new Pn(Ee.TABLE,t.cellMargin))}}class Ii extends n{constructor({rows:t,width:f,columnWidths:H=Array(Math.max(...t.map(St=>St.CellCount))).fill(100),margins:J,indent:tt,float:ut,layout:dt,style:_t,borders:pt,alignment:mt,visuallyRightToLeft:Lt}){super("w:tbl"),this.root.push(new Wn({borders:pt??{},width:f??{size:100},indent:tt,float:ut,layout:dt,style:_t,alignment:mt,cellMargin:J,visuallyRightToLeft:Lt})),this.root.push(new yi(H));for(const St of t)this.root.push(St);t.forEach((St,Dt)=>{if(Dt===t.length-1)return;let zt=0;St.cells.forEach(Pt=>{if(Pt.options.rowSpan&&Pt.options.rowSpan>1){const Kt=new Qe({rowSpan:Pt.options.rowSpan-1,columnSpan:Pt.options.columnSpan,borders:Pt.options.borders,children:[],verticalMerge:he.CONTINUE});t[Dt+1].addCellToColumnIndex(Kt,zt)}zt+=Pt.options.columnSpan||1})})}}(function(e){e.AUTO="auto",e.ATLEAST="atLeast",e.EXACT="exact"})(ir||(ir={}));class jn extends o{constructor(){super(...arguments),this.xmlKeys={value:"w:val",rule:"w:hRule"}}}class Kn extends n{constructor(t,f){super("w:trHeight"),this.root.push(new jn({value:(0,r.Jd)(t),rule:f}))}}class Gn extends a{constructor(t){super("w:trPr"),t.cantSplit!==void 0&&this.root.push(new B("w:cantSplit",t.cantSplit)),t.tableHeader!==void 0&&this.root.push(new B("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new Kn(t.height.value,t.height.rule))}}class Ri extends n{constructor(t){super("w:tr"),this.options=t,this.root.push(new Gn(t));for(const f of t.children)this.root.push(f)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(t=>t instanceof Qe)}addCellToIndex(t,f){this.root.splice(f+1,0,t)}addCellToColumnIndex(t,f){const H=this.columnIndexToRootIndex(f,!0);this.addCellToIndex(t,H-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error("cell 'rootIndex' should between 1 to "+(this.root.length-1));let f=0;for(let H=1;H<t;H++)f+=this.root[H].options.columnSpan||1;return f}columnIndexToRootIndex(t,f=!1){if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let H=0,J=1;for(;H<=t;){if(J>=this.root.length){if(f)return this.root.length;throw new Error("cell 'columnIndex' should not great than "+(H-1))}const tt=this.root[J];J+=1,H+=tt&&tt.options.columnSpan||1}return J-1}}class Ni extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class Ci extends n{constructor(){super("Properties"),this.root.push(new Ni({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class Oi extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class ki extends o{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",extension:"Extension"}}}class Zt extends n{constructor(t,f){super("Default"),this.root.push(new ki({contentType:t,extension:f}))}}class Li extends o{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",partName:"PartName"}}}class Ht extends n{constructor(t,f){super("Override"),this.root.push(new Li({contentType:t,partName:f}))}}class Di extends n{constructor(){super("Types"),this.root.push(new Oi({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Zt("image/png","png")),this.root.push(new Zt("image/jpeg","jpeg")),this.root.push(new Zt("image/jpeg","jpg")),this.root.push(new Zt("image/bmp","bmp")),this.root.push(new Zt("image/gif","gif")),this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Zt("application/xml","xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Ht("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml"))}addFooter(t){this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class Pi extends n{constructor(t){super("cp:coreProperties"),this.root.push(new Qt({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"})),t.title&&this.root.push(new at("dc:title",t.title)),t.subject&&this.root.push(new at("dc:subject",t.subject)),t.creator&&this.root.push(new at("dc:creator",t.creator)),t.keywords&&this.root.push(new at("cp:keywords",t.keywords)),t.description&&this.root.push(new at("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new at("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new at("cp:revision",String(t.revision))),this.root.push(new Vn("dcterms:created")),this.root.push(new Vn("dcterms:modified"))}}class Vn extends n{constructor(t){super(t),this.root.push(new Qt({type:"dcterms:W3CDTF"})),this.root.push((0,r.sF)(new Date))}}class Fi extends o{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class Bi extends o{constructor(){super(...arguments),this.xmlKeys={fmtid:"fmtid",pid:"pid",name:"name"}}}class Mi extends n{constructor(t,f){super("property"),this.root.push(new Bi({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:f.name})),this.root.push(new Ui(f.value))}}class Ui extends n{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class Hi extends n{constructor(t){super("Properties"),this.properties=[],this.root.push(new Fi({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const f of t)this.addCustomProperty(f)}prepForXml(t){return this.properties.forEach(f=>this.root.push(f)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new Mi(this.nextId++,t))}}class zi extends o{constructor(){super(...arguments),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"}}}class Wi extends y{constructor(t,f){super("w:ftr",f),this.refId=t,f||this.root.push(new zi({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(t){this.root.push(t)}}class ar{constructor(t,f,H){this.media=t,this.footer=new Wi(f,H),this.relationships=new le}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class ji extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"w:id"}}}class Ki extends n{constructor(){super("w:footnoteRef")}}class Gi extends Bt{constructor(){super({style:"FootnoteReference"}),this.root.push(new Ki)}}(function(e){e.SEPERATOR="separator",e.CONTINUATION_SEPERATOR="continuationSeparator"})(Te||(Te={}));class cr extends n{constructor(t){super("w:footnote"),this.root.push(new ji({type:t.type,id:t.id}));for(let f=0;f<t.children.length;f++){const H=t.children[f];f===0&&H.addRunToFront(new Gi),this.root.push(H)}}}class Vi extends n{constructor(){super("w:continuationSeparator")}}class $i extends Bt{constructor(){super({}),this.root.push(new Vi)}}class Xi extends n{constructor(){super("w:separator")}}class qi extends Bt{constructor(){super({}),this.root.push(new Xi)}}class Zi extends o{constructor(){super(...arguments),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"}}}class $n extends n{constructor(){super("w:footnotes"),this.root.push(new Zi({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"}));const t=new cr({id:-1,type:Te.SEPERATOR,children:[new jt({spacing:{after:0,line:240,lineRule:Jt.AUTO},children:[new qi]})]});this.root.push(t);const f=new cr({id:0,type:Te.CONTINUATION_SEPERATOR,children:[new jt({spacing:{after:0,line:240,lineRule:Jt.AUTO},children:[new $i]})]});this.root.push(f)}createFootNote(t,f){const H=new cr({id:t,children:f});this.root.push(H)}}class Yi{constructor(){this.footnotess=new $n,this.relationships=new le}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Ji extends o{constructor(){super(...arguments),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"}}}class Qi extends y{constructor(t,f){super("w:hdr",f),this.refId=t,f||this.root.push(new Ji({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(t){this.root.push(t)}}class ur{constructor(t,f,H){this.media=t,this.header=new Qi(f,H),this.relationships=new le}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class lr{constructor(){this.map=new Map}addMedia(t,f){const H=`${(0,Ot.EL)()}.png`,J={stream:typeof t=="string"?this.convertDataURIToBinary(t):t,fileName:H,transformation:{pixels:{x:Math.round(f.width),y:Math.round(f.height)},emus:{x:Math.round(9525*f.width),y:Math.round(9525*f.height)},flip:f.flip,rotation:f.rotation?6e4*f.rotation:void 0}};return this.map.set(H,J),J}addImage(t,f){this.map.set(t,f)}get Array(){return Array.from(this.map.values())}convertDataURIToBinary(t){const f=";base64,",H=t.indexOf(f)+f.length;return typeof atob=="function"?new Uint8Array(atob(t.substring(H)).split("").map(J=>J.charCodeAt(0))):new(ct(8764)).Buffer(t,"base64")}}const ta="";var Ut,hr;(function(e){e.DECIMAL="decimal",e.UPPER_ROMAN="upperRoman",e.LOWER_ROMAN="lowerRoman",e.UPPER_LETTER="upperLetter",e.LOWER_LETTER="lowerLetter",e.ORDINAL="ordinal",e.CARDINAL_TEXT="cardinalText",e.ORDINAL_TEXT="ordinalText",e.HEX="hex",e.CHICAGO="chicago",e.IDEOGRAPH__DIGITAL="ideographDigital",e.JAPANESE_COUNTING="japaneseCounting",e.AIUEO="aiueo",e.IROHA="iroha",e.DECIMAL_FULL_WIDTH="decimalFullWidth",e.DECIMAL_HALF_WIDTH="decimalHalfWidth",e.JAPANESE_LEGAL="japaneseLegal",e.JAPANESE_DIGITAL_TEN_THOUSAND="japaneseDigitalTenThousand",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_FULL_WIDTH2="decimalFullWidth2",e.AIUEO_FULL_WIDTH="aiueoFullWidth",e.IROHA_FULL_WIDTH="irohaFullWidth",e.DECIMAL_ZERO="decimalZero",e.BULLET="bullet",e.GANADA="ganada",e.CHOSUNG="chosung",e.DECIMAL_ENCLOSED_FULLSTOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PARENTHESES="decimalEnclosedParen",e.DECIMAL_ENCLOSED_CIRCLE_CHINESE="decimalEnclosedCircleChinese",e.IDEOGRAPH_ENCLOSED_CIRCLE="ideographEnclosedCircle",e.IDEOGRAPH_TRADITIONAL="ideographTraditional",e.IDEOGRAPH_ZODIAC="ideographZodiac",e.IDEOGRAPH_ZODIAC_TRADITIONAL="ideographZodiacTraditional",e.TAIWANESE_COUNTING="taiwaneseCounting",e.IDEOGRAPH_LEGAL_TRADITIONAL="ideographLegalTraditional",e.TAIWANESE_COUNTING_THOUSAND="taiwaneseCountingThousand",e.TAIWANESE_DIGITAL="taiwaneseDigital",e.CHINESE_COUNTING="chineseCounting",e.CHINESE_LEGAL_SIMPLIFIED="chineseLegalSimplified",e.CHINESE_COUNTING_THOUSAND="chineseCountingThousand",e.KOREAN_DIGITAL="koreanDigital",e.KOREAN_COUNTING="koreanCounting",e.KOREAN_LEGAL="koreanLegal",e.KOREAN_DIGITAL2="koreanDigital2",e.VIETNAMESE_COUNTING="vietnameseCounting",e.RUSSIAN_LOWER="russianLower",e.RUSSIAN_UPPER="russianUpper",e.NONE="none",e.NUMBER_IN_DASH="numberInDash",e.HEBREW1="hebrew1",e.HEBREW2="hebrew2",e.ARABIC_ALPHA="arabicAlpha",e.ARABIC_ABJAD="arabicAbjad",e.HINDI_VOWELS="hindiVowels",e.HINDI_CONSONANTS="hindiConsonants",e.HINDI_NUMBERS="hindiNumbers",e.HINDI_COUNTING="hindiCounting",e.THAI_LETTERS="thaiLetters",e.THAI_NUMBERS="thaiNumbers",e.THAI_COUNTING="thaiCounting",e.BAHT_TEXT="bahtText",e.DOLLAR_TEXT="dollarText",e.CUSTOM="custom"})(Ut||(Ut={}));class ea extends o{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl",tentative:"w15:tentative"}}}class ra extends n{constructor(t){super("w:numFmt"),this.root.push(new u({val:t}))}}class na extends n{constructor(t){super("w:lvlText"),this.root.push(new u({val:t}))}}class sa extends n{constructor(t){super("w:lvlJc"),this.root.push(new u({val:t}))}}(function(e){e.NOTHING="nothing",e.SPACE="space",e.TAB="tab"})(hr||(hr={}));class oa extends n{constructor(t){super("w:suff"),this.root.push(new u({val:t}))}}class ia extends n{constructor(){super("w:isLgl")}}class pr extends n{constructor({level:t,format:f,text:H,alignment:J=h.START,start:tt=1,style:ut,suffix:dt,isLegalNumberingStyle:_t}){if(super("w:lvl"),this.root.push(new lt("w:start",(0,r.vH)(tt))),f&&this.root.push(new ra(f)),dt&&this.root.push(new oa(dt)),_t&&this.root.push(new ia),H&&this.root.push(new na(H)),this.root.push(new sa(J)),this.paragraphProperties=new qt(ut&&ut.paragraph),this.runProperties=new Et(ut&&ut.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>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 ea({ilvl:(0,r.vH)(t),tentative:1}))}}class Xn extends pr{}class aa extends pr{}class ca extends n{constructor(t){super("w:multiLevelType"),this.root.push(new u({val:t}))}}class ua extends o{constructor(){super(...arguments),this.xmlKeys={abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"}}}class dr extends n{constructor(t,f){super("w:abstractNum"),this.root.push(new ua({abstractNumId:(0,r.vH)(t),restartNumberingAfterBreak:0})),this.root.push(new ca("hybridMultilevel")),this.id=t;for(const H of f)this.root.push(new Xn(H))}}class la extends n{constructor(t){super("w:abstractNumId"),this.root.push(new u({val:t}))}}class ha extends o{constructor(){super(...arguments),this.xmlKeys={numId:"w:numId"}}}class fr extends n{constructor(t){super("w:num"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new ha({numId:(0,r.vH)(t.numId)})),this.root.push(new la((0,r.vH)(t.abstractNumId))),t.overrideLevel&&this.root.push(new qn(t.overrideLevel.num,t.overrideLevel.start))}}class pa extends o{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl"}}}class qn extends n{constructor(t,f){super("w:lvlOverride"),this.root.push(new pa({ilvl:t})),f!==void 0&&this.root.push(new fa(f))}}class da extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class fa extends n{constructor(t){super("w:startOverride"),this.root.push(new da({val:t}))}}class Zn extends n{constructor(t){super("w:numbering"),this.abstractNumberingMap=new Map,this.concreteNumberingMap=new Map,this.referenceConfigMap=new Map,this.root.push(new Qt({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"}));const f=new dr((0,Ot.NY)(),[{level:0,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:(0,Ot.vw)(.5),hanging:(0,Ot.vw)(.25)}}}},{level:1,format:Ut.BULLET,text:"○",alignment:h.LEFT,style:{paragraph:{indent:{left:(0,Ot.vw)(1),hanging:(0,Ot.vw)(.25)}}}},{level:2,format:Ut.BULLET,text:"■",alignment:h.LEFT,style:{paragraph:{indent:{left:2160,hanging:(0,Ot.vw)(.25)}}}},{level:3,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:2880,hanging:(0,Ot.vw)(.25)}}}},{level:4,format:Ut.BULLET,text:"○",alignment:h.LEFT,style:{paragraph:{indent:{left:3600,hanging:(0,Ot.vw)(.25)}}}},{level:5,format:Ut.BULLET,text:"■",alignment:h.LEFT,style:{paragraph:{indent:{left:4320,hanging:(0,Ot.vw)(.25)}}}},{level:6,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:5040,hanging:(0,Ot.vw)(.25)}}}},{level:7,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:5760,hanging:(0,Ot.vw)(.25)}}}},{level:8,format:Ut.BULLET,text:"●",alignment:h.LEFT,style:{paragraph:{indent:{left:6480,hanging:(0,Ot.vw)(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new fr({numId:1,abstractNumId:f.id,reference:"default-bullet-numbering",instance:0,overrideLevel:{num:0,start:1}})),this.abstractNumberingMap.set("default-bullet-numbering",f);for(const H of t.config)this.abstractNumberingMap.set(H.reference,new dr((0,Ot.NY)(),H.levels)),this.referenceConfigMap.set(H.reference,H.levels)}prepForXml(t){for(const f of this.abstractNumberingMap.values())this.root.push(f);for(const f of this.concreteNumberingMap.values())this.root.push(f);return super.prepForXml(t)}createConcreteNumberingInstance(t,f){const H=this.abstractNumberingMap.get(t);if(!H)return;const J=`${t}-${f}`;if(this.concreteNumberingMap.has(J))return;const tt=this.referenceConfigMap.get(t),ut=tt&&tt[0].start,dt={numId:(0,Ot.NY)(),abstractNumId:H.id,reference:t,instance:f,overrideLevel:ut&&Number.isInteger(ut)?{num:0,start:ut}:{num:0,start:1}};this.concreteNumberingMap.set(J,new fr(dt))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class ma extends o{constructor(){super(...arguments),this.xmlKeys={version:"w:val",name:"w:name",uri:"w:uri"}}}class ga extends n{constructor(t){super("w:compatSetting"),this.root.push(new ma({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class wa extends n{constructor(t){super("w:compat"),t.version&&this.root.push(new ga(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new B("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new B("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new B("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new B("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new B("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new B("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new B("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new B("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new B("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new B("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new B("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new B("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new B("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new B("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new B("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new B("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new B("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new B("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new B("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new B("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new B("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new B("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new B("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new B("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new B("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new B("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new B("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new B("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new B("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new B("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new B("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new B("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new B("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new B("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new B("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new B("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new B("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new B("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new B("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new B("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new B("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new B("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new B("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new B("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new B("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new B("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new B("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new B("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new B("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new B("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new B("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new B("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new B("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new B("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new B("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new B("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new B("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new B("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new B("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new B("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new B("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new B("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new B("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new B("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new B("w:cachedColBalance",t.cachedColumnBalance))}}class ya extends o{constructor(){super(...arguments),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"}}}class ba extends n{constructor(t){var f,H,J,tt;super("w:settings"),this.root.push(new ya({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 B("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new B("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new B("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new B("w:updateFields",t.updateFields)),this.root.push(new wa(Object.assign(Object.assign({},(f=t.compatibility)!==null&&f!==void 0?f:{}),{version:(tt=(J=(H=t.compatibility)===null||H===void 0?void 0:H.version)!==null&&J!==void 0?J:t.compatibilityModeVersion)!==null&&tt!==void 0?tt:15})))}}class Yn extends o{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class xa extends n{constructor(t){super("w:name"),this.root.push(new Yn({val:t}))}}class va extends n{constructor(t){super("w:uiPriority"),this.root.push(new Yn({val:(0,r.vH)(t)}))}}class _a extends o{constructor(){super(...arguments),this.xmlKeys={type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"}}}class Jn extends n{constructor(t,f){super("w:style"),this.root.push(new _a(t)),f.name&&this.root.push(new xa(f.name)),f.basedOn&&this.root.push(new G("w:basedOn",f.basedOn)),f.next&&this.root.push(new G("w:next",f.next)),f.link&&this.root.push(new G("w:link",f.link)),f.uiPriority!==void 0&&this.root.push(new va(f.uiPriority)),f.semiHidden!==void 0&&this.root.push(new B("w:semiHidden",f.semiHidden)),f.unhideWhenUsed!==void 0&&this.root.push(new B("w:unhideWhenUsed",f.unhideWhenUsed)),f.quickFormat!==void 0&&this.root.push(new B("w:qFormat",f.quickFormat))}}class pe extends Jn{constructor(t){super({type:"paragraph",styleId:t.id},t),this.paragraphProperties=new qt(t.paragraph),this.runProperties=new Et(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class de extends Jn{constructor(t){super({type:"character",styleId:t.id},Object.assign({uiPriority:99,unhideWhenUsed:!0},t)),this.runProperties=new Et(t.run),this.root.push(this.runProperties)}}class $t extends pe{constructor(t){super(Object.assign(Object.assign({},t),{basedOn:"Normal",next:"Normal",quickFormat:!0}))}}class Ea extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Title",name:"Title"}))}}class Ta extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading1",name:"Heading 1"}))}}class Aa extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading2",name:"Heading 2"}))}}class Sa extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading3",name:"Heading 3"}))}}class Ia extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading4",name:"Heading 4"}))}}class Ra extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading5",name:"Heading 5"}))}}class Na extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading6",name:"Heading 6"}))}}class Ca extends $t{constructor(t){super(Object.assign(Object.assign({},t),{id:"Strong",name:"Strong"}))}}class Oa extends pe{constructor(t){super(Object.assign(Object.assign({},t),{id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0}))}}class ka extends pe{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Jt.AUTO}},run:{size:20}}))}}class La extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}}))}}class Da extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}}))}}class Pa extends de{constructor(t){super(Object.assign(Object.assign({},t),{id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:x.SINGLE}}}))}}class Ae extends n{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const f of t.importedStyles)this.root.push(f);if(t.paragraphStyles)for(const f of t.paragraphStyles)this.root.push(new pe(f));if(t.characterStyles)for(const f of t.characterStyles)this.root.push(new de(f))}}class Qn extends n{constructor(t){super("w:pPrDefault"),this.root.push(new qt(t))}}class ts extends n{constructor(t){super("w:rPrDefault"),this.root.push(new Et(t))}}class es extends n{constructor(t){super("w:docDefaults"),this.runPropertiesDefaults=new ts(t.run),this.paragraphPropertiesDefaults=new Qn(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class rs{newInstance(t){const f=(0,m.xml2js)(t,{compact:!1});let H;for(const tt of f.elements||[])tt.name==="w:styles"&&(H=tt);if(H===void 0)throw new Error("can not find styles element");const J=H.elements||[];return new Ae({initialStyles:new N(H.attributes),importedStyles:J.map(tt=>I(tt))})}}class ns{newInstance(t={}){var f;return{initialStyles:new Qt({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",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",Ignorable:"w14 w15"}),importedStyles:[new es((f=t.document)!==null&&f!==void 0?f:{}),new Ea(Object.assign({run:{size:56}},t.title)),new Ta(Object.assign({run:{color:"2E74B5",size:32}},t.heading1)),new Aa(Object.assign({run:{color:"2E74B5",size:26}},t.heading2)),new Sa(Object.assign({run:{color:"1F4D78",size:24}},t.heading3)),new Ia(Object.assign({run:{color:"2E74B5",italics:!0}},t.heading4)),new Ra(Object.assign({run:{color:"2E74B5"}},t.heading5)),new Na(Object.assign({run:{color:"1F4D78"}},t.heading6)),new Ca(Object.assign({run:{bold:!0}},t.strong)),new Oa(t.listParagraph||{}),new Pa(t.hyperlink||{}),new La(t.footnoteReference||{}),new ka(t.footnoteText||{}),new Da(t.footnoteTextChar||{})]}}}class ss{constructor(t,f={}){var H,J,tt,ut,dt,_t,pt;if(this.currentRelationshipId=1,this.headers=[],this.footers=[],this.coreProperties=new Pi(Object.assign(Object.assign({},t),{creator:(H=t.creator)!==null&&H!==void 0?H:"Un-named",revision:(J=t.revision)!==null&&J!==void 0?J:1,lastModifiedBy:(tt=t.lastModifiedBy)!==null&&tt!==void 0?tt:"Un-named"})),this.numbering=new Zn(t.numbering?t.numbering:{config:[]}),this.comments=new Mr((ut=t.comments)!==null&&ut!==void 0?ut:{children:[]}),this.fileRelationships=new le,this.customProperties=new Hi((dt=t.customProperties)!==null&&dt!==void 0?dt:[]),this.appProperties=new Ci,this.footnotesWrapper=new Yi,this.contentTypes=new Di,this.documentWrapper=new xn({background:t.background}),this.settings=new ba({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(_t=t.features)===null||_t===void 0?void 0:_t.trackRevisions,updateFields:(pt=t.features)===null||pt===void 0?void 0:pt.updateFields}),this.media=f.template&&f.template.media?f.template.media:new lr,f.template&&(this.currentRelationshipId=f.template.currentRelationshipId+1),f.template&&t.externalStyles)throw Error("can not use both template and external styles");if(f.template&&f.template.styles){const mt=new rs;this.styles=mt.newInstance(f.template.styles)}else if(t.externalStyles){const mt=new rs;this.styles=mt.newInstance(t.externalStyles)}else if(t.styles){const mt=new ns().newInstance(t.styles.default);this.styles=new Ae(Object.assign(Object.assign({},mt),t.styles))}else{const mt=new ns;this.styles=new Ae(mt.newInstance())}if(this.addDefaultRelationships(),f.template&&f.template.headers)for(const mt of f.template.headers)this.addHeaderToDocument(mt.header,mt.type);if(f.template&&f.template.footers)for(const mt of f.template.footers)this.addFooterToDocument(mt.footer,mt.type);for(const mt of t.sections)this.addSection(mt);if(t.footnotes)for(const mt in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(mt),t.footnotes[mt].children)}addSection({headers:t={},footers:f={},children:H,properties:J}){this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({},J),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:f.default?this.createFooter(f.default):void 0,first:f.first?this.createFooter(f.first):void 0,even:f.even?this.createFooter(f.even):void 0}}));for(const tt of H)this.documentWrapper.View.add(tt)}createHeader(t){const f=new ur(this.media,this.currentRelationshipId++);for(const H of t.options.children)f.add(H);return this.addHeaderToDocument(f),f}createFooter(t){const f=new ar(this.media,this.currentRelationshipId++);for(const H of t.options.children)f.add(H);return this.addFooterToDocument(f),f}addHeaderToDocument(t,f=Wt.DEFAULT){this.headers.push({header:t,type:f}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,f=Wt.DEFAULT){this.footers.push({footer:t,type:f}),this.documentWrapper.Relationships.createRelationship(t.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(t=>t.header)}get Footers(){return this.footers.map(t=>t.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}}const Fa="";class Ba extends n{constructor(t={}){super("w:instrText"),this.properties=t,this.root.push(new L({space:d.PRESERVE}));let f="TOC";this.properties.captionLabel&&(f=`${f} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(f=`${f} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(f=`${f} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(f=`${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(f=`${f} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(f=`${f} \\h`),this.properties.tcFieldLevelRange&&(f=`${f} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(f=`${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(f=`${f} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(f=`${f} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(f=`${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length&&(f=`${f} \\t "${this.properties.stylesWithLevels.map(H=>`${H.styleName},${H.level}`).join(",")}"`),this.properties.useAppliedParagraphOutlineLevel&&(f=`${f} \\u`),this.properties.preserveTabInEntries&&(f=`${f} \\w`),this.properties.preserveNewLineInEntries&&(f=`${f} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(f=`${f} \\z`),this.root.push(f)}}class Ma extends n{constructor(){super("w:sdtContent")}}class Ua extends n{constructor(t){super("w:sdtPr"),this.root.push(new G("w:alias",t))}}class Ha extends n{constructor(t="Table of Contents",f){super("w:sdt"),this.root.push(new Ua(t));const H=new Ma,J=new jt({children:[new Bt({children:[new T(!0),new Ba(f),new i]})]});H.addChildElement(J);const tt=new jt({children:[new Bt({children:[new v]})]});H.addChildElement(tt),this.root.push(H)}}class za{constructor(t,f){this.styleName=t,this.level=f}}class Wa{constructor(t={children:[]}){this.options=t}}class ja{constructor(t={children:[]}){this.options=t}}class os extends o{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class is extends n{constructor(t){super("w:footnoteReference"),this.root.push(new os({id:t}))}}class Ka extends Bt{constructor(t){super({style:"FootnoteReference"}),this.root.push(new is(t))}}class Ga extends n{constructor(t){super("w:ins"),this.root.push(new gt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Yt(t))}}class Va extends n{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("PAGE")}}class $a extends n{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("NUMPAGES")}}class Xa extends n{constructor(){super("w:delInstrText"),this.root.push(new L({space:d.PRESERVE})),this.root.push("SECTIONPAGES")}}class as extends n{constructor(t){super("w:delText"),this.root.push(new L({space:d.PRESERVE})),this.root.push(t)}}class qa extends n{constructor(t){super("w:del"),this.root.push(new gt({id:t.id,author:t.author,date:t.date})),this.deletedTextRunWrapper=new Za(t),this.addChildElement(this.deletedTextRunWrapper)}}class Za extends n{constructor(t){if(super("w:r"),this.root.push(new Et(t)),t.children)for(const f of t.children)if(typeof f!="string")this.root.push(f);else switch(f){case D.CURRENT:this.root.push(new T),this.root.push(new Va),this.root.push(new i),this.root.push(new v);break;case D.TOTAL_PAGES:this.root.push(new T),this.root.push(new $a),this.root.push(new i),this.root.push(new v);break;case D.TOTAL_PAGES_IN_SECTION:this.root.push(new T),this.root.push(new Xa),this.root.push(new i),this.root.push(new v);break;default:this.root.push(new as(f))}else t.text&&this.root.push(new as(t.text));if(t.break)for(let f=0;f<t.break;f++)this.root.splice(1,0,new $)}}var mr=ct(6085),kt=ct(3479);class Ya{format(t,f={}){const H=t.prepForXml(f);if(H)return H;throw Error("XMLComponent did not format correctly")}}class Ja{replace(t,f,H){let J=t;return f.forEach((tt,ut)=>{J=J.replace(new RegExp(`{${tt.fileName}}`,"g"),(H+ut).toString())}),J}getMediaData(t,f){return f.Array.filter(H=>t.search(`{${H.fileName}}`)>0)}}class Qa{replace(t,f){let H=t;for(const J of f)H=H.replace(new RegExp(`{${J.reference}-${J.instance}}`,"g"),J.numId.toString());return H}}var gr,Se=function(e,t,f,H){return new(f||(f=Promise))(function(J,tt){function ut(pt){try{_t(H.next(pt))}catch(mt){tt(mt)}}function dt(pt){try{_t(H.throw(pt))}catch(mt){tt(mt)}}function _t(pt){var mt;pt.done?J(pt.value):(mt=pt.value,mt instanceof f?mt:new f(function(Lt){Lt(mt)})).then(ut,dt)}_t((H=H.apply(e,t||[])).next())})};(function(e){e.NONE="",e.WITH_2_BLANKS=" ",e.WITH_4_BLANKS=" ",e.WITH_TAB=" "})(gr||(gr={}));class cs{static toString(t,f){return Se(this,void 0,void 0,function*(){return yield this.compiler.compile(t,f).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(t,f){return Se(this,void 0,void 0,function*(){return yield this.compiler.compile(t,f).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(t,f){return Se(this,void 0,void 0,function*(){return yield this.compiler.compile(t,f).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(t,f){return Se(this,void 0,void 0,function*(){return yield this.compiler.compile(t,f).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(t,f){return this.compiler.compile(t,f).generateNodeStream({type:"nodebuffer",streamFiles:!0,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}}cs.compiler=new class{constructor(){this.formatter=new Ya,this.imageReplacer=new Ja,this.numberingReplacer=new Qa}compile(e,t){const f=new mr,H=this.xmlifyFile(e,t),J=new Map(Object.entries(H));for(const[,tt]of J)if(Array.isArray(tt))for(const ut of tt)f.file(ut.path,ut.data);else f.file(tt.path,tt.data);for(const tt of e.Media.Array){const ut=tt.stream;f.file(`word/media/${tt.fileName}`,ut)}return f}xmlifyFile(e,t){const f=e.Document.Relationships.RelationshipCount+1,H=kt(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),J=this.imageReplacer.getMediaData(H,e.Media);return{Relationships:{data:(()=>(J.forEach((tt,ut)=>{e.Document.Relationships.createRelationship(f+ut,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${tt.fileName}`)}),kt(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const tt=this.imageReplacer.replace(H,J,f);return this.numberingReplacer.replace(tt,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const tt=kt(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(tt,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:kt(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:kt(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:kt(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(dt,e.Media).forEach((_t,pt)=>{tt.Relationships.createRelationship(pt,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_t.fileName}`)}),{data:kt(this.formatter.format(tt.Relationships,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${ut+1}.xml.rels`}}),FooterRelationships:e.Footers.map((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(dt,e.Media).forEach((_t,pt)=>{tt.Relationships.createRelationship(pt,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_t.fileName}`)}),{data:kt(this.formatter.format(tt.Relationships,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${ut+1}.xml.rels`}}),Headers:e.Headers.map((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),_t=this.imageReplacer.getMediaData(dt,e.Media),pt=this.imageReplacer.replace(dt,_t,0);return{data:this.numberingReplacer.replace(pt,e.Numbering.ConcreteNumbering),path:`word/header${ut+1}.xml`}}),Footers:e.Footers.map((tt,ut)=>{const dt=kt(this.formatter.format(tt.View,{viewWrapper:tt,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),_t=this.imageReplacer.getMediaData(dt,e.Media),pt=this.imageReplacer.replace(dt,_t,0);return{data:this.numberingReplacer.replace(pt,e.Numbering.ConcreteNumbering),path:`word/footer${ut+1}.xml`}}),ContentTypes:{data:kt(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:kt(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:kt(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:kt(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:kt(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:kt(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:kt(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"}}}};var oe=function(e,t,f,H){return new(f||(f=Promise))(function(J,tt){function ut(pt){try{_t(H.next(pt))}catch(mt){tt(mt)}}function dt(pt){try{_t(H.throw(pt))}catch(mt){tt(mt)}}function _t(pt){var mt;pt.done?J(pt.value):(mt=pt.value,mt instanceof f?mt:new f(function(Lt){Lt(mt)})).then(ut,dt)}_t((H=H.apply(e,t||[])).next())})};const tc={"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header":"header","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer":"footer","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":"image","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink":"hyperlink"};var Ie;(function(e){e.HEADER="header",e.FOOTER="footer",e.IMAGE="image",e.HYPERLINK="hyperlink"})(Ie||(Ie={}));class ec{extract(t){return oe(this,void 0,void 0,function*(){const f=yield mr.loadAsync(t),H=yield f.files["word/document.xml"].async("text"),J=yield f.files["word/_rels/document.xml.rels"].async("text"),tt=this.extractDocumentRefs(H),ut=this.findReferenceFiles(J),dt=new lr;return{headers:yield this.createHeaders(f,tt,ut,dt,0),footers:yield this.createFooters(f,tt,ut,dt,tt.headers.length),currentRelationshipId:tt.footers.length+tt.headers.length,styles:yield f.files["word/styles.xml"].async("text"),titlePageIsDefined:this.checkIfTitlePageIsDefined(H),media:dt}})}createFooters(t,f,H,J,tt){return oe(this,void 0,void 0,function*(){const ut=f.footers.map((dt,_t)=>oe(this,void 0,void 0,function*(){const pt=H.find(Pt=>Pt.id===dt.id);if(pt===null||!pt)throw new Error(`Can not find target file for id ${dt.id}`);const mt=yield t.files[`word/${pt.target}`].async("text"),Lt=(0,m.xml2js)(mt,{compact:!1,captureSpacesBetweenElements:!0});if(!Lt.elements)return;const St=Lt.elements.reduce((Pt,Kt)=>Kt.name==="w:ftr"?Kt:Pt),Dt=I(St),zt=new ar(J,tt+_t,Dt);return yield this.addRelationshipToWrapper(pt,t,zt,J),{type:dt.type,footer:zt}})).filter(dt=>!!dt);return Promise.all(ut)})}createHeaders(t,f,H,J,tt){return oe(this,void 0,void 0,function*(){const ut=f.headers.map((dt,_t)=>oe(this,void 0,void 0,function*(){const pt=H.find(Pt=>Pt.id===dt.id);if(pt===null||!pt)throw new Error(`Can not find target file for id ${dt.id}`);const mt=yield t.files[`word/${pt.target}`].async("text"),Lt=(0,m.xml2js)(mt,{compact:!1,captureSpacesBetweenElements:!0});if(!Lt.elements)return;const St=Lt.elements.reduce((Pt,Kt)=>Kt.name==="w:hdr"?Kt:Pt),Dt=I(St),zt=new ur(J,tt+_t,Dt);return yield this.addRelationshipToWrapper(pt,t,zt,J),{type:dt.type,header:zt}})).filter(dt=>!!dt);return Promise.all(ut)})}addRelationshipToWrapper(t,f,H,J){return oe(this,void 0,void 0,function*(){const tt=f.files[`word/_rels/${t.target}.rels`];if(!tt)return;const ut=yield tt.async("text"),dt=this.findReferenceFiles(ut).filter(pt=>pt.type===Ie.IMAGE),_t=this.findReferenceFiles(ut).filter(pt=>pt.type===Ie.HYPERLINK);for(const pt of dt){const mt=mr.support.arraybuffer?"arraybuffer":"nodebuffer",Lt=yield f.files[`word/${pt.target}`].async(mt),St=J.addMedia(Lt,{width:100,height:100});H.Relationships.createRelationship(pt.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${St.fileName}`)}for(const pt of _t)H.Relationships.createRelationship(pt.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",pt.target,be.EXTERNAL)})}findReferenceFiles(t){const f=(0,m.xml2js)(t,{compact:!0});return(Array.isArray(f.Relationships.Relationship)?f.Relationships.Relationship:[f.Relationships.Relationship]).map(H=>{if(H._attributes===void 0)throw Error("relationship element has no attributes");return{id:this.parseRefId(H._attributes.Id),type:tc[H._attributes.Type],target:H._attributes.Target}}).filter(H=>H.type!==null)}extractDocumentRefs(t){const f=(0,m.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"],H=f["w:headerReference"];let J;J=H===void 0?[]:Array.isArray(H)?H:[H];const tt=J.map(_t=>{if(_t._attributes===void 0)throw Error("header reference element has no attributes");return{type:_t._attributes["w:type"],id:this.parseRefId(_t._attributes["r:id"])}}),ut=f["w:footerReference"];let dt;return dt=ut===void 0?[]:Array.isArray(ut)?ut:[ut],{headers:tt,footers:dt.map(_t=>{if(_t._attributes===void 0)throw Error("footer reference element has no attributes");return{type:_t._attributes["w:type"],id:this.parseRefId(_t._attributes["r:id"])}})}}checkIfTitlePageIsDefined(t){return(0,m.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"]["w:titlePg"]!==void 0}parseRefId(t){const f=/^rId(\d+)$/.exec(t);if(f===null)throw new Error("Invalid ref id");return parseInt(f[1],10)}}var Ct=ct(5575)})(),vt})())})(ws);var Nt=ws.exports;let yr=null,br=null,xr=null;async function sc(){return yr||(yr=Promise.resolve().then(()=>require("./index-656d224b.js")).then(yt=>yt.index)),yr}async function oc(){return br||(br=Promise.resolve().then(()=>require("./jspdf.es.min-90db2c97.js")).then(yt=>yt.jspdf_es_min)),br}async function ic(){return xr||(xr=Promise.resolve().then(()=>require("./html2canvas.esm-09133e29.js"))),xr}async function ac(yt){const bt=await sc();return new Promise((ot,xt)=>{const ct=new FileReader;ct.onload=async vt=>{var W;try{const F=(W=vt.target)==null?void 0:W.result,n=await bt.convertToHtml({arrayBuffer:F});ot(n.value)}catch(F){xt(new Error(`Failed to import Word document: ${F}`))}},ct.onerror=()=>xt(new Error("Failed to read file")),ct.readAsArrayBuffer(yt)})}async function cc(yt,bt="document.docx"){const xt=wr.getDocumentManagerConfig().useClientSideFallback??!0;try{const ct=wr.getApiUrl("exportWord"),vt=wr.getApiHeaders(),W=await fetch(ct,{method:"POST",headers:{"Content-Type":"application/json",...vt},body:JSON.stringify({htmlContent:yt,filename:bt})});if(!W.ok){const n=await W.json().catch(()=>({error:"Unknown error"}));throw new Error(n.error||"Failed to export document")}const F=await W.blob();gs(F,bt)}catch(ct){if(xt){console.warn("API export failed, falling back to client-side generation:",ct);try{const vt=ys(yt),W=await Nt.Packer.toBlob(vt);gs(W,bt),console.info("✅ Document exported successfully using client-side generation")}catch(vt){throw new Error(`Failed to export to Word (both API and client-side): ${vt}`)}}else throw new Error(`Failed to export to Word via API: ${ct}`)}}async function uc(yt,bt="document.pdf",ot){try{const ct=(await oc()).default,vt=new ct({orientation:"portrait",unit:"mm",format:"a4"}),W=20,F=vt.internal.pageSize.getWidth(),n=vt.internal.pageSize.getHeight(),a=F-2*W,o=n-2*W;if(ot){const u=ot.style.position,m=ot.style.overflow,I=ot.style.height,p=ot.style.maxHeight;ot.style.position="relative",ot.style.overflow="visible",ot.style.height="auto",ot.style.maxHeight="none",ot.offsetHeight;try{const N=(await ic()).default,_=await N(ot,{scale:2,useCORS:!0,allowTaint:!0,backgroundColor:"#ffffff",width:ot.scrollWidth,height:ot.scrollHeight,scrollX:0,scrollY:0,windowWidth:ot.scrollWidth,windowHeight:ot.scrollHeight});ot.style.position=u,ot.style.overflow=m,ot.style.height=I,ot.style.maxHeight=p;const y=_.toDataURL("image/png"),h=a,l=_.height*h/_.width;if(l<=o)vt.addImage(y,"PNG",W,W,h,l);else{const g=_.height/l,E=g*o,O=Math.ceil(_.height/E);for(let M=0;M<O;M++){M>0&&vt.addPage();const d=document.createElement("canvas"),b=d.getContext("2d");d.width=_.width;const C=M*E,x=_.height-C,D=Math.min(E,x);d.height=D,b.drawImage(_,0,C,_.width,D,0,0,_.width,D);const r=d.toDataURL("image/png"),B=D/g;vt.addImage(r,"PNG",W,W,h,Math.min(B,o))}}}catch(S){throw ot.style.position=u,ot.style.overflow=m,ot.style.height=I,ot.style.maxHeight=p,S}}else{const u=wc(yt).split(`
|
|
16
|
-
`);let m=W;u.forEach(I=>{m>n-W&&(vt.addPage(),m=W),vt.text(I,W,m),m+=7})}vt.save(bt)}catch(xt){throw new Error(`Failed to export to PDF: ${xt}`)}}function ys(yt){const bt=document.createElement("div");bt.innerHTML=yt;const ot=[];return Array.from(bt.children).forEach(xt=>{var vt;const ct=xt.tagName;ct.match(/^H[1-6]$/)?ot.push(lc(xt)):ct==="P"?ot.push(fs(xt)):ct==="TABLE"?ot.push(mc(xt)):ct==="UL"||ct==="OL"?ot.push(...gc(xt,ct==="OL")):ct==="BLOCKQUOTE"?ot.push(hc(xt)):ct==="PRE"||ct==="CODE"?ot.push(pc(xt)):ct==="HR"?ot.push(dc()):(vt=xt.textContent)!=null&&vt.trim()&&ot.push(fs(xt))}),ot.length===0&&ot.push(new Nt.Paragraph({children:[new Nt.TextRun({text:""})]})),new Nt.Document({sections:[{properties:{},children:ot}]})}function lc(yt){const bt=parseInt(yt.tagName.charAt(1)),ot=fe(yt),xt=bs(yt),ct={1:32,2:28,3:26,4:24,5:22,6:20};return new Nt.Paragraph({children:ot.map(vt=>{const W=new Nt.TextRun({text:vt.text,bold:vt.bold||bt<=3,italics:vt.italic,underline:vt.underline?{}:void 0,color:vt.color,size:ct[bt],font:vt.font});return vt.link?new Nt.TextRun({...W,style:"Hyperlink"}):W}),heading:`Heading${bt}`,alignment:xt,spacing:{before:240,after:120}})}function fs(yt){const bt=fe(yt),ot=bs(yt),xt=fc(yt);return new Nt.Paragraph({children:bt.map(ct=>{const vt={text:ct.text,bold:ct.bold,italics:ct.italic,underline:ct.underline?{}:void 0,strike:ct.strike,color:ct.color,size:ct.size,font:ct.font,highlight:ct.highlight};return ct.link&&(vt.style="Hyperlink"),new Nt.TextRun(vt)}),alignment:ot,indent:xt})}function hc(yt){const bt=fe(yt);return new Nt.Paragraph({children:bt.map(ot=>new Nt.TextRun({text:ot.text,bold:ot.bold,italics:ot.italic||!0,underline:ot.underline?{}:void 0,color:ot.color||"666666",size:ot.size})),indent:{left:720},border:{left:{color:"CCCCCC",space:1,style:"single",size:6}}})}function pc(yt){const bt=yt.textContent||"";return new Nt.Paragraph({children:[new Nt.TextRun({text:bt,font:"Courier New",size:20})],shading:{fill:"F5F5F5",type:"solid"},indent:{left:360},spacing:{before:120,after:120}})}function dc(){return new Nt.Paragraph({children:[new Nt.TextRun({text:""})],border:{bottom:{color:"CCCCCC",space:1,style:"single",size:6}},spacing:{before:120,after:120}})}function fe(yt){var xt;const bt=[];function ot(ct,vt={}){var W,F;if(ct.nodeType===Node.TEXT_NODE){const n=ct.textContent||"";(n.trim()||n.includes(" "))&&bt.push({text:n,...vt})}else if(ct.nodeType===Node.ELEMENT_NODE){const n=ct,a={...vt},o=n.tagName;if((o==="STRONG"||o==="B")&&(a.bold=!0),(o==="EM"||o==="I")&&(a.italic=!0),o==="U"&&(a.underline=!0),(o==="S"||o==="STRIKE"||o==="DEL")&&(a.strike=!0),o==="A"){const m=n.href;m&&(a.link=m,a.color="0563C1",a.underline=!0)}if(o==="BR"){bt.push({text:`
|
|
17
|
-
`,...vt});return}o==="CODE"&&(a.font="Courier New",n.closest("pre")||(a.highlight="F5F5F5")),o==="MARK"&&(a.highlight="FFFF00"),(o==="SUB"||o==="SUP")&&(a.size=(a.size||24)*.7);const u=n.style;if((u.fontWeight==="bold"||parseInt(u.fontWeight)>=600)&&(a.bold=!0),u.fontStyle==="italic"&&(a.italic=!0),(W=u.textDecoration)!=null&&W.includes("underline")&&(a.underline=!0),(F=u.textDecoration)!=null&&F.includes("line-through")&&(a.strike=!0),u.color&&(a.color=ms(u.color)),u.backgroundColor&&(a.highlight=ms(u.backgroundColor)),u.fontSize){const m=parseInt(u.fontSize);isNaN(m)||(a.size=Math.round(m*1.33))}u.fontFamily&&(a.font=u.fontFamily.replace(/['"]/g,"").split(",")[0].trim()),Array.from(n.childNodes).forEach(m=>ot(m,a))}}return Array.from(yt.childNodes).forEach(ct=>ot(ct)),bt.length===0&&((xt=yt.textContent)!=null&&xt.trim())&&bt.push({text:yt.textContent.trim()}),bt}function bs(yt){const ot=yt.style.textAlign;if(ot==="center")return"center";if(ot==="right")return"right";if(ot==="justify")return"justify";if(ot==="left")return"left"}function fc(yt){const ot=yt.style,xt={};if(ot.marginLeft||ot.paddingLeft){const ct=parseInt(ot.marginLeft||ot.paddingLeft);!isNaN(ct)&&ct>0&&(xt.left=Math.round(ct*14.4))}if(ot.marginRight||ot.paddingRight){const ct=parseInt(ot.marginRight||ot.paddingRight);!isNaN(ct)&&ct>0&&(xt.right=Math.round(ct*14.4))}return Object.keys(xt).length>0?xt:void 0}function ms(yt){if(yt.startsWith("#"))return yt.substring(1).toUpperCase();const bt=yt.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(bt){const xt=parseInt(bt[1]),ct=parseInt(bt[2]),vt=parseInt(bt[3]);return(xt<<16|ct<<8|vt).toString(16).padStart(6,"0").toUpperCase()}return{black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF",gray:"808080",grey:"808080"}[yt.toLowerCase()]||"000000"}function mc(yt){const bt=[];return yt.querySelectorAll("tr").forEach(xt=>{const ct=[];xt.querySelectorAll("td, th").forEach(W=>{const F=fe(W),n=W.tagName==="TH";ct.push(new Nt.TableCell({children:[new Nt.Paragraph({children:F.map(a=>{const o={text:a.text,bold:a.bold||n,italics:a.italic,underline:a.underline?{}:void 0,strike:a.strike,color:a.color,size:a.size,font:a.font,highlight:a.highlight};return a.link&&(o.style="Hyperlink"),new Nt.TextRun(o)})})],shading:n?{fill:"E0E0E0",type:"solid"}:void 0}))}),bt.push(new Nt.TableRow({children:ct}))}),new Nt.Table({rows:bt,width:{size:100,type:"pct"}})}function gc(yt,bt=!1){const ot=[];return yt.querySelectorAll("li").forEach((ct,vt)=>{const W=fe(ct),F=bt?`${vt+1}.`:"•";ot.push(new Nt.Paragraph({children:[new Nt.TextRun({text:`${F} `,bold:!1}),...W.map(n=>{const a={text:n.text,bold:n.bold,italics:n.italic,underline:n.underline?{}:void 0,strike:n.strike,color:n.color,size:n.size,font:n.font,highlight:n.highlight};return n.link&&(a.style="Hyperlink"),new Nt.TextRun(a)})],indent:{left:720},spacing:{after:120}}))}),ot}function wc(yt){const bt=document.createElement("div");return bt.innerHTML=yt,bt.textContent||bt.innerText||""}function gs(yt,bt){const ot=URL.createObjectURL(yt),xt=document.createElement("a");xt.href=ot,xt.download=bt,document.body.appendChild(xt),xt.click(),document.body.removeChild(xt),URL.revokeObjectURL(ot)}exports.exportToPdf=uc;exports.exportToWord=cc;exports.htmlToDocx=ys;exports.importFromWord=ac;
|