oasis-editor 0.0.398 → 0.0.399
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OasisEditorApp-CjE_3D30.js +1 -0
- package/dist/core/commands/tableOfContents.d.ts +5 -1
- package/dist/core/document/tocFields.d.ts +22 -0
- package/dist/defaultToolbar-DVaYtiao.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/sourcePackage-JAsDEd_R.js +1 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-Bzk0rSbq.js +0 -1
- package/dist/defaultToolbar-Bc3d9BXm.js +0 -1
- package/dist/sourcePackage-D_eKi6F8.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r,t as n}from"./rolldown-runtime-CjpNFd0O.js";function o(e){return`${e}:${crypto.randomUUID()}`}function i(){return o("bookmark")}function a(){return o("comment")}function s(e=""){return{id:o("run"),text:e,kind:"text"}}function l(e="",t,r,n){const i={id:o("run"),text:e};return t&&(i.styles={...t}),r?{...i,kind:"image",image:{...r}}:n?{...i,kind:"textBox",textBox:n}:{...i,kind:"text"}}function c(e=""){return{id:o("paragraph"),type:"paragraph",runs:[s(e)]}}function u(e){return{id:o("paragraph"),type:"paragraph",runs:e.length>0?e.map(e=>l(e.text,e.styles,e.image,e.textBox)):[s("")]}}function d(e,t=1,r){const n={id:o("table-cell"),blocks:e.length>0?e:[c("")]};return t>1&&(n.colSpan=t),r?.rowSpan&&r.rowSpan>1&&(n.rowSpan=r.rowSpan),r?.vMerge&&(n.vMerge=r.vMerge),n}function p(e,t){const r={id:o("table-row"),cells:e};return t?.isHeader&&(r.isHeader=!0),r}function f(e,t){return{id:o("table"),type:"table",rows:e,gridCols:t}}function h(e){const t=e&&e.length>0?e:[m("",{styleId:"footnoteText"})];return{id:o("footnote"),blocks:t}}function m(e,t){const r=c(e);return t.styleId&&(r.style={styleId:t.styleId}),r}function g(e,t,r){const n={styleId:"footnoteReference",superscript:!0,...r?.styles??{}},i={footnoteId:e};return r?.customMark&&(i.customMark=r.customMark),{id:o("run"),text:t,styles:n,kind:"footnoteReference",footnoteReference:i}}function w(e){const t=c("");return t.style={styleId:e},t}var b=96/72,y=.75,v=96/2.54,x=9525,E=12700,S=1440,k=1e5,_=6e4,I=14.6667,N=e=>({width:.5,type:"solid",color:e});function T(e,t,r){const n=`${r?"MediumShading1":"LightShading"}-Accent${e}`,o=N(r?"#ffffff":t.accent);return{id:n,name:`${r?"Medium Shading 1":"Light Shading"} Accent ${e}`,type:"table",qFormat:!0,uiPriority:(r?40:20)+e,tableStyle:{rowBandSize:1,tblLook:{firstRow:!0,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!1,noVBand:!0},borders:{borderTop:o,borderRight:o,borderBottom:o,borderLeft:o,borderInsideH:o,borderInsideV:o},conditionalFormats:{wholeTable:{shading:r?t.tint:"#ffffff"},firstRow:{shading:t.accent,textStyle:{bold:!0,color:"#ffffff"}},band1Horz:{shading:t.tint}}}}}var C={TableNormal:{id:"TableNormal",name:"Table Normal",type:"table",isDefault:!0,uiPriority:0,tableStyle:{tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},TableGrid:{id:"TableGrid",name:"Table Grid",type:"table",qFormat:!0,uiPriority:1,tableStyle:{borders:{borderTop:N("#7f7f7f"),borderRight:N("#7f7f7f"),borderBottom:N("#7f7f7f"),borderLeft:N("#7f7f7f"),borderInsideH:N("#7f7f7f"),borderInsideV:N("#7f7f7f")},tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},...Object.fromEntries([{accent:"#4472c4",tint:"#d9e2f3"},{accent:"#ed7d31",tint:"#fce4d6"},{accent:"#a5a5a5",tint:"#e7e6e6"},{accent:"#ffc000",tint:"#fff2cc"},{accent:"#5b9bd5",tint:"#ddebf7"},{accent:"#70ad47",tint:"#e2f0d9"}].flatMap((e,t)=>{const r=t+1,n=T(r,e,!1),o=T(r,e,!0);return[[n.id,n],[o.id,o]]}))},A={normal:{id:"normal",builtinStyle:"normal",name:"Normal",type:"paragraph",qFormat:!0,uiPriority:0,paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:I}},header:{id:"header",builtinStyle:"header",name:"Header",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",builtinStyle:"footer",name:"Footer",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",builtinStyle:"heading1",name:"Heading 1",type:"paragraph",qFormat:!0,uiPriority:10,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:24,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:27,color:"#2e74b5"}},heading2:{id:"heading2",builtinStyle:"heading2",name:"Heading 2",type:"paragraph",qFormat:!0,uiPriority:11,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:17,color:"#2e74b5"}},heading3:{id:"heading3",builtinStyle:"heading3",name:"Heading 3",type:"paragraph",qFormat:!0,uiPriority:12,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:16,color:"#1f4d78"}},footnoteText:{id:"footnoteText",builtinStyle:"footnoteText",name:"Footnote Text",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",builtinStyle:"footnoteReference",name:"Footnote Reference",type:"character",semiHidden:!0,basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",builtinStyle:"caption",name:"Caption",type:"paragraph",qFormat:!0,uiPriority:35,basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}},...C};function R(e,t="value"){const r=e&&"object"==typeof e&&"type"in e?e.type:e;throw new Error(`Unhandled ${t}: ${String(r)}`)}function $(e){return"image"===e.kind||"textBox"===e.kind||"math"===e.kind||"opaque"===e.kind}function D(e){return"image"===e.kind?e.image:void 0}function M(e){return"textBox"===e.kind?e.textBox:void 0}function O(e){return"field"===e.kind?e.field:void 0}function P(e){return"fieldChar"===e.kind?e.fieldChar:void 0}function F(e){return"fieldInstruction"===e.kind?e.fieldInstruction:void 0}function L(e){return"footnoteReference"===e.kind?e.footnoteReference:void 0}function B(e){return"endnoteReference"===e.kind?e.endnoteReference:void 0}function U(e){return"math"===e.kind?e.math:void 0}function z(e){return"opaque"===e.kind?e.opaque:void 0}function j(e,t){switch(e.kind){case"opaque":return t.opaque(e);case"footnoteReference":return t.footnoteReference(e);case"endnoteReference":return t.endnoteReference(e);case"fieldChar":return t.fieldChar(e);case"fieldInstruction":return t.fieldInstruction(e);case"field":return t.field(e);case"textBox":return t.textBox(e);case"image":return t.image(e);case"sym":return t.sym(e);case"math":return t.math?t.math(e):t.text(e);case"text":return t.text(e);default:return R(e,"run kind")}}var q="asset:";var H={styleId:void 0,bold:!1,italic:!1,underline:!1,underlineStyle:null,underlineColor:null,strike:!1,doubleStrike:!1,superscript:!1,subscript:!1,smallCaps:!1,allCaps:!1,hidden:!1,noProof:!1,webHidden:!1,specVanish:!1,rtl:!1,complexScript:!1,snapToGrid:!0,fitText:null,emphasisMark:null,textBorder:null,outline:!1,shadow:!1,emboss:!1,imprint:!1,textEffect:null,characterScale:null,characterSpacing:null,baselineShift:null,kerningThreshold:null,ligatures:null,numberSpacing:null,numberForm:null,stylisticSet:null,contextualAlternates:!1,fontFamily:"Calibri, sans-serif",fontSize:I,color:"#000000",highlight:null,shading:null,language:null,link:null},W=H,V={styleId:void 0,align:"left",spacingBefore:0,spacingAfter:8,contextualSpacing:!1,lineHeight:1.15,lineRule:null,lineGridPitch:null,lineGridType:null,snapToGrid:!0,indentLeft:0,indentRight:0,indentFirstLine:0,indentHanging:0,mirrorIndents:!1,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null,suppressLineNumbers:!1,suppressAutoHyphens:!1,bidi:!1,kinsoku:!0,wordWrap:!0,overflowPunct:!0,topLinePunct:!1,autoSpaceDE:!0,autoSpaceDN:!0,adjustRightInd:!0,textAlignment:null,textboxTightWrap:null,divId:null,conditionalStyle:null,borderBetween:null,borderBar:null,framePrXml:null},G={width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}};function X(e){const t=e.orientation??(r=e.width,n=e.height,r>n?"landscape":"portrait");var r,n;const o="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:o?e.height:e.width,height:o?e.width:e.height,orientation:t,margins:{top:e.margins.top,right:e.margins.right,bottom:e.margins.bottom,left:e.margins.left,header:e.margins.header,footer:e.margins.footer,gutter:e.margins.gutter},...e.columns?{columns:e.columns}:{}}}function Z(e){const t=e.pageSettings;return X({width:t?.width??G.width,height:t?.height??G.height,orientation:t?.orientation??G.orientation,margins:{top:t?.margins.top??G.margins.top,right:t?.margins.right??G.margins.right,bottom:t?.margins.bottom??G.margins.bottom,left:t?.margins.left??G.margins.left,header:t?.margins.header??G.margins.header,footer:t?.margins.footer??G.margins.footer,gutter:t?.margins.gutter??G.margins.gutter},...t?.columns?{columns:t.columns}:{}})}function Y(e){return Math.max(24,Math.floor(e.width-e.margins.left-e.margins.right-e.margins.gutter))}function Q(e){const t=e.margins.left+e.margins.gutter,r=Y(e),n=e.columns,o=n?.count??1;if(!n||o<=1)return[{left:t,width:r}];if(!1===n.equalWidth&&n.columns?.length){const e=[];let r=t;for(let t=0;t<o;t+=1){const o=n.columns[t],i=Math.max(1,o?.width??0);e.push({left:r,width:i}),r+=i+(o?.space??n.space)}return e}const i=n.space,a=Math.max(1,Math.floor((r-i*(o-1))/o)),s=[];for(let l=0;l<o;l+=1)s.push({left:t+l*(a+i),width:a});return s}function K(e,t){return Number.isFinite(e)?Math.min(Math.max(0,e),t):0}function J(e){return K(e.margins.header,e.height)}function ee(e){return Math.max(K(e.margins.top,e.height),J(e))}function te(e){const t=e.height-K(e.margins.bottom,e.height);return Math.min(e.height,Math.max(ee(e),Math.min(t,function(e){return e.height-K(e.margins.footer,e.height)}(e))))}function re(e){return e.runs.map(e=>e.text).join("")}function ne(e){return e.runs.reduce((e,t)=>e+t.text.length,0)}function oe(e,t){const r=Math.max(0,Math.min(t,ne(e)));let n=0;for(const i of e.runs){const t=n+i.text.length;if(r<=t)return{paragraphId:e.id,runId:i.id,offset:r-n};n=t}const o=e.runs[e.runs.length-1];return{paragraphId:e.id,runId:o.id,offset:o.text.length}}function ie(e,t){const r=function(e,t){const r=e.runs.findIndex(e=>e.id===t);return-1===r?0:r}(e,t.runId);let n=0;for(let i=0;i<r;i+=1)n+=e.runs[i]?.text.length??0;const o=e.runs[r];return n+Math.max(0,Math.min(t.offset,o?.text.length??0))}function ae(e,t){let r=0;for(const n of e.runs){if(r>t)return!1;if(r===t&&0===n.text.length&&("fieldChar"===n.kind||"fieldInstruction"===n.kind))return!0;r+=n.text.length}return!1}function se(e,t,r){const n=oe(e,t);return r&&ae(e,t)&&(n.fieldBoundaryAffinity=r),n}function le(){return{merge(e,t){if(!t)return{...e};const r={...e};for(const[n,o]of Object.entries(t))void 0!==o&&(r[n]=o);return r}}}var ce=le(),ue=le();function de(e,t){return ce.merge(e,t)}function pe(e,t){const r=ue.merge(e,t);if(Array.isArray(t?.tabs)){const n=[...e.tabs??[]];for(const e of t.tabs){const t=n.findIndex(t=>Math.abs(t.position-e.position)<1e-6);t>=0&&n.splice(t,1),n.push(e)}r.tabs=n.sort((e,t)=>e.position-t.position)}return r}function fe(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const r=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return r?r.id:void 0}function he(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?he(r.basedOn,t):{},...r.textStyle??{}}}function me(e,t){if(!e||!t||!t[e])return{};const r=t[e];return pe(r.basedOn?me(r.basedOn,t):{},r.paragraphStyle)}function ge(e,t,r){const n=de(de(he(t??fe(r),r),he(e?.styleId,r)),e);return{...H,...n}}function we(e,t){const r=e?.styleId??fe(t),n=pe(me(r,t),{...e,styleId:r});return{...V,...n}}function be(e,t){if(!t)return"";if(!t.startsWith("asset:"))return t;const r=t.slice(6);return(e?.assets?.[r])?.url??t}function ye(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:X(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:Z(e)}]}function ve(e){return ye(e)}function xe(e){switch(e.type){case"paragraph":return[e];case"table":return e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks.flatMap(xe)));default:return R(e,"block")}}function Ee(e){return e?e.flatMap(xe):[]}var Se=class{document;index=/* @__PURE__ */new Map;constructor(e){this.document=e}build(){return ve(this.document).forEach((e,t)=>{this.indexZone({zone:"header",blocks:e.header},t),this.indexZone({zone:"header",blocks:e.firstPageHeader},t),this.indexZone({zone:"header",blocks:e.evenPageHeader},t),this.indexZone({zone:"main",blocks:e.blocks},t),this.indexZone({zone:"footer",blocks:e.footer},t),this.indexZone({zone:"footer",blocks:e.firstPageFooter},t),this.indexZone({zone:"footer",blocks:e.evenPageFooter},t)}),this.indexFootnotes(),this.index}indexZone(e,t){if(!e.blocks)return;let r=0;e.blocks.forEach((n,o)=>{r=this.indexTopLevelBlock(n,o,{sectionIndex:t,zone:e.zone,footnoteId:e.footnoteId,startIndex:r})})}indexTable(e,t,r){let n=t.startIndex;return e.rows.forEach((e,o)=>{e.cells.forEach((e,i)=>{const a={tableBlockIndex:r.currentTableBlockIndex,rowIndex:o,cellIndex:i},s=[...r.tablePath,a];e.blocks.forEach((e,r)=>{if("paragraph"===e.type){const o=s[0];return this.recordParagraph(e,{sectionIndex:t.sectionIndex,zone:t.zone,paragraphIndexInSection:n,footnoteId:t.footnoteId},{blockIndex:o.tableBlockIndex,rowIndex:o.rowIndex,cellIndex:o.cellIndex,paragraphIndex:r,tablePath:s}),void(n+=1)}n=this.indexTable(e,{...t,startIndex:n},{currentTableBlockIndex:r,tablePath:s})})})}),n}indexTopLevelBlock(e,t,r){switch(e.type){case"paragraph":return this.recordParagraph(e,{sectionIndex:r.sectionIndex,zone:r.zone,paragraphIndexInSection:r.startIndex,footnoteId:r.footnoteId},null),r.startIndex+1;case"table":return this.indexTable(e,r,{currentTableBlockIndex:t,tablePath:[]});default:return R(e,"block")}}recordParagraph(e,t,r){this.index.set(e.id,{paragraph:e,location:t,tableLocation:r})}indexFootnotes(){const e=this.document.footnotes?.items;if(e)for(const t of Object.keys(e)){const r=e[t];r&&this.indexZone({zone:"footnote",blocks:r.blocks,footnoteId:t},0)}}},ke=new class{indexMap=/* @__PURE__ */new WeakMap;paragraphsMap=/* @__PURE__ */new WeakMap;getIndex(e){return this.indexMap.get(e)}setIndex(e,t){this.indexMap.set(e,t)}getParagraphs(e){return this.paragraphsMap.get(e)}setParagraphs(e,t){this.paragraphsMap.set(e,t)}};function _e(e){const t=ke.getIndex(e);if(t)return t;const r=new Se(e).build();return ke.setIndex(e,r),r}function Ie(e){const t=ke.getParagraphs(e);if(t)return t;const r=ve(e).flatMap(e=>function(e){return[...Ee(e.header),...Ee(e.firstPageHeader),...Ee(e.evenPageHeader),...e.blocks.flatMap(xe),...Ee(e.footer),...Ee(e.firstPageFooter),...Ee(e.evenPageFooter)]}(e)),n=e.footnotes?.items,o=[...r,...n?Object.values(n).flatMap(e=>e.blocks.flatMap(xe)):[]];return ke.setParagraphs(e,o),o}function Ne(e){return Ie(e)}function Te(e,t){return _e(e).get(t)?.paragraph}function Ce(e,t){const r=_e(e).get(t);return r?r.location:null}function Ae(e,t,r=0){const n=_e(e).get(t);return n&&n.tableLocation?e.sections&&e.sections.length>0&&n.location.sectionIndex!==r?null:{...n.tableLocation,zone:n.location.zone}:null}function Re(e,t,r=0){const n=Ae(e,t,r);return 1===n?.tablePath.length?n:null}function $e(e,t){const r=[];let n=e;for(let o=0;o<t.length;o+=1){const e=t[o],i=n[e.tableBlockIndex];if(!i||"table"!==i.type)return null;const a=i.rows[e.rowIndex]?.cells[e.cellIndex];if(!a)return null;r.push({table:i,cell:a,segment:e,depth:o}),n=a.blocks}return r}var De=["•","○","▪","•","○","▪"],Me=["decimal","lowerLetter","lowerRoman","decimal","lowerLetter","lowerRoman"],Oe={61623:"•",61548:"·",61607:"▪",61656:"➢",61559:"✓",61692:"✓",61671:"⚡",61472:" "};function Pe(e){if(e<=0)return String(e);let t=e,r="";for(;t>0;)r=String.fromCharCode(65+(t-1)%26)+r,t=Math.floor((t-1)/26);return r}function Fe(e){if(e<=0||e>=4e3)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let r=e,n="";for(const[o,i]of t)for(;r>=o;)n+=i,r-=o;return n}function Le(e,t){switch(t){case"lowerLetter":return Pe(e).toLowerCase();case"upperLetter":return Pe(e).toUpperCase();case"lowerRoman":return Fe(e).toLowerCase();case"upperRoman":return Fe(e).toUpperCase();default:return String(e)}}function Be(e){const t=e.codePointAt(0);return void 0!==t&&t>=57344&&t<=63743?Oe[t]??"•":e}function Ue(e){const t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map;for(const n of function(e){const t=[],r=e=>{for(const t of e.runs)"textBox"===t.kind&&n(t.textBox.blocks)},n=e=>{for(const o of e)switch(o.type){case"paragraph":t.push(o),r(o);break;case"table":for(const e of o.rows)for(const t of e.cells)n(t.blocks);break;default:R(o,"block")}};for(const o of Ne(e))t.push(o),r(o);return t}(e)){const e=n.list;if(!e)continue;const o=Math.max(0,e.level??0);if("bullet"===e.kind){t.set(n.id,e.bulletGlyph?Be(e.bulletGlyph):De[o%De.length]);continue}const i=e.instanceId?`instance:${e.instanceId}`:"legacy",a=r.get(i)??{counters:[],formats:[]};for(r.set(i,a);a.counters.length<=o;)a.counters.push(0);a.counters.length=o+1,e.levelFormats&&e.levelFormats.forEach((e,t)=>{a.formats[t]=e}),a.formats[o]=e.format??Me[o%Me.length],a.counters[o]="number"==typeof e.startAt?e.startAt:0===a.counters[o]?1:a.counters[o]+1;const s=e.levelText??`%${o+1}.`;t.set(n.id,s.replace(/%([1-9])/g,(t,r)=>{const n=Number(r)-1,o=a.counters[n];return void 0===o?t:Le(o,e.legal?"decimal":a.formats[n]??"decimal")}))}return t}function ze(e,t){return t.get(e.id)??""}var je={header:{default:"header",firstPage:"firstPageHeader",evenPage:"evenPageHeader"},footer:{default:"footer",firstPage:"firstPageFooter",evenPage:"evenPageFooter"}};function qe(e,t){return je[e][t]}function He(e,t,r){return e[qe(t,r)]}function We(e,t,r,n){return{...e,[qe(t,r)]:n}}function Ve(e){return e.activeSectionIndex??0}function Ge(e){return e.activeZone??"main"}function Xe(e,t){if("footnote"===t){const t=e.activeFootnoteId;if(!t)return[];const r=e.document.footnotes?.items?.[t];return r?r.blocks:[]}const r=ve(e.document),n=r[Math.max(0,Math.min(Ve(e),r.length-1))];return n?"header"===t||"footer"===t?He(n,t,function(e){return e.activeHeaderFooterStory??"default"}(e))??[]:n.blocks:[]}function Ze(e){return Xe(e,Ge(e)).flatMap(xe)}function Ye(e){const t=Ge(e);if("footnote"===t)return e;const r=Ce(e.document,e.selection.anchor.paragraphId),n=Ce(e.document,e.selection.focus.paragraphId);return r&&n&&r.zone===t&&n.zone===t&&r.sectionIndex===n.sectionIndex&&n.sectionIndex!==Ve(e)?{...e,activeSectionIndex:n.sectionIndex}:e}function Qe(e,t){return Je(et(e.style?.styleId,t).tableStyle,e.style)}function Ke(e,t,r){if(!e)return;const n=me(t??fe(r),r),o={};for(const[i,a]of Object.entries(e))i in n||(o[i]=a);return Object.keys(o).length>0?o:void 0}function Je(e,t){const r={...e?.conditionalFormats??{}};for(const[n,o]of Object.entries(t?.conditionalFormats??{})){const e=r[n];r[n]={...e??{},...o,textStyle:{...e?.textStyle,...o.textStyle},paragraphStyle:{...e?.paragraphStyle,...o.paragraphStyle},rowStyle:{...e?.rowStyle,...o.rowStyle},cellStyle:{...e?.cellStyle,...o.cellStyle},borders:{...e?.borders,...o.borders},tableStyle:Je(e?.tableStyle,o.tableStyle)}}return{...e??{},...t??{},defaultCellMargins:{...e?.defaultCellMargins??{},...t?.defaultCellMargins??{}},borders:{...e?.borders??{},...t?.borders??{}},...Object.keys(r).length>0?{conditionalFormats:r}:{}}}function et(e,t,r=/* @__PURE__ */new Set){if(!t)return{tableStyle:{}};const n=e??Object.values(t).find(e=>"table"===e.type&&e.isDefault)?.id;if(!n||r.has(n))return{tableStyle:{}};const o=t[n];if(!o||"table"!==o.type)return{tableStyle:{}};r.add(n);const i=et(o.basedOn,t,r);return{tableStyle:Je(i.tableStyle,o.tableStyle),paragraphStyle:{...i.paragraphStyle??{},...o.paragraphStyle??{}},textStyle:{...i.textStyle??{},...o.textStyle??{}}}}function tt(e){const{table:t,rowIndex:r,cellIndex:n,visualColumnIndex:o,columnCount:i,styles:a}=e,s=et(t.style?.styleId,a),l=t.rows[r],c=l?.propertyExceptions?Je(Je(s.tableStyle,t.style),l.propertyExceptions):Je(s.tableStyle,t.style),u=l?.cells[n],d=function(e){const{rowIndex:t,columnIndex:r,rowCount:n,columnCount:o,tableStyle:i}=e,a=i.tblLook??{firstRow:!0,lastRow:!1,firstCol:!0,lastCol:!1,noHBand:!1,noVBand:!1},s=a.firstRow&&0===t,l=a.lastRow&&t===n-1&&0!==t,c=a.firstCol&&0===r,u=a.lastCol&&r===o-1&&0!==r,d=["wholeTable"];if(!a.noHBand&&!s&&!l){const e=t-(a.firstRow?1:0);d.push(Math.floor(e/Math.max(1,i.rowBandSize??1))%2==0?"band1Horz":"band2Horz")}if(!a.noVBand&&!c&&!u){const e=r-(a.firstCol?1:0);d.push(Math.floor(e/Math.max(1,i.colBandSize??1))%2==0?"band1Vert":"band2Vert")}u&&d.push("lastCol"),c&&d.push("firstCol"),l&&d.push("lastRow"),s&&d.push("firstRow"),s&&c&&d.push("nwCell"),s&&u&&d.push("neCell"),l&&c&&d.push("swCell"),l&&u&&d.push("seCell");for(const p of[e.rowFlags,e.cellFlags])for(const[e,t]of Object.entries(p??{}))if(t&&!d.includes(e)&&d.push(e),!1===t){const t=d.indexOf(e);t>=0&&d.splice(t,1)}return d}({rowIndex:r,columnIndex:o,rowCount:t.rows.length,columnCount:i,tableStyle:c,rowFlags:l?.conditionalStyle,cellFlags:u?.conditionalStyle}),p=function(e,t){const r={};for(const n of e){const e=t?.[n];e&&(e.shading&&(r.shading=e.shading),e.textStyle&&(r.textStyle={...r.textStyle,...e.textStyle}),e.paragraphStyle&&(r.paragraphStyle={...r.paragraphStyle,...e.paragraphStyle}),e.rowStyle&&(r.rowStyle={...r.rowStyle,...e.rowStyle}),e.cellStyle&&(r.cellStyle={...r.cellStyle,...e.cellStyle}),e.borders&&(r.borders={...r.borders,...e.borders}),e.tableStyle&&(r.tableStyle=Je(r.tableStyle,e.tableStyle)))}return r}(d,c.conditionalFormats),f={...void 0!==c.defaultCellMargins?.top?{paddingTop:c.defaultCellMargins.top}:{},...void 0!==c.defaultCellMargins?.right?{paddingRight:c.defaultCellMargins.right}:{},...void 0!==c.defaultCellMargins?.bottom?{paddingBottom:c.defaultCellMargins.bottom}:{},...void 0!==c.defaultCellMargins?.left?{paddingLeft:c.defaultCellMargins.left}:{},...void 0!==c.defaultCellMargins?.start?{paddingStart:c.defaultCellMargins.start}:{},...void 0!==c.defaultCellMargins?.end?{paddingEnd:c.defaultCellMargins.end}:{},...0===r&&c.borders?.borderTop?{borderTop:c.borders.borderTop}:r>0&&c.borders?.borderInsideH?{borderTop:c.borders.borderInsideH}:{},...r===t.rows.length-1&&c.borders?.borderBottom?{borderBottom:c.borders.borderBottom}:r<t.rows.length-1&&c.borders?.borderInsideH?{borderBottom:c.borders.borderInsideH}:{},...0===o&&c.borders?.borderLeft?{borderLeft:c.borders.borderLeft}:o>0&&c.borders?.borderInsideV?{borderLeft:c.borders.borderInsideV}:{},...o===i-1&&c.borders?.borderRight?{borderRight:c.borders.borderRight}:o<i-1&&c.borders?.borderInsideV?{borderRight:c.borders.borderInsideV}:{},...p.cellStyle??{},...p.borders??{},...p.shading?{shading:p.shading}:{}};return{tableStyle:Je(c,p.tableStyle),rowStyle:{...p.rowStyle??{},...l?.style??{}},cellStyle:{...f,...u?.style??{}},paragraphStyle:{...s.paragraphStyle??{},...p.paragraphStyle??{}},textStyle:{...s.textStyle??{},...p.textStyle??{}},conditionalKeys:d}}function rt(e){const t=Object.fromEntries(Object.entries(C).filter(([t])=>!(t in e)));return{...e,...t}}function nt(e,t,r,n,i,a){const s=X(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:G.width,height:G.height,orientation:G.orientation,margins:{...G.margins}});return{schemaVersion:1,id:o("document"),pageSettings:s,sections:r??[{id:"section:default",blocks:e,pageSettings:s}],styles:n?rt(n):{...A},metadata:i??{title:"Untitled document"},assets:a??void 0}}function ot(e){return Ie(e).reduce((e,t)=>e+ne(t),0)}function it(e){const t=Ie(e);let r=0;for(const n of t){const e=n.runs.reduce((e,t)=>e+t.text,"");if(!e.trim())continue;r+=e.split(/[\s\p{P}]+/u).filter(e=>e.length>0).length}return r}function at(e,t){const r=e.findIndex(e=>e.id===t);return-1===r?0:r}function st(e,t){return lt(t,(r=Ze(e),n=t.paragraphId,r[at(r,n)]));var r,n}function lt(e,t){const r=ie(t,e),n=t.runs.find(t=>t.id===e.runId),o=e.paragraphId===t.id&&!!n&&Number.isInteger(e.offset)&&e.offset>=0&&e.offset<=n.text.length;return se(t,function(e,t){return Math.max(0,Math.min(e,ne(t)))}(r,t),o?e.fieldBoundaryAffinity:void 0)}function ct(e,t,r){const n=at(e,t.paragraphId),o=at(e,r.paragraphId);if(n!==o)return n-o;const i=e[n];return ie(i,t)-ie(i,r)}function ut(e){return{anchor:e,focus:e}}function dt(e){return e.anchor.paragraphId===e.focus.paragraphId&&e.anchor.runId===e.focus.runId&&e.anchor.offset===e.focus.offset}function pt(e,t){const r=t??Ze(e),n=new Map(r.map((e,t)=>[e.id,t])),o=n.get(e.selection.anchor.paragraphId)??0,i=n.get(e.selection.focus.paragraphId)??0,a=r[o]??r[0],s=r[i]??r[0],l=lt(e.selection.anchor,a),c=lt(e.selection.focus,s),u=n.get(l.paragraphId)??o,d=n.get(c.paragraphId)??i,p=u!==d?u-d:ie(r[u],l)-ie(r[d],c),f=p<=0?l:c,h=p<=0?c:l,m=r[p<=0?u:d],g=r[p<=0?d:u];return{start:f,end:h,startIndex:p<=0?u:d,endIndex:p<=0?d:u,startParagraphOffset:ie(m,f),endParagraphOffset:ie(g,h),isCollapsed:0===p}}function ft(e,t){let r={...e,sections:e.sections&&e.sections.length>0?e.sections:[{id:"section:default",blocks:[c("")],pageSettings:ye(e)[0]?.pageSettings??G}]},n=Ie(r);if(0===n.length){const e=c(""),t=ye(r),o=t[0];if(o){const n=[...t];n[0]={...o,blocks:[e,...o.blocks]},r={...r,sections:n}}n=Ie(r)}const o=void 0!==t;let i=n[0],a=0,s="main";if(o){i=n[Math.max(0,Math.min(t?.paragraphIndex??0,n.length-1))];const e=Ce(r,i.id);e&&(a=e.sectionIndex,s=e.zone)}else{const e=ye(r)[0],t=e?.blocks.flatMap(xe)??[];if(t.length>0)i=t[0],s="main",a=0;else{const t=e?.header?.flatMap(xe)??[],r=e?.footer?.flatMap(xe)??[];t.length>0?(i=t[0],s="header"):r.length>0&&(i=r[0],s="footer"),a=0}}return{document:r,selection:ut(oe(i,Math.max(0,Math.min(t?.offset??0,ne(i))))),activeSectionIndex:a,activeZone:s}}function ht(){const e=c(""),t=e.runs[0];return{document:nt([e]),selection:ut({paragraphId:e.id,runId:t.id,offset:0}),activeSectionIndex:0,activeZone:"main"}}var mt={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkgrey:"A9A9A9",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",grey:"808080",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"DB7093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"663399",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},gt=/^[0-9a-fA-F]{6}$/;function wt(e){return e.trim().replace(/^#/,"")}function bt(e){if(!e)return null;const t=wt(e);return gt.test(t)?t.toUpperCase():null}function yt(e){if(!e)return null;const t=wt(e);return gt.test(t)?[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]:null}function vt(e,t,r){const n=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,"0");return`#${n(e)}${n(t)}${n(r)}`}function xt(e){const t=bt(e);if(t)return t;const r=e?.trim();if(!r)return null;const n=r.toLowerCase();if(Object.hasOwn(mt,n))return mt[n];const o=r.match(/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i)?.[1];if(o){const e=o.length<=4?[...o].map(e=>e+e).join(""):o;return 8===e.length&&"ff"!==e.slice(6).toLowerCase()?null:e.slice(0,6).toUpperCase()}const i=r.match(/^rgba?\((.*)\)$/i)?.[1];if(!i)return null;let a,s;if(i.includes(",")){const e=i.split(",").map(e=>e.trim());if(3!==e.length&&4!==e.length)return null;if(a=e.slice(0,3),!a.every(e=>e.endsWith("%")===a[0].endsWith("%")))return null;s=e[3]}else{const e=i.split("/");if(e.length>2)return null;a=e[0].trim().split(/\s+/),s=e[1]?.trim()}const l=e=>{const t=e.endsWith("%")?e.slice(0,-1):e;if(!/^[+-]?(?:\d*\.\d+|\d+)(?:e[+-]?\d+)?$/i.test(t))return null;const r=Number(t);return Number.isFinite(r)?r:null};if(void 0!==s){const e=l(s);if(null===e||e/(s.endsWith("%")?100:1)<1)return null}if(3!==a.length)return null;const c=a.map(e=>{const t=l(e);return null===t?null:t*(e.endsWith("%")?2.55:1)});return c.some(e=>null===e)?null:vt(c[0],c[1],c[2]).slice(1).toUpperCase()}function Et(e){const t=[],r=[];for(let n=0;n<e.rows.length;n+=1){const o=e.rows[n];if(o.style?.hidden)continue;let i=Math.max(0,Math.floor(o.style?.gridBefore??0));for(let e=0;e<o.cells.length;e+=1){for(;t[i]>0;)i+=1;const a=o.cells[e];if("continue"===a.vMerge)continue;const s=Math.max(1,a.colSpan??1),l=Math.max(1,a.rowSpan??1);r.push({rowIndex:n,cellIndex:e,visualRowIndex:n,visualColumnIndex:i,rowSpan:l,colSpan:s,cell:a});for(let e=0;e<s;e+=1)t[i+e]=Math.max(t[i+e]??0,l);i+=s}for(let e=0;e<t.length;e+=1)t[e]>0&&(t[e]-=1)}if(e.style?.bidiVisual&&r.length>0){const e=Math.max(...r.map(e=>e.visualColumnIndex+e.colSpan));for(const t of r)t.visualColumnIndex=e-t.visualColumnIndex-t.colSpan}return r}function St(e,t){const{startRowIndex:r,endRowIndex:n,repeatedHeaderRowCount:o,startRowCellBlockStarts:i,endRowCellBlockEnds:a,startRowCellBlockPositions:s,endRowCellBlockPositions:l}=t,c=r>0&&o>0?e.rows.slice(0,o):[],u=e.rows.slice(r,n).map((e,t,r)=>{const n=0===t,o=t===r.length-1;if(n&&(i||s)||o&&(a||l)){const t=e.cells.map((e,t)=>{const r=n&&s?s[t]:void 0,c=o&&l?l[t]:void 0,u=function(e,t,r,n,o){const i=[],a=void 0!==o?.offset?n+1:n;for(let s=t;s<a;s+=1){const t=e.blocks[s];if(!t)continue;if("table"===t.type){i.push(t);continue}const n=r&&r.blockIndex===s?r.offset??0:0,a=o&&o.blockIndex===s?o.offset??kt(t):kt(t);n<=0&&a>=kt(t)?i.push(t):a>n&&i.push(_t(t,n,a))}return i}(e,r?.blockIndex??(n&&i?i[t]??0:0),r,c?.blockIndex??(o&&a?a[t]??e.blocks.length:e.blocks.length),c);return{...e,blocks:u}});return{...e,cells:t}}return e});return{...e,rows:[...c,...u]}}function kt(e){return e.runs.reduce((e,t)=>e+t.text.length,0)}function _t(e,t,r){let n=0;const o=e.runs.flatMap(e=>{const o=n,i=o+e.text.length;n=i;const a=Math.max(t,o),s=Math.min(r,i);return s<=a?[]:[{...e,id:`${e.id}:slice:${a-o}:${s-o}`,text:e.text.slice(a-o,s-o)}]});return{...e,runs:o.length>0?o:[{id:`${e.id}:empty`,text:"",kind:"text"}]}}var It=[{id:"decimal",label:"1, 2, 3, …"},{id:"roman",label:"i, ii, iii, …"},{id:"ROMAN",label:"I, II, III, …"},{id:"alphabetic",label:"a, b, c, …"},{id:"ALPHABETIC",label:"A, B, C, …"},{id:"Ordinal",label:"1st, 2nd, 3rd, …"}];function Nt(e){if(e)return It.find(t=>t.id===e)?.id}function Tt(e,t){switch(t){case"roman":return At(e,!1);case"ROMAN":return At(e,!0);case"alphabetic":return Rt(e,!1);case"ALPHABETIC":return Rt(e,!0);case"Ordinal":return function(e){const t=Math.floor(e),r=Math.abs(t),n=r%100;if(n>=11&&n<=13)return`${t}th`;const o=r%10;return`${t}${1===o?"st":2===o?"nd":3===o?"rd":"th"}`}(e);default:return String(e)}}var Ct=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function At(e,t){if(e<=0)return String(e);let r=Math.floor(e),n="";for(const[o,i]of Ct)for(;r>=o;)n+=i,r-=o;return t?n:n.toLowerCase()}function Rt(e,t){if(e<=0)return String(e);const r=t?65:97;let n="",o=e;for(;o>0;)o-=1,n=String.fromCharCode(r+o%26)+n,o=Math.floor(o/26);return n}var $t=e=>/\s/u.test(e);function Dt(e){const t=[],r=r=>({raw:e,command:null,tokens:t,error:r});if(e.length>65536)return r("length-limit");let n=0;for(;n<e.length;){if($t(e[n])){n++;continue}if(t.length>=4096)return r("token-limit");const o=n;let i="word",a="";if('"'===e[n]){i="quoted",n++;let t=!1;for(;n<e.length;){const r=e[n++];if('"'===r){t=!0;break}"\\"!==r||'"'!==e[n]&&"\\"!==e[n]?a+=r:a+=e[n++]}if(!t)return r("unterminated-quote");if(n<e.length&&!$t(e[n])&&"\\"!==e[n])return r("adjacent-quote")}else if("\\"===e[n]){i="switch",n++;const t=e[n];if(!t||!/[A-Za-z*@#!]/.test(t))return r("invalid-switch");if(n++,a=t,n<e.length&&!$t(e[n])&&'"'!==e[n]&&"\\"!==e[n])for(;n<e.length&&!$t(e[n])&&'"'!==e[n]&&"\\"!==e[n];)a+=e[n++]}else{for(;n<e.length&&!$t(e[n])&&"\\"!==e[n]&&'"'!==e[n];)n++;if('"'===e[n])return r("adjacent-quote");a=e.slice(o,n)}t.push({kind:i,raw:e.slice(o,n),value:a,start:o,end:n})}const o=t[0];return o&&"word"===o.kind&&/^(?:[A-Za-z][A-Za-z0-9]*|=)$/.test(o.value)?{raw:e,command:o.value.toUpperCase(),tokens:t}:r("missing-command")}var Mt=["am/pm","AM/PM","dddd","MMMM","yyyy","ddd","MMM","dd","MM","yy","HH","hh","mm","ss","d","M","H","h","m","s"];function Ot(e){if(!e.length||e.length>256)return;const t=[];for(let r=0;r<e.length;){const n=e[r];if("'"===n){const n=e.indexOf("'",r+1);if(n<0)return;t.push({literal:e.slice(r+1,n)}),r=n+1;continue}const o=Mt.find(t=>e.startsWith(t,r));if(o){if(r+=o.length,r<e.length&&e[r]===o[0]&&"am/pm"!==o&&"AM/PM"!==o)return;t.push({token:o})}else{if(/[\p{L}\\\x00-\x1f]/u.test(n))return;t.push({literal:n}),r++}}return t.some(e=>"token"in e)?t:void 0}function Pt(e){return!!Ot(e)}var Ft=/* @__PURE__ */n(e=>{function t(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=t({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var o=t({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var i=t({script:!1,style:!1,textarea:!0,title:!0});function a(e){return e===s.HTML}var s=t({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=Object.keys(s).map(function(e){return s[e]});var c=t({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)r(t,n)&&(e[n]=t[n]);return e},e.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var o=0;o<e.length;o++)if(r(e,o)){var i=e[o];if(t.call(void 0,i,o,e))return i}},e.freeze=t,e.HTML_BOOLEAN_ATTRIBUTES=n,e.HTML_RAW_TEXT_ELEMENTS=i,e.HTML_VOID_ELEMENTS=o,e.hasDefaultHTMLNamespace=function(e){return a(e)||e===s.XML_XHTML_APPLICATION},e.hasOwn=r,e.isHTMLBooleanAttribute=function(e){return r(n,e.toLowerCase())},e.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return r(i,t)&&!i[t]},e.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return r(i,t)&&i[t]},e.isHTMLMimeType=a,e.isHTMLVoidElement=function(e){return r(o,e.toLowerCase())},e.isValidMimeType=function(e){return l.indexOf(e)>-1},e.MIME_TYPE=s,e.NAMESPACE=c}),Lt=/* @__PURE__ */n(e=>{function t(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var r=Ft().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),n=Object.keys(r);function o(e){return"number"==typeof e&&e>=1&&e<=25}function i(e,t){var a;o(e)?(this.name=n[e],this.message=t||""):(this.message=e,this.name="string"==typeof(a=t)&&a.substring(a.length-r.Error.length)===r.Error?t:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,i)}t(i,!0),Object.defineProperties(i.prototype,{code:{enumerable:!0,get:function(){var e=n.indexOf(this.name);return o(e)?e:0}}});for(var a={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},s=Object.entries(a),l=0;l<s.length;l++){i[s[l][0]]=s[l][1]}function c(e,t,r){this.message=e,this.locator=t,this.cause=r,Error.captureStackTrace&&Error.captureStackTrace(this,c)}t(c),e.DOMException=i,e.DOMExceptionName=r,e.ExceptionCode=a,e.ParseError=c}),Bt=/* @__PURE__ */n(e=>{function t(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var r=t();function n(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function o(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),r?"u":"")}function i(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),r?"u":"")}function a(e){if(0===arguments.length)throw new Error("no parameters provided");return i.apply(a,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var s=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;r&&(s=i("[",n(s),"\\u{10000}-\\u{10FFFF}","]"));var l=new RegExp("[^"+n(s)+"]",r?"u":""),c=/[\x20\x09\x0D\x0A]/,u=n(c),d=i(c,"+"),p=i(c,"*"),f=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;r&&(f=i("[",n(f),"\\u{10000}-\\u{10FFFF}","]"));var h=i("[",n(f),n(/[-.0-9\xB7]/),n(/[\u0300-\u036F\u203F-\u2040]/),"]"),m=i(f,h,"*"),g=i("^",m,"$"),w=i(h,"+"),b=a(i("&",m,";"),"|",a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)),y=i("%",m,";"),v=a(i('"',a(/[^%&"]/,"|",y,"|",b),"*",'"'),"|",i("'",a(/[^%&']/,"|",y,"|",b),"*","'")),x=a('"',a(/[^<&"]/,"|",b),"*",'"',"|","'",a(/[^<&']/,"|",b),"*","'"),E=i(o(f,":"),o(h,":"),"*"),S=i("^",E,"$"),k=i(E,a(":",E),"?"),_=i("^",k,"$"),I=i("(",k,")"),N=a(/"[^"]*"|'[^']*'/),T=i(/^<\?/,"(",m,")",a(d,"(?!",c,")(",s,"*?)"),"?",/\?>/),C=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,A=a('"',C,'*"',"|","'",o(C,"'"),"*'"),R="\x3c!--",$=i(R,a(o(s,"-"),"|",i("-",o(s,"-"))),"*","--\x3e"),D="#PCDATA",M=a("EMPTY","|","ANY","|",a(i(/\(/,p,D,a(p,/\|/,p,k),"*",p,/\)\*/),"|",i(/\(/,p,D,p,/\)/)),"|",i(/\([^>]+\)/,/[?*+]?/)),O=i("<!ELEMENT",d,a(k,"|",y),d,a(M,"|",y),p,">"),P=i("<!ATTLIST",d,m,a(d,m,d,a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",a(i("NOTATION",d,/\(/,p,m,a(p,/\|/,p,m),"*",p,/\)/),"|",i(/\(/,p,w,a(p,/\|/,p,w),"*",p,/\)/))),d,a(/#REQUIRED|#IMPLIED/,"|",a(a("#FIXED",d),"?",x))),"*",p,">"),F="about:legacy-compat",L=a('"'+F+'"',"|","'"+F+"'"),B="SYSTEM",U="PUBLIC",z=a(a(B,d,N),"|",a(U,d,A,d,N)),j=i("^",a(a(B,d,"(?<SystemLiteralOnly>",N,")"),"|",a(U,d,"(?<PubidLiteral>",A,")",d,"(?<SystemLiteral>",N,")"))),q=i("^",A,"$"),H=i("^",N,"$"),W=a(v,"|",a(z,a(d,"NDATA",d,m),"?")),V="<!ENTITY",G=a(i(V,d,m,d,W,p,">"),"|",i(V,d,"%",d,m,d,a(v,"|",z),p,">")),X=i("<!NOTATION",d,m,d,a(z,"|",i(U,d,A)),p,">"),Z=i(p,"=",p),Y=/1[.]\d+/,Q=i(d,"version",Z,a("'",Y,"'","|",'"',Y,'"')),K=/[A-Za-z][-A-Za-z0-9._]*/,J=i(/^<\?xml/,Q,a(d,"encoding",Z,a('"',K,'"',"|","'",K,"'")),"?",a(d,"standalone",Z,a("'",a("yes","|","no"),"'","|",'"',a("yes","|","no"),'"')),"?",p,/\?>/),ee=i(/<!\[CDATA\[/,i(s,"*?",/\]\]>/));e.chars=n,e.chars_without=o,e.detectUnicodeSupport=t,e.reg=i,e.regg=a,e.ABOUT_LEGACY_COMPAT=F,e.ABOUT_LEGACY_COMPAT_SystemLiteral=L,e.AttlistDecl=P,e.CDATA_START="<![CDATA[",e.CDATA_END="]]>",e.CDSect=ee,e.Char=s,e.Comment=$,e.COMMENT_START=R,e.COMMENT_END="--\x3e",e.DOCTYPE_DECL_START="<!DOCTYPE",e.elementdecl=O,e.EntityDecl=G,e.EntityValue=v,e.ExternalID=z,e.ExternalID_match=j,e.Name=m,e.Name_exact=g,e.NCName_exact=S,e.NotationDecl=X,e.Reference=b,e.PEReference=y,e.PI=T,e.PUBLIC=U,e.PubidLiteral=A,e.PubidLiteral_match=q,e.QName=k,e.QName_exact=_,e.QName_group=I,e.S=d,e.SChar_s=u,e.S_OPT=p,e.SYSTEM=B,e.SystemLiteral=N,e.SystemLiteral_match=H,e.InvalidChar=l,e.UNICODE_REPLACEMENT_CHARACTER="�",e.UNICODE_SUPPORT=r,e.XMLDecl=J}),Ut=/* @__PURE__ */n(e=>{var t=Ft(),r=t.find,n=t.hasDefaultHTMLNamespace,o=t.hasOwn,i=t.isHTMLMimeType,a=t.isHTMLRawTextElement,s=t.isHTMLVoidElement,l=t.MIME_TYPE,c=t.NAMESPACE,u=Symbol(),d=Lt(),p=d.DOMException,f=d.DOMExceptionName,h=Bt();function m(e){if(e!==u)throw new TypeError("Illegal constructor")}function g(e){return""!==e}function w(e,t){return o(e,t)||(e[t]=!0),e}function b(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(g):[]}(e);return Object.keys(t.reduce(w,{}))}function y(e){if(!h.QName_exact.test(e))throw new p(p.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function v(e,r){y(r),e=e||null;var n=null,o=r;if(r.indexOf(":")>=0){var i=r.split(":");n=i[0],o=i[1]}if(null!==n&&null===e)throw new p(p.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&e!==t.NAMESPACE.XML)throw new p(p.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===r)&&e!==t.NAMESPACE.XMLNS)throw new p(p.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===t.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==r)throw new p(p.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,n,o]}function x(e,t){for(var r in e)o(e,r)&&(t[r]=e[r])}function E(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,x(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var S={},k=S.ELEMENT_NODE=1,_=S.ATTRIBUTE_NODE=2,I=S.TEXT_NODE=3,N=S.CDATA_SECTION_NODE=4,T=S.ENTITY_REFERENCE_NODE=5,C=S.ENTITY_NODE=6,A=S.PROCESSING_INSTRUCTION_NODE=7,R=S.COMMENT_NODE=8,$=S.DOCUMENT_NODE=9,D=S.DOCUMENT_TYPE_NODE=10,M=S.DOCUMENT_FRAGMENT_NODE=11,O=S.NOTATION_NODE=12,P=t.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function F(e,t){if(t.length<e.length)return F(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function L(e){return e.guid||(e.guid=Math.random()),e.guid}function B(){}function U(e,t){this._node=e,this._refresh=t,z(this)}function z(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(Ce(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)o(e,n)&&delete e[n];x(r,e),e._inc=t}}function j(){this._nsIndex=Object.create(null),this._noNsIndex=Object.create(null)}function q(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function H(e,t,r){if(!t)return e._noNsIndex;var n=e._nsIndex[t];return!n&&r&&(n=e._nsIndex[t]=Object.create(null)),n}function W(e,t,r,n){if(n?t[q(t,n)]=r:(t[t.length]=r,t.length++),function(e,t){H(e,t.namespaceURI,!0)[t.localName]=t}(t,r),e){r.ownerElement=e;var o=e.ownerDocument;o&&(n&&J(o,e,n),function(e,t,r){e&&e._inc++,r.namespaceURI===c.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(o,e,r))}}function V(e,t,r){var n=q(t,r);if(n>=0){for(var o=t.length-1;n<=o;)t[n]=t[++n];if(t.length=o,function(e,t){var r=H(e,t.namespaceURI,!1);r&&delete r[t.localName]}(t,r),e){var i=e.ownerDocument;i&&J(i,e,r),r.ownerElement=null}}}function G(){}function X(e){m(e)}function Z(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Y(e,t){Q(e,null,{enter:function(e){return!t(e)||Q.STOP}})}function Q(e,t,r){for(var n=[{node:e,context:t,phase:Q.ENTER}];n.length>0;){var o=n.pop();if(o.phase===Q.ENTER){var i=r.enter(o.node,o.context);if(i===Q.STOP)return Q.STOP;if(n.push({node:o.node,context:i,phase:Q.EXIT}),null==i)continue;for(var a=o.node.lastChild;a;)n.push({node:a,context:i,phase:Q.ENTER}),a=a.previousSibling}else r.exit&&r.exit(o.node,o.context)}}function K(e,t){m(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||l.XML_APPLICATION,this.type=i(this.contentType)?"html":"xml"}function J(e,t,r,n){e&&e._inc++,r.namespaceURI===c.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function ee(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var o=t.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function te(e,t){if(e!==t.parentNode)throw new p(p.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,ee(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function re(e){return e&&e.nodeType===X.DOCUMENT_TYPE_NODE}function ne(e){return e&&e.nodeType===X.ELEMENT_NODE}function oe(e){return e&&e.nodeType===X.TEXT_NODE}function ie(e,t){var n=e.childNodes||[];if(r(n,ne)||re(t))return!1;var o=r(n,re);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function ae(e,t){var n=e.childNodes||[];if(r(n,function(e){return ne(e)&&e!==t}))return!1;var o=r(n,re);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function se(e,t,r){if(!function(e){return e&&(e.nodeType===X.DOCUMENT_NODE||e.nodeType===X.DOCUMENT_FRAGMENT_NODE||e.nodeType===X.ELEMENT_NODE)}(e))throw new p(p.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new p(p.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===X.CDATA_SECTION_NODE||e.nodeType===X.COMMENT_NODE||e.nodeType===X.DOCUMENT_FRAGMENT_NODE||e.nodeType===X.DOCUMENT_TYPE_NODE||e.nodeType===X.ELEMENT_NODE||e.nodeType===X.PROCESSING_INSTRUCTION_NODE||e.nodeType===X.TEXT_NODE)}(t)||re(t)&&e.nodeType!==X.DOCUMENT_NODE)throw new p(p.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function le(e,t,n){var o=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===X.DOCUMENT_FRAGMENT_NODE){var a=i.filter(ne);if(a.length>1||r(i,oe))throw new p(p.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!ie(e,n))throw new p(p.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(ne(t)&&!ie(e,n))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(re(t)){if(r(o,re))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,ne);if(n&&o.indexOf(s)<o.indexOf(n))throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&s)throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function ce(e,t,n){var o=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===X.DOCUMENT_FRAGMENT_NODE){var a=i.filter(ne);if(a.length>1||r(i,oe))throw new p(p.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!ae(e,n))throw new p(p.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(ne(t)&&!ae(e,n))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(re(t)){function l(e){return re(e)&&e!==n}if(r(o,l))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,ne);if(n&&o.indexOf(s)<o.indexOf(n))throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function ue(e,t,r,n){se(e,t,r),e.nodeType===X.DOCUMENT_NODE&&(n||le)(e,t,r);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===M){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var s=r?r.previousSibling:e.lastChild;i.previousSibling=s,a.nextSibling=r,s?s.nextSibling=i:e.firstChild=i,null==r?e.lastChild=a:r.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return ee(e.ownerDocument||e,e,t),t.nodeType==M&&(t.firstChild=t.lastChild=null),t}function de(e){m(e),this._nsMap=Object.create(null)}function pe(e){m(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function fe(e){m(e)}function he(e){m(e)}function me(e){m(e)}function ge(e){m(e)}function we(e){m(e)}function be(e){m(e)}function ye(e){m(e)}function ve(e){m(e)}function xe(e){m(e)}function Ee(e){m(e)}function Se(){}function ke(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var r=[],n=this.nodeType===$&&this.documentElement||this,o=n.prefix,i=n.namespaceURI;if(i&&null==o&&null==(o=n.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return Ne(this,r,a,t),r.join("")}function _e(e,t,r){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===c.XML||o===c.XMLNS)return!1;for(var i=r.length;i--;){var a=r[i];if(a.prefix===n)return a.namespace!==o}return!0}function Ie(e,t,r,n){if(n&&!h.QName_exact.test(t))throw new p('The attribute name "'+t+'" is not a valid XML QName',f.InvalidStateError);e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,Z),'"')}function Ne(e,t,r,n){r||(r=[]);var o=n.nodeFilter,i=n.requireWellFormed,l=n.splitCDATASections,u="html"===(e.nodeType===$?e:e.ownerDocument).type;Q(e,{ns:r},{enter:function(e,r){var d=r.ns;if(o){if(!(e=o(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case k:var m=e.attributes,g=m.length,w=e.tagName,b=w;if(!u&&!e.prefix&&e.namespaceURI){for(var y,v=0;v<m.length;v++)if("xmlns"===m.item(v).name){y=m.item(v).value;break}if(!y)for(var x=d.length-1;x>=0;x--){if(""===(E=d[x]).prefix&&E.namespace===e.namespaceURI){y=E.namespace;break}}if(y!==e.namespaceURI)for(x=d.length-1;x>=0;x--){var E;if((E=d[x]).namespace===e.namespaceURI){E.prefix&&(b=E.prefix+":"+w);break}}}if(i&&!h.QName_exact.test(b))throw new p('The element name "'+b+'" is not a valid XML QName',f.InvalidStateError);t.push("<",b);for(var S=d.slice(),C=0;C<g;C++){"xmlns"==(O=m.item(C)).prefix?S.push({prefix:O.localName,namespace:O.value}):"xmlns"==O.nodeName&&S.push({prefix:"",namespace:O.value})}for(C=0;C<g;C++){var O;if(_e(O=m.item(C),0,S)){var P=O.prefix||"",F=O.namespaceURI;Ie(t,P?"xmlns:"+P:"xmlns",F,i),S.push({prefix:P,namespace:F})}var L=o?o(O):O;L&&("string"==typeof L?t.push(L):Ie(t,L.name,L.value,i))}if(w===b&&_e(e,0,S)){var B=e.prefix||"";F=e.namespaceURI;Ie(t,B?"xmlns:"+B:"xmlns",F,i),S.push({prefix:B,namespace:F})}var U=!e.firstChild;if(U&&(u||e.namespaceURI===c.HTML)&&(U=s(w)),U)return t.push("/>"),null;if(t.push(">"),u&&a(w)){for(var z=e.firstChild;z;)z.data?t.push(z.data):Ne(z,t,S.slice(),n),z=z.nextSibling;return t.push("</",b,">"),null}return{ns:S,tag:b};case $:case M:if(i&&e.nodeType===$&&null==e.documentElement)throw new p("The Document has no documentElement",f.InvalidStateError);return{ns:d};case _:return Ie(t,e.name,e.value,i),null;case I:if(i&&h.InvalidChar.test(e.data))throw new p("The Text node data contains characters outside the XML Char production",f.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,Z)),null;case N:if(i&&-1!==e.data.indexOf("]]>"))throw new p('The CDATASection data contains "]]>"',f.InvalidStateError);return l?t.push(h.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),h.CDATA_END):t.push(h.CDATA_START,e.data,h.CDATA_END),null;case R:if(i){if(h.InvalidChar.test(e.data))throw new p("The comment node data contains characters outside the XML Char production",f.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new p('The comment node data contains "--" or ends with "-"',f.InvalidStateError)}return t.push(h.COMMENT_START,e.data,h.COMMENT_END),null;case D:var j=e.publicId,q=e.systemId;if(i){if(!h.Name_exact.test(e.name))throw new p('The doctype name "'+e.name+'" is not a valid XML Name',f.InvalidStateError);if(j&&!h.PubidLiteral_match.test(j))throw new p("DocumentType publicId is not a valid PubidLiteral",f.InvalidStateError);if(q&&"."!==q&&!h.SystemLiteral_match.test(q))throw new p("DocumentType systemId is not a valid SystemLiteral",f.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new p('DocumentType internalSubset contains "]>"',f.InvalidStateError)}return t.push(h.DOCTYPE_DECL_START," ",e.name),j?(t.push(" ",h.PUBLIC," ",j),q&&"."!==q&&t.push(" ",q)):q&&"."!==q&&t.push(" ",h.SYSTEM," ",q),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case A:if(i){if(!h.NCName_exact.test(e.target)||"xml"===e.target.toLowerCase())throw new p('The processing instruction target "'+e.target+'" is not a valid XML NCName or is reserved',f.InvalidStateError);if(h.InvalidChar.test(e.data))throw new p("The ProcessingInstruction data contains characters outside the XML Char production",f.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new p('The ProcessingInstruction data contains "?>"',f.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case T:if(i&&!h.Name_exact.test(e.nodeName))throw new p('The entity reference name "'+e.nodeName+'" is not a valid XML Name',f.InvalidStateError);return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,r){r&&r.tag&&t.push("</",r.tag,">")}})}function Te(e,t,r){var n;return Q(t,null,{enter:function(t,i){var a=new t.constructor(u);for(var s in t)if(o(t,s)){var l=t[s];"object"!=typeof l&&l!=a[s]&&(a[s]=l)}t.childNodes&&(a.childNodes=new B),a.ownerDocument=e;var c=r;switch(a.nodeType){case k:var d=t.attributes,p=a.attributes=new j,f=d.length;p._ownerElement=a;for(var h=0;h<f;h++)a.setAttributeNode(Te(e,d.item(h),!0));break;case _:c=!0}return null!==i?i.appendChild(a):n=a,c?a:null}}),n}function Ce(e,t,r){e[t]=r}function Ae(e){for(var t=[],r=e.firstChild;r;)r.nodeType===k&&t.push(r),r=r.nextSibling;return t}B.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var r=[],n=0;n<this.length;n++)Ne(this[n],r,null,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},B.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},U.prototype.item=function(e){return z(this),this[e]||null},E(U,B),j.prototype={length:0,item:B.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new p(p.INUSE_ATTRIBUTE_ERR);var r,n,o,i,a=(r=this,n=e.namespaceURI,o=e.localName,(i=H(r,n,!1))&&i[o]||null);return a===e?e:(W(this._ownerElement,this,e,a),a)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new p(p.NOT_FOUND_ERR,e);return V(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new p(p.NOT_FOUND_ERR,e?e+" : "+t:t);return V(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},j.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},G.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=l.XML_APPLICATION;e===c.HTML?n=l.XML_XHTML_APPLICATION:e===c.SVG&&(n=l.XML_SVG_IMAGE);var o=new K(u,{contentType:n});if(o.implementation=this,o.childNodes=new B,o.doctype=r||null,r&&o.appendChild(r),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,r,n){y(e);var o=new we(u);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=r||"",o.internalSubset=n||"",o.childNodes=new B,o},createHTMLDocument:function(e){var t=new K(u,{contentType:l.HTML});if(t.implementation=this,t.childNodes=new B,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),n.appendChild(o)}r.appendChild(t.createElement("body"))}return t}},X.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var r=t.pop(),n=r.node,o=r.other;if(n.nodeType!==o.nodeType)return!1;switch(n.nodeType){case n.DOCUMENT_TYPE_NODE:if(n.name!==o.name)return!1;if(n.publicId!==o.publicId)return!1;if(n.systemId!==o.systemId)return!1;break;case n.ELEMENT_NODE:if(n.namespaceURI!==o.namespaceURI)return!1;if(n.prefix!==o.prefix)return!1;if(n.localName!==o.localName)return!1;if(n.attributes.length!==o.attributes.length)return!1;for(var i=0;i<n.attributes.length;i++){var a=n.attributes.item(i),s=o.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case n.ATTRIBUTE_NODE:if(n.namespaceURI!==o.namespaceURI)return!1;if(n.localName!==o.localName)return!1;if(n.value!==o.value)return!1;break;case n.PROCESSING_INSTRUCTION_NODE:if(n.target!==o.target||n.data!==o.data)return!1;break;case n.TEXT_NODE:case n.CDATA_SECTION_NODE:case n.COMMENT_NODE:if(n.data!==o.data)return!1}if(n.childNodes.length!==o.childNodes.length)return!1;for(i=n.childNodes.length-1;i>=0;i--)t.push({node:n.childNodes[i],other:o.childNodes[i]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return ue(this,e,t)},replaceChild:function(e,t){ue(this,e,t,ce),t&&this.removeChild(t)},removeChild:function(e){return te(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Te(this.ownerDocument||this,this,e)},normalize:function(){Q(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;if(null!==r&&r.nodeType===I&&t.nodeType===I){for(var n=[],o=r;null!==o&&o.nodeType===I;)n.push(o.data),o=o.nextSibling;for(var i=t.nextSibling;i!==o;){var a=i.nextSibling;i.parentNode=null,i.previousSibling=null,i.nextSibling=null,i=a}t.nextSibling=o,null!==o?o.previousSibling=t:e.lastChild=t,t.appendData(n.join("")),ee(e.ownerDocument,e),t=o}else t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(o(r,n)&&r[n]===e)return n;t=t.nodeType==_?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&o(r,e))return r[e];t=t.nodeType==_?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,o=null;if(t instanceof pe&&(t=(n=t).ownerElement),r instanceof pe&&(r=(o=r).ownerElement,n&&t&&r===t))for(var i,a=0;i=r.attributes[a];a++){if(i===n)return P.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+P.DOCUMENT_POSITION_PRECEDING;if(i===o)return P.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+P.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return P.DOCUMENT_POSITION_DISCONNECTED+P.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(L(r.ownerDocument)>L(t.ownerDocument)?P.DOCUMENT_POSITION_FOLLOWING:P.DOCUMENT_POSITION_PRECEDING);if(o&&t===r)return P.DOCUMENT_POSITION_CONTAINS+P.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return P.DOCUMENT_POSITION_CONTAINED_BY+P.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!o&&l===r)return P.DOCUMENT_POSITION_CONTAINED_BY+P.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return P.DOCUMENT_POSITION_CONTAINS+P.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=F(s,c);for(var p in d.childNodes){var f=d.childNodes[p];if(f===r)return P.DOCUMENT_POSITION_FOLLOWING;if(f===t)return P.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(f)>=0)return P.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(f)>=0)return P.DOCUMENT_POSITION_PRECEDING}return 0}},x(S,X),x(S,X.prototype),x(P,X),x(P,X.prototype),Q.STOP=Symbol("walkDOM.STOP"),Q.ENTER=0,Q.EXIT=1,K.prototype={implementation:null,nodeName:"#document",nodeType:$,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===M){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return ue(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===k&&(this.documentElement=e),e},removeChild:function(e){var t=te(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){ue(this,e,t,ce),e.ownerDocument=this,t&&this.removeChild(t),ne(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,r){var n;return Q(t,null,{enter:function(t,o){var i=t.cloneNode(!1);return i.ownerDocument=e,i.parentNode=null,null===o?n=i:o.appendChild(i),t.nodeType===_||r?i:null}}),n}(this,e,t)},getElementById:function(e){var t=null;return Y(this.documentElement,function(r){if(r.nodeType==k&&r.getAttribute("id")==e)return t=r,!0}),t},createElement:function(e){var t=new de(u);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),n(this.contentType)&&(t.namespaceURI=c.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new B,(t.attributes=new j)._ownerElement=t,t},createDocumentFragment:function(){var e=new xe(u);return e.ownerDocument=this,e.childNodes=new B,e},createTextNode:function(e){var t=new he(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createComment:function(e){var t=new me(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new p(p.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new ge(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new Ee(u);return r.ownerDocument=this,r.childNodes=new B,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!h.QName_exact.test(e))throw new p(p.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new pe(u);return t.ownerDocument=this,t.childNodes=new B,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!h.Name_exact.test(e))throw new p(p.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new p("document is an html document",f.NotSupportedError);var t=new ve(u);return t.ownerDocument=this,t.childNodes=new B,t.nodeName=e,t},createElementNS:function(e,t){var r=v(e,t),n=new de(u),o=n.attributes=new j;return n.childNodes=new B,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],o._ownerElement=n,n},createAttributeNS:function(e,t){var r=v(e,t),n=new pe(u);return n.ownerDocument=this,n.childNodes=new B,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},E(K,X),de.prototype={nodeType:k,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===c.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=v(e,t)[2],o=this.getAttributeNodeNS(e,n);o?o.value=o.nodeValue=""+r:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+r,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=b(e);return new U(this,function(r){var n=[];return t.length>0&&Y(r,function(o){if(o!==r&&o.nodeType===k){var i=o.getAttribute("class");if(i){var a=e===i;if(!a){var s=b(i);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&n.push(o)}}var l}),n})},getElementsByTagName:function(e){var t="html"===(this.nodeType===$?this:this.ownerDocument).type,r=e.toLowerCase();return new U(this,function(n){var o=[];return Y(n,function(i){i!==n&&i.nodeType===k&&("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===c.HTML?r:e))&&o.push(i)}),o})},getElementsByTagNameNS:function(e,t){return new U(this,function(r){var n=[];return Y(r,function(o){o===r||o.nodeType!==k||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||n.push(o)}),n})}},K.prototype.getElementsByClassName=de.prototype.getElementsByClassName,K.prototype.getElementsByTagName=de.prototype.getElementsByTagName,K.prototype.getElementsByTagNameNS=de.prototype.getElementsByTagNameNS,E(de,X),pe.prototype.nodeType=_,E(pe,X),fe.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},E(fe,X),he.prototype={nodeName:"#text",nodeType:I,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},E(he,fe),me.prototype={nodeName:"#comment",nodeType:R},E(me,fe),ge.prototype={nodeName:"#cdata-section",nodeType:N},E(ge,he),we.prototype.nodeType=D,E(we,X),be.prototype.nodeType=O,E(be,X),ye.prototype.nodeType=C,E(ye,X),ve.prototype.nodeType=T,E(ve,X),xe.prototype.nodeName="#document-fragment",xe.prototype.nodeType=M,E(xe,X),Ee.prototype.nodeType=A,E(Ee,fe),Se.prototype.serializeToString=function(e,t){return ke.call(e,t)},X.prototype.toString=ke;try{Object.defineProperty&&(Object.defineProperty(U.prototype,"length",{get:function(){return z(this),this.$$length}}),Object.defineProperty(X.prototype,"textContent",{get:function(){if(this.nodeType===k||this.nodeType===M){var e=[];return Q(this,null,{enter:function(t){return t.nodeType===k||t.nodeType===M||(t.nodeType===A||t.nodeType===R?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case k:case M:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(fe.prototype,"data",{get:function(){return null!=this._data?this._data:""},set:function(e){this._data=e,this.length="string"==typeof e?e.length:0}}),Object.defineProperty(fe.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"children",{get:function(){return new U(this,Ae)}}),Object.defineProperty(K.prototype,"children",{get:function(){return new U(this,Ae)}}),Object.defineProperty(xe.prototype,"children",{get:function(){return new U(this,Ae)}}),Ce=function(e,t,r){e["$$"+t]=r})}catch(Re){}e._updateLiveList=z,e.Attr=pe,e.CDATASection=ge,e.CharacterData=fe,e.Comment=me,e.Document=K,e.DocumentFragment=xe,e.DocumentType=we,e.DOMImplementation=G,e.Element=de,e.Entity=ye,e.EntityReference=ve,e.LiveNodeList=U,e.NamedNodeMap=j,e.Node=X,e.NodeList=B,e.Notation=be,e.Text=he,e.ProcessingInstruction=Ee,e.walkDOM=Q,e.XMLSerializer=Se}),zt=/* @__PURE__ */n(e=>{var t=Ft().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES}),jt=/* @__PURE__ */n(e=>{var t=Ft(),r=Bt(),n=Lt(),o=t.isHTMLEscapableRawTextElement,i=t.isHTMLMimeType,a=t.isHTMLRawTextElement,s=t.hasOwn,l=t.NAMESPACE,c=n.ParseError,u=n.DOMException;function d(){}d.prototype={parse:function(e,n,o){var a=this.domBuilder;a.startDocument(),function(e,t){for(var r in e)s(e,r)&&(t[r]=e[r])}(n,n=Object.create(null)),function(e,n,o,a,l){var d=i(a.mimeType);e.indexOf(r.UNICODE_REPLACEMENT_CHARACTER)>=0&&l.warning("Unicode replacement character detected, source encoding issues?");function w(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function x(e){var t=";"===e[e.length-1]?e:e+";";if(!d&&t!==e)return l.error("EntityRef: expecting ;"),e;var n=r.Reference.exec(t);if(!n||n[0].length!==t.length)return l.error("entity not matching Reference production: "+e),e;var i=t.slice(1,-1);return s(o,i)?o[i]:"#"===i.charAt(0)?w(parseInt(i.substring(1).replace("x","0x"))):(l.error("entity not found:"+e),e)}function E(t){if(t>A){var r=e.substring(A,t).replace(p,x);I&&N(A),a.characters(r,0,t-A),A=t}}var S=0,k=0,_=/\r\n?|\n|$/g,I=a.locator;function N(t,r){for(;t>=k&&(r=_.exec(e));)S=k,k=r.index+r[0].length,I.lineNumber++;I.columnNumber=t-S+1}var T=[{currentNSMap:n}],C=[],A=0;for(;;){try{var R=e.indexOf("<",A);if(R<0){if(!d&&C.length>0)return l.fatalError("unclosed xml tag(s): "+C.join(", "));if(!e.substring(A).match(/^\s*$/)){var $=a.doc,D=$.createTextNode(e.substring(A));if($.documentElement)return l.error("Extra content at the end of the document");$.appendChild(D),a.currentElement=D}return}if(R>A){var M=e.substring(A,R);d||0!==C.length||(M=M.replace(new RegExp(r.S_OPT.source,"g"),""))&&l.error("Unexpected content outside root element: '"+M+"'"),E(R)}switch(e.charAt(R+1)){case"/":var O=e.indexOf(">",R+2),P=e.substring(R+2,O>0?O:void 0);if(!P)return l.fatalError("end tag name missing");var F=r.reg("^",r.QName_group,r.S_OPT,"$"),L=O>0&&F.exec(P);if(!L){var B=O>0&&r.reg("^",r.QName_group).exec(P);if(d&&B)l.warning('end tag name contains invalid trailing characters: "'+P+'"'),L=B;else{if(!B||!new RegExp(F.source,F.flags+"m").test(P))return l.fatalError('end tag name contains invalid characters: "'+P+'"');l.error('end tag name is followed by a line break and trailing content: "'+P+'"'),L=B}}if(!a.currentElement&&!a.doc.documentElement)return;var U=C[C.length-1]||a.currentElement.tagName||a.doc.documentElement.tagName||"";if(U!==L[1]){var z=L[1].toLowerCase();if(!d||U.toLowerCase()!==z)return l.fatalError('Opening and ending tag mismatch: "'+U+'" != "'+P+'"')}var j=T.pop();C.pop();var q=j.localNSMap;if(a.endElement(j.uri,j.localName,U),q)for(var H in q)s(q,H)&&a.endPrefixMapping(H);O++;break;case"?":I&&N(R),O=y(e,R,a,l);break;case"!":I&&N(R),O=b(e,R,a,l,d);break;default:I&&N(R);var W=new v,V=T[T.length-1].currentNSMap,G=(O=h(e,R,W,V,x,l,d),W.length);if(W.closed||(d&&t.isHTMLVoidElement(W.tagName)?W.closed=!0:C.push(W.tagName)),I&&G){for(var X=f(I,{}),Z=0;Z<G;Z++){var Y=W[Z];N(Y.offset),Y.locator=f(I,{})}a.locator=X,m(W,a,V)&&T.push(W),a.locator=I}else m(W,a,V)&&T.push(W);d&&!W.closed?O=g(e,O,W.tagName,x,a):O++}}catch(Q){if(Q instanceof c)throw Q;if(Q instanceof u)return l.fatalError("Error constructing the DOM: "+Q.name+": "+Q.message,Q);l.error("element parse error: "+Q),O=-1}O>A?A=O:E(Math.max(R,A)+1)}}(e,n,o,a,this.errorHandler),a.endDocument()}};var p=/&#?\w+;?/g;function f(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function h(e,t,r,n,o,i,a){function l(e,t,n){return s(r.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(p,o),n)}for(var c,u=++t,d=0;;){var f=e.charAt(u);if(0===d&&"<"===f)throw new Error("unexpected < in tag name: "+e.slice(t,u));switch(f){case"=":if(1===d)c=e.slice(t,u),d=3;else{if(2!==d)throw new Error("attribute equal must after attrName");d=3}break;case"'":case'"':if(3===d||1===d){if(1===d&&(i.warning('attribute value must after "="'),c=e.slice(t,u)),t=u+1,!((u=e.indexOf(f,t))>0))throw new Error("attribute value no end '"+f+"' match");l(c,h=e.slice(t,u),t-1),d=5}else{if(4!=d)throw new Error('attribute value must after "="');l(c,h=e.slice(t,u),t),i.warning('attribute "'+c+'" missed start quot('+f+")!!"),t=u+1,d=5}break;case"/":switch(d){case 0:r.setTagName(e.slice(t,u));case 5:case 6:case 7:d=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==d&&r.setTagName(e.slice(t,u)),u;case">":switch(d){case 0:r.setTagName(e.slice(t,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,u)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===d&&(h=c),4==d?(i.warning('attribute "'+h+'" missed quot(")!'),l(c,h,t)):(a||i.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),l(h,h,t));break;case 3:if(!a)return i.fatalError("AttValue: ' or \" expected")}return u;case"":f=" ";default:if(f<=" ")switch(d){case 0:r.setTagName(e.slice(t,u)),d=6;break;case 1:c=e.slice(t,u),d=2;break;case 4:var h=e.slice(t,u);i.warning('attribute "'+h+'" missed quot(")!!'),l(c,h,t);case 5:d=6}else switch(d){case 2:a||i.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),l(c,c,t),t=u,d=1;break;case 5:i.warning('attribute space is required"'+c+'"!!');case 6:d=1,t=u;break;case 3:d=4,t=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function m(e,t,r){for(var n=e.tagName,o=null,i=e.length;i--;){var a=e[i],c=a.qName,u=a.value;if((h=c.indexOf(":"))>0)var d=a.prefix=c.slice(0,h),p=c.slice(h+1),f="xmlns"===d&&p;else p=c,d=null,f="xmlns"===c&&"";a.localName=p,!1!==f&&(null==o&&(o=Object.create(null),r=Object.create(r)),r[f]=o[f]=u,a.uri=l.XMLNS,t.startPrefixMapping(f,u))}for(i=e.length;i--;)(a=e[i]).prefix&&("xml"===a.prefix&&(a.uri=l.XML),"xmlns"!==a.prefix&&(a.uri=r[a.prefix]));var h;(h=n.indexOf(":"))>0?(d=e.prefix=n.slice(0,h),p=e.localName=n.slice(h+1)):(d=null,p=e.localName=n);var m=e.uri=r[d||""];if(t.startElement(m,p,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(m,p,n),o)for(d in o)s(o,d)&&t.endPrefixMapping(d)}function g(e,t,r,n,i){var s=o(r);if(s||a(r)){var l=new RegExp("</"+r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+">","ig");l.lastIndex=t;var c=l.exec(e),u=c?c.index:-1;if(u<0)return t+1;var d=e.substring(t+1,u);return s&&(d=d.replace(p,n)),i.characters(d,0,d.length),u}return t+1}function w(e,t){var n=t;function o(t){return t=t||0,e.charAt(n+t)}function i(e){n+=e=e||1}function a(){return e.substring(n)}return{char:o,getIndex:function(){return n},getMatch:function(e){var t=r.reg("^",e).exec(a());return t?(i(t[0].length),t[0]):null},getSource:function(){return e},skip:i,skipBlanks:function(){for(var t=0;n<e.length;){var r=o();if(" "!==r&&"\n"!==r&&"\t"!==r&&"\r"!==r)return t;t++,i()}return-1},substringFromIndex:a,substringStartsWith:function(t){return e.substring(n,n+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(n,n+t.length).toUpperCase()===t.toUpperCase()}}}function b(e,t,n,o,i){var a=w(e,t);switch(i?a.char(2).toUpperCase():a.char(2)){case"-":var s=a.getMatch(r.Comment);return s?(n.comment(s,r.COMMENT_START.length,s.length-r.COMMENT_START.length-r.COMMENT_END.length),a.getIndex()):o.fatalError("comment is not well-formed at position "+a.getIndex());case"[":var l=a.getMatch(r.CDSect);return l?i||n.currentElement?(n.startCDATA(),n.characters(l,r.CDATA_START.length,l.length-r.CDATA_START.length-r.CDATA_END.length),n.endCDATA(),a.getIndex()):o.fatalError("CDATA outside of element"):o.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return o.fatalError("Doctype not allowed inside or after documentElement at position "+a.getIndex());if(i?!a.substringStartsWithCaseInsensitive(r.DOCTYPE_DECL_START):!a.substringStartsWith(r.DOCTYPE_DECL_START))return o.fatalError("Expected "+r.DOCTYPE_DECL_START+" at position "+a.getIndex());if(a.skip(r.DOCTYPE_DECL_START.length),a.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.DOCTYPE_DECL_START+" at position "+a.getIndex());var c={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(c.name=a.getMatch(r.Name),!c.name)return o.fatalError("doctype name missing or contains unexpected characters at position "+a.getIndex());if(i&&"html"!==c.name.toLowerCase()&&o.warning("Unexpected DOCTYPE in HTML document at position "+a.getIndex()),a.skipBlanks(),a.substringStartsWith(r.PUBLIC)||a.substringStartsWith(r.SYSTEM)){var u=r.ExternalID_match.exec(a.substringFromIndex());if(!u)return o.fatalError("doctype external id is not well-formed at position "+a.getIndex());void 0!==u.groups.SystemLiteralOnly?c.systemId=u.groups.SystemLiteralOnly:(c.systemId=u.groups.SystemLiteral,c.publicId=u.groups.PubidLiteral),a.skip(u[0].length)}else if(i&&a.substringStartsWithCaseInsensitive(r.SYSTEM)){if(a.skip(r.SYSTEM.length),a.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.SYSTEM+" at position "+a.getIndex());if(c.systemId=a.getMatch(r.ABOUT_LEGACY_COMPAT_SystemLiteral),!c.systemId)return o.fatalError("Expected "+r.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+r.SYSTEM+" at position "+a.getIndex())}return i&&c.systemId&&!r.ABOUT_LEGACY_COMPAT_SystemLiteral.test(c.systemId)&&o.warning("Unexpected doctype.systemId in HTML document at position "+a.getIndex()),i||(a.skipBlanks(),c.internalSubset=function(e,t){function n(e,t){var n=r.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var o=e.getSource();if("["===e.char()){e.skip(1);for(var i=e.getIndex();e.getIndex()<o.length;){if(e.skipBlanks(),"]"===e.char()){var a=o.substring(i,e.getIndex());return e.skip(1),a}var s=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?s=e.getMatch(r.elementdecl):"N"===e.char(3)&&(s=e.getMatch(r.EntityDecl));break;case"A":s=e.getMatch(r.AttlistDecl);break;case"N":s=e.getMatch(r.NotationDecl);break;case"-":s=e.getMatch(r.Comment)}else if("<"===e.char()&&"?"===e.char(1))s=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");s=e.getMatch(r.PEReference)}if(!s)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(a,o)),a.skipBlanks(),">"!==a.char()?o.fatalError("doctype not terminated with > at position "+a.getIndex()):(a.skip(1),n.startDTD(c.name,c.publicId,c.systemId,c.internalSubset),n.endDTD(),a.getIndex());default:return o.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function y(e,t,n,o){var i=e.substring(t).match(r.PI);if(!i)return o.fatalError("Invalid processing instruction starting at position "+t);if("xml"===i[1].toLowerCase()){if(t>0)return o.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!r.XMLDecl.test(e.substring(t)))return o.fatalError("xml declaration is not well-formed")}return n.processingInstruction(i[1],i[2]),t+i[0].length}function v(){this.attributeNames=Object.create(null)}v.prototype={setTagName:function(e){if(!r.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!r.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},e.XMLReader=d,e.parseUtils=w,e.parseDoctypeCommentOrCData=b}),qt=/* @__PURE__ */n(e=>{var t=Ft(),r=Ut(),n=Lt(),o=zt(),i=jt(),a=r.DOMImplementation,s=t.hasDefaultHTMLNamespace,l=t.isHTMLMimeType,c=t.isValidMimeType,u=t.MIME_TYPE,d=t.NAMESPACE,p=n.ParseError,f=i.XMLReader;function h(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function m(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||t.assign,this.domHandler=e.domHandler||g,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||h,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function g(e){var t=e||{};this.mimeType=t.mimeType||u.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function w(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function b(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}m.prototype.parseFromString=function(e,r){if(!c(r))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+r+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),i=o.XML_ENTITIES,a=n[""]||null;s(r)?(i=o.HTML_ENTITIES,a=d.HTML):r===u.XML_SVG_IMAGE&&(a=d.SVG),n[""]=a,n.xml=n.xml||d.XML;var l=new this.domHandler({mimeType:r,defaultNamespace:a,onError:this.onError}),p=this.locator?{}:void 0;this.locator&&l.setDocumentLocator(p);var h=new f;return h.errorHandler=l,h.domBuilder=l,t.isHTMLMimeType(r)||"string"==typeof e||h.errorHandler.fatalError("source is not a string"),h.parse(this.normalizeLineEndings(String(e)),n,i),l.doc.documentElement||h.errorHandler.fatalError("missing root element"),l.doc},g.prototype={startDocument:function(){var e=new a;this.doc=l(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var o=this.doc,i=o.createElementNS(e,r||t),a=n.length;y(this,i),this.currentElement=i,this.locator&&w(this.locator,i);for(var s=0;s<a;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),o.createAttributeNS(e,r));this.locator&&w(n.getLocator(s),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&w(this.locator,r),y(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=b.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&w(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=b.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&w(this.locator,n),y(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,r,n);this.locator&&w(this.locator,i),y(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(r){throw new p("Reporting "+e+' "'+t+'" caused '+r,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e,t){throw this.reportError("fatalError",e),new p(e,this.locator,t)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){g.prototype[e]=function(){return null}}),e.__DOMHandler=g,e.DOMParser=m,e.normalizeLineEndings=h,e.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},e.onWarningStopParsing=function(){throw"onWarningStopParsing"}}),Ht=/* @__PURE__ */n(e=>{var t=Ft();e.assign=t.assign,e.hasDefaultHTMLNamespace=t.hasDefaultHTMLNamespace,e.isHTMLMimeType=t.isHTMLMimeType,e.isValidMimeType=t.isValidMimeType,e.MIME_TYPE=t.MIME_TYPE,e.NAMESPACE=t.NAMESPACE;var r=Lt();e.DOMException=r.DOMException,e.DOMExceptionName=r.DOMExceptionName,e.ExceptionCode=r.ExceptionCode,e.ParseError=r.ParseError;var n=Ut();e.Attr=n.Attr,e.CDATASection=n.CDATASection,e.CharacterData=n.CharacterData,e.Comment=n.Comment,e.Document=n.Document,e.DocumentFragment=n.DocumentFragment,e.DocumentType=n.DocumentType,e.DOMImplementation=n.DOMImplementation,e.Element=n.Element,e.Entity=n.Entity,e.EntityReference=n.EntityReference,e.LiveNodeList=n.LiveNodeList,e.NamedNodeMap=n.NamedNodeMap,e.Node=n.Node,e.NodeList=n.NodeList,e.Notation=n.Notation,e.ProcessingInstruction=n.ProcessingInstruction,e.Text=n.Text,e.XMLSerializer=n.XMLSerializer;var o=qt();e.DOMParser=o.DOMParser,e.normalizeLineEndings=o.normalizeLineEndings,e.onErrorStopParsing=o.onErrorStopParsing,e.onWarningStopParsing=o.onWarningStopParsing}),Wt=Ht(),Vt={supportedNamespaces:/* @__PURE__ */new Set};function Gt(e,...t){return{supportedNamespaces:/* @__PURE__ */new Set([...e.supportedNamespaces,...t])}}function Xt(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function Zt(e){const t=e.parentNode;return 1===t?.nodeType?t:null}function Yt(e,t){let r=e;const n=t?`xmlns:${t}`:"xmlns";for(;r;){const e=r.getAttribute(n);if(e)return e;r=Zt(r)}}function Qt(e,t){return e.getAttributeNS("http://schemas.openxmlformats.org/markup-compatibility/2006",t)??e.getAttribute(`mc:${t}`)??void 0}function Kt(e,t){const r=[];let n=e;for(;n;)r.push(n),n=Zt(n);const o=[];for(const i of r.reverse()){const e=Qt(i,t);if(e)for(const t of e.split(/\s+/).filter(Boolean))o.push({element:i,token:t})}return o}function Jt(e,t){const r=t.indexOf(":");if(r<1||r===t.length-1)return;const n=t.slice(0,r),o=t.slice(r+1),i=Yt(e,n);return i?`${i}\0${o}`:void 0}function er(e,t){const r=e.getAttribute("Requires")?.trim();return!!r&&r.split(/\s+/).every(r=>{const n=Yt(e,r);return Boolean(n&&t.supportedNamespaces.has(n))})}function tr(e,t){let r;for(const n of Xt(e))if("http://schemas.openxmlformats.org/markup-compatibility/2006"===n.namespaceURI){if("Choice"===n.localName&&er(n,t))return n;"Fallback"===n.localName&&(r=n)}return r}function rr(e,t=Vt){const r=[],n=function(e){const t=/* @__PURE__ */new Set;for(const r of Kt(e,"Ignorable")){const e=Yt(r.element,r.token);e&&t.add(e)}return t}(e),o=function(e){const t=/* @__PURE__ */new Set;for(const r of Kt(e,"ProcessContent")){const e=Jt(r.element,r.token);e&&t.add(e)}return t}(e);for(const i of Xt(e)){if("http://schemas.openxmlformats.org/markup-compatibility/2006"===i.namespaceURI&&"AlternateContent"===i.localName){const e=tr(i,t);e&&r.push(...rr(e,t));continue}const e=i.namespaceURI??"";if(n.has(e)&&!t.supportedNamespaces.has(e)){const n=`${e}\0${i.localName??i.tagName}`;o.has(n)&&r.push(...rr(i,t));continue}r.push(i)}return r}var nr="http://schemas.openxmlformats.org/wordprocessingml/2006/main",or="http://schemas.openxmlformats.org/drawingml/2006/main",ir="http://schemas.openxmlformats.org/officeDocument/2006/relationships",ar="http://schemas.microsoft.com/office/word/2010/wordml",sr="http://schemas.microsoft.com/office/word/2012/wordml",lr=Gt(Vt,ar),cr=Gt(Vt,sr);function ur(e,t,r){return e?rr(e).filter(e=>e.namespaceURI===t&&e.localName===r):[]}var dr=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function pr(e){return dr.includes(e)?e:void 0}function fr(e,t,r){return ur(e,t,r)[0]??null}function hr(e,t){return e?rr(e,lr).find(e=>"http://schemas.microsoft.com/office/word/2010/wordml"===e.namespaceURI&&e.localName===t)??null:null}function mr(e,t){return e?rr(e,cr).find(e=>"http://schemas.microsoft.com/office/word/2012/wordml"===e.namespaceURI&&e.localName===t)??null:null}function gr(e,t){return e?e.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main",t)??e.getAttributeNS("http://schemas.microsoft.com/office/word/2010/wordml",t)??e.getAttributeNS("http://schemas.microsoft.com/office/word/2012/wordml",t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(`w15:${t}`)??e.getAttribute(t):null}function wr(e,t){for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if(1===n?.nodeType){const e=n;if(e.localName===t)return e;const r=wr(e,t);if(r)return r}}return null}function br(e){const t={},r=e.attributes;for(let n=0;n<r.length;n+=1){const e=r[n];if(!e)continue;const o=e.namespaceURI;if(!o||"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===o||"http://schemas.openxmlformats.org/markup-compatibility/2006"===o)continue;if("xmlns"===e.prefix||"xmlns"===e.localName)continue;const i=e.localName??e.name;if(!i)continue;t[e.prefix?`${e.prefix}:${i}`:i]=e.value}return Object.keys(t).length>0?t:void 0}function yr(e){return"1"===e||"true"===e||"on"===e}function vr(e,t){const r=fr(e,nr,t);if(!r)return;const n=gr(r,"val");return null==n||"0"!==n&&"false"!==n&&"off"!==n&&yr(n)}function xr(e,t){return gr(fr(e,"http://schemas.openxmlformats.org/wordprocessingml/2006/main",t),"val")??void 0}async function Er(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}var Sr="http://schemas.openxmlformats.org/wordprocessingml/2006/main",kr="http://schemas.openxmlformats.org/package/2006/relationships",_r="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Ir="http://schemas.microsoft.com/office/word/2010/wordml";function Nr(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Tr(e,t){return Number.isFinite(e)?Math.max(0,Math.round(e/96*S)):t}function Cr(e){return null!=e&&Number.isFinite(e)?Math.round(e/96*S):null}function Ar(e){return null!=e&&Number.isFinite(e)?Math.max(0,Math.round(20*e)):null}function Rr(e,t="000000"){return xt(e)??t}function $r(e){return`<w:shd w:val="clear" w:color="auto" w:fill="${Rr(e,"FFFFFF")}"/>`}function Dr(e){return e.length>0&&e.length<=128&&/^[\p{L}][\p{L}\p{N}_ .-]*$/u.test(e)}function Mr(e){return e.length<=4096&&!/[\u0000-\u0008\u000b\u000c\u000e-\u001f]/u.test(e)}function Or(e,t,r){const n=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes[o];if(1===i?.nodeType){const e=i;e.namespaceURI===t&&e.localName===r&&n.push(e)}}return n}function Pr(e){if(!(!e||e.length>1048576||/<!DOCTYPE|<!ENTITY/i.test(e)))try{const t=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;if(!t||"http://schemas.openxmlformats.org/wordprocessingml/2006/main"!==t.namespaceURI||"settings"!==t.localName)return;const r=Or(t,nr,"docVars");if(1!==r.length)return;const n=Or(r[0],nr,"docVar");if(n.length>256)return;const o=/* @__PURE__ */new Map;for(const e of n){const t=e.getAttributeNS(nr,"name"),r=e.getAttributeNS(nr,"val");if(null===t||null===r||!Dr(t)||!Mr(r))continue;const n=t.toLowerCase();"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(o.has(n)?o.set(n,null):o.set(n,{name:t,value:r}))}const i=Object.create(null);for(const e of o.values())e&&(i[e.name]=e.value);return Object.keys(i).length?i:void 0}catch{return}}function Fr(e,t){if(!e||!Dr(t))return;const r=t.toLowerCase();let n;for(const[o,i]of Object.entries(e))if(o.toLowerCase()===r){if(void 0!==n||"string"!=typeof i||!Mr(i))return;n=i}return n}var Lr=/* @__PURE__ */n((e,t)=>{!function(r){"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=r()}(function(){return function e(t,n,o){function i(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof r&&r;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=/* @__PURE__ */new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){return i(t[s][1][e]||e)},d,d.exports,e,t,n,o)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,r){var n=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,o,a,s,l,c,u=[],d=0,p=e.length,f=p,h="string"!==n.getTypeOf(e);d<e.length;)f=p-d,o=h?(t=e[d++],r=d<p?e[d++]:0,d<p?e[d++]:0):(t=e.charCodeAt(d++),r=d<p?e.charCodeAt(d++):0,d<p?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|o>>6:64,c=2<f?63&o:64,u.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,a,s,l,c=0,u=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var p,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&f--,e.charAt(e.length-2)===i.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=o.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,r=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=i.indexOf(e.charAt(c++))),p[u++]=t,64!==s&&(p[u++]=r),64!==l&&(p[u++]=n);return p}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new o(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=o,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=o,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function o(e,t,r,o,a,u){var d,p,f=e.file,h=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(f.name)),w=i.transformTo("string",s.utf8encode(f.name)),b=f.comment,y=i.transformTo("string",u(b)),v=i.transformTo("string",s.utf8encode(b)),x=w.length!==f.name.length,E=v.length!==b.length,S="",k="",_="",I=f.dir,N=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!x&&!E||(C|=2048);var A=0,R=0;I&&(A|=16),"UNIX"===a?(R=798,A|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,I)):(R=20,A|=function(e){return 63&(e||0)}(f.dosPermissions)),d=N.getUTCHours(),d<<=6,d|=N.getUTCMinutes(),d<<=5,d|=N.getUTCSeconds()/2,p=N.getUTCFullYear()-1980,p<<=4,p|=N.getUTCMonth()+1,p<<=5,p|=N.getUTCDate(),x&&(k=n(1,1)+n(l(g),4)+w,S+="up"+n(k.length,2)+k),E&&(_=n(1,1)+n(l(y),4)+v,S+="uc"+n(_.length,2)+_);var $="";return $+="\n\0",$+=n(C,2),$+=h.magic,$+=n(d,2),$+=n(p,2),$+=n(T.crc32,4),$+=n(T.compressedSize,4),$+=n(T.uncompressedSize,4),$+=n(g.length,2),$+=n(S.length,2),{fileRecord:c.LOCAL_FILE_HEADER+$+g+S,dirRecord:c.CENTRAL_FILE_HEADER+n(R,2)+$+n(y.length,2)+"\0\0\0\0"+n(A,4)+n(o,4)+g+S+y}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=o(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,o=function(e,t,r,o,a){var s=i.transformTo("string",a(o));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),o=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new o(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,r){a++;var o=function(e,t){var r=e||t,o=n[r];if(!o)throw new Error(r+" is not a valid compression method !");return o}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(e){i.error(e)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.2",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(/* @__PURE__ */new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(/* @__PURE__ */new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new a(t);return r.load(e),r}).then(function(e){var r=[o.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(c(n[i]));return o.Promise.all(r)}).then(function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,c=n.resolve(s.fileNameStr);r.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(r.comment=o.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,o),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function o(e,t,r){n.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),r&&r(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}e("../utils").inherits(o,n),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,o=i.getTypeOf(t),s=i.extend(r||{},l);s.date=s.date||/* @__PURE__ */new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=h(e))&&g.call(this,n,!0);var d="string"===o&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",o="string");var w;w=t instanceof c||t instanceof a?t:p.isNode&&p.isStream(t)?new f(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new u(e,w,s);this.files[e]=b}var o=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),p=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),h=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function w(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(w(e)){var o=e;return this.filter(function(e,t){return!t.dir&&o.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(w(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new a("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function o(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,n),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&o===i[3]},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){if(this.checkOffset(e),0===e/* @__PURE__ */)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),o=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),o=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),o=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}u.prototype={accumulate:function(e){return function(e,t){return new l.Promise(function(r,o){var i=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,r){i.push(e),t&&t(r)}).on("error",function(e){i=[],o(e)}).on("end",function(){try{r(function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,o=null,i=0;for(r=0;r<t.length;r++)i+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(i),r=0;r<t.length;r++)o.set(t[r],n),n+=t[r].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),c))}catch(e){o(e)}i=[]}).resume()})}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=/* @__PURE__ */new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(n),r.blob=0===o.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),o=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return o.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,o,i,a=e.length,l=new Array(2*a);for(t=r=0;t<a;)if((o=e[t++])<128)l[r++]=o;else if(4<(i=s[o]))l[r++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[r++]=65533:o<65536?l[r++]=o:(o-=65536,l[r++]=55296|o>>10&1023,l[r++]=56320|1023&o)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(o.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var t=n.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;a!==t.length&&(o.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(t),o.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],o=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+r,i)))),o+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,/* @__PURE__ */new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),o=!0;if("uint8array"===n?o=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var p={};p.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},p.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},p.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return i.newBufferFrom(e)}},p.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){return t=t||"",e?(r.checkSupport(e),p[r.getTypeOf(t)][e](t)):t},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var o=t[n];"."===o||""===o&&0!==n&&n!==t.length-1||(".."===o?r.pop():r.push(o))}return r.join("/")},r.getTypeOf=function(e){if("string"==typeof e)return"string";var t=Object.prototype.toString.call(e);return"[object Array]"===t?"array":n.nodebuffer&&i.isBuffer(e)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===t?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===t?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,i,s,c){return a.Promise.resolve(t).then(function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))?void 0!==Blob.prototype.arrayBuffer?t.arrayBuffer():"undefined"!=typeof FileReader?new a.Promise(function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(t)}):a.Promise.reject(/* @__PURE__ */new Error(e+" is a Blob, but we have no way of reading it.")):t}).then(function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=o.decode(t):i&&!0!==s&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(/* @__PURE__ */new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),o=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?/* @__PURE__ */new Error("Corrupted zip: can't find end of central directory"):/* @__PURE__ */new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),o=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(o)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new o(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(n){return i.reject(e,n)}n===e?i.reject(e,/* @__PURE__ */new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)})}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function o(t){r||(r=!0,i.resolve(e,t))}var a=h(function(){t(o,n)});"error"===a.status&&n(a.value)}function h(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(o);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=h(p,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(/* @__PURE__ */new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,c=new this(o);++l<r;)u(e[l],l);return c;function u(e,o){t.resolve(e).then(function(e){a[o]=e,++s!==r||n||(n=!0,i.resolve(c,a))},function(e){n||(n=!0,i.reject(c,e))})}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(/* @__PURE__ */new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,a=-1,s=new this(o);++a<t;)n=e[a],this.resolve(n).then(function(e){r||(r=!0,i.resolve(s,e))},function(e){r||(r=!0,i.reject(s,e))});return s}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary;if(0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(a[r]);this._dict_set=!0}}function u(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(e,t){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(s.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=u,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function p(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,p,f=this.strm,h=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new o.Buf8(h),f.next_out=0,f.avail_out=h),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(p="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(f.output,f.next_out),c=f.next_out-l,d=i.buf2string(f.output,l),f.next_out=c,f.avail_out=h-c,c&&o.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=p,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){for(var t,r,n,o,i=t=0,a=e.length;i<a;i++)t+=e[i].length;for(o=new Uint8Array(t),i=r=0,a=e.length;i<a;i++)n=e[i],o.set(n,r),r+=n.length;return o}},i={arraySet:function(e,t,r,n,o){for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,/* @__PURE__ */new Uint8Array(1))}catch(e){i=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),i=a=0;a<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r<o;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,o,i,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((o=e[r++])<128)c[n++]=o;else if(4<(i=a[o]))c[n++]=65533,r+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&r<s;)o=o<<6|63&e[r++],i--;1<i?c[n++]=65533:o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|1023&o)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var o=65535&e,i=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;i=i+(o=o+t[n++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,o){var i=n,a=o+r;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=-2,u=258,d=262,p=113;function f(e,t){return e.msg=l[t],t}function h(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function w(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function y(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function v(e,t){var r,n,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,p=e.w_mask,f=e.prev,h=e.strstart+u,m=c[i+a-1],g=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===g&&c[r+a-1]===m&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<h);if(n=u-(h-i),i=h-u,a<n){if(e.match_start=t,s<=(a=n))break;m=c[i+a-1],g=c[i+a]}}}while((t=f[t&p])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function x(e){var t,r,n,i,l,c,u,p,f,h,m=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(o.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);i+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,p=e.strstart+e.lookahead,h=void 0,(f=i)<(h=c.avail_in)&&(h=f),r=0===h?0:(c.avail_in-=h,o.arraySet(u,c.input,c.next_in,h,p),1===c.state.wrap?c.adler=a(c.adler,u,h,p):2===c.state.wrap&&(c.adler=s(c.adler,u,h,p)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function E(e,t){for(var r,n;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=v(e,r)),e.match_length>=3)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function S(e,t){for(var r,n,o;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=v(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-3,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(w(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&w(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function k(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):f(e,c)}function N(e){var t=I(e);return 0===t&&function(e){e.window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function T(e,t,r,n,i,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||9<i||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return f(e,c);8===n&&(n=9);var l=new _;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,N(e)}n=[new k(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,w(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(w(e,!1),e.strm.avail_out),1)}),new k(4,4,8,4,E),new k(4,5,16,8,E),new k(4,6,32,32,E),new k(4,4,16,16,S),new k(8,16,32,32,S),new k(8,16,128,128,S),new k(8,32,128,256,S),new k(32,128,258,1024,S),new k(32,258,258,4096,S)],r.deflateInit=function(e,t){return T(e,t,8,15,8,0)},r.deflateInit2=T,r.deflateReset=N,r.deflateResetKeep=I,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,o,a,l;if(!e||!e.state||5<t||t<0)return e?f(e,c):c;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return f(e,0===e.avail_out?-5:c);if(o.strm=e,r=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,b(o,31),b(o,139),b(o,8),o.gzhead?(b(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),b(o,255&o.gzhead.time),b(o,o.gzhead.time>>8&255),b(o,o.gzhead.time>>16&255),b(o,o.gzhead.time>>24&255),b(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),b(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(b(o,255&o.gzhead.extra.length),b(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(b(o,0),b(o,0),b(o,0),b(o,0),b(o,0),b(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),b(o,3),o.status=p);else{var d=8+(o.w_bits-8<<4)<<8;d|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=p,y(o,d),0!==o.strstart&&(y(o,e.adler>>>16),y(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending!==o.pending_buf_size));)b(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,b(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),g(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,b(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&g(e),o.pending+2<=o.pending_buf_size&&(b(o,255&e.adler),b(o,e.adler>>8&255),e.adler=0,o.status=p)):o.status=p),0!==o.pending){if(g(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&h(t)<=h(r)&&4!==t)return f(e,-5);if(666===o.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var v=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var r,n,o,a,s=e.window;;){if(e.lookahead<=u){if(x(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[o=e.strstart-1])===s[++o]&&n===s[++o]&&n===s[++o]){a=e.strstart+u;do{}while(n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&o<a);e.match_length=u-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(o,t):n[o.level].func(o,t);if(3!==v&&4!==v||(o.status=666),1===v||3===v)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===v&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(m(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),g(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(b(o,255&e.adler),b(o,e.adler>>8&255),b(o,e.adler>>16&255),b(o,e.adler>>24&255),b(o,255&e.total_in),b(o,e.total_in>>8&255),b(o,e.total_in>>16&255),b(o,e.total_in>>24&255)):(y(o,e.adler>>>16),y(o,65535&e.adler)),g(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==p&&666!==t?f(e,c):(e.state=null,t===p?f(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,n,i,s,l,u,d,p,f=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new o.Buf8(r.w_size),o.arraySet(p,t,f-r.w_size,r.w_size,0),t=p,f=r.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=f,e.next_in=0,e.input=t,x(r);r.lookahead>=3;){for(n=r.strstart,i=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=2,x(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,o,i,a,s,l,c,u,d,p,f,h,m,g,w,b,y,v,x,E,S,k=e.state,_=e.next_in,I=e.input;r=_+(e.avail_in-5),n=e.next_out,S=e.output,o=n-(t-e.avail_out),i=n+(e.avail_out-257),a=k.dmax,s=k.wsize,l=k.whave,c=k.wnext,u=k.window,d=k.hold,p=k.bits,f=k.lencode,h=k.distcode,m=(1<<k.lenbits)-1,g=(1<<k.distbits)-1;e:do{p<15&&(d+=I[_++]<<p,p+=8,d+=I[_++]<<p,p+=8),w=f[d&m];t:for(;;){if(d>>>=b=w>>>24,p-=b,0==(b=w>>>16&255))S[n++]=65535&w;else{if(!(16&b)){if(!(64&b)){w=f[(65535&w)+(d&(1<<b)-1)];continue t}if(32&b){k.mode=12;break e}e.msg="invalid literal/length code",k.mode=30;break e}y=65535&w,(b&=15)&&(p<b&&(d+=I[_++]<<p,p+=8),y+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=I[_++]<<p,p+=8,d+=I[_++]<<p,p+=8),w=h[d&g];r:for(;;){if(d>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(!(64&b)){w=h[(65535&w)+(d&(1<<b)-1)];continue r}e.msg="invalid distance code",k.mode=30;break e}if(v=65535&w,p<(b&=15)&&(d+=I[_++]<<p,(p+=8)<b&&(d+=I[_++]<<p,p+=8)),a<(v+=d&(1<<b)-1)){e.msg="invalid distance too far back",k.mode=30;break e}if(d>>>=b,p-=b,(b=n-o)<v){if(l<(b=v-b)&&k.sane){e.msg="invalid distance too far back",k.mode=30;break e}if(E=u,(x=0)===c){if(x+=s-b,b<y){for(y-=b;S[n++]=u[x++],--b;);x=n-v,E=S}}else if(c<b){if(x+=s+c-b,(b-=c)<y){for(y-=b;S[n++]=u[x++],--b;);if(x=0,c<y){for(y-=b=c;S[n++]=u[x++],--b;);x=n-v,E=S}}}else if(x+=c-b,b<y){for(y-=b;S[n++]=u[x++],--b;);x=n-v,E=S}for(;2<y;)S[n++]=E[x++],S[n++]=E[x++],S[n++]=E[x++],y-=3;y&&(S[n++]=E[x++],1<y&&(S[n++]=E[x++]))}else{for(x=n-v;S[n++]=S[x++],S[n++]=S[x++],S[n++]=S[x++],2<(y-=3););y&&(S[n++]=S[x++],1<y&&(S[n++]=S[x++]))}break}}break}}while(_<r&&n<i);_-=y=p>>3,d&=(1<<(p-=y<<3))-1,e.next_in=_,e.next_out=n,e.avail_in=_<r?r-_+5:5-(_-r),e.avail_out=n<i?i-n+257:257-(n-i),k.hold=d,k.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):l}function h(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=f(e,t))&&(e.state=null),r):l}var m,g,w=!0;function b(e){if(w){var t;for(m=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),w=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function y(e,t,r,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),o>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),n.arraySet(a.window,t,r-o,i,a.wnext),(o-=i)?(n.arraySet(a.window,t,r-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}r.inflateReset=p,r.inflateReset2=f,r.inflateResetKeep=d,r.inflateInit=function(e){return h(e,15)},r.inflateInit2=h,r.inflate=function(e,t){var r,u,d,p,f,h,m,g,w,v,x,E,S,k,_,I,N,T,C,A,R,$,D,M,O=0,P=new n.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,w=r.bits,v=h,x=m,$=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(2&r.wrap&&35615===g){P[r.check=0]=255&g,P[1]=g>>>8&255,r.check=i(r.check,P,2,0),w=g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,R=8+(15&(g>>>=4)),0===r.wbits)r.wbits=R;else if(R>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<R,e.adler=r.check=1,r.mode=512&g?10:12,w=g=0;break;case 2:for(;w<16;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(P[0]=255&g,P[1]=g>>>8&255,r.check=i(r.check,P,2,0)),w=g=0,r.mode=3;case 3:for(;w<32;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.head&&(r.head.time=g),512&r.flags&&(P[0]=255&g,P[1]=g>>>8&255,P[2]=g>>>16&255,P[3]=g>>>24&255,r.check=i(r.check,P,4,0)),w=g=0,r.mode=4;case 4:for(;w<16;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(P[0]=255&g,P[1]=g>>>8&255,r.check=i(r.check,P,2,0)),w=g=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(P[0]=255&g,P[1]=g>>>8&255,r.check=i(r.check,P,2,0)),w=g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(h<(E=r.length)&&(E=h),E&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,p,E,R)),512&r.flags&&(r.check=i(r.check,u,E,p)),h-=E,p+=E,r.length-=E),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break e;for(E=0;R=u[p+E++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R)),R&&E<h;);if(512&r.flags&&(r.check=i(r.check,u,E,p)),h-=E,p+=E,R)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break e;for(E=0;R=u[p+E++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R)),R&&E<h;);if(512&r.flags&&(r.check=i(r.check,u,E,p)),h-=E,p+=E,R)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}w=g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}e.adler=r.check=c(g),w=g=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=m,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=w,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}switch(r.last=1&g,w-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6!==t)break;g>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,w-=2;break;case 14:for(g>>>=7&w,w-=7&w;w<32;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,w=g=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(E=r.length){if(h<E&&(E=h),m<E&&(E=m),0===E)break e;n.arraySet(d,u,p,E,f),h-=E,p+=E,m-=E,f+=E,r.length-=E;break}r.mode=12;break;case 17:for(;w<14;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(r.nlen=257+(31&g),g>>>=5,w-=5,r.ndist=1+(31&g),g>>>=5,w-=5,r.ncode=4+(15&g),g>>>=4,w-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.lens[F[r.have++]]=7&g,g>>>=3,w-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D={bits:r.lenbits},$=s(0,r.lens,0,19,r.lencode,0,r.work,D),r.lenbits=D.bits,$){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(O=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,N=65535&O,!((_=O>>>24)<=w);){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(N<16)g>>>=_,w-=_,r.lens[r.have++]=N;else{if(16===N){for(M=_+2;w<M;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(g>>>=_,w-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}R=r.lens[r.have-1],E=3+(3&g),g>>>=2,w-=2}else if(17===N){for(M=_+3;w<M;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}w-=_,R=0,E=3+(7&(g>>>=_)),g>>>=3,w-=3}else{for(M=_+7;w<M;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}w-=_,R=0,E=11+(127&(g>>>=_)),g>>>=7,w-=7}if(r.have+E>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;E--;)r.lens[r.have++]=R}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,D={bits:r.lenbits},$=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,D),r.lenbits=D.bits,$){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,D={bits:r.distbits},$=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,D),r.distbits=D.bits,$){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=h&&258<=m){e.next_out=f,e.avail_out=m,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=w,a(e,x),f=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(O=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,N=65535&O,!((_=O>>>24)<=w);){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(I&&!(240&I)){for(T=_,C=I,A=N;I=(O=r.lencode[A+((g&(1<<T+C)-1)>>T)])>>>16&255,N=65535&O,!(T+(_=O>>>24)<=w);){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}g>>>=T,w-=T,r.back+=T}if(g>>>=_,w-=_,r.back+=_,r.length=N,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(M=r.extra;w<M;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(O=r.distcode[g&(1<<r.distbits)-1])>>>16&255,N=65535&O,!((_=O>>>24)<=w);){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(!(240&I)){for(T=_,C=I,A=N;I=(O=r.distcode[A+((g&(1<<T+C)-1)>>T)])>>>16&255,N=65535&O,!(T+(_=O>>>24)<=w);){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}g>>>=T,w-=T,r.back+=T}if(g>>>=_,w-=_,r.back+=_,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=N,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(M=r.extra;w<M;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(E=x-m,r.offset>E){if((E=r.offset-E)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S=E>r.wnext?(E-=r.wnext,r.wsize-E):r.wnext-E,E>r.length&&(E=r.length),k=r.window}else k=d,S=f-r.offset,E=r.length;for(m<E&&(E=m),m-=E,r.length-=E;d[f++]=k[S++],--E;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[f++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===h)break e;h--,g|=u[p++]<<w,w+=8}if(x-=m,e.total_out+=x,r.total+=x,x&&(e.adler=r.check=r.flags?i(r.check,d,x,f-x):o(r.check,d,x,f-x)),x=m,(r.flags?g:c(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}w=g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===h)break e;h--,g+=u[p++]<<w,w+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}w=g=0}r.mode=29;case 29:$=1;break e;case 30:$=-3;break e;case 31:return-4;default:return l}return e.next_out=f,e.avail_out=m,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=w,(r.wsize||x!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&y(e,e.output,e.next_out,x-e.avail_out)?(r.mode=31,-4):(v-=e.avail_in,x-=e.avail_out,e.total_in+=v,e.total_out+=x,r.total+=x,r.wrap&&x&&(e.adler=r.check=r.flags?i(r.check,d,x,e.next_out-x):o(r.check,d,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==v&&0===x||4===t)&&0===$&&($=-5),$)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):l},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&o(1,t,n,0)!==r.check?-3:y(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,u,d,p){var f,h,m,g,w,b,y,v,x,E=p.bits,S=0,k=0,_=0,I=0,N=0,T=0,C=0,A=0,R=0,$=0,D=null,M=0,O=new n.Buf16(16),P=new n.Buf16(16),F=null,L=0;for(S=0;S<=15;S++)O[S]=0;for(k=0;k<l;k++)O[t[r+k]]++;for(N=E,I=15;1<=I&&0===O[I];I--);if(I<N&&(N=I),0===I)return c[u++]=20971520,c[u++]=20971520,p.bits=1,0;for(_=1;_<I&&0===O[_];_++);for(N<_&&(N=_),S=A=1;S<=15;S++)if(A<<=1,(A-=O[S])<0)return-1;if(0<A&&(0===e||1!==I))return-1;for(P[1]=0,S=1;S<15;S++)P[S+1]=P[S]+O[S];for(k=0;k<l;k++)0!==t[r+k]&&(d[P[t[r+k]]++]=k);if(b=0===e?(D=F=d,19):1===e?(D=o,M-=257,F=i,L-=257,256):(D=a,F=s,-1),S=_,w=u,C=k=$=0,m=-1,g=(R=1<<(T=N))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(y=S-C,x=d[k]<b?(v=0,d[k]):d[k]>b?(v=F[L+d[k]],D[M+d[k]]):(v=96,0),f=1<<S-C,_=h=1<<T;c[w+($>>C)+(h-=f)]=y<<24|v<<16|x,0!==h;);for(f=1<<S-1;$&f;)f>>=1;if(0!==f?($&=f-1,$+=f):$=0,k++,0==--O[S]){if(S===I)break;S=t[r+d[k]]}if(N<S&&($&g)!==m){for(0===C&&(C=N),w+=_,A=1<<(T=S-C);T+C<I&&!((A-=O[T+C])<=0);)T++,A<<=1;if(R+=1<<T,1===e&&852<R||2===e&&592<R)return 1;c[m=$&g]=N<<24|T<<16|w-u}}return 0!==$&&(c[w+$]=S-C<<24|4194304),p.bits=N,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common");function o(e){for(var t=e.length;0<=--t;)e[t]=0}var i=256,a=286,s=30,l=15,c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);o(f);var h=new Array(60);o(h);var m=new Array(512);o(m);var g=new Array(256);o(g);var w=new Array(29);o(w);var b,y,v,x=new Array(s);function E(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function S(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?m[e]:m[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function N(e,t,r){I(e,r[2*t],r[2*t+1])}function T(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function C(e,t,r){var n,o,i=new Array(16),a=0;for(n=1;n<=l;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=T(i[s]++,s))}}function A(e){for(var t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function R(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $(e,t,r,n){var o=2*t,i=2*r;return e[o]<e[i]||e[o]===e[i]&&n[t]<=n[r]}function D(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&$(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!$(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function M(e,t,r){var n,o,a,s,l=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],o=e.pending_buf[e.l_buf+l],l++,0===n?N(e,o,t):(N(e,(a=g[o])+i+1,t),0!==(s=c[a])&&I(e,o-=w[a],s),N(e,a=k(--n),r),0!==(s=u[a])&&I(e,n-=x[a],s)),l<e.last_lit;);N(e,256,t)}function O(e,t){var r,n,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<c;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)D(e,i,r);for(o=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,D(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,a,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,p=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=l;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(i=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(i=m,g++),c[2*n+1]=i,u<n||(e.bl_count[i]++,a=0,h<=n&&(a=f[n-h]),s=c[2*n],e.opt_len+=s*(i+a),p&&(e.static_len+=s*(d[2*n+1]+a)));if(0!==g){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(i=m;0!==i;i--)for(n=e.bl_count[i];0!==n;)u<(o=e.heap[--r])||(c[2*o+1]!==i&&(e.opt_len+=(i-c[2*o+1])*c[2*o],c[2*o+1]=i),n--)}}(e,t),C(i,u,e.bl_count)}function P(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=a,a=t[2*(n+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function F(e,t,r){var n,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=t[2*(n+1)+1],!(++s<l&&o===a)){if(s<c)for(;N(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(N(e,o,e.bl_tree),s--),N(e,16,e.bl_tree),I(e,s-3,2)):s<=10?(N(e,17,e.bl_tree),I(e,s-3,3)):(N(e,18,e.bl_tree),I(e,s-11,7));i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}o(x);var L=!1;function B(e,t,r,o){I(e,0+(o?1:0),3),function(e,t,r){R(e),_(e,r),_(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){L||(function(){var e,t,r,n,o,i=new Array(16);for(n=r=0;n<28;n++)for(w[n]=r,e=0;e<1<<c[n];e++)g[r++]=n;for(g[r-1]=n,n=o=0;n<16;n++)for(x[n]=o,e=0;e<1<<u[n];e++)m[o++]=n;for(o>>=7;n<s;n++)for(x[n]=o<<7,e=0;e<1<<u[n]-7;e++)m[256+o++]=n;for(t=0;t<=l;t++)i[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,i[8]++;for(;e<=255;)f[2*e+1]=9,e++,i[9]++;for(;e<=279;)f[2*e+1]=7,e++,i[7]++;for(;e<=287;)f[2*e+1]=8,e++,i[8]++;for(C(f,287,i),e=0;e<s;e++)h[2*e+1]=5,h[2*e]=T(e,5);b=new E(f,c,257,a,l),y=new E(h,u,0,s,l),v=new E(new Array(0),d,0,19,7)}(),L=!0),e.l_desc=new S(e.dyn_ltree,b),e.d_desc=new S(e.dyn_dtree,y),e.bl_desc=new S(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,A(e)},r._tr_stored_block=B,r._tr_flush_block=function(e,t,r,n){var o,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<i;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),O(e,e.l_desc),O(e,e.d_desc),s=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),O(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*p[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==t?B(e,t,r,n):4===e.strategy||a===o?(I(e,2+(n?1:0),3),M(e,f,h)):(I(e,4+(n?1:0),3),function(e,t,r,n){var o;for(I(e,t-257,5),I(e,r-1,5),I(e,n-4,4),o=0;o<n;o++)I(e,e.bl_tree[2*p[o]+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),M(e,e.dyn_ltree,e.dyn_dtree)),A(e),n&&R(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+i+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){I(e,2,3),N(e,256,f),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,n,o,i=1,a={},s=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,t="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){d(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){n.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];return a[i]={callback:e,args:r},t(i),i++},c.clearImmediate=u}function u(e){delete a[e]}function d(e){if(s)setTimeout(d,0,e);else{var t=a[e];if(t){s=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{u(e),s=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}),Br=/* @__PURE__ */e(Lr(),1),Ur="[Content_Types].xml",zr="_rels/.rels",jr="http://schemas.openxmlformats.org/package/2006/relationships",qr="http://schemas.openxmlformats.org/package/2006/content-types";function Hr(e){return e.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function Wr(e){return e.replaceAll("\\","/").replace(/^\/+/,"")}function Vr(e,t){const r=t.replaceAll("\\","/"),n=e?.includes("/")?e.slice(0,e.lastIndexOf("/")+1):"",o=r.startsWith("/")?r.slice(1):`${n}${r}`,i=[];for(const a of o.split("/"))if(a&&"."!==a)if(".."!==a)i.push(a);else{if(0===i.length)return null;i.pop()}return i.join("/")}function Gr(e){if("_rels/.rels"===e)return null;const t=e.lastIndexOf("/_rels/");return t>=0&&e.endsWith(".rels")?`${e.slice(0,t)}/${e.slice(t+7).slice(0,-5)}`:e.startsWith("_rels/")&&e.endsWith(".rels")?e.slice(6,-5):void 0}function Xr(e){const t={defaults:{},overrides:{}};if(!e)return t;const r=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;if(!r)return t;for(let n=0;n<r.childNodes.length;n+=1){const e=r.childNodes[n];if(e?.nodeType!==e.ELEMENT_NODE)continue;const o=e;if("Default"===o.localName){const e=o.getAttribute("Extension")?.toLowerCase(),r=o.getAttribute("ContentType");e&&r&&(t.defaults[e]=r)}else if("Override"===o.localName){const e=o.getAttribute("PartName"),r=o.getAttribute("ContentType");e&&r&&(t.overrides[Wr(e)]=r)}}return t}function Zr(e){const t=Object.entries(e.defaults).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`<Default Extension="${Hr(e)}" ContentType="${Hr(t)}"/>`).join(""),r=Object.entries(e.overrides).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`<Override PartName="/${Hr(Wr(e))}" ContentType="${Hr(t)}"/>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="${qr}">${t}${r}</Types>`}function Yr(e){if(!e)return[];const t=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;if(!t)return[];const r=[];for(let n=0;n<t.childNodes.length;n+=1){const e=t.childNodes[n];if(e?.nodeType!==e.ELEMENT_NODE)continue;const o=e;if("Relationship"!==o.localName)continue;const i=o.getAttribute("Id"),a=o.getAttribute("Type"),s=o.getAttribute("Target");if(!i||!a||!s)continue;const l=o.getAttribute("TargetMode");r.push({id:i,type:a,target:s,targetMode:"External"===l?"External":"Internal"})}return r}function Qr(e){const t=e.map(e=>{const t="External"===e.targetMode?' TargetMode="External"':"";return`<Relationship Id="${Hr(e.id)}" Type="${Hr(e.type)}" Target="${Hr(e.target)}"${t}/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${jr}">${t}</Relationships>`}function Kr(e,t,r){return t.map(t=>{if("External"===t.targetMode)return{...t,resolvedTarget:void 0};const n=Vr(e,t.target);return n?{...t,resolvedTarget:n}:(r?.(t),t)})}var Jr="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",en="http://purl.org/dc/terms/",tn="http://www.w3.org/2001/XMLSchema-instance",rn="http://www.w3.org/2000/xmlns/",nn="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",on="docProps/core.xml",an=[{key:"created",ns:en,name:"created",prefix:"dcterms"},{key:"saved",ns:en,name:"modified",prefix:"dcterms"},{key:"printed",ns:Jr,name:"lastPrinted",prefix:"cp"}];function sn(e){const t=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(Z|[+-]\d{2}:\d{2})$/.exec(e.trim());if(!t)return;const[,r,n,o,i,a,s,l]=t,c=Number(r),u=Number(n),d=Number(o),p=[31,c%4!=0||c%100==0&&c%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][u-1];if(c<1||!p||d<1||d>p||Number(i)>23||Number(a)>59||Number(s)>59)return;if("Z"!==l&&(Number(l.slice(1,3))>14||Number(l.slice(4))>59||14===Number(l.slice(1,3))&&0!==Number(l.slice(4))))return;const f=Date.parse(e.trim());return Number.isFinite(f)?f:void 0}function ln(e){if(!(e.length>1048576||/<!DOCTYPE|<!ENTITY/i.test(e)))try{const t=(new Wt.DOMParser).parseFromString(e,"application/xml"),r=t.documentElement;return"http://schemas.openxmlformats.org/package/2006/metadata/core-properties"===r?.namespaceURI&&"coreProperties"===r.localName?{doc:t,root:r}:void 0}catch{return}}function cn(e,t,r){const n=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes[o];if(1===i?.nodeType){const e=i;e.namespaceURI===t&&e.localName===r&&n.push(e)}}return n}async function un(e){return Kr(null,Yr(await(e.file(zr)?.async("string"))))}function dn(e){const t=e.filter(e=>e.type===nn);if(1===t.length&&"External"!==t[0].targetMode)return t[0].resolvedTarget}async function pn(e){const t=dn(await un(e));if(!t)return;const r=await(e.file(t)?.async("string"));return r?function(e){const t=ln(e);if(!t)return;const r={};for(const{key:n,ns:o,name:i}of an){const e=cn(t.root,o,i);if(1!==e.length)continue;const a=e[0];if(Array.from({length:a.childNodes.length},(e,t)=>a.childNodes[t]).some(e=>1===e?.nodeType))continue;const s=sn(a.textContent??"");void 0!==s&&(r[n]=s)}return Object.keys(r).length?r:void 0}(r):void 0}function fn(e){if(void 0!==e&&Number.isSafeInteger(e))try{const t=new Date(e).toISOString();return sn(t)===e?t:void 0}catch{return}}async function hn(e,t){if(!t.coreTimestamps)return e;const r=await Br.default.loadAsync(e);return await async function(e,t){if(!t||!an.some(e=>void 0!==fn(t[e.key])))return!1;const r=await un(e),n=r.filter(e=>e.type===nn);let o=dn(r);const i=!n.length;if(i){if(e.file(on))return!1;o=on}if(!o||!i&&!e.file(o))return!1;const a=ln((i?void 0:await(e.file(o)?.async("string")))??'<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dcterms="'+en+'" xmlns:xsi="'+tn+'"/>');if(!a)return!1;const{doc:s,root:l}=a;let c=!1;for(const{key:u,ns:d,name:p,prefix:f}of an){const e=fn(t[u]);if(!e)continue;const r=cn(l,d,p);if(r.length>1)continue;const n=r[0];if(n&&sn(n.textContent??"")===t[u])continue;if(n&&Array.from({length:n.childNodes.length},(e,t)=>n.childNodes[t]).some(e=>1===e?.nodeType))continue;const o=n??s.createElementNS(d,f+":"+p);n||(o.setAttributeNS(rn,"xmlns:"+f,d),l.appendChild(o)),o.textContent=e,d===en&&(o.setAttributeNS(rn,"xmlns:dcterms",en),o.setAttributeNS(rn,"xmlns:xsi",tn),o.setAttributeNS(tn,"xsi:type","dcterms:W3CDTF")),c=!0}if(!c)return!1;if(e.file(o,(new Wt.XMLSerializer).serializeToString(s)),i){const t=new Set(r.map(e=>e.id));let n="rIdCoreProperties",i=1;for(;t.has(n);)n="rIdCoreProperties"+i++;e.file(zr,Qr([...r,{id:n,type:nn,target:o}]));const a=Xr(await(e.file(Ur)?.async("string")));a.overrides[o]="application/vnd.openxmlformats-package.core-properties+xml",e.file(Ur,Zr(a))}return!0}(r,t.coreTimestamps)?r.generateAsync({type:"arraybuffer"}):e}var mn="http://purl.org/dc/elements/1.1/",gn=Jr,wn="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",bn="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",yn="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",vn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",xn=[{key:"Title",ns:mn,tag:"title",prefix:"dc"},{key:"Subject",ns:mn,tag:"subject",prefix:"dc"},{key:"Author",ns:mn,tag:"creator",prefix:"dc"},{key:"Keywords",ns:gn,tag:"keywords",prefix:"cp"},{key:"Comments",ns:mn,tag:"description",prefix:"dc"},{key:"Category",ns:gn,tag:"category",prefix:"cp"},{key:"LastSavedBy",ns:gn,tag:"lastModifiedBy",prefix:"cp"},{key:"RevisionNumber",ns:gn,tag:"revision",prefix:"cp"},{key:"ContentStatus",ns:gn,tag:"contentStatus",prefix:"cp"}],En=e=>e.length<=4096&&!/[\u0000-\u001f\u007f]/.test(e),Sn=e=>e.length>0&&e.length<=128&&/^[\p{L}][\p{L}\p{N}_ .-]*$/u.test(e)&&!["__proto__","constructor","prototype"].includes(e.toLowerCase()),kn=(e,t,r)=>{const n=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes[o];if(1===i?.nodeType){const e=i;e.namespaceURI===t&&e.localName===r&&n.push(e)}}return n},_n=(e,t,r)=>{if(!(e.length>1048576||/<!DOCTYPE|<!ENTITY/i.test(e)))try{const n=(new Wt.DOMParser).parseFromString(e,"application/xml"),o=n.documentElement;return o?.namespaceURI===t&&o.localName===r?{doc:n,root:o}:void 0}catch{return}},In=e=>{for(let r=0;r<e.childNodes.length;r++)if(1===e.childNodes[r]?.nodeType)return;const t=e.textContent??"";return En(t)?t:void 0},Nn=e=>{if(e.namespaceURI!==bn)return;const t=In(e);if(void 0!==t)switch(e.localName){case"lpwstr":case"lpstr":return t;case"bool":return/^(true|1)$/i.test(t)?"true":/^(false|0)$/i.test(t)?"false":void 0;case"i4":case"int":case"i8":case"ui4":case"ui8":return/^-?(0|[1-9]\d{0,15})$/.test(t)&&Number.isSafeInteger(Number(t))?t:void 0;case"r8":case"r4":return/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d{1,3})?$/.test(t)&&Number.isFinite(Number(t))?t:void 0;default:return}};function Tn(e,t){const r=e.filter(e=>e.type===t);return 1===r.length&&"External"!==r[0]?.targetMode?r[0]?.resolvedTarget:void 0}async function Cn(e){return Kr(null,Yr(await(e.file(zr)?.async("string"))))}async function An(e){const t=await Cn(e),r=Tn(t,yn),n=Tn(t,vn),[o,i]=await Promise.all([r?e.file(r)?.async("string"):void 0,n?e.file(n)?.async("string"):void 0]),a=o?function(e){const t=_n(e,gn,"coreProperties")?.root;if(!t)return;const r=Object.create(null);for(const n of xn){const e=kn(t,n.ns,n.tag);if(1!==e.length)continue;const o=In(e[0]);void 0!==o&&(r[n.key]=o)}return Object.keys(r).length?r:void 0}(o):void 0,s=i?function(e){const t=_n(e,wn,"Properties")?.root;if(!t)return;const r=kn(t,wn,"property");if(r.length>256)return;const n=/* @__PURE__ */new Map,o=/* @__PURE__ */new Set;for(const a of r){const e=a.getAttribute("name"),t=a.getAttribute("pid");if(!e||!Sn(e)||!t||!/^\d{1,9}$/.test(t)||Number(t)<2||o.has(t))continue;o.add(t);const r=[];for(let n=0;n<a.childNodes.length;n++)1===a.childNodes[n]?.nodeType&&r.push(a.childNodes[n]);const i=1===r.length?Nn(r[0]):void 0,s=e.toLowerCase();n.has(s)?n.set(s,null):n.set(s,void 0===i?null:{name:e,value:i})}const i=Object.create(null);for(const a of n.values())a&&(i[a.name]=a.value);return Object.keys(i).length?i:void 0}(i):void 0;return a||s?{...a?{core:a}:{},...s?{custom:s}:{}}:void 0}function Rn(e,t){if(!e||!Sn(t))return;const r=t.toLowerCase();let n,o=0;for(const i of[e.core,e.custom])for(const[e,t]of Object.entries(i??{}))if(e.toLowerCase()===r){if(o++,"string"!=typeof t||!En(t))return;n=t}return 1===o?n:void 0}function $n(e,t){if(!e)return!0;const r=Object.entries(e),n=/* @__PURE__ */new Set;if(r.length>256)return!1;for(const[o,i]of r){const e=o.toLowerCase();if(!Sn(o)||n.has(e)||"string"!=typeof i||!En(i))return!1;if("core"===t&&!xn.some(t=>t.key.toLowerCase()===e))return!1;n.add(e)}return!0}async function Dn(e,t){const r=t.documentProperties;if(!r||!r.core&&!r.custom||!$n(r.core,"core")||!$n(r.custom,"custom"))return e;const n=await Br.default.loadAsync(e),o=await Cn(n),i=function(e,t,r){if(!r||!Object.keys(r).length)return!1;if(Tn(t,yn)||t.some(e=>e.type===yn)||e.file("docProps/core.xml"))return!1;const n=(new Wt.DOMParser).parseFromString('<cp:coreProperties xmlns:cp="'+gn+'" xmlns:dc="http://purl.org/dc/elements/1.1/"/>',"application/xml"),o=n.documentElement;if(!o)return!1;for(const i of xn){const e=Object.entries(r).find(([e])=>e.toLowerCase()===i.key.toLowerCase())?.[1];if(void 0===e)continue;const t=n.createElementNS(i.ns,i.prefix+":"+i.tag);t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i.prefix,i.ns),t.textContent=e,o.appendChild(t)}return e.file("docProps/core.xml",(new Wt.XMLSerializer).serializeToString(n)),!0}(n,o,r.core),a=function(e,t,r){if(!r||!Object.keys(r).length)return!1;if(Tn(t,vn)||t.some(e=>e.type===vn)||e.file("docProps/custom.xml"))return!1;const n=(new Wt.DOMParser).parseFromString('<Properties xmlns="'+wn+'" xmlns:vt="'+bn+'"/>',"application/xml"),o=n.documentElement;if(!o)return!1;let i=2;for(const[a,s]of Object.entries(r)){const e=n.createElementNS(wn,"property");e.setAttribute("name",a),e.setAttribute("pid",String(i++)),e.setAttribute("fmtid","{D5CDD505-2E9C-101B-9397-08002B2CF9AE}");const t=n.createElementNS(bn,"vt:lpwstr");t.textContent=s,e.appendChild(t),o.appendChild(e)}return e.file("docProps/custom.xml",(new Wt.XMLSerializer).serializeToString(n)),!0}(n,o,r.custom);if(!i&&!a)return e;const s=new Set(o.map(e=>e.id)),l=e=>{let t="rId"+e,r=0;for(;s.has(t);)t="rId"+e+ ++r;return s.add(t),t};i&&o.push({id:l("CoreProps"),type:yn,target:"docProps/core.xml"}),a&&o.push({id:l("CustomProps"),type:vn,target:"docProps/custom.xml"}),n.file(zr,Qr(o));const c=Xr(await(n.file(Ur)?.async("string")));return i&&(c.overrides["docProps/core.xml"]="application/vnd.openxmlformats-package.core-properties+xml"),a&&(c.overrides["docProps/custom.xml"]="application/vnd.openxmlformats-officedocument.custom-properties+xml"),n.file(Ur,Zr(c)),n.generateAsync({type:"arraybuffer"})}var Mn=/* @__PURE__ */new Set(["DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE"]),On={DATE:{key:"now",dependency:"clock"},TIME:{key:"now",dependency:"clock"},CREATEDATE:{key:"created",dependency:"created"},SAVEDATE:{key:"saved",dependency:"saved"},PRINTDATE:{key:"printed",dependency:"printed"}},Pn=/* @__PURE__ */new Set(["PAGE","NUMPAGES","SECTION","SECTIONPAGES"]),Fn=/* @__PURE__ */new Set(["REF","PAGEREF"]),Ln={PAGE:{key:"pageNumber",dependency:"page"},NUMPAGES:{key:"totalPages",dependency:"document-pages"},SECTION:{key:"sectionNumber",dependency:"section"},SECTIONPAGES:{key:"sectionPages",dependency:"section-pages"}};function Bn(e){const t=Dt(e);if(t.error||!t.command)return;const r=t.tokens.slice(1);if("DOCPROPERTY"===t.command){if(1!==r.length&&3!==r.length)return;const e=r[0];if(!e||"word"!==e.kind&&"quoted"!==e.kind||e.value.length<1||e.value.length>128||!/^[\p{L}][\p{L}\p{N}_ .-]*$/u.test(e.value))return;if(3===r.length&&("switch"!==r[1]?.kind||"*"!==r[1].value||"word"!==r[2]?.kind||"MERGEFORMAT"!==r[2].value))return;return{type:"DOCPROPERTY",name:e.value}}if("DOCVARIABLE"===t.command){if(1!==r.length||"word"!==r[0]?.kind&&"quoted"!==r[0]?.kind)return;const e=r[0].value;if(e.length<1||e.length>128||!/^[\p{L}][\p{L}\p{N}_ .-]*$/u.test(e))return;return{type:"DOCVARIABLE",name:e}}if("IF"===t.command){if(5!==r.length)return;const[e,t,n,o,i]=r;if(!e||!t||!n||!o||!i||"word"!==e.kind&&"quoted"!==e.kind||"word"!==t.kind||!["=","<>","<",">","<=",">="].includes(t.value)||"word"!==n.kind&&"quoted"!==n.kind||"quoted"!==o.kind||"quoted"!==i.kind||[e,n,o,i].some(e=>e.value.length>4096||/[\r\n\t]/.test(e.value)))return;const a=e=>"quoted"===e.kind||/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/.test(e.value);if(!a(e)||!a(n))return;const s=/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/,l=s.test(e.value)&&s.test(n.value);if(l&&(!Number.isFinite(Number(e.value))||!Number.isFinite(Number(n.value))))return;if(!l&&"="!==t.value&&"<>"!==t.value)return;return{type:"IF",left:e.value,right:n.value,operator:t.value,whenTrue:o.value,whenFalse:i.value,numeric:l}}if("STYLEREF"===t.command){const e=r[0];if(!e||"quoted"!==e.kind&&"word"!==e.kind||!e.value.trim()||e.value.length>128||/[\r\n\t\\]/.test(e.value))return;let t,n=!1;for(const o of r.slice(1)){if("switch"!==o.kind)return;const e=o.value.toLowerCase();if("l"===e){if(n)return;n=!0}else{if("n"!==e&&"p"!==e)return;if(t)return;t="n"===e?"number":"position"}}return t?{type:"STYLEREF",style:e.value,lastOnPage:n,output:t}:{type:"STYLEREF",style:e.value,lastOnPage:n}}if("SEQ"===t.command){const e=r[0];if(!e||"word"!==e.kind||!/^\p{L}[\p{L}\p{N}_]{0,39}$/u.test(e.value))return;const t={type:"SEQ",identifier:e.value.toLowerCase(),operation:"next"},n=/* @__PURE__ */new Set;for(let o=1;o<r.length;o++){const e=r[o];if("switch"!==e.kind)return;const i=e.value.toLowerCase();if(n.has(i))return;if(n.add(i),"n"===i||"c"===i||"r"===i){if(["n","c","r"].filter(e=>n.has(e)).length>1)return;if(t.operation="c"===i?"repeat":"r"===i?"reset":"next","r"===i){const e=r[++o];if("word"!==e?.kind||!/^\d{1,7}$/.test(e.value)||!zn(Number(e.value)))return;t.reset=Number(e.value)}}else if("s"===i){const e=r[++o];if("word"!==e?.kind||!/^[1-9]$/.test(e.value))return;t.headingLevel=Number(e.value)}else{if("*"!==i)return;{const e=r[++o];if("word"!==e?.kind)return;const n="ARABIC"===e.value.toUpperCase()?"decimal":Nt(e.value);if(!n)return;t.format=n}}}if(void 0!==t.headingLevel&&"next"!==t.operation)return;return t}if(Mn.has(t.command)){const e=t.command;if(!r.length)return{type:e,temporal:!0};if(2!==r.length||"switch"!==r[0]?.kind||"@"!==r[0].value||"quoted"!==r[1]?.kind||!Pt(r[1].value))return;return{type:e,temporal:!0,picture:r[1].value}}if(Pn.has(t.command)){const e=t.command;if(0===r.length)return{type:e};if(2!==r.length||"switch"!==r[0]?.kind||"*"!==r[0].value||"word"!==r[1]?.kind)return;const n=Nt(r[1].value);return n?{type:e,format:n}:void 0}if(Fn.has(t.command)){const e=r[0];if(!e||"switch"===e.kind||!e.value)return;const n=2===r.length&&"switch"===r[1]?.kind&&"h"===r[1].value.toLowerCase();if(1!==r.length&&!n)return;const o=t.command;return n?{type:o,bookmark:e.value,hyperlink:!0}:{type:o,bookmark:e.value}}}function Un(e,t,r=[]){return{status:"preserved",text:e,reason:t,dependencies:r}}function zn(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=1&&e<=1e6}function jn(e,t,r,n=!1){if(n)return Un(r,"locked");if("IF_NESTED"===e.type){const n=[{kind:"literal-condition"}],o=e=>{if("literal"===e.kind)return e.value;const r=e.name.toLowerCase();return n.push("document-variable"===e.kind?{kind:"document-variable",name:r}:{kind:"document-property",name:r}),"document-variable"===e.kind?Fr(t.documentVariables,e.name):Rn(t.documentProperties,e.name)},i=o(e.left),a=o(e.right);if(void 0===i||void 0===a||i.length>4096||a.length>4096||/[\r\n\t\u0000-\u001f]/.test(i)||/[\r\n\t\u0000-\u001f]/.test(a))return Un(r,"unresolved",n);const s=/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/,l=s.test(i)&&s.test(a)&&Number.isFinite(Number(i))&&Number.isFinite(Number(a));if(!l&&"="!==e.operator&&"<>"!==e.operator)return Un(r,"unresolved",n);const c=l?Number(i):i,u=l?Number(a):a;let d=!1;switch(e.operator){case"=":d=c===u;break;case"<>":d=c!==u;break;case"<":d="number"==typeof c&&"number"==typeof u&&c<u;break;case">":d="number"==typeof c&&"number"==typeof u&&c>u;break;case"<=":d="number"==typeof c&&"number"==typeof u&&c<=u;break;case">=":d="number"==typeof c&&"number"==typeof u&&c>=u}return{status:"resolved",text:d?e.whenTrue:e.whenFalse,dependencies:n}}if("DOCPROPERTY"===e.type){const n=[{kind:"document-property",name:e.name.toLowerCase()}],o=Rn(t.documentProperties,e.name);return void 0===o?Un(r,"unresolved",n):{status:"resolved",text:o,dependencies:n}}if("DOCVARIABLE"===e.type){const n=[{kind:"document-variable",name:e.name.toLowerCase()}],o=Fr(t.documentVariables,e.name);return void 0===o?Un(r,"unresolved",n):{status:"resolved",text:o,dependencies:n}}if("IF"===e.type){const t=[{kind:"literal-condition"}],r=e.numeric?Number(e.left):e.left,n=e.numeric?Number(e.right):e.right;let o;switch(e.operator){case"=":o=r===n;break;case"<>":o=r!==n;break;case"<":o="number"==typeof r&&"number"==typeof n&&r<n;break;case">":o="number"==typeof r&&"number"==typeof n&&r>n;break;case"<=":o="number"==typeof r&&"number"==typeof n&&r<=n;break;case">=":o="number"==typeof r&&"number"==typeof n&&r>=n}return{status:"resolved",text:o?e.whenTrue:e.whenFalse,dependencies:t}}if("STYLEREF"===e.type){const n=[{kind:"style-text",name:e.style,lastOnPage:e.lastOnPage}],o=t.styleRefText?.(e.style,e.lastOnPage,e.output??"text");return"string"==typeof o&&o.length>0?{status:"resolved",text:o,dependencies:n}:Un(r,"unresolved",n)}if("SEQ"===e.type){const n=[{kind:"sequence",name:e.identifier}];return zn(t.sequenceValue)?{status:"resolved",text:Tt(t.sequenceValue,e.format),dependencies:n}:Un(r,"unresolved",n)}if("temporal"in e){const n=On[e.type],o=[{kind:n.dependency}],i=t.temporal?.[n.key];if(void 0===i)return Un(r,"unresolved",o);const a=e.picture??("TIME"===e.type?"HH:mm":"pt-BR"===t.temporal?.locale?"dd/MM/yyyy":"M/d/yyyy");if(!Pt(a))return Un(r,"unsupported",o);const s=function(e,t,r={}){const n=Ot(t);if(!n||!Number.isFinite(e))return;const o=new Date(e);if(Number.isFinite(o.getTime()))try{const e={timeZone:r.timeZone??"UTC",calendar:"gregory",numberingSystem:"latn"},t=Object.fromEntries(new Intl.DateTimeFormat("en-US",{...e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}).formatToParts(o).map(e=>[e.type,e.value])),i=r.locale??"en-US",a=t=>new Intl.DateTimeFormat(i,{...e,month:t}).format(o),s=t=>new Intl.DateTimeFormat(i,{...e,weekday:t}).format(o),l=Number(t.hour),c=l%12||12,u=e=>String(e).padStart(2,"0"),d={d:String(Number(t.day)),dd:t.day,ddd:s("short"),dddd:s("long"),M:String(Number(t.month)),MM:t.month,MMM:a("short"),MMMM:a("long"),yy:t.year.slice(-2),yyyy:t.year.padStart(4,"0"),H:String(l),HH:u(l),h:String(c),hh:u(c),m:String(Number(t.minute)),mm:t.minute,s:String(Number(t.second)),ss:t.second,"am/pm":l<12?"am":"pm","AM/PM":l<12?"AM":"PM"};return n.map(e=>"literal"in e?e.literal:d[e.token]).join("")}catch{return}}(i,a,t.temporal);return void 0===s?Un(r,"unresolved",o):{status:"resolved",text:s,dependencies:o}}if("bookmark"in e){const n=[{kind:"REF"===e.type?"bookmark-text":"bookmark-page",name:e.bookmark}],o="REF"===e.type?t.bookmarkText?.(e.bookmark):t.bookmarkPage?.(e.bookmark);return null===o?{status:"error",reason:"missing-bookmark",text:"Error! Bookmark not defined.",dependencies:n}:"REF"===e.type&&"string"==typeof o?{status:"resolved",text:o,dependencies:n}:"number"==typeof o&&zn(o)?{status:"resolved",text:String(o),dependencies:n}:Un(r,"unresolved",n)}const o=Ln[e.type],i=[{kind:o.dependency}],a=t[o.key];return zn(a)?{status:"resolved",text:Tt(a,e.format),dependencies:i}:Un(r,"unresolved",i)}function*qn(e,t){const r=ye(e);for(const n of r){const e=[n.header??[],n.firstPageHeader??[],n.evenPageHeader??[],n.blocks,n.footer??[],n.firstPageFooter??[],n.evenPageFooter??[]];for(const r of e)for(const e of r)for(const r of xe(e))for(const e of r.runs)e.kind===t&&(yield{paragraph:r,run:e})}}function Hn(e,t,r){if(!e)return{blocks:e,changed:!1};let n=!1;const o=e.map(e=>{switch(e.type){case"paragraph":{const o=function(e,t,r){let n=!1;const o=e.runs.map(e=>{const o=t.getRef(e);if(!o)return e;const i=r.get(o.id);return void 0===i||e.text===i?e:(n=!0,{...e,text:i})});return n?{...e,runs:o}:e}(e,t,r);return o!==e&&(n=!0),o}case"table":{let o=!1;const i=e.rows.map(e=>{let n=!1;const i=e.cells.map(e=>{const o=Hn(e.blocks,t,r);return o.changed&&o.blocks?(n=!0,{...e,blocks:o.blocks}):e});return n?(o=!0,{...e,cells:i}):e});return o?(n=!0,{...e,rows:i}):e}default:return R(e,"block")}});return{blocks:n?o:e,changed:n}}function Wn(e,t,r){const n=t.settings?.numberFormat??"decimal",o=t.settings?.startAt??1,i=/* @__PURE__ */new Set,a=/* @__PURE__ */new Map;let s=o-1;for(const{run:p}of qn(e,r.runKind)){const e=r.getRef(p);e&&(i.add(e.id),e.customMark?a.set(e.id,e.customMark):a.has(e.id)||(s+=1,a.set(e.id,r.formatMarker(s,n))))}let l=!1;const c=ye(e).map(e=>{const t=Hn(e.blocks,r,a),n=Hn(e.header,r,a),o=Hn(e.firstPageHeader,r,a),i=Hn(e.evenPageHeader,r,a),s=Hn(e.footer,r,a),c=Hn(e.firstPageFooter,r,a),u=Hn(e.evenPageFooter,r,a);return t.changed||n.changed||o.changed||i.changed||s.changed||c.changed||u.changed?(l=!0,{...e,blocks:t.blocks??e.blocks,header:n.blocks,firstPageHeader:o.blocks,evenPageHeader:i.blocks,footer:s.blocks,firstPageFooter:c.blocks,evenPageFooter:u.blocks}):e}),u={};let d=!1;for(const[p,f]of Object.entries(t.items))i.has(p)||void 0!==f.docxId?u[p]=f:d=!0;return{sections:c,sectionsChanged:l,nextItems:u,itemsChanged:d}}function Vn(e){return qn(e,"footnoteReference")}var Gn=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function Xn(e){if(e<=0)return String(e);let t=e,r="";for(const[n,o]of Gn)for(;t>=n;)r+=o,t-=n;return r}function Zn(e){if(e<=0)return String(e);let t=e,r="";for(;t>0;){r="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+r,t=Math.floor((t-1)/26)}return r}var Yn=["*","†","‡","§","¶","#"];function Qn(e,t="decimal"){switch(t){case"lowerRoman":return Xn(e);case"upperRoman":return Xn(e).toUpperCase();case"lowerLetter":return Zn(e);case"upperLetter":return Zn(e).toUpperCase();case"symbol":{const t=(e-1)%Yn.length,r=Math.floor((e-1)/Yn.length)+1;return Yn[t].repeat(r)}default:return String(e)}}var Kn={runKind:"footnoteReference",getRef:e=>{const t=L(e);return t?{id:t.footnoteId,customMark:t.customMark}:void 0},formatMarker:Qn};function Jn(e,t){return function(e,t,r){for(const n of qn(e,t.runKind))if(t.getRef(n.run)?.id===r)return n;return null}(e,Kn,t)}function eo(e){const t=e.footnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:r,sectionsChanged:n,nextItems:o,itemsChanged:i}=Wn(e,t,Kn);return n||i?{...e,sections:n?r:e.sections,footnotes:{...t,items:i?o:t.items}}:e}var to={runKind:"endnoteReference",getRef:e=>{const t=B(e);return t?{id:t.endnoteId,customMark:t.customMark}:void 0},formatMarker:Qn};function ro(e){return function(e,t){const r=/* @__PURE__ */new Set,n=[];let o=0;for(const{run:i}of qn(e,t.runKind)){const e=t.getRef(i);e&&(r.has(e.id)||(r.add(e.id),e.customMark||(o+=1),n.push({id:e.id,customMark:e.customMark,index:e.customMark?0:o})))}return n}(e,to).map(e=>({endnoteId:e.id,customMark:e.customMark,index:e.index}))}function no(e){const t=e.endnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:r,sectionsChanged:n,nextItems:o,itemsChanged:i}=Wn(e,t,to);return n||i?{...e,sections:n?r:e.sections,endnotes:{...t,items:i?o:t.items}}:e}function oo(e){const t=[],r=[],n=[],o=(e,t)=>{(e.separator?e.result:e.code).push(t)},i=(e,t)=>{r.push({kind:e,point:t})};for(const[a,s]of e.entries()){let e=0;for(const[r,l]of s.runs.entries()){const c={paragraphId:s.id,paragraphIndex:a,runId:l.id,runIndex:r,offset:e};e+=l.text.length;const u=n.at(-1);if("fieldChar"===l.kind)switch(l.fieldChar.kind){case"begin":{const e={index:t.length,parentIndex:u?.index??null,begin:c,beginMarker:{...l.fieldChar},code:[],result:[]};u&&o(u,{kind:"nested",fieldIndex:e.index}),t.push(e),n.push(e);break}case"separate":u?u.separator?i("duplicate-separator",c):u.separator=c:i("orphan-separator",c);break;case"end":u?(u.end=c,n.pop()):i("orphan-end",c)}else"fieldInstruction"===l.kind?u?(u.separator&&i("instruction-after-separator",c),o(u,{kind:"instruction",point:c,raw:l.fieldInstruction})):i("orphan-instruction",c):u&&o(u,{kind:"run",point:c})}}for(const a of n)i("unclosed-field",a.begin);return{spans:t,diagnostics:r}}function io(e){if(e)return{...e,propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:io(e.propertyRevision.previous)??{}}:void 0}}function ao(e){if(e)return{...e,tabs:e.tabs?e.tabs.map(e=>({...e})):e.tabs,propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:ao(e.propertyRevision.previous)??{}}:void 0}}function so(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function lo(e,t,r){const n={...e??{}};return r?n[t]=!0:delete n[t],Object.keys(n).length>0?n:void 0}function co(e,t,r){const n={...e??{}};return null==r||""===r?delete n[t]:n[t]=r,Object.keys(n).length>0?n:void 0}function uo(e,t,r){const n={...e??{}};return null==r?delete n[t]:n[t]=r,Object.keys(n).length>0?n:void 0}var po="http://schemas.openxmlformats.org/wordprocessingml/2006/main",fo=/<w:rPr(?:\s|\/|>)/,ho=/<w:pPr(?:\s|\/|>)/;function mo(e){if(Array.isArray(e))return e.map(mo);if(!e||"object"!=typeof e)return e;const t=e,r=function(e){return"string"==typeof e.kind||"string"==typeof e.type||Array.isArray(e.runs)||Array.isArray(e.rows)||Array.isArray(e.cells)||Array.isArray(e.blocks)}(t),n={};for(const[o,i]of Object.entries(t).sort(([e],[t])=>e.localeCompare(t)))void 0===i||"id"===o&&r||"ooxmlSource"===o||o.startsWith("__")||(n[o]=mo(i));return n}function go(e){return JSON.stringify(mo(e))??"undefined"}function wo(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function bo(e,t){const r=[];for(let n=0;n<e.childNodes.length;n+=1){const o=e.childNodes[n];o?.nodeType===o.ELEMENT_NODE&&o.namespaceURI===po&&o.localName===t&&r.push(o)}return r}function yo(e,t){return bo(e,t)[0]}function vo(e){return e?(new Wt.XMLSerializer).serializeToString(e):void 0}function xo(e){return go(e)}function Eo(e){return go({...e,text:void 0})}function So(e,t){e.ooxmlSource={xml:t,semanticSignature:xo(e),structureSignature:Eo(e)}}function ko(e){return e.ooxmlSource}function _o(e){return go(e)}function Io(e){return go({style:e.style,list:e.list,numberingRevision:e.numberingRevision})}function No(e,t){const r={};t.xml&&(r.xml=t.xml,r.semanticSignature=_o(e)),t.attributes&&(r.attributes=t.attributes),t.paragraphPropertiesXml&&(r.paragraphProperties={xml:t.paragraphPropertiesXml,semanticSignature:Io(e)}),(r.xml||r.attributes||r.paragraphProperties)&&(e.ooxmlSource=r)}function To(e){return e.ooxmlSource}function Co(e){return go(e)}function Ao(e){return go({style:e.style})}function Ro(e){return go({gridCols:e.gridCols,gridRevision:e.gridRevision})}function $o(e){return go({isHeader:e.isHeader,style:e.style,conditionalStyle:e.conditionalStyle})}function Do(e){return go({propertyExceptions:e.propertyExceptions,tblPrExChangeXml:e.tblPrExChangeXml})}function Mo(e){return go({colSpan:e.colSpan,rowSpan:e.rowSpan,vMerge:e.vMerge,style:e.style,conditionalStyle:e.conditionalStyle,mergeRevisionState:e.mergeRevisionState})}function Oo(e){return e.ooxmlSource}function Po(e,t){const r=vo(yo(t,"tblPr")),n=vo(yo(t,"tblGrid")),o=bo(t,"tr");return o.length===e.rows.length&&o.forEach((t,r)=>{const n=e.rows[r];!function(e,t){const r={};t.rowPropertiesXml&&(r.rowProperties={xml:t.rowPropertiesXml,semanticSignature:$o(e)}),t.propertyExceptionsXml&&(r.propertyExceptions={xml:t.propertyExceptionsXml,semanticSignature:Do(e)}),(r.rowProperties||r.propertyExceptions)&&(e.ooxmlSource=r)}(n,{rowPropertiesXml:vo(yo(t,"trPr")),propertyExceptionsXml:vo(yo(t,"tblPrEx"))});const o=bo(t,"tc");o.length===n.cells.length&&o.forEach((e,t)=>{const r=vo(yo(e,"tcPr"));r&&function(e,t){e.ooxmlSource={cellProperties:{xml:t,semanticSignature:Mo(e)}}}(n.cells[t],r)})}),{tablePropertiesXml:r,tableGridXml:n}}function Fo(e,t){let r="string"==typeof t?{xml:t}:t;if("string"==typeof t){const n=(new Wt.DOMParser).parseFromString(t,"application/xml").documentElement;n?.namespaceURI===po&&"tbl"===n.localName&&(r={...r,...Po(e,n)})}const n={xml:r.xml,semanticSignature:Co(e)};r.tablePropertiesXml&&(n.tableProperties={xml:r.tablePropertiesXml,semanticSignature:Ao(e)}),r.tableGridXml&&(n.tableGrid={xml:r.tableGridXml,semanticSignature:Ro(e)}),e.ooxmlSource=n}function Lo(e){return e.ooxmlSource}function Bo(e){return Array.isArray(e)?e.map(Bo):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Bo(t)])):e}function Uo(e){const t={id:e.id,text:e.text,styles:io(e.styles),revision:e.revision?{...e.revision}:void 0,revisionRangeMarker:e.revisionRangeMarker?{...e.revisionRangeMarker}:void 0,sdtWrappers:e.sdtWrappers?[...e.sdtWrappers]:void 0};return function(e,t){const r=ko(e);return r&&(t.ooxmlSource={...r}),t}(e,j(e,{text:()=>({...t,kind:"text"}),opaque:e=>({...t,kind:"opaque",opaque:{...e.opaque,relationshipIds:[...e.opaque.relationshipIds]}}),image:e=>({...t,kind:"image",image:{...e.image}}),textBox:e=>{return{...t,kind:"textBox",textBox:(r=e.textBox,{...r,floating:r.floating?{...r.floating,positionH:r.floating.positionH?{...r.floating.positionH}:void 0,positionV:r.floating.positionV?{...r.floating.positionV}:void 0}:void 0,shape:r.shape?{...r.shape}:void 0,body:r.body?{...r.body}:void 0,blocks:Ho(r.blocks)})};var r},field:e=>({...t,kind:"field",field:{...e.field}}),fieldChar:e=>({...t,kind:"fieldChar",fieldChar:{...e.fieldChar}}),fieldInstruction:e=>({...t,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}),footnoteReference:e=>({...t,kind:"footnoteReference",footnoteReference:{...e.footnoteReference}}),endnoteReference:e=>({...t,kind:"endnoteReference",endnoteReference:{...e.endnoteReference}}),sym:e=>({...t,kind:"sym",sym:{...e.sym}}),math:e=>{return{...t,kind:"math",math:(r=e.math,Bo(r))};var r}}))}function zo(e){return{...e,runs:e.runs.map(Uo),style:ao(e.style),list:e.list?{...e.list}:void 0,numberingRevision:e.numberingRevision?{...e.numberingRevision}:void 0}}function jo(e){return e?{...e}:void 0}function qo(e){return e.map(zo)}function Ho(e){return e.map(e=>{switch(e.type){case"paragraph":return zo(e);case"table":return{...e,style:e.style?{...e.style,defaultCellMargins:e.style.defaultCellMargins?{...e.style.defaultCellMargins}:void 0,floating:e.style.floating?{...e.style.floating}:void 0,revision:e.style.revision?{...e.style.revision,previous:{...e.style.revision.previous}}:void 0}:void 0,gridRevision:e.gridRevision?{...e.gridRevision,previous:[...e.gridRevision.previous]}:void 0,rows:e.rows.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,cells:e.cells.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,mergeRevisionState:e.mergeRevisionState?{...e.mergeRevisionState,previousCells:e.mergeRevisionState.previousCells.map(e=>({...e,mergeRevisionState:void 0,style:e.style?{...e.style}:void 0,blocks:Ho(e.blocks)}))}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,blocks:Ho(e.blocks)}))}))};default:return R(e,"block")}})}var Wo={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"},Vo={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/bmp":"bmp","image/tiff":"tif","image/svg+xml":"svg","image/x-emf":"emf","image/x-wmf":"wmf"};function Go(e){const t=e.split(".").pop()?.toLowerCase();return t?Wo[t]??null:null}function Xo(e){return Vo[e.toLowerCase()]??null}function Zo(e,t){e.ooxmlNumbering={...t,importedFormat:e.format,importedKind:e.kind}}function Yo(e){return e.ooxmlNumbering}function Qo(e){const t=Yo(e);if(t?.format&&t.importedKind===e.kind&&t.importedFormat===e.format)return t.format}var Ko=[["firstRow","firstRow"],["lastRow","lastRow"],["firstColumn","firstCol"],["lastColumn","lastCol"],["oddVBand","band1Vert"],["evenVBand","band2Vert"],["oddHBand","band1Horz"],["evenHBand","band2Horz"],["firstRowFirstColumn","nwCell"],["firstRowLastColumn","neCell"],["lastRowFirstColumn","swCell"],["lastRowLastColumn","seCell"]],Jo=[["top","borderTop"],["left","borderLeft"],["bottom","borderBottom"],["right","borderRight"],["insideH","borderInsideH"],["insideV","borderInsideV"]],ei="http://schemas.openxmlformats.org/wordprocessingml/2006/main",ti="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",ri="http://schemas.openxmlformats.org/drawingml/2006/main",ni="http://schemas.openxmlformats.org/markup-compatibility/2006",oi="http://www.w3.org/2000/xmlns/",ii="urn:schemas-microsoft-com:office:office",ai="urn:schemas-microsoft-com:vml",si="http://schemas.microsoft.com/office/word/2010/wordprocessingShape",li="http://schemas.openxmlformats.org/drawingml/2006/chart",ci="http://schemas.openxmlformats.org/drawingml/2006/diagram",ui=e=>Array.from(e.childNodes).filter(e=>1===e.nodeType),di=(e,t,r)=>Array.from(e.getElementsByTagNameNS(t,r)),pi=(e,t,r)=>e.namespaceURI===t&&e.localName===r,fi=(e,t)=>e<t?-1:e>t?1:0,hi=(e,t)=>Object.hasOwn(e,t);function mi(e){if(pi(e,ei,"object"))return"embedded";if(pi(e,ei,"pict"))return di(e,ii,"OLEObject").length?"embedded":di(e,ai,"imagedata").length?void 0:"vml";if(!pi(e,ei,"drawing"))return;const t=di(e,ri,"graphicData");if(!t.length)return"drawing";for(const r of t){const e=r.getAttribute("uri");if(e===li||di(r,li,"chart").length)return"chart";if(e===ci||di(r,ci,"relIds").length)return"diagram";if(e&&/ink/i.test(e))return"ink";if("http://schemas.openxmlformats.org/drawingml/2006/picture"!==e&&e!==si)return"drawing"}}function gi(e){const t=[],r=[e];for(;r.length;){const e=r.pop();for(const r of Array.from(e.attributes))("http://schemas.openxmlformats.org/officeDocument/2006/relationships"===r.namespaceURI||"http://purl.oclc.org/ooxml/officeDocument/relationships"===r.namespaceURI||r.namespaceURI===ii&&"relid"===r.localName)&&r.value&&t.push(r.value);r.push(...ui(e))}return[...new Set(t)].sort(fi)}function wi(e,t){const r=t?"xmlns:"+t:"xmlns";for(let n=e;n;n=1===n.parentNode?.nodeType?n.parentNode:null)if(n.hasAttribute(r))return n.getAttribute(r)??"";return"xml"===t?"http://www.w3.org/XML/1998/namespace":""}function bi(e){const t=Array.from(e.attributes).filter(e=>e.namespaceURI!==oi&&"xmlns"!==e.name&&"xmlns"!==e.prefix).map(t=>{const r=t.namespaceURI===ni||pi(e,ni,"Choice")&&"Requires"===t.localName?t.value.trim().split(/\s+/).filter(Boolean).map(t=>[t,wi(e,t.split(":")[0])]):void 0;return[t.namespaceURI??"",t.localName??t.name,t.value,r]}).sort((e,t)=>fi(JSON.stringify(e),JSON.stringify(t)));return[e.namespaceURI??"",e.localName,t,Array.from(e.childNodes).map(e=>1===e.nodeType?bi(e):[e.nodeType,e.nodeValue])]}function yi(e){const t=e.cloneNode(!0),r=/* @__PURE__ */new Map;for(let n=e;n;n=1===n.parentNode?.nodeType?n.parentNode:null)for(const e of Array.from(n.attributes))e.namespaceURI!==oi&&"xmlns"!==e.name&&"xmlns"!==e.prefix||r.has(e.name)||r.set(e.name,e.value);for(const[n,o]of r)t.hasAttribute(n)||t.setAttributeNS(oi,n,o);return(new Wt.XMLSerializer).serializeToString(t)}function vi(e){const t=di(e,ti,"anchor")[0]??di(e,ti,"inline")[0];if(!t)return;const r=ui(t).find(e=>pi(e,ti,"extent")),n=e=>{const t=r?.getAttribute(e),n=t?Number(t):NaN;return Number.isSafeInteger(n)&&n>0?n:void 0},o=ui(t).find(e=>e.namespaceURI===ti&&e.localName?.startsWith("wrap"))?.localName;return{placement:"anchor"===t.localName?"anchor":"inline",widthEmu:n("cx"),heightEmu:n("cy"),wrap:o??void 0,relativeHeight:t.getAttribute("relativeHeight")||void 0}}function xi(e,t,r){const n=[],o=[],i=/* @__PURE__ */new Set,a=/* @__PURE__ */new Set,s=r.map(e=>({ownerPath:t,id:e})),l=(e,t,r,n)=>o.push({level:"error",code:e,message:t,partPath:r,relationshipId:n});for(let c=0;c<s.length;c++){const t=s[c],r=JSON.stringify([t.ownerPath,t.id]);if(a.has(r))continue;a.add(r);const o=((hi(e.parts,t.ownerPath)?e.parts[t.ownerPath]:void 0)?.relationships??[]).filter(e=>e.id===t.id);if(1!==o.length){l(o.length?"opaque-relationship-ambiguous":"opaque-relationship-missing","Cannot resolve unique opaque object relationship.",t.ownerPath,t.id);continue}const u=o[0],d=u.targetMode??"Internal";if(n.push({ownerPath:t.ownerPath,relationshipId:u.id,type:u.type,target:u.target,targetMode:d,resolvedTarget:u.resolvedTarget}),"External"===d)continue;if(!u.resolvedTarget||!hi(e.parts,u.resolvedTarget)){l("opaque-target-missing","Opaque object internal target is absent or unsafe.",t.ownerPath,t.id);continue}const p=u.resolvedTarget;if(!i.has(p)){i.add(p);for(const t of e.parts[p].relationships??[])s.push({ownerPath:p,id:t.id})}}return{edges:n.sort((e,t)=>fi(JSON.stringify([e.ownerPath,e.relationshipId]),JSON.stringify([t.ownerPath,t.relationshipId]))),partPaths:[...i].sort(fi),issues:o}}function Ei(e,t){if(t===e.mainDocumentPart)return!0;const r=e.parts[t]?.contentType??"";return/wordprocessingml\.(?:header|footer|footnotes|endnotes|comments|document\.glossary)\+xml$/.test(r)}function Si(e){const t=ui(e);return pi(e,ni,"AlternateContent")&&t.filter(e=>pi(e,ni,"Choice")).some(e=>di(e,ri,"graphicData").some(e=>e.getAttribute("uri")===si&&di(e,si,"wsp").length>0&&di(e,ei,"txbxContent").length>0))?t.filter(e=>{if(!pi(e,ni,"Fallback"))return!0;const t=ui(e);if(1!==t.length||!pi(t[0],ei,"pict"))return!0;const r=t[0];return!(di(r,ai,"textbox").length>0&&di(r,ei,"txbxContent").length>0&&0===di(r,ii,"OLEObject").length&&0===di(r,ei,"object").length&&0===di(r,ei,"drawing").length)}):t}function ki(e){return pi(e,ni,"AlternateContent")?Si(e).flatMap(e=>["drawing","pict","object"].flatMap(t=>di(e,ei,t))).map(mi).find(e=>void 0!==e):mi(e)}function _i(e){const t=ki(e);if(!t)return;const r=vi(e),n=(e,t)=>void 0===e?t:Math.max(1,Math.min(4096,e/9525));return{objectKind:t,fragmentXml:yi(e),signature:JSON.stringify(bi(e)),relationshipIds:gi(e),width:n(r?.widthEmu,180),height:n(r?.heightEmu,90),placement:r?.placement}}function Ii(e){const t=[],r=[];for(const o of Object.keys(e.parts).sort(fi)){const i=e.parts[o];if(Ei(e,o)&&"xml"===i.kind&&/<(?:[\w.-]+:)?(?:drawing|pict|object)(?=[\s/>])/.test(i.data))try{if(/<!\s*(?:DOCTYPE|ENTITY)\b/i.test(i.data))throw Error("DTD/entity declaration unsupported");const n=(new Wt.DOMParser).parseFromString(i.data,"application/xml").documentElement;if(!n)throw Error("Missing story root");const a=[n];let s=0;for(;a.length;){const n=a.pop(),i=ki(n);if(!i){a.push(...Si(n).reverse());continue}const l=gi(n),c=xi(e,o,l),u={kind:i,ownerPath:o,ordinal:s++,fragmentXml:yi(n),signature:JSON.stringify(bi(n)),geometry:vi(n),relationshipIds:l,...c};t.push(u),r.push({level:"warning",code:"opaque-object-not-editable",partPath:o,message:"Unsupported "+i+" object retained in the source inventory; editable projection and preservation after mutation are not guaranteed."},...c.issues)}}catch(n){r.push({level:"error",code:"opaque-scan-failed",partPath:o,message:n instanceof Error?n.message:String(n)})}}return{objects:t,diagnostics:r}}function Ni(e,t,r=[],n){const o=Ii(e),i=Ii(t),a=[...o.diagnostics,...i.diagnostics].filter(e=>"error"===e.level),s=/* @__PURE__ */new Set;for(const u of r){const t=o.objects.filter(e=>e.signature===u.signature),r=1===t.length?t[0]:void 0;!r||r.ownerPath!==e.mainDocumentPart||r.ownerPath!==u.ownerPath||r.ordinal!==u.ordinal||r.issues.length||s.has(r)?a.push({level:"error",code:"opaque-deletion-intent-invalid",partPath:u.ownerPath,message:"Deletion intent does not identify exactly one undeleted original main-story opaque object."}):s.add(r)}const l=n&&o.objects.find(e=>e.ownerPath===n.original.ownerPath&&e.ordinal===n.original.ordinal&&e.signature===n.original.signature);!n||l&&!r.length||a.push({level:"error",code:"opaque-relocation-intent-invalid",message:"Relocation must identify one original object and cannot be combined with deletion."});const c=/* @__PURE__ */new Set;for(const u of o.objects){const r=n&&u===l?n.expected:u;if(s.has(u))continue;const o=i.objects.findIndex((e,t)=>!c.has(t)&&e.ownerPath===r.ownerPath&&e.kind===r.kind&&e.signature===r.signature);if(o<0){a.push({level:"error",code:"opaque-object-changed-or-missing",partPath:r.ownerPath,message:"Original "+r.kind+" object #"+r.ordinal+" was changed or removed."});continue}c.add(o);const d=i.objects[o];if(JSON.stringify(r.edges)===JSON.stringify(d.edges)&&JSON.stringify(r.partPaths)===JSON.stringify(d.partPaths))for(const n of r.partPaths){const r=e.parts[n],o=t.parts[n];r&&o&&r.kind===o.kind&&r.contentType===o.contentType&&r.encoding===o.encoding&&r.data===o.data||a.push({level:"error",code:"opaque-target-content-changed",partPath:n,message:"Opaque object dependency content or type changed."})}else a.push({level:"error",code:"opaque-relationship-closure-changed",partPath:r.ownerPath,message:"Opaque object relationships changed."})}return i.objects.forEach((e,t)=>{c.has(t)||a.push({level:"error",code:"opaque-object-introduced",partPath:e.ownerPath,message:"An opaque object was introduced, copied or relocated without a proven source relationship mapping."})}),a}var Ti=class extends Error{diagnostics;constructor(e){super("DOCX export blocked: opaque object preservation could not be established ("+e.length+" diagnostics)."),this.diagnostics=e,this.name="OpaqueObjectPreservationError"}};function Ci(e){if("end"===e.kind)return`<w:bookmarkEnd w:id="${e.wId}"/>`;const t=(void 0!==e.colFirst?` w:colFirst="${e.colFirst}"`:"")+(void 0!==e.colLast?` w:colLast="${e.colLast}"`:"");return`<w:bookmarkStart w:id="${e.wId}" w:name="${Nr(e.name??"")}"${t}/>`}function Ai(e){switch(e.kind){case"start":return`<w:commentRangeStart w:id="${e.wId}"/>`;case"end":return`<w:commentRangeEnd w:id="${e.wId}"/>`;case"reference":return`<w:r><w:commentReference w:id="${e.wId}"/></w:r>`}}var Ri=`xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du"`;function $i(e){const t=e.comments.map(({comment:e,wId:t,paraId:r})=>{const n=void 0!==e.date?` w:date="${new Date(e.date).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",o=void 0!==e.dateUtc?` w16du:dateUtc="${new Date(e.dateUtc).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",i=e.initials?` w:initials="${Nr(e.initials)}"`:"";return`<w:comment w:id="${t}" w:author="${Nr(e.author)}"${n}${o}${i}><w:p w14:paraId="${r}">${a=e.text,`<w:r>${a.split("\n").map((e,t)=>`${t>0?"<w:br/>":""}<w:t xml:space="preserve">${Nr(e)}</w:t>`).join("")}</w:r>`}</w:p></w:comment>`;var a}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${Ri}>${t}</w:comments>`}function Di(e){return void 0!==e&&Number.isSafeInteger(e)&&e>=1}function Mi(e){let t=1;for(const n of Object.values(e))Di(n.docxId)&&(t=Math.max(t,n.docxId+1));const r=/* @__PURE__ */new Set;return e=>{if(Di(e.docxId)&&!r.has(e.docxId))return r.add(e.docxId),e.docxId;for(;r.has(t);)t+=1;const n=t;return r.add(n),t+=1,n}}var Oi=["pStyle","keepNext","keepLines","pageBreakBefore","framePr","widowControl","numPr","suppressLineNumbers","pBdr","shd","tabs","suppressAutoHyphens","kinsoku","wordWrap","overflowPunct","topLinePunct","autoSpaceDE","autoSpaceDN","bidi","adjustRightInd","snapToGrid","spacing","ind","contextualSpacing","mirrorIndents","suppressOverlap","jc","textDirection","textAlignment","textboxTightWrap","outlineLvl","divId","cnfStyle","rPr","sectPr","pPrChange"],Pi=["rStyle","rFonts","b","bCs","i","iCs","caps","smallCaps","strike","dstrike","outline","shadow","emboss","imprint","noProof","snapToGrid","vanish","webHidden","color","spacing","w","kern","position","sz","szCs","highlight","u","effect","bdr","shd","fitText","vertAlign","rtl","cs","em","lang","eastAsianLayout","specVanish","oMath","rPrChange"],Fi=["tblStyle","tblpPr","tblOverlap","bidiVisual","tblStyleRowBandSize","tblStyleColBandSize","tblW","jc","tblCellSpacing","tblInd","tblBorders","shd","tblLayout","tblCellMar","tblLook","tblCaption","tblDescription","tblPrChange"],Li=["name","aliases","basedOn","next","link","autoRedefine","hidden","uiPriority","semiHidden","unhideWhenUsed","qFormat","locked","personal","personalCompose","personalReply","rsid","pPr","rPr","tblPr","trPr","tcPr","tblStylePr"];function Bi(e,t){const r=e.includes(":")?e.split(":")[1]:e,n=t.indexOf(r);return n>=0?n:9999}var Ui=["cnfStyle","tcW","gridSpan","hMerge","vMerge","tcBorders","shd","noWrap","tcMar","textDirection","tcFitText","vAlign","hideMark","headers","cellIns","cellDel","cellMerge","tcPrChange"];function zi(e,t){return e.map((e,r)=>{const n=/^<w:([\w]+)(?=[\s/>])/.exec(e)?.[1],o=e.startsWith("<mc:AlternateContent")?/<mc:Fallback>\s*<w:([\w]+)(?=[\s/>])/.exec(e)?.[1]:void 0,i=t.findIndex(e=>e.endsWith("PrChange"));return{xml:e,index:r,rank:n||o?Bi(n??o,t):i<0?9999:i-.5}}).sort((e,t)=>e.rank-t.rank||e.index-t.index).map(e=>e.xml).join("")}function ji(e,t="000000"){return"none"===e.type||e.width<=0?'w:val="nil"/>':`w:val="${"dotted"===e.type?"dotted":"dashed"===e.type?"dashed":"single"}" w:sz="${Math.max(1,Math.round(8*e.width))}" w:space="0" w:color="${Rr(e.color,t)}"/>`}function qi(e){const t=[["top",e.borderTop],["left",e.borderLeft],["bottom",e.borderBottom],["right",e.borderRight],["between",e.borderBetween],["bar",e.borderBar]].filter(e=>null!=e[1]).map(([e,t])=>`<w:${e} ${ji(t)}`);return t.length>0?`<w:pBdr>${t.join("")}</w:pBdr>`:""}var Hi="6F6F6F";function Wi(e){return e?Object.entries(e).map(([e,t])=>` ${e}="${Nr(t)}"`).join(""):""}function Vi(e){const t=/^\d+$/.test(e.id)?e.id:String(Array.from(e.id).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0)),r=Number.isFinite(e.date)?new Date(e.date).toISOString():/* @__PURE__ */new Date(0).toISOString();return`w:id="${t}" w:author="${Nr(e.author)}" w:date="${r}"`}function Gi(e){if(!e||0===Object.keys(e).length)return"";const t=Ko.filter(([,t])=>void 0!==e[t]).map(([t,r])=>`w:${t}="${e[r]?"1":"0"}"`).join(" ");return t?`<w:cnfStyle ${t}/>`:""}function Xi(e,t){return void 0===t?"":t?`<w:${e}/>`:`<w:${e} w:val="0"/>`}function Zi(e,t,r={}){if("number"==typeof t&&Number.isFinite(t))return`<w:${e} w:w="${Ar(t)??0}" w:type="dxa"/>`;if("string"==typeof t){const r=t.trim();if("auto"===r)return`<w:${e} w:w="0" w:type="auto"/>`;if(r.endsWith("%")){const t=Number.parseFloat(r.slice(0,-1));if(Number.isFinite(t))return`<w:${e} w:w="${Math.round(50*t)}" w:type="pct"/>`}const n=Number.parseFloat(r);if(Number.isFinite(n))return`<w:${e} w:w="${Math.round(n)}" w:type="dxa"/>`}return r.fallbackAuto?`<w:${e} w:w="0" w:type="auto"/>`:""}function Yi(e,t=!0){return Zi("tblW",e,{fallbackAuto:t})}function Qi(e){return ji(e??{width:.75,type:"solid",color:`#${Hi}`},Hi)}function Ki(e){if(!e)return"";const t=[],r=(e,r)=>{void 0!==r&&Number.isFinite(r)&&t.push(`<w:${e} w:w="${Ar(r)??0}" w:type="dxa"/>`)};return r("top",e.top),r("left",e.left),r("bottom",e.bottom),r("right",e.right),r("start",e.start),r("end",e.end),t.length>0?`<w:tblCellMar>${t.join("")}</w:tblCellMar>`:""}function Ji(e,t){const r=Math.max(1,Math.floor(e.colSpan??1)),n=[],o=Gi(e.conditionalStyle);o&&n.push(o);const i=Zi("tcW",e.style?.width??t);i&&n.push(i),r>1&&n.push(`<w:gridSpan w:val="${r}"/>`),"restart"===e.vMerge?n.push('<w:vMerge w:val="restart"/>'):"continue"===e.vMerge&&n.push("<w:vMerge/>"),e.style?.shading&&n.push($r(e.style.shading));const a=Xi("noWrap",e.style?.noWrap);a&&n.push(a);const s=Xi("tcFitText",e.style?.fitText);if(s&&n.push(s),e.style?.headers&&n.push(`<w:headers w:val="${Nr(e.style.headers)}"/>`),e.style?.verticalAlign){const t="middle"===e.style.verticalAlign?"center":e.style.verticalAlign;n.push(`<w:vAlign w:val="${t}"/>`)}e.style?.textDirection&&n.push(`<w:textDirection w:val="${e.style.textDirection}"/>`),n.push(function(e){const t=e.style,r=t?.padding,n=Ar(r??t?.paddingTop??0),o=Ar(r??t?.paddingBottom??0);return`<w:tcMar><w:top w:w="${n??0}" w:type="dxa"/><w:left w:w="${Ar(r??t?.paddingLeft??5.4)??0}" w:type="dxa"/><w:bottom w:w="${o??0}" w:type="dxa"/><w:right w:w="${Ar(r??t?.paddingRight??5.4)??0}" w:type="dxa"/>${void 0!==t?.paddingStart?`<w:start w:w="${Ar(t.paddingStart)??0}" w:type="dxa"/>`:""}${void 0!==t?.paddingEnd?`<w:end w:w="${Ar(t.paddingEnd)??0}" w:type="dxa"/>`:""}</w:tcMar>`}(e)),n.push(function(e){const t=[`<w:top ${Qi(e.style?.borderTop)}`,`<w:left ${Qi(e.style?.borderLeft)}`,`<w:bottom ${Qi(e.style?.borderBottom)}`,`<w:right ${Qi(e.style?.borderRight)}`];return e.style?.borderStart&&t.push(`<w:start ${Qi(e.style.borderStart)}`),e.style?.borderEnd&&t.push(`<w:end ${Qi(e.style.borderEnd)}`),e.style?.borderTopLeftToBottomRight&&t.push(`<w:tl2br ${Qi(e.style.borderTopLeftToBottomRight)}`),e.style?.borderTopRightToBottomLeft&&t.push(`<w:tr2bl ${Qi(e.style.borderTopRightToBottomLeft)}`),`<w:tcBorders>${t.join("")}</w:tcBorders>`}(e));const l=Xi("hideMark",e.style?.hideMark);if(l&&n.push(l),e.style?.propertyRevision){const t=e.style.propertyRevision,r=Ji({...e,style:t.previous});n.push(`<w:tcPrChange ${Vi(t)}>${r}</w:tcPrChange>`)}if(e.style?.revision){const t=e.style.revision,r="insert"===t.type?"cellIns":"delete"===t.type?"cellDel":"cellMerge",o="merge"===t.type?`${t.previous?.vMerge?` w:vMergeOrig="${"restart"===t.previous.vMerge?"rest":"cont"}"`:""}${e.vMerge?` w:vMerge="${"restart"===e.vMerge?"rest":"cont"}"`:""}`:"";n.push(`<w:${r} ${Vi(t)}${o}/>`)}return n.length>0?`<w:tcPr>${zi(n,Ui)}</w:tcPr>`:""}function ea(e,t){if(void 0===t||!Number.isFinite(t))return"";const r=Math.floor(t);return r>0?`<w:${e} w:val="${r}"/>`:""}function ta(e,t){const r="number"==typeof e?Ar(e):"string"==typeof e?Number.parseFloat(e):null,n=null!==r&&Number.isFinite(r);if(!n&&!t)return"";const o=[];return n&&o.push(`w:val="${Math.round(r)}"`),o.push(`w:hRule="${t??"atLeast"}"`),`<w:trHeight ${o.join(" ")}/>`}function ra(e){if(!e)return"";const t=[],r=ea("gridBefore",e.gridBefore);r&&t.push(r);const n=ea("gridAfter",e.gridAfter);n&&t.push(n);const o=Zi("wBefore",e.widthBefore);o&&t.push(o);const i=Zi("wAfter",e.widthAfter);i&&t.push(i);const a=Zi("tblCellSpacing",e.cellSpacing);a&&t.push(a);const s=ta(e.height,e.heightRule);s&&t.push(s);const l=Xi("cantSplit",e.cantSplit);l&&t.push(l);const c=Xi("hidden",e.hidden);c&&t.push(c);const u=Xi("tblHeader",e.isHeader);return u&&t.push(u),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),t.length>0?`<w:trPr>${t.join("")}</w:trPr>`:""}function na(e){const t=[],r=Gi(e.conditionalStyle);r&&t.push(r);const n=ea("gridBefore",e.style?.gridBefore);n&&t.push(n);const o=ea("gridAfter",e.style?.gridAfter);o&&t.push(o);const i=Zi("wBefore",e.style?.widthBefore);i&&t.push(i);const a=Zi("wAfter",e.style?.widthAfter);a&&t.push(a);const s=Zi("tblCellSpacing",e.style?.cellSpacing);s&&t.push(s);const l=function(e){return ta(e.style?.height,e.style?.heightRule)}(e);l&&t.push(l);const c=Xi("cantSplit",e.style?.cantSplit);c&&t.push(c),(e.style?.isHeader??e.isHeader)&&t.push("<w:tblHeader/>");const u=Xi("hidden",e.style?.hidden);if(u&&t.push(u),e.style?.align&&t.push(`<w:jc w:val="${e.style.align}"/>`),e.style?.propertyRevision){const r=e.style.propertyRevision;t.push(`<w:trPrChange ${Vi(r)}>${ra(r.previous)}</w:trPrChange>`)}if(e.style?.revision&&"merge"!==e.style.revision.type){const r=e.style.revision,n="insert"===r.type?"ins":"del";t.push(`<w:${n} ${Vi(r)}/>`)}return t.length>0?`<w:trPr>${t.join("")}</w:trPr>`:""}function oa(e){const t=e?.borders;if(!t)return"";const r=Jo.map(([e,r])=>[e,t[r]]).filter(e=>!!e[1]).map(([e,t])=>`<w:${e} ${ji(t)}`).join("");return r?`<w:tblBorders>${r}</w:tblBorders>`:""}function ia(e){const t=[];if(e.style?.styleId&&t.push(`<w:tblStyle w:val="${Nr(e.style.styleId)}"/>`),e.style?.tblLook){const r=e.style.tblLook;t.push(`<w:tblLook w:firstRow="${r.firstRow?"1":"0"}" w:lastRow="${r.lastRow?"1":"0"}" w:firstColumn="${r.firstCol?"1":"0"}" w:lastColumn="${r.lastCol?"1":"0"}" w:noHBand="${r.noHBand?"1":"0"}" w:noVBand="${r.noVBand?"1":"0"}"/>`)}e.style?.altTitle&&t.push(`<w:tblCaption w:val="${Nr(e.style.altTitle)}"/>`),e.style?.altDescription&&t.push(`<w:tblDescription w:val="${Nr(e.style.altDescription)}"/>`);const r=function(e){if(!e||0===Object.keys(e).length)return"";const t=e=>{const t=Ar(e);return null===t?void 0:String(t)},r={horzAnchor:e.horizontalAnchor,vertAnchor:e.verticalAnchor,tblpX:t(e.x),tblpY:t(e.y),tblpXSpec:e.xAlign,tblpYSpec:e.yAlign,topFromText:t(e.distanceTop),rightFromText:t(e.distanceRight),bottomFromText:t(e.distanceBottom),leftFromText:t(e.distanceLeft)};return`<w:tblpPr ${Object.entries(r).filter(e=>void 0!==e[1]).map(([e,t])=>`w:${e}="${Nr(t)}"`).join(" ")}/>`}(e.style?.floating);r&&t.push(r);const n=e.gridCols&&e.gridCols.length>0?e.gridCols.reduce((e,t)=>e+t,0):void 0;t.push(Yi(e.style?.width??n)),e.style?.align&&t.push(`<w:jc w:val="${e.style.align}"/>`);const o=Zi("tblCellSpacing",e.style?.cellSpacing);o&&t.push(o);const i=Ki(e.style?.defaultCellMargins);i&&t.push(i);const a=oa(e.style);a&&t.push(a);const s=Zi("tblInd",e.style?.indentLeft);s&&t.push(s),t.push(`<w:tblLayout w:type="${e.style?.layout??"fixed"}"/>`);const l=Xi("bidiVisual",e.style?.bidiVisual);if(l&&t.push(l),e.style?.tblOverlap&&t.push(`<w:tblOverlap w:val="${Nr(e.style.tblOverlap)}"/>`),e.style?.revision){const r=e.style.revision,n=ia({...e,style:r.previous});t.push(`<w:tblPrChange ${Vi(r)}>${n}</w:tblPrChange>`)}return`<w:tblPr>${zi(t,Fi)}</w:tblPr>`}function aa(e,t,r){if(!e&&!t&&!r)return"";const n=[];void 0!==e?.width&&n.push(Yi(e.width)),e?.align&&n.push(`<w:jc w:val="${e.align}"/>`);const o=Zi("tblCellSpacing",e?.cellSpacing);o&&n.push(o);const i=Zi("tblInd",e?.indentLeft);i&&n.push(i);const a=e?oa(e):"";a&&n.push(a),e?.layout&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);const s=Ki(e?.defaultCellMargins);if(s&&n.push(s),r)n.push(r);else if(t){const e=aa(t.previous)||"<w:tblPrEx/>";n.push(`<w:tblPrExChange ${Vi(t)}>${e}</w:tblPrExChange>`)}return n.length>0?`<w:tblPrEx>${n.join("")}</w:tblPrEx>`:""}function sa(e,t){const r=Et(e),n=new Map(r.map(e=>[`${e.rowIndex}:${e.cellIndex}`,e])),o=e.rows.map((r,o)=>{const i=r.cells.map((r,i)=>{const a=n.get(`${o}:${i}`),s=a&&e.gridCols?e.gridCols.slice(a.visualColumnIndex,a.visualColumnIndex+Math.max(1,a.colSpan)).reduce((e,t)=>e+t,0):void 0,l=(r.blocks.length>0?r.blocks:[{id:"",type:"paragraph",runs:[{id:"",text:"",kind:"text"}]}]).map(e=>t(e,r)).join(""),c="continue"===r.vMerge?"<w:p/>":l;return`<w:tc${Wi(r.extAttributes)}>${Ji(r,s)}${c}</w:tc>`}).join("");return`<w:tr${Wi(r.extAttributes)}>${aa(r.propertyExceptions,r.propertyExceptionsRevision,r.tblPrExChangeXml)}${na(r)}${i}</w:tr>`}).join(""),i=e.gridCols?`<w:tblGrid>${e.gridCols.map(e=>`<w:gridCol w:w="${Ar(e)??0}"/>`).join("")}${e.gridRevision?`<w:tblGridChange ${Vi(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map(e=>`<w:gridCol w:w="${Ar(e)??0}"/>`).join("")}</w:tblGrid></w:tblGridChange>`:""}</w:tblGrid>`:"";return`<w:tbl>${ia(e)}${i}${o}</w:tbl>`}var la='xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"';function ca(e){if(!(void 0!==e.alias||void 0!==e.tag||void 0!==e.id||void 0!==e.lock||void 0!==e.appearance||void 0!==e.showingPlcHdr||void 0!==e.temporary||void 0!==e.color||void 0!==e.placeholderDocPart||void 0!==e.dataBinding||void 0!==e.subtype||void 0!==e.repeatingSectionProperties||(e.unknownXml??"").length>0))return"<w:sdtPr/>";let t="";return void 0!==e.alias&&(t+=`<w:alias w:val="${Nr(e.alias)}"/>`),void 0!==e.tag&&(t+=`<w:tag w:val="${Nr(e.tag)}"/>`),void 0!==e.id&&(t+=`<w:id w:val="${Nr(e.id)}"/>`),void 0!==e.lock&&(t+=`<w:lock w:val="${Nr(e.lock)}"/>`),void 0!==e.placeholderDocPart&&(t+=`<w:placeholder><w:docPart w:val="${Nr(e.placeholderDocPart)}"/></w:placeholder>`),void 0!==e.dataBinding&&(t+=function(e){const t=[];void 0!==e.prefixMappings&&t.push(`w:prefixMappings="${Nr(e.prefixMappings)}"`);void 0!==e.xpath&&t.push(`w:xpath="${Nr(e.xpath)}"`);void 0!==e.storeItemID&&t.push(`w:storeItemID="${Nr(e.storeItemID)}"`);return t.length>0?`<w:dataBinding ${t.join(" ")}/>`:""}(e.dataBinding)),void 0!==e.temporary&&(t+=`<w:temporary w:val="${e.temporary?"true":"false"}"/>`),void 0!==e.subtype&&(t+=function(e,t){switch(e.kind){case"text":return"<w:text/>";case"richText":return"<w:richText/>";case"picture":return"<w:picture/>";case"group":return"<w:group/>";case"equation":return"<w:equation/>";case"citation":return"<w:citation/>";case"bibliography":return"<w:bibliography/>";case"repeatingSection":return function(e){let t="";void 0!==e?.sectionTitle&&(t+=`<w15:sectionTitle w15:val="${Nr(e.sectionTitle)}"/>`);void 0!==e?.doNotAllowInsertDeleteSection&&(t+=`<w15:doNotAllowInsertDeleteSection w15:val="${e.doNotAllowInsertDeleteSection?"1":"0"}"/>`);return t?`<w15:repeatingSection ${la}>${t}</w15:repeatingSection>`:`<w15:repeatingSection ${la}/>`}(t);case"repeatingSectionItem":return`<w15:repeatingSectionItem ${la}/>`;case"comboBox":case"dropDownList":{const t=(e.listItems??[]).map(ua).join(""),r=void 0!==e.lastSelectedValue?`<w:lastSelectedValue w:val="${Nr(e.lastSelectedValue)}"/>`:"";return`<w:${e.kind}>${t}${r}</w:${e.kind}>`}case"date":{const t=void 0!==e.fullDate?` w:fullDate="${Nr(e.fullDate)}"`:"";let r="";return void 0!==e.dateFormat&&(r+=`<w:dateFormat w:val="${Nr(e.dateFormat)}"/>`),void 0!==e.lid&&(r+=`<w:lid w:val="${Nr(e.lid)}"/>`),void 0!==e.calendar&&(r+=`<w:calendar w:val="${Nr(e.calendar)}"/>`),void 0!==e.storeMappedDataAs&&(r+=`<w:storeMappedDataAs w:val="${Nr(e.storeMappedDataAs)}"/>`),`<w:date${t}>${r}</w:date>`}case"checkbox":{let t="";if(void 0!==e.checked&&(t+=`<w14:checked w14:val="${e.checked?"1":"0"}"/>`),void 0!==e.checkedStateFont||void 0!==e.checkedStateChar){t+=`<w14:checkedState${void 0!==e.checkedStateFont?` w14:font="${Nr(e.checkedStateFont)}"`:""}${void 0!==e.checkedStateChar?` w14:char="${Nr(e.checkedStateChar)}"`:""}/>`}if(void 0!==e.uncheckedStateFont||void 0!==e.uncheckedStateChar){t+=`<w14:uncheckedState${void 0!==e.uncheckedStateFont?` w14:font="${Nr(e.uncheckedStateFont)}"`:""}${void 0!==e.uncheckedStateChar?` w14:char="${Nr(e.uncheckedStateChar)}"`:""}/>`}return`<w14:checkbox>${t}</w14:checkbox>`}default:return e}}(e.subtype,e.repeatingSectionProperties)),void 0!==e.appearance&&(t+=`<w:appearance w:val="${Nr(e.appearance)}"/>`),void 0!==e.showingPlcHdr&&(t+=`<w:showingPlcHdr w:val="${e.showingPlcHdr?"true":"false"}"/>`),void 0!==e.color&&(t+=`<w:color w:val="${Nr(e.color)}"/>`),e.unknownXml&&(t+=e.unknownXml),`<w:sdtPr>${t}</w:sdtPr>`}function ua(e){return`<w:listItem${void 0!==e.displayText?` w:displayText="${Nr(e.displayText)}"`:""}${void 0!==e.value?` w:value="${Nr(e.value)}"`:""}/>`}function da(e,t){const r=[];for(let n=0;n<e.childNodes.length;n+=1){const o=e.childNodes[n];o?.nodeType===o.ELEMENT_NODE&&"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===o.namespaceURI&&o.localName===t&&r.push(o)}return r}function pa(e,t){const r=(new Wt.DOMParser).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml">${e}</oasis:root>`,"application/xml").documentElement;if(r)for(let n=0;n<r.childNodes.length;n+=1){const e=r.childNodes[n];if(e?.nodeType===e.ELEMENT_NODE&&"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&e.localName===t)return e}}function fa(e,t){const r=e.ownerDocument;if(!r)return null;const n=r.createElementNS(Sr,"w:sdt"),o=pa(ca(t.sdtPr),"sdtPr");if(o&&n.appendChild(o.cloneNode(!0)),t.sdtEndPrXml){const e=pa(t.sdtEndPrXml,"sdtEndPr");e&&n.appendChild(e.cloneNode(!0))}const i=r.createElementNS(Sr,"w:sdtContent");return n.appendChild(i),{sdt:n,content:i}}function ha(e,t){let r=0;for(;r<t.length;){const n=t[r].wrappers[0];if(!n){r+=1;continue}let o=r+1;for(;o<t.length&&t[o].wrappers[0]?.groupId===n.groupId;)o+=1;const i=fa(e,n);if(!i){r=o;continue}e.insertBefore(i.sdt,t[r].element);const a=[];for(let e=r;e<o;e+=1){const r=t[e];i.content.appendChild(r.element),a.push({element:r.element,wrappers:r.wrappers.slice(1)})}ha(i.content,a),r=o}}function ma(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function ga(e){return`${e.namespaceURI??""}\0${function(e){return e.localName??e.tagName}(e)}`}function wa(e,t,r){const n=ga(e[t]);let o=0;for(let i=0;i<t;i+=1)ga(e[i])===n&&(o+=1);return r.filter(e=>ga(e)===n)[o]}function ba(e,t){!function(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];if(!n||"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===n.namespaceURI||"http://schemas.openxmlformats.org/officeDocument/2006/relationships"===n.namespaceURI)continue;const o=n.localName??n.name;(n.namespaceURI?t.hasAttributeNS(n.namespaceURI,o):t.hasAttribute(n.name))||(n.namespaceURI?t.setAttributeNS(n.namespaceURI,n.name,n.value):t.setAttribute(n.name,n.value))}}(e,t);const r=ma(e),n=ma(t);r.forEach((e,o)=>{const i=wa(r,o,n);if("http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI)return void(i&&ba(e,i));if(i)return void ba(e,i);const a=r.slice(o+1).map((e,t)=>wa(r,o+t+1,n)).find(e=>Boolean(e));t.insertBefore(e.cloneNode(!0),a??null)})}var ya=/* @__PURE__ */new Set(["tblStyle","tblpPr","tblOverlap","bidiVisual","tblStyleRowBandSize","tblStyleColBandSize","tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblLook","tblCaption","tblDescription","tblPrChange"]),va=/* @__PURE__ */new Set(["gridCol","tblGridChange"]),xa=/* @__PURE__ */new Set(["tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblPrExChange"]),Ea=/* @__PURE__ */new Set(["cnfStyle","gridBefore","gridAfter","wBefore","wAfter","cantSplit","trHeight","tblHeader","tblCellSpacing","jc","hidden","ins","del","trPrChange"]),Sa=/* @__PURE__ */new Set(["cnfStyle","tcW","gridSpan","hMerge","vMerge","tcBorders","shd","noWrap","tcMar","textDirection","tcFitText","vAlign","hideMark","headers","cellIns","cellDel","cellMerge","tcPrChange"]);function ka(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function _a(e){return e.localName??e.tagName}function Ia(e){return`${e.namespaceURI??""}\0${_a(e)}`}function Na(e,t){const r=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===r?.namespaceURI&&_a(r)===t?r:void 0}function Ta(e,t,r,n,o){if(!e||function(e){return Boolean(e&&wo(e.xml))}(e))return t;if(e.semanticSignature===o)return e.xml;const i=Na(e.xml,r),a=function(e,t){if(e){const r=Na(e,t);if(r)return r}return(new Wt.DOMParser).parseFromString(`<w:${t} xmlns:w="${Sr}"/>`,"application/xml").documentElement}(t,r);if(!i||!a)return t;!function(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes.item(r);if(!n||"http://schemas.openxmlformats.org/officeDocument/2006/relationships"===n.namespaceURI)continue;const o=n.localName??n.name;(n.namespaceURI?t.hasAttributeNS(n.namespaceURI,o):t.hasAttribute(n.name))||(n.namespaceURI?t.setAttributeNS(n.namespaceURI,n.name,n.value):t.setAttribute(n.name,n.value))}}(i,a);const s=ka(i),l=ka(a),c=/* @__PURE__ */new Map;for(const f of l){const e=Ia(f),t=c.get(e)??[];t.push(f),c.set(e,t)}const u=/* @__PURE__ */new Map;for(const f of s){const e=Ia(f),t=u.get(e)??0;u.set(e,t+1);const r=c.get(e)?.[t];r&&ba(f,r)}const d=new Set(l.map(Ia)),p=s.filter(e=>!("http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&n.has(_a(e))||d.has(Ia(e))));for(const f of p){const e=s.indexOf(f),t=s.slice(e+1).find(e=>d.has(Ia(e))),r=t?ka(a).find(e=>Ia(e)===Ia(t))??null:null;a.insertBefore(f.cloneNode(!0),r)}return t||function(e){for(let t=0;t<e.attributes.length;t+=1){const r=e.attributes.item(t);if(r&&"http://www.w3.org/2000/xmlns/"!==r.namespaceURI)return!0}return!1}(a)||0!==ka(a).length?(new Wt.XMLSerializer).serializeToString(a):""}function Ca(e,t,r,n){return Ta({xml:e,semanticSignature:"source"},t,r,n,"generated")}function Aa(e,t){return Ca(e,t,"tblPr",ya)}function Ra(e,t){return Ca(e,t,"trPr",Ea)}function $a(e,t){return Ca(e,t,"tcPr",Sa)}function Da(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function Ma(e,t){return Da(e).filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&e.localName===t)}function Oa(e,t){return Ma(e,t)[0]}function Pa(e,t){const r=(new Wt.DOMParser).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}">${e}</oasis:root>`,"application/xml").documentElement;if(r)return r?Da(r).find(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&e.localName===t):void 0}function Fa(e){return e?(new Wt.XMLSerializer).serializeToString(e):""}function La(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ba(e){const t=/* @__PURE__ */new Map;let r=0;for(const n of e)"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===n.namespaceURI&&("tblPr"===n.localName||"tblGrid"===n.localName?t.set(n,n.localName):"tr"===n.localName&&(t.set(n,`tr:${r}`),r+=1));return t}function Ua(e,t,r,n,o){if(!r)return void(t&&e.removeChild(t));const i=Pa(r,n);i&&(t?e.replaceChild(i.cloneNode(!0),t):e.insertBefore(i.cloneNode(!0),o))}function za(e,t){const r=Oa(t,"tblPr"),n=Oa(t,"tblGrid"),o=Oa(t,"tr")??null;Ua(t,r,function(e,t){return Ta(Lo(e)?.tableProperties,t,"tblPr",ya,Ao(e))}(e,Fa(r)),"tblPr",n??o);const i=Oa(t,"tblGrid");Ua(t,i,function(e,t){return Ta(Lo(e)?.tableGrid,t,"tblGrid",va,Ro(e))}(e,Fa(i)),"tblGrid",Oa(t,"tr")??null)}function ja(e,t){const r=Ma(t,"tr");r.length===e.rows.length&&r.forEach((t,r)=>{const n=e.rows[r],o=Oa(t,"tblPrEx"),i=Oa(t,"trPr"),a=Oa(t,"tc")??null;Ua(t,o,function(e,t){return Ta(Oo(e)?.propertyExceptions,t,"tblPrEx",xa,Do(e))}(n,Fa(o)),"tblPrEx",i??a);const s=Oa(t,"trPr");var l;Ua(t,s,(l=function(e,t){return Ta(Oo(e)?.rowProperties,t,"trPr",Ea,$o(e))}(n,Fa(s)),l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g,(e,t,r,n)=>`${t}${"start"===r?"left":"right"}${n}`)),"trPr",Oa(t,"tc")??null);const c=Ma(t,"tc");c.length===n.cells.length&&c.forEach((e,t)=>{const r=n.cells[t],o=Oa(e,"tcPr");Ua(e,o,function(e,t){return Ta(function(e){return e.ooxmlSource}(e)?.cellProperties,t,"tcPr",Sa,Mo(e))}(r,Fa(o)),"tcPr",Oa(e,"p")??Oa(e,"tbl")??null)})})}function qa(e){for(const t of Ma(e,"tr"))for(const e of Ma(t,"tc")){for(const n of Ma(e,"tbl"))qa(n);const t=Da(e),r=t[t.length-1];if("http://schemas.openxmlformats.org/wordprocessingml/2006/main"===r?.namespaceURI&&"tbl"===r.localName){const t=e.ownerDocument;t&&e.appendChild(t.createElementNS(Sr,"w:p"))}}}function Ha(e,t){const r=sa(e,t),n=Pa(r,"tbl");return n?(function(e,t){const r=Lo(e)?.xml;if(!r)return;const n=Pa(r,"tbl");if(!n)return;!function(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes.item(r);if(!n||"http://schemas.openxmlformats.org/officeDocument/2006/relationships"===n.namespaceURI)continue;const o=n.localName??n.name;(n.namespaceURI?t.hasAttributeNS(n.namespaceURI,o):t.hasAttribute(n.name))||(n.namespaceURI?t.setAttributeNS(n.namespaceURI,n.name,n.value):t.setAttribute(n.name,n.value))}}(n,t);const o=Da(n),i=Da(t),a=o.filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"tr"===e.localName),s=i.filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"tr"===e.localName);if(a.length!==s.length)return;const l=Ba(o),c=new Map([...Ba(i)].map(([e,t])=>[t,e]));for(let u=0;u<o.length;u+=1){const e=o[u];if(l.has(e))continue;if(La(Fa(e)))continue;const r=o.slice(u+1).map(e=>l.get(e)).find(e=>Boolean(e)),n=r?c.get(r)??null:null;t.insertBefore(e.cloneNode(!0),n)}}(e,n),za(e,n),ja(e,n),qa(n),function(e,t){const r=da(t,"tr");if(r.length===e.rows.length){for(let t=0;t<r.length;t+=1){const n=r[t],o=e.rows[t],i=da(n,"tc");i.length===o.cells.length&&ha(n,i.map((e,t)=>({element:e,wrappers:o.cells[t].sdtWrappers??[]})))}ha(t,r.map((t,r)=>({element:t,wrappers:e.rows[r].sdtWrappers??[]})))}}(e,n),(new Wt.XMLSerializer).serializeToString(n).replace(`<w:tbl xmlns:w="${Sr}"`,"<w:tbl")):r}var Wa=`xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"`;function Va(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function Ga(e,t,r){const n=e.ownerDocument;if(!n)return;const o=n.createElementNS(Sr,`w:${r}`);for(let i=0;i<t.attributes.length;i+=1){const e=t.attributes.item(i);e&&(e.namespaceURI?o.setAttributeNS(e.namespaceURI,e.name,e.value):o.setAttribute(e.name,e.value))}for(;t.firstChild;)o.appendChild(t.firstChild);e.replaceChild(o,t)}function Xa(e){const t=function(e){const t=(new Wt.DOMParser).parseFromString(`<oasis:root ${Wa}>${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const r=Va(t);if(1!==r.length)return;const n=r[0];return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===n.namespaceURI&&"r"===n.localName?n:void 0}(e);if(!t)return e;const r=Va(t),n=r.filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"t"===e.localName);if(n.length>0){for(const e of r)"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"delText"===e.localName&&t.removeChild(e);for(const e of n)Ga(t,e,"delText")}const o=Va(t),i=o.filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"instrText"===e.localName);if(i.length>0){for(const e of o)"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"delInstrText"===e.localName&&t.removeChild(e);for(const e of i)Ga(t,e,"delInstrText")}return(new Wt.XMLSerializer).serializeToString(t)}function Za(e){return/^\d+$/.test(e)?e:String(Array.from(e).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0))}function Ya(e){const t=Number.isFinite(e.date)?new Date(e.date).toISOString():/* @__PURE__ */new Date(0).toISOString();return`w:id="${Za(e.id)}" w:author="${Nr(e.author)}" w:date="${t}"`}function Qa(e){if(!e||0===e.length)return"";const t=e.map(e=>{const t=Ar(e.position);if(null===t)return"";const r=[`w:val="${e.type}"`,`w:pos="${t}"`];return e.leader&&"none"!==e.leader?r.push(`w:leader="${e.leader}"`):"none"===e.leader&&r.push('w:leader="none"'),`<w:tab ${r.join(" ")}/>`}).filter(Boolean);return t.length>0?`<w:tabs>${t.join("")}</w:tabs>`:""}function Ka(e){const t=[];e.framePrXml&&t.push(e.framePrXml),e.suppressLineNumbers&&t.push("<w:suppressLineNumbers/>"),e.suppressAutoHyphens&&t.push("<w:suppressAutoHyphens/>"),e.bidi&&t.push("<w:bidi/>"),!1===e.kinsoku&&t.push('<w:kinsoku w:val="0"/>'),!1===e.wordWrap&&t.push('<w:wordWrap w:val="0"/>'),!1===e.overflowPunct&&t.push('<w:overflowPunct w:val="0"/>'),e.topLinePunct&&t.push("<w:topLinePunct/>"),!1===e.autoSpaceDE&&t.push('<w:autoSpaceDE w:val="0"/>'),!1===e.autoSpaceDN&&t.push('<w:autoSpaceDN w:val="0"/>'),!1===e.adjustRightInd&&t.push('<w:adjustRightInd w:val="0"/>'),e.textAlignment&&t.push(`<w:textAlignment w:val="${e.textAlignment}"/>`),e.textboxTightWrap&&t.push(`<w:textboxTightWrap w:val="${e.textboxTightWrap}"/>`),null!=e.divId&&t.push(`<w:divId w:val="${e.divId}"/>`);const r=(n=e.conditionalStyle)?`<w:cnfStyle w:val="${Ko.map(([,e])=>n[e]?"1":"0").join("")}"/>`:"";var n;return r&&t.push(r),t}function Ja(e){const{propertyRevision:t,styleId:r,...n}=e.previous,o=ts(n),i=o?o.slice(7,-8):"",a=r?`<w:pStyle w:val="${Nr(r)}"/>`:"";return`<w:pPrChange ${Ya(e)}><w:pPr>${a}${i}</w:pPr></w:pPrChange>`}function es(e){return"justify"===e?"both":String(e)}function ts(e){const t=[];if(e.align&&t.push(`<w:jc w:val="${es(e.align)}"/>`),void 0!==e.spacingBefore||void 0!==e.spacingAfter||void 0!==e.lineHeight){const r=[],n=Cr(e.spacingBefore),o=Cr(e.spacingAfter),i=void 0!==e.lineHeight&&null!==e.lineHeight&&Number.isFinite(e.lineHeight),a="exact"===e.lineRule||"atLeast"===e.lineRule,s=i?a?Tr(e.lineHeight,0):Math.round(240*e.lineHeight):null;null!==n&&r.push(`w:before="${n}"`),null!==o&&r.push(`w:after="${o}"`),null!==s&&r.push(`w:line="${s}"`),null!==s&&a&&r.push(`w:lineRule="${e.lineRule}"`),r.length>0&&t.push(`<w:spacing ${r.join(" ")}/>`)}if(void 0!==e.indentLeft||void 0!==e.indentRight||void 0!==e.indentFirstLine||void 0!==e.indentHanging){const r=[],n=Cr(e.indentLeft),o=Cr(e.indentRight),i=Cr(e.indentFirstLine),a=Cr(e.indentHanging);null!==n&&r.push(`w:left="${n}"`),null!==o&&r.push(`w:right="${o}"`),null!==i&&r.push(`w:firstLine="${i}"`),null!==a&&r.push(`w:hanging="${a}"`),r.length>0&&t.push(`<w:ind ${r.join(" ")}/>`)}const r=Qa(e.tabs);r&&t.push(r),e.pageBreakBefore&&t.push("<w:pageBreakBefore/>"),e.keepWithNext&&t.push("<w:keepNext/>"),e.keepLinesTogether&&t.push("<w:keepLines/>"),!1===e.widowControl&&t.push('<w:widowControl w:val="0"/>'),e.contextualSpacing&&t.push("<w:contextualSpacing/>"),e.mirrorIndents&&t.push("<w:mirrorIndents/>");const n=qi(e);return n&&t.push(n),e.shading&&t.push($r(e.shading)),e.textDirection&&t.push(`<w:textDirection w:val="${e.textDirection}"/>`),null!=e.outlineLevel&&t.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`),t.push(...Ka(e)),e.propertyRevision&&t.push(Ja(e.propertyRevision)),t.length>0?`<w:pPr>${zi(t,Oi)}</w:pPr>`:""}function rs(e,t,r,n){const o=[],i=function(e,t){const r=we(e.style,t);return{align:r.align,spacingBefore:r.spacingBefore,spacingAfter:r.spacingAfter,contextualSpacing:r.contextualSpacing,lineHeight:r.lineHeight,lineRule:r.lineRule,indentLeft:r.indentLeft,indentRight:r.indentRight,indentFirstLine:r.indentFirstLine,indentHanging:r.indentHanging,mirrorIndents:r.mirrorIndents,pageBreakBefore:r.pageBreakBefore,keepWithNext:r.keepWithNext,keepLinesTogether:r.keepLinesTogether,widowControl:r.widowControl,shading:r.shading,borderTop:r.borderTop,borderRight:r.borderRight,borderBottom:r.borderBottom,borderLeft:r.borderLeft,tabs:r.tabs,textDirection:r.textDirection,outlineLevel:r.outlineLevel,suppressLineNumbers:r.suppressLineNumbers,suppressAutoHyphens:r.suppressAutoHyphens,bidi:r.bidi,kinsoku:r.kinsoku,wordWrap:r.wordWrap,overflowPunct:r.overflowPunct,topLinePunct:r.topLinePunct,autoSpaceDE:r.autoSpaceDE,autoSpaceDN:r.autoSpaceDN,adjustRightInd:r.adjustRightInd,textAlignment:r.textAlignment,textboxTightWrap:r.textboxTightWrap,divId:r.divId,conditionalStyle:r.conditionalStyle,borderBetween:r.borderBetween,borderBar:r.borderBar,framePrXml:r.framePrXml,propertyRevision:e.style?.propertyRevision}}(e,r),a=e.style?.align??n?.align??i.align;if(e.style?.styleId&&o.push(`<w:pStyle w:val="${Nr(e.style.styleId)}"/>`),a&&o.push(`<w:jc w:val="${es(a)}"/>`),void 0!==i.spacingBefore||void 0!==i.spacingAfter||void 0!==i.lineHeight){const e=[],t=Cr(i.spacingBefore),r=Cr(i.spacingAfter),n=void 0!==i.lineHeight&&null!==i.lineHeight&&Number.isFinite(i.lineHeight),a="exact"===i.lineRule||"atLeast"===i.lineRule,s=n?a?Tr(i.lineHeight,0):Math.round(240*i.lineHeight):null;null!==t&&e.push(`w:before="${t}"`),null!==r&&e.push(`w:after="${r}"`),null!==s&&e.push(`w:line="${s}"`),null!==s&&a&&e.push(`w:lineRule="${i.lineRule}"`),e.length>0&&o.push(`<w:spacing ${e.join(" ")}/>`)}if(void 0!==i.indentLeft||void 0!==i.indentRight||void 0!==i.indentFirstLine||void 0!==i.indentHanging){const e=[],t=Cr(i.indentLeft),r=Cr(i.indentRight),n=Cr(i.indentFirstLine),a=Cr(i.indentHanging);null!==t&&e.push(`w:left="${t}"`),null!==r&&e.push(`w:right="${r}"`),null!==n&&e.push(`w:firstLine="${n}"`),null!==a&&e.push(`w:hanging="${a}"`),e.length>0&&o.push(`<w:ind ${e.join(" ")}/>`)}const s=Qa(i.tabs);s&&o.push(s),i.pageBreakBefore&&o.push("<w:pageBreakBefore/>"),i.keepWithNext&&o.push("<w:keepNext/>"),i.keepLinesTogether&&o.push("<w:keepLines/>"),!1===i.widowControl&&o.push('<w:widowControl w:val="0"/>'),i.contextualSpacing&&o.push("<w:contextualSpacing/>"),i.mirrorIndents&&o.push("<w:mirrorIndents/>");const l=qi(i);l&&o.push(l),i.shading&&o.push($r(i.shading)),i.textDirection&&o.push(`<w:textDirection w:val="${i.textDirection}"/>`),null!=i.outlineLevel&&o.push(`<w:outlineLvl w:val="${i.outlineLevel}"/>`),o.push(...Ka(i));const c=t.get(e.id),u=e.numberingRevision?`<w:numberingChange ${Ya(e.numberingRevision)}${void 0!==e.numberingRevision.original?` w:original="${Nr(e.numberingRevision.original)}"`:""}/>`:"";if(c||u){const e=c?`<w:ilvl w:val="${c.level}"/><w:numId w:val="${c.numId}"/>`:"";o.push(`<w:numPr>${e}${u}</w:numPr>`)}return e.style?.propertyRevision&&o.push(Ja(e.style.propertyRevision)),o.length>0?`<w:pPr>${zi(o,Oi)}</w:pPr>`:""}function ns(e){let t=e.trim();for(let r=0;r<3;r++){const e=/^(?:"([^"]*)"|'([^']*)'|([^,]*))/.exec(t);if(!e)break;const r=(e[1]??e[2]??e[3]??"").trim();if(!/,\s*(?:sans-serif|serif|monospace|system-ui)\s*$/i.test(r))return{"sans-serif":"Calibri",serif:"Times New Roman",monospace:"Courier New","system-ui":"Calibri"}[r.toLowerCase()]??(r&&r.length<=31?r:"Calibri");t=r}return"Calibri"}var os={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],green:[0,128,0],magenta:[255,0,255],red:[255,0,0],yellow:[255,255,0],white:[255,255,255],darkBlue:[0,0,139],darkCyan:[0,139,139],darkGreen:[0,100,0],darkMagenta:[139,0,139],darkRed:[139,0,0],darkYellow:[184,134,11],darkGray:[169,169,169],lightGray:[211,211,211]},is={ffff00:"yellow",fef08a:"yellow",ff0000:"red","00ff00":"green","0000ff":"blue","00ffff":"cyan",ff00ff:"magenta","000000":"black",ffffff:"white"},as="http://schemas.openxmlformats.org/markup-compatibility/2006";function ss(e){return`<w14:solidFill><w14:srgbClr w14:val="${Rr(e)}"/></w14:solidFill>`}function ls(e){return"solid"===e.type?ss(e.color):`<w14:gradFill><w14:gsLst>${e.stops.map(e=>{const t=Rr(e.color);return`<w14:gs w14:pos="${Math.round(e.position*k)}"><w14:srgbClr w14:val="${t}">${void 0!==e.alpha?`<w14:alpha w14:val="${Math.round(e.alpha*k)}"/>`:""}</w14:srgbClr></w14:gs>`}).join("")}</w14:gsLst><w14:lin w14:ang="${Math.round((e.angle??0)*_)}" w14:scaled="0"/></w14:gradFill>`}function cs(e,t){return`<w14:srgbClr w14:val="${Rr(e)}">${void 0!==t?`<w14:alpha w14:val="${Math.round(t*k)}"/>`:""}</w14:srgbClr>`}function us(e){return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14">${e}</mc:Choice><mc:Fallback/></mc:AlternateContent>`}function ds(e){return null!=e&&Number.isFinite(e)?Math.round(20*e):null}var ps=yt;function fs(e){if(!e)return"";const t=[];e.styleId&&t.push(`<w:rStyle w:val="${Nr(e.styleId)}"/>`);const r=(e,...r)=>{if(null!=e)for(const n of r)t.push(e?`<w:${n}/>`:`<w:${n} w:val="0"/>`)};if(r(e.bold,"b","bCs"),r(e.italic,"i","iCs"),e.underline){const r=e.underlineStyle??"single",n=e.underlineColor?` w:color="${Rr(e.underlineColor,"auto")}"`:"";t.push(`<w:u w:val="${Nr(r)}"${n}/>`)}else!1===e.underline&&t.push('<w:u w:val="none"/>');if(r(e.strike,"strike"),r(e.doubleStrike,"dstrike"),r(e.outline,"outline"),r(e.shadow,"shadow"),r(e.emboss,"emboss"),r(e.imprint,"imprint"),r(e.smallCaps,"smallCaps"),r(e.allCaps,"caps"),r(e.hidden,"vanish"),r(e.noProof,"noProof"),r(e.webHidden,"webHidden"),r(e.specVanish,"specVanish"),!1===e.snapToGrid&&t.push('<w:snapToGrid w:val="0"/>'),e.textEffect&&t.push(`<w:effect w:val="${Nr(e.textEffect)}"/>`),e.textBorder&&t.push(`<w:bdr ${ji(e.textBorder)}`),void 0!==e.characterScale&&null!==e.characterScale&&Number.isFinite(e.characterScale)&&t.push(`<w:w w:val="${Math.max(1,Math.round(e.characterScale))}"/>`),void 0!==e.characterSpacing&&null!==e.characterSpacing){const r=ds(e.characterSpacing);null!==r&&t.push(`<w:spacing w:val="${r}"/>`)}void 0!==e.baselineShift&&null!==e.baselineShift&&Number.isFinite(e.baselineShift)&&t.push(`<w:position w:val="${Math.round(2*e.baselineShift)}"/>`),void 0!==e.kerningThreshold&&null!==e.kerningThreshold&&Number.isFinite(e.kerningThreshold)&&t.push(`<w:kern w:val="${Math.max(0,Math.round(2*e.kerningThreshold))}"/>`);const n=function(e){switch(e){case"none":return"none";case"standard":return"standard";case"contextual":return"contextual";case"historical":return"historical";case"standardContextual":return"standardContextual";default:return null}}(e.ligatures);n&&t.push(`<w14:ligatures w14:val="${n}"/>`);const o=function(e){switch(e){case"proportional":return"proportional";case"tabular":return"tabular";default:return null}}(e.numberSpacing);o&&t.push(`<w14:numSpacing w14:val="${o}"/>`);const i=function(e){switch(e){case"lining":return"lining";case"oldStyle":return"oldStyle";default:return null}}(e.numberForm);i&&t.push(`<w14:numForm w14:val="${i}"/>`);const a="number"!=typeof(s=e.stylisticSet)||s<1||s>20?null:(1<<s-1).toString(16).toUpperCase().padStart(8,"0");var s;if(a&&t.push(`<w14:stylisticSets w14:val="${a}"/>`),void 0!==e.contextualAlternates&&t.push(`<w14:cntxtAlts w14:val="${e.contextualAlternates?1:0}"/>`),e.superscript?t.push('<w:vertAlign w:val="superscript"/>'):e.subscript?t.push('<w:vertAlign w:val="subscript"/>'):!1!==e.superscript&&!1!==e.subscript||t.push('<w:vertAlign w:val="baseline"/>'),e.fontFamily&&t.push(`<w:rFonts w:ascii="${Nr(ns(e.fontFamily))}" w:hAnsi="${Nr(ns(e.fontFamily))}" w:cs="${Nr(ns(e.fontFamily))}"/>`),void 0!==e.fontSize&&null!==e.fontSize){const r=function(e){return null!=e&&Number.isFinite(e)?Math.round(e/96*72*2):null}(e.fontSize);null!==r&&t.push(`<w:sz w:val="${r}"/>`,`<w:szCs w:val="${r}"/>`)}if(e.textFill){const r="solid"===e.textFill.type?e.textFill.color:e.color;t.push(function(e,t){const r=ls(e),n=Rr(t??"000000");return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14"><w14:textFill>${r}</w14:textFill></mc:Choice><mc:Fallback><w:color w:val="${n}"/></mc:Fallback></mc:AlternateContent>`}(e.textFill,r??null))}else e.color&&t.push(`<w:color w:val="${Rr(e.color,"auto")}"/>`);if(e.textOutline&&t.push(function(e){const t=Math.round(Math.max(0,e.widthPt)*E),r=e.fill?ls(e.fill):e.color?ss(e.color):"";return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">`+r+"</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>"}(e.textOutline)),e.textShadow&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*E),r=Math.round(Math.max(0,e.distPt)*E),n=Math.round(e.dirDeg*_),o=cs(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${r}" w14:dir="${n}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">`+o+"</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>"}(e.textShadow)),e.glow&&t.push(function(e){const t=Math.round(Math.max(0,e.radiusPt)*E),r=cs(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${r}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.glow)),e.reflection&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*E),r=Math.round(e.startAlpha*k),n=Math.round(e.startPos*k),o=Math.round(e.endAlpha*k),i=Math.round(e.endPos*k),a=Math.round(Math.max(0,e.distPt)*E);return`<mc:AlternateContent xmlns:mc="${as}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${r}" w14:stPos="${n}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.reflection)),e.scene3dXml&&t.push(us(e.scene3dXml)),e.props3dXml&&t.push(us(e.props3dXml)),e.highlight&&t.push(`<w:highlight w:val="${Nr(function(e){if(e in os)return e;const t=(xt(e)??e).trim().replace(/^#/,"").toLowerCase(),r=is[t];if(r)return r;const n=ps(t);if(!n)return"yellow";let o="yellow",i=Number.POSITIVE_INFINITY;for(const[a,s]of Object.entries(os)){const e=(s[0]-n[0])**2+(s[1]-n[1])**2+(s[2]-n[2])**2;e<i&&(i=e,o=a)}return o}(e.highlight))}"/>`),e.shading&&t.push($r(e.shading)),void 0!==e.fitText&&null!==e.fitText&&Number.isFinite(e.fitText)){const r=ds(e.fitText);null!==r&&r>0&&t.push(`<w:fitText w:val="${r}"/>`)}if(r(e.rtl,"rtl"),r(e.complexScript,"cs"),e.emphasisMark&&t.push(`<w:em w:val="${Nr(e.emphasisMark)}"/>`),e.language){const r=[];e.language.value&&r.push(`w:val="${Nr(e.language.value)}"`),e.language.eastAsia&&r.push(`w:eastAsia="${Nr(e.language.eastAsia)}"`),e.language.bidi&&r.push(`w:bidi="${Nr(e.language.bidi)}"`),r.length>0&&t.push(`<w:lang ${r.join(" ")}/>`)}return e.propertyRevision&&t.push(function(e){const{propertyRevision:t,styleId:r,...n}=e.previous,o=fs(n),i=o?o.slice(7,-8):"",a=r?`<w:rStyle w:val="${Nr(r)}"/>`:"";return`<w:rPrChange ${Ya(e)}><w:rPr>${a}${i}</w:rPr></w:rPrChange>`}(e.propertyRevision)),t.length>0?`<w:rPr>${zi(t,Pi)}</w:rPr>`:""}function hs(e){return 0===e.length?"":`<w:t${t=e,/^\s|\s$/.test(t)||t.includes(" ")?' xml:space="preserve"':""}>${Nr(e)}</w:t>`;var t}function ms(e){if(0===e.length)return"<w:t></w:t>";let t="",r="";for(const n of e)"\n"!==n?"\v"!==n?"\t"!==n?"‑"!==n?""!==n?r+=n:(t+=hs(r),r="",t+="<w:softHyphen/>"):(t+=hs(r),r="",t+="<w:noBreakHyphen/>"):(t+=hs(r),r="",t+="<w:tab/>"):(t+=hs(r),r="",t+='<w:br w:type="column"/>'):(t+=hs(r),r="",t+="<w:br/>");return t+=hs(r),t||"<w:t></w:t>"}function gs(e,t){return e??t?"1":"0"}function ws(e,t,r){const n=Nr(t?.relativeFrom??r);return t?.align?`<wp:${e} relativeFrom="${n}"><wp:align>${Nr(t.align)}</wp:align></wp:${e}>`:`<wp:${e} relativeFrom="${n}"><wp:posOffset>${t?.offset??0}</wp:posOffset></wp:${e}>`}function bs(e){if(!e||e.length<3)return"";const t=e=>Math.round(21600*Math.min(1,Math.max(0,e))),r=(e,r)=>`<wp:${r} x="${t(e.x)}" y="${t(e.y)}"/>`,n=e[0];return`<wp:wrapPolygon edited="0">${[r(n,"start"),...e.slice(1).map(e=>r(e,"lineTo")),r(n,"lineTo")].join("")}</wp:wrapPolygon>`}function ys(e){const{cx:t,cy:r,floating:n,docPrId:o,docPrName:i,altAttr:a,graphicXml:s}=e,l=Nr(i);if(!n)return`<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${r}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;const c=n.distT??0,u=n.distB??0,d=n.distL??0,p=n.distR??0,f=ws("positionH",n.positionH,"column"),h=ws("positionV",n.positionV,"paragraph"),m=function(e,t,r){const n=t&&"bothSides"!==t?` wrapText="${t}"`:"";switch(e){case"square":return`<wp:wrapSquare${n}/>`;case"tight":{const e=bs(r);return e?`<wp:wrapTight${n}>${e}</wp:wrapTight>`:`<wp:wrapTight${n}/>`}case"through":{const e=bs(r);return e?`<wp:wrapThrough${n}>${e}</wp:wrapThrough>`:`<wp:wrapThrough${n}/>`}case"topAndBottom":return"<wp:wrapTopAndBottom/>";default:return"<wp:wrapNone/>"}}(n.wrap,n.wrapText,e.wrapPolygon);return`<w:drawing><wp:anchor distT="${c}" distB="${u}" distL="${d}" distR="${p}" simplePos="${gs(n.simplePos,!1)}" relativeHeight="${n.relativeHeight??0}" behindDoc="${gs(n.behindDoc,!1)}" locked="${gs(n.locked,!1)}" layoutInCell="${gs(n.layoutInCell,!0)}" allowOverlap="${gs(n.allowOverlap,!0)}"><wp:simplePos x="0" y="0"/>${f}${h}<wp:extent cx="${t}" cy="${r}"/><wp:effectExtent l="0" t="0" r="0" b="0"/>${m}<wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:anchor></w:drawing>`}function vs(e,t,r,n){const o=r.images.find(e=>e.rId===t);if(!o)return null;const i=(parseInt(t.replace(/\D+/g,""),10)||0)+1,a=void 0!==o.alt?` descr="${Nr(o.alt)}" title="${Nr(o.alt)}"`:"",s=function(e){let t="";if(e.rotation){const r=Math.round(e.rotation*_);0!==r&&(t+=` rot="${r}"`)}return e.flipH&&(t+=' flipH="1"'),e.flipV&&(t+=' flipV="1"'),t}(o),l=function(e){if(!e)return"";const t=e=>e?Math.round(e*k):0,r=t(e.left),n=t(e.top),o=t(e.right),i=t(e.bottom);return 0===r&&0===n&&0===o&&0===i?"":`<a:srcRect l="${r}" t="${n}" r="${o}" b="${i}"/>`}(o.crop),c=(u=o.border)?`<a:ln${void 0!==u.widthPt?` w="${Math.round(u.widthPt*E)}"`:""}><a:solidFill><a:srgbClr val="${Nr(u.color.replace(/^#/,""))}"/></a:solidFill>${u.dash?`<a:prstDash val="${u.dash}"/>`:""}</a:ln>`:"";var u;const d="tile"===o.fillMode?"<a:tile/>":"<a:stretch><a:fillRect/></a:stretch>",p="linked"===o.kind?`r:link="${t}"`:`r:embed="${t}"`,f=void 0!==o.transparency&&o.transparency>0?`<a:alphaModFix amt="${Math.round((1-Math.max(0,Math.min(1,o.transparency)))*k)}"/>`:"",h=function(e){if(!e)return'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>';if(e.rawXml&&!e.adjustments)return e.rawXml;const t=Object.entries(e.adjustments??{}).map(([e,t])=>`<a:gd name="${Nr(e)}" fmla="val ${Number.isFinite(t)?t:0}"/>`).join(""),r=t?`<a:avLst>${t}</a:avLst>`:"<a:avLst/>";return`<a:prstGeom prst="${Nr(e.preset)}">${r}</a:prstGeom>`}(o.cropShape);return`<w:r>${n}${function(e,t,r,n){return ys({cx:e.cx,cy:e.cy,floating:e.floating,docPrId:t,docPrName:"Picture",altAttr:r,graphicXml:n,wrapPolygon:e.wrapPolygon})}(o,i,a,`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${p} xmlns:r="${_r}">${f}</a:blip>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${h}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`)}</w:r>`}function xs(e,t,r,n,o,i){const a=Math.round(t.width*x),s=Math.round(t.height*x),l=r.textBoxDocPrIds.get(e.id)??1,c=t.name??"Text Box",u=void 0!==t.alt?` descr="${Nr(t.alt)}" title="${Nr(t.alt)}"`:"",d=function(e,t,r,n,o,i){const a=e.shape,s=Nr(a?.preset??"rect"),l=e.rotation?Math.round(e.rotation*_):0,c=0!==l?` rot="${l}"`:"",u=a?.fill?`<a:solidFill><a:srgbClr val="${Nr(a.fill.replace(/^#/,""))}"/></a:solidFill>`:"";let d="";(a?.borderColor||void 0!==a?.borderWidthPt)&&(d=`<a:ln${void 0!==a?.borderWidthPt?` w="${Math.round(a.borderWidthPt*E)}"`:""}>${a?.borderColor?`<a:solidFill><a:srgbClr val="${Nr(a.borderColor.replace(/^#/,""))}"/></a:solidFill>`:""}<a:miter lim="800000"/></a:ln>`);const p=e.body,f=['rot="0"',`vert="${Nr(p?.vert??"horz")}"`];f.push(`wrap="${Nr(p?.wrap??"square")}"`),void 0!==p?.paddingLeft&&f.push(`lIns="${Math.round(p.paddingLeft*x)}"`),void 0!==p?.paddingTop&&f.push(`tIns="${Math.round(p.paddingTop*x)}"`),void 0!==p?.paddingRight&&f.push(`rIns="${Math.round(p.paddingRight*x)}"`),void 0!==p?.paddingBottom&&f.push(`bIns="${Math.round(p.paddingBottom*x)}"`),f.push(`anchor="${Nr(p?.anchor??"t")}"`),f.push('anchorCtr="0"');const h=p?.autoFit?"<a:spAutoFit/>":"",m=e.blocks.length>0,g=m?i(e.blocks,n,o):"";return'<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"><wps:wsp>'+(m?'<wps:cNvSpPr txBox="1"><a:spLocks noChangeArrowheads="1"/></wps:cNvSpPr>':"<wps:cNvSpPr/>")+`<wps:spPr bwMode="auto"><a:xfrm${c}><a:off x="0" y="0"/><a:ext cx="${t}" cy="${r}"/></a:xfrm><a:prstGeom prst="${s}"><a:avLst/></a:prstGeom>`+u+d+"</wps:spPr>"+(m?`<wps:txbx><w:txbxContent>${g}</w:txbxContent></wps:txbx>`:"")+`<wps:bodyPr ${f.join(" ")}>${h}</wps:bodyPr></wps:wsp></a:graphicData></a:graphic>`}(t,a,s,r,n,i);return`<w:r>${o}${ys({cx:a,cy:s,floating:t.floating,docPrId:l,docPrName:c,altAttr:u,graphicXml:d})}</w:r>`}var Es={footnote:"FootnoteReference",endnote:"EndnoteReference"};function Ss(e){return`<w:r><w:rPr><w:rStyle w:val="${Es[e]}"/><w:vertAlign w:val="superscript"/></w:rPr><w:${e}Ref/></w:r>`}function ks(e,t,r,n){if(!t)return null;const o=("footnote"===e?n.footnoteIdMap:n.endnoteIdMap)?.get(t.noteId);if(void 0===o)return null;const i={...r??{},styleId:Es[e],superscript:!0},a=t.customMark?' w:customMarkFollows="1"':"",s=t.customMark?`<w:t xml:space="preserve">${Nr(t.customMark)}</w:t>`:"";return`<w:r>${fs(i)}<w:${e}Reference${a} w:id="${o}"/>${s}</w:r>`}function _s(e,t){return void 0===t?"":` m:${e}="${Nr(String(t))}"`}function Is(e){return e.map(Ns).join("")}function Ns(e){switch(e.kind){case"text":return function(e){const t=e.style;return`<m:r>${t?`<m:rPr>${t.bold?"<m:b/>":""}${t.italic?"<m:i/>":""}${t.normalText?"<m:nor/>":""}${t.script?`<m:sty m:val="${Nr(t.script)}"/>`:""}</m:rPr>`:""}<m:t xml:space="preserve">${Nr(e.value)}</m:t></m:r>`}(e);case"fraction":return`<m:f>${!1===e.bar?'<m:fPr><m:type m:val="noBar"/></m:fPr>':""}<m:num>${Is(e.numerator)}</m:num><m:den>${Is(e.denominator)}</m:den></m:f>`;case"radical":return e.degree?`<m:rad><m:deg>${Is(e.degree)}</m:deg><m:e>${Is(e.radicand)}</m:e></m:rad>`:`<m:rad><m:e>${Is(e.radicand)}</m:e></m:rad>`;case"script":{const t=e.subscript&&e.superscript?"sSubSup":e.subscript?"sSub":"sSup";return`<m:${t}><m:e>${Is(e.base)}</m:e>${e.subscript?`<m:sub>${Is(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Is(e.superscript)}</m:sup>`:""}</m:${t}>`}case"delimiter":return`<m:d><m:dPr>${_s("begChr",e.begin)}${_s("endChr",e.end)}${_s("sepChr",e.separator)}${!1===e.grow?'<m:grow m:val="0"/>':""}</m:dPr>${e.children.map(e=>`<m:e>${Is(e)}</m:e>`).join("")}</m:d>`;case"accent":return`<m:acc><m:accPr><m:chr${_s("val",e.accent)}/></m:accPr><m:e>${Is(e.children)}</m:e></m:acc>`;case"nary":return`<m:nary><m:naryPr><m:chr${_s("val",e.operator)}/>${!1===e.grow?'<m:grow m:val="0"/>':""}</m:naryPr>${e.subscript?`<m:sub>${Is(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Is(e.superscript)}</m:sup>`:""}<m:e>${Is(e.children)}</m:e></m:nary>`;case"limit":return"low"===e.operator?`<m:limLow><m:e>${Is(e.base)}</m:e><m:lim>${Is(e.limit)}</m:lim></m:limLow>`:`<m:limUpp><m:e>${Is(e.base)}</m:e><m:lim>${Is(e.limit)}</m:lim></m:limUpp>`;case"matrix":return`<m:m>${e.rows.map(e=>`<m:mr>${e.map(e=>`<m:e>${Is(e)}</m:e>`).join("")}</m:mr>`).join("")}</m:m>`;case"box":return`<m:${e.hidden?"phant":e.border?"borderBox":"box"}><m:e>${Is(e.children)}</m:e></m:${e.hidden?"phant":e.border?"borderBox":"box"}>`;case"group":return Is(e.children);case"raw":return e.xml}}var Ts="http://schemas.openxmlformats.org/markup-compatibility/2006",Cs=/* @__PURE__ */new Set(["t","tab","br","cr","noBreakHyphen","softHyphen"]),As=/* @__PURE__ */new Set([...Cs,"drawing","pict","sym","fldChar","instrText","footnoteReference","endnoteReference","separator","continuationSeparator"]),Rs=/* @__PURE__ */new Set(["rStyle","rFonts","b","bCs","i","iCs","caps","smallCaps","strike","dstrike","outline","shadow","emboss","imprint","noProof","snapToGrid","vanish","webHidden","color","spacing","w","kern","position","sz","szCs","highlight","u","effect","bdr","shd","fitText","vertAlign","rtl","cs","em","lang","eastAsianLayout","specVanish","oMath"]),$s=/* @__PURE__ */new Set(["ligatures","numSpacing","numForm","stylisticSets","cntxtAlts","textFill","textOutline","shadow","glow","reflection","scene3d","props3d"]);function Ds(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ms(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function Os(e){return e.localName??e.tagName}function Ps(e,t,r){return Ms(e).find(e=>e.namespaceURI===t&&Os(e)===r)}function Fs(e){return`${e.namespaceURI??""}\0${Os(e)}`}function Ls(e){const t=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;return t&&"r"===Os(t)?t:void 0}function Bs(e){const t=(new Wt.DOMParser).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:r="${_r}" xmlns:mc="${Ts}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const r=Ms(t);return 1===r.length&&"r"===Os(r[0])?r[0]:void 0}function Us(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function zs(e){for(let t=0;t<e.attributes.length;t+=1){const r=e.attributes[t];if(r&&!Us(r)&&"http://schemas.openxmlformats.org/officeDocument/2006/relationships"!==r.namespaceURI)return!0}return!1}function js(e){const t=Os(e);return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI?Rs.has(t):"http://schemas.microsoft.com/office/word/2010/wordml"===e.namespaceURI?$s.has(t):e.namespaceURI===Ts&&"AlternateContent"===t}function qs(e,t){const r=Ps(e,Sr,"rPr");if(!r)return;const n=Ms(r),o=Ps(t,Sr,"rPr"),i=o?Ms(o):[],a=new Set(i.map(Fs)),s=n.filter(e=>!js(e)&&!a.has(Fs(e)));if(0===s.length)return;const l=function(e){const t=Ps(e,Sr,"rPr");if(t)return t;const r=e.ownerDocument.createElementNS(Sr,"w:rPr");return e.insertBefore(r,e.firstChild),r}(t);for(const c of s){const e=n.indexOf(c),t=n.slice(e+1).find(e=>a.has(Fs(e))),r=t?Ms(l).find(e=>Fs(e)===Fs(t))??null:null;l.insertBefore(c.cloneNode(!0),r)}}function Hs(e){const t=Os(e);return e.namespaceURI===Ts&&"AlternateContent"===t?function(e){const t=e=>Ms(e).some(e=>{const r=Os(e);return!("http://schemas.openxmlformats.org/wordprocessingml/2006/main"!==e.namespaceURI||!As.has(r))||t(e)});return t(e)}(e):"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&("rPr"===t||As.has(t))}function Ws(e){const t=ko(e);if(t&&!Ds(t.xml)&&(r=t.xml,!fo.test(r))){var r;if(t.semanticSignature===xo(e))return t.xml;if(t.structureSignature===Eo(e))return function(e,t){if("text"!==e.kind)return;const r=Ls(t);if(!r)return;const n=Ms(r),o=n.filter(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&Cs.has(Os(e))),i=o[0]??n.find(e=>!("http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&"rPr"===Os(e)))??null,a=Bs(`<w:r>${ms(e.text)}</w:r>`);if(!a)return;const s=Ms(a);for(const l of s)r.insertBefore(l.cloneNode(!0),i);for(const l of o)r.removeChild(l);return(new Wt.XMLSerializer).serializeToString(r)}(e,t.xml)}}function Vs(e,t){const r=ko(e);if(!r||Ds(r.xml))return t;const n=Ls(r.xml);if(!n||!function(e){if(zs(e))return!0;const t=Ps(e,Sr,"rPr");return!(!t||!zs(t)&&!Ms(t).some(e=>!js(e)))||Ms(e).some(e=>!Hs(e))}(n))return t;const o=Bs(t);return o?(function(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];if(!n||"http://schemas.openxmlformats.org/officeDocument/2006/relationships"===n.namespaceURI)continue;const o=n.localName??n.name;(n.namespaceURI?t.hasAttributeNS(n.namespaceURI,o):t.hasAttribute(n.name))||(n.namespaceURI?t.setAttributeNS(n.namespaceURI,n.name,n.value):t.setAttribute(n.name,n.value))}}(n,o),qs(n,o),function(e,t){const r=Ms(e),n=Ms(t),o=new Set(n.map(Fs)),i=r.filter(e=>!Hs(e)&&!o.has(Fs(e)));for(const a of i){const e=r.indexOf(a),n=r.slice(e+1).find(e=>Hs(e)),o=n?Ms(t).find(e=>Fs(e)===Fs(n))??null:null;t.insertBefore(a.cloneNode(!0),o)}}(n,o),(new Wt.XMLSerializer).serializeToString(o)):t}function Gs(e,t,r,n,o){if(e.revisionRangeMarker)return function(e){const t=`move${"from"===e.move?"From":"To"}Range${"start"===e.edge?"Start":"End"}`,r=[`w:id="${Za(e.id)}"`];return void 0!==e.displacedByCustomXml&&r.push(`w:displacedByCustomXml="${Nr(e.displacedByCustomXml)}"`),"start"===e.edge&&(void 0!==e.name&&r.push(`w:name="${Nr(e.name)}"`),void 0!==e.author&&r.push(`w:author="${Nr(e.author)}"`),void 0!==e.date&&Number.isFinite(e.date)&&r.push(`w:date="${new Date(e.date).toISOString()}"`),void 0!==e.columnFirst&&r.push(`w:colFirst="${Math.trunc(e.columnFirst)}"`),void 0!==e.columnLast&&r.push(`w:colLast="${Math.trunc(e.columnLast)}"`)),`<w:${t} ${r.join(" ")}/>`}(e.revisionRangeMarker);if(e.__isFootnoteRefMarker)return Ss("footnote");if(e.__isEndnoteRefMarker)return Ss("endnote");if("opaque"===e.kind){const r=t.authorizedOpaqueFragments?.get(e.opaque.fragmentXml);if(!r||""!==e.text||r.signature!==e.opaque.signature||r.kind!==e.opaque.objectKind||JSON.stringify(r.relationshipIds)!==JSON.stringify(e.opaque.relationshipIds))throw new Error("Opaque DOCX objects require source-backed export with an unchanged, authorized source fragment.");return`<w:r>${fs(e.styles)}${e.opaque.fragmentXml}</w:r>`}const i=Ws(e);if(i)return i;const a=function(e,t,r){const n=ge(e.styles,t,r),o={styleId:e.styles?.styleId,bold:n.bold,italic:n.italic,underline:n.underline,underlineStyle:n.underlineStyle,underlineColor:n.underlineColor,strike:n.strike,doubleStrike:n.doubleStrike,superscript:n.superscript,subscript:n.subscript,smallCaps:n.smallCaps,allCaps:n.allCaps,hidden:n.hidden,noProof:n.noProof,webHidden:n.webHidden,specVanish:n.specVanish,rtl:n.rtl,complexScript:n.complexScript,snapToGrid:n.snapToGrid,fitText:n.fitText,emphasisMark:n.emphasisMark,textBorder:n.textBorder,outline:n.outline,shadow:n.shadow,emboss:n.emboss,imprint:n.imprint,textEffect:n.textEffect,characterScale:n.characterScale,characterSpacing:n.characterSpacing,baselineShift:n.baselineShift,kerningThreshold:n.kerningThreshold,ligatures:n.ligatures,numberSpacing:n.numberSpacing,numberForm:n.numberForm,stylisticSet:n.stylisticSet,contextualAlternates:n.contextualAlternates,fontFamily:n.fontFamily,fontSize:n.fontSize,color:n.color,textFill:n.textFill,textOutline:n.textOutline,textShadow:n.textShadow,glow:n.glow,reflection:n.reflection,scene3dXml:n.scene3dXml,props3dXml:n.props3dXml,highlight:n.highlight,shading:n.shading,language:n.language,propertyRevision:e.styles?.propertyRevision},i=ge(e.styles?.styleId?{styleId:e.styles.styleId}:void 0,t,r);for(const a of Object.keys(o))("styleId"!==a&&e.styles?.styleId&&"character"===r?.[e.styles.styleId]?.type&&void 0===e.styles[a]&&o[a]===i[a]||!1===o[a]&&!1!==e.styles?.[a]&&!0!==i[a])&&delete o[a];return e.styles?.link&&(o.link=e.styles.link),o}(e,r,n),s=()=>fs(a),l=()=>`<w:r>${s()}${ms(e.text)}</w:r>`,c=j(e,{footnoteReference:e=>function(e,t,r){const n=L(e);return ks("footnote",n?{noteId:n.footnoteId,customMark:n.customMark}:void 0,t,r)}(e,a,t)??l(),endnoteReference:e=>function(e,t,r){const n=B(e);return ks("endnote",n?{noteId:n.endnoteId,customMark:n.customMark}:void 0,t,r)}(e,a,t)??l(),fieldChar:e=>function(e,t){const r=(e.fieldLock?' w:fldLock="true"':"")+(e.dirty?' w:dirty="true"':"");return`<w:r>${t}<w:fldChar w:fldCharType="${e.kind}"${r}/></w:r>`}(e.fieldChar,s()),fieldInstruction:e=>{return t=e.fieldInstruction,`<w:r>${s()}<w:instrText xml:space="preserve">${Nr(t)}</w:instrText></w:r>`;var t},field:e=>function(e,t,r="1"){let n;if("DATE"===e.type)n=` DATE \\@ "${e.dateFormat??"M/d/yyyy"}" `;else if("REF"===e.type||"PAGEREF"===e.type){const t=e.bookmark??"",r=/\s/.test(t)?`"${t}"`:t;n=` ${e.type} ${r} \\h `}else{const t="PAGE"===e.type?" PAGE ":" NUMPAGES ",r=function(e){if(e&&"decimal"!==e)return e}(e.format);n=r?` ${t.trim()} \\* ${r} `:t}return`<w:fldSimple w:instr="${Nr(n)}"><w:r>${t}<w:t xml:space="preserve">${Nr(r)}</w:t></w:r></w:fldSimple>`}(e.field,s(),e.text),textBox:e=>xs(e,e.textBox,t,n,s(),o),image:e=>{const r=t.imageMap.get(e.id);if(r){const n=vs(e.id,r,t,s());if(null!==n)return n}return l()},sym:e=>`<w:r>${s()}<w:sym w:font="${Nr(e.sym.font)}" w:char="${e.sym.char}"/></w:r>`,math:e=>function(e){const t=`<m:oMath>${Is(e.children)}</m:oMath>`;return e.display?`<m:oMathPara>${t}</m:oMathPara>`:t}(e.math),opaque:()=>{throw new Error("Unexpected opaque serializer dispatch")},text:()=>l()});return Vs(e,c)}function Xs(e,t,r,n,o){let i=Gs(e,t,r,n,o);if(e.revisionRangeMarker)return i;"delete"===e.revision?.type&&(i=Xa(i));const a=e.styles?.link,s=a?function(e,t,r){if(t.startsWith("#"))return`<w:hyperlink w:anchor="${Nr(t.slice(1))}">${e}</w:hyperlink>`;const n=r.hyperlinkMap.get(t);return n?`<w:hyperlink r:id="${n}">${e}</w:hyperlink>`:e}(i,a,t):i;return e.revision?function(e,t){const r=Ya(t),n=function(e){return"from"===e.move?"moveFrom":"to"===e.move?"moveTo":"delete"===e.type?"del":"ins"}(t);return`<w:${n} ${r}>${e}</w:${n}>`}(s,e.revision):s}function Zs(e,t){let r="",n=0;for(;n<e.length;){const o=e[n],i=o.sdtWrappers?.[0];if(!i){r+=t(o),n+=1;continue}const a=[];let s=n;for(;s<e.length&&e[s].sdtWrappers?.[0]?.groupId===i.groupId;){const t=e[s],r=t.sdtWrappers.slice(1);a.push({...t,sdtWrappers:r.length>0?r:void 0}),s+=1}const l=Zs(a,t);r+=`<w:sdt>${ca(i.sdtPr)}${i.sdtEndPrXml??""}<w:sdtContent>${l}</w:sdtContent></w:sdt>`,n=s}return r}var Ys=/* @__PURE__ */new Set(["pStyle","keepNext","keepLines","pageBreakBefore","framePr","widowControl","numPr","suppressLineNumbers","pBdr","shd","tabs","suppressAutoHyphens","kinsoku","wordWrap","overflowPunct","topLinePunct","autoSpaceDE","autoSpaceDN","bidi","adjustRightInd","snapToGrid","spacing","ind","contextualSpacing","mirrorIndents","suppressOverlap","jc","textDirection","textAlignment","textboxTightWrap","outlineLvl","divId","cnfStyle","rPr","sectPr","pPrChange"]);function Qs(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ks(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function Js(e){return e.localName??e.tagName}function el(e){return`${e.namespaceURI??""}\0${Js(e)}`}function tl(e,t){if(!e||Qs(e))return t;const r=function(e){const t=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===t?.namespaceURI&&"pPr"===Js(t)?t:void 0}(e),n=function(e){if(e){const t=(new Wt.DOMParser).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}">${e}</oasis:root>`,"application/xml").documentElement,r=t?Ks(t):[];if(1===r.length&&"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===r[0].namespaceURI&&"pPr"===Js(r[0]))return r[0]}return(new Wt.DOMParser).parseFromString(`<w:pPr xmlns:w="${Sr}"/>`,"application/xml").documentElement}(t);if(!r||!n)return t;!function(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];if(!n||"http://schemas.openxmlformats.org/officeDocument/2006/relationships"===n.namespaceURI)continue;const o=n.localName??n.name;(n.namespaceURI?t.hasAttributeNS(n.namespaceURI,o):t.hasAttribute(n.name))||(n.namespaceURI?t.setAttributeNS(n.namespaceURI,n.name,n.value):t.setAttribute(n.name,n.value))}}(r,n);const o=Ks(r),i=Ks(n),a=/* @__PURE__ */new Map;for(const u of i){const e=el(u),t=a.get(e)??[];t.push(u),a.set(e,t)}const s=/* @__PURE__ */new Map;for(const u of o){const e=el(u),t=s.get(e)??0;s.set(e,t+1);const r=a.get(e)?.[t];r&&ba(u,r)}const l=new Set(i.map(el)),c=o.filter(e=>{return!(t=e,"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===t.namespaceURI&&Ys.has(Js(t))||l.has(el(e)));var t});for(const u of c){const e=o.indexOf(u),t=o.slice(e+1).find(e=>l.has(el(e))),r=t?Ks(n).find(e=>el(e)===el(t))??null:null;n.insertBefore(u.cloneNode(!0),r)}return t||1!==n.attributes.length||0!==Ks(n).length?(new Wt.XMLSerializer).serializeToString(n):""}var rl=/* @__PURE__ */new Set(["pPr","r","hyperlink","fldSimple","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd"]);function nl(e){const t=[];for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];n?.nodeType===n.ELEMENT_NODE&&t.push(n)}return t}function ol(e){return e.localName??e.tagName}function il(e,t){const r=(new Wt.DOMParser).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:r="${_r}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!r)return;const n=nl(r);return 1===n.length&&"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===n[0].namespaceURI&&ol(n[0])===t?n[0]:void 0}function al(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function sl(e,t){const r=(n="pPr",nl(e).find(e=>"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===e.namespaceURI&&ol(e)===n));var n;if(!t)return r&&e.removeChild(r),!0;const o=il(t,"pPr");if(!o)return!1;const i=o.cloneNode(!0);return r?e.replaceChild(i,r):e.insertBefore(i,e.firstChild),!0}function ll(e,t,r,n){const o=To(e)?.xml;if(!o||n.hasOverrides||n.hasBoundaryTokens||e.dropCap||/\br:(?:id|embed|link)\s*=/.test(o))return;const i=function(e){const t=(new Wt.DOMParser).parseFromString(e,"application/xml").documentElement;return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"===t?.namespaceURI&&"p"===ol(t)?t:void 0}(o);if(!i||!function(e){for(let t=0;t<e.attributes.length;t+=1){const r=e.attributes[t];if(r&&!al(r)&&"http://schemas.openxmlformats.org/officeDocument/2006/relationships"!==r.namespaceURI)return!0}return nl(e).some(e=>{const t=ol(e);return"http://schemas.openxmlformats.org/wordprocessingml/2006/main"!==e.namespaceURI||!rl.has(t)})}(i))return;const a=function(e){const t=[],r=e=>{for(const n of nl(e)){const e=ol(n);"http://schemas.openxmlformats.org/wordprocessingml/2006/main"!==n.namespaceURI||"r"!==e?("http://schemas.openxmlformats.org/wordprocessingml/2006/main"!==n.namespaceURI||"pPr"!==e&&"p"!==e&&"tbl"!==e&&"txbxContent"!==e)&&r(n):t.push(n)}};return r(e),t}(i);if(a.length!==r.length)return;const s=r.map(e=>il(e,"r"));if(!s.some(e=>!e)&&sl(i,t)){for(let e=0;e<a.length;e+=1)a[e].parentNode?.replaceChild(s[e].cloneNode(!0),a[e]);return(new Wt.XMLSerializer).serializeToString(i)}}function cl(e,t){return e.rows.some(e=>e.cells.some(e=>e.blocks.some(e=>function(e,t){switch(e.type){case"paragraph":return Boolean(t.bookmarkEventsByParagraph?.has(e.id)||t.commentEventsByParagraph?.has(e.id));case"table":return cl(e,t);default:return R(e,"block")}}(e,t))))}function ul(e,t,r){switch(e.type){case"paragraph":return pl(e,t,r);case"table":return(e.style?.pageBreakBefore?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':"")+((function(e){const t=Lo(e)?.xml;return Boolean(t&&/<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(t))}(e)?void 0:function(e,t){const r=Lo(e);if(r&&!t.hasBoundaryTokens&&!wo(r.xml))return r.semanticSignature===Co(e)?r.xml:void 0}(e,{hasBoundaryTokens:cl(e,t)}))??Ha(e,(e,n)=>function(e,t,r,n){return"paragraph"===e.type?pl(e,r,n,{align:t.style?.horizontalAlign}):ul(e,r,n)}(e,n,t,r)));default:return R(e,"block")}}function dl(e,t,r){let n="",o=0;for(;o<e.length;){const i=e[o],a=i.sdtWrappers?.[0];if(!a){n+=ul(i,t,r),o+=1;continue}const s=[];let l=o;for(;l<e.length&&e[l].sdtWrappers?.[0]?.groupId===a.groupId;){const t=e[l].sdtWrappers.slice(1);s.push({...e[l],sdtWrappers:t.length>0?t:void 0}),l+=1}const c=dl(s,t,r);n+=`<w:sdt>${ca(a.sdtPr)}${a.sdtEndPrXml??""}<w:sdtContent>${c}</w:sdtContent></w:sdt>`,o=l}return n}function pl(e,t,r,n){const o=e.runs.length>0?e.runs:[{id:"",text:"",kind:"text"}],i=e.dropCap?function(e){const t=fs(e.style);return`<w:p><w:pPr><w:keepNext/><w:framePr w:dropCap="${e.type}" w:lines="${e.lines}" w:wrap="around" w:vAnchor="text" w:hAnchor="text"/><w:spacing w:after="0"/>${t?`<w:rPr>${r=t,r.replace(/^<w:rPr>/,"").replace(/<\/w:rPr>$/,"")}</w:rPr>`:""}</w:pPr><w:r>${t}${ms(e.text)}</w:r></w:p>`;var r}(e.dropCap):"",a=t.bookmarkEventsByParagraph?.get(e.id),s=t.commentEventsByParagraph?.get(e.id),l=[...(a??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Ci(e)})),...(s??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Ai(e)}))],c=function(e,t){const r=To(e);if(!(!r?.xml||!r.semanticSignature||t.hasOverrides||t.hasBoundaryTokens||wo(r.xml)||fo.test(r.xml)||ho.test(r.xml)))return r.semanticSignature===_o(e)?r.xml:void 0}(e,{hasOverrides:Boolean(n),hasBoundaryTokens:l.length>0});if(c)return c;const u=n=>Xs(n,t,e.style?.styleId,r,dl),d=0===l.length?o.map(u):void 0,p=0===l.length?Zs(o,u):function(e,t,r,n,o){const i=[...t].sort((e,t)=>e.offset-t.offset||e.seq-t.seq);let a=0,s=0,l=Zs(e,e=>{let t="";const l=s,c=l+e.text.length;for(;a<i.length&&i[a].offset<=l;)t+=i[a].xml,a+=1;if(function(e){return"text"===e.kind||"sym"===e.kind}(e)&&e.text.length>0){let s=l;for(;a<i.length&&i[a].offset<c;){const c=i[a];c.offset>s&&(t+=Xs({...e,text:e.text.slice(s-l,c.offset-l)},r,n,o,dl)),t+=c.xml,a+=1,s=c.offset}s<c&&(t+=Xs({...e,text:e.text.slice(s-l)},r,n,o,dl))}else t+=Xs(e,r,n,o,dl);return s=c,t});for(;a<i.length;)l+=i[a].xml,a+=1;return l}(o,l,t,e.style?.styleId,r),f=function(e){return To(e)?.attributes}(e),h=f?` ${f}`:"",m=rs(e,t.numberingInfo,r,n),g=function(e,t,r){const n=To(e)?.paragraphProperties;return!n||Qs(n.xml)?t:r||e.list||n.semanticSignature!==Io(e)?tl(n.xml,t):n.xml}(e,m,Boolean(n));if(d){const t=ll(e,g,d,{hasOverrides:Boolean(n),hasBoundaryTokens:!1});if(t)return t}return`${i}<w:p${h}>${g}${p}</w:p>`}function fl(e){if(0===e.length)return[hl()];const[t,...r]=e;return"paragraph"!==t.type?[hl(!0),t,...r]:[(n=t,{...n,runs:[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0},...n.runs],style:n.style?.styleId?n.style:{...n.style??{},styleId:"FootnoteText"}}),...r];var n}function hl(e=!0){return{id:"synthetic:footnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0}]:[],{id:"synthetic:footnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"FootnoteText"}}}function ml(e){const t=e.endnotes?.items;if(!t)return[];const r=/* @__PURE__ */new Map,n=Mi(t);for(const{run:o}of function(e){return qn(e,"endnoteReference")}(e)){const e=B(o);if(!e||r.has(e.endnoteId))continue;const i=t[e.endnoteId];i&&r.set(e.endnoteId,{endnoteId:e.endnoteId,docxId:n(i),endnote:i})}return Array.from(r.values())}function gl(e){if(0===e.length)return[wl()];const[t,...r]=e;return"paragraph"!==t.type?[wl(!0),t,...r]:[(n=t,{...n,runs:[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0},...n.runs],style:n.style?.styleId?n.style:{...n.style??{},styleId:"EndnoteText"}}),...r];var n}function wl(e=!0){return{id:"synthetic:endnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0}]:[],{id:"synthetic:endnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"EndnoteText"}}}var bl=["wholeTable","band1Horz","band2Horz","band1Vert","band2Vert","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function yl(e){const t={...e.borders?{...e.borders.borderTop?{borderTop:e.borders.borderTop}:{},...e.borders.borderLeft?{borderLeft:e.borders.borderLeft}:{},...e.borders.borderBottom?{borderBottom:e.borders.borderBottom}:{},...e.borders.borderRight?{borderRight:e.borders.borderRight}:{}}:{},...e.shading?{shading:e.shading}:{},...e.cellStyle};return Object.keys(t).length>0?Ji({id:"table-style-cell",blocks:[],style:t}):""}function vl(e,t){if("number"==typeof t)return`<w:${e} w:w="${Ar(t)??0}" w:type="dxa"/>`;if("string"==typeof t&&t.endsWith("%")){const r=Number.parseFloat(t);return Number.isFinite(r)?`<w:${e} w:w="${Math.round(50*r)}" w:type="pct"/>`:""}return"auto"===t?`<w:${e} w:w="0" w:type="auto"/>`:""}function xl(e){if(!e)return"";const t=[];void 0!==e.rowBandSize&&t.push(`<w:tblStyleRowBandSize w:val="${e.rowBandSize}"/>`),void 0!==e.colBandSize&&t.push(`<w:tblStyleColBandSize w:val="${e.colBandSize}"/>`);const r=vl("tblW",e.width);r&&t.push(r);const n=vl("tblInd",e.indentLeft);n&&t.push(n);const o=vl("tblCellSpacing",e.cellSpacing);if(o&&t.push(o),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),e.layout&&t.push(`<w:tblLayout w:type="${e.layout}"/>`),void 0!==e.bidiVisual&&t.push(`<w:bidiVisual w:val="${e.bidiVisual?"1":"0"}"/>`),e.defaultCellMargins){const r=Object.entries(e.defaultCellMargins).map(([e,t])=>`<w:${e} w:w="${Ar(t)??0}" w:type="dxa"/>`).join("");r&&t.push(`<w:tblCellMar>${r}</w:tblCellMar>`)}if(e.borders){const{borders:r}=e,n=Jo.filter(([,e])=>!!r[e]).map(([e,t])=>`<w:${e} ${ji(r[t])}`).join("");n&&t.push(`<w:tblBorders>${n}</w:tblBorders>`)}return t.length>0?`<w:tblPr>${zi(t,Fi)}</w:tblPr>`:""}function El(e,t){const r=[],n=t.paragraphStyle?ts(t.paragraphStyle):"";n&&r.push(n);const o=t.textStyle?fs(t.textStyle):"";o&&r.push(o);const i=xl(t.tableStyle);i&&r.push(i);const a=t.rowStyle?ra(t.rowStyle):"";a&&r.push(a);const s=yl(t);return s&&r.push(s),0===r.length?"":`<w:tblStylePr w:type="${Nr(e)}">${r.join("")}</w:tblStylePr>`}function Sl(e){const t=[];t.push(`<w:name w:val="${Nr(e.name)}"/>`),e.basedOn&&t.push(`<w:basedOn w:val="${Nr(e.basedOn)}"/>`),e.nextStyle&&t.push(`<w:next w:val="${Nr(e.nextStyle)}"/>`),void 0!==e.uiPriority&&t.push(`<w:uiPriority w:val="${Math.max(0,Math.floor(e.uiPriority))}"/>`);for(const r of["qFormat","semiHidden","unhideWhenUsed"]){const n=e[r];void 0!==n&&t.push(n?`<w:${r}/>`:`<w:${r} w:val="off"/>`)}if(("paragraph"===e.type||"table"===e.type)&&e.paragraphStyle){const r=ts(e.paragraphStyle);r&&t.push(r)}if(e.textStyle){const r=fs(e.textStyle);r&&t.push(r)}if("table"===e.type&&e.tableStyle){const r=e.tableStyle,n=xl(r);if(n&&t.push(n),r.conditionalFormats){const e=[...bl.filter(e=>e in r.conditionalFormats),...Object.keys(r.conditionalFormats).filter(e=>!bl.includes(e))];for(const n of e){const e=r.conditionalFormats[n];if(e){const r=El(n,e);r&&t.push(r)}}}}return`<w:style w:type="${"character"===e.type?"character":"table"===e.type?"table":"paragraph"}" w:styleId="${Nr(e.id)}"${e.isDefault?' w:default="1"':""}${void 0!==e.customStyle?` w:customStyle="${e.customStyle?"1":"0"}"`:""}>${zi(t,Li)}</w:style>`}function kl(e,t,r,n,o,i,a,s,l,c=!1){const u=n.map(e=>{const t="header"===e.kind?"application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml":"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";return`<Override PartName="/word/${e.path}" ContentType="${t}"/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>${function(e){const t=/* @__PURE__ */new Set;let r="";for(const n of e){const e=n.toLowerCase();if(t.has(e))continue;const o=Wo[e];o&&(t.add(e),r+=`<Default Extension="${e}" ContentType="${o}"/>`)}return r}(t)}<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>${a?'<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>':""}${e?'<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>':""}${r?'<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>':""}${o?'<Override PartName="/word/footnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"/>':""}${i?'<Override PartName="/word/endnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"/>':""}${s?'<Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/><Override PartName="/word/commentsExtended.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml"/>':""}${l?'<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>':""}${c?'<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>':""}${u}</Types>`}var _l={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},Il={continuous:"continuous",eachSection:"eachSect"};function Nl(e,t){if(!t)return null;const r=[];return t.numberFormat&&r.push(`<w:numFmt w:val="${_l[t.numberFormat]}"/>`),void 0!==t.startAt&&r.push(`<w:numStart w:val="${Math.max(1,t.startAt)}"/>`),t.restart&&r.push(`<w:numRestart w:val="${Il[t.restart]}"/>`),r.length>0?`<w:${e}>${r.join("")}</w:${e}>`:null}function Tl(e,t,r,n,o,i,a){const s=[],l=Ar(t);null!==l&&Number.isFinite(l)&&l>0&&s.push(`<w:defaultTabStop w:val="${l}"/>`),i?.autoHyphenation&&s.push("<w:autoHyphenation/>"),void 0!==i?.consecutiveHyphenLimit&&i.consecutiveHyphenLimit>=0&&s.push(`<w:consecutiveHyphenLimit w:val="${i.consecutiveHyphenLimit}"/>`);const c=Ar(i?.hyphenationZone);null!==c&&s.push(`<w:hyphenationZone w:val="${c}"/>`),i?.doNotHyphenateCaps&&s.push("<w:doNotHyphenateCaps/>");const u=Nl("footnotePr",r);u&&s.push(u);const d=Nl("endnotePr",n);return d&&s.push(d),e&&s.push("<w:evenAndOddHeaders/>"),o&&s.push("<w:compat><w:allowSpaceOfSameStyleInTable/></w:compat>"),s.push(function(e){if(!e)return"";const t=Object.entries(e);if(t.length>256)return"";const r=/* @__PURE__ */new Set,n=[];for(const[o,i]of t){if(!Dr(o)||"string"!=typeof i||!Mr(i))return"";const e=o.toLowerCase();if(r.has(e)||"__proto__"===e||"prototype"===e||"constructor"===e)return"";r.add(e),n.push('<w:docVar w:name="'+Nr(o)+'" w:val="'+Nr(i)+'"/>')}return n.length?"<w:docVars>"+n.join("")+"</w:docVars>":""}(a)),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:settings xmlns:w="${Sr}">${s.join("")}</w:settings>`}function Cl(e,t){let r="";for(const n of t)r+=`<Relationship Id="${n.rId}" Type="${_r}/hyperlink" Target="${Nr(n.href)}" TargetMode="External"/>`;for(const n of e){const e="linked"===n.kind?' TargetMode="External"':"";r+=`<Relationship Id="${n.rId}" Type="${_r}/image" Target="${Nr(n.target)}"${e}/>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${kr}">${r}</Relationships>`}function Al(e,t){t(e);for(const r of e.runs)"textBox"===r.kind&&Rl(r.textBox.blocks,t)}function Rl(e,t){for(const r of e)switch(r.type){case"paragraph":Al(r,t);break;case"table":for(const e of r.rows)for(const r of e.cells)Rl(r.blocks,t);break;default:R(r,"block")}}function $l(e,t){for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes.item(r);if(n?.localName===t)return n.value}}function Dl(e,t,r){if(!e)return 0;const n=(new Wt.DOMParser).parseFromString(e,"application/xml");let o=0;for(const i of Array.from(n.getElementsByTagNameNS(Sr,t))){const e=$l(i,r);if(!e||!/^\d+$/.test(e))continue;const t=Number.parseInt(e,10);Number.isSafeInteger(t)&&(o=Math.max(o,t))}return o}function Ml(e,t){return void 0!==e&&Number.isSafeInteger(e)&&e>=t}function Ol(e){const t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,n=[],o=/* @__PURE__ */new Set,i=/* @__PURE__ */new Set,a=function(e){const t=e.sourcePackage;if(!t)return;const r=t.parts[t.mainDocumentPart]?.relationships?.find(e=>"External"!==e.targetMode&&e.type.endsWith("/numbering")&&Boolean(e.resolvedTarget)),n=r?.resolvedTarget?t.parts[r.resolvedTarget]:void 0;return"xml"===n?.kind?n.data:void 0}(e);let s=Math.max(1,Dl(a,"abstractNum","abstractNumId")+1),l=Math.max(1,Dl(a,"num","numId")+1);const c=e=>{if(Ml(e,0)&&!o.has(e))return o.add(e),e;for(;o.has(s);)s+=1;const t=s;return s+=1,o.add(t),t},u=e=>{if(Ml(e,1)&&!i.has(e))return i.add(e),e;for(;i.has(l);)l+=1;const t=l;return l+=1,i.add(t),t},d=[],p=e=>{e.list&&d.push(e)};for(const f of ve(e))Rl(f.blocks,p),f.header&&Rl(f.header,p),f.firstPageHeader&&Rl(f.firstPageHeader,p),f.evenPageHeader&&Rl(f.evenPageHeader,p),f.footer&&Rl(f.footer,p),f.firstPageFooter&&Rl(f.firstPageFooter,p),f.evenPageFooter&&Rl(f.evenPageFooter,p);for(const f of d){const e=f.list,o=Math.max(0,e.level??0),i=e.bulletGlyph??"",a=e.instanceId?`instance:${e.instanceId}`:`legacy:${e.kind}:${o}:${i}`;let s=r.get(a);if(!s){const t=Yo(e),o=void 0!==t?.sourceNumId&&e.instanceId===String(t.sourceNumId);s={abstractNumId:c(o?t.sourceAbstractNumId:void 0),numId:u(o?t.sourceNumId:void 0),levels:[]},r.set(a,s),n.push(s)}if(!s.levels.some(e=>e.level===o)){const t=Yo(e),r=Qo(e);s.levels.push({kind:e.kind,level:o,format:e.format,startAt:e.startAt,levelText:e.levelText,suffix:e.suffix,alignment:e.alignment,legal:e.legal,bulletGlyph:e.bulletGlyph,bulletFont:e.bulletFont,...t?{ooxml:{...t,...r?{format:r}:{format:void 0}}}:{}})}t.set(f.id,{numId:s.numId,level:o})}return{numberingInfo:t,definitions:n}}var Pl=`xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:r="${_r}"`;function Fl(e,t,r,n){const o=Tr(e.width,12240),i=Tr(e.height,15840),a=e.margins,s="landscape"===e.orientation?' w:orient="landscape"':"",l=[t?.header?.first?`<w:headerReference w:type="first" r:id="${t.header.first.relId}"/>`:"",t?.header?.even?`<w:headerReference w:type="even" r:id="${t.header.even.relId}"/>`:"",t?.header?.default?`<w:headerReference w:type="default" r:id="${t.header.default.relId}"/>`:"",t?.footer?.first?`<w:footerReference w:type="first" r:id="${t.footer.first.relId}"/>`:"",t?.footer?.even?`<w:footerReference w:type="even" r:id="${t.footer.even.relId}"/>`:"",t?.footer?.default?`<w:footerReference w:type="default" r:id="${t.footer.default.relId}"/>`:""].join(""),c=t?.header?.first||t?.footer?.first?"<w:titlePg/>":"",u=n&&"nextPage"!==n?`<w:type w:val="${n}"/>`:"",d=e.columns;let p="";if(d&&d.count>1){const e=Tr(d.space,0),t=d.separator?' w:sep="1"':"";if(!1===d.equalWidth&&d.columns?.length){const r=d.columns.map(e=>`<w:col w:w="${Tr(e.width,0)}" w:space="${Tr(e.space,0)}"/>`).join("");p=`<w:cols w:num="${d.count}" w:space="${e}" w:equalWidth="0"${t}>${r}</w:cols>`}else p=`<w:cols w:num="${d.count}" w:space="${e}"${t}/>`}const f=r.pageNumbering;let h="";if(f){const e=[];void 0!==f.start&&e.push(`w:start="${f.start}"`),f.format&&e.push(`w:fmt="${Nr(f.format)}"`),f.chapterStyle&&e.push(`w:chapStyle="${Nr(f.chapterStyle)}"`),f.chapterSeparator&&e.push(`w:chapSep="${Nr(f.chapterSeparator)}"`),e.length>0&&(h=`<w:pgNumType ${e.join(" ")}/>`)}const m=r.verticalAlignment&&"top"!==r.verticalAlignment?`<w:vAlign w:val="${r.verticalAlignment}"/>`:"",g=r.bidi?"<w:bidi/>":"",w=r.pageBorder,b=w?.color.replace("#","").toUpperCase(),y=w?`<w:pgBorders w:offsetFrom="page"><w:top w:val="${w.style}" w:sz="${Math.max(1,Math.round(8*w.width))}" w:space="${Math.max(0,Math.round(w.distance??0))}" w:color="${b}"/><w:left w:val="${w.style}" w:sz="${Math.max(1,Math.round(8*w.width))}" w:space="${Math.max(0,Math.round(w.distance??0))}" w:color="${b}"/><w:bottom w:val="${w.style}" w:sz="${Math.max(1,Math.round(8*w.width))}" w:space="${Math.max(0,Math.round(w.distance??0))}" w:color="${b}"/><w:right w:val="${w.style}" w:sz="${Math.max(1,Math.round(8*w.width))}" w:space="${Math.max(0,Math.round(w.distance??0))}" w:color="${b}"/></w:pgBorders>`:"",v=r.propertyRevision?`<w:sectPrChange ${Ya(r.propertyRevision)}>${Fl(r.propertyRevision.previous.pageSettings,void 0,(x=r.propertyRevision.previous,{id:"section:revision",blocks:[],pageSettings:x.pageSettings,...void 0!==x.pageBorder?{pageBorder:x.pageBorder}:{},...x.pageNumbering?{pageNumbering:x.pageNumbering}:{},...x.verticalAlignment?{verticalAlignment:x.verticalAlignment}:{},...void 0!==x.bidi?{bidi:x.bidi}:{}}),r.propertyRevision.previous.nextBreakType)}</w:sectPrChange>`:"";var x;return`<w:sectPr>${l}${c}${u}<w:pgSz w:w="${o}" w:h="${i}"${s}/><w:pgMar w:top="${Tr(a.top,1440)}" w:right="${Tr(a.right,1440)}" w:bottom="${Tr(a.bottom,1440)}" w:left="${Tr(a.left,1440)}" w:header="${Tr(a.header,720)}" w:footer="${Tr(a.footer,720)}" w:gutter="${Tr(a.gutter,0)}"/>${h}${p}${m}${g}${y}${v}</w:sectPr>`}function Ll(e,t,r){const n=ve(e),o=n.map((o,i)=>dl(o.blocks,t,e.styles)+Fl(o.pageSettings,r[i],o,n[i+1]?.breakType)).join(""),i=e.design?.pageColor?.replace("#","").toUpperCase();return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${Pl}>${i?`<w:background w:color="${i}"/>`:""}<w:body>${o}</w:body></w:document>`}function Bl(e,t,r,n,o){const i="header"===e?"hdr":"ftr",a="header"===e&&"text"===o?.kind&&o.text?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml"><v:shape type="#_x0000_t136" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#94a3b8"}" fillopacity="${o.opacity??.25}"><v:textpath on="true" string="${Nr(o.text)}" style="font-family:${Nr(o.fontFamily??"Arial")};font-size:${o.fontSize??48}pt"/></v:shape></w:pict>`:"header"===e&&"image"===o?.kind&&r.images.some(e=>"__watermark"===e.runId)?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><v:shape type="#_x0000_t75" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#ffffff"}" fillopacity="${o.opacity??.25}" stroked="f"><v:imagedata r:id="rIdWatermark" o:title="Watermark"/></v:shape></w:pict>`:"";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${i} ${Pl}>${a}${dl(t,r,n)}</w:${i}>`}function Ul(e,t){return JSON.stringify([e,t])}function zl(e,t,r){const n=/* @__PURE__ */new Map;if(new Set(e.map(e=>e.id)).size!==e.length)return n;if(e.some(e=>e.runs.some(e=>"opaque"===e.kind||"textBox"===e.kind)))return n;const o=oo(e);if(o.diagnostics.length)return n;if(r&&o.spans.some(e=>{if(!e.end)return!0;const t=r[e.begin.paragraphIndex];for(let n=e.begin.paragraphIndex;n<=e.end.paragraphIndex;n++)if(r[n]!==t)return!0;return!1}))return n;const i=/* @__PURE__ */new Map,a=/* @__PURE__ */new Map;for(const u of o.spans){if("SEQ"!==Dt(u.code.map(e=>"instruction"===e.kind?e.raw:"").join("")).command)continue;if(null!==u.parentIndex||!u.end||u.begin.paragraphIndex!==u.end.paragraphIndex)return n;const e=a.get(u.begin.paragraphIndex)??[];e.push(u),a.set(u.begin.paragraphIndex,e)}const s=Array.from({length:9},()=>0);let l=!1;const c=e=>{if(void 0!==e.style?.outlineLevel)return e.style.outlineLevel;let r=e.style?.styleId;const n=/* @__PURE__ */new Set;for(;r;){if(n.has(r))return;n.add(r);const e=t?.[r];if(!e){const e=/^heading\s*([1-9])$/i.exec(r);return e?Number(e[1])-1:"normal"===r.toLowerCase()||"caption"===r.toLowerCase()?null:void 0}if(void 0!==e.paragraphStyle?.outlineLevel)return e.paragraphStyle.outlineLevel;r=e.basedOn}return null};for(const[u,d]of e.entries()){const e=c(d);if(void 0===e)l=!0;else if("number"==typeof e&&Number.isInteger(e)&&e>=0&&e<9)for(let t=e;t<9;t++)s[t]++;for(const t of a.get(u)??[]){const e=t.code.map(e=>"instruction"===e.kind?e.raw:"").join(""),r=Dt(e).tokens[1]?.value.toLowerCase();if(!r)/* @__PURE__ */return new Map;const o=Bn(e),a=i.get(r);if("SEQ"!==o?.type||!t.separator||t.code.some(e=>"instruction"!==e.kind)||1!==t.result.length||"run"!==t.result[0]?.kind||"text"!==d.runs[t.result[0].point.runIndex]?.kind||d.runs.some(e=>e.revision||e.revisionRangeMarker||e.sdtWrappers?.length)||d.sdtWrappers?.length||d.numberingRevision){i.set(r,{});continue}const c=t.result[0].point.runIndex,u=void 0===o.headingLevel?void 0:s[o.headingLevel-1];let p;if(p="reset"===o.operation?o.reset:"repeat"===o.operation?a?.value:void 0!==o.headingLevel?l||a&&void 0===a.value?void 0:a?a.headingLevel!==o.headingLevel?void 0:a.headingGeneration!==u?1:a.value+1:1:a?void 0===a.value?void 0:a.value+1:1,void 0===p||!Number.isSafeInteger(p)||p<1||p>1e6)i.set(r,{});else{if(t.beginMarker.fieldLock){const e=d.runs[c].text;if(jn(o,{sequenceValue:p},e).text!==e){i.set(r,{});continue}}else n.set(Ul(d.id,c),p);i.set(r,{value:p,headingLevel:"repeat"===o.operation?a?.headingLevel:o.headingLevel,headingGeneration:"repeat"===o.operation?a?.headingGeneration:u})}}}return n}function jl(e){const t=[],r=[],n=(e,o)=>{for(const i of e)if("paragraph"===i.type)t.push(i),r.push(o);else for(const e of i.rows)for(const t of e.cells)n(t.blocks,"cell:"+t.id)};return ve(e).forEach((e,t)=>n(e.blocks,"body:"+t)),zl(t,e.styles,r)}function ql(e){return{id:s("").id,text:"",kind:"fieldChar",fieldChar:{kind:e}}}function Hl(e,t,r){const n=u([{text:`${t} `},{text:String(r)},{text:e?`: ${e}`:""}]);var o;return n.style={styleId:"Caption",align:"center"},n.runs=[n.runs[0],ql("begin"),(o=" SEQ Figure \\* ARABIC ",{id:s("").id,text:"",kind:"fieldInstruction",fieldInstruction:o}),ql("separate"),n.runs[1],ql("end"),n.runs[2]],n}function Wl(e){return!!e&&("caption"===e.style?.styleId?.toLowerCase()&&e.runs.some(e=>{const t=F(e);return void 0!==t&&new RegExp("\\bSEQ\\s+Figure\\b","i").test(t)}))}function Vl(e){if(!Wl(e))return"";let t=!1,r="";for(const n of e.runs)t?r+=n.text:"end"===P(n)?.kind&&(t=!0);return r.replace(/^[:\-\s]+/,"")}function Gl(e){if(!Wl(e)||e.sdtWrappers?.length||e.numberingRevision||e.runs.some(e=>e.revision||e.revisionRangeMarker||e.sdtWrappers?.length))return;const t=oo([e]);if(t.diagnostics.length||1!==t.spans.length)return;const r=t.spans[0];if(null!==r.parentIndex||!r.end||!r.separator||r.code.some(e=>"instruction"!==e.kind)||1!==r.result.length||"run"!==r.result[0]?.kind)return;const n=Bn(r.code.map(e=>"instruction"===e.kind?e.raw:"").join(""));if("SEQ"!==n?.type||"figure"!==n.identifier)return;const o=r.result[0].point.runIndex;return"text"!==e.runs[o]?.kind||o<=r.separator.runIndex||o>=r.end.runIndex?void 0:{field:n,begin:r.begin.runIndex,end:r.end.runIndex,result:o,locked:!!r.beginMarker.fieldLock}}function Xl(e,t,r){const n=Gl(e);if(!n)return e;const o=e.runs.slice(0,n.begin),i=e.runs.slice(n.end+1),a=e=>e.every(e=>"text"===e.kind&&!e.revision&&!e.revisionRangeMarker&&!e.sdtWrappers?.length);if(!a(o)||!a(i))return e;const l=r+" ",c=t?": "+t:"";return o.map(e=>e.text).join("")===l&&i.map(e=>e.text).join("")===c?e:{...e,runs:[{...o[0]??s(""),text:l},...e.runs.slice(n.begin,n.end+1),{...i[0]??s(""),text:c}]}}function Zl(e,t){const r=Gl(e);if(!r||r.locked)return e;const n=t.get(Ul(e.id,r.result));if(void 0===n)return e;const o=Tt(n,r.field.format);return e.runs[r.result].text===o?e:{...e,runs:e.runs.map((e,t)=>t===r.result?{...e,text:o}:e)}}function Yl(e,t){const r=zl(e,t);return e.map(e=>zo(Zl(e,r)))}function Ql(e){const t=jl(e);if(!t.size)return e;let r=!1;const n=e=>e.map(e=>{if("paragraph"===e.type){const n=Zl(e,t);return n!==e&&(r=!0),n}let o=!1;const i=e.rows.map(e=>{let t=!1;const r=e.cells.map(e=>{const r=n(e.blocks);return r.some((t,r)=>t!==e.blocks[r])?(t=!0,{...e,blocks:r}):e});return t?(o=!0,{...e,cells:r}):e});return o?{...e,rows:i}:e}),o=ve(e).map(e=>{const t=n(e.blocks);return t.some((t,r)=>t!==e.blocks[r])?{...e,blocks:t}:e});return r?{...e,sections:o}:e}function Kl(e){return ne(e)}var Jl={oasis:{accent:"0F766E",heading:"115E59",body:"1F2937"},office:{accent:"4472C4",heading:"2F5597",body:"1F2937"},facet:{accent:"8064A2",heading:"604A7B",body:"262626"},integral:{accent:"70AD47",heading:"548235",body:"1F2937"},ion:{accent:"ED7D31",heading:"C55A11",body:"262626"},retrospect:{accent:"5B9BD5",heading:"2F75B5",body:"1F2937"}};var ec="http://schemas.openxmlformats.org/officeDocument/2006/relationships",tc="http://schemas.openxmlformats.org/wordprocessingml/2006/main",rc=(e,t)=>Object.hasOwn(e.parts,t),nc=e=>/^[A-Za-z0-9_.\-/]+$/.test(e)&&!e.startsWith("/")&&!e.split("/").some(e=>!e||"."===e||".."===e),oc=e=>/^[A-Za-z0-9_.\-/]+$/.test(e);function ic(e){if(/<!\s*(?:DOCTYPE|ENTITY)\b/i.test(e))throw Error("Unsafe XML declaration");const t=new Wt.DOMParser({onError:()=>{throw Error("Malformed XML")}}).parseFromString(e,"application/xml").documentElement;if(!t)throw Error("Missing XML root");return t}function ac(e){const t=[],r=[e];for(;r.length;){const e=r.pop();t.push(e);for(const t of Array.from(e.childNodes))1===t.nodeType&&r.push(t)}return t}function sc(e,t){const r=e.split("/").slice(0,-1),n=t.split("/");for(;r.length&&n.length&&r[0]===n[0];)r.shift(),n.shift();const o="../".repeat(r.length)+n.join("/");if(Vr(e,o)!==t)throw Error("Cannot rebase target");return o}function lc(e,t,r){if(t.ownerPath===r)throw Error("Same-story move does not need relationship relocation");if(!nc(t.ownerPath)||!nc(r)||!rc(e,r))throw Error("Unknown or unsafe destination story");const n=Ii(e);if(n.diagnostics.some(e=>"error"===e.level))throw Error("Opaque source inventory has errors");const o=n.objects.filter(e=>e.signature===t.signature),i=1===o.length?o[0]:void 0;if(!i||i.ownerPath!==t.ownerPath||i.ordinal!==t.ordinal)throw Error("Ambiguous original object");const a=e.parts[r],s=e.parts[e.mainDocumentPart],l=t=>{const r=e.parts[t];if(!r||"xml"!==r.kind)return!1;const n=ic(r.data);if(n.namespaceURI!==tc)return!1;if(t===e.mainDocumentPart)return"document"===n.localName;const o="hdr"===n.localName?"header":"ftr"===n.localName?"footer":void 0;return Boolean(o&&r.contentType==="application/vnd.openxmlformats-officedocument.wordprocessingml."+o+"+xml"&&s?.relationships?.some(e=>"External"!==e.targetMode&&e.type===ec+"/"+o&&e.resolvedTarget===t))};if(!l(i.ownerPath)||!l(r))throw Error("Unsupported or unlinked story");if(i.partPaths.includes(r)||i.partPaths.includes(i.ownerPath))throw Error("Story-dependent object closure");const c=ic(i.fragmentXml),u=ic(a.data),d="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",p=new Set(ac(u).filter(e=>e.namespaceURI===d&&"docPr"===e.localName).map(e=>e.getAttribute("id")));if(ac(c).some(e=>e.namespaceURI===d&&"docPr"===e.localName&&p.has(e.getAttribute("id"))))throw Error("Destination drawing ID collision");const f=e.parts[i.ownerPath]?.relationships??[],h=a.relationships??[],m=new Set(h.map(e=>e.id));if(m.size!==h.length)throw Error("Duplicate destination relationship IDs");const g=ac(u).flatMap(e=>Array.from(e.attributes).map(e=>e.value));let w=1;const b=()=>{let e;do{e="rIdOasisOpaque"+w++}while(m.has(e)||a.data.includes(e)||g.some(t=>t.includes(e)));return m.add(e),e},y=/* @__PURE__ */new Map,v=[];for(const k of i.relationshipIds){const t=f.filter(e=>e.id===k),n=1===t.length?t[0]:void 0;if(!(n&&"External"!==n.targetMode&&n.resolvedTarget&&oc(n.target)&&nc(n.resolvedTarget)&&rc(e,n.resolvedTarget)&&Vr(i.ownerPath,n.target)===n.resolvedTarget))throw Error("Unsupported or ambiguous direct relationship "+k);const o=b();y.set(k,o),v.push({...n,id:o,target:sc(r,n.resolvedTarget),targetMode:"Internal"})}const x=/* @__PURE__ */new Set;for(const k of ac(c))for(const e of Array.from(k.attributes)){const t=e.namespaceURI===ec||"http://purl.oclc.org/ooxml/officeDocument/relationships"===e.namespaceURI||"urn:schemas-microsoft-com:office:office"===e.namespaceURI&&"relid"===e.localName,r=y.get(e.value);if(t&&r)x.add(e.value),k.setAttributeNS(e.namespaceURI,e.name,r);else{if(!t&&"http://www.w3.org/2000/xmlns/"!==e.namespaceURI&&[...y.keys()].some(t=>e.value===t))throw Error("Unknown attribute may carry a relationship reference");if(t&&e.value&&!r)throw Error("Unmapped relationship reference")}}if(x.size!==y.size)throw Error("Source relationship reference missing");const E=_i(c);if(!E||E.objectKind!==i.kind)throw Error("Relocation changed object kind");const S=xi({...e,parts:{...e.parts,[r]:{...a,relationships:[...h,...v]}}},r,E.relationshipIds);if(S.issues.length||JSON.stringify(S.partPaths)!==JSON.stringify(i.partPaths))throw Error("Relocated relationship closure differs");return{sourceOwner:i.ownerPath,destinationOwner:r,sourceOrdinal:i.ordinal,sourceSignature:i.signature,destinationRun:E,addedRelationships:v,idMapping:[...y].map(([e,t])=>({from:e,to:t})),sharedPartPaths:[...i.partPaths]}}function cc(e,t){const r=e.parts[e.mainDocumentPart];if(!r||"xml"!==r.kind)throw Error("Missing main story");const n=ac(ic(r.data)).filter(e=>e.namespaceURI===tc&&"sectPr"===e.localName&&!(1===e.parentNode?.nodeType&&"sectPrChange"===e.parentNode.localName));if(1!==n.length)throw Error("Only one original section is supported");if("main"===t)return e.mainDocumentPart;const o=Array.from(n[0].childNodes).filter(e=>1===e.nodeType&&e.namespaceURI===tc&&["headerReference","footerReference"].includes(e.localName??"")),i=o.filter(e=>e.localName===t+"Reference"&&"default"===e.getAttributeNS(tc,"type"));if(1!==i.length)throw Error("Missing or ambiguous default story");const a=i[0].getAttributeNS(ec,"id"),s=(r.relationships??[]).filter(e=>e.id===a&&e.type===ec+"/"+t&&"External"!==e.targetMode),l=1===s.length?s[0].resolvedTarget:void 0;if(!l||!rc(e,l))throw Error("Unresolved story owner");if(1!==o.filter(e=>(r.relationships??[]).some(t=>t.id===e.getAttributeNS(ec,"id")&&t.resolvedTarget===l)).length)throw Error("Shared or aliased story");return l}function uc(e,t,r,n){const o=[],i=/* @__PURE__ */new Map,a=/* @__PURE__ */new Map,s=[],l=/* @__PURE__ */new Map;return Rl(e,e=>{for(const t of e.runs){const e=t.styles?.link;if(e&&!e.startsWith("#")&&!l.has(e)){const t=`rIdLink${s.length+1}`;l.set(e,t),s.push({rId:t,href:e})}if("textBox"!==t.kind||a.has(t.id)||(a.set(t.id,r.nextTextBoxDocPrId),r.nextTextBoxDocPrId+=1),"image"!==t.kind)continue;const c=r.nextImageId,u=`rIdImg${c}`,d={rId:u,runId:t.id,cx:Math.round(t.image.width*x),cy:Math.round(t.image.height*x),alt:t.image.alt,crop:t.image.crop,cropShape:t.image.cropShape,cropFit:t.image.cropFit,fillMode:t.image.fillMode,border:t.image.border,rotation:t.image.rotation,flipH:t.image.flipH,flipV:t.image.flipV,transparency:t.image.transparency,floating:t.image.floating,wrapPolygon:t.image.wrapPolygon};if(t.image.linkedSrc){o.push({...d,kind:"linked",target:t.image.linkedSrc}),i.set(t.id,u),r.nextImageId+=1;continue}const p=be(n,t.image.src).match(/^data:([^;,]+);base64,(.*)$/);if(!p)continue;const f=Xo(p[1]);if(!f)continue;const h=p[2],m=`media/image${c}.${f}`;o.push({...d,kind:"embedded",target:m,base64:h}),i.set(t.id,u),r.nextImageId+=1}}),{authorizedOpaqueFragments:r.authorizedOpaqueFragments,numberingInfo:t.numberingInfo,definitions:t.definitions,images:o,imageMap:i,textBoxDocPrIds:a,hyperlinks:s,hyperlinkMap:l}}function dc(e,t,r){r&&(e.file(`word/${t}.xml`,r.xml),(r.partContext.images.length>0||r.partContext.hyperlinks.length>0)&&e.file(`word/_rels/${t}.xml.rels`,Cl(r.partContext.images,r.partContext.hyperlinks)))}async function pc(e){return hn(await Dn(await hc(e),e),e)}async function fc(e,t){const r=Ii(t),n=r.diagnostics.filter(e=>"error"===e.level);if(n.length)throw new Ti(n);const o=new Map(r.objects.map(e=>[e.fragmentXml,{signature:e.signature,kind:e.kind,relationshipIds:e.relationshipIds}])),i=e.opaqueRelocationIntent;if(!i)return hc(e,o);const a=lc(t,i,i.destinationOwner).destinationRun;return hc(e,new Map([...o,[a.fragmentXml,{signature:a.signature,kind:a.objectKind,relationshipIds:a.relationshipIds}]]))}async function hc(e,t){e=Ql(e);const r=new Br.default,n=Ol(e),o={authorizedOpaqueFragments:t,nextImageId:1,nextTextBoxDocPrId:1000001},i=ve(e),a=function(e){const t=e.design?.watermark;if("image"!==t?.kind||!t.src)return;const r=be(e,t.src).match(/^data:([^;,]+);base64,(.*)$/);if(!r)return;const n=Xo(r[1]);return n?{rId:"rIdWatermark",runId:"__watermark",kind:"embedded",target:`media/watermark.${n}`,base64:r[2],cx:1,cy:1}:void 0}(e),s=function(e){const t=e.footnotes?.items;if(!t)return[];const r=/* @__PURE__ */new Map,n=Mi(t);for(const{run:o}of Vn(e)){const e=L(o);if(!e||r.has(e.footnoteId))continue;const i=t[e.footnoteId];i&&r.set(e.footnoteId,{footnoteId:e.footnoteId,docxId:n(i),footnote:i})}return Array.from(r.values())}(e),l=function(e){const t=/* @__PURE__ */new Map;for(const r of e)t.set(r.footnoteId,r.docxId);return t}(s),c=s.length>0,u=ml(e),d=function(e){const t=/* @__PURE__ */new Map;for(const r of e)t.set(r.endnoteId,r.docxId);return t}(u),p=u.length>0,f=function(e){const t=e.bookmarks;if(!t||0===t.order.length)return;const r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Set;for(const s of t.order){const e=t.items[s];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!n.has(o)&&(r.set(s,o),n.add(o))}let o=0;for(const s of t.order)if(!r.has(s)){for(;n.has(o);)o+=1;r.set(s,o),n.add(o),o+=1}const i=/* @__PURE__ */new Map,a=(e,t)=>{const r=i.get(e);r?r.push(t):i.set(e,[t])};for(const s of t.order){const e=t.items[s];if(!e)continue;const n=r.get(s);e.start&&a(e.start.paragraphId,{kind:"start",offset:e.start.offset,seq:e.start.seq??0,wId:n,name:e.name,...void 0!==e.colFirst?{colFirst:e.colFirst}:{},...void 0!==e.colLast?{colLast:e.colLast}:{}}),e.end&&a(e.end.paragraphId,{kind:"end",offset:e.end.offset,seq:e.end.seq??0,wId:n})}return i}(e),h=function(e){const t=e.comments;if(!t||0===t.order.length)return;const r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Set;for(const l of t.order){const e=t.items[l];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!n.has(o)&&(r.set(l,o),n.add(o))}let o=0;for(const l of t.order)if(!r.has(l)){for(;n.has(o);)o+=1;r.set(l,o),n.add(o),o+=1}const i=/* @__PURE__ */new Map,a=(e,t)=>{const r=i.get(e);r?r.push(t):i.set(e,[t])},s=[];return t.order.forEach((e,n)=>{const o=t.items[e];if(!o)return;const i=r.get(e),l=(1073741824+n).toString(16).toUpperCase();s.push({comment:o,wId:i,paraId:l}),o.start&&a(o.start.paragraphId,{kind:"start",offset:o.start.offset,seq:o.start.seq??0,wId:i}),o.end&&(a(o.end.paragraphId,{kind:"end",offset:o.end.offset,seq:o.end.seq??0,wId:i}),a(o.end.paragraphId,{kind:"reference",offset:o.end.offset,seq:(o.end.seq??0)+.5,wId:i}))}),{eventsByParagraph:i,comments:s}}(e),m=e=>(e.footnoteIdMap=l,e.endnoteIdMap=d,e.bookmarkEventsByParagraph=f,e.commentEventsByParagraph=h?.eventsByParagraph,e),g=m(uc(i.flatMap(e=>e.blocks),n,o,e)),w=void 0!==h,b=[],y=i.map(()=>({}));let v=1,x=1;i.forEach((t,r)=>{const i=(t,i,s)=>{if(!(s&&0!==s.length||"header"===t&&"text"===e.design?.watermark?.kind||"header"===t&&void 0!==a))return;const l=s??[],c="header"===t?v:x,u=`${t}${c}.xml`,d=`rId${"header"===t?"Header":"Footer"}${c}`,p=m(uc(l,n,o,e));"header"===t&&a&&p.images.push({...a}),b.push({kind:t,type:i,path:u,relId:d,blocks:l,context:p});const f="header"===t?"header":"footer";(y[r][f]??={})[i]={relId:d},"header"===t?v+=1:x+=1};i("header","first",t.firstPageHeader),i("header","even",t.evenPageHeader),i("header","default",t.header),i("footer","first",t.firstPageFooter),i("footer","even",t.evenPageFooter),i("footer","default",t.footer)});const E=n.definitions.length>0,S=i.some(e=>(e.evenPageHeader?.length??0)>0||(e.evenPageFooter?.length??0)>0),k=S||void 0!==e.settings?.defaultTabStop||void 0!==e.settings?.allowSpaceOfSameStyleInTable||void 0!==e.settings?.autoHyphenation||void 0!==e.settings?.consecutiveHyphenLimit||void 0!==e.settings?.hyphenationZone||void 0!==e.settings?.doNotHyphenateCaps||void 0!==e.footnotes?.settings||void 0!==e.endnotes?.settings||void 0!==e.documentVariables&&Object.keys(e.documentVariables).length>0,_=[...g.images,...b.flatMap(e=>e.context.images)],I=c?function(e,t,r,n,o,i,a){const s=o(t.flatMap(e=>fl(e.footnote.blocks)));s.footnoteIdMap=a;const l=t.map(e=>{const t=dl(fl(e.footnote.blocks),s,i);return`<w:footnote w:id="${e.docxId}">${t}</w:footnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${_r}"><w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote><w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>${l}</w:footnotes>`,partContext:s}}(0,s,0,0,t=>uc(t,n,o,e),e.styles,l):null;I&&_.push(...I.partContext.images);const N=p?function(e,t,r,n,o,i,a){const s=o(t.flatMap(e=>gl(e.endnote.blocks)));s.endnoteIdMap=a;const l=t.map(e=>{const t=dl(gl(e.endnote.blocks),s,i);return`<w:endnote w:id="${e.docxId}">${t}</w:endnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${Sr}" xmlns:w14="${Ir}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${_r}"><w:endnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:endnote><w:endnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:endnote>${l}</w:endnotes>`,partContext:s}}(0,u,0,0,t=>uc(t,n,o,e),e.styles,d):null;N&&_.push(...N.partContext.images);const T=_.filter(e=>"embedded"===e.kind).map(e=>e.target.split(".").pop()?.toLowerCase()).filter(e=>Boolean(e)),C=null!=e.styles&&Object.keys(e.styles).length>0,A=(e.fontTable?.length??0)>0,R=void 0!==e.design;r.file("[Content_Types].xml",kl(E,T,k,b,c,p,C,w,A,R)),r.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${kr}"><Relationship Id="rId1" Type="${_r}/officeDocument" Target="word/document.xml"/></Relationships>`),r.file("word/document.xml",Ll(e,g,y)),C&&r.file("word/styles.xml",function(e){const t=Object.values(e).map(Sl).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${Ir}">${t}</w:styles>`}(e.styles)),E&&r.file("word/numbering.xml",function(e){const t=e.map(({abstractNumId:e,levels:t})=>`<w:abstractNum w:abstractNumId="${e}">${t.sort((e,t)=>e.level-t.level).map(({kind:e,level:t,format:r,startAt:n,levelText:o,suffix:i,alignment:a,legal:s,bulletGlyph:l,bulletFont:c,ooxml:u})=>{const d="bullet"===e?"bullet":u?.format??r??"decimal",p=o??("bullet"===e?l??"":`%${t+1}.`),f=n??1,h="bullet"===e?c??"Symbol":void 0,m=h?`<w:rPr><w:rFonts w:ascii="${Nr(h)}" w:hAnsi="${Nr(h)}" w:hint="default"/></w:rPr>`:"",g=i&&"tab"!==i?`<w:suff w:val="${i}"/>`:"",w=s?"<w:isLgl/>":"",b=void 0!==u?.restartAfterLevel?`<w:lvlRestart w:val="${u.restartAfterLevel}"/>`:"",y=u?.paragraphStyleId?`<w:pStyle w:val="${Nr(u.paragraphStyleId)}"/>`:"";return`<w:lvl w:ilvl="${t}"><w:start w:val="${f}"/><w:numFmt w:val="${Nr(d)}"/>${b}${y}<w:lvlText w:val="${Nr(p)}"/><w:lvlJc w:val="${a??"left"}"/>${g}${w}${m}</w:lvl>`}).join("")}</w:abstractNum>`).join(""),r=e.map(({abstractNumId:e,numId:t})=>`<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${Sr}">${t}${r}</w:numbering>`}(n.definitions)),(C||E||k||g.images.length>0||g.hyperlinks.length>0||b.length>0||c||p||w||A||R)&&r.file("word/_rels/document.xml.rels",function(e,t,r,n,o,i,a,s,l,c,u=!1){let d="";s&&(d+=`<Relationship Id="rIdStyles" Type="${_r}/styles" Target="styles.xml"/>`),e&&(d+=`<Relationship Id="rIdNum" Type="${_r}/numbering" Target="numbering.xml"/>`),t&&(d+=`<Relationship Id="rIdSettings" Type="${_r}/settings" Target="settings.xml"/>`);for(const p of n)d+=`<Relationship Id="${p.rId}" Type="${_r}/hyperlink" Target="${Nr(p.href)}" TargetMode="External"/>`;for(const p of r){const e="linked"===p.kind?' TargetMode="External"':"";d+=`<Relationship Id="${p.rId}" Type="${_r}/image" Target="${Nr(p.target)}"${e}/>`}for(const p of o){const e="header"===p.kind?"header":"footer";d+=`<Relationship Id="${p.relId}" Type="${_r}/${e}" Target="${p.path}"/>`}return i&&(d+=`<Relationship Id="rIdFootnotes" Type="${_r}/footnotes" Target="footnotes.xml"/>`),a&&(d+=`<Relationship Id="rIdEndnotes" Type="${_r}/endnotes" Target="endnotes.xml"/>`),l&&(d+=`<Relationship Id="rIdComments" Type="${_r}/comments" Target="comments.xml"/>`,d+='<Relationship Id="rIdCommentsExtended" Type="http://schemas.microsoft.com/office/2011/relationships/commentsExtended" Target="commentsExtended.xml"/>'),c&&(d+=`<Relationship Id="rIdFontTable" Type="${_r}/fontTable" Target="fontTable.xml"/>`),u&&(d+=`<Relationship Id="rIdTheme" Type="${_r}/theme" Target="theme/theme1.xml"/>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${kr}">${d}</Relationships>`}(E,k,g.images,g.hyperlinks,b,c,p,C,w,A,R)),A&&r.file("word/fontTable.xml",function(e){const t=e.map(e=>{const t=[];if(e.altName&&t.push(`<w:altName w:val="${Nr(e.altName)}"/>`),e.panose1&&t.push(`<w:panose1 w:val="${Nr(e.panose1)}"/>`),e.charset&&t.push(`<w:charset w:val="${Nr(e.charset)}"/>`),e.family&&t.push(`<w:family w:val="${Nr(e.family)}"/>`),e.pitch&&t.push(`<w:pitch w:val="${Nr(e.pitch)}"/>`),e.sig){const r=Object.entries(e.sig).map(([e,t])=>`w:${e}="${Nr(t)}"`).join(" ");r&&t.push(`<w:sig ${r}/>`)}return`<w:font w:name="${Nr(e.name)}">${t.join("")}</w:font>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:fonts xmlns:w="${Sr}">${t}</w:fonts>`}(e.fontTable)),R&&r.file("word/theme/theme1.xml",function(e){const t=e?.themeData?.sourceXml;if(t)return t;const r=Jl[e?.themeId??"oasis"]??Jl.oasis,n=e?.themeData,o=(e,t)=>(n?.colors?.[e]??t).replace(/^#/,"").toUpperCase(),i={dk1:o("dk1","000000"),lt1:o("lt1","FFFFFF"),dk2:o("dk2",r.body),lt2:o("lt2","FFFFFF"),accent1:o("accent1",r.accent),accent2:o("accent2",r.heading),accent3:o("accent3","5B9BD5"),accent4:o("accent4","70AD47"),accent5:o("accent5","ED7D31"),accent6:o("accent6","A5A5A5"),hlink:o("hlink","0563C1"),folHlink:o("folHlink","954F72")},a=Object.entries(i).map(([e,t])=>`<a:${e}><a:srgbClr val="${t}"/></a:${e}>`).join(""),s=(e,t,r)=>Nr(n?.fonts?.[e]?.[t]??r),l=Nr(n?.name??`${(e?.themeId??"oasis")[0].toUpperCase()}${(e?.themeId??"oasis").slice(1)}`),c=n?.effectsXml??"<a:fillStyleLst/><a:lnStyleLst/><a:effectStyleLst/><a:bgFillStyleLst/>";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="${l}"><a:themeElements><a:clrScheme name="${l}">${a}</a:clrScheme><a:fontScheme name="${l}"><a:majorFont><a:latin typeface="${s("major","majorHAnsi","Aptos Display")}"/><a:ea typeface="${s("major","majorEastAsia","Aptos Display")}"/><a:cs typeface="${s("major","majorBidi","Aptos Display")}"/></a:majorFont><a:minorFont><a:latin typeface="${s("minor","minorHAnsi","Aptos")}"/><a:ea typeface="${s("minor","minorEastAsia","Aptos")}"/><a:cs typeface="${s("minor","minorBidi","Aptos")}"/></a:minorFont></a:fontScheme><a:fmtScheme name="${l}">${c}</a:fmtScheme></a:themeElements></a:theme>`}(e.design)),k&&r.file("word/settings.xml",Tl(S,e.settings?.defaultTabStop,e.footnotes?.settings,e.endnotes?.settings,e.settings?.allowSpaceOfSameStyleInTable,{autoHyphenation:e.settings?.autoHyphenation,consecutiveHyphenLimit:e.settings?.consecutiveHyphenLimit,hyphenationZone:e.settings?.hyphenationZone,doNotHyphenateCaps:e.settings?.doNotHyphenateCaps},e.documentVariables));for(const $ of b)r.file(`word/${$.path}`,Bl($.kind,$.blocks,$.context,e.styles,e.design?.watermark)),($.context.images.length>0||$.context.hyperlinks.length>0)&&r.file(`word/_rels/${$.path}.rels`,Cl($.context.images,$.context.hyperlinks));dc(r,"footnotes",I),dc(r,"endnotes",N),h&&(r.file("word/comments.xml",$i(h)),r.file("word/commentsExtended.xml",function(e){const t=new Map(e.comments.map(({comment:e,paraId:t})=>[e.id,t])),r=e.comments.map(({comment:e,paraId:r})=>{const n=e.parentId?t.get(e.parentId):void 0;return`<w15:commentEx w15:paraId="${r}"${n?` w15:paraIdParent="${n}"`:""} w15:done="${e.resolved?"1":"0"}"/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${Ri}>${r}</w15:commentsEx>`}(h)));for(const $ of _)"embedded"===$.kind&&$.base64&&r.file(`word/${$.target}`,$.base64,{base64:!0});return r.generateAsync({type:"arraybuffer"})}async function mc(e){const t=await pc(e);return new Blob([t],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"})}function gc(e){let t=2166136261;for(const r of e)t^=r,t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}async function wc(e,t){return async function(e){const t=await Br.default.loadAsync(e),r={};for(const[n,o]of Object.entries(t.files))o.dir||(r[Wr(n)]=gc(await o.async("uint8array")));return r}(await fc(e,t))}var bc=/* @__PURE__ */t({attachDocxRebuiltPartBaseline:()=>_c,captureDocxSourcePackage:()=>kc}),yc="word/document.xml",vc="/officeDocument";function xc(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function Ec(e,t){const r=t.overrides[e];if(r)return r;const n=e.includes(".")?e.slice(e.lastIndexOf(".")+1).toLowerCase():"";return t.defaults[n]}function Sc(e,t){return!(!e.endsWith(".xml")&&!e.endsWith(".rels"))||("application/xml"===t||Boolean(t?.endsWith("+xml")))}async function kc(e){const t=await Br.default.loadAsync(e),r=[],n=await(t.file(Ur)?.async("string")),o=Xr(n);n||r.push({level:"warning",code:"missing-content-types",message:"The DOCX package does not contain [Content_Types].xml."});const i={};for(const[u,d]of Object.entries(t.files)){if(d.dir)continue;const e=Wr(u),t=Ec(e,o),r=Sc(e,t)?"xml":"binary",n="xml"===r?await d.async("string"):await d.async("base64");i[e]={path:e,...t?{contentType:t}:{},kind:r,data:n,encoding:"xml"===r?"utf8":"base64",originalHash:xc(n)}}let a=[];for(const[u,d]of Object.entries(i)){const e=Gr(u);if(void 0===e||"xml"!==d.kind)continue;const t=Kr(e,Yr(d.data),t=>{r.push({level:"warning",code:"unsafe-relationship-target",message:`Relationship ${t.id} points outside the OPC package.`,...e?{partPath:e}:{},relationshipId:t.id})});if(null===e){a=t;continue}const n=i[e];n?n.relationships=t:r.push({level:"warning",code:"orphan-relationships-part",message:`Relationship part ${u} has no owning package part.`,partPath:u})}let s=a.find(e=>"External"!==e.targetMode&&e.type.endsWith(vc))?.resolvedTarget;if(!s||!i[s]){if(!i[yc])throw new Error("DOCX package has no resolvable officeDocument relationship or word/document.xml fallback.");s=yc,r.push({level:"warning",code:"main-document-fallback",message:"The officeDocument relationship was absent or invalid; word/document.xml was used as a compatibility fallback."})}const l={format:"docx",mainDocumentPart:s,contentTypes:o,rootRelationships:a,parts:i,...r.length>0?{diagnostics:r}:{}},c=Ii(l);return c.objects.length&&(l.opaqueObjects=c.objects),c.diagnostics.length&&(l.diagnostics=[...r,...c.diagnostics]),l}async function _c(e,t){try{t.rebuiltPartHashes=await wc(e,t)}catch(r){(t.diagnostics??=[]).push({level:"warning",code:"rebuilt-baseline-unavailable",message:`The imported document could not be fingerprinted for granular source-part preservation: ${r instanceof Error?r.message:String(r)}`})}}export{Vn as $,O as $n,ct as $t,xi as A,ye as An,g as Ar,gr as At,So as B,se as Bn,rr as Bt,Aa as C,Ae as Cn,c as Cr,or as Ct,Ni as D,$e as Dn,f as Dr,nr as Dt,Ti as E,Te as En,l as Er,sr as Et,zo as F,me as Fn,yr as Ft,uo as G,te as Gn,Et as Gt,ao as H,ie as Hn,Dt as Ht,jo as I,he as In,vr as It,oo as J,Y as Jn,yt as Jt,co as K,ee as Kn,bt as Kt,qo as L,ne as Ln,xr as Lt,Zo as M,fe as Mn,fr as Mt,Go as N,we as Nn,hr as Nt,Ii as O,xe as On,d as Or,br as Ot,Ho as P,ge as Pn,mr as Pt,Qn as Q,q as Qn,st as Qt,Uo as R,re as Rn,pr as Rt,$a as S,Re as Sn,o as Sr,Sr as St,ba as T,Ie as Tn,s as Tr,ar as Tt,io as U,G as Un,Nt as Ut,Fo as V,oe as Vn,Ht as Vt,lo as W,Z as Wn,St as Wt,no as X,X as Xn,ft as Xt,ro as Y,J as Yn,vt as Yt,Jn as Z,W as Zn,ht as Zt,Xl as _,He as _n,b as _r,Qr as _t,gc as a,ot as an,z as ar,pn as at,tl as b,ze as bn,a as br,_r as bt,fc as c,Qe as cn,R as cr,jr as ct,Hl as d,Ve as dn,E as dr,Wr as dt,ut as en,P as er,eo as et,Kl as f,Ge as fn,x as fr,Xr as ft,Ql as g,qe as gn,v as gr,Zr as gt,Yl as h,Ye as hn,y as hr,Kr as ht,wc as i,nt as in,U as ir,hn as it,Ko as j,be as jn,w as jr,ur as jt,_i as k,ve as kn,p as kr,wr as kt,lc as l,et as ln,A as lr,zr as lt,Wl as m,Ze as mn,_ as mr,Vr as mt,kc as n,dt as nn,L as nr,jn as nt,pc as o,it as on,M as or,qr as ot,Vl as p,Xe as pn,k as pr,Yr as pt,so as q,Q as qn,xt as qt,bc as r,pt as rn,D as rr,An as rt,mc as s,tt as sn,$ as sr,Ur as st,_c as t,at as tn,F as tr,Bn as tt,cc as u,Ke as un,I as ur,Gr as ut,jl as v,We as vn,S as vr,Lr as vt,Ra as w,Ne as wn,u as wr,ir as wt,Vs as x,Ce as xn,h as xr,Ir as xt,Ul as y,Ue as yn,i as yr,Pr as yt,No as z,ae as zn,Er as zt};
|