@eigenpal/docx-js-editor 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/README.md +83 -0
  2. package/dist/{ClipboardManager-EZ0C6Onq.d.cts → ClipboardManager-B1jZrC6h.d.cts} +1 -1
  3. package/dist/{ClipboardManager-D6dkOFg6.d.ts → ClipboardManager-jqJVxB6g.d.ts} +1 -1
  4. package/dist/{DocumentAgent-BcCDg7i2.d.ts → DocumentAgent-CnJ9AEl_.d.cts} +31 -3
  5. package/dist/{DocumentAgent-B0EC8lPC.d.cts → DocumentAgent-CrbsDniO.d.ts} +31 -3
  6. package/dist/{FindReplaceDialog-AWQXKEUQ.js → FindReplaceDialog-AQFR4OCT.js} +1 -2
  7. package/dist/FindReplaceDialog-J3DI3U5I.cjs +1 -0
  8. package/dist/{FootnotePropertiesDialog-73VT2ZVZ.cjs → FootnotePropertiesDialog-DO5DCAW6.cjs} +1 -2
  9. package/dist/{FootnotePropertiesDialog-ZM3EF3EF.js → FootnotePropertiesDialog-YYIZU5U6.js} +1 -2
  10. package/dist/{HyperlinkDialog-BA25XUT5.js → HyperlinkDialog-HGZ2S37Z.js} +1 -2
  11. package/dist/HyperlinkDialog-PEPS3C2G.cjs +1 -0
  12. package/dist/{ImagePositionDialog-AIAMKPFK.js → ImagePositionDialog-DQ4JWS4F.js} +1 -2
  13. package/dist/{ImagePositionDialog-KMK7ROV2.cjs → ImagePositionDialog-UYXYHSP4.cjs} +1 -2
  14. package/dist/{ImagePropertiesDialog-ERFCUVCW.js → ImagePropertiesDialog-GJMGLM6G.js} +1 -2
  15. package/dist/{ImagePropertiesDialog-USMMRK6X.cjs → ImagePropertiesDialog-V6SVKINO.cjs} +1 -2
  16. package/dist/{TablePropertiesDialog-72CIUAZT.cjs → TablePropertiesDialog-A36OXG3A.cjs} +1 -2
  17. package/dist/{TablePropertiesDialog-EMUEVYB3.js → TablePropertiesDialog-STZOGHJB.js} +1 -2
  18. package/dist/{agentApi-BFVyKagE.d.cts → agentApi-DfsWRyrP.d.cts} +1 -1
  19. package/dist/{agentApi-BFVyKagE.d.ts → agentApi-DfsWRyrP.d.ts} +1 -1
  20. package/dist/{chunk-FDANI5P4.cjs → chunk-2VHQ7YOQ.cjs} +1 -2
  21. package/dist/chunk-2Y6FLZ5Q.js +3 -0
  22. package/dist/chunk-32HMU2UV.js +111 -0
  23. package/dist/chunk-4CUGBNL2.cjs +1 -0
  24. package/dist/chunk-5GFXHUMP.js +1 -0
  25. package/dist/chunk-6NDMKJIE.js +9 -0
  26. package/dist/chunk-6NYA53QC.cjs +258 -0
  27. package/dist/chunk-7KJ3YVDQ.js +10 -0
  28. package/dist/{chunk-JOYPFQW2.js → chunk-AARNCPWR.js} +1 -2
  29. package/dist/{chunk-4QT5LPBA.cjs → chunk-B7TICMXD.cjs} +16 -17
  30. package/dist/{chunk-2QOEHCBX.js → chunk-BUEMG4NW.js} +1 -2
  31. package/dist/{chunk-CV5WFE7K.js → chunk-CLDB6TL7.js} +2 -3
  32. package/dist/{chunk-M2T6XKT5.js → chunk-CTYOM6BE.js} +1 -2
  33. package/dist/chunk-EH3NY2DQ.cjs +26 -0
  34. package/dist/{chunk-FGVGZLBL.js → chunk-FVUGBRDD.js} +1 -2
  35. package/dist/chunk-FXJAIFPR.js +59 -0
  36. package/dist/chunk-GICVJSFJ.cjs +9 -0
  37. package/dist/{chunk-Y6VCTLCJ.js → chunk-H5NTJZO4.js} +1 -2
  38. package/dist/chunk-HT2Z33YM.cjs +111 -0
  39. package/dist/chunk-JRRTZZ72.cjs +1 -0
  40. package/dist/{chunk-T2HQYRA7.cjs → chunk-NVAQQYBJ.cjs} +1 -2
  41. package/dist/chunk-P3AEZKQO.cjs +3 -0
  42. package/dist/{chunk-GWBTKVFD.cjs → chunk-P7ZF45KZ.cjs} +1 -2
  43. package/dist/{chunk-QEBO3EQP.cjs → chunk-PCJ5ACUV.cjs} +1 -2
  44. package/dist/{chunk-Q6HUGWO6.js → chunk-PJVI53AH.js} +1 -2
  45. package/dist/chunk-Q7YYC75E.js +258 -0
  46. package/dist/{chunk-7JSPKVOW.js → chunk-QVPR2W5S.js} +1 -2
  47. package/dist/{chunk-XZNOV52K.cjs → chunk-TAF6KYDM.cjs} +4 -5
  48. package/dist/chunk-USRMBYI6.js +3 -0
  49. package/dist/chunk-UTWPV2I4.js +26 -0
  50. package/dist/{chunk-DJAEBZ33.cjs → chunk-VTAS7VZ6.cjs} +1 -2
  51. package/dist/chunk-XQNCLN4T.cjs +3 -0
  52. package/dist/{chunk-S26DZVRQ.cjs → chunk-XS2AQFMF.cjs} +1 -2
  53. package/dist/chunk-Y6QBJGMO.cjs +59 -0
  54. package/dist/{chunk-WD2HTKRR.cjs → chunk-YS7FDEZ4.cjs} +1 -2
  55. package/dist/chunk-ZTVQA46Q.js +1 -0
  56. package/dist/{clipboard-beGtyabO.d.ts → clipboard-BE8E-szx.d.ts} +1 -1
  57. package/dist/{clipboard-CqE-UZ2d.d.cts → clipboard-DkfAv07F.d.cts} +1 -1
  58. package/dist/{colorResolver-B5YbO_a4.d.ts → colorResolver-CYttioMe.d.ts} +46 -3
  59. package/dist/{colorResolver-Cu46bSKr.d.cts → colorResolver-Dr8kQZAQ.d.cts} +46 -3
  60. package/dist/core-plugins-reexport.cjs +1 -2
  61. package/dist/core-plugins-reexport.d.cts +4 -4
  62. package/dist/core-plugins-reexport.d.ts +4 -4
  63. package/dist/core-plugins-reexport.js +1 -2
  64. package/dist/core-reexport.cjs +1 -2
  65. package/dist/core-reexport.d.cts +10 -10
  66. package/dist/core-reexport.d.ts +10 -10
  67. package/dist/core-reexport.js +1 -2
  68. package/dist/executor-JGWZ7S6Z.cjs +1 -0
  69. package/dist/executor-L2MVKMXO.js +1 -0
  70. package/dist/{fontLoader-CFKpg0Ri.d.ts → fontLoader-BsqQnB4v.d.ts} +1 -1
  71. package/dist/{fontLoader-HZYfILUm.d.cts → fontLoader-DECXIoMr.d.cts} +1 -1
  72. package/dist/headless-reexport.cjs +4 -5
  73. package/dist/headless-reexport.d.cts +7 -7
  74. package/dist/headless-reexport.d.ts +7 -7
  75. package/dist/headless-reexport.js +4 -5
  76. package/dist/index.cjs +6 -7
  77. package/dist/index.css +0 -1
  78. package/dist/index.d.cts +12 -12
  79. package/dist/index.d.ts +12 -12
  80. package/dist/index.js +6 -7
  81. package/dist/lib-GD2QD2JK.js +1 -0
  82. package/dist/lib-HOLGQI5K.cjs +1 -0
  83. package/dist/mcp-reexport.cjs +9 -10
  84. package/dist/mcp-reexport.d.cts +2 -2
  85. package/dist/mcp-reexport.d.ts +2 -2
  86. package/dist/mcp-reexport.js +4 -5
  87. package/dist/{processTemplate-G37IM66O.js → processTemplate-3HN7Q3KT.js} +1 -2
  88. package/dist/processTemplate-BXZKWRQD.cjs +1 -0
  89. package/dist/{react-BjOCdeTs.d.ts → react-C6bgHDFl.d.ts} +8 -6
  90. package/dist/{react-UzAn4o7l.d.cts → react-CAlVCYa4.d.cts} +8 -6
  91. package/dist/react.cjs +1 -2
  92. package/dist/react.css +0 -1
  93. package/dist/react.d.cts +5 -5
  94. package/dist/react.d.ts +5 -5
  95. package/dist/react.js +1 -2
  96. package/dist/{registry-DjacfR6Q.d.cts → registry-BU-FbHh-.d.cts} +1 -1
  97. package/dist/{registry-CV6nYWqP.d.ts → registry-gRbkCooh.d.ts} +1 -1
  98. package/dist/selectionRects-7QU337P5.cjs +1 -0
  99. package/dist/selectionRects-V5RC2BYX.js +1 -0
  100. package/dist/styles.css +1 -1
  101. package/dist/{types-DwZ3xysp.d.ts → types-7wjInVMW.d.ts} +1 -1
  102. package/dist/{types-Bnp8rvJn.d.cts → types-DEEpBL9H.d.cts} +1 -1
  103. package/dist/ui.cjs +1 -2
  104. package/dist/ui.d.cts +32 -85
  105. package/dist/ui.d.ts +32 -85
  106. package/dist/ui.js +1 -2
  107. package/dist/{variableDetector-CMhJtM96.d.cts → variableDetector-B4oQJa2e.d.cts} +33 -2
  108. package/dist/{variableDetector-BaDeXz7D.d.ts → variableDetector-BXJaTkiB.d.ts} +33 -2
  109. package/package.json +2 -1
  110. package/dist/FindReplaceDialog-AWQXKEUQ.js.map +0 -1
  111. package/dist/FindReplaceDialog-I4SZDSVP.cjs +0 -2
  112. package/dist/FindReplaceDialog-I4SZDSVP.cjs.map +0 -1
  113. package/dist/FootnotePropertiesDialog-73VT2ZVZ.cjs.map +0 -1
  114. package/dist/FootnotePropertiesDialog-ZM3EF3EF.js.map +0 -1
  115. package/dist/HyperlinkDialog-BA25XUT5.js.map +0 -1
  116. package/dist/HyperlinkDialog-V63LPOT2.cjs +0 -2
  117. package/dist/HyperlinkDialog-V63LPOT2.cjs.map +0 -1
  118. package/dist/ImagePositionDialog-AIAMKPFK.js.map +0 -1
  119. package/dist/ImagePositionDialog-KMK7ROV2.cjs.map +0 -1
  120. package/dist/ImagePropertiesDialog-ERFCUVCW.js.map +0 -1
  121. package/dist/ImagePropertiesDialog-USMMRK6X.cjs.map +0 -1
  122. package/dist/TablePropertiesDialog-72CIUAZT.cjs.map +0 -1
  123. package/dist/TablePropertiesDialog-EMUEVYB3.js.map +0 -1
  124. package/dist/chunk-2CHPKB5A.cjs +0 -112
  125. package/dist/chunk-2CHPKB5A.cjs.map +0 -1
  126. package/dist/chunk-2QOEHCBX.js.map +0 -1
  127. package/dist/chunk-4QT5LPBA.cjs.map +0 -1
  128. package/dist/chunk-5DYSI4O4.cjs +0 -60
  129. package/dist/chunk-5DYSI4O4.cjs.map +0 -1
  130. package/dist/chunk-5FJXHXFV.cjs +0 -2
  131. package/dist/chunk-5FJXHXFV.cjs.map +0 -1
  132. package/dist/chunk-6FEWNF6B.js +0 -4
  133. package/dist/chunk-6FEWNF6B.js.map +0 -1
  134. package/dist/chunk-6LF5HZCV.js +0 -10
  135. package/dist/chunk-6LF5HZCV.js.map +0 -1
  136. package/dist/chunk-7JSPKVOW.js.map +0 -1
  137. package/dist/chunk-C33XDRDJ.cjs +0 -28
  138. package/dist/chunk-C33XDRDJ.cjs.map +0 -1
  139. package/dist/chunk-CV5WFE7K.js.map +0 -1
  140. package/dist/chunk-CXJRNISO.js +0 -2
  141. package/dist/chunk-CXJRNISO.js.map +0 -1
  142. package/dist/chunk-DJAEBZ33.cjs.map +0 -1
  143. package/dist/chunk-DP6Q75ZD.js +0 -28
  144. package/dist/chunk-DP6Q75ZD.js.map +0 -1
  145. package/dist/chunk-FDANI5P4.cjs.map +0 -1
  146. package/dist/chunk-FGVGZLBL.js.map +0 -1
  147. package/dist/chunk-GJ4GKSDU.cjs +0 -2
  148. package/dist/chunk-GJ4GKSDU.cjs.map +0 -1
  149. package/dist/chunk-GWBTKVFD.cjs.map +0 -1
  150. package/dist/chunk-JOYPFQW2.js.map +0 -1
  151. package/dist/chunk-L54YNLSE.js +0 -2
  152. package/dist/chunk-L54YNLSE.js.map +0 -1
  153. package/dist/chunk-LPGMLJMO.js +0 -259
  154. package/dist/chunk-LPGMLJMO.js.map +0 -1
  155. package/dist/chunk-M2T6XKT5.js.map +0 -1
  156. package/dist/chunk-OHG7ROFC.js +0 -11
  157. package/dist/chunk-OHG7ROFC.js.map +0 -1
  158. package/dist/chunk-PANKMCFX.cjs +0 -4
  159. package/dist/chunk-PANKMCFX.cjs.map +0 -1
  160. package/dist/chunk-Q6HUGWO6.js.map +0 -1
  161. package/dist/chunk-QDV75OJ4.js +0 -112
  162. package/dist/chunk-QDV75OJ4.js.map +0 -1
  163. package/dist/chunk-QEBO3EQP.cjs.map +0 -1
  164. package/dist/chunk-QVIZ775M.cjs +0 -259
  165. package/dist/chunk-QVIZ775M.cjs.map +0 -1
  166. package/dist/chunk-RMUMR42R.cjs +0 -10
  167. package/dist/chunk-RMUMR42R.cjs.map +0 -1
  168. package/dist/chunk-S26DZVRQ.cjs.map +0 -1
  169. package/dist/chunk-T2HQYRA7.cjs.map +0 -1
  170. package/dist/chunk-ULXNEG66.js +0 -60
  171. package/dist/chunk-ULXNEG66.js.map +0 -1
  172. package/dist/chunk-WD2HTKRR.cjs.map +0 -1
  173. package/dist/chunk-XZNOV52K.cjs.map +0 -1
  174. package/dist/chunk-Y6VCTLCJ.js.map +0 -1
  175. package/dist/core-plugins-reexport.cjs.map +0 -1
  176. package/dist/core-plugins-reexport.js.map +0 -1
  177. package/dist/core-reexport.cjs.map +0 -1
  178. package/dist/core-reexport.js.map +0 -1
  179. package/dist/executor-K5RXUTTR.js +0 -2
  180. package/dist/executor-K5RXUTTR.js.map +0 -1
  181. package/dist/executor-XIPIU3H4.cjs +0 -2
  182. package/dist/executor-XIPIU3H4.cjs.map +0 -1
  183. package/dist/headless-reexport.cjs.map +0 -1
  184. package/dist/headless-reexport.js.map +0 -1
  185. package/dist/index.cjs.map +0 -1
  186. package/dist/index.css.map +0 -1
  187. package/dist/index.js.map +0 -1
  188. package/dist/mcp-reexport.cjs.map +0 -1
  189. package/dist/mcp-reexport.js.map +0 -1
  190. package/dist/processTemplate-G37IM66O.js.map +0 -1
  191. package/dist/processTemplate-RFBGVH7T.cjs +0 -2
  192. package/dist/processTemplate-RFBGVH7T.cjs.map +0 -1
  193. package/dist/react.cjs.map +0 -1
  194. package/dist/react.css.map +0 -1
  195. package/dist/react.js.map +0 -1
  196. package/dist/selectionRects-6DU7HN7E.js +0 -2
  197. package/dist/selectionRects-6DU7HN7E.js.map +0 -1
  198. package/dist/selectionRects-YZSC24ZP.cjs +0 -2
  199. package/dist/selectionRects-YZSC24ZP.cjs.map +0 -1
  200. package/dist/ui.cjs.map +0 -1
  201. package/dist/ui.js.map +0 -1
