@docx-editor.dev/core 2.2.1 → 2.3.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/automation.cjs +1 -1
- package/dist/automation.d.cts +2 -2
- package/dist/automation.d.ts +2 -2
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +2 -2
- package/dist/binding.d.ts +2 -2
- package/dist/binding.js +1 -1
- package/dist/chunk-2AOXVZU7.js +1 -0
- package/dist/chunk-4CHEPYZV.cjs +2 -0
- package/dist/chunk-7JUQEZU4.js +12 -0
- package/dist/chunk-BEV535XW.cjs +10 -0
- package/dist/chunk-EBIEBTAG.js +5 -0
- package/dist/{chunk-5WEA7SIG.cjs → chunk-IHAFYLLQ.cjs} +5 -5
- package/dist/{chunk-SAUKKJWZ.cjs → chunk-K6FOU3RO.cjs} +7 -7
- package/dist/{chunk-7D2CP2J7.js → chunk-OUKRZ43D.js} +1 -1
- package/dist/chunk-P2NVDXSG.cjs +1 -0
- package/dist/{chunk-3JENXX7Q.cjs → chunk-PYRPB22X.cjs} +1 -1
- package/dist/chunk-R6BMB6RM.js +10 -0
- package/dist/{chunk-EWRKYYUA.js → chunk-XNMXQWNA.js} +1 -1
- package/dist/chunk-Y2PX72HO.cjs +5 -0
- package/dist/chunk-YNO4ITHS.js +2 -0
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +5 -5
- package/dist/editor.d.ts +5 -5
- package/dist/editor.js +1 -1
- package/dist/{index-Beyo2mTa.d.cts → index-C7hgxxtG.d.cts} +2 -2
- package/dist/{index-BWiuzoVN.d.ts → index-DHX6HKd_.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +2 -2
- package/dist/layout.d.ts +2 -2
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.js +1 -1
- package/dist/{protocol-FAz_nPm_.d.cts → protocol-DAs0YOP3.d.cts} +62 -3
- package/dist/{protocol-BWVA3Q1p.d.ts → protocol-r6hje8Kf.d.ts} +62 -3
- package/dist/{review-reads-D3r3tnoo.d.cts → review-reads-JBOmRH--.d.cts} +8 -1
- package/dist/{review-reads-CMAqdMnE.d.ts → review-reads-cgvJLJc2.d.ts} +8 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +33 -25
- package/dist/store.d.ts +33 -25
- package/dist/store.js +1 -1
- package/dist/{tree-session-CMA7n4Rm.d.ts → tree-session-COduYhKr.d.ts} +14 -2
- package/dist/{tree-session-Cow6LjPn.d.cts → tree-session-ZpXtFxlP.d.cts} +14 -2
- package/package.json +2 -2
- package/dist/chunk-2QPRJAHK.js +0 -5
- package/dist/chunk-73X5I53C.cjs +0 -2
- package/dist/chunk-C3YJR64Q.cjs +0 -5
- package/dist/chunk-GLHPDILJ.cjs +0 -1
- package/dist/chunk-PD4BVZW5.js +0 -12
- package/dist/chunk-PEIEVTWR.js +0 -2
- package/dist/chunk-QIFQTG57.cjs +0 -10
- package/dist/chunk-RFO2O56I.js +0 -10
- package/dist/chunk-WKZR6YPE.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';var chunkBS554B6D_cjs=require('./chunk-BS554B6D.cjs'),chunk4CHEPYZV_cjs=require('./chunk-4CHEPYZV.cjs'),chunkBEV535XW_cjs=require('./chunk-BEV535XW.cjs'),prosemirrorModel=require('prosemirror-model'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),prosemirrorKeymap=require('prosemirror-keymap'),prosemirrorCommands=require('prosemirror-commands');function _(t){return t.attributes?.val}function j(t){let e=_(t);return e===void 0||!(e==="0"||e==="false"||e==="off")}var hn=/^[0-9A-Fa-f]{6}$/,ye=/^\d{1,6}$/,kn=/^-?\d{1,6}$/;function Ae(t){return t===void 0||t==="auto"?null:hn.test(t)?`#${t}`:null}var xn={single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"},bn={black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"};function On(t){return !t||!/^[\w \-.+]{1,64}$/.test(t)?null:`"${t}"`}function U(t,e=false){return t===void 0||!(e?kn:ye).test(t)?null:`${Number(t)/20}pt`}function Lt(t){let e=[],n=[],r=null,s=null;for(let l of t)switch(l.localName){case "b":e.push(`font-weight:${j(l)?"bold":"normal"}`);break;case "i":e.push(`font-style:${j(l)?"italic":"normal"}`);break;case "u":{let o=_(l)??"single";if(o==="none"||!j(l))break;n.push("underline"),r=xn[o]??"solid",s=Ae(l.attributes?.color);break}case "strike":j(l)&&n.push("line-through");break;case "dstrike":j(l)&&n.push("line-through");break;case "caps":j(l)&&e.push("text-transform:uppercase");break;case "smallCaps":j(l)&&e.push("font-variant:small-caps");break;case "vertAlign":{let o=_(l);o==="superscript"?e.push("vertical-align:super","font-size:0.75em"):o==="subscript"&&e.push("vertical-align:sub","font-size:0.75em");break}case "color":{let o=Ae(_(l));o&&e.push(`color:${o}`);break}case "highlight":{let o=bn[_(l)??""];o&&e.push(`background-color:${o}`);break}case "sz":{let o=_(l);o!==void 0&&ye.test(o)&&e.push(`font-size:${Number(o)/2}pt`);break}case "rFonts":{let o=On(l.attributes?.ascii??l.attributes?.hAnsi);o&&e.push(`font-family:${o}`);break}case "spacing":{let o=U(_(l),true);o&&e.push(`letter-spacing:${o}`);break}}return n.length>0&&(e.push(`text-decoration-line:${[...new Set(n)].join(" ")}`),r&&e.push(`text-decoration-style:${r}`),s&&e.push(`text-decoration-color:${s}`)),e.join(";")}var Sn={left:"left",start:"left",right:"right",end:"right",center:"center",both:"justify",distribute:"justify"};function Bt(t){let e=[];for(let n of t)switch(n.localName){case "jc":{let r=Sn[_(n)??""];r&&e.push(`text-align:${r}`);break}case "ind":{let r=U(n.attributes?.left??n.attributes?.start,true),s=U(n.attributes?.right??n.attributes?.end,true),l=U(n.attributes?.firstLine),o=U(n.attributes?.hanging);r&&e.push(`margin-left:${r}`),s&&e.push(`margin-right:${s}`),l?e.push(`text-indent:${l}`):o&&e.push(`text-indent:-${o}`);break}case "spacing":{let r=U(n.attributes?.before),s=U(n.attributes?.after);r&&e.push(`margin-top:${r}`),s&&e.push(`margin-bottom:${s}`);let l=n.attributes?.line,o=n.attributes?.lineRule;l!==void 0&&ye.test(l)&&o!=="exact"&&o!=="atLeast"?e.push(`line-height:${(Number(l)/240).toFixed(3)}`):l!==void 0&&ye.test(l)&&e.push(`line-height:${Number(l)/20}pt`);break}case "shd":{let r=Ae(n.attributes?.fill);r&&e.push(`background-color:${r}`);break}case "pageBreakBefore":j(n)&&e.push("break-before:page");break;}return e.join(";")}var E=new prosemirrorModel.Schema({nodes:{doc:{content:"paragraph+"},paragraph:{content:"inline*",group:"block",attrs:{nodeId:{default:null},props:{default:[]}},toDOM:t=>{let e=Bt(t.attrs.props??[]);return ["p",{"data-node-id":String(t.attrs.nodeId??""),...e?{style:e}:{}},0]},parseDOM:[{tag:"p",getAttrs:t=>typeof t=="string"?null:{nodeId:t.getAttribute("data-node-id")||null,props:[]}}]},text:{group:"inline"},tab:{inline:true,group:"inline",atom:true,selectable:false,toDOM:()=>["span",{"data-token":"tab",class:"docx-tab"},"\u2192"],parseDOM:[{tag:'span[data-token="tab"]'}]},hardBreak:{inline:true,group:"inline",atom:true,selectable:false,toDOM:()=>["br"],parseDOM:[{tag:"br"}]},pageBreak:{inline:true,group:"inline",atom:true,selectable:false,toDOM:()=>["span",{"data-token":"page-break",class:"docx-page-break"}],parseDOM:[{tag:'span[data-token="page-break"]'}]},unknownInline:{inline:true,group:"inline",atom:true,selectable:false,draggable:false,attrs:{nodeId:{default:null},label:{default:""}},toDOM:t=>["span",{"data-token":"unknown","data-node-id":String(t.attrs.nodeId??""),contenteditable:"false",class:"docx-unknown-inline",title:String(t.attrs.label||"Content this editor cannot edit yet. It is preserved.")}],parseDOM:[{tag:'span[data-token="unknown"]',getAttrs:t=>typeof t=="string"?false:{nodeId:t.getAttribute("data-node-id")||null,label:""}}]}},marks:{runProps:{attrs:{props:{default:[]}},excludes:"runProps",toDOM:t=>{let e=t.attrs.props??[],n=Lt(e);return ["span",{"data-run-props":vn(e),...n?{style:n}:{}},0]},parseDOM:[{tag:"span[data-run-props]",getAttrs:t=>{if(typeof t=="string")return false;let e=Rn(t.getAttribute("data-run-props"));return e?{props:e}:false}}]}}});function vn(t){return JSON.stringify(Array.isArray(t)?t:[])}function Rn(t){if(!t)return null;try{let e=JSON.parse(t);if(!Array.isArray(e))return null;let n=[];for(let r of e){if(typeof r!="object"||r===null)return null;let s=r;if(typeof s.localName!="string"||s.attributes!==void 0&&(typeof s.attributes!="object"||s.attributes===null))return null;n.push(s.attributes===void 0?{localName:s.localName}:{localName:s.localName,attributes:s.attributes});}return n}catch{return null}}function Le(t){for(let e of t.marks)if(e.type.name==="runProps")return e.attrs.props??[];return []}function he(t,e){return JSON.stringify(ke(t))===JSON.stringify(ke(e))}function ke(t){return [...t].map(e=>({localName:e.localName,attributes:Object.fromEntries(Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:1))})).sort((e,n)=>e.localName<n.localName?-1:1)}function Be(t){if(!t||t.kind==="textValue")return [];let e=[];for(let n of t.children){if(n.kind==="textValue")continue;let r={};for(let s of n.attributes)r[s.localName]=s.value;e.push(Object.keys(r).length>0?{localName:n.localName,attributes:r}:{localName:n.localName});}return e}function Ht(t){return t.kind==="textValue"?"":`${{drawing:"Picture",pict:"Picture",object:"Embedded object",fldSimple:"Field",hyperlink:"Hyperlink",sdt:"Content control",tbl:"Table"}[t.localName]??t.localName} \u2014 preserved, not editable yet`}function G(t){if(t.kind==="textValue")return [];let e=[],n=r=>{if(r.kind!=="run")return;let s=r.children.find(o=>o.kind==="runProperties"),l=Be(s);for(let o of r.children)if(o.kind!=="runProperties"){if(o.kind==="tab"){e.push({kind:"tab"});continue}if(o.kind==="hardBreak"){e.push(chunkBEV535XW_cjs.Xb(o)?{kind:"pageBreak"}:{kind:"hardBreak"});continue}if(o.kind==="text"){let c="";for(let p of o.children)p.kind==="textValue"&&(c+=p.value);c.length>0&&e.push({kind:"text",text:c,props:l});continue}e.push({kind:"unknown",nodeId:o.id,label:Ht(o)});}};return chunkBEV535XW_cjs.Qb(t.children,0,r=>{if(r.kind==="run"){n(r);return}e.push({kind:"unknown",nodeId:r.id,label:Ht(r)});}),e}function M(t){let e=[],n=r=>{if(r.kind!=="textValue"){if(r.kind==="body"){for(let s of r.children)s.kind==="paragraph"&&e.push(s);return}for(let s of r.children)n(s);}};return n(t.root),e}function $(t){let e=[];for(let n of chunkBEV535XW_cjs.ye(t))n.root.kind!=="textValue"&&chunkBEV535XW_cjs.Be(n.root.children,e,0);return e}function Y(t){let e=M(t).map(n=>{let r=n.kind==="textValue"?void 0:n.children.find(l=>l.kind==="paragraphProperties"),s=G(n).map(l=>{switch(l.kind){case "text":return E.text(l.text,l.props.length>0?[E.marks.runProps.create({props:l.props})]:[]);case "tab":return E.node("tab");case "hardBreak":return E.node("hardBreak");case "pageBreak":return E.node("pageBreak");default:return E.node("unknownInline",{nodeId:l.nodeId,label:l.label})}});return E.node("paragraph",{nodeId:n.id,props:Be(r)},s)});return E.node("doc",null,e.length>0?e:[E.node("paragraph")])}function Q(t){let e=[];return t.forEach(n=>{if(n.isText&&n.text){e.push({kind:"text",text:n.text,props:Le(n)});return}n.type.name==="tab"?e.push({kind:"tab"}):n.type.name==="hardBreak"?e.push({kind:"hardBreak"}):n.type.name==="pageBreak"?e.push({kind:"pageBreak"}):n.type.name==="unknownInline"&&e.push({kind:"unknown",nodeId:String(n.attrs.nodeId??""),label:String(n.attrs.label??"")});}),e}function C(t){let e="";for(let n of t)n.kind==="text"?e+=n.text:n.kind==="tab"?e+=" ":n.kind==="hardBreak"?e+=`
|
|
2
|
+
`:n.kind==="pageBreak"&&(e+=chunkBEV535XW_cjs.Vb);return e}function jt(t){let e=[],n=0;for(let r of t)r.kind==="text"?n+=r.text.length:r.kind==="tab"||r.kind==="hardBreak"||r.kind==="pageBreak"?n+=1:e.push(`${r.nodeId}@${n}`);return e}function In(t,e){if(t===e)return null;let n=0,r=Math.min(t.length,e.length);for(;n<r&&t[n]===e[n];)n+=1;let s=t.length,l=e.length;for(;s>n&&l>n&&t[s-1]===e[l-1];)s-=1,l-=1;return {start:n,endBefore:s,endAfter:l}}function _t(t){let e=[];for(let n of t)if(n.kind==="text")for(let r=0;r<n.text.length;r+=1)e.push(n.props);else (n.kind==="tab"||n.kind==="hardBreak"||n.kind==="pageBreak")&&e.push(e[e.length-1]??[]);return e}function Tn(t,e,n,r,s){let l=[],o=jt(e),c=jt(n);if(JSON.stringify(o)!==JSON.stringify(c))return {ok:false,reason:"unknown-content-moved",detail:t};he(r,s)||l.push({op:"setParagraphProperties",paragraphId:t,properties:ke(s)});let p=C(e),m=C(n),h=In(p,m);if(h&&(h.endBefore>h.start&&l.push({op:"deleteText",paragraphId:t,start:h.start,end:h.endBefore}),h.endAfter>h.start)){let b=m.slice(h.start,h.endAfter),g=h.start,i="",y=()=>{i.length!==0&&(l.push({op:"insertText",paragraphId:t,offset:g,text:i}),g+=i.length,i="");};for(let k of b)k===" "?(y(),l.push({op:"insertTab",paragraphId:t,offset:g}),g+=1):k===`
|
|
3
|
+
`?(y(),l.push({op:"insertHardBreak",paragraphId:t,offset:g}),g+=1):k===chunkBEV535XW_cjs.Vb?(y(),l.push({op:"insertPageBreak",paragraphId:t,offset:g}),g+=1):i+=k;y();}if(!h){let b=_t(e),g=_t(n),i=0;for(;i<g.length;){if(he(b[i]??[],g[i])){i+=1;continue}let y=i,k=g[i];for(;i<g.length&&he(g[i],k)&&!he(b[i]??[],g[i]);)i+=1;l.push({op:"setRunProperties",paragraphId:t,start:y,end:i,properties:ke(k)});}}return {ok:true,ops:l}}function He(t,e){let n=M(t),r=[];if(e.forEach(l=>{l.type.name==="paragraph"&&r.push(l);}),r.length!==e.childCount)return {ok:false,reason:"unsupported-node"};let s=r.length-n.length;if(s===0){let l=[];for(let[o,c]of r.entries()){let p=n[o];if(c.attrs.nodeId!==p.id)return {ok:false,reason:"paragraph-reordered",detail:String(c.attrs.nodeId)};let m=Tn(p.id,G(p),Q(c),Be(p.kind==="textValue"?void 0:p.children.find(h=>h.kind==="paragraphProperties")),c.attrs.props??[]);if(!m.ok)return m;l.push(...m.ops);}return {ok:true,ops:l}}return s===1?Nn(n,r):s===-1?En(n,r):{ok:false,reason:"paragraph-count-unexplained",detail:String(s)}}function Nn(t,e){for(let n=0;n<t.length;n+=1){let r=t[n],s=e[n],l=e[n+1];if(!s||!l||s.attrs.nodeId!==r.id)continue;let o=l.attrs.nodeId;if(o!==null&&o!==r.id)continue;let c=C(Q(s));if(c+C(Q(l))===C(G(r))&&$t(t,e,n)&&zt(t,e,n+1,n+2))return {ok:true,ops:[{op:"splitParagraph",paragraphId:r.id,offset:c.length}]}}return {ok:false,reason:"split-not-clean"}}function En(t,e){for(let n=0;n+1<t.length;n+=1){let r=t[n],s=t[n+1],l=e[n];if(!l||l.attrs.nodeId!==r.id)continue;let o=C(G(r))+C(G(s));if(C(Q(l))===o&&$t(t,e,n)&&zt(t,e,n+2,n+1))return {ok:true,ops:[{op:"joinParagraphs",firstId:r.id,secondId:s.id}]}}return {ok:false,reason:"join-not-clean"}}function $t(t,e,n){for(let r=0;r<n;r+=1){let s=e[r],l=t[r];if(!s||s.attrs.nodeId!==l.id||C(Q(s))!==C(G(l)))return false}return true}function zt(t,e,n,r){for(let s=0;n+s<t.length;s+=1){let l=t[n+s],o=e[r+s];if(!o||o.attrs.nodeId!==l.id||C(Q(o))!==C(G(l)))return false}return true}function Cn(t,e){return chunkBEV535XW_cjs.Ea(t,e)!==null}function je(t,e,n){if(!n||n.created.length>0||n.deleted.length>0||n.splitJoin.length>0)return Y(e);let r=new Map;t.forEach(p=>{let m=p.attrs.nodeId;typeof m=="string"&&r.set(m,p);});let s=new Set(n.dirty),l=M(e);if(l.length!==t.childCount)return Y(e);let o=Y(e),c=[];for(let[p,m]of l.entries()){let h=r.get(m.id);c.push(h&&!s.has(m.id)?h:o.child(p));}return E.node("doc",null,c)}function Dn(t,e){let n=t.kind==="revision"?t.ranges[0]??null:t.range;if(!n)return null;let r=e.get(n.start.paragraphId);return r===void 0?null:r}function Wt(t,e,n){for(let s of e)if(s.ranges.length===0)return false;let r=new Set;for(let s of t)s.kind!=="revision"||s.ranges.length>0||Yt(s,n)||r.add(chunkBS554B6D_cjs.b(s));for(let s of e)if(r.has(chunkBS554B6D_cjs.b(s)))return false;return true}function Ut(t,e,n,r){let s=e.get(n);if(s===void 0)return [...t];let l=[],o=null;for(let c of t){if(c.kind==="revision"&&Yt(c,n)){o===null&&(o=l.length);continue}if(o===null){let p=Dn(c,e);p!==null&&p>s&&(o=l.length);}l.push(c);}if(o===null&&(o=l.length),r.length>0){let c=r.length<2?[...r]:[...r].sort((p,m)=>chunkBS554B6D_cjs.g(p,e)-chunkBS554B6D_cjs.g(m,e));l.splice(o,0,...c);}return chunkBEV535XW_cjs.mg(l)}function Yt(t,e){return t.ranges.length>0&&t.ranges.every(n=>n.start.paragraphId===e&&n.end.paragraphId===e)}function Mn(t,e){return t.range?t.range.start.paragraphId===e||t.range.end.paragraphId===e:false}function wn(t,e){return t.revisionKind==="structural"&&t.ranges.some(n=>n.start.paragraphId===e||n.end.paragraphId===e)}function Fn(t,e){return t.ranges.length===0||!t.ranges.some(r=>r.start.paragraphId===e||r.end.paragraphId===e)?false:!t.ranges.every(r=>r.start.paragraphId===e&&r.end.paragraphId===e)}function Gt(t,e,n,r,s,l,o){if(t.fromRevision!==e.bodyRevision||o!==e.packageRevision+1||t.story!==void 0&&t.story.kind!=="body"||t.impact!=="text-local"||t.dirty.length!==1||t.created.length>0||t.deleted.length>0||t.splitJoin.length>0||e.commentsPart!==s||e.commentsExtendedPart!==l)return null;let c=t.dirty[0],p=chunkBEV535XW_cjs.Ea(r,c);if(!p||p.kind!=="paragraph")return null;for(let m of n){if(m.kind==="comment"){if(Mn(m,c))return null;continue}if(m.kind==="custom"){if(m.range?.start.paragraphId===c)return null;continue}if(wn(m,c)||Fn(m,c))return null}return c}var Xt=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,An=["ascii","hAnsi","cs","eastAsia"],Ln=["asciiTheme","hAnsiTheme","cstheme","eastAsiaTheme"];var Bn=/[\u0000-\u001F\u007F-\u009F]/;function xe(t){return t.kind!=="textValue"}function K(t,e){return t.attributes.find(n=>n.localName===e)?.value}function Jt(t,e){let n=new Map,r=o=>{if(!o||!Xt.test(o))return;let c=o.toLowerCase();n.has(c)||n.set(c,o);},s=[...t].reverse();for(;s.length>0;){let o=s.pop();if(xe(o)){if(o.localName==="rFonts"){for(let c of An)r(K(o,c));if(e)for(let c of Ln){let p=K(o,c);p!==void 0&&(p.startsWith("major")?r(e.major):p.startsWith("minor")&&r(e.minor));}}for(let c=o.children.length-1;c>=0;c-=1)s.push(o.children[c]);}}let l=[...n.values()];return l.sort((o,c)=>o<c?-1:o>c?1:0),l}var Hn=new Set(["paragraph","character","table","numbering"]),jn=/^[0-9A-Fa-f]{6}$/,_n=16,Kt=new Map([["normal",0],["title",1],["subtitle",2],["heading 1",11],["heading 2",12],["heading 3",13],["heading 4",14],["heading 5",15],["heading 6",16],["heading 7",17],["heading 8",18],["heading 9",19]]);function Zt(t){return t.children}function _e(t,e){for(let n of Zt(t))if(xe(n)&&n.localName===e)return n}function $n(t){return Kt.get(t.name.toLowerCase())??Kt.get(t.styleId.toLowerCase())??Number.MAX_SAFE_INTEGER}function $e(t){return t===void 0||t.length===0||t.length>128||Bn.test(t)?null:t}function Qt(t,e){if(!t)return [];let n=new Map;for(let l of t.children){if(!xe(l)||l.localName!=="style")continue;let o=$e(K(l,"styleId"));o!==null&&!n.has(o)&&n.set(o,l);}let r=l=>{let o=false,c=false,p=null,m=false,h=false,b=new Set,g=l;for(let k=0;k<_n&&g!==null&&!b.has(g);k+=1){b.add(g);let I=n.get(g);if(!I)break;let S=_e(I,"rPr");for(let T of S?Zt(S):[]){if(!xe(T))continue;let v=K(T,"val"),H=v!=="0"&&v!=="false"&&v!=="off";T.localName==="b"&&!m?(o=H,m=true):T.localName==="i"&&!h?(c=H,h=true):T.localName==="color"&&p===null&&v&&jn.test(v)&&(p=v);}let P=_e(I,"basedOn");g=P?$e(K(P,"val")):null;}let i=e?.(l),y=i?.fontFamily??null;return {fontFamily:y!==null&&Xt.test(y)?y:null,fontSizePt:i?.fontSizeHalfPoints!=null&&i.fontSizeHalfPoints>0?i.fontSizeHalfPoints/2:null,bold:o,italic:c,color:p}},s=[];for(let[l,o]of n){let c=K(o,"type");if(c===void 0||!Hn.has(c))continue;let p=_e(o,"name"),m=$e(p?K(p,"val"):void 0);s.push({styleId:l,name:m??l,type:c,preview:r(l)});}return s.map((l,o)=>({entry:l,index:o,rank:$n(l)})).sort((l,o)=>l.rank-o.rank||l.index-o.index).map(l=>l.entry)}var zn=128,Wn=/[\u0000-\u001F\u007F-\u009F]/,Un=/[\u0000-\u001F\u007F-\u009F]/g,Yn=200,Gn=/^heading ([1-9])$/i;function ze(t){return t.kind!=="textValue"}function re(t,e){for(let n of t.children)if(ze(n)&&n.localName===e)return n}function oe(t,e){return t.attributes.find(n=>n.localName===e)?.value}function Kn(t){let e=new Map;if(!t)return e;for(let n of t.children){if(!ze(n)||n.localName!=="style"||oe(n,"type")!=="paragraph")continue;let r=oe(n,"styleId");if(r===void 0||r.length===0||r.length>zn||Wn.test(r))continue;let s=re(n,"name"),l=s?oe(s,"val"):void 0,o=l!==void 0?Gn.exec(l):null;if(o){e.set(r,Number(o[1])-1);continue}let c=re(n,"pPr"),p=c?re(c,"outlineLvl"):void 0,m=p?oe(p,"val"):void 0;m!==void 0&&/^[0-8]$/.test(m)&&e.set(r,Number(m));}return e}function We(t){let e=re(t,"pPr"),n=e?re(e,"pStyle"):void 0;return n?oe(n,"val"):void 0}function qt(t,e){let n=Kn(e);if(n.size===0)return [];let r=[];for(let s of M(t)){if(!ze(s))continue;let l=We(s);if(l===void 0)continue;let o=n.get(l);if(o===void 0)continue;let p=(chunkBEV535XW_cjs.zf(t,s.id)??"").replace(Un," ").trim().slice(0,Yn);p.length!==0&&r.push({text:p,level:o,blockId:s.id});}return r}var be=48,Xn=/[\u0000-\u001F\u007F-\u009F]/g;function Vt(t){return t.kind!=="textValue"}function Oe(t){if(t.kind==="textValue")return t.value.length;if(t.kind==="tab"||t.kind==="hardBreak")return 1;if(t.kind==="runProperties"||t.kind==="generic")return 0;if(t.kind==="hyperlink"||chunkBEV535XW_cjs.Jb(t)){let n=0,r=t.kind==="hyperlink"?t.children:chunkBEV535XW_cjs.Lb(t)??[];for(let s of r)n+=Oe(s);return n}let e=0;for(let n of t.children)e+=Oe(n);return e}function Jn(t){let e=[],n=0;return Vt(t)&&chunkBEV535XW_cjs.Qb(t.children,0,r=>{if(r.kind==="run"){e.push(n),n+=Oe(r);return}n+=Oe(r);}),e}function Zn(t,e){if(t.length===0)return {index:0,offset:e};for(let n=t.length-1;n>=0;n-=1){let r=t[n];if(e>=r)return {index:n,offset:e-r}}return {index:0,offset:e}}function Ue(t,e){return t.replace(Xn," ").slice(0,e)}function en(t,e,n={}){let r={matches:[],truncated:false};if(!chunkBEV535XW_cjs.vg(e))return r;let s=n.limit!==void 0&&Number.isInteger(n.limit)&&n.limit>0?Math.min(n.limit,2e3):2e3,l={...n.matchCase===void 0?{}:{matchCase:n.matchCase},...n.wholeWord===void 0?{}:{wholeWord:n.wholeWord}},o=[],c=0;for(let p of M(t)){if(!Vt(p))continue;let m=c;c+=1;let h=chunkBEV535XW_cjs.zf(t,p.id)??"";if(h.length===0)continue;let b=chunkBEV535XW_cjs.wg(h,e,s-o.length,l),g=null;for(let i of b.matches){let y=i.start+i.length;g??=Jn(p);let k=Zn(g,i.start);o.push({blockId:p.id,start:i.start,length:i.length,paragraphIndex:m,runIndex:k.index,runOffset:k.offset,text:Ue(h.slice(i.start,y),256),contextBefore:Ue(h.slice(Math.max(0,i.start-be),i.start),be),contextAfter:Ue(h.slice(y,y+be),be)});}if(b.truncated)return {matches:o,truncated:true}}return {matches:o,truncated:false}}var Qn=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6"],qn=/^[0-9A-Fa-f]{6}$/,tn={windowText:"000000",window:"FFFFFF"};function on(t){return t.kind!=="textValue"}function Se(t,e){return t.attributes.find(n=>n.localName===e)?.value}function rn(t,e){let n=[t];for(;n.length>0;){let r=n.pop();if(on(r)){if(r.localName===e)return r;for(let s=r.children.length-1;s>=0;s-=1)n.push(r.children[s]);}}return null}function Pe(t,e){for(let n of t.children)if(on(n)&&(e===void 0||n.localName===e))return n;return null}function Vn(t){let e=Pe(t);if(!e)return null;let n;if(e.localName==="srgbClr")n=Se(e,"val");else if(e.localName==="sysClr"){let r=Se(e,"val")??"";n=Se(e,"lastClr")??(Object.prototype.hasOwnProperty.call(tn,r)?tn[r]:void 0);}return n===void 0||!qn.test(n)?null:n.toUpperCase()}var eo=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function nn(t,e){let n=Pe(t,e),r=n?Pe(n,"latin"):null,s=r?Se(r,"typeface"):void 0;return s!==void 0&&eo.test(s)?s:null}function ae(t){if(!t)return {major:null,minor:null};let e=rn(t,"fontScheme");return e?{major:nn(e,"majorFont"),minor:nn(e,"minorFont")}:{major:null,minor:null}}function an(t){if(!t)return [];let e=rn(t,"clrScheme");if(!e)return [];let n=[];for(let r of Qn){let s=Pe(e,r),l=s?Vn(s):null;if(l===null)return [];n.push({slot:r,hex:l});}return n}var to=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;var no=/[\u0000-\u001F\u007F-\u009F]/;function un(t){return t.kind!=="textValue"}function X(t,e){for(let n of t.children)if(un(n)&&n.localName===e)return n}function J(t,e){return t.attributes.find(n=>n.localName===e)?.value}function ln(t){return t===void 0||t.length===0||t.length>128||no.test(t)?null:t}function ve(t,e){return t==="minorAscii"||t==="minorHAnsi"?e.minor:t==="majorAscii"||t==="majorHAnsi"?e.major:null}function oo(t,e){let n=ve(J(t,"asciiTheme"),e)??ve(J(t,"hAnsiTheme"),e);if(n!==null)return n;let r=J(t,"ascii")??J(t,"hAnsi");return r===void 0?null:to.test(r)?r:null}function sn(t,e){if(!t)return {fontFamily:null,fontSizeHalfPoints:null};let n=X(t,"rFonts"),r=X(t,"sz"),s=r?J(r,"val"):void 0,l=s!==void 0&&/^\d{1,4}$/.test(s)?Number(s):null;return {fontFamily:n?oo(n,e):null,fontSizeHalfPoints:l!==null&&l>=2&&l<=3276?l:null}}function Ye(t,e){let n=new Map,r={fontFamily:null,fontSizeHalfPoints:null};if(t){let o=X(t,"docDefaults"),c=o?X(o,"rPrDefault"):void 0;r=sn(c?X(c,"rPr"):void 0,e);for(let p of t.children){if(!un(p)||p.localName!=="style")continue;let m=ln(J(p,"styleId"));if(m===null||n.has(m))continue;let h=X(p,"basedOn");n.set(m,{basedOn:ln(h?J(h,"val"):void 0),own:sn(X(p,"rPr"),e)});}}let s=new Map,l=o=>{let c=o??"",p=s.get(c);if(p)return p;let m=null,h=null,b=new Set,g=o;for(let y=0;g!==null&&y<16&&!b.has(g);y+=1){b.add(g);let k=n.get(g);if(!k)break;m??=k.own.fontFamily,h??=k.own.fontSizeHalfPoints,g=k.basedOn;}let i={fontFamily:m??r.fontFamily,fontSizeHalfPoints:h??r.fontSizeHalfPoints};return s.set(c,i),i};return (o,c)=>{let p=l(o),m=c?.find(b=>b.localName==="rFonts"),h=m?ve(m.attributes?.asciiTheme,e)??ve(m.attributes?.hAnsiTheme,e):null;return h===null?p:{...p,fontFamily:h}}}function dn(t){let e=new Map,n=new Map,r=new Map;return $(t).forEach((s,l)=>{r.set(s.id,l);let o=chunkBEV535XW_cjs.Jc(s);if(o===null||!chunkBEV535XW_cjs.Ic(o))return;e.set(s.id,o);let c=o.toUpperCase();n.has(c)||n.set(c,s.id);}),Object.freeze({paraIdByNode:e,nodeByParaId:n,ordinalByNode:r})}var ro=Object.freeze([]);function ao(t,e={}){let n=chunkBEV535XW_cjs.wb(t);if(!n.ok)return {ok:false,reason:n.reason,...n.detail?{detail:n.detail}:{}};let r=n.package,s=r.parts.get(r.mainDocumentPart);if(!s)return {ok:false,reason:"no-main-document-tree",detail:r.mainDocumentPart};let l=chunkBEV535XW_cjs.Pc(s),o=new chunkBEV535XW_cjs.Ef(r,l),c=null,p=null,m=null,h=null;o.subscribe(a=>{h=a;});let b=()=>o.bodyStore(),g=()=>o.currentPackage(),i=Object.freeze({kind:"body"}),y=(a,u)=>{let d=o.currentPackage(),f=a.checkpoint();a.graftPackage(()=>o.currentPackage());let x=u();return x.ok&&(a.restoreHistoryStacks(f),o.replacePackageShell(a.package),o.adoptPackageUnit(d),o.publishStoryWrite(x.change)),x},k=()=>{if(!c||c.packageRevision!==o.packageRevision){let a=chunkBEV535XW_cjs.Sb(g());c={packageRevision:o.packageRevision,resolution:a,parts:chunkBEV535XW_cjs.Tb(g())};}return c},I="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",S="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",P=false,T=null,v=()=>{if(P)return T;P=true;let a=g(),u=(a.relationships.get(a.mainDocumentPart)??[]).find(f=>f.type===I),d;if(u){let f=chunkBEV535XW_cjs.N(u);f.mode==="Internal"&&f.target.ok&&(d=a.parts.get(f.target.partName));}return d??=a.parts.get("/word/styles.xml"),T=d?.root??null,T},H=false,z=null,le=()=>{if(H)return z;H=true;let a=g(),u=(a.relationships.get(a.mainDocumentPart)??[]).find(f=>f.type===S),d;if(u){let f=chunkBEV535XW_cjs.N(u);f.mode==="Internal"&&f.target.ok&&(d=a.parts.get(f.target.partName));}return d??=a.parts.get("/word/numbering.xml"),z=d?.root??null,z},q="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",se=-1,Re=null,Ge=()=>{if(se===o.packageRevision)return Re;se=o.packageRevision;let a=g(),u=(a.relationships.get(a.mainDocumentPart)??[]).find(f=>f.type===q),d;if(u){let f=chunkBEV535XW_cjs.N(u);f.mode==="Internal"&&f.target.ok&&(d=a.parts.get(f.target.partName));}return d??=a.parts.get("/word/settings.xml"),Re=d?.root??null,Re},mn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Ke=false,Ie=null,V=()=>{if(Ke)return Ie;Ke=true;let a=g(),u=(a.relationships.get(a.mainDocumentPart)??[]).find(f=>f.type===mn),d;if(u){let f=chunkBEV535XW_cjs.N(u);f.mode==="Internal"&&f.target.ok&&(d=a.parts.get(f.target.partName));}return d??=a.parts.get("/word/theme/theme1.xml"),Ie=d?.root??null,Ie},gn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",ie=null,yn=()=>{if(ie)return ie;let a=g(),u=(a.relationships.get(a.mainDocumentPart)??[]).find(f=>f.type===gn),d;if(u){let f=chunkBEV535XW_cjs.N(u);f.mode==="Internal"&&f.target.ok&&(d=a.parts.get(f.target.partName));}return d??=a.parts.get("/word/fontTable.xml"),ie=Object.freeze(chunk4CHEPYZV_cjs.G(a,d)),ie},ee=null,Xe=null,Je=null,Ze=null,ue=null,de=null,te=null,ne=null,ce=null,pe=null,Te=()=>{let a=b();return (!ce||ce.revision!==a.revision)&&(ce={revision:a.revision,index:dn(a.part)}),ce.index};return {ok:true,session:{editable:$(b().part).length>0,paragraphIds:()=>$(b().part).map(a=>a.id),paragraphIdsIn(a=i){let u=o.partFor(a);return u?$(u).map(d=>d.id):[]},part:()=>b().part,partFor:a=>o.partFor(a),currentPackage:g,applyTreeOps(a,u,d,f=i){if(a.length===0)return {committed:false,rejected:false,opCount:0};let x=a.filter(R=>chunkBEV535XW_cjs.Tc(R)||chunkBEV535XW_cjs.Zd(R)).length;if(x>0){if(x!==a.length||a.length!==1)return {committed:false,rejected:true,opCount:a.length,reason:"invalidArgs"};let R=o.applyLifecycleOp(a[0]);return R.ok?{committed:true,rejected:false,opCount:1}:{committed:false,rejected:true,opCount:1,reason:R.detail??R.reason}}let O=o.transact(f,R=>{u!==void 0&&R.selectionBefore(u),d!==void 0&&R.selectionAfter(d);for(let N of a)R.apply(N);});return O.ok?{committed:true,rejected:false,opCount:a.length}:{committed:false,rejected:true,opCount:a.length,reason:O.reason}},projectDoc:()=>Y(b().part),reconcile:a=>je(a,b().part,h),lastCommitWasStructural:()=>h!==null&&(h.created.length>0||h.deleted.length>0||h.splitJoin.length>0||h.impact==="global"),applyPmDoc(a){let u=b(),d=He(u.part,a);if(!d.ok)return {committed:false,rejected:true,opCount:0,reason:d.reason};if(d.ops.length===0)return {committed:false,rejected:false,opCount:0};let f=o.transact(i,x=>{for(let O of d.ops)x.apply(O);});return f.ok?{committed:true,rejected:false,opCount:d.ops.length}:{committed:false,rejected:true,opCount:d.ops.length,reason:f.reason}},bodyText:()=>lo(b().part),storyText(a){let u=o.partFor(a);return u?$(u).map(d=>chunkBEV535XW_cjs.zf(u,d.id)??"").join(`
|
|
4
|
+
`):null},revision:()=>b().revision,revisionFor:a=>o.revisionFor(a),packageRevision:()=>o.packageRevision,canUndo:()=>o.canUndo,canRedo:()=>o.canRedo,undo:()=>{let a=o.selectionForUndo();return o.undo()===null?null:a},redo:()=>{let a=o.selectionForRedo();return o.redo()===null?null:a},beginComposition:(a=i)=>{o.beginComposition(a);},endComposition:()=>o.endComposition(),subscribe(a){return o.subscribe(a)},save(){return chunkBEV535XW_cjs.xb(g())},headerFooterParts:()=>{let a=k().parts;return a[a.length-1]??chunkBEV535XW_cjs.Ub(g())},headerFooterPartsBySection:()=>k().parts,headerFooterResolutionBySection:()=>k().resolution,documentFonts(){if(ee&&ee.revision===o.packageRevision)return ee.fonts;let a=k().parts,u=[b().part.root],d=v();d&&u.push(d);let f=new Set;for(let x of a){for(let O of x.headers.values())f.has(O)||(f.add(O),u.push(O.root));for(let O of x.footers.values())f.has(O)||(f.add(O),u.push(O.root));}return ee={revision:o.packageRevision,fonts:Jt(u,ae(V()))},ee.fonts},documentStyles(){ue??=Ye(v(),ae(V()));let a=ue;return Xe??=Qt(v(),u=>a(u)),Xe},stylesRoot:()=>v(),documentThemeFonts(){return Ze??=ae(V()),Ze},numberingRoot:()=>le(),settingsRoot:()=>Ge(),trackingSettings:()=>chunk4CHEPYZV_cjs.O(Ge()),documentThemeColors(){return Je??=an(V()),Je},effectiveRunDefaults(a,u){ue??=Ye(v(),ae(V()));let d=b();if(!de||de.revision!==d.revision){let f=new Map;for(let x of $(d.part))x.kind!=="textValue"&&f.set(x.id,We(x)??null);de={revision:d.revision,byId:f};}return ue(de.byId.get(a)??null,u)},documentOutline(){let a=b();return te&&te.revision===a.revision||(te={revision:a.revision,outline:qt(a.part,v())}),te.outline},findText(a,u){let d=b(),f=`${u?.matchCase===true?"c":""}${u?.wholeWord===true?"w":""}${u?.limit??""}\0${a}`;if(ne&&ne.revision===d.revision&&ne.key===f)return ne.result;let x=en(d.part,a,u??{});return ne={revision:d.revision,key:f,result:x},x},embeddedFonts:yn,paragraphAnchors:Te,paraIdOf:a=>Te().paraIdByNode.get(a)??null,nodeIdOf:a=>Te().nodeByParaId.get(a.toUpperCase())??null,relationshipTarget:(a,u=i)=>{let d=g(),f=o.partFor(u);return f?chunkBEV535XW_cjs.Sc(d,f.name,a):null},bookmarks:()=>{let a=b();return (!pe||pe.revision!==a.revision)&&(pe={revision:a.revision,index:chunkBEV535XW_cjs.xc(a.part)}),pe.index},ensureHyperlinkRelationship(a,u=i){let d=o.partFor(u);if(!d)return null;let f=g(),x=chunkBEV535XW_cjs.Rc(f,a,d.name);return x?(x.pkg!==f&&o.replacePackageShell(x.pkg),x.relationshipId):null},reviewItems(){let a=e.reviewModel;if(!a)return ro;let u=b(),d=`${o.packageRevision}:${u.revision}`;if(p&&p.revisionKey===d)return p.items;let f=g(),x=f.parts.get(chunkBEV535XW_cjs.Mf(f,u.part.name)),O=f.parts.get(chunkBEV535XW_cjs.Nf(f,u.part.name)),R=[],N=new Set;for(let A of k().parts)for(let L of [A.headers,A.footers])for(let B of L.values())N.has(B)||(N.add(B),R.push(B));for(let A of ["footnote","endnote"]){let L=chunkBEV535XW_cjs.Td(f,A);!L||N.has(L)||(N.add(L),R.push(L));}let w=p&&h?Gt(h,p,p.items,u.part,x,O,o.packageRevision):null,F,D;if(w&&p){let A=a.revisionItemsOfParagraph(u.part,w);Wt(p.items,A,w)?(F=Ut(p.items,p.paragraphOrder,w,A),D=p.paragraphOrder):(D=chunkBEV535XW_cjs.ng(u.part),F=a.collectReviewItems({storyPart:u.part,furnitureParts:R,commentsPart:x,commentsExtendedPart:O,customNodePayloads:chunkBEV535XW_cjs.Tf(g(),u.part.name)}));}else D=chunkBEV535XW_cjs.ng(u.part),F=a.collectReviewItems({storyPart:u.part,furnitureParts:R,commentsPart:x,commentsExtendedPart:O,customNodePayloads:chunkBEV535XW_cjs.Tf(g(),u.part.name)});return p={revisionKey:d,bodyRevision:u.revision,packageRevision:o.packageRevision,items:F,paragraphOrder:D,commentsPart:x,commentsExtendedPart:O},p.items},hasReviewContent(){let a=b();return (!m||m.revision!==a.revision)&&(m={revision:a.revision,present:chunkBEV535XW_cjs.ef(a.part).length>0||pn(a.part.root)}),m.present},replyToComment(a,u,d,f,x,O=i){let R=O.kind==="body"?null:o.resolveStory(O),N=R?.ok?R.store:b(),w=o.currentPackage(),F=N.checkpoint();N.graftPackage(()=>o.currentPackage());let D=chunkBEV535XW_cjs.Jf(N,{anchor:{paragraphId:u.paragraphId,start:u.start,end:u.end,...u.endParagraphId===void 0?{}:{endParagraphId:u.endParagraphId}},author:f,text:d,...x===void 0?{}:{date:x},...a===null?{}:{replyToCommentId:a}});return D.ok?(N.restoreHistoryStacks(F),o.replacePackageShell(N.package),o.adoptPackageUnit(w),o.publishStoryWrite(D.change),D.commentId):null},setCommentResolved(a,u){let d=b(),f=o.currentPackage(),x=d.checkpoint();d.graftPackage(()=>o.currentPackage());let O=chunkBEV535XW_cjs.Kf(d,a,u);return O.ok?(d.restoreHistoryStacks(x),o.replacePackageShell(d.package),o.adoptPackageUnit(f),o.publishStoryWrite(O.change),true):false},deleteComment(a,u=i,d){return this.deleteComments([{commentId:a}],u,d)},deleteComments(a,u=i,d){if(a.length===0)return false;let f=u.kind==="body"?b().part:o.partFor(u);if(!f)return false;let x={storyPartName:f.name,...d===void 0?{}:{noteId:d}},O=b(),R=o.currentPackage(),N=O.checkpoint();O.graftPackage(()=>o.currentPackage());let w=false,F=false,D=O.transact(A=>{A.applyPackage(L=>{let B=L;for(let fe of a){let Ne=fe.parentCommentId===void 0?chunkBEV535XW_cjs.Ie(B,fe.commentId,x):chunkBEV535XW_cjs.Je(B,fe.commentId,fe.parentCommentId,x);if(Ne===null)return w=true,L;F||=Ne!==B,B=Ne;}return B});});return w||!D.ok||!F?false:(O.restoreHistoryStacks(N),o.installPackageSnapshot(O.package),o.adoptPackageUnit(R),o.publishStoryWrite(D.change),true)},insertCustomNode(a,u=i){let d=u.kind==="body"?null:o.resolveStory(u),f=d?.ok?d.store:b();return y(f,()=>chunkBEV535XW_cjs.Qf(f,a,b().part.name))},removeCustomNode(a,u=i){let d=u.kind==="body"?null:o.resolveStory(u),f=d?.ok?d.store:b();return y(f,()=>chunkBEV535XW_cjs.Rf(f,a))},sweepCustomNodePayloads(a){let u=b(),d=chunkBEV535XW_cjs.Sf(o.currentPackage(),u.part.name,a);return d.ok?d.removed.length===0?{ok:true,removed:[]}:(o.replacePackageShell(d.pkg),{ok:true,removed:d.removed}):{ok:false,reason:d.reason}},ensureListDefinition(a){let u=chunk4CHEPYZV_cjs.L(g(),a);return u?(o.replacePackageShell(u.pkg),H=false,z=null,u.numId):null},ensureNumberingLevel(a,u,d){let f=g(),x=chunk4CHEPYZV_cjs.M(f,a,u,d);return x?(x!==f&&(o.replacePackageShell(x),H=false,z=null),true):false},insertImage(a,u){return o.insertImage(a,u)},replaceImage(a,u,d,f,x,O){return o.replaceImage(a,u,d,f,x,O)},deleteImage(a,u){return o.deleteImage(a,u)},applyImageProperties(a,u){return o.applyImageProperties(a,u)}}}}function lo(t){return M(t).map(e=>chunkBEV535XW_cjs.zf(t,e.id)??"").join(`
|
|
5
|
+
`)}var cn=new WeakMap;function pn(t,e=0){if(e>64)return false;let n=cn.get(t);if(n!==void 0)return n;let r=false;for(let s of t.children)if(s.kind!=="textValue"&&(s.kind==="commentRangeStart"||s.kind==="commentReference"||pn(s,e+1))){r=true;break}return cn.set(t,r),r}var so=chunkBEV535XW_cjs.s.projection;function xo(t,e,n){let r=t.filter(s=>s.localName!==e);return r.length!==t.length?r:[...r,n?{localName:e,attributes:n}:{localName:e}]}function bo(t,e,n={}){let r=null,s=false,l=()=>n.onChange?.(o()),o=()=>({revision:e.revision(),canUndo:e.canUndo(),canRedo:e.canRedo(),lastRejection:r}),c=i=>{s=true;let y=m.state.tr.replaceWith(0,m.state.doc.content.size,i.content);y.setMeta("addToHistory",false),m.dispatch(y),s=false;},p=i=>()=>(i()&&(c(e.projectDoc()),l()),true),m=new prosemirrorView.EditorView(t,{state:prosemirrorState.EditorState.create({doc:e.projectDoc(),plugins:[prosemirrorKeymap.keymap({...prosemirrorCommands.baseKeymap,Home:prosemirrorCommands.selectTextblockStart,End:prosemirrorCommands.selectTextblockEnd,"Mod-z":p(()=>e.undo()!==null),"Mod-y":p(()=>e.redo()!==null),"Shift-Mod-z":p(()=>e.redo()!==null),"Mod-b":(i,y)=>g(i,y,"b"),"Mod-i":(i,y)=>g(i,y,"i"),"Mod-u":(i,y)=>g(i,y,"u",{val:"single"})})]}),editable:()=>e.editable,handleDOMEvents:{keydown:i=>(h(i),false),beforeinput:(i,y)=>{let k=y;if(i.composing)return false;h(i);let I=k.inputType;if(I==="insertText"&&k.data!=null){k.preventDefault();let{from:S,to:P}=i.state.selection;return i.dispatch(i.state.tr.insertText(k.data,S,P)),true}if(I==="deleteContentBackward"){k.preventDefault();let{from:S,empty:P}=i.state.selection;return P?S>0?i.dispatch(i.state.tr.delete(S-1,S)):prosemirrorCommands.joinBackward(i.state,i.dispatch):prosemirrorCommands.deleteSelection(i.state,i.dispatch),true}if(I==="deleteContentForward"){k.preventDefault();let{from:S,to:P,empty:T}=i.state.selection;return T?P<i.state.doc.content.size?i.dispatch(i.state.tr.delete(S,S+1)):prosemirrorCommands.joinForward(i.state,i.dispatch):prosemirrorCommands.deleteSelection(i.state,i.dispatch),true}return I==="insertParagraph"?(k.preventDefault(),prosemirrorCommands.splitBlock(i.state,i.dispatch),true):false},compositionstart:()=>(e.beginComposition(),false),compositionend:()=>(e.endComposition(),l(),false)},dispatchTransaction(i){let y=m.state.apply(i);if(s||!i.docChanged){m.updateState(y);return}let k=e.applyPmDoc(y.doc);if(k.rejected){r=String(k.reason??"rejected"),m.updateState(y),c(e.projectDoc()),l();return}r=null,m.updateState(k.committed&&e.lastCommitWasStructural()?b(y):y),l();}});function h(i){if(i.composing||s)return;let y=i.dom.ownerDocument.getSelection(),k=y?.anchorNode,I=y?.focusNode;if(!(!y||!k||!I)&&!(!i.dom.contains(k)||!i.dom.contains(I)))try{let S=i.posAtDOM(k,y.anchorOffset),P=i.posAtDOM(I,y.focusOffset),T=i.state.selection;if(T.anchor===S&&T.head===P)return;let v=prosemirrorState.TextSelection.create(i.state.doc,S,P);i.dispatch(i.state.tr.setSelection(v).setMeta("addToHistory",!1));}catch{}}function b(i){let y=e.paragraphIds(),k=i.tr,I=false,S=0;return i.doc.forEach((P,T)=>{let v=y[S];S+=1,!(P.type.name!=="paragraph"||v===void 0)&&P.attrs.nodeId!==v&&(k=k.setNodeMarkup(T,void 0,{...P.attrs,nodeId:v}),I=true);}),I?i.apply(k.setMeta("addToHistory",false)):i}function g(i,y,k,I){let S=E.marks.runProps;if(!y)return true;let{from:P,to:T,empty:v}=i.selection;if(v)return true;let z=i.doc.resolve(P).marks().find(se=>se.type===S)?.attrs.props??[],le=xo(z,k,I),q=i.tr;return q.removeMark(P,T,S),le.length>0&&q.addMark(P,T,S.create({props:le})),y(q),true}return {view:m,state:o,undo:()=>p(()=>e.undo()!==null)(),redo:()=>p(()=>e.redo()!==null)(),toggleRunProperty(i,y){g(m.state,m.dispatch.bind(m),i,y);},destroy:()=>m.destroy()}}exports.a=E;exports.b=Le;exports.c=M;exports.d=$;exports.e=Y;exports.f=He;exports.g=Cn;exports.h=je;exports.i=We;exports.j=ao;exports.k=so;exports.l=bo;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {t,u,G,w as w$1,B as B$1,A,z,xc,Cc,Ea,Ca,Ha,Aa,o,ca,oe,me,Fa,Ja,ke,Ga,yb,cf,Ye,Ue as Ue$1,Qe,Eb,Ra,ba,Jc,la,q as q$1,ua,wa,Yb,jc,Jb,Lb,va,ka,pa,oa}from'./chunk-R6BMB6RM.js';import {strFromU8,strToU8}from'fflate';var $t=["extension","capability","command","query","schema","dependencyKey","runtimePort","result","origin"],At=/^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)+$/,Dt=/^@[a-z0-9.-]+\/[a-z0-9.-]+(?:#[a-z0-9]+(?:[/._-][a-z0-9]+)*)?$/;function nt(e){return At.test(e)||Dt.test(e)}function Y(e,t){if(!nt(e))throw new Error(`invalid ${t??"registry"} id ${JSON.stringify(e)}: must be reverse-domain (dev.docx-editor.core.x) or package-owned (@scope/pkg#kind/name)`)}var Ft=/^(\d+)\.(\d+)\.(\d+)$/;function k(e){let t=Ft.exec(e);if(!t)throw new Error(`invalid semantic version: ${JSON.stringify(e)}`);return {major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3])}}function J(e,t){return e.major!==t.major?e.major<t.major?-1:1:e.minor!==t.minor?e.minor<t.minor?-1:1:e.patch!==t.patch?e.patch<t.patch?-1:1:0}function q(e,t){let n=k(e),r=t.trim();if(r==="*")return true;if(r.startsWith("^")){let o=k(r.slice(1));return J(n,o)<0?false:o.major>0?n.major===o.major:o.minor>0?n.major===0&&n.minor===o.minor:n.major===0&&n.minor===0}if(r.includes(" ")){let o=r.split(/\s+/);if(o.length!==2)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let s=true;for(let a of o){let i=a.startsWith(">=")?">=":a.startsWith("<")?"<":null;if(!i)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let d=k(a.slice(i.length)),l=J(n,d);i===">="?s=s&&l>=0:s=s&&l<0;}return s}return J(n,k(r))===0}var h=class extends Error{constructor(n,r,o=[]){super(r);this.code=n;this.responsible=o;this.name="RegistryError";}code;responsible},_e=(e,t)=>`${e}:${t}`;function Lt(e,t={}){let n=new Map;for(let l of e){if(Y(l.id,"extension"),rt(l.version,l.id),n.has(l.id))throw new h("duplicate-extension",`duplicate extension id ${l.id}`,[l.id]);n.set(l.id,l);for(let c of l.contributions)Y(c.id,c.kind),rt(c.version,`${l.id} \u2192 ${c.id}`),c.replaces&&Ht(c.replaces.targetRange,`${l.id} \u2192 replaces ${c.replaces.targetId}`);}for(let l of e){for(let c of l.dependencies??[])if(!n.has(c))throw new h("missing-dependency",`${l.id} requires missing extension ${c}`,[l.id,c]);for(let c of l.conflicts??[])if(n.has(c)){let p=[l.id,c].sort();throw new h("conflict",`extensions ${p[0]} and ${p[1]} conflict`,p)}}Bt(n);let r=new Set(t.availablePorts??[]);for(let l of e)for(let c of l.contributions)c.kind==="runtimePort"&&r.add(c.id);for(let l of e)for(let c of l.requiredPorts??[])if(!r.has(c))throw new h("missing-port",`${l.id} requires unavailable port ${c}`,[l.id,c]);let o=new Map,s=new Map,a=new Map;for(let l of e)for(let c of l.contributions){let p=_e(c.kind,c.id);if(c.replaces){let u=_e(c.kind,c.replaces.targetId),m=a.get(u)??[];m.push({ext:l.id,c}),a.set(u,m);continue}if(s.has(p)){let u=[o.get(p),l.id].sort();throw new h("id-collision",`${c.kind} id ${c.id} registered by both ${u[0]} and ${u[1]}`,u)}s.set(p,c),o.set(p,l.id);}let i=new Map(s);for(let[l,c]of a){let p=s.get(l);if(!p){let f=c[0];throw new h("replacement-target-missing",`${f.ext} replaces missing target ${f.c.replaces.targetId}`,[f.ext,f.c.replaces.targetId])}let u=p.replaceable??{kind:"none"};for(let{ext:f,c:y}of c){if(!q(p.version,y.replaces.targetRange))throw new h("replacement-version-mismatch",`${f} replaces ${y.replaces.targetId}@${p.version} outside range ${y.replaces.targetRange}`,[f,y.replaces.targetId]);if(u.kind==="none")throw new h("unauthorized-replacement",`${y.replaces.targetId} does not authorize replacement (attempted by ${f})`,[f,y.replaces.targetId])}let m=Mt(p,c);i.set(l,m);}return {extensions:n,contributions:i,get:(l,c)=>i.get(_e(l,c))}}function Mt(e,t){let n=e.replaceable??{kind:"none"};if(t.length===1)return t[0].c;if(n.kind==="priority"){let o=[...t].sort((i,d)=>(d.c.replaces.priority??0)-(i.c.replaces.priority??0)),s=o[0].c.replaces.priority??0,a=o.filter(i=>(i.c.replaces.priority??0)===s);if(a.length>1){let i=a.map(d=>d.ext).sort();throw new h("ambiguous-replacement",`multiple replacers of ${e.id} share top priority ${s}: ${i.join(", ")}`,i)}return o[0].c}let r=t.map(o=>o.ext).sort();throw new h("ambiguous-replacement",`multiple replacers of ${e.id}: ${r.join(", ")}`,r)}function Bt(e){let o=new Map,s=[],a=i=>{o.set(i,1),s.push(i);let d=[...e.get(i)?.dependencies??[]].sort();for(let l of d){let c=o.get(l)??0;if(c===1){let p=s.indexOf(l),u=[...s.slice(p),l];throw new h("dependency-cycle",`dependency cycle: ${u.join(" -> ")}`,u)}c===0&&a(l);}s.pop(),o.set(i,2);};for(let i of [...e.keys()].sort())(o.get(i)??0)===0&&a(i);}function rt(e,t){try{k(e);}catch{throw new h("invalid-version",`invalid version ${JSON.stringify(e)} in ${t}`,[t])}}function Ht(e,t){try{q("0.0.0",e);}catch{throw new h("invalid-version",`invalid version range ${JSON.stringify(e)} in ${t}`,[t])}}var S=class extends Error{constructor(t){super(t),this.name="BudgetError";}},M=class e{constructor(t,n){this.label=t;this.capacity=n;this.used=new G(`${t}.budget`,n);}label;capacity;used;children=new Set;activeReservations=0;cleanups=[];disposed=false;carveAmount=0;parent;get inUse(){return this.used.current}get available(){return this.used.remaining}get isDisposed(){return this.disposed}reserve(t){this.assertLive(),this.used.add(t),this.activeReservations+=1;let n=false,r=this;return {amount:t,get released(){return n},release(){n||(n=true,r.used.release(t),r.activeReservations-=1);}}}child(t,n){this.assertLive(),this.used.add(n);let r=new e(t,n);return r.parent=this,r.carveAmount=n,this.children.add(r),r}onRelease(t){this.assertLive(),this.cleanups.push(t);}dispose(){if(this.disposed)return;if(this.children.size>0)throw new S(`${this.label}: cannot release with ${this.children.size} child budget(s) outstanding`);if(this.activeReservations>0)throw new S(`${this.label}: cannot release with ${this.activeReservations} reservation(s) outstanding`);let t=[];for(let n=this.cleanups.length-1;n>=0;n--)try{this.cleanups[n]();}catch(r){t.push(r);}if(this.disposed=true,this.parent&&(this.parent.children.delete(this),this.parent.used.release(this.carveAmount),this.parent=void 0),t.length>0)throw new S(`${this.label}: ${t.length} cleanup error(s); first: ${String(t[0])}`)}assertLive(){if(this.disposed)throw new S(`${this.label}: budget already released`)}};var Q=class extends Error{constructor(n,r){super(r?`cancelled: ${r}`:"cancelled");this.derivedOnly=n;this.name="CancellationError";}derivedOnly},B=class{_cancelled=false;_phase="pre-publication";_reason;cancel(t){this._cancelled=true,t!==void 0&&(this._reason=t);}markPublished(){this._phase="post-publication";}get isCancelled(){return this._cancelled}get phase(){return this._phase}get isPublished(){return this._phase==="post-publication"}get derivedOnly(){return this._cancelled&&this._phase==="post-publication"}get token(){let t=this;return {get isCancelled(){return t._cancelled},get phase(){return t._phase},get derivedOnly(){return t.derivedOnly},checkpoint(){if(t._cancelled)throw new Q(t.derivedOnly,t._reason)}}}};var Z=class extends Error{constructor(n){super(`runtime port not available: ${n}`);this.portId=n;this.name="PortResolutionError";}portId},$e=class{ports=new Map;provide(t,n){return this.ports.set(t,n),this}has(t){return this.ports.has(t)}resolve(t){if(!this.ports.has(t))throw new Z(t);return this.ports.get(t)}missing(t){return t.filter(n=>!this.ports.has(n))}availablePorts(){return [...this.ports.keys()]}clock(){return this.resolve(w$1.clock)}identity(){return this.resolve(w$1.identity)}},Ae=class{constructor(t=0,n=1){this.step=n;this.t=t;}step;t;now(){let t=this.t;return this.t+=this.step,t}},De=class{constructor(t="id"){this.prefix=t;}prefix;n=0;newId(){return this.n+=1,`${this.prefix}-${this.n}`}};function Ut(e){let t=B$1(e.limits),n=Object.freeze({...e.config??{}}),r=e.capacity??t.maxDecompressedBytes,o=e.id??"op",s={id:o,limits:t,config:n,ports:e.ports,budget:new M(`op:${o}`,r),cancellation:new B};return Object.freeze(s)}function Vt(e){e.budget.dispose();}var Le=Object.freeze({maxRecursionDepth:{unit:"depth",phase:"xml-parse"},maxElementCount:{unit:"count",phase:"xml-parse"},maxPartCount:{unit:"count",phase:"package-read"},maxDecompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressionRatio:{unit:"ratio",phase:"package-read"},maxChunkBytes:{unit:"bytes",phase:"package-read"},maxPaginationPasses:{unit:"passes",phase:"layout"},maxQueueDepth:{unit:"count",phase:"output"}}),ot=Object.keys(Le);function Xt(e,t){return new G(`${Le[t].phase}:${t}`,e[t])}var Fe=class{counter;current=0;peak=0;constructor(t){this.counter=new G("memory",t);}allocate(t){this.counter.add(t),this.current+=t,this.current>this.peak&&(this.peak=this.current);}free(t){this.counter.release(t),this.current=Math.max(0,this.current-t);}get currentBytes(){return this.current}get peakBytes(){return this.peak}reset(){this.counter.release(this.current),this.current=0;}};function jt(){for(let e of ot){let t=A[e],n=z[e];if(!Number.isFinite(t)||t<=0)throw new Error(`default ${e} must be finite > 0`);if(!Number.isFinite(n)||n<=0)throw new Error(`ceiling ${e} must be finite > 0`);if(t>n)throw new Error(`default ${e} exceeds ceiling`)}}function H(e,t=new Set){let n=new WeakSet,r=o=>{if(o===null)return "null";let s=typeof o;if(s==="boolean")return o?"true":"false";if(s==="number"){let a=o;if(!Number.isFinite(a))throw new Error(`non-finite number is not comparable: ${a}`);return Object.is(a,-0)?"0":String(a)}if(s==="string")return JSON.stringify(o);if(s==="bigint")return `${o.toString()}n`;if(Array.isArray(o))return `[${o.map(r).join(",")}]`;if(s==="object"){let a=o;if(n.has(a))throw new Error("cannot canonicalize a cyclic structure");n.add(a);let d=Object.keys(a).filter(l=>!t.has(l)).sort().map(l=>`${JSON.stringify(l)}:${r(a[l])}`).join(",");return n.delete(a),`{${d}}`}throw new Error(`unsupported value type in comparator input: ${s}`)};return r(e)}function Me(e,t){let n=H(e,t),r=0xcbf29ce484222325n,o=0x100000001b3n,s=0xffffffffffffffffn;for(let a=0;a<n.length;a++)r^=BigInt(n.charCodeAt(a)),r=r*o&s;return r.toString(16).padStart(16,"0")}var R="dev.docx-editor.core.comparator",Be={authoredState:{id:`${R}.authored-state`,mode:"canonical-exact",ephemera:["revision","provenance","producedAt","commitId"],note:"canonical normalized authored records; ephemera excluded"},anchor:{id:`${R}.anchor`,mode:"exact",ephemera:[],note:"internal anchor identity/affinity compares exactly"},yjsStateVector:{id:`${R}.yjs-state-vector`,mode:"sync-optimization-only",ephemera:[],note:"exchange optimization only; never proves update or delete-set coverage"},shapedRun:{id:`${R}.shaped-run`,mode:"exact",ephemera:[],note:"glyph ids, clusters, and fixed-point advances compare exactly"},paginationFingerprint:{id:`${R}.pagination-fingerprint`,mode:"exact",ephemera:[],note:"page/column boundaries, break causes, fixed-point geometry compare exactly"},semanticTree:{id:`${R}.semantic-tree`,mode:"exact",ephemera:[],note:"reading order, roles, headings, alt text compare exactly"},hitTest:{id:`${R}.hit-test`,mode:"exact",ephemera:[],note:"resolved hit target and cluster affinity compare exactly"},pdfSemantics:{id:`${R}.pdf-semantics`,mode:"canonical-exact",ephemera:["objectNumber","producer","creationDate","modDate","subsetTag"],note:"canonical semantic PDF objects; container ephemera excluded"},rasterCheckpoint:{id:`${R}.raster-checkpoint`,mode:"tolerance",ephemera:[],note:"documented unavoidable raster comparison; explicit tolerance only"},benchmarkEvidence:{id:`${R}.benchmark-evidence`,mode:"sync-optimization-only",ephemera:[],note:"diagnostic evidence, not an equivalence basis"}};function He(e,t,n,r={}){let o=Be[e];switch(o.mode){case "sync-optimization-only":throw new Error(`${o.id} is not an equivalence basis (${o.note})`);case "tolerance":{if(r.epsilon===void 0)throw new Error(`${o.id} requires an explicit epsilon`);return {equal:it(t,n,r.epsilon)}}case "exact":case "canonical-exact":{let s=o.mode==="canonical-exact"?new Set(o.ephemera):new Set,a=H(t,s),i=H(n,s);return a===i?{equal:true}:{equal:false,left:a,right:i}}}}function Ue(e,t){let n=Be[e];if(n.mode==="tolerance"||n.mode==="sync-optimization-only")throw new Error(`${n.id} has no canonical fingerprint (${n.mode})`);let r=n.mode==="canonical-exact"?new Set(n.ephemera):void 0;return Me(t,r)}function it(e,t,n){return typeof e=="number"&&typeof t=="number"?Number.isFinite(e)&&Number.isFinite(t)&&Math.abs(e-t)<=n:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,o)=>it(r,t[o],n)):false}var st=new Set([...t,...u]),at=/^[0-9a-f]{16}$/,Kt=/^[0-9a-f]*$/;function Ve(e){let t=[],n=o=>t.push(o);e.formatVersion!==1&&n(`unsupported formatVersion ${e.formatVersion}`),e.documentId||n("documentId is required"),e.source.kind==="docx"&&!/^[0-9a-f]{64}$/.test(e.source.sha256)&&n("docx source requires a 64-hex sha256");let r=-1;e.steps.forEach((o,s)=>{let a=`step[${s}]`;st.has(o.origin)||n(`${a}: unknown origin ${o.origin}`),(!Number.isInteger(o.baseRevision)||o.baseRevision<0)&&n(`${a}: baseRevision must be a non-negative integer`),o.baseRevision<r&&n(`${a}: baseRevision regressed below ${r}`);let i=o.expect;i.outcome==="applied"?(i.committedRevision===void 0?n(`${a}: applied step needs committedRevision`):i.committedRevision<=o.baseRevision?n(`${a}: committedRevision ${i.committedRevision} must exceed baseRevision ${o.baseRevision}`):r=i.committedRevision,i.modelChange&&Gt(i.modelChange,a,n)):(i.committedRevision!==void 0&&n(`${a}: ${i.outcome} step must not commit a revision`),i.authoredStateHash!==void 0&&n(`${a}: ${i.outcome} step must not change authored state`)),i.authoredStateHash!==void 0&&!at.test(i.authoredStateHash)&&n(`${a}: authoredStateHash must be 16-hex`),i.outputHash!==void 0&&!at.test(i.outputHash)&&n(`${a}: outputHash must be 16-hex`);});for(let o of [...e.snapshots??[],...e.updates??[]])o.documentId!==e.documentId&&n(`envelope documentId ${o.documentId} != ${e.documentId}`),Kt.test(o.bytesHex)||n("envelope bytesHex must be hex"),o.bytesHex.length!==o.byteLength*2&&n(`envelope byteLength ${o.byteLength} disagrees with ${o.bytesHex.length/2} decoded bytes`);return {valid:t.length===0,errors:t}}function Gt(e,t,n){st.has(e.origin)||n(`${t}: modelChange origin ${e.origin} unknown`),e.toRevision<=e.fromRevision&&n(`${t}: modelChange revision must advance`);}function zt(e,t){let n=Ve(e);if(!n.valid)return {ok:false,mismatches:n.errors};let r=[];return t.init(e),e.steps.forEach((o,s)=>{let a=`step[${s}]`,i=t.applyStep(o),d=o.expect;if(i.outcome!==d.outcome){r.push(`${a}: outcome ${i.outcome} != expected ${d.outcome}`);return}if(d.outcome==="applied"&&(i.committedRevision!==d.committedRevision&&r.push(`${a}: revision ${i.committedRevision} != expected ${d.committedRevision}`),d.authoredStateHash!==void 0))if(i.authoredState===void 0)r.push(`${a}: store returned no authored state to hash`);else {He("authoredState",i.authoredState,i.authoredState).equal||r.push(`${a}: authored state is not self-consistent`);let c=lt(i.authoredState);c!==d.authoredStateHash&&r.push(`${a}: authoredStateHash ${c} != expected ${d.authoredStateHash}`);}}),{ok:r.length===0,mismatches:r}}function lt(e){return Ue("authoredState",e)}var Wt=new Map([["embedRegular","regular"],["embedBold","bold"],["embedItalic","italic"],["embedBoldItalic","boldItalic"]]),Yt=32;function pt(e,t){let n=t.replace(/[^0-9a-fA-F]/g,"");if(n.length!==32)return null;let r=new Uint8Array(16);for(let a=0;a<16;a+=1){let i=Number.parseInt(n.slice(a*2,a*2+2),16);if(Number.isNaN(i))return null;r[15-a]=i;}let o=new Uint8Array(e),s=Math.min(Yt,o.length);for(let a=0;a<s;a+=1)o[a]=o[a]^r[a%16];return o}var Xe=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},ct=e=>e.kind==="textValue"?[]:e.children??[],dt=e=>e.kind==="textValue"||!("localName"in e)?"":e.localName;function Jt(e,t,n){for(let r of e.relationships.get(t)??[]){if(r.id!==n)continue;if(r.targetMode==="External")return null;let o=q$1(t,r.rawTarget);return o.ok?o.partName:null}return null}function qt(e,t,n={}){if(!t)return [];let r=n.maxFontBytes??16*1024*1024,o=n.maxFonts??64,s=[],a=new Map,i=d=>{if(!(s.length>=o)){if(dt(d)==="font"){let l=Xe(d,"name");if(l&&l.length<=128)for(let c of ct(d)){if(s.length>=o)return;let p=Wt.get(dt(c));if(!p)continue;let u=Xe(c,"id"),m=Xe(c,"fontKey");if(!u||!m)continue;let f=Jt(e,t.name,u);if(!f)continue;let y=e.partBytes.get(f);if(!y||y.length===0||y.length>r)continue;let g=a.get(f);if(g){s.push({family:l,style:p,bytes:g,partName:f});continue}let O=pt(y,m);O&&(a.set(f,O),s.push({family:l,style:p,bytes:O,partName:f}));}}for(let l of ct(d))i(l);}};return i(t.root),s}function ut(e){if(e.kind!=="textValue")for(let t of e.children){if(t.kind==="textValue")continue;if(t.kind==="hyperlink"){let r=Ra(t);if(r!==void 0&&r.length>0)return r}let n=ut(t);if(n!==void 0)return n}}function Qt(e){let t="",n=false,r=o=>{if(!(n||o.kind==="textValue")){if(o.kind==="tab"||o.localName==="ptab"||o.localName==="tab"){n=true;return}if(o.kind==="text"||o.localName==="t"){for(let s of o.children)s.kind==="textValue"&&(t+=s.value);return}for(let s of o.children)r(s);}};return r(e),Cc(t)}function Zt(e,t,n,r){let o=n.filter(d=>{if(r.has(d.blockId))return false;let l=d.level+1;return l>=t.instruction.outlineStart&&l<=t.instruction.outlineEnd}),s=new Set(o.map(d=>d.blockId)),a=xc(e),i=new Map;for(let d of o){let l=Cc(d.text),c=i.get(l);c?c.push(d.blockId):i.set(l,[d.blockId]);}return t.resultParagraphIds.map(d=>{let l=Ea(e,d);if(!l||l.kind==="textValue")return null;let c=ut(l),p=c===void 0?void 0:a.get(c);if(p&&s.has(p.paragraphId)){let f=i.get(Cc(o.find(g=>g.blockId===p.paragraphId)?.text??"")),y=f?.indexOf(p.paragraphId)??-1;return f&&y>=0&&f.splice(y,1),p.paragraphId}let u=Qt(l);if(u.length===0)return null;let m=i.get(u);return !m||m.length===0?null:m.shift()??null})}function C(e){return e.namespaceUri===la?e.localName:`{${e.namespaceUri}}${e.localName}`}function I(e){let t=[];for(let n of e.attributes)t.push(n.namespaceUri===""||n.namespaceUri===la?`${n.localName}=${n.value}`:`{${n.namespaceUri}}${n.localName}=${n.value}`);return t.sort(),t}function ft(e,t){let n=I(e),r=n.length>0?`${C(e)}(${n.join(",")})`:C(e);if(t>=ba)return r;let o=[];for(let s of e.children){if(s.kind==="textValue"){s.value!==""&&o.push(`#${s.value}`);continue}o.push(ft(s,t+1));}return o.sort(),o.length>0?`${r}[${o.join(",")}]`:r}function mt(e){if(!e)return [];let t=[];for(let n of e.children)n.namespaceUri===la&&t.push(ft(n,1));return t.sort(),t}function je(e){if(e.kind==="textValue")return e.value;if(e.kind==="tab")return " ";if(e.kind==="hardBreak")return Yb(e);if(e.kind==="drawing")return jc();if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return "";if(e.kind==="hyperlink"||Jb(e)){let n="",r=e.kind==="hyperlink"?e.children:Lb(e)??[];for(let o of r)n+=je(o);return n}let t="";for(let n of e.children)t+=je(n);return t}function x(e,t){let n=new Map(e);for(let r of t.namespaceBindings)n.set(r.prefix,r.namespaceUri);return n}function U(e,t){try{return va(e,t)}catch(n){if(n instanceof pa&&n.reason==="undeclared-prefix")return `generic-refusal:undeclared-prefix:{${e.namespaceUri}}${e.localName}`;throw n}}function Ke(e,t,n=ua){if(e.kind==="textValue")return;if(e.kind==="runProperties"||e.kind==="paragraphProperties"){let o=x(n,e),s=[];for(let a of e.children)a.namespaceUri!==la&&s.push(U(a,o));s.sort(),t.push(...s);return}if(e.kind==="generic"){t.push(U(e,n));return}if(Jb(e)){t.push(wa(e));return}if(e.kind==="bookmarkStart"||e.kind==="bookmarkEnd"){t.push(va(e,n));return}if(e.kind==="drawing"){t.push(yt(e));return}if(ka(e.kind))return;let r=x(n,e);for(let o of e.children)Ke(o,t,r);}function en(e){return `hyperlink(${e.attributes.map(n=>`${n.namespaceUri}|${n.localName}=${n.value}`).sort().join(",")})`}function tn(e){for(let t of e.children)if(t.kind==="pictureBlipFill")for(let n of t.children){if(n.kind!=="pictureBlip")continue;let r=n.attributes.find(s=>s.localName==="embed"&&s.namespaceUri===oa)?.value,o=n.attributes.find(s=>s.localName==="link"&&s.namespaceUri===oa)?.value;if(r!==void 0)return `embed=${r}`;if(o!==void 0)return `link=${o}`}}function ee(e,t,n){if(e.kind==="textValue")return `#${e.value}`;if(t>=ba)return C(e);let r=x(n,e);if(e.kind==="generic")return U(e,r);let o=I(e),s=o.length>0?`${C(e)}(${o.join(",")})`:C(e),a=[];for(let i of e.children)i.kind!=="textValue"&&a.push(ee(i,t+1,r));return a.sort(),a.length>0?`${s}[${a.join(",")}]`:s}function nn(e,t,n){let r=x(n,e),o=[];for(let s of e.children)if(s.kind!=="textValue"){if(s.kind==="pictureBlipFill"){let a=s.children,i=a.find(l=>l.kind==="pictureBlip"),d=a.filter(l=>l.kind!=="pictureBlip").map(l=>ee(l,t+1,r));if(d.sort(),i&&i.kind==="pictureBlip"){let l=I(i),c=l.length>0?`pictureBlip(${l.join(",")})`:"pictureBlip";o.push(d.length>0?`${c}[${d.join(",")}]`:c);}else for(let l of a)o.push(ee(l,t+1,r));continue}o.push(ee(s,t+1,r));}return o.sort(),o}function Ge(e,t,n){if(e.kind==="textValue")return `#${e.value}`;if(t>=ba)return C(e);let r=x(n,e);if(e.kind==="drawingDocPr"){let i=I(e);return i.length>0?`docPr(${i.join(",")})`:"docPr"}if(e.kind==="picture"){let i=tn(e),d=nn(e,t+1,r),l=i===void 0?"picture":`picture(${i})`;return d.length>0?`${l}[${d.join(",")}]`:l}let o=I(e),s=o.length>0?`${C(e)}(${o.join(",")})`:C(e),a=[];for(let i of e.children){if(i.kind==="picture"){a.push(Ge(i,t+1,r));continue}if(i.kind==="generic"){a.push(U(i,r));continue}i.kind!=="textValue"&&a.push(Ge(i,t+1,r));}return a.length>0?`${s}[${a.join(",")}]`:s}function yt(e){let t=x(ua,e),n=e.children.find(i=>i.kind==="inlineDrawing"||i.kind==="anchoredDrawing");if(!n||n.kind==="textValue")return `drawing(${I(e).join(",")})`;let r=x(t,n),o=I(n),s=o.length>0?`${n.kind}(${o.join(",")})`:n.kind,a=[];for(let i of n.children){if(i.kind==="generic"){a.push(U(i,r));continue}i.kind!=="textValue"&&a.push(Ge(i,1,r));}return a.length>0?`drawing[${s};${a.join(";")}]`:`drawing[${s}]`}function rn(e,t,n){let r=e.children.find(c=>c.kind==="paragraphProperties"),o=[],s="",a=[],i=x(ua,e),d=(c,p)=>{if(c.kind==="run"){let u=x(p,c),m=c.children.find(f=>f.kind==="runProperties");o.push(mt(m)),s+=je(c);for(let f of c.children)Ke(f,a,u);return}if(c.kind==="drawing"){a.push(yt(c));return}if(c.kind==="hyperlink"){a.push(en(c));let u=x(p,c);for(let m of c.children)d(m,u);return}if(c.kind==="contentControl"){a.push(wa({...c,children:c.children.filter(m=>m.kind!=="contentControlContent")}));let u=x(p,c);for(let m of c.children){if(m.kind!=="contentControlContent")continue;let f=x(u,m);for(let y of m.children)d(y,f);}return}Ke(c,a,p);};for(let c of e.children)d(c,i);let l=Jc(e);return {ordinal:t,path:n,paraId:l===null?null:l.toUpperCase(),text:s,paragraphProperties:mt(r),runProperties:o,genericStructure:a}}function on(e){if(e.localName==="hdr"||e.localName==="ftr"||e.kind==="body")return e;for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="body"||t.localName==="hdr"||t.localName==="ftr"))return t;return e}function gt(e,t,n,r,o,s){if(s>ba)return;let a=0;for(let i of e.children){if(i.kind==="textValue"){i.value.trim()!==""&&o.push(`${t}/#text ${i.value}`);continue}let d=t===""?String(a):`${t}/${a}`;if(a+=1,i.kind==="paragraph"){n.push(i),r.push(d),o.push(`${d} p`);continue}let l=I(i);o.push(l.length>0?`${d} ${C(i)}(${l.join(",")})`:`${d} ${C(i)}`),gt(i,d,n,r,o,s+1);}}function ht(e){let t=on(e.root),n=[],r=[],o=[];gt(t,"",n,r,o,0);let s=n.map((a,i)=>rn(a,i,r[i]));return {partName:e.name,paragraphs:s,structure:o}}function an(e){let t=[];for(let n of e){let r=ht(n);r&&t.push(r);}return {stories:t}}function sn(e,t){let n=[],r=(s,a,i)=>{n.push({path:s,before:JSON.stringify(a)??"undefined",after:JSON.stringify(i)??"undefined"});};e.stories.length!==t.stories.length&&r("stories.length",e.stories.length,t.stories.length);let o=Math.min(e.stories.length,t.stories.length);for(let s=0;s<o;s+=1){let a=e.stories[s],i=t.stories[s],d=p=>`${a.partName}${p}`;a.paragraphs.length!==i.paragraphs.length&&r(d(".paragraphs.length"),a.paragraphs.length,i.paragraphs.length);let l=Math.min(a.paragraphs.length,i.paragraphs.length);for(let p=0;p<l;p+=1){let u=a.paragraphs[p],m=i.paragraphs[p];u.text!==m.text&&r(d(`.p[${p}].text`),u.text,m.text),u.path!==m.path&&r(d(`.p[${p}].path`),u.path,m.path),u.paraId!==m.paraId&&r(d(`.p[${p}].paraId`),u.paraId,m.paraId),JSON.stringify(u.paragraphProperties)!==JSON.stringify(m.paragraphProperties)&&r(d(`.p[${p}].paragraphProperties`),u.paragraphProperties,m.paragraphProperties),JSON.stringify(u.runProperties)!==JSON.stringify(m.runProperties)&&r(d(`.p[${p}].runProperties`),u.runProperties,m.runProperties),JSON.stringify(u.genericStructure)!==JSON.stringify(m.genericStructure)&&r(d(`.p[${p}].genericStructure`),u.genericStructure,m.genericStructure);}a.structure.length!==i.structure.length&&r(d(".structure.length"),a.structure.length,i.structure.length);let c=Math.min(a.structure.length,i.structure.length);for(let p=0;p<c;p+=1)a.structure[p]!==i.structure[p]&&r(d(`.structure[${p}]`),a.structure[p],i.structure[p]);}return n}var V="http://schemas.openxmlformats.org/wordprocessingml/2006/main",dn="http://schemas.openxmlformats.org/package/2006/relationships",xt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",w="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml",pn="application/vnd.openxmlformats-package.relationships+xml",un="http://schemas.openxmlformats.org/package/2006/content-types",Nt="/[Content_Types].xml",E="/word/numbering.xml",Ot=[{text:"\uF0B7",font:"Symbol"},{text:"o",font:"Courier New"},{text:"\uF0A7",font:"Wingdings"}],Rt=["decimal","lowerLetter","lowerRoman"],ze=9;function It(e,t){let n=720*(t+1),r='<w:start w:val="1"/>';if(e==="bullet"){let a=Ot[t%Ot.length];return `<w:lvl w:ilvl="${t}">${r}<w:numFmt w:val="bullet"/><w:lvlText w:val="${a.text}"/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="${n}" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="${a.font}" w:hAnsi="${a.font}" w:hint="default"/></w:rPr></w:lvl>`}let o=Rt[t%Rt.length],s=o==="lowerRoman";return `<w:lvl w:ilvl="${t}">${r}<w:numFmt w:val="${o}"/><w:lvlText w:val="%${t+1}."/><w:lvlJc w:val="${s?"right":"left"}"/><w:pPr><w:ind w:left="${n}" w:hanging="${s?180:360}"/></w:pPr></w:lvl>`}function mn(e,t){let n=Array.from({length:ze},(r,o)=>It(e,o)).join("");return `<w:abstractNum w:abstractNumId="${t}"><w:multiLevelType w:val="${e==="bullet"?"hybridMultilevel":"multilevel"}"/>${n}</w:abstractNum>`}function fn(){let e=Aa(`<w:numbering xmlns:w="${V}"></w:numbering>`,{name:E,contentType:w});return e.ok?e.part:null}var b=(e,t)=>{let n=[];for(let r of e.children)r.kind==="textValue"||r.localName!==t||r.namespaceUri===V&&n.push(r);return n},N=(e,t)=>e.attributes.find(n=>n.localName===t)?.value;function kt(e,t){let n=Aa(`<w:numbering xmlns:w="${V}">${e}</w:numbering>`,{name:E,contentType:w});if(!n.ok)return null;let r=[];for(let o of n.part.root.children)o.kind!=="textValue"&&r.push(o);if(r.length!==t.length)return null;for(let o=0;o<t.length;o+=1){let s=r[o],a=t[o];if(s.namespaceUri!==V||s.localName!==a.localName||a.attribute&&N(s,a.attribute.localName)!==a.attribute.value)return null}return r}var Ct=["numPicBullet","abstractNum","num","numIdMacAtCleanup"];function bt(e,t,n){let r=t.indexOf(n);if(r===-1)return e.length;let o=0;return e.forEach((s,a)=>{if(s.kind==="textValue")return;let i=t.indexOf(s.localName);i!==-1&&i<=r&&(o=a+1);}),o}function Et(e,t){let n=0;for(let r of e){let o=N(r,t);!o||!/^\d{1,9}$/.test(o)||(n=Math.max(n,Number(o)));}return n+1}function yn(e,t){let n=e.parts.get(E),r=n??fn();if(!r)return null;let o=r.root,s=b(o,"abstractNum"),a=b(o,"num"),i=t==="bullet"?"bullet":"decimal";for(let O of a){let $=N(O,"numId"),Ye=b(O,"abstractNumId")[0],Je=Ye?N(Ye,"val"):void 0;if(!$||!Je)continue;let qe=s.find(X=>N(X,"abstractNumId")===Je);if(!qe)continue;let Qe=b(qe,"lvl").find(X=>N(X,"ilvl")==="0"||N(X,"ilvl")===void 0),Ze=Qe?b(Qe,"numFmt")[0]:void 0;if(Ze&&N(Ze,"val")===i)return {pkg:e,numId:$}}let d=Et(s,"abstractNumId"),l=Et(a,"numId"),c=kt(mn(t,d)+`<w:num w:numId="${l}"><w:abstractNumId w:val="${d}"/></w:num>`,[{localName:"abstractNum",attribute:{localName:"abstractNumId",value:String(d)}},{localName:"num",attribute:{localName:"numId",value:String(l)}}]);if(!c)return null;let p=Ca(r),[u,m]=c.map(O=>te(O,p));if(!u||!m)return null;let f=Ha(r,o.id,bt(o.children,Ct,"abstractNum"),[u]);if(!f.ok)return null;let y=Ha(f.part,o.id,bt(f.part.root.children,Ct,"num"),[m]);if(!y.ok)return null;let g=Object.freeze({...e,parts:new Map([...e.parts,[E,y.part]])});if(!n){let O=Nn(g);if(!O)return null;let $=bn(O);if(!$)return null;g=$;}return {pkg:g,numId:String(l)}}var gn=["nsid","multiLevelType","tmpl","name","styleLink","numStyleLink","lvl"];function St(e){let t=N(e,"ilvl");return t===void 0||!/^\d{1,9}$/.test(t)?null:Number(t)}function hn(e,t){let n=0;return e.forEach((r,o)=>{if(r.kind!=="textValue"){if(r.localName==="lvl"&&r.namespaceUri===V){(St(r)??0)<t&&(n=o+1);return}gn.includes(r.localName)&&(n=o+1);}}),n}function xn(e,t,n,r){if(!Number.isInteger(n)||n<0||n>=ze||t.length===0||t.length>64)return null;let o=e.parts.get(E);if(!o)return null;let s=o.root,a=b(s,"num").find(f=>N(f,"numId")===t),i=a?b(a,"abstractNumId")[0]:void 0,d=i?N(i,"val"):void 0;if(!d)return null;let l=b(s,"abstractNum").find(f=>N(f,"abstractNumId")===d);if(!l||b(l,"numStyleLink").length>0)return null;let c=b(l,"lvl");if(c.some(f=>St(f)===n))return e;if(c.length>=ze)return null;let p=kt(It(r,n),[{localName:"lvl",attribute:{localName:"ilvl",value:String(n)}}]);if(!p)return null;let u=Ca(o),m=Ha(o,l.id,hn(l.children,n),[te(p[0],u)]);return m.ok?Object.freeze({...e,parts:new Map([...e.parts,[E,m.part]])}):null}function te(e,t){return e.kind==="textValue"?{...e,id:t()}:{...e,id:t(),children:e.children.map(n=>te(n,t))}}function Nn(e){let t=e.mainDocumentPart,n=On(t),r=e.parts.get(n),o=Rn(e),s=Aa(`<Relationships xmlns="${dn}"><Relationship Id="${o}" Type="${xt}" Target="numbering.xml"/></Relationships>`,{name:n,contentType:pn});if(!s.ok)return null;let a=e.relationships.get(t)??[],i={ownerPart:t,id:o,type:xt,rawTarget:"numbering.xml",targetMode:"Internal",order:a.reduce((u,m)=>Math.max(u,m.order),-1)+1},d=new Map([...e.relationships,[t,[...a,i]]]);if(!r)return Object.freeze({...e,parts:new Map([...e.parts,[n,s.part]]),relationships:d});let l=Ca(r),c=s.part.root.children[0];if(!c)return null;let p=Ha(r,r.root.id,r.root.children.length,[te(c,l)]);return p.ok?Object.freeze({...e,parts:new Map([...e.parts,[n,p.part]]),relationships:d}):null}function On(e){let t=e.lastIndexOf("/");return `${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}function Rn(e){let t=0;for(let n of e.relationships.values())for(let r of n){let o=/^rId(\d{1,9})$/.exec(r.id);o&&(t=Math.max(t,Number(o[1])));}for(let n of e.externalTargets){let r=/^rId(\d{1,9})$/.exec(n.id);r&&(t=Math.max(t,Number(r[1])));}return `rId${t+1}`}var Cn=`<Override PartName="${E}" ContentType="${w}"/>`;function bn(e){let t=e.contentTypes.overrides.get(o(E));if(t===w)return e;if(t!==void 0)return null;let n=e.partBytes.get(Nt);if(!n)return null;let r=strFromU8(n),o$1=Pt(r);if(!o$1)return null;let s=r.lastIndexOf(`</${o$1.rootName}>`);if(s===-1)return null;let a=r.slice(0,s)+Cn+r.slice(s),i=Pt(a);if(!i||i.rootName!==o$1.rootName)return null;let d=[...o$1.children,vt("Override",{PartName:E,ContentType:w})];return i.children.length!==d.length||i.children.some((l,c)=>l!==d[c])?null:Object.freeze({...e,partBytes:new Map([...e.partBytes,[Nt,strToU8(a)]]),contentTypes:Object.freeze({defaults:e.contentTypes.defaults,overrides:new Map([...e.contentTypes.overrides,[o(E),w]])})})}function Pt(e){let t=ca(e);if(!t.ok)return null;let n=t.nodes.filter(i=>i.type==="element");if(n.length!==1)return null;let r=n[0],o=r.name.indexOf(":"),s=o===-1?"":r.name.slice(0,o);if(r.name.slice(o+1)!=="Types"||r.attributes[s?`xmlns:${s}`:"xmlns"]!==un)return null;let a=[];for(let i of r.children)i.type==="element"&&a.push(vt(i.name,i.attributes));return {rootName:r.name,children:a}}function vt(e,t){let n=Object.entries(t).map(([r,o])=>`${r}=${o}`).sort();return [e,...n].join("")}function ne(e){return e!=null&&e.kind!=="textValue"}function We(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===la&&n.localName===t)return n;return null}function re(e,t){for(let n of e.attributes)if(n.namespaceUri===la&&n.localName===t)return n.value}function _(e,t){let n=We(e,t);if(!n)return false;let r=re(n,"val");return r===void 0?true:r!=="0"&&r!=="false"&&r!=="off"}var Tt=Object.freeze({trackRevisions:false,restrictedToTrackedChanges:false,doNotTrackMoves:false,doNotTrackFormatting:false});function En(e){if(!ne(e))return Tt;let t=We(e,"documentProtection"),n=t===null?void 0:re(t,"enforcement"),r=n!==void 0&&n!=="0"&&n!=="false"&&n!=="off";return {trackRevisions:_(e,"trackRevisions"),restrictedToTrackedChanges:r&&t!==null&&re(t,"edit")==="trackedChanges",doNotTrackMoves:_(e,"doNotTrackMoves"),doNotTrackFormatting:_(e,"doNotTrackFormatting")}}var wt=Object.freeze({doNotShadeFormData:false});function Pn(e){return ne(e)?{doNotShadeFormData:_(e,"doNotShadeFormData")}:wt}function In(e,t){let n=e.parts.get(t.storyPartName);if(!n)return {ok:false,reason:`no story part named ${t.storyPartName}`};let r=[];for(let d of oe(n.root)){let l=me(d.node).tag;if(l===void 0||l.length===0)continue;let c=t.decide(l);c!=="keep"&&r.push({nodeId:d.node.id,policy:c});}let o=n,s=0,a=0;for(let{nodeId:d,policy:l}of r){let c=Fa(o,d);if(!c)continue;if(l==="remove"){let g=Ja(o,d,{deferValidation:true});if(!g.ok)return {ok:false,reason:`a node could not be removed: ${_t(g)}`};o=g.part,a+=1;continue}let p=c.children.find(g=>g.id===d);if(!p)continue;let u=ke(p),m=u?u.children:[],f=c.children.flatMap(g=>g.id===d?m:[g]),y=Ga(o,c.id,f,{deferValidation:true});if(!y.ok)return {ok:false,reason:`a node could not be unwrapped: ${_t(y)}`};o=y.part,s+=1;}let i=o===n?e:yb(e,o);if(!i.parts.has(t.storyPartName))return {ok:false,reason:"the story went missing during the export"};for(let d of t.namespaces)for(let l of Sn(i,t.storyPartName,d)){let c=cf(i,l.itemId),p=Ye(i,l.partName,c);if(p.pkg===i&&p.removed.length===0&&!kn(i,l.partName,c))return {ok:false,reason:`the payloads in ${d} could not be removed`};if(i=p.pkg,c.size>0)continue;let u=vn(i,l);if(!u.ok)return {ok:false,reason:`the payload store for ${d} could not be removed`};i=u.pkg;}return {ok:true,pkg:i,unwrapped:s,removed:a}}function kn(e,t,n){return Ue$1(e,t).every(r=>n.has(r.id))}function _t(e){return e.issues.map(t=>t.code).join(", ")||"the edit was refused"}function Sn(e,t,n){return Qe(e,t).filter(r=>r.namespaceUri===n)}function vn(e,t){let n=Eb(e,t.partName);if(!n.ok)return {pkg:e,ok:false};let r=Eb(n.pkg,t.propsPartName);return r.ok?{pkg:r.pkg,ok:true}:{pkg:e,ok:false}}
|
|
2
|
+
export{He as A,Ue as B,Ve as C,zt as D,lt as E,pt as F,qt as G,Zt as H,ht as I,an as J,sn as K,yn as L,xn as M,Tt as N,En as O,wt as P,Pn as Q,In as R,$t as a,nt as b,Y as c,k as d,J as e,q as f,h as g,Lt as h,S as i,M as j,Q as k,B as l,Z as m,$e as n,Ae as o,De as p,Ut as q,Vt as r,Le as s,ot as t,Xt as u,Fe as v,jt as w,H as x,Me as y,Be as z};
|
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk5WEA7SIG_cjs=require('./chunk-5WEA7SIG.cjs');require('./chunk-3JENXX7Q.cjs'),require('./chunk-SAUKKJWZ.cjs'),require('./chunk-GLHPDILJ.cjs'),require('./chunk-C3YJR64Q.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-73X5I53C.cjs');var chunkQIFQTG57_cjs=require('./chunk-QIFQTG57.cjs');require('./chunk-MIUELYVA.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ea}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ja}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.wa}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.za}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.W}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.O}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Fa}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.M}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.N}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.d}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.k}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.j}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.q}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.p}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.aa}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.$}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ba}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.X}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.o}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.n}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.e}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Da}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ca}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ca}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.w}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.v}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.g}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.K}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.J}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ya}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.xa}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ga}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ta}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ja}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ia}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.f}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Qa}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.T}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.S}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ka}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ia}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.i}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ra}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.G}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.E}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.B}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.F}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.D}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Na}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ua}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Y}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.t}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.R}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.L}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Sa}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.va}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.l}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.r}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.U}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Z}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ma}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.h}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.y}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.z}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ba}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Oa}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Q}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.da}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Pa}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.A}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.x}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ga}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.m}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.pa}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.na}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ra}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.oa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ha}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.P}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.I}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.s}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.C}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Aa}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.La}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.fa}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ea}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ka}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs._}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.V}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.qa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.la}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ma}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.H}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.u}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.D}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.nf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.of}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.Wa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.qf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.pf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.E}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.mb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.ib}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.mf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.nb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkQIFQTG57_cjs.rf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
|
1
|
+
'use strict';var chunkIHAFYLLQ_cjs=require('./chunk-IHAFYLLQ.cjs');require('./chunk-PYRPB22X.cjs'),require('./chunk-K6FOU3RO.cjs'),require('./chunk-P2NVDXSG.cjs'),require('./chunk-Y2PX72HO.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-4CHEPYZV.cjs');var chunkBEV535XW_cjs=require('./chunk-BEV535XW.cjs');require('./chunk-MIUELYVA.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ea}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ja}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.wa}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.za}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.W}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.O}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Fa}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.M}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.N}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.d}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.k}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.j}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.q}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.p}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.aa}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.$}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ba}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.X}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.o}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.n}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.e}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Da}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ca}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ca}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.w}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.v}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.g}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.K}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.J}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ya}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.xa}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ga}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ta}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ja}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ia}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.f}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Qa}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.T}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.S}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ka}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ia}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.i}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ra}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.G}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.E}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.B}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.F}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.D}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Na}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ua}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Y}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.t}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.R}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.L}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Sa}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.va}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.l}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.r}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.U}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Z}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ma}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.h}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.y}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.z}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ba}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Oa}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Q}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.da}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Pa}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.A}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.x}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ga}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.m}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.pa}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.na}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ra}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.oa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ha}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.P}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.I}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.s}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.C}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Aa}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.La}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.fa}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ea}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ka}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs._}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.V}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.qa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.la}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ma}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.H}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.u}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkBEV535XW_cjs.D}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkBEV535XW_cjs.pf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkBEV535XW_cjs.qf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkBEV535XW_cjs.Wa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkBEV535XW_cjs.sf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkBEV535XW_cjs.rf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkBEV535XW_cjs.E}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkBEV535XW_cjs.mb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkBEV535XW_cjs.ib}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkBEV535XW_cjs.of}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkBEV535XW_cjs.nb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkBEV535XW_cjs.tf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
package/dist/editor.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-25RmHnxu.cjs';
|
|
2
2
|
export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-25RmHnxu.cjs';
|
|
3
3
|
import { L as LayoutShapingOptions } from './shaped-measurer-SIqZp-Ty.cjs';
|
|
4
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-
|
|
5
|
-
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-
|
|
6
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
4
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-C7hgxxtG.cjs';
|
|
5
|
+
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-C7hgxxtG.cjs';
|
|
6
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-DAs0YOP3.cjs';
|
|
7
7
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
8
8
|
import { ColorValue } from './contracts/types.cjs';
|
|
9
9
|
import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-UOXlRUqQ.cjs';
|
|
10
10
|
export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-UOXlRUqQ.cjs';
|
|
11
|
-
import { f as DocumentThemeColorEntry } from './tree-session-
|
|
11
|
+
import { f as DocumentThemeColorEntry } from './tree-session-ZpXtFxlP.cjs';
|
|
12
12
|
import { S as SemanticLayout } from './semantic-records-DC6V1U3T.cjs';
|
|
13
13
|
export { T as TextMeasurer } from './semantic-records-DC6V1U3T.cjs';
|
|
14
14
|
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-DwpNnTg3.cjs';
|
|
@@ -19,7 +19,7 @@ export { F as FieldShadingMode } from './semantic-paint-DdGGra4m.cjs';
|
|
|
19
19
|
import './contracts/document.cjs';
|
|
20
20
|
import './revision-projection-72ZApe-g.cjs';
|
|
21
21
|
import './ooxml-tree-BU0e3DVi.cjs';
|
|
22
|
-
import './review-reads-
|
|
22
|
+
import './review-reads-JBOmRH--.cjs';
|
|
23
23
|
import './ooxml-package-CR5us6ad.cjs';
|
|
24
24
|
import './custom-node-writes-YqISlSRl.cjs';
|
|
25
25
|
import './hf-references-CgEOSw3i.cjs';
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-C8oaTHr3.js';
|
|
2
2
|
export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-C8oaTHr3.js';
|
|
3
3
|
import { L as LayoutShapingOptions } from './shaped-measurer-ChSWkuAT.js';
|
|
4
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-
|
|
5
|
-
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-
|
|
6
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
4
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-DHX6HKd_.js';
|
|
5
|
+
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-DHX6HKd_.js';
|
|
6
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-r6hje8Kf.js';
|
|
7
7
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
|
|
8
8
|
import { ColorValue } from './contracts/types.js';
|
|
9
9
|
import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-DWLCllG7.js';
|
|
10
10
|
export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-DWLCllG7.js';
|
|
11
|
-
import { f as DocumentThemeColorEntry } from './tree-session-
|
|
11
|
+
import { f as DocumentThemeColorEntry } from './tree-session-COduYhKr.js';
|
|
12
12
|
import { S as SemanticLayout } from './semantic-records-BC4bIKKL.js';
|
|
13
13
|
export { T as TextMeasurer } from './semantic-records-BC4bIKKL.js';
|
|
14
14
|
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-C_YnqPhn.js';
|
|
@@ -19,7 +19,7 @@ export { F as FieldShadingMode } from './semantic-paint-BBNaqr1s.js';
|
|
|
19
19
|
import './contracts/document.js';
|
|
20
20
|
import './revision-projection-DHAkcD_L.js';
|
|
21
21
|
import './ooxml-tree-BU0e3DVi.js';
|
|
22
|
-
import './review-reads-
|
|
22
|
+
import './review-reads-cgvJLJc2.js';
|
|
23
23
|
import './ooxml-package-D_CtywTW.js';
|
|
24
24
|
import './custom-node-writes-ttKuYd0M.js';
|
|
25
25
|
import './hf-references-BdjsQNE_.js';
|
package/dist/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Ea as AUTO_ZOOM_MODE,Ja as BROWSER_AUTOMATION_CAPABILITIES,sa as CHROME_GROUPS,wa as CHROME_MENUS,za as CHROME_UNAVAILABLE_KEY,W as DEFAULT_TABLE_CHROME_DRAFT,O as EMU_PER_POINT,Fa as FIT_WIDTH_ZOOM_MODE,M as IMAGE_OVERLAY_NUDGE_PT,N as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as MAX_RESOLVER_FAMILIES,k as PX_PER_CM,j as PX_PER_INCH,q as SNAP_TWIPS_CM,p as SNAP_TWIPS_INCH,aa as TABLE_BORDER_STYLE_OPTIONS,$ as TABLE_BORDER_TARGET_OPTIONS,ba as TABLE_BORDER_WIDTH_OPTIONS,X as TABLE_CHROME_SLOT_IDS,o as TWIPS_PER_CM,n as TWIPS_PER_INCH,e as WORD_DEFAULT_FONT,Da as ZOOM_MAX,Ca as ZOOM_MIN,ca as applyTableChromePick,w as applyThemeShade,v as applyThemeTint,g as blankDocumentBytes,K as canExecuteImageCommand,J as captureImageMutationPreconditions,ya as chromeControlCount,xa as chromeMenuSlots,ga as chromeProbeForSlot,ta as chromeSlotId,ha as commandForSlot,ja as commandForSlotValue,ia as commandForTableChromeSlotValue,f as composeFontConfiguration,Qa as computeImageResizeResult,T as computeMovedImagePosition,S as computeResizedImageExtentEmu,Ka as createBrowserAutomationHost,Ia as createDocxEditor,i as createFontSource,Ra as createImageOverlayScrollPort,b as createLayoutShaping,G as cropPercentFromCropPermille,E as cropPercentFromPermille,B as cropPercentFromSourceCrop,F as cropPermilleFromCropPercent,D as cropPermilleFromPercent,Na as cssPixelsToLayoutPoints,ua as defaultChromeGroups,Y as defaultTableLabel,c as disposeLayoutShaping,t as dragIndent,R as emuToOverlayPoints,L as executeImageCommand,Sa as finalizeImageOverlayInteraction,va as formattingBarChromeGroups,l as generateRulerTicks,r as handlePosition,U as isStaleImageInteractionCommit,Z as isTableChromeSlot,Ma as layoutPointsToCssPixels,h as loadFonts,y as lowerColorValueForBorder,z as lowerColorValueForFill,Ba as mountPaginatedSurface,Oa as overlayFrameToSheetCssPixels,Q as pointsToEmu,da as probeTableChromeCommand,Pa as resizePreservesAspect,A as resolveColorValueToCss,x as resolveThemeColorHex,Ga as resolveZoomMode,m as rulerPageBox,pa as runSave,na as runTableChromeCommand,ra as runTableCommand,oa as runToolbarCommand,Ha as sameZoomMode,P as selectedDrawingOverlayTargetOf,I as selectedImageStateOf,s as snapTwips,C as sourceCropFromCropPercent,Aa as surfaceExtent,La as surfacePaintScale,fa as tableChromeIconPaths,ea as tableChromeLabelKeyForTarget,ka as tableChromeToolbarState,_ as tableChromeVisible,V as tableCommandState,qa as tableCommandToolbarState,a as toEditorFontError,la as toolbarCommandState,ma as toolbarCommandStates,H as validateImageCropPercent,u as validateThemeModifier}from'./chunk-
|
|
1
|
+
export{Ea as AUTO_ZOOM_MODE,Ja as BROWSER_AUTOMATION_CAPABILITIES,sa as CHROME_GROUPS,wa as CHROME_MENUS,za as CHROME_UNAVAILABLE_KEY,W as DEFAULT_TABLE_CHROME_DRAFT,O as EMU_PER_POINT,Fa as FIT_WIDTH_ZOOM_MODE,M as IMAGE_OVERLAY_NUDGE_PT,N as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as MAX_RESOLVER_FAMILIES,k as PX_PER_CM,j as PX_PER_INCH,q as SNAP_TWIPS_CM,p as SNAP_TWIPS_INCH,aa as TABLE_BORDER_STYLE_OPTIONS,$ as TABLE_BORDER_TARGET_OPTIONS,ba as TABLE_BORDER_WIDTH_OPTIONS,X as TABLE_CHROME_SLOT_IDS,o as TWIPS_PER_CM,n as TWIPS_PER_INCH,e as WORD_DEFAULT_FONT,Da as ZOOM_MAX,Ca as ZOOM_MIN,ca as applyTableChromePick,w as applyThemeShade,v as applyThemeTint,g as blankDocumentBytes,K as canExecuteImageCommand,J as captureImageMutationPreconditions,ya as chromeControlCount,xa as chromeMenuSlots,ga as chromeProbeForSlot,ta as chromeSlotId,ha as commandForSlot,ja as commandForSlotValue,ia as commandForTableChromeSlotValue,f as composeFontConfiguration,Qa as computeImageResizeResult,T as computeMovedImagePosition,S as computeResizedImageExtentEmu,Ka as createBrowserAutomationHost,Ia as createDocxEditor,i as createFontSource,Ra as createImageOverlayScrollPort,b as createLayoutShaping,G as cropPercentFromCropPermille,E as cropPercentFromPermille,B as cropPercentFromSourceCrop,F as cropPermilleFromCropPercent,D as cropPermilleFromPercent,Na as cssPixelsToLayoutPoints,ua as defaultChromeGroups,Y as defaultTableLabel,c as disposeLayoutShaping,t as dragIndent,R as emuToOverlayPoints,L as executeImageCommand,Sa as finalizeImageOverlayInteraction,va as formattingBarChromeGroups,l as generateRulerTicks,r as handlePosition,U as isStaleImageInteractionCommit,Z as isTableChromeSlot,Ma as layoutPointsToCssPixels,h as loadFonts,y as lowerColorValueForBorder,z as lowerColorValueForFill,Ba as mountPaginatedSurface,Oa as overlayFrameToSheetCssPixels,Q as pointsToEmu,da as probeTableChromeCommand,Pa as resizePreservesAspect,A as resolveColorValueToCss,x as resolveThemeColorHex,Ga as resolveZoomMode,m as rulerPageBox,pa as runSave,na as runTableChromeCommand,ra as runTableCommand,oa as runToolbarCommand,Ha as sameZoomMode,P as selectedDrawingOverlayTargetOf,I as selectedImageStateOf,s as snapTwips,C as sourceCropFromCropPercent,Aa as surfaceExtent,La as surfacePaintScale,fa as tableChromeIconPaths,ea as tableChromeLabelKeyForTarget,ka as tableChromeToolbarState,_ as tableChromeVisible,V as tableCommandState,qa as tableCommandToolbarState,a as toEditorFontError,la as toolbarCommandState,ma as toolbarCommandStates,H as validateImageCropPercent,u as validateThemeModifier}from'./chunk-7JUQEZU4.js';import'./chunk-OUKRZ43D.js';import'./chunk-XNMXQWNA.js';import'./chunk-2AOXVZU7.js';import'./chunk-EBIEBTAG.js';import'./chunk-4WWEDTTE.js';import'./chunk-YNO4ITHS.js';export{D as DEFAULT_IMAGE_RESOURCE_LIMITS,pf as DRAWING_REL_FROM_H,qf as DRAWING_REL_FROM_V,Wa as IMAGE_WRAP_TARGETS,sf as positionInputFromPropertiesCommand,rf as propertiesCommandHasPositionFields,E as resolveImageResourceLimits,mb as resolveSvgIntrinsicSize,ib as sniffImageMime,of as validateDrawingPositionInput,nb as validateRasterHeader,tf as validateSetImagePositionCommand}from'./chunk-R6BMB6RM.js';import'./chunk-GRGRIDHF.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
|
|
@@ -4,14 +4,14 @@ import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources
|
|
|
4
4
|
import { R as RevisionDisplayMode } from './revision-projection-72ZApe-g.cjs';
|
|
5
5
|
import './review-support-rsyGP5-9.cjs';
|
|
6
6
|
import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-B4HrJFQ2.cjs';
|
|
7
|
-
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-
|
|
7
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-JBOmRH--.cjs';
|
|
8
8
|
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-DC6V1U3T.cjs';
|
|
9
9
|
import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-YqISlSRl.cjs';
|
|
10
10
|
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-CI3loBKq.cjs';
|
|
11
11
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
|
|
12
12
|
import { Unsubscribe, ExecResult, IndentFormatting } from './contracts/types.cjs';
|
|
13
13
|
import { F as FieldShadingMode, a as DrawingPaintStrings } from './semantic-paint-DdGGra4m.cjs';
|
|
14
|
-
import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-
|
|
14
|
+
import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-ZpXtFxlP.cjs';
|
|
15
15
|
import './contracts/document.cjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -4,14 +4,14 @@ import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources
|
|
|
4
4
|
import { R as RevisionDisplayMode } from './revision-projection-DHAkcD_L.js';
|
|
5
5
|
import './review-support-B9ykYpoZ.js';
|
|
6
6
|
import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-unGpRNCk.js';
|
|
7
|
-
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-
|
|
7
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-cgvJLJc2.js';
|
|
8
8
|
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-BC4bIKKL.js';
|
|
9
9
|
import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-ttKuYd0M.js';
|
|
10
10
|
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-Cx8P64j2.js';
|
|
11
11
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
12
12
|
import { Unsubscribe, ExecResult, IndentFormatting } from './contracts/types.js';
|
|
13
13
|
import { F as FieldShadingMode, a as DrawingPaintStrings } from './semantic-paint-BBNaqr1s.js';
|
|
14
|
-
import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-
|
|
14
|
+
import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-COduYhKr.js';
|
|
15
15
|
import './contracts/document.js';
|
|
16
16
|
|
|
17
17
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkIHAFYLLQ_cjs=require('./chunk-IHAFYLLQ.cjs');require('./chunk-PYRPB22X.cjs'),require('./chunk-K6FOU3RO.cjs'),require('./chunk-P2NVDXSG.cjs'),require('./chunk-Y2PX72HO.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-4CHEPYZV.cjs'),require('./chunk-BEV535XW.cjs'),require('./chunk-MIUELYVA.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.Ia}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkIHAFYLLQ_cjs.la}});
|
package/dist/index.d.cts
CHANGED
|
@@ -4,19 +4,19 @@ export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageM
|
|
|
4
4
|
export { R as RevisionDisplayMode } from './revision-projection-72ZApe-g.cjs';
|
|
5
5
|
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-support-rsyGP5-9.cjs';
|
|
6
6
|
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-B4HrJFQ2.cjs';
|
|
7
|
-
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-
|
|
7
|
+
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-C7hgxxtG.cjs';
|
|
8
8
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, NumberingRef, PageMargins, Paragraph, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.cjs';
|
|
9
9
|
export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.cjs';
|
|
10
10
|
export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
|
|
11
11
|
import './ooxml-tree-BU0e3DVi.cjs';
|
|
12
12
|
import './ooxml-package-CR5us6ad.cjs';
|
|
13
13
|
import './semantic-records-DC6V1U3T.cjs';
|
|
14
|
-
import './review-reads-
|
|
14
|
+
import './review-reads-JBOmRH--.cjs';
|
|
15
15
|
import './custom-node-writes-YqISlSRl.cjs';
|
|
16
16
|
import './hf-references-CgEOSw3i.cjs';
|
|
17
17
|
import './note-nodes-C6DLxlvj.cjs';
|
|
18
18
|
import './tree-store-B1lEkdXc.cjs';
|
|
19
19
|
import './semantic-cell-selection-CI3loBKq.cjs';
|
|
20
20
|
import './semantic-paint-DdGGra4m.cjs';
|
|
21
|
-
import './tree-session-
|
|
21
|
+
import './tree-session-ZpXtFxlP.cjs';
|
|
22
22
|
import 'prosemirror-model';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,19 +4,19 @@ export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageM
|
|
|
4
4
|
export { R as RevisionDisplayMode } from './revision-projection-DHAkcD_L.js';
|
|
5
5
|
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-support-B9ykYpoZ.js';
|
|
6
6
|
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-unGpRNCk.js';
|
|
7
|
-
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-
|
|
7
|
+
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-DHX6HKd_.js';
|
|
8
8
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, NumberingRef, PageMargins, Paragraph, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.js';
|
|
9
9
|
export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
|
|
10
10
|
export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
11
11
|
import './ooxml-tree-BU0e3DVi.js';
|
|
12
12
|
import './ooxml-package-D_CtywTW.js';
|
|
13
13
|
import './semantic-records-BC4bIKKL.js';
|
|
14
|
-
import './review-reads-
|
|
14
|
+
import './review-reads-cgvJLJc2.js';
|
|
15
15
|
import './custom-node-writes-ttKuYd0M.js';
|
|
16
16
|
import './hf-references-BdjsQNE_.js';
|
|
17
17
|
import './note-nodes-BPSTVDMr.js';
|
|
18
18
|
import './tree-store-BscFPB7x.js';
|
|
19
19
|
import './semantic-cell-selection-Cx8P64j2.js';
|
|
20
20
|
import './semantic-paint-BBNaqr1s.js';
|
|
21
|
-
import './tree-session-
|
|
21
|
+
import './tree-session-COduYhKr.js';
|
|
22
22
|
import 'prosemirror-model';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{sa as CHROME_GROUPS,wa as CHROME_MENUS,e as WORD_DEFAULT_FONT,g as blankDocumentBytes,xa as chromeMenuSlots,ha as commandForSlot,ja as commandForSlotValue,f as composeFontConfiguration,Ia as createDocxEditor,i as createFontSource,h as loadFonts,oa as runToolbarCommand,la as toolbarCommandState}from'./chunk-
|
|
1
|
+
export{sa as CHROME_GROUPS,wa as CHROME_MENUS,e as WORD_DEFAULT_FONT,g as blankDocumentBytes,xa as chromeMenuSlots,ha as commandForSlot,ja as commandForSlotValue,f as composeFontConfiguration,Ia as createDocxEditor,i as createFontSource,h as loadFonts,oa as runToolbarCommand,la as toolbarCommandState}from'./chunk-7JUQEZU4.js';import'./chunk-OUKRZ43D.js';import'./chunk-XNMXQWNA.js';import'./chunk-2AOXVZU7.js';import'./chunk-EBIEBTAG.js';import'./chunk-4WWEDTTE.js';import'./chunk-YNO4ITHS.js';import'./chunk-R6BMB6RM.js';import'./chunk-GRGRIDHF.js';import'./chunk-GQQOL4PV.js';
|