@docx-editor.dev/core 2.8.0 → 2.9.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 +5 -6
- package/dist/automation.d.ts +5 -6
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +11 -12
- package/dist/binding.d.ts +11 -12
- package/dist/binding.js +1 -1
- package/dist/chunk-2RDMWJPF.cjs +2 -0
- package/dist/chunk-5VC5HGJA.js +2 -0
- package/dist/chunk-A2JIBG75.js +1 -0
- package/dist/chunk-DKMKH77K.cjs +5 -0
- package/dist/chunk-DTQPINIM.js +15 -0
- package/dist/chunk-HHFMXG25.js +2 -0
- package/dist/chunk-IEXDXWTA.cjs +1 -0
- package/dist/chunk-IMMAG4QP.cjs +10 -0
- package/dist/chunk-KBCC66CI.js +5 -0
- package/dist/chunk-P5YSGSYC.cjs +15 -0
- package/dist/chunk-Q66ZJFRE.js +18 -0
- package/dist/chunk-TP4EHWEX.cjs +18 -0
- package/dist/chunk-VUJGPCPU.js +10 -0
- package/dist/chunk-XMHWBL3K.cjs +2 -0
- package/dist/contracts/editor.d.cts +9 -9
- package/dist/contracts/editor.d.ts +9 -9
- package/dist/contracts/interaction.d.cts +9 -9
- package/dist/contracts/interaction.d.ts +9 -9
- package/dist/contracts/modules.d.cts +5 -5
- package/dist/contracts/modules.d.ts +5 -5
- package/dist/{custom-node-writes-BdVl-LAC.d.ts → custom-node-writes-7ERv0f_X.d.cts} +9 -10
- package/dist/{custom-node-writes-Bu8JIqfA.d.cts → custom-node-writes-QyVZdTUA.d.ts} +9 -10
- package/dist/{editor-CWlj33GH.d.cts → editor-CojjwMmF.d.cts} +4 -4
- package/dist/{editor-D52SD4jG.d.ts → editor-PUlv5Pp7.d.ts} +4 -4
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +124 -14
- package/dist/editor.d.cts +25 -25
- package/dist/editor.d.ts +25 -25
- package/dist/editor.js +1 -1
- package/dist/{hf-references-BdjsQNE_.d.ts → hf-references-Dvk6De4Q.d.cts} +1 -2
- package/dist/{hf-references-CgEOSw3i.d.cts → hf-references-z5Y4N1ab.d.ts} +1 -2
- package/dist/{image-resources-BveffuKp.d.cts → image-resources-DQOiwOuE.d.cts} +2 -2
- package/dist/{image-resources-D63k8w5f.d.ts → image-resources-eZqD_-vC.d.ts} +2 -2
- package/dist/{index-39yzaZO_.d.cts → index-DGPSeLI0.d.cts} +66 -13
- package/dist/{index-ZuqIj0b9.d.ts → index-oN-v8DQ5.d.ts} +66 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +353 -272
- package/dist/layout.d.ts +353 -272
- package/dist/layout.js +1 -1
- package/dist/{note-nodes-BPSTVDMr.d.ts → note-nodes-BNCANoGN.d.ts} +1 -1
- package/dist/{note-nodes-C6DLxlvj.d.cts → note-nodes-DL-Au22P.d.cts} +1 -1
- package/dist/note-properties-CQlxjic_.d.cts +67 -0
- package/dist/note-properties-jvnw_DGG.d.ts +67 -0
- package/dist/omml-equation-BD-LsmWE.d.cts +84 -0
- package/dist/omml-equation-Dd3mBep-.d.ts +84 -0
- package/dist/{ooxml-tree-BU0e3DVi.d.cts → ooxml-package-CdEy9ufK.d.cts} +352 -1
- package/dist/{ooxml-tree-BU0e3DVi.d.ts → ooxml-package-CdEy9ufK.d.ts} +352 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +8 -8
- package/dist/output.d.ts +8 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-CD7slqvl.d.cts → protocol-C7ahrdUx.d.ts} +28 -4
- package/dist/{protocol-DsbfgBwA.d.ts → protocol-UuZOcOp7.d.cts} +28 -4
- package/dist/{review-support--I4ChuzF.d.ts → review-items-D5SPFtsO.d.ts} +49 -102
- package/dist/{review-support-CG7aVSPh.d.cts → review-items-DpsqTHio.d.cts} +49 -102
- package/dist/review-reads-B2Ji3fVU.d.ts +176 -0
- package/dist/review-reads-CP106AHp.d.cts +176 -0
- package/dist/{revision-projection-UKqvPa4-.d.ts → revision-projection-CILpvv4M.d.ts} +1 -1
- package/dist/{revision-projection-WzlQGBJx.d.cts → revision-projection-Cc4wz30g.d.cts} +1 -1
- package/dist/{semantic-cell-selection-I-uAmi0q.d.ts → semantic-cell-selection-BWhVAk5B.d.ts} +4 -4
- package/dist/{semantic-cell-selection-C45Gn4K-.d.cts → semantic-cell-selection-DJPjBWzf.d.cts} +4 -4
- package/dist/{semantic-interaction-DVUqu_47.d.cts → semantic-interaction-BjOcDB06.d.cts} +1 -1
- package/dist/{semantic-interaction-Bu_3IPaV.d.ts → semantic-interaction-Cca1-X_a.d.ts} +1 -1
- package/dist/{semantic-paint-BKiiDJol.d.ts → semantic-paint-CufpIQFw.d.ts} +7 -7
- package/dist/{semantic-paint-COQY0Lnq.d.cts → semantic-paint-Ur7pAINj.d.cts} +7 -7
- package/dist/{semantic-records-rAKWaD-1.d.cts → semantic-records-C3Z76KeN.d.cts} +59 -5
- package/dist/{semantic-records-DHcMZM2-.d.ts → semantic-records-Cc1MJrhM.d.ts} +59 -5
- package/dist/{shaped-measurer-Cw45Nu5R.d.ts → shaped-measurer-CYSK20E2.d.cts} +2 -4
- package/dist/{shaped-measurer-BRL__nm2.d.cts → shaped-measurer-CwlTPDJO.d.ts} +2 -4
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +78 -18
- package/dist/store.d.ts +78 -18
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-A-SLSKzK.d.cts → tree-op-types-B0-sCtw-.d.cts} +27 -3
- package/dist/{tree-op-types-BbzrA-kg.d.ts → tree-op-types-XMVsJSpe.d.ts} +27 -3
- package/dist/{tree-session-C2NsEgfW.d.cts → tree-session-D945D43B.d.cts} +9 -18
- package/dist/{tree-session-DeNJa86l.d.ts → tree-session-DBJgmdmc.d.ts} +9 -18
- package/dist/{tree-store-CKswbQl3.d.ts → tree-store-C6vc8E_2.d.cts} +2 -3
- package/dist/{tree-store-Dob9Us6Y.d.cts → tree-store-ClA-qng4.d.ts} +2 -3
- package/package.json +2 -2
- package/dist/chunk-2WIXJ7CW.js +0 -10
- package/dist/chunk-42PRWWVE.js +0 -2
- package/dist/chunk-5XKD3VFP.js +0 -18
- package/dist/chunk-HCSWWXS2.cjs +0 -2
- package/dist/chunk-HTJLSGBH.cjs +0 -18
- package/dist/chunk-JEHWQPXS.cjs +0 -1
- package/dist/chunk-KCJLRAKT.js +0 -5
- package/dist/chunk-KTL3UMPK.js +0 -2
- package/dist/chunk-M6ZIVJUA.cjs +0 -2
- package/dist/chunk-NU57YOQE.js +0 -15
- package/dist/chunk-RUS2YBWU.cjs +0 -10
- package/dist/chunk-TJEWP7MX.cjs +0 -15
- package/dist/chunk-UGUPVZDY.cjs +0 -5
- package/dist/chunk-XJRMFS6O.js +0 -1
- package/dist/chunk-XN634HAC.js +0 -2
- package/dist/chunk-XRDTD4X3.cjs +0 -2
- package/dist/content-control-walk-CbTqHq6O.d.cts +0 -56
- package/dist/content-control-walk-D06GijR0.d.ts +0 -56
- package/dist/ooxml-package-CR5us6ad.d.cts +0 -354
- package/dist/ooxml-package-D_CtywTW.d.ts +0 -354
- package/dist/review-reads-B_pXe43J.d.ts +0 -432
- package/dist/review-reads-Bn7aZU4u.d.cts +0 -432
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkIMMAG4QP_cjs=require('./chunk-IMMAG4QP.cjs'),fflate=require('fflate');var Ft=["extension","capability","command","query","schema","dependencyKey","runtimePort","result","origin"],Bt=/^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)+$/,Ut=/^@[a-z0-9.-]+\/[a-z0-9.-]+(?:#[a-z0-9]+(?:[/._-][a-z0-9]+)*)?$/;function it(e){return Bt.test(e)||Ut.test(e)}function J(e,t){if(!it(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 Ht=/^(\d+)\.(\d+)\.(\d+)$/;function S(e){let t=Ht.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 q(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=S(e),r=t.trim();if(r==="*")return true;if(r.startsWith("^")){let o=S(r.slice(1));return q(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=S(a.slice(i.length)),l=q(n,d);i===">="?s=s&&l>=0:s=s&&l<0;}return s}return q(n,S(r))===0}var h=class extends Error{constructor(n,r,o=[]){super(r);this.code=n;this.responsible=o;this.name="RegistryError";}code;responsible},Me=(e,t)=>`${e}:${t}`;function Vt(e,t={}){let n=new Map;for(let l of e){if(J(l.id,"extension"),at(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)J(c.id,c.kind),at(c.version,`${l.id} \u2192 ${c.id}`),c.replaces&&Kt(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)}}Xt(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=Me(c.kind,c.id);if(c.replaces){let u=Me(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=jt(p,c);i.set(l,m);}return {extensions:n,contributions:i,get:(l,c)=>i.get(Me(l,c))}}function jt(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 Xt(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 at(e,t){try{S(e);}catch{throw new h("invalid-version",`invalid version ${JSON.stringify(e)} in ${t}`,[t])}}function Kt(e,t){try{Q("0.0.0",e);}catch{throw new h("invalid-version",`invalid version range ${JSON.stringify(e)} in ${t}`,[t])}}var T=class extends Error{constructor(t){super(t),this.name="BudgetError";}},U=class e{constructor(t,n){this.label=t;this.capacity=n;this.used=new chunkIMMAG4QP_cjs.p(`${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 T(`${this.label}: cannot release with ${this.children.size} child budget(s) outstanding`);if(this.activeReservations>0)throw new T(`${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 T(`${this.label}: ${t.length} cleanup error(s); first: ${String(t[0])}`)}assertLive(){if(this.disposed)throw new T(`${this.label}: budget already released`)}};var Z=class extends Error{constructor(n,r){super(r?`cancelled: ${r}`:"cancelled");this.derivedOnly=n;this.name="CancellationError";}derivedOnly},H=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 Z(t.derivedOnly,t._reason)}}}};var ee=class extends Error{constructor(n){super(`runtime port not available: ${n}`);this.portId=n;this.name="PortResolutionError";}portId},Le=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 ee(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(chunkIMMAG4QP_cjs.f.clock)}identity(){return this.resolve(chunkIMMAG4QP_cjs.f.identity)}},Fe=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}},Be=class{constructor(t="id"){this.prefix=t;}prefix;n=0;newId(){return this.n+=1,`${this.prefix}-${this.n}`}};function Gt(e){let t=chunkIMMAG4QP_cjs.k(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 U(`op:${o}`,r),cancellation:new H};return Object.freeze(s)}function zt(e){e.budget.dispose();}var He=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"}}),st=Object.keys(He);function Wt(e,t){return new chunkIMMAG4QP_cjs.p(`${He[t].phase}:${t}`,e[t])}var Ue=class{counter;current=0;peak=0;constructor(t){this.counter=new chunkIMMAG4QP_cjs.p("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 Yt(){for(let e of st){let t=chunkIMMAG4QP_cjs.j[e],n=chunkIMMAG4QP_cjs.i[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 V(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 Ve(e,t){let n=V(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",je={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 Xe(e,t,n,r={}){let o=je[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:lt(t,n,r.epsilon)}}case "exact":case "canonical-exact":{let s=o.mode==="canonical-exact"?new Set(o.ephemera):new Set,a=V(t,s),i=V(n,s);return a===i?{equal:true}:{equal:false,left:a,right:i}}}}function Ke(e,t){let n=je[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 Ve(t,r)}function lt(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)=>lt(r,t[o],n)):false}var dt=new Set([...chunkIMMAG4QP_cjs.c,...chunkIMMAG4QP_cjs.d]),ct=/^[0-9a-f]{16}$/,Jt=/^[0-9a-f]*$/;function Ge(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}]`;dt.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&&qt(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&&!ct.test(i.authoredStateHash)&&n(`${a}: authoredStateHash must be 16-hex`),i.outputHash!==void 0&&!ct.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}`),Jt.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 qt(e,t,n){dt.has(e.origin)||n(`${t}: modelChange origin ${e.origin} unknown`),e.toRevision<=e.fromRevision&&n(`${t}: modelChange revision must advance`);}function Qt(e,t){let n=Ge(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 {Xe("authoredState",i.authoredState,i.authoredState).equal||r.push(`${a}: authored state is not self-consistent`);let c=pt(i.authoredState);c!==d.authoredStateHash&&r.push(`${a}: authoredStateHash ${c} != expected ${d.authoredStateHash}`);}}),{ok:r.length===0,mismatches:r}}function pt(e){return Ke("authoredState",e)}var Zt=new Map([["embedRegular","regular"],["embedBold","bold"],["embedItalic","italic"],["embedBoldItalic","boldItalic"]]),en=32;function ft(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(en,o.length);for(let a=0;a<s;a+=1)o[a]=o[a]^r[a%16];return o}var ze=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},ut=e=>e.kind==="textValue"?[]:e.children??[],mt=e=>e.kind==="textValue"||!("localName"in e)?"":e.localName;function tn(e,t,n){for(let r of e.relationships.get(t)??[]){if(r.id!==n)continue;if(r.targetMode==="External")return null;let o=chunkIMMAG4QP_cjs.w(t,r.rawTarget);return o.ok?o.partName:null}return null}function nn(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(mt(d)==="font"){let l=ze(d,"name");if(l&&l.length<=128)for(let c of ut(d)){if(s.length>=o)return;let p=Zt.get(mt(c));if(!p)continue;let u=ze(c,"id"),m=ze(c,"fontKey");if(!u||!m)continue;let f=tn(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 v=ft(y,m);v&&(a.set(f,v),s.push({family:l,style:p,bytes:v,partName:f}));}}for(let l of ut(d))i(l);}};return i(t.root),s}function yt(e){if(e.kind!=="textValue")for(let t of e.children){if(t.kind==="textValue")continue;if(t.kind==="hyperlink"){let r=chunkIMMAG4QP_cjs.Ia(t);if(r!==void 0&&r.length>0)return r}let n=yt(t);if(n!==void 0)return n}}function rn(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),chunkIMMAG4QP_cjs.Jc(t)}function on(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=chunkIMMAG4QP_cjs.zc(e),i=new Map;for(let d of o){let l=chunkIMMAG4QP_cjs.Jc(d.text),c=i.get(l);c?c.push(d.blockId):i.set(l,[d.blockId]);}return t.resultParagraphIds.map(d=>{let l=chunkIMMAG4QP_cjs.va(e,d);if(!l||l.kind==="textValue")return null;let c=yt(l),p=c===void 0?void 0:a.get(c);if(p&&s.has(p.paragraphId)){let f=i.get(chunkIMMAG4QP_cjs.Jc(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=rn(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===chunkIMMAG4QP_cjs.ca?e.localName:`{${e.namespaceUri}}${e.localName}`}function I(e){let t=[];for(let n of e.attributes)t.push(n.namespaceUri===""||n.namespaceUri===chunkIMMAG4QP_cjs.ca?`${n.localName}=${n.value}`:`{${n.namespaceUri}}${n.localName}=${n.value}`);return t.sort(),t}function ht(e,t){let n=I(e),r=n.length>0?`${C(e)}(${n.join(",")})`:C(e);if(t>=chunkIMMAG4QP_cjs.U)return r;let o=[];for(let s of e.children){if(s.kind==="textValue"){s.value!==""&&o.push(`#${s.value}`);continue}o.push(ht(s,t+1));}return o.sort(),o.length>0?`${r}[${o.join(",")}]`:r}function gt(e){if(!e)return [];let t=[];for(let n of e.children)n.namespaceUri===chunkIMMAG4QP_cjs.ca&&t.push(ht(n,1));return t.sort(),t}function We(e){if(e.kind==="textValue")return e.value;if(e.kind==="tab")return " ";if(e.kind==="hardBreak")return chunkIMMAG4QP_cjs.Xb(e);if(e.kind==="drawing")return chunkIMMAG4QP_cjs.jc();if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return "";if(e.kind==="hyperlink"||chunkIMMAG4QP_cjs.Hb(e)){let n="",r=e.kind==="hyperlink"?e.children:chunkIMMAG4QP_cjs.Jb(e)??[];for(let o of r)n+=We(o);return n}let t="";for(let n of e.children)t+=We(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 j(e,t){try{return chunkIMMAG4QP_cjs.ma(e,t)}catch(n){if(n instanceof chunkIMMAG4QP_cjs.ga&&n.reason==="undeclared-prefix")return `generic-refusal:undeclared-prefix:{${e.namespaceUri}}${e.localName}`;throw n}}function Ye(e,t,n=chunkIMMAG4QP_cjs.la){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!==chunkIMMAG4QP_cjs.ca&&s.push(j(a,o));s.sort(),t.push(...s);return}if(e.kind==="generic"){t.push(j(e,n));return}if(chunkIMMAG4QP_cjs.Hb(e)){t.push(chunkIMMAG4QP_cjs.na(e));return}if(e.kind==="bookmarkStart"||e.kind==="bookmarkEnd"){t.push(chunkIMMAG4QP_cjs.ma(e,n));return}if(e.kind==="drawing"){t.push(xt(e));return}if(chunkIMMAG4QP_cjs.ba(e.kind))return;let r=x(n,e);for(let o of e.children)Ye(o,t,r);}function an(e){return `hyperlink(${e.attributes.map(n=>`${n.namespaceUri}|${n.localName}=${n.value}`).sort().join(",")})`}function sn(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===chunkIMMAG4QP_cjs.fa)?.value,o=n.attributes.find(s=>s.localName==="link"&&s.namespaceUri===chunkIMMAG4QP_cjs.fa)?.value;if(r!==void 0)return `embed=${r}`;if(o!==void 0)return `link=${o}`}}function te(e,t,n){if(e.kind==="textValue")return `#${e.value}`;if(t>=chunkIMMAG4QP_cjs.U)return C(e);let r=x(n,e);if(e.kind==="generic")return j(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(te(i,t+1,r));return a.sort(),a.length>0?`${s}[${a.join(",")}]`:s}function ln(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=>te(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(te(l,t+1,r));continue}o.push(te(s,t+1,r));}return o.sort(),o}function Je(e,t,n){if(e.kind==="textValue")return `#${e.value}`;if(t>=chunkIMMAG4QP_cjs.U)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=sn(e),d=ln(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(Je(i,t+1,r));continue}if(i.kind==="generic"){a.push(j(i,r));continue}i.kind!=="textValue"&&a.push(Je(i,t+1,r));}return a.length>0?`${s}[${a.join(",")}]`:s}function xt(e){let t=x(chunkIMMAG4QP_cjs.la,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(j(i,r));continue}i.kind!=="textValue"&&a.push(Je(i,1,r));}return a.length>0?`drawing[${s};${a.join(";")}]`:`drawing[${s}]`}function cn(e,t,n){let r=e.children.find(c=>c.kind==="paragraphProperties"),o=[],s="",a=[],i=x(chunkIMMAG4QP_cjs.la,e),d=(c,p)=>{if(c.kind==="run"){let u=x(p,c),m=c.children.find(f=>f.kind==="runProperties");o.push(gt(m)),s+=We(c);for(let f of c.children)Ye(f,a,u);return}if(c.kind==="drawing"){a.push(xt(c));return}if(c.kind==="hyperlink"){a.push(an(c));let u=x(p,c);for(let m of c.children)d(m,u);return}if(c.kind==="contentControl"){a.push(chunkIMMAG4QP_cjs.na({...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}Ye(c,a,p);};for(let c of e.children)d(c,i);let l=chunkIMMAG4QP_cjs.Qc(e);return {ordinal:t,path:n,paraId:l===null?null:l.toUpperCase(),text:s,paragraphProperties:gt(r),runProperties:o,genericStructure:a}}function dn(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 Nt(e,t,n,r,o,s){if(s>chunkIMMAG4QP_cjs.U)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)}`),Nt(i,d,n,r,o,s+1);}}function Ot(e){let t=dn(e.root),n=[],r=[],o=[];Nt(t,"",n,r,o,0);let s=n.map((a,i)=>cn(a,i,r[i]));return {partName:e.name,paragraphs:s,structure:o}}function pn(e){let t=[];for(let n of e){let r=Ot(n);r&&t.push(r);}return {stories:t}}function un(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 X="http://schemas.openxmlformats.org/wordprocessingml/2006/main",yn="http://schemas.openxmlformats.org/package/2006/relationships",Rt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",A="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml",gn="application/vnd.openxmlformats-package.relationships+xml",hn="http://schemas.openxmlformats.org/package/2006/content-types",Ct="/[Content_Types].xml",b="/word/numbering.xml",bt=[{text:"\uF0B7",font:"Symbol"},{text:"o",font:"Courier New"},{text:"\uF0A7",font:"Wingdings"}],Et=["decimal","lowerLetter","lowerRoman"],qe=9;function Tt(e,t){let n=720*(t+1),r='<w:start w:val="1"/>';if(e==="bullet"){let a=bt[t%bt.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=Et[t%Et.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 xn(e,t){let n=Array.from({length:qe},(r,o)=>Tt(e,o)).join("");return `<w:abstractNum w:abstractNumId="${t}"><w:multiLevelType w:val="${e==="bullet"?"hybridMultilevel":"multilevel"}"/>${n}</w:abstractNum>`}function Nn(){let e=chunkIMMAG4QP_cjs.ra(`<w:numbering xmlns:w="${X}"></w:numbering>`,{name:b,contentType:A});return e.ok?e.part:null}var P=(e,t)=>{let n=[];for(let r of e.children)r.kind==="textValue"||r.localName!==t||r.namespaceUri===X&&n.push(r);return n},N=(e,t)=>e.attributes.find(n=>n.localName===t)?.value;function vt(e,t){let n=chunkIMMAG4QP_cjs.ra(`<w:numbering xmlns:w="${X}">${e}</w:numbering>`,{name:b,contentType:A});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!==X||s.localName!==a.localName||a.attribute&&N(s,a.attribute.localName)!==a.attribute.value)return null}return r}var Pt=["numPicBullet","abstractNum","num","numIdMacAtCleanup"];function It(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 kt(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 On(e,t){let n=e.parts.get(b),r=n??Nn();if(!r)return null;let o=r.root,s=P(o,"abstractNum"),a=P(o,"num"),i=t==="bullet"?"bullet":"decimal",d=s.find(O=>{let D=N(O,"abstractNumId");if(!D||!/^\d{1,9}$/.test(D))return false;let et=P(O,"lvl").find(nt=>N(nt,"ilvl")==="0"||N(nt,"ilvl")===void 0),tt=et?P(et,"numFmt")[0]:void 0;return tt!==void 0&&N(tt,"val")===i}),c=(d?Number(N(d,"abstractNumId")):null)??kt(s,"abstractNumId"),p=kt(a,"numId"),u=d===void 0,m=vt((u?xn(t,c):"")+`<w:num w:numId="${p}"><w:abstractNumId w:val="${c}"/></w:num>`,u?[{localName:"abstractNum",attribute:{localName:"abstractNumId",value:String(c)}},{localName:"num",attribute:{localName:"numId",value:String(p)}}]:[{localName:"num",attribute:{localName:"numId",value:String(p)}}]);if(!m)return null;let f=chunkIMMAG4QP_cjs.ta(r),y=m.map(O=>ne(O,f)),g=u?y[0]:void 0,v=y[u?1:0];if(u&&!g||!v)return null;let ae=r;if(g){let O=chunkIMMAG4QP_cjs.ya(r,o.id,It(o.children,Pt,"abstractNum"),[g]);if(!O.ok)return null;ae=O.part;}let Ze=chunkIMMAG4QP_cjs.ya(ae,o.id,It(ae.root.children,Pt,"num"),[v]);if(!Ze.ok)return null;let se=Object.freeze({...e,parts:new Map([...e.parts,[b,Ze.part]])});if(!n){let O=En(se);if(!O)return null;let D=Sn(O);if(!D)return null;se=D;}return {pkg:se,numId:String(p)}}var Rn=["nsid","multiLevelType","tmpl","name","styleLink","numStyleLink","lvl"];function wt(e){let t=N(e,"ilvl");return t===void 0||!/^\d{1,9}$/.test(t)?null:Number(t)}function Cn(e,t){let n=0;return e.forEach((r,o)=>{if(r.kind!=="textValue"){if(r.localName==="lvl"&&r.namespaceUri===X){(wt(r)??0)<t&&(n=o+1);return}Rn.includes(r.localName)&&(n=o+1);}}),n}function bn(e,t,n,r){if(!Number.isInteger(n)||n<0||n>=qe||t.length===0||t.length>64)return null;let o=e.parts.get(b);if(!o)return null;let s=o.root,a=P(s,"num").find(f=>N(f,"numId")===t),i=a?P(a,"abstractNumId")[0]:void 0,d=i?N(i,"val"):void 0;if(!d)return null;let l=P(s,"abstractNum").find(f=>N(f,"abstractNumId")===d);if(!l||P(l,"numStyleLink").length>0)return null;let c=P(l,"lvl");if(c.some(f=>wt(f)===n))return e;if(c.length>=qe)return null;let p=vt(Tt(r,n),[{localName:"lvl",attribute:{localName:"ilvl",value:String(n)}}]);if(!p)return null;let u=chunkIMMAG4QP_cjs.ta(o),m=chunkIMMAG4QP_cjs.ya(o,l.id,Cn(l.children,n),[ne(p[0],u)]);return m.ok?Object.freeze({...e,parts:new Map([...e.parts,[b,m.part]])}):null}function ne(e,t){return e.kind==="textValue"?{...e,id:t()}:{...e,id:t(),children:e.children.map(n=>ne(n,t))}}function En(e){let t=e.mainDocumentPart,n=Pn(t),r=e.parts.get(n),o=In(e),s=chunkIMMAG4QP_cjs.ra(`<Relationships xmlns="${yn}"><Relationship Id="${o}" Type="${Rt}" Target="numbering.xml"/></Relationships>`,{name:n,contentType:gn});if(!s.ok)return null;let a=e.relationships.get(t)??[],i={ownerPart:t,id:o,type:Rt,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=chunkIMMAG4QP_cjs.ta(r),c=s.part.root.children[0];if(!c)return null;let p=chunkIMMAG4QP_cjs.ya(r,r.root.id,r.root.children.length,[ne(c,l)]);return p.ok?Object.freeze({...e,parts:new Map([...e.parts,[n,p.part]]),relationships:d}):null}function Pn(e){let t=e.lastIndexOf("/");return `${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}function In(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 kn=`<Override PartName="${b}" ContentType="${A}"/>`;function Sn(e){let t=e.contentTypes.overrides.get(chunkIMMAG4QP_cjs.u(b));if(t===A)return e;if(t!==void 0)return null;let n=e.partBytes.get(Ct);if(!n)return null;let r=fflate.strFromU8(n),o=St(r);if(!o)return null;let s=r.lastIndexOf(`</${o.rootName}>`);if(s===-1)return null;let a=r.slice(0,s)+kn+r.slice(s),i=St(a);if(!i||i.rootName!==o.rootName)return null;let d=[...o.children,_t("Override",{PartName:b,ContentType:A})];return i.children.length!==d.length||i.children.some((l,c)=>l!==d[c])?null:Object.freeze({...e,partBytes:new Map([...e.partBytes,[Ct,fflate.strToU8(a)]]),contentTypes:Object.freeze({defaults:e.contentTypes.defaults,overrides:new Map([...e.contentTypes.overrides,[chunkIMMAG4QP_cjs.u(b),A]])})})}function St(e){let t=chunkIMMAG4QP_cjs.V(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"]!==hn)return null;let a=[];for(let i of r.children)i.type==="element"&&a.push(_t(i.name,i.attributes));return {rootName:r.name,children:a}}function _t(e,t){let n=Object.entries(t).map(([r,o])=>`${r}=${o}`).sort();return [e,...n].join("")}function re(e){return e!=null&&e.kind!=="textValue"}function Qe(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkIMMAG4QP_cjs.ca&&n.localName===t)return n;return null}function oe(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkIMMAG4QP_cjs.ca&&n.localName===t)return n.value}function $(e,t){let n=Qe(e,t);if(!n)return false;let r=oe(n,"val");return r===void 0?true:r!=="0"&&r!=="false"&&r!=="off"}var At=Object.freeze({trackRevisions:false,restrictedToTrackedChanges:false,doNotTrackMoves:false,doNotTrackFormatting:false});function Tn(e){if(!re(e))return At;let t=Qe(e,"documentProtection"),n=t===null?void 0:oe(t,"enforcement"),r=n!==void 0&&n!=="0"&&n!=="false"&&n!=="off";return {trackRevisions:$(e,"trackRevisions"),restrictedToTrackedChanges:r&&t!==null&&oe(t,"edit")==="trackedChanges",doNotTrackMoves:$(e,"doNotTrackMoves"),doNotTrackFormatting:$(e,"doNotTrackFormatting")}}var $t=Object.freeze({doNotShadeFormData:false});function vn(e){return re(e)?{doNotShadeFormData:$(e,"doNotShadeFormData")}:$t}function wn(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 chunkIMMAG4QP_cjs.ve(n.root)){let l=chunkIMMAG4QP_cjs.te(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=chunkIMMAG4QP_cjs.wa(o,d);if(!c)continue;if(l==="remove"){let g=chunkIMMAG4QP_cjs.Aa(o,d,{deferValidation:true});if(!g.ok)return {ok:false,reason:`a node could not be removed: ${Dt(g)}`};o=g.part,a+=1;continue}let p=c.children.find(g=>g.id===d);if(!p)continue;let u=chunkIMMAG4QP_cjs.re(p),m=u?u.children:[],f=c.children.flatMap(g=>g.id===d?m:[g]),y=chunkIMMAG4QP_cjs.xa(o,c.id,f,{deferValidation:true});if(!y.ok)return {ok:false,reason:`a node could not be unwrapped: ${Dt(y)}`};o=y.part,s+=1;}let i=o===n?e:chunkIMMAG4QP_cjs.qb(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 An(i,t.storyPartName,d)){let c=chunkIMMAG4QP_cjs.lf(i,l.itemId),p=chunkIMMAG4QP_cjs.ff(i,l.partName,c);if(p.pkg===i&&p.removed.length===0&&!_n(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=$n(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 _n(e,t,n){return chunkIMMAG4QP_cjs.bf(e,t).every(r=>n.has(r.id))}function Dt(e){return e.issues.map(t=>t.code).join(", ")||"the edit was refused"}function An(e,t,n){return chunkIMMAG4QP_cjs.Ze(e,t).filter(r=>r.namespaceUri===n)}function $n(e,t){let n=chunkIMMAG4QP_cjs.wb(e,t.partName);if(!n.ok)return {pkg:e,ok:false};let r=chunkIMMAG4QP_cjs.wb(n.pkg,t.propsPartName);return r.ok?{pkg:r.pkg,ok:true}:{pkg:e,ok:false}}var ie="http://purl.org/dc/elements/1.1/",Mt="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Lt="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";var Ip=Object.freeze({});function k(e,t,n){if(e.kind!=="textValue")for(let r of e.children){if(r.kind==="textValue"||r.namespaceUri!==t||r.localName!==n)continue;let o=r.children.find(a=>a.kind==="textValue");if(!o||o.kind!=="textValue")return;let s=o.value.trim();return s.length===0?void 0:s.length>4096?s.slice(0,4096):s}}function kp(e,t){let n={};if(e&&e.kind!=="textValue"){let r=k(e,ie,"title");r!==void 0&&(n.title=r);let o=k(e,ie,"creator");o!==void 0&&(n.creator=o);let s=k(e,ie,"subject");s!==void 0&&(n.subject=s);let a=k(e,ie,"description");a!==void 0&&(n.description=a);let i=k(e,Mt,"keywords");i!==void 0&&(n.keywords=i);let d=k(e,Mt,"lastModifiedBy");d!==void 0&&(n.lastModifiedBy=d);}if(t&&t.kind!=="textValue"){let r=k(t,Lt,"Company");r!==void 0&&(n.company=r);let o=k(t,Lt,"Manager");o!==void 0&&(n.manager=o);}return n}
|
|
2
|
+
exports.A=Xe;exports.B=Ke;exports.C=Ge;exports.D=Qt;exports.E=pt;exports.F=ft;exports.G=nn;exports.H=on;exports.I=Ot;exports.J=pn;exports.K=un;exports.L=On;exports.M=bn;exports.N=At;exports.O=Tn;exports.P=$t;exports.Q=vn;exports.R=Ip;exports.S=kp;exports.T=wn;exports.a=Ft;exports.b=it;exports.c=J;exports.d=S;exports.e=q;exports.f=Q;exports.g=h;exports.h=Vt;exports.i=T;exports.j=U;exports.k=Z;exports.l=H;exports.m=ee;exports.n=Le;exports.o=Fe;exports.p=Be;exports.q=Gt;exports.r=zt;exports.s=He;exports.t=st;exports.u=Wt;exports.v=Ue;exports.w=Yt;exports.x=V;exports.y=Ve;exports.z=je;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.cjs';
|
|
2
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-
|
|
3
|
-
export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from '../editor-
|
|
4
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
2
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-DpsqTHio.cjs';
|
|
3
|
+
export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from '../editor-CojjwMmF.cjs';
|
|
4
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-BjOcDB06.cjs';
|
|
5
5
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.cjs';
|
|
6
|
-
export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from '../tree-op-types-
|
|
7
|
-
export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from '../image-resources-
|
|
8
|
-
import '../ooxml-
|
|
9
|
-
import '../semantic-records-
|
|
10
|
-
import '../revision-projection-
|
|
11
|
-
import '../
|
|
6
|
+
export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from '../tree-op-types-B0-sCtw-.cjs';
|
|
7
|
+
export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from '../image-resources-DQOiwOuE.cjs';
|
|
8
|
+
import '../ooxml-package-CdEy9ufK.cjs';
|
|
9
|
+
import '../semantic-records-C3Z76KeN.cjs';
|
|
10
|
+
import '../revision-projection-Cc4wz30g.cjs';
|
|
11
|
+
import '../omml-equation-BD-LsmWE.cjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
|
|
2
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-
|
|
3
|
-
export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from '../editor-
|
|
4
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
2
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-D5SPFtsO.js';
|
|
3
|
+
export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from '../editor-PUlv5Pp7.js';
|
|
4
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-Cca1-X_a.js';
|
|
5
5
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.js';
|
|
6
|
-
export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from '../tree-op-types-
|
|
7
|
-
export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from '../image-resources-
|
|
8
|
-
import '../ooxml-
|
|
9
|
-
import '../semantic-records-
|
|
10
|
-
import '../revision-projection-
|
|
11
|
-
import '../
|
|
6
|
+
export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from '../tree-op-types-XMVsJSpe.js';
|
|
7
|
+
export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from '../image-resources-eZqD_-vC.js';
|
|
8
|
+
import '../ooxml-package-CdEy9ufK.js';
|
|
9
|
+
import '../semantic-records-Cc1MJrhM.js';
|
|
10
|
+
import '../revision-projection-CILpvv4M.js';
|
|
11
|
+
import '../omml-equation-Dd3mBep-.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { M as EditorScope, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, a9 as SemanticIdentity, aa as SemanticTarget, V as ViewScope } from '../editor-
|
|
1
|
+
export { M as EditorScope, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, a9 as SemanticIdentity, aa as SemanticTarget, V as ViewScope } from '../editor-CojjwMmF.cjs';
|
|
2
2
|
import './document.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
|
-
import '../review-
|
|
5
|
-
import '../ooxml-
|
|
6
|
-
import '../tree-op-types-
|
|
7
|
-
import '../semantic-interaction-
|
|
8
|
-
import '../semantic-records-
|
|
9
|
-
import '../image-resources-
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
4
|
+
import '../review-items-DpsqTHio.cjs';
|
|
5
|
+
import '../ooxml-package-CdEy9ufK.cjs';
|
|
6
|
+
import '../tree-op-types-B0-sCtw-.cjs';
|
|
7
|
+
import '../semantic-interaction-BjOcDB06.cjs';
|
|
8
|
+
import '../semantic-records-C3Z76KeN.cjs';
|
|
9
|
+
import '../image-resources-DQOiwOuE.cjs';
|
|
10
|
+
import '../revision-projection-Cc4wz30g.cjs';
|
|
11
|
+
import '../omml-equation-BD-LsmWE.cjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { M as EditorScope, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, a9 as SemanticIdentity, aa as SemanticTarget, V as ViewScope } from '../editor-
|
|
1
|
+
export { M as EditorScope, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, a9 as SemanticIdentity, aa as SemanticTarget, V as ViewScope } from '../editor-PUlv5Pp7.js';
|
|
2
2
|
import './document.js';
|
|
3
3
|
import './types.js';
|
|
4
|
-
import '../review-
|
|
5
|
-
import '../ooxml-
|
|
6
|
-
import '../tree-op-types-
|
|
7
|
-
import '../semantic-interaction-
|
|
8
|
-
import '../semantic-records-
|
|
9
|
-
import '../image-resources-
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
4
|
+
import '../review-items-D5SPFtsO.js';
|
|
5
|
+
import '../ooxml-package-CdEy9ufK.js';
|
|
6
|
+
import '../tree-op-types-XMVsJSpe.js';
|
|
7
|
+
import '../semantic-interaction-Cca1-X_a.js';
|
|
8
|
+
import '../semantic-records-Cc1MJrhM.js';
|
|
9
|
+
import '../image-resources-eZqD_-vC.js';
|
|
10
|
+
import '../revision-projection-CILpvv4M.js';
|
|
11
|
+
import '../omml-equation-Dd3mBep-.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { O as OoxmlPart } from '../ooxml-package-CdEy9ufK.cjs';
|
|
2
|
+
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-DpsqTHio.cjs';
|
|
3
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-DpsqTHio.cjs';
|
|
4
|
+
export { R as RevisionAddress } from '../tree-op-types-B0-sCtw-.cjs';
|
|
5
|
+
import { R as RevisionDisplayMode } from '../revision-projection-Cc4wz30g.cjs';
|
|
6
6
|
import './types.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { O as OoxmlPart } from '../ooxml-package-CdEy9ufK.js';
|
|
2
|
+
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-D5SPFtsO.js';
|
|
3
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-D5SPFtsO.js';
|
|
4
|
+
export { R as RevisionAddress } from '../tree-op-types-XMVsJSpe.js';
|
|
5
|
+
import { R as RevisionDisplayMode } from '../revision-projection-CILpvv4M.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-CKswbQl3.js';
|
|
1
|
+
import { c as OoxmlPackage, O as OoxmlPart, a as OoxmlNode } from './ooxml-package-CdEy9ufK.cjs';
|
|
2
|
+
import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-DQOiwOuE.cjs';
|
|
3
|
+
import { h as DrawingTreeDocOp, a as TreeOpRejection, T as TreeDocOp } from './tree-op-types-B0-sCtw-.cjs';
|
|
4
|
+
import { c as HeaderFooterKind, H as HeaderFooterVariant } from './hf-references-Dvk6De4Q.cjs';
|
|
5
|
+
import { N as NoteKind } from './note-nodes-DL-Au22P.cjs';
|
|
6
|
+
import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-C6vc8E_2.cjs';
|
|
8
7
|
|
|
9
8
|
/** A freshly allocated drawing property id, or the reason one could not be minted. */
|
|
10
9
|
type DrawingPropertyIdResult = {
|
|
@@ -117,9 +116,9 @@ interface EnsuredListDefinition {
|
|
|
117
116
|
/**
|
|
118
117
|
* Find or create a list definition of `kind`, returning the package that holds it.
|
|
119
118
|
*
|
|
120
|
-
* An existing definition of the same kind is
|
|
121
|
-
*
|
|
122
|
-
*
|
|
119
|
+
* An existing abstract definition of the same kind is reused, but every disconnected list
|
|
120
|
+
* gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
|
|
121
|
+
* continue an earlier list. Returns null only when the part cannot be built at all.
|
|
123
122
|
*/
|
|
124
123
|
declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
|
|
125
124
|
/**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-Dob9Us6Y.cjs';
|
|
1
|
+
import { c as OoxmlPackage, O as OoxmlPart, a as OoxmlNode } from './ooxml-package-CdEy9ufK.js';
|
|
2
|
+
import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-eZqD_-vC.js';
|
|
3
|
+
import { h as DrawingTreeDocOp, a as TreeOpRejection, T as TreeDocOp } from './tree-op-types-XMVsJSpe.js';
|
|
4
|
+
import { c as HeaderFooterKind, H as HeaderFooterVariant } from './hf-references-z5Y4N1ab.js';
|
|
5
|
+
import { N as NoteKind } from './note-nodes-BNCANoGN.js';
|
|
6
|
+
import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-ClA-qng4.js';
|
|
8
7
|
|
|
9
8
|
/** A freshly allocated drawing property id, or the reason one could not be minted. */
|
|
10
9
|
type DrawingPropertyIdResult = {
|
|
@@ -117,9 +116,9 @@ interface EnsuredListDefinition {
|
|
|
117
116
|
/**
|
|
118
117
|
* Find or create a list definition of `kind`, returning the package that holds it.
|
|
119
118
|
*
|
|
120
|
-
* An existing definition of the same kind is
|
|
121
|
-
*
|
|
122
|
-
*
|
|
119
|
+
* An existing abstract definition of the same kind is reused, but every disconnected list
|
|
120
|
+
* gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
|
|
121
|
+
* continue an earlier list. Returns null only when the part cannot be built at all.
|
|
123
122
|
*/
|
|
124
123
|
declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
|
|
125
124
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.cjs';
|
|
2
|
-
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-
|
|
3
|
-
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-
|
|
2
|
+
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-items-DpsqTHio.cjs';
|
|
3
|
+
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-BjOcDB06.cjs';
|
|
4
4
|
import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.cjs';
|
|
5
|
-
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-
|
|
6
|
-
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-
|
|
5
|
+
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-B0-sCtw-.cjs';
|
|
6
|
+
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-DQOiwOuE.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.js';
|
|
2
|
-
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-
|
|
3
|
-
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-
|
|
2
|
+
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-items-D5SPFtsO.js';
|
|
3
|
+
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-Cca1-X_a.js';
|
|
4
4
|
import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.js';
|
|
5
|
-
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-
|
|
6
|
-
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-
|
|
5
|
+
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-XMVsJSpe.js';
|
|
6
|
+
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-eZqD_-vC.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
|
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkTJEWP7MX_cjs=require('./chunk-TJEWP7MX.cjs');require('./chunk-M6ZIVJUA.cjs'),require('./chunk-HTJLSGBH.cjs'),require('./chunk-JEHWQPXS.cjs'),require('./chunk-UGUPVZDY.cjs'),require('./chunk-XRDTD4X3.cjs'),require('./chunk-HCSWWXS2.cjs');var chunkRUS2YBWU_cjs=require('./chunk-RUS2YBWU.cjs');require('./chunk-YMYCPY5Y.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ha}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ma}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.va}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.za}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ca}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Y}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Q}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ia}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.O}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.P}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.m}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.l}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.r}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ca}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.da}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Z}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.q}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.p}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ga}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Fa}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ea}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.y}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.x}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.M}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.L}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ba}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Aa}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ia}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.wa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.la}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ka}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ta}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.V}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.U}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Na}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.La}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.k}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ua}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.I}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.G}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.D}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.H}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.F}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Qa}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.xa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs._}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.v}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ua}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.T}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.N}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Va}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ya}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.n}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.t}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.W}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.$}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Pa}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.j}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.A}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.B}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ea}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ra}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.i}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.S}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.fa}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Sa}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.C}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.z}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ja}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.o}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ra}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.pa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ta}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.qa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ka}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.R}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.K}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.u}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.E}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Da}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Oa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ha}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ga}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ma}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.aa}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.X}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.sa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.na}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.oa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.J}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.w}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.E}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.vf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.wf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.Xa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.yf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.xf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.F}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.ob}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.kb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.uf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.pb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.zf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
|
1
|
+
'use strict';var chunkP5YSGSYC_cjs=require('./chunk-P5YSGSYC.cjs');require('./chunk-2RDMWJPF.cjs'),require('./chunk-TP4EHWEX.cjs'),require('./chunk-IEXDXWTA.cjs'),require('./chunk-DKMKH77K.cjs'),require('./chunk-XMHWBL3K.cjs');var chunkIMMAG4QP_cjs=require('./chunk-IMMAG4QP.cjs');require('./chunk-YMYCPY5Y.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ia}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Na}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.va}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.za}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ca}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Y}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Q}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ja}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.O}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.P}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.m}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.l}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.r}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ca}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.da}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Z}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.q}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.p}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ha}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ga}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ea}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.y}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.x}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.M}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.L}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ba}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Aa}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ia}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.wa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.la}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ka}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ua}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.V}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.U}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Oa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ma}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.k}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Va}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.I}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.G}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.D}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.H}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.F}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ra}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.xa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs._}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.v}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ua}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.T}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ea}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.N}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Wa}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ya}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.n}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.t}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.W}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.$}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Qa}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.j}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.A}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.B}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Fa}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Sa}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.i}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.S}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.fa}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ta}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.C}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.z}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ka}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.o}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ra}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.pa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ta}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.qa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.La}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.R}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.K}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.u}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.E}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Da}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Pa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ha}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ga}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ma}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.aa}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.X}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.sa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.na}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.oa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.J}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.w}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.m}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.xf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.yf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.Na}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.Af}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.zf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.n}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.eb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.ab}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.wf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.fb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkIMMAG4QP_cjs.Bf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
package/dist/editor.css
CHANGED
|
@@ -3544,6 +3544,13 @@ a.docx-hyperlink:focus-visible {
|
|
|
3544
3544
|
transition: padding-inline-start 0.2s ease;
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
|
+
/* A deferred open gives the loading overlay one frame before parsing. The parse blocks
|
|
3548
|
+
layout transitions, so snap both ruler reservations before that frame or the right edge
|
|
3549
|
+
moves while the start edge remains frozen, leaving the ruler half a strip off the page. */
|
|
3550
|
+
.docx-ruler-frame--opening {
|
|
3551
|
+
transition: none;
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3547
3554
|
@media (prefers-reduced-motion: reduce) {
|
|
3548
3555
|
.docx-ruler-frame {
|
|
3549
3556
|
transition: none;
|
|
@@ -4269,6 +4276,9 @@ a.docx-hyperlink:focus-visible {
|
|
|
4269
4276
|
.docx-toolbar {
|
|
4270
4277
|
display: flex;
|
|
4271
4278
|
align-items: center;
|
|
4279
|
+
min-inline-size: 0;
|
|
4280
|
+
margin: 0;
|
|
4281
|
+
border: 0;
|
|
4272
4282
|
/* NOT overflow-scroll like the chrome spec's pill: this toolbar hosts LIVE popups
|
|
4273
4283
|
* (font menu, swatch grids) positioned absolutely inside their parts, and any
|
|
4274
4284
|
* overflow clipping on the bar would cut them off. A bar that does not measure
|
|
@@ -4386,6 +4396,22 @@ a.docx-hyperlink:focus-visible {
|
|
|
4386
4396
|
overflow-y: visible;
|
|
4387
4397
|
}
|
|
4388
4398
|
|
|
4399
|
+
/* Right-edge controls open toward the panel instead of beyond the viewport. */
|
|
4400
|
+
.docx-toolbar__more-panel .docx-toolbar__font-size-menu {
|
|
4401
|
+
right: 0;
|
|
4402
|
+
left: auto;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
/* The lower controls have no room below them in a small scrollport. Their compact menus
|
|
4406
|
+
* open upward and toward the panel, while the panel keeps its scroll position and bounds. */
|
|
4407
|
+
.docx-toolbar__more-panel .docx-toolbar__alignment-popup,
|
|
4408
|
+
.docx-toolbar__more-panel .docx-toolbar__line-spacing-menu {
|
|
4409
|
+
top: auto;
|
|
4410
|
+
right: 0;
|
|
4411
|
+
bottom: 100%;
|
|
4412
|
+
left: auto;
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4389
4415
|
.docx-toolbar__more-section + .docx-toolbar__more-section {
|
|
4390
4416
|
margin-top: 4px;
|
|
4391
4417
|
padding-top: 4px;
|
|
@@ -4509,8 +4535,10 @@ a.docx-hyperlink:focus-visible {
|
|
|
4509
4535
|
user-select: none;
|
|
4510
4536
|
}
|
|
4511
4537
|
|
|
4512
|
-
.docx-toolbar__picker[aria-disabled='true']
|
|
4538
|
+
.docx-toolbar__picker[aria-disabled='true'],
|
|
4539
|
+
.docx-toolbar__picker:disabled {
|
|
4513
4540
|
opacity: 0.5;
|
|
4541
|
+
cursor: default;
|
|
4514
4542
|
}
|
|
4515
4543
|
|
|
4516
4544
|
.docx-toolbar__picker-caret {
|
|
@@ -5486,17 +5514,15 @@ a.docx-hyperlink:focus-visible {
|
|
|
5486
5514
|
Loading surface (`DocxEditor.Loading`)
|
|
5487
5515
|
--------------------------------------------------------------------------- */
|
|
5488
5516
|
|
|
5489
|
-
/* Fills whatever box the host places it in
|
|
5490
|
-
|
|
5517
|
+
/* Fills whatever box the host places it in. The default child uses the real paginated
|
|
5518
|
+
surface and page classes, so its position and paper styling match a loaded document. */
|
|
5491
5519
|
.docx-editor__loading {
|
|
5492
|
-
display:
|
|
5493
|
-
|
|
5494
|
-
align-items: center;
|
|
5495
|
-
justify-content: center;
|
|
5496
|
-
gap: 16px;
|
|
5520
|
+
display: block;
|
|
5521
|
+
box-sizing: border-box;
|
|
5497
5522
|
width: 100%;
|
|
5498
5523
|
height: 100%;
|
|
5499
5524
|
min-height: 0;
|
|
5525
|
+
overflow: auto;
|
|
5500
5526
|
color: var(--doc-text-muted);
|
|
5501
5527
|
font-size: 14px;
|
|
5502
5528
|
}
|
|
@@ -5530,11 +5556,38 @@ a.docx-hyperlink:focus-visible {
|
|
|
5530
5556
|
}
|
|
5531
5557
|
}
|
|
5532
5558
|
|
|
5533
|
-
/* The
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5559
|
+
/* The loading sheet uses the same surface tree as a painted document:
|
|
5560
|
+
`.docx-paginated-surface > .docx-pages > .docx-page`. React and Vue apply the layout
|
|
5561
|
+
page size and zoom to the surface. The shared surface margin and page rule then control
|
|
5562
|
+
centring, paper colour, and shadow without a second approximation. */
|
|
5563
|
+
.docx-editor__loading-surface > .docx-pages {
|
|
5564
|
+
position: relative;
|
|
5565
|
+
width: 100%;
|
|
5566
|
+
height: 100%;
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5569
|
+
.docx-editor__loading-page {
|
|
5570
|
+
position: absolute;
|
|
5571
|
+
inset: 0;
|
|
5572
|
+
box-sizing: border-box;
|
|
5573
|
+
width: 100%;
|
|
5574
|
+
height: 100%;
|
|
5575
|
+
overflow: hidden;
|
|
5576
|
+
}
|
|
5577
|
+
|
|
5578
|
+
.docx-editor__loading-page-status {
|
|
5579
|
+
position: absolute;
|
|
5580
|
+
top: 50%;
|
|
5581
|
+
right: 0;
|
|
5582
|
+
left: 0;
|
|
5583
|
+
display: flex;
|
|
5584
|
+
align-items: center;
|
|
5585
|
+
justify-content: center;
|
|
5586
|
+
transform: translateY(-50%);
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5589
|
+
/* `display` and `box-sizing` are explicit rather than inherited from Tailwind's
|
|
5590
|
+
preflight. The loading part can sit outside the host's utility scope. */
|
|
5538
5591
|
.docx-editor__loading-spinner {
|
|
5539
5592
|
display: block;
|
|
5540
5593
|
box-sizing: border-box;
|
|
@@ -5555,7 +5608,7 @@ a.docx-hyperlink:focus-visible {
|
|
|
5555
5608
|
}
|
|
5556
5609
|
}
|
|
5557
5610
|
|
|
5558
|
-
/* Respect a reduced-motion preference
|
|
5611
|
+
/* Respect a reduced-motion preference by keeping the indicator still. */
|
|
5559
5612
|
@media (prefers-reduced-motion: reduce) {
|
|
5560
5613
|
.docx-editor__loading-spinner {
|
|
5561
5614
|
animation: none;
|
|
@@ -5709,6 +5762,63 @@ a.docx-hyperlink:focus-visible {
|
|
|
5709
5762
|
line-height: 1.35;
|
|
5710
5763
|
}
|
|
5711
5764
|
|
|
5765
|
+
/* Compact linear-math editor for one selected equation atom. */
|
|
5766
|
+
.docx-equation-popup {
|
|
5767
|
+
position: absolute;
|
|
5768
|
+
z-index: var(--doc-z-overlay);
|
|
5769
|
+
display: flex;
|
|
5770
|
+
flex-direction: column;
|
|
5771
|
+
align-items: stretch;
|
|
5772
|
+
gap: 6px;
|
|
5773
|
+
width: min(340px, calc(100% - 16px));
|
|
5774
|
+
margin-top: 4px;
|
|
5775
|
+
padding: 6px 8px;
|
|
5776
|
+
border: 1px solid var(--doc-border);
|
|
5777
|
+
border-radius: 8px;
|
|
5778
|
+
background: var(--doc-surface);
|
|
5779
|
+
color: var(--doc-text);
|
|
5780
|
+
box-shadow: 0 2px 10px var(--doc-shadow);
|
|
5781
|
+
font-size: 13px;
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
.docx-equation-popup__input {
|
|
5785
|
+
width: 100%;
|
|
5786
|
+
padding: 4px 6px;
|
|
5787
|
+
border: 1px solid var(--doc-border-input);
|
|
5788
|
+
border-radius: 4px;
|
|
5789
|
+
background: var(--doc-bg-input);
|
|
5790
|
+
color: var(--doc-text);
|
|
5791
|
+
font: inherit;
|
|
5792
|
+
}
|
|
5793
|
+
|
|
5794
|
+
.docx-equation-popup__input:focus-visible {
|
|
5795
|
+
outline: 2px solid var(--doc-focus-ring);
|
|
5796
|
+
outline-offset: -1px;
|
|
5797
|
+
}
|
|
5798
|
+
|
|
5799
|
+
.docx-equation-popup__error {
|
|
5800
|
+
color: var(--doc-error);
|
|
5801
|
+
font-size: 12px;
|
|
5802
|
+
line-height: 1.35;
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
.docx-equation-popup__actions {
|
|
5806
|
+
display: flex;
|
|
5807
|
+
justify-content: flex-end;
|
|
5808
|
+
gap: 6px;
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
.docx-equation-popup__apply,
|
|
5812
|
+
.docx-equation-popup__delete {
|
|
5813
|
+
padding: 4px 10px;
|
|
5814
|
+
border: 1px solid var(--doc-border-input);
|
|
5815
|
+
border-radius: 4px;
|
|
5816
|
+
background: var(--doc-bg-input);
|
|
5817
|
+
color: var(--doc-text);
|
|
5818
|
+
font: inherit;
|
|
5819
|
+
cursor: pointer;
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5712
5822
|
/* Room for the review pane. The page centres inside the scroller's padding box, so
|
|
5713
5823
|
* reserving the rail's width here shifts the sheet left by half of it and the document and
|
|
5714
5824
|
* its cards read as one centred pair.
|