@bendyline/gezel-service 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NOTICE.md +1 -1
- package/dist/bin/gezeld.js +51635 -50059
- package/dist/handboek-content/README.md +24 -2
- package/dist/handboek-content/conceptual/connected-apps.md +2 -0
- package/dist/handboek-content/technical/building-connected-apps-with-gezel-app-sdk.md +144 -0
- package/dist/handboek-content/technical/cli-reference.md +11 -0
- package/dist/handboek-content/technical/how-we-test-models.md +57 -9
- package/dist/handboek-content/technical/model-scorecard.md +27 -9
- package/dist/handboek-content/technical/npm-packages.md +67 -0
- package/dist/handboek-content/technical/security-model.md +18 -1
- package/dist/handboek-content/technical/where-files-live.md +3 -0
- package/dist/handboek-content/technical/writing-scripts-with-gezel-sdk.md +106 -0
- package/dist/handboek-content/whats-new/1.26223.md +82 -0
- package/dist/handboek-content/whats-new/whats-new-index.md +28 -0
- package/dist/handboek.d.ts +53 -26
- package/dist/handboek.js +103 -26
- package/dist/index-store/static-index-worker.js +476 -82
- package/dist/index.d.ts +206 -11
- package/dist/index.js +51615 -50051
- package/dist/ui/assets/{TerminalCodeEditor-CB-AXtKI.js → TerminalCodeEditor-DQICIlaI.js} +2 -2
- package/dist/ui/assets/{_.contribution-C6KlZ1yR.js → _.contribution-BXBGjh98.js} +1 -1
- package/dist/ui/assets/{chunk-6N2J7C2B-DIF7DJtk.js → chunk-6N2J7C2B-Du7clJkV.js} +1 -1
- package/dist/ui/assets/chunk-ILCJ3WFD-fHFoZ9wm.js +4 -0
- package/dist/ui/assets/{chunk-S5PCVMKU-CmFF6ff9.js → chunk-S5PCVMKU-DopU3Q9j.js} +2 -2
- package/dist/ui/assets/chunk-USU6HTKB-B-ElCUQS.js +1 -0
- package/dist/ui/assets/{chunk-WATAOG4Y-perfmDXF.js → chunk-WATAOG4Y-BnCgSncI.js} +1 -1
- package/dist/ui/assets/{cpp.contribution-BBBWN3Dm.js → cpp.contribution-UC-hXlnG.js} +1 -1
- package/dist/ui/assets/{csharp.contribution-jBA6TWhG.js → csharp.contribution-VSLdDbxa.js} +1 -1
- package/dist/ui/assets/{css.contribution-DQSNU6vC.js → css.contribution-DC9uQgZx.js} +1 -1
- package/dist/ui/assets/{cssMode-68UP_lrS.js → cssMode-DZsXawIN.js} +1 -1
- package/dist/ui/assets/{csv-Ctux8fO7.js → csv-RAgECoUg.js} +1 -1
- package/dist/ui/assets/dist-D6I_6t8i.js +195 -0
- package/dist/ui/assets/dist-a57vyaRu.js +2 -0
- package/dist/ui/assets/{doc-BdMAKGDm.js → doc-B7NXSLxH.js} +33 -23
- package/dist/ui/assets/{dockerfile.contribution-CSpSPKgK.js → dockerfile.contribution-PUE2MRJF.js} +1 -1
- package/dist/ui/assets/docx-IZY6hX8A.js +2 -0
- package/dist/ui/assets/{epub-oLed1tAU.js → epub-00L2M424.js} +1 -1
- package/dist/ui/assets/extract-UTAOG7LV-BZ_L7lLL.js +1 -0
- package/dist/ui/assets/{go.contribution-BjibqVfF.js → go.contribution-CsrBAk1W.js} +1 -1
- package/dist/ui/assets/{handlebars-Dq5dJ5WJ.js → handlebars-Bqyi6xyi.js} +1 -1
- package/dist/ui/assets/handlebars.contribution-C6VLDI51.js +2 -0
- package/dist/ui/assets/{html-fQ6X2xaa.js → html-Cgejr9YM.js} +24 -24
- package/dist/ui/assets/{html-Bgyk9kiZ.js → html-NLb64cMt.js} +1 -1
- package/dist/ui/assets/html.contribution-BP2a6izy.js +2 -0
- package/dist/ui/assets/{htmlMode-D5UKInqK.js → htmlMode-Utzysyes.js} +1 -1
- package/dist/ui/assets/{index-CPXp6BEZ.js → index-B_NFDPxp.js} +197 -195
- package/dist/ui/assets/index-CgP6VwNS.css +1 -0
- package/dist/ui/assets/infer-v-bCXeT9.js +2 -0
- package/dist/ui/assets/{ini.contribution-BiJ4T5K-.js → ini.contribution-CfehzoVj.js} +1 -1
- package/dist/ui/assets/{java.contribution-B8o1lBqP.js → java.contribution-CXk8bwAp.js} +1 -1
- package/dist/ui/assets/{javascript-COWkS1tr.js → javascript-BcbxETop.js} +1 -1
- package/dist/ui/assets/javascript.contribution-BRDuHf7J.js +2 -0
- package/dist/ui/assets/{jsonMode-CWWZvfzr.js → jsonMode-BORbF5qz.js} +1 -1
- package/dist/ui/assets/{kotlin.contribution-CxSOPQ6P.js → kotlin.contribution-CbKeqa_3.js} +1 -1
- package/dist/ui/assets/layouts-2A7QNF6Y-D94iKLLQ.js +1 -0
- package/dist/ui/assets/{less.contribution-Cthyflev.js → less.contribution-BgNGBZAo.js} +1 -1
- package/dist/ui/assets/{lua.contribution-894DRgPR.js → lua.contribution-CtZNsqOj.js} +1 -1
- package/dist/ui/assets/{markdown.contribution-d_TBTsNA.js → markdown.contribution-CNyxmHy1.js} +1 -1
- package/dist/ui/assets/{monaco-PebRhLpo.js → monaco-Ryh-SF_b.js} +3 -3
- package/dist/ui/assets/{monaco-base-4S0M5BiY.js → monaco-base-C-4W0je-.js} +1 -1
- package/dist/ui/assets/{monaco-setup-7hp0Z9jn.js → monaco-setup-BW0DQ8MV.js} +1 -1
- package/dist/ui/assets/{monaco.contribution-DQjPk7Rx.js → monaco.contribution-279M9-Uu.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-CKDvyGVE.js → monaco.contribution-Bu1oyef5.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-BL_zgiu2.js → monaco.contribution-C57BAnnI.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-D61txvUB.js → monaco.contribution-o3cuP4Wp.js} +2 -2
- package/dist/ui/assets/{pdf-CwJ6ZJmB.js → pdf-66KslaXf.js} +1 -1
- package/dist/ui/assets/{php.contribution-B8kn8QoR.js → php.contribution-BulxzIpe.js} +1 -1
- package/dist/ui/assets/pptx-CsdVR0xn.js +6 -0
- package/dist/ui/assets/{python-CHygH1eM.js → python-D4zGC71G.js} +1 -1
- package/dist/ui/assets/python.contribution-CDI1t73R.js +2 -0
- package/dist/ui/assets/{ruby.contribution-BQdPKFM2.js → ruby.contribution-DVOdhLt8.js} +1 -1
- package/dist/ui/assets/{rust.contribution-D7wKqShc.js → rust.contribution-DLR9kg2m.js} +1 -1
- package/dist/ui/assets/{scss.contribution-kSTLMoty.js → scss.contribution-CYIIxBxH.js} +1 -1
- package/dist/ui/assets/{shell.contribution-BQnT3BBJ.js → shell.contribution-D0KjHQ5E.js} +1 -1
- package/dist/ui/assets/{sql.contribution-C9z55nWb.js → sql.contribution-CKhLelqr.js} +1 -1
- package/dist/ui/assets/{swift.contribution-BZoW5ZZj.js → swift.contribution-DiAAMfJp.js} +1 -1
- package/dist/ui/assets/{terminal-monaco-setup-DbSXji0d.js → terminal-monaco-setup-Dhxpm7Z8.js} +1 -1
- package/dist/ui/assets/{tsMode-jPpKNC6E.js → tsMode-DFEqg3P9.js} +1 -1
- package/dist/ui/assets/{typescript-Djn_8BHF.js → typescript-X_x8S3Dp.js} +1 -1
- package/dist/ui/assets/typescript.contribution-jI3BakLa.js +2 -0
- package/dist/ui/assets/xlsx-CdLmEC42.js +4 -0
- package/dist/ui/assets/{xml-DmE4Aqa-.js → xml-ANmRi8ZZ.js} +1 -1
- package/dist/ui/assets/xml.contribution-D5t83zAi.js +2 -0
- package/dist/ui/assets/{yaml-BjmK3C-c.js → yaml-R4WpJved.js} +1 -1
- package/dist/ui/assets/yaml.contribution-DV8dAjKa.js +2 -0
- package/dist/ui/index.html +15 -15
- package/package.json +13 -15
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -40
- package/dist/ui/assets/chunk-ILCJ3WFD-uwKSpQd8.js +0 -4
- package/dist/ui/assets/chunk-USU6HTKB-hbaA8KyS.js +0 -1
- package/dist/ui/assets/dist-i9jV8CX8.js +0 -2
- package/dist/ui/assets/dist-jh33rACm.js +0 -195
- package/dist/ui/assets/docx-CNW-xqHT.js +0 -2
- package/dist/ui/assets/extract-UTAOG7LV-WxmEnrrc.js +0 -1
- package/dist/ui/assets/handlebars.contribution-DDSQBNPu.js +0 -2
- package/dist/ui/assets/html.contribution-DrClfj2L.js +0 -2
- package/dist/ui/assets/index-Caz-FRQy.css +0 -1
- package/dist/ui/assets/infer-Cc7ks6NX.js +0 -2
- package/dist/ui/assets/javascript.contribution-DMEzq0y4.js +0 -2
- package/dist/ui/assets/layouts-2A7QNF6Y-DR7-KboS.js +0 -1
- package/dist/ui/assets/pptx-Bmj2v9CT.js +0 -6
- package/dist/ui/assets/python.contribution-CmwCxp-v.js +0 -2
- package/dist/ui/assets/typescript.contribution-D4JmB9tz.js +0 -2
- package/dist/ui/assets/xlsx-BCnO44v8.js +0 -4
- package/dist/ui/assets/xml.contribution-BepqhMeK.js +0 -2
- package/dist/ui/assets/yaml.contribution-BwT8qEVt.js +0 -2
- package/postinstall.mjs +0 -8
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{x as t}from"./doc-BdMAKGDm.js";import{l as n}from"./chunk-O7JILDEF-CqcO1qaI.js";import{O as r}from"./chunk-GAZKTT4R-BUf32614.js";import{l as i}from"./markdown-ekej7NJt.js";import"./schemas-Drh23Boe.js";import{a,i as o,n as s,r as c}from"./chunk-USU6HTKB-hbaA8KyS.js";import"./chunk-7AWFHP5U-MiVVPFTx.js";import{i as l,n as u,t as d}from"./chunk-JU2RHXUB-CMFDhTux.js";import{a as f,i as p,n as m,r as h,t as g}from"./chunk-DWNNYO5H-C9-5Gy65.js";import{B as _,E as ee,F as te,H as ne,I as re,J as ie,L as ae,M as v,Q as y,R as oe,U as se,V as ce,W as le,a as ue,at as de,c as fe,et as pe,i as me,it as he,k as b,l as ge,n as _e,nt as x,o as ve,r as ye,rt as S,s as be,tt as C,u as xe,z as Se}from"./chunk-S5PCVMKU-CmFF6ff9.js";import{t as Ce}from"./chunk-ILCJ3WFD-uwKSpQd8.js";import{t as w}from"./chunk-IIQYS2YH-CPXng8SW.js";import{t as we}from"./chunk-AONELFLA-Cv2nS9ga.js";var Te={Heading1:1,Heading2:2,Heading3:3,Heading4:4,Heading5:5,Heading6:6,heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6,Title:1,Subtitle:2},T={1:`Heading1`,2:`Heading2`,3:`Heading3`,4:`Heading4`,5:`Heading5`,6:`Heading6`},Ee=new Set([`Quote`,`IntenseQuote`,`quote`,`BlockQuote`]),De=new Set([`Code`,`CodeBlock`,`HTMLCode`,`PlainText`]),Oe=new Set([`CodeChar`,`HTMLCodeChar`,`VerbatimChar`]),ke=new Set([`bullet`,`none`]),E=`Calibri`,Ae=`Calibri Light`,D=22,O=`Consolas`,k=20,je={1:32,2:26,3:24,4:22,5:22,6:22},A=`0563C1`;function Me(e){return Math.round(e*20)}async function j(e,t={}){t.signal?.throwIfAborted();let r=t.themeId===void 0?{...t,themeId:n(e.frontmatter)}:t,i=new Pe(r,e),a=Ne(e.children);i.setRelationshipSource(`document`);let o=N(a.body,i);i.setRelationshipSource(`header`);let s=N(a.header,i);i.setRelationshipSource(`footer`);let c=N(a.footer,i);return i.setRelationshipSource(`document`),it(o,s,c,i,r)}function Ne(e){let t={body:[],header:[],footer:[]};for(let n of e)n.type===`containerDirective`&&n.name===`docx-header`?t.header.push(...n.children):n.type===`containerDirective`&&n.name===`docx-footer`?t.footer.push(...n.children):t.body.push(n);return t}var Pe=class{constructor(e,n){this.relIds=new g,this.nextNumId=1,this.nextFootnoteId=1,this.relationships=[],this.relationshipSource=`document`,this.numberingDefs=[],this.footnotes=new Map,this.footnoteIdMap=new Map,this.images=[],this.hasLists=!1,this.hasFootnotes=!1,this.iconFamilies=new Set,this.nextDocPrId=1;let i,a,o,s,c,l;if(e.themeId){let u=t(n,e.themeId,e.themeRegistry);i=Fe(r(u.typography?.bodyFont,``)),a=Fe(r(u.typography?.titleFont,``)),o=p(u.colors?.primary),s=p(u.colors?.text),c=p(u.colors?.textMuted),l=p(u.colors?.background)}this.font=e.defaultFont??i??E,this.headingFont=a??this.font,this.fontSize=e.defaultFontSize?e.defaultFontSize*2:D,this.headingColor=o,this.bodyColor=s,this.mutedColor=c,this.backgroundColor=l,this.resolvedImages=e.images??new Map,this.allowRelativeHyperlinks=e.allowRelativeHyperlinks??!1,this.signal=e.signal}allocRelId(){return this.allocRelIdFor(this.relationshipSource)}allocRelIdFor(e){return this.relIds.alloc(M(e))}setRelationshipSource(e){this.relationshipSource=e}addHyperlink(e){let t=f(e,{allowRelative:this.allowRelativeHyperlinks});if(!t)return null;let n=this.allocRelId();return this.relationships.push({id:n,type:_,target:t,targetMode:`External`,source:this.relationshipSource}),n}addImage(e,t,n){let r=this.allocRelId(),i=this.nextDocPrId++,a=`word/media/${n}`;return this.images.push({relId:r,path:a,data:e,contentType:t}),this.relationships.push({id:r,type:ce,target:`media/${n}`,source:this.relationshipSource}),{relId:r,docPrId:i}}allocNumbering(e){let t=this.nextNumId++;return this.numberingDefs.push({numId:t,ordered:e}),this.hasLists=!0,t}getFootnoteId(e){let t=this.footnoteIdMap.get(e);return t===void 0&&(t=this.nextFootnoteId++,this.footnoteIdMap.set(e,t),this.hasFootnotes=!0),t}};function M(e){return e===`header`?`word/header1.xml`:e===`footer`?`word/footer1.xml`:`word/document.xml`}function Fe(e){if(!e)return``;let t=new Set([`sans-serif`,`serif`,`monospace`,`system-ui`,`cursive`,`fantasy`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`inherit`,`initial`]);for(let n of e.split(`,`)){let e=n.trim().replace(/^["']|["']$/g,``);if(e&&!t.has(e.toLowerCase()))return e}return``}function N(e,t){let n=[];for(let r=0;r<e.length;r++){r&255||t.signal?.throwIfAborted();let i=e[r];n.push(P(i,t,0))}return n.join(``)}function P(e,t,n){switch(e.type){case`heading`:return Ie(e,t);case`paragraph`:return Le(e,t);case`blockquote`:return Re(e,t);case`list`:return ze(e,t,n);case`code`:return Ve(e);case`table`:return He(e,t);case`thematicBreak`:return Ge();case`htmlBlock`:return Ke(e);case`math`:return qe(e);case`footnoteDefinition`:return Je(e,t);case`containerDirective`:return N(e.children,t);default:return``}}function Ie(e,t){let n=T[e.depth]??`Heading1`,r=I(e.children,t);return`<w:p><w:pPr><w:pStyle w:val="${n}"/></w:pPr>`+r+`</w:p>`}function Le(e,t){return`<w:p>${I(e.children,t,F(t))}</w:p>`}function F(e){return e.bodyColor?{color:e.bodyColor}:{}}function Re(e,t){let n=[];for(let r of e.children)if(r.type===`paragraph`){let e=t.mutedColor?{color:t.mutedColor}:F(t),i=I(r.children,t,e);n.push(`<w:p><w:pPr><w:pStyle w:val="Quote"/><w:ind w:left="${Me(36)}"/><w:pBdr><w:left w:val="single" w:sz="12" w:space="4" w:color="CCCCCC"/></w:pBdr></w:pPr>`+i+`</w:p>`)}else n.push(P(r,t,0));return n.join(``)}function ze(e,t,n){let r=t.allocNumbering(e.ordered??!1),i=[];for(let a of e.children)i.push(Be(a,t,r,n));return i.join(``)}function Be(e,t,n,r){let i=[];for(let a of e.children)if(a.type===`paragraph`){let e=I(a.children,t,F(t));i.push(`<w:p><w:pPr><w:pStyle w:val="ListParagraph"/><w:numPr><w:ilvl w:val="${r}"/><w:numId w:val="${n}"/></w:numPr></w:pPr>`+e+`</w:p>`)}else a.type===`list`?i.push(ze(a,t,r+1)):i.push(P(a,t,r));return i.join(``)}function Ve(e){let t=e.value.split(`
|
|
2
|
-
`),n=[];for(let e of t)n.push(`<w:p><w:pPr><w:pStyle w:val="Code"/><w:pBdr><w:top w:val="single" w:sz="4" w:space="1" w:color="CCCCCC"/><w:left w:val="single" w:sz="4" w:space="4" w:color="CCCCCC"/><w:bottom w:val="single" w:sz="4" w:space="1" w:color="CCCCCC"/><w:right w:val="single" w:sz="4" w:space="4" w:color="CCCCCC"/></w:pBdr><w:shd w:val="clear" w:color="auto" w:fill="F5F5F5"/></w:pPr><w:r><w:rPr><w:rFonts w:ascii="${O}" w:hAnsi="${O}"/><w:sz w:val="${k}"/></w:rPr><w:t xml:space="preserve">${d(e)}</w:t></w:r></w:p>`);return n.join(``)}function He(e,t){let n=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];n.push(Ue(i,t,r===0,e.align))}return`<w:tbl><w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="0" w:type="auto"/><w:tblBorders><w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/></w:tblBorders></w:tblPr><w:tblGrid/>`+n.join(``)+`</w:tbl>`}function Ue(e,t,n,r){let i=[];for(let a=0;a<e.children.length;a++){let o=e.children[a],s=r?.[a]??null;i.push(We(o,t,n,s))}return`<w:tr>${n?`<w:trPr><w:tblHeader/></w:trPr>`:``}${i.join(``)}</w:tr>`}function We(e,t,n,r){let i=I(e.children,t,F(t)),a=n?`<w:rPr><w:b/></w:rPr>`:``,o=r?`<w:jc w:val="${{left:`left`,center:`center`,right:`right`}[r]}"/>`:``;return`<w:tc><w:p>${a||o?`<w:pPr>${o}</w:pPr>`:``}${i}</w:p></w:tc>`}function Ge(){return`<w:p><w:pPr><w:pBdr><w:bottom w:val="single" w:sz="6" w:space="1" w:color="auto"/></w:pBdr></w:pPr></w:p>`}function Ke(e){let t=l(e.rawHtml);return t.trim()?`<w:p><w:r><w:t xml:space="preserve">${d(t)}</w:t></w:r></w:p>`:``}function qe(e){return`<w:p><w:pPr><w:jc w:val="center"/></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math"/><w:i/></w:rPr><w:t xml:space="preserve">${d(e.value)}</w:t></w:r></w:p>`}function Je(e,t){let n=t.getFootnoteId(e.identifier),r=[];for(let n of e.children)if(n.type===`paragraph`){let e=I(n.children,t,F(t));r.push(`<w:p>${e}</w:p>`)}let i=`<w:footnote w:id="${n}">`+(r.length>0?r.join(``):`<w:p/>`)+`</w:footnote>`;return t.footnotes.set(n,i),``}function Ye(e){return{run:(e,t)=>L(e,t),link:(t,n)=>Qe(t,e,n),image:t=>tt(t,e),icon:(t,n)=>Ze(t,n,e),lineBreak:()=>`<w:r><w:br/></w:r>`,footnoteRef:t=>rt(t,e)}}function I(e,t,n={}){return h(e,Ye(t),n)}function Xe(e,t,n){return m(e,Ye(t),n)}function L(e,t){if(!e)return``;let n=[];return t.code&&n.push(`<w:rFonts w:ascii="${O}" w:hAnsi="${O}"/>`),t.bold&&n.push(`<w:b/>`),t.italic&&n.push(`<w:i/>`),t.strike&&n.push(`<w:strike/>`),t.color&&n.push(`<w:color w:val="${t.color}"/>`),t.code&&n.push(`<w:sz w:val="${k}"/>`),`<w:r>${n.length>0?`<w:rPr>${n.join(``)}</w:rPr>`:``}<w:t xml:space="preserve">${d(e)}</w:t></w:r>`}function Ze(e,t,n){let r=o(e.family,e.name);if(!r)return L(`{[${e.token}]}`,t);let i=s(e.family);n.iconFamilies.add(e.family);let a=d(i.typeface),c=[`<w:rFonts w:ascii="${a}" w:hAnsi="${a}" w:eastAsia="${a}" w:cs="${a}"/>`];return t.strike&&c.push(`<w:strike/>`),t.color&&c.push(`<w:color w:val="${t.color}"/>`),`<w:r><w:rPr>${c.join(``)}</w:rPr><w:t xml:space="preserve">${d(r)}</w:t></w:r>`}function Qe(e,t,n){let r=t.addHyperlink(e.url);return r?`<w:hyperlink r:id="${r}">${$e(e.children,t,n)}</w:hyperlink>`:I(e.children,t,n)}function $e(e,t,n){let r=[];for(let i of e)i.type===`text`?r.push(et(i.value,n)):r.push(Xe(i,t,n));return r.join(``)}function et(e,t){if(!e)return``;let n=[`<w:rStyle w:val="Hyperlink"/>`];return t.bold&&n.push(`<w:b/>`),t.italic&&n.push(`<w:i/>`),n.push(`<w:color w:val="${A}"/>`,`<w:u w:val="single"/>`),`<w:r><w:rPr>${n.join(``)}</w:rPr><w:t xml:space="preserve">${d(e)}</w:t></w:r>`}function tt(e,t){let n=t.resolvedImages.get(e.url);if(!n)return L(`[Image: ${e.alt||e.url}]`,{italic:!0});let{data:r,contentType:i}=n,a=i.split(`/`)[1]?.replace(`jpeg`,`jpg`)||`png`,o=`image${t.images.length+1}.${a}`,{relId:s,docPrId:c}=t.addImage(r,i,o),l=nt(r),u=914400,f=6*u,p,m;if(l){let e=l.width/96*u,t=l.height/96*u;if(e>f){let n=f/e;p=f,m=Math.round(t*n)}else p=Math.round(e),m=Math.round(t)}else p=5*u,m=3*u;let h=d(e.alt||o),g=`http://schemas.openxmlformats.org/drawingml/2006/main`,_=`http://schemas.openxmlformats.org/drawingml/2006/picture`;return`<w:r><w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${p}" cy="${m}"/><wp:docPr id="${c}" name="${h}"/><wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="${g}" noChangeAspect="1"/></wp:cNvGraphicFramePr><a:graphic xmlns:a="${g}"><a:graphicData uri="${_}"><pic:pic xmlns:pic="${_}"><pic:nvPicPr><pic:cNvPr id="0" name="${h}"/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip r:embed="${s}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${p}" cy="${m}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic></a:graphicData></a:graphic></wp:inline></w:drawing></w:r>`}function nt(e){let t=e instanceof Uint8Array?e:new Uint8Array(e);if(t.length<24)return null;if(t[0]===137&&t[1]===80&&t[2]===78&&t[3]===71)return{width:t[16]<<24|t[17]<<16|t[18]<<8|t[19],height:t[20]<<24|t[21]<<16|t[22]<<8|t[23]};if(t[0]===255&&t[1]===216){let e=2;for(;e<t.length-9&&t[e]===255;){let n=t[e+1];if(n===192||n===194){let n=t[e+5]<<8|t[e+6];return{width:t[e+7]<<8|t[e+8],height:n}}let r=t[e+2]<<8|t[e+3];e+=2+r}}return t[0]===71&&t[1]===73&&t[2]===70?{width:t[6]|t[7]<<8,height:t[8]|t[9]<<8}:null}function rt(e,t){return`<w:r><w:rPr><w:rStyle w:val="FootnoteReference"/><w:vertAlign w:val="superscript"/></w:rPr><w:footnoteReference w:id="${t.getFootnoteId(e.identifier)}"/></w:r>`}async function it(e,t,n,r,i){let o=Ce(),s=c(r.iconFamilies),l=t.trim().length>0,u=n.trim().length>0,d=r.allocRelIdFor(`document`),f=r.allocRelIdFor(`document`),p=r.allocRelIdFor(`document`),m=r.hasLists?r.allocRelIdFor(`document`):void 0,h=r.hasFootnotes?r.allocRelIdFor(`document`):void 0,g=l?r.allocRelIdFor(`document`):void 0,_=u?r.allocRelIdFor(`document`):void 0,ee=at(e,r.backgroundColor,g,_);o.addPart(`word/document.xml`,ee,_e),l&&o.addPart(`word/header1.xml`,ot(`header`,t),ve),u&&o.addPart(`word/footer1.xml`,ot(`footer`,n),me);let v=st(i,r);o.addPart(`word/styles.xml`,v,xe);let y=lt(r.backgroundColor!==void 0);o.addPart(`word/settings.xml`,y,ge);let ce=ut(i,s);o.addPart(`word/fontTable.xml`,ce,ye);for(let e=0;e<s.length;e++){let t=s[e],n=`${t.fileStem}.odttf`;o.addBinaryPart(`word/fonts/${n}`,a(t),fe),o.addRelationship(`word/fontTable.xml`,{id:`rId${e+1}`,type:te,target:`fonts/${n}`})}if(r.hasLists){let e=dt(r);o.addPart(`word/numbering.xml`,e,be)}if(r.hasFootnotes){let e=ft(r);o.addPart(`word/footnotes.xml`,e,ue)}o.addRelationship(``,{id:`rId1`,type:se,target:`word/document.xml`}),o.addRelationship(`word/document.xml`,{id:d,type:ie,target:`styles.xml`}),o.addRelationship(`word/document.xml`,{id:f,type:le,target:`settings.xml`}),o.addRelationship(`word/document.xml`,{id:p,type:re,target:`fontTable.xml`}),m&&o.addRelationship(`word/document.xml`,{id:m,type:ne,target:`numbering.xml`}),h&&o.addRelationship(`word/document.xml`,{id:h,type:oe,target:`footnotes.xml`}),g&&o.addRelationship(`word/document.xml`,{id:g,type:Se,target:`header1.xml`}),_&&o.addRelationship(`word/document.xml`,{id:_,type:ae,target:`footer1.xml`});for(let e of r.relationships)o.addRelationship(M(e.source),{id:e.id,type:e.type,target:e.target,...e.targetMode?{targetMode:e.targetMode}:{}});for(let e of r.images)o.addBinaryPart(e.path,e.data,e.contentType);return(i.title||i.author||i.description)&&o.setCoreProperties({title:i.title,creator:i.author,description:i.description,created:new Date().toISOString(),modified:new Date().toISOString()}),o.toArrayBuffer()}function at(e,t,n,r){let i=t?`<w:background w:color="${t}"/>`:``,a=(n?`<w:headerReference w:type="default" r:id="${n}"/>`:``)+(r?`<w:footerReference w:type="default" r:id="${r}"/>`:``);return u()+`<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="${ee}" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="${b}" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="${v}" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">`+i+`<w:body>`+e+`<w:sectPr>`+a+`<w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/><w:cols w:space="720"/></w:sectPr></w:body></w:document>`}function ot(e,t){let n=e===`header`?`hdr`:`ftr`;return u()+`<w:${n} xmlns:w="${v}" xmlns:r="${b}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">`+t+`</w:${n}>`}function st(e,t){let n=t.font,r=t.headingFont,i=t.bodyColor?`<w:color w:val="${t.bodyColor}"/>`:``,a=t.mutedColor??`404040`;return u()+`<w:styles xmlns:w="${v}"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii="${d(n)}" w:hAnsi="${d(n)}" w:eastAsia="${d(n)}" w:cs="${d(n)}"/>`+i+`<w:sz w:val="${D}"/><w:szCs w:val="${D}"/></w:rPr></w:rPrDefault><w:pPrDefault/></w:docDefaults><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/>`+(i?`<w:rPr>${i}</w:rPr>`:``)+`</w:style>`+ct(r,t.headingColor)+`<w:style w:type="paragraph" w:styleId="Quote"><w:name w:val="Quote"/><w:basedOn w:val="Normal"/><w:pPr><w:ind w:left="720"/></w:pPr><w:rPr><w:i/><w:color w:val="${a}"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Code"><w:name w:val="Code"/><w:basedOn w:val="Normal"/><w:rPr><w:rFonts w:ascii="${O}" w:hAnsi="${O}"/><w:sz w:val="${k}"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="ListParagraph"><w:name w:val="List Paragraph"/><w:basedOn w:val="Normal"/><w:pPr><w:ind w:left="720"/></w:pPr></w:style><w:style w:type="character" w:styleId="Hyperlink"><w:name w:val="Hyperlink"/><w:rPr><w:color w:val="${A}"/><w:u w:val="single"/></w:rPr></w:style><w:style w:type="character" w:styleId="FootnoteReference"><w:name w:val="footnote reference"/><w:rPr><w:vertAlign w:val="superscript"/></w:rPr></w:style><w:style w:type="table" w:styleId="TableGrid"><w:name w:val="Table Grid"/><w:tblPr><w:tblBorders><w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/></w:tblBorders></w:tblPr></w:style></w:styles>`}function ct(e,t){let n=``;for(let r=1;r<=6;r++){let i=T[r],a=je[r]??22,o=t?`<w:color w:val="${t}"/>`:``;n+=`<w:style w:type="paragraph" w:styleId="${i}"><w:name w:val="heading ${r}"/><w:basedOn w:val="Normal"/><w:next w:val="Normal"/><w:qFormat/><w:pPr><w:outlineLvl w:val="${r-1}"/><w:spacing w:before="240" w:after="60"/></w:pPr><w:rPr><w:rFonts w:ascii="${d(e)}" w:hAnsi="${d(e)}"/><w:b/>`+o+`<w:sz w:val="${a}"/><w:szCs w:val="${a}"/></w:rPr></w:style>`}return n}function lt(e){return u()+`<w:settings xmlns:w="${v}">`+(e?`<w:displayBackgroundShape/>`:``)+`<w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/></w:compat></w:settings>`}function ut(e,t){let n=e.defaultFont??E,r=t.map((e,t)=>`<w:font w:name="${d(e.typeface)}"><w:charset w:val="00"/><w:family w:val="decorative"/><w:pitch w:val="variable"/><w:embedRegular r:id="rId${t+1}" w:fontKey="{${e.docxFontKey}}"/></w:font>`).join(``);return u()+`<w:fonts xmlns:w="${v}" xmlns:r="${b}"><w:font w:name="${d(n)}"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/></w:font><w:font w:name="${Ae}"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/></w:font><w:font w:name="${O}"><w:charset w:val="00"/><w:family w:val="modern"/><w:pitch w:val="fixed"/></w:font>`+r+`</w:fonts>`}function dt(e){let t=[],n=[];for(let r of e.numberingDefs){let e=r.numId,i=[];for(let e=0;e<9;e++)if(r.ordered)i.push(`<w:lvl w:ilvl="${e}"><w:start w:val="1"/><w:numFmt w:val="decimal"/><w:lvlText w:val="%${e+1}."/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="${720*(e+1)}" w:hanging="360"/></w:pPr></w:lvl>`);else{let t=[`•`,`◦`,`▪`],n=t[e%t.length];i.push(`<w:lvl w:ilvl="${e}"><w:start w:val="1"/><w:numFmt w:val="bullet"/><w:lvlText w:val="${n}"/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="${720*(e+1)}" w:hanging="360"/></w:pPr></w:lvl>`)}t.push(`<w:abstractNum w:abstractNumId="${e}">`+i.join(``)+`</w:abstractNum>`),n.push(`<w:num w:numId="${r.numId}"><w:abstractNumId w:val="${e}"/></w:num>`)}return u()+`<w:numbering xmlns:w="${v}">`+t.join(``)+n.join(``)+`</w:numbering>`}function ft(e){let t=[];t.push(`<w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote>`),t.push(`<w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>`);for(let[n,r]of e.footnotes)t.push(r);return u()+`<w:footnotes xmlns:w="${v}" xmlns:r="${b}">`+t.join(``)+`</w:footnotes>`}var R=`word/document.xml`;async function pt(e,t={}){let n=await S(e,t),r=he(n,R,`DOCX`),i=await ht(n,t,r),a=await x(n,r);if(!a)throw Error(`Invalid DOCX package: main document part "${r}" could not be parsed.`);let o=Lt(a,`body`);return o?{type:`document`,children:await bt(o,i)}:{type:`document`,children:[]}}async function mt(e,t={}){let n=await S(e,t),r=he(n,R,`DOCX`),a=await ht(n,{...t,extractImages:!0},r),o=await x(n,r);if(!o)throw Error(`Invalid DOCX package: main document part "${r}" could not be parsed.`);let s=Lt(o,`body`);return s?w(i({type:`document`,children:await bt(s,a)}),a.extractedImages):w(``,[])}async function ht(e,t,n=R){let r={headingStyles:new Map,quoteStyles:new Set,codeStyles:new Set,inlineCodeStyles:new Set,documentRels:new Map,numbering:new Map,footnotes:new Map,endnotes:new Map,currentPartPath:n,mainPartPath:n,pkg:e,options:t,extractedImages:new Map,imageCounter:0};for(let[e,t]of Object.entries(Te))r.headingStyles.set(e,t);for(let e of Ee)r.quoteStyles.add(e);for(let e of De)r.codeStyles.add(e);for(let e of Oe)r.inlineCodeStyles.add(e);await gt(e,r);let i=await C(e,n);for(let e of i)r.documentRels.set(e.id,e);return await _t(e,r),await vt(e,r),await yt(e,r),r}async function gt(e,t){let n=await x(e,`word/styles.xml`);if(!n)return;let r=n.getElementsByTagNameNS(v,`style`),i=r.length>0?r:n.getElementsByTagName(`style`);for(let e=0;e<i.length;e++){let n=i[e],r=n.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`styleId`)??n.getAttribute(`w:styleId`);if(!r)continue;let a=J(n,`name`),o=(a?.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`val`)??a?.getAttribute(`w:val`)??``).match(/^heading\s+(\d+)$/i);if(o){let e=parseInt(o[1],10);e>=1&&e<=6&&t.headingStyles.set(r,e)}let s=J(n,`pPr`);if(s){let e=J(s,`outlineLvl`);if(e){let n=e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`val`)??e.getAttribute(`w:val`);if(n!==null){let e=parseInt(n,10)+1;e>=1&&e<=6&&t.headingStyles.set(r,e)}}}}}async function _t(e,t){let n=await x(e,`word/numbering.xml`);if(!n)return;let r=new Map,i=X(n,`abstractNum`);for(let e of i){let t=Z(e,`abstractNumId`);if(!t)continue;let n=new Map,i=Y(e,`lvl`);for(let e of i){let t=Z(e,`ilvl`);if(t===null)continue;let r=parseInt(t,10),i=J(e,`numFmt`),a=i?Z(i,`val`):null,o=a!==null&&!ke.has(a);n.set(r,o)}r.set(t,n)}let a=X(n,`num`);for(let e of a){let n=Z(e,`numId`);if(!n)continue;let i=J(e,`abstractNumId`),a=i?Z(i,`val`):null;if(!a)continue;let o=r.get(a);o&&t.numbering.set(n,{levels:o})}}async function vt(e,t){let n=await x(e,`word/footnotes.xml`);if(!n)return;let r=X(n,`footnote`);for(let e of r){let n=Z(e,`id`),r=Z(e,`type`);!n||r===`separator`||r===`continuationSeparator`||t.footnotes.set(n,e)}}async function yt(e,t){let n=await x(e,`word/endnotes.xml`);if(!n)return;let r=X(n,`endnote`);for(let e of r){let n=Z(e,`id`),r=Z(e,`type`);!n||r===`separator`||r===`continuationSeparator`||t.endnotes.set(n,e)}}async function bt(e,t){let n=await z(e,t),r=await xt(e,t,`header`),i=await xt(e,t,`footer`),a=await Ft(t);return[...n,...r,...i,...a]}async function xt(e,t,n){let r=`/${n}`,i=`${n}Reference`,a=new Map;for(let t of X(e,i)){let e=t.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??t.getAttribute(`r:id`);e&&a.set(e,Z(t,`type`)??`default`)}let o=t.documentRels,s=t.currentPartPath,c=[];for(let e of o.values()){if(!e.type.endsWith(r))continue;let i=de(y(t.mainPartPath),e.target),l=await x(t.pkg,i);if(!l?.documentElement)continue;let u=await C(t.pkg,i);t.documentRels=new Map(u.map(e=>[e.id,e])),t.currentPartPath=i;try{let r=await z(l.documentElement,t);if(r.length===0)continue;c.push({type:`containerDirective`,name:`docx-${n}`,attributes:{type:a.get(e.id)??`default`,source:i},children:r})}finally{t.documentRels=o,t.currentPartPath=s}}return c}async function z(e,t){return B(Array.from(e.children),t)}async function B(e,t){let n=[],r=0;for(;r<e.length;){let i=e[r],a=i.localName;if(a===`p`){if(q(i)){let{node:i,consumed:a}=await At(e,r,t);n.push(i),r+=a;continue}let a=await St(i,t);a&&n.push(a),r++}else if(a===`tbl`){let e=await Mt(i,t);e&&n.push(e),r++}else if(a===`sdt`){let e=J(i,`sdtContent`);e&&n.push(...await B(Array.from(e.children),t)),r++}else if(a===`ins`||a===`moveTo`||a===`customXml`||a===`smartTag`||a===`fldSimple`)n.push(...await B(Array.from(i.children),t)),r++;else if(a===`AlternateContent`){let e=J(i,`Choice`)??J(i,`Fallback`);e&&n.push(...await B(Array.from(e.children),t)),r++}else r++}return n}async function St(e,t){let n=Rt(J(e,`pPr`));if(n&&t.headingStyles.has(n)){let r=t.headingStyles.get(n),i=await V(e,t);return i.length===0?null:{type:`heading`,depth:Math.min(Math.max(r,1),6),children:i}}if(n&&t.quoteStyles.has(n)){let n=await V(e,t);return n.length===0?null:{type:`blockquote`,children:[{type:`paragraph`,children:n}]}}if(n&&t.codeStyles.has(n))return{type:`code`,value:zt(e)};let r=await V(e,t);return r.length===0?null:{type:`paragraph`,children:r}}async function V(e,t){return $(await H(Array.from(e.children),t))}async function H(e,t){let n=[];for(let r of e){let e=r.localName;if(e===`r`){let e=await Ct(r,t);n.push(...e)}else if(e===`hyperlink`){let e=await Dt(r,t);e&&n.push(e)}else if(e===`sdt`){let e=J(r,`sdtContent`);e&&n.push(...await H(Array.from(e.children),t))}else if(e===`ins`||e===`moveTo`||e===`customXml`||e===`smartTag`||e===`fldSimple`)n.push(...await H(Array.from(r.children),t));else if(e===`AlternateContent`){let e=J(r,`Choice`)??J(r,`Fallback`);e&&n.push(...await H(Array.from(e.children),t))}else(e===`drawing`||e===`pict`)&&n.push(...await wt(r,t))}return n}async function Ct(e,t){let n=[],r=Et(J(e,`rPr`),t);for(let i of Array.from(e.children)){let e=i.localName;if(e===`t`){let e=i.textContent??``;if(!e)continue;if(r.code)n.push({type:`inlineCode`,value:e});else{let t={type:`text`,value:e};r.strike&&(t={type:`delete`,children:[t]}),r.italic&&(t={type:`emphasis`,children:[t]}),r.bold&&(t={type:`strong`,children:[t]}),n.push(t)}}else if(e===`br`||e===`cr`)n.push({type:`break`});else if(e===`tab`)n.push({type:`text`,value:` `});else if(e===`footnoteReference`){let e=Z(i,`id`);e&&e!==`0`&&e!==`-1`&&n.push({type:`footnoteReference`,identifier:`fn${e}`})}else if(e===`endnoteReference`){let e=Z(i,`id`);e&&e!==`0`&&e!==`-1`&&n.push({type:`footnoteReference`,identifier:`endnote${e}`})}else if(e===`drawing`||e===`pict`||e===`object`)n.push(...await wt(i,t));else if(e===`AlternateContent`){let e=J(i,`Choice`)??J(i,`Fallback`);e&&n.push(...await H(Array.from(e.children),t))}}return n}async function wt(e,t){let n=[],r=kt(e,`txbxContent`);for(let e of r)W(n,await U(e,t));let i=await Ot(e,t);return i&&n.push(i),r.length>0&&n.length>0&&(n[0]?.type!==`break`&&n.unshift({type:`break`}),n[n.length-1]?.type!==`break`&&n.push({type:`break`})),n}async function U(e,t){let n=[];for(let r of Array.from(e.children))if(r.localName===`p`)W(n,await V(r,t));else if(r.localName===`tbl`)W(n,await Tt(r,t));else if(r.localName===`sdt`){let e=J(r,`sdtContent`);e&&W(n,await U(e,t))}else if(r.localName===`ins`||r.localName===`moveTo`||r.localName===`customXml`||r.localName===`smartTag`||r.localName===`fldSimple`)W(n,await U(r,t));else if(r.localName===`AlternateContent`){let e=J(r,`Choice`)??J(r,`Fallback`);e&&W(n,await U(e,t))}else(r.localName===`r`||r.localName===`hyperlink`)&&W(n,await H([r],t));return $(n)}async function Tt(e,t){let n=[];for(let r of Y(e,`tr`))for(let e of Y(r,`tc`))W(n,await U(e,t));return $(n)}function W(e,t){t.length!==0&&(e.length>0&&e[e.length-1]?.type!==`break`&&e.push({type:`break`}),e.push(...t))}function Et(e,t){if(!e)return{bold:!1,italic:!1,strike:!1,code:!1};let n=Q(e,`b`)&&!G(J(e,`b`)),r=Q(e,`i`)&&!G(J(e,`i`)),i=Q(e,`strike`)&&!G(J(e,`strike`)),a=J(e,`rStyle`),o=a?Z(a,`val`):null,s=o?t.inlineCodeStyles.has(o):!1,c=J(e,`rFonts`),l=c?Z(c,`ascii`)??Z(c,`hAnsi`)??``:``,u=/consolas|courier|mono/i.test(l);return{bold:n,italic:r,strike:i,code:s||u}}function G(e){let t=Z(e,`val`);return t===`0`||t===`false`}async function Dt(e,t){let n=e.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??e.getAttribute(`r:id`),r=``;if(n){let e=t.documentRels.get(n);e&&(r=e.target)}if(!r){let t=e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`anchor`)??e.getAttribute(`w:anchor`);t&&(r=`#${t}`)}let i=await H(Array.from(e.children),t);return i.length===0?null:{type:`link`,url:r,children:$(i)}}async function Ot(e,t){let n=K(e,`blip`),r=K(e,`imagedata`),i=n?n.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`embed`)??n.getAttribute(`r:embed`):r?.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??r?.getAttribute(`r:id`)??r?.getAttribute(`o:relid`);if(!i)return null;let a=t.documentRels.get(i);if(!a||a.targetMode===`External`)return null;let o=de(y(t.currentPartPath),a.target),s=await pe(t.pkg,o);if(!s)return null;let c=o.lastIndexOf(`.`),l=c===-1?`.png`:o.slice(c).toLowerCase(),u=we(l);t.imageCounter++;let d=`images/image${t.imageCounter}${l}`;t.extractedImages.set(d,{data:s,mimeType:u});let f=K(e,`docPr`),p=K(e,`shape`);return{type:`image`,url:d,alt:f?.getAttribute(`descr`)||f?.getAttribute(`title`)||p?.getAttribute(`alt`)||p?.getAttribute(`title`)||`Image`}}function K(e,t){for(let n of Array.from(e.children)){if(n.localName===t)return n;let e=K(n,t);if(e)return e}return null}function kt(e,t){let n=[];for(let r of Array.from(e.children))r.localName===t&&n.push(r),n.push(...kt(r,t));return n}async function At(e,t,n){let r=q(e[t]),{numId:i}=r,a=n.numbering.get(i),o=a?.levels.get(0)??!1,s=[],c=0,l=t;for(;l<e.length;){let t=e[l];if(t.localName!==`p`)break;let o=q(t);if(!o||o.numId!==i)break;let u=await V(t,n);if(u.length>0){let t={type:`paragraph`,children:u};if(o.ilvl>r.ilvl){let t=await jt(e,l,n,r.ilvl);if(s.length>0){let e=s[s.length-1],n={type:`list`,ordered:a?.levels.get(o.ilvl)??!1,children:t.items};e.children.push(n)}else s.push(...t.items);l+=t.consumed,c+=t.consumed;continue}s.push({type:`listItem`,children:[t]})}l++,c++}return{node:{type:`list`,ordered:o,children:s},consumed:c}}async function jt(e,t,n,r){let i=[],a=0,o=t;for(;o<e.length;){let t=e[o];if(t.localName!==`p`)break;let s=q(t);if(!s||s.ilvl<=r)break;let c=await V(t,n);if(c.length>0){let e={type:`paragraph`,children:c};i.push({type:`listItem`,children:[e]})}o++,a++}return{items:i,consumed:a}}function q(e){let t=J(e,`pPr`);if(!t)return null;let n=J(t,`numPr`);if(!n)return null;let r=J(n,`ilvl`),i=J(n,`numId`),a=r?Z(r,`val`):null,o=i?Z(i,`val`):null;return!o||o===`0`?null:{numId:o,ilvl:a?parseInt(a,10):0}}async function Mt(e,t){let n=[],r=Y(e,`tr`);for(let e=0;e<r.length;e++){let i=await Nt(r[e],t,e===0);n.push(i)}return n.length===0?null:{type:`table`,children:n}}async function Nt(e,t,n){let r=[],i=Y(e,`tc`);for(let e of i){let i=await Pt(e,t,n);r.push(i)}return{type:`tableRow`,children:r}}async function Pt(e,t,n){return{type:`tableCell`,isHeader:n,children:$(await U(e,t))}}async function Ft(e){return[...await It(e,e.footnotes,`fn`,`word/footnotes.xml`),...await It(e,e.endnotes,`endnote`,`word/endnotes.xml`)]}async function It(e,t,n,r){let i=[],a=e.documentRels,o=e.currentPartPath,s=await C(e.pkg,r);e.documentRels=new Map(s.map(e=>[e.id,e])),e.currentPartPath=r;try{for(let[r,a]of t){let t=await z(a,e);t.length>0&&i.push({type:`footnoteDefinition`,identifier:`${n}${r}`,children:t})}}finally{e.documentRels=a,e.currentPartPath=o}return i}function J(e,t){for(let n of Array.from(e.children??[]))if(n.localName===t)return n;return null}function Y(e,t){let n=[];for(let r of Array.from(e.children))r.localName===t&&n.push(r);return n}function X(e,t){let n=`getElementsByTagNameNS`in e?e.getElementsByTagNameNS(v,t):null;if(n&&n.length>0)return Array.from(n);let r=e.getElementsByTagName(`w:${t}`);return r.length>0?Array.from(r):Array.from(e.getElementsByTagName(t))}function Lt(e,t){let n=X(e,t);return n.length>0?n[0]:null}function Z(e,t){return e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,t)||e.getAttribute(`w:${t}`)||null}function Q(e,t){return J(e,t)!==null}function Rt(e){if(!e)return null;let t=J(e,`pStyle`);return t?Z(t,`val`):null}function zt(e){let t=[];function n(e){e.localName===`t`&&t.push(e.textContent??``);for(let t of Array.from(e.children))n(t)}return n(e),t.join(``)}function $(e){if(e.length<=1)return e;let t=[];for(let n of e){let e=t[t.length-1];n.type===`text`&&e?.type===`text`?e.value+=n.value:t.push(n)}return t}var Bt=e({docxToContainer:()=>mt,docxToMarkdownDoc:()=>pt,markdownDocToDocx:()=>j});export{j as n,Bt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-7AWFHP5U-MiVVPFTx.js";import"./chunk-S5PCVMKU-CmFF6ff9.js";import{n as e}from"./chunk-WATAOG4Y-perfmDXF.js";export{e as extractPptxTheme};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/handlebars-Dq5dJ5WJ.js","assets/monaco-PebRhLpo.js","assets/rolldown-runtime-aKtaBQYM.js","assets/preload-helper-Czpn1I53.js","assets/index-CPXp6BEZ.js","assets/dist-jh33rACm.js","assets/dist-i9jV8CX8.js","assets/doc-BdMAKGDm.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-BAOV476U-yPHu-ECL.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-BUf32614.js","assets/chunk-6MVWWZHL-BtFOxGE8.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/markdown-ekej7NJt.js","assets/schemas-Drh23Boe.js","assets/chunk-USU6HTKB-hbaA8KyS.js","assets/pptx-Bmj2v9CT.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/chunk-JU2RHXUB-CMFDhTux.js","assets/chunk-DWNNYO5H-C9-5Gy65.js","assets/chunk-S5PCVMKU-CmFF6ff9.js","assets/chunk-ILCJ3WFD-uwKSpQd8.js","assets/chunk-IIQYS2YH-CPXng8SW.js","assets/storage-DUIC1aL6.js","assets/chunk-AONELFLA-Cv2nS9ga.js","assets/chunk-6RQOV3B3-CwvKotJw.js","assets/chunk-6N2J7C2B-DIF7DJtk.js","assets/transform-MBfVXq54.js","assets/container-CKiqsJHV.js","assets/docx-CNW-xqHT.js","assets/html-fQ6X2xaa.js","assets/pdf-CwJ6ZJmB.js","assets/chunk-KXOZMWBS-BwD4KMLI.js","assets/index-Caz-FRQy.css","assets/iconLabel-uMn49Ame.js","assets/iconLabel-Bdh_-Hrb.css","assets/codiconStyles-104B1IQ5.js","assets/codiconStyles-Bp1tMeMk.css","assets/monaco-BBUd89IN.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{t}from"./_.contribution-C6KlZ1yR.js";t({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>e(()=>import(`./handlebars-Dq5dJ5WJ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/html-Bgyk9kiZ.js","assets/monaco-PebRhLpo.js","assets/rolldown-runtime-aKtaBQYM.js","assets/preload-helper-Czpn1I53.js","assets/index-CPXp6BEZ.js","assets/dist-jh33rACm.js","assets/dist-i9jV8CX8.js","assets/doc-BdMAKGDm.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-BAOV476U-yPHu-ECL.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-BUf32614.js","assets/chunk-6MVWWZHL-BtFOxGE8.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/markdown-ekej7NJt.js","assets/schemas-Drh23Boe.js","assets/chunk-USU6HTKB-hbaA8KyS.js","assets/pptx-Bmj2v9CT.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/chunk-JU2RHXUB-CMFDhTux.js","assets/chunk-DWNNYO5H-C9-5Gy65.js","assets/chunk-S5PCVMKU-CmFF6ff9.js","assets/chunk-ILCJ3WFD-uwKSpQd8.js","assets/chunk-IIQYS2YH-CPXng8SW.js","assets/storage-DUIC1aL6.js","assets/chunk-AONELFLA-Cv2nS9ga.js","assets/chunk-6RQOV3B3-CwvKotJw.js","assets/chunk-6N2J7C2B-DIF7DJtk.js","assets/transform-MBfVXq54.js","assets/container-CKiqsJHV.js","assets/docx-CNW-xqHT.js","assets/html-fQ6X2xaa.js","assets/pdf-CwJ6ZJmB.js","assets/chunk-KXOZMWBS-BwD4KMLI.js","assets/index-Caz-FRQy.css","assets/iconLabel-uMn49Ame.js","assets/iconLabel-Bdh_-Hrb.css","assets/codiconStyles-104B1IQ5.js","assets/codiconStyles-Bp1tMeMk.css","assets/monaco-BBUd89IN.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{t}from"./_.contribution-C6KlZ1yR.js";t({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>e(()=>import(`./html-Bgyk9kiZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))});
|