@@ -1,28 +0,0 @@
1
- 'use strict';var chunkQEBO3EQP_cjs=require('./chunk-QEBO3EQP.cjs');var wn=chunkQEBO3EQP_cjs.b((My,bi)=>{typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?bi.exports={nextTick:zd}:bi.exports=process;function zd(e,t,n,r){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t);});case 3:return process.nextTick(function(){e.call(null,t,n);});case 4:return process.nextTick(function(){e.call(null,t,n,r);});default:for(a=new Array(i-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(function(){e.apply(null,a);})}}});var Io=chunkQEBO3EQP_cjs.b((Dy,Ro)=>{var Hd={}.toString;Ro.exports=Array.isArray||function(e){return Hd.call(e)=="[object Array]"};});var vi=chunkQEBO3EQP_cjs.b((Py,No)=>{No.exports=chunkQEBO3EQP_cjs.a("stream");});var yn=chunkQEBO3EQP_cjs.b((xi,Do)=>{var rr=chunkQEBO3EQP_cjs.a("buffer"),$e=rr.Buffer;function Mo(e,t){for(var n in e)t[n]=e[n];}$e.from&&$e.alloc&&$e.allocUnsafe&&$e.allocUnsafeSlow?Do.exports=rr:(Mo(rr,xi),xi.Buffer=Lt);function Lt(e,t,n){return $e(e,t,n)}Mo($e,Lt);Lt.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return $e(e,t,n)};Lt.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=$e(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r};Lt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return $e(e)};Lt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return rr.SlowBuffer(e)};});var Xt=chunkQEBO3EQP_cjs.b(ge=>{function Ud(e){return Array.isArray?Array.isArray(e):ir(e)==="[object Array]"}ge.isArray=Ud;function jd(e){return typeof e=="boolean"}ge.isBoolean=jd;function qd(e){return e===null}ge.isNull=qd;function Wd(e){return e==null}ge.isNullOrUndefined=Wd;function Vd(e){return typeof e=="number"}ge.isNumber=Vd;function Zd(e){return typeof e=="string"}ge.isString=Zd;function Kd(e){return typeof e=="symbol"}ge.isSymbol=Kd;function Gd(e){return e===void 0}ge.isUndefined=Gd;function Yd(e){return ir(e)==="[object RegExp]"}ge.isRegExp=Yd;function $d(e){return typeof e=="object"&&e!==null}ge.isObject=$d;function Qd(e){return ir(e)==="[object Date]"}ge.isDate=Qd;function Jd(e){return ir(e)==="[object Error]"||e instanceof Error}ge.isError=Jd;function eh(e){return typeof e=="function"}ge.isFunction=eh;function th(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}ge.isPrimitive=th;ge.isBuffer=chunkQEBO3EQP_cjs.a("buffer").Buffer.isBuffer;function ir(e){return Object.prototype.toString.call(e)}});var Po=chunkQEBO3EQP_cjs.b((Oy,_i)=>{typeof Object.create=="function"?_i.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}}));}:_i.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;}};});var zt=chunkQEBO3EQP_cjs.b((Ly,Ei)=>{try{if(Ti=chunkQEBO3EQP_cjs.a("util"),typeof Ti.inherits!="function")throw "";Ei.exports=Ti.inherits;}catch{Ei.exports=Po();}var Ti;});var Oo=chunkQEBO3EQP_cjs.b((Xy,Si)=>{function nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Bo=yn().Buffer,bn=chunkQEBO3EQP_cjs.a("util");function rh(e,t,n){e.copy(t,n);}Si.exports=(function(){function e(){nh(this,e),this.head=null,this.tail=null,this.length=0;}return e.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length;},e.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length;},e.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0;},e.prototype.join=function(n){if(this.length===0)return "";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},e.prototype.concat=function(n){if(this.length===0)return Bo.alloc(0);for(var r=Bo.allocUnsafe(n>>>0),i=this.head,a=0;i;)rh(i.data,r,a),a+=i.data.length,i=i.next;return r},e})();bn&&bn.inspect&&bn.inspect.custom&&(Si.exports.prototype[bn.inspect.custom]=function(){var e=bn.inspect({length:this.length});return this.constructor.name+" "+e});});var Ci=chunkQEBO3EQP_cjs.b((zy,Lo)=>{var ar=wn();function ih(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,ar.nextTick(or,this,e)):ar.nextTick(or,this,e)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=true,ar.nextTick(or,n,a)):ar.nextTick(or,n,a):t&&t(a);}),this)}function ah(){this._readableState&&(this._readableState.destroyed=false,this._readableState.reading=false,this._readableState.ended=false,this._readableState.endEmitted=false),this._writableState&&(this._writableState.destroyed=false,this._writableState.ended=false,this._writableState.ending=false,this._writableState.finalCalled=false,this._writableState.prefinished=false,this._writableState.finished=false,this._writableState.errorEmitted=false);}function or(e,t){e.emit("error",t);}Lo.exports={destroy:ih,undestroy:ah};});var zo=chunkQEBO3EQP_cjs.b((Hy,Xo)=>{Xo.exports=chunkQEBO3EQP_cjs.a("util").deprecate;});var ki=chunkQEBO3EQP_cjs.b((Uy,Ko)=>{var Tt=wn();Ko.exports=se;function Uo(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Th(t,e);};}var oh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Tt.nextTick,Ht;se.WritableState=xn;var jo=Object.create(Xt());jo.inherits=zt();var sh={deprecate:zo()},qo=vi(),lr=yn().Buffer,lh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function fh(e){return lr.from(e)}function uh(e){return lr.isBuffer(e)||e instanceof lh}var Wo=Ci();jo.inherits(se,qo);function ch(){}function xn(e,t){Ht=Ht||Et(),e=e||{};var n=t instanceof Ht;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var o=e.decodeStrings===false;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(s){yh(t,s);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=false,this.errorEmitted=false,this.bufferedRequestCount=0,this.corkedRequestsFree=new Uo(this);}xn.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(xn.prototype,"buffer",{get:sh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var sr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(sr=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(e){return sr.call(this,e)?true:this!==se?false:e&&e._writableState instanceof xn}})):sr=function(e){return e instanceof this};function se(e){if(Ht=Ht||Et(),!sr.call(se,this)&&!(this instanceof Ht))return new se(e);this._writableState=new xn(e,this),this.writable=true,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),qo.call(this);}se.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"));};function dh(e,t){var n=new Error("write after end");e.emit("error",n),Tt.nextTick(t,n);}function hh(e,t,n,r){var i=true,a=false;return n===null?a=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Tt.nextTick(r,a),i=false),i}se.prototype.write=function(e,t,n){var r=this._writableState,i=false,a=!r.objectMode&&uh(e);return a&&!lr.isBuffer(e)&&(e=fh(e)),typeof t=="function"&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=ch),r.ended?dh(this,n):(a||hh(this,r,e,n))&&(r.pendingcb++,i=mh(this,r,a,e,t,n)),i};se.prototype.cork=function(){var e=this._writableState;e.corked++;};se.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Vo(this,e));};se.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function ph(e,t,n){return !e.objectMode&&e.decodeStrings!==false&&typeof t=="string"&&(t=lr.from(t,n)),t}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function mh(e,t,n,r,i,a){if(!n){var o=ph(t,r,i);r!==o&&(n=true,i="buffer",r=o);}var s=t.objectMode?1:r.length;t.length+=s;var d=t.length<t.highWaterMark;if(d||(t.needDrain=true),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1;}else Fi(e,t,false,s,r,i,a);return d}function Fi(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=true,t.sync=true,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=false;}function gh(e,t,n,r,i){--t.pendingcb,n?(Tt.nextTick(i,r),Tt.nextTick(vn,e,t),e._writableState.errorEmitted=true,e.emit("error",r)):(i(r),e._writableState.errorEmitted=true,e.emit("error",r),vn(e,t));}function wh(e){e.writing=false,e.writecb=null,e.length-=e.writelen,e.writelen=0;}function yh(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(wh(n),t)gh(e,n,r,t,i);else {var a=Zo(n);!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&Vo(e,n),r?oh(Ho,e,n,a,i):Ho(e,n,a,i);}}function Ho(e,t,n,r){n||bh(e,t),t.pendingcb--,r(),vn(e,t);}function bh(e,t){t.length===0&&t.needDrain&&(t.needDrain=false,e.emit("drain"));}function Vo(e,t){t.bufferProcessing=true;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var o=0,s=true;n;)i[o]=n,n.isBuf||(s=false),n=n.next,o+=1;i.allBuffers=s,Fi(e,t,true,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Uo(t),t.bufferedRequestCount=0;}else {for(;n;){var d=n.chunk,l=n.encoding,c=n.callback,g=t.objectMode?1:d.length;if(Fi(e,t,false,g,d,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null);}t.bufferedRequest=n,t.bufferProcessing=false;}se.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"));};se.prototype._writev=null;se.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||_h(this,r,n);};function Zo(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function vh(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=true,e.emit("prefinish"),vn(e,t);});}function xh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=true,Tt.nextTick(vh,e,t)):(t.prefinished=true,e.emit("prefinish")));}function vn(e,t){var n=Zo(t);return n&&(xh(e,t),t.pendingcb===0&&(t.finished=true,e.emit("finish"))),n}function _h(e,t,n){t.ending=true,vn(e,t),n&&(t.finished?Tt.nextTick(n):e.once("finish",n)),t.ended=true,e.writable=false;}function Th(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next;}t.corkedRequestsFree.next=e;}Object.defineProperty(se.prototype,"destroyed",{get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});se.prototype.destroy=Wo.destroy;se.prototype._undestroy=Wo.undestroy;se.prototype._destroy=function(e,t){this.end(),t(e);};});var Et=chunkQEBO3EQP_cjs.b((jy,Qo)=>{var Go=wn(),Eh=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};Qo.exports=Qe;var Yo=Object.create(Xt());Yo.inherits=zt();var $o=Ii(),Ri=ki();Yo.inherits(Qe,$o);for(Ai=Eh(Ri.prototype),fr=0;fr<Ai.length;fr++)ur=Ai[fr],Qe.prototype[ur]||(Qe.prototype[ur]=Ri.prototype[ur]);var Ai,ur,fr;function Qe(e){if(!(this instanceof Qe))return new Qe(e);$o.call(this,e),Ri.call(this,e),e&&e.readable===false&&(this.readable=false),e&&e.writable===false&&(this.writable=false),this.allowHalfOpen=true,e&&e.allowHalfOpen===false&&(this.allowHalfOpen=false),this.once("end",Sh);}Object.defineProperty(Qe.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function Sh(){this.allowHalfOpen||this._writableState.ended||Go.nextTick(Ch,this);}function Ch(e){e.end();}Object.defineProperty(Qe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?false:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});Qe.prototype._destroy=function(e,t){this.push(null),this.end(),Go.nextTick(t,e);};});var Di=chunkQEBO3EQP_cjs.b(es=>{var Mi=yn().Buffer,Jo=Mi.isEncoding||function(e){switch(e=""+e,e&&e.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 true;default:return false}};function Fh(e){if(!e)return "utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=true;}}function kh(e){var t=Fh(e);if(typeof t!="string"&&(Mi.isEncoding===Jo||!Jo(e)))throw new Error("Unknown encoding: "+e);return t||e}es.StringDecoder=_n;function _n(e){this.encoding=kh(e);var t;switch(this.encoding){case "utf16le":this.text=Dh,this.end=Ph,t=4;break;case "utf8":this.fillLast=Ih,t=4;break;case "base64":this.text=Bh,this.end=Oh,t=3;break;default:this.write=Lh,this.end=Xh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Mi.allocUnsafe(t);}_n.prototype.write=function(e){if(e.length===0)return "";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return "";n=this.lastNeed,this.lastNeed=0;}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""};_n.prototype.end=Mh;_n.prototype.text=Nh;_n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length;};function Ni(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Ah(e,t,n){var r=t.length-1;if(r<n)return 0;var i=Ni(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=Ni(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=Ni(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Rh(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Ih(e){var t=this.lastTotal-this.lastNeed,n=Rh(this,e);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length;}function Nh(e,t){var n=Ah(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function Mh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Dh(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Ph(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function Bh(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function Oh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Lh(e){return e.toString(this.encoding)}function Xh(e){return e&&e.length?this.write(e):""}});var Ii=chunkQEBO3EQP_cjs.b((Vy,ds)=>{var jt=wn();ds.exports=J;var zh=Io(),Tn;J.ReadableState=ss;chunkQEBO3EQP_cjs.a("events").EventEmitter;var is=function(e,t){return e.listeners(t).length},Xi=vi(),En=yn().Buffer,Hh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Uh(e){return En.from(e)}function jh(e){return En.isBuffer(e)||e instanceof Hh}var as=Object.create(Xt());as.inherits=zt();var Pi=chunkQEBO3EQP_cjs.a("util"),K=void 0;Pi&&Pi.debuglog?K=Pi.debuglog("stream"):K=function(){};var qh=Oo(),os=Ci(),Ut;as.inherits(J,Xi);var Bi=["error","close","destroy","pause","resume"];function Wh(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):zh(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]];}function ss(e,t){Tn=Tn||Et(),e=e||{};var n=t instanceof Tn;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new qh,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=false,this.endEmitted=false,this.reading=false,this.sync=true,this.needReadable=false,this.emittedReadable=false,this.readableListening=false,this.resumeScheduled=false,this.destroyed=false,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,e.encoding&&(Ut||(Ut=Di().StringDecoder),this.decoder=new Ut(e.encoding),this.encoding=e.encoding);}function J(e){if(Tn=Tn||Et(),!(this instanceof J))return new J(e);this._readableState=new ss(e,this),this.readable=true,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Xi.call(this);}Object.defineProperty(J.prototype,"destroyed",{get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});J.prototype.destroy=os.destroy;J.prototype._undestroy=os.undestroy;J.prototype._destroy=function(e,t){this.push(null),t(e);};J.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=true:typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=En.from(e,t),t=""),r=true),ls(this,e,t,false,r)};J.prototype.unshift=function(e){return ls(this,e,null,true,false)};function ls(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=false,Gh(e,a);else {var o;i||(o=Vh(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==En.prototype&&(t=Uh(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Oi(e,a,t,true):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=false,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?Oi(e,a,t,false):fs(e,a)):Oi(e,a,t,false))):r||(a.reading=false);}return Zh(a)}function Oi(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&cr(e)),fs(e,t);}function Vh(e,t){var n;return !jh(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function Zh(e){return !e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}J.prototype.isPaused=function(){return this._readableState.flowing===false};J.prototype.setEncoding=function(e){return Ut||(Ut=Di().StringDecoder),this._readableState.decoder=new Ut(e),this._readableState.encoding=e,this};var ts=8388608;function Kh(e){return e>=ts?e=ts:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ns(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Kh(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=true,0))}J.prototype.read=function(e){K("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=false),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return K("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Li(this):cr(this),null;if(e=ns(e,t),e===0&&t.ended)return t.length===0&&Li(this),null;var r=t.needReadable;K("need readable",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=true,K("length less than watermark",r)),t.ended||t.reading?(r=false,K("reading or ended",r)):r&&(K("do read"),t.reading=true,t.sync=true,t.length===0&&(t.needReadable=true),this._read(t.highWaterMark),t.sync=false,t.reading||(e=ns(n,t)));var i;return e>0?i=us(e,t):i=null,i===null?(t.needReadable=true,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=true),n!==e&&t.ended&&Li(this)),i!==null&&this.emit("data",i),i};function Gh(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length);}t.ended=true,cr(e);}}function cr(e){var t=e._readableState;t.needReadable=false,t.emittedReadable||(K("emitReadable",t.flowing),t.emittedReadable=true,t.sync?jt.nextTick(rs,e):rs(e));}function rs(e){K("emit readable"),e.emit("readable"),zi(e);}function fs(e,t){t.readingMore||(t.readingMore=true,jt.nextTick(Yh,e,t));}function Yh(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(K("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=false;}J.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"));};J.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,K("pipe count=%d opts=%j",r.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr,a=i?s:A;r.endEmitted?jt.nextTick(a):n.once("end",a),e.on("unpipe",o);function o(N,F){K("onunpipe"),N===n&&F&&F.hasUnpiped===false&&(F.hasUnpiped=true,c());}function s(){K("onend"),e.end();}var d=$h(n);e.on("drain",d);var l=false;function c(){K("cleanup"),e.removeListener("close",w),e.removeListener("finish",T),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",A),n.removeListener("data",y),l=true,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d();}var g=false;n.on("data",y);function y(N){K("ondata"),g=false;var F=e.write(N);F===false&&!g&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&cs(r.pipes,e)!==-1)&&!l&&(K("false write response, pause",r.awaitDrain),r.awaitDrain++,g=true),n.pause());}function v(N){K("onerror",N),A(),e.removeListener("error",v),is(e,"error")===0&&e.emit("error",N);}Wh(e,"error",v);function w(){e.removeListener("finish",T),A();}e.once("close",w);function T(){K("onfinish"),e.removeListener("close",w),A();}e.once("finish",T);function A(){K("unpipe"),n.unpipe(e);}return e.emit("pipe",n),r.flowing||(K("pipe resume"),n.resume()),e};function $h(e){return function(){var t=e._readableState;K("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&is(e,"data")&&(t.flowing=true,zi(e));}}J.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=false,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=false;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:false});return this}var o=cs(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)};J.prototype.on=function(e,t){var n=Xi.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==false&&this.resume();else if(e==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=true,r.emittedReadable=false,r.reading?r.length&&cr(this):jt.nextTick(Qh,this));}return n};J.prototype.addListener=J.prototype.on;function Qh(e){K("readable nexttick read 0"),e.read(0);}J.prototype.resume=function(){var e=this._readableState;return e.flowing||(K("resume"),e.flowing=true,Jh(this,e)),this};function Jh(e,t){t.resumeScheduled||(t.resumeScheduled=true,jt.nextTick(ep,e,t));}function ep(e,t){t.reading||(K("resume read 0"),e.read(0)),t.resumeScheduled=false,t.awaitDrain=0,e.emit("resume"),zi(e),t.flowing&&!t.reading&&e.read(0);}J.prototype.pause=function(){return K("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(K("pause"),this._readableState.flowing=false,this.emit("pause")),this};function zi(e){var t=e._readableState;for(K("flow",t.flowing);t.flowing&&e.read()!==null;);}J.prototype.wrap=function(e){var t=this,n=this._readableState,r=false;e.on("end",function(){if(K("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&t.push(o);}t.push(null);}),e.on("data",function(o){if(K("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var s=t.push(o);s||(r=true,e.pause());}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(o){return function(){return e[o].apply(e,arguments)}})(i));for(var a=0;a<Bi.length;a++)e.on(Bi[a],this.emit.bind(this,Bi[a]));return this._read=function(o){K("wrapped _read",o),r&&(r=false,e.resume());},this};Object.defineProperty(J.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});J._fromList=us;function us(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.head.data:n=t.buffer.concat(t.length),t.buffer.clear()):n=tp(e,t.buffer,t.decoder),n}function tp(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?r=t.shift():r=n?np(e,t):rp(e,t),r}function np(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r;}return t.length-=r,i}function rp(e,t){var n=En.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i;}return t.length-=i,n}function Li(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=true,jt.nextTick(ip,t,e));}function ip(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=true,t.readable=false,t.emit("end"));}function cs(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}});var Hi=chunkQEBO3EQP_cjs.b((Zy,ms)=>{ms.exports=Je;var dr=Et(),ps=Object.create(Xt());ps.inherits=zt();ps.inherits(Je,dr);function ap(e,t){var n=this._transformState;n.transforming=false;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=false,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}function Je(e){if(!(this instanceof Je))return new Je(e);dr.call(this,e),this._transformState={afterTransform:ap.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",op);}function op(){var e=this;typeof this._flush=="function"?this._flush(function(t,n){hs(e,t,n);}):hs(this,null,null);}Je.prototype.push=function(e,t){return this._transformState.needTransform=false,dr.prototype.push.call(this,e,t)};Je.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")};Je.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}};Je.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=true,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=true;};Je.prototype._destroy=function(e,t){var n=this;dr.prototype._destroy.call(this,e,function(r){t(r),n.emit("close");});};function hs(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var bs=chunkQEBO3EQP_cjs.b((Ky,ys)=>{ys.exports=Sn;var gs=Hi(),ws=Object.create(Xt());ws.inherits=zt();ws.inherits(Sn,gs);function Sn(e){if(!(this instanceof Sn))return new Sn(e);gs.call(this,e);}Sn.prototype._transform=function(e,t,n){n(null,e);};});var Ui=chunkQEBO3EQP_cjs.b((pe,hr)=>{var He=chunkQEBO3EQP_cjs.a("stream");process.env.READABLE_STREAM==="disable"&&He?(hr.exports=He,pe=hr.exports=He.Readable,pe.Readable=He.Readable,pe.Writable=He.Writable,pe.Duplex=He.Duplex,pe.Transform=He.Transform,pe.PassThrough=He.PassThrough,pe.Stream=He):(pe=hr.exports=Ii(),pe.Stream=He||pe,pe.Readable=pe,pe.Writable=ki(),pe.Duplex=Et(),pe.Transform=Hi(),pe.PassThrough=bs());});var et=chunkQEBO3EQP_cjs.b(Se=>{Se.base64=true;Se.array=true;Se.string=true;Se.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Se.nodebuffer=typeof Buffer<"u";Se.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Se.blob=false;else {ji=new ArrayBuffer(0);try{Se.blob=new Blob([ji],{type:"application/zip"}).size===0;}catch{try{vs=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,qi=new vs,qi.append(ji),Se.blob=qi.getBlob("application/zip").size===0;}catch{Se.blob=false;}}}var ji,vs,qi;try{Se.nodestream=!!Ui().Readable;}catch{Se.nodestream=false;}});var Vi=chunkQEBO3EQP_cjs.b(Wi=>{var sp=te(),lp=et(),Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Wi.encode=function(e){for(var t=[],n,r,i,a,o,s,d,l=0,c=e.length,g=c,y=sp.getTypeOf(e)!=="string";l<e.length;)g=c-l,y?(n=e[l++],r=l<c?e[l++]:0,i=l<c?e[l++]:0):(n=e.charCodeAt(l++),r=l<c?e.charCodeAt(l++):0,i=l<c?e.charCodeAt(l++):0),a=n>>2,o=(n&3)<<4|r>>4,s=g>1?(r&15)<<2|i>>6:64,d=g>2?i&63:64,t.push(Ue.charAt(a)+Ue.charAt(o)+Ue.charAt(s)+Ue.charAt(d));return t.join("")};Wi.decode=function(e){var t,n,r,i,a,o,s,d=0,l=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var g=e.length*3/4;if(e.charAt(e.length-1)===Ue.charAt(64)&&g--,e.charAt(e.length-2)===Ue.charAt(64)&&g--,g%1!==0)throw new Error("Invalid base64 input, bad content length.");var y;for(lp.uint8array?y=new Uint8Array(g|0):y=new Array(g|0);d<e.length;)i=Ue.indexOf(e.charAt(d++)),a=Ue.indexOf(e.charAt(d++)),o=Ue.indexOf(e.charAt(d++)),s=Ue.indexOf(e.charAt(d++)),t=i<<2|a>>4,n=(a&15)<<4|o>>2,r=(o&3)<<6|s,y[l++]=t,o!==64&&(y[l++]=n),s!==64&&(y[l++]=r);return y};});var Cn=chunkQEBO3EQP_cjs.b(($y,xs)=>{xs.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}};});var Ss=chunkQEBO3EQP_cjs.b((Qy,Es)=>{var _s=global.MutationObserver||global.WebKitMutationObserver,qt;process.browser?_s?(Zi=0,Ts=new _s(Fn),Ki=global.document.createTextNode(""),Ts.observe(Ki,{characterData:true}),qt=function(){Ki.data=Zi=++Zi%2;}):!global.setImmediate&&typeof global.MessageChannel<"u"?(Gi=new global.MessageChannel,Gi.port1.onmessage=Fn,qt=function(){Gi.port2.postMessage(0);}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?qt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Fn(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null;},global.document.documentElement.appendChild(e);}:qt=function(){setTimeout(Fn,0);}:qt=function(){process.nextTick(Fn);};var Zi,Ts,Ki,Gi,Yi,kn=[];function Fn(){Yi=true;for(var e,t,n=kn.length;n;){for(t=kn,kn=[],e=-1;++e<n;)t[e]();n=kn.length;}Yi=false;}Es.exports=fp;function fp(e){kn.push(e)===1&&!Yi&&qt();}});var Ns=chunkQEBO3EQP_cjs.b((Jy,Is)=>{var Cs=Ss();function Wt(){}var we={},Fs=["REJECTED"],$i=["FULFILLED"],ks=["PENDING"];process.browser||(An=["UNHANDLED"]);var An;Is.exports=ct;function ct(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=ks,this.queue=[],this.outcome=void 0,process.browser||(this.handled=An),e!==Wt&&As(this,e);}ct.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(n,r);function n(i){function a(){return i}return t.resolve(e()).then(a)}function r(i){function a(){throw i}return t.resolve(e()).then(a)}};ct.prototype.catch=function(e){return this.then(null,e)};ct.prototype.then=function(e,t){if(typeof e!="function"&&this.state===$i||typeof t!="function"&&this.state===Fs)return this;var n=new this.constructor(Wt);if(process.browser||this.handled===An&&(this.handled=null),this.state!==ks){var r=this.state===$i?e:t;Qi(n,r,this.outcome);}else this.queue.push(new Rn(n,e,t));return n};function Rn(e,t,n){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n=="function"&&(this.onRejected=n,this.callRejected=this.otherCallRejected);}Rn.prototype.callFulfilled=function(e){we.resolve(this.promise,e);};Rn.prototype.otherCallFulfilled=function(e){Qi(this.promise,this.onFulfilled,e);};Rn.prototype.callRejected=function(e){we.reject(this.promise,e);};Rn.prototype.otherCallRejected=function(e){Qi(this.promise,this.onRejected,e);};function Qi(e,t,n){Cs(function(){var r;try{r=t(n);}catch(i){return we.reject(e,i)}r===e?we.reject(e,new TypeError("Cannot resolve promise with itself")):we.resolve(e,r);});}we.resolve=function(e,t){var n=Rs(up,t);if(n.status==="error")return we.reject(e,n.value);var r=n.value;if(r)As(e,r);else {e.state=$i,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t);}return e};we.reject=function(e,t){e.state=Fs,e.outcome=t,process.browser||e.handled===An&&Cs(function(){e.handled===An&&process.emit("unhandledRejection",t,e);});for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e};function up(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments);}}function As(e,t){var n=false;function r(s){n||(n=true,we.reject(e,s));}function i(s){n||(n=true,we.resolve(e,s));}function a(){t(i,r);}var o=Rs(a);o.status==="error"&&r(o.value);}function Rs(e,t){var n={};try{n.value=e(t),n.status="success";}catch(r){n.status="error",n.value=r;}return n}ct.resolve=cp;function cp(e){return e instanceof this?e:we.resolve(new this(Wt),e)}ct.reject=dp;function dp(e){var t=new this(Wt);return we.reject(t,e)}ct.all=hp;function hp(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var n=e.length,r=false;if(!n)return this.resolve([]);for(var i=new Array(n),a=0,o=-1,s=new this(Wt);++o<n;)d(e[o],o);return s;function d(l,c){t.resolve(l).then(g,function(y){r||(r=true,we.reject(s,y));});function g(y){i[c]=y,++a===n&&!r&&(r=true,we.resolve(s,i));}}}ct.race=pp;function pp(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var n=e.length,r=false;if(!n)return this.resolve([]);for(var i=-1,a=new this(Wt);++i<n;)o(e[i]);return a;function o(s){t.resolve(s).then(function(d){r||(r=true,we.resolve(a,d));},function(d){r||(r=true,we.reject(a,d));});}}});var Vt=chunkQEBO3EQP_cjs.b((eb,Ms)=>{var Ji=null;typeof Promise<"u"?Ji=Promise:Ji=Ns();Ms.exports={Promise:Ji};});var Ps=chunkQEBO3EQP_cjs.b(Ds=>{(function(e,t){if(e.setImmediate)return;var n=1,r={},i=false,a=e.document,o;function s(F){typeof F!="function"&&(F=new Function(""+F));for(var S=new Array(arguments.length-1),b=0;b<S.length;b++)S[b]=arguments[b+1];var _={callback:F,args:S};return r[n]=_,o(n),n++}function d(F){delete r[F];}function l(F){var S=F.callback,b=F.args;switch(b.length){case 0:S();break;case 1:S(b[0]);break;case 2:S(b[0],b[1]);break;case 3:S(b[0],b[1],b[2]);break;default:S.apply(t,b);break}}function c(F){if(i)setTimeout(c,0,F);else {var S=r[F];if(S){i=true;try{l(S);}finally{d(F),i=false;}}}}function g(){o=function(F){process.nextTick(function(){c(F);});};}function y(){if(e.postMessage&&!e.importScripts){var F=true,S=e.onmessage;return e.onmessage=function(){F=false;},e.postMessage("","*"),e.onmessage=S,F}}function v(){var F="setImmediate$"+Math.random()+"$",S=function(b){b.source===e&&typeof b.data=="string"&&b.data.indexOf(F)===0&&c(+b.data.slice(F.length));};e.addEventListener?e.addEventListener("message",S,false):e.attachEvent("onmessage",S),o=function(b){e.postMessage(F+b,"*");};}function w(){var F=new MessageChannel;F.port1.onmessage=function(S){var b=S.data;c(b);},o=function(S){F.port2.postMessage(S);};}function T(){var F=a.documentElement;o=function(S){var b=a.createElement("script");b.onreadystatechange=function(){c(S),b.onreadystatechange=null,F.removeChild(b),b=null;},F.appendChild(b);};}function A(){o=function(F){setTimeout(c,0,F);};}var N=Object.getPrototypeOf&&Object.getPrototypeOf(e);N=N&&N.setTimeout?N:e,{}.toString.call(e.process)==="[object process]"?g():y()?v():e.MessageChannel?w():a&&"onreadystatechange"in a.createElement("script")?T():A(),N.setImmediate=s,N.clearImmediate=d;})(typeof self>"u"?typeof global>"u"?Ds:global:self);});var te=chunkQEBO3EQP_cjs.b(le=>{var dt=et(),mp=Vi(),Zt=Cn(),ea=Vt();Ps();function gp(e){var t=null;return dt.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),mr(e,t)}le.newBlob=function(e,t){le.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,r=new n;return r.append(e),r.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function In(e){return e}function mr(e,t){for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)&255;return t}var pr={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t==="array"||t==="nodebuffer"?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:(function(){try{return dt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return false}})(),nodebuffer:(function(){try{return dt.nodebuffer&&String.fromCharCode.apply(null,Zt.allocBuffer(1)).length===1}catch{return false}})()}};function Nn(e){var t=65536,n=le.getTypeOf(e),r=true;if(n==="uint8array"?r=pr.applyCanBeUsed.uint8array:n==="nodebuffer"&&(r=pr.applyCanBeUsed.nodebuffer),r)for(;t>1;)try{return pr.stringifyByChunk(e,n,t)}catch{t=Math.floor(t/2);}return pr.stringifyByChar(e)}le.applyFromCharCode=Nn;function gr(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var ht={};ht.string={string:In,array:function(e){return mr(e,new Array(e.length))},arraybuffer:function(e){return ht.string.uint8array(e).buffer},uint8array:function(e){return mr(e,new Uint8Array(e.length))},nodebuffer:function(e){return mr(e,Zt.allocBuffer(e.length))}};ht.array={string:Nn,array:In,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Zt.newBufferFrom(e)}};ht.arraybuffer={string:function(e){return Nn(new Uint8Array(e))},array:function(e){return gr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:In,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Zt.newBufferFrom(new Uint8Array(e))}};ht.uint8array={string:Nn,array:function(e){return gr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:In,nodebuffer:function(e){return Zt.newBufferFrom(e)}};ht.nodebuffer={string:Nn,array:function(e){return gr(e,new Array(e.length))},arraybuffer:function(e){return ht.nodebuffer.uint8array(e).buffer},uint8array:function(e){return gr(e,new Uint8Array(e.length))},nodebuffer:In};le.transformTo=function(e,t){if(t||(t=""),!e)return t;le.checkSupport(e);var n=le.getTypeOf(t),r=ht[n][e](t);return r};le.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];i==="."||i===""&&r!==0&&r!==t.length-1||(i===".."?n.pop():n.push(i));}return n.join("/")};le.getTypeOf=function(e){if(typeof e=="string")return "string";if(Object.prototype.toString.call(e)==="[object Array]")return "array";if(dt.nodebuffer&&Zt.isBuffer(e))return "nodebuffer";if(dt.uint8array&&e instanceof Uint8Array)return "uint8array";if(dt.arraybuffer&&e instanceof ArrayBuffer)return "arraybuffer"};le.checkSupport=function(e){var t=dt[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};le.MAX_VALUE_16BITS=65535;le.MAX_VALUE_32BITS=-1;le.pretty=function(e){var t="",n,r;for(r=0;r<(e||"").length;r++)n=e.charCodeAt(r),t+="\\x"+(n<16?"0":"")+n.toString(16).toUpperCase();return t};le.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[]);});};le.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n;};le.extend=function(){var e={},t,n;for(t=0;t<arguments.length;t++)for(n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&typeof e[n]>"u"&&(e[n]=arguments[t][n]);return e};le.prepareContent=function(e,t,n,r,i){var a=ea.Promise.resolve(t).then(function(o){var s=dt.blob&&(o instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(o))!==-1);return s&&typeof FileReader<"u"?new ea.Promise(function(d,l){var c=new FileReader;c.onload=function(g){d(g.target.result);},c.onerror=function(g){l(g.target.error);},c.readAsArrayBuffer(o);}):o});return a.then(function(o){var s=le.getTypeOf(o);return s?(s==="arraybuffer"?o=le.transformTo("uint8array",o):s==="string"&&(i?o=mp.decode(o):n&&r!==true&&(o=gp(o))),o):ea.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};});var Ce=chunkQEBO3EQP_cjs.b((rb,Os)=>{function Bs(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=true,this.isFinished=false,this.isLocked=false,this._listeners={data:[],end:[],error:[]},this.previous=null;}Bs.prototype={push:function(e){this.emit("data",e);},end:function(){if(this.isFinished)return false;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0;}catch(e){this.emit("error",e);}return true},error:function(e){return this.isFinished?false:(this.isPaused?this.generatedError=e:(this.isFinished=true,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),true)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[];},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t);},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(n){t.processChunk(n);}),e.on("end",function(){t.end();}),e.on("error",function(n){t.error(n);}),this},pause:function(){return this.isPaused||this.isFinished?false:(this.isPaused=true,this.previous&&this.previous.pause(),true)},resume:function(){if(!this.isPaused||this.isFinished)return false;this.isPaused=false;var e=false;return this.generatedError&&(this.error(this.generatedError),e=true),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e);},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e]);},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=true,this.previous&&this.previous.lock();},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};Os.exports=Bs;});var Gt=chunkQEBO3EQP_cjs.b(pt=>{var Kt=te(),St=et(),wp=Cn(),wr=Ce(),Mn=new Array(256);for(tt=0;tt<256;tt++)Mn[tt]=tt>=252?6:tt>=248?5:tt>=240?4:tt>=224?3:tt>=192?2:1;var tt;Mn[254]=Mn[254]=1;var yp=function(e){var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(St.uint8array?t=new Uint8Array(s):t=new Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},bp=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Mn[e[n]]>t?n:t},vp=function(e){var t,n,r,i,a=e.length,o=new Array(a*2);for(n=0,t=0;t<a;){if(r=e[t++],r<128){o[n++]=r;continue}if(i=Mn[r],i>4){o[n++]=65533,t+=i-1;continue}for(r&=i===2?31:i===3?15:7;i>1&&t<a;)r=r<<6|e[t++]&63,i--;if(i>1){o[n++]=65533;continue}r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|r&1023);}return o.length!==n&&(o.subarray?o=o.subarray(0,n):o.length=n),Kt.applyFromCharCode(o)};pt.utf8encode=function(t){return St.nodebuffer?wp.newBufferFrom(t,"utf-8"):yp(t)};pt.utf8decode=function(t){return St.nodebuffer?Kt.transformTo("nodebuffer",t).toString("utf-8"):(t=Kt.transformTo(St.uint8array?"uint8array":"array",t),vp(t))};function yr(){wr.call(this,"utf-8 decode"),this.leftOver=null;}Kt.inherits(yr,wr);yr.prototype.processChunk=function(e){var t=Kt.transformTo(St.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(St.uint8array){var n=t;t=new Uint8Array(n.length+this.leftOver.length),t.set(this.leftOver,0),t.set(n,this.leftOver.length);}else t=this.leftOver.concat(t);this.leftOver=null;}var r=bp(t),i=t;r!==t.length&&(St.uint8array?(i=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(i=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:pt.utf8decode(i),meta:e.meta});};yr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:pt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null);};pt.Utf8DecodeWorker=yr;function ta(){wr.call(this,"utf-8 encode");}Kt.inherits(ta,wr);ta.prototype.processChunk=function(e){this.push({data:pt.utf8encode(e.data),meta:e.meta});};pt.Utf8EncodeWorker=ta;});var Hs=chunkQEBO3EQP_cjs.b((ab,zs)=>{var Ls=Ce(),Xs=te();function na(e){Ls.call(this,"ConvertWorker to "+e),this.destType=e;}Xs.inherits(na,Ls);na.prototype.processChunk=function(e){this.push({data:Xs.transformTo(this.destType,e.data),meta:e.meta});};zs.exports=na;});var qs=chunkQEBO3EQP_cjs.b((ob,js)=>{var Us=Ui().Readable,xp=te();xp.inherits(ra,Us);function ra(e,t,n){Us.call(this,t),this._helper=e;var r=this;e.on("data",function(i,a){r.push(i)||r._helper.pause(),n&&n(a);}).on("error",function(i){r.emit("error",i);}).on("end",function(){r.push(null);});}ra.prototype._read=function(){this._helper.resume();};js.exports=ra;});var ia=chunkQEBO3EQP_cjs.b((sb,Zs)=>{var Ct=te(),_p=Hs(),Tp=Ce(),Ep=Vi(),Sp=et(),Cp=Vt(),Ws=null;if(Sp.nodestream)try{Ws=qs();}catch{}function Fp(e,t,n){switch(e){case "blob":return Ct.newBlob(Ct.transformTo("arraybuffer",t),n);case "base64":return Ep.encode(t);default:return Ct.transformTo(e,t)}}function kp(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case "string":return t.join("");case "array":return Array.prototype.concat.apply([],t);case "uint8array":for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case "nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Ap(e,t){return new Cp.Promise(function(n,r){var i=[],a=e._internalType,o=e._outputType,s=e._mimeType;e.on("data",function(d,l){i.push(d),t&&t(l);}).on("error",function(d){i=[],r(d);}).on("end",function(){try{var d=Fp(o,kp(a,i),s);n(d);}catch(l){r(l);}i=[];}).resume();})}function Vs(e,t,n){var r=t;switch(t){case "blob":case "arraybuffer":r="uint8array";break;case "base64":r="string";break}try{this._internalType=r,this._outputType=t,this._mimeType=n,Ct.checkSupport(r),this._worker=e.pipe(new _p(r)),e.lock();}catch(i){this._worker=new Tp("error"),this._worker.error(i);}}Vs.prototype={accumulate:function(e){return Ap(this,e)},on:function(e,t){var n=this;return e==="data"?this._worker.on(e,function(r){t.call(n,r.data,r.meta);}):this._worker.on(e,function(){Ct.delay(t,arguments,n);}),this},resume:function(){return Ct.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ct.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Ws(this,{objectMode:this._outputType!=="nodebuffer"},e)}};Zs.exports=Vs;});var aa=chunkQEBO3EQP_cjs.b(De=>{De.base64=false;De.binary=false;De.dir=false;De.createFolders=true;De.date=null;De.compression=null;De.compressionOptions=null;De.comment=null;De.unixPermissions=null;De.dosPermissions=null;});var oa=chunkQEBO3EQP_cjs.b((fb,Ks)=>{var br=te(),vr=Ce(),Rp=16*1024;function Yt(e){vr.call(this,"DataWorker");var t=this;this.dataIsReady=false,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=false,e.then(function(n){t.dataIsReady=true,t.data=n,t.max=n&&n.length||0,t.type=br.getTypeOf(n),t.isPaused||t._tickAndRepeat();},function(n){t.error(n);});}br.inherits(Yt,vr);Yt.prototype.cleanUp=function(){vr.prototype.cleanUp.call(this),this.data=null;};Yt.prototype.resume=function(){return vr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=true,br.delay(this._tickAndRepeat,[],this)),true):false};Yt.prototype._tickAndRepeat=function(){this._tickScheduled=false,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(br.delay(this._tickAndRepeat,[],this),this._tickScheduled=true));};Yt.prototype._tick=function(){if(this.isPaused||this.isFinished)return false;var e=Rp,t=null,n=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case "string":t=this.data.substring(this.index,n);break;case "uint8array":t=this.data.subarray(this.index,n);break;case "array":case "nodebuffer":t=this.data.slice(this.index,n);break}return this.index=n,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};Ks.exports=Yt;});var xr=chunkQEBO3EQP_cjs.b((ub,Ys)=>{var Ip=te();function Np(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e;}return t}var Gs=Np();function Mp(e,t,n,r){var i=Gs,a=r+n;e=e^-1;for(var o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}function Dp(e,t,n,r){var i=Gs,a=r+n;e=e^-1;for(var o=r;o<a;o++)e=e>>>8^i[(e^t.charCodeAt(o))&255];return e^-1}Ys.exports=function(t,n){if(typeof t>"u"||!t.length)return 0;var r=Ip.getTypeOf(t)!=="string";return r?Mp(n|0,t,t.length,0):Dp(n|0,t,t.length,0)};});var la=chunkQEBO3EQP_cjs.b((cb,Qs)=>{var $s=Ce(),Pp=xr(),Bp=te();function sa(){$s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0);}Bp.inherits(sa,$s);sa.prototype.processChunk=function(e){this.streamInfo.crc32=Pp(e.data,this.streamInfo.crc32||0),this.push(e);};Qs.exports=sa;});var el=chunkQEBO3EQP_cjs.b((db,Js)=>{var Op=te(),fa=Ce();function ua(e){fa.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0);}Op.inherits(ua,fa);ua.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length;}fa.prototype.processChunk.call(this,e);};Js.exports=ua;});var _r=chunkQEBO3EQP_cjs.b((hb,rl)=>{var tl=Vt(),nl=oa(),Lp=la(),ca=el();function da(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i;}da.prototype={getContentWorker:function(){var e=new nl(tl.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new ca("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new nl(tl.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};da.createWorkerFrom=function(e,t,n){return e.pipe(new Lp).pipe(new ca("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new ca("compressedSize")).withStreamInfo("compression",t)};rl.exports=da;});var sl=chunkQEBO3EQP_cjs.b((pb,ol)=>{var Xp=ia(),zp=oa(),ha=Gt(),pa=_r(),il=Ce(),ma=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions};};ma.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");n=e.toLowerCase();var r=n==="string"||n==="text";(n==="binarystring"||n==="text")&&(n="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(t=t.pipe(new ha.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new ha.Utf8DecodeWorker));}catch(a){t=new il("error"),t.error(a);}return new Xp(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof pa&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new ha.Utf8EncodeWorker)),pa.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof pa?this._data.getContentWorker():this._data instanceof il?this._data:new zp(this._data)}};var al=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Hp=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Tr=0;Tr<al.length;Tr++)ma.prototype[al[Tr]]=Hp;var Tr;ol.exports=ma;});var nt=chunkQEBO3EQP_cjs.b(ve=>{var Up=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function jp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}ve.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var r in n)jp(n,r)&&(e[r]=n[r]);}}return e};ve.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var qp={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a];},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},Wp={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a];},flattenChunks:function(e){return [].concat.apply([],e)}};ve.setTyped=function(e){e?(ve.Buf8=Uint8Array,ve.Buf16=Uint16Array,ve.Buf32=Int32Array,ve.assign(ve,qp)):(ve.Buf8=Array,ve.Buf16=Array,ve.Buf32=Array,ve.assign(ve,Wp));};ve.setTyped(Up);});var Rl=chunkQEBO3EQP_cjs.b(Jt=>{var Vp=nt(),Zp=4,ll=0,fl=1,Kp=2;function Qt(e){for(var t=e.length;--t>=0;)e[t]=0;}var Gp=0,ml=1,Yp=2,$p=3,Qp=258,_a=29,Xn=256,Pn=Xn+1+_a,$t=30,Ta=19,gl=2*Pn+1,Ft=15,ga=16,Jp=7,Ea=256,wl=16,yl=17,bl=18,va=[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],Er=[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],em=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tm=512,rt=new Array((Pn+2)*2);Qt(rt);var Dn=new Array($t*2);Qt(Dn);var Bn=new Array(tm);Qt(Bn);var On=new Array(Qp-$p+1);Qt(On);var Sa=new Array(_a);Qt(Sa);var Sr=new Array($t);Qt(Sr);function wa(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length;}var xl,_l,Tl;function ya(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t;}function El(e){return e<256?Bn[e]:Bn[256+(e>>>7)]}function Ln(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255;}function Ee(e,t,n){e.bi_valid>ga-n?(e.bi_buf|=t<<e.bi_valid&65535,Ln(e,e.bi_buf),e.bi_buf=t>>ga-e.bi_valid,e.bi_valid+=n-ga):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n);}function je(e,t,n){Ee(e,n[t*2],n[t*2+1]);}function Sl(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function nm(e){e.bi_valid===16?(Ln(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8);}function rm(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,d=t.stat_desc.max_length,l,c,g,y,v,w,T=0;for(y=0;y<=Ft;y++)e.bl_count[y]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<gl;l++)c=e.heap[l],y=n[n[c*2+1]*2+1]+1,y>d&&(y=d,T++),n[c*2+1]=y,!(c>r)&&(e.bl_count[y]++,v=0,c>=s&&(v=o[c-s]),w=n[c*2],e.opt_len+=w*(y+v),a&&(e.static_len+=w*(i[c*2+1]+v)));if(T!==0){do{for(y=d-1;e.bl_count[y]===0;)y--;e.bl_count[y]--,e.bl_count[y+1]+=2,e.bl_count[d]--,T-=2;}while(T>0);for(y=d;y!==0;y--)for(c=e.bl_count[y];c!==0;)g=e.heap[--l],!(g>r)&&(n[g*2+1]!==y&&(e.opt_len+=(y-n[g*2+1])*n[g*2],n[g*2+1]=y),c--);}}function Cl(e,t,n){var r=new Array(Ft+1),i=0,a,o;for(a=1;a<=Ft;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=Sl(r[s]++,s));}}function im(){var e,t,n,r,i,a=new Array(Ft+1);for(n=0,r=0;r<_a-1;r++)for(Sa[r]=n,e=0;e<1<<va[r];e++)On[n++]=r;for(On[n-1]=r,i=0,r=0;r<16;r++)for(Sr[r]=i,e=0;e<1<<Er[r];e++)Bn[i++]=r;for(i>>=7;r<$t;r++)for(Sr[r]=i<<7,e=0;e<1<<Er[r]-7;e++)Bn[256+i++]=r;for(t=0;t<=Ft;t++)a[t]=0;for(e=0;e<=143;)rt[e*2+1]=8,e++,a[8]++;for(;e<=255;)rt[e*2+1]=9,e++,a[9]++;for(;e<=279;)rt[e*2+1]=7,e++,a[7]++;for(;e<=287;)rt[e*2+1]=8,e++,a[8]++;for(Cl(rt,Pn+1,a),e=0;e<$t;e++)Dn[e*2+1]=5,Dn[e*2]=Sl(e,5);xl=new wa(rt,va,Xn+1,Pn,Ft),_l=new wa(Dn,Er,0,$t,Ft),Tl=new wa(new Array(0),em,0,Ta,Jp);}function Fl(e){var t;for(t=0;t<Pn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<$t;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ta;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ea*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0;}function kl(e){e.bi_valid>8?Ln(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0;}function am(e,t,n,r){kl(e),(Ln(e,n),Ln(e,~n)),Vp.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n;}function ul(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function ba(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ul(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ul(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r;}function cl(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?je(e,i,t):(o=On[i],je(e,o+Xn+1,t),s=va[o],s!==0&&(i-=Sa[o],Ee(e,i,s)),r--,o=El(r),je(e,o,n),s=Er[o],s!==0&&(r-=Sr[o],Ee(e,r,s)));while(a<e.last_lit);je(e,Ea,t);}function xa(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,d=-1,l;for(e.heap_len=0,e.heap_max=gl,o=0;o<a;o++)n[o*2]!==0?(e.heap[++e.heap_len]=d=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=d<2?++d:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=d,o=e.heap_len>>1;o>=1;o--)ba(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ba(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,ba(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],rm(e,t),Cl(n,d,e.bl_count);}function dl(e,t,n){var r,i=-1,a,o=t[1],s=0,d=7,l=4;for(o===0&&(d=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<d&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[wl*2]++):s<=10?e.bl_tree[yl*2]++:e.bl_tree[bl*2]++,s=0,i=a,o===0?(d=138,l=3):a===o?(d=6,l=3):(d=7,l=4));}function hl(e,t,n){var r,i=-1,a,o=t[1],s=0,d=7,l=4;for(o===0&&(d=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<d&&a===o)){if(s<l)do je(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==i&&(je(e,a,e.bl_tree),s--),je(e,wl,e.bl_tree),Ee(e,s-3,2)):s<=10?(je(e,yl,e.bl_tree),Ee(e,s-3,3)):(je(e,bl,e.bl_tree),Ee(e,s-11,7));s=0,i=a,o===0?(d=138,l=3):a===o?(d=6,l=3):(d=7,l=4);}}function om(e){var t;for(dl(e,e.dyn_ltree,e.l_desc.max_code),dl(e,e.dyn_dtree,e.d_desc.max_code),xa(e,e.bl_desc),t=Ta-1;t>=3&&e.bl_tree[vl[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function sm(e,t,n,r){var i;for(Ee(e,t-257,5),Ee(e,n-1,5),Ee(e,r-4,4),i=0;i<r;i++)Ee(e,e.bl_tree[vl[i]*2+1],3);hl(e,e.dyn_ltree,t-1),hl(e,e.dyn_dtree,n-1);}function lm(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return ll;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return fl;for(n=32;n<Xn;n++)if(e.dyn_ltree[n*2]!==0)return fl;return ll}var pl=false;function fm(e){pl||(im(),pl=true),e.l_desc=new ya(e.dyn_ltree,xl),e.d_desc=new ya(e.dyn_dtree,_l),e.bl_desc=new ya(e.bl_tree,Tl),e.bi_buf=0,e.bi_valid=0,Fl(e);}function Al(e,t,n,r){Ee(e,(Gp<<1)+(r?1:0),3),am(e,t,n);}function um(e){Ee(e,ml<<1,3),je(e,Ea,rt),nm(e);}function cm(e,t,n,r){var i,a,o=0;e.level>0?(e.strm.data_type===Kp&&(e.strm.data_type=lm(e)),xa(e,e.l_desc),xa(e,e.d_desc),o=om(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Al(e,t,n,r):e.strategy===Zp||a===i?(Ee(e,(ml<<1)+(r?1:0),3),cl(e,rt,Dn)):(Ee(e,(Yp<<1)+(r?1:0),3),sm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),cl(e,e.dyn_ltree,e.dyn_dtree)),Fl(e),r&&kl(e);}function dm(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(On[n]+Xn+1)*2]++,e.dyn_dtree[El(t)*2]++),e.last_lit===e.lit_bufsize-1}Jt._tr_init=fm;Jt._tr_stored_block=Al;Jt._tr_flush_block=cm;Jt._tr_tally=dm;Jt._tr_align=um;});var Ca=chunkQEBO3EQP_cjs.b((wb,Il)=>{function hm(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521;}return i|a<<16|0}Il.exports=hm;});var Fa=chunkQEBO3EQP_cjs.b((yb,Nl)=>{function pm(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e;}return t}var mm=pm();function gm(e,t,n,r){var i=mm,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}Nl.exports=gm;});var Cr=chunkQEBO3EQP_cjs.b((bb,Ml)=>{Ml.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"};});var Ul=chunkQEBO3EQP_cjs.b(Ve=>{var xe=nt(),ke=Rl(),Ol=Ca(),mt=Fa(),wm=Cr(),It=0,ym=1,bm=3,vt=4,Dl=5,We=0,Pl=1,Ae=-2,vm=-3,ka=-5,xm=-1,_m=1,Fr=2,Tm=3,Em=4,Sm=0,Cm=2,Ir=8,Fm=9,km=15,Am=8,Rm=29,Im=256,Ra=Im+1+Rm,Nm=30,Mm=19,Dm=2*Ra+1,Pm=15,W=3,yt=258,Pe=yt+W+1,Bm=32,Nr=42,Ia=69,kr=73,Ar=91,Rr=103,kt=113,Hn=666,ce=1,Un=2,At=3,nn=4,Om=3;function bt(e,t){return e.msg=wm[t],t}function Bl(e){return (e<<1)-(e>4?9:0)}function wt(e){for(var t=e.length;--t>=0;)e[t]=0;}function gt(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(xe.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0));}function me(e,t){ke._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,gt(e.strm);}function Z(e,t){e.pending_buf[e.pending++]=t;}function zn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255;}function Lm(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,xe.arraySet(t,e.input,e.next_in,i,n),e.state.wrap===1?e.adler=Ol(e.adler,t,i,n):e.state.wrap===2&&(e.adler=mt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Ll(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,d=e.strstart>e.w_size-Pe?e.strstart-(e.w_size-Pe):0,l=e.window,c=e.w_mask,g=e.prev,y=e.strstart+yt,v=l[r+o-1],w=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(l[i+o]!==w||l[i+o-1]!==v||l[i]!==l[r]||l[++i]!==l[r+1])){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<y);if(a=yt-(y-r),r=y-yt,a>o){if(e.match_start=t,o=a,a>=s)break;v=l[r+o-1],w=l[r+o];}}while((t=g[t&c])>d&&--n!==0);return o<=e.lookahead?o:e.lookahead}function Rt(e){var t=e.w_size,n,r,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Pe)){xe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);a+=t;}if(e.strm.avail_in===0)break;if(r=Lm(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=W)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+W-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<W)););}while(e.lookahead<Pe&&e.strm.avail_in!==0)}function Xm(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Rt(e),e.lookahead===0&&t===It)return ce;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,me(e,false),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Pe&&(me(e,false),e.strm.avail_out===0))return ce}return e.insert=0,t===vt?(me(e,true),e.strm.avail_out===0?At:nn):(e.strstart>e.block_start&&(me(e,false),e.strm.avail_out===0),ce)}function Aa(e,t){for(var n,r;;){if(e.lookahead<Pe){if(Rt(e),e.lookahead<Pe&&t===It)return ce;if(e.lookahead===0)break}if(n=0,e.lookahead>=W&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+W-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Pe&&(e.match_length=Ll(e,n)),e.match_length>=W)if(r=ke._tr_tally(e,e.strstart-e.match_start,e.match_length-W),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=W){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+W-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++;}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(me(e,false),e.strm.avail_out===0))return ce}return e.insert=e.strstart<W-1?e.strstart:W-1,t===vt?(me(e,true),e.strm.avail_out===0?At:nn):e.last_lit&&(me(e,false),e.strm.avail_out===0)?ce:Un}function en(e,t){for(var n,r,i;;){if(e.lookahead<Pe){if(Rt(e),e.lookahead<Pe&&t===It)return ce;if(e.lookahead===0)break}if(n=0,e.lookahead>=W&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+W-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=W-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Pe&&(e.match_length=Ll(e,n),e.match_length<=5&&(e.strategy===_m||e.match_length===W&&e.strstart-e.match_start>4096)&&(e.match_length=W-1)),e.prev_length>=W&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-W,r=ke._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-W),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+W-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=W-1,e.strstart++,r&&(me(e,false),e.strm.avail_out===0))return ce}else if(e.match_available){if(r=ke._tr_tally(e,0,e.window[e.strstart-1]),r&&me(e,false),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ce}else e.match_available=1,e.strstart++,e.lookahead--;}return e.match_available&&(r=ke._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<W-1?e.strstart:W-1,t===vt?(me(e,true),e.strm.avail_out===0?At:nn):e.last_lit&&(me(e,false),e.strm.avail_out===0)?ce:Un}function zm(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=yt){if(Rt(e),e.lookahead<=yt&&t===It)return ce;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=W&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+yt;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=yt-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead);}if(e.match_length>=W?(n=ke._tr_tally(e,1,e.match_length-W),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(me(e,false),e.strm.avail_out===0))return ce}return e.insert=0,t===vt?(me(e,true),e.strm.avail_out===0?At:nn):e.last_lit&&(me(e,false),e.strm.avail_out===0)?ce:Un}function Hm(e,t){for(var n;;){if(e.lookahead===0&&(Rt(e),e.lookahead===0)){if(t===It)return ce;break}if(e.match_length=0,n=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(me(e,false),e.strm.avail_out===0))return ce}return e.insert=0,t===vt?(me(e,true),e.strm.avail_out===0?At:nn):e.last_lit&&(me(e,false),e.strm.avail_out===0)?ce:Un}function qe(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i;}var tn;tn=[new qe(0,0,0,0,Xm),new qe(4,4,8,4,Aa),new qe(4,5,16,8,Aa),new qe(4,6,32,32,Aa),new qe(4,4,16,16,en),new qe(8,16,32,32,en),new qe(8,16,128,128,en),new qe(8,32,128,256,en),new qe(32,128,258,1024,en),new qe(32,258,258,4096,en)];function Um(e){e.window_size=2*e.w_size,wt(e.head),e.max_lazy_match=tn[e.level].max_lazy,e.good_match=tn[e.level].good_length,e.nice_match=tn[e.level].nice_length,e.max_chain_length=tn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=W-1,e.match_available=0,e.ins_h=0;}function jm(){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=Ir,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 xe.Buf16(Dm*2),this.dyn_dtree=new xe.Buf16((2*Nm+1)*2),this.bl_tree=new xe.Buf16((2*Mm+1)*2),wt(this.dyn_ltree),wt(this.dyn_dtree),wt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new xe.Buf16(Pm+1),this.heap=new xe.Buf16(2*Ra+1),wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new xe.Buf16(2*Ra+1),wt(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 Xl(e){var t;return !e||!e.state?bt(e,Ae):(e.total_in=e.total_out=0,e.data_type=Cm,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Nr:kt,e.adler=t.wrap===2?0:1,t.last_flush=It,ke._tr_init(t),We)}function zl(e){var t=Xl(e);return t===We&&Um(e.state),t}function qm(e,t){return !e||!e.state||e.state.wrap!==2?Ae:(e.state.gzhead=t,We)}function Hl(e,t,n,r,i,a){if(!e)return Ae;var o=1;if(t===xm&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>Fm||n!==Ir||r<8||r>15||t<0||t>9||a<0||a>Em)return bt(e,Ae);r===8&&(r=9);var s=new jm;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+W-1)/W),s.window=new xe.Buf8(s.w_size*2),s.head=new xe.Buf16(s.hash_size),s.prev=new xe.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new xe.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,zl(e)}function Wm(e,t){return Hl(e,t,Ir,km,Am,Sm)}function Vm(e,t){var n,r,i,a;if(!e||!e.state||t>Dl||t<0)return e?bt(e,Ae):Ae;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===Hn&&t!==vt)return bt(e,e.avail_out===0?ka:Ae);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Nr)if(r.wrap===2)e.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,r.gzhead.time&255),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,r.level===9?2:r.strategy>=Fr||r.level<2?4:0),Z(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,r.gzhead.extra.length&255),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=mt(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Ia):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,r.level===9?2:r.strategy>=Fr||r.level<2?4:0),Z(r,Om),r.status=kt);else {var o=Ir+(r.w_bits-8<<4)<<8,s=-1;r.strategy>=Fr||r.level<2?s=0:r.level<6?s=1:r.level===6?s=2:s=3,o|=s<<6,r.strstart!==0&&(o|=Bm),o+=31-o%31,r.status=kt,zn(r,o),r.strstart!==0&&(zn(r,e.adler>>>16),zn(r,e.adler&65535)),e.adler=1;}if(r.status===Ia)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(r.gzhead.extra.length&65535)&&!(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),gt(e),i=r.pending,r.pending===r.pending_buf_size));)Z(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=kr);}else r.status=kr;if(r.status===kr)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),gt(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}r.gzindex<r.gzhead.name.length?a=r.gzhead.name.charCodeAt(r.gzindex++)&255:a=0,Z(r,a);}while(a!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),a===0&&(r.gzindex=0,r.status=Ar);}else r.status=Ar;if(r.status===Ar)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),gt(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}r.gzindex<r.gzhead.comment.length?a=r.gzhead.comment.charCodeAt(r.gzindex++)&255:a=0,Z(r,a);}while(a!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=mt(e.adler,r.pending_buf,r.pending-i,i)),a===0&&(r.status=Rr);}else r.status=Rr;if(r.status===Rr&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&gt(e),r.pending+2<=r.pending_buf_size&&(Z(r,e.adler&255),Z(r,e.adler>>8&255),e.adler=0,r.status=kt)):r.status=kt),r.pending!==0){if(gt(e),e.avail_out===0)return r.last_flush=-1,We}else if(e.avail_in===0&&Bl(t)<=Bl(n)&&t!==vt)return bt(e,ka);if(r.status===Hn&&e.avail_in!==0)return bt(e,ka);if(e.avail_in!==0||r.lookahead!==0||t!==It&&r.status!==Hn){var d=r.strategy===Fr?Hm(r,t):r.strategy===Tm?zm(r,t):tn[r.level].func(r,t);if((d===At||d===nn)&&(r.status=Hn),d===ce||d===At)return e.avail_out===0&&(r.last_flush=-1),We;if(d===Un&&(t===ym?ke._tr_align(r):t!==Dl&&(ke._tr_stored_block(r,0,0,false),t===bm&&(wt(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),gt(e),e.avail_out===0))return r.last_flush=-1,We}return t!==vt?We:r.wrap<=0?Pl:(r.wrap===2?(Z(r,e.adler&255),Z(r,e.adler>>8&255),Z(r,e.adler>>16&255),Z(r,e.adler>>24&255),Z(r,e.total_in&255),Z(r,e.total_in>>8&255),Z(r,e.total_in>>16&255),Z(r,e.total_in>>24&255)):(zn(r,e.adler>>>16),zn(r,e.adler&65535)),gt(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?We:Pl)}function Zm(e){var t;return !e||!e.state?Ae:(t=e.state.status,t!==Nr&&t!==Ia&&t!==kr&&t!==Ar&&t!==Rr&&t!==kt&&t!==Hn?bt(e,Ae):(e.state=null,t===kt?bt(e,vm):We))}function Km(e,t){var n=t.length,r,i,a,o,s,d,l,c;if(!e||!e.state||(r=e.state,o=r.wrap,o===2||o===1&&r.status!==Nr||r.lookahead))return Ae;for(o===1&&(e.adler=Ol(e.adler,t,n,0)),r.wrap=0,n>=r.w_size&&(o===0&&(wt(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new xe.Buf8(r.w_size),xe.arraySet(c,t,n-r.w_size,r.w_size,0),t=c,n=r.w_size),s=e.avail_in,d=e.next_in,l=e.input,e.avail_in=n,e.next_in=0,e.input=t,Rt(r);r.lookahead>=W;){i=r.strstart,a=r.lookahead-(W-1);do r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+W-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++;while(--a);r.strstart=i,r.lookahead=W-1,Rt(r);}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=W-1,r.match_available=0,e.next_in=d,e.input=l,e.avail_in=s,r.wrap=o,We}Ve.deflateInit=Wm;Ve.deflateInit2=Hl;Ve.deflateReset=zl;Ve.deflateResetKeep=Xl;Ve.deflateSetHeader=qm;Ve.deflate=Vm;Ve.deflateEnd=Zm;Ve.deflateSetDictionary=Km;Ve.deflateInfo="pako deflate (from Nodeca project)";});var Na=chunkQEBO3EQP_cjs.b(rn=>{var Mr=nt(),jl=true,ql=true;try{String.fromCharCode.apply(null,[0]);}catch{jl=false;}try{String.fromCharCode.apply(null,new Uint8Array(1));}catch{ql=false;}var jn=new Mr.Buf8(256);for(it=0;it<256;it++)jn[it]=it>=252?6:it>=248?5:it>=240?4:it>=224?3:it>=192?2:1;var it;jn[254]=jn[254]=1;rn.string2buf=function(e){var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Mr.Buf8(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};function Wl(e,t){if(t<65534&&(e.subarray&&ql||!e.subarray&&jl))return String.fromCharCode.apply(null,Mr.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}rn.buf2binstring=function(e){return Wl(e,e.length)};rn.binstring2buf=function(e){for(var t=new Mr.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t};rn.buf2string=function(e,t){var n,r,i,a,o=t||e.length,s=new Array(o*2);for(r=0,n=0;n<o;){if(i=e[n++],i<128){s[r++]=i;continue}if(a=jn[i],a>4){s[r++]=65533,n+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&n<o;)i=i<<6|e[n++]&63,a--;if(a>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023);}return Wl(s,r)};rn.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+jn[e[n]]>t?n:t};});var Ma=chunkQEBO3EQP_cjs.b((_b,Vl)=>{function Gm(){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;}Vl.exports=Gm;});var Yl=chunkQEBO3EQP_cjs.b(Vn=>{var qn=Ul(),Wn=nt(),Pa=Na(),Ba=Cr(),Ym=Ma(),Gl=Object.prototype.toString,$m=0,Da=4,an=0,Zl=1,Kl=2,Qm=-1,Jm=0,eg=8;function Nt(e){if(!(this instanceof Nt))return new Nt(e);this.options=Wn.assign({level:Qm,method:eg,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jm,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new Ym,this.strm.avail_out=0;var n=qn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==an)throw new Error(Ba[n]);if(t.header&&qn.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(typeof t.dictionary=="string"?r=Pa.string2buf(t.dictionary):Gl.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=qn.deflateSetDictionary(this.strm,r),n!==an)throw new Error(Ba[n]);this._dict_set=true;}}Nt.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return false;a=t===~~t?t:t===true?Da:$m,typeof e=="string"?n.input=Pa.string2buf(e):Gl.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Wn.Buf8(r),n.next_out=0,n.avail_out=r),i=qn.deflate(n,a),i!==Zl&&i!==an)return this.onEnd(i),this.ended=true,false;(n.avail_out===0||n.avail_in===0&&(a===Da||a===Kl))&&(this.options.to==="string"?this.onData(Pa.buf2binstring(Wn.shrinkBuf(n.output,n.next_out))):this.onData(Wn.shrinkBuf(n.output,n.next_out)));}while((n.avail_in>0||n.avail_out===0)&&i!==Zl);return a===Da?(i=qn.deflateEnd(this.strm),this.onEnd(i),this.ended=true,i===an):(a===Kl&&(this.onEnd(an),n.avail_out=0),true)};Nt.prototype.onData=function(e){this.chunks.push(e);};Nt.prototype.onEnd=function(e){e===an&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Wn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg;};function Oa(e,t){var n=new Nt(t);if(n.push(e,true),n.err)throw n.msg||Ba[n.err];return n.result}function tg(e,t){return t=t||{},t.raw=true,Oa(e,t)}function ng(e,t){return t=t||{},t.gzip=true,Oa(e,t)}Vn.Deflate=Nt;Vn.deflate=Oa;Vn.deflateRaw=tg;Vn.gzip=ng;});var Ql=chunkQEBO3EQP_cjs.b((Eb,$l)=>{var Dr=30,rg=12;$l.exports=function(t,n){var r,i,a,o,s,d,l,c,g,y,v,w,T,A,N,F,S,b,_,R,C,m,D,O,M;r=t.state,i=t.next_in,O=t.input,a=i+(t.avail_in-5),o=t.next_out,M=t.output,s=o-(n-t.avail_out),d=o+(t.avail_out-257),l=r.dmax,c=r.wsize,g=r.whave,y=r.wnext,v=r.window,w=r.hold,T=r.bits,A=r.lencode,N=r.distcode,F=(1<<r.lenbits)-1,S=(1<<r.distbits)-1;e:do{T<15&&(w+=O[i++]<<T,T+=8,w+=O[i++]<<T,T+=8),b=A[w&F];t:for(;;){if(_=b>>>24,w>>>=_,T-=_,_=b>>>16&255,_===0)M[o++]=b&65535;else if(_&16){R=b&65535,_&=15,_&&(T<_&&(w+=O[i++]<<T,T+=8),R+=w&(1<<_)-1,w>>>=_,T-=_),T<15&&(w+=O[i++]<<T,T+=8,w+=O[i++]<<T,T+=8),b=N[w&S];n:for(;;){if(_=b>>>24,w>>>=_,T-=_,_=b>>>16&255,_&16){if(C=b&65535,_&=15,T<_&&(w+=O[i++]<<T,T+=8,T<_&&(w+=O[i++]<<T,T+=8)),C+=w&(1<<_)-1,C>l){t.msg="invalid distance too far back",r.mode=Dr;break e}if(w>>>=_,T-=_,_=o-s,C>_){if(_=C-_,_>g&&r.sane){t.msg="invalid distance too far back",r.mode=Dr;break e}if(m=0,D=v,y===0){if(m+=c-_,_<R){R-=_;do M[o++]=v[m++];while(--_);m=o-C,D=M;}}else if(y<_){if(m+=c+y-_,_-=y,_<R){R-=_;do M[o++]=v[m++];while(--_);if(m=0,y<R){_=y,R-=_;do M[o++]=v[m++];while(--_);m=o-C,D=M;}}}else if(m+=y-_,_<R){R-=_;do M[o++]=v[m++];while(--_);m=o-C,D=M;}for(;R>2;)M[o++]=D[m++],M[o++]=D[m++],M[o++]=D[m++],R-=3;R&&(M[o++]=D[m++],R>1&&(M[o++]=D[m++]));}else {m=o-C;do M[o++]=M[m++],M[o++]=M[m++],M[o++]=M[m++],R-=3;while(R>2);R&&(M[o++]=M[m++],R>1&&(M[o++]=M[m++]));}}else if((_&64)===0){b=N[(b&65535)+(w&(1<<_)-1)];continue n}else {t.msg="invalid distance code",r.mode=Dr;break e}break}}else if((_&64)===0){b=A[(b&65535)+(w&(1<<_)-1)];continue t}else if(_&32){r.mode=rg;break e}else {t.msg="invalid literal/length code",r.mode=Dr;break e}break}}while(i<a&&o<d);R=T>>3,i-=R,T-=R<<3,w&=(1<<T)-1,t.next_in=i,t.next_out=o,t.avail_in=i<a?5+(a-i):5-(i-a),t.avail_out=o<d?257+(d-o):257-(o-d),r.hold=w,r.bits=T;};});var of=chunkQEBO3EQP_cjs.b((Sb,af)=>{var Jl=nt(),on=15,ef=852,tf=592,nf=0,La=1,rf=2,ig=[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],ag=[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],og=[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],sg=[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];af.exports=function(t,n,r,i,a,o,s,d){var l=d.bits,c=0,g=0,y=0,v=0,w=0,T=0,A=0,N=0,F=0,S=0,b,_,R,C,m,D=null,O=0,M,U=new Jl.Buf16(on+1),oe=new Jl.Buf16(on+1),fe=null,Y=0,H,X,L;for(c=0;c<=on;c++)U[c]=0;for(g=0;g<i;g++)U[n[r+g]]++;for(w=l,v=on;v>=1&&U[v]===0;v--);if(w>v&&(w=v),v===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,d.bits=1,0;for(y=1;y<v&&U[y]===0;y++);for(w<y&&(w=y),N=1,c=1;c<=on;c++)if(N<<=1,N-=U[c],N<0)return -1;if(N>0&&(t===nf||v!==1))return -1;for(oe[1]=0,c=1;c<on;c++)oe[c+1]=oe[c]+U[c];for(g=0;g<i;g++)n[r+g]!==0&&(s[oe[n[r+g]]++]=g);if(t===nf?(D=fe=s,M=19):t===La?(D=ig,O-=257,fe=ag,Y-=257,M=256):(D=og,fe=sg,M=-1),S=0,g=0,c=y,m=o,T=w,A=0,R=-1,F=1<<w,C=F-1,t===La&&F>ef||t===rf&&F>tf)return 1;for(;;){H=c-A,s[g]<M?(X=0,L=s[g]):s[g]>M?(X=fe[Y+s[g]],L=D[O+s[g]]):(X=96,L=0),b=1<<c-A,_=1<<T,y=_;do _-=b,a[m+(S>>A)+_]=H<<24|X<<16|L|0;while(_!==0);for(b=1<<c-1;S&b;)b>>=1;if(b!==0?(S&=b-1,S+=b):S=0,g++,--U[c]===0){if(c===v)break;c=n[r+s[g]];}if(c>w&&(S&C)!==R){for(A===0&&(A=w),m+=y,T=c-A,N=1<<T;T+A<v&&(N-=U[T+A],!(N<=0));)T++,N<<=1;if(F+=1<<T,t===La&&F>ef||t===rf&&F>tf)return 1;R=S&C,a[R]=w<<24|T<<16|m-o|0;}}return S!==0&&(a[m+S]=c-A<<24|64<<16|0),d.bits=w,0};});var Hf=chunkQEBO3EQP_cjs.b(Be=>{var Fe=nt(),qa=Ca(),Ze=Fa(),lg=Ql(),Zn=of(),fg=0,Nf=1,Mf=2,sf=4,ug=5,Pr=6,Mt=0,cg=1,dg=2,Re=-2,Df=-3,Wa=-4,hg=-5,lf=8,Pf=1,ff=2,uf=3,cf=4,df=5,hf=6,pf=7,mf=8,gf=9,wf=10,Lr=11,at=12,Xa=13,yf=14,za=15,bf=16,vf=17,xf=18,_f=19,Br=20,Or=21,Tf=22,Ef=23,Sf=24,Cf=25,Ff=26,Ha=27,kf=28,Af=29,ee=30,Va=31,pg=32,mg=852,gg=592,wg=15,yg=wg;function Rf(e){return (e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function bg(){this.mode=0,this.last=false,this.wrap=0,this.havedict=false,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 Fe.Buf16(320),this.work=new Fe.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0;}function Bf(e){var t;return !e||!e.state?Re:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Pf,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Fe.Buf32(mg),t.distcode=t.distdyn=new Fe.Buf32(gg),t.sane=1,t.back=-1,Mt)}function Of(e){var t;return !e||!e.state?Re:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Bf(e))}function Lf(e,t){var n,r;return !e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Re:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Of(e))}function Xf(e,t){var n,r;return e?(r=new bg,e.state=r,r.window=null,n=Lf(e,t),n!==Mt&&(e.state=null),n):Re}function vg(e){return Xf(e,yg)}var If=true,Ua,ja;function xg(e){if(If){var t;for(Ua=new Fe.Buf32(512),ja=new Fe.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Zn(Nf,e.lens,0,288,Ua,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Zn(Mf,e.lens,0,32,ja,0,e.work,{bits:5}),If=false;}e.lencode=Ua,e.lenbits=9,e.distcode=ja,e.distbits=5;}function zf(e,t,n,r){var i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Fe.Buf8(a.wsize)),r>=a.wsize?(Fe.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),Fe.arraySet(a.window,t,n-r,i,a.wnext),r-=i,r?(Fe.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function _g(e,t){var n,r,i,a,o,s,d,l,c,g,y,v,w,T,A=0,N,F,S,b,_,R,C,m,D=new Fe.Buf8(4),O,M,U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Re;n=e.state,n.mode===at&&(n.mode=Xa),o=e.next_out,i=e.output,d=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,g=s,y=d,m=Mt;e:for(;;)switch(n.mode){case Pf:if(n.wrap===0){n.mode=Xa;break}for(;c<16;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(n.wrap&2&&l===35615){n.check=0,D[0]=l&255,D[1]=l>>>8&255,n.check=Ze(n.check,D,2,0),l=0,c=0,n.mode=ff;break}if(n.flags=0,n.head&&(n.head.done=false),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=ee;break}if((l&15)!==lf){e.msg="unknown compression method",n.mode=ee;break}if(l>>>=4,c-=4,C=(l&15)+8,n.wbits===0)n.wbits=C;else if(C>n.wbits){e.msg="invalid window size",n.mode=ee;break}n.dmax=1<<C,e.adler=n.check=1,n.mode=l&512?wf:at,l=0,c=0;break;case ff:for(;c<16;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(n.flags=l,(n.flags&255)!==lf){e.msg="unknown compression method",n.mode=ee;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=ee;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&(D[0]=l&255,D[1]=l>>>8&255,n.check=Ze(n.check,D,2,0)),l=0,c=0,n.mode=uf;case uf:for(;c<32;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.head&&(n.head.time=l),n.flags&512&&(D[0]=l&255,D[1]=l>>>8&255,D[2]=l>>>16&255,D[3]=l>>>24&255,n.check=Ze(n.check,D,4,0)),l=0,c=0,n.mode=cf;case cf:for(;c<16;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&(D[0]=l&255,D[1]=l>>>8&255,n.check=Ze(n.check,D,2,0)),l=0,c=0,n.mode=df;case df:if(n.flags&1024){for(;c<16;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&(D[0]=l&255,D[1]=l>>>8&255,n.check=Ze(n.check,D,2,0)),l=0,c=0;}else n.head&&(n.head.extra=null);n.mode=hf;case hf:if(n.flags&1024&&(v=n.length,v>s&&(v=s),v&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Fe.arraySet(n.head.extra,r,a,v,C)),n.flags&512&&(n.check=Ze(n.check,r,v,a)),s-=v,a+=v,n.length-=v),n.length))break e;n.length=0,n.mode=pf;case pf:if(n.flags&2048){if(s===0)break e;v=0;do C=r[a+v++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&v<s);if(n.flags&512&&(n.check=Ze(n.check,r,v,a)),s-=v,a+=v,C)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=mf;case mf:if(n.flags&4096){if(s===0)break e;v=0;do C=r[a+v++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&v<s);if(n.flags&512&&(n.check=Ze(n.check,r,v,a)),s-=v,a+=v,C)break e}else n.head&&(n.head.comment=null);n.mode=gf;case gf:if(n.flags&512){for(;c<16;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(l!==(n.check&65535)){e.msg="header crc mismatch",n.mode=ee;break}l=0,c=0;}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=true),e.adler=n.check=0,n.mode=at;break;case wf:for(;c<32;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}e.adler=n.check=Rf(l),l=0,c=0,n.mode=Lr;case Lr:if(n.havedict===0)return e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=c,dg;e.adler=n.check=1,n.mode=at;case at:if(t===ug||t===Pr)break e;case Xa:if(n.last){l>>>=c&7,c-=c&7,n.mode=Ha;break}for(;c<3;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}switch(n.last=l&1,l>>>=1,c-=1,l&3){case 0:n.mode=yf;break;case 1:if(xg(n),n.mode=Br,t===Pr){l>>>=2,c-=2;break e}break;case 2:n.mode=vf;break;case 3:e.msg="invalid block type",n.mode=ee;}l>>>=2,c-=2;break;case yf:for(l>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ee;break}if(n.length=l&65535,l=0,c=0,n.mode=za,t===Pr)break e;case za:n.mode=bf;case bf:if(v=n.length,v){if(v>s&&(v=s),v>d&&(v=d),v===0)break e;Fe.arraySet(i,r,a,v,o),s-=v,a+=v,d-=v,o+=v,n.length-=v;break}n.mode=at;break;case vf:for(;c<14;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(n.nlen=(l&31)+257,l>>>=5,c-=5,n.ndist=(l&31)+1,l>>>=5,c-=5,n.ncode=(l&15)+4,l>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ee;break}n.have=0,n.mode=xf;case xf:for(;n.have<n.ncode;){for(;c<3;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.lens[U[n.have++]]=l&7,l>>>=3,c-=3;}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},m=Zn(fg,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,m){e.msg="invalid code lengths set",n.mode=ee;break}n.have=0,n.mode=_f;case _f:for(;n.have<n.nlen+n.ndist;){for(;A=n.lencode[l&(1<<n.lenbits)-1],N=A>>>24,F=A>>>16&255,S=A&65535,!(N<=c);){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(S<16)l>>>=N,c-=N,n.lens[n.have++]=S;else {if(S===16){for(M=N+2;c<M;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(l>>>=N,c-=N,n.have===0){e.msg="invalid bit length repeat",n.mode=ee;break}C=n.lens[n.have-1],v=3+(l&3),l>>>=2,c-=2;}else if(S===17){for(M=N+3;c<M;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}l>>>=N,c-=N,C=0,v=3+(l&7),l>>>=3,c-=3;}else {for(M=N+7;c<M;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}l>>>=N,c-=N,C=0,v=11+(l&127),l>>>=7,c-=7;}if(n.have+v>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ee;break}for(;v--;)n.lens[n.have++]=C;}}if(n.mode===ee)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ee;break}if(n.lenbits=9,O={bits:n.lenbits},m=Zn(Nf,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,m){e.msg="invalid literal/lengths set",n.mode=ee;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},m=Zn(Mf,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,m){e.msg="invalid distances set",n.mode=ee;break}if(n.mode=Br,t===Pr)break e;case Br:n.mode=Or;case Or:if(s>=6&&d>=258){e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=c,lg(e,y),o=e.next_out,i=e.output,d=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,n.mode===at&&(n.back=-1);break}for(n.back=0;A=n.lencode[l&(1<<n.lenbits)-1],N=A>>>24,F=A>>>16&255,S=A&65535,!(N<=c);){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(F&&(F&240)===0){for(b=N,_=F,R=S;A=n.lencode[R+((l&(1<<b+_)-1)>>b)],N=A>>>24,F=A>>>16&255,S=A&65535,!(b+N<=c);){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}l>>>=b,c-=b,n.back+=b;}if(l>>>=N,c-=N,n.back+=N,n.length=S,F===0){n.mode=Ff;break}if(F&32){n.back=-1,n.mode=at;break}if(F&64){e.msg="invalid literal/length code",n.mode=ee;break}n.extra=F&15,n.mode=Tf;case Tf:if(n.extra){for(M=n.extra;c<M;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra;}n.was=n.length,n.mode=Ef;case Ef:for(;A=n.distcode[l&(1<<n.distbits)-1],N=A>>>24,F=A>>>16&255,S=A&65535,!(N<=c);){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if((F&240)===0){for(b=N,_=F,R=S;A=n.distcode[R+((l&(1<<b+_)-1)>>b)],N=A>>>24,F=A>>>16&255,S=A&65535,!(b+N<=c);){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}l>>>=b,c-=b,n.back+=b;}if(l>>>=N,c-=N,n.back+=N,F&64){e.msg="invalid distance code",n.mode=ee;break}n.offset=S,n.extra=F&15,n.mode=Sf;case Sf:if(n.extra){for(M=n.extra;c<M;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra;}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ee;break}n.mode=Cf;case Cf:if(d===0)break e;if(v=y-d,n.offset>v){if(v=n.offset-v,v>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ee;break}v>n.wnext?(v-=n.wnext,w=n.wsize-v):w=n.wnext-v,v>n.length&&(v=n.length),T=n.window;}else T=i,w=o-n.offset,v=n.length;v>d&&(v=d),d-=v,n.length-=v;do i[o++]=T[w++];while(--v);n.length===0&&(n.mode=Or);break;case Ff:if(d===0)break e;i[o++]=n.length,d--,n.mode=Or;break;case Ha:if(n.wrap){for(;c<32;){if(s===0)break e;s--,l|=r[a++]<<c,c+=8;}if(y-=d,e.total_out+=y,n.total+=y,y&&(e.adler=n.check=n.flags?Ze(n.check,i,y,o-y):qa(n.check,i,y,o-y)),y=d,(n.flags?l:Rf(l))!==n.check){e.msg="incorrect data check",n.mode=ee;break}l=0,c=0;}n.mode=kf;case kf:if(n.wrap&&n.flags){for(;c<32;){if(s===0)break e;s--,l+=r[a++]<<c,c+=8;}if(l!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=ee;break}l=0,c=0;}n.mode=Af;case Af:m=cg;break e;case ee:m=Df;break e;case Va:return Wa;case pg:default:return Re}return e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=c,(n.wsize||y!==e.avail_out&&n.mode<ee&&(n.mode<Ha||t!==sf))&&zf(e,e.output,e.next_out,y-e.avail_out)?(n.mode=Va,Wa):(g-=e.avail_in,y-=e.avail_out,e.total_in+=g,e.total_out+=y,n.total+=y,n.wrap&&y&&(e.adler=n.check=n.flags?Ze(n.check,i,y,e.next_out-y):qa(n.check,i,y,e.next_out-y)),e.data_type=n.bits+(n.last?64:0)+(n.mode===at?128:0)+(n.mode===Br||n.mode===za?256:0),(g===0&&y===0||t===sf)&&m===Mt&&(m=hg),m)}function Tg(e){if(!e||!e.state)return Re;var t=e.state;return t.window&&(t.window=null),e.state=null,Mt}function Eg(e,t){var n;return !e||!e.state||(n=e.state,(n.wrap&2)===0)?Re:(n.head=t,t.done=false,Mt)}function Sg(e,t){var n=t.length,r,i,a;return !e||!e.state||(r=e.state,r.wrap!==0&&r.mode!==Lr)?Re:r.mode===Lr&&(i=1,i=qa(i,t,n,0),i!==r.check)?Df:(a=zf(e,t,n,n),a?(r.mode=Va,Wa):(r.havedict=1,Mt))}Be.inflateReset=Of;Be.inflateReset2=Lf;Be.inflateResetKeep=Bf;Be.inflateInit=vg;Be.inflateInit2=Xf;Be.inflate=_g;Be.inflateEnd=Tg;Be.inflateGetHeader=Eg;Be.inflateSetDictionary=Sg;Be.inflateInfo="pako inflate (from Nodeca project)";});var Za=chunkQEBO3EQP_cjs.b((Fb,Uf)=>{Uf.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};});var qf=chunkQEBO3EQP_cjs.b((kb,jf)=>{function Cg(){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=false;}jf.exports=Cg;});var Vf=chunkQEBO3EQP_cjs.b(Gn=>{var sn=Hf(),Kn=nt(),Xr=Na(),ie=Za(),Ka=Cr(),Fg=Ma(),kg=qf(),Wf=Object.prototype.toString;function Dt(e){if(!(this instanceof Dt))return new Dt(e);this.options=Kn.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new Fg,this.strm.avail_out=0;var n=sn.inflateInit2(this.strm,t.windowBits);if(n!==ie.Z_OK)throw new Error(Ka[n]);if(this.header=new kg,sn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Xr.string2buf(t.dictionary):Wf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=sn.inflateSetDictionary(this.strm,t.dictionary),n!==ie.Z_OK)))throw new Error(Ka[n])}Dt.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s,d,l,c=false;if(this.ended)return false;o=t===~~t?t:t===true?ie.Z_FINISH:ie.Z_NO_FLUSH,typeof e=="string"?n.input=Xr.binstring2buf(e):Wf.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Kn.Buf8(r),n.next_out=0,n.avail_out=r),a=sn.inflate(n,ie.Z_NO_FLUSH),a===ie.Z_NEED_DICT&&i&&(a=sn.inflateSetDictionary(this.strm,i)),a===ie.Z_BUF_ERROR&&c===true&&(a=ie.Z_OK,c=false),a!==ie.Z_STREAM_END&&a!==ie.Z_OK)return this.onEnd(a),this.ended=true,false;n.next_out&&(n.avail_out===0||a===ie.Z_STREAM_END||n.avail_in===0&&(o===ie.Z_FINISH||o===ie.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Xr.utf8border(n.output,n.next_out),d=n.next_out-s,l=Xr.buf2string(n.output,s),n.next_out=d,n.avail_out=r-d,d&&Kn.arraySet(n.output,n.output,s,d,0),this.onData(l)):this.onData(Kn.shrinkBuf(n.output,n.next_out))),n.avail_in===0&&n.avail_out===0&&(c=true);}while((n.avail_in>0||n.avail_out===0)&&a!==ie.Z_STREAM_END);return a===ie.Z_STREAM_END&&(o=ie.Z_FINISH),o===ie.Z_FINISH?(a=sn.inflateEnd(this.strm),this.onEnd(a),this.ended=true,a===ie.Z_OK):(o===ie.Z_SYNC_FLUSH&&(this.onEnd(ie.Z_OK),n.avail_out=0),true)};Dt.prototype.onData=function(e){this.chunks.push(e);};Dt.prototype.onEnd=function(e){e===ie.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg;};function Ga(e,t){var n=new Dt(t);if(n.push(e,true),n.err)throw n.msg||Ka[n.err];return n.result}function Ag(e,t){return t=t||{},t.raw=true,Ga(e,t)}Gn.Inflate=Dt;Gn.inflate=Ga;Gn.inflateRaw=Ag;Gn.ungzip=Ga;});var Gf=chunkQEBO3EQP_cjs.b((Rb,Kf)=>{var Rg=nt().assign,Ig=Yl(),Ng=Vf(),Mg=Za(),Zf={};Rg(Zf,Ig,Ng,Mg);Kf.exports=Zf;});var $f=chunkQEBO3EQP_cjs.b(Hr=>{var Dg=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Pg=Gf(),Yf=te(),zr=Ce(),Bg=Dg?"uint8array":"array";Hr.magic="\b\0";function Pt(e,t){zr.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={};}Yf.inherits(Pt,zr);Pt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Yf.transformTo(Bg,e.data),false);};Pt.prototype.flush=function(){zr.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],true);};Pt.prototype.cleanUp=function(){zr.prototype.cleanUp.call(this),this._pako=null;};Pt.prototype._createPako=function(){this._pako=new Pg[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta});};};Hr.compressWorker=function(e){return new Pt("Deflate",e)};Hr.uncompressWorker=function(){return new Pt("Inflate",{})};});var $a=chunkQEBO3EQP_cjs.b(Ya=>{var Qf=Ce();Ya.STORE={magic:"\0\0",compressWorker:function(){return new Qf("STORE compression")},uncompressWorker:function(){return new Qf("STORE decompression")}};Ya.DEFLATE=$f();});var Qa=chunkQEBO3EQP_cjs.b(Bt=>{Bt.LOCAL_FILE_HEADER="PK";Bt.CENTRAL_FILE_HEADER="PK";Bt.CENTRAL_DIRECTORY_END="PK";Bt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Bt.ZIP64_CENTRAL_DIRECTORY_END="PK";Bt.DATA_DESCRIPTOR="PK\x07\b";});var nu=chunkQEBO3EQP_cjs.b((Db,tu)=>{var ln=te(),fn=Ce(),Ja=Gt(),Jf=xr(),Ur=Qa(),$=function(e,t){var n="",r;for(r=0;r<t;r++)n+=String.fromCharCode(e&255),e=e>>>8;return n},Og=function(e,t){var n=e;return e||(n=t?16893:33204),(n&65535)<<16},Lg=function(e){return (e||0)&63},eu=function(e,t,n,r,i,a){var o=e.file,s=e.compression,d=a!==Ja.utf8encode,l=ln.transformTo("string",a(o.name)),c=ln.transformTo("string",Ja.utf8encode(o.name)),g=o.comment,y=ln.transformTo("string",a(g)),v=ln.transformTo("string",Ja.utf8encode(g)),w=c.length!==o.name.length,T=v.length!==g.length,A,N,F="",S="",b="",_=o.dir,R=o.date,C={crc32:0,compressedSize:0,uncompressedSize:0};(!t||n)&&(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var m=0;t&&(m|=8),!d&&(w||T)&&(m|=2048);var D=0,O=0;_&&(D|=16),i==="UNIX"?(O=798,D|=Og(o.unixPermissions,_)):(O=20,D|=Lg(o.dosPermissions)),A=R.getUTCHours(),A=A<<6,A=A|R.getUTCMinutes(),A=A<<5,A=A|R.getUTCSeconds()/2,N=R.getUTCFullYear()-1980,N=N<<4,N=N|R.getUTCMonth()+1,N=N<<5,N=N|R.getUTCDate(),w&&(S=$(1,1)+$(Jf(l),4)+c,F+="up"+$(S.length,2)+S),T&&(b=$(1,1)+$(Jf(y),4)+v,F+="uc"+$(b.length,2)+b);var M="";M+=`
2
- \0`,M+=$(m,2),M+=s.magic,M+=$(A,2),M+=$(N,2),M+=$(C.crc32,4),M+=$(C.compressedSize,4),M+=$(C.uncompressedSize,4),M+=$(l.length,2),M+=$(F.length,2);var U=Ur.LOCAL_FILE_HEADER+M+l+F,oe=Ur.CENTRAL_FILE_HEADER+$(O,2)+M+$(y.length,2)+"\0\0\0\0"+$(D,4)+$(r,4)+l+F+y;return {fileRecord:U,dirRecord:oe}},Xg=function(e,t,n,r,i){var a="",o=ln.transformTo("string",i(r));return a=Ur.CENTRAL_DIRECTORY_END+"\0\0\0\0"+$(e,2)+$(e,2)+$(t,4)+$(n,4)+$(o.length,2)+o,a},zg=function(e){var t="";return t=Ur.DATA_DESCRIPTOR+$(e.crc32,4)+$(e.compressedSize,4)+$(e.uncompressedSize,4),t};function Oe(e,t,n,r){fn.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=false,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[];}ln.inherits(Oe,fn);Oe.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,fn.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}));};Oe.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=eu(e,t,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}});}else this.accumulate=true;};Oe.prototype.closedSource=function(e){this.accumulate=false;var t=this.streamFiles&&!e.file.dir,n=eu(e,t,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:zg(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null;};Oe.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=Xg(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}});};Oe.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume();};Oe.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(n){t.processChunk(n);}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end();}),e.on("error",function(n){t.error(n);}),this};Oe.prototype.resume=function(){if(!fn.prototype.resume.call(this))return false;if(!this.previous&&this._sources.length)return this.prepareNextSource(),true;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),true};Oe.prototype.error=function(e){var t=this._sources;if(!fn.prototype.error.call(this,e))return false;for(var n=0;n<t.length;n++)try{t[n].error(e);}catch{}return true};Oe.prototype.lock=function(){fn.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock();};tu.exports=Oe;});var iu=chunkQEBO3EQP_cjs.b(ru=>{var Hg=$a(),Ug=nu(),jg=function(e,t){var n=e||t,r=Hg[n];if(!r)throw new Error(n+" is not a valid compression method !");return r};ru.generateWorker=function(e,t,n){var r=new Ug(t.streamFiles,n,t.platform,t.encodeFileName),i=0;try{e.forEach(function(a,o){i++;var s=jg(o.options.compression,t.compression),d=o.options.compressionOptions||t.compressionOptions||{},l=o.dir,c=o.date;o._compressWorker(s,d).withStreamInfo("file",{name:a,dir:l,date:c,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(r);}),r.entriesCount=i;}catch(a){r.error(a);}return r};});var ou=chunkQEBO3EQP_cjs.b((Bb,au)=>{var qg=te(),jr=Ce();function Yn(e,t){jr.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=false,this._bindStream(t);}qg.inherits(Yn,jr);Yn.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(n){t.push({data:n,meta:{percent:0}});}).on("error",function(n){t.isPaused?this.generatedError=n:t.error(n);}).on("end",function(){t.isPaused?t._upstreamEnded=true:t.end();});};Yn.prototype.pause=function(){return jr.prototype.pause.call(this)?(this._stream.pause(),true):false};Yn.prototype.resume=function(){return jr.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),true):false};au.exports=Yn;});var gu=chunkQEBO3EQP_cjs.b((Ob,mu)=>{var Wg=Gt(),$n=te(),uu=Ce(),Vg=ia(),cu=aa(),su=_r(),Zg=sl(),Kg=iu(),lu=Cn(),Gg=ou(),du=function(e,t,n){var r=$n.getTypeOf(t),i,a=$n.extend(n||{},cu);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=true),a.dosPermissions&&a.dosPermissions&16&&(a.dir=true),a.dir&&(e=hu(e)),a.createFolders&&(i=Yg(e))&&pu.call(this,i,true);var o=r==="string"&&a.binary===false&&a.base64===false;(!n||typeof n.binary>"u")&&(a.binary=!o);var s=t instanceof su&&t.uncompressedSize===0;(s||a.dir||!t||t.length===0)&&(a.base64=false,a.binary=true,t="",a.compression="STORE",r="string");var d=null;t instanceof su||t instanceof uu?d=t:lu.isNode&&lu.isStream(t)?d=new Gg(e,t):d=$n.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new Zg(e,d,a);this.files[e]=l;},Yg=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},hu=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},pu=function(e,t){return t=typeof t<"u"?t:cu.createFolders,e=hu(e),this.files[e]||du.call(this,e,null,{dir:true,createFolders:t}),this.files[e]};function fu(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var $g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],n=t.slice(this.root.length,t.length),n&&t.slice(0,this.root.length)===this.root&&e(n,r);},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r);}),t},file:function(e,t,n){if(arguments.length===1)if(fu(e)){var r=e;return this.filter(function(a,o){return !o.dir&&r.test(a)})}else {var i=this.files[this.root+e];return i&&!i.dir?i:null}else e=this.root+e,du.call(this,e,t,n);return this},folder:function(e){if(!e)return this;if(fu(e))return this.filter(function(i,a){return a.dir&&e.test(i)});var t=this.root+e,n=pu.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(i,a){return a.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if(n=$n.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Wg.utf8encode}),n.type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type==="binarystring"&&(n.type="string"),!n.type)throw new Error("No output type specified.");$n.checkSupport(n.type),(n.platform==="darwin"||n.platform==="freebsd"||n.platform==="linux"||n.platform==="sunos")&&(n.platform="UNIX"),n.platform==="win32"&&(n.platform="DOS");var r=n.comment||this.comment||"";t=Kg.generateWorker(this,n,r);}catch(i){t=new uu("error"),t.error(i);}return new Vg(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};mu.exports=$g;});var eo=chunkQEBO3EQP_cjs.b((Lb,yu)=>{var Qg=te();function wu(e){this.data=e,this.length=e.length,this.index=0,this.zero=0;}wu.prototype={checkOffset:function(e){this.checkIndex(this.index+e);},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e;},skip:function(e){this.setIndex(this.index+e);},byteAt:function(){},readInt:function(e){var t=0,n;for(this.checkOffset(e),n=this.index+e-1;n>=this.index;n--)t=(t<<8)+this.byteAt(n);return this.index+=e,t},readString:function(e){return Qg.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};yu.exports=wu;});var to=chunkQEBO3EQP_cjs.b((Xb,vu)=>{var bu=eo(),Jg=te();function un(e){bu.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255;}Jg.inherits(un,bu);un.prototype.byteAt=function(e){return this.data[this.zero+e]};un.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return -1};un.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]};un.prototype.readData=function(e){if(this.checkOffset(e),e===0)return [];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};vu.exports=un;});var Tu=chunkQEBO3EQP_cjs.b((zb,_u)=>{var xu=eo(),e0=te();function cn(e){xu.call(this,e);}e0.inherits(cn,xu);cn.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};cn.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};cn.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};cn.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};_u.exports=cn;});var ro=chunkQEBO3EQP_cjs.b((Hb,Su)=>{var Eu=to(),t0=te();function no(e){Eu.call(this,e);}t0.inherits(no,Eu);no.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Su.exports=no;});var ku=chunkQEBO3EQP_cjs.b((Ub,Fu)=>{var Cu=ro(),n0=te();function io(e){Cu.call(this,e);}n0.inherits(io,Cu);io.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Fu.exports=io;});var ao=chunkQEBO3EQP_cjs.b((jb,Ru)=>{var qr=te(),Au=et(),r0=to(),i0=Tu(),a0=ku(),o0=ro();Ru.exports=function(e){var t=qr.getTypeOf(e);return qr.checkSupport(t),t==="string"&&!Au.uint8array?new i0(e):t==="nodebuffer"?new a0(e):Au.uint8array?new o0(qr.transformTo("uint8array",e)):new r0(qr.transformTo("array",e))};});var Du=chunkQEBO3EQP_cjs.b((qb,Mu)=>{var oo=ao(),xt=te(),s0=_r(),Iu=xr(),Wr=Gt(),Vr=$a(),l0=et(),f0=0,u0=3,c0=function(e){for(var t in Vr)if(Object.prototype.hasOwnProperty.call(Vr,t)&&Vr[t].magic===e)return Vr[t];return null};function Nu(e,t){this.options=e,this.loadOptions=t;}Nu.prototype={isEncrypted:function(){return (this.bitFlag&1)===1},useUTF8:function(){return (this.bitFlag&2048)===2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=c0(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+xt.pretty(this.compressionMethod)+" unknown (inner file : "+xt.transformTo("string",this.fileName)+")");this.decompressed=new s0(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize));},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength);},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===f0&&(this.dosPermissions=this.externalFileAttributes&63),e===u0&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=true);},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=oo(this.extraFields[1].value);this.uncompressedSize===xt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===xt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===xt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===xt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4));}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,n,r,i;for(this.extraFields||(this.extraFields={});e.index+4<t;)n=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[n]={id:n,length:r,value:i};e.setIndex(t);},handleUTF8:function(){var e=l0.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Wr.utf8decode(this.fileName),this.fileCommentStr=Wr.utf8decode(this.fileComment);else {var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else {var n=xt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n);}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else {var i=xt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i);}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=oo(e.value);return t.readInt(1)!==1||Iu(this.fileName)!==t.readInt(4)?null:Wr.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=oo(e.value);return t.readInt(1)!==1||Iu(this.fileComment)!==t.readInt(4)?null:Wr.utf8decode(t.readData(e.length-5))}return null}};Mu.exports=Nu;});var Ou=chunkQEBO3EQP_cjs.b((Wb,Bu)=>{var d0=ao(),ot=te(),Le=Qa(),h0=Du(),p0=et();function Pu(e){this.files=[],this.loadOptions=e;}Pu.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ot.pretty(t)+", expected "+ot.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4),i=r===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=p0.uint8array?"uint8array":"array",n=ot.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n);},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 e=this.zip64EndOfCentralSize-44,t=0,n,r,i;t<e;)n=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readData(r),this.zip64ExtensibleData[n]={id:n,length:r,value:i};},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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Le.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes();},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Le.CENTRAL_FILE_HEADER);)e=new h0({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(Le.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Le.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var n=e;if(this.checkSignature(Le.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ot.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ot.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ot.MAX_VALUE_16BITS||this.centralDirRecords===ot.MAX_VALUE_16BITS||this.centralDirSize===ot.MAX_VALUE_32BITS||this.centralDirOffset===ot.MAX_VALUE_32BITS){if(this.zip64=true,e=this.reader.lastIndexOfSignature(Le.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Le.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Le.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Le.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(Le.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral();}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var i=n-r;if(i>0)this.isSignature(n,Le.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=d0(e);},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles();}};Bu.exports=Pu;});var zu=chunkQEBO3EQP_cjs.b((Vb,Xu)=>{var so=te(),Zr=Vt(),m0=Gt(),g0=Ou(),w0=la(),Lu=Cn();function y0(e){return new Zr.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new w0);r.on("error",function(i){n(i);}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t();}).resume();})}Xu.exports=function(e,t){var n=this;return t=so.extend(t||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:m0.utf8decode}),Lu.isNode&&Lu.isStream(e)?Zr.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):so.prepareContent("the loaded zip file",e,true,t.optimizedBinaryString,t.base64).then(function(r){var i=new g0(t);return i.load(r),i}).then(function(i){var a=[Zr.Promise.resolve(i)],o=i.files;if(t.checkCRC32)for(var s=0;s<o.length;s++)a.push(y0(o[s]));return Zr.Promise.all(a)}).then(function(i){for(var a=i.shift(),o=a.files,s=0;s<o.length;s++){var d=o[s],l=d.fileNameStr,c=so.resolve(d.fileNameStr);n.file(c,d.decompressed,{binary:true,optimizedBinaryString:true,date:d.date,dir:d.dir,comment:d.fileCommentStr.length?d.fileCommentStr:null,unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions,createFolders:t.createFolders}),d.dir||(n.file(c).unsafeOriginalName=l);}return a.zipComment.length&&(n.comment=a.zipComment),n})};});var Uu=chunkQEBO3EQP_cjs.b((Zb,Hu)=>{function Ie(){if(!(this instanceof Ie))return new Ie;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 e=new Ie;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e};}Ie.prototype=gu();Ie.prototype.loadAsync=zu();Ie.support=et();Ie.defaults=aa();Ie.version="3.10.1";Ie.loadAsync=function(e,t){return new Ie().loadAsync(e,t)};Ie.external=Vt();Hu.exports=Ie;});var Vu=chunkQEBO3EQP_cjs.b(Kr=>{(function(e){e.parser=function(p,f){return new n(p,f)},e.SAXParser=n,e.SAXStream=l,e.createStream=d,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(p,f){if(!(this instanceof n))return new n(p,f);var I=this;i(I),I.q=I.c="",I.bufferCheckPosition=e.MAX_BUFFER_LENGTH,I.opt=f||{},I.opt.lowercase=I.opt.lowercase||I.opt.lowercasetags,I.looseCase=I.opt.lowercase?"toLowerCase":"toUpperCase",I.tags=[],I.closed=I.closedRoot=I.sawRoot=false,I.tag=I.error=null,I.strict=!!p,I.noscript=!!(p||I.opt.noscript),I.state=m.BEGIN,I.strictEntities=I.opt.strictEntities,I.ENTITIES=I.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),I.attribList=[],I.opt.xmlns&&(I.ns=Object.create(w)),I.opt.unquotedAttributeValues===void 0&&(I.opt.unquotedAttributeValues=!p),I.trackPosition=I.opt.position!==false,I.trackPosition&&(I.position=I.line=I.column=0),O(I,"onready");}Object.create||(Object.create=function(p){function f(){}f.prototype=p;var I=new f;return I}),Object.keys||(Object.keys=function(p){var f=[];for(var I in p)p.hasOwnProperty(I)&&f.push(I);return f});function r(p){for(var f=Math.max(e.MAX_BUFFER_LENGTH,10),I=0,x=0,G=t.length;x<G;x++){var re=p[t[x]].length;if(re>f)switch(t[x]){case "textNode":U(p);break;case "cdata":M(p,"oncdata",p.cdata),p.cdata="";break;case "script":M(p,"onscript",p.script),p.script="";break;default:fe(p,"Max buffer length exceeded: "+t[x]);}I=Math.max(I,re);}var ue=e.MAX_BUFFER_LENGTH-I;p.bufferCheckPosition=ue+p.position;}function i(p){for(var f=0,I=t.length;f<I;f++)p[t[f]]="";}function a(p){U(p),p.cdata!==""&&(M(p,"oncdata",p.cdata),p.cdata=""),p.script!==""&&(M(p,"onscript",p.script),p.script="");}n.prototype={end:function(){Y(this);},write:Nd,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this);}};var o;try{o=chunkQEBO3EQP_cjs.a("stream").Stream;}catch{o=function(){};}o||(o=function(){});var s=e.EVENTS.filter(function(p){return p!=="error"&&p!=="end"});function d(p,f){return new l(p,f)}function l(p,f){if(!(this instanceof l))return new l(p,f);o.apply(this),this._parser=new n(p,f),this.writable=true,this.readable=true;var I=this;this._parser.onend=function(){I.emit("end");},this._parser.onerror=function(x){I.emit("error",x),I._parser.error=null;},this._decoder=null,s.forEach(function(x){Object.defineProperty(I,"on"+x,{get:function(){return I._parser["on"+x]},set:function(G){if(!G)return I.removeAllListeners(x),I._parser["on"+x]=G,G;I.on(x,G);},enumerable:true,configurable:false});});}l.prototype=Object.create(o.prototype,{constructor:{value:l}}),l.prototype.write=function(p){return typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(p)&&(this._decoder||(this._decoder=new TextDecoder("utf8")),p=this._decoder.decode(p,{stream:true})),this._parser.write(p.toString()),this.emit("data",p),true},l.prototype.end=function(p){if(p&&p.length&&this.write(p),this._decoder){var f=this._decoder.decode();f&&(this._parser.write(f),this.emit("data",f));}return this._parser.end(),true},l.prototype.on=function(p,f){var I=this;return !I._parser["on"+p]&&s.indexOf(p)!==-1&&(I._parser["on"+p]=function(){var x=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);x.splice(0,0,p),I.emit.apply(I,x);}),o.prototype.on.call(I,p,f)};var c="[CDATA[",g="DOCTYPE",y="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",w={xml:y,xmlns:v},T=/[:_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]/,A=/[:_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-]/,N=/[#:_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]/,F=/[#:_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 S(p){return p===" "||p===`
3
- `||p==="\r"||p===" "}function b(p){return p==='"'||p==="'"}function _(p){return p===">"||S(p)}function R(p,f){return p.test(f)}function C(p,f){return !R(p,f)}var m=0;e.STATE={BEGIN:m++,BEGIN_WHITESPACE:m++,TEXT:m++,TEXT_ENTITY:m++,OPEN_WAKA:m++,SGML_DECL:m++,SGML_DECL_QUOTED:m++,DOCTYPE:m++,DOCTYPE_QUOTED:m++,DOCTYPE_DTD:m++,DOCTYPE_DTD_QUOTED:m++,COMMENT_STARTING:m++,COMMENT:m++,COMMENT_ENDING:m++,COMMENT_ENDED:m++,CDATA:m++,CDATA_ENDING:m++,CDATA_ENDING_2:m++,PROC_INST:m++,PROC_INST_BODY:m++,PROC_INST_ENDING:m++,OPEN_TAG:m++,OPEN_TAG_SLASH:m++,ATTRIB:m++,ATTRIB_NAME:m++,ATTRIB_NAME_SAW_WHITE:m++,ATTRIB_VALUE:m++,ATTRIB_VALUE_QUOTED:m++,ATTRIB_VALUE_CLOSED:m++,ATTRIB_VALUE_UNQUOTED:m++,ATTRIB_VALUE_ENTITY_Q:m++,ATTRIB_VALUE_ENTITY_U:m++,CLOSE_TAG:m++,CLOSE_TAG_SAW_WHITE:m++,SCRIPT:m++,SCRIPT_ENDING:m++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(p){var f=e.ENTITIES[p],I=typeof f=="number"?String.fromCharCode(f):f;e.ENTITIES[p]=I;});for(var D in e.STATE)e.STATE[e.STATE[D]]=D;m=e.STATE;function O(p,f,I){p[f]&&p[f](I);}function M(p,f,I){p.textNode&&U(p),O(p,f,I);}function U(p){p.textNode=oe(p.opt,p.textNode),p.textNode&&O(p,"ontext",p.textNode),p.textNode="";}function oe(p,f){return p.trim&&(f=f.trim()),p.normalize&&(f=f.replace(/\s+/g," ")),f}function fe(p,f){return U(p),p.trackPosition&&(f+=`
4
- Line: `+p.line+`
5
- Column: `+p.column+`
6
- Char: `+p.c),f=new Error(f),p.error=f,O(p,"onerror",f),p}function Y(p){return p.sawRoot&&!p.closedRoot&&H(p,"Unclosed root tag"),p.state!==m.BEGIN&&p.state!==m.BEGIN_WHITESPACE&&p.state!==m.TEXT&&fe(p,"Unexpected end"),U(p),p.c="",p.closed=true,O(p,"onend"),n.call(p,p.strict,p.opt),p}function H(p,f){if(typeof p!="object"||!(p instanceof n))throw new Error("bad call to strictFail");p.strict&&fe(p,f);}function X(p){p.strict||(p.tagName=p.tagName[p.looseCase]());var f=p.tags[p.tags.length-1]||p,I=p.tag={name:p.tagName,attributes:{}};p.opt.xmlns&&(I.ns=f.ns),p.attribList.length=0,M(p,"onopentagstart",I);}function L(p,f){var I=p.indexOf(":"),x=I<0?["",p]:p.split(":"),G=x[0],re=x[1];return f&&p==="xmlns"&&(G="xmlns",re=""),{prefix:G,local:re}}function Q(p){if(p.strict||(p.attribName=p.attribName[p.looseCase]()),p.attribList.indexOf(p.attribName)!==-1||p.tag.attributes.hasOwnProperty(p.attribName)){p.attribName=p.attribValue="";return}if(p.opt.xmlns){var f=L(p.attribName,true),I=f.prefix,x=f.local;if(I==="xmlns")if(x==="xml"&&p.attribValue!==y)H(p,"xml: prefix must be bound to "+y+`
7
- Actual: `+p.attribValue);else if(x==="xmlns"&&p.attribValue!==v)H(p,"xmlns: prefix must be bound to "+v+`
8
- Actual: `+p.attribValue);else {var G=p.tag,re=p.tags[p.tags.length-1]||p;G.ns===re.ns&&(G.ns=Object.create(re.ns)),G.ns[x]=p.attribValue;}p.attribList.push([p.attribName,p.attribValue]);}else p.tag.attributes[p.attribName]=p.attribValue,M(p,"onattribute",{name:p.attribName,value:p.attribValue});p.attribName=p.attribValue="";}function de(p,f){if(p.opt.xmlns){var I=p.tag,x=L(p.tagName);I.prefix=x.prefix,I.local=x.local,I.uri=I.ns[x.prefix]||"",I.prefix&&!I.uri&&(H(p,"Unbound namespace prefix: "+JSON.stringify(p.tagName)),I.uri=x.prefix);var G=p.tags[p.tags.length-1]||p;I.ns&&G.ns!==I.ns&&Object.keys(I.ns).forEach(function(So){M(p,"onopennamespace",{prefix:So,uri:I.ns[So]});});for(var re=0,ue=p.attribList.length;re<ue;re++){var _e=p.attribList[re],Te=_e[0],Ot=_e[1],he=L(Te,true),Ye=he.prefix,Md=he.local,Eo=Ye===""?"":I.ns[Ye]||"",pi={name:Te,value:Ot,prefix:Ye,local:Md,uri:Eo};Ye&&Ye!=="xmlns"&&!Eo&&(H(p,"Unbound namespace prefix: "+JSON.stringify(Ye)),pi.uri=Ye),p.tag.attributes[Te]=pi,M(p,"onattribute",pi);}p.attribList.length=0;}p.tag.isSelfClosing=!!f,p.sawRoot=true,p.tags.push(p.tag),M(p,"onopentag",p.tag),f||(!p.noscript&&p.tagName.toLowerCase()==="script"?p.state=m.SCRIPT:p.state=m.TEXT,p.tag=null,p.tagName=""),p.attribName=p.attribValue="",p.attribList.length=0;}function _t(p){if(!p.tagName){H(p,"Weird empty close tag."),p.textNode+="</>",p.state=m.TEXT;return}if(p.script){if(p.tagName!=="script"){p.script+="</"+p.tagName+">",p.tagName="",p.state=m.SCRIPT;return}M(p,"onscript",p.script),p.script="";}var f=p.tags.length,I=p.tagName;p.strict||(I=I[p.looseCase]());for(var x=I;f--;){var G=p.tags[f];if(G.name!==x)H(p,"Unexpected close tag");else break}if(f<0){H(p,"Unmatched closing tag: "+p.tagName),p.textNode+="</"+p.tagName+">",p.state=m.TEXT;return}p.tagName=I;for(var re=p.tags.length;re-- >f;){var ue=p.tag=p.tags.pop();p.tagName=p.tag.name,M(p,"onclosetag",p.tagName);var _e={};for(var Te in ue.ns)_e[Te]=ue.ns[Te];var Ot=p.tags[p.tags.length-1]||p;p.opt.xmlns&&ue.ns!==Ot.ns&&Object.keys(ue.ns).forEach(function(he){var Ye=ue.ns[he];M(p,"onclosenamespace",{prefix:he,uri:Ye});});}f===0&&(p.closedRoot=true),p.tagName=p.attribValue=p.attribName="",p.attribList.length=0,p.state=m.TEXT;}function Id(p){var f=p.entity,I=f.toLowerCase(),x,G="";return p.ENTITIES[f]?p.ENTITIES[f]:p.ENTITIES[I]?p.ENTITIES[I]:(f=I,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),x=parseInt(f,16),G=x.toString(16)):(f=f.slice(1),x=parseInt(f,10),G=x.toString(10))),f=f.replace(/^0+/,""),isNaN(x)||G.toLowerCase()!==f||x<0||x>1114111?(H(p,"Invalid character entity"),"&"+p.entity+";"):String.fromCodePoint(x))}function To(p,f){f==="<"?(p.state=m.OPEN_WAKA,p.startTagPosition=p.position):S(f)||(H(p,"Non-whitespace before first tag."),p.textNode=f,p.state=m.TEXT);}function hi(p,f){var I="";return f<p.length&&(I=p.charAt(f)),I}function Nd(p){var f=this;if(this.error)throw this.error;if(f.closed)return fe(f,"Cannot write after close. Assign an onready handler.");if(p===null)return Y(f);typeof p=="object"&&(p=p.toString());for(var I=0,x="";x=hi(p,I++),f.c=x,!!x;)switch(f.trackPosition&&(f.position++,x===`
9
- `?(f.line++,f.column=0):f.column++),f.state){case m.BEGIN:if(f.state=m.BEGIN_WHITESPACE,x==="\uFEFF")continue;To(f,x);continue;case m.BEGIN_WHITESPACE:To(f,x);continue;case m.TEXT:if(f.sawRoot&&!f.closedRoot){for(var re=I-1;x&&x!=="<"&&x!=="&";)x=hi(p,I++),x&&f.trackPosition&&(f.position++,x===`
10
- `?(f.line++,f.column=0):f.column++);f.textNode+=p.substring(re,I-1);}x==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=m.OPEN_WAKA,f.startTagPosition=f.position):(!S(x)&&(!f.sawRoot||f.closedRoot)&&H(f,"Text data outside of root node."),x==="&"?f.state=m.TEXT_ENTITY:f.textNode+=x);continue;case m.SCRIPT:x==="<"?f.state=m.SCRIPT_ENDING:f.script+=x;continue;case m.SCRIPT_ENDING:x==="/"?f.state=m.CLOSE_TAG:(f.script+="<"+x,f.state=m.SCRIPT);continue;case m.OPEN_WAKA:if(x==="!")f.state=m.SGML_DECL,f.sgmlDecl="";else if(!S(x))if(R(T,x))f.state=m.OPEN_TAG,f.tagName=x;else if(x==="/")f.state=m.CLOSE_TAG,f.tagName="";else if(x==="?")f.state=m.PROC_INST,f.procInstName=f.procInstBody="";else {if(H(f,"Unencoded <"),f.startTagPosition+1<f.position){var G=f.position-f.startTagPosition;x=new Array(G).join(" ")+x;}f.textNode+="<"+x,f.state=m.TEXT;}continue;case m.SGML_DECL:if(f.sgmlDecl+x==="--"){f.state=m.COMMENT,f.comment="",f.sgmlDecl="";continue}f.doctype&&f.doctype!==true&&f.sgmlDecl?(f.state=m.DOCTYPE_DTD,f.doctype+="<!"+f.sgmlDecl+x,f.sgmlDecl=""):(f.sgmlDecl+x).toUpperCase()===c?(M(f,"onopencdata"),f.state=m.CDATA,f.sgmlDecl="",f.cdata=""):(f.sgmlDecl+x).toUpperCase()===g?(f.state=m.DOCTYPE,(f.doctype||f.sawRoot)&&H(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):x===">"?(M(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=m.TEXT):(b(x)&&(f.state=m.SGML_DECL_QUOTED),f.sgmlDecl+=x);continue;case m.SGML_DECL_QUOTED:x===f.q&&(f.state=m.SGML_DECL,f.q=""),f.sgmlDecl+=x;continue;case m.DOCTYPE:x===">"?(f.state=m.TEXT,M(f,"ondoctype",f.doctype),f.doctype=true):(f.doctype+=x,x==="["?f.state=m.DOCTYPE_DTD:b(x)&&(f.state=m.DOCTYPE_QUOTED,f.q=x));continue;case m.DOCTYPE_QUOTED:f.doctype+=x,x===f.q&&(f.q="",f.state=m.DOCTYPE);continue;case m.DOCTYPE_DTD:x==="]"?(f.doctype+=x,f.state=m.DOCTYPE):x==="<"?(f.state=m.OPEN_WAKA,f.startTagPosition=f.position):b(x)?(f.doctype+=x,f.state=m.DOCTYPE_DTD_QUOTED,f.q=x):f.doctype+=x;continue;case m.DOCTYPE_DTD_QUOTED:f.doctype+=x,x===f.q&&(f.state=m.DOCTYPE_DTD,f.q="");continue;case m.COMMENT:x==="-"?f.state=m.COMMENT_ENDING:f.comment+=x;continue;case m.COMMENT_ENDING:x==="-"?(f.state=m.COMMENT_ENDED,f.comment=oe(f.opt,f.comment),f.comment&&M(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+x,f.state=m.COMMENT);continue;case m.COMMENT_ENDED:x!==">"?(H(f,"Malformed comment"),f.comment+="--"+x,f.state=m.COMMENT):f.doctype&&f.doctype!==true?f.state=m.DOCTYPE_DTD:f.state=m.TEXT;continue;case m.CDATA:for(var re=I-1;x&&x!=="]";)x=hi(p,I++),x&&f.trackPosition&&(f.position++,x===`
11
- `?(f.line++,f.column=0):f.column++);f.cdata+=p.substring(re,I-1),x==="]"&&(f.state=m.CDATA_ENDING);continue;case m.CDATA_ENDING:x==="]"?f.state=m.CDATA_ENDING_2:(f.cdata+="]"+x,f.state=m.CDATA);continue;case m.CDATA_ENDING_2:x===">"?(f.cdata&&M(f,"oncdata",f.cdata),M(f,"onclosecdata"),f.cdata="",f.state=m.TEXT):x==="]"?f.cdata+="]":(f.cdata+="]]"+x,f.state=m.CDATA);continue;case m.PROC_INST:x==="?"?f.state=m.PROC_INST_ENDING:S(x)?f.state=m.PROC_INST_BODY:f.procInstName+=x;continue;case m.PROC_INST_BODY:if(!f.procInstBody&&S(x))continue;x==="?"?f.state=m.PROC_INST_ENDING:f.procInstBody+=x;continue;case m.PROC_INST_ENDING:x===">"?(M(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=m.TEXT):(f.procInstBody+="?"+x,f.state=m.PROC_INST_BODY);continue;case m.OPEN_TAG:R(A,x)?f.tagName+=x:(X(f),x===">"?de(f):x==="/"?f.state=m.OPEN_TAG_SLASH:(S(x)||H(f,"Invalid character in tag name"),f.state=m.ATTRIB));continue;case m.OPEN_TAG_SLASH:x===">"?(de(f,true),_t(f)):(H(f,"Forward-slash in opening tag not followed by >"),f.state=m.ATTRIB);continue;case m.ATTRIB:if(S(x))continue;x===">"?de(f):x==="/"?f.state=m.OPEN_TAG_SLASH:R(T,x)?(f.attribName=x,f.attribValue="",f.state=m.ATTRIB_NAME):H(f,"Invalid attribute name");continue;case m.ATTRIB_NAME:x==="="?f.state=m.ATTRIB_VALUE:x===">"?(H(f,"Attribute without value"),f.attribValue=f.attribName,Q(f),de(f)):S(x)?f.state=m.ATTRIB_NAME_SAW_WHITE:R(A,x)?f.attribName+=x:H(f,"Invalid attribute name");continue;case m.ATTRIB_NAME_SAW_WHITE:if(x==="=")f.state=m.ATTRIB_VALUE;else {if(S(x))continue;H(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",M(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",x===">"?de(f):R(T,x)?(f.attribName=x,f.state=m.ATTRIB_NAME):(H(f,"Invalid attribute name"),f.state=m.ATTRIB);}continue;case m.ATTRIB_VALUE:if(S(x))continue;b(x)?(f.q=x,f.state=m.ATTRIB_VALUE_QUOTED):(f.opt.unquotedAttributeValues||fe(f,"Unquoted attribute value"),f.state=m.ATTRIB_VALUE_UNQUOTED,f.attribValue=x);continue;case m.ATTRIB_VALUE_QUOTED:if(x!==f.q){x==="&"?f.state=m.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=x;continue}Q(f),f.q="",f.state=m.ATTRIB_VALUE_CLOSED;continue;case m.ATTRIB_VALUE_CLOSED:S(x)?f.state=m.ATTRIB:x===">"?de(f):x==="/"?f.state=m.OPEN_TAG_SLASH:R(T,x)?(H(f,"No whitespace between attributes"),f.attribName=x,f.attribValue="",f.state=m.ATTRIB_NAME):H(f,"Invalid attribute name");continue;case m.ATTRIB_VALUE_UNQUOTED:if(!_(x)){x==="&"?f.state=m.ATTRIB_VALUE_ENTITY_U:f.attribValue+=x;continue}Q(f),x===">"?de(f):f.state=m.ATTRIB;continue;case m.CLOSE_TAG:if(f.tagName)x===">"?_t(f):R(A,x)?f.tagName+=x:f.script?(f.script+="</"+f.tagName+x,f.tagName="",f.state=m.SCRIPT):(S(x)||H(f,"Invalid tagname in closing tag"),f.state=m.CLOSE_TAG_SAW_WHITE);else {if(S(x))continue;C(T,x)?f.script?(f.script+="</"+x,f.state=m.SCRIPT):H(f,"Invalid tagname in closing tag."):f.tagName=x;}continue;case m.CLOSE_TAG_SAW_WHITE:if(S(x))continue;x===">"?_t(f):H(f,"Invalid characters in closing tag");continue;case m.TEXT_ENTITY:case m.ATTRIB_VALUE_ENTITY_Q:case m.ATTRIB_VALUE_ENTITY_U:var ue,_e;switch(f.state){case m.TEXT_ENTITY:ue=m.TEXT,_e="textNode";break;case m.ATTRIB_VALUE_ENTITY_Q:ue=m.ATTRIB_VALUE_QUOTED,_e="attribValue";break;case m.ATTRIB_VALUE_ENTITY_U:ue=m.ATTRIB_VALUE_UNQUOTED,_e="attribValue";break}if(x===";"){var Te=Id(f);f.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Te)?(f.entity="",f.state=ue,f.write(Te)):(f[_e]+=Te,f.entity="",f.state=ue);}else R(f.entity.length?F:N,x)?f.entity+=x:(H(f,"Invalid character in entity name"),f[_e]+="&"+f.entity+x,f.entity="",f.state=ue);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&r(f),f}String.fromCodePoint||(function(){var p=String.fromCharCode,f=Math.floor,I=function(){var x=16384,G=[],re,ue,_e=-1,Te=arguments.length;if(!Te)return "";for(var Ot="";++_e<Te;){var he=Number(arguments[_e]);if(!isFinite(he)||he<0||he>1114111||f(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?G.push(he):(he-=65536,re=(he>>10)+55296,ue=he%1024+56320,G.push(re,ue)),(_e+1===Te||G.length>x)&&(Ot+=p.apply(null,G),G.length=0);}return Ot};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:I,configurable:true,writable:true}):String.fromCodePoint=I;})();})(typeof Kr>"u"?Kr.sax={}:Kr);});var Gr=chunkQEBO3EQP_cjs.b((Yb,Zu)=>{Zu.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}};});var Yr=chunkQEBO3EQP_cjs.b(($b,Ku)=>{var b0=Gr().isArray;Ku.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=false);},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0);},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!b0(e.alwaysArray))&&(e.alwaysArray=false);},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e);},checkFnExists:function(e,t){return e+"Fn"in t}};});var fo=chunkQEBO3EQP_cjs.b((Qb,nc)=>{var v0=Vu(),j=Yr(),dn=Gr().isArray,E,lo=true,z;function _0(e){return E=j.copyOptions(e),j.ensureFlagExists("ignoreDeclaration",E),j.ensureFlagExists("ignoreInstruction",E),j.ensureFlagExists("ignoreAttributes",E),j.ensureFlagExists("ignoreText",E),j.ensureFlagExists("ignoreComment",E),j.ensureFlagExists("ignoreCdata",E),j.ensureFlagExists("ignoreDoctype",E),j.ensureFlagExists("compact",E),j.ensureFlagExists("alwaysChildren",E),j.ensureFlagExists("addParent",E),j.ensureFlagExists("trim",E),j.ensureFlagExists("nativeType",E),j.ensureFlagExists("nativeTypeAttributes",E),j.ensureFlagExists("sanitize",E),j.ensureFlagExists("instructionHasAttributes",E),j.ensureFlagExists("captureSpacesBetweenElements",E),j.ensureAlwaysArrayExists(E),j.ensureKeyExists("declaration",E),j.ensureKeyExists("instruction",E),j.ensureKeyExists("attributes",E),j.ensureKeyExists("text",E),j.ensureKeyExists("comment",E),j.ensureKeyExists("cdata",E),j.ensureKeyExists("doctype",E),j.ensureKeyExists("type",E),j.ensureKeyExists("name",E),j.ensureKeyExists("elements",E),j.ensureKeyExists("parent",E),j.checkFnExists("doctype",E),j.checkFnExists("instruction",E),j.checkFnExists("cdata",E),j.checkFnExists("comment",E),j.checkFnExists("text",E),j.checkFnExists("instructionName",E),j.checkFnExists("elementName",E),j.checkFnExists("attributeName",E),j.checkFnExists("attributeValue",E),j.checkFnExists("attributes",E),E}function ec(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?true:n==="false"?false:e}function Qn(e,t){var n;if(E.compact){if(!z[E[e+"Key"]]&&(dn(E.alwaysArray)?E.alwaysArray.indexOf(E[e+"Key"])!==-1:E.alwaysArray)&&(z[E[e+"Key"]]=[]),z[E[e+"Key"]]&&!dn(z[E[e+"Key"]])&&(z[E[e+"Key"]]=[z[E[e+"Key"]]]),e+"Fn"in E&&typeof t=="string"&&(t=E[e+"Fn"](t,z)),e==="instruction"&&("instructionFn"in E||"instructionNameFn"in E)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in E)t[n]=E.instructionFn(t[n],n,z);else {var r=t[n];delete t[n],t[E.instructionNameFn(n,r,z)]=r;}}dn(z[E[e+"Key"]])?z[E[e+"Key"]].push(t):z[E[e+"Key"]]=t;}else {z[E.elementsKey]||(z[E.elementsKey]=[]);var i={};if(i[E.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;i[E.nameKey]="instructionNameFn"in E?E.instructionNameFn(n,t,z):n,E.instructionHasAttributes?(i[E.attributesKey]=t[n][E.attributesKey],"instructionFn"in E&&(i[E.attributesKey]=E.instructionFn(i[E.attributesKey],n,z))):("instructionFn"in E&&(t[n]=E.instructionFn(t[n],n,z)),i[E.instructionKey]=t[n]);}else e+"Fn"in E&&(t=E[e+"Fn"](t,z)),i[E[e+"Key"]]=t;E.addParent&&(i[E.parentKey]=z),z[E.elementsKey].push(i);}}function tc(e){if("attributesFn"in E&&e&&(e=E.attributesFn(e,z)),(E.trim||"attributeValueFn"in E||"attributeNameFn"in E||E.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(E.trim&&(e[t]=e[t].trim()),E.nativeTypeAttributes&&(e[t]=ec(e[t])),"attributeValueFn"in E&&(e[t]=E.attributeValueFn(e[t],t,z)),"attributeNameFn"in E)){var n=e[t];delete e[t],e[E.attributeNameFn(t,e[t],z)]=n;}}return e}function T0(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||E.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(e.body))!==null;)t[r[1]]=r[2]||r[3]||r[4];t=tc(t);}if(e.name.toLowerCase()==="xml"){if(E.ignoreDeclaration)return;z[E.declarationKey]={},Object.keys(t).length&&(z[E.declarationKey][E.attributesKey]=t),E.addParent&&(z[E.declarationKey][E.parentKey]=z);}else {if(E.ignoreInstruction)return;E.trim&&(e.body=e.body.trim());var i={};E.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][E.attributesKey]=t):i[e.name]=e.body,Qn("instruction",i);}}function Gu(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=tc(t),"elementNameFn"in E&&(e=E.elementNameFn(e,z)),E.compact){if(n={},!E.ignoreAttributes&&t&&Object.keys(t).length){n[E.attributesKey]={};var r;for(r in t)t.hasOwnProperty(r)&&(n[E.attributesKey][r]=t[r]);}!(e in z)&&(dn(E.alwaysArray)?E.alwaysArray.indexOf(e)!==-1:E.alwaysArray)&&(z[e]=[]),z[e]&&!dn(z[e])&&(z[e]=[z[e]]),dn(z[e])?z[e].push(n):z[e]=n;}else z[E.elementsKey]||(z[E.elementsKey]=[]),n={},n[E.typeKey]="element",n[E.nameKey]=e,!E.ignoreAttributes&&t&&Object.keys(t).length&&(n[E.attributesKey]=t),E.alwaysChildren&&(n[E.elementsKey]=[]),z[E.elementsKey].push(n);n[E.parentKey]=z,z=n;}function Yu(e){E.ignoreText||!e.trim()&&!E.captureSpacesBetweenElements||(E.trim&&(e=e.trim()),E.nativeType&&(e=ec(e)),E.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),Qn("text",e));}function $u(e){E.ignoreComment||(E.trim&&(e=e.trim()),Qn("comment",e));}function Qu(e){var t=z[E.parentKey];E.addParent||delete z[E.parentKey],z=t;}function E0(e){E.ignoreCdata||(E.trim&&(e=e.trim()),Qn("cdata",e));}function S0(e){E.ignoreDoctype||(e=e.replace(/^ /,""),E.trim&&(e=e.trim()),Qn("doctype",e));}function Ju(e){e.note=e;}nc.exports=function(e,t){var n=v0.parser(true,{}),r={};if(z=r,E=_0(t),(n.opt={strictEntities:true},n.onopentag=Gu,n.ontext=Yu,n.oncomment=$u,n.onclosetag=Qu,n.onerror=Ju,n.oncdata=E0,n.ondoctype=S0,n.onprocessinginstruction=T0),lo)n.write(e).close();if(r[E.elementsKey]){var i=r[E.elementsKey];delete r[E.elementsKey],r[E.elementsKey]=i,delete r.text;}return r};});var ac=chunkQEBO3EQP_cjs.b((Jb,ic)=>{var rc=Yr(),C0=fo();function F0(e){var t=rc.copyOptions(e);return rc.ensureSpacesExists(t),t}ic.exports=function(e,t){var n,r,i,a;return n=F0(t),r=C0(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?i=JSON.stringify(r,function(o,s){return o===a?"_":s},n.spaces):i=JSON.stringify(r,null,n.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};});var co=chunkQEBO3EQP_cjs.b((ev,pc)=>{var q=Yr(),k0=Gr().isArray,ye,be;function A0(e){var t=q.copyOptions(e);return q.ensureFlagExists("ignoreDeclaration",t),q.ensureFlagExists("ignoreInstruction",t),q.ensureFlagExists("ignoreAttributes",t),q.ensureFlagExists("ignoreText",t),q.ensureFlagExists("ignoreComment",t),q.ensureFlagExists("ignoreCdata",t),q.ensureFlagExists("ignoreDoctype",t),q.ensureFlagExists("compact",t),q.ensureFlagExists("indentText",t),q.ensureFlagExists("indentCdata",t),q.ensureFlagExists("indentAttributes",t),q.ensureFlagExists("indentInstruction",t),q.ensureFlagExists("fullTagEmptyElement",t),q.ensureFlagExists("noQuotesForNativeAttributes",t),q.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),q.ensureKeyExists("declaration",t),q.ensureKeyExists("instruction",t),q.ensureKeyExists("attributes",t),q.ensureKeyExists("text",t),q.ensureKeyExists("comment",t),q.ensureKeyExists("cdata",t),q.ensureKeyExists("doctype",t),q.ensureKeyExists("type",t),q.ensureKeyExists("name",t),q.ensureKeyExists("elements",t),q.checkFnExists("doctype",t),q.checkFnExists("instruction",t),q.checkFnExists("cdata",t),q.checkFnExists("comment",t),q.checkFnExists("text",t),q.checkFnExists("instructionName",t),q.checkFnExists("elementName",t),q.checkFnExists("attributeName",t),q.checkFnExists("attributeValue",t),q.checkFnExists("attributes",t),q.checkFnExists("fullTagEmptyElement",t),t}function Ke(e,t,n){return (!n&&e.spaces?`
12
- `:"")+Array(t+1).join(e.spaces)}function $r(e,t,n){if(t.ignoreAttributes)return "";"attributesFn"in t&&(e=t.attributesFn(e,be,ye));var r,i,a,o,s=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(o=t.noQuotesForNativeAttributes&&typeof e[r]!="string"?"":'"',i=""+e[r],i=i.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(r,i,be,ye):r,s.push(t.spaces&&t.indentAttributes?Ke(t,n+1,false):" "),s.push(a+"="+o+("attributeValueFn"in t?t.attributeValueFn(i,r,be,ye):i)+o));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&s.push(Ke(t,n,false)),s.join("")}function oc(e,t,n){return ye=e,be="xml",t.ignoreDeclaration?"":"<?xml"+$r(e[t.attributesKey],t,n)+"?>"}function sc(e,t,n){if(t.ignoreInstruction)return "";var r;for(r in e)if(e.hasOwnProperty(r))break;var i="instructionNameFn"in t?t.instructionNameFn(r,e[r],be,ye):r;if(typeof e[r]=="object")return ye=e,be=i,"<?"+i+$r(e[r][t.attributesKey],t,n)+"?>";var a=e[r]?e[r]:"";return "instructionFn"in t&&(a=t.instructionFn(a,r,be,ye)),"<?"+i+(a?" "+a:"")+"?>"}function lc(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,be,ye):e)+"-->"}function fc(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,be,ye):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function uc(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,be,ye):e)+">"}function uo(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,be,ye):e)}function R0(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case "text":if(t.indentText)return true;break;case "cdata":if(t.indentCdata)return true;break;case "instruction":if(t.indentInstruction)return true;break;case "doctype":case "comment":case "element":return true;default:return true}return false}function I0(e,t,n){ye=e,be=e.name;var r=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;r.push("<"+i),e[t.attributesKey]&&r.push($r(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(r.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(cc(e[t.elementsKey],t,n+1)),ye=e,be=e.name),r.push(t.spaces&&R0(e,t)?`
13
- `+Array(n+1).join(t.spaces):""),r.push("</"+i+">")):r.push("/>"),r.join("")}function cc(e,t,n,r){return e.reduce(function(i,a){var o=Ke(t,n,r&&!i);switch(a.type){case "element":return i+o+I0(a,t,n);case "comment":return i+o+lc(a[t.commentKey],t);case "doctype":return i+o+uc(a[t.doctypeKey],t);case "cdata":return i+(t.indentCdata?o:"")+fc(a[t.cdataKey],t);case "text":return i+(t.indentText?o:"")+uo(a[t.textKey],t);case "instruction":var s={};return s[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],i+(t.indentInstruction?o:"")+sc(s,t,n)}},"")}function dc(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return true;break;case t.cdataKey:if(t.indentCdata||n)return true;break;case t.instructionKey:if(t.indentInstruction||n)return true;break;case t.doctypeKey:case t.commentKey:return true;default:return true}return false}function N0(e,t,n,r,i){ye=e,be=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return "fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var o=[];if(t){if(o.push("<"+a),typeof e!="object")return o.push(">"+uo(e,n)+"</"+a+">"),o.join("");e[n.attributesKey]&&o.push($r(e[n.attributesKey],n,r));var s=dc(e,n,true)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in n?s=n.fullTagEmptyElementFn(t,e):s=n.fullTagEmptyElement),s)o.push(">");else return o.push("/>"),o.join("")}return o.push(hc(e,n,r+1,false)),ye=e,be=t,t&&o.push((i?Ke(n,r,false):"")+"</"+a+">"),o.join("")}function hc(e,t,n,r){var i,a,o,s=[];for(a in e)if(e.hasOwnProperty(a))for(o=k0(e[a])?e[a]:[e[a]],i=0;i<o.length;++i){switch(a){case t.declarationKey:s.push(oc(o[i],t,n));break;case t.instructionKey:s.push((t.indentInstruction?Ke(t,n,r):"")+sc(o[i],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:s.push((t.indentText?Ke(t,n,r):"")+uo(o[i],t));break;case t.cdataKey:s.push((t.indentCdata?Ke(t,n,r):"")+fc(o[i],t));break;case t.doctypeKey:s.push(Ke(t,n,r)+uc(o[i],t));break;case t.commentKey:s.push(Ke(t,n,r)+lc(o[i],t));break;default:s.push(Ke(t,n,r)+N0(o[i],a,t,n,dc(o[i],t)));}r=r&&!s.length;}return s.join("")}pc.exports=function(e,t){t=A0(t);var n=[];return ye=e,be="_root_",t.compact?n.push(hc(e,t,0,true)):(e[t.declarationKey]&&n.push(oc(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(cc(e[t.elementsKey],t,0,!n.length))),n.join("")};});var gc=chunkQEBO3EQP_cjs.b((tv,mc)=>{var M0=co();mc.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e);}catch{throw new Error("The JSON structure is invalid")}else n=e;return M0(n,t)};});var yc=chunkQEBO3EQP_cjs.b((nv,wc)=>{var D0=fo(),P0=ac(),B0=co(),O0=gc();wc.exports={xml2js:D0,xml2json:P0,js2xml:B0,json2xml:O0};});var ut=new Set,nr=new Map,mi=new Set,gi=false;function Dd(e,t=[400,700],n=["normal","italic"]){let r=encodeURIComponent(e),i=[];for(let o of n){let s=o==="italic"?1:0;for(let d of t)i.push(`${s},${d}`);}i.sort();let a=i.join(";");return `https://fonts.googleapis.com/css2?family=${r}:ital,wght@${a}&display=swap`}async function wi(e,t){let n=e.trim();if(ut.has(n))return true;let r=nr.get(n);if(r)return r;let i=(async()=>{gi=true;try{let a=Dd(n,t?.weights,t?.styles),o=document.createElement("link");return o.rel="stylesheet",o.href=a,await new Promise(d=>{o.onload=()=>d(!0),o.onerror=()=>d(!1),document.head.appendChild(o),setTimeout(()=>d(!1),5e3);})?(await ko(n,3e3),ut.add(n),Fo([n]),!0):!1}catch(a){return console.warn(`Failed to load font "${n}":`,a),false}finally{nr.delete(n),nr.size===0&&(gi=false);}})();return nr.set(n,i),i}async function Pd(e,t){let n=e.filter(r=>!ut.has(r.trim()));n.length!==0&&await Promise.all(n.map(r=>wi(r,t)));}function Ty(e){return ut.has(e.trim())}function Ey(){return gi}function Sy(){return Array.from(ut)}function Cy(e){return mi.add(e),()=>{mi.delete(e);}}function Fo(e){for(let t of mi)try{t(e);}catch(n){console.warn("Font load callback error:",n);}}async function ko(e,t){if("fonts"in document)try{let n=`400 16px "${e}"`;return await Promise.race([document.fonts.load(n),new Promise(r=>setTimeout(r,t))]),document.fonts.check(n)}catch{}return await new Promise(n=>setTimeout(n,100)),true}function Fy(e,t="sans-serif"){if(typeof document>"u")return false;let n=(i,a)=>{let s=document.createElement("canvas").getContext("2d");if(!s)return false;s.textBaseline="top";let d="abcdefghijklmnopqrstuvwxyz0123456789";s.font=`72px ${a}`;let l=s.measureText(d).width;return s.font=`72px "${i}", ${a}`,s.measureText(d).width!==l};return n(e,t)?true:n(e,t==="sans-serif"?"serif":"sans-serif")}async function ky(e,t,n){let r=e.trim();if(ut.has(r))return true;try{let i=new Blob([t],{type:"font/ttf"}),a=URL.createObjectURL(i),o=document.createElement("style");return o.textContent=`
14
- @font-face {
15
- font-family: "${r}";
16
- src: url(${a}) format('truetype');
17
- font-weight: ${n?.weight??"normal"};
18
- font-style: ${n?.style??"normal"};
19
- font-display: swap;
20
- }
21
- `,document.head.appendChild(o),await ko(r,3e3),ut.add(r),Fo([r]),!0}catch(i){return console.warn(`Failed to load font "${r}" from buffer:`,i),false}}var Bd={Calibri:"Carlito",Cambria:"Caladea",Arial:"Arimo","Times New Roman":"Tinos","Courier New":"Cousine",Garamond:"EB Garamond","Book Antiqua":"EB Garamond",Georgia:"Tinos",Verdana:"Open Sans",Tahoma:"Open Sans","Trebuchet MS":"Source Sans Pro","Century Gothic":"Poppins","Franklin Gothic":"Libre Franklin",Palatino:"EB Garamond","Palatino Linotype":"EB Garamond","Lucida Sans":"Open Sans","Segoe UI":"Open Sans",Impact:"Anton","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Lucida Console":"Inconsolata",Monaco:"Fira Code"};function Od(e){let t=e.trim();return Bd[t]||t}async function Ld(e){let t=e.trim(),n=Od(t);if(n!==t){let r=await wi(n);return r&&ut.add(t),r}return wi(n)}async function yi(e){let t=[...new Set(e.map(n=>n.trim()))];await Promise.all(t.map(n=>Ld(n)));}async function Ay(){await Pd(["Carlito","Caladea","Arimo","Tinos","Cousine","EB Garamond"]);}function Xd(e){let t=new Set,n=e;if(!n?.package)return t;let r=n.package?.document?.content;if(Array.isArray(r)){for(let a of r)if(a?.type==="paragraph"&&Array.isArray(a.content)){for(let o of a.content)if(o?.type==="run"&&o.formatting?.fontFamily){let{ascii:s,hAnsi:d}=o.formatting.fontFamily;s&&t.add(s),d&&d!==s&&t.add(d);}}}let i=n.package?.styles?.styles;if(Array.isArray(i)){for(let a of i)if(a?.runProperties?.fontFamily){let{ascii:o,hAnsi:s}=a.runProperties.fontFamily;o&&t.add(o),s&&s!==o&&t.add(s);}}return t}async function Ry(e){let t=Xd(e);t.size!==0&&await yi(Array.from(t));}async function Ao(e){if(e instanceof ArrayBuffer)return e;if(e instanceof Uint8Array){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}if(e instanceof Blob)return e.arrayBuffer();throw new TypeError(`Unsupported DocxInput type: ${typeof e}`)}var ju=chunkQEBO3EQP_cjs.c(Uu(),1);async function qu(e){let t=await ju.default.loadAsync(e),n={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:t,originalBuffer:e};for(let[r,i]of Object.entries(t.files)){if(i.dir)continue;let a=r.toLowerCase();if(a.endsWith(".xml")||a.endsWith(".rels")){let o=await i.async("text");if(n.allXml.set(r,o),a==="word/document.xml")n.documentXml=o;else if(a==="word/styles.xml")n.stylesXml=o;else if(a==="word/theme/theme1.xml")n.themeXml=o;else if(a==="word/numbering.xml")n.numberingXml=o;else if(a==="word/fonttable.xml")n.fontTableXml=o;else if(a==="word/settings.xml")n.settingsXml=o;else if(a==="word/websettings.xml")n.webSettingsXml=o;else if(a==="word/footnotes.xml")n.footnotesXml=o;else if(a==="word/endnotes.xml")n.endnotesXml=o;else if(a==="word/comments.xml")n.commentsXml=o;else if(a==="word/commentsextensible.xml"||a==="word/commentsextended.xml")n.commentsExtensibleXml||(n.commentsExtensibleXml=o);else if(a==="word/_rels/document.xml.rels")n.documentRels=o;else if(a==="_rels/.rels")n.packageRels=o;else if(a==="[content_types].xml")n.contentTypesXml=o;else if(a==="docprops/core.xml")n.corePropsXml=o;else if(a==="docprops/app.xml")n.appPropsXml=o;else if(a==="docprops/custom.xml")n.customPropsXml=o;else if(a.match(/^word\/header\d+\.xml$/)){let s=r.split("/").pop()||r;n.headers.set(s,o);}else if(a.match(/^word\/footer\d+\.xml$/)){let s=r.split("/").pop()||r;n.footers.set(s,o);}}else if(a.startsWith("word/media/")){let o=await i.async("arraybuffer");n.media.set(r,o);}else if(a.startsWith("word/fonts/")){let o=await i.async("arraybuffer");n.fonts.set(r,o);}}return n}function Wu(e){switch(e.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}var Qr=chunkQEBO3EQP_cjs.c(yc(),1);function Ne(e){return (0, Qr.xml2js)(e,{compact:false,ignoreComment:true,ignoreInstruction:true,ignoreDoctype:true,alwaysArray:false,trim:false,captureSpacesBetweenElements:true,attributesKey:"attributes",textKey:"text"})}function bc(e){return (0, Qr.js2xml)({elements:[e]},{compact:false,spaces:0})}function st(e){try{let t=Ne(e);return t.elements&&t.elements.length>0?t.elements.find(n=>n.type==="element")??null:t}catch(t){return console.warn("Failed to parse XML:",t),null}}function Jr(e){let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function h(e,t,n){if(!e||!e.elements)return null;let r=`${t}:${n}`;for(let i of e.elements)if(i.type==="element"&&(i.name===r||Jr(i.name||"")===n))return i;return null}function V(e,t,n){if(!e||!e.elements)return [];let r=`${t}:${n}`,i=[];for(let a of e.elements)a.type==="element"&&(a.name===r||Jr(a.name||"")===n)&&i.push(a);return i}function ae(e){return !e||!e.elements?[]:e.elements.filter(t=>t.type==="element")}function u(e,t,n){if(!e||!e.attributes)return null;let r=e.attributes;if(t){let i=`${t}:${n}`;if(i in r)return r[i]}return n in r?r[n]:null}function ei(e){if(!e)return "";if("text"in e&&typeof e.text=="string")return e.text;if(!e.elements)return "";let t="";for(let n of e.elements)n.type==="text"&&"text"in n?t+=n.text??"":n.type==="element"&&(t+=ei(n));return t}function k(e,t,n,r=1){let i=u(e,t,n);if(i===null)return;let a=parseInt(i,10);if(!isNaN(a))return a*r}function B(e,t="w"){if(!e)return false;let n=u(e,t,"val");return n===null?true:!(n==="0"||n==="false"||n==="off")}var ti={image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",footnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",endnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",numbering:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",fontTable:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",settings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",webSettings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",oleObject:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",diagramData:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",coreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",extendedProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",customProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",customXml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml"};function ni(e){let t=new Map;if(!e||e.trim().length===0)return t;let n=st(e);if(!n)return console.warn("Failed to parse relationships XML"),t;let r=ae(n);for(let i of r){let a=i.name||"";if(!a.endsWith("Relationship")&&!a.includes(":Relationship"))continue;let o=u(i,null,"Id"),s=u(i,null,"Type"),d=u(i,null,"Target"),l=u(i,null,"TargetMode");if(!o||!s||!d){console.warn("Relationship missing required attributes:",{id:o,type:s,target:d});continue}let c={id:o,type:s,target:d};l==="External"?c.targetMode="External":l==="Internal"&&(c.targetMode="Internal"),t.set(o,c);}return t}function vc(e){return e.type===ti.hyperlink&&e.targetMode==="External"}var Tc={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},ri={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ho={name:"Office Theme",colorScheme:Tc,fontScheme:ri},L0=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function X0(e){if(!e)return null;switch(Jr(e.name||"")){case "srgbClr":return u(e,"a","val")??u(e,null,"val")??null;case "sysClr":{let n=u(e,"a","lastClr")??u(e,null,"lastClr");if(n)return n;switch(u(e,"a","val")??u(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{u(e,"a","val")??u(e,null,"val");return null}default:return null}}function z0(e){let t={...Tc};if(!e)return t;for(let n of L0){let r=h(e,"a",n);if(r){let i=ae(r);if(i.length>0){let a=X0(i[0]);a&&(t[n]=a);}}}return t}function xc(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=h(e,"a","latin");n&&(t.latin=u(n,"a","typeface")??u(n,null,"typeface")??"");let r=h(e,"a","ea");r&&(t.ea=u(r,"a","typeface")??u(r,null,"typeface")??"");let i=h(e,"a","cs");i&&(t.cs=u(i,"a","typeface")??u(i,null,"typeface")??"");let a=V(e,"a","font");for(let o of a){let s=u(o,"a","script")??u(o,null,"script"),d=u(o,"a","typeface")??u(o,null,"typeface");s&&d&&(t.fonts=t.fonts||{},t.fonts[s]=d);}return t}function H0(e){let t={...ri};if(!e)return t;let n=h(e,"a","majorFont");n&&(t.majorFont=xc(n));let r=h(e,"a","minorFont");return r&&(t.minorFont=xc(r)),t}function Ec(e){if(!e)return {...ho};try{let t=st(e);if(!t)return {...ho};let n=u(t,"a","name")??u(t,null,"name")??"Office Theme",r=h(t,"a","themeElements"),i=h(r,"a","clrScheme"),a=z0(i),o=h(r,"a","fontScheme"),s=H0(o);return {name:n,colorScheme:a,fontScheme:s}}catch(t){return console.warn("Failed to parse theme:",t),{...ho}}}function U0(e,t="latin"){if(!e?.fontScheme?.majorFont)return ri.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function _c(e,t="latin"){if(!e?.fontScheme?.minorFont)return ri.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function Ge(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),r=t.toLowerCase().includes("minor"),i="latin",a=t.toLowerCase();return a.includes("eastasia")?i="ea":(a.includes("bidi")||a.includes("cs"))&&(i="cs"),n?U0(e,i):r?_c(e,i):_c(e,"latin")}function ii(e,t){if(!e)return;let n={},r=h(e,"w","b");r&&(n.bold=B(r));let i=h(e,"w","bCs");i&&(n.boldCs=B(i));let a=h(e,"w","i");a&&(n.italic=B(a));let o=h(e,"w","iCs");o&&(n.italicCs=B(o));let s=h(e,"w","u");if(s){let X=u(s,"w","val");if(X){n.underline={style:X};let L=u(s,"w","color"),Q=u(s,"w","themeColor");(L||Q)&&(n.underline.color=po(L,Q,u(s,"w","themeTint"),u(s,"w","themeShade")));}}let d=h(e,"w","strike");d&&(n.strike=B(d));let l=h(e,"w","dstrike");l&&(n.doubleStrike=B(l));let c=h(e,"w","vertAlign");if(c){let X=u(c,"w","val");(X==="superscript"||X==="subscript"||X==="baseline")&&(n.vertAlign=X);}let g=h(e,"w","smallCaps");g&&(n.smallCaps=B(g));let y=h(e,"w","caps");y&&(n.allCaps=B(y));let v=h(e,"w","vanish");v&&(n.hidden=B(v));let w=h(e,"w","color");w&&(n.color=po(u(w,"w","val"),u(w,"w","themeColor"),u(w,"w","themeTint"),u(w,"w","themeShade")));let T=h(e,"w","highlight");if(T){let X=u(T,"w","val");X&&(n.highlight=X);}let A=h(e,"w","shd");A&&(n.shading=ai(A));let N=h(e,"w","sz");if(N){let X=k(N,"w","val");X!==void 0&&(n.fontSize=X);}let F=h(e,"w","szCs");if(F){let X=k(F,"w","val");X!==void 0&&(n.fontSizeCs=X);}let S=h(e,"w","rFonts");if(S){n.fontFamily={ascii:u(S,"w","ascii")??void 0,hAnsi:u(S,"w","hAnsi")??void 0,eastAsia:u(S,"w","eastAsia")??void 0,cs:u(S,"w","cs")??void 0};let X=u(S,"w","asciiTheme");X&&(n.fontFamily.asciiTheme=X,t&&!n.fontFamily.ascii&&(n.fontFamily.ascii=Ge(t,X)));let L=u(S,"w","hAnsiTheme");L&&(n.fontFamily.hAnsiTheme=L,t&&!n.fontFamily.hAnsi&&(n.fontFamily.hAnsi=Ge(t,L)));let Q=u(S,"w","eastAsiaTheme");Q&&(n.fontFamily.eastAsiaTheme=Q,t&&!n.fontFamily.eastAsia&&(n.fontFamily.eastAsia=Ge(t,Q)));let de=u(S,"w","cstheme");de&&(n.fontFamily.csTheme=de,t&&!n.fontFamily.cs&&(n.fontFamily.cs=Ge(t,de)));}let b=h(e,"w","spacing");if(b){let X=k(b,"w","val");X!==void 0&&(n.spacing=X);}let _=h(e,"w","position");if(_){let X=k(_,"w","val");X!==void 0&&(n.position=X);}let R=h(e,"w","w");if(R){let X=k(R,"w","val");X!==void 0&&(n.scale=X);}let C=h(e,"w","kern");if(C){let X=k(C,"w","val");X!==void 0&&(n.kerning=X);}let m=h(e,"w","effect");if(m){let X=u(m,"w","val");X&&(n.effect=X);}let D=h(e,"w","em");if(D){let X=u(D,"w","val");X&&(n.emphasisMark=X);}let O=h(e,"w","emboss");O&&(n.emboss=B(O));let M=h(e,"w","imprint");M&&(n.imprint=B(M));let U=h(e,"w","outline");U&&(n.outline=B(U));let oe=h(e,"w","shadow");oe&&(n.shadow=B(oe));let fe=h(e,"w","rtl");fe&&(n.rtl=B(fe));let Y=h(e,"w","cs");Y&&(n.cs=B(Y));let H=h(e,"w","rStyle");if(H){let X=u(H,"w","val");X&&(n.styleId=X);}return Object.keys(n).length>0?n:void 0}function po(e,t,n,r){let i={};return e&&e!=="auto"?i.rgb=e:e==="auto"&&(i.auto=true),t&&(i.themeColor=t),n&&(i.themeTint=n),r&&(i.themeShade=r),i}function ai(e){if(!e)return;let t={},n=u(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=u(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let i=u(e,"w","themeFill");i&&(t.fill=t.fill||{},t.fill.themeColor=i);let a=u(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let o=u(e,"w","themeFillShade");o&&t.fill&&(t.fill.themeShade=o);let s=u(e,"w","val");return s&&(t.pattern=s),Object.keys(t).length>0?t:void 0}function Me(e){if(!e)return;let t=u(e,"w","val");if(!t)return;let n={style:t},r=u(e,"w","color"),i=u(e,"w","themeColor");(r||i)&&(n.color=po(r,i,u(e,"w","themeTint"),u(e,"w","themeShade")));let a=k(e,"w","sz");a!==void 0&&(n.size=a);let o=k(e,"w","space");o!==void 0&&(n.space=o);let s=u(e,"w","shadow");s&&(n.shadow=s==="1"||s==="true");let d=u(e,"w","frame");return d&&(n.frame=d==="1"||d==="true"),n}function j0(e){if(!e)return;let t=V(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let i=k(r,"w","pos"),a=u(r,"w","val");if(i!==void 0&&a){let o={position:i,alignment:a},s=u(r,"w","leader");s&&(o.leader=s),n.push(o);}}return n.length>0?n:void 0}function mo(e,t){if(!e)return;let n={},r=h(e,"w","jc");if(r){let _=u(r,"w","val");_&&(n.alignment=_);}let i=h(e,"w","bidi");i&&(n.bidi=B(i));let a=h(e,"w","spacing");if(a){let _=k(a,"w","before");_!==void 0&&(n.spaceBefore=_);let R=k(a,"w","after");R!==void 0&&(n.spaceAfter=R);let C=k(a,"w","line");C!==void 0&&(n.lineSpacing=C);let m=u(a,"w","lineRule");m&&(n.lineSpacingRule=m);let D=u(a,"w","beforeAutospacing");D&&(n.beforeAutospacing=D==="1"||D==="true");let O=u(a,"w","afterAutospacing");O&&(n.afterAutospacing=O==="1"||O==="true");}let o=h(e,"w","ind");if(o){let _=k(o,"w","left");_!==void 0&&(n.indentLeft=_);let R=k(o,"w","right");R!==void 0&&(n.indentRight=R);let C=k(o,"w","firstLine");C!==void 0&&(n.indentFirstLine=C);let m=k(o,"w","hanging");m!==void 0&&(n.indentFirstLine=-m,n.hangingIndent=true);}let s=h(e,"w","pBdr");if(s){let _={},R=Me(h(s,"w","top"));R&&(_.top=R);let C=Me(h(s,"w","bottom"));C&&(_.bottom=C);let m=Me(h(s,"w","left"));m&&(_.left=m);let D=Me(h(s,"w","right"));D&&(_.right=D);let O=Me(h(s,"w","between"));O&&(_.between=O);let M=Me(h(s,"w","bar"));M&&(_.bar=M),Object.keys(_).length>0&&(n.borders=_);}let d=h(e,"w","shd");d&&(n.shading=ai(d));let l=h(e,"w","tabs");l&&(n.tabs=j0(l));let c=h(e,"w","keepNext");c&&(n.keepNext=B(c));let g=h(e,"w","keepLines");g&&(n.keepLines=B(g));let y=h(e,"w","widowControl");y&&(n.widowControl=B(y));let v=h(e,"w","pageBreakBefore");v&&(n.pageBreakBefore=B(v));let w=h(e,"w","contextualSpacing");w&&(n.contextualSpacing=B(w));let T=h(e,"w","numPr");if(T){let _=h(T,"w","numId"),R=h(T,"w","ilvl");if(_||R){if(n.numPr={},_){let C=k(_,"w","val");C!==void 0&&(n.numPr.numId=C);}if(R){let C=k(R,"w","val");C!==void 0&&(n.numPr.ilvl=C);}}}let A=h(e,"w","outlineLvl");if(A){let _=k(A,"w","val");_!==void 0&&(n.outlineLevel=_);}let N=h(e,"w","pStyle");if(N){let _=u(N,"w","val");_&&(n.styleId=_);}let F=h(e,"w","suppressLineNumbers");F&&(n.suppressLineNumbers=B(F));let S=h(e,"w","suppressAutoHyphens");S&&(n.suppressAutoHyphens=B(S));let b=h(e,"w","rPr");return b&&(n.runProperties=ii(b,t)),Object.keys(n).length>0?n:void 0}function lt(e){if(!e)return;let t=k(e,"w","w"),n=u(e,"w","type");if(t!==void 0&&n)return {value:t,type:n}}function kc(e){if(!e)return;let t={},n=Me(h(e,"w","top"));n&&(t.top=n);let r=Me(h(e,"w","bottom"));r&&(t.bottom=r);let i=Me(h(e,"w","left"));i&&(t.left=i);let a=Me(h(e,"w","right"));a&&(t.right=a);let o=Me(h(e,"w","insideH"));o&&(t.insideH=o);let s=Me(h(e,"w","insideV"));return s&&(t.insideV=s),Object.keys(t).length>0?t:void 0}function Ac(e){if(!e)return;let t={},n=lt(h(e,"w","top"));n&&(t.top=n);let r=lt(h(e,"w","bottom"));r&&(t.bottom=r);let i=lt(h(e,"w","left"));i&&(t.left=i);let a=lt(h(e,"w","right"));return a&&(t.right=a),Object.keys(t).length>0?t:void 0}function q0(e){if(!e)return;let t={},n=u(e,"w","val");if(n){let l=parseInt(n,16);isNaN(l)||(t.firstRow=(l&32)!==0,t.lastRow=(l&64)!==0,t.firstColumn=(l&128)!==0,t.lastColumn=(l&256)!==0,t.noHBand=(l&512)!==0,t.noVBand=(l&1024)!==0);}let r=u(e,"w","firstColumn");r&&(t.firstColumn=r==="1");let i=u(e,"w","firstRow");i&&(t.firstRow=i==="1");let a=u(e,"w","lastColumn");a&&(t.lastColumn=a==="1");let o=u(e,"w","lastRow");o&&(t.lastRow=o==="1");let s=u(e,"w","noHBand");s&&(t.noHBand=s==="1");let d=u(e,"w","noVBand");return d&&(t.noVBand=d==="1"),Object.keys(t).length>0?t:void 0}function Sc(e,t){if(!e)return;let n={},r=h(e,"w","tblW");r&&(n.width=lt(r));let i=h(e,"w","jc");if(i){let w=u(i,"w","val");(w==="left"||w==="center"||w==="right")&&(n.justification=w);}let a=h(e,"w","tblCellSpacing");a&&(n.cellSpacing=lt(a));let o=h(e,"w","tblInd");o&&(n.indent=lt(o));let s=h(e,"w","tblBorders");s&&(n.borders=kc(s));let d=h(e,"w","tblCellMar");d&&(n.cellMargins=Ac(d));let l=h(e,"w","tblLayout");if(l){let w=u(l,"w","type");(w==="fixed"||w==="autofit")&&(n.layout=w);}let c=h(e,"w","tblStyle");if(c){let w=u(c,"w","val");w&&(n.styleId=w);}let g=h(e,"w","tblLook");g&&(n.look=q0(g));let y=h(e,"w","shd");y&&(n.shading=ai(y));let v=h(e,"w","bidiVisual");return v&&(n.bidi=B(v)),Object.keys(n).length>0?n:void 0}function Cc(e){if(!e)return;let t={},n=h(e,"w","trHeight");if(n){t.height=lt(n);let s=u(n,"w","hRule");s&&(t.heightRule=s);}let r=h(e,"w","tblHeader");r&&(t.header=B(r));let i=h(e,"w","cantSplit");i&&(t.cantSplit=B(i));let a=h(e,"w","jc");if(a){let s=u(a,"w","val");(s==="left"||s==="center"||s==="right")&&(t.justification=s);}let o=h(e,"w","hidden");return o&&(t.hidden=B(o)),Object.keys(t).length>0?t:void 0}function Fc(e,t){if(!e)return;let n={},r=h(e,"w","tcW");r&&(n.width=lt(r));let i=h(e,"w","tcBorders");i&&(n.borders=kc(i));let a=h(e,"w","tcMar");a&&(n.margins=Ac(a));let o=h(e,"w","shd");o&&(n.shading=ai(o));let s=h(e,"w","vAlign");if(s){let w=u(s,"w","val");(w==="top"||w==="center"||w==="bottom")&&(n.verticalAlign=w);}let d=h(e,"w","textDirection");if(d){let w=u(d,"w","val");w&&(n.textDirection=w);}let l=h(e,"w","gridSpan");if(l){let w=k(l,"w","val");w!==void 0&&(n.gridSpan=w);}let c=h(e,"w","vMerge");if(c){let w=u(c,"w","val");n.vMerge=w==="restart"?"restart":"continue";}let g=h(e,"w","tcFitText");g&&(n.fitText=B(g));let y=h(e,"w","noWrap");y&&(n.noWrap=B(y));let v=h(e,"w","hideMark");return v&&(n.hideMark=B(v)),Object.keys(n).length>0?n:void 0}function W0(e,t){let n={styleId:u(e,"w","styleId")??"",type:u(e,"w","type")??"paragraph"},r=u(e,"w","default");r&&(n.default=r==="1"||r==="true");let i=h(e,"w","name");i&&(n.name=u(i,"w","val")??void 0);let a=h(e,"w","basedOn");a&&(n.basedOn=u(a,"w","val")??void 0);let o=h(e,"w","next");o&&(n.next=u(o,"w","val")??void 0);let s=h(e,"w","link");s&&(n.link=u(s,"w","val")??void 0);let d=h(e,"w","uiPriority");if(d){let b=k(d,"w","val");b!==void 0&&(n.uiPriority=b);}let l=h(e,"w","hidden");l&&(n.hidden=B(l));let c=h(e,"w","semiHidden");c&&(n.semiHidden=B(c));let g=h(e,"w","unhideWhenUsed");g&&(n.unhideWhenUsed=B(g));let y=h(e,"w","qFormat");y&&(n.qFormat=B(y));let v=h(e,"w","personal");v&&(n.personal=B(v));let w=h(e,"w","pPr");w&&(n.pPr=mo(w,t));let T=h(e,"w","rPr");T&&(n.rPr=ii(T,t));let A=h(e,"w","tblPr");A&&(n.tblPr=Sc(A));let N=h(e,"w","trPr");N&&(n.trPr=Cc(N));let F=h(e,"w","tcPr");F&&(n.tcPr=Fc(F));let S=V(e,"w","tblStylePr");if(S.length>0){n.tblStylePr=[];for(let b of S){let _=u(b,"w","type");if(_){let R={type:_},C=h(b,"w","pPr");C&&(R.pPr=mo(C,t));let m=h(b,"w","rPr");m&&(R.rPr=ii(m,t));let D=h(b,"w","tblPr");D&&(R.tblPr=Sc(D));let O=h(b,"w","trPr");O&&(R.trPr=Cc(O));let M=h(b,"w","tcPr");M&&(R.tcPr=Fc(M)),n.tblStylePr.push(R);}}}return n}function V0(e,t){if(!e)return;let n={},r=h(e,"w","rPrDefault");if(r){let a=h(r,"w","rPr");a&&(n.rPr=ii(a,t));}let i=h(e,"w","pPrDefault");if(i){let a=h(i,"w","pPr");a&&(n.pPr=mo(a,t));}return n.rPr||n.pPr?n:void 0}function Rc(e,t){if(!t)return e;if(!e)return t?{...t}:void 0;let n={...e};for(let r of Object.keys(t)){let i=t[r];i!==void 0&&(n[r]=typeof i=="object"&&i!==null?{...n[r]||{},...i}:i);}return n}function Z0(e,t){if(!t)return e;if(!e)return t?{...t}:void 0;let n={...e};for(let r of Object.keys(t)){let i=t[r];if(i!==void 0)if(r==="runProperties")n.runProperties=Rc(n.runProperties,t.runProperties);else if(r==="borders"||r==="numPr"||r==="frame"){let a=n[r],o=i;n[r]={...a||{},...o||{}};}else r==="tabs"&&Array.isArray(i)?n.tabs=[...i]:n[r]=i;}return n}function Ic(e,t,n,r=new Set){if(r.has(e.styleId)||(r.add(e.styleId),!e.basedOn))return e;let i=t.get(e.basedOn);if(!i)return e;let a=Ic(i,t,n,r),o={...e,pPr:Z0(a.pPr,e.pPr),rPr:Rc(a.rPr,e.rPr)};return e.type==="table"&&((a.tblPr||e.tblPr)&&(o.tblPr={...a.tblPr||{},...e.tblPr||{}}),(a.trPr||e.trPr)&&(o.trPr={...a.trPr||{},...e.trPr||{}}),(a.tcPr||e.tcPr)&&(o.tcPr={...a.tcPr||{},...e.tcPr||{}})),o}function go(e,t){let n=new Map;try{let r=st(e);if(!r)return n;let i=V(r,"w","style");for(let a of i){let o=W0(a,t);o.styleId&&n.set(o.styleId,o);}for(let[a,o]of n){let s=Ic(o,n,t);n.set(a,s);}}catch(r){console.warn("Failed to parse styles:",r);}return n}function Nc(e,t){let n={styles:[]};try{let r=st(e);if(!r)return n;let i=h(r,"w","docDefaults");n.docDefaults=V0(i,t);let a=h(r,"w","latentStyles");a&&(n.latentStyles={defLockedState:u(a,"w","defLockedState")==="1",defUIPriority:k(a,"w","defUIPriority"),defSemiHidden:u(a,"w","defSemiHidden")==="1",defUnhideWhenUsed:u(a,"w","defUnhideWhenUsed")==="1",defQFormat:u(a,"w","defQFormat")==="1",count:k(a,"w","count")});let o=go(e,t);n.styles=Array.from(o.values());}catch(r){console.warn("Failed to parse style definitions:",r);}return n}function Mc(e){let t={abstractNums:[],nums:[]};if(!e)return wo(t);let n=st(e);if(!n)return wo(t);let r=V(n,"w","abstractNum");for(let a of r){let o=K0(a);o&&t.abstractNums.push(o);}let i=V(n,"w","num");for(let a of i){let o=G0(a);o&&t.nums.push(o);}return wo(t)}function K0(e){let t=u(e,"w","abstractNumId");if(t===null)return null;let n=parseInt(t,10);if(isNaN(n))return null;let r={abstractNumId:n,levels:[]},i=h(e,"w","multiLevelType");if(i){let l=u(i,"w","val");(l==="hybridMultilevel"||l==="multilevel"||l==="singleLevel")&&(r.multiLevelType=l);}let a=h(e,"w","name");a&&(r.name=u(a,"w","val")??void 0);let o=h(e,"w","numStyleLink");o&&(r.numStyleLink=u(o,"w","val")??void 0);let s=h(e,"w","styleLink");s&&(r.styleLink=u(s,"w","val")??void 0);let d=V(e,"w","lvl");for(let l of d){let c=Dc(l);c&&r.levels.push(c);}return r.levels.sort((l,c)=>l.ilvl-c.ilvl),r}function G0(e){let t=u(e,"w","numId");if(t===null)return null;let n=parseInt(t,10);if(isNaN(n))return null;let r=h(e,"w","abstractNumId");if(!r)return null;let i=u(r,"w","val");if(i===null)return null;let a=parseInt(i,10);if(isNaN(a))return null;let o={numId:n,abstractNumId:a},s=V(e,"w","lvlOverride");if(s.length>0){o.levelOverrides=[];for(let d of s){let l=u(d,"w","ilvl");if(l===null)continue;let c=parseInt(l,10);if(isNaN(c))continue;let g={ilvl:c},y=h(d,"w","startOverride");if(y){let w=u(y,"w","val");if(w!==null){let T=parseInt(w,10);isNaN(T)||(g.startOverride=T);}}let v=h(d,"w","lvl");v&&(g.lvl=Dc(v)??void 0),o.levelOverrides.push(g);}}return o}function Dc(e){let t=u(e,"w","ilvl");if(t===null)return null;let n=parseInt(t,10);if(isNaN(n)||n<0||n>8)return null;let r={ilvl:n,numFmt:"decimal",lvlText:""},i=h(e,"w","start");if(i){let w=u(i,"w","val");if(w!==null){let T=parseInt(w,10);isNaN(T)||(r.start=T);}}let a=h(e,"w","numFmt");if(a){let w=u(a,"w","val");w&&(r.numFmt=Y0(w));}let o=h(e,"w","lvlText");o&&(r.lvlText=u(o,"w","val")??"");let s=h(e,"w","lvlJc");if(s){let w=u(s,"w","val");(w==="left"||w==="center"||w==="right")&&(r.lvlJc=w);}let d=h(e,"w","suff");if(d){let w=u(d,"w","val");(w==="tab"||w==="space"||w==="nothing")&&(r.suffix=w);}let l=h(e,"w","isLgl");l&&(r.isLgl=B(l));let c=h(e,"w","lvlRestart");if(c){let w=u(c,"w","val");if(w!==null){let T=parseInt(w,10);isNaN(T)||(r.lvlRestart=T);}}let g=h(e,"w","legacy");g&&(r.legacy={legacy:B(g),legacySpace:k(g,"w","legacySpace"),legacyIndent:k(g,"w","legacyIndent")});let y=h(e,"w","pPr");y&&(r.pPr=$0(y));let v=h(e,"w","rPr");return v&&(r.rPr=ew(v)),r}function Y0(e){return {decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",hex:"hex",chicago:"chicago",bullet:"bullet",none:"none",decimalZero:"decimalZero",ganada:"ganada",chosung:"chosung",ideographDigital:"ideographDigital",japaneseCounting:"japaneseCounting",aiueo:"aiueo",iroha:"iroha",decimalFullWidth:"decimalFullWidth",decimalHalfWidth:"decimalHalfWidth",japaneseLegal:"japaneseLegal",japaneseDigitalTenThousand:"japaneseDigitalTenThousand",decimalEnclosedCircle:"decimalEnclosedCircle",decimalFullWidth2:"decimalFullWidth2",aiueoFullWidth:"aiueoFullWidth",irohaFullWidth:"irohaFullWidth",decimalEnclosedFullstop:"decimalEnclosedFullstop",decimalEnclosedParen:"decimalEnclosedParen",decimalEnclosedCircleChinese:"decimalEnclosedCircleChinese",ideographEnclosedCircle:"ideographEnclosedCircle",ideographTraditional:"ideographTraditional",ideographZodiac:"ideographZodiac",ideographZodiacTraditional:"ideographZodiacTraditional",taiwaneseCounting:"taiwaneseCounting",ideographLegalTraditional:"ideographLegalTraditional",taiwaneseCountingThousand:"taiwaneseCountingThousand",taiwaneseDigital:"taiwaneseDigital",chineseCounting:"chineseCounting",chineseLegalSimplified:"chineseLegalSimplified",chineseCountingThousand:"chineseCountingThousand",koreanDigital:"koreanDigital",koreanCounting:"koreanCounting",koreanLegal:"koreanLegal",koreanDigital2:"koreanDigital2",vietnameseCounting:"vietnameseCounting",russianLower:"russianLower",russianUpper:"russianUpper",numberInDash:"numberInDash",hebrew1:"hebrew1",hebrew2:"hebrew2",arabicAlpha:"arabicAlpha",arabicAbjad:"arabicAbjad",hindiVowels:"hindiVowels",hindiConsonants:"hindiConsonants",hindiNumbers:"hindiNumbers",hindiCounting:"hindiCounting",thaiLetters:"thaiLetters",thaiNumbers:"thaiNumbers",thaiCounting:"thaiCounting"}[e]??"decimal"}function $0(e){let t={},n=h(e,"w","ind");if(n){let i=k(n,"w","left"),a=k(n,"w","right"),o=k(n,"w","firstLine"),s=k(n,"w","hanging");i!==void 0&&(t.indentLeft=i),a!==void 0&&(t.indentRight=a),s!==void 0?(t.indentFirstLine=-s,t.hangingIndent=true):o!==void 0&&(t.indentFirstLine=o);}let r=h(e,"w","tabs");if(r){t.tabs=[];let i=V(r,"w","tab");for(let a of i){let o=k(a,"w","pos"),s=u(a,"w","val"),d=u(a,"w","leader");o!==void 0&&s&&t.tabs.push({position:o,alignment:Q0(s),leader:J0(d)});}}return t}function Q0(e){switch(e){case "left":return "left";case "center":return "center";case "right":return "right";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "num";default:return "left"}}function J0(e){if(e)switch(e){case "none":return "none";case "dot":return "dot";case "hyphen":return "hyphen";case "underscore":return "underscore";case "heavy":return "heavy";case "middleDot":return "middleDot";default:return}}function ew(e){let t={},n=h(e,"w","rFonts");n&&(t.fontFamily={ascii:u(n,"w","ascii")??void 0,hAnsi:u(n,"w","hAnsi")??void 0,eastAsia:u(n,"w","eastAsia")??void 0,cs:u(n,"w","cs")??void 0});let r=h(e,"w","sz");if(r){let s=k(r,"w","val");s!==void 0&&(t.fontSize=s);}let i=h(e,"w","color");if(i){let s=u(i,"w","val"),d=u(i,"w","themeColor");s==="auto"?t.color={auto:true}:d?t.color={themeColor:d,themeTint:u(i,"w","themeTint")??void 0,themeShade:u(i,"w","themeShade")??void 0}:s&&(t.color={rgb:s});}let a=h(e,"w","b");a&&(t.bold=B(a));let o=h(e,"w","i");return o&&(t.italic=B(o)),t}function wo(e){let t=new Map;for(let r of e.abstractNums)t.set(r.abstractNumId,r);let n=new Map;for(let r of e.nums)n.set(r.numId,r);return {definitions:e,getLevel(r,i){let a=n.get(r);if(!a)return null;if(a.levelOverrides){let s=a.levelOverrides.find(d=>d.ilvl===i);if(s){if(s.lvl)return s.lvl;let d=t.get(a.abstractNumId);if(d){let l=d.levels.find(c=>c.ilvl===i);if(l&&s.startOverride!==void 0)return {...l,start:s.startOverride}}}}let o=t.get(a.abstractNumId);if(!o)return null;if(o.numStyleLink&&o.levels.length===0){for(let s of t.values())if(s.styleLink===o.numStyleLink&&s.levels.length>0){o=s;break}}return o.levels.find(s=>s.ilvl===i)??null},getAbstract(r){return t.get(r)??null},hasNumbering(r){return n.has(r)}}}var Pc=914400,Bc=96;function pv(e){return e==null||isNaN(e)?0:Math.round(e*Bc/Pc)}function mv(e){return Math.round(e*Pc/Bc)}function tw(e){if(!e)return;let t=parseInt(e,10);if(!isNaN(t))return t/6e4}function ne(e,t){let n=ae(e);for(let r of n)if(r.name===t)return r;return null}function nw(e,t){let n=ae(e);for(let r of n)if(t.includes(r.name||""))return r;return null}function Oc(e){if(!e)return {width:0,height:0};let t=k(e,null,"cx")??0,n=k(e,null,"cy")??0;return {width:t,height:n}}function Lc(e){if(!e)return;let t=k(e,null,"l")??0,n=k(e,null,"t")??0,r=k(e,null,"r")??0,i=k(e,null,"b")??0;if(!(t===0&&n===0&&r===0&&i===0))return {left:t,top:n,right:r,bottom:i}}function Xc(e){if(!e)return {};let t=u(e,null,"id")??void 0,n=u(e,null,"name")??void 0,r=u(e,null,"descr")??void 0,i=u(e,null,"title")??void 0,a=u(e,null,"decorative")==="1";return {id:t,name:n,alt:r,title:i,decorative:a||void 0}}function rw(e){if(!e)return;let t=u(e,null,"relativeFrom")??"column",n=ne(e,"wp:align");if(n){let i=n.elements?.[0]?.text??null;return {relativeTo:t,alignment:i}}let r=ne(e,"wp:posOffset");if(r){let i=String(r.elements?.[0]?.text??"0"),a=parseInt(i,10);return {relativeTo:t,posOffset:isNaN(a)?0:a}}return {relativeTo:t}}function iw(e){if(!e)return;let t=u(e,null,"relativeFrom")??"paragraph",n=ne(e,"wp:align");if(n){let i=n.elements?.[0]?.text??null;return {relativeTo:t,alignment:i}}let r=ne(e,"wp:posOffset");if(r){let i=String(r.elements?.[0]?.text??"0"),a=parseInt(i,10);return {relativeTo:t,posOffset:isNaN(a)?0:a}}return {relativeTo:t}}var aw=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function ow(e,t,n){if(!e){let A={type:t?"behind":"inFront"};return n?.distT!==void 0&&(A.distT=n.distT),n?.distB!==void 0&&(A.distB=n.distB),n?.distL!==void 0&&(A.distL=n.distL),n?.distR!==void 0&&(A.distR=n.distR),A}let i=(e.name||"").replace("wp:",""),a=k(e,null,"distT")??void 0,o=k(e,null,"distB")??void 0,s=k(e,null,"distL")??void 0,d=k(e,null,"distR")??void 0,l=a??n?.distT,c=o??n?.distB,g=s??n?.distL,y=d??n?.distR,v=u(e,null,"wrapText")??void 0,w;switch(i){case "wrapNone":w=t?"behind":"inFront";break;case "wrapSquare":w="square";break;case "wrapTight":w="tight";break;case "wrapThrough":w="through";break;case "wrapTopAndBottom":w="topAndBottom";break;default:w="square";}let T={type:w};return v&&(T.wrapText=v),l!==void 0&&(T.distT=l),c!==void 0&&(T.distB=c),g!==void 0&&(T.distL=g),y!==void 0&&(T.distR=y),T}function zc(e){if(!e)return;let t=u(e,null,"rot"),n=u(e,null,"flipH")==="1",r=u(e,null,"flipV")==="1",i=tw(t);if(i===void 0&&!n&&!r)return;let a={};return i!==void 0&&(a.rotation=i),n&&(a.flipH=true),r&&(a.flipV=true),a}function Hc(e){let t=ne(e,"a:graphic");if(!t)return null;let n=ne(t,"a:graphicData");if(!n)return null;let r=ne(n,"pic:pic");if(!r)return null;let i=ne(r,"pic:blipFill");return i?ne(i,"a:blip"):null}function Uc(e){if(!e)return "";let t=u(e,"r","embed");if(t)return t;let n=u(e,null,"embed");if(n)return n;let r=u(e,"r","link");return r||""}function jc(e){let t=ne(e,"a:graphic");if(!t)return null;let n=ne(t,"a:graphicData");if(!n)return null;let r=ne(n,"pic:pic");if(!r)return null;let i=ne(r,"pic:spPr");return i?ne(i,"a:xfrm"):null}function sw(e){if(!e)return e;let t=e.replace(/^\/+/,"");return t.startsWith("media/")?t=`word/${t}`:t.startsWith("word/")||(t=`word/${t}`),t}function lw(e){let t=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[t]??"application/octet-stream"}function qc(e,t,n){if(!e||!t)return {};let r=t.get(e);if(!r)return {};let i=r.target;if(!i)return {};let a=sw(i),o=i.split("/").pop(),s=(d,l)=>{let c=l.toLowerCase();for(let[g,y]of d.entries())if(g.toLowerCase()===c)return y};if(n){let d=s(n,a);if(d)return {src:d.dataUrl||d.base64,mimeType:d.mimeType,filename:o};let l=i.replace(/^\/+/,""),c=s(n,l);if(c)return {src:c.dataUrl||c.base64,mimeType:c.mimeType,filename:o};let g=`word/${l}`,y=s(n,g);if(y)return {src:y.dataUrl||y.base64,mimeType:y.mimeType,filename:o}}return {mimeType:lw(i),filename:o}}function fw(e,t,n){let r=ne(e,"wp:extent"),i=Oc(r),a=ne(e,"wp:effectExtent"),o=Lc(a),s=ne(e,"wp:docPr"),d=Xc(s),l=Hc(e),c=Uc(l),g=qc(c,t,n),y=jc(e),v=zc(y),w=k(e,null,"distT")??void 0,T=k(e,null,"distB")??void 0,A=k(e,null,"distL")??void 0,N=k(e,null,"distR")??void 0,F={type:"inline"};w!==void 0&&(F.distT=w),T!==void 0&&(F.distB=T),A!==void 0&&(F.distL=A),N!==void 0&&(F.distR=N);let S={type:"image",rId:c,size:i,wrap:F};return d.id&&(S.id=d.id),d.alt&&(S.alt=d.alt),d.title&&(S.title=d.title),d.decorative&&(S.decorative=true),g.src&&(S.src=g.src),g.mimeType&&(S.mimeType=g.mimeType),g.filename&&(S.filename=g.filename),o&&(S.padding=o),v&&(S.transform=v),S}function uw(e,t,n){let r=ne(e,"wp:extent"),i=Oc(r),a=ne(e,"wp:effectExtent"),o=Lc(a),s=ne(e,"wp:docPr"),d=Xc(s),l=u(e,null,"behindDoc")==="1",c={distT:k(e,null,"distT")??void 0,distB:k(e,null,"distB")??void 0,distL:k(e,null,"distL")??void 0,distR:k(e,null,"distR")??void 0},g=nw(e,aw),y=ow(g,l,c),v=ne(e,"wp:positionH"),w=ne(e,"wp:positionV"),T=rw(v),A=iw(w),N;(T||A)&&(N={horizontal:T??{relativeTo:"column"},vertical:A??{relativeTo:"paragraph"}});let F=Hc(e),S=Uc(F),b=qc(S,t,n),_=jc(e),R=zc(_),C={type:"image",rId:S,size:i,wrap:y};return d.id&&(C.id=d.id),d.alt&&(C.alt=d.alt),d.title&&(C.title=d.title),d.decorative&&(C.decorative=true),b.src&&(C.src=b.src),b.mimeType&&(C.mimeType=b.mimeType),b.filename&&(C.filename=b.filename),N&&(C.position=N),o&&(C.padding=o),R&&(C.transform=R),C}function cw(e,t,n){let r=ae(e);for(let i of r){let a=i.name||"";if(a==="wp:inline")return fw(i,t,n);if(a==="wp:anchor")return uw(i,t,n)}return null}function Wc(e,t,n){return cw(e,t,n)}function Vc(e,t,n,r){let i={};return e&&e!=="auto"?i.rgb=e:e==="auto"&&(i.auto=true),t&&(i.themeColor=t),n&&(i.themeTint=n),r&&(i.themeShade=r),i}function dw(e){if(!e)return;let t={},n=u(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=u(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let i=u(e,"w","themeFill");i&&(t.fill=t.fill||{},t.fill.themeColor=i);let a=u(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let o=u(e,"w","themeFillShade");o&&t.fill&&(t.fill.themeShade=o);let s=u(e,"w","val");return s&&(t.pattern=s),Object.keys(t).length>0?t:void 0}function oi(e,t,n){if(!e)return;let r={},i=h(e,"w","b");i&&(r.bold=B(i));let a=h(e,"w","bCs");a&&(r.boldCs=B(a));let o=h(e,"w","i");o&&(r.italic=B(o));let s=h(e,"w","iCs");s&&(r.italicCs=B(s));let d=h(e,"w","u");if(d){let L=u(d,"w","val");if(L){r.underline={style:L};let Q=u(d,"w","color"),de=u(d,"w","themeColor");(Q||de)&&(r.underline.color=Vc(Q,de,u(d,"w","themeTint"),u(d,"w","themeShade")));}}let l=h(e,"w","strike");l&&(r.strike=B(l));let c=h(e,"w","dstrike");c&&(r.doubleStrike=B(c));let g=h(e,"w","vertAlign");if(g){let L=u(g,"w","val");(L==="superscript"||L==="subscript"||L==="baseline")&&(r.vertAlign=L);}let y=h(e,"w","smallCaps");y&&(r.smallCaps=B(y));let v=h(e,"w","caps");v&&(r.allCaps=B(v));let w=h(e,"w","vanish");w&&(r.hidden=B(w));let T=h(e,"w","color");T&&(r.color=Vc(u(T,"w","val"),u(T,"w","themeColor"),u(T,"w","themeTint"),u(T,"w","themeShade")));let A=h(e,"w","highlight");if(A){let L=u(A,"w","val");L&&(r.highlight=L);}let N=h(e,"w","shd");N&&(r.shading=dw(N));let F=h(e,"w","sz");if(F){let L=k(F,"w","val");L!==void 0&&(r.fontSize=L);}let S=h(e,"w","szCs");if(S){let L=k(S,"w","val");L!==void 0&&(r.fontSizeCs=L);}let b=h(e,"w","rFonts");if(b){r.fontFamily={ascii:u(b,"w","ascii")??void 0,hAnsi:u(b,"w","hAnsi")??void 0,eastAsia:u(b,"w","eastAsia")??void 0,cs:u(b,"w","cs")??void 0};let L=u(b,"w","asciiTheme");L&&(r.fontFamily.asciiTheme=L,t&&!r.fontFamily.ascii&&(r.fontFamily.ascii=Ge(t,L)));let Q=u(b,"w","hAnsiTheme");Q&&(r.fontFamily.hAnsiTheme=Q,t&&!r.fontFamily.hAnsi&&(r.fontFamily.hAnsi=Ge(t,Q)));let de=u(b,"w","eastAsiaTheme");de&&(r.fontFamily.eastAsiaTheme=de,t&&!r.fontFamily.eastAsia&&(r.fontFamily.eastAsia=Ge(t,de)));let _t=u(b,"w","cstheme");_t&&(r.fontFamily.csTheme=_t,t&&!r.fontFamily.cs&&(r.fontFamily.cs=Ge(t,_t)));}let _=h(e,"w","spacing");if(_){let L=k(_,"w","val");L!==void 0&&(r.spacing=L);}let R=h(e,"w","position");if(R){let L=k(R,"w","val");L!==void 0&&(r.position=L);}let C=h(e,"w","w");if(C){let L=k(C,"w","val");L!==void 0&&(r.scale=L);}let m=h(e,"w","kern");if(m){let L=k(m,"w","val");L!==void 0&&(r.kerning=L);}let D=h(e,"w","effect");if(D){let L=u(D,"w","val");L&&(r.effect=L);}let O=h(e,"w","em");if(O){let L=u(O,"w","val");L&&(r.emphasisMark=L);}let M=h(e,"w","emboss");M&&(r.emboss=B(M));let U=h(e,"w","imprint");U&&(r.imprint=B(U));let oe=h(e,"w","outline");oe&&(r.outline=B(oe));let fe=h(e,"w","shadow");fe&&(r.shadow=B(fe));let Y=h(e,"w","rtl");Y&&(r.rtl=B(Y));let H=h(e,"w","cs");H&&(r.cs=B(H));let X=h(e,"w","rStyle");if(X){let L=u(X,"w","val");L&&(r.styleId=L);}return Object.keys(r).length>0?r:void 0}function hw(e){let t=u(e,"w","id"),n=t?parseInt(t,10):0,r=(u(e,"w","author")??"").trim(),i=(u(e,"w","date")??"").trim(),a=(u(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:i.length>0?i:void 0,rsid:a.length>0?a:void 0}}function pw(e,t,n,r){if(!e)return;let i=V(e,"w","rPrChange").map(a=>{let o=h(a,"w","rPr");return {type:"runPropertyChange",info:hw(a),previousFormatting:oi(o,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return i.length>0?i:void 0}function mw(e){let t=ei(e),n=u(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function gw(){return {type:"tab"}}function ww(e){let t=u(e,"w","type"),n=u(e,"w","clear"),r={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(r.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(r.clear=n),r}function yw(e){let t=u(e,"w","font")??"",n=u(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function bw(e){return {type:"footnoteRef",id:k(e,"w","id")??0}}function vw(e){return {type:"endnoteRef",id:k(e,"w","id")??0}}function xw(e){let t=u(e,"w","fldCharType"),n=u(e,"w","fldLock")==="true"||u(e,"w","fldLock")==="1",r=u(e,"w","dirty")==="true"||u(e,"w","dirty")==="1",i="begin";return t==="separate"?i="separate":t==="end"&&(i="end"),{type:"fieldChar",charType:i,fldLock:n||void 0,dirty:r||void 0}}function _w(e){return {type:"instrText",text:ei(e)}}function Tw(e,t,n){let r=Wc(e,t??void 0,n??void 0);return r?{type:"drawing",image:r}:null}function Ew(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function Sw(e,t,n){let r=[],i=ae(e);for(let a of i)switch(Ew(a.name)){case "t":r.push(mw(a));break;case "tab":r.push(gw());break;case "br":r.push(ww(a));break;case "sym":r.push(yw(a));break;case "footnoteReference":r.push(bw(a));break;case "endnoteReference":r.push(vw(a));break;case "fldChar":r.push(xw(a));break;case "instrText":r.push(_w(a));break;case "softHyphen":r.push({type:"softHyphen"});break;case "noBreakHyphen":r.push({type:"noBreakHyphen"});break;case "drawing":let s=Tw(a,t,n);s&&r.push(s);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":r.push({type:"break",breakType:"textWrapping"});break;}return r}function Jn(e,t,n,r=null,i=null){let a={type:"run",content:[]},o=h(e,"w","rPr");return o&&(a.formatting=oi(o,n),a.propertyChanges=pw(o,n,t,a.formatting)),a.content=Sw(e,r,i),a}function Cw(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function Fw(e){let t=k(e,"w","id")??0,n=u(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},i=k(e,"w","colFirst");i!==void 0&&(r.colFirst=i);let a=k(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function kw(e){return {type:"bookmarkEnd",id:k(e,"w","id")??0}}function Zc(e,t,n=null,r=null,i=null){let a={type:"hyperlink",children:[]},o=u(e,"r","id");if(o&&(a.rId=o,t)){let v=t.get(o);v&&(vc(v),a.href=v.target);}let s=u(e,"w","anchor");s&&(a.anchor=s,a.href||(a.href=`#${s}`));let d=u(e,"w","tooltip");d&&(a.tooltip=d);let l=u(e,"w","tgtFrame");l&&(a.target=l);let c=u(e,"w","history");(c==="1"||c==="true")&&(a.history=true);let g=u(e,"w","docLocation");g&&(a.docLocation=g);let y=ae(e);for(let v of y)switch(Cw(v.name)){case "r":a.children.push(Jn(v,n,r,t,i));break;case "bookmarkStart":a.children.push(Fw(v));break;case "bookmarkEnd":a.children.push(kw(v));break}return a}function Kc(e){let t=k(e,"w","id")??0,n=u(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},i=k(e,"w","colFirst");i!==void 0&&(r.colFirst=i);let a=k(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function Gc(e){return {type:"bookmarkEnd",id:k(e,"w","id")??0}}function Aw(e){if(!e)return;let t=k(e,"w","w")??0,n=u(e,"w","type")??"dxa",r="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(r=n),{value:t,type:r}}function ft(e){return Aw(e)}function pn(e){let t=u(e,"w","id"),n=t?parseInt(t,10):0,r=(u(e,"w","author")??"").trim(),i=(u(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:i.length>0?i:void 0}}function yo(e){let t=pn(e),n=(u(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function hn(e){if(!e)return;let r={style:u(e,"w","val")??"none"},i=k(e,"w","sz");i!==void 0&&(r.size=i);let a=k(e,"w","space");a!==void 0&&(r.space=a);let o=u(e,"w","color"),s=u(e,"w","themeColor"),d=u(e,"w","themeTint"),l=u(e,"w","themeShade");(o||s||d||l)&&(r.color={rgb:o??void 0,themeColor:s,themeTint:d??void 0,themeShade:l??void 0});let c=u(e,"w","shadow");(c==="1"||c==="true")&&(r.shadow=true);let g=u(e,"w","frame");return (g==="1"||g==="true")&&(r.frame=true),r}function Yc(e){if(!e)return;let t={},n=hn(h(e,"w","top"));n&&(t.top=n);let r=hn(h(e,"w","bottom"));r&&(t.bottom=r);let i=hn(h(e,"w","left")??h(e,"w","start"));i&&(t.left=i);let a=hn(h(e,"w","right")??h(e,"w","end"));a&&(t.right=a);let o=hn(h(e,"w","insideH"));o&&(t.insideH=o);let s=hn(h(e,"w","insideV"));if(s&&(t.insideV=s),Object.keys(t).length!==0)return t}function $c(e){if(!e)return;let t={},n=ft(h(e,"w","top"));n&&(t.top=n);let r=ft(h(e,"w","bottom"));r&&(t.bottom=r);let i=ft(h(e,"w","left")??h(e,"w","start"));i&&(t.left=i);let a=ft(h(e,"w","right")??h(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function Qc(e){if(!e)return;let t={},n=u(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let r=u(e,"w","themeFill");if(r){t.fill={themeColor:r};let o=u(e,"w","themeFillTint");o&&t.fill&&(t.fill.themeTint=o);let s=u(e,"w","themeFillShade");s&&t.fill&&(t.fill.themeShade=s);}let i=u(e,"w","color");i&&i!=="auto"&&(t.color={rgb:i});let a=u(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function Rw(e){if(!e)return;let t={},n=u(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=u(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let i=u(e,"w","firstColumn");(i==="1"||i==="true")&&(t.firstColumn=true);let a=u(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let o=u(e,"w","noHBand");(o==="1"||o==="true")&&(t.noHBand=true);let s=u(e,"w","noVBand");(s==="1"||s==="true")&&(t.noVBand=true);let d=u(e,"w","val");if(d){let l=parseInt(d,16);isNaN(l)||(l&32&&(t.firstRow=true),l&64&&(t.lastRow=true),l&128&&(t.firstColumn=true),l&256&&(t.lastColumn=true),l&512&&(t.noHBand=true),l&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function Iw(e){if(!e)return;let t={},n=u(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let r=u(e,"w","vertAnchor");(r==="margin"||r==="page"||r==="text")&&(t.vertAnchor=r);let i=k(e,"w","tblpX");i!==void 0&&(t.tblpX=i);let a=u(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let o=k(e,"w","tblpY");o!==void 0&&(t.tblpY=o);let s=u(e,"w","tblpYSpec");s&&(t.tblpYSpec=s);let d=k(e,"w","topFromText");d!==void 0&&(t.topFromText=d);let l=k(e,"w","bottomFromText");l!==void 0&&(t.bottomFromText=l);let c=k(e,"w","leftFromText");c!==void 0&&(t.leftFromText=c);let g=k(e,"w","rightFromText");if(g!==void 0&&(t.rightFromText=g),Object.keys(t).length!==0)return t}function Jc(e){if(!e)return;let t={},n=ft(h(e,"w","tblW"));n&&(t.width=n);let r=h(e,"w","jc");if(r){let T=u(r,"w","val");(T==="left"||T==="center"||T==="right"||T==="start")&&(t.justification=T==="start"?"left":T);}let i=ft(h(e,"w","tblCellSpacing"));i&&(t.cellSpacing=i);let a=ft(h(e,"w","tblInd"));a&&(t.indent=a);let o=Yc(h(e,"w","tblBorders"));o&&(t.borders=o);let s=$c(h(e,"w","tblCellMar"));s&&(t.cellMargins=s);let d=h(e,"w","tblLayout");if(d){let T=u(d,"w","type");(T==="fixed"||T==="autofit")&&(t.layout=T);}let l=h(e,"w","tblStyle");if(l){let T=u(l,"w","val");T&&(t.styleId=T);}let c=Rw(h(e,"w","tblLook"));c&&(t.look=c);let g=Qc(h(e,"w","shd"));g&&(t.shading=g);let y=h(e,"w","tblOverlap");if(y){let T=u(y,"w","val");(T==="never"||T==="overlap")&&(t.overlap=T);}let v=Iw(h(e,"w","tblpPr"));if(v&&(t.floating=v),B(h(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function Nw(e,t){if(!e)return;let n=V(e,"w","tblPrChange").map(r=>{let i=h(r,"w","tblPr");return {type:"tablePropertyChange",info:yo(r),previousFormatting:Jc(i),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Mw(e,t){if(!e)return;let n=V(e,"w","trPrChange").map(r=>{let i=h(r,"w","trPr");return {type:"tableRowPropertyChange",info:yo(r),previousFormatting:ed(i),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Dw(e,t){if(!e)return;let n=V(e,"w","tcPrChange").map(r=>{let i=h(r,"w","tcPr");return {type:"tableCellPropertyChange",info:yo(r),previousFormatting:nd(i),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Pw(e){if(!e)return;let t=h(e,"w","ins");if(t)return {type:"tableRowInsertion",info:pn(t)};let n=h(e,"w","del");if(n)return {type:"tableRowDeletion",info:pn(n)}}function Bw(e){if(!e)return;let t=h(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:pn(t)};let n=h(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:pn(n)};let r=h(e,"w","cellMerge");if(r)return {type:"tableCellMerge",info:pn(r)}}function ed(e){if(!e)return;let t={},n=h(e,"w","trHeight");if(n){let d=ft(n);d&&(t.height=d);let l=u(n,"w","hRule");(l==="auto"||l==="atLeast"||l==="exact")&&(t.heightRule=l);}B(h(e,"w","tblHeader"))&&(t.header=true),B(h(e,"w","cantSplit"))&&(t.cantSplit=true);let a=h(e,"w","jc");if(a){let d=u(a,"w","val");(d==="left"||d==="center"||d==="right")&&(t.justification=d);}B(h(e,"w","hidden"))&&(t.hidden=true);let s=td(h(e,"w","cnfStyle"));if(s&&(t.conditionalFormat=s),Object.keys(t).length!==0)return t}function td(e){if(!e)return;let t={},n=u(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=u(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let i=u(e,"w","firstColumn");(i==="1"||i==="true")&&(t.firstColumn=true);let a=u(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let o=u(e,"w","oddHBand");(o==="1"||o==="true")&&(t.oddHBand=true);let s=u(e,"w","evenHBand");(s==="1"||s==="true")&&(t.evenHBand=true);let d=u(e,"w","oddVBand");(d==="1"||d==="true")&&(t.oddVBand=true);let l=u(e,"w","evenVBand");(l==="1"||l==="true")&&(t.evenVBand=true);let c=u(e,"w","firstRowFirstColumn");(c==="1"||c==="true")&&(t.nwCell=true);let g=u(e,"w","firstRowLastColumn");(g==="1"||g==="true")&&(t.neCell=true);let y=u(e,"w","lastRowFirstColumn");(y==="1"||y==="true")&&(t.swCell=true);let v=u(e,"w","lastRowLastColumn");(v==="1"||v==="true")&&(t.seCell=true);let w=u(e,"w","val");if(w&&w.length===12&&(w[0]==="1"&&(t.firstRow=true),w[1]==="1"&&(t.lastRow=true),w[2]==="1"&&(t.firstColumn=true),w[3]==="1"&&(t.lastColumn=true),w[4]==="1"&&(t.oddVBand=true),w[5]==="1"&&(t.evenVBand=true),w[6]==="1"&&(t.oddHBand=true),w[7]==="1"&&(t.evenHBand=true),w[8]==="1"&&(t.nwCell=true),w[9]==="1"&&(t.neCell=true),w[10]==="1"&&(t.swCell=true),w[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function nd(e){if(!e)return;let t={},n=ft(h(e,"w","tcW"));n&&(t.width=n);let r=Yc(h(e,"w","tcBorders"));r&&(t.borders=r);let i=$c(h(e,"w","tcMar"));i&&(t.margins=i);let a=Qc(h(e,"w","shd"));a&&(t.shading=a);let o=h(e,"w","vAlign");if(o){let w=u(o,"w","val");(w==="top"||w==="center"||w==="bottom")&&(t.verticalAlign=w);}let s=h(e,"w","textDirection");if(s){let w=u(s,"w","val");w&&(t.textDirection=w);}let d=h(e,"w","gridSpan");if(d){let w=k(d,"w","val");w!==void 0&&w>1&&(t.gridSpan=w);}let l=h(e,"w","vMerge");l&&(u(l,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),B(h(e,"w","tcFitText"))&&(t.fitText=true),B(h(e,"w","noWrap"))&&(t.noWrap=true),B(h(e,"w","hideMark"))&&(t.hideMark=true);let v=td(h(e,"w","cnfStyle"));if(v&&(t.conditionalFormat=v),Object.keys(t).length!==0)return t}function Ow(e,t,n,r,i,a){let o=[],s=e.elements||[];for(let d of s){if(!d.name)continue;let l=d.name.split(":").pop();if(l==="p"){let c=Xe(d,t,n,r,i,a);o.push(c);}else if(l==="tbl"){let c=er(d,t,n,r,i,a);o.push(c);}}return o.length===0&&o.push({type:"paragraph",content:[]}),o}function Lw(e,t,n,r,i,a){let o={type:"tableCell",content:[]},s=h(e,"w","tcPr"),d=nd(s);return d&&(o.formatting=d),o.propertyChanges=Dw(s,d),o.structuralChange=Bw(s),o.content=Ow(e,t,n,r,i,a),o}function Xw(e,t,n,r,i,a){let o={type:"tableRow",cells:[]},s=h(e,"w","trPr"),d=ed(s);d&&(o.formatting=d),o.propertyChanges=Mw(s,d),o.structuralChange=Pw(s);let l=V(e,"w","tc");for(let c of l){let g=Lw(c,t,n,r,i,a);o.cells.push(g);}return o}function zw(e){if(!e)return;let t=[],n=V(e,"w","gridCol");for(let r of n){let i=k(r,"w","w")??0;t.push(i);}return t.length>0?t:void 0}function er(e,t,n,r,i,a){let o={type:"table",rows:[]},s=h(e,"w","tblPr"),d=Jc(s);d&&(o.formatting=d),o.propertyChanges=Nw(s,d);let l=zw(h(e,"w","tblGrid"));l&&(o.columnWidths=l);let c=V(e,"w","tr");for(let g of c){let y=Xw(g,t,n,r,i,a);o.rows.push(y);}return o}function rd(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function id(e){let t=u(e,"w","type"),n=u(e,"r","id")??"";return {type:rd(t),rId:n}}function ad(e){let t=u(e,"w","type"),n=u(e,"r","id")??"";return {type:rd(t),rId:n}}function bo(e,t,n,r,i,a){let o=[],s=e.elements??[];for(let d of s){if(d.type!=="element")continue;let l=d.name??"";if(l==="w:p"||l.endsWith(":p")){let c=Xe(d,t,n,r,i,a);o.push(c);}else if(l==="w:tbl"||l.endsWith(":tbl")){let c=er(d,t,n,r,i,a);o.push(c);}else if(l==="w:sdt"||l.endsWith(":sdt")){let c=(d.elements??[]).find(g=>g.type==="element"&&(g.name==="w:sdtContent"||g.name?.endsWith(":sdtContent")));if(c){let g=bo(c,t,n,r,i,a);o.push(...g);}}}return o}function od(e,t="default",n=null,r=null,i=null,a=null,o=null){let s={type:"header",hdrFtrType:t,content:[]};if(!e)return s;let d=Ne(e);if(!d)return s;let l=d.elements?.find(c=>c.type==="element"&&(c.name==="w:hdr"||c.name?.endsWith(":hdr")));return l&&(s.content=bo(l,n,r,i,a,o)),s}function sd(e,t="default",n=null,r=null,i=null,a=null,o=null){let s={type:"footer",hdrFtrType:t,content:[]};if(!e)return s;let d=Ne(e);if(!d)return s;let l=d.elements?.find(c=>c.type==="element"&&(c.name==="w:ftr"||c.name?.endsWith(":ftr")));return l&&(s.content=bo(l,n,r,i,a,o)),s}function ld(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function Hw(e,t,n,r,i,a){let o=k(e,"w","id")??0,s=u(e,"w","type"),d=ld(s),c=V(e,"w","p").map(g=>Xe(g,t,n,r,i));return {type:"footnote",id:o,noteType:d,content:c}}function fd(e,t=null,n=null,r=null,i=null,a=null){let o=new Map,s=[];if(!e)return si(o,s);let d=Ne(e);if(!d)return si(o,s);let l=d.elements?.find(g=>g.type==="element"&&(g.name==="w:footnotes"||g.name?.endsWith(":footnotes")));if(!l)return si(o,s);let c=V(l,"w","footnote");for(let g of c){let y=Hw(g,t,n,r,i);o.set(y.id,y),s.push(y);}return si(o,s)}function si(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Uw(e,t,n,r,i,a){let o=k(e,"w","id")??0,s=u(e,"w","type"),d=ld(s),c=V(e,"w","p").map(g=>Xe(g,t,n,r,i));return {type:"endnote",id:o,noteType:d,content:c}}function ud(e,t=null,n=null,r=null,i=null,a=null){let o=new Map,s=[];if(!e)return li(o,s);let d=Ne(e);if(!d)return li(o,s);let l=d.elements?.find(g=>g.type==="element"&&(g.name==="w:endnotes"||g.name?.endsWith(":endnotes")));if(!l)return li(o,s);let c=V(l,"w","endnote");for(let g of c){let y=Uw(g,t,n,r,i);o.set(y.id,y),s.push(y);}return li(o,s)}function li(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function cd(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function jw(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function qw(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function dd(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function hd(e){let t={};if(!e)return t;let n=h(e,"w","pos");if(n){let o=u(n,"w","val");t.position=jw(o);}let r=h(e,"w","numFmt");if(r){let o=u(r,"w","val");t.numFmt=cd(o);}let i=h(e,"w","numStart");i&&(t.numStart=k(i,"w","val")??void 0);let a=h(e,"w","numRestart");if(a){let o=u(a,"w","val");t.numRestart=dd(o);}return t}function pd(e){let t={};if(!e)return t;let n=h(e,"w","pos");if(n){let o=u(n,"w","val");t.position=qw(o);}let r=h(e,"w","numFmt");if(r){let o=u(r,"w","val");t.numFmt=cd(o);}let i=h(e,"w","numStart");i&&(t.numStart=k(i,"w","val")??void 0);let a=h(e,"w","numRestart");if(a){let o=u(a,"w","val");t.numRestart=dd(o);}return t}function Bv(e){let t=[];for(let n of e.content){let r=[];for(let i of n.content)if(i.type==="run")for(let a of i.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
22
- `)}function Ww(e,t,n,r){if(!e&&!t)return;let i={};return e&&e!=="auto"?i.rgb=e:e==="auto"&&(i.auto=true),t&&(i.themeColor=t),n&&(i.themeTint=n),r&&(i.themeShade=r),Object.keys(i).length>0?i:void 0}function fi(e){if(!e)return;let r={style:u(e,"w","val")??"none"},i=k(e,"w","sz");i!==void 0&&(r.size=i);let a=k(e,"w","space");a!==void 0&&(r.space=a);let o=u(e,"w","color"),s=u(e,"w","themeColor"),d=u(e,"w","themeTint"),l=u(e,"w","themeShade"),c=Ww(o,s,d,l);c&&(r.color=c);let g=u(e,"w","shadow");(g==="1"||g==="true")&&(r.shadow=true);let y=u(e,"w","frame");return (y==="1"||y==="true")&&(r.frame=true),r}function Vw(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Zw(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function Kw(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Gw(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function ui(e,t){let n={};if(!e)return n;let r=h(e,"w","pgSz");if(r){let b=k(r,"w","w");b!==void 0&&(n.pageWidth=b);let _=k(r,"w","h");_!==void 0&&(n.pageHeight=_);let R=u(r,"w","orient"),C=Vw(R);C&&(n.orientation=C);}let i=h(e,"w","pgMar");if(i){let b=k(i,"w","top");b!==void 0&&(n.marginTop=b);let _=k(i,"w","bottom");_!==void 0&&(n.marginBottom=_);let R=k(i,"w","left");R!==void 0&&(n.marginLeft=R);let C=k(i,"w","right");C!==void 0&&(n.marginRight=C);let m=k(i,"w","header");m!==void 0&&(n.headerDistance=m);let D=k(i,"w","footer");D!==void 0&&(n.footerDistance=D);let O=k(i,"w","gutter");O!==void 0&&(n.gutter=O);}let a=h(e,"w","cols");if(a){let b=k(a,"w","num");b!==void 0&&(n.columnCount=b);let _=k(a,"w","space");_!==void 0&&(n.columnSpace=_);let R=u(a,"w","equalWidth");R==="1"||R==="true"?n.equalWidth=true:(R==="0"||R==="false")&&(n.equalWidth=false);let C=u(a,"w","sep");(C==="1"||C==="true")&&(n.separator=true);let m=V(a,"w","col");if(m.length>0){n.columns=[];for(let D of m){let O={},M=k(D,"w","w");M!==void 0&&(O.width=M);let U=k(D,"w","space");U!==void 0&&(O.space=U),n.columns.push(O);}}}let o=h(e,"w","type");if(o){let b=u(o,"w","val"),_=Zw(b);_&&(n.sectionStart=_);}let s=h(e,"w","vAlign");if(s){let b=u(s,"w","val"),_=Kw(b);_&&(n.verticalAlign=_);}let d=h(e,"w","bidi");d&&(n.bidi=B(d));let l=V(e,"w","headerReference");l.length>0&&(n.headerReferences=l.map(b=>id(b)));let c=V(e,"w","footerReference");c.length>0&&(n.footerReferences=c.map(b=>ad(b)));let g=h(e,"w","titlePg");g&&(n.titlePg=B(g));let y=h(e,"w","evenAndOddHeaders");y&&(n.evenAndOddHeaders=B(y));let v=h(e,"w","lnNumType");if(v){n.lineNumbers={};let b=k(v,"w","start");b!==void 0&&(n.lineNumbers.start=b);let _=k(v,"w","countBy");_!==void 0&&(n.lineNumbers.countBy=_);let R=k(v,"w","distance");R!==void 0&&(n.lineNumbers.distance=R);let C=u(v,"w","restart"),m=Gw(C);m&&(n.lineNumbers.restart=m);}let w=h(e,"w","pgBorders");if(w){n.pageBorders={};let b=fi(h(w,"w","top"));b&&(n.pageBorders.top=b);let _=fi(h(w,"w","bottom"));_&&(n.pageBorders.bottom=_);let R=fi(h(w,"w","left"));R&&(n.pageBorders.left=R);let C=fi(h(w,"w","right"));C&&(n.pageBorders.right=C);let m=u(w,"w","display");(m==="allPages"||m==="firstPage"||m==="notFirstPage")&&(n.pageBorders.display=m);let D=u(w,"w","offsetFrom");(D==="page"||D==="text")&&(n.pageBorders.offsetFrom=D);let O=u(w,"w","zOrder");(O==="front"||O==="back")&&(n.pageBorders.zOrder=O);}let T=h(e,"w","background");if(T){n.background={};let b=u(T,"w","color");b&&b!=="auto"&&(n.background.color={rgb:b});let _=u(T,"w","themeColor");_&&(n.background.themeColor=_);let R=u(T,"w","themeTint");R&&(n.background.themeTint=R);let C=u(T,"w","themeShade");C&&(n.background.themeShade=C);}let A=h(e,"w","footnotePr");if(A){let b=hd(A);Object.keys(b).length>0&&(n.footnotePr=b);}let N=h(e,"w","endnotePr");if(N){let b=pd(N);Object.keys(b).length>0&&(n.endnotePr=b);}let F=h(e,"w","docGrid");if(F){n.docGrid={};let b=u(F,"w","type");(b==="default"||b==="lines"||b==="linesAndChars"||b==="snapToChars")&&(n.docGrid.type=b);let _=k(F,"w","linePitch");_!==void 0&&(n.docGrid.linePitch=_);let R=k(F,"w","charSpace");R!==void 0&&(n.docGrid.charSpace=R);}let S=h(e,"w","paperSrc");if(S){let b=k(S,"w","first");b!==void 0&&(n.paperSrcFirst=b);let _=k(S,"w","other");_!==void 0&&(n.paperSrcOther=_);}return n}function md(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Yw(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!$w(e.underline,t.underline)||!ci(e.color,t.color)||!Qw(e.shading,t.shading)||!Jw(e.fontFamily,t.fontFamily))}function $w(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:ci(e.color,t.color)}function ci(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function Qw(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!ci(e.color,t.color)||!ci(e.fill,t.fill))}function Jw(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function ey(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function gd(e){return e.content.length===0?true:e.content.every(ey)}function ty(e,t){let n=[];for(let r of e)n.push(r);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let r=n[n.length-1],i=t[0];n[n.length-1]={type:"text",text:r.text+i.text,preserveSpace:r.preserveSpace||i.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let r of t)n.push(r);return n}function ny(e){if(e.length<=1)return e;let t=[],n=null;for(let r of e)if(r.content.length!==0){if(n===null){n={...r,content:[...r.content]};continue}gd(n)&&gd(r)&&Yw(n.formatting,r.formatting)?n={type:"run",formatting:n.formatting,content:ty(n.content,r.content)}:(t.push(n),n={...r,content:[...r.content]});}return n!==null&&t.push(n),t}function vo(e){if(e.length<=1)return e;let t=[],n=[];function r(){if(n.length>0){let i=ny(n);t.push(...i),n.length=0;}}for(let i of e)if(i.type==="run")n.push(i);else if(r(),i.type==="hyperlink"){let a={...i,children:vo(i.children)};t.push(a);}else t.push(i);return r(),t}function ry(e){let t={sdtType:"richText"};if(!e||!e.elements)return t;for(let n of e.elements){if(n.type!=="element")continue;switch(n.name?.replace(/^w:/,"")??""){case "alias":t.alias=u(n,"w","val")??void 0;break;case "tag":t.tag=u(n,"w","val")??void 0;break;case "lock":t.lock=u(n,"w","val")??"unlocked";break;case "placeholder":{let i=h(n,"w","docPart");if(i){let a=h(i,"w","val");t.placeholder=a?u(a,"w","val")??void 0:void 0;}break}case "showingPlcHdr":t.showingPlaceholder=true;break;case "text":t.sdtType="plainText";break;case "date":t.sdtType="date",t.dateFormat=u(n,"w","fullDate")??void 0;break;case "dropDownList":t.sdtType="dropdown",t.listItems=wd(n);break;case "comboBox":t.sdtType="comboBox",t.listItems=wd(n);break;case "checkbox":{t.sdtType="checkbox";let i=h(n,"w14","checked")??h(n,"w","checked");t.checked=i?u(i,"w14","val")==="1"||u(i,"w","val")==="1":false;break}case "picture":t.sdtType="picture";break;case "docPartObj":t.sdtType="buildingBlockGallery";break;case "group":t.sdtType="group";break}}return t}function wd(e){let t=[];for(let n of e.elements??[])n.type==="element"&&(n.name==="w:listItem"||n.name?.endsWith(":listItem"))&&t.push({displayText:u(n,"w","displayText")??"",value:u(n,"w","value")??""});return t}function bd(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let i of n.elements)i.type==="text"&&typeof i.text=="string"&&(t+=i.text);else t+=bd(n);return t}function iy(e,t,n,r){let i={};return e&&e!=="auto"?i.rgb=e:e==="auto"&&(i.auto=true),t&&(i.themeColor=t),n&&(i.themeTint=n),r&&(i.themeShade=r),i}function ay(e){if(!e)return;let t={},n=u(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=u(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let i=u(e,"w","themeFill");i&&(t.fill=t.fill||{},t.fill.themeColor=i);let a=u(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let o=u(e,"w","themeFillShade");o&&t.fill&&(t.fill.themeShade=o);let s=u(e,"w","val");return s&&(t.pattern=s),Object.keys(t).length>0?t:void 0}function mn(e){if(!e)return;let t=u(e,"w","val");if(!t)return;let n={style:t},r=u(e,"w","color"),i=u(e,"w","themeColor");(r||i)&&(n.color=iy(r,i,u(e,"w","themeTint"),u(e,"w","themeShade")));let a=k(e,"w","sz");a!==void 0&&(n.size=a);let o=k(e,"w","space");o!==void 0&&(n.space=o);let s=u(e,"w","shadow");s&&(n.shadow=s==="1"||s==="true");let d=u(e,"w","frame");return d&&(n.frame=d==="1"||d==="true"),n}function oy(e){if(!e)return;let t=V(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let i=k(r,"w","pos"),a=u(r,"w","val");if(i!==void 0&&a){let o={position:i,alignment:a},s=u(r,"w","leader");s&&(o.leader=s),n.push(o);}}return n.length>0?n:void 0}function sy(e){if(!e)return;let t={},n=k(e,"w","w");n!==void 0&&(t.width=n);let r=k(e,"w","h");r!==void 0&&(t.height=r);let i=u(e,"w","hAnchor");(i==="text"||i==="margin"||i==="page")&&(t.hAnchor=i);let a=u(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let o=k(e,"w","x");o!==void 0&&(t.x=o);let s=k(e,"w","y");s!==void 0&&(t.y=s);let d=u(e,"w","xAlign");d&&(t.xAlign=d);let l=u(e,"w","yAlign");l&&(t.yAlign=l);let c=u(e,"w","wrap");return c&&(t.wrap=c),Object.keys(t).length>0?t:void 0}function vd(e,t,n){if(!e)return;let r={},i=h(e,"w","jc");if(i){let C=u(i,"w","val");C&&(r.alignment=C);}let a=h(e,"w","bidi");a&&(r.bidi=B(a));let o=h(e,"w","spacing");if(o){let C=k(o,"w","before");C!==void 0&&(r.spaceBefore=C);let m=k(o,"w","after");m!==void 0&&(r.spaceAfter=m);let D=k(o,"w","line");D!==void 0&&(r.lineSpacing=D);let O=u(o,"w","lineRule");O&&(r.lineSpacingRule=O);let M=u(o,"w","beforeAutospacing");M&&(r.beforeAutospacing=M==="1"||M==="true");let U=u(o,"w","afterAutospacing");U&&(r.afterAutospacing=U==="1"||U==="true");}let s=h(e,"w","ind");if(s){let C=k(s,"w","left");C!==void 0&&(r.indentLeft=C);let m=k(s,"w","right");m!==void 0&&(r.indentRight=m);let D=k(s,"w","firstLine");D!==void 0&&(r.indentFirstLine=D);let O=k(s,"w","hanging");O!==void 0&&(r.indentFirstLine=-O,r.hangingIndent=true);let M=k(s,"w","start");M!==void 0&&r.indentLeft===void 0&&(r.indentLeft=M);let U=k(s,"w","end");U!==void 0&&r.indentRight===void 0&&(r.indentRight=U);}let d=h(e,"w","pBdr");if(d){let C={},m=mn(h(d,"w","top"));m&&(C.top=m);let D=mn(h(d,"w","bottom"));D&&(C.bottom=D);let O=mn(h(d,"w","left"));O&&(C.left=O);let M=mn(h(d,"w","right"));M&&(C.right=M);let U=mn(h(d,"w","between"));U&&(C.between=U);let oe=mn(h(d,"w","bar"));oe&&(C.bar=oe),Object.keys(C).length>0&&(r.borders=C);}let l=h(e,"w","shd");l&&(r.shading=ay(l));let c=h(e,"w","tabs");c&&(r.tabs=oy(c));let g=h(e,"w","keepNext");g&&(r.keepNext=B(g));let y=h(e,"w","keepLines");y&&(r.keepLines=B(y));let v=h(e,"w","widowControl");v&&(r.widowControl=B(v));let w=h(e,"w","pageBreakBefore");w&&(r.pageBreakBefore=B(w));let T=h(e,"w","contextualSpacing");T&&(r.contextualSpacing=B(T));let A=h(e,"w","numPr");if(A){let C=h(A,"w","numId"),m=h(A,"w","ilvl");if(C||m){if(r.numPr={},C){let D=k(C,"w","val");D!==void 0&&(r.numPr.numId=D);}if(m){let D=k(m,"w","val");D!==void 0&&(r.numPr.ilvl=D);}}}let N=h(e,"w","outlineLvl");if(N){let C=k(N,"w","val");C!==void 0&&(r.outlineLevel=C);}let F=h(e,"w","pStyle");if(F){let C=u(F,"w","val");C&&(r.styleId=C);}let S=h(e,"w","framePr");S&&(r.frame=sy(S));let b=h(e,"w","suppressLineNumbers");b&&(r.suppressLineNumbers=B(b));let _=h(e,"w","suppressAutoHyphens");_&&(r.suppressAutoHyphens=B(_));let R=h(e,"w","rPr");return R&&(r.runProperties=oi(R,t)),Object.keys(r).length>0?r:void 0}function xo(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function yd(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function xd(e){if(e.type!=="element")return e;let t=xo(e.name),n=e.name;return t==="delText"?n=yd(e.name,"t"):t==="delInstrText"&&(n=yd(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(xd)}}function tr(e){let t=u(e,"w","id"),n=t?parseInt(t,10):0,r=u(e,"w","author"),i=u(e,"w","date"),a=r?.trim()??"",o=i?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:o.length>0?o:void 0}}function ly(e){let t=tr(e),n=(u(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function fy(e,t,n,r){if(!e)return;let i=V(e,"w","pPrChange").map(a=>{let o=h(a,"w","pPr");return {type:"paragraphPropertyChange",info:ly(a),previousFormatting:vd(o,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return i.length>0?i:void 0}function uy(e,t,n,r,i){return Zc(e,t,n,r,i)}function cy(e){return Kc(e)}function dy(e){return Gc(e)}function _d(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function hy(e,t,n,r,i){let a=u(e,"w","instr")??"",o=_d(a),s={type:"simpleField",instruction:a,fieldType:o,content:[]},d=u(e,"w","fldLock");(d==="1"||d==="true")&&(s.fldLock=true);let l=u(e,"w","dirty");(l==="1"||l==="true")&&(s.dirty=true);let c=ae(e);for(let g of c)xo(g.name)==="r"&&s.content.push(Jn(g,t,n,r,i));return s}function gn(e,t,n,r,i,a,o="default"){let s=[],d=ae(e),l=false,c="",g=[],y=[],v=false,w=false,T=false;for(let A of d){let N=xo(A.name);switch(N){case "r":{let F=o==="deletion"?xd(A):A,S=Jn(F,t,n,i,a),b=false,_=false,R=false,C="";for(let m of S.content)m.type==="fieldChar"?m.charType==="begin"?(b=true,m.fldLock&&(w=true),m.dirty&&(T=true)):m.charType==="separate"?_=true:m.charType==="end"&&(R=true):m.type==="instrText"&&(C+=m.text);if(b&&(l=true,v=false,c="",g=[],y=[],w=false,T=false),l){if(C&&(c+=C),_&&(v=true),v&&!R?_||y.push(S):!v&&!b&&g.push(S),R){let m={type:"complexField",instruction:c.trim(),fieldType:_d(c),fieldCode:g,fieldResult:y};w&&(m.fldLock=true),T&&(m.dirty=true),s.push(m),l=false;}}else s.push(S);break}case "hyperlink":s.push(uy(A,i,t,n,a));break;case "bookmarkStart":s.push(cy(A));break;case "bookmarkEnd":s.push(dy(A));break;case "fldSimple":s.push(hy(A,t,n,i,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let F=(A.elements??[]).find(b=>b.type==="element"&&(b.name==="w:sdtPr"||b.name?.endsWith(":sdtPr"))),S=(A.elements??[]).find(b=>b.type==="element"&&(b.name==="w:sdtContent"||b.name?.endsWith(":sdtContent")));if(S){let b=gn(S,t,n,null,i,a,o),R={type:"inlineSdt",properties:ry(F??null),content:b.filter(C=>C.type==="run"||C.type==="hyperlink")};s.push(R);}break}case "ins":{let F=tr(A),S=gn(A,t,n,null,i,a),b={type:"insertion",info:F,content:S.filter(_=>_.type==="run"||_.type==="hyperlink")};s.push(b);break}case "del":{let F=tr(A),S=gn(A,t,n,null,i,a,"deletion"),b={type:"deletion",info:F,content:S.filter(_=>_.type==="run"||_.type==="hyperlink")};s.push(b);break}case "moveFrom":{let F=tr(A),S=gn(A,t,n,null,i,a,"deletion"),b={type:"moveFrom",info:F,content:S.filter(_=>_.type==="run"||_.type==="hyperlink")};s.push(b);break}case "moveTo":{let F=tr(A),S=gn(A,t,n,null,i,a),b={type:"moveTo",info:F,content:S.filter(_=>_.type==="run"||_.type==="hyperlink")};s.push(b);break}case "smartTag":break;case "moveFromRangeStart":{let F=parseInt(u(A,"w","id")??"0",10),S=u(A,"w","name")??"";s.push({type:"moveFromRangeStart",id:F,name:S});break}case "moveFromRangeEnd":{let F=parseInt(u(A,"w","id")??"0",10);s.push({type:"moveFromRangeEnd",id:F});break}case "moveToRangeStart":{let F=parseInt(u(A,"w","id")??"0",10),S=u(A,"w","name")??"";s.push({type:"moveToRangeStart",id:F,name:S});break}case "moveToRangeEnd":{let F=parseInt(u(A,"w","id")??"0",10);s.push({type:"moveToRangeEnd",id:F});break}case "commentRangeStart":{let F=parseInt(u(A,"w","id")??"0",10);s.push({type:"commentRangeStart",id:F});break}case "commentRangeEnd":{let F=parseInt(u(A,"w","id")??"0",10);s.push({type:"commentRangeEnd",id:F});break}case "oMath":case "oMathPara":{let F=N==="oMathPara",S=bc(A),b=bd(A),_={type:"mathEquation",display:F?"block":"inline",ommlXml:S,plainText:b||void 0};s.push(_);break}}}return s}function Xe(e,t,n,r,i=null,a=null){let o={type:"paragraph",content:[]},s=u(e,"w14","paraId")??u(e,"w","paraId");s&&(o.paraId=s);let d=u(e,"w14","textId")??u(e,"w","textId");d&&(o.textId=d);let l=h(e,"w","pPr");if(l){o.formatting=vd(l,n),o.propertyChanges=fy(l,n,t,o.formatting);let y=h(l,"w","sectPr");y&&(o.sectionProperties=ui(y));}let c=gn(e,t,n,r,i,a);o.content=vo(c);let g=o.formatting?.numPr;if(!g&&o.formatting?.styleId&&t){let y=t.get(o.formatting.styleId);y?.pPr?.numPr&&(g=y.pPr.numPr,o.formatting||(o.formatting={}),o.formatting.numPr=g);}if(g&&r){let{numId:y,ilvl:v=0}=g;if(y!==void 0&&y!==0){let w=r.getLevel(y,v);if(w&&(o.listRendering={level:v,numId:y,marker:w.lvlText,isBullet:w.numFmt==="bullet",numFmt:w.numFmt},w.pPr)){o.formatting||(o.formatting={});let T=l?h(l,"w","ind"):null,A=T!=null&&(u(T,"w","left")!==null||u(T,"w","start")!==null),N=T!=null&&(u(T,"w","firstLine")!==null||u(T,"w","hanging")!==null);!A&&w.pPr.indentLeft!==void 0&&(o.formatting.indentLeft=w.pPr.indentLeft),N||(w.pPr.indentFirstLine!==void 0&&(o.formatting.indentFirstLine=w.pPr.indentFirstLine),w.pPr.hangingIndent!==void 0&&(o.formatting.hangingIndent=w.pPr.hangingIndent));}}}return o}function _o(e){let t="";for(let n of e.content)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"?t+=" ":r.type==="break"&&(r.breakType==="page"?t+="\f":t+=`
23
- `);else if(n.type==="hyperlink"){for(let r of n.children)if(r.type==="run")for(let i of r.content)i.type==="text"&&(t+=i.text);}else if(n.type==="simpleField"){for(let r of n.content)if(r.type==="run")for(let i of r.content)i.type==="text"&&(t+=i.text);}else if(n.type==="complexField")for(let r of n.fieldResult)for(let i of r.content)i.type==="text"&&(t+=i.text);return t}function py(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0),n={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};return n[t]?n[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function my(e,t,n){let r=e.listRendering;if(!r||!t)return;let{numId:i,level:a}=r;if(i===void 0||i===0)return;n.has(i)||n.set(i,new Array(9).fill(0));let o=n.get(i);o[a]=(o[a]||0)+1;for(let l=a+1;l<o.length;l++)o[l]=0;let s=r.marker;if(r.isBullet){let l=s||"";r.marker=py(l);return}let d=s;for(let l=0;l<=a;l++){let c=`%${l+1}`;if(d.includes(c)){let g=o[l],y=t.getLevel(i,l),v=gy(g,y?.numFmt||"decimal");d=d.replace(c,v);}}r.marker=d;}function gy(e,t){switch(t){case "decimal":case "decimalZero":return String(e);case "lowerLetter":return String.fromCharCode(96+(e-1)%26+1);case "upperLetter":return String.fromCharCode(64+(e-1)%26+1);case "lowerRoman":return Td(e).toLowerCase();case "upperRoman":return Td(e);case "bullet":return "\u2022";default:return String(e)}}function Td(e){let t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],n="";for(let[r,i]of t)for(;e>=r;)n+=i,e-=r;return n}var Ed=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Sd(e){let t=[],n;for(Ed.lastIndex=0;(n=Ed.exec(e))!==null;){let r=n[1].trim();r&&!t.includes(r)&&t.push(r);}return t}function Cd(e){let t=[];for(let n of e)if(n.type==="paragraph"){let r=_o(n),i=Sd(r);for(let a of i)t.includes(a)||t.push(a);}else if(n.type==="table"){let r=Fd(n);for(let i of r)t.includes(i)||t.push(i);}return t}function Fd(e){let t=[];for(let n of e.rows)for(let r of n.cells)for(let i of r.content)if(i.type==="paragraph"){let a=_o(i),o=Sd(a);for(let s of o)t.includes(s)||t.push(s);}else if(i.type==="table"){let a=Fd(i);for(let o of a)t.includes(o)||t.push(o);}return t}function kd(e,t,n,r,i,a){let o=[],s=ae(e),d=new Map;for(let l of s){let c=l.name??"";if(c==="w:p"||c.endsWith(":p")){let g=Xe(l,t,n,r,i,a);my(g,r,d),o.push(g);}else if(c==="w:tbl"||c.endsWith(":tbl")){let g=er(l,t,n,r,i,a);o.push(g);}else if(c==="w:sdt"||c.endsWith(":sdt")){let g=(l.elements??[]).find(y=>y.type==="element"&&(y.name==="w:sdtContent"||y.name?.endsWith(":sdtContent")));if(g){let y=kd(g,t,n,r,i,a);o.push(...y);}}}return o}function wy(e,t){let n=[],r=[];for(let i of e)r.push(i),i.type==="paragraph"&&i.sectionProperties&&(n.push({properties:i.sectionProperties,content:r}),r=[]);return (r.length>0||n.length===0)&&n.push({properties:t??md(),content:r}),n}function Ad(e,t=null,n=null,r=null,i=null,a=null){let o={content:[]};if(!e)return o;let s=Ne(e);if(!s)return o;let d=(s.elements??[]).find(g=>g.type==="element"&&(g.name==="w:document"||g.name?.endsWith(":document")));if(!d)return o;let l=h(d,"w","body");if(!l)return o;o.content=kd(l,t,n,r,i,a);let c=h(l,"w","sectPr");return c&&(o.finalSectionProperties=ui(c)),o.sections=wy(o.content,o.finalSectionProperties),o}function yy(e){let t=new Map,n=Ne(e);if(!n)return t;let r=h(n,"w16cex","commentsExtensible")??n;for(let i of ae(r)){if((i.name?.replace(/^.*:/,"")??"")!=="comment")continue;let o=u(i,"w16cex","paraId")??u(i,"w15","paraId")??i.attributes?.["w16cex:paraId"]??i.attributes?.["w15:paraId"],s=u(i,"w16cex","dateUtc")??u(i,"w15","dateUtc")??i.attributes?.["w16cex:dateUtc"]??i.attributes?.["w15:dateUtc"];o&&s&&t.set(String(o).toUpperCase(),String(s));}return t}function Rd(e,t,n,r,i,a){if(!e)return [];let o=Ne(e);if(!o)return [];let s=a?yy(a):new Map,d=h(o,"w","comments")??o,l=ae(d),c=[];for(let g of l){if((g.name?.replace(/^.*:/,"")??"")!=="comment")continue;let v=parseInt(u(g,"w","id")??"0",10),w=u(g,"w","author")??"Unknown",T=u(g,"w","initials"),A=T!=null?String(T):void 0,N=u(g,"w","date"),F=N!=null?String(N):void 0,S=u(g,"w14","paraId")??g.attributes?.["w14:paraId"]??u(g,"w","paraId"),_=(S?s.get(String(S).toUpperCase()):void 0)??F,R=[];for(let C of ae(g))if((C.name?.replace(/^.*:/,"")??"")==="p"){let D=Xe(C,t,n,null,r,i);R.push(D);}c.push({id:v,author:w,initials:A,date:_,content:R});}return c}async function mx(e,t={}){let n=e instanceof ArrayBuffer?e:await Ao(e),{onProgress:r=()=>{},preloadFonts:i=true,parseHeadersFooters:a=true,parseNotes:o=true,detectVariables:s=true}=t,d=[];try{let y=function(Y,H){let X=performance.now(),L=H(),Q=performance.now()-X;return g.push({stage:Y,ms:Q}),Q>1e3&&console.warn(`[parseDocx] ${Y} took ${Math.round(Q)}ms`),L};var l=y;let c=performance.now(),g=[];async function v(Y,H){let X=performance.now(),L=await H(),Q=performance.now()-X;return g.push({stage:Y,ms:Q}),Q>1e3&&console.warn(`[parseDocx] ${Y} took ${Math.round(Q)}ms`),L}r("Extracting DOCX...",0);let w=await v("unzip",()=>qu(n));r("Extracted DOCX",10),r("Parsing relationships...",10);let T=y("relationships",()=>w.documentRels?ni(w.documentRels):new Map);r("Parsed relationships",15),r("Parsing theme...",15);let A=y("theme",()=>Ec(w.themeXml));r("Parsed theme",20),r("Parsing styles...",20);let N=null,F;y("styles",()=>{w.stylesXml&&(N=go(w.stylesXml,A),F=Nc(w.stylesXml,A));}),r("Parsed styles",30),r("Parsing numbering...",30);let S=y("numbering",()=>Mc(w.numberingXml));r("Parsed numbering",35),r("Processing media files...",35);let b=y("media",()=>by(w,T));r("Processed media",40),r("Parsing document body...",40);let _={content:[]};y("documentBody",()=>{w.documentXml?_=Ad(w.documentXml,N,A,S,T,b):d.push("No document.xml found in DOCX");}),r("Parsed document body",55);let R,C;if(a){r("Parsing headers/footers...",55);let Y=y("headersFooters",()=>vy(w,N,A,S,T,b));R=Y.headers,C=Y.footers,r("Parsed headers/footers",65);}else r("Skipping headers/footers",65);let m,D;if(o){r("Parsing footnotes/endnotes...",65);let Y=y("footnotesEndnotes",()=>xy(w,N,A,S,T,b));m=Y.footnotes,D=Y.endnotes,r("Parsed footnotes/endnotes",75);}else r("Skipping footnotes/endnotes",75);r("Parsing comments...",75);let O=y("comments",()=>Rd(w.commentsXml,N,A,T,b,w.commentsExtensibleXml));O.length>0&&(_.comments=O);let M;s?(r("Detecting template variables...",75),M=y("variables",()=>Cd(_.content)),r("Detected variables",80)):r("Skipping variable detection",80),i?(r("Loading fonts...",80),await v("fonts",()=>_y(A,F,_)),r("Loaded fonts",95)):r("Skipping font loading",95),r("Assembling document...",95);let oe={package:{document:_,styles:F,theme:A,numbering:S.definitions,headers:R,footers:C,footnotes:m,endnotes:D,relationships:T,media:b},originalBuffer:n,templateVariables:M,warnings:d.length>0?d:void 0},fe=performance.now()-c;if(fe>2e3){let Y=g.filter(H=>H.ms>100).map(H=>`${H.stage}: ${Math.round(H.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(fe)}ms`+(Y?` (${Y})`:""));}return r("Complete",100),oe}catch(c){let g=c instanceof Error?c.message:String(c);throw console.error("[parseDocx] Failed to parse DOCX:",g,c),new Error(`Failed to parse DOCX: ${g}`)}}function by(e,t){let n=new Map;for(let[r,i]of e.media.entries()){let a=r.split("/").pop()||r,o=Wu(r),s=new Uint8Array(i),d="";for(let v=0;v<s.length;v++)d+=String.fromCharCode(s[v]);let l=btoa(d),c=`data:${o};base64,${l}`,g={path:r,filename:a,mimeType:o,data:i,dataUrl:c};n.set(r,g);let y=r.replace(/^word\//,"");y!==r&&n.set(y,g);}return n}function di(e,t){let n=t.toLowerCase();for(let[r,i]of e.entries())if(r.toLowerCase()===n)return i}function vy(e,t,n,r,i,a){let o=new Map,s=new Map;for(let[d,l]of i.entries())if(l.type===ti.header&&l.target){let c=l.target.split("/").pop()||l.target,g=di(e.headers,c);if(g){let y=`word/_rels/${c}.rels`,v=di(e.allXml,y),w=v?ni(v):i,T=od(g,"default",t,n,r,w,a);o.set(d,T);}}else if(l.type===ti.footer&&l.target){let c=l.target.split("/").pop()||l.target,g=di(e.footers,c);if(g){let y=`word/_rels/${c}.rels`,v=di(e.allXml,y),w=v?ni(v):i,T=sd(g,"default",t,n,r,w,a);s.set(d,T);}}return {headers:o,footers:s}}function xy(e,t,n,r,i,a){let o=fd(e.footnotesXml,t,n,r,i,a),s=ud(e.endnotesXml,t,n,r,i,a);return {footnotes:o.getNormalFootnotes(),endnotes:s.getNormalEndnotes()}}async function _y(e,t,n){let r=new Set;if(e?.fontScheme){let{majorFont:i,minorFont:a}=e.fontScheme;i?.latin&&r.add(i.latin),a?.latin&&r.add(a.latin);}if(t?.docDefaults?.rPr?.fontFamily?.ascii&&r.add(t.docDefaults.rPr.fontFamily.ascii),t?.styles)for(let i of t.styles)i.rPr?.fontFamily?.ascii&&r.add(i.rPr.fontFamily.ascii),i.rPr?.fontFamily?.hAnsi&&r.add(i.rPr.fontFamily.hAnsi);if(n.content){for(let i of n.content)if(i.type==="paragraph")for(let a of i.content)a.type==="run"&&a.formatting?.fontFamily&&(a.formatting.fontFamily.ascii&&r.add(a.formatting.fontFamily.ascii),a.formatting.fontFamily.hAnsi&&r.add(a.formatting.fontFamily.hAnsi));}if(r.size>0)try{await yi(Array.from(r));}catch(i){console.warn("Failed to load some fonts:",i);}}/*! Bundled license information:
24
-
25
- sax/lib/sax.js:
26
- (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
27
- */exports.a=Uu;exports.b=ti;exports.c=pv;exports.d=mv;exports.e=Bv;exports.f=wi;exports.g=Pd;exports.h=Ty;exports.i=Ey;exports.j=Sy;exports.k=Cy;exports.l=Fy;exports.m=ky;exports.n=Ay;exports.o=Ry;exports.p=Ao;exports.q=mx;//# sourceMappingURL=chunk-C33XDRDJ.cjs.map
28
- //# sourceMappingURL=chunk-C33XDRDJ.cjs.map