pi-outpost 0.48.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +178 -0
- package/README.md +3 -0
- package/dist/contract/validate-structured-exchange.mjs +1 -1
- package/dist/pi-outpost.mjs +323 -97
- package/dist/pi-outpost.sea.mjs +2 -2
- package/dist/sea-prep.blob +2 -2
- package/dist/web/assets/{CodeEditor-DPHOc6pa.js → CodeEditor-cHm1xd4h.js} +2 -2
- package/dist/web/assets/{PdfViewer-R_n_5p2t.js → PdfViewer-CPxkOup9.js} +2 -2
- package/dist/web/assets/{abnfDiagram-WEYOIA3C-Do3Wh5PM.js → abnfDiagram-WEYOIA3C-Cpo-uXiO.js} +1 -1
- package/dist/web/assets/{architecture-WOLXFQ4H-Cy7-nVAk.js → architecture-WOLXFQ4H-BfK3PMUD.js} +1 -1
- package/dist/web/assets/{architectureDiagram-ZHVYKT53-Dfi29Stz.js → architectureDiagram-ZHVYKT53-kLCS_I4L.js} +1 -1
- package/dist/web/assets/{blockDiagram-RJAE7QA3-D9q44PU7.js → blockDiagram-RJAE7QA3-C6NgrXL5.js} +1 -1
- package/dist/web/assets/{c4Diagram-XDPPPE54-BpX5HzyP.js → c4Diagram-XDPPPE54-CVhvkODv.js} +1 -1
- package/dist/web/assets/channel-BqI7QxS3.js +1 -0
- package/dist/web/assets/{chunk-2E7WHVMD-BjkWWfrU.js → chunk-2E7WHVMD-BDpTVO_j.js} +1 -1
- package/dist/web/assets/{chunk-4EMNKR2T-p2pC-y9g.js → chunk-4EMNKR2T-Bf2vFmri.js} +1 -1
- package/dist/web/assets/{chunk-55XCU76K-BQg01A5g.js → chunk-55XCU76K-BVBNDBPq.js} +1 -1
- package/dist/web/assets/{chunk-7S6XSTFO-DsNcUgZc.js → chunk-7S6XSTFO-BxCPUAo6.js} +1 -1
- package/dist/web/assets/{chunk-AQDTSKZB-CZhSEpUg.js → chunk-AQDTSKZB-D926zGIX.js} +1 -1
- package/dist/web/assets/{chunk-DSNLSHJZ-CGVK9ZX7.js → chunk-DSNLSHJZ-DSbxZuYn.js} +3 -3
- package/dist/web/assets/{chunk-HAGFOTED-BChLRcG5.js → chunk-HAGFOTED-iybsmSvO.js} +1 -1
- package/dist/web/assets/{chunk-HNE4Q36P-DpN2La95.js → chunk-HNE4Q36P-BNO-r5as.js} +1 -1
- package/dist/web/assets/{chunk-NQOKRVIF-BU74KhFW.js → chunk-NQOKRVIF-BCDYvnQx.js} +1 -1
- package/dist/web/assets/{chunk-UHW7PFBP-CfF905Ls.js → chunk-UHW7PFBP-CtcE35zX.js} +1 -1
- package/dist/web/assets/{chunk-VQ5W62QI-Bulfmauj.js → chunk-VQ5W62QI-C-Wt_ErM.js} +1 -1
- package/dist/web/assets/{chunk-WQQL4CDK-CZl0mvTb.js → chunk-WQQL4CDK-B1xBf0mr.js} +1 -1
- package/dist/web/assets/{chunk-YZO67HFG-B8PUAUPP.js → chunk-YZO67HFG-BpQ4S2PJ.js} +1 -1
- package/dist/web/assets/{chunk-ZAUX2LTX-BOjtENw6.js → chunk-ZAUX2LTX-qfoMdC_H.js} +1 -1
- package/dist/web/assets/{chunk-ZCHMQSOR-sLh4j-hI.js → chunk-ZCHMQSOR-BivxIrRY.js} +1 -1
- package/dist/web/assets/{classDiagram-v2-4MYWR3UA-DPyHJ5Em.js → classDiagram-v2-4MYWR3UA-BYI7xjrb.js} +1 -1
- package/dist/web/assets/{conversationExport-CNLXCj3W.js → conversationExport-DrllhTso.js} +1 -1
- package/dist/web/assets/{cynefin-EF2NZ3EQ-MVu4cF-N.js → cynefin-EF2NZ3EQ-DJ-9M8oE.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-WF24UDRP-DnTnDgff.js → cynefinDiagram-WF24UDRP-DOusz2FY.js} +1 -1
- package/dist/web/assets/{dagre-NK4GIZVX-CKNroz1z.js → dagre-NK4GIZVX-BTnSMJe8.js} +1 -1
- package/dist/web/assets/{diagram-CBK3MWTC-CwCd6_qV.js → diagram-CBK3MWTC-zdMJsfpH.js} +1 -1
- package/dist/web/assets/{diagram-I5XIIV2D-DYwP4m_v.js → diagram-I5XIIV2D-da1n7Zii.js} +1 -1
- package/dist/web/assets/{diagram-ODIL2UCW-CcRW28Q5.js → diagram-ODIL2UCW-CwK9VzT1.js} +1 -1
- package/dist/web/assets/{diagram-PFBEJUXE-DKEkhYqZ.js → diagram-PFBEJUXE-CbB2B9C6.js} +1 -1
- package/dist/web/assets/{diagram-RJA3I4VV-RbkVVAnC.js → diagram-RJA3I4VV-pvwTIUIZ.js} +1 -1
- package/dist/web/assets/{diagram-TYUNFSNR-CNwJFuSN.js → diagram-TYUNFSNR-DN5WIszR.js} +1 -1
- package/dist/web/assets/{dist-DiPZ0ZMo.js → dist-BE0nUFGq.js} +1 -1
- package/dist/web/assets/{dist-llboNNco.js → dist-BZrl9rJm.js} +1 -1
- package/dist/web/assets/{dist-CaVTvrEa.js → dist-CN0OXMj7.js} +1 -1
- package/dist/web/assets/{dist-BmreN7yT.js → dist-CguKBRMl.js} +1 -1
- package/dist/web/assets/{dist-Q4cIWyaP.js → dist-D1rpikNt.js} +1 -1
- package/dist/web/assets/{dist-DsDmmws4.js → dist-DDNDv3kw.js} +1 -1
- package/dist/web/assets/{dist-_f8zPwom.js → dist-Dm70hkr9.js} +1 -1
- package/dist/web/assets/{docxExport-Q_d-8cuv.js → docxExport-CVaLmrkL.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-V4P3TTPT-Cqc1BzDn.js → ebnfDiagram-V4P3TTPT-DAUJvdbV.js} +1 -1
- package/dist/web/assets/{elk-QONTBCTQ-BfYqQVYA.js → elk-QONTBCTQ-CaoOyhyH.js} +1 -1
- package/dist/web/assets/{erDiagram-KYQIGQAA-Ch3md2ZT.js → erDiagram-KYQIGQAA-C0XlOeGn.js} +1 -1
- package/dist/web/assets/{eventmodeling-K75KTNOO-CEM1gSUP.js → eventmodeling-K75KTNOO-TGirSaz4.js} +1 -1
- package/dist/web/assets/flowDiagram-IUGLLWBU-Du-oaWuf.js +1 -0
- package/dist/web/assets/{ganttDiagram-R7GPNTJY-CBbUX-pJ.js → ganttDiagram-R7GPNTJY-DzIgrB3G.js} +1 -1
- package/dist/web/assets/{gitGraph-VSP46ZUC-b0QNbfLp.js → gitGraph-VSP46ZUC-Np_TOwYo.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-PDYL7XHY-Dk1jb79y.js → gitGraphDiagram-PDYL7XHY-cxnJfQXZ.js} +1 -1
- package/dist/web/assets/{index-wRbvcbFv.js → index-DDBTGDBH.js} +7 -7
- package/dist/web/assets/{info-OHQRW6UA-qJGxsAec.js → info-OHQRW6UA-Cl1NlrzG.js} +1 -1
- package/dist/web/assets/{infoDiagram-MVDRKAX5-DD_Ft8m-.js → infoDiagram-MVDRKAX5-CyG9u95G.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-HPEHV2GE-CNsuC8b_.js → ishikawaDiagram-HPEHV2GE-0Jq8CstS.js} +1 -1
- package/dist/web/assets/{journeyDiagram-BOSHW7O7-DX-15hRC.js → journeyDiagram-BOSHW7O7-DRFwk-H0.js} +1 -1
- package/dist/web/assets/{kanban-definition-FNSA4HC5-IMoGW2uv.js → kanban-definition-FNSA4HC5-Cng1IGP2.js} +1 -1
- package/dist/web/assets/{line-CPpOZki1.js → line-Bb33sMEA.js} +1 -1
- package/dist/web/assets/{loadReferencedImage-CrHSXbBn.js → loadReferencedImage-DYg3cCFA.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-CeNpEp-C.js → mermaid-parser.core-CoS52w6v.js} +3 -3
- package/dist/web/assets/{mermaid.core-qPal8rWd.js → mermaid.core-uGk3xSaR.js} +4 -4
- package/dist/web/assets/{mermaidToImage-C-2lUq1m.js → mermaidToImage-CYbmysUI.js} +3 -3
- package/dist/web/assets/{mindmap-definition-6OY57UG3-ubhNaw2x.js → mindmap-definition-6OY57UG3-BfEELSQn.js} +1 -1
- package/dist/web/assets/{packet-JDAUHWVQ-DmgVbeMe.js → packet-JDAUHWVQ-Coi-LVlq.js} +1 -1
- package/dist/web/assets/{pdf-DVwdKFKt.js → pdf-Cwh2Qe7m.js} +1 -1
- package/dist/web/assets/{pegDiagram-ECIUJNBX-IKzVzakQ.js → pegDiagram-ECIUJNBX-D6615-y0.js} +1 -1
- package/dist/web/assets/{pie-XZMESJXO-BgEJcvid.js → pie-XZMESJXO-BNp3qjWK.js} +1 -1
- package/dist/web/assets/{pieDiagram-GNMPY74T-0wI5CThS.js → pieDiagram-GNMPY74T-CRkYdxki.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-D57K4MC3-CdYfHb7Q.js → quadrantDiagram-D57K4MC3-DQwsvypm.js} +1 -1
- package/dist/web/assets/{radar-ABXABTNO-hXh4gamL.js → radar-ABXABTNO-CfCgDKza.js} +1 -1
- package/dist/web/assets/{railroad-I3PHUGI6-BxY7w076.js → railroad-I3PHUGI6-FWpgyRNm.js} +1 -1
- package/dist/web/assets/{railroad-abnf-LNEFI6M7-B1NIZWRc.js → railroad-abnf-LNEFI6M7-DUx27Xr5.js} +1 -1
- package/dist/web/assets/{railroad-ebnf-DWYD2UWJ-BlTWd9xt.js → railroad-ebnf-DWYD2UWJ-Dlxh0tP5.js} +1 -1
- package/dist/web/assets/{railroad-peg-JR7BVNR7-MyQHmnUO.js → railroad-peg-JR7BVNR7-uVnJK6c5.js} +1 -1
- package/dist/web/assets/{railroadDiagram-Y72NRBL7-CRdIHZ7Q.js → railroadDiagram-Y72NRBL7-sg4iRfrf.js} +1 -1
- package/dist/web/assets/{requirementDiagram-EQYSW5RA-C7CbmfrH.js → requirementDiagram-EQYSW5RA-ymDU4EqE.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-SY24JHO5-aZQx61oF.js → sankeyDiagram-SY24JHO5-DQUX95aJ.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-BLEHNHQU-4G3YuHra.js → sequenceDiagram-BLEHNHQU-LRKjlEql.js} +1 -1
- package/dist/web/assets/{stateDiagram-v2-A6IESKWZ-DuqGYoAj.js → stateDiagram-v2-A6IESKWZ-wZPGtaAr.js} +1 -1
- package/dist/web/assets/{swimlanes-B3ENRKFQ-BxjyFKJ8.js → swimlanes-B3ENRKFQ-BijM_hgH.js} +1 -1
- package/dist/web/assets/swimlanesDiagram-AYQRV4AK-CBqd2kf3.js +8 -0
- package/dist/web/assets/{timeline-definition-JXYKGLGB-D1DZx-LG.js → timeline-definition-JXYKGLGB-ribPmxwQ.js} +1 -1
- package/dist/web/assets/{treeView-D4JQ5SDB-BmFVbU3o.js → treeView-D4JQ5SDB-CJozwK5D.js} +1 -1
- package/dist/web/assets/{treemap-SAJKECNS-V5kO4oMl.js → treemap-SAJKECNS-CMROax7j.js} +1 -1
- package/dist/web/assets/{usecaseDiagram-WPOLBNNX-BHJif-t9.js → usecaseDiagram-WPOLBNNX-BVrf-4S5.js} +1 -1
- package/dist/web/assets/{vennDiagram-Q3Y3IDCW-BloyeTsy.js → vennDiagram-Q3Y3IDCW-CYb7JAxc.js} +1 -1
- package/dist/web/assets/{wardley-7MLQ67FV-BsNgJPtK.js → wardley-7MLQ67FV-CYZm7ntN.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-IVAIDKWA-CLF0adYG.js → wardleyDiagram-IVAIDKWA-DVy66MTp.js} +1 -1
- package/dist/web/assets/{xychartDiagram-4URNHDU4-ChIFxs-q.js → xychartDiagram-4URNHDU4-DffcI3nN.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +3 -2
- package/dist/web/assets/channel-BBmCg8Cl.js +0 -1
- package/dist/web/assets/flowDiagram-IUGLLWBU-DLxpqk21.js +0 -1
- package/dist/web/assets/swimlanesDiagram-AYQRV4AK-D-JbNw8x.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-
|
|
2
|
-
import{n as e,r as t}from"./rolldown-runtime-COiEfhsA.js";import{E as n,T as r,_ as i,a,h as o,j as s,o as c,p as l}from"./index-wRbvcbFv.js";var u=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,m=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},_=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=p(t),a=0,o=i.length,s;a<o;a++)s=i[a],!h.call(e,s)&&s!==n&&d(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=f(t,s))||r.enumerable});return e},y=(e,t,n)=>(n=e==null?{}:u(m(e)),v(t||!e||!e.__esModule||!h.call(e,`default`)?d(n,`default`,{value:e,enumerable:!0}):n,e)),b=(e=>t===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(t===void 0?e:t)[n]}):e:t)(function(e){if(t!==void 0)return t.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function x(e){"@babel/helpers - typeof";return x=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},x(e)}function S(e,t){if(x(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(x(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function C(e){var t=S(e,`string`);return x(t)==`symbol`?t:t+``}function w(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=class{constructor(e){w(this,`rootKey`,void 0),this.rootKey=e}get writtenAs(){}},E=Object.seal({}),D=class extends T{constructor(e){super(e),w(this,`root`,void 0),this.root=[]}prepForXml(e){e.stack.push(this);let t=this.root.flatMap(t=>{if(t instanceof T){let n=t.writtenAs;return n?n.map(t=>t.prepForXml(e)):t.prepForXml(e)}return t}).filter(e=>e!==void 0);return e.stack.pop(),{[this.rootKey]:t.length?t.length===1&&t[0]?._attr?t[0]:t:E}}addChildElement(e){return this.root.push(e),this}},O=class extends D{constructor(e,t){super(e),w(this,`includeIfEmpty`,void 0),this.includeIfEmpty=t}prepForXml(e){let t=super.prepForXml(e);return this.includeIfEmpty||t&&(typeof t[this.rootKey]!=`object`||Object.keys(t[this.rootKey]).length)?t:void 0}};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?k(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=class extends T{constructor(e){super(`_attr`),w(this,`root`,void 0),w(this,`xmlKeys`,void 0),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([e,n])=>{if(n!==void 0){let r=this.xmlKeys&&this.xmlKeys[e]||e;t[r]=n}}),{_attr:t}}},M=class extends T{constructor(e){super(`_attr`),w(this,`root`,void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:e})=>e!==void 0).reduce((e,{key:t,value:n})=>A(A({},e),{},{[t]:n}),{})}}},N=class extends j{constructor(...e){super(...e),w(this,`xmlKeys`,{val:`w:val`,color:`w:color`,fill:`w:fill`,space:`w:space`,sz:`w:sz`,type:`w:type`,rsidR:`w:rsidR`,rsidRPr:`w:rsidRPr`,rsidSect:`w:rsidSect`,w:`w:w`,h:`w:h`,top:`w:top`,right:`w:right`,bottom:`w:bottom`,left:`w:left`,header:`w:header`,footer:`w:footer`,gutter:`w:gutter`,linePitch:`w:linePitch`,pos:`w:pos`})}},P=_(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),F=_(((e,t)=>{t.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),I,L=g((()=>{I=globalThis||self}));function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function z(){throw Error(`setTimeout has not been defined`)}function B(){throw Error(`clearTimeout has not been defined`)}function V(e){if(G===setTimeout)return setTimeout(e,0);if((G===z||!G)&&setTimeout)return G=setTimeout,setTimeout(e,0);try{return G(e,0)}catch{try{return G.call(null,e,0)}catch{return G.call(this,e,0)}}}function ee(e){if(ie===clearTimeout)return clearTimeout(e);if((ie===B||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(e);try{return ie(e)}catch{try{return ie.call(null,e)}catch{return ie.call(this,e)}}}function H(){ae&&oe&&(ae=!1,oe.length?K=oe.concat(K):se=-1,K.length&&te())}function te(){if(!ae){var e=V(H);ae=!0;for(var t=K.length;t;){for(oe=K,K=[];++se<t;)oe&&oe[se].run();se=-1,t=K.length}oe=null,ae=!1,ee(e)}}function ne(e,t){this.fun=e,this.array=t}function U(){}var re,W,G,ie,K,ae,oe,se,ce,q,le=g((()=>{re={exports:{}},W=re.exports={},(function(){try{G=typeof setTimeout==`function`?setTimeout:z}catch{G=z}try{ie=typeof clearTimeout==`function`?clearTimeout:B}catch{ie=B}})(),K=[],ae=!1,se=-1,W.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];K.push(new ne(e,t)),K.length===1&&!ae&&V(te)},ne.prototype.run=function(){this.fun.apply(null,this.array)},W.title=`browser`,W.browser=!0,W.env={},W.argv=[],W.version=``,W.versions={},W.on=U,W.addListener=U,W.once=U,W.off=U,W.removeListener=U,W.removeAllListeners=U,W.emit=U,W.prependListener=U,W.prependOnceListener=U,W.listeners=function(e){return[]},W.binding=function(e){throw Error(`process.binding is not supported`)},W.cwd=function(){return`/`},W.chdir=function(e){throw Error(`process.chdir is not supported`)},W.umask=function(){return 0},ce=re.exports,q=R(ce)})),ue=_(((e,t)=>{t.exports=P().EventEmitter})),de=_((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){for(var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),fe=_((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),pe=_((e=>{var t=de(),n=fe(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:_(e.length)|0,n=o(t),r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(G(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){var t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ie(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(G(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=a.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return te(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return re(e).length;default:if(i)return r?-1:te(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){var t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ie(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(ie(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return W(te(t,e.length-n),e,n,r)}function E(e,t,n,r){return W(ne(t),e,n,r)}function D(e,t,n,r){return W(re(t),e,n,r)}function O(e,t,n,r){return W(U(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=K[e[a]];return i}function I(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function B(e,t,r,i,a){return t=+t,r>>>=0,a||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)};function V(e,t,r,i,a){return t=+t,r>>>=0,a||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var ee=/[^+/0-9A-Za-z-_]/g;function H(e){if(e=e.split(`=`)[0],e=e.trim().replace(ee,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function te(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ne(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function U(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function re(e){return t.toByteArray(H(e))}function W(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ie(e){return e!==e}var K=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),me=_(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),he=_(((e,t)=>{var n=me();t.exports=function(){return n()&&!!Symbol.toStringTag}})),ge=_(((e,t)=>{t.exports=Object})),_e=_(((e,t)=>{t.exports=Error})),ve=_(((e,t)=>{t.exports=EvalError})),ye=_(((e,t)=>{t.exports=RangeError})),be=_(((e,t)=>{t.exports=ReferenceError})),xe=_(((e,t)=>{t.exports=SyntaxError})),Se=_(((e,t)=>{t.exports=TypeError})),Ce=_(((e,t)=>{t.exports=URIError})),we=_(((e,t)=>{t.exports=Math.abs})),Te=_(((e,t)=>{t.exports=Math.floor})),Ee=_(((e,t)=>{t.exports=Math.max})),De=_(((e,t)=>{t.exports=Math.min})),Oe=_(((e,t)=>{t.exports=Math.pow})),ke=_(((e,t)=>{t.exports=Math.round})),Ae=_(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),je=_(((e,t)=>{var n=Ae();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Me=_(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Ne=_(((e,t)=>{var n=Me();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Pe=_(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Fe=_(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=me();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Ie=_(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Le=_(((e,t)=>{t.exports=ge().getPrototypeOf||null})),Re=_(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),ze=_(((e,t)=>{var n=Re();t.exports=Function.prototype.bind||n})),Be=_(((e,t)=>{t.exports=Function.prototype.call})),Ve=_(((e,t)=>{t.exports=Function.prototype.apply})),He=_(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Ue=_(((e,t)=>{var n=ze(),r=Ve(),i=Be();t.exports=He()||n.call(i,r)})),We=_(((e,t)=>{var n=ze(),r=Se(),i=Be(),a=Ue();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Ge=_(((e,t)=>{var n=We(),r=Ne(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),Ke=_(((e,t)=>{var n=Ie(),r=Le(),i=Ge();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),qe=_(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ze().call(n,r)})),Je=_(((e,t)=>{var n,r=ge(),i=_e(),a=ve(),o=ye(),s=be(),c=xe(),l=Se(),u=Ce(),d=we(),f=Te(),p=Ee(),m=De(),h=Oe(),g=ke(),_=je(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Ne(),x=Pe(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Fe()(),T=Ke(),E=Le(),D=Ie(),O=Ve(),k=Be(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=ze(),I=qe(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,te=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,ee,function(e,t,n,i){r[r.length]=n?z(i,H,`$1`):t||e}),r},ne=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=te(e),r=n.length>0?n[0]:``,i=ne(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Ye=_(((e,t)=>{var n=Je(),r=We(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Xe=_(((e,t)=>{var n=he()(),r=Ye()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),Ze=_(((e,t)=>{var n=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,a=he()(),o=Object.getPrototypeOf,s=function(){if(!a)return!1;try{return Function(`return function*() {}`)()}catch{}},c;t.exports=function(e){if(typeof e!=`function`)return!1;if(i.test(r.call(e)))return!0;if(!a)return n.call(e)===`[object GeneratorFunction]`;if(!o)return!1;if(c===void 0){var t=s();c=t?o(t):!1}return o(e)===c}})),Qe=_(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),$e=_(((e,t)=>{var n=Qe(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),et=_(((e,t)=>{t.exports=[`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),tt=_(((e,t)=>{L();var n=et(),r=typeof globalThis>`u`?I:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),nt=_(((e,t)=>{var n=Pe(),r=xe(),i=Se(),a=Ne();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),rt=_(((e,t)=>{var n=Pe(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),it=_(((e,t)=>{var n=Je(),r=nt(),i=rt()(),a=Ne(),o=Se(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),at=_(((e,t)=>{var n=ze(),r=Ve(),i=Ue();t.exports=function(){return i(n,r,arguments)}})),ot=_(((e,t)=>{var n=it(),r=Pe(),i=We(),a=at();t.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),st=_(((e,t)=>{L();var n=$e(),r=tt(),i=ot(),a=Ye(),o=Ne(),s=Ke(),c=a(`Object.prototype.toString`),l=he()(),u=typeof globalThis>`u`?I:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);!r&&n&&(r=o(s(n),Symbol.toStringTag)),m[`$`+e]=i(r.get)}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;n&&(m[`$`+e]=i(n))});var h=function(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t},g=function(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return p(d,t)>-1?t:t===`Object`&&g(e)}return o?h(e):null}})),ct=_(((e,t)=>{var n=st();t.exports=function(e){return!!n(e)}})),lt=_((e=>{var t=Xe(),n=Ze(),r=st(),i=ct();function a(e){return e.call.bind(e)}var o=typeof BigInt<`u`,s=typeof Symbol<`u`,c=a(Object.prototype.toString),l=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function h(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}e.isPromise=h;function g(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||z(e)}e.isArrayBufferView=g;function _(e){return r(e)===`Uint8Array`}e.isUint8Array=_;function v(e){return r(e)===`Uint8ClampedArray`}e.isUint8ClampedArray=v;function y(e){return r(e)===`Uint16Array`}e.isUint16Array=y;function b(e){return r(e)===`Uint32Array`}e.isUint32Array=b;function x(e){return r(e)===`Int8Array`}e.isInt8Array=x;function S(e){return r(e)===`Int16Array`}e.isInt16Array=S;function C(e){return r(e)===`Int32Array`}e.isInt32Array=C;function w(e){return r(e)===`Float32Array`}e.isFloat32Array=w;function T(e){return r(e)===`Float64Array`}e.isFloat64Array=T;function E(e){return r(e)===`BigInt64Array`}e.isBigInt64Array=E;function D(e){return r(e)===`BigUint64Array`}e.isBigUint64Array=D;function O(e){return c(e)===`[object Map]`}O.working=typeof Map<`u`&&O(new Map);function k(e){return typeof Map>`u`?!1:O.working?O(e):e instanceof Map}e.isMap=k;function A(e){return c(e)===`[object Set]`}A.working=typeof Set<`u`&&A(new Set);function j(e){return typeof Set>`u`?!1:A.working?A(e):e instanceof Set}e.isSet=j;function M(e){return c(e)===`[object WeakMap]`}M.working=typeof WeakMap<`u`&&M(new WeakMap);function N(e){return typeof WeakMap>`u`?!1:M.working?M(e):e instanceof WeakMap}e.isWeakMap=N;function P(e){return c(e)===`[object WeakSet]`}P.working=typeof WeakSet<`u`&&P(new WeakSet);function F(e){return P(e)}e.isWeakSet=F;function I(e){return c(e)===`[object ArrayBuffer]`}I.working=typeof ArrayBuffer<`u`&&I(new ArrayBuffer);function L(e){return typeof ArrayBuffer>`u`?!1:I.working?I(e):e instanceof ArrayBuffer}e.isArrayBuffer=L;function R(e){return c(e)===`[object DataView]`}R.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&R(new DataView(new ArrayBuffer(1),0,1));function z(e){return typeof DataView>`u`?!1:R.working?R(e):e instanceof DataView}e.isDataView=z;var B=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function V(e){return c(e)===`[object SharedArrayBuffer]`}function ee(e){return B!==void 0&&(V.working===void 0&&(V.working=V(new B)),V.working?V(e):e instanceof B)}e.isSharedArrayBuffer=ee;function H(e){return c(e)===`[object AsyncFunction]`}e.isAsyncFunction=H;function te(e){return c(e)===`[object Map Iterator]`}e.isMapIterator=te;function ne(e){return c(e)===`[object Set Iterator]`}e.isSetIterator=ne;function U(e){return c(e)===`[object Generator]`}e.isGeneratorObject=U;function re(e){return c(e)===`[object WebAssembly.Module]`}e.isWebAssemblyCompiledModule=re;function W(e){return m(e,l)}e.isNumberObject=W;function G(e){return m(e,u)}e.isStringObject=G;function ie(e){return m(e,d)}e.isBooleanObject=ie;function K(e){return o&&m(e,f)}e.isBigIntObject=K;function ae(e){return s&&m(e,p)}e.isSymbolObject=ae;function oe(e){return W(e)||G(e)||ie(e)||K(e)||ae(e)}e.isBoxedPrimitive=oe;function se(e){return typeof Uint8Array<`u`&&(L(e)||ee(e))}e.isAnyArrayBuffer=se,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})})),ut=_(((e,t)=>{t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}})),dt=_((e=>{le();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;e.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(` `)}for(var r=1,i=arguments,a=i.length,s=String(e).replace(n,function(e){if(e===`%%`)return`%`;if(r>=a)return e;switch(e){case`%s`:return String(i[r++]);case`%d`:return Number(i[r++]);case`%j`:try{return JSON.stringify(i[r++])}catch{return`[Circular]`}default:return e}}),c=i[r];r<a;c=i[++r])v(c)||!T(c)?s+=` `+c:s+=` `+o(c);return s},e.deprecate=function(t,n){if(q!==void 0&&q.noDeprecation===!0)return t;if(q===void 0)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(q.throwDeprecation)throw Error(n);q.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(q.env.NODE_DEBUG){var a=q.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),i=RegExp(`^`+a+`$`,`i`)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t]){if(i.test(t)){var n=q.pid;r[t]=function(){var r=e.format.apply(e,arguments);console.error(`%s %d: %s`,t,n,r)}}else r[t]=function(){}}return r[t]};function o(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function s(e,t){var n=o.styles[t];return n?`\x1B[`+o.colors[n][0]+`m`+e+`\x1B[`+o.colors[n][1]+`m`:e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(r,t);return x(i)||(i=u(t,i,r)),i}var a=d(t,n);if(a)return a;var o=Object.keys(n),s=l(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),D(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(O(n)){var c=n.name?`: `+n.name:``;return t.stylize(`[Function`+c+`]`,`special`)}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),`regexp`);if(E(n))return t.stylize(Date.prototype.toString.call(n),`date`);if(D(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),O(n)&&(_=` [Function`+(n.name?`: `+n.name:``)+`]`),w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),D(n)&&(_=` `+f(n)),o.length===0&&(!v||n.length==0))return y[0]+_+y[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push(n);var b=v?p(t,n,r,s,o):o.map(function(e){return m(t,n,r,s,e,v)});return t.seen.pop(),h(b,_,y)}function d(e,t){if(C(t))return e.stylize(`undefined`,`undefined`);if(x(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(b(t))return e.stylize(``+t,`number`);if(_(t))return e.stylize(``+t,`boolean`);if(v(t))return e.stylize(`null`,`null`)}function f(e){return`[`+Error.prototype.toString.call(e)+`]`}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)P(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push(``);return i.forEach(function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))}),a}function m(e,t,n,r,i,a){var o,s,c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(c.get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),P(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=v(n)?u(e,c.value,null):u(e,c.value,n-1),s.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-uGk3xSaR.js","assets/rolldown-runtime-COiEfhsA.js","assets/index-DDBTGDBH.js","assets/index-CQ1EkwHU.css","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-BWF7jMDv.js","assets/chunk-DSNLSHJZ-DSbxZuYn.js","assets/chunk-7S6XSTFO-BxCPUAo6.js","assets/dist-CumnGVmJ.js","assets/chunk-YZO67HFG-BpQ4S2PJ.js","assets/chunk-AQDTSKZB-D926zGIX.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-UHW7PFBP-CtcE35zX.js","assets/chunk-HAGFOTED-iybsmSvO.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ZAUX2LTX-qfoMdC_H.js","assets/chunk-WQQL4CDK-B1xBf0mr.js","assets/line-Bb33sMEA.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-HNE4Q36P-BNO-r5as.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t}from"./rolldown-runtime-COiEfhsA.js";import{E as n,T as r,_ as i,a,h as o,j as s,o as c,p as l}from"./index-DDBTGDBH.js";var u=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,m=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},_=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=p(t),a=0,o=i.length,s;a<o;a++)s=i[a],!h.call(e,s)&&s!==n&&d(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=f(t,s))||r.enumerable});return e},y=(e,t,n)=>(n=e==null?{}:u(m(e)),v(t||!e||!e.__esModule||!h.call(e,`default`)?d(n,`default`,{value:e,enumerable:!0}):n,e)),b=(e=>t===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(t===void 0?e:t)[n]}):e:t)(function(e){if(t!==void 0)return t.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function x(e){"@babel/helpers - typeof";return x=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},x(e)}function S(e,t){if(x(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(x(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function C(e){var t=S(e,`string`);return x(t)==`symbol`?t:t+``}function w(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=class{constructor(e){w(this,`rootKey`,void 0),this.rootKey=e}get writtenAs(){}},E=Object.seal({}),D=class extends T{constructor(e){super(e),w(this,`root`,void 0),this.root=[]}prepForXml(e){e.stack.push(this);let t=this.root.flatMap(t=>{if(t instanceof T){let n=t.writtenAs;return n?n.map(t=>t.prepForXml(e)):t.prepForXml(e)}return t}).filter(e=>e!==void 0);return e.stack.pop(),{[this.rootKey]:t.length?t.length===1&&t[0]?._attr?t[0]:t:E}}addChildElement(e){return this.root.push(e),this}},O=class extends D{constructor(e,t){super(e),w(this,`includeIfEmpty`,void 0),this.includeIfEmpty=t}prepForXml(e){let t=super.prepForXml(e);return this.includeIfEmpty||t&&(typeof t[this.rootKey]!=`object`||Object.keys(t[this.rootKey]).length)?t:void 0}};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?k(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=class extends T{constructor(e){super(`_attr`),w(this,`root`,void 0),w(this,`xmlKeys`,void 0),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([e,n])=>{if(n!==void 0){let r=this.xmlKeys&&this.xmlKeys[e]||e;t[r]=n}}),{_attr:t}}},M=class extends T{constructor(e){super(`_attr`),w(this,`root`,void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:e})=>e!==void 0).reduce((e,{key:t,value:n})=>A(A({},e),{},{[t]:n}),{})}}},N=class extends j{constructor(...e){super(...e),w(this,`xmlKeys`,{val:`w:val`,color:`w:color`,fill:`w:fill`,space:`w:space`,sz:`w:sz`,type:`w:type`,rsidR:`w:rsidR`,rsidRPr:`w:rsidRPr`,rsidSect:`w:rsidSect`,w:`w:w`,h:`w:h`,top:`w:top`,right:`w:right`,bottom:`w:bottom`,left:`w:left`,header:`w:header`,footer:`w:footer`,gutter:`w:gutter`,linePitch:`w:linePitch`,pos:`w:pos`})}},P=_(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),F=_(((e,t)=>{t.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),I,L=g((()=>{I=globalThis||self}));function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function z(){throw Error(`setTimeout has not been defined`)}function B(){throw Error(`clearTimeout has not been defined`)}function V(e){if(G===setTimeout)return setTimeout(e,0);if((G===z||!G)&&setTimeout)return G=setTimeout,setTimeout(e,0);try{return G(e,0)}catch{try{return G.call(null,e,0)}catch{return G.call(this,e,0)}}}function ee(e){if(ie===clearTimeout)return clearTimeout(e);if((ie===B||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(e);try{return ie(e)}catch{try{return ie.call(null,e)}catch{return ie.call(this,e)}}}function H(){ae&&oe&&(ae=!1,oe.length?K=oe.concat(K):se=-1,K.length&&te())}function te(){if(!ae){var e=V(H);ae=!0;for(var t=K.length;t;){for(oe=K,K=[];++se<t;)oe&&oe[se].run();se=-1,t=K.length}oe=null,ae=!1,ee(e)}}function ne(e,t){this.fun=e,this.array=t}function U(){}var re,W,G,ie,K,ae,oe,se,ce,q,le=g((()=>{re={exports:{}},W=re.exports={},(function(){try{G=typeof setTimeout==`function`?setTimeout:z}catch{G=z}try{ie=typeof clearTimeout==`function`?clearTimeout:B}catch{ie=B}})(),K=[],ae=!1,se=-1,W.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];K.push(new ne(e,t)),K.length===1&&!ae&&V(te)},ne.prototype.run=function(){this.fun.apply(null,this.array)},W.title=`browser`,W.browser=!0,W.env={},W.argv=[],W.version=``,W.versions={},W.on=U,W.addListener=U,W.once=U,W.off=U,W.removeListener=U,W.removeAllListeners=U,W.emit=U,W.prependListener=U,W.prependOnceListener=U,W.listeners=function(e){return[]},W.binding=function(e){throw Error(`process.binding is not supported`)},W.cwd=function(){return`/`},W.chdir=function(e){throw Error(`process.chdir is not supported`)},W.umask=function(){return 0},ce=re.exports,q=R(ce)})),ue=_(((e,t)=>{t.exports=P().EventEmitter})),de=_((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){for(var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),fe=_((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),pe=_((e=>{var t=de(),n=fe(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:_(e.length)|0,n=o(t),r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(G(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){var t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ie(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(G(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=a.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return te(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return re(e).length;default:if(i)return r?-1:te(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){var t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ie(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(ie(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return W(te(t,e.length-n),e,n,r)}function E(e,t,n,r){return W(ne(t),e,n,r)}function D(e,t,n,r){return W(re(t),e,n,r)}function O(e,t,n,r){return W(U(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=K[e[a]];return i}function I(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function B(e,t,r,i,a){return t=+t,r>>>=0,a||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)};function V(e,t,r,i,a){return t=+t,r>>>=0,a||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var ee=/[^+/0-9A-Za-z-_]/g;function H(e){if(e=e.split(`=`)[0],e=e.trim().replace(ee,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function te(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ne(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function U(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function re(e){return t.toByteArray(H(e))}function W(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ie(e){return e!==e}var K=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),me=_(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),he=_(((e,t)=>{var n=me();t.exports=function(){return n()&&!!Symbol.toStringTag}})),ge=_(((e,t)=>{t.exports=Object})),_e=_(((e,t)=>{t.exports=Error})),ve=_(((e,t)=>{t.exports=EvalError})),ye=_(((e,t)=>{t.exports=RangeError})),be=_(((e,t)=>{t.exports=ReferenceError})),xe=_(((e,t)=>{t.exports=SyntaxError})),Se=_(((e,t)=>{t.exports=TypeError})),Ce=_(((e,t)=>{t.exports=URIError})),we=_(((e,t)=>{t.exports=Math.abs})),Te=_(((e,t)=>{t.exports=Math.floor})),Ee=_(((e,t)=>{t.exports=Math.max})),De=_(((e,t)=>{t.exports=Math.min})),Oe=_(((e,t)=>{t.exports=Math.pow})),ke=_(((e,t)=>{t.exports=Math.round})),Ae=_(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),je=_(((e,t)=>{var n=Ae();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Me=_(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Ne=_(((e,t)=>{var n=Me();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Pe=_(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Fe=_(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=me();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Ie=_(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Le=_(((e,t)=>{t.exports=ge().getPrototypeOf||null})),Re=_(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),ze=_(((e,t)=>{var n=Re();t.exports=Function.prototype.bind||n})),Be=_(((e,t)=>{t.exports=Function.prototype.call})),Ve=_(((e,t)=>{t.exports=Function.prototype.apply})),He=_(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Ue=_(((e,t)=>{var n=ze(),r=Ve(),i=Be();t.exports=He()||n.call(i,r)})),We=_(((e,t)=>{var n=ze(),r=Se(),i=Be(),a=Ue();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Ge=_(((e,t)=>{var n=We(),r=Ne(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),Ke=_(((e,t)=>{var n=Ie(),r=Le(),i=Ge();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),qe=_(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ze().call(n,r)})),Je=_(((e,t)=>{var n,r=ge(),i=_e(),a=ve(),o=ye(),s=be(),c=xe(),l=Se(),u=Ce(),d=we(),f=Te(),p=Ee(),m=De(),h=Oe(),g=ke(),_=je(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Ne(),x=Pe(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Fe()(),T=Ke(),E=Le(),D=Ie(),O=Ve(),k=Be(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=ze(),I=qe(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,te=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,ee,function(e,t,n,i){r[r.length]=n?z(i,H,`$1`):t||e}),r},ne=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=te(e),r=n.length>0?n[0]:``,i=ne(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Ye=_(((e,t)=>{var n=Je(),r=We(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Xe=_(((e,t)=>{var n=he()(),r=Ye()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),Ze=_(((e,t)=>{var n=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,a=he()(),o=Object.getPrototypeOf,s=function(){if(!a)return!1;try{return Function(`return function*() {}`)()}catch{}},c;t.exports=function(e){if(typeof e!=`function`)return!1;if(i.test(r.call(e)))return!0;if(!a)return n.call(e)===`[object GeneratorFunction]`;if(!o)return!1;if(c===void 0){var t=s();c=t?o(t):!1}return o(e)===c}})),Qe=_(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),$e=_(((e,t)=>{var n=Qe(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),et=_(((e,t)=>{t.exports=[`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),tt=_(((e,t)=>{L();var n=et(),r=typeof globalThis>`u`?I:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),nt=_(((e,t)=>{var n=Pe(),r=xe(),i=Se(),a=Ne();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),rt=_(((e,t)=>{var n=Pe(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),it=_(((e,t)=>{var n=Je(),r=nt(),i=rt()(),a=Ne(),o=Se(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),at=_(((e,t)=>{var n=ze(),r=Ve(),i=Ue();t.exports=function(){return i(n,r,arguments)}})),ot=_(((e,t)=>{var n=it(),r=Pe(),i=We(),a=at();t.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),st=_(((e,t)=>{L();var n=$e(),r=tt(),i=ot(),a=Ye(),o=Ne(),s=Ke(),c=a(`Object.prototype.toString`),l=he()(),u=typeof globalThis>`u`?I:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);!r&&n&&(r=o(s(n),Symbol.toStringTag)),m[`$`+e]=i(r.get)}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;n&&(m[`$`+e]=i(n))});var h=function(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t},g=function(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return p(d,t)>-1?t:t===`Object`&&g(e)}return o?h(e):null}})),ct=_(((e,t)=>{var n=st();t.exports=function(e){return!!n(e)}})),lt=_((e=>{var t=Xe(),n=Ze(),r=st(),i=ct();function a(e){return e.call.bind(e)}var o=typeof BigInt<`u`,s=typeof Symbol<`u`,c=a(Object.prototype.toString),l=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function h(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}e.isPromise=h;function g(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||z(e)}e.isArrayBufferView=g;function _(e){return r(e)===`Uint8Array`}e.isUint8Array=_;function v(e){return r(e)===`Uint8ClampedArray`}e.isUint8ClampedArray=v;function y(e){return r(e)===`Uint16Array`}e.isUint16Array=y;function b(e){return r(e)===`Uint32Array`}e.isUint32Array=b;function x(e){return r(e)===`Int8Array`}e.isInt8Array=x;function S(e){return r(e)===`Int16Array`}e.isInt16Array=S;function C(e){return r(e)===`Int32Array`}e.isInt32Array=C;function w(e){return r(e)===`Float32Array`}e.isFloat32Array=w;function T(e){return r(e)===`Float64Array`}e.isFloat64Array=T;function E(e){return r(e)===`BigInt64Array`}e.isBigInt64Array=E;function D(e){return r(e)===`BigUint64Array`}e.isBigUint64Array=D;function O(e){return c(e)===`[object Map]`}O.working=typeof Map<`u`&&O(new Map);function k(e){return typeof Map>`u`?!1:O.working?O(e):e instanceof Map}e.isMap=k;function A(e){return c(e)===`[object Set]`}A.working=typeof Set<`u`&&A(new Set);function j(e){return typeof Set>`u`?!1:A.working?A(e):e instanceof Set}e.isSet=j;function M(e){return c(e)===`[object WeakMap]`}M.working=typeof WeakMap<`u`&&M(new WeakMap);function N(e){return typeof WeakMap>`u`?!1:M.working?M(e):e instanceof WeakMap}e.isWeakMap=N;function P(e){return c(e)===`[object WeakSet]`}P.working=typeof WeakSet<`u`&&P(new WeakSet);function F(e){return P(e)}e.isWeakSet=F;function I(e){return c(e)===`[object ArrayBuffer]`}I.working=typeof ArrayBuffer<`u`&&I(new ArrayBuffer);function L(e){return typeof ArrayBuffer>`u`?!1:I.working?I(e):e instanceof ArrayBuffer}e.isArrayBuffer=L;function R(e){return c(e)===`[object DataView]`}R.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&R(new DataView(new ArrayBuffer(1),0,1));function z(e){return typeof DataView>`u`?!1:R.working?R(e):e instanceof DataView}e.isDataView=z;var B=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function V(e){return c(e)===`[object SharedArrayBuffer]`}function ee(e){return B!==void 0&&(V.working===void 0&&(V.working=V(new B)),V.working?V(e):e instanceof B)}e.isSharedArrayBuffer=ee;function H(e){return c(e)===`[object AsyncFunction]`}e.isAsyncFunction=H;function te(e){return c(e)===`[object Map Iterator]`}e.isMapIterator=te;function ne(e){return c(e)===`[object Set Iterator]`}e.isSetIterator=ne;function U(e){return c(e)===`[object Generator]`}e.isGeneratorObject=U;function re(e){return c(e)===`[object WebAssembly.Module]`}e.isWebAssemblyCompiledModule=re;function W(e){return m(e,l)}e.isNumberObject=W;function G(e){return m(e,u)}e.isStringObject=G;function ie(e){return m(e,d)}e.isBooleanObject=ie;function K(e){return o&&m(e,f)}e.isBigIntObject=K;function ae(e){return s&&m(e,p)}e.isSymbolObject=ae;function oe(e){return W(e)||G(e)||ie(e)||K(e)||ae(e)}e.isBoxedPrimitive=oe;function se(e){return typeof Uint8Array<`u`&&(L(e)||ee(e))}e.isAnyArrayBuffer=se,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})})),ut=_(((e,t)=>{t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}})),dt=_((e=>{le();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;e.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(` `)}for(var r=1,i=arguments,a=i.length,s=String(e).replace(n,function(e){if(e===`%%`)return`%`;if(r>=a)return e;switch(e){case`%s`:return String(i[r++]);case`%d`:return Number(i[r++]);case`%j`:try{return JSON.stringify(i[r++])}catch{return`[Circular]`}default:return e}}),c=i[r];r<a;c=i[++r])v(c)||!T(c)?s+=` `+c:s+=` `+o(c);return s},e.deprecate=function(t,n){if(q!==void 0&&q.noDeprecation===!0)return t;if(q===void 0)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(q.throwDeprecation)throw Error(n);q.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(q.env.NODE_DEBUG){var a=q.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),i=RegExp(`^`+a+`$`,`i`)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t]){if(i.test(t)){var n=q.pid;r[t]=function(){var r=e.format.apply(e,arguments);console.error(`%s %d: %s`,t,n,r)}}else r[t]=function(){}}return r[t]};function o(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function s(e,t){var n=o.styles[t];return n?`\x1B[`+o.colors[n][0]+`m`+e+`\x1B[`+o.colors[n][1]+`m`:e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(r,t);return x(i)||(i=u(t,i,r)),i}var a=d(t,n);if(a)return a;var o=Object.keys(n),s=l(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),D(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(O(n)){var c=n.name?`: `+n.name:``;return t.stylize(`[Function`+c+`]`,`special`)}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),`regexp`);if(E(n))return t.stylize(Date.prototype.toString.call(n),`date`);if(D(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),O(n)&&(_=` [Function`+(n.name?`: `+n.name:``)+`]`),w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),D(n)&&(_=` `+f(n)),o.length===0&&(!v||n.length==0))return y[0]+_+y[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push(n);var b=v?p(t,n,r,s,o):o.map(function(e){return m(t,n,r,s,e,v)});return t.seen.pop(),h(b,_,y)}function d(e,t){if(C(t))return e.stylize(`undefined`,`undefined`);if(x(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(b(t))return e.stylize(``+t,`number`);if(_(t))return e.stylize(``+t,`boolean`);if(v(t))return e.stylize(`null`,`null`)}function f(e){return`[`+Error.prototype.toString.call(e)+`]`}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)P(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push(``);return i.forEach(function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))}),a}function m(e,t,n,r,i,a){var o,s,c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(c.get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),P(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=v(n)?u(e,c.value,null):u(e,c.value,n-1),s.indexOf(`
|
|
3
3
|
`)>-1&&(s=a?s.split(`
|
|
4
4
|
`).map(function(e){return` `+e}).join(`
|
|
5
5
|
`).slice(2):`
|
|
@@ -26,4 +26,4 @@ Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.
|
|
|
26
26
|
`:``)),n&&n()}function a(t){return t.interrupt?(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0):!1}if(e(!1,t.indents+(t.name?`<`+t.name:``)+(t.attributes.length?` `+t.attributes.join(` `):``)+(r?t.name?`>`:``:t.name?`/>`:``)+(t.indent&&r>1?`
|
|
27
27
|
`:``)),!r)return e(!1,t.indent?`
|
|
28
28
|
`:``);a(t)||i()}function u(e,t){return e+`="`+n(t)+`"`}t.exports=a,t.exports.element=t.exports.Element=o})),Cf=Ot(),wf=y(bf(),1),$=y(Sf(),1),Tf=0,Ef=32,Df=32,Of=(e,t)=>{let n=t.replace(/-/g,``);if(n.length!==Df)throw Error(`Error: Cannot extract GUID from font filename: ${t}`);let r=n.replace(/(..)/g,`$1 `).trim().split(` `).map(e=>parseInt(e,16));r.reverse();let i=e.slice(Tf,Ef).map((e,t)=>e^r[t%r.length]),a=new Uint8Array(Tf+i.length+Math.max(0,e.length-Ef));return a.set(e.slice(0,Tf)),a.set(i,Tf),a.set(e.slice(Ef),Tf+i.length),a},kf=class{format(e,t={stack:[]}){let n=e.prepForXml(t);if(n)return n;throw Error(`XMLComponent did not format correctly`)}},Af=class{replace(e,t,n){let r=e;return t.forEach((e,t)=>{r=r.replace(RegExp(`{${e.fileName}}`,`g`),(n+t).toString())}),r}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}},jf=class{replace(e,t){let n=e;for(let e of t)n=n.replace(RegExp(`{${e.reference}-${e.instance}}`,`g`),e.numId.toString());return n}},Mf=new kf,Nf=(e,t,n,r,i=!0)=>(0,$.default)(Mf.format(t,{viewWrapper:{View:t,Relationships:r},file:e,stack:[]}),{indent:n,declaration:i?{standalone:`yes`,encoding:`UTF-8`}:{encoding:`UTF-8`}}),Pf=(e,t,n,r)=>{let{content:i}=t.options;if(i instanceof Uint8Array)return[{data:i,path:`word/${n}`}];if(`files`in i){let t=new wf.default;for(let{path:n,content:a}of i.files)t.file(n,a instanceof Uint8Array?a:Qr(Nf(e,a,r,new Qo)));return[{data:t.generateAsync({type:`uint8array`,compression:`DEFLATE`}),path:`word/${n}`}]}let a=e.PackageParts.createRelationships(n),o=Nf(e,i,r,a),s=n.slice(0,n.lastIndexOf(`/`)),c=n.slice(n.lastIndexOf(`/`)+1);return[{data:o,path:`word/${n}`},...a.RelationshipCount>0?[{data:Nf(e,a,r,a,!1),path:`word/${s}/_rels/${c}.rels`}]:[]]},Ff=(e,t,n=0)=>{let r=e.PackageParts.Array.slice(n);return r.length===0?[]:[...r.flatMap(({part:n,path:r})=>Pf(e,n,r,t)),...Ff(e,t,n+r.length)]},If=[`PackageParts`],Lf=class{constructor(){w(this,`formatter`,void 0),w(this,`imageReplacer`,void 0),w(this,`numberingReplacer`,void 0),this.formatter=new kf,this.imageReplacer=new Af,this.numberingReplacer=new jf}compile(e,t,n=[]){let r=new wf.default,i=this.xmlifyFile(e,t),{PackageParts:a}=i,o=ec(i,If),s=new Map(Object.entries(o));for(let[,e]of s)if(Array.isArray(e))for(let t of e)r.file(t.path,Qr(t.data));else r.file(e.path,Qr(e.data));for(let{path:e,data:t}of a)r.file(e,typeof t==`string`?Qr(t):t);for(let e of n)r.file(e.path,Qr(e.data));for(let t of e.Media.Array)t.type===`svg`?(r.file(`word/media/${t.fileName}`,t.data),r.file(`word/media/${t.fallback.fileName}`,t.fallback.data)):r.file(`word/media/${t.fileName}`,t.data);for(let[t,{data:n,fontKey:i}]of e.FontTable.files.entries())r.file(`word/fonts/font${t+1}.odttf`,Of(n,i));return r}xmlifyFile(e,t){let n=(0,$.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),r=(0,$.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),i=(0,$.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),a=(0,$.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),o=e.Document.Relationships.RelationshipCount+1,s=e.Comments.Relationships.RelationshipCount+1,c=e.FootNotes.Relationships.RelationshipCount+1,l=e.Endnotes.Relationships.RelationshipCount+1,u=this.imageReplacer.getMediaData(n,e.Media),d=this.imageReplacer.getMediaData(r,e.Media),f=this.imageReplacer.getMediaData(i,e.Media),p=this.imageReplacer.getMediaData(a,e.Media);return A(A(A(A({Relationships:{data:(()=>{let n=Qo.copy(e.Document.Relationships);return u.forEach((e,t)=>{n.addRelationship(o+t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),n.addRelationship(n.RelationshipCount+1,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable`,`fontTable.xml`),(0,$.default)(this.formatter.format(n,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})})(),path:`word/_rels/document.xml.rels`},Document:{data:(()=>{let t=this.imageReplacer.replace(n,u,o);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/document.xml`},Styles:{data:(()=>{let n=(0,$.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}});return this.numberingReplacer.replace(n,e.Numbering.ConcreteNumbering)})(),path:`word/styles.xml`},Properties:{data:(0,$.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/core.xml`},FileRelationships:{data:(0,$.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`_rels/.rels`},HeaderRelationships:e.Headers.map((n,r)=>{let i=(0,$.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=Qo.copy(n.Relationships);return a.forEach((e,t)=>{o.addRelationship(t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),{data:(0,$.default)(this.formatter.format(o,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/header${r+1}.xml.rels`}}),FooterRelationships:e.Footers.map((n,r)=>{let i=(0,$.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=Qo.copy(n.Relationships);return a.forEach((e,t)=>{o.addRelationship(t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),{data:(0,$.default)(this.formatter.format(o,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/footer${r+1}.xml.rels`}}),Headers:e.Headers.map((n,r)=>{let i=(0,$.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=this.imageReplacer.replace(i,a,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/header${r+1}.xml`}}),Footers:e.Footers.map((n,r)=>{let i=(0,$.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=this.imageReplacer.replace(i,a,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/footer${r+1}.xml`}}),CustomProperties:{data:(0,$.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/custom.xml`},AppProperties:{data:(0,$.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/app.xml`},FootNotes:{data:(()=>{let t=this.imageReplacer.replace(i,f,c);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/footnotes.xml`},FootNotesRelationships:{data:(()=>{let n=Qo.copy(e.FootNotes.Relationships);return f.forEach((e,t)=>{n.addRelationship(c+t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),(0,$.default)(this.formatter.format(n,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})})(),path:`word/_rels/footnotes.xml.rels`},Endnotes:{data:(()=>{let t=this.imageReplacer.replace(a,p,l);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/endnotes.xml`},EndnotesRelationships:{data:(()=>{let n=Qo.copy(e.Endnotes.Relationships);return p.forEach((e,t)=>{n.addRelationship(l+t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),(0,$.default)(this.formatter.format(n,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})})(),path:`word/_rels/endnotes.xml.rels`},Settings:{data:(0,$.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/settings.xml`}},e.Comments.IsEmpty?{}:{Comments:{data:(()=>{let t=this.imageReplacer.replace(r,d,s);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/comments.xml`},CommentsRelationships:{data:(()=>{let n=Qo.copy(e.Comments.Relationships);return d.forEach((e,t)=>{n.addRelationship(s+t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),(0,$.default)(this.formatter.format(n,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})})(),path:`word/_rels/comments.xml.rels`}}),e.CommentsExtended?{CommentsExtended:{data:(0,$.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/commentsExtended.xml`}}:{}),e.CommentsIds?{CommentsIds:{data:(0,$.default)(this.formatter.format(e.CommentsIds,{viewWrapper:{View:e.CommentsIds,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/commentsIds.xml`}}:{}),{},{FontTable:{data:(0,$.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/fontTable.xml`},FontTableRelationships:{data:(0,$.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/fontTable.xml.rels`},Theme:{data:(0,$.default)(this.formatter.format(e.Theme,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/theme/theme1.xml`},PackageParts:Ff(e,t),Numbering:{data:(0,$.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/numbering.xml`},ContentTypes:{data:(0,$.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`[Content_Types].xml`}})}};function Rf(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function zf(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Rf(a,r,i,o,s,`next`,e)}function s(e){Rf(a,r,i,o,s,`throw`,e)}o(void 0)})}}var Bf={NONE:``,WITH_2_BLANKS:` `,WITH_4_BLANKS:` `,WITH_TAB:` `},Vf=e=>e===!0?Bf.WITH_2_BLANKS:e===!1?void 0:e,Hf=class e{static pack(e,t,n){var r=this;return zf(function*(e,t,n,i=[]){return r.compiler.compile(e,Vf(n),i).generateAsync({type:t,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`})}).apply(this,arguments)}static toString(t,n,r=[]){return e.pack(t,`string`,n,r)}static toBuffer(t,n,r=[]){return e.pack(t,`nodebuffer`,n,r)}static toBase64String(t,n,r=[]){return e.pack(t,`base64`,n,r)}static toBlob(t,n,r=[]){return e.pack(t,`blob`,n,r)}static toArrayBuffer(t,n,r=[]){return e.pack(t,`arraybuffer`,n,r)}static toStream(e,t,n=[]){let r=new Cf.Stream;return this.compiler.compile(e,Vf(t),n).generateAsync({type:`nodebuffer`,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`}).then(e=>{r.emit(`data`,e),r.emit(`end`)}),r}};w(Hf,`compiler`,new Lf);var Uf=e=>{if(e.name!==`w:bookmarkStart`&&e.name!==`w:bookmarkEnd`)return;let t=Number(e.attributes?.[`w:id`]);return Number.isInteger(t)?t:void 0},Wf=e=>{let t=Uf(e);return[...t===void 0?[]:[t],...(e.elements??[]).flatMap(Wf)]},Gf=e=>{let t=new Set(e),n=new Map,r=e.reduce((e,t)=>Math.max(e,t),0),i=e=>{let i=n.get(e);if(i!==void 0)return i;let a=t.has(e)?r+1:e;return r=Math.max(r,a),t.add(a),n.set(e,a),a},a=e=>{let t=Uf(e);return A(A(A({},e),t===void 0?{}:{attributes:A(A({},e.attributes),{},{"w:id":String(i(t))})}),e.elements===void 0?{}:{elements:e.elements.map(a)})};return e=>e.map(a)},Kf=new kf,qf=e=>(0,It.xml2js)(e,{compact:!1,captureSpacesBetweenElements:!0}),Jf=e=>qf((0,$.default)(Kf.format(new Sr({text:e})))).elements[0].elements??[],Yf=e=>A(A({},e),{},{attributes:{"xml:space":`preserve`}}),Xf=(e,t)=>{let n=e.elements?.find(e=>e.name===t);return n===void 0?[]:(n.elements??=[],n.elements)},Zf=(e,t,n)=>{let r=Xf(e,`Types`);r.some(e=>{var r,i;return e.type===`element`&&e.name===`Default`&&(e==null||(r=e.attributes)==null?void 0:r.ContentType)===t&&(e==null||(i=e.attributes)==null?void 0:i.Extension)===n})||r.push({attributes:{ContentType:t,Extension:n},name:`Default`,type:`element`})},Qf=(e,t,n)=>{let r=Xf(e,`Types`);r.some(e=>e.type===`element`&&e.name===`Override`&&e.attributes?.PartName===n)||r.push({attributes:{ContentType:t,PartName:n},name:`Override`,type:`element`})},$f=(e,t)=>{let n=e.elements?.find(e=>e.name===`Types`);n?.elements!==void 0&&(n.elements=n.elements.filter(e=>e.name!==`Override`||String(e.attributes?.PartName??``).toLowerCase()!==t.toLowerCase()))},ep=new Set([`wp:inline`,`wp:anchor`]),tp=new Set([`wp:docPr`,`wps:cNvPr`,`wpg:cNvPr`]),np=new Set([`a:stCxn`,`a:endCxn`]),rp=(e,t)=>{if(!t.has(e.name??``))return;let n=Number(e.attributes?.id);return Number.isInteger(n)?n:void 0},ip=e=>{let t=rp(e,tp);return[...t===void 0?[]:[t],...(e.elements??[]).flatMap(ip)]},ap=e=>{let t=e=>{let n=rp(e,tp);return[...n===void 0?[]:[n],...(e.elements??[]).flatMap(e=>ep.has(e.name??``)?[]:t(e))]};return t(e)},op=e=>{let t=new Set(e),n=e.reduce((e,t)=>Math.max(e,t),0),r=e=>{let r=t.has(e)?n+1:e;return n=Math.max(n,r),t.add(r),r},i=e=>{let t=new Map([...new Set(ap(e))].map(e=>[e,r(e)])),n=r=>{if(r!==e&&ep.has(r.name??``))return i(r);let a=rp(r,tp)??rp(r,np),o=a===void 0?void 0:t.get(a);return A(A(A({},r),o===void 0?{}:{attributes:A(A({},r.attributes),{},{id:String(o)})}),r.elements===void 0?{}:{elements:r.elements.map(n)})};return n(e)},a=e=>ep.has(e.name??``)?i(e):A(A({},e),e.elements===void 0?{}:{elements:e.elements.map(a)});return e=>e.map(a)},sp={DOCUMENT:`file`,PARAGRAPH:`paragraph`,TABLE_ROWS:`tableRows`,DRAWING:`drawing`},cp=e=>{let t=parseInt(e.substring(3),10);return isNaN(t)?0:t},lp=e=>Xf(e,`Relationships`).map(e=>{var t;return cp(((t=e.attributes)==null||(t=t.Id)==null?void 0:t.toString())??``)}).reduce((e,t)=>Math.max(e,t),0)+1,up=(e,t,n,r,i)=>{let a=Xf(e,`Relationships`);return a.push({attributes:{Id:`rId${t}`,Type:n,Target:r,TargetMode:i},name:`Relationship`,type:`element`}),a},dp=()=>({declaration:{attributes:{version:`1.0`,encoding:`UTF-8`,standalone:`yes`}},elements:[{type:`element`,name:`Relationships`,attributes:{xmlns:`http://schemas.openxmlformats.org/package/2006/relationships`},elements:[]}]}),fp=new Map([[`wp:inline`,`wp:docPr`],[`wp:anchor`,`wp:docPr`],[`wpg:graphicFrame`,`wpg:cNvPr`],[`wpc:graphicFrame`,`wpg:cNvPr`]]),pp=e=>(e.elements??[]).flatMap(e=>{let t=e.name===void 0?void 0:fp.get(e.name),n=t===void 0?void 0:e.elements?.find(e=>e.name===t);return[...n?[{element:e,properties:n}]:[],...pp(e)]}),mp=e=>[e.attributes?.descr,e.attributes?.title].flatMap(e=>e===void 0?[]:[String(e)]),hp=e=>{let t=e.lastIndexOf(`/`);return`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`},gp=e=>e.replace(/(^|\/)_rels\/([^/]*)\.rels$/,`$1$2`),_p=e=>e.slice(0,e.lastIndexOf(`/`)+1),vp=(e,t)=>{let n=t.replace(/\\/g,`/`);return(n.startsWith(`/`)?n:`${_p(e)}${n}`).split(`/`).reduce((e,t)=>t===``||t===`.`?e:t===`..`?e.slice(0,-1):[...e,t],[]).join(`/`)},yp=(e,t)=>{let n=_p(e).split(`/`).filter(Boolean),r=t.split(`/`),i=n.findIndex((e,t)=>t>=r.length-1||r[t]!==e),a=i===-1?n.length:i;return[...n.slice(a).map(()=>`..`),...r.slice(a)].join(`/`)},bp=`[Content_Types].xml`,xp=e=>(e.elements?.some(e=>e.name===`Relationships`)||(e.elements=[...e.elements??[],...dp().elements]),Xf(e,`Relationships`)),Sp=(e,t,n,r)=>{let i=new kf,a=n=>e.has(n)||t.has(n),o=n=>{if(a(n))return n;let r=(()=>{try{return decodeURI(n)}catch{return}})();if(r!==void 0&&a(r))return r;let i=n.toLowerCase();return[...e.keys(),...t.keys()].find(e=>e.toLowerCase()===i)},s=(t,n)=>{let r=e.get(hp(t));return r===void 0?void 0:Xf(r,`Relationships`).find(e=>e.name===`Relationship`&&e.attributes?.Id===n)},c=(e,t)=>{let n=t.attributes?.Target;return t.attributes?.TargetMode===`External`||n===void 0?void 0:o(vp(e,String(n)))},l=t=>[...e].some(([e,n])=>e.endsWith(`.rels`)&&Xf(n,`Relationships`).some(n=>c(gp(e),n)===t)),u=n=>{e.delete(n),t.delete(n),e.delete(hp(n));let r=e.get(bp);r!==void 0&&$f(r,`/${n}`)};return{getRelatedPart:(t,n)=>{let r=s(t.path,n),i=r===void 0?void 0:c(t.path,r);return i===void 0?void 0:{path:i,xml:e.get(i)}},replaceRelatedPart:(t,r,i)=>{let a=`word/${n.PackageParts.add(i)}`,{relationshipType:o}=i.options,d=yp(t.path,a),f=r===void 0?void 0:s(t.path,r);if(f===void 0){let n=hp(t.path),i=e.get(n)??dp();e.set(n,i);let a=r??`rId${lp(i)}`;return xp(i).push({type:`element`,name:`Relationship`,attributes:{Id:a,Type:o,Target:d}}),a}let p=c(t.path,f);return f.attributes=A(A({},Object.fromEntries(Object.entries(f.attributes).filter(([e])=>e!==`TargetMode`))),{},{Type:o,Target:d}),p!==void 0&&p!==t.path&&p!==bp&&!p.endsWith(`.rels`)&&!l(p)&&u(p),String(f.attributes.Id)},format:e=>qf((0,$.default)(i.format(e,r))).elements[0]}},Cp=({parts:e,binaryParts:t,file:n,patches:r,delimiters:i},a)=>{let o=r.map(([e,t])=>({placeholder:`${i.start}${e}${i.end}`,patch:t})),s=[...e].filter(([e])=>e.startsWith(`word/`)&&!e.endsWith(`.rels`)).flatMap(([e,t])=>pp(t).flatMap(n=>{let r=mp(n.properties),i=o.filter(({placeholder:e})=>r.some(t=>t.includes(e)));if(i.length>1)throw Error(`The drawing "${n.properties.attributes?.name??``}" in ${e} has the placeholders ${i.map(({placeholder:e})=>e).join(` and `)} in its alt text. A drawing can only be patched once`);return i.map(({placeholder:r,patch:i})=>({drawing:A(A({placeholder:r},n),{},{part:{path:e,xml:t}}),patch:i}))}));for(let{drawing:r,patch:i}of s)i.patch(r,Sp(e,t,n,a(r.part.path)))},wp=new kf,Tp=`word/document.xml`,Ep={path:`word/footnotes.xml`,rootName:`w:footnotes`,noteName:`w:footnote`,referenceName:`w:footnoteReference`,contentType:`application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml`,relationshipType:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes`,create:{part:()=>new Uu,mark:()=>new zu,styles:()=>[new Rd({}),new Bd({}),new zd({})]}},Dp={path:`word/endnotes.xml`,rootName:`w:endnotes`,noteName:`w:endnote`,referenceName:`w:endnoteReference`,contentType:`application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml`,relationshipType:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes`,create:{part:()=>new Mu,mark:()=>new Tu,styles:()=>[new Vd({}),new Ud({}),new Hd({})]}},Op=(e,t)=>qf((0,$.default)(wp.format(e,t))).elements[0],kp=(e,t)=>{let n=t.includes(e.name??``)?Number(e.attributes?.[`w:id`]):NaN;return[...Number.isInteger(n)?[n]:[],...(e.elements??[]).flatMap(e=>kp(e,t))]},Ap=(e,t)=>{let n=e.elements??[],r=+(n[0]?.name===`w:pPr`);return A(A({},e),{},{elements:[...n.slice(0,r),t,...n.slice(r)]})},jp=(e,t,n,{createContext:r,addContentTypeOverride:i,renumberBookmarks:a,renumberDrawings:o,renumberLists:s,useStyles:c})=>{let l=new Map(Object.entries(t).map(([e,t])=>[Number(e),t])),u=new Map,d=[...l.keys()].filter(Number.isFinite).reduce((e,t)=>Math.max(e,Math.floor(t)),0),f=new Map,p,m=t=>{let r=t.name===e.referenceName?l.get(Number(t.attributes?.[`w:id`])):void 0;return r===void 0?t.elements===void 0?t:A(A({},t),{},{elements:t.elements.map(m)}):(p=(p??[...n.values()].flatMap(t=>kp(t,[e.noteName,e.referenceName])).reduce((e,t)=>Math.max(e,t),0))+1,f.set(p,r),A(A({},t),{},{attributes:A(A({},t.attributes),{},{"w:id":String(p)})}))},h=()=>{let t=Xf(n.get(hp(Tp))??{},`Relationships`).find(t=>t.attributes?.Type===e.relationshipType),a=t?vp(Tp,String(t.attributes.Target)):e.path;return n.has(a)||(n.set(a,{declaration:{attributes:{version:`1.0`,encoding:`UTF-8`,standalone:`yes`}},elements:[Op(e.create.part(),r(a))]}),i(e.contentType,`/${a}`)),t||r(Tp).viewWrapper.Relationships.addRelationship(Jr(),e.relationshipType,yp(Tp,a)),a};return{renumber:e=>e.map(m),write:()=>{if(f.size===0)return;let t=h(),i=r(t),l=new Map([...new Set(f.values())].map(t=>{let n=Op(e.create.mark(),i);return[t,c(s(a(t.children.map(e=>Op(e,i)).map((e,t)=>t===0?Ap(e,n):e))))]}));Xf(n.get(t),e.rootName).push(...[...f].map(([t,n])=>({type:`element`,name:e.noteName,attributes:{"w:id":String(t)},elements:[...o(l.get(n))]})));let u=n.get(`word/styles.xml`);if(u){let t=Xf(u,`w:styles`),n=new Set(t.map(e=>e.attributes?.[`w:styleId`]));t.push(...e.create.styles().map(e=>Op(e,i)).filter(e=>!n.has(e.attributes?.[`w:styleId`])))}},carry:(e,t)=>{let n=u.get(e);return n===void 0?(d++,l.set(d,t),u.set(e,d),d):n}}},Mp=({footnotes:e={},endnotes:t={}},n,r)=>{let i={footnotes:jp(Ep,e,n,r),endnotes:jp(Dp,t,n,r)};return{carry:(e,t,n)=>i[e].carry(t,n),renumber:e=>Object.values(i).reduce((e,t)=>t.renumber(e),e),write:()=>{for(let e of Object.values(i))e.write()}}},Np=new kf,Pp=`word/document.xml`,Fp=`word/numbering.xml`,Ip=`application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml`,Lp=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering`,Rp=`default-bullet-numbering`,zp=`1`,Bp=(e,t)=>qf((0,$.default)(Np.format(e,t))).elements[0],Vp=e=>e.reduce((e,t)=>Math.max(e,t),0),Hp=(e,t,{createContext:n,addContentTypeOverride:r})=>{let i=new Map,a,o=()=>Xf(t.get(hp(Pp))??{},`Relationships`).find(e=>e.attributes?.Type===Lp),s=(e=o())=>e?vp(Pp,String(e.attributes.Target)):Fp,c=(e,n)=>Xf(t.get(s())??{},`w:numbering`).filter(t=>t.name===e).map(e=>Number(e.attributes[n])),l=t=>{if(t===zp)return e.ConcreteNumbering.find(({reference:e})=>e===Rp);if(!t.startsWith(`{`))return;let n=e.ConcreteNumbering.find(({reference:e,instance:n})=>t===`{${e}-${n}}`);if(!n){let e=t.slice(1,-1).replace(/-\d+$/,``);throw Error(`A paragraph in a patch uses the numbering "${e}", which isn't in the numbering option of patchDocument. Add it there with its levels, as in a Document`)}return n},u=e=>{let t=i.get(e.numId);return t===void 0?(a=(a??Vp(c(`w:num`,`w:numId`)))+1,i.set(e.numId,a),a):t},d=e=>{let t=e.name===`w:numId`?l(String(e.attributes[`w:val`])):void 0;return t===void 0?e.elements===void 0?e:A(A({},e),{},{elements:e.elements.map(d)}):A(A({},e),{},{attributes:A(A({},e.attributes),{},{"w:val":String(u(t))})})},f=e=>{let i=o(),a=s(i);return t.has(a)||(t.set(a,{declaration:{attributes:{version:`1.0`,encoding:`UTF-8`,standalone:`yes`}},elements:[A(A({},e),{},{elements:[]})]}),r(Ip,`/${a}`)),i||n(Pp).viewWrapper.Relationships.addRelationship(Jr(),Lp,yp(Pp,a)),a};return{renumber:e=>e.map(d),write:()=>{if(i.size===0)return;let r=Bp(e,n(s())),a=e=>Number(e.elements.find(e=>e.name===`w:abstractNumId`).attributes[`w:val`]),o=r.elements.filter(e=>e.name===`w:num`&&i.has(Number(e.attributes[`w:numId`]))),l=Vp(c(`w:abstractNum`,`w:abstractNumId`)),u=new Map([...new Set(o.map(a))].map((e,t)=>[e,l+t+1])),d=r.elements.flatMap(e=>{let t=e.name===`w:abstractNum`?u.get(Number(e.attributes[`w:abstractNumId`])):void 0;return t===void 0?[]:[A(A({},e),{},{attributes:A(A({},e.attributes),{},{"w:abstractNumId":String(t)})})]}),p=f(r),m=t.get(p).elements.find(e=>e.name===`w:numbering`);m.attributes=A(A(A({},Object.fromEntries(Object.entries(r.attributes).filter(([e])=>e.startsWith(`xmlns:`)))),m.attributes),{},{"mc:Ignorable":[...new Set([...String(m.attributes?.[`mc:Ignorable`]??``).split(` `),...String(r.attributes[`mc:Ignorable`]).split(` `)])].filter(e=>e!==``).join(` `)});let h=Xf(t.get(p),`w:numbering`),g=e=>{let t=h.findIndex(t=>e.includes(t.name));return t===-1?h.length:t};h.splice(g([`w:num`,`w:numIdMacAtCleanup`]),0,...d),h.splice(g([`w:numIdMacAtCleanup`]),0,...o.map(e=>A(A({},e),{},{attributes:A(A({},e.attributes),{},{"w:numId":String(i.get(Number(e.attributes[`w:numId`])))}),elements:e.elements.map(t=>t.name===`w:abstractNumId`?A(A({},t),{},{attributes:{"w:val":String(u.get(a(e)))}}):t)})))}}},Up={nameOf:e=>e.type===`element`?e.name:void 0,contentOf:e=>e.elements,attributeOf:(e,t)=>e.attributes?.[t],textOf:e=>(e.elements??[]).filter(({type:e})=>e===`text`).map(({text:e})=>String(e)).join(``),textElement:e=>({type:`element`,name:`w:t`,attributes:{"xml:space":`preserve`},elements:[{type:`text`,text:e}]}),writeClean:(e,t)=>{/^\s*(PAGEREF|TOC)\b/i.test(t)&&e.attributes?.[`w:dirty`]!==void 0&&(e.attributes=Object.fromEntries(Object.entries(e.attributes).filter(([e])=>e!==`w:dirty`)))},setSimpleFieldResult:(e,t)=>{e.elements=[{type:`element`,name:`w:r`,elements:[Up.textElement(t)]}]}},Wp=`word/document.xml`,Gp=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk`,Kp=[80,75,3,4],qp=function(){var e=zf(function*(e){if(Kp.every((t,n)=>e[n]===t))try{let t=yield wf.default.loadAsync(e),n=new Map,r=new Map;for(let[e,i]of Object.entries(t.files))i.dir||(/\.(xml|rels)$/.test(e)?n.set(e,qf(yield i.async(`text`))):r.set(e,yield i.async(`uint8array`)));let i=yield Jp(n,r);return A({parts:n,binaryParts:r},i.size>0?{importedDocuments:i}:{})}catch{return}});return function(t){return e.apply(this,arguments)}}(),Jp=function(){var e=zf(function*(e,t){let n=new Map;for(let[r,i]of e)if(r.endsWith(`.rels`))for(let{attributes:e={}}of Yp(i)?.elements??[]){let i=vp(gp(r),String(e.Target)),a=t.get(i),o=e.Type===Gp&&e.TargetMode!==`External`&&a?yield qp(a):void 0;o&&n.set(i,o)}return n});return function(t,n){return e.apply(this,arguments)}}(),Yp=e=>{var t;return e==null||(t=e.elements)==null?void 0:t.find(({type:e})=>e===`element`)},Xp=function(){var e=zf(function*(e,t,n=new Map){let r=Yp(e.get(Wp));if(!r)return;let i=yield Jp(e,n),a=t(A({parts:e,binaryParts:n},i.size>0?{importedDocuments:i}:{})),o=no(Up,r,a,{blank:!0}),s=Yp(e.get(hp(Wp)))?.elements??[];for(let{attributes:t={}}of s){let n=/\/(header|footer)$/.test(String(t.Type))?Yp(e.get(vp(Wp,String(t.Target)))):void 0;n&&ro(Up,n,a,{blank:!0,sectionPageCount:o.get(String(t.Id))})}});return function(t,n){return e.apply(this,arguments)}}(),Zp=class extends Error{constructor(e){super(`Token ${e} not found`),this.name=`TokenNotFoundError`}},Qp=(e,t)=>{for(let n=0;n<(e.elements??[]).length;n++){let r=e.elements[n];if(r.type===`element`&&r.name===`w:r`){let e=(r.elements??[]).filter(e=>e.type===`element`&&e.name===`w:t`);for(let r of e)if(r.elements?.[0]&&r.elements[0].text?.includes(t))return n}}throw new Zp(t)},$p=(e,t)=>{let n=-1,r=e.elements?.map((e,r)=>{if(n!==-1)return e;if(e.type===`element`&&e.name===`w:t`){var i;let a=(((i=e.elements)==null||(i=i[0])==null?void 0:i.text)??``).split(t),o=a.map(t=>A(A(A({},e),Yf(e)),{},{elements:Jf(t)}));return a.length>1&&(n=r),o}return e}).flat()??[];return{left:A(A({},JSON.parse(JSON.stringify(e))),{},{elements:r.slice(0,n+1)}),right:A(A({},JSON.parse(JSON.stringify(e))),{},{elements:r.slice(n+1)})}},em={START:0,MIDDLE:1,END:2},tm=({paragraphElement:e,renderedParagraph:t,originalText:n,replacementText:r,fromIndex:i=0})=>{let a=t.text.indexOf(n,i),o=a+n.length-1,s=em.START;for(let n of t.runs)for(let{text:t,index:i,start:c,end:l}of n.parts)switch(s){case em.START:if(a>=c&&a<=l){let u=a-c,d=Math.min(o,l)-c;if(t.substring(u,d+1)===``)continue;let f=t.substring(0,u)+r+t.substring(d+1);nm(e.elements[n.index].elements[i],f),s=em.MIDDLE;continue}break;case em.MIDDLE:if(o<=l){let r=t.substring(o-c+1);nm(e.elements[n.index].elements[i],r);let a=e.elements[n.index].elements[i];e.elements[n.index].elements[i]=Yf(a),s=em.END}else nm(e.elements[n.index].elements[i],``)}return e},nm=(e,t)=>(e.elements=Jf(t),e),rm=e=>{if(e.element.name!==`w:p`)throw Error(`Invalid node type: ${e.element.name}`);if(!e.element.elements)return{text:``,runs:[],index:-1,pathToParagraph:[]};let t=0,n=e.element.elements.map((e,t)=>({element:e,i:t})).filter(({element:e})=>e.name===`w:r`).map(({element:e,i:n})=>{let r=im(e,n,t);return t+=r.text.length,r}).filter(e=>!!e);return{text:n.reduce((e,t)=>e+t.text,``),runs:n,index:e.index,pathToParagraph:am(e)}},im=(e,t,n)=>{if(!e.elements)return{text:``,parts:[],index:-1,start:n,end:n};let r=n,i=e.elements.map((e,t)=>{if(e.name!==`w:t`||!e.elements||e.elements.length===0)return;let n=e.elements[0].text?.toString()??``,i=r;return r+=n.length,{text:n,index:t,start:i,end:i+n.length-1}}).filter(e=>!!e).map(e=>e);return{text:i.reduce((e,t)=>e+t.text,``),parts:i,index:t,start:n,end:i.length>0?i[i.length-1].end:n}},am=e=>e.parent?[...am(e.parent),e.index]:[e.index],om=e=>e.element.elements?.map((t,n)=>({element:t,index:n,parent:e}))??[],sm=e=>{let t=[],n=[...om({element:e,index:0,parent:void 0})],r;for(;n.length>0;)r=n.shift(),r.element.name===`w:p`&&(t=[...t,rm(r)]),n.push(...om(r));return t},cm=(e,t)=>sm(e).filter(e=>e.text.includes(t)),lm=``,um=({json:e,patch:t,patchText:n,context:r,keepOriginalStyles:i=!0,recursive:a=!0,renumberIds:o=e=>e})=>{let s=cm(e,n);if(s.length===0)return{element:e,didFindOccurrence:!1};let c=[...s].reverse(),l=t.type===sp.DOCUMENT?ym(c):c;for(let s of l)switch(t.type){case sp.DOCUMENT:{let n=xm(e,s.pathToParagraph),i=Sm(s.pathToParagraph),a=dm(t,r,o),c=n.name===`w:tc`&&i===n.elements.length-1&&a[a.length-1]?.name!==`w:p`?[{type:`element`,name:`w:p`}]:[];n.elements.splice(i,1,...a,...c);break}case sp.PARAGRAPH:default:{let c=bm(e,s.pathToParagraph),l=s,u=0;do{let e=fm({paragraphElement:c,renderedParagraph:l,patchText:n,fromIndex:u,children:dm(t,r,o),keepOriginalStyles:i});l=rm({element:c,index:s.index,parent:void 0}),u=l.runs.filter(t=>t.index<e).reduce((e,t)=>e+t.text.length,0)}while(a&&l.text.includes(n,u));break}}return{element:e,didFindOccurrence:!0}},dm=(e,t,n)=>n(e.children.flatMap(e=>e.writtenAs??e).flatMap(e=>{let n=e.prepForXml(t);return n?[qf((0,$.default)(n)).elements[0]]:[]})),fm=({paragraphElement:e,renderedParagraph:t,patchText:n,fromIndex:r,children:i,keepOriginalStyles:a})=>{tm({paragraphElement:e,renderedParagraph:t,originalText:n,replacementText:lm,fromIndex:r});let o=Qp(e,lm),s=e.elements[o],{left:c,right:l}=$p(s,lm),u=s.elements.find(e=>e.type===`element`&&e.name===`w:rPr`),d=a&&u?i.map(e=>pm(e,u)):i,f=u?A(A({},l),{},{elements:[u,...l.elements]}):l;return e.elements.splice(o,1,c,...d,f),o+1+d.length},pm=(e,t)=>e.name===`w:r`?mm(e,t):e.elements?A(A({},e),{},{elements:e.elements.map(e=>pm(e,t))}):e,mm=(e,t)=>{let n=_m(e).find(e=>e.type===`element`&&e.name===`w:rPr`);if(!n)return A(A({},e),{},{elements:[t,..._m(e)]});let r=new Set(_m(n).map(e=>e.name)),i=[..._m(t).filter(e=>!r.has(e.name)),..._m(n)],a=A(A({},n),{},{elements:[...i].sort((e,t)=>gm(e)-gm(t))});return A(A({},e),{},{elements:_m(e).map(e=>e===n?a:e)})},hm=`w:rStyle.w:rFonts.w:b.w:bCs.w:i.w:iCs.w:caps.w:smallCaps.w:strike.w:dstrike.w:outline.w:shadow.w:emboss.w:imprint.w:noProof.w:snapToGrid.w:vanish.w:webHidden.w:color.w:spacing.w:w.w:kern.w:position.w:sz.w:szCs.w:highlight.w:u.w:effect.w:bdr.w:shd.w:fitText.w:vertAlign.w:rtl.w:cs.w:em.w:lang.w:eastAsianLayout.w:specVanish.w:oMath.w14:glow.w14:shadow.w14:reflection.w14:textOutline.w14:textFill.w14:scene3d.w14:props3d.w14:ligatures.w14:numForm.w14:numSpacing.w14:stylisticSets.w14:cntxtAlts`.split(`.`),gm=e=>{if(e.name===`w:rPrChange`)return hm.length+1;let t=hm.indexOf(e.name??``);return t===-1?hm.length:t},_m=e=>e.elements??[],vm=(e,t)=>e.length>t.length&&t.every((t,n)=>e[n]===t),ym=e=>e.filter(t=>!e.some(e=>vm(t.pathToParagraph,e.pathToParagraph))),bm=(e,t)=>{let n=e;for(let e=1;e<t.length;e++){let r=t[e];n=n.elements[r]}return n},xm=(e,t)=>bm(e,t.slice(0,t.length-1)),Sm=e=>e[e.length-1],Cm=new kf,wm=`word/styles.xml`,Tm=new Set([`w:pStyle`,`w:rStyle`,`w:tblStyle`,`w:basedOn`,`w:next`,`w:link`]),Em=e=>String(e.attributes?.[`w:styleId`]),Dm=e=>{var t;let n=(t=e.elements)==null||(t=t.find(e=>e.name===`w:name`))==null||(t=t.attributes)==null?void 0:t[`w:val`];return n===void 0?void 0:String(n).toLowerCase()},Om=e=>new Map(Object.values(nf()).map(t=>qf((0,$.default)(Cm.format(t,e))).elements[0]).filter(e=>e.name===`w:style`).map(e=>[Em(e),e])),km=(e,t)=>{let n=Xf(e.get(wm)??{},`w:styles`).filter(e=>e.name===`w:style`),r=new Set(n.map(Em)),i,a=e=>(i??=Om(t(wm)),i.get(e)),o=new Set,s=new Map,c=e=>{let t=r.has(e)?void 0:a(e);if(t===void 0)return e;let i=n.find(e=>e.attributes?.[`w:type`]===t.attributes?.[`w:type`]&&Dm(e)===Dm(t));return i===void 0?(o.add(e),e):Em(i)},l=e=>(s.has(e)||s.set(e,c(e)),s.get(e)),u=e=>Tm.has(e.name??``)?A(A({},e),{},{attributes:A(A({},e.attributes),{},{"w:val":l(String(e.attributes[`w:val`]))})}):e.elements===void 0?e:A(A({},e),{},{elements:e.elements.map(u)});return{use:e=>e.map(u),write:()=>{let t=e.get(wm);if(!t)return;let n=Xf(t,`w:styles`),r=new Set(n.map(Em));for(let e of o)r.has(e)||(r.add(e),n.push(u(a(e))))}}},Am={type:sp.PARAGRAPH,children:[]},jm=({json:e,key:t,patch:n,delimiters:{start:r,end:i},patchPlaceholder:a,renumberDrawings:o})=>{let s=`${r}${t}.`;for(let r of Mm(e,s)){let e=Im(r.elements,s,i),c=n.rows.flatMap((n,i)=>{let s={type:`element`,name:`w:tbl`,elements:[...i===0?r.elements.map(Lm):o(Bm(r.elements))]},c=new Map(Object.entries(n).flatMap(([e,t])=>t===void 0?[]:[[e,t]]));for(let[e,n]of c)a(s,`${t}.${e}`,n);for(let n of e.filter(e=>!c.has(e)))a(s,`${t}.${n}`,Am);return s.elements});r.parent.elements.splice(r.parent.elements.indexOf(r.elements[0]),r.elements.length,...c),r.table&&!Fm(r.table.element)&&r.table.parent.elements.splice(r.table.parent.elements.indexOf(r.table.element),1)}},Mm=(e,t)=>{let n=cm(e,t).flatMap(t=>{let n=Nm(e,t.pathToParagraph);return n?[n]:[]}),r=n.filter(e=>!n.some(t=>Pm(e.path,t.path))).filter((e,t,n)=>n.findIndex(t=>t.row===e.row)===t);return[...new Set(r.map(e=>e.parent))].flatMap(e=>{let t=e.elements.filter(e=>e.name===`w:tr`),n=r.filter(t=>t.parent===e).map(e=>t.indexOf(e.row)).sort((e,t)=>e-t),{table:i}=r.find(t=>t.parent===e);return n.reduce((e,t)=>{let n=e[e.length-1];return n?.[n.length-1]===t-1?[...e.slice(0,-1),[...n,t]]:[...e,[t]]},[]).map(n=>{let r=e.elements.indexOf(t[n[0]]),a=e.elements.indexOf(t[n[n.length-1]]);return{parent:e,table:i,elements:e.elements.slice(r,a+1)}})})},Nm=(e,t)=>{let n=e,r,i;for(let e=1;e<t.length;e++){let a=n.elements[t[e]];a.name===`w:tbl`&&(i={element:a,parent:n}),a.name===`w:tr`&&(r={parent:n,table:i,row:a,path:t.slice(0,e+1)}),n=a}return r},Pm=(e,t)=>e.length>t.length&&t.every((t,n)=>e[n]===t),Fm=e=>(e.elements??[]).some(e=>e.name===`w:tr`||e.name!==`w:tblPr`&&e.name!==`w:tblGrid`&&Fm(e)),Im=(e,t,n)=>{let r=cm({elements:[...e]},t).flatMap(({text:e})=>e.split(t).slice(1).flatMap(e=>{let t=e.indexOf(n);return t>0?[e.slice(0,t)]:[]}));return[...new Set(r)]},Lm=e=>JSON.parse(JSON.stringify(e)),Rm=[`w14:paraId`,`w14:textId`],zm=[`w:bookmarkStart`,`w:bookmarkEnd`],Bm=(e,t)=>e.filter(e=>!zm.includes(e.name??``)&&(t?.name!==`w:sdtPr`||e.name!==`w:id`)).map(e=>A(A(A({},e),e.attributes===void 0?{}:{attributes:Object.fromEntries(Object.entries(e.attributes).filter(([e])=>!Rm.includes(e)))}),e.elements===void 0?{}:{elements:[...Bm(e.elements,e)]})),Vm=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`,Hm=new Map([[`dk1`,`dark1`],[`lt1`,`light1`],[`dk2`,`dark2`],[`lt2`,`light2`],[`accent1`,`accent1`],[`accent2`,`accent2`],[`accent3`,`accent3`],[`accent4`,`accent4`],[`accent5`,`accent5`],[`accent6`,`accent6`],[`hlink`,`hyperlink`],[`folHlink`,`followedHyperlink`]]),Um=e=>e.name?.slice(e.name.indexOf(`:`)+1),Wm=(e,t)=>{var n;return e==null||(n=e.elements)==null?void 0:n.find(e=>Um(e)===t)},Gm=e=>{let t=e.elements?.map(e=>Um(e)===`srgbClr`?e.attributes?.val:Um(e)===`sysClr`?e.attributes?.lastClr:void 0).find(e=>e!==void 0);return typeof t==`string`&&/^[0-9A-Fa-f]{6}$/.test(t)?t.toUpperCase():void 0},Km=e=>e[0]===255&&e[1]===254||e[0]===254&&e[1]===255,qm=function(){var e=zf(function*(e,t){let n=e.file(t);if(n!==null)return Km(yield n.async(`uint8array`))?void 0:qf(yield n.async(`text`))});return function(t,n){return e.apply(this,arguments)}}(),Jm=function(){var e=zf(function*(e){var t,n;let r=(t=Wm(yield qm(e,`word/_rels/document.xml.rels`),`Relationships`))==null||(t=t.elements)==null?void 0:t.find(e=>e.attributes?.Type===Vm),i=r==null||(n=r.attributes)==null?void 0:n.Target;return typeof i==`string`?qm(e,vp(`word/document.xml`,i)):void 0});return function(t){return e.apply(this,arguments)}}(),Ym=function(){var e=zf(function*(e){let t=yield Jm(e);if(t===void 0)return;let n=(Wm(Wm(Wm(t,`theme`),`themeElements`),`clrScheme`)?.elements??[]).flatMap(e=>{let t=Hm.get(Um(e)??``),n=Gm(e);return t&&n?[[t,n]]:[]});return _n(Object.fromEntries(n))});return function(t){return e.apply(this,arguments)}}(),Xm=(e,t,{inTableRow:n})=>{if(t?.type===sp.TABLE_ROWS&&Array.isArray(t.rows))for(let n of t.rows){if(typeof n!=`object`||!n)throw Error(`Invalid patch "${e}". Expected each of its rows to be an object of patches, by the name of their field`);for(let[t,r]of Object.entries(n))r!==void 0&&Xm(`${e}.${t}`,r,{inTableRow:!0})}else if(!(t?.type===sp.DRAWING?!n&&typeof t.patch==`function`:t?.type!==sp.TABLE_ROWS&&Array.isArray(t?.children)))throw Error(`Invalid patch "${e}". Expected { type: PatchType.PARAGRAPH or PatchType.DOCUMENT, children: [...] }, ${n?`or { type: PatchType.TABLE_ROWS, rows: [...] }`:`{ type: PatchType.TABLE_ROWS, rows: [...] }, or a drawing patch such as ChartDataPatch from docx/charts`}`)},Zm=new Af,Qm=new Uint8Array([255,254]),$m=new Uint8Array([254,255]),eh=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0};(function(){var e=zf(function*({outputType:e,data:t,patches:n,keepOriginalStyles:r,placeholderDelimiters:i={start:`{{`,end:`}}`},recursive:a=!0,footnotes:o,endnotes:s,numbering:c={config:[]},pageNumbers:l}){let u=t instanceof wf.default?t:yield wf.default.loadAsync(t),d=new Map,f=yield Ym(u),p=[],m={Media:new Ju,Numbering:new hd(c),Theme:f&&{Colors:f},FootNotes:{View:{idOf:(e,t,n)=>M(`footnotes`,e,t,n)}},Endnotes:{View:{idOf:(e,t,n)=>M(`endnotes`,e,t,n)}},PackageParts:new gd({addOverride:(e,t)=>p.push({contentType:e,partName:t})},new Set(Object.keys(u.files).filter(e=>e.startsWith(`word/`)).map(e=>e.slice(5))))},h=new Map,g=[],_=[],v=!1,y=new Map;if(!i?.start.trim()||!i?.end.trim())throw Error(`Both start and end delimiters must be non-empty strings.`);let{start:b,end:x}=i;for(let[e,t]of Object.entries(n))Xm(e,t,{inTableRow:!1});for(let[e,t]of Object.entries(u.files)){let n=yield t.async(`uint8array`),r=n.slice(0,2);if(eh(r,Qm)||eh(r,$m)||!e.endsWith(`.xml`)&&!e.endsWith(`.rels`)){y.set(e,n);continue}let i=qf(yield t.async(`text`));if(e===`word/document.xml`){let e=i.elements?.find(e=>e.name===`w:document`);if(e&&e.attributes){for(let t of[`mc`,`wp`,`r`,`w15`,`m`])e.attributes[`xmlns:${t}`]=lu[t];e.attributes[`mc:Ignorable`]=`${e.attributes[`mc:Ignorable`]||``} w15`.trim()}}h.set(e,i)}let S=Gf([...h.values()].flatMap(Wf)),C=op([...h.values()].flatMap(ip)),w=new Map,T=e=>{let t=w.get(e);if(t)return t;let n={Relationships:{addRelationship:(t,n,r,i)=>{_.push({key:e,id:t,type:n,target:r,targetMode:i})}}};return w.set(e,n),n},E=e=>({file:m,viewWrapper:T(e),stack:[]}),D=(e,t)=>{p.push({contentType:e,partName:t})},O=km(h,E),k=Hp(m.Numbering,h,{createContext:E,addContentTypeOverride:D}),j=Mp({footnotes:o,endnotes:s},h,{createContext:E,addContentTypeOverride:D,renumberBookmarks:S,renumberDrawings:C,renumberLists:k.renumber,useStyles:O.use}),M=(e,t,n,r)=>r.viewWrapper===T(`word/document.xml`)?j.carry(e,t,n):void 0;Cp({parts:h,binaryParts:y,file:m,patches:Object.entries(n).flatMap(([e,t])=>t.type===sp.DRAWING?[[e,t]]:[]),delimiters:{start:b,end:x}},E);let N=Object.entries(n).flatMap(([e,t])=>t.type===sp.DRAWING?[]:[[e,t]]),P=[...N.filter(([,e])=>e.type===sp.TABLE_ROWS),...N.filter(([,e])=>e.type!==sp.TABLE_ROWS)];for(let[e,t]of[...h]){if(!e.startsWith(`word/`)||e.endsWith(`.xml.rels`))continue;let n=E(e);d.set(e,n);let i=(t,o,s)=>{if(s.type===sp.TABLE_ROWS){jm({json:t,key:o,patch:s,delimiters:{start:b,end:x},patchPlaceholder:i,renumberDrawings:C});return}let c=[],{didFindOccurrence:l}=um({json:t,patch:A(A({},s),{},{children:s.children.flatMap(e=>e instanceof Ms?e.writtenAs:[e]).map(t=>{if(t instanceof ks){let{target:n,anchor:r}=zs(t.options.link),i=new Ds(t.options.children,Jr(),r,t.options.link);return c.push({key:e,id:i.linkId,type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,target:n,targetMode:fa.EXTERNAL}),i}return t})}),patchText:`${b}${o}${x}`,context:n,keepOriginalStyles:r,recursive:a,renumberIds:e=>O.use(k.renumber(j.renumber(S(C(e)))))});l&&_.push(...c)};for(let[e,n]of P)i(t,e,n)}j.write(),k.write(),O.write();for(let[e,t]of h){if(!e.startsWith(`word/`)||e.endsWith(`.xml.rels`))continue;let n=Zm.getMediaData(JSON.stringify(t),m.Media);n.length>0&&(v=!0,g.push({key:e,mediaDatas:n}))}for(let{key:e,mediaDatas:t}of g){let n=hp(e),r=h.get(n)??dp();h.set(n,r);let i=lp(r),a=Zm.replace(JSON.stringify(h.get(e)),t,i);h.set(e,JSON.parse(a));for(let e=0;e<t.length;e++){let{fileName:n}=t[e];up(r,i+e,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${n}`)}}for(let{key:e,id:t,type:n,target:r,targetMode:i}of _){let a=hp(e),o=h.get(a)??dp();h.set(a,o),up(o,t,n,r,i)}l&&(yield Xp(h,l,y));let F=Ff(m,void 0);if(v||p.length>0){let e=h.get(`[Content_Types].xml`);if(!e)throw Error(`Could not find content types file`);v&&(Zf(e,`image/png`,`png`),Zf(e,`image/jpeg`,`jpeg`),Zf(e,`image/jpeg`,`jpg`),Zf(e,`image/bmp`,`bmp`),Zf(e,`image/gif`,`gif`),Zf(e,`image/svg+xml`,`svg`));for(let{contentType:t,partName:n}of p)Qf(e,t,n)}let I=new wf.default;for(let[e,t]of h){let n=nh(t);I.file(e,Qr(n))}for(let[e,t]of y)I.file(e,t);for(let{data:e,fileName:t}of m.Media.Array)I.file(`word/media/${t}`,e);for(let{path:e,data:t}of F)I.file(e,typeof t==`string`?Qr(t):t);return I.generateAsync({type:e,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`})});return function(t){return e.apply(this,arguments)}})();var th=e=>A(A(A({},e),e.attributes===void 0?{}:{attributes:Object.fromEntries(Object.entries(e.attributes).map(([e,t])=>[e,t===void 0?t:String(t).replace(/&/g,`&`)]))}),e.elements===void 0?{}:{elements:e.elements.map(e=>e.type===`text`?A(A({},e),{},{text:String(e.text).replace(/&/g,`&`)}):th(e))}),nh=e=>(0,It.js2xml)(th(e),{attributeValueFn:e=>String(e).replace(/</g,`<`).replace(/>/g,`>`).replace(/'/g,`'`)});(function(){var e=zf(function*({data:e}){let t=e instanceof wf.default?e:yield wf.default.loadAsync(e),n=new Set;for(let[e,r]of Object.entries(t.files))if((e.endsWith(`.xml`)||e.endsWith(`.rels`))&&e.startsWith(`word/`)&&!e.endsWith(`.xml.rels`)){let e=qf(yield r.async(`text`));[...sm(e).map(e=>e.text),...pp(e).flatMap(({properties:e})=>mp(e))].forEach(e=>rh(e).forEach(e=>n.add(e)))}return Array.from(n)});return function(t){return e.apply(this,arguments)}})();var rh=e=>{let t=RegExp(`(?<=\\{\\{).+?(?=\\}\\})`,`gs`);return e.match(t)??[]},ih=class extends Error{constructor(e){super(e),this.name=`MathMarkupError`}},ah={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`};function oh(e){return e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>t.startsWith(`#x`)?String.fromCodePoint(Number.parseInt(t.slice(2),16)):t.startsWith(`#`)?String.fromCodePoint(Number.parseInt(t.slice(1),10)):ah[t]??e)}function sh(e){let t=e.children.map(sh);return{tagName:e.tagName,attributes:e.attributes,children:t,get textContent(){return e.text.join(``)}}}var ch=/<(\/?)([A-Za-z][\w:.-]*)((?:\s+[\w:.-]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>/y,lh=/([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;function uh(e){let t={tagName:`#root`,attributes:new Map,children:[],text:[]},n=[t],r=0;for(;r<e.length;){let i=e.indexOf(`<`,r),a=i===-1?e.length:i;if(a>r){let t=oh(e.slice(r,a));for(let e of n)e.text.push(t)}if(i===-1)break;ch.lastIndex=i;let o=ch.exec(e);if(o===null)throw new ih(`unreadable markup at ${i}`);let[,s,c,l,u]=o;if(r=ch.lastIndex,s===`/`){let e=n.pop();if(e===void 0||e===t||e.tagName!==c)throw new ih(`unexpected </${c}>`);continue}let d=new Map;for(let e of l.matchAll(lh))d.set(e[1],oh(e[2]??e[3]??``));let f={tagName:c,attributes:d,children:[],text:[]};n[n.length-1].children.push(f),u!==`/`&&n.push(f)}if(n.length!==1)throw new ih(`unclosed <${n[n.length-1].tagName}>`);return t.children.map(sh)}function dh(e,t){for(let n of e){if(t(n))return n;let e=dh(n.children,t);if(e!==void 0)return e}}function fh(e,t){return(e.attributes.get(`class`)??``).split(/\s+/).includes(t)}var ph=class extends Error{element;constructor(e){super(`no OMML mapping for MathML element <${e}>`),this.name=`UnsupportedMathError`,this.element=e}},mh=new Set([`∑`]),hh=new Set([`∫`,`∬`,`∭`,`∮`]),gh=new Set([`(`,`(`]),_h=new Set([`)`,`)`]);function vh(e,t){let n=dh(uh(l.renderToString(e,{output:`mathml`,displayMode:t,throwOnError:!1})),e=>e.tagName.toLowerCase()===`math`);if(n===void 0)throw new ph(`math`);return n}function yh(e){return[...e.children]}function bh(e){return(e.textContent??``).replace(/[\u2061-\u2064]/g,``).trim()}function xh(e){return e.flatMap(Sh)}function Sh(e){let t=e.tagName.toLowerCase().replace(/^m:/,``);switch(t){case`math`:case`semantics`:case`mrow`:case`mstyle`:case`mpadded`:return Eh(yh(e));case`annotation`:case`annotation-xml`:case`mphantom`:return[];case`mspace`:return[new ac(` `)];case`mi`:case`mn`:case`mo`:case`mtext`:{let t=bh(e);return t===``?[]:[new ac(t)]}case`mfrac`:{let[t,n]=yh(e);if(t===void 0||n===void 0)throw new ph(`mfrac`);return[new lc({numerator:Sh(t),denominator:Sh(n)})]}case`msqrt`:return[new Mc({children:xh(yh(e))})];case`mroot`:{let[t,n]=yh(e);if(t===void 0||n===void 0)throw new ph(`mroot`);return[new Mc({children:Sh(t),degree:Sh(n)})]}case`msub`:case`munder`:{let[n,r]=yh(e);if(n===void 0||r===void 0)throw new ph(t);return[new Tc({children:Sh(n),subScript:Sh(r)})]}case`msup`:case`mover`:{let[n,r]=yh(e);if(n===void 0||r===void 0)throw new ph(t);return[new Cc({children:Sh(n),superScript:Sh(r)})]}case`msubsup`:case`munderover`:{let[n,r,i]=yh(e);if(n===void 0||r===void 0||i===void 0)throw new ph(t);return[new Dc({children:Sh(n),subScript:Sh(r),superScript:Sh(i)})]}default:throw new ph(t)}}var Ch=new Set([`msub`,`msup`,`msubsup`,`munder`,`mover`,`munderover`]);function wh(e,t){if(!Ch.has(e.tagName.toLowerCase()))return;let[n,r,i]=yh(e);if(n===void 0)return;let a=bh(n),o=mh.has(a),s=hh.has(a);if(!o&&!s)return;let c=e.tagName.toLowerCase(),l=c===`msub`||c===`munder`||c===`msubsup`||c===`munderover`?r:void 0,u=c===`msup`||c===`mover`?r:c===`msubsup`||c===`munderover`?i:void 0,d={children:xh(t),...l===void 0?{}:{subScript:Sh(l)},...u===void 0?{}:{superScript:Sh(u)}};return[o?new bc(d):new xc(d)]}function Th(e){let t=e[0],n=e[e.length-1];return e.length>=2&&t!==void 0&&n!==void 0&&t.tagName.toLowerCase()===`mo`&&n.tagName.toLowerCase()===`mo`&&gh.has(bh(t))&&_h.has(bh(n))?[new Ic({children:Eh(e.slice(1,-1))})]:Eh(e)}function Eh(e){let t=[];for(let n=0;n<e.length;n++){let r=wh(e[n],e.slice(n+1));if(r!==void 0)return t.push(...r),t;t.push(...Sh(e[n]))}return t}function Dh(e,t){let n=vh(e,t);if(dh([n],e=>fh(e,`katex-error`))!==void 0)throw new ph(`katex-error`);let r=dh(n.children,e=>e.tagName.toLowerCase()===`semantics`),i=yh(r===void 0?n:r),a=Th((i.length===1&&i[0].tagName.toLowerCase()===`mrow`?yh(i[0]):i).filter(e=>e.tagName.toLowerCase()!==`annotation`));if(a.length===0)throw new ph(`empty`);return a}var Oh=`�`,kh=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]/g,Ah=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g;function jh(e){return e.replace(kh,Oh).replace(Ah,Oh)}var Mh=`Consolas, Courier New, monospace`,Nh=360,Ph=`md-ordered`;function Fh(e){return o().use(i).use(c).use(a).parse(s(e))}function Ih(e,t){return new Tr({text:jh(e),bold:t.bold,italics:t.italics,strike:t.strike,...t.code===!0?{font:Mh}:{}})}function Lh(e,t,n={}){let r=[];for(let i of e)switch(i.type){case`text`:r.push(Ih(i.value,n));break;case`strong`:r.push(...Lh(i.children,t,{...n,bold:!0}));break;case`emphasis`:r.push(...Lh(i.children,t,{...n,italics:!0}));break;case`delete`:r.push(...Lh(i.children,t,{...n,strike:!0}));break;case`inlineCode`:r.push(Ih(i.value,{...n,code:!0}));break;case`link`:r.push(new ks({children:Lh(i.children,t,n),link:i.url}));break;case`break`:r.push(new Tr({text:``,break:1}));break;case`image`:{if(qh(i.url)){r.push(new ks({children:[Ih(Jh(i.url,i.alt),n)],link:i.url}));break}let e=t.get(i);e===void 0?r.push(Ih(i.alt??i.url,n)):r.push(Qh(e,i.alt));break}case`inlineMath`:r.push(...Rh(i.value,!1,n));break;default:r.push(...Lh(zh(i),t,n))}return r}function Rh(e,t,n){try{return[new Zs({children:Dh(e,t)})]}catch{return[Ih(e,{...n,code:!0})]}}function zh(e){let t=e.children;return Array.isArray(t)?t:[]}var Bh=[_s.HEADING_1,_s.HEADING_2,_s.HEADING_3,_s.HEADING_4,_s.HEADING_5,_s.HEADING_6];function Vh(e,t){return new Q({heading:Bh[Math.min(e.depth,6)-1],children:Lh(e.children,t)})}function Hh(e){return e.value.split(`
|
|
29
|
-
`).map(e=>new Q({children:[new Tr({text:jh(e===``?` `:e),font:Mh})],spacing:{before:0,after:0}}))}var Uh=624;function Wh(e,t){return e<=Uh?{width:Math.round(e),height:Math.round(t)}:{width:Uh,height:Math.round(t*Uh/e)}}function Gh(e){return(e.lang??``).toLowerCase()===`mermaid`}async function Kh(e,t){let n=new Map;if(t===void 0)return n;let r=[],i=e=>{e.type===`code`&&Gh(e)&&r.push(e);for(let t of e.children??[])i(t)};i(e);for(let[e,i]of r.entries())try{n.set(i,await t(i.value,`docx-export-${e}`))}catch{}return n}function qh(e){return!/^[a-z][a-z0-9+.-]*:|^\/\//i.test(e)&&/\.(drawio|dio)$/i.test(e.split(/[?#]/)[0])}function Jh(e,t){let n=e.split(/[?#]/)[0].replace(/^\.\//,``);try{n=decodeURIComponent(n)}catch{}return t&&t.trim()!==``?`${t.trim()} (draw.io diagram: ${n})`:`draw.io diagram: ${n}`}async function Yh(e,t){let n=new Map,{imageKey:r,loadImage:i}=t;if(r===void 0||i===void 0)return n;let a=[],o=e=>{e.type===`image`&&!qh(e.url)&&a.push(e);for(let t of e.children??[])o(t)};o(e);let s=new Map;for(let e of a){let t=r(e.url);if(t===void 0)continue;s.has(t)||s.set(t,await i(e.url));let a=s.get(t);a!==void 0&&n.set(e,a)}return n}function Xh(e){return new Fa({type:`svg`,data:new TextEncoder().encode(e.svg),fallback:{type:`png`,data:e.png},transformation:Wh(e.width,e.height)})}function Zh(e){return new Q({alignment:dn.CENTER,children:[Xh(e)]})}function Qh(e,t){return e.kind===`vector`?Xh(e.image):new Fa({type:e.type,data:e.bytes,transformation:Wh(e.width,e.height),...$h(t)})}function $h(e){let t=e?.trim()??``;return t===``?{}:{altText:{name:`Picture`,description:t}}}function eg(e){return e===0?{}:{indent:{left:Nh*e},border:{left:{style:In.SINGLE,size:12,color:`CCCCCC`,space:12}}}}function tg(e,t,n=0){let r=e.ordered===!0,i=r?t.instance++:0,a=[];for(let o of e.children){let e=!0;for(let s of o.children)s.type===`list`?a.push(...tg(s,t,n+1)):s.type===`paragraph`?(a.push(new Q({children:Lh(s.children,t.images),...e?r?{numbering:{reference:Ph,level:n,instance:i}}:{bullet:{level:n}}:{indent:{left:Nh*(n+1)}}})),e=!1):a.push(...ig([s],t))}return a}function ng(e,t){return new nu({rows:e.children.map((e,n)=>new tu({tableHeader:n===0,children:e.children.map(e=>new zl({children:[new Q({children:Lh(e.children,t)})]}))})),width:{size:100,type:cl.PERCENTAGE}})}function rg(){return new Q({children:[],border:{bottom:{style:In.SINGLE,size:6,color:`999999`,space:1}}})}function ig(e,t){let n=[];for(let r of e)switch(r.type){case`heading`:n.push(Vh(r,t.images));break;case`paragraph`:n.push(new Q({children:Lh(r.children,t.images),...eg(t.quoteDepth)}));break;case`list`:n.push(...tg(r,t));break;case`table`:n.push(ng(r,t.images));break;case`code`:{let e=t.diagrams.get(r);e===void 0?n.push(...Hh(r)):n.push(Zh(e));break}case`blockquote`:n.push(...ig(r.children,{...t,quoteDepth:t.quoteDepth+1}));break;case`thematicBreak`:n.push(rg());break;case`math`:n.push(new Q({children:Rh(r.value,!0,{}),alignment:dn.CENTER}));break;default:{let e=Lh(zh(r),t.images);e.length>0&&n.push(new Q({children:e}));break}}return n}async function ag(e,t={}){let n=Fh(e),r=await Kh(n,t.renderDiagram),i=await Yh(n,t);return ig(n.children,{instance:0,quoteDepth:0,diagrams:r,images:i})}function og(e){return new yf({styles:{default:sg()},numbering:{config:[cg()]},sections:[{children:e}]})}function sg(){let e=e=>({paragraph:{outlineLevel:e}});return{heading1:e(0),heading2:e(1),heading3:e(2),heading4:e(3),heading5:e(4),heading6:e(5)}}function cg(){return{reference:Ph,levels:[Yu.DECIMAL,Yu.LOWER_LETTER,Yu.LOWER_ROMAN,Yu.DECIMAL,Yu.LOWER_LETTER].map((e,t)=>({level:t,format:e,text:`%${t+1}.`,alignment:dn.START,style:{paragraph:{indent:{left:720*(t+1),hanging:360}}}}))}}function lg(e){let t=/viewBox="\s*[\d.-]+[\s,]+[\d.-]+[\s,]+([\d.]+)[\s,]+([\d.]+)/.exec(e),n=t?Number(t[1]):NaN,r=t?Number(t[2]):NaN;return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function ug(e,t,n){let r=/^[\s\S]*?<svg\b[^>]*>/.exec(e);return r===null?e:r[0].replace(/\swidth="[^"]*"/,``).replace(/\sheight="[^"]*"/,``).replace(/\sstyle="[^"]*"/,e=>{let t=e.replace(/max-width:[^;"]*;?/,``);return/style="\s*"/.test(t)?``:t}).replace(/>$/,` width="${t}" height="${n}">`)+e.slice(r[0].length)}var dg=e({DiagramError:()=>fg,inlineStyles:()=>hg,rasterise:()=>vg,renderDiagram:()=>gg,svgDimensions:()=>pg,withExplicitSize:()=>ug}),fg=class extends Error{constructor(e){super(e),this.name=`DiagramError`}};function pg(e){let t=lg(e);if(t===null)throw new fg(`diagram has no usable viewBox`);return t}var mg=[`fill`,`fill-opacity`,`stroke`,`stroke-width`,`stroke-opacity`,`stroke-dasharray`,`stroke-linecap`,`stroke-linejoin`,`opacity`,`font-family`,`font-size`,`font-weight`,`font-style`,`text-anchor`,`dominant-baseline`];function hg(e){let t=document.createElement(`div`);t.setAttribute(`style`,`position:absolute;left:-10000px;top:0;width:0;height:0;overflow:hidden`),t.innerHTML=e;let n=t.querySelector(`svg`);if(n===null)return e;document.body.append(t);try{let e=[n,...n.querySelectorAll(`*`)].filter(e=>e.tagName.toLowerCase()!==`style`).map(e=>{let t=window.getComputedStyle(e),n=[];for(let e of mg){let r=t.getPropertyValue(e);r!==``&&n.push([e,r])}return{element:e,painted:n}});for(let{element:t,painted:n}of e){for(let[e,r]of n)t.setAttribute(e,r);t.removeAttribute(`style`),t.removeAttribute(`class`)}for(let e of[...n.querySelectorAll(`style`)])e.remove();return n.outerHTML}finally{t.remove()}}async function gg(e,t){return r(async()=>{let r=(await n(async()=>{let{default:e}=await import(`./mermaid.core-
|
|
29
|
+
`).map(e=>new Q({children:[new Tr({text:jh(e===``?` `:e),font:Mh})],spacing:{before:0,after:0}}))}var Uh=624;function Wh(e,t){return e<=Uh?{width:Math.round(e),height:Math.round(t)}:{width:Uh,height:Math.round(t*Uh/e)}}function Gh(e){return(e.lang??``).toLowerCase()===`mermaid`}async function Kh(e,t){let n=new Map;if(t===void 0)return n;let r=[],i=e=>{e.type===`code`&&Gh(e)&&r.push(e);for(let t of e.children??[])i(t)};i(e);for(let[e,i]of r.entries())try{n.set(i,await t(i.value,`docx-export-${e}`))}catch{}return n}function qh(e){return!/^[a-z][a-z0-9+.-]*:|^\/\//i.test(e)&&/\.(drawio|dio)$/i.test(e.split(/[?#]/)[0])}function Jh(e,t){let n=e.split(/[?#]/)[0].replace(/^\.\//,``);try{n=decodeURIComponent(n)}catch{}return t&&t.trim()!==``?`${t.trim()} (draw.io diagram: ${n})`:`draw.io diagram: ${n}`}async function Yh(e,t){let n=new Map,{imageKey:r,loadImage:i}=t;if(r===void 0||i===void 0)return n;let a=[],o=e=>{e.type===`image`&&!qh(e.url)&&a.push(e);for(let t of e.children??[])o(t)};o(e);let s=new Map;for(let e of a){let t=r(e.url);if(t===void 0)continue;s.has(t)||s.set(t,await i(e.url));let a=s.get(t);a!==void 0&&n.set(e,a)}return n}function Xh(e){return new Fa({type:`svg`,data:new TextEncoder().encode(e.svg),fallback:{type:`png`,data:e.png},transformation:Wh(e.width,e.height)})}function Zh(e){return new Q({alignment:dn.CENTER,children:[Xh(e)]})}function Qh(e,t){return e.kind===`vector`?Xh(e.image):new Fa({type:e.type,data:e.bytes,transformation:Wh(e.width,e.height),...$h(t)})}function $h(e){let t=e?.trim()??``;return t===``?{}:{altText:{name:`Picture`,description:t}}}function eg(e){return e===0?{}:{indent:{left:Nh*e},border:{left:{style:In.SINGLE,size:12,color:`CCCCCC`,space:12}}}}function tg(e,t,n=0){let r=e.ordered===!0,i=r?t.instance++:0,a=[];for(let o of e.children){let e=!0;for(let s of o.children)s.type===`list`?a.push(...tg(s,t,n+1)):s.type===`paragraph`?(a.push(new Q({children:Lh(s.children,t.images),...e?r?{numbering:{reference:Ph,level:n,instance:i}}:{bullet:{level:n}}:{indent:{left:Nh*(n+1)}}})),e=!1):a.push(...ig([s],t))}return a}function ng(e,t){return new nu({rows:e.children.map((e,n)=>new tu({tableHeader:n===0,children:e.children.map(e=>new zl({children:[new Q({children:Lh(e.children,t)})]}))})),width:{size:100,type:cl.PERCENTAGE}})}function rg(){return new Q({children:[],border:{bottom:{style:In.SINGLE,size:6,color:`999999`,space:1}}})}function ig(e,t){let n=[];for(let r of e)switch(r.type){case`heading`:n.push(Vh(r,t.images));break;case`paragraph`:n.push(new Q({children:Lh(r.children,t.images),...eg(t.quoteDepth)}));break;case`list`:n.push(...tg(r,t));break;case`table`:n.push(ng(r,t.images));break;case`code`:{let e=t.diagrams.get(r);e===void 0?n.push(...Hh(r)):n.push(Zh(e));break}case`blockquote`:n.push(...ig(r.children,{...t,quoteDepth:t.quoteDepth+1}));break;case`thematicBreak`:n.push(rg());break;case`math`:n.push(new Q({children:Rh(r.value,!0,{}),alignment:dn.CENTER}));break;default:{let e=Lh(zh(r),t.images);e.length>0&&n.push(new Q({children:e}));break}}return n}async function ag(e,t={}){let n=Fh(e),r=await Kh(n,t.renderDiagram),i=await Yh(n,t);return ig(n.children,{instance:0,quoteDepth:0,diagrams:r,images:i})}function og(e){return new yf({styles:{default:sg()},numbering:{config:[cg()]},sections:[{children:e}]})}function sg(){let e=e=>({paragraph:{outlineLevel:e}});return{heading1:e(0),heading2:e(1),heading3:e(2),heading4:e(3),heading5:e(4),heading6:e(5)}}function cg(){return{reference:Ph,levels:[Yu.DECIMAL,Yu.LOWER_LETTER,Yu.LOWER_ROMAN,Yu.DECIMAL,Yu.LOWER_LETTER].map((e,t)=>({level:t,format:e,text:`%${t+1}.`,alignment:dn.START,style:{paragraph:{indent:{left:720*(t+1),hanging:360}}}}))}}function lg(e){let t=/viewBox="\s*[\d.-]+[\s,]+[\d.-]+[\s,]+([\d.]+)[\s,]+([\d.]+)/.exec(e),n=t?Number(t[1]):NaN,r=t?Number(t[2]):NaN;return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function ug(e,t,n){let r=/^[\s\S]*?<svg\b[^>]*>/.exec(e);return r===null?e:r[0].replace(/\swidth="[^"]*"/,``).replace(/\sheight="[^"]*"/,``).replace(/\sstyle="[^"]*"/,e=>{let t=e.replace(/max-width:[^;"]*;?/,``);return/style="\s*"/.test(t)?``:t}).replace(/>$/,` width="${t}" height="${n}">`)+e.slice(r[0].length)}var dg=e({DiagramError:()=>fg,inlineStyles:()=>hg,rasterise:()=>vg,renderDiagram:()=>gg,svgDimensions:()=>pg,withExplicitSize:()=>ug}),fg=class extends Error{constructor(e){super(e),this.name=`DiagramError`}};function pg(e){let t=lg(e);if(t===null)throw new fg(`diagram has no usable viewBox`);return t}var mg=[`fill`,`fill-opacity`,`stroke`,`stroke-width`,`stroke-opacity`,`stroke-dasharray`,`stroke-linecap`,`stroke-linejoin`,`opacity`,`font-family`,`font-size`,`font-weight`,`font-style`,`text-anchor`,`dominant-baseline`];function hg(e){let t=document.createElement(`div`);t.setAttribute(`style`,`position:absolute;left:-10000px;top:0;width:0;height:0;overflow:hidden`),t.innerHTML=e;let n=t.querySelector(`svg`);if(n===null)return e;document.body.append(t);try{let e=[n,...n.querySelectorAll(`*`)].filter(e=>e.tagName.toLowerCase()!==`style`).map(e=>{let t=window.getComputedStyle(e),n=[];for(let e of mg){let r=t.getPropertyValue(e);r!==``&&n.push([e,r])}return{element:e,painted:n}});for(let{element:t,painted:n}of e){for(let[e,r]of n)t.setAttribute(e,r);t.removeAttribute(`style`),t.removeAttribute(`class`)}for(let e of[...n.querySelectorAll(`style`)])e.remove();return n.outerHTML}finally{t.remove()}}async function gg(e,t){return r(async()=>{let r=(await n(async()=>{let{default:e}=await import(`./mermaid.core-uGk3xSaR.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))).default,i;try{r.initialize({startOnLoad:!1,theme:`default`,look:`classic`,securityLevel:`strict`,suppressErrorRendering:!0,flowchart:{htmlLabels:!1},htmlLabels:!1}),{svg:i}=await r.render(t,e)}catch(e){throw new fg(`mermaid could not render the diagram: ${String(e)}`)}finally{r.initialize({startOnLoad:!1,look:`classic`,securityLevel:`strict`,suppressErrorRendering:!0})}let{width:a,height:o}=pg(i),s=ug(i,a,o),c=await vg(s,a,o);return{svg:hg(s),png:c,width:a,height:o}})}var _g=2;async function vg(e,t,n){let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(t*_g)),r.height=Math.max(1,Math.round(n*_g));let i=r.getContext(`2d`);if(i===null)throw new fg(`no 2d canvas context for the fallback image`);let a=URL.createObjectURL(new Blob([e],{type:`image/svg+xml;charset=utf-8`}));try{let e=await yg(a);return i.fillStyle=`#ffffff`,i.fillRect(0,0,r.width,r.height),i.drawImage(e,0,0,r.width,r.height),await bg(r)}finally{URL.revokeObjectURL(a)}}function yg(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>n(new fg(`the browser would not draw the diagram`)),r.src=e})}async function bg(e){let t=await new Promise(t=>e.toBlob(t,`image/png`));if(t===null)throw new fg(`the canvas produced no image`);return new Uint8Array(await t.arrayBuffer())}export{gg as a,og as c,ag as d,jh as f,Tr as h,vg as i,Jh as l,Q as m,hg as n,pg as o,Hf as p,dg as r,ug as s,fg as t,qh as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-BWF7jMDv.js";import{O as n,b as r,f as i,it as a,nt as o,tt as s,y as c,z as l}from"./chunk-DSNLSHJZ-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-BWF7jMDv.js";import{O as n,b as r,f as i,it as a,nt as o,tt as s,y as c,z as l}from"./chunk-DSNLSHJZ-DSbxZuYn.js";import"./chunk-7S6XSTFO-BxCPUAo6.js";import"./chunk-YZO67HFG-BpQ4S2PJ.js";import"./chunk-AQDTSKZB-D926zGIX.js";import"./chunk-UHW7PFBP-CtcE35zX.js";import"./chunk-HAGFOTED-iybsmSvO.js";import"./chunk-ZAUX2LTX-qfoMdC_H.js";import"./chunk-WQQL4CDK-B1xBf0mr.js";import{t as u}from"./chunk-XXDRQBXY-CnbRkih_.js";import{t as d}from"./chunk-VQ5W62QI-C-Wt_ErM.js";import"./chunk-HNE4Q36P-BNO-r5as.js";import{a as f,i as p}from"./mermaid.core-uGk3xSaR.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{S as createPacketServices}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{S as createPacketServices}from"./mermaid-parser.core-CoS52w6v.js";
|